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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3278f52d4a4dccf81bda9c62280ff204c3b29614 | 2,501 | py | Python | merlink/browsers/pages/json_url_routes.py | Pocc/meraki-client-vpn | bdb33b047b0a71b69c199db399c59ac5bfecd64c | [
"Apache-2.0"
] | 4 | 2018-04-15T07:31:27.000Z | 2020-03-26T04:20:31.000Z | merlink/browsers/pages/json_url_routes.py | Pocc/meraki-client-vpn | bdb33b047b0a71b69c199db399c59ac5bfecd64c | [
"Apache-2.0"
] | 60 | 2018-04-15T08:25:49.000Z | 2021-12-13T19:47:10.000Z | merlink/browsers/pages/json_url_routes.py | Pocc/meraki-client-vpn | bdb33b047b0a71b69c199db399c59ac5bfecd64c | [
"Apache-2.0"
] | 1 | 2018-04-05T07:16:04.000Z | 2018-04-05T07:16:04.000Z | # -*- coding: utf-8 -*-
"""Dashboard routes that lead to JSONs without providing parameters."""
routes = {
'netwide': {
'client_list': '/usage/client_list_json',
'topology': '/l3_topology/show',
'event_types': '/dashboard/event_autocomplete_types',
'alerts': '/alerts/show',
'admin_emails': '/alerts/typeahead_emails',
'possible_clients': '/alerts/possible_clients',
'inventory': '/organization/inventory_data',
'event_log': '/dashboard/event_log#',
'users': '/configure/guests',
},
'node': {
'node_info': '/nodes/json?orgwide=true',
'node_settings': '/configure/settings',
},
'mx': {
'dhcp_subnet': '/nodes/dhcp_subnet_json',
'router_settings': '/configure/router_settings_json',
'wireless': '/configure/radio_json',
'routes': '/nodes/get_routes_json',
'fetch_networks': '/vpn/fetch_networks',
'fetch_inter': '/vpn/fetch_inter_usage',
},
'ms': {
'switchports': '/nodes/ports_json',
'dai': '/configure/switch_heterogeneous_features_json/dai',
'switch_l3': '/switch_l3/show',
'ipv6_acl': '/configure/switch_heterogeneous_features_json/ipv6_acl',
'ipv4_meraki_acl': '/configure/switch_meraki_acl_json',
'ipv4_user_acl': '/configure/switch_user_acl_json',
'switch_walled_garden': '/configure/switch_heterogeneous_features_json'
'/sm_and_walled_garden',
'qos': '/configure/switch_heterogeneous_features_json/port_range_qos',
'firmware_upgrades': '/configure/firmware_upgrades_json',
},
'mr': {
'rf_profiles': '/configure/render_rf_profiles_json',
'rf_interference': '/configure/interference_json',
'ssids': '/configure/ssids_json',
'mr_topology': '/nodes/get_topology',
'air_marshal_config': '/dashboard/load_air_marshal_config',
'air_marshal_containment': '/dashboard/load_air_marshal_containment',
'foreign_ssids': '/dashboard/foreign_ssids',
'rf_overview': '/nodes/rf_overview_data',
'wireless_health': '/network_health/data_json',
'raw_connections': '/network_health/raw_connections_json',
'rf_profiles_config': '/configure/radio2_json'
},
'org': {
'administered_orgs': '/organization/administered_orgs',
'FILL ME OUT': 'I am incomplete!'
},
'insight': {
'FILL ME OUT': 'I am incomplete!'
}
} | 42.389831 | 79 | 0.632147 | 255 | 2,501 | 5.796078 | 0.4 | 0.060893 | 0.075778 | 0.097429 | 0.138024 | 0.02977 | 0 | 0 | 0 | 0 | 0 | 0.00458 | 0.214314 | 2,501 | 59 | 80 | 42.389831 | 0.747583 | 0.035186 | 0 | 0.035088 | 0 | 0 | 0.665282 | 0.400332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3286d60276ed24a0b041cde38d461b14151b9cf5 | 1,081 | py | Python | test/LHS_test.py | misantam/GAparsimony | 0241092dc5d7741b5546151ff829167588e4f703 | [
"MIT"
] | null | null | null | test/LHS_test.py | misantam/GAparsimony | 0241092dc5d7741b5546151ff829167588e4f703 | [
"MIT"
] | 1 | 2021-12-05T10:24:55.000Z | 2021-12-05T11:01:25.000Z | test/LHS_test.py | misantam/GAparsimony | 0241092dc5d7741b5546151ff829167588e4f703 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from GAparsimony.lhs.util import isValidLHS, isValidLHS_int
from GAparsimony.lhs import geneticLHS, improvedLHS, maximinLHS, optimumLHS, randomLHS, randomLHS_int
import pytest
@pytest.mark.parametrize("shape", [
(2, 2),
(6, 6),
(3, 8)
])
def test_randomLHS_int(shape):
assert isValidLHS_int(randomLHS_int(*shape))
@pytest.mark.parametrize("shape", [
(2, 2),
(6, 6),
(3, 8)
])
def test_randomLHS(shape):
assert isValidLHS(randomLHS(*shape))
@pytest.mark.parametrize("shape", [
(2, 2),
(6, 6),
(3, 8)
])
def test_geneticLHS(shape):
assert isValidLHS(geneticLHS(*shape))
@pytest.mark.parametrize("shape", [
(2, 2),
(6, 6),
(3, 8)
])
def test_improvedLHS(shape):
assert isValidLHS(improvedLHS(*shape))
@pytest.mark.parametrize("shape", [
(2, 2),
(6, 6),
(3, 8)
])
def test_maximinLHS(shape):
assert isValidLHS(maximinLHS(*shape))
@pytest.mark.parametrize("shape", [
(2, 2),
(6, 6),
(8, 8)
])
def test_optimumLHS(shape):
assert isValidLHS(optimumLHS(*shape)) | 20.018519 | 101 | 0.635523 | 135 | 1,081 | 5.007407 | 0.185185 | 0.088757 | 0.186391 | 0.230769 | 0.39645 | 0.39645 | 0.39645 | 0.39645 | 0.39645 | 0.344675 | 0 | 0.042093 | 0.186864 | 1,081 | 54 | 102 | 20.018519 | 0.726962 | 0.019426 | 0 | 0.644444 | 0 | 0 | 0.028329 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
32a7ffab7a3f8d0a607bb90443f67771f9f69d19 | 248 | py | Python | output/models/nist_data/atomic/date/schema_instance/nistschema_sv_iv_atomic_date_white_space_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/date/schema_instance/nistschema_sv_iv_atomic_date_white_space_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/date/schema_instance/nistschema_sv_iv_atomic_date_white_space_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.date.schema_instance.nistschema_sv_iv_atomic_date_white_space_1_xsd.nistschema_sv_iv_atomic_date_white_space_1 import NistschemaSvIvAtomicDateWhiteSpace1
__all__ = [
"NistschemaSvIvAtomicDateWhiteSpace1",
]
| 41.333333 | 189 | 0.891129 | 30 | 248 | 6.666667 | 0.633333 | 0.15 | 0.14 | 0.2 | 0.35 | 0.35 | 0.35 | 0.35 | 0 | 0 | 0 | 0.017094 | 0.056452 | 248 | 5 | 190 | 49.6 | 0.837607 | 0 | 0 | 0 | 0 | 0 | 0.141129 | 0.141129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 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 |
32a8305b7d805818563655d2b8934964c525dba6 | 108 | py | Python | Practic/task_8/swapcase1.py | zevgenia/Python_shultais | e51c31de221c5e7f36ede857a960138009ec8a05 | [
"Apache-2.0"
] | null | null | null | Practic/task_8/swapcase1.py | zevgenia/Python_shultais | e51c31de221c5e7f36ede857a960138009ec8a05 | [
"Apache-2.0"
] | null | null | null | Practic/task_8/swapcase1.py | zevgenia/Python_shultais | e51c31de221c5e7f36ede857a960138009ec8a05 | [
"Apache-2.0"
] | null | null | null |
import sys
str1 = sys.argv[1]
str2 = sys.argv[2]
print(str1, str2)
print(str1.swapcase(), str2.swapcase())
| 15.428571 | 39 | 0.694444 | 18 | 108 | 4.166667 | 0.5 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084211 | 0.12037 | 108 | 6 | 40 | 18 | 0.705263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 |
32b441e3d4a36dcadc917ce866903cf680d97ede | 2,464 | py | Python | bentoml/artifact/xgboost_artifact.py | awesome-archive/BentoML | 9a1d21a014ab11dc235ddf878d590ec7c496f291 | [
"Apache-2.0"
] | null | null | null | bentoml/artifact/xgboost_artifact.py | awesome-archive/BentoML | 9a1d21a014ab11dc235ddf878d590ec7c496f291 | [
"Apache-2.0"
] | null | null | null | bentoml/artifact/xgboost_artifact.py | awesome-archive/BentoML | 9a1d21a014ab11dc235ddf878d590ec7c496f291 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Atalaya Tech, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from bentoml.artifact import ArtifactSpec, ArtifactInstance
class XgboostModelArtifact(ArtifactSpec):
"""Abstraction for save/load object with Xgboost.
Args:
name (string): name of the artifact
model_extension (string): Extension name for saved xgboost model
Raises:
ImportError: xgboost package is required for using XgboostModelArtifact
"""
def __init__(self, name, model_extension=".model"):
super(XgboostModelArtifact, self).__init__(name)
self._model_extension = model_extension
def _model_file_path(self, base_path):
return os.path.join(base_path, self.name + self._model_extension)
def pack(self, model): # pylint:disable=arguments-differ
return _XgboostModelArtifactInstance(self, model)
def load(self, path):
try:
import xgboost as xgb
except ImportError:
raise ImportError("xgboost package is required to use XgboostModelArtifact")
bst = xgb.Booster()
bst.load_model(self._model_file_path(path))
return self.pack(bst)
class _XgboostModelArtifactInstance(ArtifactInstance):
def __init__(self, spec, model):
super(_XgboostModelArtifactInstance, self).__init__(spec)
try:
import xgboost as xgb
except ImportError:
raise ImportError("xgboost package is required to use XgboostModelArtifact")
if not isinstance(model, xgb.core.Booster):
raise ValueError(
"Expect `model` argument to be a `xgboost.core.Booster` instance"
)
self._model = model
def save(self, dst):
return self._model.save_model(self.spec._model_file_path(dst))
def get(self):
return self._model
| 32 | 88 | 0.705357 | 302 | 2,464 | 5.569536 | 0.407285 | 0.042806 | 0.028537 | 0.048157 | 0.143282 | 0.122473 | 0.122473 | 0.122473 | 0.122473 | 0.122473 | 0 | 0.004182 | 0.22362 | 2,464 | 76 | 89 | 32.421053 | 0.875065 | 0.337662 | 0 | 0.216216 | 0 | 0 | 0.112508 | 0.013828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.297297 | 0.108108 | 0.675676 | 0.027027 | 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 |
32c11e4662f108f3b93b37381faa06d968762af9 | 75 | py | Python | venv/Lib/site-packages/formtools/__init__.py | LishenZz/my_project | c2ac8199efb467e303d343ea34ed1969b64280d7 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/formtools/__init__.py | LishenZz/my_project | c2ac8199efb467e303d343ea34ed1969b64280d7 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/formtools/__init__.py | LishenZz/my_project | c2ac8199efb467e303d343ea34ed1969b64280d7 | [
"Apache-2.0"
] | null | null | null | __version__ = '2.0'
default_app_config = 'formtools.apps.FormToolsConfig'
| 18.75 | 53 | 0.786667 | 9 | 75 | 5.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.093333 | 75 | 3 | 54 | 25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.44 | 0.4 | 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 |
087d17a9c0f8b02ec6203e6f758f4d12ef888abe | 3,050 | py | Python | accounts/views.py | vollov/ditto | 4581f5d999ce5ba739c4c9f125285894b08fc086 | [
"MIT"
] | null | null | null | accounts/views.py | vollov/ditto | 4581f5d999ce5ba739c4c9f125285894b08fc086 | [
"MIT"
] | null | null | null | accounts/views.py | vollov/ditto | 4581f5d999ce5ba739c4c9f125285894b08fc086 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from serializers import UserSerializer, GroupSerializer
import logging
log = logging.getLogger(__name__)
class UserViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows users to be viewed or edited.
"""
queryset = User.objects.all().order_by('-date_joined')
serializer_class = UserSerializer
class GroupViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows groups to be viewed or edited.
"""
queryset = Group.objects.all()
serializer_class = GroupSerializer
from rest_framework.response import Response
from rest_framework.views import APIView
from app.security import JWTAuthentication
from rest_framework.permissions import IsAuthenticated
class ExampleView(APIView):
authentication_classes = (JWTAuthentication,)
permission_classes = (IsAuthenticated,)
#permission_classes = (permissions.IsAuthenticatedOrReadOnly,)
def get(self, request, format=None):
content = {
'user': 'martin_test', # `django.contrib.auth.User` instance.
'auth': 'str_auth', # None
}
return Response(content)
from django.contrib.auth import authenticate, login, logout
from rest_framework import status
import datetime, time
from jose import jwt
from app.settings import JWT_SECRET,JWT_SIGN_ALGORITHM,JWT_EXPIRE_IN_MINUTE
def generateToken(user):
# get current time, seconds since the epoch are UTC based
#current_time = timegm(datetime.utcnow().utctimetuple())
now = datetime.datetime.now()
token_expire_at = now + datetime.timedelta(minutes = JWT_EXPIRE_IN_MINUTE)
token_expire_in_seconds = time.mktime(token_expire_at.timetuple())
# The time after which the token is invalid.
claims = {'exp': token_expire_in_seconds, 'user': user}
token = jwt.encode(claims, JWT_SECRET, algorithm=JWT_SIGN_ALGORITHM)
return token
class LoginView(APIView):
def post(self, request, format=None):
data = request.data
username = data.get('username', None)
password = data.get('password', None)
log.debug('get login post with username = {0} and password = {1}'.format(username, password))
account = authenticate(username=username, password=password)
# fail, bad login info
if account is None:
return Response({
'status': 'Unauthorized',
'message': 'username/password combination invalid.'
}, status=status.HTTP_401_UNAUTHORIZED)
# fail, inactive account
if not account.is_active:
return Response({
'status': 'Unauthorized',
'message': 'This account has been disabled.'
}, status=status.HTTP_401_UNAUTHORIZED)
# success, login and respond
login(request, account)
#serialized = UserSerializer(account)
token = {'username': username}
return Response(generateToken(token)) | 33.152174 | 101 | 0.685574 | 337 | 3,050 | 6.068249 | 0.406528 | 0.01956 | 0.041565 | 0.020538 | 0.133985 | 0.065526 | 0 | 0 | 0 | 0 | 0 | 0.003386 | 0.225246 | 3,050 | 92 | 102 | 33.152174 | 0.86204 | 0.155738 | 0 | 0.107143 | 0 | 0 | 0.095426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0.071429 | 0.232143 | 0 | 0.553571 | 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 |
08b2c1197b15d9a8f456d40de60721099e975353 | 1,889 | py | Python | tests/test_recall.py | jonathondilworth/ttds_cw_two_code | 729e4eb82dc599800f6b4abe1aa5539e8104beee | [
"MIT"
] | 1 | 2021-07-01T15:31:11.000Z | 2021-07-01T15:31:11.000Z | tests/test_recall.py | jonathondilworth/ttds_cw_two_code | 729e4eb82dc599800f6b4abe1aa5539e8104beee | [
"MIT"
] | null | null | null | tests/test_recall.py | jonathondilworth/ttds_cw_two_code | 729e4eb82dc599800f6b4abe1aa5539e8104beee | [
"MIT"
] | null | null | null | import unittest
from code.evallib import recall
class TestRecall(unittest.TestCase):
'''
Recall tests
recall excepts two parameters: two document sets (relevent and retrieved)
It returns the value of: |(relevent INTERSECTION retrieved)| / |relevent|
'''
def test_expected(self):
relevent_documents = {3306, 3022, 1892, 100}
retrieved_documents = {100, 3022, 3307, 3308, 3309, 1001, 202}
self.assertEqual(recall(relevent_documents, retrieved_documents), (float(2)/float(4)))
def test_return_type(self):
relevent_documents = {3306, 3022, 1892, 100}
retrieved_documents = {100, 3022, 3307, 3308, 3309, 1001, 202}
self.assertIsInstance(recall(relevent_documents, retrieved_documents), float)
def test_expecting_zero(self):
relevent_documents = {22}
retrieved_documents = {100, 3022, 3307, 3308, 3309, 1001, 202}
self.assertEqual(recall(relevent_documents, retrieved_documents), float(0))
def test_empty_relevent_set(self):
relevent_documents = {}
retrieved_documents = {100, 3022, 3307, 3308, 3309, 1001, 202}
with self.assertRaises(AttributeError):
recall(relevent_documents, retrieved_documents)
def test_invalid_arguments(self):
relevent_documents = [1, 2]
retrieved_documents = [2, 3, 4]
with self.assertRaises(AttributeError):
recall(relevent_documents, retrieved_documents)
def test_no_arguments(self):
with self.assertRaises(TypeError):
recall()
def test_expects_zero(self):
"""casting a dict to a set is a thing, so we can expect zero"""
relevent_documents = {1, 2}
retrieved_documents = {'a':'b','c':'d'}
self.assertEqual(recall(relevent_documents, retrieved_documents), float(0))
if __name__ == '__main__':
unittest.main() | 37.78 | 94 | 0.673902 | 218 | 1,889 | 5.62844 | 0.353211 | 0.166259 | 0.148329 | 0.199674 | 0.587612 | 0.587612 | 0.489813 | 0.489813 | 0.489813 | 0.402608 | 0 | 0.099932 | 0.221281 | 1,889 | 50 | 95 | 37.78 | 0.734194 | 0.115405 | 0 | 0.352941 | 0 | 0 | 0.007304 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 1 | 0.205882 | false | 0 | 0.058824 | 0 | 0.294118 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
08bc55676aff5a71d75ec80944ffd6b4b2123cac | 680 | py | Python | app/app/items.py | Lara-Bell/scrapy-used-camera | 119628e783a2be42d8533bad2a96ac75e9a39980 | [
"MIT"
] | null | null | null | app/app/items.py | Lara-Bell/scrapy-used-camera | 119628e783a2be42d8533bad2a96ac75e9a39980 | [
"MIT"
] | null | null | null | app/app/items.py | Lara-Bell/scrapy-used-camera | 119628e783a2be42d8533bad2a96ac75e9a39980 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class KitamuraUsedItem(scrapy.Item):
# define the fields for your item here like:
ac = scrapy.Field()
maker = scrapy.Field()
name = scrapy.Field()
price = scrapy.Field()
shop = scrapy.Field()
state = scrapy.Field()
date = scrapy.Field()
class MapcameraUsedItem(scrapy.Item):
mapcode = scrapy.Field()
jancode = scrapy.Field()
name = scrapy.Field()
maker = scrapy.Field()
price = scrapy.Field()
state = scrapy.Field()
point = scrapy.Field()
# pass | 22.666667 | 52 | 0.647059 | 84 | 680 | 5.238095 | 0.488095 | 0.35 | 0.072727 | 0.1 | 0.361364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001883 | 0.219118 | 680 | 30 | 53 | 22.666667 | 0.826742 | 0.276471 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
08e3c92d6ef7ed78f76e39268806246b8968d78e | 997 | py | Python | checkov/json_doc/runner.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | null | null | null | checkov/json_doc/runner.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | null | null | null | checkov/json_doc/runner.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from typing import Any
from checkov.common.output.report import CheckType
from checkov.common.parsers.json import parse
from checkov.common.parsers.node import DictNode
from checkov.common.runners.object_runner import Runner as ObjectRunner
from checkov.json_doc.base_registry import Registry
class Runner(ObjectRunner):
check_type = CheckType.JSON
def import_registry(self) -> Registry:
from checkov.json_doc.registry import registry
return registry
def _parse_file(self, f: str) -> tuple[dict[str, Any] | list[dict[str, Any]], list[tuple[int, str]]] | tuple[None, None]:
content: tuple[dict[str, Any] | list[dict[str, Any]], list[tuple[int, str]]] | tuple[None, None] = parse(f)
return content
def get_start_end_lines(self, end: int, result_config: DictNode, start: int) -> tuple[int, int]:
start = result_config.start_mark.line
end = result_config.end_mark.line
return end, start
| 36.925926 | 125 | 0.725176 | 140 | 997 | 5.021429 | 0.335714 | 0.093883 | 0.096728 | 0.079659 | 0.162162 | 0.162162 | 0.162162 | 0.162162 | 0.162162 | 0.162162 | 0 | 0 | 0.174524 | 997 | 26 | 126 | 38.346154 | 0.854192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.473684 | 0 | 0.894737 | 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 |
3ea6601224991b509ce7891d823da807fd1c97ac | 1,152 | py | Python | tests/tbans_tests/mocks/notifications/mock_notification.py | BookWorm0103/the-blue-alliance | 39b2f33531308b19218d58c726d51f020ee9d8b5 | [
"MIT"
] | null | null | null | tests/tbans_tests/mocks/notifications/mock_notification.py | BookWorm0103/the-blue-alliance | 39b2f33531308b19218d58c726d51f020ee9d8b5 | [
"MIT"
] | null | null | null | tests/tbans_tests/mocks/notifications/mock_notification.py | BookWorm0103/the-blue-alliance | 39b2f33531308b19218d58c726d51f020ee9d8b5 | [
"MIT"
] | null | null | null | from consts.notification_type import NotificationType
from tbans.models.notifications.notification import Notification
class MockNotification(Notification):
def __init__(self, notification_payload=None, data_payload=None, webhook_payload=None, platform_payload=None, apns_payload=None):
super(Notification, self).__init__()
self._notification_payload = notification_payload
self._data_payload = data_payload
self._webhook_payload = webhook_payload
self._platform_payload = platform_payload
self._apns_payload = apns_payload
@staticmethod
def _type():
return NotificationType.VERIFICATION
@property
def notification_payload(self):
return self._notification_payload
@property
def data_payload(self):
return self._data_payload
@property
def platform_payload(self):
return self._platform_payload
@property
def apns_payload(self):
return self._apns_payload
@property
def webhook_payload(self):
return self._webhook_payload if self._webhook_payload else super(MockNotification, self).webhook_payload
| 29.538462 | 133 | 0.741319 | 124 | 1,152 | 6.5 | 0.217742 | 0.122829 | 0.105459 | 0.130273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197049 | 1,152 | 38 | 134 | 30.315789 | 0.871351 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.071429 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
3eb83c50961b9b9e05eb62f45eff4e076e8307b2 | 487 | py | Python | usd_exchanges/btce.py | Humantrashcan/prices | dfdcee60863be0f67af533882286a3ddea158e82 | [
"MIT"
] | null | null | null | usd_exchanges/btce.py | Humantrashcan/prices | dfdcee60863be0f67af533882286a3ddea158e82 | [
"MIT"
] | null | null | null | usd_exchanges/btce.py | Humantrashcan/prices | dfdcee60863be0f67af533882286a3ddea158e82 | [
"MIT"
] | null | null | null | from decimal import Decimal
from helpers import *
import requests
TICKER_URL = 'https://btc-e.com/api/3/ticker/btc_usd'
def get_current_price():
data = get_response(TICKER_URL)
price = data['btc_usd']['last']
return Decimal(price)
def get_current_bid():
data = get_response(TICKER_URL)
price = data['btc_usd']['buy']
return Decimal(price)
def get_current_ask():
data = get_response(TICKER_URL)
price = data['btc_usd']['sell']
return Decimal(price) | 24.35 | 53 | 0.700205 | 71 | 487 | 4.56338 | 0.366197 | 0.111111 | 0.12037 | 0.194444 | 0.552469 | 0.552469 | 0.361111 | 0.361111 | 0.361111 | 0 | 0 | 0.002469 | 0.168378 | 487 | 20 | 54 | 24.35 | 0.797531 | 0 | 0 | 0.375 | 0 | 0 | 0.143443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.5625 | 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 |
3ec4cdc4fc90b5189c250b85c841d74875725589 | 62 | py | Python | coverage-3.7.1/tests/covmodzip1.py | I-Valchev/UrPas | 7babb5208fab6975891fba440e633cc9ad6e8718 | [
"Apache-2.0"
] | 1 | 2015-03-04T09:00:44.000Z | 2015-03-04T09:00:44.000Z | coverage-3.7.1/tests/covmodzip1.py | I-Valchev/UrPas | 7babb5208fab6975891fba440e633cc9ad6e8718 | [
"Apache-2.0"
] | null | null | null | coverage-3.7.1/tests/covmodzip1.py | I-Valchev/UrPas | 7babb5208fab6975891fba440e633cc9ad6e8718 | [
"Apache-2.0"
] | null | null | null | """covmodzip.py: for putting into a zip file."""
j = 1
j += 1
| 15.5 | 48 | 0.596774 | 12 | 62 | 3.083333 | 0.833333 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.209677 | 62 | 3 | 49 | 20.666667 | 0.714286 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 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 |
3ec9c5d93cfe1b12439b68edf24570055ef545bf | 294 | py | Python | module1-web-application-development-with-flask/web_app/models.py | jessicakimbril/DS-Unit-3-Sprint-3-Productization-and-Cloud | 8dd28559750a5f576f13d6b0cbc56c9d82df0880 | [
"MIT"
] | null | null | null | module1-web-application-development-with-flask/web_app/models.py | jessicakimbril/DS-Unit-3-Sprint-3-Productization-and-Cloud | 8dd28559750a5f576f13d6b0cbc56c9d82df0880 | [
"MIT"
] | null | null | null | module1-web-application-development-with-flask/web_app/models.py | jessicakimbril/DS-Unit-3-Sprint-3-Productization-and-Cloud | 8dd28559750a5f576f13d6b0cbc56c9d82df0880 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
db = SQLAlchemy()
migrate = Migrate()
class Tweets(db.Model):
id = db.Column(db.Integer, primary_key=True)
tweet = db.Column(db.String(128))
user_id = db.Column(db.String(128))
| 22.615385 | 48 | 0.727891 | 43 | 294 | 4.883721 | 0.44186 | 0.128571 | 0.142857 | 0.114286 | 0.180952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02449 | 0.166667 | 294 | 13 | 49 | 22.615385 | 0.832653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 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 |
3ec9da04ccf0c70a74973566d971b129db407e6d | 463 | py | Python | nlgen/tests/cfg/test_production_union.py | toumorokoshi/nlgen | ee6163db3e5ca6bc342de9a02eb1f6afa09f2f61 | [
"MIT"
] | 32 | 2016-12-21T09:30:44.000Z | 2019-04-10T11:48:23.000Z | nlgen/tests/cfg/test_production_union.py | toumorokoshi/nlgen | ee6163db3e5ca6bc342de9a02eb1f6afa09f2f61 | [
"MIT"
] | 1 | 2016-09-28T15:01:21.000Z | 2016-09-30T01:14:10.000Z | nlgen/tests/cfg/test_production_union.py | toumorokoshi/nlgen | ee6163db3e5ca6bc342de9a02eb1f6afa09f2f61 | [
"MIT"
] | 13 | 2017-02-08T22:13:31.000Z | 2022-03-28T11:25:15.000Z | from nlgen.cfg import CFG, PTerminal, PUnion
def test_simple_production_union():
cfg = CFG([
("S", PUnion([
PTerminal("foo"),
PTerminal("bar")
])),
])
expect = [("foo",), ("bar",)]
result = list(cfg.permutation_values("S"))
assert expect == result
def test_equality():
assert (PUnion([PTerminal("foo"), PTerminal("bar")])
==
PUnion([PTerminal("foo"), PTerminal("bar")]))
| 23.15 | 57 | 0.535637 | 46 | 463 | 5.282609 | 0.456522 | 0.185185 | 0.222222 | 0.333333 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276458 | 463 | 19 | 58 | 24.368421 | 0.725373 | 0 | 0 | 0 | 0 | 0 | 0.056156 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
3ed36dcb41464790a0ad5c72ba5422f418c21471 | 192 | py | Python | function_tools/enums.py | sergeyvladimirovbars/function-tools | 1b56a7d794614ec2744a6cda22b121531d9460c2 | [
"MIT"
] | null | null | null | function_tools/enums.py | sergeyvladimirovbars/function-tools | 1b56a7d794614ec2744a6cda22b121531d9460c2 | [
"MIT"
] | null | null | null | function_tools/enums.py | sergeyvladimirovbars/function-tools | 1b56a7d794614ec2744a6cda22b121531d9460c2 | [
"MIT"
] | 1 | 2021-02-12T09:01:59.000Z | 2021-02-12T09:01:59.000Z | class TransferPeriodEnum:
"""
Переченисление периодов переноса
"""
OLD = 'old'
NEW = 'new'
values = {
OLD: 'Старый период',
NEW: 'Новый период',
}
| 16 | 36 | 0.520833 | 16 | 192 | 6.25 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.354167 | 192 | 11 | 37 | 17.454545 | 0.806452 | 0.166667 | 0 | 0 | 0 | 0 | 0.215278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.571429 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
3edfbba13b57e624f036921bbd10983cbb883d6f | 1,033 | py | Python | application/__init__.py | nealde/dash-flask-application | e956cc9bb0632973bb31040b635ff4a99d084021 | [
"MIT"
] | 1 | 2021-05-23T14:48:25.000Z | 2021-05-23T14:48:25.000Z | application/__init__.py | nealde/dash-flask-application | e956cc9bb0632973bb31040b635ff4a99d084021 | [
"MIT"
] | null | null | null | application/__init__.py | nealde/dash-flask-application | e956cc9bb0632973bb31040b635ff4a99d084021 | [
"MIT"
] | null | null | null | import pygments, markdown
from flask import Flask, flash, redirect, render_template, render_template_string, request, url_for
from flask_flatpages import FlatPages, pygmented_markdown, pygments_style_defs
from flask_mail import Mail, Message
from flask_assets import Environment
from .forms.paginate import Paginate as Paginate
from .forms.forms import ContactForm as ContactForm
def my_markdown(text):
markdown_text = render_template_string(text)
pygmented_text = markdown.markdown(markdown_text, extensions=["codehilite", "fenced_code", "tables", "mdx_math"])
return pygmented_text
def init_app():
app = Flask(__name__, instance_relative_config=False)
app.config.from_object("config")
app.config["FLATPAGES_HTML_RENDERER"] = my_markdown
assets = Environment()
assets.init_app(app)
with app.app_context():
assets.auto_build = True
from . import routes
from .plotlydash.dashboard import init_dashboard
app = init_dashboard(app, routes.pages)
return app
| 32.28125 | 117 | 0.761859 | 131 | 1,033 | 5.740458 | 0.419847 | 0.047872 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161665 | 1,033 | 31 | 118 | 33.322581 | 0.86836 | 0 | 0 | 0 | 0 | 0 | 0.061955 | 0.022265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.391304 | 0 | 0.565217 | 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 |
3edffc278f42ed9a5ca217caca4192a52afc5a8f | 744 | py | Python | app/query/migrations/0005_auto_20181119_1805.py | DanFu09/esper | ccc5547de3637728b8aaab059b6781baebc269ec | [
"Apache-2.0"
] | 4 | 2018-12-27T07:21:38.000Z | 2019-01-04T10:35:02.000Z | app/query/migrations/0005_auto_20181119_1805.py | DanFu09/esper | ccc5547de3637728b8aaab059b6781baebc269ec | [
"Apache-2.0"
] | null | null | null | app/query/migrations/0005_auto_20181119_1805.py | DanFu09/esper | ccc5547de3637728b8aaab059b6781baebc269ec | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-19 18:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('query', '0004_auto_20181116_1041'),
]
operations = [
migrations.AddField(
model_name='frame',
name='brightness',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='frame',
name='contrast',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='frame',
name='sharpness',
field=models.FloatField(null=True),
),
]
| 24 | 47 | 0.567204 | 72 | 744 | 5.708333 | 0.569444 | 0.131387 | 0.167883 | 0.19708 | 0.474453 | 0.403893 | 0.316302 | 0.316302 | 0.316302 | 0.316302 | 0 | 0.062745 | 0.314516 | 744 | 30 | 48 | 24.8 | 0.743137 | 0.08871 | 0 | 0.521739 | 1 | 0 | 0.103704 | 0.034074 | 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 |
4113a06023022da11e3f0e1574a6812662c5e1a8 | 109 | py | Python | saxo_openapi/contrib/util/__init__.py | shyrwinsia/saxo_openapi | 8e5c1bf336654d059ea87ba2ff7e7aaef33d1262 | [
"MIT"
] | 52 | 2019-03-13T13:27:36.000Z | 2022-03-18T08:27:22.000Z | saxo_openapi/contrib/util/__init__.py | shyrwinsia/saxo_openapi | 8e5c1bf336654d059ea87ba2ff7e7aaef33d1262 | [
"MIT"
] | 15 | 2019-03-14T19:42:51.000Z | 2021-12-19T16:14:02.000Z | saxo_openapi/contrib/util/__init__.py | shyrwinsia/saxo_openapi | 8e5c1bf336654d059ea87ba2ff7e7aaef33d1262 | [
"MIT"
] | 23 | 2019-03-13T13:45:22.000Z | 2022-02-26T21:20:49.000Z | # -*- coding: utf-8 -*-
from .instrument_to_uic import InstrumentToUic
__all__ = [
'InstrumentToUic'
]
| 13.625 | 46 | 0.678899 | 11 | 109 | 6.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.183486 | 109 | 7 | 47 | 15.571429 | 0.752809 | 0.192661 | 0 | 0 | 0 | 0 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
41163dc125813a9b43173c61d161c349c3f9a2dd | 179 | py | Python | src/Python.Cef/PythonCef.Vue.Vuetify2/src/ServerApp/__info__.py | grbd/GBD.NetCore.WebTemplates | 19dee03ecc98279c10999fe6c32c61e17357d4c9 | [
"MIT"
] | null | null | null | src/Python.Cef/PythonCef.Vue.Vuetify2/src/ServerApp/__info__.py | grbd/GBD.NetCore.WebTemplates | 19dee03ecc98279c10999fe6c32c61e17357d4c9 | [
"MIT"
] | null | null | null | src/Python.Cef/PythonCef.Vue.Vuetify2/src/ServerApp/__info__.py | grbd/GBD.NetCore.WebTemplates | 19dee03ecc98279c10999fe6c32c61e17357d4c9 | [
"MIT"
] | null | null | null | APP_NAME = "PythonCef.Vue.Vuetify2 Template"
APP_NAME_NO_SPACE = APP_NAME.replace(' ', '')
APP_VERSION = '0.0.1'
APP_DESCRIPTION = "Template using PythonCef, Flask, Vue, webpack"
| 35.8 | 65 | 0.748603 | 26 | 179 | 4.884615 | 0.615385 | 0.165354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.111732 | 179 | 4 | 66 | 44.75 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0.458101 | 0.122905 | 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 |
4116d9c610df495dda0bdcacd42f04661521d446 | 259 | py | Python | mf/test.py | Space0726/FontTools | a322a9bc403e93b0b32856a461fa6bf384d921e9 | [
"Apache-2.0"
] | 4 | 2020-01-29T03:18:59.000Z | 2021-05-07T07:18:34.000Z | mf/test.py | Space0726/FontTools | a322a9bc403e93b0b32856a461fa6bf384d921e9 | [
"Apache-2.0"
] | 4 | 2020-01-03T17:17:02.000Z | 2020-01-03T19:26:37.000Z | mf/test.py | Space0726/FontTools | a322a9bc403e93b0b32856a461fa6bf384d921e9 | [
"Apache-2.0"
] | null | null | null | import constants as mfc
with open("./output.mf", 'w') as file_:
with mfc.BeginChar(file_, '1234', 100, 100, 0) as bc:
bc.add_body('x1 = 0;', 'x2 = 10;')
with mfc.MfIf(file_, "10 > 15", 1) as mf_if:
mf_if.add_body('x3 = 100;')
| 32.375 | 57 | 0.552124 | 44 | 259 | 3.090909 | 0.568182 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130208 | 0.258687 | 259 | 7 | 58 | 37 | 0.578125 | 0 | 0 | 0 | 0 | 0 | 0.181467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
41243d9fc91c1d8b8b6940978b5f4028276c7ef4 | 3,946 | py | Python | 0x7d8/bot/delicious2blogger.py | ymotongpoo/restroom | d225ed4e08576d5e1f2cd9b9018ce7a21a98de49 | [
"Apache-2.0"
] | 1 | 2015-05-16T02:59:41.000Z | 2015-05-16T02:59:41.000Z | 0x7d8/bot/delicious2blogger.py | ymotongpoo/restroom | d225ed4e08576d5e1f2cd9b9018ce7a21a98de49 | [
"Apache-2.0"
] | null | null | null | 0x7d8/bot/delicious2blogger.py | ymotongpoo/restroom | d225ed4e08576d5e1f2cd9b9018ce7a21a98de49 | [
"Apache-2.0"
] | null | null | null | #-*- coding: utf-8 -*-
#
# dlc2blgr.py --- post delicious log to Blogger
#
# external packages
# - lxml
# - gdata-python-client
#
# API reference
# 1. Delicious API reference
# http://delicious.com/help/api
#
#
__author__ = 'ymotongpoo <ymotongpoo AT gmail DOT com>'
__version__ = '1.0'
__date__ = '2009/12/09 (Tue)'
import lxml
import urllib
import time
from datetime import datetime, timedelta
from lxml import etree
from StringIO import StringIO
from gdata import service, client
from gdata.blogger import client
import gdata
import atom
from pit import Pit
import sys
DELICIOUS_API = 'https://%s:%s@api.del.icio.us/v1/posts/get?dt=%s'
TITLE = '[Delicious] %s'
ENCODING = 'utf-8'
DECODING = 'utf-8'
DELICIOUS_FORMAT = '%Y-%m-%d'
DATE_OFFSET = 2
class BloggerOperator:
def __init__(self, email=None, password=None):
self.blogger_service = None
self.email = email
self.password = password
def ClientLogin(self, email=None, password=None):
if not email:
email = self.email
if not password:
password = self.password
self.blogger_service = service.GDataService(email, password)
self.blogger_service.source = 'LOG2BLGR'
self.blogger_service.service = 'blogger'
self.blogger_service.accout_type = 'GOOGLE'
self.blogger_service.server = 'www.blogger.com'
self.blogger_service.ProgrammaticLogin()
def CreatePublicPost(self, title, content):
query = service.Query()
query.feed = '/feeds/default/blogs'
feed = self.blogger_service.Get(query.ToUri())
blog_id = feed.entry[0].GetSelfLink().href.split('/')[-1]
entry = gdata.GDataEntry()
entry.title = atom.Title('xhtml', title)
entry.content = atom.Content(content_type='html', text=content)
return self.blogger_service.Post(entry, '/feeds/%s/posts/default' % blog_id)
def retrieve_posts(duser, dpass, date):
def extract_property(post):
return dict( link = post.attrib['href'],
hash = post.attrib['hash'],
title = post.attrib['description'],
time = post.attrib['time'],
desc = post.attrib['extended'] )
url = DELICIOUS_API % (duser, dpass, date)
u = urllib.urlopen(url)
data = u.read()
tree = etree.parse(StringIO(data), etree.XMLParser())
posts = [extract_property(p) for p in tree.xpath('//post')]
return posts
def post2content(post):
line = '<li/><a href="%s">%s</a>' % (post['link'], post['title'])
if len(post['desc'].strip()) > 0:
line += ' : ' + post['desc']
return line
def process(duser, dpass, date, gemail, gpass):
title_date = date.strftime('%Y-%m-%d (%a)')
api_date = date.strftime(DELICIOUS_FORMAT)
posts = retrieve_posts(duser, dpass, api_date)
if len(posts) > 0:
title = TITLE % (title_date,)
content = ''.join([post2content(p) for p in posts])
blgr = BloggerOperator(gemail, gpass)
blgr.ClientLogin()
blgr.CreatePublicPost(title, content)
else:
print date.strftime(DELICIOUS_FORMAT) + ' : no posts'
if __name__ == '__main__':
try:
daccount = Pit.get('delicious', {'require' : {
'user' : 'delicious account name',
'pass' : 'password for delicious account'
}})
gaccount = Pit.get('google', {'require' : {
'email' : 'Google mail account',
'pass' : 'password for Google account'
}})
target_date = datetime.today() - timedelta(days=DATE_OFFSET)
process(daccount['user'], daccount['pass'], target_date,
gaccount['email'], gaccount['pass'])
except Exception, e:
print 'error -> ', Exception, e
sys.exit(2)
| 29.893939 | 84 | 0.597314 | 455 | 3,946 | 5.061538 | 0.351648 | 0.042987 | 0.070343 | 0.018237 | 0.021711 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008663 | 0.268626 | 3,946 | 131 | 85 | 30.122137 | 0.789328 | 0.048657 | 0 | 0.021739 | 0 | 0.01087 | 0.136594 | 0.006148 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.163043 | 0.130435 | null | null | 0.021739 | 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 |
f5ad281a7100d43080f195f3e58ce8fcce6ae5d7 | 1,656 | py | Python | app/models/example_model.py | mabittar/fast_api_starter | 37cb388b55253994199f4bb1b709c70e95eea1b9 | [
"MIT"
] | null | null | null | app/models/example_model.py | mabittar/fast_api_starter | 37cb388b55253994199f4bb1b709c70e95eea1b9 | [
"MIT"
] | null | null | null | app/models/example_model.py | mabittar/fast_api_starter | 37cb388b55253994199f4bb1b709c70e95eea1b9 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic.networks import EmailStr
from datetime import datetime
from pydantic.types import UUID4
from sqlmodel import SQLModel, Field
from sqlalchemy import Enum
from sqlmodel.main import Relationship
from models.commom import CreatedAtModel, IDModel, Pagination, UpdateAtModel
from models.point_model import Point, PointCreate
class GenderEnum(str, Enum):
male = "male"
female = "female"
other = "other"
not_given = "not_given"
class ExampleBase(SQLModel):
name: str = Field(..., max_length=256, description="User name",
alias="name")
email: EmailStr = Field(alias="email", description="User Email"
)
gender: GenderEnum = Field(...,
description="Enumerator Class Model", alias="gender")
float_number: float = Field(
..., multiple_of=0.01, description="A float Number", alias="float_number"
)
optional_integer: Optional[int] = Field(
None, description="An optional positive integer", alias="optional_integer"
)
optional_float: Optional[float] = Field(
None, description="An optional float", alias="optional_float"
)
point: Optional[Point] = Relationship(back_populates="Point")
class ExamplePointId(ExampleBase):
point_id: Optional[int] = Field(default=None, foreign_key="point.id")
class Example(ExampleBase, IDModel, UpdateAtModel, CreatedAtModel, table=True):
pass
class ExampleUpdate(ExampleBase, UpdateAtModel):
pass
class ExampleGet(ExamplePointId, Pagination, CreatedAtModel):
pass
class ExampleCreate(ExampleBase):
pass
| 30.666667 | 84 | 0.698068 | 179 | 1,656 | 6.379888 | 0.391061 | 0.045534 | 0.04028 | 0.038529 | 0.052539 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005311 | 0.204106 | 1,656 | 53 | 85 | 31.245283 | 0.861153 | 0 | 0 | 0.097561 | 0 | 0 | 0.11715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.097561 | 0.219512 | 0 | 0.682927 | 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 |
f5aef2968a3bd53cb279746920de666de78bf7ff | 169 | py | Python | bdgtools/util.py | knutdrand/bdgtools | 18d21586515ec03e5fb96e959447f6b35e5350de | [
"MIT"
] | null | null | null | bdgtools/util.py | knutdrand/bdgtools | 18d21586515ec03e5fb96e959447f6b35e5350de | [
"MIT"
] | null | null | null | bdgtools/util.py | knutdrand/bdgtools | 18d21586515ec03e5fb96e959447f6b35e5350de | [
"MIT"
] | null | null | null | import numpy as np
def get_ranks(array):
args_tmp = np.argsort(array)
args = np.empty_like(args_tmp)
args[args_tmp] = np.arange(len(args))
return args
| 18.777778 | 41 | 0.680473 | 28 | 169 | 3.928571 | 0.571429 | 0.190909 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207101 | 169 | 8 | 42 | 21.125 | 0.820896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
f5afaa57c75a0f8dd0c3afbe6eaf8c95ec7c0b48 | 343 | py | Python | strings.py | rresender/python-samples | 2fb2330f59f3cc0c6b975381e22268a758773b69 | [
"MIT"
] | null | null | null | strings.py | rresender/python-samples | 2fb2330f59f3cc0c6b975381e22268a758773b69 | [
"MIT"
] | null | null | null | strings.py | rresender/python-samples | 2fb2330f59f3cc0c6b975381e22268a758773b69 | [
"MIT"
] | null | null | null | def count_substring(string, sub_string):
c = 0
for i in range(0, len(string)):
ss = string[i:len(sub_string)+i]
if sub_string == ss:
c += 1
return c
print(count_substring('ABCDCDC', 'CDC'))
print(count_substring('I am an Indian, by birth', 'Birth'))
print(count_substring('ThIsisCoNfUsInG', 'is'))
| 28.583333 | 59 | 0.620991 | 50 | 343 | 4.12 | 0.52 | 0.271845 | 0.276699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.230321 | 343 | 11 | 60 | 31.181818 | 0.768939 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.3 | 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 |
f5c14585be7131ef751a48e15869c8044c817d06 | 3,858 | py | Python | application/Django_refrigerator_project/refrigerator_app/migrations/0001_initial.py | nina-mir/fridge_app_course_project | e66ae189096789b490c3331f88be6b2df6423326 | [
"MIT"
] | null | null | null | application/Django_refrigerator_project/refrigerator_app/migrations/0001_initial.py | nina-mir/fridge_app_course_project | e66ae189096789b490c3331f88be6b2df6423326 | [
"MIT"
] | null | null | null | application/Django_refrigerator_project/refrigerator_app/migrations/0001_initial.py | nina-mir/fridge_app_course_project | e66ae189096789b490c3331f88be6b2df6423326 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-12-05 13:27
from django.db import migrations, models
import django.db.models.deletion
import django_mysql.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Fridge',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('friends', django_mysql.models.ListTextField(models.IntegerField(), default=[], size=None)),
('auto_gen_grocery_list', django_mysql.models.ListTextField(models.CharField(max_length=15), default=[], size=None)),
('manually_added_list', django_mysql.models.ListTextField(models.CharField(max_length=15), default=[], size=None)),
('creation_date', models.DateTimeField()),
('modified_date', models.DateTimeField()),
('eff_bgn_ts', models.DateTimeField()),
('eff_end_ts', models.DateTimeField()),
('owner', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='fridges', to='users.User')),
],
),
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('age', models.BigIntegerField(blank=True, null=True)),
('isperishable', models.IntegerField()),
('calories', models.IntegerField(blank=True, null=True)),
('creation_date', models.DateTimeField()),
('modified_date', models.DateTimeField()),
('eff_bgn_ts', models.DateTimeField()),
('eff_end_ts', models.DateTimeField()),
],
),
migrations.CreateModel(
name='Recipe',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.TextField()),
('sourceurl', models.TextField(null=True)),
('imageurl', models.TextField(null=True)),
('eff_bgn_ts', models.DateTimeField()),
('eff_end_ts', models.DateTimeField()),
('fridge', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='recipes', to='refrigerator_app.Fridge')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='recipes', to='users.User')),
],
),
migrations.CreateModel(
name='FridgeContent',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('expirationdate', models.DateTimeField()),
('size', models.IntegerField(blank=True, null=True)),
('creation_date', models.DateTimeField()),
('modified_date', models.DateTimeField()),
('eff_bgn_ts', models.DateTimeField()),
('eff_end_ts', models.DateTimeField()),
('addedby', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='fridge_contents', to='users.User')),
('fridge', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='fridge_contents', to='refrigerator_app.Fridge')),
('item', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='fridge_content', to='refrigerator_app.Item')),
],
),
]
| 51.44 | 156 | 0.593053 | 379 | 3,858 | 5.846966 | 0.242744 | 0.12861 | 0.075812 | 0.069495 | 0.708484 | 0.692238 | 0.66065 | 0.66065 | 0.66065 | 0.66065 | 0 | 0.010122 | 0.257387 | 3,858 | 74 | 157 | 52.135135 | 0.763351 | 0.011664 | 0 | 0.537313 | 1 | 0 | 0.139596 | 0.023091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044776 | 0 | 0.104478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5dbe23a3f91e59912c2d2c977974d2240a15477 | 2,106 | py | Python | decay/decays/sample/circle.py | pyl1b/decay | 7200516455fc03351ad658af66b5cc39b2b2d50a | [
"MIT"
] | null | null | null | decay/decays/sample/circle.py | pyl1b/decay | 7200516455fc03351ad658af66b5cc39b2b2d50a | [
"MIT"
] | null | null | null | decay/decays/sample/circle.py | pyl1b/decay | 7200516455fc03351ad658af66b5cc39b2b2d50a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Contains the definition of the CircleDecay class.
"""
from __future__ import unicode_literals
from __future__ import print_function
import logging
import numpy as np
from . import SampleBasedDecay
logger = logging.getLogger('decay.circle')
class CircleDecay(SampleBasedDecay):
"""
Class that decays the value following the circle curve.
The equation used to generate the samples was X^2 + Y^2 = 1.
This intersects the Y axis at
+1 and the X axis at -1 and +1. We're interested only in the
positive x.
"""
def __init__(self, *args, **kwargs):
""" Constructor. """
super(CircleDecay, self).__init__(
decay_name='.decay.circle.', *args, **kwargs)
def __str__(self):
""" Represent this object as a human-readable string. """
return 'CircleDecay()'
def __repr__(self):
""" Represent this object as a python constructor. """
return 'CircleDecay()'
decay_x = np.array([
0.0,
0.05263157894736842,
0.10526315789473684,
0.15789473684210525,
0.21052631578947367,
0.2631578947368421,
0.3157894736842105,
0.3684210526315789,
0.42105263157894735,
0.47368421052631576,
0.5263157894736842,
0.5789473684210527,
0.631578947368421,
0.6842105263157894,
0.7368421052631579,
0.7894736842105263,
0.8421052631578947,
0.894736842105263,
0.9473684210526315,
1.0,
])
decay_y = np.array([
1.0,
0.9986139979479093,
0.9944444014574307,
0.9874559494365115,
0.9775881905793005,
0.96475277788544,
0.9488292830168393,
0.929659038560826,
0.9070362073481099,
0.8806947647727111,
0.850289180073869,
0.8153649149910351,
0.7753115717187492,
0.7292845505553168,
0.6760648725613226,
0.6137844099837158,
0.5393131982084001,
0.44659375653887234,
0.3201453963314855,
0.0,
])
| 25.373494 | 65 | 0.613485 | 211 | 2,106 | 5.985782 | 0.507109 | 0.006334 | 0.025337 | 0.015835 | 0.041172 | 0.041172 | 0 | 0 | 0 | 0 | 0 | 0.421477 | 0.292498 | 2,106 | 82 | 66 | 25.682927 | 0.426175 | 0.193257 | 0 | 0.137931 | 0 | 0 | 0.031669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.086207 | 0 | 0.224138 | 0.017241 | 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 |
f5ed71ac2026755834080e980fc83df89243939f | 1,550 | py | Python | python_code_snippets/Machine Learning/feature_importance.py | gijsybema/my_utils | dfffcc948c51c08a0dc7581cf6e71125a2bb2f54 | [
"MIT"
] | null | null | null | python_code_snippets/Machine Learning/feature_importance.py | gijsybema/my_utils | dfffcc948c51c08a0dc7581cf6e71125a2bb2f54 | [
"MIT"
] | null | null | null | python_code_snippets/Machine Learning/feature_importance.py | gijsybema/my_utils | dfffcc948c51c08a0dc7581cf6e71125a2bb2f54 | [
"MIT"
] | null | null | null | # Import packages
import numpy as np
import pandas as pd
# Define functions
def feature_importance_linear(pipe):
model = pipe.fit(X_train, y_train)
feature_names = model['vec'].get_feature_names()
coefs = model['clf'].coef_[0]
return pd.DataFrame(zip(feature_names, coefs), columns =['feature', 'coef']).sort_values(by='coef', ascending=False).head(10)
def feature_importance_tree(pipe):
model = pipe.fit(X_train, y_train)
feature_names = model['vec'].get_feature_names()
coefs = model['clf'].feature_importances_
return pd.DataFrame(zip(feature_names, coefs), columns =['feature', 'coef']).sort_values(by='coef', ascending=False).head(10)
def feature_importance_svm(pipe):
model = pipe.fit(X_train, y_train)
feature_names = model['vec'].get_feature_names()
coefs = model['clf'].coef_.T.toarray()[:,0]
return pd.DataFrame(zip(feature_names, coefs), columns =['feature', 'coef']).sort_values(by='coef', ascending=False).head(10)
def feature_importance(pipe, name):
if name in ['Naive Bayes CountVec', 'Naive Bayes Tfidf', 'LogisticRegression CountVec', 'LogisticRegression Tfidf']:
output = feature_importance_linear(pipe)
elif name in ['SVM CountVec', 'SVM Tfidf']:
output = feature_importance_svm(pipe)
elif name in ['Random Forest CountVec', 'Random Forest Tfidf', 'Adaboost Countvec', 'Adaboost Tfidf', 'GradientBoosting Countvec', 'GradientBoosting Tfidf']:
output = feature_importance_tree(pipe)
else:
output = 'Name not found'
return output | 46.969697 | 161 | 0.712258 | 204 | 1,550 | 5.22549 | 0.289216 | 0.101313 | 0.095685 | 0.045028 | 0.535647 | 0.535647 | 0.535647 | 0.535647 | 0.535647 | 0.535647 | 0 | 0.006065 | 0.149032 | 1,550 | 33 | 162 | 46.969697 | 0.802123 | 0.020645 | 0 | 0.333333 | 0 | 0 | 0.201187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.37037 | 0 | 0.666667 | 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 |
f5ee30ccae569645ce207a8f4ba4d950c86b7b1d | 112 | py | Python | python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Ineger_manupulation.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Ineger_manupulation.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Ineger_manupulation.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z | a=int(input("Input an integer :"))
n1=int("%s"%a)
n2=int("%s%s"%(a,a))
n3=int("%s%s%s"%(a,a,a))
print(n1+n2+n3)
| 18.666667 | 34 | 0.544643 | 28 | 112 | 2.178571 | 0.357143 | 0.196721 | 0.163934 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.071429 | 112 | 5 | 35 | 22.4 | 0.528846 | 0 | 0 | 0 | 0 | 0 | 0.267857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
f5fc8094e9eaa0118bfad1d51371d90592d700c4 | 451 | py | Python | hummingbot/strategy/technical_analysis/__init__.py | sirEven/hummingbot | b0e8d87bbe26857af7797bad474d1dadf8107a65 | [
"Apache-2.0"
] | null | null | null | hummingbot/strategy/technical_analysis/__init__.py | sirEven/hummingbot | b0e8d87bbe26857af7797bad474d1dadf8107a65 | [
"Apache-2.0"
] | null | null | null | hummingbot/strategy/technical_analysis/__init__.py | sirEven/hummingbot | b0e8d87bbe26857af7797bad474d1dadf8107a65 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from .technical_analysis import TechnicalAnalysisStrategy
from hummingbot.strategy.asset_price_delegate import AssetPriceDelegate
from hummingbot.strategy.order_book_asset_price_delegate import OrderBookAssetPriceDelegate
from hummingbot.strategy.api_asset_price_delegate import APIAssetPriceDelegate
__all__ = [
TechnicalAnalysisStrategy,
AssetPriceDelegate,
OrderBookAssetPriceDelegate,
APIAssetPriceDelegate
] | 37.583333 | 91 | 0.866962 | 41 | 451 | 9.195122 | 0.512195 | 0.111406 | 0.175066 | 0.190981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093126 | 451 | 12 | 92 | 37.583333 | 0.92176 | 0.044346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
f5fe6c34e805a02718e3cfde518c4e7cec62823c | 2,112 | py | Python | tests/helpers/dummy_class_helper.py | robertapplin/N-Body-Simulations | 9cd9887c64e5c256ad4dbcb86b227561ed7ff413 | [
"MIT"
] | null | null | null | tests/helpers/dummy_class_helper.py | robertapplin/N-Body-Simulations | 9cd9887c64e5c256ad4dbcb86b227561ed7ff413 | [
"MIT"
] | 13 | 2021-01-17T13:19:25.000Z | 2022-02-11T21:51:45.000Z | tests/helpers/dummy_class_helper.py | robertapplin/N-Body-Simulations | 9cd9887c64e5c256ad4dbcb86b227561ed7ff413 | [
"MIT"
] | null | null | null | # Project Repository : https://github.com/robertapplin/N-Body-Simulations
# Authored by Robert Applin, 2020
from n_body_simulations.body_marker import BodyMarker
from n_body_simulations.error_catcher import catch_errors
from n_body_simulations.simulation_animator import SimulationAnimator
from NBodySimulations import Vector2D
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QTableWidget, QTableWidgetItem
class DummyBodyTable(QTableWidget):
"""A class used as a dummy body data table for the purposes of testing."""
itemExited = pyqtSignal(QTableWidgetItem)
def __init__(self):
super(DummyBodyTable, self).__init__(None)
class DummyErrorProneClass:
"""A class used for testing the error catcher by causing various errors and exceptions."""
def __init__(self):
pass
def cause_an_uncaught_exception(self):
raise RuntimeError("This is a RuntimeError.")
@catch_errors()
def cause_an_exception(self):
raise RuntimeError("This is a RuntimeError.")
@catch_errors()
def divide_by_zero(self):
return 10 / 0
@catch_errors()
def index_out_of_range(self):
test_list = [0, 1, 2, 3]
return test_list[4]
@catch_errors()
def function_that_returns_nothing(self):
_ = 1 + 2
@catch_errors()
def function_that_returns_a_value(self):
return 1.0
class DummyInteractivePlot:
"""A class used as a dummy interactive plot for the purposes of testing the animator."""
def __init__(self):
self._figure = Figure()
self._canvas = FigureCanvas(self._figure)
self._ax = self._figure.add_subplot(111)
self.animator = SimulationAnimator(self._figure)
self.lines = {"Sun": self._ax.plot(0.0, 0.0)[0]}
self.body_markers = {"Sun":
BodyMarker(self._canvas, "green", "Sun", 1.0, Vector2D(0.0, 0.0), Vector2D(0.0, 0.0), True,
True, 1)}
| 31.058824 | 120 | 0.690814 | 266 | 2,112 | 5.25188 | 0.394737 | 0.014316 | 0.015032 | 0.011453 | 0.21403 | 0.181102 | 0.090193 | 0.090193 | 0.090193 | 0.090193 | 0 | 0.024879 | 0.219697 | 2,112 | 67 | 121 | 31.522388 | 0.822816 | 0.161458 | 0 | 0.232558 | 0 | 0 | 0.034208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0.023256 | 0.186047 | 0.046512 | 0.55814 | 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 |
eb050e3cbc76c8cabd093dbdca27d57a70e3fc8e | 901 | py | Python | geotrek/zoning/migrations/0004_auto_20200831_1406.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 50 | 2016-10-19T23:01:21.000Z | 2022-03-28T08:28:34.000Z | geotrek/zoning/migrations/0004_auto_20200831_1406.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 1,422 | 2016-10-27T10:39:40.000Z | 2022-03-31T13:37:10.000Z | geotrek/zoning/migrations/0004_auto_20200831_1406.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 46 | 2016-10-27T10:59:10.000Z | 2022-03-22T15:55:56.000Z | # Generated by Django 2.2.15 on 2020-08-31 14:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zoning', '0003_auto_20200406_1412'),
]
operations = [
migrations.AddField(
model_name='city',
name='published',
field=models.BooleanField(default=True, help_text='Visible on Geotrek-rando', verbose_name='Published'),
),
migrations.AddField(
model_name='district',
name='published',
field=models.BooleanField(default=True, help_text='Visible on Geotrek-rando', verbose_name='Published'),
),
migrations.AddField(
model_name='restrictedarea',
name='published',
field=models.BooleanField(default=True, help_text='Visible on Geotrek-rando', verbose_name='Published'),
),
]
| 31.068966 | 116 | 0.618202 | 92 | 901 | 5.923913 | 0.456522 | 0.143119 | 0.126606 | 0.148624 | 0.627523 | 0.627523 | 0.627523 | 0.627523 | 0.627523 | 0.627523 | 0 | 0.048193 | 0.263041 | 901 | 28 | 117 | 32.178571 | 0.77259 | 0.051054 | 0 | 0.545455 | 1 | 0 | 0.212192 | 0.026964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eb0ccf3d72e33a024cbe291e0c8804d076f9559a | 6,627 | py | Python | homzhub_customization/homzhub_customization/doctype/offer_confirmation/offer_confirmation.py | HPL-ERP/homzhub_customization | 311364116aa61fc00b263c78ffbb6d3946cff154 | [
"MIT"
] | null | null | null | homzhub_customization/homzhub_customization/doctype/offer_confirmation/offer_confirmation.py | HPL-ERP/homzhub_customization | 311364116aa61fc00b263c78ffbb6d3946cff154 | [
"MIT"
] | null | null | null | homzhub_customization/homzhub_customization/doctype/offer_confirmation/offer_confirmation.py | HPL-ERP/homzhub_customization | 311364116aa61fc00b263c78ffbb6d3946cff154 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Homzhub and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class OfferConfirmation(Document):
# sending the email for propert offer confirmation
def on_submit(self):
self.send_email_from_offer_confirmation()
self.send_email_from_tenancy_confirmation()
def send_email_from_offer_confirmation(self):
msg=''
for ow in self.get('owner_list'):
customer_name=frappe.db.get_value('Customer',ow.prop_owner,'customer_name')
email=frappe.db.get_value('Customer',ow.prop_owner,'email_id')
msg="""<p> Hello {0}, <br>
{1},{2},{3},{4} on {5} </p><br> """.format(customer_name,self.society_name,self.address_line_1,self.city,self.state,self.date_of_visit)
msg+="""<p><b>Note:</b> To confirm this offer simply fill the Customer Information Form.</p>"""
msg+="""<b> Prospective Tenant’s Details:</b><br>"""
msg += """</u></b></p><table class='table table-bordered'><tr>
<th>Name</th><th>Tenant Type</th><th>Profession</th><th>No Of Peoples</th>"""
msg += "<tr><td>" + customer_name + "</td><td>" + self.tenant_type + "</td><td>" + str(self.get('profession')) + "</td><td>" + str(self.get('no_of_people'))
msg += "</table><br>"
msg +="""<b> Please take note of few requests from the Prospective Tenant:</b><br>"""
msg += """</u></b></p><table class='table table-bordered'><tr>
<th>Duration</th><th>Tenancy Start Date</th><th>Monthly Rent</th><th>Security Deposite</th>"""
msg += "<tr><td>" + str(self.get('duration_of_stay')) + "</td><td>" + str(self.get('move_in_date')) + "</td><td>" + str(self.get('monthly_rent')) + "</td><td>" + str(self.get('security_deposit'))
msg += "</table><br>"
msg+="""<b> Key Lease Terms:</b><br>"""
msg += """</u></b></p><table class='table table-bordered'><tr>
<th>Lock-in-period:</th><th>Society Maintenance Charges:</th><th>Utility(Electricity, Water, Cable etc.):</th>"""
msg += "<tr><td>" + str(self.get('lock_in_period')) + "</td><td>" + str(self.get('society_maintenance')) + "</td><td>" + str(self.get('utilities'))
msg += "</table><br>"
msg+="""<p><b>Note:</b> Addition Requirements, if any:</b> No.</p>"""
msg+="""<p>Please let us know if you are interested in going ahead with this offer from the prospective tenant.<br>
If you are interested, we would highly recommend you to get a comprehensive tenant background check done.<br>
It covers identity, address, credit history, criminal / police and employment verifications from authentic sources for INR 1999. <br>
If you have opted for Homzhub Comfort service then you would receive the background check report for free.</p><br>"""
msg+="""<p><b>The next step would be:</b><br>
1. Your confirmation to go ahead on this offer and filled Customer Information Form.<br>
2. Your confirmation, if you would like to avail background check.<br>
3. We will send you the Customer Information Form - to initiate the process of drafting tenancy agreement.<br>
4. Handing over the keys to the property to your new tenant.</p><br>"""
msg+="""<p> We look forward to hearing from you. Please let us know if you have any further queries or concerns.<br>
Regards,<br>
Team Homzhub </p>"""
print(msg)
frappe.sendmail(recipients=email,subject='Offer Confirmation',message = msg)
def send_email_from_tenancy_confirmation(self):
msg=''
# tenant_name=frappe.db.get_values("Tenant List", {'name': 'tenant'}, "tenant_name", as_dict=True)
for tn in self.get('tenant_list'):
tenant_name=frappe.db.get_value('Customer',tn.tenant,'customer_name')
email=frappe.db.get_value('Customer',tn.tenant,'email_id')
msg="""<p> Hello {0}, <br>
This is to confirm your tenancy interest in the following property visited on {1}.</p><br> """.format(tenant_name,self.date_of_visit)
msg+="""<p><b>Note:</b> To confirm this offer simply fill the Customer Information Form.</p>"""
msg+="""<b> Property Details:</b><br>"""
msg+="""<p><b> Property Address :</b> {0},{1},{2},{3}</p>""".format(self.society_name,self.address_line_1,self.city,self.state)
msg+="""<p><b>Configuration :</b> {0}BHK</p><br>""".format(self.bhk)
# msg += """</u></b></p><table class='table table-boredered'><tr>
# <tv>Property Address:</tv><tv>Configuration:</tv>"""
# msg += "</td><td>"+ str(self.get('society_name'))+ "</td><td>" + str(self.get('address'))+"</td><td>" + str(self.get('state'))+ "</td><td>" + str(self.get('bhk'))
# msg += "</table>"
msg +="""<b> Please take note of the Key tenancy terms:</b><br>"""
msg += """</u></b></p><table class='table table-bordered'><tr>
<th>Furnishing Type</th><th>Duration of Tenancy Period</th><th>Tenancy Start Date</th><th>Monthly Rent</th><th>Security Deposite</th>"""
msg += "<tr><td>" + str(self.get('furnishing_type')) + "</td><td>" + str(self.get('duration_of_stay'))+ "</td><td>" + str(self.get('move_in_date')) + "</td><td>" + str(self.get('monthly_rent')) + "</td><td>" + str(self.get('security_deposit'))
msg += "</table>"
msg+="""<br>"""
msg+="""<b> Key Lease Terms:</b><br>"""
msg += """</u></b></p><table class='table table-bordered'><tr>
<th>Lock-in-period:</th><th>Society Maintenance Charges:</th><th>Utility(Electricity, Water, Cable etc.):</th>"""
msg += "<tr><td>" + str(self.get('lock_in_period')) + "</td><td>" + str(self.get('society_maintenance')) + "</td><td>" + str(self.get('utilities'))
msg += "</table>"
msg+="""<br>"""
msg+="""<p><b>Note:</b> Addition Requirements, if any:</b> No.</p><br>"""
msg+="""<p><b>The next step would be:</b><br>
1. Your confirmation on this offer and filled Customer Information Form.<br>
2. If the property owner wishes to get your background check done, you may need to submit background check consent form along with all documents.<br>
3. Completing the legal paperwork i.e the Rental Agreements and Payment of stamp duty and registration fees.</p><br>"""
msg+="""<p> We look forward to hearing from you. Please let us know if you have any further queries or concerns.<br>
Regards,<br>
Team Homzhub </p>"""
print(msg)
frappe.sendmail(recipients=email,subject='Tendancy Confirmation',message = msg)
| 58.646018 | 251 | 0.624717 | 976 | 6,627 | 4.163934 | 0.230533 | 0.039616 | 0.046506 | 0.062008 | 0.580955 | 0.540846 | 0.496309 | 0.477116 | 0.439222 | 0.439222 | 0 | 0.005672 | 0.175343 | 6,627 | 112 | 252 | 59.169643 | 0.737969 | 0.084654 | 0 | 0.435897 | 0 | 0.24359 | 0.631031 | 0.051884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.089744 | 0.025641 | 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 |
eb17aba1f3377dcdb9e414b711678fa34ffe0c7c | 1,326 | py | Python | marucat_app/settings.py | zfanli/marucat | a876756de63b461e0629f28254308cc3ee8415f3 | [
"MIT"
] | null | null | null | marucat_app/settings.py | zfanli/marucat | a876756de63b461e0629f28254308cc3ee8415f3 | [
"MIT"
] | null | null | null | marucat_app/settings.py | zfanli/marucat | a876756de63b461e0629f28254308cc3ee8415f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Global settings."""
from flask import Blueprint, jsonify, request
# handling the url start with '/articles'
bp = Blueprint('settings', __name__, url_prefix='/settings')
# Database helper key
SETTINGS_HELPER = 'settings_helper'
@bp.route('/', methods=['GET'])
def get_settings_list():
"""Fetch settings list
:return: settings list
"""
# TODO
data = [
{'name': 'test', 'value': 'v2'},
{'name': 'test1', 'value': 'v3'},
]
return jsonify(data), 200
@bp.route('/<name>', methods=['GET'])
def get_settings(name):
"""Get specified setting by name.
:param name: name
:return: more information
"""
return name
@bp.route('/<name>', methods=['PUT'])
def update_settings(name):
"""Update settings
:param name: setting's identifier
:return:
"""
# TODO
return name + '\n'
@bp.route('/', methods=['POST'])
def create_settings():
"""Create settings
Request's MIME should be application/json type.
:return: created settings
"""
# TODO
return request.get_json()
@bp.route('/<name>', methods=['DELETE'])
def delete_settings(name):
"""Delete settings
:param name: setting's identifier
:return: delete result
"""
# TODO
return name + '\n'
| 18.164384 | 60 | 0.604072 | 154 | 1,326 | 5.11039 | 0.415584 | 0.044473 | 0.041931 | 0.068615 | 0.165184 | 0.104193 | 0.104193 | 0 | 0 | 0 | 0 | 0.007767 | 0.223228 | 1,326 | 72 | 61 | 18.416667 | 0.756311 | 0.366516 | 0 | 0.090909 | 0 | 0 | 0.147099 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.5 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de1920b4f5caab7e1212550b93d1352d17096654 | 426 | py | Python | Aniyom Ebenezer/Phase 2/STRINGS/Day_37_Challenge_Solution/Question 4 Solution.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Aniyom Ebenezer/Phase 2/STRINGS/Day_37_Challenge_Solution/Question 4 Solution.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Aniyom Ebenezer/Phase 2/STRINGS/Day_37_Challenge_Solution/Question 4 Solution.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | """
Write a Python program to swap cases of a given string.
Sample Output:
pYTHON eXERCISES
jAVA
nUMpy
"""
def swap_case_string(str1):
result_str = ""
for item in str1:
if item.isupper():
result_str += item.lower()
else:
result_str += item.upper()
return result_str
print(swap_case_string("Python Exercises"))
print(swap_case_string("Java"))
print(swap_case_string("NumPy")) | 23.666667 | 55 | 0.666667 | 59 | 426 | 4.610169 | 0.508475 | 0.117647 | 0.205882 | 0.209559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.220657 | 426 | 18 | 56 | 23.666667 | 0.813253 | 0.230047 | 0 | 0 | 0 | 0 | 0.077882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.272727 | 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 |
de20346c2bcf52d5bc10371e703843fcbbaa5442 | 1,031 | py | Python | imgapp/management/commands/create_token.py | Thakursim/dodjapp | db1f75c1790c36cbd8b69b0388c022c98dc17708 | [
"MIT"
] | null | null | null | imgapp/management/commands/create_token.py | Thakursim/dodjapp | db1f75c1790c36cbd8b69b0388c022c98dc17708 | [
"MIT"
] | 1 | 2020-10-26T08:41:31.000Z | 2020-10-26T08:41:31.000Z | imgapp/management/commands/create_token.py | Thakursim/dodjapp | db1f75c1790c36cbd8b69b0388c022c98dc17708 | [
"MIT"
] | 1 | 2020-10-26T08:19:55.000Z | 2020-10-26T08:19:55.000Z | import getpass
from django.core.management import BaseCommand
from django.contrib.auth.models import User
from django.db import IntegrityError
from rest_framework.authtoken.models import Token
#The class must be named Command, and subclass BaseCommand
class Command(BaseCommand):
# Show this when the user types help
help = "Command to create user and get token in response"
# A command must define handle()
def handle(self, *args, **options):
success = True
while success:
try:
username = str(raw_input('Username: '))
password = getpass.getpass('Password: ')
user = User.objects.create(username=username, password=password)
api_key=Token.objects.create(user=user)
success = False
print "User Created Successfully with this token -> %s" % api_key.key
except IntegrityError as e:
if 'UNIQUE constraint failed: auth_user.username' in e.message:
print "Username already exists, Please try again with different username"
else:
print (e)
except Exception as e:
print(e) | 33.258065 | 78 | 0.738118 | 141 | 1,031 | 5.361702 | 0.531915 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180407 | 1,031 | 31 | 79 | 33.258065 | 0.894675 | 0.119302 | 0 | 0.083333 | 0 | 0 | 0.247241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.125 | 0.208333 | null | null | 0.166667 | 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 |
de3813768a1940e45c09dfb8815e9007af7dc479 | 82 | py | Python | functional_tests/settings/module/lib.py | borisgrafx/client | c079f7816947a3092b500751eb920fda3866985f | [
"MIT"
] | null | null | null | functional_tests/settings/module/lib.py | borisgrafx/client | c079f7816947a3092b500751eb920fda3866985f | [
"MIT"
] | null | null | null | functional_tests/settings/module/lib.py | borisgrafx/client | c079f7816947a3092b500751eb920fda3866985f | [
"MIT"
] | null | null | null | import wandb
if __name__ == "__main__":
run = wandb.init()
run.finish()
| 11.714286 | 26 | 0.609756 | 10 | 82 | 4.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 82 | 6 | 27 | 13.666667 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
de3b0ea16f9a02c9e776beb13d93ff43a2a7dc05 | 3,195 | py | Python | file_downloader.py | Caleb-Shepard/Canvas-File-Control | 0dbafe6c2cd7e68ddfad2f03ef5c332a811aa1b1 | [
"BSD-3-Clause"
] | null | null | null | file_downloader.py | Caleb-Shepard/Canvas-File-Control | 0dbafe6c2cd7e68ddfad2f03ef5c332a811aa1b1 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T02:23:46.000Z | 2018-03-03T02:23:46.000Z | file_downloader.py | Caleb-Shepard/Canvas-File-Control | 0dbafe6c2cd7e68ddfad2f03ef5c332a811aa1b1 | [
"BSD-3-Clause"
] | null | null | null | # **************************************************************************** #
# #
# |\ #
# file_downloader.py ------| \---- #
# | \` \ | p #
# By: cshepard6055 <cshepard6055@floridapoly.edu> | \`-\ \ | o #
# |---\ \ `| l #
# Created: 2018/10/02 20:17:10 by cshepard6055 | ` .\ \ | y #
# Updated: 2018/10/02 20:20:38 by cshepard6055 ------------- #
# #
# **************************************************************************** #
from selenium import webdriver
from time import sleep
import selenium
import getpass
# DEFINE GLOBALS
CHROMEDRIVER_PATH = "/usr/local/bin/chromedriver"
WEBDRIVER_SLEEP = 5
DEBUG_MODE = True
CANVAS_URL = "https://floridapolytechnic.instructure.com/"
def chromedriver_get(url, chrome_instance):
chrome_instance.get(url)
sleep(WEBDRIVER_SLEEP)
# print debug messages when debug mode is active; otherwise just ignore
def print_debug_messages(debug_message):
if DEBUG_MODE is True:
print(debug_message)
def canvas_login(chrome_instance):
print_debug_messages("exec canvas_login()")
chromedriver_get(CANVAS_URL, chrome_instance)
# Enter username, password, and submit
username_box = chrome_instance.find_element_by_id("userNameInput")
username_box.send_keys(input("username: "))
password_box = chrome_instance.find_element_by_id ("passwordInput")
password_box.send_keys(getpass.getpass("Password: "))
chrome_instance.find_element_by_id("submitButton").click()
def get_file_download_urls(course_url, chrome_instance):
print_debug_messages("exec get_file_download_urls()")
files_url_suffix = r"/files"
course_files_url = course_url + files_url_suffix
file_download_links = []
chromedriver_get(course_files_url, chrome_instance)
# scan for hyperlinks containing files
course_files = chrome_instance.find_elements_by_class_name("ef-name-col__link")
for course_file in course_files:
file_download_link = course_file.get_attribute("href")
file_download_links.append(file_download_link)
return file_download_links
#TODO
def download_files(file_urls, chrome_instance):
pass
def main():
print_debug_messages("exec main()")
print_debug_messages("Dirty hack that accesses course files for comp arch")
course_url = "https://floridapolytechnic.instructure.com/courses/2556"
chrome_instance = webdriver.Chrome(executable_path=CHROMEDRIVER_PATH)
canvas_login(chrome_instance)
file_urls = get_file_download_urls(course_url, chrome_instance)
# Simple functionality demonstration
for file_url in file_urls:
chromedriver_get(file_url, chrome_instance)
download_files(file_urls, chrome_instance)
chrome_instance.quit()
main()
| 35.898876 | 83 | 0.593114 | 327 | 3,195 | 5.455657 | 0.345566 | 0.133408 | 0.057175 | 0.036996 | 0.215807 | 0.170964 | 0.08296 | 0.047085 | 0 | 0 | 0 | 0.02113 | 0.274178 | 3,195 | 88 | 84 | 36.306818 | 0.748167 | 0.330203 | 0 | 0 | 0 | 0 | 0.151587 | 0.024159 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.12766 | false | 0.085106 | 0.085106 | 0 | 0.234043 | 0.12766 | 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 |
de4f41fde3a7c898a2d91b4e9f2fe28115b4c547 | 1,001 | py | Python | accounts/views.py | knowapi/DeveloperPortalExamples | bbe50f333d1257fdbb107b507c09221b543e7d8d | [
"MIT"
] | 2 | 2016-10-30T20:28:03.000Z | 2017-03-28T08:55:20.000Z | accounts/views.py | knowapi/DeveloperPortalExamples | bbe50f333d1257fdbb107b507c09221b543e7d8d | [
"MIT"
] | 11 | 2016-09-10T09:43:16.000Z | 2022-01-13T00:42:40.000Z | accounts/views.py | knowapi/DeveloperPortalExamples | bbe50f333d1257fdbb107b507c09221b543e7d8d | [
"MIT"
] | 3 | 2017-01-02T11:54:54.000Z | 2018-01-02T05:58:43.000Z | from django.http import JsonResponse, HttpResponse
from django.views.generic import View
from django.shortcuts import render
from accounts.models import User
from django.contrib.auth import login
from django.shortcuts import redirect
class Signup(View):
template_name = "signup.html"
def __init__(self, **kwargs):
pass
def get(self, request):
# Only fetch students
return render(request, self.template_name)
def post(self, request):
try:
first_name = request.POST.get("first_name")
last_name = request.POST.get("last_name")
email = request.POST.get("email")
raw_password = request.POST.get("password")
new_user = User.objects.create_user(email, first_name= first_name, last_name = last_name, email = email)
new_user.set_password(raw_password)
new_user.save()
login(self.request, new_user)
except:
pass
return redirect('/') | 34.517241 | 116 | 0.652348 | 123 | 1,001 | 5.130081 | 0.382114 | 0.079239 | 0.088748 | 0.079239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256743 | 1,001 | 29 | 117 | 34.517241 | 0.848118 | 0.018981 | 0 | 0.08 | 0 | 0 | 0.044852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.16 | 0.24 | 0.04 | 0.52 | 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 |
de568ac148defb273a47b2e644675ab780c2dd51 | 100 | py | Python | PycharmProjects/untitled/Faculdade/aula5/terceiro.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | PycharmProjects/untitled/Faculdade/aula5/terceiro.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | PycharmProjects/untitled/Faculdade/aula5/terceiro.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | frase = str(input('Digite uma frase: '))
m5 = ' '.join(frase.replace(' ', ''))
print(m5.split())
| 14.285714 | 40 | 0.57 | 13 | 100 | 4.384615 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.16 | 100 | 6 | 41 | 16.666667 | 0.654762 | 0 | 0 | 0 | 0 | 0 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
de581b8f7e70da48216aac01f41347924a58088f | 711 | py | Python | src/logger.py | vchychuzhko/notifyme-py | ce9055a74100295dc5d9acca9a769f59c33ed406 | [
"MIT"
] | null | null | null | src/logger.py | vchychuzhko/notifyme-py | ce9055a74100295dc5d9acca9a769f59c33ed406 | [
"MIT"
] | null | null | null | src/logger.py | vchychuzhko/notifyme-py | ce9055a74100295dc5d9acca9a769f59c33ed406 | [
"MIT"
] | null | null | null | from src.datetime import DateTime
from src.filemanager import FileManager
class Logger:
__LOG_DIR = '/var/log/'
__INFO_LOG_FILE = 'info.log'
__ERROR_LOG_FILE = 'exception.log'
def __init__(self):
self.datetime = DateTime()
self.filemanager = FileManager()
def info(self, message):
self.__write(self.__INFO_LOG_FILE, message)
def error(self, error_type, message):
self.__write(self.__ERROR_LOG_FILE, error_type + ': ' + message)
def __write(self, log_file, message):
self.filemanager.write_file(
self.__LOG_DIR + log_file,
'[' + self.datetime.get_current_time() + '] ' + message + "\n",
True
)
| 27.346154 | 75 | 0.630098 | 84 | 711 | 4.869048 | 0.297619 | 0.102689 | 0.05379 | 0.0978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254571 | 711 | 25 | 76 | 28.44 | 0.771698 | 0 | 0 | 0 | 0 | 0 | 0.052039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.526316 | 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 |
de59225de6f163f029f80e942b2130cc566a69d1 | 16,600 | py | Python | cmd/glue/py/fpixel_pb2.py | miaoulabs/flamingsteve | 5d9c3e184be33115cdbb7826f1560e6cfe145431 | [
"MIT"
] | null | null | null | cmd/glue/py/fpixel_pb2.py | miaoulabs/flamingsteve | 5d9c3e184be33115cdbb7826f1560e6cfe145431 | [
"MIT"
] | null | null | null | cmd/glue/py/fpixel_pb2.py | miaoulabs/flamingsteve | 5d9c3e184be33115cdbb7826f1560e6cfe145431 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: fpixel.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_dot_options_dot_annotations__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='fpixel.proto',
package='fpixels',
syntax='proto3',
serialized_options=b'\222A5\022 \n\027Flame Pixels Controller2\0050.1.0\032\016localhost:8080*\001\001',
serialized_pb=b'\n\x0c\x66pixel.proto\x12\x07\x66pixels\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto\"\x0e\n\x0c\x45mptyRequest\"\x0c\n\nEmptyReply\"7\n\x13ListSensorsResponse\x12 \n\x07sensors\x18\x01 \x03(\x0b\x32\x0f.fpixels.Device\"\"\n\x14SensorRawDataRequest\x12\n\n\x02id\x18\x01 \x01(\t\"(\n\x15SensorRawDataResponse\x12\x0f\n\x07payload\x18\x01 \x01(\t\":\n\x14ListDisplaysResponse\x12\"\n\x08\x64isplays\x18\x01 \x03(\x0b\x32\x10.fpixels.Display\"\x19\n\x0b\x44rawRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x7f\n\x06\x44\x65vice\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05model\x18\x03 \x01(\t\x12\x10\n\x08hostname\x18\x04 \x01(\t\":\n\x04Type\x12\x0b\n\x07Unknown\x10\x00\x12\x0b\n\x07\x44isplay\x10\x01\x12\n\n\x06Sensor\x10\x02\x12\x0c\n\x08Presence\x10\x03\"I\n\x07\x44isplay\x12\x1f\n\x06\x64\x65vice\x18\x01 \x01(\x0b\x32\x0f.fpixels.Device\x12\r\n\x05width\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r2\xbd\x03\n\x0b\x46lamePixels\x12g\n\x0bListSensors\x12\x15.fpixels.EmptyRequest\x1a\x1c.fpixels.ListSensorsResponse\"#\x92\x41\r\x12\x0bListSensors\x82\xd3\xe4\x93\x02\r\x12\x0b/v1/sensors\x12\x80\x01\n\x10GetSensorRawData\x12\x1d.fpixels.SensorRawDataRequest\x1a\x1e.fpixels.SensorRawDataResponse\"-\x92\x41\x0f\x12\rSensorRawData\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/sensor/{id}/raw\x12k\n\x0cListDisplays\x12\x15.fpixels.EmptyRequest\x1a\x1d.fpixels.ListDisplaysResponse\"%\x92\x41\x0e\x12\x0cListDisplays\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1/displays\x12U\n\x04\x44raw\x12\x14.fpixels.DrawRequest\x1a\x14.fpixels.DrawRequest\"!\x92\x41\x06\x12\x04\x44raw\x82\xd3\xe4\x93\x02\x12\x1a\r/v1/draw/{id}:\x01*B8\x92\x41\x35\x12 \n\x17\x46lame Pixels Controller2\x05\x30.1.0\x1a\x0elocalhost:8080*\x01\x01\x62\x06proto3'
,
dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,protoc__gen__swagger_dot_options_dot_annotations__pb2.DESCRIPTOR,])
_DEVICE_TYPE = _descriptor.EnumDescriptor(
name='Type',
full_name='fpixels.Device.Type',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='Unknown', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='Display', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='Sensor', index=2, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='Presence', index=3, number=3,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=422,
serialized_end=480,
)
_sym_db.RegisterEnumDescriptor(_DEVICE_TYPE)
_EMPTYREQUEST = _descriptor.Descriptor(
name='EmptyRequest',
full_name='fpixels.EmptyRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=101,
serialized_end=115,
)
_EMPTYREPLY = _descriptor.Descriptor(
name='EmptyReply',
full_name='fpixels.EmptyReply',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=117,
serialized_end=129,
)
_LISTSENSORSRESPONSE = _descriptor.Descriptor(
name='ListSensorsResponse',
full_name='fpixels.ListSensorsResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='sensors', full_name='fpixels.ListSensorsResponse.sensors', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=131,
serialized_end=186,
)
_SENSORRAWDATAREQUEST = _descriptor.Descriptor(
name='SensorRawDataRequest',
full_name='fpixels.SensorRawDataRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='fpixels.SensorRawDataRequest.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=188,
serialized_end=222,
)
_SENSORRAWDATARESPONSE = _descriptor.Descriptor(
name='SensorRawDataResponse',
full_name='fpixels.SensorRawDataResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='payload', full_name='fpixels.SensorRawDataResponse.payload', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=224,
serialized_end=264,
)
_LISTDISPLAYSRESPONSE = _descriptor.Descriptor(
name='ListDisplaysResponse',
full_name='fpixels.ListDisplaysResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='displays', full_name='fpixels.ListDisplaysResponse.displays', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=266,
serialized_end=324,
)
_DRAWREQUEST = _descriptor.Descriptor(
name='DrawRequest',
full_name='fpixels.DrawRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='fpixels.DrawRequest.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=326,
serialized_end=351,
)
_DEVICE = _descriptor.Descriptor(
name='Device',
full_name='fpixels.Device',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='fpixels.Device.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='name', full_name='fpixels.Device.name', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='model', full_name='fpixels.Device.model', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='hostname', full_name='fpixels.Device.hostname', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
_DEVICE_TYPE,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=353,
serialized_end=480,
)
_DISPLAY = _descriptor.Descriptor(
name='Display',
full_name='fpixels.Display',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='device', full_name='fpixels.Display.device', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='width', full_name='fpixels.Display.width', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='height', full_name='fpixels.Display.height', index=2,
number=3, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=482,
serialized_end=555,
)
_LISTSENSORSRESPONSE.fields_by_name['sensors'].message_type = _DEVICE
_LISTDISPLAYSRESPONSE.fields_by_name['displays'].message_type = _DISPLAY
_DEVICE_TYPE.containing_type = _DEVICE
_DISPLAY.fields_by_name['device'].message_type = _DEVICE
DESCRIPTOR.message_types_by_name['EmptyRequest'] = _EMPTYREQUEST
DESCRIPTOR.message_types_by_name['EmptyReply'] = _EMPTYREPLY
DESCRIPTOR.message_types_by_name['ListSensorsResponse'] = _LISTSENSORSRESPONSE
DESCRIPTOR.message_types_by_name['SensorRawDataRequest'] = _SENSORRAWDATAREQUEST
DESCRIPTOR.message_types_by_name['SensorRawDataResponse'] = _SENSORRAWDATARESPONSE
DESCRIPTOR.message_types_by_name['ListDisplaysResponse'] = _LISTDISPLAYSRESPONSE
DESCRIPTOR.message_types_by_name['DrawRequest'] = _DRAWREQUEST
DESCRIPTOR.message_types_by_name['Device'] = _DEVICE
DESCRIPTOR.message_types_by_name['Display'] = _DISPLAY
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
EmptyRequest = _reflection.GeneratedProtocolMessageType('EmptyRequest', (_message.Message,), {
'DESCRIPTOR' : _EMPTYREQUEST,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.EmptyRequest)
})
_sym_db.RegisterMessage(EmptyRequest)
EmptyReply = _reflection.GeneratedProtocolMessageType('EmptyReply', (_message.Message,), {
'DESCRIPTOR' : _EMPTYREPLY,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.EmptyReply)
})
_sym_db.RegisterMessage(EmptyReply)
ListSensorsResponse = _reflection.GeneratedProtocolMessageType('ListSensorsResponse', (_message.Message,), {
'DESCRIPTOR' : _LISTSENSORSRESPONSE,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.ListSensorsResponse)
})
_sym_db.RegisterMessage(ListSensorsResponse)
SensorRawDataRequest = _reflection.GeneratedProtocolMessageType('SensorRawDataRequest', (_message.Message,), {
'DESCRIPTOR' : _SENSORRAWDATAREQUEST,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.SensorRawDataRequest)
})
_sym_db.RegisterMessage(SensorRawDataRequest)
SensorRawDataResponse = _reflection.GeneratedProtocolMessageType('SensorRawDataResponse', (_message.Message,), {
'DESCRIPTOR' : _SENSORRAWDATARESPONSE,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.SensorRawDataResponse)
})
_sym_db.RegisterMessage(SensorRawDataResponse)
ListDisplaysResponse = _reflection.GeneratedProtocolMessageType('ListDisplaysResponse', (_message.Message,), {
'DESCRIPTOR' : _LISTDISPLAYSRESPONSE,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.ListDisplaysResponse)
})
_sym_db.RegisterMessage(ListDisplaysResponse)
DrawRequest = _reflection.GeneratedProtocolMessageType('DrawRequest', (_message.Message,), {
'DESCRIPTOR' : _DRAWREQUEST,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.DrawRequest)
})
_sym_db.RegisterMessage(DrawRequest)
Device = _reflection.GeneratedProtocolMessageType('Device', (_message.Message,), {
'DESCRIPTOR' : _DEVICE,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.Device)
})
_sym_db.RegisterMessage(Device)
Display = _reflection.GeneratedProtocolMessageType('Display', (_message.Message,), {
'DESCRIPTOR' : _DISPLAY,
'__module__' : 'fpixel_pb2'
# @@protoc_insertion_point(class_scope:fpixels.Display)
})
_sym_db.RegisterMessage(Display)
DESCRIPTOR._options = None
_FLAMEPIXELS = _descriptor.ServiceDescriptor(
name='FlamePixels',
full_name='fpixels.FlamePixels',
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=558,
serialized_end=1003,
methods=[
_descriptor.MethodDescriptor(
name='ListSensors',
full_name='fpixels.FlamePixels.ListSensors',
index=0,
containing_service=None,
input_type=_EMPTYREQUEST,
output_type=_LISTSENSORSRESPONSE,
serialized_options=b'\222A\r\022\013ListSensors\202\323\344\223\002\r\022\013/v1/sensors',
),
_descriptor.MethodDescriptor(
name='GetSensorRawData',
full_name='fpixels.FlamePixels.GetSensorRawData',
index=1,
containing_service=None,
input_type=_SENSORRAWDATAREQUEST,
output_type=_SENSORRAWDATARESPONSE,
serialized_options=b'\222A\017\022\rSensorRawData\202\323\344\223\002\025\022\023/v1/sensor/{id}/raw',
),
_descriptor.MethodDescriptor(
name='ListDisplays',
full_name='fpixels.FlamePixels.ListDisplays',
index=2,
containing_service=None,
input_type=_EMPTYREQUEST,
output_type=_LISTDISPLAYSRESPONSE,
serialized_options=b'\222A\016\022\014ListDisplays\202\323\344\223\002\016\022\014/v1/displays',
),
_descriptor.MethodDescriptor(
name='Draw',
full_name='fpixels.FlamePixels.Draw',
index=3,
containing_service=None,
input_type=_DRAWREQUEST,
output_type=_DRAWREQUEST,
serialized_options=b'\222A\006\022\004Draw\202\323\344\223\002\022\032\r/v1/draw/{id}:\001*',
),
])
_sym_db.RegisterServiceDescriptor(_FLAMEPIXELS)
DESCRIPTOR.services_by_name['FlamePixels'] = _FLAMEPIXELS
# @@protoc_insertion_point(module_scope)
| 33.739837 | 1,811 | 0.747892 | 1,961 | 16,600 | 6.056604 | 0.133605 | 0.033679 | 0.0341 | 0.02408 | 0.49137 | 0.429991 | 0.419382 | 0.419382 | 0.387135 | 0.338806 | 0 | 0.051662 | 0.120783 | 16,600 | 491 | 1,812 | 33.808554 | 0.76211 | 0.043434 | 0 | 0.609195 | 1 | 0.013793 | 0.237582 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013793 | 0 | 0.013793 | 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 |
de71c5bb9cb8f156ad02d6c0c95cee83348c8237 | 929 | py | Python | utilities/toroid/delta.py | sergev/vak-opensource | e1912b83dabdbfab2baee5e7a9a40c3077349381 | [
"Apache-2.0"
] | 34 | 2016-10-29T19:50:34.000Z | 2022-02-12T21:27:43.000Z | utilities/toroid/delta.py | sergev/vak-opensource | e1912b83dabdbfab2baee5e7a9a40c3077349381 | [
"Apache-2.0"
] | null | null | null | utilities/toroid/delta.py | sergev/vak-opensource | e1912b83dabdbfab2baee5e7a9a40c3077349381 | [
"Apache-2.0"
] | 19 | 2017-06-19T23:04:00.000Z | 2021-11-13T15:00:41.000Z | #!/usr/bin/python
#
# Compute MMANA geometry for vertical delta antenna.
# Copyright (C) 2005 Serge Vakulenko <vak@cronyx.ru>
#
import math
# Parameters of antenna
MHz = 21.050 # Resonant frequency
R = 0.001 # Wire radius
# Wave length with experimental correction
wave = 300/MHz * 1.0707
H = wave/3 * math.sin (math.pi / 3)
print "Vertical delta", MHz, "MHz"
print "*"
print MHz
# Wires
print "*"
print "3"
def print_segment (x1, y1, x2, y2):
print "%.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, -1" % \
(0, x1, y1, 0, x2, y2, R)
print_segment (0, 0, - wave/6, H)
print_segment (- wave/6, H, wave/6, H)
print_segment (wave/6, H, 0, 0)
# Source
print "*"
print "1, 1"
print "w1b, 0.0, 1.0"
# Load
print "*"
print "0, 1"
# Segmentation: DM1, DM2, SC, EC
print "*"
print "400, 40, 2.0, 1"
# Ground, Height, Material, R, Azimuth, Elevation, X
print "*"
print "%d, %.1f, %d, 50.0, 120, 60, 0" % (0, 0, 1) # Free space, Cu
| 19.354167 | 67 | 0.613563 | 159 | 929 | 3.559748 | 0.496855 | 0.106007 | 0.053004 | 0.056537 | 0.109541 | 0.109541 | 0.084806 | 0.084806 | 0 | 0 | 0 | 0.10992 | 0.196986 | 929 | 47 | 68 | 19.765957 | 0.648794 | 0.351991 | 0 | 0.24 | 0 | 0.04 | 0.228279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.76 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
de92c2380a502ddfa3bf5736b3e87fffc5f7895b | 4,226 | py | Python | main/annotations.py | asypher/facedetect | 902c2c7448b26467130eaf8021f5a0a158d7be5b | [
"MIT"
] | null | null | null | main/annotations.py | asypher/facedetect | 902c2c7448b26467130eaf8021f5a0a158d7be5b | [
"MIT"
] | null | null | null | main/annotations.py | asypher/facedetect | 902c2c7448b26467130eaf8021f5a0a158d7be5b | [
"MIT"
] | null | null | null | annotations_dic = \
{"lipsUpperOuter": [61, 185, 40, 39, 37, 0, 267, 269, 270, 409, 291,78, 191, 80, 81, 82, 13, 312, 311, 310, 415, 308],
"lipsLowerOuter": [146, 91, 181, 84, 17, 314, 405, 321, 375, 291,78, 95, 88, 178, 87, 14, 317, 402, 318, 324, 308],
"lipsUpperInner": [78, 191, 80, 81, 82, 13, 312, 311, 310, 415, 308],
"lipsLowerInner": [78, 95, 88, 178, 87, 14, 317, 402, 318, 324, 308],
"rightEyeUpper0": [246, 161, 160, 159, 158, 157, 173],
"rightEyeLower0": [33, 7, 163, 144, 145, 153, 154, 155, 133],
"rightEyeUpper1": [247, 30, 29, 27, 28, 56, 190],
"rightEyeLower1": [130, 25, 110, 24, 23, 22, 26, 112, 243],
"rightEyeUpper2": [113, 225, 224, 223, 222, 221, 189],
"rightEyeLower2": [113, 225, 224, 223, 222, 221, 189,226, 31, 228, 229, 230, 231, 232, 233, 244],
"rightEyeLower3": [143, 111, 117, 118, 119, 120, 121, 128, 245],
"rightEyebrowUpper": [35, 124, 46, 53, 52, 65,156, 70, 63, 105, 66, 107, 55, 193],
"rightEyebrowLower": [35, 124, 46, 53, 52, 65],
"leftEyeUpper0": [466, 388, 387, 386, 385, 384, 398],
"leftEyeLower0": [263, 249, 390, 373, 374, 380, 381, 382, 362],
"leftEyeUpper1": [467, 260, 259, 257, 258, 286, 414],
"leftEyeLower1": [359, 255, 339, 254, 253, 252, 256, 341, 463],
"leftEyeUpper2": [342, 445, 444, 443, 442, 441, 413],
"leftEyeLower2": [446, 261, 448, 449, 450, 451, 452, 453, 464],
"leftEyeLower3": [372, 340, 346, 347, 348, 349, 350, 357, 465],
"leftEyebrowUpper": [383, 300, 293, 334, 296, 336, 285, 417,265, 353, 276, 283, 282, 295],
"leftEyebrowLower": [265, 353, 276, 283, 282, 295],
"midwayBetweenEyes": [168],
"noseTip": [1],
"noseBottom": [2],
"noseRightCorner": [98],
"noseLeftCorner": [327],
"rightCheek": [50,101,36,206,207,187],
#[117,118,101,36,205,187,137,234,117]
"leftCheek": [330,266,426,427,411,280]
}
from .custompoly import customfillpoly
import cv2
import numpy as np
# import matplotlib.pyplot as plt
# from blendtest import *
def sort_poly_fill_list(chk):
for i in range(len(chk)-1):
if(chk[i+1][0] < chk[i][0]):
break
chkfirst = chk[:i+1]
chksecond = sorted(chk[i+1:],key=lambda k: [k[0], k[1]],reverse= True)
print(chkfirst,chksecond)
chkfirst.extend(chksecond)
return chkfirst
def fill_part(image, keypoints, part,setcolor):
temp = []
for index in annotations_dic[part]:
# print(index)
temp.append((int(keypoints[index]['X']), int(keypoints[index]['Y'])))
# temp.append(face_landmarks)
# print(temp)
if part == "leftCheek" or "rightCheek":
mask = np.zeros((image.shape[0],image.shape[1],3))
# chkfirst = sort_poly_fill_list(chk)
temp = sort_poly_fill_list(temp)
# cv2.fillPoly(image, np.int32([temp]), setcolor, lineType=cv2.LINE_AA)
mask = cv2.fillPoly(mask, np.int32([temp]), (255, 255, 255), lineType=cv2.LINE_AA)
image = do_blending(image,setcolor,mask)
cv2.imshow("region mask"+str(part),mask)
cv2.imwrite("mask"+str(part)+".png",mask)
else:
mask = np.zeros((image.shape[0],image.shape[1],3))
# chkfirst = sort_poly_fill_list(chk)
temp = sort_poly_fill_list(temp)
cv2.fillPoly(image, np.int32([temp]), setcolor, lineType=cv2.LINE_AA)
mask = cv2.fillPoly(mask, np.int32([temp]), (255, 255, 255), lineType=cv2.LINE_AA)
# image = do_blending(image,setcolor,mask)
cv2.imshow("region mask"+str(part),mask)
cv2.imwrite("mask"+str(part)+".png",mask)
# image = custompolyfill(image,temp)
# plt.fill(temp[0], temp[1], 'k', alpha=0.3)
#
# with open(part+'.txt', 'w') as f:
# for item in temp:
# f.write("%s\n" % str(item))
return image
#
# chk = [(206, 325),
# (212, 337),
# (221, 348),
# (234, 355),
# (250, 358),
# (266, 355),
# (278, 347),
# (287, 335),
# (292, 323),
# (296, 311),
# (209, 314),
# (215, 326),
# (220, 332),
# (228, 338),
# (237, 342),
# (250, 344),
# (262, 342),
# (272, 337),
# (279, 330),
# (283, 324),
# (289, 312),
# ]
#
# mask = np.zeros((400,400))
# chkfirst = sort_poly_fill_list(chk)
# mask = cv2.fillPoly(mask, np.int32([chkfirst]), (255, 255, 255))
# # mask = customfillpoly(mask,chk)
#
# mask2 = np.zeros((400,400))
# for x,y in chk:
# cv2.circle(mask2,(x,y),1,255,1)
#
# cv2.imshow("mask1",mask)
# cv2.imshow("mask2",mask2) | 33.539683 | 120 | 0.614529 | 648 | 4,226 | 3.964506 | 0.520062 | 0.021798 | 0.028026 | 0.037369 | 0.332425 | 0.325029 | 0.280265 | 0.263916 | 0.263916 | 0.263916 | 0 | 0.264588 | 0.17274 | 4,226 | 126 | 121 | 33.539683 | 0.470252 | 0.246805 | 0 | 0.16129 | 0 | 0 | 0.144317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.048387 | 0 | 0.112903 | 0.016129 | 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 |
de92f549bf0ce8832b31d74662b2cbcccee00a9c | 534 | py | Python | pyttman/core/exceptions.py | dotchetter/Pytman | c581ddc236f79a3b6b34b853902ffd44a82df849 | [
"Apache-2.0"
] | 5 | 2021-09-09T08:24:58.000Z | 2022-02-12T08:10:26.000Z | pyttman/core/exceptions.py | dotchetter/Pytman | c581ddc236f79a3b6b34b853902ffd44a82df849 | [
"Apache-2.0"
] | 44 | 2021-05-03T20:49:41.000Z | 2022-03-31T11:11:39.000Z | pyttman/core/exceptions.py | dotchetter/Pytman | c581ddc236f79a3b6b34b853902ffd44a82df849 | [
"Apache-2.0"
] | 1 | 2022-01-25T20:38:08.000Z | 2022-01-25T20:38:08.000Z |
class PyttmanProjectInvalidException(BaseException):
"""
Exception class for internal use.
Raise this exception in situations when a user
project is incorrectly configured in whatever way.
"""
pass
class TypeConversionFailed(BaseException):
"""
Exception class for internal use.
Raise this exception when a type conversion fails.
"""
def __init__(self, from_type, to_type):
message = f"Type '{from_type}' could not be converted to '{to_type}'."
super().__init__(message)
| 28.105263 | 78 | 0.692884 | 62 | 534 | 5.774194 | 0.596774 | 0.122905 | 0.150838 | 0.167598 | 0.329609 | 0.329609 | 0.329609 | 0.329609 | 0.329609 | 0 | 0 | 0 | 0.224719 | 534 | 18 | 79 | 29.666667 | 0.864734 | 0.404494 | 0 | 0 | 0 | 0 | 0.208029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.5 | 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 |
dea656fc0fee27b4517f498824ba4b0c36dc15dd | 2,575 | py | Python | simulator/simp_py/machine.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | simulator/simp_py/machine.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | simulator/simp_py/machine.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | #raise NotImplementedError
#import dbm
import time
class GDATA1:
def __init__(self):
pass
gdata1 = GDATA1()
SIM_MAX=1022
SIM_STEP=30
class ADC:
def __init__(self,pin):
self.pin=pin
self.v=0
self.dir=SIM_STEP
def read(self):
self.v+=self.dir
if self.v> SIM_MAX:
self.dir=-SIM_STEP
if self.v==0:
self.dir=SIM_STEP
return self.v
class Pin:
PULL_UP=0
PULL_DOWN=1
IN=1
OUT=3
OPEN_DRAIN=7
IRQ_RISING=1
IRQ_FALLING=2
def __init__(self, pid, mode=None, pull=-1, value=None,drive=None, alt=None):
self.pid =pid
self.init(mode,pull,value,drive,alt)
def init(self, mode=-1, pull=-1, value=None,drive=None, alt=None):
if mode is not None:
self.mode = mode
def value(self, x=None):
if x is not None:
gdata1.pins.set(self.pid, x)
return gdata1.pins.get(self.pid)
def irq(self, trigger=None, handler=None):
print('irq trigger:%s handler:%s' % (trigger, handler))
if handler is not None:
gdata1.pins.set_callback(self.pid,trigger,handler,self)
def on(self):
pass
def off(self):
pass
def mode(self,mode=None):
pass
class PINS:
states={}
handlers={}
def __init__(self):
pass
def set_callback(self,p,trigger,handler,pinx):
PINS.handlers[p]= (trigger,handler,pinx)
def set(self, p, v):
#print('PINS.set %s:%s' % (p,v))
if p in PINS.handlers:
trigger, handler,pinx = PINS.handlers[p]
if trigger & pinx.IRQ_FALLING==pinx.IRQ_FALLING:
if v==0:
handler(pinx)
if trigger & pinx.IRQ_RISING==pinx.IRQ_RISING:
if v==1:
if p in PINS.states:
if PINS.states[p]==0:
handler(pinx)
PINS.states[p]=v
def get(self, p):
#v = self.states.get(p,1)
v = PINS.states.get(p,1)
return int(v)
class RTC:
def __init__(self):
pass
def ntp_sync(self, host):
pass
def now(self):
return time.localtime()
def unique_id():
return None
class PWM:
def __init__(self,pin):
self.pin=pin
self.dutyx=0
self.freqx=0
def duty(self,dutyx):
self.dutyx=dutyx
def freq(self,freqx):
self.freqx=freqx
pins=PINS()
gdata1.pins=pins
| 21.280992 | 81 | 0.532427 | 355 | 2,575 | 3.740845 | 0.211268 | 0.036898 | 0.057982 | 0.033886 | 0.221386 | 0.194277 | 0.114458 | 0.087349 | 0 | 0 | 0 | 0.019185 | 0.352233 | 2,575 | 120 | 82 | 21.458333 | 0.776978 | 0.034951 | 0 | 0.202247 | 0 | 0 | 0.010077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235955 | false | 0.078652 | 0.011236 | 0.022472 | 0.47191 | 0.011236 | 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 |
dec9b6b9c45b7feea7cc6f3457cb4e6f6d75b071 | 131 | py | Python | hardcode_params.py | aditya-srikanth/DAA_Assignment_2 | 2750f548a73bb10fea62470ecea4a6b64b74e0ed | [
"MIT"
] | null | null | null | hardcode_params.py | aditya-srikanth/DAA_Assignment_2 | 2750f548a73bb10fea62470ecea4a6b64b74e0ed | [
"MIT"
] | null | null | null | hardcode_params.py | aditya-srikanth/DAA_Assignment_2 | 2750f548a73bb10fea62470ecea4a6b64b74e0ed | [
"MIT"
] | null | null | null | path = "data/DataPoints.txt"
lines_path = "data/lines.txt"
index_and_slope_delim = ';'
slope_and_intercept_delim = ":"
delim = "," | 21.833333 | 31 | 0.717557 | 18 | 131 | 4.833333 | 0.555556 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114504 | 131 | 6 | 32 | 21.833333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
dedb29bcca28d1f776e310065fce802092d4dd66 | 257 | py | Python | airplanemode/views.py | gmendonca/airplanemode | bc282264701e19e92a2e8117edc0238543ab632d | [
"MIT"
] | null | null | null | airplanemode/views.py | gmendonca/airplanemode | bc282264701e19e92a2e8117edc0238543ab632d | [
"MIT"
] | null | null | null | airplanemode/views.py | gmendonca/airplanemode | bc282264701e19e92a2e8117edc0238543ab632d | [
"MIT"
] | null | null | null | from airplanemode import app
from core import airplanehub
@app.route('/')
def index():
return 'Hello World!'
@app.route('/lowest_prices')
def lowest_prices():
lf = airplanehub.LowestFare('FLN','SAO','2016-11-11','2016-11-14')
return lf.find()
| 21.416667 | 70 | 0.684825 | 36 | 257 | 4.833333 | 0.611111 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072398 | 0.140078 | 257 | 11 | 71 | 23.363636 | 0.714932 | 0 | 0 | 0 | 0 | 0 | 0.206226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 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 |
7208fe3d8082652512cf4ebdfc331805a2f4188f | 8,052 | py | Python | pysnmp/BIANCA-BRICK-TOKEN-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/BIANCA-BRICK-TOKEN-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/BIANCA-BRICK-TOKEN-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 BIANCA-BRICK-TOKEN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-TOKEN-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:21:46 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)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Counter64, TimeTicks, Gauge32, NotificationType, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Bits, Counter32, ObjectIdentity, IpAddress, MibIdentifier, iso, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "TimeTicks", "Gauge32", "NotificationType", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Bits", "Counter32", "ObjectIdentity", "IpAddress", "MibIdentifier", "iso", "ModuleIdentity")
TextualConvention, PhysAddress, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "PhysAddress", "DisplayString")
org = MibIdentifier((1, 3))
dod = MibIdentifier((1, 3, 6))
internet = MibIdentifier((1, 3, 6, 1))
private = MibIdentifier((1, 3, 6, 1, 4))
enterprises = MibIdentifier((1, 3, 6, 1, 4, 1))
bintec = MibIdentifier((1, 3, 6, 1, 4, 1, 272))
bibo = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4))
tokenring = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4, 11))
class Date(Integer32):
pass
class HexValue(Integer32):
pass
tokenringIfTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 11, 1), )
if mibBuilder.loadTexts: tokenringIfTable.setStatus('mandatory')
tokenringIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1), ).setIndexNames((0, "BIANCA-BRICK-TOKEN-MIB", "tokenringIfSlot"))
if mibBuilder.loadTexts: tokenringIfEntry.setStatus('mandatory')
tokenringIfSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfSlot.setStatus('mandatory')
tokenringIfState = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))).clone(namedValues=NamedValues(("down", 1), ("start", 2), ("download", 3), ("reset", 4), ("bud", 5), ("tferipb", 6), ("wait1", 7), ("open", 8), ("wait2", 9), ("delay1", 10), ("receive", 11), ("wait3", 12), ("done", 13), ("close", 14), ("error", 15)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfState.setStatus('mandatory')
tokenringIfRingRate = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("tr-4Mbit", 1), ("tr-16Mbit", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tokenringIfRingRate.setStatus('mandatory')
tokenringIfEarlyTokenRelease = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tokenringIfEarlyTokenRelease.setStatus('mandatory')
tokenringIfWrapInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tokenringIfWrapInterface.setStatus('mandatory')
tokenringIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(15, 17800))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tokenringIfMtu.setStatus('mandatory')
tokenringIfOverwritePhysAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 7), PhysAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tokenringIfOverwritePhysAddress.setStatus('mandatory')
tokenringIfNAUN = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 8), PhysAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfNAUN.setStatus('mandatory')
tokenringIfLineError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfLineError.setStatus('mandatory')
tokenringIfBurstError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfBurstError.setStatus('mandatory')
tokenringIfAriFciError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfAriFciError.setStatus('mandatory')
tokenringIfLostFrameError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfLostFrameError.setStatus('mandatory')
tokenringIfReceiveCongestionError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfReceiveCongestionError.setStatus('mandatory')
tokenringIfFrameCopiedError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfFrameCopiedError.setStatus('mandatory')
tokenringIfTokenError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfTokenError.setStatus('mandatory')
tokenringIfDmaBusError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfDmaBusError.setStatus('mandatory')
tokenringIfDmaParityError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfDmaParityError.setStatus('mandatory')
tokenringIfSoftError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tokenringIfSoftError.setStatus('mandatory')
tokenringIfSourceRouting = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tokenringIfSourceRouting.setStatus('mandatory')
mibBuilder.exportSymbols("BIANCA-BRICK-TOKEN-MIB", tokenringIfAriFciError=tokenringIfAriFciError, tokenringIfSlot=tokenringIfSlot, tokenringIfWrapInterface=tokenringIfWrapInterface, tokenringIfRingRate=tokenringIfRingRate, HexValue=HexValue, internet=internet, tokenringIfSoftError=tokenringIfSoftError, bintec=bintec, tokenringIfNAUN=tokenringIfNAUN, tokenringIfState=tokenringIfState, bibo=bibo, tokenringIfLostFrameError=tokenringIfLostFrameError, private=private, tokenringIfTokenError=tokenringIfTokenError, tokenringIfReceiveCongestionError=tokenringIfReceiveCongestionError, org=org, tokenring=tokenring, tokenringIfEntry=tokenringIfEntry, Date=Date, tokenringIfTable=tokenringIfTable, tokenringIfOverwritePhysAddress=tokenringIfOverwritePhysAddress, tokenringIfFrameCopiedError=tokenringIfFrameCopiedError, tokenringIfBurstError=tokenringIfBurstError, tokenringIfDmaParityError=tokenringIfDmaParityError, tokenringIfSourceRouting=tokenringIfSourceRouting, tokenringIfEarlyTokenRelease=tokenringIfEarlyTokenRelease, tokenringIfMtu=tokenringIfMtu, dod=dod, tokenringIfLineError=tokenringIfLineError, enterprises=enterprises, tokenringIfDmaBusError=tokenringIfDmaBusError)
| 113.408451 | 1,177 | 0.763785 | 880 | 8,052 | 6.988636 | 0.190909 | 0.009756 | 0.013659 | 0.017561 | 0.417561 | 0.348943 | 0.257724 | 0.243902 | 0.240325 | 0.23252 | 0 | 0.074841 | 0.08234 | 8,052 | 70 | 1,178 | 115.028571 | 0.757477 | 0.041977 | 0 | 0.032787 | 0 | 0 | 0.129397 | 0.011421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032787 | 0.098361 | 0 | 0.131148 | 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 |
720ad14007b0ca3cd34f10e8a15dc38c813cbbe3 | 13,514 | py | Python | aldryn_forms/contrib/email_notifications/south_migrations/0001_initial.py | protoroto/aldryn-forms | 076365f391c096805c5ffea26f40ab728a6fcd2a | [
"BSD-3-Clause"
] | null | null | null | aldryn_forms/contrib/email_notifications/south_migrations/0001_initial.py | protoroto/aldryn-forms | 076365f391c096805c5ffea26f40ab728a6fcd2a | [
"BSD-3-Clause"
] | null | null | null | aldryn_forms/contrib/email_notifications/south_migrations/0001_initial.py | protoroto/aldryn-forms | 076365f391c096805c5ffea26f40ab728a6fcd2a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
depends_on = [
('aldryn_forms', '0001_initial'),
]
def forwards(self, orm):
# Adding model 'EmailNotification'
db.create_table(u'email_notifications_emailnotification', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('theme', self.gf('django.db.models.fields.CharField')(max_length=200)),
('to_name', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('to_email', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('to_user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
('from_name', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('from_email', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('subject', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('body_text', self.gf('django.db.models.fields.TextField')(blank=True)),
('body_html', self.gf('djangocms_text_ckeditor.fields.HTMLField')(blank=True)),
('form', self.gf('django.db.models.fields.related.ForeignKey')(related_name='email_notifications', to=orm['aldryn_forms.FormPlugin'])),
))
db.send_create_signal(u'email_notifications', ['EmailNotification'])
def backwards(self, orm):
# Deleting model 'EmailNotification'
db.delete_table(u'email_notifications_emailnotification')
models = {
u'aldryn_forms.formplugin': {
'Meta': {'object_name': 'FormPlugin', '_ormbases': ['cms.CMSPlugin']},
u'cmsplugin_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cms.CMSPlugin']", 'unique': 'True', 'primary_key': 'True'}),
'custom_classes': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
'error_message': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'form_template': ('django.db.models.fields.CharField', [], {'default': "'aldryn_forms/form.html'", 'max_length': '200'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'page': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.Page']", 'null': 'True', 'blank': 'True'}),
'recipients': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'}),
'redirect_type': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'success_message': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
},
u'auth.group': {
'Meta': {'object_name': 'Group'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
u'auth.permission': {
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
u'auth.user': {
'Meta': {'object_name': 'User'},
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
'cms.cmsplugin': {
'Meta': {'object_name': 'CMSPlugin'},
'changed_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'creation_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'language': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.CMSPlugin']", 'null': 'True', 'blank': 'True'}),
'placeholder': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.Placeholder']", 'null': 'True'}),
'plugin_type': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
'position': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
},
'cms.page': {
'Meta': {'ordering': "('tree_id', 'lft')", 'unique_together': "(('publisher_is_draft', 'application_namespace'), ('reverse_id', 'site', 'publisher_is_draft'))", 'object_name': 'Page'},
'application_namespace': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
'application_urls': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '200', 'null': 'True', 'blank': 'True'}),
'changed_by': ('django.db.models.fields.CharField', [], {'max_length': '70'}),
'changed_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'created_by': ('django.db.models.fields.CharField', [], {'max_length': '70'}),
'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'in_navigation': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
'is_home': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
'languages': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
'limit_visibility_in_menu': ('django.db.models.fields.SmallIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
'login_required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'navigation_extenders': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['cms.Page']"}),
'placeholders': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['cms.Placeholder']", 'symmetrical': 'False'}),
'publication_date': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
'publication_end_date': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
'publisher_is_draft': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
'publisher_public': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'publisher_draft'", 'unique': 'True', 'null': 'True', 'to': "orm['cms.Page']"}),
'reverse_id': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '40', 'null': 'True', 'blank': 'True'}),
'revision_id': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
'site': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'djangocms_pages'", 'to': u"orm['sites.Site']"}),
'soft_root': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
'template': ('django.db.models.fields.CharField', [], {'default': "'INHERIT'", 'max_length': '100'}),
'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
'xframe_options': ('django.db.models.fields.IntegerField', [], {'default': '0'})
},
'cms.placeholder': {
'Meta': {'object_name': 'Placeholder'},
'default_width': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'slot': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'})
},
u'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
u'email_notifications.emailnotification': {
'Meta': {'object_name': 'EmailNotification'},
'body_html': ('djangocms_text_ckeditor.fields.HTMLField', [], {'blank': 'True'}),
'body_text': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'form': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'email_notifications'", 'to': u"orm['aldryn_forms.FormPlugin']"}),
'from_email': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
'from_name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'subject': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
'theme': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'to_email': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
'to_name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
'to_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'})
},
u'sites.site': {
'Meta': {'ordering': "('domain',)", 'object_name': 'Site', 'db_table': "'django_site'"},
'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
}
}
complete_apps = ['email_notifications'] | 83.419753 | 196 | 0.581027 | 1,438 | 13,514 | 5.318498 | 0.130042 | 0.106695 | 0.184885 | 0.264121 | 0.701229 | 0.683447 | 0.660696 | 0.557793 | 0.487578 | 0.384283 | 0 | 0.010431 | 0.177076 | 13,514 | 162 | 197 | 83.419753 | 0.677277 | 0.006586 | 0 | 0.126667 | 0 | 0 | 0.584488 | 0.32931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0.006667 | 0.026667 | 0 | 0.066667 | 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 |
722c5fdf778ef6b42c9f6b85002dc2d4eca7e83f | 403 | py | Python | globe_observer/gee/__init__.py | fpaludi/GlobeObserver | d95155142304a305e9ec73276139ddcd8dd31c72 | [
"MIT"
] | null | null | null | globe_observer/gee/__init__.py | fpaludi/GlobeObserver | d95155142304a305e9ec73276139ddcd8dd31c72 | [
"MIT"
] | null | null | null | globe_observer/gee/__init__.py | fpaludi/GlobeObserver | d95155142304a305e9ec73276139ddcd8dd31c72 | [
"MIT"
] | null | null | null | import fiona
from globe_observer.gee.gee_base_service import BaseGeeService
from globe_observer.gee.gee_satellites import SatelliteFactory
fiona.drvsupport.supported_drivers["libkml"] = "rw"
fiona.drvsupport.supported_drivers["LIBKML"] = "rw"
fiona.drvsupport.supported_drivers["kml"] = "rw"
fiona.drvsupport.supported_drivers["KML"] = "rw"
__all__ = [
"BaseGeeService",
"SatelliteFactory",
]
| 28.785714 | 62 | 0.784119 | 46 | 403 | 6.586957 | 0.391304 | 0.19802 | 0.316832 | 0.409241 | 0.646865 | 0.49505 | 0.49505 | 0.359736 | 0.359736 | 0.359736 | 0 | 0 | 0.094293 | 403 | 13 | 63 | 31 | 0.830137 | 0 | 0 | 0 | 0 | 0 | 0.138958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
72303898c0ffa3dc5a37a7e5e47264281967a3da | 529 | py | Python | src/helpers/class_dict.py | R-Mielamud/Telegram_BooksDelivery | 0745e60a4541f38fba8ac378185aff558ec95147 | [
"MIT"
] | null | null | null | src/helpers/class_dict.py | R-Mielamud/Telegram_BooksDelivery | 0745e60a4541f38fba8ac378185aff558ec95147 | [
"MIT"
] | null | null | null | src/helpers/class_dict.py | R-Mielamud/Telegram_BooksDelivery | 0745e60a4541f38fba8ac378185aff558ec95147 | [
"MIT"
] | null | null | null | class ClassDictionary:
def __init__(self, value):
self.dict_value = value
def __getattribute__(self, name):
if name == "dict_value":
return super().__getattribute__(name)
result = self.dict_value.get(name)
return result
def __setattr__(self, name, value):
if name == "dict_value":
return super().__setattr__(name, value)
self.dict_value[name] = value
def pop(self, name, default=None):
return self.dict_value.pop(name, default)
| 26.45 | 51 | 0.620038 | 62 | 529 | 4.870968 | 0.290323 | 0.178808 | 0.172185 | 0.119205 | 0.172185 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272212 | 529 | 19 | 52 | 27.842105 | 0.784416 | 0 | 0 | 0.142857 | 0 | 0 | 0.037807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 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 |
a0d0e3f5c6d31e6c18cec0c2b56383fe4ee117c2 | 1,723 | py | Python | library/serializers.py | cmu-db/cmdbac | 1f981e6f110728e51ba4ffdb90ff2d4ce091057a | [
"Apache-2.0"
] | 31 | 2016-04-07T04:54:29.000Z | 2021-11-30T02:30:57.000Z | library/serializers.py | cmu-db/db-webcrawler | 1f981e6f110728e51ba4ffdb90ff2d4ce091057a | [
"Apache-2.0"
] | 22 | 2015-12-19T14:49:18.000Z | 2021-09-07T23:48:24.000Z | library/serializers.py | cmu-db/dbac | 1f981e6f110728e51ba4ffdb90ff2d4ce091057a | [
"Apache-2.0"
] | 7 | 2016-05-13T01:02:01.000Z | 2019-10-06T16:52:54.000Z | from models import *
from rest_framework import serializers
class RepositorySerializer(serializers.ModelSerializer):
class Meta:
model = Repository
class RuntimeSerializer(serializers.ModelSerializer):
class Meta:
model = Runtime
class DatabaseSerializer(serializers.ModelSerializer):
class Meta:
model = Database
class PackageSerializer(serializers.ModelSerializer):
class Meta:
model = Package
class DependencySerializer(serializers.ModelSerializer):
package_info = PackageSerializer(source='package')
class Meta:
model = Dependency
fields = ('id', 'source', 'attempt', 'package_info')
class FieldSerializer(serializers.ModelSerializer):
class Meta:
model = Field
class QuerySerializer(serializers.ModelSerializer):
class Meta:
model = Query
class ActionSerializer(serializers.ModelSerializer):
fields = FieldSerializer(many=True, read_only=True)
queries = QuerySerializer(many=True, read_only=True)
class Meta:
model = Action
class AttemptSerializer(serializers.ModelSerializer):
repo_info = RepositorySerializer(source='repo')
runtime_info = RuntimeSerializer(source='runtime')
database_info = DatabaseSerializer(source='database')
dependencies = DependencySerializer(source='dependency_set', many=True)
actions = ActionSerializer(many=True, read_only = True)
class Meta:
model = Attempt
fields = ('id', 'start_time', 'stop_time', 'repo_info', 'sha', 'size', 'log', 'hostname',
'runtime_info', 'database_info', 'result', 'register', 'login', 'actions_count', 'queries_count',
'dependencies', 'actions'
) | 31.907407 | 115 | 0.701683 | 159 | 1,723 | 7.496855 | 0.327044 | 0.196309 | 0.105705 | 0.176175 | 0.275168 | 0.057047 | 0.057047 | 0.057047 | 0 | 0 | 0 | 0 | 0.198491 | 1,723 | 54 | 116 | 31.907407 | 0.863143 | 0 | 0 | 0.214286 | 0 | 0 | 0.118329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.666667 | 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 |
a0f90acaa4e83d32a0e249537271b26dc4fd29cc | 219 | py | Python | Premier-eye.DS/Models/Person.py | Sapfir0/premier-eye | 26bb27e5f804c2e9375cb6f5edebad58e7b5dffe | [
"MIT"
] | 16 | 2019-08-05T09:38:53.000Z | 2021-12-26T19:24:31.000Z | Premier-eye.DS/Models/Person.py | Sapfir0/premier-eye | 26bb27e5f804c2e9375cb6f5edebad58e7b5dffe | [
"MIT"
] | 4 | 2020-01-09T22:22:37.000Z | 2021-07-29T18:33:57.000Z | Premier-eye.DS/Models/Person.py | Sapfir0/premier-eye | 26bb27e5f804c2e9375cb6f5edebad58e7b5dffe | [
"MIT"
] | 4 | 2019-08-04T14:02:08.000Z | 2020-07-10T09:47:06.000Z | from Models.Object_ import Object_
class Person(Object_):
type = "person"
def json(self) -> dict:
objectJson = super().json()
objectJson.update({'type': self.type})
return objectJson
| 18.25 | 46 | 0.621005 | 24 | 219 | 5.541667 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255708 | 219 | 11 | 47 | 19.909091 | 0.815951 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
9d056607d841c8da9130ed90364dfe36e350d095 | 384 | py | Python | src/cut_link/hostsconf/views.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | src/cut_link/hostsconf/views.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | src/cut_link/hostsconf/views.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | from django.conf import settings
from django.http import HttpResponseRedirect
DEFAULT_REDIRECT_URL = getattr(settings, 'DEFAULT_REDIRECT_URL', 'http://www.cut.com:8000')
def wildcard_redirect(request, path=None):
new_url = DEFAULT_REDIRECT_URL
if path is not None and path != '':
new_url = DEFAULT_REDIRECT_URL + '/' + path
return HttpResponseRedirect(new_url)
| 32 | 91 | 0.75 | 51 | 384 | 5.411765 | 0.509804 | 0.217391 | 0.26087 | 0.152174 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.15625 | 384 | 11 | 92 | 34.909091 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
9d127d2ec50c13068370832fd54f9a41052c2a88 | 164 | py | Python | Desafios/desafio24.py | gustavodoamaral/115_Desafios_Python | 8baa1c0353a40f7a63f442293bc0f6852fd94da0 | [
"MIT"
] | 1 | 2022-02-07T01:12:19.000Z | 2022-02-07T01:12:19.000Z | Desafios/desafio24.py | gustavodoamaral/desafios_python_gustavo_guanabara | 8baa1c0353a40f7a63f442293bc0f6852fd94da0 | [
"MIT"
] | null | null | null | Desafios/desafio24.py | gustavodoamaral/desafios_python_gustavo_guanabara | 8baa1c0353a40f7a63f442293bc0f6852fd94da0 | [
"MIT"
] | null | null | null |
#Verifica se possui SANTO no começo do nome da cidade
cidade = input("Qual a cidade que você mora: ")
cidadelista = cidade.split()
print("Santo" in cidadelista[0]) | 32.8 | 53 | 0.743902 | 26 | 164 | 4.692308 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.152439 | 164 | 5 | 54 | 32.8 | 0.870504 | 0.317073 | 0 | 0 | 0 | 0 | 0.306306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
9d1553a7f9eaafd20a1004981d9add8439ef1d08 | 212,528 | py | Python | pysnmp-with-texts/APPIAN-PPORT-SONET-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/APPIAN-PPORT-SONET-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/APPIAN-PPORT-SONET-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 APPIAN-PPORT-SONET-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPIAN-PPORT-SONET-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:23:54 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)
#
acPport, AcAdminStatus, AcOpStatus, AcSlotNumber, AcPortNumber, AcNodeId = mibBuilder.importSymbols("APPIAN-SMI-MIB", "acPport", "AcAdminStatus", "AcOpStatus", "AcSlotNumber", "AcPortNumber", "AcNodeId")
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint")
PerfIntervalCount, = mibBuilder.importSymbols("PerfHist-TC-MIB", "PerfIntervalCount")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
ModuleIdentity, MibIdentifier, Counter64, IpAddress, ObjectIdentity, TimeTicks, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Bits, Gauge32, NotificationType, Integer32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "MibIdentifier", "Counter64", "IpAddress", "ObjectIdentity", "TimeTicks", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Bits", "Gauge32", "NotificationType", "Integer32", "Counter32")
DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention")
acSonet = ModuleIdentity((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6))
acSonet.setRevisions(('1900-02-23 16:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: acSonet.setRevisionsDescriptions(('Engineering draft, not for release.',))
if mibBuilder.loadTexts: acSonet.setLastUpdated('0002231600Z')
if mibBuilder.loadTexts: acSonet.setOrganization('Appian Communications, Inc.')
if mibBuilder.loadTexts: acSonet.setContactInfo('Douglas Stahl')
if mibBuilder.loadTexts: acSonet.setDescription('The MIB module to describe SONET/SDH objects.')
class AcTraceString(TextualConvention, OctetString):
description = "A string of up to printable characters, followed by padding NULL characters, and terminated with <CR> and <LF> characters, for a total of 64 characters. The maximum number of printable characters is 62 and if it's less, it's padded with NULL. Therefore the number of padding NULL characters is 0 to 62."
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(64, 64)
fixedLength = 64
acSonetObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1))
acSonetObjectsPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2))
acSonetObjectsVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3))
acSonetPort = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1))
acSonetSection = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2))
acSonetLine = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3))
acSonetFarEndLine = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4))
acSonetPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1))
acSonetFarEndPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2))
acSonetVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1))
acSonetFarEndVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2))
acSonetPortTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1), )
if mibBuilder.loadTexts: acSonetPortTable.setStatus('current')
if mibBuilder.loadTexts: acSonetPortTable.setDescription('The SONET/SDH Port table which must be created by the management client.')
acSonetPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPortNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortPort"))
if mibBuilder.loadTexts: acSonetPortEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPortEntry.setDescription('An entry in the SONET/SDH Port table.')
acSonetPortNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPortNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPortNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPortSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPortSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPortSlot.setDescription('The physical slot number of the port.')
acSonetPortPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPortPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPortPort.setDescription('The physical port number of the port.')
acSonetPortAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 4), AcAdminStatus().clone('inactivate')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortAdminStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetPortAdminStatus.setDescription('Appian Administrative Status attribute used to set the provisioning state as either activate(1), inactivate(2) or delete(3). Refer to the Appian-SMI.mib file for additional information.')
acSonetPortOpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 5), AcOpStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPortOpStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetPortOpStatus.setDescription('The current operational status for the SONET module controlling this port.')
acSonetPortOpCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPortOpCode.setStatus('current')
if mibBuilder.loadTexts: acSonetPortOpCode.setDescription('Provides a detailed status code which can be used to isolate a problem or state condition reported in acSonetPortOpStatus.')
acSonetPortMediumType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("sonet", 1), ("sdh", 2))).clone('sonet')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortMediumType.setStatus('current')
if mibBuilder.loadTexts: acSonetPortMediumType.setDescription('This variable identifies whether a SONET or a SDH signal is used across this interface.')
acSonetPortTimeElapsed = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 900))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPortTimeElapsed.setStatus('current')
if mibBuilder.loadTexts: acSonetPortTimeElapsed.setDescription("The number of seconds, including partial seconds, that have elapsed since the beginning of the current measurement period. If, for some reason, such as an adjustment in the system's time-of-day clock, the current interval exceeds the maximum value, the agent will return the maximum value.")
acSonetPortValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPortValidIntervals.setStatus('current')
if mibBuilder.loadTexts: acSonetPortValidIntervals.setDescription('The number of previous 15-minute intervals for which data was collected. A SONET/SDH interface must be capable of supporting at least n intervals. The minimum value of n is 4. The default of n is 32. The maximum value of n is 96. The value will be <n> unless the measurement was (re-)started within the last (<n>*15) minutes, in which case the value will be the number of complete 15 minute intervals for which the agent has at least some data. In certain cases (e.g., in the case where the agent is a proxy) it is possible that some intervals are unavailable. In this case, this interval is the maximum interval number for which data is available. ')
acSonetPortMediumLineCoding = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("b3zs", 2), ("cmi", 3), ("nrz", 4), ("rz", 5))).clone('nrz')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortMediumLineCoding.setStatus('current')
if mibBuilder.loadTexts: acSonetPortMediumLineCoding.setDescription('This variable describes the line coding for this interface. The B3ZS and CMI are used for electrical SONET/SDH signals (STS-1 and STS-3). The Non-Return to Zero (NRZ) and the Return to Zero are used for optical SONET/SDH signals.')
acSonetPortMediumLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("short-single", 2), ("long-single", 3), ("multi", 4), ("coax", 5), ("utp", 6), ("intermediate", 7))).clone('multi')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortMediumLineType.setStatus('current')
if mibBuilder.loadTexts: acSonetPortMediumLineType.setDescription('This variable describes the line type for this interface. The line types are Short and Long Range Single Mode fiber or Multi-Mode fiber interfaces, and coax and UTP for electrical interfaces. The value acSonetOther should be used when the Line Type is not one of the listed values.')
acSonetPortTransmitterEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 12), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortTransmitterEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetPortTransmitterEnable.setDescription('Turns the laser on and off.')
acSonetPortCircuitIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortCircuitIdentifier.setStatus('current')
if mibBuilder.loadTexts: acSonetPortCircuitIdentifier.setDescription("This variable contains the transmission vendor's circuit identifier, for the purpose of facilitating troubleshooting. Note that the circuit identifier, if available, is also represented by ifPhysAddress.")
acSonetPortInvalidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPortInvalidIntervals.setStatus('current')
if mibBuilder.loadTexts: acSonetPortInvalidIntervals.setDescription('The number of intervals in the range from 0 to acSonetPortValidIntervals for which no data is available. This object will typically be zero except in cases where the data for some intervals are not available (e.g., in proxy situations).')
acSonetPortLoopbackConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("none", 0), ("facility", 1), ("terminal", 2), ("other", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortLoopbackConfig.setStatus('current')
if mibBuilder.loadTexts: acSonetPortLoopbackConfig.setDescription('The current loopback state of the SONET/SDH interface. The values mean: none(0) Not in the loopback state. A device that is not capable of performing a loopback on this interface shall always return this value. facility(1) The received signal at this interface is looped back out through the corresponding transmitter in the return direction. terminal(2) The signal that is about to be transmitted is connected to the associated incoming receiver. other(3) Loopbacks that are not defined here.')
acSonetPortResetCurrentPMregs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 16), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortResetCurrentPMregs.setStatus('current')
if mibBuilder.loadTexts: acSonetPortResetCurrentPMregs.setDescription('Reset Performance Monitoring Registers for current 15 minute and day to zero for entity-related statisics. Reset on receiving a 1, will automatically go to 0 at next 15 minute or day interval.')
acSonetPortResetAllPMregs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 17), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortResetAllPMregs.setStatus('current')
if mibBuilder.loadTexts: acSonetPortResetAllPMregs.setDescription('Reset Performance Monitoring Registers to zero for all entity-related statisics. Reset on receiving a 1, will automatically go to 0 at next 15 minute or day interval.')
acSonetPortConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ring", 1), ("interconnect", 2))).clone('interconnect')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortConnectionType.setStatus('current')
if mibBuilder.loadTexts: acSonetPortConnectionType.setDescription('Whether the port is used on the ring side or the interconnect side. An interconnect interface is the one that connects to the ADM.')
acSonetPortRingIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 19), Integer32().clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortRingIdentifier.setStatus('current')
if mibBuilder.loadTexts: acSonetPortRingIdentifier.setDescription('This is a number assigned by carrier. It is contained here as a convenience for carrier and the EMS. It is not used by the device. When used, this should be set in east facing port row in this table. It can also be optionally set in the west facing port row in this table but it must be the same as the set in the east facing port row.')
acSonetPortRingName = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSonetPortRingName.setStatus('current')
if mibBuilder.loadTexts: acSonetPortRingName.setDescription('An ASCII text name up to 32 characters in length which is assigned to this optical ring. Like the RingIdentifier, this is contained here as a convenience for the carrier and the EMS. It is not used by the device. When used, this should be set in east facing port row in this table. It can also be optionally set in the west facing port row in this table but it must be the same as the set in the east facing port row.')
acSonetThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2), )
if mibBuilder.loadTexts: acSonetThresholdTable.setStatus('current')
if mibBuilder.loadTexts: acSonetThresholdTable.setDescription('The SONET/SDH Threshold Table.')
acSonetThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdPort"))
if mibBuilder.loadTexts: acSonetThresholdEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetThresholdEntry.setDescription('An entry in the SONET/SDH Port Table.')
acSonetThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetThresholdNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetThresholdSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetThresholdSlot.setDescription('The physical slot number of the port.')
acSonetThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetThresholdPort.setStatus('current')
if mibBuilder.loadTexts: acSonetThresholdPort.setDescription('The physical port number of the port.')
acSonetThresholdSESSet = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("bellcore", 2), ("ansi93", 3), ("itu", 4), ("ansi97", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetThresholdSESSet.setStatus('current')
if mibBuilder.loadTexts: acSonetThresholdSESSet.setDescription('An enumerated integer indicating which recognized set of thresholds that the agent uses for determining severely errored seconds and unavailable time. other(1) None of the following. Bellcore1991(2) Bellcore TR-NWT-000253, 1991 [32], or ANSI T1M1.3/93-005R2, 1993 [22]. See also Appendix B. ansi1993(3) ANSI T1.231, 1993 [31], or Bellcore GR-253-CORE, Issue 2, 1995 [34] itu1995(4) ITU Recommendation G.826, 1995 [33] ansi1997(5) ANSI T1.231, 1997 [35] If a manager changes the value of this object then the SES statistics collected prior to this change must be invalidated.')
acSonetDCCTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3), )
if mibBuilder.loadTexts: acSonetDCCTable.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCTable.setDescription('The SONET/SDH DCC Table.')
acSonetDCCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCPort"))
if mibBuilder.loadTexts: acSonetDCCEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCEntry.setDescription('An entry in the SONET/SDH Port Table.')
acSonetDCCNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetDCCNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetDCCSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetDCCSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCSlot.setDescription('The physical slot number of the port.')
acSonetDCCPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetDCCPort.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCPort.setDescription('The physical port number of the port.')
acSonetDCCSectionEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetDCCSectionEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCSectionEnable.setDescription('This variable indicates that the DCC for the section is enabled.')
acSonetDCCLineEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetDCCLineEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCLineEnable.setDescription('This variable indicates that the DCC for the line is enabled.')
acSonetDCCAppianEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetDCCAppianEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCAppianEnable.setDescription('This variable indicates that the Appian DCC is enabled.')
acSonetDCCSectionFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetDCCSectionFail.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCSectionFail.setDescription('This variable indicates that the DCC for the section has failed.')
acSonetDCCLineFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetDCCLineFail.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCLineFail.setDescription('This variable indicates that the DCC for the line has failed.')
acSonetDCCAppianFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 9), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetDCCAppianFail.setStatus('current')
if mibBuilder.loadTexts: acSonetDCCAppianFail.setDescription('This variable indicates that the Appian DCC has failed.')
acSonetSection15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1), )
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalTable.setDescription('The SONET/SDH Section 15Minute Interval table.')
acSonetSection15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalNumber"))
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Section 15Minute Interval table.')
acSonetSection15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetSection15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSlot.setDescription('The physical slot number of the port.')
acSonetSection15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalPort.setDescription('The physical port number of the port.')
acSonetSection15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.')
acSonetSection15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalValidStats.setDescription('This flag indicates if the data for this interval is valid.')
acSonetSection15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for a 15 minute interval.')
acSonetSection15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetSectionCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetSectionNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetSectionNoDefect 2 acSonetSectionLOS 4 acSonetSectionLOF')
acSonetSection15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.')
acSonetSection15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.')
acSonetSection15MinuteIntervalSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSEFSs.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSEFSs.setDescription('The counter associated with the number of Severely Errored Framing Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.')
acSonetSection15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetSection15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.')
acSonetSectionDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2), )
if mibBuilder.loadTexts: acSonetSectionDayIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalTable.setDescription('The SONET/SDH Section Day Interval table.')
acSonetSectionDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalNumber"))
if mibBuilder.loadTexts: acSonetSectionDayIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalEntry.setDescription('An entry in the SONET/SDH Section Day Interval table.')
acSonetSectionDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionDayIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetSectionDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionDayIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalSlot.setDescription('The physical slot number of the port.')
acSonetSectionDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionDayIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalPort.setDescription('The physical port number of the port.')
acSonetSectionDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionDayIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.')
acSonetSectionDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionDayIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalValidStats.setDescription('This flag indicates if the data for this interval is valid.')
acSonetSectionDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionDayIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalResetStats.setDescription('Flag used to reset the current day interval stats.')
acSonetSectionDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionDayIntervalStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetSectionCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetSectionNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetSectionNoDefect 2 acSonetSectionLOS 4 acSonetSectionLOF')
acSonetSectionDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionDayIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.')
acSonetSectionDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionDayIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.')
acSonetSectionDayIntervalSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionDayIntervalSEFSs.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalSEFSs.setDescription('The counter associated with the number of Severely Errored Framing Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.')
acSonetSectionDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionDayIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Section in a particular day interval in the past 30 days.')
acSonetSectionThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3), )
if mibBuilder.loadTexts: acSonetSectionThresholdTable.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdTable.setDescription('The SONET/SDH Section Threshold Table.')
acSonetSectionThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdSelectionNum"))
if mibBuilder.loadTexts: acSonetSectionThresholdEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdEntry.setDescription('An entry in the SONET/SDH Section Threshold Table.')
acSonetSectionThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionThresholdNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetSectionThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionThresholdSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdSlot.setDescription('The physical slot number of the port.')
acSonetSectionThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionThresholdPort.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdPort.setDescription('The physical port number of the port.')
acSonetSectionThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionThresholdSelectionNum.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds.')
acSonetSectionThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionThresholdAdminStatus.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetSectionThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this sonet port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.')
acSonetSectionThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionThresholdESs.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdESs.setDescription('The threshold associated with Errored Seconds.')
acSonetSectionThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionThresholdSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.')
acSonetSectionThresholdSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionThresholdSEFSs.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdSEFSs.setDescription('The threshold associated with Severely Errored Framing Seconds.')
acSonetSectionThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionThresholdCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionThresholdCVs.setDescription('The threshold associated with Coding Violations.')
acSonetSectionTIMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4), )
if mibBuilder.loadTexts: acSonetSectionTIMTable.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMTable.setDescription('The SONET/SDH Section Trace Identifier Mismatch Table.')
acSonetSectionTIMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMPort"))
if mibBuilder.loadTexts: acSonetSectionTIMEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMEntry.setDescription('An entry in the SONET/SDH Section Trace Identifier Mismatch Table.')
acSonetSectionTIMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionTIMNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetSectionTIMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionTIMSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMSlot.setDescription('The physical slot number of the port.')
acSonetSectionTIMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionTIMPort.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMPort.setDescription('The physical port number of the port.')
acSonetSectionTIMGenerateEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionTIMGenerateEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMGenerateEnable.setDescription('Enables the generation of the Section Trace Identifier.')
acSonetSectionTIMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionTIMDetectEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMDetectEnable.setDescription('Enables the detection of the Section Trace Identifier.')
acSonetSectionTIMTransmitedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 6), AcTraceString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionTIMTransmitedString.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMTransmitedString.setDescription('The string that gets sent to the destination.')
acSonetSectionTIMExpectedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 7), AcTraceString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionTIMExpectedString.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMExpectedString.setDescription('The expected string that is to be received.')
acSonetSectionTIMReceivedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 8), AcTraceString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionTIMReceivedString.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMReceivedString.setDescription('The contents of the string that is received.')
acSonetSectionTIMFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 9), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionTIMFailure.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMFailure.setDescription('Failure declared of the Section Trace Identifier.')
acSonetSectionTIMFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("void", 0), ("t64", 1), ("t64-crlf", 2), ("t16", 3), ("t16-msb1", 4), ("t16-crc7", 5))).clone('void')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionTIMFormat.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMFormat.setDescription('Format of Path Trace buffer.')
acSonetSectionTIMMismatchZeros = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionTIMMismatchZeros.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionTIMMismatchZeros.setDescription('Controls whether a received trace message containing all zeros can cause a mismatch defect.')
acSonetSectionSSMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5), )
if mibBuilder.loadTexts: acSonetSectionSSMTable.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionSSMTable.setDescription('The SONET/SDH Section Synchronization Status Message Table.')
acSonetSectionSSMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMPort"))
if mibBuilder.loadTexts: acSonetSectionSSMEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionSSMEntry.setDescription('An entry in the SONET/SDH Section Synchronization Status Message Table.')
acSonetSectionSSMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionSSMNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionSSMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetSectionSSMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionSSMSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionSSMSlot.setDescription('The physical slot number of the port.')
acSonetSectionSSMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetSectionSSMPort.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionSSMPort.setDescription('The physical port number of the port.')
acSonetSectionSSMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetSectionSSMDetectEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionSSMDetectEnable.setDescription('Enables the detection of the Synchronization Status Message.')
acSonetSectionSSMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionSSMTransmitedValue.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionSSMTransmitedValue.setDescription('The S1 byte value that gets sent to the destination.')
acSonetSectionSSMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetSectionSSMReceivedValue.setStatus('current')
if mibBuilder.loadTexts: acSonetSectionSSMReceivedValue.setDescription('The S1 byte value that is received.')
acSonetLine15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1), )
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalTable.setDescription('The SONET/SDH Line 15Minute Interval Table.')
acSonetLine15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalNumber"))
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Line 15Minute Interval table.')
acSonetLine15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetLine15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSlot.setDescription('The physical slot number of the port.')
acSonetLine15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalPort.setDescription('The physical port number of the port.')
acSonetLine15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.')
acSonetLine15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.')
acSonetLine15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalResetStats.setDescription('Flag to reset the 15 minute SONET Line interval statistics.')
acSonetLine15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetLineCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetLineNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetLineNoDefect 2 acSonetLineAIS 4 acSonetLineRDI')
acSonetLine15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.')
acSonetLine15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.')
acSonetLine15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.')
acSonetLine15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.')
acSonetLine15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalBER.setStatus('current')
if mibBuilder.loadTexts: acSonetLine15MinuteIntervalBER.setDescription('The counter associated with the max BER encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours. ')
acSonetLineDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2), )
if mibBuilder.loadTexts: acSonetLineDayIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalTable.setDescription('The SONET/SDH Line Day Interval Table.')
acSonetLineDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalNumber"))
if mibBuilder.loadTexts: acSonetLineDayIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalEntry.setDescription('An entry in the SONET/SDH Line Day Interval table.')
acSonetLineDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineDayIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetLineDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineDayIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalSlot.setDescription('The physical slot number of the port.')
acSonetLineDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineDayIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalPort.setDescription('The physical port number of the port.')
acSonetLineDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineDayIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.')
acSonetLineDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineDayIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.')
acSonetLineDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineDayIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalResetStats.setDescription('Flag to reset the SONET Line Day interval statistics.')
acSonetLineDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineDayIntervalStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetLineCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetLineNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetLineNoDefect 2 acSonetLineAIS 4 acSonetLineRDI')
acSonetLineDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineDayIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.')
acSonetLineDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineDayIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.')
acSonetLineDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineDayIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Line in a particular day interval in the past 30 days.')
acSonetLineDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineDayIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetLineDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.')
acSonetLineDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineDayIntervalBER.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetLineDayIntervalBER.setDescription('The counter associated with the max BER encountered by a SONET/SDH Line in a particular day interval in the past 30 days.')
acSonetLineThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3), )
if mibBuilder.loadTexts: acSonetLineThresholdTable.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdTable.setDescription('The SONET/SDH Line Threshold Table.')
acSonetLineThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdSelectionNum"))
if mibBuilder.loadTexts: acSonetLineThresholdEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdEntry.setDescription('An entry in the SONET/SDH Line Threshold Table.')
acSonetLineThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineThresholdNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetLineThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineThresholdSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdSlot.setDescription('The physical slot number of the port.')
acSonetLineThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineThresholdPort.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdPort.setDescription('The physical port number of the port.')
acSonetLineThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineThresholdSelectionNum.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ')
acSonetLineThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineThresholdAdminStatus.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetLineThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.')
acSonetLineThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineThresholdESs.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdESs.setDescription('The threshold associated with Errored Seconds.')
acSonetLineThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineThresholdSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.')
acSonetLineThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineThresholdCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdCVs.setDescription('The threshold associated with Coding Violations.')
acSonetLineThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineThresholdUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetLineThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.')
acSonetFarEndLine15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1), )
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalTable.setDescription('The SONET/SDH FarEndLine 15Minute Interval Table.')
acSonetFarEndLine15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalNumber"))
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndLine 15Minute Interval table.')
acSonetFarEndLine15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndLine15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSlot.setDescription('The physical slot number of the port.')
acSonetFarEndLine15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalPort.setDescription('The physical port number of the port.')
acSonetFarEndLine15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.')
acSonetFarEndLine15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.')
acSonetFarEndLine15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalResetStats.setDescription('Flag to reset the SONET Far End Line 15 minute interval statistics.')
acSonetFarEndLine15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 7), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.')
acSonetFarEndLine15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.')
acSonetFarEndLine15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.')
acSonetFarEndLine15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.')
acSonetFarEndLineDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2), )
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalTable.setDescription('The SONET/SDH FarEndLine Day Interval Table.')
acSonetFarEndLineDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalNumber"))
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndLine Day Interval table.')
acSonetFarEndLineDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndLineDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSlot.setDescription('The physical slot number of the port.')
acSonetFarEndLineDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalPort.setDescription('The physical port number of the port.')
acSonetFarEndLineDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.')
acSonetFarEndLineDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.')
acSonetFarEndLineDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalResetStats.setDescription('Flag to reset the SONET far end line day interval statistics.')
acSonetFarEndLineDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 7), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.')
acSonetFarEndLineDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.')
acSonetFarEndLineDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.')
acSonetFarEndLineDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.')
acSonetFarEndLineThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3), )
if mibBuilder.loadTexts: acSonetFarEndLineThresholdTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdTable.setDescription('The SONET/SDH FarEndLine Threshold Table.')
acSonetFarEndLineThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdSelectionNum"))
if mibBuilder.loadTexts: acSonetFarEndLineThresholdEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdEntry.setDescription('An entry in the SONET/SDH FarEndLine Threshold Table.')
acSonetFarEndLineThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndLineThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdSlot.setDescription('The physical slot number of the port.')
acSonetFarEndLineThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdPort.setDescription('The physical port number of the port.')
acSonetFarEndLineThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdSelectionNum.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ')
acSonetFarEndLineThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdAdminStatus.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.')
acSonetFarEndLineThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdESs.setDescription('The threshold associated with Errored Seconds.')
acSonetFarEndLineThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.')
acSonetFarEndLineThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdCVs.setDescription('The threshold associated with Coding Violations.')
acSonetFarEndLineThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndLineThresholdUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndLineThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.')
acSonetPath15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1), )
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalTable.setDescription('The SONET/SDH Path 15Minute Interval table.')
acSonetPath15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalNumber"))
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Path 15Minute Interval table.')
acSonetPath15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPath15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSlot.setDescription('The physical slot number of the port.')
acSonetPath15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPort.setDescription('The physical port number of the port.')
acSonetPath15MinuteIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPath.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPath.setDescription('The STS Path for which the set of statistics is available.')
acSonetPath15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.')
acSonetPath15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 62))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetPathCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetPathNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetPathNoDefect 2 acSonetPathSTSLOP 4 acSonetPathSTSAIS 8 acSonetPathSTSRDI 16 acSonetPathUnequipped 32 acSonetPathPayloadLabelMismatch')
acSonetPath15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.')
acSonetPath15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 8), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for a 15 minute interval.')
acSonetPath15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Path in the current 15 minute interval.')
acSonetPath15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Path in the current 15 minute interval.')
acSonetPath15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Path in the current 15 minute interval.')
acSonetPath15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a Path in the current 15 minute interval.')
acSonetPath15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 13), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalBER.setStatus('current')
if mibBuilder.loadTexts: acSonetPath15MinuteIntervalBER.setDescription('The counter associated with the BER encountered by a Path in the current 15 minute interval. Represents the max value for an interval for number > 1.')
acSonetPathDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2), )
if mibBuilder.loadTexts: acSonetPathDayIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalTable.setDescription('The SONET/SDH Path Day Interval table.')
acSonetPathDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalNumber"))
if mibBuilder.loadTexts: acSonetPathDayIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalEntry.setDescription('An entry in the SONET/SDH Path Day Interval table.')
acSonetPathDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathDayIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPathDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathDayIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalSlot.setDescription('The physical slot number of the port.')
acSonetPathDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathDayIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalPort.setDescription('The physical port number of the port.')
acSonetPathDayIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathDayIntervalPath.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalPath.setDescription('The STS Path for which the set of statistics is available.')
acSonetPathDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathDayIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.')
acSonetPathDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 62))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathDayIntervalStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetPathCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetPathNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetPathNoDefect 2 acSonetPathSTSLOP 4 acSonetPathSTSAIS 8 acSonetPathSTSRDI 16 acSonetPathUnequipped 32 acSonetPathPayloadLabelMismatch')
acSonetPathDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathDayIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalValidStats.setDescription('This variable indicates if the data for this day is valid.')
acSonetPathDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 8), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathDayIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalResetStats.setDescription('This flag is used to reset the data for day interval.')
acSonetPathDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathDayIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Path in the past day interval.')
acSonetPathDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathDayIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Path in the past day interval.')
acSonetPathDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathDayIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Path in the past day interval.')
acSonetPathDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathDayIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetPathDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a Path in the past day interval.')
acSonetPathDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 13), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathDayIntervalBER.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetPathDayIntervalBER.setDescription('The counter associated with the BER encountered by a Path in the past day interval.')
acSonetPathThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3), )
if mibBuilder.loadTexts: acSonetPathThresholdTable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdTable.setDescription('The SONET/SDH Path Threshold Table.')
acSonetPathThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdSelectionNum"))
if mibBuilder.loadTexts: acSonetPathThresholdEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdEntry.setDescription('An entry in the SONET/SDH Path Threshold Table.')
acSonetPathThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathThresholdNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPathThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathThresholdSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdSlot.setDescription('The physical slot number of the port.')
acSonetPathThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathThresholdPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdPort.setDescription('The physical port number of the port.')
acSonetPathThresholdPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathThresholdPath.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdPath.setDescription('The STS Path for which the set of statistics is available.')
acSonetPathThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathThresholdSelectionNum.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ')
acSonetPathThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathThresholdAdminStatus.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetPathThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.')
acSonetPathThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathThresholdESs.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdESs.setDescription('The threshold associated with Errored Seconds.')
acSonetPathThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathThresholdSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.')
acSonetPathThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathThresholdCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdCVs.setDescription('The threshold associated with Coding Violations.')
acSonetPathThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathThresholdUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetPathThresholdUASs.setDescription('The threshold associated with Unavailable Seconds.')
acSonetPathRDITable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4), )
if mibBuilder.loadTexts: acSonetPathRDITable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathRDITable.setDescription('The SONET/SDH Path RDI Table.')
acSonetPathRDIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDINodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDISlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDIPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDIPath"))
if mibBuilder.loadTexts: acSonetPathRDIEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPathRDIEntry.setDescription('An entry in the SONET/SDH Path RDI Table.')
acSonetPathRDINodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathRDINodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPathRDINodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPathRDISlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathRDISlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPathRDISlot.setDescription('The physical slot number of the port.')
acSonetPathRDIPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathRDIPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPathRDIPort.setDescription('The physical port number of the port.')
acSonetPathRDIPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathRDIPath.setStatus('current')
if mibBuilder.loadTexts: acSonetPathRDIPath.setDescription('The STS path instance for this port')
acSonetPathRDIOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rdi", 1), ("erdi", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathRDIOpMode.setStatus('current')
if mibBuilder.loadTexts: acSonetPathRDIOpMode.setDescription('The Remote Defect Indiction signals have undergone a number of changes over the years, and now encompass two or even three different versions. See GR-253 6.2.1.3.2 for more information.')
acSonetPathTIMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5), )
if mibBuilder.loadTexts: acSonetPathTIMTable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMTable.setDescription('The SONET/SDH Path Trace Identifier Mismatch Table.')
acSonetPathTIMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMPath"))
if mibBuilder.loadTexts: acSonetPathTIMEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMEntry.setDescription('An entry in the SONET/SDH Path Trace Identifier Mismatch Table.')
acSonetPathTIMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathTIMNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPathTIMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathTIMSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMSlot.setDescription('The physical slot number of the port.')
acSonetPathTIMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathTIMPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMPort.setDescription('The physical port number of the port.')
acSonetPathTIMPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathTIMPath.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMPath.setDescription('The path instance of the port.')
acSonetPathTIMGenerateEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathTIMGenerateEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMGenerateEnable.setDescription('Enables the generation of the Path Trace Identifier.')
acSonetPathTIMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathTIMDetectEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMDetectEnable.setDescription('Enables the detection of the Path Trace Identifier.')
acSonetPathTIMTransmitedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 7), AcTraceString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathTIMTransmitedString.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMTransmitedString.setDescription('The string that gets sent to the destination.')
acSonetPathTIMExpectedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 8), AcTraceString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathTIMExpectedString.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMExpectedString.setDescription('The expected string that is to be received.')
acSonetPathTIMReceivedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 9), AcTraceString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathTIMReceivedString.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMReceivedString.setDescription('The contents of the string that is received.')
acSonetPathTIMFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 10), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathTIMFailure.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMFailure.setDescription('Failure declared of the Path Trace Identifier.')
acSonetPathTIMFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("void", 0), ("t64", 1), ("t64-crlf", 2), ("t16", 3), ("t16-msb1", 4), ("t16-crc7", 5))).clone('void')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathTIMFormat.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMFormat.setDescription('Format of Path Trace buffer.')
acSonetPathTIMMismatchZeros = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 12), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathTIMMismatchZeros.setStatus('current')
if mibBuilder.loadTexts: acSonetPathTIMMismatchZeros.setDescription('Controls whether a received trace message containing all zeros can cause a mismatch defect.')
acSonetPathPLMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6), )
if mibBuilder.loadTexts: acSonetPathPLMTable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMTable.setDescription('The SONET/SDH Path Payload Label Mismatch Table.')
acSonetPathPLMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMPath"))
if mibBuilder.loadTexts: acSonetPathPLMEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMEntry.setDescription('An entry in the SONET/SDH Path Payload Label Mismatch Table.')
acSonetPathPLMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathPLMNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPathPLMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathPLMSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMSlot.setDescription('The physical slot number of the port.')
acSonetPathPLMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathPLMPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMPort.setDescription('The physical port number of the port.')
acSonetPathPLMPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathPLMPath.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMPath.setDescription('The path instance of the port.')
acSonetPathPLMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathPLMDetectEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMDetectEnable.setDescription('Enables the detection of the Path Payload Label.')
acSonetPathPLMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathPLMTransmitedValue.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMTransmitedValue.setDescription('The Path Payload Label that gets sent to the destination. See GR-253 Tables 3-2, 3-3.')
acSonetPathPLMExpectedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathPLMExpectedValue.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMExpectedValue.setDescription('The expected Path Payload Label that is to be received. See GR-253 Tables 3-2, 3-3.')
acSonetPathPLMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathPLMReceivedValue.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMReceivedValue.setDescription('The contents of the Path Payload Label that is received. See GR-253 Tables 3-2, 3-3.')
acSonetPathPLMMismatchFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 9), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathPLMMismatchFailure.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMMismatchFailure.setDescription('Mismatch failure declared for the Path Payload Label.')
acSonetPathPLMUnequipped = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 10), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathPLMUnequipped.setStatus('current')
if mibBuilder.loadTexts: acSonetPathPLMUnequipped.setDescription('Unequipped failure declared for the Path Payload Label.')
acSonetFarEndPath15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1), )
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalTable.setDescription('The SONET/SDH FarEndPath 15Minute Interval table.')
acSonetFarEndPath15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalNumber"))
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndPath 15Minute Interval table.')
acSonetFarEndPath15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndPath15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSlot.setDescription('The physical slot number of the port.')
acSonetFarEndPath15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPort.setDescription('The physical port number of the port.')
acSonetFarEndPath15MinuteIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPath.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPath.setDescription('The STS Path for which the set of statistics is available.')
acSonetFarEndPath15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.')
acSonetFarEndPath15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this far end 15 minute interval is valid.')
acSonetFarEndPath15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 7), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for far end 15 minute interval.')
acSonetFarEndPath15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.')
acSonetFarEndPath15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.')
acSonetFarEndPath15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndPath in the current 15 minute interval.')
acSonetFarEndPath15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndPath in the current 15 minute interval.')
acSonetFarEndPathDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2), )
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalTable.setDescription('The SONET/SDH FarEndPath Day Interval table.')
acSonetFarEndPathDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalNumber"))
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndPath Day Interval table.')
acSonetFarEndPathDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndPathDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSlot.setDescription('The physical slot number of the port.')
acSonetFarEndPathDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPort.setDescription('The physical port number of the port.')
acSonetFarEndPathDayIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPath.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPath.setDescription('The STS Path for which the set of statistics is available.')
acSonetFarEndPathDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.')
acSonetFarEndPathDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalValidStats.setDescription('This variable indicates if the data for this far end day interval is valid.')
acSonetFarEndPathDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 7), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalResetStats.setDescription('This flag is used to reset the data for far end day interval.')
acSonetFarEndPathDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.')
acSonetFarEndPathDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.')
acSonetFarEndPathDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndPath in the current 15 minute interval.')
acSonetFarEndPathDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndPath in the current 15 minute interval.')
acSonetFarEndPathThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3), )
if mibBuilder.loadTexts: acSonetFarEndPathThresholdTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdTable.setDescription('The SONET/SDH FarEndPath Threshold Table.')
acSonetFarEndPathThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdSelectionNum"))
if mibBuilder.loadTexts: acSonetFarEndPathThresholdEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdEntry.setDescription('An entry in the SONET/SDH FarEndPath Threshold Table.')
acSonetFarEndPathThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndPathThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdSlot.setDescription('The physical slot number of the port.')
acSonetFarEndPathThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdPort.setDescription('The physical port number of the port.')
acSonetFarEndPathThresholdPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdPath.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdPath.setDescription('The STS Path for which the set of statistics is available.')
acSonetFarEndPathThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdSelectionNum.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ')
acSonetFarEndPathThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdAdminStatus.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.')
acSonetFarEndPathThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdESs.setDescription('The threshold associated with Errored Seconds.')
acSonetFarEndPathThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.')
acSonetFarEndPathThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdCVs.setDescription('The threshold associated with Coding Violations.')
acSonetFarEndPathThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndPathThresholdUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndPathThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.')
acSonetVT15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1), )
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalTable.setDescription('The SONET/SDH VT 15Minute Interval table.')
acSonetVT15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalNumber"))
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH VT 15Minute Interval table.')
acSonetVT15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetVT15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSlot.setDescription('The physical slot number of the port.')
acSonetVT15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalPort.setDescription('The physical port number of the port.')
acSonetVT15MinuteIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalVT.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalVT.setDescription('The VT for which the set of statistics is available.')
acSonetVT15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.')
acSonetVT15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 192))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetVTCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects and failures simultaneously. The acSonetVTNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetVTNoDefect 2 acSonetVTLOP 4 acSonetVTPathAIS 8 acSonetVTPathRDI 16 acSonetVTPathRFI 32 acSonetVTUnequipped 64 acSonetVTPayloadLabelMismatch')
acSonetVT15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this VT 15 minute interval is valid.')
acSonetVT15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 9), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for this VT 15 minute interval.')
acSonetVT15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH VT in the current 15 minute interval.')
acSonetVT15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH VT in the current 15 minute interval.')
acSonetVT15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH VT in the current 15 minute interval.')
acSonetVT15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 13), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a VT in the current 15 minute interval.')
acSonetVT15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 14), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalBER.setStatus('current')
if mibBuilder.loadTexts: acSonetVT15MinuteIntervalBER.setDescription('The counter associated with the BER encountered by a VT in the current 15 minute interval. Represents the max BER for the interval when number > 1.')
acSonetVTDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2), )
if mibBuilder.loadTexts: acSonetVTDayIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalTable.setDescription('The SONET/SDH VT Day Interval table.')
acSonetVTDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalNumber"))
if mibBuilder.loadTexts: acSonetVTDayIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalEntry.setDescription('An entry in the SONET/SDH VT Day Interval table.')
acSonetVTDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTDayIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetVTDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTDayIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalSlot.setDescription('The physical slot number of the port.')
acSonetVTDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTDayIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalPort.setDescription('The physical port number of the port.')
acSonetVTDayIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTDayIntervalVT.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalVT.setDescription('The VT for which the set of statistics is available.')
acSonetVTDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTDayIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.')
acSonetVTDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 192))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTDayIntervalStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetVTCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects and failures simultaneously. The acSonetVTNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetVTNoDefect 2 acSonetVTLOP 4 acSonetVTPathAIS 8 acSonetVTPathRDI 16 acSonetVTPathRFI 32 acSonetVTUnequipped 64 acSonetVTPayloadLabelMismatch')
acSonetVTDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTDayIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalValidStats.setDescription('This variable indicates if the data for this VT Day interval is valid.')
acSonetVTDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 8), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTDayIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalResetStats.setDescription('This flag is used to reset the data for this VT Day interval.')
acSonetVTDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTDayIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH VT in the last day interval.')
acSonetVTDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTDayIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH VT in the last day interval.')
acSonetVTDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTDayIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH VT in the last day interval.')
acSonetVTDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTDayIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetVTDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a VT in the last day interval.')
acSonetVTDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 13), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTDayIntervalBER.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetVTDayIntervalBER.setDescription('The counter associated with the max BER encountered by a VT in a day.')
acSonetVTThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3), )
if mibBuilder.loadTexts: acSonetVTThresholdTable.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdTable.setDescription('The SONET/SDH VT Threshold Table.')
acSonetVTThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdSelectionNum"))
if mibBuilder.loadTexts: acSonetVTThresholdEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdEntry.setDescription('An entry in the SONET/SDH VT Threshold Table.')
acSonetVTThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTThresholdNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetVTThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTThresholdSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdSlot.setDescription('The physical slot number of the port.')
acSonetVTThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTThresholdPort.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdPort.setDescription('The physical port number of the port.')
acSonetVTThresholdVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTThresholdVT.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdVT.setDescription('The VT for which the set of statistics is available.')
acSonetVTThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTThresholdSelectionNum.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ')
acSonetVTThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTThresholdAdminStatus.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetVTThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.')
acSonetVTThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTThresholdESs.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdESs.setDescription('The threshold associated with Errored Seconds.')
acSonetVTThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTThresholdSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.')
acSonetVTThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTThresholdCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdCVs.setDescription('The threshold associated with Coding Violations.')
acSonetVTThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTThresholdUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetVTThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.')
acSonetVTRDITable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4), )
if mibBuilder.loadTexts: acSonetVTRDITable.setStatus('current')
if mibBuilder.loadTexts: acSonetVTRDITable.setDescription('The SONET/SDH VT RDI Table.')
acSonetVTRDIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDINodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDISlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDIPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDIVT"))
if mibBuilder.loadTexts: acSonetVTRDIEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetVTRDIEntry.setDescription('An entry in the SONET/SDH VT RDI Table.')
acSonetVTRDINodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTRDINodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetVTRDINodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetVTRDISlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTRDISlot.setStatus('current')
if mibBuilder.loadTexts: acSonetVTRDISlot.setDescription('The physical slot number of the port.')
acSonetVTRDIPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTRDIPort.setStatus('current')
if mibBuilder.loadTexts: acSonetVTRDIPort.setDescription('The physical port number of the port.')
acSonetVTRDIVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTRDIVT.setStatus('current')
if mibBuilder.loadTexts: acSonetVTRDIVT.setDescription('The Virtual Tributary (VT) instance.')
acSonetVTRDIOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rdi", 1), ("erdi", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTRDIOpMode.setStatus('current')
if mibBuilder.loadTexts: acSonetVTRDIOpMode.setDescription('The Remote Defect Indiction signals have undergone a number of changes over the years, and now encompass two or even three different versions. See GR-253 6.2.1.3.3 for more information.')
acSonetVTPLMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5), )
if mibBuilder.loadTexts: acSonetVTPLMTable.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMTable.setDescription('The SONET/SDH VT Payload Label Mismatch Table.')
acSonetVTPLMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMVT"))
if mibBuilder.loadTexts: acSonetVTPLMEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMEntry.setDescription('An entry in the SONET/SDH VT Payload Label Mismatch Table.')
acSonetVTPLMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTPLMNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetVTPLMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTPLMSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMSlot.setDescription('The physical slot number of the port.')
acSonetVTPLMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTPLMPort.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMPort.setDescription('The physical port number of the port.')
acSonetVTPLMVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTPLMVT.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMVT.setDescription('The Virtual Tributary (VT) instance.')
acSonetVTPLMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTPLMDetectEnable.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMDetectEnable.setDescription('Enables the detection of the VT Payload Label.')
acSonetVTPLMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTPLMTransmitedValue.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMTransmitedValue.setDescription('The VT Payload Label that gets sent to the destination. See GR-253 Tables 3-4.')
acSonetVTPLMExpectedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTPLMExpectedValue.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMExpectedValue.setDescription('The expected VT Payload Label that is to be received. See GR-253 Tables 3-4.')
acSonetVTPLMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTPLMReceivedValue.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMReceivedValue.setDescription('The contents of the VT Payload Label that is received. See GR-253 Tables 3-4.')
acSonetVTPLMMismatchFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 9), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTPLMMismatchFailure.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMMismatchFailure.setDescription('Mismatch failure declared for the VT Payload Label.')
acSonetVTPLMUnequipped = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 10), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTPLMUnequipped.setStatus('current')
if mibBuilder.loadTexts: acSonetVTPLMUnequipped.setDescription('Unequipped failure declared for the VT Payload Label.')
acSonetFarEndVT15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1), )
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalTable.setDescription('The SONET/SDH FarEndVT 15Minute Interval table.')
acSonetFarEndVT15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalNumber"))
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndVT 15Minute Interval table.')
acSonetFarEndVT15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndVT15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSlot.setDescription('The physical slot number of the port.')
acSonetFarEndVT15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalPort.setDescription('The physical port number of the port.')
acSonetFarEndVT15MinuteIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalVT.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalVT.setDescription('The VT for which the set of statistics is available.')
acSonetFarEndVT15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.')
acSonetFarEndVT15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this VT FE 15 minute interval is valid.')
acSonetFarEndVT15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 7), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for this VT FE 15 minute interval.')
acSonetFarEndVT15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.')
acSonetFarEndVT15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.')
acSonetFarEndVT15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndVT in the current 15 minute interval.')
acSonetFarEndVT15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndVT in the current 15 minute interval.')
acSonetFarEndVTDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2), )
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalTable.setDescription('The SONET/SDH FarEndVT Day Interval table.')
acSonetFarEndVTDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalNumber"))
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndVT Day Interval table.')
acSonetFarEndVTDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndVTDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSlot.setDescription('The physical slot number of the port.')
acSonetFarEndVTDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalPort.setDescription('The physical port number of the port.')
acSonetFarEndVTDayIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalVT.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalVT.setDescription('The VT for which the set of statistics is available.')
acSonetFarEndVTDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNumber.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.')
acSonetFarEndVTDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalValidStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalValidStats.setDescription('This variable indicates if the data for this VT Day interval is valid.')
acSonetFarEndVTDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 7), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalResetStats.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalResetStats.setDescription('This flag is used to reset the data for this VT Day interval.')
acSonetFarEndVTDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.')
acSonetFarEndVTDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.')
acSonetFarEndVTDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndVT in the current 15 minute interval.')
acSonetFarEndVTDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndVT in the current 15 minute interval.')
acSonetFarEndVTThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3), )
if mibBuilder.loadTexts: acSonetFarEndVTThresholdTable.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdTable.setDescription('The SONET/SDH FarEndVT Threshold Table.')
acSonetFarEndVTThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdSelectionNum"))
if mibBuilder.loadTexts: acSonetFarEndVTThresholdEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdEntry.setDescription('An entry in the SONET/SDH FarEndVT Threshold Table.')
acSonetFarEndVTThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetFarEndVTThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdSlot.setDescription('The physical slot number of the port.')
acSonetFarEndVTThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdPort.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdPort.setDescription('The physical port number of the port.')
acSonetFarEndVTThresholdVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdVT.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdVT.setDescription('The VT for which the set of statistics is available.')
acSonetFarEndVTThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdSelectionNum.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ')
acSonetFarEndVTThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdAdminStatus.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.')
acSonetFarEndVTThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdESs.setDescription('The threshold associated with Errored Seconds.')
acSonetFarEndVTThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdSESs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.')
acSonetFarEndVTThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdCVs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdCVs.setDescription('The threshold associated with Coding Violations.')
acSonetFarEndVTThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetFarEndVTThresholdUASs.setStatus('current')
if mibBuilder.loadTexts: acSonetFarEndVTThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.')
acSonetPortProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4), )
if mibBuilder.loadTexts: acSonetPortProtectionTable.setStatus('current')
if mibBuilder.loadTexts: acSonetPortProtectionTable.setDescription('The SONET/SDH Port Protection table.')
acSonetPortProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionPort"))
if mibBuilder.loadTexts: acSonetPortProtectionEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPortProtectionEntry.setDescription('An entry in the SONET/SDH Port Protection table.')
acSonetPortProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPortProtectionNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPortProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPortProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPortProtectionSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPortProtectionSlot.setDescription('The physical slot number of the port.')
acSonetPortProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPortProtectionPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPortProtectionPort.setDescription('The physical port number of the port.')
acSonetPortProtectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("working", 1), ("protection", 2), ("west", 3), ("east", 4), ("match", 5), ("ring", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPortProtectionType.setStatus('current')
if mibBuilder.loadTexts: acSonetPortProtectionType.setDescription('This variable statically defines the purpose of the physical port connection as the working or protection port. It does not convey whether the system has undergone a protection switch.')
acSonetLineProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4), )
if mibBuilder.loadTexts: acSonetLineProtectionTable.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionTable.setDescription('The SONET/SDH Line Protection table.')
acSonetLineProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionPort"))
if mibBuilder.loadTexts: acSonetLineProtectionEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionEntry.setDescription('An entry in the SONET/SDH Line Protection table.')
acSonetLineProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineProtectionNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetLineProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineProtectionSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionSlot.setDescription('The physical slot number of the port.')
acSonetLineProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetLineProtectionPort.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionPort.setDescription('The physical port number of the port.')
acSonetLineProtectionArchitecture = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("one-plus-one", 2), ("one-to-one", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineProtectionArchitecture.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionArchitecture.setDescription('This variable defines the APS architecture as either 1+1 or 1:1.')
acSonetLineProtectionOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("unidirectional", 1), ("bidirectional", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineProtectionOpMode.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionOpMode.setDescription('This variable defines the APS mode as either unidirectional or bidirectional.')
acSonetLineProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineProtectionSwitchType.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionSwitchType.setDescription('This variable defines the APS switch type as either revertive or nonrevertive.')
acSonetLineProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineProtectionSFThreshold.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching.')
acSonetLineProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 9)).clone(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineProtectionSDThreshold.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching.')
acSonetLineProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 9), TruthValue().clone('false')).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineProtectionActiveTraffic.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionActiveTraffic.setDescription('This variable indicates when active traffic is on this line.')
acSonetLineProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 10), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineProtectionProtectionSwitch.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionProtectionSwitch.setDescription('This variable indicates when a protection switch is currently affecting this line.')
acSonetLineProtectionFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 11), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineProtectionFail.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionFail.setDescription('This variable indicates when a protection switching failure has taken place. See GR-253, 6.2.1.1.6.')
acSonetLineProtectionChannelMismatchFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 12), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineProtectionChannelMismatchFail.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionChannelMismatchFail.setDescription('This variable indicates when a protection switching channel mismatch failure has taken place. See GR-253, 6.2.1.1.6.')
acSonetLineProtectionModeMismatchFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 13), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineProtectionModeMismatchFail.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionModeMismatchFail.setDescription('This variable indicates when a protection switching mode mismatch failure has taken place. See GR-253, 6.2.1.1.6.')
acSonetLineProtectionFarEndLineFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 14), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetLineProtectionFarEndLineFail.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionFarEndLineFail.setDescription('This variable indicates when a protection switching far-end protection-line failure has taken place. See GR-253, 6.2.1.1.6.')
acSonetLineProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(300, 720))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineProtectionWTRTime.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionWTRTime.setDescription('This variable defines the APS Wait To Restore time. The time has one second granularity and may have a value in the range from 300 seconds (5 minutes) to 720 seconds (12 minutes).')
acSonetLineProtectionManCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6), ("exercise", 7), ("lockout-working", 8), ("clear-lockout-working", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetLineProtectionManCommand.setStatus('current')
if mibBuilder.loadTexts: acSonetLineProtectionManCommand.setDescription('This variable defines the APS manually initiated commands.')
acSonetPathProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7), )
if mibBuilder.loadTexts: acSonetPathProtectionTable.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionTable.setDescription('The SONET/SDH Path Protection table.')
acSonetPathProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionPath"))
if mibBuilder.loadTexts: acSonetPathProtectionEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionEntry.setDescription('An entry in the SONET/SDH Path Protection table.')
acSonetPathProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathProtectionNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetPathProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathProtectionSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionSlot.setDescription('The physical slot number of the port.')
acSonetPathProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathProtectionPort.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionPort.setDescription('The physical port number of the port.')
acSonetPathProtectionPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetPathProtectionPath.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionPath.setDescription('The STS-1 path for the port.')
acSonetPathProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionSwitchType.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionSwitchType.setDescription('This variable defines the path switch type as either revertive or nonrevertive.')
acSonetPathProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionSFThreshold.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching. The value used is the exponent to a power of 10, so 3 means 10E-3.')
acSonetPathProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 9)).clone(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionSDThreshold.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching. The value used is the exponent to a power of 10, so 6 means 10E-6.')
acSonetPathProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathProtectionActiveTraffic.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionActiveTraffic.setDescription('This variable indicates when ODP or UPSR active traffic is on this path.')
acSonetPathProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 9), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathProtectionProtectionSwitch.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionProtectionSwitch.setDescription('This variable indicates when either a UPSR or an ODP protection switch is currently affecting this path.')
acSonetPathProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionWTRTime.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionWTRTime.setDescription('This variable defines the ODP or UPSR Wait To Restore time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds(12 minutes).')
acSonetPathProtectionWTITime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionWTITime.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionWTITime.setDescription('This variable defines the ODP Wait To Idle time. The time has one second granularity and may have a value in the range from 1 to 50 seconds.')
acSonetPathProtectionWTCTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionWTCTime.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionWTCTime.setDescription('This variable defines the ODP Wait To Clear time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds (12 minutes).')
acSonetPathProtectionWTRelTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionWTRelTime.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionWTRelTime.setDescription('This variable defines the ODP Wait To Release time. The time has one second granularity and may have a value in the range from 1 to 50 seconds.')
acSonetPathProtectionManSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6), ("exercise", 7), ("lockout-working", 8), ("clear-lockout-working", 9), ("extra-traffic", 10)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionManSwitch.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionManSwitch.setDescription('This variable defines the ODP and UPSR manually initiated commands. Entries 7..10 are used in ODP only.')
acSonetPathProtectionSwitchOpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("idle", 1), ("bridged", 2), ("switched", 3), ("passthrough", 4), ("extra-traffic", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetPathProtectionSwitchOpStatus.setStatus('current')
if mibBuilder.loadTexts: acSonetPathProtectionSwitchOpStatus.setDescription('This variable defines the current switch condition of an ODP path.')
acSonetPathProtectionProtectionMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("odp", 1), ("upsr", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetPathProtectionProtectionMode.setStatus('deprecated')
if mibBuilder.loadTexts: acSonetPathProtectionProtectionMode.setDescription(' !! This object *MUST* be set before any other object is accessed. !! This is the type of protection switching to be used if independent path level protection switching is enabled. This is similar to the acTimeSlotPathProtectionMode object that resides in the timeslot table. Refer to it for a description of the enumerations.')
acSonetVTProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6), )
if mibBuilder.loadTexts: acSonetVTProtectionTable.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionTable.setDescription('The SONET/SDH VT Protection table.')
acSonetVTProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionVT"))
if mibBuilder.loadTexts: acSonetVTProtectionEntry.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionEntry.setDescription('An entry in the SONET/SDH VT Protection table.')
acSonetVTProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTProtectionNodeId.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.')
acSonetVTProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTProtectionSlot.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionSlot.setDescription('The physical slot number of the port.')
acSonetVTProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTProtectionPort.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionPort.setDescription('The physical port number of the port.')
acSonetVTProtectionVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 4), Integer32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSonetVTProtectionVT.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionVT.setDescription('The VT path instance for the port.')
acSonetVTProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTProtectionSwitchType.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionSwitchType.setDescription('This variable defines the VT path switch type as either revertive or nonrevertive.')
acSonetVTProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTProtectionSFThreshold.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching.')
acSonetVTProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 8)).clone(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTProtectionSDThreshold.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching.')
acSonetVTProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTProtectionProtectionSwitch.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionProtectionSwitch.setDescription('This variable indicates when a protection switch is currently affecting this path.')
acSonetVTProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTProtectionWTRTime.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionWTRTime.setDescription('This variable defines the UPSR Wait To Restore time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds(12 minutes).')
acSonetVTProtectionManSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acSonetVTProtectionManSwitch.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionManSwitch.setDescription('This variable defines the UPSR manually initiated commands.')
acSonetVTProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 11), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSonetVTProtectionActiveTraffic.setStatus('current')
if mibBuilder.loadTexts: acSonetVTProtectionActiveTraffic.setDescription('This variable indicates when UPSR active traffic is on this path.')
mibBuilder.exportSymbols("APPIAN-PPORT-SONET-MIB", acSonetPathTIMFormat=acSonetPathTIMFormat, acSonetFarEndVTThresholdPort=acSonetFarEndVTThresholdPort, acSonetPathProtectionProtectionMode=acSonetPathProtectionProtectionMode, acSonetSectionSSMEntry=acSonetSectionSSMEntry, acSonetPathProtectionSlot=acSonetPathProtectionSlot, acSonetFarEndPathDayIntervalValidStats=acSonetFarEndPathDayIntervalValidStats, acSonetVTDayIntervalVT=acSonetVTDayIntervalVT, acSonetFarEndVT15MinuteIntervalPort=acSonetFarEndVT15MinuteIntervalPort, acSonetSection15MinuteIntervalPort=acSonetSection15MinuteIntervalPort, acSonetPortValidIntervals=acSonetPortValidIntervals, acSonetFarEndPath15MinuteIntervalNodeId=acSonetFarEndPath15MinuteIntervalNodeId, acSonetVT15MinuteIntervalSESs=acSonetVT15MinuteIntervalSESs, acSonetPath15MinuteIntervalESs=acSonetPath15MinuteIntervalESs, acSonetSectionSSMNodeId=acSonetSectionSSMNodeId, acSonetLine15MinuteIntervalUASs=acSonetLine15MinuteIntervalUASs, acSonetSection=acSonetSection, acSonetPath=acSonetPath, acSonetPathThresholdNodeId=acSonetPathThresholdNodeId, acSonetPathDayIntervalUASs=acSonetPathDayIntervalUASs, acSonetPortOpStatus=acSonetPortOpStatus, acSonetPath15MinuteIntervalSlot=acSonetPath15MinuteIntervalSlot, acSonetVTRDIVT=acSonetVTRDIVT, acSonetVTThresholdSlot=acSonetVTThresholdSlot, acSonetVTThresholdSelectionNum=acSonetVTThresholdSelectionNum, acSonetPortNodeId=acSonetPortNodeId, acSonetPathDayIntervalBER=acSonetPathDayIntervalBER, acSonetPathTIMSlot=acSonetPathTIMSlot, acSonetFarEndPathThresholdCVs=acSonetFarEndPathThresholdCVs, acSonetFarEndVTDayIntervalVT=acSonetFarEndVTDayIntervalVT, acSonetPortProtectionEntry=acSonetPortProtectionEntry, acSonetFarEndVT15MinuteIntervalSlot=acSonetFarEndVT15MinuteIntervalSlot, acSonetPathThresholdUASs=acSonetPathThresholdUASs, acSonetVT15MinuteIntervalNodeId=acSonetVT15MinuteIntervalNodeId, acSonetVTDayIntervalNodeId=acSonetVTDayIntervalNodeId, acSonetVTProtectionEntry=acSonetVTProtectionEntry, acSonetVTDayIntervalSlot=acSonetVTDayIntervalSlot, acSonetVTProtectionSlot=acSonetVTProtectionSlot, acSonetFarEndPathDayIntervalPath=acSonetFarEndPathDayIntervalPath, acSonetVTPLMExpectedValue=acSonetVTPLMExpectedValue, acSonetFarEndVTThresholdSelectionNum=acSonetFarEndVTThresholdSelectionNum, acSonetPortProtectionType=acSonetPortProtectionType, acSonetLineProtectionManCommand=acSonetLineProtectionManCommand, acSonetFarEndLine15MinuteIntervalESs=acSonetFarEndLine15MinuteIntervalESs, acSonetFarEndVTDayIntervalNumber=acSonetFarEndVTDayIntervalNumber, acSonetPathTIMDetectEnable=acSonetPathTIMDetectEnable, acSonetVTProtectionActiveTraffic=acSonetVTProtectionActiveTraffic, acSonetVTRDIPort=acSonetVTRDIPort, acSonetPath15MinuteIntervalResetStats=acSonetPath15MinuteIntervalResetStats, acSonetThresholdSlot=acSonetThresholdSlot, acSonetPath15MinuteIntervalUASs=acSonetPath15MinuteIntervalUASs, acSonetSectionDayIntervalESs=acSonetSectionDayIntervalESs, acSonetFarEndVTThresholdSESs=acSonetFarEndVTThresholdSESs, acSonetLineDayIntervalSESs=acSonetLineDayIntervalSESs, acSonetLineProtectionOpMode=acSonetLineProtectionOpMode, acSonetVT15MinuteIntervalStatus=acSonetVT15MinuteIntervalStatus, acSonetFarEndVTDayIntervalValidStats=acSonetFarEndVTDayIntervalValidStats, acSonetFarEndVTDayIntervalCVs=acSonetFarEndVTDayIntervalCVs, acSonetDCCSlot=acSonetDCCSlot, acSonetFarEndLineThresholdESs=acSonetFarEndLineThresholdESs, acSonetVTThresholdEntry=acSonetVTThresholdEntry, acSonetLineDayIntervalUASs=acSonetLineDayIntervalUASs, acSonetPathRDIOpMode=acSonetPathRDIOpMode, acSonetPathProtectionWTRelTime=acSonetPathProtectionWTRelTime, acSonetPathTIMNodeId=acSonetPathTIMNodeId, acSonetVTDayIntervalTable=acSonetVTDayIntervalTable, acSonetPathPLMEntry=acSonetPathPLMEntry, acSonetPathThresholdCVs=acSonetPathThresholdCVs, acSonetFarEndPathDayIntervalResetStats=acSonetFarEndPathDayIntervalResetStats, acSonetPathProtectionPath=acSonetPathProtectionPath, acSonetFarEndVTDayIntervalSlot=acSonetFarEndVTDayIntervalSlot, acSonetVT15MinuteIntervalNumber=acSonetVT15MinuteIntervalNumber, acSonetFarEndLineDayIntervalUASs=acSonetFarEndLineDayIntervalUASs, acSonetLineThresholdCVs=acSonetLineThresholdCVs, acSonetVTDayIntervalBER=acSonetVTDayIntervalBER, acSonetFarEndVTDayIntervalResetStats=acSonetFarEndVTDayIntervalResetStats, acSonetLineProtectionModeMismatchFail=acSonetLineProtectionModeMismatchFail, acSonetFarEndLineThresholdPort=acSonetFarEndLineThresholdPort, acSonetFarEndLineDayIntervalCVs=acSonetFarEndLineDayIntervalCVs, acSonetPathDayIntervalCVs=acSonetPathDayIntervalCVs, acSonetPathDayIntervalEntry=acSonetPathDayIntervalEntry, acSonetFarEndVTDayIntervalUASs=acSonetFarEndVTDayIntervalUASs, acSonetFarEndPathDayIntervalSESs=acSonetFarEndPathDayIntervalSESs, acSonetPortOpCode=acSonetPortOpCode, acSonetVTProtectionSwitchType=acSonetVTProtectionSwitchType, acSonetFarEndLineDayIntervalESs=acSonetFarEndLineDayIntervalESs, acSonetFarEndVT15MinuteIntervalUASs=acSonetFarEndVT15MinuteIntervalUASs, acSonetPathDayIntervalStatus=acSonetPathDayIntervalStatus, acSonetFarEndPath15MinuteIntervalSESs=acSonetFarEndPath15MinuteIntervalSESs, acSonetVT15MinuteIntervalSlot=acSonetVT15MinuteIntervalSlot, acSonetPathTIMReceivedString=acSonetPathTIMReceivedString, acSonetLine=acSonetLine, acSonetFarEndVTDayIntervalPort=acSonetFarEndVTDayIntervalPort, acSonetVTRDITable=acSonetVTRDITable, acSonetFarEndLine15MinuteIntervalEntry=acSonetFarEndLine15MinuteIntervalEntry, acSonetPathProtectionWTCTime=acSonetPathProtectionWTCTime, acSonetFarEndPath15MinuteIntervalPath=acSonetFarEndPath15MinuteIntervalPath, acSonetFarEndVTThresholdCVs=acSonetFarEndVTThresholdCVs, acSonetSection15MinuteIntervalTable=acSonetSection15MinuteIntervalTable, acSonetPathProtectionTable=acSonetPathProtectionTable, acSonetLineProtectionChannelMismatchFail=acSonetLineProtectionChannelMismatchFail, acSonetVTThresholdUASs=acSonetVTThresholdUASs, acSonetVTDayIntervalCVs=acSonetVTDayIntervalCVs, acSonetPathPLMMismatchFailure=acSonetPathPLMMismatchFailure, acSonetFarEndLine15MinuteIntervalSlot=acSonetFarEndLine15MinuteIntervalSlot, acSonetFarEndVTThresholdUASs=acSonetFarEndVTThresholdUASs, acSonetLineProtectionTable=acSonetLineProtectionTable, acSonetPortEntry=acSonetPortEntry, acSonetFarEndLineThresholdEntry=acSonetFarEndLineThresholdEntry, acSonetLineDayIntervalCVs=acSonetLineDayIntervalCVs, acSonetSection15MinuteIntervalResetStats=acSonetSection15MinuteIntervalResetStats, acSonetVTThresholdPort=acSonetVTThresholdPort, acSonetVTProtectionSFThreshold=acSonetVTProtectionSFThreshold, acSonetDCCAppianEnable=acSonetDCCAppianEnable, acSonetSectionDayIntervalNumber=acSonetSectionDayIntervalNumber, acSonetLineDayIntervalNodeId=acSonetLineDayIntervalNodeId, acSonetVTProtectionNodeId=acSonetVTProtectionNodeId, acSonetFarEndPathDayIntervalUASs=acSonetFarEndPathDayIntervalUASs, acSonetFarEndVTDayIntervalSESs=acSonetFarEndVTDayIntervalSESs, acSonetLineThresholdPort=acSonetLineThresholdPort, acSonetPortRingName=acSonetPortRingName, acSonetSectionThresholdTable=acSonetSectionThresholdTable, acSonetPathThresholdPort=acSonetPathThresholdPort, acSonetLine15MinuteIntervalPort=acSonetLine15MinuteIntervalPort, acSonetSectionTIMSlot=acSonetSectionTIMSlot, acSonetFarEndLine15MinuteIntervalPort=acSonetFarEndLine15MinuteIntervalPort, acSonetVT15MinuteIntervalEntry=acSonetVT15MinuteIntervalEntry, acSonetFarEndLine=acSonetFarEndLine, acSonetLineThresholdNodeId=acSonetLineThresholdNodeId, acSonetVTProtectionManSwitch=acSonetVTProtectionManSwitch, acSonetFarEndVT=acSonetFarEndVT, acSonetSectionTIMDetectEnable=acSonetSectionTIMDetectEnable, acSonetPortProtectionNodeId=acSonetPortProtectionNodeId, acSonetPathProtectionActiveTraffic=acSonetPathProtectionActiveTraffic, acSonetPortResetAllPMregs=acSonetPortResetAllPMregs, acSonetPortConnectionType=acSonetPortConnectionType, acSonetVTDayIntervalResetStats=acSonetVTDayIntervalResetStats, acSonetFarEndPathThresholdEntry=acSonetFarEndPathThresholdEntry, acSonetLine15MinuteIntervalBER=acSonetLine15MinuteIntervalBER, acSonetDCCSectionEnable=acSonetDCCSectionEnable, acSonetFarEndPathThresholdUASs=acSonetFarEndPathThresholdUASs, acSonetPathTIMTable=acSonetPathTIMTable, acSonetVTPLMVT=acSonetVTPLMVT, acSonetPathDayIntervalPort=acSonetPathDayIntervalPort, acSonetSectionSSMReceivedValue=acSonetSectionSSMReceivedValue, acSonetFarEndLineThresholdSlot=acSonetFarEndLineThresholdSlot, acSonetSectionDayIntervalResetStats=acSonetSectionDayIntervalResetStats, acSonetVTProtectionPort=acSonetVTProtectionPort, acSonetLineDayIntervalPort=acSonetLineDayIntervalPort, acSonetLineDayIntervalTable=acSonetLineDayIntervalTable, acSonetFarEndVTThresholdEntry=acSonetFarEndVTThresholdEntry, acSonetPathThresholdSlot=acSonetPathThresholdSlot, acSonetPath15MinuteIntervalStatus=acSonetPath15MinuteIntervalStatus, acSonetFarEndPath15MinuteIntervalNumber=acSonetFarEndPath15MinuteIntervalNumber, acSonetPortProtectionPort=acSonetPortProtectionPort, acSonetVTPLMTable=acSonetVTPLMTable, acSonetFarEndLine15MinuteIntervalTable=acSonetFarEndLine15MinuteIntervalTable, acSonetFarEndPath=acSonetFarEndPath, acSonetPathThresholdTable=acSonetPathThresholdTable, acSonetFarEndVT15MinuteIntervalValidStats=acSonetFarEndVT15MinuteIntervalValidStats, acSonetFarEndPathDayIntervalTable=acSonetFarEndPathDayIntervalTable, acSonetSectionDayIntervalTable=acSonetSectionDayIntervalTable, acSonetDCCPort=acSonetDCCPort, acSonetSectionTIMExpectedString=acSonetSectionTIMExpectedString, acSonetSectionTIMFailure=acSonetSectionTIMFailure, acSonetSectionSSMDetectEnable=acSonetSectionSSMDetectEnable, acSonetDCCAppianFail=acSonetDCCAppianFail, acSonetLineProtectionSwitchType=acSonetLineProtectionSwitchType, acSonetPathDayIntervalTable=acSonetPathDayIntervalTable, acSonetFarEndPath15MinuteIntervalResetStats=acSonetFarEndPath15MinuteIntervalResetStats, acSonetPathTIMEntry=acSonetPathTIMEntry, acSonetVTDayIntervalPort=acSonetVTDayIntervalPort, acSonetLineDayIntervalValidStats=acSonetLineDayIntervalValidStats, acSonetFarEndLineDayIntervalEntry=acSonetFarEndLineDayIntervalEntry, acSonetLineProtectionNodeId=acSonetLineProtectionNodeId, acSonetSection15MinuteIntervalNodeId=acSonetSection15MinuteIntervalNodeId, acSonetPathDayIntervalPath=acSonetPathDayIntervalPath, acSonetSectionTIMReceivedString=acSonetSectionTIMReceivedString, acSonetPathProtectionWTRTime=acSonetPathProtectionWTRTime, acSonetFarEndLine15MinuteIntervalResetStats=acSonetFarEndLine15MinuteIntervalResetStats, acSonetFarEndLineThresholdUASs=acSonetFarEndLineThresholdUASs, acSonetFarEndLine15MinuteIntervalSESs=acSonetFarEndLine15MinuteIntervalSESs, acSonetFarEndLineDayIntervalNodeId=acSonetFarEndLineDayIntervalNodeId, acSonetFarEndVT15MinuteIntervalResetStats=acSonetFarEndVT15MinuteIntervalResetStats, acSonetSection15MinuteIntervalCVs=acSonetSection15MinuteIntervalCVs, acSonetLineDayIntervalStatus=acSonetLineDayIntervalStatus, acSonetLine15MinuteIntervalESs=acSonetLine15MinuteIntervalESs, acSonetPathThresholdSelectionNum=acSonetPathThresholdSelectionNum, acSonetPathRDINodeId=acSonetPathRDINodeId, acSonetLineThresholdSelectionNum=acSonetLineThresholdSelectionNum, acSonetFarEndLineThresholdNodeId=acSonetFarEndLineThresholdNodeId, acSonetFarEndLineThresholdSelectionNum=acSonetFarEndLineThresholdSelectionNum, acSonetFarEndVT15MinuteIntervalEntry=acSonetFarEndVT15MinuteIntervalEntry, acSonetPortTimeElapsed=acSonetPortTimeElapsed, acSonetPathRDIPort=acSonetPathRDIPort, acSonetPortAdminStatus=acSonetPortAdminStatus, acSonetSection15MinuteIntervalESs=acSonetSection15MinuteIntervalESs, acSonetSectionDayIntervalEntry=acSonetSectionDayIntervalEntry, acSonetLineProtectionSFThreshold=acSonetLineProtectionSFThreshold, acSonetLineDayIntervalResetStats=acSonetLineDayIntervalResetStats, acSonetLineProtectionProtectionSwitch=acSonetLineProtectionProtectionSwitch, acSonetVT15MinuteIntervalUASs=acSonetVT15MinuteIntervalUASs, acSonetLine15MinuteIntervalSlot=acSonetLine15MinuteIntervalSlot, acSonetLine15MinuteIntervalTable=acSonetLine15MinuteIntervalTable, acSonetSectionSSMSlot=acSonetSectionSSMSlot, acSonetLine15MinuteIntervalCVs=acSonetLine15MinuteIntervalCVs, acSonetLineThresholdSESs=acSonetLineThresholdSESs, acSonetPathProtectionNodeId=acSonetPathProtectionNodeId, acSonetDCCTable=acSonetDCCTable, acSonetPath15MinuteIntervalCVs=acSonetPath15MinuteIntervalCVs, acSonetFarEndVTThresholdNodeId=acSonetFarEndVTThresholdNodeId, acSonetVTPLMUnequipped=acSonetVTPLMUnequipped, acSonetPortTransmitterEnable=acSonetPortTransmitterEnable, acSonetLineDayIntervalEntry=acSonetLineDayIntervalEntry, acSonetVT15MinuteIntervalResetStats=acSonetVT15MinuteIntervalResetStats, acSonetPathProtectionProtectionSwitch=acSonetPathProtectionProtectionSwitch, acSonetPortRingIdentifier=acSonetPortRingIdentifier, acSonetFarEndPathThresholdSESs=acSonetFarEndPathThresholdSESs, acSonetPathThresholdEntry=acSonetPathThresholdEntry, acSonetPathProtectionSwitchType=acSonetPathProtectionSwitchType, acSonetFarEndPathThresholdPort=acSonetFarEndPathThresholdPort, acSonetSectionTIMTable=acSonetSectionTIMTable, acSonetFarEndPathDayIntervalEntry=acSonetFarEndPathDayIntervalEntry, acSonetLineDayIntervalBER=acSonetLineDayIntervalBER, acSonetFarEndLine15MinuteIntervalNodeId=acSonetFarEndLine15MinuteIntervalNodeId, acSonetSectionThresholdSESs=acSonetSectionThresholdSESs, acSonetPath15MinuteIntervalPath=acSonetPath15MinuteIntervalPath, acSonetSectionDayIntervalPort=acSonetSectionDayIntervalPort, acSonetVTProtectionSDThreshold=acSonetVTProtectionSDThreshold, acSonetSectionThresholdCVs=acSonetSectionThresholdCVs, acSonetLineThresholdTable=acSonetLineThresholdTable, acSonetSectionTIMFormat=acSonetSectionTIMFormat, acSonetFarEndLineThresholdAdminStatus=acSonetFarEndLineThresholdAdminStatus, acSonetPathTIMGenerateEnable=acSonetPathTIMGenerateEnable, acSonetFarEndLineDayIntervalSESs=acSonetFarEndLineDayIntervalSESs, acSonetFarEndPath15MinuteIntervalEntry=acSonetFarEndPath15MinuteIntervalEntry, acSonetObjectsVT=acSonetObjectsVT, acSonetSectionDayIntervalValidStats=acSonetSectionDayIntervalValidStats, acSonetThresholdPort=acSonetThresholdPort, acSonetLineProtectionSDThreshold=acSonetLineProtectionSDThreshold, acSonetLineProtectionArchitecture=acSonetLineProtectionArchitecture, acSonetFarEndPathDayIntervalESs=acSonetFarEndPathDayIntervalESs, acSonetFarEndLineDayIntervalSlot=acSonetFarEndLineDayIntervalSlot, acSonetPathTIMMismatchZeros=acSonetPathTIMMismatchZeros, acSonetVTPLMMismatchFailure=acSonetVTPLMMismatchFailure, acSonetFarEndPath15MinuteIntervalCVs=acSonetFarEndPath15MinuteIntervalCVs, acSonetSectionDayIntervalSESs=acSonetSectionDayIntervalSESs, acSonetVT15MinuteIntervalCVs=acSonetVT15MinuteIntervalCVs, acSonetPathProtectionManSwitch=acSonetPathProtectionManSwitch, acSonetVTProtectionWTRTime=acSonetVTProtectionWTRTime, acSonetPort=acSonetPort, acSonetPortSlot=acSonetPortSlot, acSonetPathPLMNodeId=acSonetPathPLMNodeId, acSonetFarEndPathDayIntervalNumber=acSonetFarEndPathDayIntervalNumber, acSonetSectionThresholdNodeId=acSonetSectionThresholdNodeId)
mibBuilder.exportSymbols("APPIAN-PPORT-SONET-MIB", acSonetSectionDayIntervalCVs=acSonetSectionDayIntervalCVs, acSonetVTDayIntervalStatus=acSonetVTDayIntervalStatus, acSonetLineProtectionFarEndLineFail=acSonetLineProtectionFarEndLineFail, acSonetPathThresholdSESs=acSonetPathThresholdSESs, acSonetSectionDayIntervalSEFSs=acSonetSectionDayIntervalSEFSs, acSonetSectionSSMTable=acSonetSectionSSMTable, acSonetPortMediumType=acSonetPortMediumType, acSonetLineDayIntervalSlot=acSonetLineDayIntervalSlot, acSonetFarEndPath15MinuteIntervalTable=acSonetFarEndPath15MinuteIntervalTable, acSonetLineProtectionEntry=acSonetLineProtectionEntry, acSonetPathProtectionSwitchOpStatus=acSonetPathProtectionSwitchOpStatus, acSonetFarEndVT15MinuteIntervalNumber=acSonetFarEndVT15MinuteIntervalNumber, acSonetSectionThresholdEntry=acSonetSectionThresholdEntry, acSonetFarEndPathDayIntervalPort=acSonetFarEndPathDayIntervalPort, acSonetFarEndLine15MinuteIntervalCVs=acSonetFarEndLine15MinuteIntervalCVs, acSonetPathRDITable=acSonetPathRDITable, acSonetVT15MinuteIntervalPort=acSonetVT15MinuteIntervalPort, acSonetVT15MinuteIntervalTable=acSonetVT15MinuteIntervalTable, acSonetFarEndVT15MinuteIntervalSESs=acSonetFarEndVT15MinuteIntervalSESs, acSonetPortProtectionTable=acSonetPortProtectionTable, acSonetSectionDayIntervalSlot=acSonetSectionDayIntervalSlot, acSonetFarEndPathThresholdAdminStatus=acSonetFarEndPathThresholdAdminStatus, acSonetVTDayIntervalEntry=acSonetVTDayIntervalEntry, acSonetThresholdNodeId=acSonetThresholdNodeId, acSonetSectionSSMPort=acSonetSectionSSMPort, acSonetVTDayIntervalESs=acSonetVTDayIntervalESs, acSonetVTPLMDetectEnable=acSonetVTPLMDetectEnable, AcTraceString=AcTraceString, acSonetLineProtectionFail=acSonetLineProtectionFail, acSonetPathTIMPort=acSonetPathTIMPort, acSonetLine15MinuteIntervalValidStats=acSonetLine15MinuteIntervalValidStats, acSonetVTRDISlot=acSonetVTRDISlot, acSonetVTRDIOpMode=acSonetVTRDIOpMode, acSonetPath15MinuteIntervalValidStats=acSonetPath15MinuteIntervalValidStats, acSonetFarEndVTThresholdESs=acSonetFarEndVTThresholdESs, acSonetSectionDayIntervalStatus=acSonetSectionDayIntervalStatus, acSonetVTPLMReceivedValue=acSonetVTPLMReceivedValue, acSonetPathTIMTransmitedString=acSonetPathTIMTransmitedString, acSonetFarEndLineThresholdCVs=acSonetFarEndLineThresholdCVs, acSonetPath15MinuteIntervalNumber=acSonetPath15MinuteIntervalNumber, acSonetPathProtectionPort=acSonetPathProtectionPort, acSonetFarEndPathDayIntervalCVs=acSonetFarEndPathDayIntervalCVs, acSonetLineThresholdESs=acSonetLineThresholdESs, acSonetPathPLMExpectedValue=acSonetPathPLMExpectedValue, acSonetFarEndPath15MinuteIntervalUASs=acSonetFarEndPath15MinuteIntervalUASs, acSonetVTProtectionTable=acSonetVTProtectionTable, acSonetLineThresholdUASs=acSonetLineThresholdUASs, acSonetSectionThresholdSelectionNum=acSonetSectionThresholdSelectionNum, acSonetPathPLMReceivedValue=acSonetPathPLMReceivedValue, acSonetVTThresholdCVs=acSonetVTThresholdCVs, acSonetPathThresholdESs=acSonetPathThresholdESs, acSonetFarEndVTThresholdAdminStatus=acSonetFarEndVTThresholdAdminStatus, acSonetDCCNodeId=acSonetDCCNodeId, acSonetPathDayIntervalValidStats=acSonetPathDayIntervalValidStats, acSonetSectionDayIntervalNodeId=acSonetSectionDayIntervalNodeId, acSonetVT15MinuteIntervalVT=acSonetVT15MinuteIntervalVT, acSonetPortPort=acSonetPortPort, acSonetLineDayIntervalNumber=acSonetLineDayIntervalNumber, acSonetFarEndLineDayIntervalResetStats=acSonetFarEndLineDayIntervalResetStats, acSonetSectionSSMTransmitedValue=acSonetSectionSSMTransmitedValue, acSonetVTDayIntervalUASs=acSonetVTDayIntervalUASs, acSonetVTRDINodeId=acSonetVTRDINodeId, acSonetPathProtectionSFThreshold=acSonetPathProtectionSFThreshold, acSonetFarEndLineDayIntervalTable=acSonetFarEndLineDayIntervalTable, acSonetLineDayIntervalESs=acSonetLineDayIntervalESs, acSonetPortProtectionSlot=acSonetPortProtectionSlot, acSonetFarEndVTThresholdVT=acSonetFarEndVTThresholdVT, acSonetSection15MinuteIntervalNumber=acSonetSection15MinuteIntervalNumber, acSonetLine15MinuteIntervalSESs=acSonetLine15MinuteIntervalSESs, acSonetVTPLMTransmitedValue=acSonetVTPLMTransmitedValue, acSonetVT15MinuteIntervalBER=acSonetVT15MinuteIntervalBER, acSonetVTPLMNodeId=acSonetVTPLMNodeId, acSonetVTThresholdNodeId=acSonetVTThresholdNodeId, acSonetFarEndVTDayIntervalESs=acSonetFarEndVTDayIntervalESs, acSonetFarEndVTDayIntervalEntry=acSonetFarEndVTDayIntervalEntry, acSonetThresholdTable=acSonetThresholdTable, acSonetFarEndPath15MinuteIntervalESs=acSonetFarEndPath15MinuteIntervalESs, acSonetFarEndPathThresholdSlot=acSonetFarEndPathThresholdSlot, acSonetFarEndLineDayIntervalValidStats=acSonetFarEndLineDayIntervalValidStats, acSonetFarEndPathThresholdSelectionNum=acSonetFarEndPathThresholdSelectionNum, acSonetFarEndVTDayIntervalNodeId=acSonetFarEndVTDayIntervalNodeId, acSonetFarEndLineThresholdSESs=acSonetFarEndLineThresholdSESs, acSonetPortResetCurrentPMregs=acSonetPortResetCurrentPMregs, acSonetSection15MinuteIntervalEntry=acSonetSection15MinuteIntervalEntry, acSonetPortTable=acSonetPortTable, acSonetFarEndPathThresholdPath=acSonetFarEndPathThresholdPath, acSonetVTThresholdSESs=acSonetVTThresholdSESs, acSonetPathRDIPath=acSonetPathRDIPath, acSonetFarEndLineDayIntervalNumber=acSonetFarEndLineDayIntervalNumber, acSonetLineProtectionActiveTraffic=acSonetLineProtectionActiveTraffic, acSonetPathPLMTransmitedValue=acSonetPathPLMTransmitedValue, acSonetLineThresholdEntry=acSonetLineThresholdEntry, acSonetSection15MinuteIntervalSESs=acSonetSection15MinuteIntervalSESs, acSonetLine15MinuteIntervalStatus=acSonetLine15MinuteIntervalStatus, acSonetPathDayIntervalSESs=acSonetPathDayIntervalSESs, acSonet=acSonet, acSonetPathPLMSlot=acSonetPathPLMSlot, acSonetVTProtectionVT=acSonetVTProtectionVT, acSonetFarEndLine15MinuteIntervalNumber=acSonetFarEndLine15MinuteIntervalNumber, acSonetFarEndLine15MinuteIntervalValidStats=acSonetFarEndLine15MinuteIntervalValidStats, acSonetVT15MinuteIntervalValidStats=acSonetVT15MinuteIntervalValidStats, acSonetThresholdSESSet=acSonetThresholdSESSet, acSonetSectionTIMGenerateEnable=acSonetSectionTIMGenerateEnable, acSonetVTDayIntervalSESs=acSonetVTDayIntervalSESs, acSonetLineThresholdSlot=acSonetLineThresholdSlot, acSonetPath15MinuteIntervalBER=acSonetPath15MinuteIntervalBER, PYSNMP_MODULE_ID=acSonet, acSonetPortCircuitIdentifier=acSonetPortCircuitIdentifier, acSonetFarEndVTThresholdSlot=acSonetFarEndVTThresholdSlot, acSonetPathPLMDetectEnable=acSonetPathPLMDetectEnable, acSonetFarEndPathThresholdTable=acSonetFarEndPathThresholdTable, acSonetDCCLineEnable=acSonetDCCLineEnable, acSonetSectionThresholdPort=acSonetSectionThresholdPort, acSonetSectionThresholdSEFSs=acSonetSectionThresholdSEFSs, acSonetPath15MinuteIntervalTable=acSonetPath15MinuteIntervalTable, acSonetVTDayIntervalValidStats=acSonetVTDayIntervalValidStats, acSonetPath15MinuteIntervalNodeId=acSonetPath15MinuteIntervalNodeId, acSonetSectionTIMEntry=acSonetSectionTIMEntry, acSonetPathDayIntervalResetStats=acSonetPathDayIntervalResetStats, acSonetSectionTIMTransmitedString=acSonetSectionTIMTransmitedString, acSonetFarEndLineDayIntervalPort=acSonetFarEndLineDayIntervalPort, acSonetLine15MinuteIntervalNodeId=acSonetLine15MinuteIntervalNodeId, acSonetVTDayIntervalNumber=acSonetVTDayIntervalNumber, acSonetPortInvalidIntervals=acSonetPortInvalidIntervals, acSonetPathProtectionWTITime=acSonetPathProtectionWTITime, acSonetPath15MinuteIntervalEntry=acSonetPath15MinuteIntervalEntry, acSonetPathThresholdAdminStatus=acSonetPathThresholdAdminStatus, acSonetFarEndVT15MinuteIntervalTable=acSonetFarEndVT15MinuteIntervalTable, acSonetSectionThresholdESs=acSonetSectionThresholdESs, acSonetPortMediumLineCoding=acSonetPortMediumLineCoding, acSonetPathPLMTable=acSonetPathPLMTable, acSonetVT15MinuteIntervalESs=acSonetVT15MinuteIntervalESs, acSonetFarEndVT15MinuteIntervalVT=acSonetFarEndVT15MinuteIntervalVT, acSonetSection15MinuteIntervalSEFSs=acSonetSection15MinuteIntervalSEFSs, acSonetFarEndVT15MinuteIntervalNodeId=acSonetFarEndVT15MinuteIntervalNodeId, acSonetPortLoopbackConfig=acSonetPortLoopbackConfig, acSonetFarEndPathDayIntervalNodeId=acSonetFarEndPathDayIntervalNodeId, acSonetLineProtectionWTRTime=acSonetLineProtectionWTRTime, acSonetPathDayIntervalNumber=acSonetPathDayIntervalNumber, acSonetVT=acSonetVT, acSonetVTProtectionProtectionSwitch=acSonetVTProtectionProtectionSwitch, acSonetPath15MinuteIntervalSESs=acSonetPath15MinuteIntervalSESs, acSonetVTRDIEntry=acSonetVTRDIEntry, acSonetObjectsPath=acSonetObjectsPath, acSonetVTPLMEntry=acSonetVTPLMEntry, acSonetSection15MinuteIntervalSlot=acSonetSection15MinuteIntervalSlot, acSonetFarEndPath15MinuteIntervalValidStats=acSonetFarEndPath15MinuteIntervalValidStats, acSonetFarEndPathThresholdESs=acSonetFarEndPathThresholdESs, acSonetObjects=acSonetObjects, acSonetFarEndLine15MinuteIntervalUASs=acSonetFarEndLine15MinuteIntervalUASs, acSonetLine15MinuteIntervalNumber=acSonetLine15MinuteIntervalNumber, acSonetFarEndVTDayIntervalTable=acSonetFarEndVTDayIntervalTable, acSonetPathThresholdPath=acSonetPathThresholdPath, acSonetSectionTIMMismatchZeros=acSonetSectionTIMMismatchZeros, acSonetLineProtectionSlot=acSonetLineProtectionSlot, acSonetFarEndPathThresholdNodeId=acSonetFarEndPathThresholdNodeId, acSonetPortMediumLineType=acSonetPortMediumLineType, acSonetLine15MinuteIntervalResetStats=acSonetLine15MinuteIntervalResetStats, acSonetVTPLMSlot=acSonetVTPLMSlot, acSonetPathPLMUnequipped=acSonetPathPLMUnequipped, acSonetSectionTIMNodeId=acSonetSectionTIMNodeId, acSonetDCCSectionFail=acSonetDCCSectionFail, acSonetLine15MinuteIntervalEntry=acSonetLine15MinuteIntervalEntry, acSonetFarEndPath15MinuteIntervalSlot=acSonetFarEndPath15MinuteIntervalSlot, acSonetPathTIMFailure=acSonetPathTIMFailure, acSonetLineProtectionPort=acSonetLineProtectionPort, acSonetSection15MinuteIntervalValidStats=acSonetSection15MinuteIntervalValidStats, acSonetPathDayIntervalNodeId=acSonetPathDayIntervalNodeId, acSonetFarEndVT15MinuteIntervalCVs=acSonetFarEndVT15MinuteIntervalCVs, acSonetFarEndLineThresholdTable=acSonetFarEndLineThresholdTable, acSonetPathRDIEntry=acSonetPathRDIEntry, acSonetPathProtectionSDThreshold=acSonetPathProtectionSDThreshold, acSonetPathPLMPort=acSonetPathPLMPort, acSonetVTThresholdVT=acSonetVTThresholdVT, acSonetPathPLMPath=acSonetPathPLMPath, acSonetVTThresholdESs=acSonetVTThresholdESs, acSonetPathRDISlot=acSonetPathRDISlot, acSonetDCCEntry=acSonetDCCEntry, acSonetThresholdEntry=acSonetThresholdEntry, acSonetSection15MinuteIntervalStatus=acSonetSection15MinuteIntervalStatus, acSonetFarEndVT15MinuteIntervalESs=acSonetFarEndVT15MinuteIntervalESs, acSonetPathTIMExpectedString=acSonetPathTIMExpectedString, acSonetSectionThresholdSlot=acSonetSectionThresholdSlot, acSonetPathDayIntervalSlot=acSonetPathDayIntervalSlot, acSonetFarEndPath15MinuteIntervalPort=acSonetFarEndPath15MinuteIntervalPort, acSonetFarEndVTThresholdTable=acSonetFarEndVTThresholdTable, acSonetVTThresholdAdminStatus=acSonetVTThresholdAdminStatus, acSonetPathProtectionEntry=acSonetPathProtectionEntry, acSonetFarEndPathDayIntervalSlot=acSonetFarEndPathDayIntervalSlot, acSonetVTThresholdTable=acSonetVTThresholdTable, acSonetPathTIMPath=acSonetPathTIMPath, acSonetPathDayIntervalESs=acSonetPathDayIntervalESs, acSonetSectionTIMPort=acSonetSectionTIMPort, acSonetSectionThresholdAdminStatus=acSonetSectionThresholdAdminStatus, acSonetPath15MinuteIntervalPort=acSonetPath15MinuteIntervalPort, acSonetDCCLineFail=acSonetDCCLineFail, acSonetVTPLMPort=acSonetVTPLMPort, acSonetLineThresholdAdminStatus=acSonetLineThresholdAdminStatus)
| 156.500736 | 14,990 | 0.803113 | 23,710 | 212,528 | 7.198735 | 0.046942 | 0.010546 | 0.108395 | 0.01139 | 0.56709 | 0.44188 | 0.425569 | 0.4106 | 0.364801 | 0.332824 | 0 | 0.054808 | 0.087753 | 212,528 | 1,357 | 14,991 | 156.616065 | 0.82555 | 0.00159 | 0 | 0 | 0 | 0.086053 | 0.27888 | 0.034079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002226 | 0.012611 | 0 | 0.01632 | 0.000742 | 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 |
9d184e45be5e479dd73d50dbdd0ab9d57a0de137 | 2,226 | py | Python | ehcmodel/factors/run_test_suite.py | asarkany/ehcmodel | 409b0898633a6bfcd618c869c6bf00d0f921cf01 | [
"BSD-3-Clause"
] | null | null | null | ehcmodel/factors/run_test_suite.py | asarkany/ehcmodel | 409b0898633a6bfcd618c869c6bf00d0f921cf01 | [
"BSD-3-Clause"
] | null | null | null | ehcmodel/factors/run_test_suite.py | asarkany/ehcmodel | 409b0898633a6bfcd618c869c6bf00d0f921cf01 | [
"BSD-3-Clause"
] | null | null | null | # Author: Andras Sarkany
# License: BSD 3-clause
# Copyright (c) 2017, ELTE
from ehcmodel.factors.test_suite import *
eval_funcs = [
'activations',
'summed_activations',
'spatial_coverage_plot',
#'spatial_coverage_quant',
#'input_reception',
'sparsity_analysis',
'epoch_metrics',
#'head_direction_independence'
#'use_cache',
#'no_quant',
]
#test_test('train',eval_funcs)
#test1('train',eval_funcs)
#test1_early_stop('train',eval_funcs)
#test2('train',eval_funcs)
#test3('train',eval_funcs)
#test4('train',eval_funcs)
#test5('train',eval_funcs)
#test6('train',eval_funcs)
#test7('train',eval_funcs)
#test8('train',eval_funcs)
#test9('train',eval_funcs)
#test10('train',eval_funcs)
#test11('train',eval_funcs)
#test25('train',eval_funcs)
#test24('train',eval_funcs)
#test30('train',eval_funcs)
#test31('train',eval_funcs)
##
#tests = ['test30','test31','test16','test25','test11','test18','test24_relu','test24']
##
#test_test('eval',eval_funcs)
#test1('eval',eval_funcs)
#test1_early_stop('eval',eval_funcs)
#test2('eval',eval_funcs)
#test3('eval',eval_funcs)
#test4('eval',eval_funcs)
#test5('eval',eval_funcs)
#test6('eval',eval_funcs)
#test7('eval',eval_funcs)
#test8('eval',eval_funcs)
#test9('eval',eval_funcs)
#test10('eval',eval_funcs)
#test11('eval',eval_funcs)
#test17('eval',eval_funcs)
#test16('eval',eval_funcs)
debug_test18('train',eval_funcs)
#test18('eval',eval_funcs)
#test28('train',eval_funcs)
#test28('eval',eval_funcs)
#test29('train',eval_funcs)
#test29('eval',eval_funcs)
#test34('train',eval_funcs)
#test34('eval',eval_funcs)
#test23('eval',eval_funcs)
#test24('eval',eval_funcs)
#test24_relu('eval',eval_funcs)
#test25('eval',eval_funcs)
#test31('eval',eval_funcs)
#test30('eval',eval_funcs)
#test19('eval',eval_funcs)
#test28('eval',eval_funcs)
#test29('eval',eval_funcs)
#test_multilayer('eval',eval_funcs)
#test18('train',eval_funcs)
#debug_test18('train',eval_funcs)
#debug_test18('eval',eval_funcs)
#test33('train',eval_funcs)
#test33('eval',eval_funcs)
#test_de1('train',eval_funcs)
#test_de1('eval',eval_funcs)
#test_test('eval',eval_funcs)
| 25.011236 | 87 | 0.696316 | 297 | 2,226 | 4.925926 | 0.232323 | 0.362953 | 0.293233 | 0.041012 | 0.196172 | 0.136022 | 0.09296 | 0 | 0 | 0 | 0 | 0.054122 | 0.11186 | 2,226 | 88 | 88 | 25.295455 | 0.685888 | 0.781671 | 0 | 0 | 0 | 0 | 0.204819 | 0.050602 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
9d18729063b01c57196f0b80d68dc293916377fa | 1,160 | py | Python | tests/test/commands/ibmcloud/test_oc.py | IBM/data-gate-cli | fc0cb1a560a0156c71eb63a550e198d0cd36e1df | [
"Apache-2.0"
] | 9 | 2020-08-21T08:46:34.000Z | 2021-09-02T15:47:41.000Z | tests/test/commands/ibmcloud/test_oc.py | IBM/data-gate-cli | fc0cb1a560a0156c71eb63a550e198d0cd36e1df | [
"Apache-2.0"
] | 10 | 2020-11-26T15:31:43.000Z | 2021-11-08T15:00:01.000Z | tests/test/commands/ibmcloud/test_oc.py | IBM/data-gate-cli | fc0cb1a560a0156c71eb63a550e198d0cd36e1df | [
"Apache-2.0"
] | 1 | 2022-03-10T07:14:49.000Z | 2022-03-10T07:14:49.000Z | # Copyright 2021 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import json
import unittest
from pathlib import Path
from unittest.mock import patch
from cpo.lib.ibmcloud.openshift import get_latest_supported_openshift_version
class TestIBMCloudOpenShift(unittest.TestCase):
@patch(
"cpo.lib.ibmcloud.openshift._get_oc_versions_as_json",
return_value=json.loads((Path(__file__).parent / "dependencies/ibmcloud_oc_versions.json").read_text()),
)
def test_get_openshift_version(self, test_mock):
result = get_latest_supported_openshift_version()
self.assertEqual("4.5.18_openshift", result)
| 35.151515 | 112 | 0.762931 | 163 | 1,160 | 5.269939 | 0.601227 | 0.069849 | 0.030268 | 0.037253 | 0.079162 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012333 | 0.161207 | 1,160 | 32 | 113 | 36.25 | 0.870504 | 0.480172 | 0 | 0 | 0 | 0 | 0.178571 | 0.151361 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.538462 | 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 |
9d2a5a082a8b5ffa8d25869ab5f7a2ab25bca13a | 254 | py | Python | example.py | mpainenz/tnas-client | c9fe08d8ef6eedfad0b27d20cc32e6b333c8e9c8 | [
"MIT"
] | null | null | null | example.py | mpainenz/tnas-client | c9fe08d8ef6eedfad0b27d20cc32e6b333c8e9c8 | [
"MIT"
] | null | null | null | example.py | mpainenz/tnas-client | c9fe08d8ef6eedfad0b27d20cc32e6b333c8e9c8 | [
"MIT"
] | null | null | null | from connection import api_client
username = 'something'
password = '12345678920'
carrier_id = '12356'
tnas_connection = api_client.TNASConnection(api_client.TNAS_TEST)
tnas_connection.login(username=username, password=password, carrier_id=carrier_id)
| 28.222222 | 82 | 0.830709 | 32 | 254 | 6.3125 | 0.5 | 0.133663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06867 | 0.082677 | 254 | 8 | 83 | 31.75 | 0.798283 | 0 | 0 | 0 | 0 | 0 | 0.098425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9d4d394a197f768ba88bb9cc14231e882783e433 | 825 | py | Python | bitbucket/namespace.py | pedrofarinhaatshiftleftpt/py-bitbucket | 84b8f6de851e37480ca506609b01e852aaf07593 | [
"Apache-2.0"
] | 11 | 2015-08-20T00:21:50.000Z | 2022-02-21T14:08:03.000Z | bitbucket/namespace.py | pedrofarinhaatshiftleftpt/py-bitbucket | 84b8f6de851e37480ca506609b01e852aaf07593 | [
"Apache-2.0"
] | 3 | 2015-10-26T17:50:46.000Z | 2016-08-29T15:43:35.000Z | bitbucket/namespace.py | pedrofarinhaatshiftleftpt/py-bitbucket | 84b8f6de851e37480ca506609b01e852aaf07593 | [
"Apache-2.0"
] | 12 | 2015-12-07T17:13:01.000Z | 2022-02-21T14:08:04.000Z | """ Defines a client class for working with a BitBucket namespace. """
from bitbucket.repositories import BitBucketRepositoriesClient
class BitBucketNamespaceClient(object):
""" Client class representing a single namespace in bitbucket. """
def __init__(self, dispatcher, access_token, access_token_secret, namespace):
self._dispatcher = dispatcher
self._access_token = access_token
self._access_token_secret = access_token_secret
self._namespace = namespace
@property
def namespace(self):
""" Returns the namespace. """
return self._namespace
def repositories(self):
""" Returns access to the namespace's repositories. """
return BitBucketRepositoriesClient(self._dispatcher, self._access_token,
self._access_token_secret, self._namespace) | 39.285714 | 82 | 0.733333 | 87 | 825 | 6.666667 | 0.356322 | 0.151724 | 0.117241 | 0.075862 | 0.184483 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187879 | 825 | 21 | 82 | 39.285714 | 0.865672 | 0.236364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 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 |
9d5386863e600e1018e8aefcd15b340ac7d21433 | 5,005 | py | Python | openerp/addons/stock_location/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 3 | 2016-01-29T14:39:49.000Z | 2018-12-29T22:42:00.000Z | openerp/addons/stock_location/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 2 | 2016-03-23T14:29:41.000Z | 2017-02-20T17:11:30.000Z | openerp/addons/stock_location/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Advanced Routes',
'version': '1.0',
'category': 'Manufacturing',
'description': """
This module supplements the Warehouse application by effectively implementing Push and Pull inventory flows.
============================================================================================================
Typically this could be used to:
--------------------------------
* Manage product manufacturing chains
* Manage default locations per product
* Define routes within your warehouse according to business needs, such as:
- Quality Control
- After Sales Services
- Supplier Returns
* Help rental management, by generating automated return moves for rented products
Once this module is installed, an additional tab appear on the product form,
where you can add Push and Pull flow specifications. The demo data of CPU1
product for that push/pull :
Push flows:
-----------
Push flows are useful when the arrival of certain products in a given location
should always be followed by a corresponding move to another location, optionally
after a certain delay. The original Warehouse application already supports such
Push flow specifications on the Locations themselves, but these cannot be
refined per-product.
A push flow specification indicates which location is chained with which location,
and with what parameters. As soon as a given quantity of products is moved in the
source location, a chained move is automatically foreseen according to the
parameters set on the flow specification (destination location, delay, type of
move, journal). The new move can be automatically processed, or require a manual
confirmation, depending on the parameters.
Pull flows:
-----------
Pull flows are a bit different from Push flows, in the sense that they are not
related to the processing of product moves, but rather to the processing of
procurement orders. What is being pulled is a need, not directly products. A
classical example of Pull flow is when you have an Outlet company, with a parent
Company that is responsible for the supplies of the Outlet.
[ Customer ] <- A - [ Outlet ] <- B - [ Holding ] <~ C ~ [ Supplier ]
When a new procurement order (A, coming from the confirmation of a Sale Order
for example) arrives in the Outlet, it is converted into another procurement
(B, via a Pull flow of type 'move') requested from the Holding. When procurement
order B is processed by the Holding company, and if the product is out of stock,
it can be converted into a Purchase Order (C) from the Supplier (Pull flow of
type Purchase). The result is that the procurement order, the need, is pushed
all the way between the Customer and Supplier.
Technically, Pull flows allow to process procurement orders differently, not
only depending on the product being considered, but also depending on which
location holds the 'need' for that product (i.e. the destination location of
that procurement order).
Use-Case:
---------
You can use the demo data as follow:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**CPU1:** Sell some CPU1 from Chicago Shop and run the scheduler
- Warehouse: delivery order, Chicago Shop: reception
**CPU3:**
- When receiving the product, it goes to Quality Control location then
stored to shelf 2.
- When delivering the customer: Pick List -> Packing -> Delivery Order from Gate A
""",
'author': 'OpenERP SA',
'images': ['images/pulled_flow.jpeg','images/pushed_flow.jpeg'],
'depends': ['procurement','stock','sale'],
'data': ['stock_location_view.xml', 'security/stock_location_security.xml', 'security/ir.model.access.csv', 'procurement_pull_workflow.xml'],
'demo': [
'stock_location_demo_cpu1.xml',
'stock_location_demo_cpu3.yml',
],
'installable': True,
'test': [
'test/stock_location_pull_flow.yml',
'test/stock_location_push_flow.yml',
],
'auto_install': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| 44.292035 | 145 | 0.685914 | 678 | 5,005 | 5.032448 | 0.420354 | 0.02286 | 0.010551 | 0.016706 | 0.029308 | 0.029308 | 0.01993 | 0 | 0 | 0 | 0 | 0.005349 | 0.178222 | 5,005 | 112 | 146 | 44.6875 | 0.824216 | 0.169231 | 0 | 0.051948 | 0 | 0.012987 | 0.933199 | 0.11552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 |
9d5ab9d50a9bc7a620dd98e52874a076724ef53d | 141 | py | Python | plt.py | gayhub404/datamatplotter | 6c1602a7312a942f07f3b84f0f01d8237aca3a9a | [
"Apache-2.0"
] | null | null | null | plt.py | gayhub404/datamatplotter | 6c1602a7312a942f07f3b84f0f01d8237aca3a9a | [
"Apache-2.0"
] | null | null | null | plt.py | gayhub404/datamatplotter | 6c1602a7312a942f07f3b84f0f01d8237aca3a9a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
b = np.linspace(0,24,24)
b.shape = 4,6
plt.plot(b)
plt.ylabel('some numbers')
plt.show()
| 15.666667 | 31 | 0.716312 | 28 | 141 | 3.607143 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057377 | 0.134752 | 141 | 8 | 32 | 17.625 | 0.770492 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
19b4b382bc917e1ddcedada953f68502de0ff84d | 655 | py | Python | tests/test_button.py | danieltodor/rpi-gpio-devices | 6a9d9981d2b58d1ba3b2419bf89bdaa03bad6577 | [
"MIT"
] | null | null | null | tests/test_button.py | danieltodor/rpi-gpio-devices | 6a9d9981d2b58d1ba3b2419bf89bdaa03bad6577 | [
"MIT"
] | null | null | null | tests/test_button.py | danieltodor/rpi-gpio-devices | 6a9d9981d2b58d1ba3b2419bf89bdaa03bad6577 | [
"MIT"
] | null | null | null | from src.button import Button
from RPi.GPIO import assert_setup, set_input, IN, PUD_DOWN, PUD_UP
def test_button_is_pressed_method_low_polarity():
pin1 = 1
button = Button(pin1, polarity='low')
assert_setup(pin1, IN, PUD_UP)
set_input(pin1, True)
assert button.is_pressed() is False
set_input(pin1, False)
assert button.is_pressed() is True
def test_button_is_pressed_method_high_polarity():
pin1 = 1
button = Button(pin1, polarity='high')
assert_setup(pin1, IN, PUD_DOWN)
set_input(pin1, True)
assert button.is_pressed() is True
set_input(pin1, False)
assert button.is_pressed() is False
| 22.586207 | 66 | 0.716031 | 100 | 655 | 4.41 | 0.26 | 0.108844 | 0.204082 | 0.190476 | 0.784581 | 0.693878 | 0.526077 | 0.358277 | 0.358277 | 0 | 0 | 0.022684 | 0.192366 | 655 | 28 | 67 | 23.392857 | 0.810964 | 0 | 0 | 0.555556 | 0 | 0 | 0.010687 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
19b7db4e184fe71b11fa1d14d530b62870b518ea | 2,475 | py | Python | apps/blog/models.py | Scronullik/whatyouknow | ed2b0e63242b53e24a5273df7e4f723099387898 | [
"MIT"
] | 2 | 2021-01-28T04:34:43.000Z | 2021-07-13T09:08:53.000Z | apps/blog/models.py | Scronullik/whatyouknow | ed2b0e63242b53e24a5273df7e4f723099387898 | [
"MIT"
] | null | null | null | apps/blog/models.py | Scronullik/whatyouknow | ed2b0e63242b53e24a5273df7e4f723099387898 | [
"MIT"
] | null | null | null | from enum import Flag
from random import choice as random_choice
from django.db import models
from django.utils import timezone
from django.urls import reverse
from django.contrib.auth import get_user_model
from django_summernote.fields import SummernoteTextField
from taggit.managers import TaggableManager
from easy_thumbnails.signals import saved_file
from easy_thumbnails.signal_handlers import generate_aliases_global
class CategoryTypes(Flag):
DEVELOPMENT = (0, "Development")
ADMINISTRATING = (1, "Administrating")
DESIGN = (2, "Design")
MANAGEMENT = (3, "Management")
MARKETING = (4, "Marketing")
POPULAR_SCIENCE = (5, "Popular Science")
@classmethod
def get_name(cls, index):
return cls.get_list()[index][1]
@classmethod
def get_list(cls):
return [key.value for key in cls]
@classmethod
def get_list_index(cls):
return [key.value[0] for key in cls]
@classmethod
def get_list_name(cls):
return [key.value[1] for key in cls]
@classmethod
def get_random(cls):
return random_choice(cls.get_list())
@classmethod
def get_random_index(cls):
return cls.get_random()[0]
@classmethod
def get_random_name(cls):
return cls.get_random()[1]
class Post(models.Model):
user = models.ForeignKey(get_user_model(), on_delete=models.PROTECT)
category = models.IntegerField(choices=CategoryTypes.get_list())
title = models.CharField(max_length=200)
feed_cover = models.ImageField(upload_to='blog/feed_covers')
feed_article_preview = SummernoteTextField(blank=True)
text = SummernoteTextField()
draft = models.BooleanField(default=False)
approved = models.BooleanField(default=False)
published = models.DateTimeField(auto_now=False, auto_now_add=False, blank=True, null=True)
updated = models.DateTimeField(auto_now=True, auto_now_add=False)
timestamp = models.DateTimeField(auto_now=False, auto_now_add=True)
tags = TaggableManager()
class Meta:
verbose_name_plural = 'Posts'
ordering = ('-published', )
def __str__(self):
return self.title
def get_absolute_url(self):
return reverse('post_detail', kwargs={'pk': self.pk})
def save(self, *args, **kwargs):
if self.approved and self.published is None:
self.published = timezone.now()
super().save(*args, **kwargs)
saved_file.connect(generate_aliases_global)
| 29.464286 | 95 | 0.707071 | 313 | 2,475 | 5.405751 | 0.383387 | 0.028369 | 0.070331 | 0.037234 | 0.12766 | 0.102837 | 0.102837 | 0.086288 | 0 | 0 | 0 | 0.007004 | 0.192323 | 2,475 | 83 | 96 | 29.819277 | 0.83942 | 0 | 0 | 0.111111 | 0 | 0 | 0.04404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0 | 0.15873 | 0.142857 | 0.793651 | 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 |
19b80a1a706b1c4ba4d4a5ca127bda93ab058fb8 | 4,682 | py | Python | FaceV1/settings.py | PPPokerFace/PokerFace | 4d28a3bb093200669f2f7b337a907f035b650032 | [
"MIT"
] | 1 | 2019-01-06T08:33:24.000Z | 2019-01-06T08:33:24.000Z | FaceV1/settings.py | PPPokerFace/PokerFace | 4d28a3bb093200669f2f7b337a907f035b650032 | [
"MIT"
] | null | null | null | FaceV1/settings.py | PPPokerFace/PokerFace | 4d28a3bb093200669f2f7b337a907f035b650032 | [
"MIT"
] | null | null | null | """
Django settings for FaceV1 project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# 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.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'r#o9pe9(jn58fwd6dm9-fb%j0tr0xb4e8jrqd1r)yl=__vtocm'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ["*"]
# Application definition
INSTALLED_APPS = [
'django.contrib.auth',
'xadmin',
'rest_framework',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'crispy_forms',
'Share',
'Control',
'rest_framework.authtoken',
'corsheaders',
'face',
'FaceDL',
'import_export',
'channels',
]
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'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',
'django.middleware.common.CommonMiddleware',
]
CORS_ORIGIN_ALLOW_ALL = True
ROOT_URLCONF = 'FaceV1.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')]
,
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'FaceV1.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'facev1',
'USER': 'root',
'PASSWORD': '12345678',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}
# Password validation
# https://docs.djangoproject.com/en/2.1/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.1/topics/i18n/
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = '/static/'
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.BasicAuthentication',
# 'rest_framework.authentication.SessionAuthentication',
# 'rest_framework.authentication.TokenAuthentication',
)
}
FILE_UPLOAD_MAX_MEMORY_SIZE = 41943040
DATA_UPLOAD_MAX_MEMORY_SIZE = 41943040
ASGI_APPLICATION = 'FaceV1.routing.application'
REDIS_HOST = "127.0.0.1"
REDIS_PORT = 6379
REDIS_DB = 0
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [(REDIS_HOST, REDIS_PORT)],
},
},
}
YOLO_IMAGE_SIZE = 416
IMAGE_WIDTH = 288
IMAGE_HEIGHT = 288
IMAGE_CHANS = 3
IMAGE_DTYPE = "float32"
IMAGE_QUEUE = "image_queue"
BATCH_SIZE = 32
SERVER_SLEEP = 0.25
CLIENT_SLEEP = 0.25
YOLO_CFG = 'face-yolov3-tiny.cfg'
YOLO_MODEL = 'tiny.pt'
# YOLO_CFG='face-yolov3.cfg'
# YOLO_MODEL="yolov3.pt"
USE_MOBILEFACENET = True
| 25.725275 | 92 | 0.660188 | 495 | 4,682 | 6.088889 | 0.430303 | 0.064698 | 0.051095 | 0.058062 | 0.186795 | 0.140345 | 0.088587 | 0.088587 | 0.039814 | 0 | 0 | 0.028997 | 0.211875 | 4,682 | 181 | 93 | 25.867403 | 0.787805 | 0.254592 | 0 | 0.035088 | 1 | 0 | 0.489024 | 0.372866 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.017544 | 0 | 0.017544 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
19c0a5f15de7734376b0bb261a6933a1e83ae1dc | 2,365 | py | Python | DOMA/scripts/acquire_consensus.py | SVAI/RecausalNucleotideNetworks | ed526b025d36b4526acc73dd75ec08dd7ef80b0d | [
"MIT"
] | 4 | 2018-05-22T04:00:01.000Z | 2022-02-02T10:24:59.000Z | DOMA/scripts/acquire_consensus.py | SVAI/RecausalNucleotideNetworks | ed526b025d36b4526acc73dd75ec08dd7ef80b0d | [
"MIT"
] | null | null | null | DOMA/scripts/acquire_consensus.py | SVAI/RecausalNucleotideNetworks | ed526b025d36b4526acc73dd75ec08dd7ef80b0d | [
"MIT"
] | null | null | null | import sys
from sets import Set
valid_chromosomes = []
for i in range(1, 23):
valid_chromosomes.append(str(i))
valid_chromosomes.append("X")
valid_chromosomes.append("Y")
consensus_variants = {}
disputed_variants = {}
all_variants = {}
all_callers = []
target_variant_type = sys.argv[1]
for input_file in sys.argv[2:]:
caller_name = input_file.split(".")[0]
all_callers.append(caller_name)
for line in open(input_file, 'r'):
if line[0] == "#":
continue
tab_split = line.split("\t")
ref_allele = tab_split[3]
alt_allele = tab_split[4]
genotype = tab_split[9].split(":")[0]
chromosome = tab_split[0]
position = tab_split[1]
if chromosome not in valid_chromosomes:
continue
# Currently, only consider mono-allelic positions
if "," in alt_allele:
continue
if len(ref_allele) != 1 and len(alt_allele) != 1:
variant_type = "Indel"
else:
variant_type = "SNP"
# Ignore no-call and ref_call
if genotype == "./." or genotype == "0/0":
continue
# TODO: This is a caller-specific hack for this investigation
# Ignore variants that do not have PASS
if caller_name == "dragen" or caller_name == "strelka":
if tab_split[6] != "PASS":
continue
if all_variants.get(chromosome + "_" + position) == None:
all_variants[chromosome + "_" + position] = {}
all_variants[chromosome + "_" + position][caller_name] = "_".join([ref_allele, alt_allele, genotype])
for k, v in all_variants.iteritems():
if len(v) == len(all_callers):
for x in all_callers:
if v[x] != v[all_callers[0]]:
disputed_variants[k] = True
break
consensus_variants[k] = True
else:
disputed_variants[k] = True
consensus_file = open("consensus.vcf", 'w')
disputed_file = open("disputed.vcf", 'w')
for k, v in consensus_variants.iteritems():
consensus_file.write(v + "\n")
for k, v in disputed_variants.iteritems():
disputed_file.write(k + "\n")
print "consensus variants: %d || disputed variants %d" % (len(consensus_variants), len(disputed_variants))
| 26.875 | 109 | 0.582664 | 289 | 2,365 | 4.564014 | 0.321799 | 0.042456 | 0.050038 | 0.015921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011432 | 0.297252 | 2,365 | 87 | 110 | 27.183908 | 0.78219 | 0.07315 | 0 | 0.160714 | 0 | 0 | 0.055327 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 0 | null | null | 0.017857 | 0.035714 | null | null | 0.017857 | 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 |
19c7cdf9a8868f0163824df0754bacff60df2133 | 13,004 | py | Python | warprnnt_numba/rnnt_loss/rnnt_atomic_locks/utils/naive_gpu_rnnt_kernel.py | titu1994/warprnnt_numba | b1bc81e02dfb05143c3d55ac7b50c8131e85b194 | [
"MIT"
] | 7 | 2022-01-25T22:05:54.000Z | 2022-02-23T09:01:32.000Z | warprnnt_numba/rnnt_loss/rnnt_atomic_locks/utils/naive_gpu_rnnt_kernel.py | titu1994/warprnnt_numba | b1bc81e02dfb05143c3d55ac7b50c8131e85b194 | [
"MIT"
] | null | null | null | warprnnt_numba/rnnt_loss/rnnt_atomic_locks/utils/naive_gpu_rnnt_kernel.py | titu1994/warprnnt_numba | b1bc81e02dfb05143c3d55ac7b50c8131e85b194 | [
"MIT"
] | 1 | 2022-01-24T13:12:11.000Z | 2022-01-24T13:12:11.000Z | # Copyright (c) 2021, NVIDIA CORPORATION. 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.
#
# Copyright 2018-2019, Mingkun Huang
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import math
import torch
from numba import cuda
from warprnnt_numba.rnnt_loss.utils import rnnt_helper
from warprnnt_numba.rnnt_loss.utils.cuda_utils.gpu_rnnt_kernel import logp
GPU_RNNT_THREAD_SIZE = 256
@cuda.jit(device=True, inline=True)
def logp(
denom: torch.Tensor, acts: torch.Tensor, maxT: int, maxU: int, alphabet_size: int, mb: int, t: int, u: int, v: int
):
"""
Compute the sum of log probability from the activation tensor and its denominator.
Args:
denom: Tensor of shape [B, T, U] flattened. Represents the denominator of the logprobs activation tensor
across entire vocabulary.
acts: Tensor of shape [B, T, U, V+1] flattened. Represents the logprobs activation tensor.
maxT: The maximum possible acoustic sequence length. Represents T in the logprobs tensor.
maxU: The maximum possible target sequence length. Represents U in the logprobs tensor.
alphabet_size: The vocabulary dimension V+1 (inclusive of RNNT blank).
mb: Batch indexer.
t: Acoustic sequence timestep indexer.
u: Target sequence timestep indexer.
v: Vocabulary token indexer.
Returns:
The sum of logprobs[mb, t, u, v] + denom[mb, t, u]
"""
col = (mb * maxT + t) * maxU + u
return denom[col] + acts[col * alphabet_size + v]
@cuda.jit()
def compute_alphas_kernel_atomic_locks(
acts: torch.Tensor,
denom: torch.Tensor,
alphas: torch.Tensor,
llForward: torch.Tensor,
xlen: torch.Tensor,
ylen: torch.Tensor,
mlabels: torch.Tensor, # [B]
minibatch: int,
maxT: int,
maxU: int,
alphabet_size: int,
blank: int,
lock: torch.Tensor,
):
"""
Compute alpha (forward variable) probabilities over the transduction step in loop,
with CUDA atomic locks.
Baseline reference from SpeechBrain implementation -
https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/nnet/loss/transducer_loss.py
Args:
acts: Tensor of shape [B, T, U, V+1]. Represents the logprobs activation tensor.
denom: Tensor of shape [B, T, U] flattened. Represents the denominator of the logprobs activation tensor
across entire vocabulary.
alphas: Zero tensor of shape [B, T, U]. Will be updated inside the kernel with the forward variable
probabilities.
llForward: Zero tensor of shape [B]. Represents the log-likelihood of the forward pass.
Returned as the forward pass loss that is reduced by the optimizer.
xlen: Vector of length B which contains the actual acoustic sequence lengths in the padded
activation tensor.
ylen: Vector of length B which contains the actual target sequence lengths in the padded
activation tensor.
mlabels: Matrix of shape [B, U+1] (+1 here is due to <SOS> token - usually the RNNT blank).
The matrix contains the padded target transcription that must be predicted.
minibatch: Int representing the batch size.
maxT: The maximum possible acoustic sequence length. Represents T in the logprobs tensor.
maxU: The maximum possible target sequence length. Represents U in the logprobs tensor.
alphabet_size: The vocabulary dimension V+1 (inclusive of RNNT blank).
blank_: Index of the RNNT blank token in the vocabulary. Generally the first or last token in the vocab.
lock: Tensor of shape [B, U+1]. Bool values, used for CUDA atomic locking.
Updates:
Kernel inplace updates the following inputs:
- alphas: forward variable scores.
- llForward: log-likelihood of forward variable.
"""
# // launch B blocks, each block has U threads
b = cuda.blockIdx.x
u = cuda.threadIdx.x
T = xlen[b] # select AM length of current sample
U = ylen[b] + 1 # select target length of current sample, +1 for the blank token
labels: torch.Tensor = mlabels[b] # mb label start point, equivalent to mlabels + b * (maxU - 1)
offset = b * maxT * maxU # pointer indexing offset
t = 0
# Ordinary alpha calculations, broadcast across B=b and U=u
# Look up forward variable calculation from rnnt_numpy.forward_pass()
if u < U:
# for each (B,U) Thread
# wait the unlock of the previous computation of Alpha[b,U-1,:]
# Do the computation over the whole Time sequence on alpha[B,U,:]
# and then unlock the target U+1 for computation
while t < T:
if u == 0:
# for t in range(1, T) step to initialize alphas[b, t, 0]
if t > 0:
alphas[offset + t * maxU] = (
alphas[offset + (t - 1) * maxU]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, t - 1, 0, blank)
)
cuda.atomic.add(lock, (b, u + 1), -1)
t += 1
else:
if cuda.atomic.add(lock, (b, u), 0) < 0:
# for u in range(1, U) step to initialize alphas[b, 0, u]
if t == 0:
alphas[offset + u] = (
alphas[offset + u - 1]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, 0, u - 1, labels[u - 1])
)
else:
# for t in range(1, T) for u in range(1, U) step to compute alphas[b, t, u]
emit = (
alphas[offset + t * maxU + u - 1]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, t, u - 1, labels[u - 1])
)
no_emit = (
alphas[offset + (t - 1) * maxU + u]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, t - 1, u, blank)
)
alphas[offset + t * maxU + u] = max(no_emit, emit) + math.log1p(
math.exp(-abs(no_emit - emit))
)
if u < U:
cuda.atomic.add(lock, (b, u + 1), -1)
cuda.atomic.add(lock, (b, u), 1)
t += 1
# After final sync, alphas[b, T-1, U - 1] + logprobs[b, T-1, U-1, blank] + denom[b, T-1, U-1] gives
# log-likelihood of forward pass.
if u == U - 1:
# for each thread b (utterance)
llForward[b] = (
alphas[offset + (T - 1) * maxU + U - 1]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, T - 1, U - 1, blank)
)
@cuda.jit()
def compute_betas_kernel_atomic_locks(
acts: torch.Tensor,
denom: torch.Tensor,
betas: torch.Tensor,
llBackward: torch.Tensor,
xlen: torch.Tensor,
ylen: torch.Tensor,
mlabels: torch.Tensor, # [B, U]
minibatch: int,
maxT: int,
maxU: int,
alphabet_size: int,
blank_: int,
lock: torch.Tensor,
):
"""
Compute beta (backward variable) probabilities over the transduction step.
Args:
acts: Tensor of shape [B, T, U, V+1] flattened. Represents the logprobs activation tensor.
denom: Tensor of shape [B, T, U] flattened. Represents the denominator of the logprobs activation tensor
across entire vocabulary.
betas: Zero tensor of shape [B, T, U]. Will be updated inside the kernel with the backward variable
probabilities.
llBackward: Zero tensor of shape [B]. Represents the log-likelihood of the backward pass.
Returned as the backward pass loss that is reduced by the optimizer.
xlen: Vector of length B which contains the actual acoustic sequence lengths in the padded
activation tensor.
ylen: Vector of length B which contains the actual target sequence lengths in the padded
activation tensor.
mlabels: Matrix of shape [B, U+1] (+1 here is due to <SOS> token - usually the RNNT blank).
The matrix contains the padded target transcription that must be predicted.
minibatch: Int representing the batch size.
maxT: The maximum possible acoustic sequence length. Represents T in the logprobs tensor.
maxU: The maximum possible target sequence length. Represents U in the logprobs tensor.
alphabet_size: The vocabulary dimension V+1 (inclusive of RNNT blank).
blank_: Index of the RNNT blank token in the vocabulary. Generally the first or last token in the vocab.
lock: Tensor of shape [B, U+1]. Bool values, used for CUDA atomic locking.
Updates:
Kernel inplace updates the following inputs:
- betas: backward variable scores.
- llBackward: log-likelihood of backward variable.
"""
# // launch B blocks, each block has U threads
b = cuda.blockIdx.x # // batch id
u = cuda.threadIdx.x # label id, u
T = xlen[b] # select AM length of current sample
U = ylen[b] + 1 # select target length of current sample, +1 for the blank token
offset = b * maxT * maxU # pointer indexing offset
labels: torch.Tensor = mlabels[b] # mb label start point, equivalent to mlabels + b * (maxU - 1)
# Initilize beta[b, t=T-1, u=U-1] for all b in B with log_probs[b, t=T-1, u=U-1, blank]
t = T - 1
# Ordinary beta calculations, broadcast across B=b and U=u
# Look up backward variable calculation from rnnt_numpy.backward_pass()
if u < U:
# Loop in reversed order of T - (reversed(range(T - 1)) steps
while t >= 0:
if u == U - 1:
# Initilize beta[b, t=T-1, u=U-1] for all b in B with log_probs[b, t=T-1, u=U-1, blank]
if t == T - 1:
betas[offset + t * maxU + u] = logp(denom, acts, maxT, maxU, alphabet_size, b, t, u, blank_)
else:
# for t in reversed(range(T - 1)) step to initialize betas[b, t, U-1]
betas[offset + t * maxU + u] = (
betas[offset + (t + 1) * maxU + u]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, t, u, blank_)
)
cuda.atomic.add(lock, (b, u - 1), -1)
t -= 1
else:
if cuda.atomic.add(lock, (b, u), 0) < 0:
if t == T - 1:
# Compute betas[b, T - 1, u]
betas[offset + t * maxU + u] = (
betas[offset + t * maxU + u + 1]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, t, u, labels[u])
)
else:
# for t in reversed(range(T - 1)) for u in reversed(range(U - 1)) step to compute betas[b, t, u]
emit = (
betas[offset + t * maxU + u + 1]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, t, u, labels[u])
)
no_emit = (betas[offset + (t + 1) * maxU + u]
+ logp(denom, acts, maxT, maxU, alphabet_size, b, t, u, blank_))
betas[offset + t * maxU + u] = rnnt_helper.log_sum_exp(emit, no_emit)
if u > 0:
cuda.atomic.add(lock, (b, u - 1), -1)
cuda.atomic.add(lock, (b, u), 1)
t -= 1
# After final sync, betas[b, 0, 0] gives
# log-likelihood of backward pass.
if u == 0:
llBackward[b] = betas[offset]
| 44.841379 | 120 | 0.576592 | 1,747 | 13,004 | 4.259302 | 0.153978 | 0.00887 | 0.006854 | 0.022578 | 0.762801 | 0.728666 | 0.698428 | 0.684854 | 0.668459 | 0.655557 | 0 | 0.014125 | 0.33582 | 13,004 | 289 | 121 | 44.99654 | 0.847401 | 0.559059 | 0 | 0.550388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.03876 | 0 | 0.069767 | 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 |
19c8999ebdf5a826ea823175e2eca7aadd2caa7a | 1,202 | py | Python | content/migrations/0005_created_updated.py | japsu/tracontent | 169fe84c49c1a30133e927f1be50abba171ebe68 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | content/migrations/0005_created_updated.py | japsu/tracontent | 169fe84c49c1a30133e927f1be50abba171ebe68 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 7 | 2020-11-26T18:41:07.000Z | 2022-01-18T09:27:00.000Z | content/migrations/0005_created_updated.py | tracon/tracontent | 65bd8c15b7909a90ebe5ed28cbbf66683a4e3c2c | [
"MIT",
"PostgreSQL",
"Unlicense"
] | null | null | null | from django.db import models, migrations
import datetime
from django.utils.timezone import utc
MAGIC_DATETIME = datetime.datetime(2015, 8, 17, 9, 32, 48, 54124, tzinfo=utc)
class Migration(migrations.Migration):
dependencies = [
('content', '0004_site_settings_meta'),
]
operations = [
migrations.AddField(
model_name='blogpost',
name='created_at',
field=models.DateTimeField(default=MAGIC_DATETIME, auto_now_add=True),
preserve_default=False,
),
migrations.AddField(
model_name='blogpost',
name='updated_at',
field=models.DateTimeField(default=MAGIC_DATETIME, auto_now=True),
preserve_default=False,
),
migrations.AddField(
model_name='page',
name='created_at',
field=models.DateTimeField(default=MAGIC_DATETIME, auto_now_add=True),
preserve_default=False,
),
migrations.AddField(
model_name='page',
name='updated_at',
field=models.DateTimeField(default=MAGIC_DATETIME, auto_now=True),
preserve_default=False,
),
]
| 29.317073 | 82 | 0.609817 | 120 | 1,202 | 5.891667 | 0.375 | 0.091938 | 0.130127 | 0.152758 | 0.693069 | 0.693069 | 0.632249 | 0.632249 | 0.632249 | 0.632249 | 0 | 0.024561 | 0.288686 | 1,202 | 40 | 83 | 30.05 | 0.802339 | 0 | 0 | 0.705882 | 0 | 0 | 0.078203 | 0.019135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19d5df97189e576d911461abf2fc3cb1d40767a9 | 225 | py | Python | teste-py3.8/src/Mundo1/aula3/desafios/desafio3.py | NicolasMCP/py | 37c073de01db100afe325fe08b2b56bc9c8a6020 | [
"MIT"
] | null | null | null | teste-py3.8/src/Mundo1/aula3/desafios/desafio3.py | NicolasMCP/py | 37c073de01db100afe325fe08b2b56bc9c8a6020 | [
"MIT"
] | null | null | null | teste-py3.8/src/Mundo1/aula3/desafios/desafio3.py | NicolasMCP/py | 37c073de01db100afe325fe08b2b56bc9c8a6020 | [
"MIT"
] | null | null | null | # Nícolas Ramos
# desenvolvido para ser igual ao pedido no desafio
print('====== DESAFIO 1 ======')
primeiro = int(input('Primeiro número '))
segundo = int(input('Segundo número '))
print(f'A soma é {primeiro + segundo}')
| 22.5 | 50 | 0.671111 | 30 | 225 | 5.033333 | 0.7 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.155556 | 225 | 9 | 51 | 25 | 0.789474 | 0.275556 | 0 | 0 | 0 | 0 | 0.51875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
19e7121a12c722e71f6f8094bfdebcda822b922a | 398 | py | Python | web/blog/pagination.py | Mikhail-Gorelov/django-blog-master | 7fd18f228f795773abb8228999d8e331dcfcf619 | [
"MIT"
] | null | null | null | web/blog/pagination.py | Mikhail-Gorelov/django-blog-master | 7fd18f228f795773abb8228999d8e331dcfcf619 | [
"MIT"
] | 1 | 2022-03-28T08:23:26.000Z | 2022-03-28T08:23:26.000Z | web/blog/pagination.py | Mikhail-Gorelov/django-blog-master | 7fd18f228f795773abb8228999d8e331dcfcf619 | [
"MIT"
] | 1 | 2022-01-06T15:14:21.000Z | 2022-01-06T15:14:21.000Z | from collections import OrderedDict
from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response
class StandardResultsSetPagination(PageNumberPagination):
page_size = 5
def get_paginated_response(self, data):
response = super().get_paginated_response(data)
response.data.update(self.get_html_context())
return response
| 28.428571 | 58 | 0.786432 | 43 | 398 | 7.069767 | 0.55814 | 0.052632 | 0.111842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.155779 | 398 | 13 | 59 | 30.615385 | 0.901786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.777778 | 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 |
19edff87ba6734196f61e548b53ded5b0c33cef2 | 13,701 | py | Python | suparkanbun/tradify.py | KoichiYasuoka/SuPar-Kanbun | 0ad6668ff44567af62a307bddf2bb2ea1ad8264c | [
"MIT"
] | 17 | 2021-04-13T19:52:29.000Z | 2022-03-29T04:23:44.000Z | esupar/tradify.py | KoichiYasuoka/esupar | b33fee363e73e2b05b4d37d6421a38466e38a978 | [
"MIT"
] | 3 | 2022-01-04T02:46:38.000Z | 2022-02-09T08:53:58.000Z | suparkanbun/tradify.py | KoichiYasuoka/SuPar-Kanbun | 0ad6668ff44567af62a307bddf2bb2ea1ad8264c | [
"MIT"
] | 3 | 2021-04-17T00:43:42.000Z | 2021-12-07T03:14:40.000Z | #! /usr/bin/python3 -i
# coding=utf-8
tradify={
"𫍟":"𧦧",
"𰾵":"𨬟",
"𫮃":"墠",
"𪪼":"彃",
"𢭏":"擣",
"𥐟":"礒",
"𬘝":"紾",
"𫄨":"絺",
"𮉪":"緅",
"𰬸":"繐",
"𫄸":"纁",
"𮉡":"纑",
"𫄥":"纚",
"𦰏":"蓧",
"𫉁":"薆",
"𧦧":"訑",
"𫍥":"誂",
"𬤊":"諟",
"𬤣":"譈",
"𫐄":"軏",
"𫐐":"輗",
"𬨎":"輶",
"𫓧":"鈇",
"𨱂":"鈋",
"𬱙":"頖",
"𫖹":"顣",
"𫗞":"飦",
"𫗦":"餔",
"𮩝":"餲",
"𮩞":"饐",
"𫗴":"饘",
"𬶍":"鮀",
"𫚈":"鱮",
"𫛞":"鴃",
"𫜁":"鷩",
"㑹":"會",
"㧛":"攬",
"㧞":"拔",
"㨗":"捷",
"㫖":"旨",
"㱩":"殰",
"䃅":"磾",
"䌶":"䊷",
"䌷":"紬",
"䌹":"絅",
"䘮":"喪",
"䜣":"訢",
"䟽":"疏",
"䧟":"陷",
"䯄":"騧",
"䶮":"龑",
"万":"萬",
"与":"與",
"专":"專",
"业":"業",
"丛":"叢",
"东":"東",
"丝":"絲",
"両":"兩",
"两":"兩",
"严":"嚴",
"並":"竝",
"丧":"喪",
"丰":"豐",
"临":"臨",
"为":"爲",
"丽":"麗",
"举":"舉",
"义":"義",
"乌":"烏",
"乐":"樂",
"乔":"喬",
"乗":"乘",
"习":"習",
"乡":"郷",
"书":"書",
"买":"買",
"乱":"亂",
"亀":"龜",
"争":"爭",
"云":"雲",
"亚":"亞",
"亜":"亞",
"产":"產",
"亩":"畝",
"亲":"親",
"亵":"褻",
"亿":"億",
"仅":"僅",
"仆":"僕",
"从":"從",
"仏":"佛",
"仑":"崙",
"仓":"倉",
"仪":"儀",
"众":"衆",
"优":"優",
"会":"會",
"伝":"傳",
"传":"傳",
"伤":"傷",
"伥":"倀",
"伦":"倫",
"伪":"偽",
"体":"體",
"併":"倂",
"侄":"姪",
"価":"價",
"侧":"側",
"侨":"僑",
"侮":"侮",
"俨":"儼",
"俪":"儷",
"俭":"儉",
"倶":"俱",
"倹":"儉",
"倾":"傾",
"偸":"偷",
"偻":"僂",
"偾":"僨",
"储":"儲",
"傩":"儺",
"僞":"偽",
"僧":"僧",
"儿":"兒",
"免":"免",
"兎":"兔",
"児":"兒",
"兰":"蘭",
"关":"關",
"兴":"興",
"兹":"茲",
"养":"養",
"兽":"獸",
"内":"內",
"円":"園",
"写":"寫",
"军":"軍",
"农":"農",
"冯":"馮",
"决":"決",
"况":"況",
"冻":"凍",
"准":"準",
"凉":"涼",
"减":"減",
"凑":"湊",
"凤":"鳳",
"処":"處",
"凯":"凱",
"击":"擊",
"凿":"鑿",
"刍":"芻",
"刘":"劉",
"则":"則",
"刚":"剛",
"创":"創",
"别":"別",
"剎":"刹",
"剑":"劍",
"剣":"劍",
"劝":"勸",
"务":"務",
"动":"動",
"励":"勵",
"劳":"勞",
"労":"勞",
"効":"效",
"势":"勢",
"勉":"勉",
"勋":"勳",
"勛":"勳",
"勤":"勤",
"勲":"勳",
"匮":"匱",
"区":"區",
"医":"醫",
"华":"華",
"协":"協",
"卑":"卑",
"单":"單",
"単":"單",
"卢":"盧",
"卧":"臥",
"卫":"衞",
"却":"卻",
"卽":"即",
"历":"歷",
"厉":"厲",
"厌":"厭",
"厕":"厠",
"厘":"釐",
"厨":"廚",
"厩":"廄",
"厳":"嚴",
"县":"縣",
"参":"參",
"双":"雙",
"収":"收",
"变":"變",
"叙":"敘",
"台":"臺",
"号":"號",
"叹":"嘆",
"向":"嚮",
"吕":"呂",
"听":"聽",
"启":"啟",
"吴":"吳",
"呉":"吳",
"告":"吿",
"呑":"吞",
"呕":"嘔",
"员":"員",
"呙":"咼",
"呜":"嗚",
"呪":"咒",
"咏":"詠",
"哙":"噲",
"唤":"喚",
"啓":"啟",
"啬":"嗇",
"営":"營",
"喻":"喩",
"嘆":"嘆",
"器":"器",
"嚢":"囊",
"嚣":"囂",
"园":"園",
"囲":"圍",
"図":"圖",
"围":"圍",
"国":"國",
"图":"圖",
"圣":"聖",
"圹":"壙",
"场":"場",
"坏":"壞",
"坚":"堅",
"坠":"墜",
"垫":"墊",
"埀":"垂",
"堕":"墮",
"塩":"鹽",
"填":"塡",
"墙":"牆",
"墨":"墨",
"墻":"牆",
"壊":"壞",
"壌":"壤",
"壮":"壯",
"声":"聲",
"壱":"壹",
"壶":"壺",
"处":"處",
"备":"備",
"変":"變",
"头":"頭",
"夺":"奪",
"奋":"奮",
"奖":"奬",
"奥":"奧",
"奨":"奬",
"妇":"婦",
"妪":"嫗",
"妬":"妒",
"姊":"姉",
"姜":"薑",
"娄":"婁",
"娯":"娛",
"娱":"娛",
"娲":"媧",
"婴":"嬰",
"婵":"嬋",
"媭":"嬃",
"嬢":"孃",
"孙":"孫",
"学":"學",
"宁":"寧",
"宝":"寶",
"实":"實",
"実":"實",
"宠":"寵",
"审":"審",
"宪":"憲",
"宫":"宮",
"宽":"寬",
"宾":"賓",
"寛":"寬",
"寝":"寢",
"对":"對",
"寻":"尋",
"导":"導",
"対":"對",
"寿":"壽",
"専":"專",
"将":"將",
"尔":"爾",
"尚":"尙",
"尝":"嘗",
"尧":"堯",
"尭":"堯",
"尽":"盡",
"属":"屬",
"屡":"屢",
"屦":"屨",
"岁":"歲",
"岂":"豈",
"岭":"嶺",
"岳":"嶽",
"峡":"峽",
"峯":"峰",
"巌":"巖",
"巣":"巢",
"巻":"卷",
"币":"幣",
"帅":"帥",
"师":"師",
"帏":"幃",
"带":"帶",
"帯":"帶",
"帰":"歸",
"帱":"幬",
"幷":"并",
"广":"廣",
"広":"廣",
"庄":"莊",
"庆":"慶",
"庐":"廬",
"库":"庫",
"应":"應",
"庙":"廟",
"废":"廢",
"廁":"厠",
"廃":"廢",
"廐":"廄",
"廪":"廩",
"廵":"巡",
"开":"開",
"异":"異",
"弃":"棄",
"弑":"弒",
"张":"張",
"弥":"彌",
"强":"強",
"归":"歸",
"当":"當",
"彦":"彥",
"彻":"徹",
"径":"徑",
"従":"從",
"徳":"德",
"徴":"徵",
"忆":"憶",
"応":"應",
"忧":"憂",
"忾":"愾",
"怀":"懷",
"怃":"憮",
"怆":"愴",
"总":"總",
"怼":"懟",
"恋":"戀",
"恒":"恆",
"恠":"怪",
"恳":"懇",
"恵":"惠",
"恶":"惡",
"恸":"慟",
"恻":"惻",
"悔":"悔",
"悦":"悅",
"悪":"惡",
"悬":"懸",
"悯":"憫",
"惧":"懼",
"惩":"懲",
"惭":"慚",
"惮":"憚",
"惯":"慣",
"愠":"慍",
"愤":"憤",
"慎":"愼",
"憎":"憎",
"懐":"懷",
"懲":"懲",
"戏":"戲",
"战":"戰",
"戦":"戰",
"戯":"戲",
"户":"戶",
"戸":"戶",
"戻":"戾",
"払":"拂",
"托":"託",
"扡":"拖",
"执":"執",
"扩":"擴",
"扬":"揚",
"扰":"擾",
"抚":"撫",
"抜":"拔",
"択":"擇",
"护":"護",
"报":"報",
"拝":"拜",
"拡":"擴",
"拥":"擁",
"拨":"撥",
"择":"擇",
"挂":"掛",
"挙":"舉",
"挞":"撻",
"挟":"挾",
"挠":"撓",
"挿":"插",
"损":"損",
"换":"換",
"捣":"搗",
"据":"據",
"掲":"揭",
"揔":"摠",
"揽":"攬",
"搂":"摟",
"携":"攜",
"摂":"攝",
"摄":"攝",
"摅":"攄",
"摈":"擯",
"撃":"擊",
"撄":"攖",
"擥":"攬",
"擧":"舉",
"攷":"考",
"敌":"敵",
"敏":"敏",
"教":"敎",
"敛":"斂",
"数":"數",
"斉":"齊",
"斋":"齋",
"斎":"齋",
"斩":"斬",
"断":"斷",
"无":"無",
"旣":"既",
"旧":"舊",
"时":"時",
"旷":"曠",
"昆":"崑",
"昼":"晝",
"显":"顯",
"晋":"晉",
"晓":"曉",
"晩":"晚",
"暁":"曉",
"暦":"曆",
"暧":"曖",
"朞":"期",
"术":"術",
"杀":"殺",
"杂":"雜",
"权":"權",
"条":"條",
"来":"來",
"杨":"楊",
"杰":"傑",
"极":"極",
"构":"構",
"枢":"樞",
"枣":"棗",
"枨":"棖",
"柰":"奈",
"栄":"榮",
"栅":"柵",
"栉":"櫛",
"树":"樹",
"桡":"橈",
"桥":"橋",
"梅":"梅",
"梦":"夢",
"梼":"檮",
"检":"檢",
"棁":"梲",
"検":"檢",
"椟":"櫝",
"楼":"樓",
"楽":"樂",
"榅":"榲",
"榆":"楡",
"槚":"檟",
"槨":"椁",
"槪":"概",
"権":"權",
"横":"橫",
"橹":"櫓",
"欢":"歡",
"欤":"歟",
"歓":"歡",
"歩":"步",
"歯":"齒",
"歳":"歲",
"歴":"歷",
"殁":"歿",
"殇":"殤",
"残":"殘",
"殒":"殞",
"殡":"殯",
"殺":"殺",
"毁":"毀",
"毎":"每",
"毕":"畢",
"毙":"斃",
"气":"氣",
"気":"氣",
"氷":"冰",
"汉":"漢",
"汛":"汎",
"污":"汚",
"汤":"湯",
"沟":"溝",
"没":"沒",
"沢":"澤",
"沧":"滄",
"泽":"澤",
"洁":"潔",
"浅":"淺",
"浆":"漿",
"浊":"濁",
"测":"測",
"浍":"澮",
"济":"濟",
"浒":"滸",
"浜":"濱",
"海":"海",
"涂":"塗",
"涜":"瀆",
"润":"潤",
"涧":"澗",
"淸":"清",
"渇":"渴",
"済":"濟",
"渉":"涉",
"渊":"淵",
"渎":"瀆",
"渐":"漸",
"渓":"溪",
"渔":"漁",
"温":"溫",
"湿":"濕",
"満":"滿",
"溼":"濕",
"滞":"滯",
"满":"滿",
"滥":"濫",
"滨":"濱",
"漑":"溉",
"漢":"漢",
"潅":"灌",
"潜":"潛",
"澜":"瀾",
"灭":"滅",
"灵":"靈",
"灶":"竈",
"灾":"災",
"点":"點",
"為":"爲",
"烂":"爛",
"烛":"燭",
"烦":"煩",
"烧":"燒",
"热":"熱",
"焕":"煥",
"焭":"煢",
"焼":"燒",
"煕":"熙",
"爱":"愛",
"牵":"牽",
"牺":"犧",
"犠":"犧",
"状":"狀",
"犹":"猶",
"独":"獨",
"狭":"狹",
"狱":"獄",
"狸":"貍",
"猎":"獵",
"猟":"獵",
"猫":"貓",
"献":"獻",
"獎":"奬",
"獣":"獸",
"獭":"獺",
"玆":"茲",
"环":"環",
"琏":"璉",
"産":"產",
"电":"電",
"画":"畫",
"畅":"暢",
"畴":"疇",
"疴":"痾",
"痈":"癰",
"発":"發",
"益":"益",
"盐":"鹽",
"监":"監",
"盖":"蓋",
"盗":"盜",
"盘":"盤",
"県":"縣",
"真":"眞",
"眾":"衆",
"着":"著",
"睾":"睪",
"矫":"矯",
"矶":"磯",
"硁":"硜",
"硕":"碩",
"硗":"磽",
"礼":"禮",
"社":"社",
"祈":"祈",
"祐":"祐",
"祖":"祖",
"祝":"祝",
"神":"神",
"祥":"祥",
"祯":"禎",
"祷":"禱",
"祸":"禍",
"禄":"祿",
"禅":"禪",
"禍":"禍",
"禎":"禎",
"福":"福",
"离":"離",
"秊":"年",
"种":"種",
"积":"積",
"称":"稱",
"税":"稅",
"稲":"稻",
"穀":"穀",
"穑":"穡",
"穣":"穰",
"穷":"窮",
"突":"突",
"窃":"竊",
"窍":"竅",
"窓":"窗",
"窥":"窺",
"竜":"龍",
"竞":"競",
"笃":"篤",
"笾":"籩",
"筚":"篳",
"简":"簡",
"箪":"簞",
"節":"節",
"篑":"簣",
"篡":"簒",
"籴":"糴",
"类":"類",
"粛":"肅",
"粪":"糞",
"粮":"糧",
"経":"經",
"絕":"絶",
"絵":"繪",
"継":"繼",
"続":"續",
"緒":"緖",
"緜":"綿",
"緼":"縕",
"縁":"緣",
"縄":"繩",
"縦":"縱",
"繁":"繁",
"繊":"纖",
"繋":"繫",
"繍":"繡",
"红":"紅",
"纣":"紂",
"纤":"纖",
"约":"約",
"级":"級",
"纪":"紀",
"纯":"純",
"纲":"綱",
"纳":"納",
"纵":"縱",
"纶":"綸",
"纷":"紛",
"纸":"紙",
"绀":"紺",
"练":"練",
"组":"組",
"绅":"紳",
"细":"細",
"织":"織",
"终":"終",
"绍":"紹",
"绎":"繹",
"经":"經",
"绐":"紿",
"结":"結",
"绕":"繞",
"绖":"絰",
"绘":"繪",
"给":"給",
"绚":"絢",
"绝":"絶",
"绞":"絞",
"统":"統",
"绢":"絹",
"绤":"綌",
"绥":"綏",
"继":"繼",
"绩":"績",
"绪":"緖",
"续":"續",
"绰":"綽",
"绳":"繩",
"维":"維",
"绵":"緜",
"绸":"綢",
"绹":"綯",
"缀":"綴",
"缁":"緇",
"缉":"緝",
"缊":"縕",
"缌":"緦",
"缓":"緩",
"缕":"縷",
"缗":"緡",
"缘":"緣",
"缚":"縛",
"缧":"縲",
"缨":"纓",
"缩":"縮",
"缪":"繆",
"缫":"繅",
"缭":"繚",
"缴":"繳",
"缵":"纘",
"网":"網",
"罗":"羅",
"罚":"罰",
"罢":"罷",
"羡":"羨",
"羣":"群",
"者":"者",
"耸":"聳",
"耻":"恥",
"职":"職",
"聡":"聰",
"聪":"聰",
"聴":"聽",
"肃":"肅",
"肤":"膚",
"胁":"脅",
"胆":"膽",
"胜":"勝",
"胫":"脛",
"胶":"膠",
"脍":"膾",
"腾":"騰",
"臭":"臭",
"舆":"輿",
"舎":"舍",
"艺":"藝",
"节":"節",
"芜":"蕪",
"芦":"蘆",
"苍":"蒼",
"苏":"蘇",
"茕":"煢",
"茧":"繭",
"荅":"答",
"荆":"荊",
"荐":"薦",
"荘":"莊",
"荛":"蕘",
"荡":"蕩",
"荣":"榮",
"药":"藥",
"莱":"萊",
"获":"獲",
"萤":"螢",
"营":"營",
"萦":"縈",
"萧":"蕭",
"著":"著",
"蒉":"蕢",
"蓝":"藍",
"蔂":"虆",
"蔵":"藏",
"薫":"薰",
"薬":"藥",
"虏":"虜",
"虑":"慮",
"虚":"虛",
"虜":"虜",
"虫":"蟲",
"虬":"虯",
"虽":"雖",
"蚁":"蟻",
"蚕":"蠶",
"蛍":"螢",
"蛙":"鼃",
"蛮":"蠻",
"蛰":"蟄",
"蜕":"蛻",
"蝇":"蠅",
"蝼":"螻",
"蝿":"蠅",
"衛":"衞",
"补":"補",
"袭":"襲",
"裏":"裡",
"褐":"褐",
"覇":"霸",
"視":"視",
"覚":"覺",
"覧":"覽",
"観":"觀",
"见":"見",
"观":"觀",
"规":"規",
"视":"視",
"览":"覽",
"觉":"覺",
"觌":"覿",
"觐":"覲",
"觞":"觴",
"触":"觸",
"訚":"誾",
"証":"證",
"誉":"譽",
"説":"說",
"読":"讀",
"諸":"諸",
"謁":"謁",
"謹":"謹",
"譲":"讓",
"讐":"讎",
"计":"計",
"讥":"譏",
"讦":"訐",
"讨":"討",
"让":"讓",
"讪":"訕",
"训":"訓",
"议":"議",
"讯":"訊",
"记":"記",
"讱":"訒",
"讲":"講",
"讳":"諱",
"讴":"謳",
"讷":"訥",
"许":"許",
"论":"論",
"讼":"訟",
"设":"設",
"访":"訪",
"证":"證",
"识":"識",
"诈":"詐",
"诉":"訴",
"词":"詞",
"诎":"詘",
"诏":"詔",
"诐":"詖",
"诒":"詒",
"诔":"誄",
"试":"試",
"诗":"詩",
"诘":"詰",
"诚":"誠",
"诛":"誅",
"话":"話",
"诞":"誕",
"诟":"詬",
"诡":"詭",
"询":"詢",
"诣":"詣",
"该":"該",
"详":"詳",
"诬":"誣",
"语":"語",
"误":"誤",
"诰":"誥",
"诱":"誘",
"诲":"誨",
"说":"說",
"诵":"誦",
"请":"請",
"诸":"諸",
"诺":"諾",
"读":"讀",
"诼":"諑",
"谀":"諛",
"谁":"誰",
"调":"調",
"谄":"諂",
"谅":"諒",
"谆":"諄",
"谇":"誶",
"谈":"談",
"谋":"謀",
"谏":"諫",
"谒":"謁",
"谓":"謂",
"谗":"讒",
"谚":"諺",
"谟":"謨",
"谢":"謝",
"谤":"謗",
"谥":"謚",
"谦":"謙",
"谨":"謹",
"谪":"謫",
"谬":"謬",
"谮":"譖",
"谲":"譎",
"豊":"豐",
"賓":"賓",
"賛":"贊",
"贞":"貞",
"负":"負",
"贡":"貢",
"财":"財",
"责":"責",
"贤":"賢",
"败":"敗",
"货":"貨",
"质":"質",
"贪":"貪",
"贫":"貧",
"贬":"貶",
"贯":"貫",
"贰":"貳",
"贱":"賤",
"贲":"賁",
"贵":"貴",
"贶":"貺",
"贷":"貸",
"费":"費",
"贺":"賀",
"贼":"賊",
"贾":"賈",
"赂":"賂",
"资":"資",
"赅":"賅",
"赆":"贐",
"赉":"賚",
"赋":"賦",
"赎":"贖",
"赏":"賞",
"赐":"賜",
"赖":"賴",
"赞":"贊",
"赠":"贈",
"赡":"贍",
"赵":"趙",
"趋":"趨",
"跃":"躍",
"践":"踐",
"踌":"躊",
"踪":"蹤",
"踯":"躑",
"躯":"軀",
"転":"轉",
"軽":"輕",
"车":"車",
"轨":"軌",
"轫":"軔",
"转":"轉",
"轮":"輪",
"轲":"軻",
"轻":"輕",
"载":"載",
"辂":"輅",
"较":"較",
"辅":"輔",
"辉":"輝",
"辍":"輟",
"输":"輸",
"辔":"轡",
"辞":"辭",
"辩":"辯",
"边":"邊",
"辺":"邊",
"达":"達",
"迁":"遷",
"过":"過",
"运":"運",
"还":"還",
"进":"進",
"远":"遠",
"违":"違",
"连":"連",
"迟":"遲",
"迩":"邇",
"适":"適",
"选":"選",
"逊":"遜",
"递":"遞",
"逓":"遞",
"逸":"逸",
"遅":"遲",
"遗":"遺",
"邮":"郵",
"邹":"鄒",
"邻":"鄰",
"郎":"郞",
"郑":"鄭",
"都":"都",
"鄉":"郷",
"鄕":"郷",
"酔":"醉",
"酱":"醬",
"醤":"醬",
"釈":"釋",
"释":"釋",
"鉄":"鐵",
"鉴":"鑒",
"銭":"錢",
"鋭":"銳",
"鋳":"鑄",
"錬":"鍊",
"鎮":"鎭",
"鑑":"鑒",
"鑚":"鑽",
"钓":"釣",
"钜":"鉅",
"钧":"鈞",
"钩":"鉤",
"钱":"錢",
"钺":"鉞",
"钻":"鑽",
"铁":"鐵",
"铄":"鑠",
"铎":"鐸",
"铜":"銅",
"铭":"銘",
"银":"銀",
"铸":"鑄",
"铺":"鋪",
"铿":"鏗",
"锐":"銳",
"错":"錯",
"锜":"錡",
"锡":"錫",
"锦":"錦",
"锭":"錠",
"锸":"鍤",
"镂":"鏤",
"镃":"鎡",
"镇":"鎭",
"镒":"鎰",
"镜":"鏡",
"镦":"鐓",
"长":"長",
"閒":"間",
"関":"關",
"閲":"閱",
"闘":"鬭",
"门":"門",
"闭":"閉",
"问":"問",
"闲":"閑",
"间":"間",
"闵":"閔",
"闺":"閨",
"闻":"聞",
"阅":"閱",
"阈":"閾",
"阉":"閹",
"阐":"闡",
"阕":"闋",
"阖":"闔",
"阙":"闕",
"队":"隊",
"阳":"陽",
"阴":"陰",
"阵":"陣",
"阶":"階",
"际":"際",
"陆":"陸",
"陈":"陳",
"陥":"陷",
"陨":"隕",
"险":"險",
"随":"隨",
"隐":"隱",
"隠":"隱",
"隣":"鄰",
"隶":"隸",
"隷":"隸",
"难":"難",
"雏":"雛",
"雑":"雜",
"雠":"讎",
"難":"難",
"雾":"霧",
"霊":"靈",
"靁":"雷",
"靑":"青",
"静":"靜",
"韩":"韓",
"韫":"韞",
"韵":"韻",
"頻":"頻",
"頼":"賴",
"顔":"顏",
"顕":"顯",
"顛":"顚",
"類":"類",
"顶":"頂",
"顺":"順",
"须":"須",
"顽":"頑",
"顾":"顧",
"颁":"頒",
"颂":"頌",
"领":"領",
"颇":"頗",
"频":"頻",
"题":"題",
"颜":"顏",
"额":"額",
"颠":"顚",
"颡":"顙",
"风":"風",
"飞":"飛",
"飨":"饗",
"飮":"飲",
"餍":"饜",
"饥":"飢",
"饩":"餼",
"饪":"飪",
"饬":"飭",
"饭":"飯",
"饮":"飲",
"饰":"飾",
"饱":"飽",
"饷":"餉",
"饿":"餓",
"馀":"餘",
"馁":"餒",
"馆":"館",
"馈":"饋",
"馑":"饉",
"馔":"饌",
"駆":"驅",
"騒":"騷",
"験":"驗",
"马":"馬",
"驭":"馭",
"驯":"馴",
"驰":"馳",
"驱":"驅",
"驷":"駟",
"驹":"駒",
"驾":"駕",
"骁":"驍",
"骂":"罵",
"骄":"驕",
"骇":"駭",
"骈":"駢",
"骊":"驪",
"骋":"騁",
"验":"驗",
"骍":"騂",
"骐":"騏",
"骑":"騎",
"骚":"騷",
"骞":"騫",
"骤":"驟",
"骥":"驥",
"髪":"髮",
"鬪":"鬭",
"鱼":"魚",
"鲁":"魯",
"鲂":"魴",
"鲐":"鮐",
"鲜":"鮮",
"鲤":"鯉",
"鲧":"鯀",
"鳅":"鰍",
"鳌":"鰲",
"鳏":"鰥",
"鳖":"鱉",
"鴈":"雁",
"鶏":"雞",
"鷄":"雞",
"鸟":"鳥",
"鸡":"雞",
"鸢":"鳶",
"鸣":"鳴",
"鸱":"鴟",
"鸷":"鷙",
"鸾":"鸞",
"鸿":"鴻",
"鹃":"鵑",
"鹄":"鵠",
"鹅":"鵝",
"鹈":"鵜",
"鹉":"鵡",
"鹘":"鶻",
"鹤":"鶴",
"鹥":"鷖",
"鹥":"鷖",
"鹦":"鸚",
"鹯":"鸇",
"麦":"麥",
"麪":"麵",
"麹":"麴",
"麺":"麵",
"黄":"黃",
"黒":"黑",
"黙":"默",
"鼇":"鰲",
"鼈":"鱉",
"鼋":"黿",
"鼌":"鼂",
"鼍":"鼉",
"齐":"齊",
"齿":"齒",
"龁":"齕",
"龙":"龍",
"龟":"龜",
"隆":"隆",
"精":"精",
"羽":"羽",
"飯":"飯",
"館":"館",
"既":"既",
}
| 10.995987 | 22 | 0.183271 | 2,490 | 13,701 | 1.009237 | 0.907631 | 0.001592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000201 | 0.272243 | 13,701 | 1,245 | 23 | 11.004819 | 0.25183 | 0.002482 | 0 | 0.001609 | 0 | 0 | 0.181632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19f644ae9a0d3fab920a497f4615d44e18e44cc4 | 2,560 | py | Python | Code/runsex.py | sbussmann/Bussmann2015 | 38515be0b8973a66e4e509a3a25369b4af0a5a85 | [
"MIT"
] | null | null | null | Code/runsex.py | sbussmann/Bussmann2015 | 38515be0b8973a66e4e509a3a25369b4af0a5a85 | [
"MIT"
] | 1 | 2017-02-01T20:19:57.000Z | 2017-02-01T20:19:57.000Z | Code/runsex.py | sbussmann/Bussmann2015 | 38515be0b8973a66e4e509a3a25369b4af0a5a85 | [
"MIT"
] | null | null | null | """
2014 March 27
Shane Bussmann
Generate input files for SExtractor and run it.
"""
from astropy.table import Table
from astropy.io import fits
import os
import numpy
filterlist = ['u', 'g', 'r', 'i', 'z', 'Y', 'J', 'H', 'Ks']
nfilters = len(filterlist)
targetlistloc = 'targetlist.dat'
targetlist = Table.read(targetlistloc, format='ascii')
ntargets = len(targetlist)
fitsdir = 'fitscutouts'
os.chdir(fitsdir)
for itarg in range(ntargets):
# get the target name from the filename
dataname = targetlist['dataname'][itarg]
iauname = targetlist['iauname'][itarg]
counter = 0
for ifilt in filterlist:
# load the appropriate optical image
imloc = dataname + '_' + ifilt + '_cut.fits'
if not os.path.exists(imloc):
continue
header = fits.getheader(imloc)
# estimate the photometric zeropoint of the data
gemzero = [24.91, 28.33, 28.33, 27.93, 26.84]
gemcolors = [0.38, 0.18, 0.1, 0.08, 0.05]
headerkeys = header.keys()
cautionflag = 1
#if headerkeys.count('AIRMASS') > 0:
# gain = header['GAIN']
# exptime = header['EXPTIME']
# airmass = header['AIRMASS']
# zpt = gemzero[counter] - 2.5 * numpy.log10(gain / exptime) - \
# gemcolors[counter] * (airmass - 1.0)
# cautionflag = 0
if headerkeys.count('PHOTZP') > 0:
zpt = header['PHOTZP']
cautionflag = 0
if headerkeys.count('MAGZPT') > 0:
zpt = header['MAGZPT']
cautionflag = 0
if cautionflag:
# go back to Gemini reduction directory to get needed header info
dataloc = '/Users/rbussman/Data/Gemini-South/'
oldimloc = dataloc + dataname + '_' + ifilt + '.fits'
oldheader = fits.getheader(oldimloc)
gain = oldheader['GAIN']
exptime = oldheader['EXPTIME']
airmass = oldheader['AIRMASS']
zpt = gemzero[counter] - 2.5 * numpy.log10(gain / exptime) - \
gemcolors[counter] * (airmass - 1.0)
cautionflag = 0
string0 = ' -MAG_ZEROPOINT ' + str(zpt)
catalogname = dataname + '_' + ifilt + '_cut.cat'
string1 = ' -CATALOG_NAME ' + catalogname
segname = dataname + '_' + ifilt + '_seg.fits'
string2 = ' -CHECKIMAGE_NAME ' + segname
stringfinal = ' ' + imloc
cmd = 'sex' + string0 + string1 + string2 + stringfinal
print cmd
os.system(cmd)
counter += 1
| 30.47619 | 77 | 0.569922 | 279 | 2,560 | 5.193548 | 0.469534 | 0.035887 | 0.035197 | 0.033126 | 0.147688 | 0.115942 | 0.115942 | 0.115942 | 0.115942 | 0.115942 | 0 | 0.038288 | 0.30625 | 2,560 | 83 | 78 | 30.843373 | 0.77759 | 0.169531 | 0 | 0.06 | 1 | 0 | 0.107988 | 0.016765 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.02 | 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 |
19ffeb22ee99db84f9af832959bcfd168d6c859c | 2,055 | py | Python | imagetests/test_graph_module.py | LloydTao/generativepy | 8bf6afed57200cbebd3163e4fdc730fc8761e753 | [
"MIT"
] | 58 | 2019-06-15T16:09:28.000Z | 2022-03-25T03:24:26.000Z | imagetests/test_graph_module.py | LloydTao/generativepy | 8bf6afed57200cbebd3163e4fdc730fc8761e753 | [
"MIT"
] | 1 | 2021-09-09T16:12:18.000Z | 2021-09-09T18:13:05.000Z | imagetests/test_graph_module.py | LloydTao/generativepy | 8bf6afed57200cbebd3163e4fdc730fc8761e753 | [
"MIT"
] | 4 | 2020-07-26T10:54:19.000Z | 2021-11-17T17:24:13.000Z | import unittest
from generativepy.drawing import setup, make_image, ROUND, BUTT
from image_test_helper import run_image_test
from generativepy.color import Color
from generativepy.graph import Axes, plot_curve, plot_xy_curve, plot_polar_curve
"""
Test the graph module.
"""
class TestGraphImages(unittest.TestCase):
def test_graph_simple(self):
def draw(ctx, width, height, frame_no, frame_count):
setup(ctx, width, height, width=12, startx=-6, starty=-6, background=Color(1), flip=True)
# Creates a set of axes.
# Use the default size of 10 units, but offset the start toplace the origin inthe centre
axes = Axes(ctx, start=(-5, -5))
axes.draw()
# Add various curves
plot_curve(axes, lambda x: x * x)
plot_xy_curve(axes, lambda x: 1.5 ** x, line_color=Color(0, 0, 0.5))
plot_polar_curve(axes, lambda x: 2 * x, line_color=Color(0, 0.5, 0))
def creator(file):
make_image(file, draw, 600, 600)
self.assertTrue(run_image_test('test_graph_simple.png', creator))
def test_graph_dashed_line(self):
def draw(ctx, width, height, frame_no, frame_count):
setup(ctx, width, height, width=12, startx=-6, starty=-6, background=Color(1), flip=True)
# Creates a set of axes.
# Use the default size of 10 units, but offset the start toplace the origin inthe centre
axes = Axes(ctx, start=(-5, -5))
axes.draw()
# Add various curves
plot_curve(axes, lambda x: x * x, line_width=2, dash=[5])
plot_xy_curve(axes, lambda x: 1.5 ** x, line_color=Color(0, 0, 0.5), line_width=2, dash=[5, 5, 10, 5],
cap=ROUND)
plot_polar_curve(axes, lambda x: 2 * x, line_color=Color(0, 0.5, 0), line_width=2, dash=[5], cap=BUTT)
def creator(file):
make_image(file, draw, 600, 600)
self.assertTrue(run_image_test('test_graph_dashed_line.png', creator))
| 38.773585 | 114 | 0.620438 | 305 | 2,055 | 4.02623 | 0.24918 | 0.043974 | 0.07329 | 0.078176 | 0.715798 | 0.679153 | 0.679153 | 0.679153 | 0.679153 | 0.679153 | 0 | 0.041114 | 0.26618 | 2,055 | 52 | 115 | 39.519231 | 0.77321 | 0.125061 | 0 | 0.413793 | 0 | 0 | 0.026705 | 0.026705 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.206897 | false | 0 | 0.172414 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c21652805060ee804b719e5bd852d4d24e68da0e | 618 | py | Python | walbot.py | skonnov/walbot | 5b9347bf04d65f099e18ff343b80527f6849daca | [
"MIT"
] | null | null | null | walbot.py | skonnov/walbot | 5b9347bf04d65f099e18ff343b80527f6849daca | [
"MIT"
] | 33 | 2021-01-22T06:05:26.000Z | 2022-03-18T11:03:04.000Z | walbot.py | skonnov/walbot | 5b9347bf04d65f099e18ff343b80527f6849daca | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
WalBot
Check out `python walbot.py -h` for list of available options
"""
import importlib
import sys
def main():
"""WalBot launcher entrypoint"""
if not ((sys.version_info.major == 3 and sys.version_info.minor >= 6) and
(sys.version_info.major == 3 and sys.version_info.minor <= 8)):
print("Python {}.{}.{} is not supported. You need Python 3.6 - 3.8".format(
sys.version_info.major, sys.version_info.minor, sys.version_info.micro))
sys.exit(1)
importlib.import_module("src.launcher").Launcher()
if __name__ == "__main__":
main()
| 26.869565 | 84 | 0.650485 | 88 | 618 | 4.386364 | 0.5 | 0.181347 | 0.253886 | 0.147668 | 0.217617 | 0.217617 | 0.217617 | 0.217617 | 0.217617 | 0.217617 | 0 | 0.020202 | 0.199029 | 618 | 22 | 85 | 28.090909 | 0.759596 | 0.18932 | 0 | 0 | 0 | 0 | 0.161885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.272727 | 0 | 0.363636 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c2275b29be0fab1f60ebecc08db2cd018bfc59d0 | 489 | py | Python | yearn/scripts/yearn.py | jonesnc/yearn-client | 701bea50cdd515394260f515e60b8a77ed0d8879 | [
"MIT"
] | null | null | null | yearn/scripts/yearn.py | jonesnc/yearn-client | 701bea50cdd515394260f515e60b8a77ed0d8879 | [
"MIT"
] | null | null | null | yearn/scripts/yearn.py | jonesnc/yearn-client | 701bea50cdd515394260f515e60b8a77ed0d8879 | [
"MIT"
] | null | null | null | import click
from yearn.scripts.load import load as script_load
@click.group()
def cli():
pass
@cli.command()
@click.argument('path', default='.')
@click.option('--scgi', default=None)
@click.option('--mount', default=None) # TODO: support multiple mounts
def load(path, scgi, mount):
click.echo('Loading torrent files...')
click.echo(f'Using SCGI: {scgi}')
click.echo(f'Using path: {path}')
click.echo(f'Using mount: {mount}')
script_load(path, scgi, mount)
| 23.285714 | 71 | 0.672802 | 69 | 489 | 4.73913 | 0.434783 | 0.110092 | 0.091743 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149284 | 489 | 20 | 72 | 24.45 | 0.786058 | 0.059305 | 0 | 0 | 0 | 0 | 0.213974 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.133333 | false | 0.066667 | 0.133333 | 0 | 0.266667 | 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 |
c23575f8f46f50b0312d5a711307f82d27eaa3d6 | 1,558 | py | Python | mods/verb.py | seyhajin/flux | 22884cd9a9cab117b0013394ace2a399bd5907f7 | [
"MIT"
] | 5 | 2021-03-24T09:23:44.000Z | 2022-01-06T07:24:31.000Z | mods/verb.py | seyhajin/flux | 22884cd9a9cab117b0013394ace2a399bd5907f7 | [
"MIT"
] | null | null | null | mods/verb.py | seyhajin/flux | 22884cd9a9cab117b0013394ace2a399bd5907f7 | [
"MIT"
] | null | null | null | """access to verb modules"""
import sys
import os
import glob
#FIXME: Python2
is_python3 = sys.version_info > (3,5)
if is_python3:
import importlib.util
else:
import imp
from collections import OrderedDict
from mods import log, util
# dictionary of 'name: module'
verbs = {}
#------------------------------------------------------------------------------
def import_verbs(flux_dir):
global verbs
# make sure flux-verbs find their modules
#sys.path.insert(0, flux_dir)
# verbs directory
verb_dir = util.get_verbs_dir(flux_dir)
if os.path.isdir(verb_dir):
# get all .py file in verb dir
verb_files = glob.glob(verb_dir + '/*.py')
if verb_files:
for verb_file in verb_files:
verb_name = util.split_name(verb_file)
if not verb_name.startswith('__'):
if is_python3:
spec = importlib.util.spec_from_file_location(verb_name, verb_file)
verb_mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(verb_mod)
else:
#FIXME: Python2
fp, pathname, desc = imp.find_module(verb_name, [verb_dir])
verb_mod = imp.load_module(verb_name, fp, pathname, desc)
verbs[verb_name] = verb_mod
else:
log.error('no verb was found in `verbs` dir: `%s`' % verb_dir)
else:
log.error('`verbs` directory not found: `%s`' % verb_dir)
| 30.54902 | 91 | 0.555199 | 192 | 1,558 | 4.28125 | 0.354167 | 0.059611 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007421 | 0.308087 | 1,558 | 50 | 92 | 31.16 | 0.755102 | 0.173941 | 0 | 0.1875 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.03125 | false | 0 | 0.3125 | 0 | 0.34375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c23cb049ea3a264f142939d4a4fcd7c168fe058f | 3,842 | py | Python | captslog/ui/Other References/log_in.py | galbie/CaptsLog | ef86a5bc7e6cbe0bcf3e26404f443d912020d964 | [
"MIT"
] | 1 | 2017-03-08T02:37:40.000Z | 2017-03-08T02:37:40.000Z | captslog/ui/Other References/log_in.py | galbie/CaptsLog | ef86a5bc7e6cbe0bcf3e26404f443d912020d964 | [
"MIT"
] | 39 | 2017-03-01T21:23:32.000Z | 2017-05-31T19:38:43.000Z | captslog/ui/Other References/log_in.py | galbie/CaptsLog | ef86a5bc7e6cbe0bcf3e26404f443d912020d964 | [
"MIT"
] | 7 | 2017-03-02T01:47:01.000Z | 2017-05-07T22:24:18.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'login.ui'
#
# Created: Thu Mar 09 12:32:10 2017
# by: pyside-uic 0.2.15 running on PySide 1.2.4
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class UI_Form(object):
def setupUi(self, Form):
"""Setting up Log in UI Form
"""
Form.setObjectName("Form")
Form.setFixedSize(400, 300)
self.formLayoutWidget = QtGui.QWidget(Form)
self.formLayoutWidget.setGeometry(QtCore.QRect(70, 110, 251, 71))
self.formLayoutWidget.setObjectName("formLayoutWidget")
self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.formLayout.setContentsMargins(0, 0, 0, 0)
self.formLayout.setObjectName("formLayout")
self.Username = QtGui.QLabel(self.formLayoutWidget)
self.Username.setObjectName("Username")
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.Username)
self.Password = QtGui.QLabel(self.formLayoutWidget)
self.Password.setObjectName("Password")
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.Password)
self.iUsername = QtGui.QLineEdit(self.formLayoutWidget)
self.iUsername.setObjectName("iUsername")
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.iUsername)
self.iPassword = QtGui.QLineEdit(self.formLayoutWidget)
self.iPassword.setObjectName("iPassword")
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.iPassword)
spacerItem = QtGui.QSpacerItem(
20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.formLayout.setItem(1, QtGui.QFormLayout.LabelRole, spacerItem)
self.Login = QtGui.QPushButton(Form)
self.Login.setGeometry(QtCore.QRect(210, 220, 75, 23))
self.Login.setObjectName("Login")
self.Captslog = QtGui.QLabel(Form)
self.Captslog.setGeometry(QtCore.QRect(90, 50, 221, 41))
font = QtGui.QFont()
font.setPointSize(30)
font.setWeight(75)
font.setBold(True)
self.Captslog.setFont(font)
self.Captslog.setObjectName("Captslog")
self.ErrorMessage = QtGui.QLabel(Form)
self.ErrorMessage.setGeometry(QtCore.QRect(120, 190, 151, 20))
self.ErrorMessage.setText("")
self.ErrorMessage.setAlignment(QtCore.Qt.AlignCenter)
self.ErrorMessage.setObjectName("ErrorMessage")
self.Signup = QtGui.QPushButton(Form)
self.Signup.setGeometry(QtCore.QRect(100, 220, 75, 23))
self.Signup.setObjectName("Signup")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(QtGui.QApplication.translate(
"Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.Username.setText(QtGui.QApplication.translate(
"Form", "Username :", None, QtGui.QApplication.UnicodeUTF8))
self.Password.setText(QtGui.QApplication.translate(
"Form", "Password :", None, QtGui.QApplication.UnicodeUTF8))
self.Login.setText(QtGui.QApplication.translate(
"Form", "Log in", None, QtGui.QApplication.UnicodeUTF8))
self.Captslog.setText(QtGui.QApplication.translate(
"Form", "CAPTSLOG", None, QtGui.QApplication.UnicodeUTF8))
self.Signup.setText(QtGui.QApplication.translate(
"Form", "Sign Up", None, QtGui.QApplication.UnicodeUTF8))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Form = QtGui.QWidget()
ui = UI_Form()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())
| 38.808081 | 85 | 0.679073 | 410 | 3,842 | 6.336585 | 0.314634 | 0.085065 | 0.060046 | 0.069284 | 0.258276 | 0.061586 | 0 | 0 | 0 | 0 | 0 | 0.03229 | 0.201978 | 3,842 | 98 | 86 | 39.204082 | 0.815068 | 0.066892 | 0 | 0 | 1 | 0 | 0.048139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0.115942 | 0.028986 | 0 | 0.072464 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c23e62830fa40679f58538eb41b7bfb3a8fc6918 | 762 | py | Python | example.py | MaVCArt/SDFGenerator | 855f73fdef487ffe23e8c69f496b3c4c97a6ef7b | [
"MIT"
] | 4 | 2022-01-06T09:18:17.000Z | 2022-01-07T11:56:46.000Z | example.py | MaVCArt/SDFGenerator | 855f73fdef487ffe23e8c69f496b3c4c97a6ef7b | [
"MIT"
] | null | null | null | example.py | MaVCArt/SDFGenerator | 855f73fdef487ffe23e8c69f496b3c4c97a6ef7b | [
"MIT"
] | null | null | null | import SDFGenerator
from PIL import Image
# -- black/white input image
img = Image.open('example_assets/input.png')
resize_output = (256, 256)
output, color_id, lut = SDFGenerator.generate_sdf(img, boolean_cutoff=0.5, spread=50, normalize_distance=True)
color_id.resize(resize_output).save('example_assets/output_id.png')
lut.save('example_assets/output_id_lut.png')
output.resize(resize_output).save('example_assets/output.png')
# -- save the output data as individual images to illustrate functionality
output.getchannel('A').resize(resize_output).save('example_assets/output_alpha.png')
output.convert('RGB').resize(resize_output).save('example_assets/output_rgb.png')
output.getchannel('B').resize(resize_output).save('example_assets/output_blue.png')
| 38.1 | 110 | 0.7979 | 112 | 762 | 5.214286 | 0.410714 | 0.155822 | 0.174658 | 0.236301 | 0.39726 | 0.351027 | 0.351027 | 0 | 0 | 0 | 0 | 0.014045 | 0.065617 | 762 | 19 | 111 | 40.105263 | 0.80618 | 0.129921 | 0 | 0 | 1 | 0 | 0.309091 | 0.301515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 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 |
c245fd39358c52f20845fa8a50341292a47274b7 | 411 | py | Python | wikiwho/io.py | gesiscss/wikiwho_pickle | e16e930c2143af195b8344d0affd359bbb5fe2ce | [
"MIT"
] | null | null | null | wikiwho/io.py | gesiscss/wikiwho_pickle | e16e930c2143af195b8344d0affd359bbb5fe2ce | [
"MIT"
] | null | null | null | wikiwho/io.py | gesiscss/wikiwho_pickle | e16e930c2143af195b8344d0affd359bbb5fe2ce | [
"MIT"
] | null | null | null | from os.path import join
from os import makedirs
import pickle
class WikiWhoPickle():
def __init__(self, path='pickles', lang=''):
self.path = join(path, lang)
try:
makedirs(self.path)
except FileExistsError:
pass
def open_pickle(self, article_id):
with open(join(self.path, f'{article_id}.p'), 'rb') as _f:
return pickle.load(_f)
| 22.833333 | 66 | 0.603406 | 53 | 411 | 4.509434 | 0.528302 | 0.133891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282238 | 411 | 17 | 67 | 24.176471 | 0.810169 | 0 | 0 | 0 | 0 | 0 | 0.055961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.230769 | 0 | 0.538462 | 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 |
c249ed56fa3a4daa778e5edecfeaed80f5a32af6 | 252 | py | Python | Class/admin.py | Mihai925/EduCoding-Legacy | 7c6de105deb186c3442f8d7f9f1b9f99708f8fb6 | [
"MIT"
] | null | null | null | Class/admin.py | Mihai925/EduCoding-Legacy | 7c6de105deb186c3442f8d7f9f1b9f99708f8fb6 | [
"MIT"
] | null | null | null | Class/admin.py | Mihai925/EduCoding-Legacy | 7c6de105deb186c3442f8d7f9f1b9f99708f8fb6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Class
@admin.register(Class)
class ExerciseAdmin(admin.ModelAdmin):
list_display = ('cls_id', 'description', 'name')
list_editable = ('description', 'name' )
ordering = ('cls_id',)
| 18 | 52 | 0.694444 | 29 | 252 | 5.896552 | 0.62069 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 252 | 13 | 53 | 19.384615 | 0.814286 | 0 | 0 | 0 | 0 | 0 | 0.169355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
df9b587354932862c1730ec426e1577da9d67ba1 | 339 | py | Python | rays.py | DatHydroGuy/RayTracer | f870d3eb0408e52b92ee528bb6615187b762bede | [
"MIT"
] | null | null | null | rays.py | DatHydroGuy/RayTracer | f870d3eb0408e52b92ee528bb6615187b762bede | [
"MIT"
] | null | null | null | rays.py | DatHydroGuy/RayTracer | f870d3eb0408e52b92ee528bb6615187b762bede | [
"MIT"
] | null | null | null | from tuples import Point
class Ray:
def __init__(self, origin, direction):
self.origin = origin
self.direction = direction
def position(self, t):
return Point.from_tuple(self.origin + self.direction * t)
def transform(self, matrix):
return Ray(matrix * self.origin, matrix * self.direction)
| 24.214286 | 65 | 0.660767 | 42 | 339 | 5.214286 | 0.404762 | 0.182648 | 0.173516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244838 | 339 | 13 | 66 | 26.076923 | 0.855469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 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 |
dfaa4530b872b493d4820dd3dc9ec500501e7842 | 889 | py | Python | CursoEmVideo/ex073.py | ElivanLimaJunior/Python | 57c277f3ec0da06d6c8aa125b50d01a5ab88934d | [
"MIT"
] | null | null | null | CursoEmVideo/ex073.py | ElivanLimaJunior/Python | 57c277f3ec0da06d6c8aa125b50d01a5ab88934d | [
"MIT"
] | null | null | null | CursoEmVideo/ex073.py | ElivanLimaJunior/Python | 57c277f3ec0da06d6c8aa125b50d01a5ab88934d | [
"MIT"
] | null | null | null | #Crie uma tupla preenchuda com os 20 primeiros colocados da tabela do Campeonato Brasileiro de Futebol, na ordem de colocação.
# Depois mostre:
# A) Apenas os 5 primeiros colocados
# B) os 4 últimos colocados da tabela.
# C) Uma lista com os times em ordem alfabética.
# D) Em que posição na tabela está o time da chapecoense
times= ('Atlético-MG', 'Palmeiras', 'Fortaleza', 'Bragantino', 'Flamengo', 'Corinthians', 'Atlético-GO', 'Ceará SC', 'Athletico-PR', 'Internacional', 'Santos', 'São Paulo', 'Juvetude', 'Cuiabá', 'Bahia', 'Fluminense', 'Grêmio', 'Sport Recife', 'América-MG', 'Chapecoense')
print(f'Os cinco primeiros colocados:\n{times[0:5]}')
print(f'\nOs 4 últimos colocados da tabela:\n{times[16:20]}')
print(f'\nLista dos times em ordem alfabética:\n{sorted(times[0:])}')
Chapecoense = times.index('Chapecoense') + 1
print(f'\nO Chapecoense está na {Chapecoense}ª posição')
| 59.266667 | 272 | 0.724409 | 131 | 889 | 4.916031 | 0.580153 | 0.037267 | 0.079193 | 0.059006 | 0.07764 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016753 | 0.127109 | 889 | 14 | 273 | 63.5 | 0.813144 | 0.353206 | 0 | 0 | 0 | 0 | 0.695423 | 0.139085 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
dfadf977e029380a5efbe397dcc96eee0b28dce4 | 630 | py | Python | operator_api/ledger/migrations/0007_auto_20180106_1056.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 1 | 2021-08-04T06:09:46.000Z | 2021-08-04T06:09:46.000Z | operator_api/ledger/migrations/0007_auto_20180106_1056.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 8 | 2020-11-01T19:48:21.000Z | 2022-02-10T14:12:25.000Z | operator_api/ledger/migrations/0007_auto_20180106_1056.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 3 | 2020-11-01T15:59:56.000Z | 2021-09-16T07:18:18.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-06 10:56
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ledger', '0006_auto_20171230_1059'),
]
operations = [
migrations.RemoveField(
model_name='checkpointsubmission',
name='blockchaintransaction_ptr',
),
migrations.RemoveField(
model_name='checkpointsubmission',
name='checkpoint',
),
migrations.DeleteModel(
name='CheckpointSubmission',
),
]
| 23.333333 | 48 | 0.607937 | 55 | 630 | 6.763636 | 0.690909 | 0.193548 | 0.139785 | 0.16129 | 0.290323 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0.073497 | 0.287302 | 630 | 26 | 49 | 24.230769 | 0.755011 | 0.107937 | 0 | 0.368421 | 1 | 0 | 0.221825 | 0.085868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
dfafc7bbbda5a65bffd774bf7dc78f0a4b21d120 | 540 | py | Python | vistrails/packages/tabledata/read/__init__.py | tacaswell/VisTrails | a44416dd3b145f994454fac3092860364b55b6eb | [
"BSD-3-Clause"
] | null | null | null | vistrails/packages/tabledata/read/__init__.py | tacaswell/VisTrails | a44416dd3b145f994454fac3092860364b55b6eb | [
"BSD-3-Clause"
] | null | null | null | vistrails/packages/tabledata/read/__init__.py | tacaswell/VisTrails | a44416dd3b145f994454fac3092860364b55b6eb | [
"BSD-3-Clause"
] | null | null | null | from vistrails.core.modules.utils import make_modules_dict
try:
# read_numpy requires numpy
import numpy
except ImportError: # pragma: no cover
numpy_modules = []
else:
from read_numpy import _modules as numpy_modules
from read_csv import _modules as csv_modules
from read_excel import _modules as excel_modules
from read_json import _modules as json_modules
_modules = make_modules_dict(numpy_modules, csv_modules, excel_modules,
json_modules,
namespace='read')
| 30 | 71 | 0.72037 | 70 | 540 | 5.228571 | 0.328571 | 0.087432 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238889 | 540 | 17 | 72 | 31.764706 | 0.890511 | 0.077778 | 0 | 0 | 0 | 0 | 0.008081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.538462 | 0 | 0.538462 | 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 |
dfb91d16e973530dd8e07e45611ea4dc77f720ae | 117 | py | Python | tests/data/config/i_child.py | BIGWangYuDong/mmcv | c46deb0576edaff5cd5a7d384c617478c7a73a70 | [
"Apache-2.0"
] | 1 | 2022-03-14T12:40:34.000Z | 2022-03-14T12:40:34.000Z | tests/data/config/i_child.py | BIGWangYuDong/mmcv | c46deb0576edaff5cd5a7d384c617478c7a73a70 | [
"Apache-2.0"
] | null | null | null | tests/data/config/i_child.py | BIGWangYuDong/mmcv | c46deb0576edaff5cd5a7d384c617478c7a73a70 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
_base_ = './i_base.py'
item_cfg = {'b': 2}
item6 = {'cfg': item_cfg}
| 23.4 | 47 | 0.649573 | 18 | 117 | 3.944444 | 0.777778 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.153846 | 117 | 4 | 48 | 29.25 | 0.69697 | 0.384615 | 0 | 0 | 0 | 0 | 0.214286 | 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 |
dfbc4b392ce89adf93d049026727553b7d72facb | 3,719 | py | Python | tests/unit/plugins/openstack/scenarios/neutron/test_security_groups.py | varuntiwari27/rally | 948fba0e8fe8214dd3716451d2a52e014a4115be | [
"Apache-2.0"
] | 1 | 2021-09-29T02:16:09.000Z | 2021-09-29T02:16:09.000Z | tests/unit/plugins/openstack/scenarios/neutron/test_security_groups.py | noah8713/rally-ovs | 2434787c2cf4ca267108966c4ddc55ded3c333d9 | [
"Apache-2.0"
] | 1 | 2020-07-14T11:29:31.000Z | 2020-07-14T11:29:31.000Z | tests/unit/plugins/openstack/scenarios/neutron/test_security_groups.py | noah8713/rally-ovs | 2434787c2cf4ca267108966c4ddc55ded3c333d9 | [
"Apache-2.0"
] | 1 | 2020-07-02T01:33:48.000Z | 2020-07-02T01:33:48.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import ddt
import mock
from rally.plugins.openstack.scenarios.neutron import security_groups
from tests.unit import test
@ddt.ddt
class NeutronSecurityGroup(test.TestCase):
@ddt.data(
{},
{"security_group_create_args": {}},
{"security_group_create_args": {"description": "fake-description"}},
)
@ddt.unpack
def test_create_and_list_security_groups(
self, security_group_create_args=None):
neutron_scenario = security_groups.NeutronSecurityGroup()
security_group_data = security_group_create_args or {}
neutron_scenario._create_security_group = mock.Mock()
neutron_scenario._list_security_groups = mock.Mock()
neutron_scenario.create_and_list_security_groups(
security_group_create_args=security_group_create_args)
neutron_scenario._create_security_group.assert_called_once_with(
**security_group_data)
neutron_scenario._list_security_groups.assert_called_once_with()
@ddt.data(
{},
{"security_group_create_args": {}},
{"security_group_create_args": {"description": "fake-description"}},
)
@ddt.unpack
def test_create_and_delete_security_groups(
self, security_group_create_args=None):
neutron_scenario = security_groups.NeutronSecurityGroup()
security_group_data = security_group_create_args or {}
neutron_scenario._create_security_group = mock.Mock()
neutron_scenario._delete_security_group = mock.Mock()
neutron_scenario.create_and_delete_security_groups(
security_group_create_args=security_group_create_args)
neutron_scenario._create_security_group.assert_called_once_with(
**security_group_data)
neutron_scenario._delete_security_group.assert_called_once_with(
neutron_scenario._create_security_group.return_value)
@ddt.data(
{},
{"security_group_create_args": {}},
{"security_group_create_args": {"description": "fake-description"}},
{"security_group_update_args": {}},
{"security_group_update_args": {"description": "fake-updated-descr"}},
)
@ddt.unpack
def test_create_and_update_security_groups(
self, security_group_create_args=None,
security_group_update_args=None):
neutron_scenario = security_groups.NeutronSecurityGroup()
security_group_data = security_group_create_args or {}
security_group_update_data = security_group_update_args or {}
neutron_scenario._create_security_group = mock.Mock()
neutron_scenario._update_security_group = mock.Mock()
neutron_scenario.create_and_update_security_groups(
security_group_create_args=security_group_create_args,
security_group_update_args=security_group_update_args)
neutron_scenario._create_security_group.assert_called_once_with(
**security_group_data)
neutron_scenario._update_security_group.assert_called_once_with(
neutron_scenario._create_security_group.return_value,
**security_group_update_data)
| 44.27381 | 78 | 0.726271 | 435 | 3,719 | 5.742529 | 0.222989 | 0.228983 | 0.13691 | 0.165733 | 0.722578 | 0.685749 | 0.66293 | 0.66293 | 0.573659 | 0.573659 | 0 | 0.00134 | 0.197365 | 3,719 | 83 | 79 | 44.807229 | 0.835511 | 0.146814 | 0 | 0.523077 | 0 | 0 | 0.100697 | 0.065864 | 0 | 0 | 0 | 0 | 0.092308 | 1 | 0.046154 | false | 0 | 0.061538 | 0 | 0.123077 | 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 |
dfc4883d41d8fca3778f1186a536370771bea099 | 449 | py | Python | api/api_endpoint.py | kariswr/Multilingual-BERT-KPE | adecc46390fbf5e92846dd60a51a42fba8754c52 | [
"MIT"
] | null | null | null | api/api_endpoint.py | kariswr/Multilingual-BERT-KPE | adecc46390fbf5e92846dd60a51a42fba8754c52 | [
"MIT"
] | null | null | null | api/api_endpoint.py | kariswr/Multilingual-BERT-KPE | adecc46390fbf5e92846dd60a51a42fba8754c52 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_cors import CORS, cross_origin
from flask_restful import Resource, Api, reqparse
from os.path import dirname
import ast
import sys
import pandas as pd
from answer_extractor import ExtractAnswer
app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'
api = Api(app)
api.add_resource(ExtractAnswer, '/extract-answer')
if __name__ == '__main__':
app.run(host='127.0.0.1', port=5001) | 23.631579 | 50 | 0.768374 | 69 | 449 | 4.73913 | 0.550725 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025575 | 0.129176 | 449 | 19 | 51 | 23.631579 | 0.810742 | 0 | 0 | 0 | 0 | 0 | 0.124444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.533333 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
dfc88b44e4f39a9369a4d0f6522ca7a92ca8dac3 | 107 | py | Python | AtCoder/ABC/A/page-2/066A.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | AtCoder/ABC/A/page-2/066A.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | AtCoder/ABC/A/page-2/066A.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | # listでとってきてsortとして小さい順から二つ足していく
list = list(map(int, input().split()))
list.sort()
print(list[0]+list[1])
| 21.4 | 38 | 0.719626 | 14 | 107 | 5.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.074766 | 107 | 4 | 39 | 26.75 | 0.757576 | 0.280374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
dfce9d9538035170e4670cab2d0705bee9fa0954 | 5,823 | py | Python | mat2py/core/codetools.py | mat2py/mat2py | 2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8 | [
"MIT"
] | null | null | null | mat2py/core/codetools.py | mat2py/mat2py | 2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8 | [
"MIT"
] | 37 | 2021-12-23T03:22:20.000Z | 2022-02-16T15:40:47.000Z | mat2py/core/codetools.py | mat2py/mat2py | 2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8 | [
"MIT"
] | 2 | 2022-01-23T07:59:10.000Z | 2022-02-03T09:15:54.000Z | # type: ignore
__all__ = [
"datatipinfo",
"deprpt",
"dbstep",
"arrayviewfunc",
"openvar",
"workspace",
"commandwindow",
"runreport",
"fixcontents",
"projdumpmat",
"urldecode",
"renameStructField",
"dbcont",
"checkcode",
"publish",
"urlencode",
"uiimport",
"dbstop",
"grabcode",
"mlintrpt",
"workspacefunc",
"dbstack",
"filebrowser",
"dbstatus",
"dbtype",
"stripanchors",
"auditcontents",
"sharedplotfunc",
"dbquit",
"codetoolsswitchyard",
"snapnow",
"dofixrpt",
"mdbfileonpath",
"code2html",
"mlint",
"initdesktoputils",
"commonplotfunc",
"edit",
"functionhintsfunc",
"convertSpreadsheetDates",
"contentsrpt",
"commandhistory",
"plotpickerfunc",
"coveragerpt",
"dbup",
"opentoline",
"m2struct",
"convertSpreadsheetExcelDates",
"profviewgateway",
"makemcode",
"indentcode",
"profile",
"mdbpublish",
"dbdown",
"pathtool",
"value2CustomFcn",
"profsave",
"getcallinfo",
"profview",
"dbclear",
"dbmex",
"profreport",
"makecontentsfile",
"helprpt",
"mdbstatus",
"fixquote",
]
def datatipinfo(*args):
raise NotImplementedError("datatipinfo")
def deprpt(*args):
raise NotImplementedError("deprpt")
def dbstep(*args):
raise NotImplementedError("dbstep")
def arrayviewfunc(*args):
raise NotImplementedError("arrayviewfunc")
def openvar(*args):
raise NotImplementedError("openvar")
def workspace(*args):
raise NotImplementedError("workspace")
def commandwindow(*args):
raise NotImplementedError("commandwindow")
def runreport(*args):
raise NotImplementedError("runreport")
def fixcontents(*args):
raise NotImplementedError("fixcontents")
def projdumpmat(*args):
raise NotImplementedError("projdumpmat")
def urldecode(*args):
raise NotImplementedError("urldecode")
def renameStructField(*args):
raise NotImplementedError("renameStructField")
def dbcont(*args):
raise NotImplementedError("dbcont")
def checkcode(*args):
raise NotImplementedError("checkcode")
def publish(*args):
raise NotImplementedError("publish")
def urlencode(*args):
raise NotImplementedError("urlencode")
def uiimport(*args):
raise NotImplementedError("uiimport")
def dbstop(*args):
raise NotImplementedError("dbstop")
def grabcode(*args):
raise NotImplementedError("grabcode")
def mlintrpt(*args):
raise NotImplementedError("mlintrpt")
def workspacefunc(*args):
raise NotImplementedError("workspacefunc")
def dbstack(*args):
raise NotImplementedError("dbstack")
def filebrowser(*args):
raise NotImplementedError("filebrowser")
def dbstatus(*args):
raise NotImplementedError("dbstatus")
def dbtype(*args):
raise NotImplementedError("dbtype")
def stripanchors(*args):
raise NotImplementedError("stripanchors")
def auditcontents(*args):
raise NotImplementedError("auditcontents")
def sharedplotfunc(*args):
raise NotImplementedError("sharedplotfunc")
def dbquit(*args):
raise NotImplementedError("dbquit")
def codetoolsswitchyard(*args):
raise NotImplementedError("codetoolsswitchyard")
def snapnow(*args):
raise NotImplementedError("snapnow")
def dofixrpt(*args):
raise NotImplementedError("dofixrpt")
def mdbfileonpath(*args):
raise NotImplementedError("mdbfileonpath")
def code2html(*args):
raise NotImplementedError("code2html")
def mlint(*args):
raise NotImplementedError("mlint")
def initdesktoputils(*args):
raise NotImplementedError("initdesktoputils")
def commonplotfunc(*args):
raise NotImplementedError("commonplotfunc")
def edit(*args):
raise NotImplementedError("edit")
def functionhintsfunc(*args):
raise NotImplementedError("functionhintsfunc")
def convertSpreadsheetDates(*args):
raise NotImplementedError("convertSpreadsheetDates")
def contentsrpt(*args):
raise NotImplementedError("contentsrpt")
def commandhistory(*args):
raise NotImplementedError("commandhistory")
def plotpickerfunc(*args):
raise NotImplementedError("plotpickerfunc")
def coveragerpt(*args):
raise NotImplementedError("coveragerpt")
def dbup(*args):
raise NotImplementedError("dbup")
def opentoline(*args):
raise NotImplementedError("opentoline")
def m2struct(*args):
raise NotImplementedError("m2struct")
def convertSpreadsheetExcelDates(*args):
raise NotImplementedError("convertSpreadsheetExcelDates")
def profviewgateway(*args):
raise NotImplementedError("profviewgateway")
def makemcode(*args):
raise NotImplementedError("makemcode")
def indentcode(*args):
raise NotImplementedError("indentcode")
def profile(*args):
raise NotImplementedError("profile")
def mdbpublish(*args):
raise NotImplementedError("mdbpublish")
def dbdown(*args):
raise NotImplementedError("dbdown")
def pathtool(*args):
raise NotImplementedError("pathtool")
def value2CustomFcn(*args):
raise NotImplementedError("value2CustomFcn")
def profsave(*args):
raise NotImplementedError("profsave")
def getcallinfo(*args):
raise NotImplementedError("getcallinfo")
def profview(*args):
raise NotImplementedError("profview")
def dbclear(*args):
raise NotImplementedError("dbclear")
def dbmex(*args):
raise NotImplementedError("dbmex")
def profreport(*args):
raise NotImplementedError("profreport")
def makecontentsfile(*args):
raise NotImplementedError("makecontentsfile")
def helprpt(*args):
raise NotImplementedError("helprpt")
def mdbstatus(*args):
raise NotImplementedError("mdbstatus")
def fixquote(*args):
raise NotImplementedError("fixquote")
| 17.38209 | 61 | 0.703074 | 465 | 5,823 | 8.795699 | 0.156989 | 0.145232 | 0.451834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001865 | 0.171389 | 5,823 | 334 | 62 | 17.434132 | 0.845803 | 0.002061 | 0 | 0 | 0 | 0 | 0.233087 | 0.017559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.33 | false | 0 | 0.015 | 0 | 0.345 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dfde0fdee75f4883db395b9578e02386434def41 | 695 | py | Python | pytglib/api/functions/get_all_passport_elements.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/functions/get_all_passport_elements.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/functions/get_all_passport_elements.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class GetAllPassportElements(Object):
"""
Returns all available Telegram Passport elements
Attributes:
ID (:obj:`str`): ``GetAllPassportElements``
Args:
password (:obj:`str`):
Password of the current user
Returns:
PassportElements
Raises:
:class:`telegram.Error`
"""
ID = "getAllPassportElements"
def __init__(self, password, extra=None, **kwargs):
self.extra = extra
self.password = password # str
@staticmethod
def read(q: dict, *args) -> "GetAllPassportElements":
password = q.get('password')
return GetAllPassportElements(password)
| 21.060606 | 57 | 0.620144 | 63 | 695 | 6.777778 | 0.587302 | 0.028103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273381 | 695 | 32 | 58 | 21.71875 | 0.845545 | 0.365468 | 0 | 0 | 0 | 0 | 0.134367 | 0.113695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.7 | 0.1 | 0 | 0.6 | 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 |
dff10d157e0dced9d5e078280e9e42fd1f96a7dc | 564 | py | Python | LeetCode/Leetcode-2019Summer/Leetcode072(DP-Edit Distance).py | Sprinter1999/Algorithm | 035449f7f220064a0f4c4024d8006df230b16c73 | [
"MIT"
] | 4 | 2020-08-07T11:43:51.000Z | 2020-12-09T13:56:34.000Z | LeetCode/Leetcode-2019Summer/Leetcode072(DP-Edit Distance).py | Sprinter1999/Algorithm | 035449f7f220064a0f4c4024d8006df230b16c73 | [
"MIT"
] | null | null | null | LeetCode/Leetcode-2019Summer/Leetcode072(DP-Edit Distance).py | Sprinter1999/Algorithm | 035449f7f220064a0f4c4024d8006df230b16c73 | [
"MIT"
] | null | null | null | class Solution:
def minDistance(self, word1: str, word2: str) -> int:
m,n=len(word1),len(word2)
dp=[[0 for _ in range(0,n+1)] for _ in range(0,m+1)]
for _ in range(0,m+1):dp[_][0]=_
for _ in range(0,n+1):dp[0][_]=_
for i in range(1,m+1):
for j in range(1,n+1):
if word1[i-1]==word2[j-1]:
dp[i][j]=dp[i-1][j-1]
else:
dp[i][j]=min(dp[i-1][j-1],dp[i-1][j],dp[i][j-1])+1
return dp[m][n] | 35.25 | 71 | 0.406028 | 98 | 564 | 2.255102 | 0.244898 | 0.190045 | 0.180995 | 0.199095 | 0.316742 | 0.262443 | 0.262443 | 0.144796 | 0 | 0 | 0 | 0.088235 | 0.397163 | 564 | 16 | 72 | 35.25 | 0.561765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 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 |
dff6d38060088f9bfd39fe6011d93a708f9b1f53 | 4,462 | py | Python | django_sqlalchemy/management/commands/alchemy_syncdb.py | anton-niki/Django-SQLAlchemy | 9bdf83ee3e528786c40a88ad75b874f026f0edf2 | [
"BSD-3-Clause"
] | null | null | null | django_sqlalchemy/management/commands/alchemy_syncdb.py | anton-niki/Django-SQLAlchemy | 9bdf83ee3e528786c40a88ad75b874f026f0edf2 | [
"BSD-3-Clause"
] | null | null | null | django_sqlalchemy/management/commands/alchemy_syncdb.py | anton-niki/Django-SQLAlchemy | 9bdf83ee3e528786c40a88ad75b874f026f0edf2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from optparse import make_option
import sys
import traceback
from django.conf import settings
from django.core.management.base import NoArgsCommand
from django.core.management.color import no_style
from django.utils.datastructures import SortedDict
from django.utils.importlib import import_module
from django_sqlalchemy.core import engines
class Command(NoArgsCommand):
option_list = NoArgsCommand.option_list + (
make_option('--noinput', action='store_false', dest='interactive', default=True,
help='Tells Django to NOT prompt the user for input of any kind.'),
make_option('--database', action='store', dest='database',
default='default', help='Nominates a database to synchronize. '
'Defaults to the "default" database.'),
)
help = "Create the database tables for all apps in INSTALLED_APPS whose tables haven't already been created."
def handle_noargs(self, **options):
verbosity = int(options.get('verbosity'))
interactive = options.get('interactive')
show_traceback = options.get('traceback')
self.style = no_style()
db = options.get('database')
engine = engines[db]
for app_path in settings.INSTALLED_APPS:
try:
app_mod = import_module(app_path + '.models')
except ImportError:
continue
base_klass = getattr(app_mod, 'Base', None)
if not base_klass:
continue
if verbosity >= 1:
print "SQLALchemy: Installing tables from %s..." % (app_path)
base_klass.metadata.create_all(engine)
## Install custom SQL for the app (but only if this
## is a model we've just created)
#if verbosity >= 1:
# print "Installing custom SQL ..."
#for app_name, model_list in manifest.items():
# for model in model_list:
# if model in created_models:
# custom_sql = custom_sql_for_model(model, self.style, connection)
# if custom_sql:
# if verbosity >= 2:
# print "Installing custom SQL for %s.%s model" % (app_name, model._meta.object_name)
# try:
# for sql in custom_sql:
# cursor.execute(sql)
# except Exception, e:
# sys.stderr.write("Failed to install custom SQL for %s.%s model: %s\n" % \
# (app_name, model._meta.object_name, e))
# if show_traceback:
# traceback.print_exc()
# transaction.rollback_unless_managed(using=db)
# else:
# transaction.commit_unless_managed(using=db)
# else:
# if verbosity >= 3:
# print "No custom SQL for %s.%s model" % (app_name, model._meta.object_name)
#if verbosity >= 1:
# print "Installing indexes ..."
## Install SQL indices for all newly created models
#for app_name, model_list in manifest.items():
# for model in model_list:
# if model in created_models:
# index_sql = connection.creation.sql_indexes_for_model(model, self.style)
# if index_sql:
# if verbosity >= 2:
# print "Installing index for %s.%s model" % (app_name, model._meta.object_name)
# try:
# for sql in index_sql:
# cursor.execute(sql)
# except Exception, e:
# sys.stderr.write("Failed to install index for %s.%s model: %s\n" % \
# (app_name, model._meta.object_name, e))
# transaction.rollback_unless_managed(using=db)
# else:
# transaction.commit_unless_managed(using=db)
## Load initial_data fixtures (unless that has been disabled)
#if load_initial_data:
# from django.core.management import call_command
# call_command('loaddata', 'initial_data', verbosity=verbosity, database=db)
| 44.178218 | 113 | 0.542582 | 475 | 4,462 | 4.938947 | 0.303158 | 0.034527 | 0.035806 | 0.021313 | 0.364024 | 0.312447 | 0.283035 | 0.283035 | 0.283035 | 0.283035 | 0 | 0.002486 | 0.368893 | 4,462 | 100 | 114 | 44.62 | 0.830611 | 0.517481 | 0 | 0.055556 | 0 | 0 | 0.180562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.305556 | null | null | 0.027778 | 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 |
5f031e20227504c91db472cba26276b291892a20 | 368 | py | Python | outer_project/crud/urls.py | tomaszpasternak94/DaftCode_Task | 252d65771c56407c56af78634f62eadf07c84d1e | [
"MIT"
] | null | null | null | outer_project/crud/urls.py | tomaszpasternak94/DaftCode_Task | 252d65771c56407c56af78634f62eadf07c84d1e | [
"MIT"
] | null | null | null | outer_project/crud/urls.py | tomaszpasternak94/DaftCode_Task | 252d65771c56407c56af78634f62eadf07c84d1e | [
"MIT"
] | null | null | null | from django.urls import path
from .api import CrudApiList
from .api import CrudCreateApi
from .api import CrudUpdateApi
from .api import CrudDeleteApi
urlpatterns = [
path('api/', CrudApiList.as_view()),
path('api/create', CrudCreateApi.as_view()),
path('api/<int:pk>', CrudUpdateApi.as_view()),
path('api/<int:pk>/delete', CrudDeleteApi.as_view()),
] | 30.666667 | 57 | 0.720109 | 48 | 368 | 5.4375 | 0.354167 | 0.10728 | 0.199234 | 0.149425 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 368 | 12 | 58 | 30.666667 | 0.815625 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 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 |
5f262520151688e9baa3189c2227648a5c0066a3 | 2,543 | py | Python | tests/examples/minlplib/meanvar.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/meanvar.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/meanvar.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # NLP written by GAMS Convert at 04/21/18 13:52:31
#
# Equation counts
# Total E G L N X C B
# 3 3 0 0 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc si
# Total cont binary integer sos1 sos2 scont sint
# 9 9 0 0 0 0 0 0
# FX 1 1 0 0 0 0 0 0
#
# Nonzero counts
# Total const NL DLL
# 23 16 7 0
#
# Reformulation has removed 1 variable and 1 equation
from pyomo.environ import *
model = m = ConcreteModel()
m.x2 = Var(within=Reals,bounds=(0.115,0.115),initialize=0.115)
m.x3 = Var(within=Reals,bounds=(0,1),initialize=0)
m.x4 = Var(within=Reals,bounds=(0,1),initialize=0)
m.x5 = Var(within=Reals,bounds=(0,1),initialize=0)
m.x6 = Var(within=Reals,bounds=(0,1),initialize=0)
m.x7 = Var(within=Reals,bounds=(0,1),initialize=0)
m.x8 = Var(within=Reals,bounds=(0,1),initialize=0)
m.x9 = Var(within=Reals,bounds=(0,1),initialize=0)
m.obj = Objective(expr=0.5*(42.18*m.x3*m.x3 + 20.18*m.x3*m.x4 + 10.88*m.x3*m.x5 + 5.3*m.x3*m.x6 + 12.32*m.x3*m.x7 +
23.84*m.x3*m.x8 + 17.41*m.x3*m.x9 + 20.18*m.x4*m.x3 + 70.89*m.x4*m.x4 + 21.58*m.x4*m.x5 + 15.41*
m.x4*m.x6 + 23.24*m.x4*m.x7 + 23.8*m.x4*m.x8 + 12.62*m.x4*m.x9 + 10.88*m.x5*m.x3 + 21.58*m.x5*
m.x4 + 25.51*m.x5*m.x5 + 9.6*m.x5*m.x6 + 22.63*m.x5*m.x7 + 13.22*m.x5*m.x8 + 4.7*m.x5*m.x9 + 5.3*
m.x6*m.x3 + 15.41*m.x6*m.x4 + 9.6*m.x6*m.x5 + 22.33*m.x6*m.x6 + 10.32*m.x6*m.x7 + 10.46*m.x6*m.x8
+ m.x6*m.x9 + 12.32*m.x7*m.x3 + 23.24*m.x7*m.x4 + 22.63*m.x7*m.x5 + 10.32*m.x7*m.x6 + 30.01*m.x7
*m.x7 + 16.36*m.x7*m.x8 + 7.2*m.x7*m.x9 + 23.84*m.x8*m.x3 + 23.8*m.x8*m.x4 + 13.22*m.x8*m.x5 +
10.46*m.x8*m.x6 + 16.36*m.x8*m.x7 + 42.23*m.x8*m.x8 + 9.9*m.x8*m.x9 + 17.41*m.x9*m.x3 + 12.62*
m.x9*m.x4 + 4.7*m.x9*m.x5 + m.x9*m.x6 + 7.2*m.x9*m.x7 + 9.9*m.x9*m.x8 + 16.42*m.x9*m.x9)
, sense=minimize)
m.c2 = Constraint(expr= m.x2 - 0.1287*m.x3 - 0.1096*m.x4 - 0.0501*m.x5 - 0.1524*m.x6 - 0.0763*m.x7 - 0.1854*m.x8
- 0.062*m.x9 == 0)
m.c3 = Constraint(expr= m.x3 + m.x4 + m.x5 + m.x6 + m.x7 + m.x8 + m.x9 == 1)
| 51.897959 | 120 | 0.463232 | 524 | 2,543 | 2.248092 | 0.221374 | 0.043294 | 0.03056 | 0.03056 | 0.235144 | 0.217317 | 0.202037 | 0.202037 | 0.202037 | 0 | 0 | 0.245783 | 0.347228 | 2,543 | 48 | 121 | 52.979167 | 0.463855 | 0.266614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 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 |
5f35ecfea095a479561057013aa3a4de082e9079 | 1,990 | py | Python | django_gmail/views.py | josephmisiti/django_gmail | b3e5fb878b70146599db0b5e20e98ab7cfe37bf7 | [
"BSD-3-Clause"
] | 1 | 2020-12-27T18:40:57.000Z | 2020-12-27T18:40:57.000Z | django_gmail/views.py | josephmisiti/django_gmail | b3e5fb878b70146599db0b5e20e98ab7cfe37bf7 | [
"BSD-3-Clause"
] | null | null | null | django_gmail/views.py | josephmisiti/django_gmail | b3e5fb878b70146599db0b5e20e98ab7cfe37bf7 | [
"BSD-3-Clause"
] | null | null | null | import httplib2
import logging
import pytz
import random
import re
import time
import urllib
import base64
from datetime import datetime, date, timedelta
from email.mime.text import MIMEText
from apiclient.discovery import build
from apiclient.errors import HttpError
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import reverse
from django.http import HttpResponseBadRequest, HttpResponseRedirect, Http404
from django.shortcuts import get_object_or_404
from django.contrib.auth.decorators import login_required
from django.utils.timezone import utc, make_aware, get_current_timezone
from oauth2client import xsrfutil
from oauth2client.client import OAuth2WebServerFlow, FlowExchangeError
from oauth2client.django_orm import Storage
FLOW = OAuth2WebServerFlow(client_id=settings.GA_CLIENT_ID,
client_secret=settings.GA_CLIENT_SECRET,
scope=settings.GA_SCOPE,
redirect_uri=settings.GOOGLE_REDIRECT_URI)
@login_required
def gmail_oauth_callback(request):
""" Google API oauth2 callback route
https://developers.google.com/api-client-library/python/guide/django
"""
internal_contact = None
code = request.REQUEST.get('code')
state = request.REQUEST.get('state')
user = request.user
#if not xsrfutil.validate_token(settings.SECRET_KEY, state, user):
#print "token not valid"
#return HttpResponseBadRequest()
# if user denies access redirect to activate
if request.GET.get('error') != 'access_denied':
try:
credentials = FLOW.step2_exchange(request.REQUEST)
except FlowExchangeError, exc:
raise Http404
http = httplib2.Http()
http = credentials.authorize(http)
service = build('gmail', 'v1', http=http)
profile = service.users().getProfile(userId="me").execute()
creds,_ = GoogleCredentials.objects.get_or_create(user=request.user)
creds.credentials = credentials
creds.save()
return redirect(settings.GMAIL_POST_AUTH_REDIRECT)
| 31.587302 | 77 | 0.791457 | 250 | 1,990 | 6.172 | 0.484 | 0.045366 | 0.018146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012118 | 0.129146 | 1,990 | 62 | 78 | 32.096774 | 0.878246 | 0.081407 | 0 | 0 | 0 | 0 | 0.021028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.488889 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a04ef242c13cf216bd2d66cf028e24181732d2ac | 4,342 | py | Python | minimaxAgents.py | boomland/Pacman-PathPlanning | aed86aeb8520b3f2f5aa7f360a836f7d16e5f9c9 | [
"MIT"
] | null | null | null | minimaxAgents.py | boomland/Pacman-PathPlanning | aed86aeb8520b3f2f5aa7f360a836f7d16e5f9c9 | [
"MIT"
] | null | null | null | minimaxAgents.py | boomland/Pacman-PathPlanning | aed86aeb8520b3f2f5aa7f360a836f7d16e5f9c9 | [
"MIT"
] | null | null | null | from environment.util import manhattanDistance
from environment.game import Directions, Agent
import environment.util as util
import random
import eval_functions
from baselineAgents import ReflexAgent
import numpy as np
from types import SimpleNamespace
class MultiAgentSearchAgent(ReflexAgent):
def __init__(self, evalFn='eval_v3', depth='4'):
super().__init__(evalFn=evalFn)
self.depth = int(depth)
def minimax_func(state, cur_depth, cur_agent, context):
if (cur_depth == context.max_depth * context.n_agents) or state.isWin() or state.isLose():
return context.evaluationFunction(state), None
if cur_agent == 0:
# Pacman turn. He is maximizing agent
best_val, best_action = -np.inf, None
for action in state.getLegalActions(cur_agent):
if action != 'Stop':
new_val, _ = minimax_func(
state.generateSuccessor(cur_agent, action),
cur_depth + 1,
(cur_agent + 1) % context.n_agents,
context
)
if new_val > best_val:
best_val = new_val
best_action = action
else:
# Ghosts make their turns. They are minimizing agents.
best_val, best_action = np.inf, None
for action in state.getLegalActions(cur_agent):
if action != 'Stop':
new_val, _ = minimax_func(
state.generateSuccessor(cur_agent, action),
cur_depth + 1,
(cur_agent + 1) % context.n_agents,
context
)
if new_val < best_val:
best_val = new_val
best_action = action
return best_val, best_action
def minimax_alphabeta(state, cur_depth, cur_agent, alpha, beta, context):
if (cur_depth == context.max_depth * context.n_agents) or state.isWin() or state.isLose():
return context.evaluationFunction(state), None
if cur_agent == 0:
# Pacman turn. He is maximizing agent
best_val, best_action = -np.inf, None
for action in state.getLegalActions(cur_agent):
if action != 'Stop':
new_val, _ = minimax_alphabeta(
state.generateSuccessor(cur_agent, action),
cur_depth + 1,
(cur_agent + 1) % context.n_agents,
alpha, beta, context
)
if new_val > best_val:
best_val = new_val
best_action = action
alpha = max(alpha, new_val)
if beta < alpha:
break
else:
# Ghosts make their turns. They are minimizing agents.
best_val, best_action = np.inf, None
for action in state.getLegalActions(cur_agent):
if action != 'Stop':
new_val, _ = minimax_alphabeta(
state.generateSuccessor(cur_agent, action),
cur_depth + 1,
(cur_agent + 1) % context.n_agents,
alpha, beta, context
)
if new_val < best_val:
best_val = new_val
best_action = action
beta = min(beta, new_val)
if beta < alpha:
break
return best_val, best_action
import time
class TimingAgent(MultiAgentSearchAgent):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.timings = []
def stats(self):
print('Mean step time: {:.2f} ms'.format(np.mean(self.timings) * 1000))
print('Std time: {:.2f} ms'.format(np.std(self.timings) * 1000))
print('Max step time: {:.2f} ms'.format(np.max(self.timings) * 1000))
class MinimaxAgent(TimingAgent):
def getAction(self, gameState):
s = time.time()
res = minimax_func(gameState, 0, 0,
SimpleNamespace(n_agents=gameState.getNumAgents(), max_depth=self.depth, evaluationFunction=self.evaluationFunction))[1]
t = time.time()
self.timings.append(t - s)
new_state = gameState.generateSuccessor(0, res)
if new_state.isWin() or new_state.isLose():
self.stats()
return res
class AlphaBetaAgent(TimingAgent):
def getAction(self, gameState):
s = time.time()
res = minimax_alphabeta(gameState, 0,0, -np.inf, np.inf,
SimpleNamespace(n_agents=gameState.getNumAgents(), max_depth=self.depth, evaluationFunction=self.evaluationFunction))[1]
t = time.time()
self.timings.append(t - s)
new_state = gameState.generateSuccessor(0, res)
if new_state.isWin() or new_state.isLose():
self.stats()
return res
| 32.162963 | 130 | 0.639567 | 542 | 4,342 | 4.920664 | 0.178967 | 0.047244 | 0.041245 | 0.038245 | 0.752156 | 0.713161 | 0.681665 | 0.681665 | 0.681665 | 0.681665 | 0 | 0.010863 | 0.257946 | 4,342 | 134 | 131 | 32.402985 | 0.816884 | 0.040765 | 0 | 0.697248 | 0 | 0 | 0.022115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06422 | false | 0 | 0.082569 | 0 | 0.238532 | 0.027523 | 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 |
a059c4aa00c30e4e7b4eea24fd120f3de8446b81 | 2,844 | py | Python | tests/matchers_test.py | Avvir/pyne | 864885a8fb632b72c00af164f150b1daa38a346f | [
"MIT"
] | 4 | 2018-08-10T20:05:10.000Z | 2019-07-24T15:29:32.000Z | tests/matchers_test.py | Avvir/pyne | 864885a8fb632b72c00af164f150b1daa38a346f | [
"MIT"
] | 6 | 2018-09-25T20:15:51.000Z | 2021-12-22T17:09:52.000Z | tests/matchers_test.py | Avvir/pyne | 864885a8fb632b72c00af164f150b1daa38a346f | [
"MIT"
] | null | null | null | from pynetest.expectations import expect
from pynetest.matchers import anything, at_least, contains, contains_text, has_length, instance_of, match, between, about, \
at_most
def test__anything__satisfies_to_be():
expect(anything()).to_be(1234)
expect(1234).to_be(anything())
def test__match__can_match_regex():
expect("hello (world)").to_be(match("h.*\\(world\\)"))
def test__match__when_string_is_different__does_not_match():
expect("hello world").not_to_be(match("happy.*world"))
def test__contains_text__can_match_text():
expect("hello world").to_be(contains_text("world"))
def test__between__can_pass():
expect(1).to_be(between(0, 4))
def test__contains_text__when_string_is_different__does_not_match():
expect("hello world").not_to_be(contains_text(".*"))
def test__contains_text__when_subject_is_not_iterable__does_not_match():
expect(None).not_to_be(contains_text("world"))
def test__contains__can_match_array():
expect(["some-other-item", "some-item"]).to_be(contains("some-item"))
def test__contains__when_subject_is_not_iterable__does_not_match():
expect(None).not_to_be(contains("world"))
def test__instance_of__can_match_type():
expect("hello").to_be(instance_of(str))
def test__instance_of__when_subject_is_different_type__does_not_match():
expect("hello").not_to_be(instance_of(int))
def test__at_least__matches_a_larger_number():
expect(2).to_be(at_least(1))
def test__at_least__when_numbers_are_equal__matches():
expect(2).to_be(at_least(2))
def test__at_least__when_number_is_smaller__does_not_match():
expect(1).not_to_be(at_least(2))
def test__at_most__matches_a_smaller_number():
expect(1).to_be(at_most(2))
def test__at_most__when_numbers_are_equal__matches():
expect(2).to_be(at_most(2))
def test__at_most__when_number_is_larger__does_not_match():
expect(2).not_to_be(at_most(1))
def test__has_length__matches_anything_with_length():
expect(str("string")).to_be(has_length(6))
expect(list([1, 2, 3])).to_be(has_length(3))
expect((1, 2)).to_be(has_length(2))
expect(range(10)).to_be(has_length(10))
expect(bytes(8)).to_be(has_length(8))
expect(bytearray(7)).to_be(has_length(7))
expect(dict(key="value")).to_be(has_length(1))
expect(set()).to_be(has_length(0))
expect(frozenset(range(9))).to_be(has_length(9))
def test__has_length__when_length_is_different__does_not_match():
expect("string").not_to_be(has_length(2))
def test__about__matches_numbers_within_a_given_tolerance():
expect(3.000001).to_be(about(3, 0.001))
def test__about__when_no_tolerance_is_given__matches_numbers_within_one_thousandth_of_the_number():
expect(3.0001).to_be(about(3))
def test__about__when_number_is_outside_tolerance__does_not_match():
expect(3.5).not_to_be(about(3))
| 28.158416 | 124 | 0.768284 | 470 | 2,844 | 4.048936 | 0.187234 | 0.067262 | 0.036784 | 0.068313 | 0.34104 | 0.254861 | 0.230163 | 0.207042 | 0.188124 | 0.188124 | 0 | 0.025302 | 0.096695 | 2,844 | 100 | 125 | 28.44 | 0.715453 | 0 | 0 | 0 | 0 | 0 | 0.052391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.392857 | true | 0.017857 | 0.035714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a061e3d31662ff013514875db18d1608c4334b6b | 933 | py | Python | backend/atlas/management/commands/load_mocks.py | getsentry/atlas | 9bf4a236b99a24a7a17700591a0ff94feecf7ce7 | [
"Apache-2.0"
] | 18 | 2019-09-24T23:49:41.000Z | 2020-11-14T17:30:27.000Z | backend/atlas/management/commands/load_mocks.py | getsentry/atlas | 9bf4a236b99a24a7a17700591a0ff94feecf7ce7 | [
"Apache-2.0"
] | 53 | 2019-09-24T18:50:25.000Z | 2022-02-27T11:44:55.000Z | backend/atlas/management/commands/load_mocks.py | getsentry/atlas | 9bf4a236b99a24a7a17700591a0ff94feecf7ce7 | [
"Apache-2.0"
] | 2 | 2020-02-03T08:22:36.000Z | 2021-02-28T12:55:48.000Z | from django.core.management.base import BaseCommand
from atlas import factories
class Command(BaseCommand):
help = "Load mock data"
def handle(self, *args, **options):
raise NotImplementedError("TODO")
ceo = factories.ProfileFactory.create(ceo=True)
print(f"Created {ceo}")
cmo = factories.ProfileFactory.create(cmo=True, reports_to=ceo.user)
print(f"Created {cmo}")
cto = factories.ProfileFactory.create(cto=True, reports_to=ceo.user)
print(f"Created {cto}")
cpo = factories.ProfileFactory.create(cpo=True, reports_to=ceo.user)
print(f"Created {cpo}")
cfo = factories.ProfileFactory.create(cfo=True, reports_to=ceo.user)
print(f"Created {cfo}")
cro = factories.ProfileFactory.create(cfo=True, reports_to=ceo.user)
print(f"Created {cro}")
factories.ProfileFactory.create(reports_to=cmo.user, marketing=True)
| 37.32 | 76 | 0.679528 | 115 | 933 | 5.46087 | 0.33913 | 0.256369 | 0.323248 | 0.127389 | 0.36465 | 0.36465 | 0.36465 | 0.36465 | 0.207006 | 0.207006 | 0 | 0 | 0.196141 | 933 | 24 | 77 | 38.875 | 0.837333 | 0 | 0 | 0 | 0 | 0 | 0.102894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.263158 | 0.315789 | 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 |
a06f5b516ceda65709f7b0c7c84fe33465a87243 | 5,410 | py | Python | corgie/helpers.py | seung-lab/corgie_new | 46c803f4d6cf58bceff26f2271f37af73213ec53 | [
"Apache-2.0"
] | 2 | 2021-03-25T23:41:21.000Z | 2021-03-31T22:50:09.000Z | corgie/helpers.py | seung-lab/corgie | 1f98a012024812a4fd99aa2e5d9789b3117ff77b | [
"Apache-2.0"
] | 45 | 2021-01-08T15:49:28.000Z | 2022-03-21T20:01:01.000Z | corgie/helpers.py | seung-lab/corgie_new | 46c803f4d6cf58bceff26f2271f37af73213ec53 | [
"Apache-2.0"
] | 1 | 2022-03-01T21:20:39.000Z | 2022-03-01T21:20:39.000Z | from dataclasses import astuple, dataclass
import numpy as np
import torch
from copy import deepcopy
class Binarizer:
def __init__(self, binarization):
self.bin = binarization
def __call__(self, tens):
if self.bin is None:
return tens
elif self.bin[0] == "neq":
return tens != self.bin[1]
elif self.bin[0] == "eq":
return tens == self.bin[1]
elif self.bin[0] == "gt":
return tens > self.bin[1]
elif self.bin[0] == "lt":
return tens < self.bin[1]
class PartialSpecification:
def __init__(self, f, **kwargs):
self.f = f
self.constr_kwargs = kwargs
for k, v in kwargs.items():
setattr(self, k, v)
def __call__(self, **kwargs):
return self.f(**self.constr_kwargs, **kwargs)
def __getitem__(self, k):
return self.constr_kwargs[k]
@dataclass
class Translation:
x: float
y: float
def __iter__(self):
return iter(astuple(self))
def __add__(self, T):
return Translation(self.x + T.x, self.y + T.y)
def __sub__(self, T):
return Translation(self.x - T.x, self.y - T.y)
def __mul__(self, scalar):
return Translation(self.x * scalar, self.y * scalar)
def __rmul__(self, scalar):
return self.__mul__(scalar)
def __floordiv__(self, scalar):
return Translation(self.x // scalar, self.y // scalar)
def __truediv__(self, scalar):
return Translation(self.x / scalar, self.y / scalar)
def to_tensor(self, **kwargs):
return torch.tensor([[[[self.x]], [[self.y]]]], **kwargs)
def round(self, ndigits=None):
return Translation(round(self.x, ndigits), round(self.y, ndigits))
def copy(self):
return deepcopy(self)
def round_to_mip(self, src_mip, tgt_mip):
if tgt_mip is None:
return self.copy()
elif tgt_mip <= src_mip:
return Translation(self.x, self.y) # Return copy
else:
snap_factor = 2 ** (tgt_mip - src_mip)
return (self // snap_factor) * snap_factor
def percentile_trans_adjuster(field, h=25, l=75, unaligned_img=None):
if field is None:
result = Translation(0, 0)
else:
nonzero_field_mask = (field[:, 0] != 0) & (field[:, 1] != 0)
if unaligned_img is not None:
no_tissue = field.field().from_pixels()(unaligned_img) == 0
nonzero_field_mask[..., no_tissue.squeeze()] = False
nonzero_field = field[..., nonzero_field_mask.squeeze()].squeeze()
if nonzero_field.sum() == 0:
result = Translation(0, 0)
else:
low_l = percentile(nonzero_field, l)
high_l = percentile(nonzero_field, h)
mid = 0.5 * (low_l + high_l)
result = Translation(x=int(mid[0]), y=int(mid[1]))
return result
def percentile(field, q):
# https://gist.github.com/spezold/42a451682422beb42bc43ad0c0967a30
"""
Return the ``q``-th percentile of the flattened input tensor's data.
CAUTION:
* Needs PyTorch >= 1.1.0, as ``torch.kthvalue()`` is used.
* Values are not interpolated, which corresponds to
``numpy.percentile(..., interpolation="nearest")``.
:param field: Input tensor.
:param q: Percentile to compute, which must be between 0 and 100 inclusive.
:return: Resulting value (scalar).
"""
# Note that ``kthvalue()`` works one-based, i.e. the first sorted value
# indeed corresponds to k=1, not k=0! Use float(q) instead of q directly,
# so that ``round()`` returns an integer, even if q is a np.float32.
k = 1 + round(0.01 * float(q) * (field.shape[1] - 1))
result = field.kthvalue(k, dim=1).values
return result
def crop(**kwargs):
raise NotImplementedError
def expand_to_dims(tens, dims):
tens_dims = len(tens.shape)
assert (tens_dims) <= dims
tens = tens[(None,) * (dims - tens_dims)]
return tens
def cast_tensor_type(tens, dtype):
"""
tens: pytorch tens
dtype: string, eg 'float', 'int', 'byte'
"""
if dtype is not None:
assert hasattr(tens, dtype)
return getattr(tens, dtype)()
else:
return tens
def read_mask_list(mask_list, bcube, mip):
result = None
for m in mask_list:
this_data = m.read(bcube=bcube, mip=mip).to(torch.bool)
if result is None:
result = this_data
else:
result = result | this_data
return result
def crop(data, c):
if c == 0:
return data
else:
if data.shape[-1] == data.shape[-2]:
return data[..., c:-c, c:-c]
elif data.shape[-2] == data.shape[-3] and data.shape[-1] == 2: # field
return data[..., c:-c, c:-c, :]
def coarsen_mask(mask, n=1, flip=False):
kernel = np.array([[1, 1, 1], [1, 1, 1], [1, 1, 1]])
kernel_var = (
torch.FloatTensor(kernel).unsqueeze(0).unsqueeze(0).to(mask.device).float()
)
k = torch.nn.Parameter(data=kernel_var, requires_grad=False)
for _ in range(n):
if flip:
mask = mask.logical_not()
mask = torch.nn.functional.conv2d(mask.float(), kernel_var, padding=1) > 1
if flip:
mask = mask.logical_not()
mask = mask
return mask
def zeros(*args, **kwargs):
return torch.zeros(*args, **kwargs)
| 28.177083 | 83 | 0.589279 | 734 | 5,410 | 4.190736 | 0.262943 | 0.007152 | 0.006827 | 0.042913 | 0.18303 | 0.135566 | 0.126463 | 0.108257 | 0.105332 | 0.076073 | 0 | 0.022727 | 0.276155 | 5,410 | 191 | 84 | 28.324607 | 0.762768 | 0.136229 | 0 | 0.141732 | 0 | 0 | 0.001954 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 1 | 0.19685 | false | 0 | 0.031496 | 0.102362 | 0.511811 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.