content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
#
# This one does a little more then required and handles all types of brackets
#
def balancedParens(s):
stack, opens, closes = [], ['(', '[', '{'], [')', ']', '}']
for c in s:
if c in opens:
stack.append(c)
elif c in closes:
try:
if opens.index(stack.pop()) != closes.index(c):
return False
except (ValueError, IndexError):
return False
return not stack | def balanced_parens(s):
(stack, opens, closes) = ([], ['(', '[', '{'], [')', ']', '}'])
for c in s:
if c in opens:
stack.append(c)
elif c in closes:
try:
if opens.index(stack.pop()) != closes.index(c):
return False
except (ValueError, IndexError):
return False
return not stack |
"""Helper methods for Hijri conversion."""
def jdn_to_ordinal(jdn: int) -> int:
"""Convert Julian day number (JDN) to date ordinal number.
:param jdn: Julian day number (JDN).
:type jdn: int
"""
return jdn - 1721425
def ordinal_to_jdn(n: int) -> int:
"""Convert date ordinal number to Julian day number (JDN).
:param n: Date ordinal number.
:type n: int
"""
return n + 1721425
def jdn_to_rjd(jdn: int) -> int:
"""Return Reduced Julian Day (RJD) number from Julian day number (JDN).
:param jdn: Julian day number (JDN).
:type jdn: int
"""
return jdn - 2400000
def rjd_to_jdn(rjd: int) -> int:
"""Return Julian day number (JDN) from Reduced Julian Day (RJD) number.
:param rjd: Reduced Julian Day (RJD) number.
:type rjd: int
"""
return rjd + 2400000
| """Helper methods for Hijri conversion."""
def jdn_to_ordinal(jdn: int) -> int:
"""Convert Julian day number (JDN) to date ordinal number.
:param jdn: Julian day number (JDN).
:type jdn: int
"""
return jdn - 1721425
def ordinal_to_jdn(n: int) -> int:
"""Convert date ordinal number to Julian day number (JDN).
:param n: Date ordinal number.
:type n: int
"""
return n + 1721425
def jdn_to_rjd(jdn: int) -> int:
"""Return Reduced Julian Day (RJD) number from Julian day number (JDN).
:param jdn: Julian day number (JDN).
:type jdn: int
"""
return jdn - 2400000
def rjd_to_jdn(rjd: int) -> int:
"""Return Julian day number (JDN) from Reduced Julian Day (RJD) number.
:param rjd: Reduced Julian Day (RJD) number.
:type rjd: int
"""
return rjd + 2400000 |
def f():
print('hello')
print('calling f')
f()
| def f():
print('hello')
print('calling f')
f() |
n, y = map(int, input().split())
y /= 1000
res10, res5, res1 = -1, -1, -1
for a in range(n + 1):
if res1 != -1:
break
for b in range(n - a + 1):
c = n - a - b
total = 10000 * a + 5000 * b + 1000 * c
if total == y:
res10, res5, res1 = a, b, c
if res1 != -1:
break
print(str(res10) + " " + str(res5) + " " + str(res1))
| (n, y) = map(int, input().split())
y /= 1000
(res10, res5, res1) = (-1, -1, -1)
for a in range(n + 1):
if res1 != -1:
break
for b in range(n - a + 1):
c = n - a - b
total = 10000 * a + 5000 * b + 1000 * c
if total == y:
(res10, res5, res1) = (a, b, c)
if res1 != -1:
break
print(str(res10) + ' ' + str(res5) + ' ' + str(res1)) |
class Finder:
_finders = {}
@classmethod
def register(cls, finder_class):
cls._finders[finder_class.name] = finder_class
@classmethod
def factory(cls, finder_name, deployment, **args):
for name, finder in cls._finders.items():
if name == finder_name:
return finder(deployment=deployment, **args)
raise RuntimeError(f"Unknown finder: {finder_name}")
| class Finder:
_finders = {}
@classmethod
def register(cls, finder_class):
cls._finders[finder_class.name] = finder_class
@classmethod
def factory(cls, finder_name, deployment, **args):
for (name, finder) in cls._finders.items():
if name == finder_name:
return finder(deployment=deployment, **args)
raise runtime_error(f'Unknown finder: {finder_name}') |
message = 'Hello World!'
message2 = 'Hello World! \n'
number = 32/35
display = message + repr(number)
display2 = message + str(number)
display3 = message2 + repr(number)
print(display)
print(display2)
print(display3)
print(repr(display3))
| message = 'Hello World!'
message2 = 'Hello World! \n'
number = 32 / 35
display = message + repr(number)
display2 = message + str(number)
display3 = message2 + repr(number)
print(display)
print(display2)
print(display3)
print(repr(display3)) |
class Agent(object):
def __init__(self):
pass
def act(self, obs):
pass
def train(self, replay_buffer, logger, step):
pass
| class Agent(object):
def __init__(self):
pass
def act(self, obs):
pass
def train(self, replay_buffer, logger, step):
pass |
print('Welcome to tip calculator')
bill = float(input('Enter Your total bill : $'))
per_tip = int(input("Enter percentage of tip would you like to give (10,12 or 15): "))
num = int(input("No.of friends that would split the bill : "))
final_bill = round((bill + bill*0.01*per_tip)/num,2)
print(f"Each person should pay : ${final_bill}") | print('Welcome to tip calculator')
bill = float(input('Enter Your total bill : $'))
per_tip = int(input('Enter percentage of tip would you like to give (10,12 or 15): '))
num = int(input('No.of friends that would split the bill : '))
final_bill = round((bill + bill * 0.01 * per_tip) / num, 2)
print(f'Each person should pay : ${final_bill}') |
class RequiredFieldsError(Exception):
def __init__(self, message, is_get=True, abnormal=False, title=None,
error_fields=None):
super(RequiredFieldsError, self).__init__()
self.message = message
self.is_get = is_get
self.abnormal = abnormal
self.title = title
self.error_fields = error_fields
| class Requiredfieldserror(Exception):
def __init__(self, message, is_get=True, abnormal=False, title=None, error_fields=None):
super(RequiredFieldsError, self).__init__()
self.message = message
self.is_get = is_get
self.abnormal = abnormal
self.title = title
self.error_fields = error_fields |
_perms_self_read_only = [
{
"principal": "SELF",
"action": "READ_ONLY"
}
]
_perms_self_read_write = [
{
"principal": "SELF",
"action": "READ_WRITE"
}
]
_perms_self_hide = [
{
"principal": "SELF",
"action": "HIDE"
}
]
# a dump of an okta user schema with some example
# properties (int, bool)
okta_user_schema = {
"id": "https://paracelsus.okta.com/meta/schemas/user/default",
"$schema": "http://json-schema.org/draft-04/schema#",
"name": "user",
"title": "User",
"description": "Okta user profile template with default permission settings",
"lastUpdated": "2019-02-04T14:38:16.000Z",
"created": "2018-07-23T08:46:45.000Z",
"definitions": {
"custom": {
"id": "#custom",
"type": "object",
"properties": {
"abool": {
"title": "A bool",
"description": "A boolean variable",
"type": "boolean",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"anint": {
"title": "An int",
"description": "An integer value",
"type": "integer",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
},
},
"base": {
"id": "#base",
"type": "object",
"properties": {
"login": {
"title": "Username",
"type": "string",
"required": True,
"mutability": "READ_WRITE",
"scope": "NONE",
"minLength": 5,
"maxLength": 100,
"pattern": ".+",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"firstName": {
"title": "First name",
"type": "string",
"required": True,
"mutability": "READ_WRITE",
"scope": "NONE",
"minLength": 1,
"maxLength": 50,
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"lastName": {
"title": "Last name",
"type": "string",
"required": True,
"mutability": "READ_WRITE",
"scope": "NONE",
"minLength": 1,
"maxLength": 50,
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"middleName": {
"title": "Middle name",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"honorificPrefix": {
"title": "Honorific prefix",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"honorificSuffix": {
"title": "Honorific suffix",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"email": {
"title": "Primary email",
"type": "string",
"required": True,
"format": "email",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"title": {
"title": "Title",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"displayName": {
"title": "Display name",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"nickName": {
"title": "Nickname",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"profileUrl": {
"title": "Profile Url",
"type": "string",
"format": "uri",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"secondEmail": {
"title": "Secondary email",
"type": "string",
"format": "email",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"mobilePhone": {
"title": "Mobile phone",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"maxLength": 100,
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"primaryPhone": {
"title": "Primary phone",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"maxLength": 100,
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"streetAddress": {
"title": "Street address",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_hide,
"master": {"type": "PROFILE_MASTER"}
},
"city": {
"title": "City",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_hide,
"master": {"type": "PROFILE_MASTER"}
},
"state": {
"title": "State",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_hide,
"master": {"type": "PROFILE_MASTER"}
},
"zipCode": {
"title": "Zip code",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_hide,
"master": {"type": "PROFILE_MASTER"}
},
"countryCode": {
"title": "Country code",
"type": "string",
"format": "country-code",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_hide,
"master": {"type": "PROFILE_MASTER"}
},
"postalAddress": {
"title": "Postal Address",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_hide,
"master": {"type": "PROFILE_MASTER"}
},
"preferredLanguage": {
"title": "Preferred language",
"type": "string",
"format": "language-code",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"locale": {
"title": "Locale",
"type": "string",
"format": "locale",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"timezone": {
"title": "Time zone",
"type": "string",
"format": "timezone",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"userType": {
"title": "User type",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"employeeNumber": {
"title": "Employee number",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"costCenter": {
"title": "Cost center",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"organization": {
"title": "Organization",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"division": {
"title": "Division",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"department": {
"title": "Department",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_write,
"master": {"type": "PROFILE_MASTER"}
},
"managerId": {
"title": "ManagerId",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
},
"manager": {
"title": "Manager",
"type": "string",
"mutability": "READ_WRITE",
"scope": "NONE",
"permissions": _perms_self_read_only,
"master": {"type": "PROFILE_MASTER"}
}
},
"required": [
"login",
"firstName",
"lastName",
"email"
]
}
},
"type": "object",
"properties": {
"profile": {
"allOf": [
{
"$ref": "#/definitions/custom"
},
{
"$ref": "#/definitions/base"
}
]
}
}
}
okta_groups_list = [
{
"id": "group1",
"created": "2018-09-13T12:51:16.000Z",
"lastUpdated": "2018-10-17T12:00:38.000Z",
"lastMembershipUpdated": "2019-01-16T08:48:12.000Z",
"objectClass": [
"okta:user_group"
],
"type": "OKTA_GROUP",
"profile": {
"name": "Group One",
"description": ""
},
"_links": {
"logo": [
{
"name": "medium",
"href": "https://some.logo",
"type": "image/png"
},
{
"name": "large",
"href": "https://some_large.logo",
"type": "image/png"
}
],
"users": {"href": "http://okta/api/v1/groups/group1/users"},
"apps": {"href": "http://okta/api/v1/groups/group1/apps"},
}
},
{
"id": "group2",
"created": "2018-09-13T12:51:16.000Z",
"lastUpdated": "2018-10-17T12:00:38.000Z",
"lastMembershipUpdated": "2019-01-16T08:48:12.000Z",
"objectClass": [
"okta:user_group"
],
"type": "OKTA_GROUP",
"profile": {
"name": "Group Two",
"description": ""
},
"_links": {
"logo": [
{
"name": "medium",
"href": "https://some.logo",
"type": "image/png"
},
{
"name": "large",
"href": "https://some_large.logo",
"type": "image/png"
}
],
"users": {"href": "http://okta/api/v1/groups/group2/users"},
"apps": {"href": "http://okta/api/v1/groups/group2/apps"},
}
},
{
"id": "group3",
"created": "2018-09-13T12:51:16.000Z",
"lastUpdated": "2018-10-17T12:00:38.000Z",
"lastMembershipUpdated": "2019-01-16T08:48:12.000Z",
"objectClass": [
"okta:user_group"
],
"type": "OKTA_GROUP",
"profile": {
"name": "Group 3",
"description": ""
},
"_links": {
"logo": [
{
"name": "medium",
"href": "https://some.logo",
"type": "image/png"
},
{
"name": "large",
"href": "https://some_large.logo",
"type": "image/png"
}
],
"users": {"href": "http://okta/api/v1/groups/group3/users"},
"apps": {"href": "http://okta/api/v1/groups/group3/apps"},
}
},
]
| _perms_self_read_only = [{'principal': 'SELF', 'action': 'READ_ONLY'}]
_perms_self_read_write = [{'principal': 'SELF', 'action': 'READ_WRITE'}]
_perms_self_hide = [{'principal': 'SELF', 'action': 'HIDE'}]
okta_user_schema = {'id': 'https://paracelsus.okta.com/meta/schemas/user/default', '$schema': 'http://json-schema.org/draft-04/schema#', 'name': 'user', 'title': 'User', 'description': 'Okta user profile template with default permission settings', 'lastUpdated': '2019-02-04T14:38:16.000Z', 'created': '2018-07-23T08:46:45.000Z', 'definitions': {'custom': {'id': '#custom', 'type': 'object', 'properties': {'abool': {'title': 'A bool', 'description': 'A boolean variable', 'type': 'boolean', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'anint': {'title': 'An int', 'description': 'An integer value', 'type': 'integer', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}}}, 'base': {'id': '#base', 'type': 'object', 'properties': {'login': {'title': 'Username', 'type': 'string', 'required': True, 'mutability': 'READ_WRITE', 'scope': 'NONE', 'minLength': 5, 'maxLength': 100, 'pattern': '.+', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'firstName': {'title': 'First name', 'type': 'string', 'required': True, 'mutability': 'READ_WRITE', 'scope': 'NONE', 'minLength': 1, 'maxLength': 50, 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'lastName': {'title': 'Last name', 'type': 'string', 'required': True, 'mutability': 'READ_WRITE', 'scope': 'NONE', 'minLength': 1, 'maxLength': 50, 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'middleName': {'title': 'Middle name', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'honorificPrefix': {'title': 'Honorific prefix', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'honorificSuffix': {'title': 'Honorific suffix', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'email': {'title': 'Primary email', 'type': 'string', 'required': True, 'format': 'email', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'title': {'title': 'Title', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'displayName': {'title': 'Display name', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'nickName': {'title': 'Nickname', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'profileUrl': {'title': 'Profile Url', 'type': 'string', 'format': 'uri', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'secondEmail': {'title': 'Secondary email', 'type': 'string', 'format': 'email', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'mobilePhone': {'title': 'Mobile phone', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'maxLength': 100, 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'primaryPhone': {'title': 'Primary phone', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'maxLength': 100, 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'streetAddress': {'title': 'Street address', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_hide, 'master': {'type': 'PROFILE_MASTER'}}, 'city': {'title': 'City', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_hide, 'master': {'type': 'PROFILE_MASTER'}}, 'state': {'title': 'State', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_hide, 'master': {'type': 'PROFILE_MASTER'}}, 'zipCode': {'title': 'Zip code', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_hide, 'master': {'type': 'PROFILE_MASTER'}}, 'countryCode': {'title': 'Country code', 'type': 'string', 'format': 'country-code', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_hide, 'master': {'type': 'PROFILE_MASTER'}}, 'postalAddress': {'title': 'Postal Address', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_hide, 'master': {'type': 'PROFILE_MASTER'}}, 'preferredLanguage': {'title': 'Preferred language', 'type': 'string', 'format': 'language-code', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'locale': {'title': 'Locale', 'type': 'string', 'format': 'locale', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'timezone': {'title': 'Time zone', 'type': 'string', 'format': 'timezone', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'userType': {'title': 'User type', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'employeeNumber': {'title': 'Employee number', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'costCenter': {'title': 'Cost center', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'organization': {'title': 'Organization', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'division': {'title': 'Division', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'department': {'title': 'Department', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_write, 'master': {'type': 'PROFILE_MASTER'}}, 'managerId': {'title': 'ManagerId', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}, 'manager': {'title': 'Manager', 'type': 'string', 'mutability': 'READ_WRITE', 'scope': 'NONE', 'permissions': _perms_self_read_only, 'master': {'type': 'PROFILE_MASTER'}}}, 'required': ['login', 'firstName', 'lastName', 'email']}}, 'type': 'object', 'properties': {'profile': {'allOf': [{'$ref': '#/definitions/custom'}, {'$ref': '#/definitions/base'}]}}}
okta_groups_list = [{'id': 'group1', 'created': '2018-09-13T12:51:16.000Z', 'lastUpdated': '2018-10-17T12:00:38.000Z', 'lastMembershipUpdated': '2019-01-16T08:48:12.000Z', 'objectClass': ['okta:user_group'], 'type': 'OKTA_GROUP', 'profile': {'name': 'Group One', 'description': ''}, '_links': {'logo': [{'name': 'medium', 'href': 'https://some.logo', 'type': 'image/png'}, {'name': 'large', 'href': 'https://some_large.logo', 'type': 'image/png'}], 'users': {'href': 'http://okta/api/v1/groups/group1/users'}, 'apps': {'href': 'http://okta/api/v1/groups/group1/apps'}}}, {'id': 'group2', 'created': '2018-09-13T12:51:16.000Z', 'lastUpdated': '2018-10-17T12:00:38.000Z', 'lastMembershipUpdated': '2019-01-16T08:48:12.000Z', 'objectClass': ['okta:user_group'], 'type': 'OKTA_GROUP', 'profile': {'name': 'Group Two', 'description': ''}, '_links': {'logo': [{'name': 'medium', 'href': 'https://some.logo', 'type': 'image/png'}, {'name': 'large', 'href': 'https://some_large.logo', 'type': 'image/png'}], 'users': {'href': 'http://okta/api/v1/groups/group2/users'}, 'apps': {'href': 'http://okta/api/v1/groups/group2/apps'}}}, {'id': 'group3', 'created': '2018-09-13T12:51:16.000Z', 'lastUpdated': '2018-10-17T12:00:38.000Z', 'lastMembershipUpdated': '2019-01-16T08:48:12.000Z', 'objectClass': ['okta:user_group'], 'type': 'OKTA_GROUP', 'profile': {'name': 'Group 3', 'description': ''}, '_links': {'logo': [{'name': 'medium', 'href': 'https://some.logo', 'type': 'image/png'}, {'name': 'large', 'href': 'https://some_large.logo', 'type': 'image/png'}], 'users': {'href': 'http://okta/api/v1/groups/group3/users'}, 'apps': {'href': 'http://okta/api/v1/groups/group3/apps'}}}] |
n, m = map(int, input().split())
a = list(map(int, input().split()))
a.insert(0, 0)
for _ in range(m):
op, x = map(int, input().split())
if op == 2:
l = 2**(x - 1)
r = min(n + 1, 2**x)
print(' '.join(map(str, a[l:r])))
elif op == 1:
t = []
t.append(a[x])
if x * 2 <= n:
t.append(a[x * 2])
if x * 2 + 1 <= n:
t.append(a[x * 2 + 1])
t.sort(reverse=True)
a[x] = t[0]
if len(t) >= 2:
a[x * 2] = t[1]
if len(t) == 3:
a[x * 2 + 1] = t[2]
| (n, m) = map(int, input().split())
a = list(map(int, input().split()))
a.insert(0, 0)
for _ in range(m):
(op, x) = map(int, input().split())
if op == 2:
l = 2 ** (x - 1)
r = min(n + 1, 2 ** x)
print(' '.join(map(str, a[l:r])))
elif op == 1:
t = []
t.append(a[x])
if x * 2 <= n:
t.append(a[x * 2])
if x * 2 + 1 <= n:
t.append(a[x * 2 + 1])
t.sort(reverse=True)
a[x] = t[0]
if len(t) >= 2:
a[x * 2] = t[1]
if len(t) == 3:
a[x * 2 + 1] = t[2] |
#!/usr/bin/env python3
"""Extracting IDs from document"""
def idExtractor(channelID, document):
for key in document:
try:
if document[key][0] == channelID:
return key, document[key][1]
except TypeError:
continue
return
| """Extracting IDs from document"""
def id_extractor(channelID, document):
for key in document:
try:
if document[key][0] == channelID:
return (key, document[key][1])
except TypeError:
continue
return |
class BaseException(Exception):
default_message = None
def __init__(self, *args, **kwargs):
if not (args or kwargs):
args = (self.default_message,)
super().__init__(*args, **kwargs)
class NotEnoughBallotClaimTickets(BaseException):
default_message = 'You do not have enough claim ticket(s) left'
class UsedBallotClaimTicket(BaseException):
default_message = 'This ballot claim ticket has already been used'
class InvalidBallot(BaseException):
default_message = 'Invalid ballot'
class UnrecognizedNode(BaseException):
default_message = 'Node not recognized'
class UnknownVoter(BaseException):
default_message = 'Voter is not on voter roll' | class Baseexception(Exception):
default_message = None
def __init__(self, *args, **kwargs):
if not (args or kwargs):
args = (self.default_message,)
super().__init__(*args, **kwargs)
class Notenoughballotclaimtickets(BaseException):
default_message = 'You do not have enough claim ticket(s) left'
class Usedballotclaimticket(BaseException):
default_message = 'This ballot claim ticket has already been used'
class Invalidballot(BaseException):
default_message = 'Invalid ballot'
class Unrecognizednode(BaseException):
default_message = 'Node not recognized'
class Unknownvoter(BaseException):
default_message = 'Voter is not on voter roll' |
class APIException(Exception):
pass
class ADBException(Exception):
pass
| class Apiexception(Exception):
pass
class Adbexception(Exception):
pass |
"""
https://leetcode.com/problems/longest-palindromic-subsequence/
Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000.
Example 1:
Input:
"bbbab"
Output:
4
One possible longest palindromic subsequence is "bbbb".
Example 2:
Input:
"cbbd"
Output:
2
One possible longest palindromic subsequence is "bb".
Approach:
dp[i][j] represents the longest palindromic subsequence for substring from index i to index j.
dp[i][j] = dp[i + 1][j - 1] + 2 if character at i equals character at j.
Adding 2 because need to account for adding character at i and character at j.
If character at i does not equal character at j, then dp[i][j] is max of dp[i + 1][j] or dp[i][j - 1].
So max of substring starting from incremental start or substring ending one character before.
dp[0]0] = 1
Iterate backwards to build palindrome subsequence such that being at 0 will have longest palindrome subsequence to end.
"""
class Solution(object):
def longestPalindromeSubseq(self, s):
"""
:type s: str
:rtype: int
"""
dp = []
for i in range(len(s)):
results = []
for j in range(len(s)):
if i == j:
results.append(1)
else:
results.append(0)
dp.append(results)
for i in range(len(s), -1, -1):
for j in range(i + 1, len(s)):
if s[i] == s[j]:
dp[i][j] = dp[i + 1][j - 1] + 2
else:
dp[i][j] = max(dp[i + 1][j], dp[i][j - 1])
return dp[0][len(s) - 1]
| """
https://leetcode.com/problems/longest-palindromic-subsequence/
Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000.
Example 1:
Input:
"bbbab"
Output:
4
One possible longest palindromic subsequence is "bbbb".
Example 2:
Input:
"cbbd"
Output:
2
One possible longest palindromic subsequence is "bb".
Approach:
dp[i][j] represents the longest palindromic subsequence for substring from index i to index j.
dp[i][j] = dp[i + 1][j - 1] + 2 if character at i equals character at j.
Adding 2 because need to account for adding character at i and character at j.
If character at i does not equal character at j, then dp[i][j] is max of dp[i + 1][j] or dp[i][j - 1].
So max of substring starting from incremental start or substring ending one character before.
dp[0]0] = 1
Iterate backwards to build palindrome subsequence such that being at 0 will have longest palindrome subsequence to end.
"""
class Solution(object):
def longest_palindrome_subseq(self, s):
"""
:type s: str
:rtype: int
"""
dp = []
for i in range(len(s)):
results = []
for j in range(len(s)):
if i == j:
results.append(1)
else:
results.append(0)
dp.append(results)
for i in range(len(s), -1, -1):
for j in range(i + 1, len(s)):
if s[i] == s[j]:
dp[i][j] = dp[i + 1][j - 1] + 2
else:
dp[i][j] = max(dp[i + 1][j], dp[i][j - 1])
return dp[0][len(s) - 1] |
MAJOR = 0
MINOR = 1
PATCH = 6
__version__ = '%d.%d.%d' % (MAJOR, MINOR, PATCH)
| major = 0
minor = 1
patch = 6
__version__ = '%d.%d.%d' % (MAJOR, MINOR, PATCH) |
#
# PySNMP MIB module TRAPEZE-NETWORKS-AP-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRAPEZE-NETWORKS-AP-IF-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:19:44 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)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint")
IANAifType, = mibBuilder.importSymbols("IANAifType-MIB", "IANAifType")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
Bits, ObjectIdentity, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Unsigned32, Integer32, iso, Counter32, Counter64, Gauge32, ModuleIdentity, NotificationType, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "ObjectIdentity", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Unsigned32", "Integer32", "iso", "Counter32", "Counter64", "Gauge32", "ModuleIdentity", "NotificationType", "TimeTicks")
TextualConvention, DisplayString, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "MacAddress")
TrpzApSerialNum, = mibBuilder.importSymbols("TRAPEZE-NETWORKS-AP-TC", "TrpzApSerialNum")
trpzMibs, = mibBuilder.importSymbols("TRAPEZE-NETWORKS-ROOT-MIB", "trpzMibs")
trpzApIfMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 14525, 4, 16))
trpzApIfMib.setRevisions(('2008-11-20 00:01',))
if mibBuilder.loadTexts: trpzApIfMib.setLastUpdated('200811200001Z')
if mibBuilder.loadTexts: trpzApIfMib.setOrganization('Trapeze Networks')
class TrpzApInterfaceIndex(TextualConvention, Unsigned32):
status = 'current'
displayHint = 'd'
subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 1024)
trpzApIfMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1))
trpzApIfTable = MibTable((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1), )
if mibBuilder.loadTexts: trpzApIfTable.setStatus('current')
trpzApIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1), ).setIndexNames((0, "TRAPEZE-NETWORKS-AP-IF-MIB", "trpzApIfApSerialNum"), (0, "TRAPEZE-NETWORKS-AP-IF-MIB", "trpzApIfIndex"))
if mibBuilder.loadTexts: trpzApIfEntry.setStatus('current')
trpzApIfApSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 1), TrpzApSerialNum())
if mibBuilder.loadTexts: trpzApIfApSerialNum.setStatus('current')
trpzApIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 2), TrpzApInterfaceIndex())
if mibBuilder.loadTexts: trpzApIfIndex.setStatus('current')
trpzApIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trpzApIfName.setStatus('current')
trpzApIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 4), IANAifType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trpzApIfType.setStatus('current')
trpzApIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trpzApIfMtu.setStatus('current')
trpzApIfHighSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 6), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trpzApIfHighSpeed.setStatus('current')
trpzApIfMac = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 7), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trpzApIfMac.setStatus('current')
trpzApIfConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2))
trpzApIfCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2, 1))
trpzApIfGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2, 2))
trpzApIfCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2, 1, 1)).setObjects(("TRAPEZE-NETWORKS-AP-IF-MIB", "trpzApIfBasicGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
trpzApIfCompliance = trpzApIfCompliance.setStatus('current')
trpzApIfBasicGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2, 2, 1)).setObjects(("TRAPEZE-NETWORKS-AP-IF-MIB", "trpzApIfName"), ("TRAPEZE-NETWORKS-AP-IF-MIB", "trpzApIfType"), ("TRAPEZE-NETWORKS-AP-IF-MIB", "trpzApIfMtu"), ("TRAPEZE-NETWORKS-AP-IF-MIB", "trpzApIfHighSpeed"), ("TRAPEZE-NETWORKS-AP-IF-MIB", "trpzApIfMac"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
trpzApIfBasicGroup = trpzApIfBasicGroup.setStatus('current')
mibBuilder.exportSymbols("TRAPEZE-NETWORKS-AP-IF-MIB", trpzApIfIndex=trpzApIfIndex, trpzApIfMtu=trpzApIfMtu, trpzApIfMac=trpzApIfMac, trpzApIfMibObjects=trpzApIfMibObjects, PYSNMP_MODULE_ID=trpzApIfMib, trpzApIfConformance=trpzApIfConformance, trpzApIfMib=trpzApIfMib, trpzApIfHighSpeed=trpzApIfHighSpeed, trpzApIfGroups=trpzApIfGroups, trpzApIfTable=trpzApIfTable, trpzApIfBasicGroup=trpzApIfBasicGroup, trpzApIfApSerialNum=trpzApIfApSerialNum, trpzApIfEntry=trpzApIfEntry, trpzApIfType=trpzApIfType, trpzApIfName=trpzApIfName, TrpzApInterfaceIndex=TrpzApInterfaceIndex, trpzApIfCompliance=trpzApIfCompliance, trpzApIfCompliances=trpzApIfCompliances)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_range_constraint, constraints_intersection, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint')
(ian_aif_type,) = mibBuilder.importSymbols('IANAifType-MIB', 'IANAifType')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(bits, object_identity, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, unsigned32, integer32, iso, counter32, counter64, gauge32, module_identity, notification_type, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'ObjectIdentity', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Unsigned32', 'Integer32', 'iso', 'Counter32', 'Counter64', 'Gauge32', 'ModuleIdentity', 'NotificationType', 'TimeTicks')
(textual_convention, display_string, mac_address) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'MacAddress')
(trpz_ap_serial_num,) = mibBuilder.importSymbols('TRAPEZE-NETWORKS-AP-TC', 'TrpzApSerialNum')
(trpz_mibs,) = mibBuilder.importSymbols('TRAPEZE-NETWORKS-ROOT-MIB', 'trpzMibs')
trpz_ap_if_mib = module_identity((1, 3, 6, 1, 4, 1, 14525, 4, 16))
trpzApIfMib.setRevisions(('2008-11-20 00:01',))
if mibBuilder.loadTexts:
trpzApIfMib.setLastUpdated('200811200001Z')
if mibBuilder.loadTexts:
trpzApIfMib.setOrganization('Trapeze Networks')
class Trpzapinterfaceindex(TextualConvention, Unsigned32):
status = 'current'
display_hint = 'd'
subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1, 1024)
trpz_ap_if_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1))
trpz_ap_if_table = mib_table((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1))
if mibBuilder.loadTexts:
trpzApIfTable.setStatus('current')
trpz_ap_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1)).setIndexNames((0, 'TRAPEZE-NETWORKS-AP-IF-MIB', 'trpzApIfApSerialNum'), (0, 'TRAPEZE-NETWORKS-AP-IF-MIB', 'trpzApIfIndex'))
if mibBuilder.loadTexts:
trpzApIfEntry.setStatus('current')
trpz_ap_if_ap_serial_num = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 1), trpz_ap_serial_num())
if mibBuilder.loadTexts:
trpzApIfApSerialNum.setStatus('current')
trpz_ap_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 2), trpz_ap_interface_index())
if mibBuilder.loadTexts:
trpzApIfIndex.setStatus('current')
trpz_ap_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trpzApIfName.setStatus('current')
trpz_ap_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 4), ian_aif_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trpzApIfType.setStatus('current')
trpz_ap_if_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 5), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trpzApIfMtu.setStatus('current')
trpz_ap_if_high_speed = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 6), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trpzApIfHighSpeed.setStatus('current')
trpz_ap_if_mac = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 16, 1, 1, 1, 7), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trpzApIfMac.setStatus('current')
trpz_ap_if_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2))
trpz_ap_if_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2, 1))
trpz_ap_if_groups = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2, 2))
trpz_ap_if_compliance = module_compliance((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2, 1, 1)).setObjects(('TRAPEZE-NETWORKS-AP-IF-MIB', 'trpzApIfBasicGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
trpz_ap_if_compliance = trpzApIfCompliance.setStatus('current')
trpz_ap_if_basic_group = object_group((1, 3, 6, 1, 4, 1, 14525, 4, 16, 2, 2, 1)).setObjects(('TRAPEZE-NETWORKS-AP-IF-MIB', 'trpzApIfName'), ('TRAPEZE-NETWORKS-AP-IF-MIB', 'trpzApIfType'), ('TRAPEZE-NETWORKS-AP-IF-MIB', 'trpzApIfMtu'), ('TRAPEZE-NETWORKS-AP-IF-MIB', 'trpzApIfHighSpeed'), ('TRAPEZE-NETWORKS-AP-IF-MIB', 'trpzApIfMac'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
trpz_ap_if_basic_group = trpzApIfBasicGroup.setStatus('current')
mibBuilder.exportSymbols('TRAPEZE-NETWORKS-AP-IF-MIB', trpzApIfIndex=trpzApIfIndex, trpzApIfMtu=trpzApIfMtu, trpzApIfMac=trpzApIfMac, trpzApIfMibObjects=trpzApIfMibObjects, PYSNMP_MODULE_ID=trpzApIfMib, trpzApIfConformance=trpzApIfConformance, trpzApIfMib=trpzApIfMib, trpzApIfHighSpeed=trpzApIfHighSpeed, trpzApIfGroups=trpzApIfGroups, trpzApIfTable=trpzApIfTable, trpzApIfBasicGroup=trpzApIfBasicGroup, trpzApIfApSerialNum=trpzApIfApSerialNum, trpzApIfEntry=trpzApIfEntry, trpzApIfType=trpzApIfType, trpzApIfName=trpzApIfName, TrpzApInterfaceIndex=TrpzApInterfaceIndex, trpzApIfCompliance=trpzApIfCompliance, trpzApIfCompliances=trpzApIfCompliances) |
def convex_hull_from_points(raw_v):
hull = ConvexHull(raw_v)
hull_eq = hull.equations
# H representation
v = raw_v[hull.vertices,:]
num_vertices = len(v)
g = np.hstack((np.ones((num_vertices,1)), v)) # zeros for vertex
mat = cdd.Matrix(g, number_type='fraction')
mat.rep_type = cdd.RepType.GENERATOR
poly = cdd.Polyhedron(mat)
ext = poly.get_inequalities()
out = np.array(ext)
A = out[:,1:] # H representation
b = out[:,0]
# Get faces (vertices index) for obj
num_faces = len(b)
faces = np.ones((num_faces, 6))*-1
num_vertices_faces = np.zeros(num_faces)
for i in range(num_faces):
idx = 0
for j in range(num_vertices):
if abs(np.dot(A[i,:], v[j,:])+b[i]) < 1e-3:
faces[i,idx] = j
idx = idx+1
num_vertices_faces[i] = num_vertices_faces[i] + 1
return {'v':v, 'faces':faces, 'num_vertices_faces':num_vertices_faces}
| def convex_hull_from_points(raw_v):
hull = convex_hull(raw_v)
hull_eq = hull.equations
v = raw_v[hull.vertices, :]
num_vertices = len(v)
g = np.hstack((np.ones((num_vertices, 1)), v))
mat = cdd.Matrix(g, number_type='fraction')
mat.rep_type = cdd.RepType.GENERATOR
poly = cdd.Polyhedron(mat)
ext = poly.get_inequalities()
out = np.array(ext)
a = out[:, 1:]
b = out[:, 0]
num_faces = len(b)
faces = np.ones((num_faces, 6)) * -1
num_vertices_faces = np.zeros(num_faces)
for i in range(num_faces):
idx = 0
for j in range(num_vertices):
if abs(np.dot(A[i, :], v[j, :]) + b[i]) < 0.001:
faces[i, idx] = j
idx = idx + 1
num_vertices_faces[i] = num_vertices_faces[i] + 1
return {'v': v, 'faces': faces, 'num_vertices_faces': num_vertices_faces} |
def valid_word(seq, word):
check=set(seq)
def helper(count, index):
if index>=len(word):
return True if count>=1 else False
return any(helper(count+1, i) for i in range(index+1, len(word)+1) if word[index:i] in seq)
return helper(0, 0) | def valid_word(seq, word):
check = set(seq)
def helper(count, index):
if index >= len(word):
return True if count >= 1 else False
return any((helper(count + 1, i) for i in range(index + 1, len(word) + 1) if word[index:i] in seq))
return helper(0, 0) |
# coding: utf-8
"""*****************************************************************************
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* responsibility to comply with third party license terms applicable to your
* use of third party software (including open source software) that may
* accompany Microchip software.
*
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
* PARTICULAR PURPOSE.
*
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
* INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
* WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
* BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
* FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
* ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
* THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
*****************************************************************************"""
###################################################################################################
########################################## Callbacks #############################################
###################################################################################################
global updateSDASetupRegisterValue
global updateSDASetupTimeMaxValueInNanoSeconds
def updateSDASetupTimeMaxValueInNanoSeconds():
sda_setup_reg_max_value = int(Database.getSymbolValue(sercomInstanceName.getValue().lower(), "I2CS_SDASETUP_MAX_VALUE"))
cpu_clk_period = 1.0/int(Database.getSymbolValue("core", "CPU_CLOCK_FREQUENCY"))
sda_setup_time_ns = (cpu_clk_period) * (6 + (16*sda_setup_reg_max_value))
return int(sda_setup_time_ns*1e9)
def updateSDASetupRegisterValue():
sda_setup_time_ns = int(Database.getSymbolValue(sercomInstanceName.getValue().lower(), "I2CS_SDASETUP_TIME_NS")) * 1e-9
cpu_clk_frequency = int(Database.getSymbolValue("core", "CPU_CLOCK_FREQUENCY"))
sda_setup_reg_value = ((sda_setup_time_ns * cpu_clk_frequency) - 6 )/16
if sda_setup_reg_value < 0:
sda_setup_reg_value = 0
Database.setSymbolValue(sercomInstanceName.getValue().lower(), "I2CS_SDASETUP_TIME_REG_VALUE", int(sda_setup_reg_value))
# I2CS Components Visible Property
def updateI2CSlaveConfigurationVisibleProperty(symbol, event):
if event["id"] == "I2CS_TENBITEN_SUPPORT":
eventSym = event["symbol"]
if eventSym.getValue() == True:
symbol.setLabel("I2C Slave Address (10-bit)")
else:
symbol.setLabel("I2C Slave Address (7-bit)")
elif symbol.getID() == "I2CS_SDASETUP_TIME_NS":
updateSDASetupRegisterValue()
symbol.setMax(updateSDASetupTimeMaxValueInNanoSeconds())
symbol.setVisible(sercomSym_OperationMode.getSelectedKey() == "I2CS")
###################################################################################################
######################################## I2C MASTER ###############################################
###################################################################################################
global i2csSym_Interrupt_Mode
global i2csSym_CTRLB_SMEN
#I2C Interrupt Mode
i2csSym_Interrupt_Mode = sercomComponent.createBooleanSymbol("I2CS_INTERRUPT_MODE", sercomSym_OperationMode)
i2csSym_Interrupt_Mode.setLabel("Enable Interrupts ?")
i2csSym_Interrupt_Mode.setDefaultValue(True)
i2csSym_Interrupt_Mode.setVisible(False)
i2csSym_Interrupt_Mode.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["SERCOM_MODE"])
# I2C Smart Mode Enable
i2csSym_CTRLB_SMEN = sercomComponent.createBooleanSymbol("I2CS_SMEN", sercomSym_OperationMode)
i2csSym_CTRLB_SMEN.setLabel("Enable Smart Mode")
i2csSym_CTRLB_SMEN.setDefaultValue(False)
i2csSym_CTRLB_SMEN.setVisible(False)
i2csSym_CTRLB_SMEN.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["SERCOM_MODE"])
#-----------------------------------------------------------------------------------
# SDA Hold Time
i2csSym_CTRLA_SDAHOLD = sercomComponent.createKeyValueSetSymbol("I2CS_SDAHOLD_TIME", sercomSym_OperationMode)
i2csSym_CTRLA_SDAHOLD.setLabel("SDA Hold Time")
i2csSym_CTRLA_SDAHOLD.setVisible(False)
i2csSDAHoldTimeReferenceNode = ATDF.getNode("/avr-tools-device-file/modules/module@[name=\"SERCOM\"]/value-group@[name=\"SERCOM_I2CM_CTRLA__SDAHOLD\"]")
i2csSDAHoldTimeReferenceValues = i2csSDAHoldTimeReferenceNode.getChildren()
for index in range(len(i2csSDAHoldTimeReferenceValues)):
i2csSDAHoldTimeReferenceKeyName = i2csSDAHoldTimeReferenceValues[index].getAttribute("name")
i2csSDAHoldTimeReferenceKeyDescription = i2csSDAHoldTimeReferenceValues[index].getAttribute("caption")
i2csSDAHoldTimeReferenceKeyValue = i2csSDAHoldTimeReferenceValues[index].getAttribute("value")
i2csSym_CTRLA_SDAHOLD.addKey(i2csSDAHoldTimeReferenceKeyName, i2csSDAHoldTimeReferenceKeyValue, i2csSDAHoldTimeReferenceKeyDescription)
i2csSym_CTRLA_SDAHOLD.setDefaultValue(1)
i2csSym_CTRLA_SDAHOLD.setOutputMode("Key")
i2csSym_CTRLA_SDAHOLD.setDisplayMode("Description")
i2csSym_CTRLA_SDAHOLD.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["SERCOM_MODE"])
#-----------------------------------------------------------------------------------
# SDA Setup Time
sdaSetupTimeSupported = False
sdaSetupTimeMask = 0
sdaSetupTimeReferenceNode = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]')
sdaSetupTimeValue = sdaSetupTimeReferenceNode.getChildren()
# Check if CTRLC register exists
for index in range(len(sdaSetupTimeValue)):
if str(sdaSetupTimeValue[index].getAttribute("modes")) == "I2CS":
if str(sdaSetupTimeValue[index].getAttribute("name")) == "CTRLC":
sdaSetupTimeSupported = True
break
# Check if CTRLC register has the SDASETUP bitfield.
if sdaSetupTimeSupported == True:
sdaSetupTimeSupported = False
sdaSetupTimeReferenceNode = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="CTRLC"]')
sdaSetupTimeValue = sdaSetupTimeReferenceNode.getChildren()
for index in range(len(sdaSetupTimeValue)):
if str(sdaSetupTimeValue[index].getAttribute("name")) == "SDASETUP":
sdaSetupTimeMask = int(sdaSetupTimeValue[index].getAttribute("mask"), 16)
i2csSym_SDASETUP_MaxValue = sercomComponent.createIntegerSymbol("I2CS_SDASETUP_MAX_VALUE", sercomSym_OperationMode)
i2csSym_SDASETUP_MaxValue.setLabel("SDA Setup Time Max Register Value")
i2csSym_SDASETUP_MaxValue.setVisible(False)
i2csSym_SDASETUP_MaxValue.setDefaultValue(sdaSetupTimeMask)
sdaSetupTimeSupported = True
break
# CTRLC register exists and has SDASETUP bitfield
if sdaSetupTimeSupported == True:
i2csSym_SDASETUP = sercomComponent.createBooleanSymbol("I2CS_SDASETUP_TIME_SUPPORT", sercomSym_OperationMode)
i2csSym_SDASETUP.setVisible(False)
i2csSym_SDASETUP.setValue(True)
i2csSym_SDASETUP_Value = sercomComponent.createIntegerSymbol("I2CS_SDASETUP_TIME_NS", sercomSym_OperationMode)
i2csSym_SDASETUP_Value.setLabel("SDA Setup Time (ns)")
i2csSym_SDASETUP_Value.setVisible(False)
i2csSym_SDASETUP_Value.setDefaultValue(250)
i2csSym_SDASETUP_Value.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["I2CS_SDASETUP_TIME_NS", "SERCOM_MODE", "core.CPU_CLOCK_FREQUENCY"])
i2csSym_SDASETUP_RegValue = sercomComponent.createIntegerSymbol("I2CS_SDASETUP_TIME_REG_VALUE", sercomSym_OperationMode)
i2csSym_SDASETUP_RegValue.setLabel("SDA Setup Time Register Value")
i2csSym_SDASETUP_RegValue.setVisible(False)
i2csSym_SDASETUP_RegValue.setDefaultValue(0)
i2csSym_SDASETUP_RegValue.setMax(sdaSetupTimeMask)
#-----------------------------------------------------------------------------------
# 10-bit support
TenBitAddrSupported = False
TenBitAddrSupportReferenceNode = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="ADDR"]')
TenBitSupportValue = TenBitAddrSupportReferenceNode.getChildren()
for index in range(len(TenBitSupportValue)):
bitFieldName = str(TenBitSupportValue[index].getAttribute("name"))
if bitFieldName == "TENBITEN":
TenBitAddrSupported = True
break
if TenBitAddrSupported == True:
i2csSym_TENBITEN = sercomComponent.createBooleanSymbol("I2CS_TENBITEN_SUPPORT", sercomSym_OperationMode)
i2csSym_TENBITEN.setLabel("Enable 10-bit Addressing")
i2csSym_TENBITEN.setVisible(False)
i2csSym_TENBITEN.setDefaultValue(False)
i2csSym_TENBITEN.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["SERCOM_MODE"])
#-----------------------------------------------------------------------------------
# Slave Address
i2csSym_ADDR = sercomComponent.createHexSymbol("I2CS_SLAVE_ADDDRESS", sercomSym_OperationMode)
i2csSym_ADDR.setLabel("I2C Slave Address (7-bit)")
i2csSym_ADDR.setMax(1023)
i2csSym_ADDR.setVisible(False)
i2csSym_ADDR.setDefaultValue(0x54)
i2csSym_ADDR.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["SERCOM_MODE", "I2CS_TENBITEN_SUPPORT"])
#-----------------------------------------------------------------------------------
# Error Interrupt Support
errorInterruptSupported = False
intensetNode = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="INTENSET"]')
intensetValue = intensetNode.getChildren()
for index in range(len(intensetValue)):
bitFieldName = str(intensetValue[index].getAttribute("name"))
if bitFieldName == "ERROR":
errorInterruptSupported = True
break
#I2CS is ERROR present
i2csSym_ERROR = sercomComponent.createBooleanSymbol("I2CS_INTENSET_ERROR", None)
i2csSym_ERROR.setVisible(False)
i2csSym_ERROR.setDefaultValue(errorInterruptSupported)
#-----------------------------------------------------------------------------------
# LOWTOUT Support
lowToutSupported = False
lowToutReferenceNode = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="CTRLA"]')
lowToutValue = lowToutReferenceNode.getChildren()
for index in range(len(lowToutValue)):
bitFieldName = str(lowToutValue[index].getAttribute("name"))
if bitFieldName == "LOWTOUTEN":
lowToutSupported = True
break
if lowToutSupported == True:
i2csSym_LOWTOUT = sercomComponent.createBooleanSymbol("I2CS_LOWTOUT_SUPPORT", sercomSym_OperationMode)
i2csSym_LOWTOUT.setLabel("Enable SCL Low Time-Out")
i2csSym_LOWTOUT.setVisible(False)
i2csSym_LOWTOUT.setDefaultValue(False)
i2csSym_LOWTOUT.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["SERCOM_MODE"])
#-----------------------------------------------------------------------------------
# SEXTTOEN Support
lowExtendToutSupported = False
lowExtendToutReferenceNode = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="CTRLA"]')
lowExtendToutValue = lowExtendToutReferenceNode.getChildren()
for index in range(len(lowExtendToutValue)):
bitFieldName = str(lowExtendToutValue[index].getAttribute("name"))
if bitFieldName == "SEXTTOEN":
lowExtendToutSupported = True
break
if lowExtendToutSupported == True:
i2csSym_SEXTTOEN = sercomComponent.createBooleanSymbol("I2CS_SEXTTOEN_SUPPORT", sercomSym_OperationMode)
i2csSym_SEXTTOEN.setLabel("Enable SCL Low Extend Time-Out")
i2csSym_SEXTTOEN.setVisible(False)
i2csSym_SEXTTOEN.setDefaultValue(False)
i2csSym_SEXTTOEN.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["SERCOM_MODE"])
#-----------------------------------------------------------------------------------
# LOWTOUT Error Status Support
i2csSym_LOWTOUTErrorStatus = sercomComponent.createBooleanSymbol("I2CS_LOWTOUT_ERROR_SUPPORT", None)
i2csSym_LOWTOUTErrorStatus.setVisible(False)
i2csSym_LOWTOUTErrorStatus.setDefaultValue(lowToutSupported)
#-----------------------------------------------------------------------------------
# SEXTTOUT Error Status Support
i2csSym_SEXTTOUTErrorStatus = sercomComponent.createBooleanSymbol("I2CS_SEXTTOOUT_ERROR_SUPPORT", None)
i2csSym_SEXTTOUTErrorStatus.setVisible(False)
i2csSym_SEXTTOUTErrorStatus.setDefaultValue(lowExtendToutSupported)
#-----------------------------------------------------------------------------------
# Run In Standby
i2csSym_CTRLA_RUNSTDBY = sercomComponent.createBooleanSymbol("I2CS_RUNSTDBY", sercomSym_OperationMode)
i2csSym_CTRLA_RUNSTDBY.setLabel("Enable operation in Standby mode")
i2csSym_CTRLA_RUNSTDBY.setVisible(False)
i2csSym_CTRLA_RUNSTDBY.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ["SERCOM_MODE"])
#-----------------------------------------------------------------------------------
###################################################################################################
####################################### Driver Symbols ############################################
###################################################################################################
#I2C API Prefix
i2cSym_API_Prefix = sercomComponent.createStringSymbol("I2CS_PLIB_API_PREFIX", sercomSym_OperationMode)
i2cSym_API_Prefix.setDefaultValue(sercomInstanceName.getValue() + "_I2C")
i2cSym_API_Prefix.setVisible(False) | """*****************************************************************************
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* responsibility to comply with third party license terms applicable to your
* use of third party software (including open source software) that may
* accompany Microchip software.
*
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
* PARTICULAR PURPOSE.
*
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
* INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
* WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
* BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
* FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
* ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
* THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
*****************************************************************************"""
global updateSDASetupRegisterValue
global updateSDASetupTimeMaxValueInNanoSeconds
def update_sda_setup_time_max_value_in_nano_seconds():
sda_setup_reg_max_value = int(Database.getSymbolValue(sercomInstanceName.getValue().lower(), 'I2CS_SDASETUP_MAX_VALUE'))
cpu_clk_period = 1.0 / int(Database.getSymbolValue('core', 'CPU_CLOCK_FREQUENCY'))
sda_setup_time_ns = cpu_clk_period * (6 + 16 * sda_setup_reg_max_value)
return int(sda_setup_time_ns * 1000000000.0)
def update_sda_setup_register_value():
sda_setup_time_ns = int(Database.getSymbolValue(sercomInstanceName.getValue().lower(), 'I2CS_SDASETUP_TIME_NS')) * 1e-09
cpu_clk_frequency = int(Database.getSymbolValue('core', 'CPU_CLOCK_FREQUENCY'))
sda_setup_reg_value = (sda_setup_time_ns * cpu_clk_frequency - 6) / 16
if sda_setup_reg_value < 0:
sda_setup_reg_value = 0
Database.setSymbolValue(sercomInstanceName.getValue().lower(), 'I2CS_SDASETUP_TIME_REG_VALUE', int(sda_setup_reg_value))
def update_i2_c_slave_configuration_visible_property(symbol, event):
if event['id'] == 'I2CS_TENBITEN_SUPPORT':
event_sym = event['symbol']
if eventSym.getValue() == True:
symbol.setLabel('I2C Slave Address (10-bit)')
else:
symbol.setLabel('I2C Slave Address (7-bit)')
elif symbol.getID() == 'I2CS_SDASETUP_TIME_NS':
update_sda_setup_register_value()
symbol.setMax(update_sda_setup_time_max_value_in_nano_seconds())
symbol.setVisible(sercomSym_OperationMode.getSelectedKey() == 'I2CS')
global i2csSym_Interrupt_Mode
global i2csSym_CTRLB_SMEN
i2cs_sym__interrupt__mode = sercomComponent.createBooleanSymbol('I2CS_INTERRUPT_MODE', sercomSym_OperationMode)
i2csSym_Interrupt_Mode.setLabel('Enable Interrupts ?')
i2csSym_Interrupt_Mode.setDefaultValue(True)
i2csSym_Interrupt_Mode.setVisible(False)
i2csSym_Interrupt_Mode.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['SERCOM_MODE'])
i2cs_sym_ctrlb_smen = sercomComponent.createBooleanSymbol('I2CS_SMEN', sercomSym_OperationMode)
i2csSym_CTRLB_SMEN.setLabel('Enable Smart Mode')
i2csSym_CTRLB_SMEN.setDefaultValue(False)
i2csSym_CTRLB_SMEN.setVisible(False)
i2csSym_CTRLB_SMEN.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['SERCOM_MODE'])
i2cs_sym_ctrla_sdahold = sercomComponent.createKeyValueSetSymbol('I2CS_SDAHOLD_TIME', sercomSym_OperationMode)
i2csSym_CTRLA_SDAHOLD.setLabel('SDA Hold Time')
i2csSym_CTRLA_SDAHOLD.setVisible(False)
i2cs_sda_hold_time_reference_node = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/value-group@[name="SERCOM_I2CM_CTRLA__SDAHOLD"]')
i2cs_sda_hold_time_reference_values = i2csSDAHoldTimeReferenceNode.getChildren()
for index in range(len(i2csSDAHoldTimeReferenceValues)):
i2cs_sda_hold_time_reference_key_name = i2csSDAHoldTimeReferenceValues[index].getAttribute('name')
i2cs_sda_hold_time_reference_key_description = i2csSDAHoldTimeReferenceValues[index].getAttribute('caption')
i2cs_sda_hold_time_reference_key_value = i2csSDAHoldTimeReferenceValues[index].getAttribute('value')
i2csSym_CTRLA_SDAHOLD.addKey(i2csSDAHoldTimeReferenceKeyName, i2csSDAHoldTimeReferenceKeyValue, i2csSDAHoldTimeReferenceKeyDescription)
i2csSym_CTRLA_SDAHOLD.setDefaultValue(1)
i2csSym_CTRLA_SDAHOLD.setOutputMode('Key')
i2csSym_CTRLA_SDAHOLD.setDisplayMode('Description')
i2csSym_CTRLA_SDAHOLD.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['SERCOM_MODE'])
sda_setup_time_supported = False
sda_setup_time_mask = 0
sda_setup_time_reference_node = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]')
sda_setup_time_value = sdaSetupTimeReferenceNode.getChildren()
for index in range(len(sdaSetupTimeValue)):
if str(sdaSetupTimeValue[index].getAttribute('modes')) == 'I2CS':
if str(sdaSetupTimeValue[index].getAttribute('name')) == 'CTRLC':
sda_setup_time_supported = True
break
if sdaSetupTimeSupported == True:
sda_setup_time_supported = False
sda_setup_time_reference_node = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="CTRLC"]')
sda_setup_time_value = sdaSetupTimeReferenceNode.getChildren()
for index in range(len(sdaSetupTimeValue)):
if str(sdaSetupTimeValue[index].getAttribute('name')) == 'SDASETUP':
sda_setup_time_mask = int(sdaSetupTimeValue[index].getAttribute('mask'), 16)
i2cs_sym_sdasetup__max_value = sercomComponent.createIntegerSymbol('I2CS_SDASETUP_MAX_VALUE', sercomSym_OperationMode)
i2csSym_SDASETUP_MaxValue.setLabel('SDA Setup Time Max Register Value')
i2csSym_SDASETUP_MaxValue.setVisible(False)
i2csSym_SDASETUP_MaxValue.setDefaultValue(sdaSetupTimeMask)
sda_setup_time_supported = True
break
if sdaSetupTimeSupported == True:
i2cs_sym_sdasetup = sercomComponent.createBooleanSymbol('I2CS_SDASETUP_TIME_SUPPORT', sercomSym_OperationMode)
i2csSym_SDASETUP.setVisible(False)
i2csSym_SDASETUP.setValue(True)
i2cs_sym_sdasetup__value = sercomComponent.createIntegerSymbol('I2CS_SDASETUP_TIME_NS', sercomSym_OperationMode)
i2csSym_SDASETUP_Value.setLabel('SDA Setup Time (ns)')
i2csSym_SDASETUP_Value.setVisible(False)
i2csSym_SDASETUP_Value.setDefaultValue(250)
i2csSym_SDASETUP_Value.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['I2CS_SDASETUP_TIME_NS', 'SERCOM_MODE', 'core.CPU_CLOCK_FREQUENCY'])
i2cs_sym_sdasetup__reg_value = sercomComponent.createIntegerSymbol('I2CS_SDASETUP_TIME_REG_VALUE', sercomSym_OperationMode)
i2csSym_SDASETUP_RegValue.setLabel('SDA Setup Time Register Value')
i2csSym_SDASETUP_RegValue.setVisible(False)
i2csSym_SDASETUP_RegValue.setDefaultValue(0)
i2csSym_SDASETUP_RegValue.setMax(sdaSetupTimeMask)
ten_bit_addr_supported = False
ten_bit_addr_support_reference_node = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="ADDR"]')
ten_bit_support_value = TenBitAddrSupportReferenceNode.getChildren()
for index in range(len(TenBitSupportValue)):
bit_field_name = str(TenBitSupportValue[index].getAttribute('name'))
if bitFieldName == 'TENBITEN':
ten_bit_addr_supported = True
break
if TenBitAddrSupported == True:
i2cs_sym_tenbiten = sercomComponent.createBooleanSymbol('I2CS_TENBITEN_SUPPORT', sercomSym_OperationMode)
i2csSym_TENBITEN.setLabel('Enable 10-bit Addressing')
i2csSym_TENBITEN.setVisible(False)
i2csSym_TENBITEN.setDefaultValue(False)
i2csSym_TENBITEN.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['SERCOM_MODE'])
i2cs_sym_addr = sercomComponent.createHexSymbol('I2CS_SLAVE_ADDDRESS', sercomSym_OperationMode)
i2csSym_ADDR.setLabel('I2C Slave Address (7-bit)')
i2csSym_ADDR.setMax(1023)
i2csSym_ADDR.setVisible(False)
i2csSym_ADDR.setDefaultValue(84)
i2csSym_ADDR.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['SERCOM_MODE', 'I2CS_TENBITEN_SUPPORT'])
error_interrupt_supported = False
intenset_node = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="INTENSET"]')
intenset_value = intensetNode.getChildren()
for index in range(len(intensetValue)):
bit_field_name = str(intensetValue[index].getAttribute('name'))
if bitFieldName == 'ERROR':
error_interrupt_supported = True
break
i2cs_sym_error = sercomComponent.createBooleanSymbol('I2CS_INTENSET_ERROR', None)
i2csSym_ERROR.setVisible(False)
i2csSym_ERROR.setDefaultValue(errorInterruptSupported)
low_tout_supported = False
low_tout_reference_node = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="CTRLA"]')
low_tout_value = lowToutReferenceNode.getChildren()
for index in range(len(lowToutValue)):
bit_field_name = str(lowToutValue[index].getAttribute('name'))
if bitFieldName == 'LOWTOUTEN':
low_tout_supported = True
break
if lowToutSupported == True:
i2cs_sym_lowtout = sercomComponent.createBooleanSymbol('I2CS_LOWTOUT_SUPPORT', sercomSym_OperationMode)
i2csSym_LOWTOUT.setLabel('Enable SCL Low Time-Out')
i2csSym_LOWTOUT.setVisible(False)
i2csSym_LOWTOUT.setDefaultValue(False)
i2csSym_LOWTOUT.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['SERCOM_MODE'])
low_extend_tout_supported = False
low_extend_tout_reference_node = ATDF.getNode('/avr-tools-device-file/modules/module@[name="SERCOM"]/register-group@[name="SERCOM"]/register@[modes="I2CS",name="CTRLA"]')
low_extend_tout_value = lowExtendToutReferenceNode.getChildren()
for index in range(len(lowExtendToutValue)):
bit_field_name = str(lowExtendToutValue[index].getAttribute('name'))
if bitFieldName == 'SEXTTOEN':
low_extend_tout_supported = True
break
if lowExtendToutSupported == True:
i2cs_sym_sexttoen = sercomComponent.createBooleanSymbol('I2CS_SEXTTOEN_SUPPORT', sercomSym_OperationMode)
i2csSym_SEXTTOEN.setLabel('Enable SCL Low Extend Time-Out')
i2csSym_SEXTTOEN.setVisible(False)
i2csSym_SEXTTOEN.setDefaultValue(False)
i2csSym_SEXTTOEN.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['SERCOM_MODE'])
i2cs_sym_lowtout_error_status = sercomComponent.createBooleanSymbol('I2CS_LOWTOUT_ERROR_SUPPORT', None)
i2csSym_LOWTOUTErrorStatus.setVisible(False)
i2csSym_LOWTOUTErrorStatus.setDefaultValue(lowToutSupported)
i2cs_sym_sexttout_error_status = sercomComponent.createBooleanSymbol('I2CS_SEXTTOOUT_ERROR_SUPPORT', None)
i2csSym_SEXTTOUTErrorStatus.setVisible(False)
i2csSym_SEXTTOUTErrorStatus.setDefaultValue(lowExtendToutSupported)
i2cs_sym_ctrla_runstdby = sercomComponent.createBooleanSymbol('I2CS_RUNSTDBY', sercomSym_OperationMode)
i2csSym_CTRLA_RUNSTDBY.setLabel('Enable operation in Standby mode')
i2csSym_CTRLA_RUNSTDBY.setVisible(False)
i2csSym_CTRLA_RUNSTDBY.setDependencies(updateI2CSlaveConfigurationVisibleProperty, ['SERCOM_MODE'])
i2c_sym_api__prefix = sercomComponent.createStringSymbol('I2CS_PLIB_API_PREFIX', sercomSym_OperationMode)
i2cSym_API_Prefix.setDefaultValue(sercomInstanceName.getValue() + '_I2C')
i2cSym_API_Prefix.setVisible(False) |
class AbstractToken:
name = 'token'
def __init__(self, lexemes, form):
self.lexemes = lexemes
self.form = form
self.source = self.get_source(lexemes)
self.string = lexemes[0].string
self.string_index = lexemes[0].string_index
self.string_begin_index = lexemes[0].source_index
self.string_end_index = lexemes[-1].source_index + len(lexemes[-1])
self.check_lexemes()
def __repr__(self):
return f'{type(self).__name__}("{self.source}")'
def get_source(self, lexemes):
buffer = []
for index, lexeme in enumerate(lexemes):
if lexeme.previous_is_space and index:
item = f" {lexeme.source}"
else:
item = lexeme.source
buffer.append(item)
result = ''.join(buffer)
return result
def check_lexemes(self):
pass
| class Abstracttoken:
name = 'token'
def __init__(self, lexemes, form):
self.lexemes = lexemes
self.form = form
self.source = self.get_source(lexemes)
self.string = lexemes[0].string
self.string_index = lexemes[0].string_index
self.string_begin_index = lexemes[0].source_index
self.string_end_index = lexemes[-1].source_index + len(lexemes[-1])
self.check_lexemes()
def __repr__(self):
return f'{type(self).__name__}("{self.source}")'
def get_source(self, lexemes):
buffer = []
for (index, lexeme) in enumerate(lexemes):
if lexeme.previous_is_space and index:
item = f' {lexeme.source}'
else:
item = lexeme.source
buffer.append(item)
result = ''.join(buffer)
return result
def check_lexemes(self):
pass |
numbers = input().split()
for x in range(len(numbers)):
numbers[x] = int(numbers[x])
for a in range(0, len(numbers)-2):
for b in range(a+1, len(numbers)-1):
for c in range(b+1, len(numbers)):
A = numbers[a]
B = numbers[b]
C = numbers[c]
if (A+B) in numbers and (A+C) in numbers and (B+C) in numbers and (A+B+C) in numbers:
numbers_ = [A, B, C]
numbers_.sort()
print(f"{numbers_[0]}, {numbers_[1]}, {numbers[2]}")
exit()
| numbers = input().split()
for x in range(len(numbers)):
numbers[x] = int(numbers[x])
for a in range(0, len(numbers) - 2):
for b in range(a + 1, len(numbers) - 1):
for c in range(b + 1, len(numbers)):
a = numbers[a]
b = numbers[b]
c = numbers[c]
if A + B in numbers and A + C in numbers and (B + C in numbers) and (A + B + C in numbers):
numbers_ = [A, B, C]
numbers_.sort()
print(f'{numbers_[0]}, {numbers_[1]}, {numbers[2]}')
exit() |
def calculate_triangles(max_p: int) -> int:
max_value = -1
max_p_val = -1
for p in range(12, max_p + 1, 2):
current_value = sum((p*p - 2*a*p) % (2*p - 2*a) == 0
for a in range(2, p // 3))
if current_value > max_value:
max_value = current_value
max_p_val = p
return max_p_val
if __name__ == '__main__':
m = calculate_triangles(1000)
print(m)
| def calculate_triangles(max_p: int) -> int:
max_value = -1
max_p_val = -1
for p in range(12, max_p + 1, 2):
current_value = sum(((p * p - 2 * a * p) % (2 * p - 2 * a) == 0 for a in range(2, p // 3)))
if current_value > max_value:
max_value = current_value
max_p_val = p
return max_p_val
if __name__ == '__main__':
m = calculate_triangles(1000)
print(m) |
app = Flask(__name__)
class Model:
def __init__(self, obj={}):
"""@param obj {dict}"""
self._obj = obj
def get_obj(self):
return self._obj
def set_property(self, name, value):
self._obj[name] = value
def set_properties(self, properties):
"""@param properties {dict}"""
self._obj.update(properties)
def delete_property(self, name):
if name in self._obj:
del self._obj[name]
@staticmethod
def serialize(model):
return json.dumps(model._obj, sort_keys=True, indent=4)
@staticmethod
def deserialize(string):
return Model(json.loads(string))
@app.route('/', methods=['GET'])
def hello():
return 'hello:)'
@app.route('/api/<key>', methods=['GET'])
def get(key):
model = get_model(key)
if model is None:
return "NOT FOUND"
else:
return jsonify(model.get_obj())
@app.route('/api/<key>', methods=['POST'])
def post(key):
result = set_property(key, json.loads(request.data))
return jsonify(result.get_obj())
@app.route('/api/<key>/<property_name>', methods=['DELETE'])
def delete(key, property_name):
result = delete_property(key, property_name)
if result is None:
return "NOT FOUND"
else:
return jsonify(result.get_obj())
def get_model(key):
return read_model(key)
def set_property(key, properties):
data = read_model(key)
if data is None:
data = Model()
data.set_properties(properties)
result = write_model(key, data)
return result
def delete_property(key, property_name):
data = read_model(key)
if data is None:
return None
if property_name not in data.get_obj():
return None
data.delete_property(property_name)
result = write_model(key, data)
return result
def read_model(key):
file_name = key + '.json'
try:
with open(file_name, 'r') as f:
return Model.deserialize(f.read())
except IOError as e:
print (e)
return None
def write_model(key, model):
file_name = key + '.json'
try:
with open(file_name, 'w') as f:
f.write(Model.serialize(model))
return model
except IOError as e:
print (e)
return None
if __name__ == '__main__':
app.run(debug=True)
| app = flask(__name__)
class Model:
def __init__(self, obj={}):
"""@param obj {dict}"""
self._obj = obj
def get_obj(self):
return self._obj
def set_property(self, name, value):
self._obj[name] = value
def set_properties(self, properties):
"""@param properties {dict}"""
self._obj.update(properties)
def delete_property(self, name):
if name in self._obj:
del self._obj[name]
@staticmethod
def serialize(model):
return json.dumps(model._obj, sort_keys=True, indent=4)
@staticmethod
def deserialize(string):
return model(json.loads(string))
@app.route('/', methods=['GET'])
def hello():
return 'hello:)'
@app.route('/api/<key>', methods=['GET'])
def get(key):
model = get_model(key)
if model is None:
return 'NOT FOUND'
else:
return jsonify(model.get_obj())
@app.route('/api/<key>', methods=['POST'])
def post(key):
result = set_property(key, json.loads(request.data))
return jsonify(result.get_obj())
@app.route('/api/<key>/<property_name>', methods=['DELETE'])
def delete(key, property_name):
result = delete_property(key, property_name)
if result is None:
return 'NOT FOUND'
else:
return jsonify(result.get_obj())
def get_model(key):
return read_model(key)
def set_property(key, properties):
data = read_model(key)
if data is None:
data = model()
data.set_properties(properties)
result = write_model(key, data)
return result
def delete_property(key, property_name):
data = read_model(key)
if data is None:
return None
if property_name not in data.get_obj():
return None
data.delete_property(property_name)
result = write_model(key, data)
return result
def read_model(key):
file_name = key + '.json'
try:
with open(file_name, 'r') as f:
return Model.deserialize(f.read())
except IOError as e:
print(e)
return None
def write_model(key, model):
file_name = key + '.json'
try:
with open(file_name, 'w') as f:
f.write(Model.serialize(model))
return model
except IOError as e:
print(e)
return None
if __name__ == '__main__':
app.run(debug=True) |
def partition(li, start, end):
pivot = li[start]
left = start + 1
right = end
done = False
while not done:
while left <= right and li[left] <= pivot:
left += 1
while right >= left and li[right] >= pivot:
right -= 1
if right < left:
done = True
else:
li[left], li[right] = li[right], li[left]
li[start], li[right] = li[right], li[start]
return right
def quicksort(li, start=0, end=None):
if not end:
end = len(li) - 1
if start < end:
pivot = partition(li, start, end)
# Recursively perform same operation on first and last halves of list
quicksort(li, start, pivot - 1)
quicksort(li, pivot + 1, end)
return li
| def partition(li, start, end):
pivot = li[start]
left = start + 1
right = end
done = False
while not done:
while left <= right and li[left] <= pivot:
left += 1
while right >= left and li[right] >= pivot:
right -= 1
if right < left:
done = True
else:
(li[left], li[right]) = (li[right], li[left])
(li[start], li[right]) = (li[right], li[start])
return right
def quicksort(li, start=0, end=None):
if not end:
end = len(li) - 1
if start < end:
pivot = partition(li, start, end)
quicksort(li, start, pivot - 1)
quicksort(li, pivot + 1, end)
return li |
number = int(input())
previous = 1
current = 1
for i in range(number - 2):
next = previous + current
previous = current
current = next
print(current) | number = int(input())
previous = 1
current = 1
for i in range(number - 2):
next = previous + current
previous = current
current = next
print(current) |
class Node(object):
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution(object):
def _isValidBSTHelper(self, n, low, high):
if not n:
return True
val = n.val
if ((val > low and val < high) and
self._isValidBSTHelper(n.left, low, val) and
self._isValidBSTHelper(n.right, val, high)):
return True
return False
def isValidBST(self, n):
return self._isValidBSTHelper(n, float('-inf'), float('inf'))
n = Node(5)
n.left = Node(4)
n.right = Node(7)
n.right.left = Node(6)
print(Solution().isValidBST(n))
| class Node(object):
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution(object):
def _is_valid_bst_helper(self, n, low, high):
if not n:
return True
val = n.val
if (val > low and val < high) and self._isValidBSTHelper(n.left, low, val) and self._isValidBSTHelper(n.right, val, high):
return True
return False
def is_valid_bst(self, n):
return self._isValidBSTHelper(n, float('-inf'), float('inf'))
n = node(5)
n.left = node(4)
n.right = node(7)
n.right.left = node(6)
print(solution().isValidBST(n)) |
#For these problems, DON'T COMMENT OUT FUNCTION DEFINITIONS! You will need to use them.
#######################################################################################
# 13.1
# Make a function which prints out a random string. Then call it.
#######################################################################################
# 13.2.a
# Make a function which takes two numbers as parameters and adds them together. Print
# the sum in the function.
#######################################################################################
# 13.2.a
# Make a function which takes two numbers as parameters and adds them together. Return
# the sum. Then print out the sum.
#######################################################################################
# 13.3
# Use the addition function you made above and put two of them inside another
# addition function call. ex add(add(2,3), add(3,4))
#######################################################################################
# 13.4
# Make a function that divides 3 numbers (they divide each other). Return none if
# any of them are 0. Then use it
#######################################################################################
# 13.5
# Make a function that takes a list and prints each element out seperately. Then use it.
#######################################################################################
# 13.6
# Make your own index function. Return nothing if it can't be found
#######################################################################################
# 13.7
# Fix this code so that it prints:
# 25
# 20
def print2():
x=20
y=5
print(x+y)
print2()
print(x)
#######################################################################################
# 13.8
# Fix this code so that it prints:
# 7 5
# 7
x=10 #DON'T CHANGE THIS
def print3():
x=7
y=5
print(x,y)
print3()
print(x) | def print2():
x = 20
y = 5
print(x + y)
print2()
print(x)
x = 10
def print3():
x = 7
y = 5
print(x, y)
print3()
print(x) |
DEFAULT_KAFKA_PORT = 9092
#: Compression flag value denoting ``gzip`` was used
GZIP = 1
#: Compression flag value denoting ``snappy`` was used
SNAPPY = 2
#: This set denotes the compression schemes currently supported by Kiel
SUPPORTED_COMPRESSION = (None, GZIP, SNAPPY)
CLIENT_ID = "kiel"
#: The "api version" value sent over the wire. Currently always 0
API_VERSION = 0
#: Mapping of response api codes and their names
API_KEYS = {
"produce": 0,
"fetch": 1,
"offset": 2,
"metadata": 3,
"offset_commit": 8,
"offset_fetch": 9,
"group_coordinator": 10,
"join_group": 11,
"heartbeat": 12,
"leave_group": 13,
"sync_group": 14,
"describe_groups": 15,
"list_groups": 16,
}
#: All consumers use replica id -1, other values are meant to be
#: used by Kafka itself.
CONSUMER_REPLICA_ID = -1
#: A mapping of known error codes to their string values
ERROR_CODES = {
0: "no_error",
-1: "unknown",
1: "offset_out_of_range",
2: "invalid_message",
3: "unknown_topic_or_partition",
4: "invalid_message_size",
5: "leader_not_available",
6: "not_partition_leader",
7: "request_timed_out",
8: "broker_not_available",
9: "replica_not_available",
10: "message_size_too_large",
11: "stale_controller_epoch",
12: "offset_metadata_too_large",
14: "offsets_load_in_progress",
15: "coordinator_not_available",
16: "not_coordinator",
17: "invalid_topic",
18: "record_list_too_large",
19: "not_enough_replicas",
20: "not_enough_replicas_after_append",
21: "invalid_required_acks",
22: "illegal_generation",
23: "inconsistent_group_protocol",
24: "invalid_group_id",
25: "unknown_member_id",
26: "invalid_session_timeout",
27: "rebalance_in_progress",
28: "invalid_commit_offset_size",
29: "topic_authorization_failed",
30: "group_authorization_failed",
31: "cluster_authorization_failed",
}
#: Set of error codes marked "retryable" by the Kafka docs.
RETRIABLE_CODES = set([
"invalid_message",
"unknown_topic_or_partition",
"leader_not_available",
"not_partition_leader",
"request_timed_out",
"offsets_load_in_progress",
"coordinator_not_available",
"not_coordinator",
"not_enough_replicas",
"not_enough_replicas_after_append",
])
| default_kafka_port = 9092
gzip = 1
snappy = 2
supported_compression = (None, GZIP, SNAPPY)
client_id = 'kiel'
api_version = 0
api_keys = {'produce': 0, 'fetch': 1, 'offset': 2, 'metadata': 3, 'offset_commit': 8, 'offset_fetch': 9, 'group_coordinator': 10, 'join_group': 11, 'heartbeat': 12, 'leave_group': 13, 'sync_group': 14, 'describe_groups': 15, 'list_groups': 16}
consumer_replica_id = -1
error_codes = {0: 'no_error', -1: 'unknown', 1: 'offset_out_of_range', 2: 'invalid_message', 3: 'unknown_topic_or_partition', 4: 'invalid_message_size', 5: 'leader_not_available', 6: 'not_partition_leader', 7: 'request_timed_out', 8: 'broker_not_available', 9: 'replica_not_available', 10: 'message_size_too_large', 11: 'stale_controller_epoch', 12: 'offset_metadata_too_large', 14: 'offsets_load_in_progress', 15: 'coordinator_not_available', 16: 'not_coordinator', 17: 'invalid_topic', 18: 'record_list_too_large', 19: 'not_enough_replicas', 20: 'not_enough_replicas_after_append', 21: 'invalid_required_acks', 22: 'illegal_generation', 23: 'inconsistent_group_protocol', 24: 'invalid_group_id', 25: 'unknown_member_id', 26: 'invalid_session_timeout', 27: 'rebalance_in_progress', 28: 'invalid_commit_offset_size', 29: 'topic_authorization_failed', 30: 'group_authorization_failed', 31: 'cluster_authorization_failed'}
retriable_codes = set(['invalid_message', 'unknown_topic_or_partition', 'leader_not_available', 'not_partition_leader', 'request_timed_out', 'offsets_load_in_progress', 'coordinator_not_available', 'not_coordinator', 'not_enough_replicas', 'not_enough_replicas_after_append']) |
css = [
'about.css',
'button.css',
'frame.css',
'faq.css',
'index.css',
'map.css',
'ramanujan.css',
'rocket.css',
'shelf.css',
'snackbar.css',
'timeline.css',
'typewriter.css',
'mobile.css',
'info.css'
]
concat = ''
for i in css:
with open(f'css/{i}') as f:
concat += f.read()
concat += '\n\n'
f = open("css/concat.css","w+")
f.write(concat)
f.close() | css = ['about.css', 'button.css', 'frame.css', 'faq.css', 'index.css', 'map.css', 'ramanujan.css', 'rocket.css', 'shelf.css', 'snackbar.css', 'timeline.css', 'typewriter.css', 'mobile.css', 'info.css']
concat = ''
for i in css:
with open(f'css/{i}') as f:
concat += f.read()
concat += '\n\n'
f = open('css/concat.css', 'w+')
f.write(concat)
f.close() |
CONTROLLERS = {}
def controller(code):
def register_controller(func):
CONTROLLERS[code] = func
return func
return register_controller
def get_controller_func(controller):
if controller in CONTROLLERS:
return CONTROLLERS[controller]
raise ValueError('Invalid request')
| controllers = {}
def controller(code):
def register_controller(func):
CONTROLLERS[code] = func
return func
return register_controller
def get_controller_func(controller):
if controller in CONTROLLERS:
return CONTROLLERS[controller]
raise value_error('Invalid request') |
course = ' Python for Beginners '
print(len(course)) # Genereal perpous function
print(course.upper())
print(course)
print(course.lower())
print(course.title())
print(course.lstrip())
print(course.rstrip())
# Returns the index of the first occurrence of the character.
print(course.find('P'))
print(course.find('B'))
print(course.find('o'))
print(course.find('O'))
print(course.find('Beginners'))
print(course.replace("Beginners", "Absolute Beginners"))
print(course.replace("P", "C"))
# Check existence of a character or a sequence of characters
print("Python" in course) # True
print("python" in course) # False
print("python" not in course) # True
| course = ' Python for Beginners '
print(len(course))
print(course.upper())
print(course)
print(course.lower())
print(course.title())
print(course.lstrip())
print(course.rstrip())
print(course.find('P'))
print(course.find('B'))
print(course.find('o'))
print(course.find('O'))
print(course.find('Beginners'))
print(course.replace('Beginners', 'Absolute Beginners'))
print(course.replace('P', 'C'))
print('Python' in course)
print('python' in course)
print('python' not in course) |
print("Hello World!")
x = "Hello World"
print(x)
y = 42
print(y) | print('Hello World!')
x = 'Hello World'
print(x)
y = 42
print(y) |
class Policy(object):
""" Base policy """
def __init__(self, action_low=None, action_high=None):
self.action_low = action_low
self.action_high = action_high
def action(self, state, sim_time=0, desired=[], actual=[]):
pass
def reset(self):
pass
| class Policy(object):
""" Base policy """
def __init__(self, action_low=None, action_high=None):
self.action_low = action_low
self.action_high = action_high
def action(self, state, sim_time=0, desired=[], actual=[]):
pass
def reset(self):
pass |
class DefineRegion(object):
def __init__(self):
self.x = self.y = 10.0
self.depth = 1.0
self.subvolume_edge = 1.0
self.cytosol_depth = 10.0
self.num_chambers = (self.x / self.subvolume_edge) * (self.y / self.subvolume_edge) * (
self.depth / self.subvolume_edge)
self.num_cytosol_chambers = self.num_chambers * self.cytosol_depth
def define_region(self, f):
f.write('region World box width 1 height 1 depth 1\n')
f.write('subvolume edge 1\n\n')
def define_membrane_region(self, f):
f.write('region Plasma \n \t box width {0} height {1} depth {2}\n\n'.format(self.x, self.y, self.depth))
f.write('region Cytosol \n ')
f.write('\t move 0 0 -{0} \n'.format(self.cytosol_depth / 2.0))
f.write('\t\t box width {0} height {1} depth {2}\n\n'.format(self.x, self.y, self.cytosol_depth))
f.write('subvolume edge {0}\n\n'.format(self.subvolume_edge))
class InitialConcentrations(object):
def __init__(self):
self.r_0 = 30000
self.lck_0 = 30000
self.zap_0 = 1200000
self.lat_0 = 150000
self.sos_0 = 1000
self.ras_gdp_0 = 1000
self.ras_gap_0 = 10
class BindingParameters(object):
def __init__(self):
# Initial Conditions
self.initial = InitialConcentrations()
# Zeroth Cycle ligand binding
self.k_L_on = 0.0022
self.k_foreign_off = 0.2
self.k_self_off = 2.0 # 10.0 * self.k_foreign_off
# First Cycle Lck binding
self.on_rate = 2.0 # / 10.0
self.k_lck_on_R_pmhc = (self.on_rate / self.initial.lck_0) # * 100.0
self.k_lck_off_R_pmhc = self.k_foreign_off / 40.0
self.k_lck_on_R = 0.0 # 1.0 / 100000.0
self.k_lck_off_R = 20.0
# Second Cycle Lck phosphorylation
self.k_p_on_R_pmhc = self.on_rate / 10.0
self.k_p_off_R_pmhc = self.k_foreign_off / 40.0 # self.k_foreign_off / 10.0
self.k_lck_on_RP = 1.0 / 100000.0
self.k_lck_off_RP = 20.0
self.k_p_on_R = 0.0 # 1.0 / 100000.0
self.k_p_off_R = 20.0
# Third Cycle Zap binding
self.k_zap_on_R_pmhc = (self.on_rate / self.initial.zap_0) # * 100.0
self.k_zap_off_R_pmhc = self.k_lck_off_R_pmhc
self.k_lck_on_zap_R = self.k_lck_on_RP
self.k_lck_off_zap_R = 20.0
self.k_zap_on_R = 1.0 / 100000.0
self.k_zap_off_R = 20.0
# Fourth Cycle phosphorylate zap
self.k_p_on_zap_species = self.on_rate # / 10.0
self.k_p_off_zap_species = self.k_p_off_R_pmhc
self.k_lck_on_zap_p = self.k_lck_on_RP
self.k_lck_off_zap_p = self.k_lck_off_zap_R
# Fifth Negative Feedback Loop
self.k_negative_loop = 0.0 # 5.0
self.k_lcki = 0.01
# Sixth LAT on
self.k_lat_on_species = self.on_rate / self.initial.lat_0
self.k_lat_off_species = self.k_lck_off_R_pmhc
self.k_lat_on_rp_zap = self.k_zap_on_R
self.k_lat_off_rp_zap = 20.0
# Seventh first LAT phosphorylation
self.k_p_lat_1 = self.on_rate
# Eighth second LAT phosphorylation
self.k_p_lat_2 = self.on_rate # / 10.0 # / 10.0 # self.k_p_on_zap_species / 100
self.k_p_lat_off_species = self.k_p_off_R_pmhc
self.k_p_on_lat = self.k_p_on_R
self.k_p_off_lat = 20.0
# Eighth Sos on
self.k_sos_on = 0.001
self.k_sos_off = 0.005
self.multiplier = 10.0
# Ninth Sos RasGDP and RasGTP
self.k_sos_on_rgdp = 0.0024 * self.multiplier
self.k_sos_off_rgdp = 3.0 * self.multiplier
self.k_sos_on_rgtp = 0.0022 * self.multiplier # * 12.0
self.k_sos_off_rgtp = 0.4 * self.multiplier
# Tenth
# sos_rgtp + rgdp
self.k_rgdp_on_sos_rgtp = 0.001 * self.multiplier
self.k_rgdp_off_sos_rgtp = 0.1 * self.multiplier
self.k_cat_3 = 0.038 * 1.3 * self.multiplier
# sos_rgdp + rgdp
self.k_rgdp_on_sos_rgdp = 0.0014 * self.multiplier
self.k_rgdp_off_sos_rgdp = 1.0 * self.multiplier
self.k_cat_4 = 0.003 * self.multiplier
# rgap + rgtp -> rgdp
self.k_rgap_on_rgtp = 0.0348 * self.multiplier
self.k_rgap_off_rgtp = 0.2 * self.multiplier
self.k_cat_5 = 0.1 * self.multiplier
# Eighth LAT -> final product
self.k_product_on = 0.008
self.k_product_off = self.k_p_off_R_pmhc
# Ninth: Positive Feedback Loop
self.k_positive_loop = 0.0025
# # Eighth Grb on
# self.k_grb_on_species = self.k_lck_on_R_pmhc
# self.k_grb_off_species = self.k_lck_off_R_pmhc
#
# # Ninth Sos on
# self.k_sos_on_species = self.k_lck_on_R_pmhc
# self.k_sos_off_species = self.k_lck_off_R_pmhc
#
# # Tenth Ras-GDP on
# self.k_ras_on_species = self.k_lck_on_R_pmhc
# self.k_ras_off_species = self.k_lck_off_R_pmhc
class MembraneInitialConcentrations(InitialConcentrations):
def __init__(self):
InitialConcentrations.__init__(self)
# self.r_0 = 300 # 75
# self.lck_0 = 300 # 2705
# self.zap_0 = 12000 # 12180
self.lat_0 = 1522
class DiffusionRates(object):
def __init__(self):
self.region = DefineRegion()
self.d_r = self.d_l = self.d_rl = 0.13 * self.region.num_chambers
self.d_lck = 0.085 * self.region.num_chambers
self.d_zap = 10.0
class MembraneBindingParameters(object):
def __init__(self):
# Initial Conditions
self.initial = MembraneInitialConcentrations()
self.region = DefineRegion()
self.rates = BindingParameters()
# Zeroth Cycle ligand binding
self.k_L_on = self.rates.k_L_on * self.region.num_chambers
self.k_foreign_off = self.rates.k_foreign_off
self.k_self_off = self.rates.k_self_off
# Lck binding - 1st cycle
self.on_rate = self.rates.on_rate
self.k_lck_on_R_pmhc = (self.on_rate / self.initial.lck_0) * self.region.num_chambers
self.k_lck_off_R_pmhc = self.rates.k_lck_off_R_pmhc
self.k_lck_on_R = self.rates.k_lck_on_R * self.region.num_chambers
self.k_lck_off_R = self.rates.k_lck_off_R
# ITAM phosphorylation - 2nd cycle
self.k_p_on_R_pmhc = self.on_rate
self.k_p_off_R_pmhc = self.rates.k_p_off_R_pmhc
self.k_lck_on_RP = self.rates.k_lck_on_RP * self.region.num_chambers
self.k_lck_off_RP = self.rates.k_lck_off_RP
self.k_p_on_R = self.rates.k_p_on_R
self.k_p_off_R = self.rates.k_p_off_R
# Zap 70 binding to ITAMs - 3rd cycle
self.k_zap_on_R_pmhc = (self.on_rate / self.initial.zap_0) * self.region.num_chambers # * 100.0
self.k_zap_off_R_pmhc = self.rates.k_zap_off_R_pmhc
self.k_lck_on_zap_R = self.rates.k_lck_on_zap_R * self.region.num_chambers
self.k_lck_off_zap_R = self.rates.k_lck_off_zap_R
self.k_zap_on_R = self.rates.k_zap_on_R * self.region.num_chambers
self.k_zap_off_R = self.rates.k_zap_off_R
# Fourth Cycle phosphorylate zap
self.k_p_on_zap_species = self.on_rate # / 10.0
self.k_p_off_zap_species = 0.1 # self.k_p_off_R_pmhc
| class Defineregion(object):
def __init__(self):
self.x = self.y = 10.0
self.depth = 1.0
self.subvolume_edge = 1.0
self.cytosol_depth = 10.0
self.num_chambers = self.x / self.subvolume_edge * (self.y / self.subvolume_edge) * (self.depth / self.subvolume_edge)
self.num_cytosol_chambers = self.num_chambers * self.cytosol_depth
def define_region(self, f):
f.write('region World box width 1 height 1 depth 1\n')
f.write('subvolume edge 1\n\n')
def define_membrane_region(self, f):
f.write('region Plasma \n \t box width {0} height {1} depth {2}\n\n'.format(self.x, self.y, self.depth))
f.write('region Cytosol \n ')
f.write('\t move 0 0 -{0} \n'.format(self.cytosol_depth / 2.0))
f.write('\t\t box width {0} height {1} depth {2}\n\n'.format(self.x, self.y, self.cytosol_depth))
f.write('subvolume edge {0}\n\n'.format(self.subvolume_edge))
class Initialconcentrations(object):
def __init__(self):
self.r_0 = 30000
self.lck_0 = 30000
self.zap_0 = 1200000
self.lat_0 = 150000
self.sos_0 = 1000
self.ras_gdp_0 = 1000
self.ras_gap_0 = 10
class Bindingparameters(object):
def __init__(self):
self.initial = initial_concentrations()
self.k_L_on = 0.0022
self.k_foreign_off = 0.2
self.k_self_off = 2.0
self.on_rate = 2.0
self.k_lck_on_R_pmhc = self.on_rate / self.initial.lck_0
self.k_lck_off_R_pmhc = self.k_foreign_off / 40.0
self.k_lck_on_R = 0.0
self.k_lck_off_R = 20.0
self.k_p_on_R_pmhc = self.on_rate / 10.0
self.k_p_off_R_pmhc = self.k_foreign_off / 40.0
self.k_lck_on_RP = 1.0 / 100000.0
self.k_lck_off_RP = 20.0
self.k_p_on_R = 0.0
self.k_p_off_R = 20.0
self.k_zap_on_R_pmhc = self.on_rate / self.initial.zap_0
self.k_zap_off_R_pmhc = self.k_lck_off_R_pmhc
self.k_lck_on_zap_R = self.k_lck_on_RP
self.k_lck_off_zap_R = 20.0
self.k_zap_on_R = 1.0 / 100000.0
self.k_zap_off_R = 20.0
self.k_p_on_zap_species = self.on_rate
self.k_p_off_zap_species = self.k_p_off_R_pmhc
self.k_lck_on_zap_p = self.k_lck_on_RP
self.k_lck_off_zap_p = self.k_lck_off_zap_R
self.k_negative_loop = 0.0
self.k_lcki = 0.01
self.k_lat_on_species = self.on_rate / self.initial.lat_0
self.k_lat_off_species = self.k_lck_off_R_pmhc
self.k_lat_on_rp_zap = self.k_zap_on_R
self.k_lat_off_rp_zap = 20.0
self.k_p_lat_1 = self.on_rate
self.k_p_lat_2 = self.on_rate
self.k_p_lat_off_species = self.k_p_off_R_pmhc
self.k_p_on_lat = self.k_p_on_R
self.k_p_off_lat = 20.0
self.k_sos_on = 0.001
self.k_sos_off = 0.005
self.multiplier = 10.0
self.k_sos_on_rgdp = 0.0024 * self.multiplier
self.k_sos_off_rgdp = 3.0 * self.multiplier
self.k_sos_on_rgtp = 0.0022 * self.multiplier
self.k_sos_off_rgtp = 0.4 * self.multiplier
self.k_rgdp_on_sos_rgtp = 0.001 * self.multiplier
self.k_rgdp_off_sos_rgtp = 0.1 * self.multiplier
self.k_cat_3 = 0.038 * 1.3 * self.multiplier
self.k_rgdp_on_sos_rgdp = 0.0014 * self.multiplier
self.k_rgdp_off_sos_rgdp = 1.0 * self.multiplier
self.k_cat_4 = 0.003 * self.multiplier
self.k_rgap_on_rgtp = 0.0348 * self.multiplier
self.k_rgap_off_rgtp = 0.2 * self.multiplier
self.k_cat_5 = 0.1 * self.multiplier
self.k_product_on = 0.008
self.k_product_off = self.k_p_off_R_pmhc
self.k_positive_loop = 0.0025
class Membraneinitialconcentrations(InitialConcentrations):
def __init__(self):
InitialConcentrations.__init__(self)
self.lat_0 = 1522
class Diffusionrates(object):
def __init__(self):
self.region = define_region()
self.d_r = self.d_l = self.d_rl = 0.13 * self.region.num_chambers
self.d_lck = 0.085 * self.region.num_chambers
self.d_zap = 10.0
class Membranebindingparameters(object):
def __init__(self):
self.initial = membrane_initial_concentrations()
self.region = define_region()
self.rates = binding_parameters()
self.k_L_on = self.rates.k_L_on * self.region.num_chambers
self.k_foreign_off = self.rates.k_foreign_off
self.k_self_off = self.rates.k_self_off
self.on_rate = self.rates.on_rate
self.k_lck_on_R_pmhc = self.on_rate / self.initial.lck_0 * self.region.num_chambers
self.k_lck_off_R_pmhc = self.rates.k_lck_off_R_pmhc
self.k_lck_on_R = self.rates.k_lck_on_R * self.region.num_chambers
self.k_lck_off_R = self.rates.k_lck_off_R
self.k_p_on_R_pmhc = self.on_rate
self.k_p_off_R_pmhc = self.rates.k_p_off_R_pmhc
self.k_lck_on_RP = self.rates.k_lck_on_RP * self.region.num_chambers
self.k_lck_off_RP = self.rates.k_lck_off_RP
self.k_p_on_R = self.rates.k_p_on_R
self.k_p_off_R = self.rates.k_p_off_R
self.k_zap_on_R_pmhc = self.on_rate / self.initial.zap_0 * self.region.num_chambers
self.k_zap_off_R_pmhc = self.rates.k_zap_off_R_pmhc
self.k_lck_on_zap_R = self.rates.k_lck_on_zap_R * self.region.num_chambers
self.k_lck_off_zap_R = self.rates.k_lck_off_zap_R
self.k_zap_on_R = self.rates.k_zap_on_R * self.region.num_chambers
self.k_zap_off_R = self.rates.k_zap_off_R
self.k_p_on_zap_species = self.on_rate
self.k_p_off_zap_species = 0.1 |
#!/usr/bin/env python3
'''module that deals with functions'''
def commandpush(devicecmd): #devicecmd=list
''' push commands to devices '''
for coffeetime in devicecmd.keys():
print("Handshaking......connecting with " + coffeetime)
for mycmds in devicecmd[coffeetime]:
print("Attempting to sending command --> " + mycmds)
print("\n")
def betterpush(filename): #file name having ip and commands
'''better push commands to devices'''
fstream = open(filename, "r")
#lines = fstream.readlines()
for l_a in fstream:
#print(l)
s_a = str(l_a).strip()
#print(s)
print(s_a.isnumeric())
#if s.isalpha()== True:
# print("Attempting to sending command --> " + s, end="")
#else:
# print("Handshanking....connecting with " + s, end="")
def deviceboot(iplist): #list of IPs
'''boot list of IPs '''
for ip_a in iplist:
print("Connecting to... " + ip_a)
print("Rebooting NOW!...")
def main():
''' main function '''
work2do = {"10.1.0.1":["interface eth1/2", "no shut"],
"10.2.0.1":["interface eth1/1", "shutdown"]}
iplist = ["10.1.0.1", "10.2.0.1"]
work2do_file = "work2do.txt"
print("Welcome to the network device command pusher") # welcome message
#get data set
print("\nData set found\n") # replace with function call that reads in data from file
betterpush(work2do_file)
print("\n")
##run commandpush
commandpush(work2do) # call function to push commands to devices
#run deviceboot
deviceboot(iplist)
#call main function
main()
| """module that deals with functions"""
def commandpush(devicecmd):
""" push commands to devices """
for coffeetime in devicecmd.keys():
print('Handshaking......connecting with ' + coffeetime)
for mycmds in devicecmd[coffeetime]:
print('Attempting to sending command --> ' + mycmds)
print('\n')
def betterpush(filename):
"""better push commands to devices"""
fstream = open(filename, 'r')
for l_a in fstream:
s_a = str(l_a).strip()
print(s_a.isnumeric())
def deviceboot(iplist):
"""boot list of IPs """
for ip_a in iplist:
print('Connecting to... ' + ip_a)
print('Rebooting NOW!...')
def main():
""" main function """
work2do = {'10.1.0.1': ['interface eth1/2', 'no shut'], '10.2.0.1': ['interface eth1/1', 'shutdown']}
iplist = ['10.1.0.1', '10.2.0.1']
work2do_file = 'work2do.txt'
print('Welcome to the network device command pusher')
print('\nData set found\n')
betterpush(work2do_file)
print('\n')
commandpush(work2do)
deviceboot(iplist)
main() |
for v in range(0, 3):
print(v)
for i, v in enumerate(range(10, 13)):
print(i, v)
for key, value in {'A': 0, 'B': 1}.items():
print(key, value)
| for v in range(0, 3):
print(v)
for (i, v) in enumerate(range(10, 13)):
print(i, v)
for (key, value) in {'A': 0, 'B': 1}.items():
print(key, value) |
n=22351
l=[]
s=str(n)
for ch in s:
l= l + [int(ch)]
highest=sorted (l,reverse=True)
s=""
for ch in highest:
s=s+ str(ch)
highest=int(s)
n=9
for i in range(n +1,highest+1):
print(i)
| n = 22351
l = []
s = str(n)
for ch in s:
l = l + [int(ch)]
highest = sorted(l, reverse=True)
s = ''
for ch in highest:
s = s + str(ch)
highest = int(s)
n = 9
for i in range(n + 1, highest + 1):
print(i) |
class Solution(object):
def intersection(self, nums1, nums2):
if len(nums1) > len(nums2):
return self.intersection(nums2, nums1)
lookup = set()
for i in nums1:
lookup.add(i)
res = []
for i in nums2:
if i in lookup:
res += i,
lookup.discard(i)
return res
nums1 = [1,2,2,1]
nums2 = [2,2]
res = Solution().intersection(nums1, nums2)
print(res) | class Solution(object):
def intersection(self, nums1, nums2):
if len(nums1) > len(nums2):
return self.intersection(nums2, nums1)
lookup = set()
for i in nums1:
lookup.add(i)
res = []
for i in nums2:
if i in lookup:
res += (i,)
lookup.discard(i)
return res
nums1 = [1, 2, 2, 1]
nums2 = [2, 2]
res = solution().intersection(nums1, nums2)
print(res) |
def add(a, b):
return a + b
def multiply(a, b):
return a * b
assert add(10, 10) == 100, "confused addition"
assert multiply(10, 10) == 20, "confused multiplication"
| def add(a, b):
return a + b
def multiply(a, b):
return a * b
assert add(10, 10) == 100, 'confused addition'
assert multiply(10, 10) == 20, 'confused multiplication' |
def linear_search(a, key):
length = len(a)
idx = 0
while idx < length:
if a[idx] == key:
return idx
idx += 1
return -1
a = [1, 3, 5, 10, 13]
key = 5
print(linear_search(a, key))
| def linear_search(a, key):
length = len(a)
idx = 0
while idx < length:
if a[idx] == key:
return idx
idx += 1
return -1
a = [1, 3, 5, 10, 13]
key = 5
print(linear_search(a, key)) |
# increment.py
"""This increments (creates a new) serial number with every invocation of the class."""
# STATUS: Not working. See FIXME tag below.
# from https://app.pluralsight.com/course-player?clipId=bf34ecab-aa3e-402b-961d-53efb624b957
class ShippingContainer: # Global scope
# Class attributes here:
next_serial = 1337 # IRL this would be obtained from a persistant database?
def __init__(self, owner_code, contents):
# self. instance attributes:
self.owner_code = owner_code
self.contents = contents
self.serial = ShippingContainer.next_serial
# Class attributes:
ShippingContainer.next_serial += 1 # increment
##############
print(f'Executing from ShippingContainer.next_serial={ShippingContainer.next_serial} :')
owner_code="ESC"
contents='["Electronics"]'
print(f'owner_code={owner_code} contents={contents}')
#print(f'ShippingContainer.owner_code={ShippingContainer.owner_code}')
#print(f'ShippingContainer.contents={ShippingContainer.contents}')
# FIXTHIS: No incrementing:
c4 = ShippingContainer(owner_code, contents)
print(c4.serial)
"""
c1 = ShippingContainer.next_serial
print(c1)
c1 = ShippingContainer.next_serial
print(c1)
c3 = ShippingContainer("ESC", ["Pharmaceuticals"])
c4 = ShippingContainer("ESC", ["Pharmaceuticals"])
c5 = ShippingContainer("ESC", ["Pharmaceuticals"])
c6 = ShippingContainer("ESC", ["Noodles"])
""" | """This increments (creates a new) serial number with every invocation of the class."""
class Shippingcontainer:
next_serial = 1337
def __init__(self, owner_code, contents):
self.owner_code = owner_code
self.contents = contents
self.serial = ShippingContainer.next_serial
ShippingContainer.next_serial += 1
print(f'Executing from ShippingContainer.next_serial={ShippingContainer.next_serial} :')
owner_code = 'ESC'
contents = '["Electronics"]'
print(f'owner_code={owner_code} contents={contents}')
c4 = shipping_container(owner_code, contents)
print(c4.serial)
'\nc1 = ShippingContainer.next_serial\nprint(c1)\nc1 = ShippingContainer.next_serial\nprint(c1)\n\nc3 = ShippingContainer("ESC", ["Pharmaceuticals"])\nc4 = ShippingContainer("ESC", ["Pharmaceuticals"])\nc5 = ShippingContainer("ESC", ["Pharmaceuticals"])\nc6 = ShippingContainer("ESC", ["Noodles"])\n' |
class Bar():
pass
def t1():
raise Bar()
def t2():
return Bar()
| class Bar:
pass
def t1():
raise bar()
def t2():
return bar() |
f = open("pb2.txt")
n = int(f.readline())
P = []
for i in range(n):
x, y = f.readline().split()
P.append((float(x), float(y))) # citirea punctelor poligonului
print("n=", n, " P=", P)
# pentru x-monotonie, de exemplu, vreau sa iau cel mai din stanga punct si sa parcurg punctele pentru ca sunt date in sens trigonometric
# si la fiecare punct verific monotonia lui x, iar dupa o parcurgere totala sa aiba o singura schimbare de monotonie
# pt y-monotonie ma duc din cel mai jos punct
# Prima data pentru x-monotonie
minim = P[0][0]
indexmin = -1
for i in range(len(P)):
if P[i][0] < minim:
minim = P[i][0] # caut x-ul minim
indexmin = i # si retin si pozitia sa in poligon
monotonie, elem_precedent, okx = 1, P[indexmin][0], 0 # un boolean pt monotonie, o variabila unde retin elementul precedent si un boolean ok
for i in range(1, len(P)): # parcurg toate celelalte puncte
k = (i + indexmin) % len(P) # formula pentru a lua in continuare punctele in sens trigonometric (adica pentru exemplul cu 6 puncte, aleg D si merg in continuare cu E,F,A,..)
elem_curent = P[k][0] # iau x-ul ca sa verific monotonia
if elem_curent < elem_precedent: # daca elemntul nou este mai mic decat cel precedent (daca se cerea monotonie strica puneam <=)
monotonie = 0 # atunci am schimbat monotonia: ori nu e poligon x-monoton, ori am ajuns in cel mai din dreapta punct
# am schimbat monotonia si ar trebui sa am doar elemente curente mai mici ca cele precedente
if elem_curent > elem_precedent and monotonie == 0: # daca intru pe if-ul asta atunci am schimbat monotonia si ar trebui sa am doar elemente curent mai mici ca cele precedente
print("Poligonul NU este x-monoton!") # evident daca nu e indeplinita conditia opresc si afisez ce trebuie
okx = 1
break
elem_precedent = elem_curent # elementul curent devinde cel precedent si parcurg in continuare
if okx == 0:
print("Poligonul ESTE x-monoton!")
# la fel si pentru y-monotonie, aceleasi explicatii ca la x-monotonie doar ca parcurg din cel mai sudic punct pana la cel mai nordic
# si dupa verific invers proprietatea
minim = P[0][1]
indexmin = -1
for i in range(len(P)):
if P[i][1] < minim:
minim = P[i][1] # caut y-ul minim
indexmin = i # si retin si pozitia sa in poligon
monotonie, elem_precedent, oky = 1, P[indexmin][1], 0
for i in range(1, len(P)): # parcurg toate celelalte puncte
k = (i + indexmin) % len(P)
elem_curent = P[k][1]
if elem_curent < elem_precedent: # pentru ca nu se cere strict monotonie, nu caut cu <=
monotonie = 0 # am schimbat monotonia, ori nu e poligon y-monoton, ori am ajuns in cel mai de sus punct
if elem_curent > elem_precedent and monotonie == 0:
print("Poligonul NU este y-monoton!")
oky = 1
break
elem_precedent = elem_curent
if oky == 0:
print("Poligonul ESTE y-monoton!")
# pentru n = 6 si punctele aferente :
# n= 6 P= [(4.0, 5.0), (5.0, 7.0), (5.0, 9.0), (2.0, 5.0), (4.0, 2.0), (6.0, 3.0)]
# Poligonul NU este x-monoton!
# Poligonul ESTE y-monoton!
# pentru n = 8 si punctele aferente
# n= 8 P= [(8.0, 7.0), (7.0, 5.0), (4.0, 5.0), (3.0, 9.0), (0.0, 1.0), (5.0, 2.0), (3.0, 3.0), (10.0, 3.0)]
# Poligonul NU este x-monoton!
# Poligonul NU este y-monoton!
| f = open('pb2.txt')
n = int(f.readline())
p = []
for i in range(n):
(x, y) = f.readline().split()
P.append((float(x), float(y)))
print('n=', n, ' P=', P)
minim = P[0][0]
indexmin = -1
for i in range(len(P)):
if P[i][0] < minim:
minim = P[i][0]
indexmin = i
(monotonie, elem_precedent, okx) = (1, P[indexmin][0], 0)
for i in range(1, len(P)):
k = (i + indexmin) % len(P)
elem_curent = P[k][0]
if elem_curent < elem_precedent:
monotonie = 0
if elem_curent > elem_precedent and monotonie == 0:
print('Poligonul NU este x-monoton!')
okx = 1
break
elem_precedent = elem_curent
if okx == 0:
print('Poligonul ESTE x-monoton!')
minim = P[0][1]
indexmin = -1
for i in range(len(P)):
if P[i][1] < minim:
minim = P[i][1]
indexmin = i
(monotonie, elem_precedent, oky) = (1, P[indexmin][1], 0)
for i in range(1, len(P)):
k = (i + indexmin) % len(P)
elem_curent = P[k][1]
if elem_curent < elem_precedent:
monotonie = 0
if elem_curent > elem_precedent and monotonie == 0:
print('Poligonul NU este y-monoton!')
oky = 1
break
elem_precedent = elem_curent
if oky == 0:
print('Poligonul ESTE y-monoton!') |
def histogram(s):
'''
Maps values of sequence to its frequency / occurrence.
s: sequence
'''
d = {}
for c in s:
d[c] = d.get(c, 0) + 1
return d
def invert_dict(d):
'''
Inverts a dictionary(d).
Returns dictionary with values of d as keys and keys of d as values.
d: dictionary
'''
inverse = {}
for k in d:
inverse.setdefault(d[k], []).append(k)
return inverse
print(invert_dict(histogram("sarcastic")))
| def histogram(s):
"""
Maps values of sequence to its frequency / occurrence.
s: sequence
"""
d = {}
for c in s:
d[c] = d.get(c, 0) + 1
return d
def invert_dict(d):
"""
Inverts a dictionary(d).
Returns dictionary with values of d as keys and keys of d as values.
d: dictionary
"""
inverse = {}
for k in d:
inverse.setdefault(d[k], []).append(k)
return inverse
print(invert_dict(histogram('sarcastic'))) |
#
# PySNMP MIB module OMNI-gx2EDFA-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OMNI-gx2EDFA-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:24:00 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)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion")
gx2EDFA, = mibBuilder.importSymbols("GX2HFC-MIB", "gx2EDFA")
motproxies, gi = mibBuilder.importSymbols("NLS-BBNIDENT-MIB", "motproxies", "gi")
trapChangedObjectId, trapPerceivedSeverity, trapNetworkElemOperState, trapNetworkElemAdminState, trapNetworkElemAlarmStatus, trapText, trapNETrapLastTrapTimeStamp, trapIdentifier, trapNetworkElemSerialNum, trapChangedValueInteger, trapChangedValueDisplayString, trapNetworkElemAvailStatus, trapNetworkElemModelNumber = mibBuilder.importSymbols("NLSBBN-TRAPS-MIB", "trapChangedObjectId", "trapPerceivedSeverity", "trapNetworkElemOperState", "trapNetworkElemAdminState", "trapNetworkElemAlarmStatus", "trapText", "trapNETrapLastTrapTimeStamp", "trapIdentifier", "trapNetworkElemSerialNum", "trapChangedValueInteger", "trapChangedValueDisplayString", "trapNetworkElemAvailStatus", "trapNetworkElemModelNumber")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
sysUpTime, = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime")
MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Counter64, Unsigned32, TimeTicks, Counter32, IpAddress, MibIdentifier, iso, ModuleIdentity, Bits, NotificationType, ObjectIdentity, Integer32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Counter64", "Unsigned32", "TimeTicks", "Counter32", "IpAddress", "MibIdentifier", "iso", "ModuleIdentity", "Bits", "NotificationType", "ObjectIdentity", "Integer32", "NotificationType")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
class Float(Counter32):
pass
gx2EDFADescriptor = MibIdentifier((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 1))
gx2EDFAAnalogTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2), )
if mibBuilder.loadTexts: gx2EDFAAnalogTable.setStatus('mandatory')
gx2EDFAAnalogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "edfagx2EDFAAnalogTableIndex"))
if mibBuilder.loadTexts: gx2EDFAAnalogEntry.setStatus('mandatory')
gx2EDFADigitalTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3), )
if mibBuilder.loadTexts: gx2EDFADigitalTable.setStatus('mandatory')
gx2EDFADigitalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "edfagx2EDFADigitalTableIndex"))
if mibBuilder.loadTexts: gx2EDFADigitalEntry.setStatus('mandatory')
gx2EDFAStatusTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4), )
if mibBuilder.loadTexts: gx2EDFAStatusTable.setStatus('mandatory')
gx2EDFAStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "edfagx2EDFAStatusTableIndex"))
if mibBuilder.loadTexts: gx2EDFAStatusEntry.setStatus('mandatory')
gx2EDFAFactoryTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5), )
if mibBuilder.loadTexts: gx2EDFAFactoryTable.setStatus('mandatory')
gx2EDFAFactoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "edfagx2EDFAFactoryTableIndex"))
if mibBuilder.loadTexts: gx2EDFAFactoryEntry.setStatus('mandatory')
gx2EDFAHoldTimeTable = MibTable((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6), )
if mibBuilder.loadTexts: gx2EDFAHoldTimeTable.setStatus('mandatory')
gx2EDFAHoldTimeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5), ).setIndexNames((0, "OMNI-gx2EDFA-MIB", "gx2EDFAHoldTimeTableIndex"), (0, "OMNI-gx2EDFA-MIB", "gx2EDFAHoldTimeSpecIndex"))
if mibBuilder.loadTexts: gx2EDFAHoldTimeEntry.setStatus('mandatory')
edfagx2EDFAAnalogTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfagx2EDFAAnalogTableIndex.setStatus('mandatory')
edfalabelModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelModTemp.setStatus('optional')
edfauomModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomModTemp.setStatus('optional')
edfamajorHighModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 4), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighModTemp.setStatus('mandatory')
edfamajorLowModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 5), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowModTemp.setStatus('mandatory')
edfaminorHighModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 6), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighModTemp.setStatus('mandatory')
edfaminorLowModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 7), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowModTemp.setStatus('mandatory')
edfacurrentValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 8), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueModTemp.setStatus('mandatory')
edfastateFlagModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagModTemp.setStatus('mandatory')
edfaminValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 10), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueModTemp.setStatus('mandatory')
edfamaxValueModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 11), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueModTemp.setStatus('mandatory')
edfaalarmStateModTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateModTemp.setStatus('mandatory')
edfalabelOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOptInPower.setStatus('optional')
edfauomOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomOptInPower.setStatus('optional')
edfamajorHighOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 15), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighOptInPower.setStatus('mandatory')
edfamajorLowOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 16), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowOptInPower.setStatus('mandatory')
edfaminorHighOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 17), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighOptInPower.setStatus('mandatory')
edfaminorLowOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 18), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowOptInPower.setStatus('mandatory')
edfacurrentValueOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 19), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueOptInPower.setStatus('mandatory')
edfastateFlagOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagOptInPower.setStatus('mandatory')
edfaminValueOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 21), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueOptInPower.setStatus('mandatory')
edfamaxValueOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 22), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueOptInPower.setStatus('mandatory')
edfaalarmStateOptInPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateOptInPower.setStatus('mandatory')
edfalabelOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOptOutPower.setStatus('optional')
edfauomOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 25), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomOptOutPower.setStatus('optional')
edfamajorHighOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 26), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighOptOutPower.setStatus('mandatory')
edfamajorLowOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 27), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowOptOutPower.setStatus('mandatory')
edfaminorHighOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 28), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighOptOutPower.setStatus('mandatory')
edfaminorLowOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 29), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowOptOutPower.setStatus('mandatory')
edfacurrentValueOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 30), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueOptOutPower.setStatus('mandatory')
edfastateFlagOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagOptOutPower.setStatus('mandatory')
edfaminValueOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 32), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueOptOutPower.setStatus('mandatory')
edfamaxValueOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 33), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueOptOutPower.setStatus('mandatory')
edfaalarmStateOptOutPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateOptOutPower.setStatus('mandatory')
edfalabelTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 35), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelTECTemp.setStatus('optional')
edfauomTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 36), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomTECTemp.setStatus('optional')
edfamajorHighTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 37), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighTECTemp.setStatus('mandatory')
edfamajorLowTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 38), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowTECTemp.setStatus('mandatory')
edfaminorHighTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 39), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighTECTemp.setStatus('mandatory')
edfaminorLowTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 40), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowTECTemp.setStatus('mandatory')
edfacurrentValueTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 41), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueTECTemp.setStatus('mandatory')
edfastateFlagTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagTECTemp.setStatus('mandatory')
edfaminValueTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 43), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueTECTemp.setStatus('mandatory')
edfamaxValueTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 44), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueTECTemp.setStatus('mandatory')
edfaalarmStateTECTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateTECTemp.setStatus('mandatory')
edfalabelTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 46), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelTECCurrent.setStatus('optional')
edfauomTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 47), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomTECCurrent.setStatus('optional')
edfamajorHighTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 48), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighTECCurrent.setStatus('mandatory')
edfamajorLowTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 49), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowTECCurrent.setStatus('mandatory')
edfaminorHighTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 50), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighTECCurrent.setStatus('mandatory')
edfaminorLowTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 51), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowTECCurrent.setStatus('mandatory')
edfacurrentValueTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 52), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueTECCurrent.setStatus('mandatory')
edfastateFlagTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagTECCurrent.setStatus('mandatory')
edfaminValueTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 54), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueTECCurrent.setStatus('mandatory')
edfamaxValueTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 55), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueTECCurrent.setStatus('mandatory')
edfaalarmStateTECCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 56), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateTECCurrent.setStatus('mandatory')
edfalabelLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 57), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLaserCurrent.setStatus('optional')
edfauomLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 58), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomLaserCurrent.setStatus('optional')
edfamajorHighLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 59), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighLaserCurrent.setStatus('mandatory')
edfamajorLowLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 60), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowLaserCurrent.setStatus('mandatory')
edfaminorHighLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 61), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighLaserCurrent.setStatus('mandatory')
edfaminorLowLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 62), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowLaserCurrent.setStatus('mandatory')
edfacurrentValueLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 63), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueLaserCurrent.setStatus('mandatory')
edfastateFlagLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 64), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagLaserCurrent.setStatus('mandatory')
edfaminValueLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 65), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueLaserCurrent.setStatus('mandatory')
edfamaxValueLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 66), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueLaserCurrent.setStatus('mandatory')
edfaalarmStateLaserCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 67), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateLaserCurrent.setStatus('mandatory')
edfalabelLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 68), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLaserPower.setStatus('optional')
edfauomLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 69), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomLaserPower.setStatus('optional')
edfamajorHighLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 70), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighLaserPower.setStatus('mandatory')
edfamajorLowLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 71), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowLaserPower.setStatus('mandatory')
edfaminorHighLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 72), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighLaserPower.setStatus('mandatory')
edfaminorLowLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 73), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowLaserPower.setStatus('mandatory')
edfacurrentValueLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 74), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueLaserPower.setStatus('mandatory')
edfastateFlagLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 75), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagLaserPower.setStatus('mandatory')
edfaminValueLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 76), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueLaserPower.setStatus('mandatory')
edfamaxValueLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 77), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueLaserPower.setStatus('mandatory')
edfaalarmStateLaserPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 78), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateLaserPower.setStatus('mandatory')
edfalabel12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 79), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabel12Volt.setStatus('optional')
edfauom12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 80), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauom12Volt.setStatus('optional')
edfamajorHigh12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 81), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHigh12Volt.setStatus('mandatory')
edfamajorLow12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 82), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLow12Volt.setStatus('mandatory')
edfaminorHigh12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 83), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHigh12Volt.setStatus('mandatory')
edfaminorLow12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 84), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLow12Volt.setStatus('mandatory')
edfacurrentValue12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 85), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValue12Volt.setStatus('mandatory')
edfastateFlag12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 86), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlag12Volt.setStatus('mandatory')
edfaminValue12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 87), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValue12Volt.setStatus('mandatory')
edfamaxValue12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 88), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValue12Volt.setStatus('mandatory')
edfaalarmState12Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 89), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmState12Volt.setStatus('mandatory')
edfalabel37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 90), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabel37Volt.setStatus('optional')
edfauom37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 91), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauom37Volt.setStatus('optional')
edfamajorHigh37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 92), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHigh37Volt.setStatus('mandatory')
edfamajorLow37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 93), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLow37Volt.setStatus('mandatory')
edfaminorHigh37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 94), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHigh37Volt.setStatus('mandatory')
edfaminorLow37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 95), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLow37Volt.setStatus('mandatory')
edfacurrentValue37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 96), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValue37Volt.setStatus('mandatory')
edfastateFlag37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 97), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlag37Volt.setStatus('mandatory')
edfaminValue37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 98), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValue37Volt.setStatus('mandatory')
edfamaxValue37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 99), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValue37Volt.setStatus('mandatory')
edfaalarmState37Volt = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 100), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmState37Volt.setStatus('mandatory')
edfalabelFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 101), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelFanCurrent.setStatus('optional')
edfauomFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 102), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomFanCurrent.setStatus('optional')
edfamajorHighFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 103), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighFanCurrent.setStatus('mandatory')
edfamajorLowFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 104), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowFanCurrent.setStatus('mandatory')
edfaminorHighFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 105), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighFanCurrent.setStatus('mandatory')
edfaminorLowFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 106), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowFanCurrent.setStatus('mandatory')
edfacurrentValueFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 107), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacurrentValueFanCurrent.setStatus('mandatory')
edfastateFlagFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 108), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagFanCurrent.setStatus('mandatory')
edfaminValueFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 109), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueFanCurrent.setStatus('mandatory')
edfamaxValueFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 110), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueFanCurrent.setStatus('mandatory')
edfaalarmStateFanCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 111), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateFanCurrent.setStatus('mandatory')
edfalabelOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 112), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOPSetting.setStatus('optional')
edfauomOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 113), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomOPSetting.setStatus('optional')
edfamajorHighOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 114), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighOPSetting.setStatus('mandatory')
edfamajorLowOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 115), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowOPSetting.setStatus('mandatory')
edfaminorHighOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 116), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighOPSetting.setStatus('mandatory')
edfaminorLowOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 117), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowOPSetting.setStatus('mandatory')
edfacurrentValueOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 118), Float()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfacurrentValueOPSetting.setStatus('mandatory')
edfastateFlagOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 119), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagOPSetting.setStatus('mandatory')
edfaminValueOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 120), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueOPSetting.setStatus('mandatory')
edfamaxValueOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 121), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueOPSetting.setStatus('mandatory')
edfaalarmStateOPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 122), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateOPSetting.setStatus('mandatory')
edfalabelLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 123), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLPSetting.setStatus('optional')
edfauomLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 124), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomLPSetting.setStatus('optional')
edfamajorHighLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 125), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighLPSetting.setStatus('mandatory')
edfamajorLowLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 126), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowLPSetting.setStatus('mandatory')
edfaminorHighLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 127), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighLPSetting.setStatus('mandatory')
edfaminorLowLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 128), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowLPSetting.setStatus('mandatory')
edfacurrentValueLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 129), Float()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfacurrentValueLPSetting.setStatus('mandatory')
edfastateFlagLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 130), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagLPSetting.setStatus('mandatory')
edfaminValueLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 131), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueLPSetting.setStatus('mandatory')
edfamaxValueLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 132), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueLPSetting.setStatus('mandatory')
edfaalarmStateLPSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 133), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateLPSetting.setStatus('mandatory')
edfalabelCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 134), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelCGSetting.setStatus('optional')
edfauomCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 135), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomCGSetting.setStatus('optional')
edfamajorHighCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 136), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighCGSetting.setStatus('mandatory')
edfamajorLowCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 137), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowCGSetting.setStatus('mandatory')
edfaminorHighCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 138), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighCGSetting.setStatus('mandatory')
edfaminorLowCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 139), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowCGSetting.setStatus('mandatory')
edfacurrentValueCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 140), Float()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfacurrentValueCGSetting.setStatus('mandatory')
edfastateFlagCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 141), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagCGSetting.setStatus('mandatory')
edfaminValueCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 142), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueCGSetting.setStatus('mandatory')
edfamaxValueCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 143), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueCGSetting.setStatus('mandatory')
edfaalarmStateCGSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 144), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateCGSetting.setStatus('mandatory')
edfalabelOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 145), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOptThreshold.setStatus('optional')
edfauomOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 146), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfauomOptThreshold.setStatus('optional')
edfamajorHighOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 147), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorHighOptThreshold.setStatus('mandatory')
edfamajorLowOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 148), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamajorLowOptThreshold.setStatus('mandatory')
edfaminorHighOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 149), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorHighOptThreshold.setStatus('mandatory')
edfaminorLowOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 150), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminorLowOptThreshold.setStatus('mandatory')
edfacurrentValueOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 151), Float()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfacurrentValueOptThreshold.setStatus('mandatory')
edfastateFlagOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 152), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagOptThreshold.setStatus('mandatory')
edfaminValueOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 153), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaminValueOptThreshold.setStatus('mandatory')
edfamaxValueOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 154), Float()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfamaxValueOptThreshold.setStatus('mandatory')
edfaalarmStateOptThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 155), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noAlarm", 1), ("majorLowAlarm", 2), ("minorLowAlarm", 3), ("minorHighAlarm", 4), ("majorHighAlarm", 5), ("informational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaalarmStateOptThreshold.setStatus('mandatory')
edfagx2EDFADigitalTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfagx2EDFADigitalTableIndex.setStatus('mandatory')
edfalabelModeSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelModeSetting.setStatus('optional')
edfaenumModeSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaenumModeSetting.setStatus('optional')
edfavalueModeSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("power-out-preset", 1), ("power-out-set", 2), ("laser-power-preset", 3), ("laser-power-set", 4), ("constant-gain-preset", 5), ("constant-gain-set", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfavalueModeSetting.setStatus('mandatory')
edfastateFlagModeSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagModeSetting.setStatus('mandatory')
edfalabelModuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelModuleState.setStatus('optional')
edfaenumModuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaenumModuleState.setStatus('optional')
edfavalueModuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfavalueModuleState.setStatus('mandatory')
edfastateFlagModuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagModuleState.setStatus('mandatory')
edfalabelFactoryDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelFactoryDefault.setStatus('optional')
edfaenumFactoryDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaenumFactoryDefault.setStatus('optional')
edfavalueFactoryDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: edfavalueFactoryDefault.setStatus('mandatory')
edfastateFlagFactoryDefault = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateFlagFactoryDefault.setStatus('mandatory')
edfagx2EDFAStatusTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfagx2EDFAStatusTableIndex.setStatus('mandatory')
edfalabelBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelBoot.setStatus('optional')
edfavalueBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueBoot.setStatus('mandatory')
edfastateflagBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagBoot.setStatus('mandatory')
edfalabelFlash = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelFlash.setStatus('optional')
edfavalueFlash = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueFlash.setStatus('mandatory')
edfastateflagFlash = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagFlash.setStatus('mandatory')
edfalabelFactoryDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelFactoryDataCRC.setStatus('optional')
edfavalueFactoryDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueFactoryDataCRC.setStatus('mandatory')
edfastateflagFactoryDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagFactoryDataCRC.setStatus('mandatory')
edfalabelAlarmDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelAlarmDataCRC.setStatus('optional')
edfavalueAlarmDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueAlarmDataCRC.setStatus('mandatory')
edfastateflagAlarmDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagAlarmDataCRC.setStatus('mandatory')
edfalabelCalibrationDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelCalibrationDataCRC.setStatus('optional')
edfavalueCalibrationDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueCalibrationDataCRC.setStatus('mandatory')
edfastateflagCalibrationDataCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagCalibrationDataCRC.setStatus('mandatory')
edfalabelOptInShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelOptInShutdown.setStatus('optional')
edfavalueOptInShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueOptInShutdown.setStatus('mandatory')
edfastateflagOptInShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagOptInShutdown.setStatus('mandatory')
edfalabelTECTempShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelTECTempShutdown.setStatus('optional')
edfavalueTECTempShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueTECTempShutdown.setStatus('mandatory')
edfastateflagTECTempShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagTECTempShutdown.setStatus('mandatory')
edfalabelTECShutOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 23), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelTECShutOverride.setStatus('optional')
edfavalueTECShutOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueTECShutOverride.setStatus('mandatory')
edfastateflagTECShutOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagTECShutOverride.setStatus('mandatory')
edfalabelPowerFail = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 26), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelPowerFail.setStatus('optional')
edfavaluePowerFail = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavaluePowerFail.setStatus('mandatory')
edfastateflagPowerFail = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagPowerFail.setStatus('mandatory')
edfalabelKeySwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 29), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelKeySwitch.setStatus('optional')
edfavalueKeySwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueKeySwitch.setStatus('mandatory')
edfastateflagKeySwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagKeySwitch.setStatus('mandatory')
edfalabelLaserCurrShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 32), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLaserCurrShutdown.setStatus('optional')
edfavalueLaserCurrShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueLaserCurrShutdown.setStatus('mandatory')
edfastateflagLaserCurrShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagLaserCurrShutdown.setStatus('mandatory')
edfalabelLaserPowShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 35), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelLaserPowShutdown.setStatus('optional')
edfavalueLaserPowShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueLaserPowShutdown.setStatus('mandatory')
edfastateflagLaserPowShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 37), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagLaserPowShutdown.setStatus('mandatory')
edfalabelADCStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 38), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelADCStatus.setStatus('optional')
edfavalueADCStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueADCStatus.setStatus('mandatory')
edfastateflagADCStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagADCStatus.setStatus('mandatory')
edfalabelConstGainStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 41), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelConstGainStatus.setStatus('optional')
edfavalueConstGainStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueConstGainStatus.setStatus('mandatory')
edfastateflagConstGainStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 43), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagConstGainStatus.setStatus('mandatory')
edfalabelStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 44), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfalabelStandbyStatus.setStatus('optional')
edfavalueStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("undetermined", 2), ("warning", 3), ("minor", 4), ("major", 5), ("critical", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfavalueStandbyStatus.setStatus('mandatory')
edfastateflagStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 46), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hidden", 1), ("read-only", 2), ("updateable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfastateflagStandbyStatus.setStatus('mandatory')
edfagx2EDFAFactoryTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfagx2EDFAFactoryTableIndex.setStatus('mandatory')
edfabootControlByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfabootControlByte.setStatus('mandatory')
edfabootStatusByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfabootStatusByte.setStatus('mandatory')
edfabank0CRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfabank0CRC.setStatus('mandatory')
edfabank1CRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfabank1CRC.setStatus('mandatory')
edfaprgEEPROMByte = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaprgEEPROMByte.setStatus('mandatory')
edfafactoryCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfafactoryCRC.setStatus('mandatory')
edfacalculateCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("factory", 1), ("calibration", 2), ("alarmdata", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfacalculateCRC.setStatus('mandatory')
edfahourMeter = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfahourMeter.setStatus('mandatory')
edfaflashPrgCntA = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaflashPrgCntA.setStatus('mandatory')
edfaflashPrgCntB = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfaflashPrgCntB.setStatus('mandatory')
edfafwRev0 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfafwRev0.setStatus('mandatory')
edfafwRev1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: edfafwRev1.setStatus('mandatory')
gx2EDFAHoldTimeTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2EDFAHoldTimeTableIndex.setStatus('mandatory')
gx2EDFAHoldTimeSpecIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: gx2EDFAHoldTimeSpecIndex.setStatus('mandatory')
gx2EDFAHoldTimeData = MibTableColumn((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: gx2EDFAHoldTimeData.setStatus('mandatory')
trapEDFAConfigChangeInteger = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,1)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAConfigChangeDisplayString = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,2)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueDisplayString"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAModuleTemperatureAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,3)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAOpticalInPowerAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,4)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAOpticalOutPowerAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,5)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFATECTemperatureAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,6)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFATECCurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,7)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFALaserCurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,8)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFALaserPowerAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,9)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAPlus12CurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,10)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAPlus37CurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,11)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAFanCurrentAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,12)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAResetFacDefault = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,13)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAStandbyMode = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,14)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAOptInShutdown = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,15)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFATECTempShutdown = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,16)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAKeySwitch = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,17)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAPowerFail = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,18)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFALasCurrShutdown = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,19)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFALasPowerShutdown = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,20)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAInvalidMode = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,21)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAFlashAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,22)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFABoot0Alarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,23)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFABoot1Alarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,24)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAAlarmDataCRCAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,25)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAFactoryDataCRCAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,26)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFACalDataCRCAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,27)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAFacCalFloatAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,28)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAOptInThreshAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,29)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
trapEDFAGainErrorAlarm = NotificationType((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0,30)).setObjects(("NLSBBN-TRAPS-MIB", "trapIdentifier"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemModelNumber"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemSerialNum"), ("NLSBBN-TRAPS-MIB", "trapPerceivedSeverity"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemOperState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAlarmStatus"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAdminState"), ("NLSBBN-TRAPS-MIB", "trapNetworkElemAvailStatus"), ("NLSBBN-TRAPS-MIB", "trapText"), ("NLSBBN-TRAPS-MIB", "trapChangedObjectId"), ("NLSBBN-TRAPS-MIB", "trapChangedValueInteger"), ("NLSBBN-TRAPS-MIB", "trapNETrapLastTrapTimeStamp"))
mibBuilder.exportSymbols("OMNI-gx2EDFA-MIB", edfalabelPowerFail=edfalabelPowerFail, edfamajorHighModTemp=edfamajorHighModTemp, gx2EDFADescriptor=gx2EDFADescriptor, edfamajorLowOptThreshold=edfamajorLowOptThreshold, edfavalueTECShutOverride=edfavalueTECShutOverride, trapEDFAOpticalOutPowerAlarm=trapEDFAOpticalOutPowerAlarm, edfaminorLowTECTemp=edfaminorLowTECTemp, edfalabelTECTemp=edfalabelTECTemp, edfastateflagADCStatus=edfastateflagADCStatus, edfaflashPrgCntA=edfaflashPrgCntA, edfabank0CRC=edfabank0CRC, edfaalarmStateTECTemp=edfaalarmStateTECTemp, edfastateFlagTECCurrent=edfastateFlagTECCurrent, edfacurrentValueLaserPower=edfacurrentValueLaserPower, edfamajorLowFanCurrent=edfamajorLowFanCurrent, edfamajorLowCGSetting=edfamajorLowCGSetting, edfaminorHighCGSetting=edfaminorHighCGSetting, edfamajorHighOptThreshold=edfamajorHighOptThreshold, edfalabelADCStatus=edfalabelADCStatus, edfastateFlagLaserPower=edfastateFlagLaserPower, edfastateflagFlash=edfastateflagFlash, edfalabelCalibrationDataCRC=edfalabelCalibrationDataCRC, edfamajorHighCGSetting=edfamajorHighCGSetting, edfalabelFactoryDataCRC=edfalabelFactoryDataCRC, gx2EDFAFactoryTable=gx2EDFAFactoryTable, edfavalueFlash=edfavalueFlash, edfahourMeter=edfahourMeter, edfaminorHigh37Volt=edfaminorHigh37Volt, edfaminorHighOptInPower=edfaminorHighOptInPower, edfafactoryCRC=edfafactoryCRC, edfamajorLowModTemp=edfamajorLowModTemp, edfaminValueFanCurrent=edfaminValueFanCurrent, edfacurrentValueOPSetting=edfacurrentValueOPSetting, trapEDFALaserCurrentAlarm=trapEDFALaserCurrentAlarm, trapEDFAFanCurrentAlarm=trapEDFAFanCurrentAlarm, edfacurrentValue37Volt=edfacurrentValue37Volt, edfastateFlagLPSetting=edfastateFlagLPSetting, edfauomFanCurrent=edfauomFanCurrent, edfastateflagStandbyStatus=edfastateflagStandbyStatus, edfalabelLPSetting=edfalabelLPSetting, edfauomTECTemp=edfauomTECTemp, edfastateflagConstGainStatus=edfastateflagConstGainStatus, edfastateflagPowerFail=edfastateflagPowerFail, trapEDFAFacCalFloatAlarm=trapEDFAFacCalFloatAlarm, gx2EDFAStatusEntry=gx2EDFAStatusEntry, edfamajorLow12Volt=edfamajorLow12Volt, edfaminValueOptOutPower=edfaminValueOptOutPower, edfacurrentValueTECTemp=edfacurrentValueTECTemp, edfacurrentValueTECCurrent=edfacurrentValueTECCurrent, edfaalarmStateOPSetting=edfaalarmStateOPSetting, edfalabelTECShutOverride=edfalabelTECShutOverride, gx2EDFAFactoryEntry=gx2EDFAFactoryEntry, edfaminorLowFanCurrent=edfaminorLowFanCurrent, edfastateFlagFanCurrent=edfastateFlagFanCurrent, edfaminorLowOPSetting=edfaminorLowOPSetting, edfastateflagKeySwitch=edfastateflagKeySwitch, edfagx2EDFAFactoryTableIndex=edfagx2EDFAFactoryTableIndex, edfalabelConstGainStatus=edfalabelConstGainStatus, trapEDFAOpticalInPowerAlarm=trapEDFAOpticalInPowerAlarm, edfamajorLowLPSetting=edfamajorLowLPSetting, edfaalarmStateCGSetting=edfaalarmStateCGSetting, edfamaxValueTECCurrent=edfamaxValueTECCurrent, edfastateFlagOptOutPower=edfastateFlagOptOutPower, trapEDFAConfigChangeInteger=trapEDFAConfigChangeInteger, trapEDFAOptInThreshAlarm=trapEDFAOptInThreshAlarm, edfavalueFactoryDefault=edfavalueFactoryDefault, edfaminorLowLaserPower=edfaminorLowLaserPower, edfalabelOPSetting=edfalabelOPSetting, edfauomOptOutPower=edfauomOptOutPower, edfabootControlByte=edfabootControlByte, edfaprgEEPROMByte=edfaprgEEPROMByte, edfacurrentValueOptInPower=edfacurrentValueOptInPower, edfamajorHighFanCurrent=edfamajorHighFanCurrent, trapEDFABoot0Alarm=trapEDFABoot0Alarm, edfamaxValueTECTemp=edfamaxValueTECTemp, edfaminorHighOptOutPower=edfaminorHighOptOutPower, edfavaluePowerFail=edfavaluePowerFail, trapEDFALasCurrShutdown=trapEDFALasCurrShutdown, edfalabelLaserCurrent=edfalabelLaserCurrent, edfalabelOptInPower=edfalabelOptInPower, edfaminorLow12Volt=edfaminorLow12Volt, trapEDFAConfigChangeDisplayString=trapEDFAConfigChangeDisplayString, edfauom12Volt=edfauom12Volt, edfagx2EDFAAnalogTableIndex=edfagx2EDFAAnalogTableIndex, edfaalarmStateLaserPower=edfaalarmStateLaserPower, edfaminValueLPSetting=edfaminValueLPSetting, edfaminValueOptThreshold=edfaminValueOptThreshold, edfamajorHigh37Volt=edfamajorHigh37Volt, edfastateflagFactoryDataCRC=edfastateflagFactoryDataCRC, edfafwRev0=edfafwRev0, edfaminorHighLaserPower=edfaminorHighLaserPower, trapEDFAStandbyMode=trapEDFAStandbyMode, edfaminValue37Volt=edfaminValue37Volt, edfabank1CRC=edfabank1CRC, edfavalueAlarmDataCRC=edfavalueAlarmDataCRC, edfaminValueModTemp=edfaminValueModTemp, edfaminorHigh12Volt=edfaminorHigh12Volt, edfamaxValueOPSetting=edfamaxValueOPSetting, gx2EDFAAnalogEntry=gx2EDFAAnalogEntry, edfastateFlagOptThreshold=edfastateFlagOptThreshold, edfamajorHighLPSetting=edfamajorHighLPSetting, edfaminorLowLaserCurrent=edfaminorLowLaserCurrent, edfamajorLowOptOutPower=edfamajorLowOptOutPower, edfamaxValue37Volt=edfamaxValue37Volt, edfaminValue12Volt=edfaminValue12Volt, gx2EDFAAnalogTable=gx2EDFAAnalogTable, edfaminorLowOptInPower=edfaminorLowOptInPower, edfaminValueTECTemp=edfaminValueTECTemp, edfaalarmState12Volt=edfaalarmState12Volt, trapEDFALasPowerShutdown=trapEDFALasPowerShutdown, edfastateFlagFactoryDefault=edfastateFlagFactoryDefault, edfabootStatusByte=edfabootStatusByte, edfaminorHighTECCurrent=edfaminorHighTECCurrent, edfastateFlagOptInPower=edfastateFlagOptInPower, edfalabelCGSetting=edfalabelCGSetting, edfalabelModeSetting=edfalabelModeSetting, edfamajorHighOPSetting=edfamajorHighOPSetting, edfacurrentValueFanCurrent=edfacurrentValueFanCurrent, edfavalueLaserPowShutdown=edfavalueLaserPowShutdown, edfavalueFactoryDataCRC=edfavalueFactoryDataCRC, edfamaxValueOptThreshold=edfamaxValueOptThreshold, edfavalueCalibrationDataCRC=edfavalueCalibrationDataCRC, edfamaxValueOptInPower=edfamaxValueOptInPower, edfaalarmStateModTemp=edfaalarmStateModTemp, edfalabel37Volt=edfalabel37Volt, trapEDFAOptInShutdown=trapEDFAOptInShutdown, edfamajorLow37Volt=edfamajorLow37Volt, edfalabelOptOutPower=edfalabelOptOutPower, edfalabelAlarmDataCRC=edfalabelAlarmDataCRC, edfastateflagOptInShutdown=edfastateflagOptInShutdown, edfalabelKeySwitch=edfalabelKeySwitch, edfavalueConstGainStatus=edfavalueConstGainStatus, trapEDFALaserPowerAlarm=trapEDFALaserPowerAlarm, edfauomTECCurrent=edfauomTECCurrent, edfauomLaserPower=edfauomLaserPower, edfamaxValueLaserPower=edfamaxValueLaserPower, edfalabelFanCurrent=edfalabelFanCurrent, edfavalueTECTempShutdown=edfavalueTECTempShutdown, edfafwRev1=edfafwRev1, edfacalculateCRC=edfacalculateCRC, edfaalarmState37Volt=edfaalarmState37Volt, edfaminorHighLPSetting=edfaminorHighLPSetting, edfaminValueCGSetting=edfaminValueCGSetting, trapEDFATECTempShutdown=trapEDFATECTempShutdown, edfavalueModeSetting=edfavalueModeSetting, trapEDFAResetFacDefault=trapEDFAResetFacDefault, trapEDFAPowerFail=trapEDFAPowerFail, edfaminValueOptInPower=edfaminValueOptInPower, edfaminorLowLPSetting=edfaminorLowLPSetting, edfacurrentValueModTemp=edfacurrentValueModTemp, edfagx2EDFAStatusTableIndex=edfagx2EDFAStatusTableIndex, edfaminorHighOptThreshold=edfaminorHighOptThreshold, edfaenumModuleState=edfaenumModuleState, edfaminorLowTECCurrent=edfaminorLowTECCurrent, trapEDFAInvalidMode=trapEDFAInvalidMode, trapEDFAFlashAlarm=trapEDFAFlashAlarm, edfavalueStandbyStatus=edfavalueStandbyStatus, edfaminorHighFanCurrent=edfaminorHighFanCurrent, edfastateFlagOPSetting=edfastateFlagOPSetting, edfastateFlagCGSetting=edfastateFlagCGSetting, edfamajorLowTECTemp=edfamajorLowTECTemp, edfavalueADCStatus=edfavalueADCStatus, trapEDFAFactoryDataCRCAlarm=trapEDFAFactoryDataCRCAlarm, trapEDFAKeySwitch=trapEDFAKeySwitch, edfalabelOptInShutdown=edfalabelOptInShutdown, edfaalarmStateOptOutPower=edfaalarmStateOptOutPower, edfalabelLaserCurrShutdown=edfalabelLaserCurrShutdown, edfaalarmStateFanCurrent=edfaalarmStateFanCurrent, edfaalarmStateLPSetting=edfaalarmStateLPSetting, trapEDFATECCurrentAlarm=trapEDFATECCurrentAlarm, trapEDFAPlus12CurrentAlarm=trapEDFAPlus12CurrentAlarm, trapEDFAPlus37CurrentAlarm=trapEDFAPlus37CurrentAlarm, gx2EDFAHoldTimeSpecIndex=gx2EDFAHoldTimeSpecIndex, edfastateflagTECTempShutdown=edfastateflagTECTempShutdown, edfaalarmStateLaserCurrent=edfaalarmStateLaserCurrent, gx2EDFAHoldTimeData=gx2EDFAHoldTimeData, edfastateFlag12Volt=edfastateFlag12Volt, edfamajorHighTECTemp=edfamajorHighTECTemp, edfauomModTemp=edfauomModTemp, edfamaxValueLaserCurrent=edfamaxValueLaserCurrent, edfaminorHighOPSetting=edfaminorHighOPSetting, edfauomCGSetting=edfauomCGSetting, edfauom37Volt=edfauom37Volt, trapEDFAModuleTemperatureAlarm=trapEDFAModuleTemperatureAlarm, edfamaxValueModTemp=edfamaxValueModTemp, edfaminorLowCGSetting=edfaminorLowCGSetting, edfamajorHigh12Volt=edfamajorHigh12Volt, gx2EDFADigitalEntry=gx2EDFADigitalEntry, edfastateflagTECShutOverride=edfastateflagTECShutOverride, edfaminValueLaserCurrent=edfaminValueLaserCurrent, edfaflashPrgCntB=edfaflashPrgCntB, edfavalueLaserCurrShutdown=edfavalueLaserCurrShutdown, edfaminValueLaserPower=edfaminValueLaserPower, edfaalarmStateOptThreshold=edfaalarmStateOptThreshold, edfaenumModeSetting=edfaenumModeSetting, edfauomOPSetting=edfauomOPSetting, edfamajorLowOptInPower=edfamajorLowOptInPower, edfaminorLowModTemp=edfaminorLowModTemp, edfaminorHighModTemp=edfaminorHighModTemp, edfalabelLaserPower=edfalabelLaserPower, edfavalueOptInShutdown=edfavalueOptInShutdown, edfaenumFactoryDefault=edfaenumFactoryDefault, edfalabelFlash=edfalabelFlash, edfamajorHighOptInPower=edfamajorHighOptInPower, edfaalarmStateOptInPower=edfaalarmStateOptInPower, edfacurrentValue12Volt=edfacurrentValue12Volt, edfamaxValueFanCurrent=edfamaxValueFanCurrent, edfamaxValueLPSetting=edfamaxValueLPSetting, edfacurrentValueLaserCurrent=edfacurrentValueLaserCurrent, edfastateFlagModTemp=edfastateFlagModTemp, edfaminorLow37Volt=edfaminorLow37Volt, edfavalueKeySwitch=edfavalueKeySwitch, trapEDFAAlarmDataCRCAlarm=trapEDFAAlarmDataCRCAlarm, edfastateFlagTECTemp=edfastateFlagTECTemp, edfastateflagAlarmDataCRC=edfastateflagAlarmDataCRC, edfamajorLowLaserCurrent=edfamajorLowLaserCurrent, edfamajorHighLaserCurrent=edfamajorHighLaserCurrent, trapEDFATECTemperatureAlarm=trapEDFATECTemperatureAlarm, edfamajorHighLaserPower=edfamajorHighLaserPower, edfacurrentValueOptThreshold=edfacurrentValueOptThreshold, edfaminorHighLaserCurrent=edfaminorHighLaserCurrent, edfalabelBoot=edfalabelBoot, edfavalueBoot=edfavalueBoot, edfaminorHighTECTemp=edfaminorHighTECTemp, edfamajorHighTECCurrent=edfamajorHighTECCurrent, edfastateFlagModeSetting=edfastateFlagModeSetting, edfaminValueTECCurrent=edfaminValueTECCurrent, edfalabelFactoryDefault=edfalabelFactoryDefault, trapEDFAGainErrorAlarm=trapEDFAGainErrorAlarm, edfamaxValueCGSetting=edfamaxValueCGSetting, Float=Float, gx2EDFAStatusTable=gx2EDFAStatusTable, edfalabelLaserPowShutdown=edfalabelLaserPowShutdown, edfalabelModuleState=edfalabelModuleState, edfamajorLowLaserPower=edfamajorLowLaserPower, edfauomOptThreshold=edfauomOptThreshold, edfastateflagBoot=edfastateflagBoot, edfaminorLowOptThreshold=edfaminorLowOptThreshold, trapEDFABoot1Alarm=trapEDFABoot1Alarm, edfamajorLowTECCurrent=edfamajorLowTECCurrent, edfalabelStandbyStatus=edfalabelStandbyStatus, gx2EDFAHoldTimeEntry=gx2EDFAHoldTimeEntry, edfauomOptInPower=edfauomOptInPower, edfaminValueOPSetting=edfaminValueOPSetting, edfastateflagCalibrationDataCRC=edfastateflagCalibrationDataCRC, edfacurrentValueCGSetting=edfacurrentValueCGSetting, edfacurrentValueLPSetting=edfacurrentValueLPSetting, edfastateFlagModuleState=edfastateFlagModuleState, edfamajorHighOptOutPower=edfamajorHighOptOutPower, edfastateflagLaserPowShutdown=edfastateflagLaserPowShutdown, edfalabelOptThreshold=edfalabelOptThreshold, edfaminorLowOptOutPower=edfaminorLowOptOutPower, edfamajorLowOPSetting=edfamajorLowOPSetting, edfalabelTECTempShutdown=edfalabelTECTempShutdown)
mibBuilder.exportSymbols("OMNI-gx2EDFA-MIB", edfamaxValue12Volt=edfamaxValue12Volt, edfalabel12Volt=edfalabel12Volt, trapEDFACalDataCRCAlarm=trapEDFACalDataCRCAlarm, edfamaxValueOptOutPower=edfamaxValueOptOutPower, edfastateFlagLaserCurrent=edfastateFlagLaserCurrent, gx2EDFAHoldTimeTable=gx2EDFAHoldTimeTable, edfavalueModuleState=edfavalueModuleState, edfastateFlag37Volt=edfastateFlag37Volt, edfalabelModTemp=edfalabelModTemp, edfalabelTECCurrent=edfalabelTECCurrent, gx2EDFADigitalTable=gx2EDFADigitalTable, edfacurrentValueOptOutPower=edfacurrentValueOptOutPower, edfauomLaserCurrent=edfauomLaserCurrent, edfauomLPSetting=edfauomLPSetting, edfagx2EDFADigitalTableIndex=edfagx2EDFADigitalTableIndex, edfastateflagLaserCurrShutdown=edfastateflagLaserCurrShutdown, gx2EDFAHoldTimeTableIndex=gx2EDFAHoldTimeTableIndex, edfaalarmStateTECCurrent=edfaalarmStateTECCurrent)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, single_value_constraint, value_range_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion')
(gx2_edfa,) = mibBuilder.importSymbols('GX2HFC-MIB', 'gx2EDFA')
(motproxies, gi) = mibBuilder.importSymbols('NLS-BBNIDENT-MIB', 'motproxies', 'gi')
(trap_changed_object_id, trap_perceived_severity, trap_network_elem_oper_state, trap_network_elem_admin_state, trap_network_elem_alarm_status, trap_text, trap_ne_trap_last_trap_time_stamp, trap_identifier, trap_network_elem_serial_num, trap_changed_value_integer, trap_changed_value_display_string, trap_network_elem_avail_status, trap_network_elem_model_number) = mibBuilder.importSymbols('NLSBBN-TRAPS-MIB', 'trapChangedObjectId', 'trapPerceivedSeverity', 'trapNetworkElemOperState', 'trapNetworkElemAdminState', 'trapNetworkElemAlarmStatus', 'trapText', 'trapNETrapLastTrapTimeStamp', 'trapIdentifier', 'trapNetworkElemSerialNum', 'trapChangedValueInteger', 'trapChangedValueDisplayString', 'trapNetworkElemAvailStatus', 'trapNetworkElemModelNumber')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(sys_up_time,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysUpTime')
(mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, counter64, unsigned32, time_ticks, counter32, ip_address, mib_identifier, iso, module_identity, bits, notification_type, object_identity, integer32, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Counter64', 'Unsigned32', 'TimeTicks', 'Counter32', 'IpAddress', 'MibIdentifier', 'iso', 'ModuleIdentity', 'Bits', 'NotificationType', 'ObjectIdentity', 'Integer32', 'NotificationType')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
class Float(Counter32):
pass
gx2_edfa_descriptor = mib_identifier((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 1))
gx2_edfa_analog_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2))
if mibBuilder.loadTexts:
gx2EDFAAnalogTable.setStatus('mandatory')
gx2_edfa_analog_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1)).setIndexNames((0, 'OMNI-gx2EDFA-MIB', 'edfagx2EDFAAnalogTableIndex'))
if mibBuilder.loadTexts:
gx2EDFAAnalogEntry.setStatus('mandatory')
gx2_edfa_digital_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3))
if mibBuilder.loadTexts:
gx2EDFADigitalTable.setStatus('mandatory')
gx2_edfa_digital_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2)).setIndexNames((0, 'OMNI-gx2EDFA-MIB', 'edfagx2EDFADigitalTableIndex'))
if mibBuilder.loadTexts:
gx2EDFADigitalEntry.setStatus('mandatory')
gx2_edfa_status_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4))
if mibBuilder.loadTexts:
gx2EDFAStatusTable.setStatus('mandatory')
gx2_edfa_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3)).setIndexNames((0, 'OMNI-gx2EDFA-MIB', 'edfagx2EDFAStatusTableIndex'))
if mibBuilder.loadTexts:
gx2EDFAStatusEntry.setStatus('mandatory')
gx2_edfa_factory_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5))
if mibBuilder.loadTexts:
gx2EDFAFactoryTable.setStatus('mandatory')
gx2_edfa_factory_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4)).setIndexNames((0, 'OMNI-gx2EDFA-MIB', 'edfagx2EDFAFactoryTableIndex'))
if mibBuilder.loadTexts:
gx2EDFAFactoryEntry.setStatus('mandatory')
gx2_edfa_hold_time_table = mib_table((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6))
if mibBuilder.loadTexts:
gx2EDFAHoldTimeTable.setStatus('mandatory')
gx2_edfa_hold_time_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5)).setIndexNames((0, 'OMNI-gx2EDFA-MIB', 'gx2EDFAHoldTimeTableIndex'), (0, 'OMNI-gx2EDFA-MIB', 'gx2EDFAHoldTimeSpecIndex'))
if mibBuilder.loadTexts:
gx2EDFAHoldTimeEntry.setStatus('mandatory')
edfagx2_edfa_analog_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfagx2EDFAAnalogTableIndex.setStatus('mandatory')
edfalabel_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelModTemp.setStatus('optional')
edfauom_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomModTemp.setStatus('optional')
edfamajor_high_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 4), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighModTemp.setStatus('mandatory')
edfamajor_low_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 5), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowModTemp.setStatus('mandatory')
edfaminor_high_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 6), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighModTemp.setStatus('mandatory')
edfaminor_low_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 7), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowModTemp.setStatus('mandatory')
edfacurrent_value_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 8), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValueModTemp.setStatus('mandatory')
edfastate_flag_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagModTemp.setStatus('mandatory')
edfamin_value_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 10), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueModTemp.setStatus('mandatory')
edfamax_value_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 11), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueModTemp.setStatus('mandatory')
edfaalarm_state_mod_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateModTemp.setStatus('mandatory')
edfalabel_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelOptInPower.setStatus('optional')
edfauom_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomOptInPower.setStatus('optional')
edfamajor_high_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 15), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighOptInPower.setStatus('mandatory')
edfamajor_low_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 16), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowOptInPower.setStatus('mandatory')
edfaminor_high_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 17), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighOptInPower.setStatus('mandatory')
edfaminor_low_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 18), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowOptInPower.setStatus('mandatory')
edfacurrent_value_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 19), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValueOptInPower.setStatus('mandatory')
edfastate_flag_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagOptInPower.setStatus('mandatory')
edfamin_value_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 21), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueOptInPower.setStatus('mandatory')
edfamax_value_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 22), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueOptInPower.setStatus('mandatory')
edfaalarm_state_opt_in_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateOptInPower.setStatus('mandatory')
edfalabel_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 24), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelOptOutPower.setStatus('optional')
edfauom_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 25), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomOptOutPower.setStatus('optional')
edfamajor_high_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 26), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighOptOutPower.setStatus('mandatory')
edfamajor_low_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 27), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowOptOutPower.setStatus('mandatory')
edfaminor_high_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 28), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighOptOutPower.setStatus('mandatory')
edfaminor_low_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 29), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowOptOutPower.setStatus('mandatory')
edfacurrent_value_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 30), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValueOptOutPower.setStatus('mandatory')
edfastate_flag_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagOptOutPower.setStatus('mandatory')
edfamin_value_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 32), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueOptOutPower.setStatus('mandatory')
edfamax_value_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 33), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueOptOutPower.setStatus('mandatory')
edfaalarm_state_opt_out_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateOptOutPower.setStatus('mandatory')
edfalabel_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 35), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelTECTemp.setStatus('optional')
edfauom_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 36), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomTECTemp.setStatus('optional')
edfamajor_high_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 37), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighTECTemp.setStatus('mandatory')
edfamajor_low_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 38), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowTECTemp.setStatus('mandatory')
edfaminor_high_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 39), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighTECTemp.setStatus('mandatory')
edfaminor_low_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 40), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowTECTemp.setStatus('mandatory')
edfacurrent_value_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 41), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValueTECTemp.setStatus('mandatory')
edfastate_flag_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagTECTemp.setStatus('mandatory')
edfamin_value_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 43), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueTECTemp.setStatus('mandatory')
edfamax_value_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 44), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueTECTemp.setStatus('mandatory')
edfaalarm_state_tec_temp = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateTECTemp.setStatus('mandatory')
edfalabel_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 46), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelTECCurrent.setStatus('optional')
edfauom_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 47), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomTECCurrent.setStatus('optional')
edfamajor_high_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 48), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighTECCurrent.setStatus('mandatory')
edfamajor_low_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 49), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowTECCurrent.setStatus('mandatory')
edfaminor_high_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 50), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighTECCurrent.setStatus('mandatory')
edfaminor_low_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 51), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowTECCurrent.setStatus('mandatory')
edfacurrent_value_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 52), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValueTECCurrent.setStatus('mandatory')
edfastate_flag_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 53), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagTECCurrent.setStatus('mandatory')
edfamin_value_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 54), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueTECCurrent.setStatus('mandatory')
edfamax_value_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 55), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueTECCurrent.setStatus('mandatory')
edfaalarm_state_tec_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 56), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateTECCurrent.setStatus('mandatory')
edfalabel_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 57), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelLaserCurrent.setStatus('optional')
edfauom_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 58), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomLaserCurrent.setStatus('optional')
edfamajor_high_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 59), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighLaserCurrent.setStatus('mandatory')
edfamajor_low_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 60), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowLaserCurrent.setStatus('mandatory')
edfaminor_high_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 61), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighLaserCurrent.setStatus('mandatory')
edfaminor_low_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 62), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowLaserCurrent.setStatus('mandatory')
edfacurrent_value_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 63), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValueLaserCurrent.setStatus('mandatory')
edfastate_flag_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 64), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagLaserCurrent.setStatus('mandatory')
edfamin_value_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 65), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueLaserCurrent.setStatus('mandatory')
edfamax_value_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 66), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueLaserCurrent.setStatus('mandatory')
edfaalarm_state_laser_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 67), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateLaserCurrent.setStatus('mandatory')
edfalabel_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 68), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelLaserPower.setStatus('optional')
edfauom_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 69), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomLaserPower.setStatus('optional')
edfamajor_high_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 70), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighLaserPower.setStatus('mandatory')
edfamajor_low_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 71), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowLaserPower.setStatus('mandatory')
edfaminor_high_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 72), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighLaserPower.setStatus('mandatory')
edfaminor_low_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 73), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowLaserPower.setStatus('mandatory')
edfacurrent_value_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 74), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValueLaserPower.setStatus('mandatory')
edfastate_flag_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 75), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagLaserPower.setStatus('mandatory')
edfamin_value_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 76), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueLaserPower.setStatus('mandatory')
edfamax_value_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 77), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueLaserPower.setStatus('mandatory')
edfaalarm_state_laser_power = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 78), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateLaserPower.setStatus('mandatory')
edfalabel12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 79), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabel12Volt.setStatus('optional')
edfauom12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 80), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauom12Volt.setStatus('optional')
edfamajor_high12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 81), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHigh12Volt.setStatus('mandatory')
edfamajor_low12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 82), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLow12Volt.setStatus('mandatory')
edfaminor_high12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 83), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHigh12Volt.setStatus('mandatory')
edfaminor_low12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 84), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLow12Volt.setStatus('mandatory')
edfacurrent_value12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 85), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValue12Volt.setStatus('mandatory')
edfastate_flag12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 86), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlag12Volt.setStatus('mandatory')
edfamin_value12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 87), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValue12Volt.setStatus('mandatory')
edfamax_value12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 88), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValue12Volt.setStatus('mandatory')
edfaalarm_state12_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 89), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmState12Volt.setStatus('mandatory')
edfalabel37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 90), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabel37Volt.setStatus('optional')
edfauom37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 91), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauom37Volt.setStatus('optional')
edfamajor_high37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 92), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHigh37Volt.setStatus('mandatory')
edfamajor_low37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 93), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLow37Volt.setStatus('mandatory')
edfaminor_high37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 94), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHigh37Volt.setStatus('mandatory')
edfaminor_low37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 95), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLow37Volt.setStatus('mandatory')
edfacurrent_value37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 96), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValue37Volt.setStatus('mandatory')
edfastate_flag37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 97), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlag37Volt.setStatus('mandatory')
edfamin_value37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 98), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValue37Volt.setStatus('mandatory')
edfamax_value37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 99), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValue37Volt.setStatus('mandatory')
edfaalarm_state37_volt = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 100), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmState37Volt.setStatus('mandatory')
edfalabel_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 101), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelFanCurrent.setStatus('optional')
edfauom_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 102), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomFanCurrent.setStatus('optional')
edfamajor_high_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 103), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighFanCurrent.setStatus('mandatory')
edfamajor_low_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 104), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowFanCurrent.setStatus('mandatory')
edfaminor_high_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 105), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighFanCurrent.setStatus('mandatory')
edfaminor_low_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 106), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowFanCurrent.setStatus('mandatory')
edfacurrent_value_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 107), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacurrentValueFanCurrent.setStatus('mandatory')
edfastate_flag_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 108), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagFanCurrent.setStatus('mandatory')
edfamin_value_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 109), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueFanCurrent.setStatus('mandatory')
edfamax_value_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 110), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueFanCurrent.setStatus('mandatory')
edfaalarm_state_fan_current = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 111), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateFanCurrent.setStatus('mandatory')
edfalabel_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 112), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelOPSetting.setStatus('optional')
edfauom_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 113), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomOPSetting.setStatus('optional')
edfamajor_high_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 114), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighOPSetting.setStatus('mandatory')
edfamajor_low_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 115), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowOPSetting.setStatus('mandatory')
edfaminor_high_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 116), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighOPSetting.setStatus('mandatory')
edfaminor_low_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 117), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowOPSetting.setStatus('mandatory')
edfacurrent_value_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 118), float()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
edfacurrentValueOPSetting.setStatus('mandatory')
edfastate_flag_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 119), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagOPSetting.setStatus('mandatory')
edfamin_value_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 120), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueOPSetting.setStatus('mandatory')
edfamax_value_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 121), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueOPSetting.setStatus('mandatory')
edfaalarm_state_op_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 122), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateOPSetting.setStatus('mandatory')
edfalabel_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 123), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelLPSetting.setStatus('optional')
edfauom_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 124), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomLPSetting.setStatus('optional')
edfamajor_high_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 125), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighLPSetting.setStatus('mandatory')
edfamajor_low_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 126), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowLPSetting.setStatus('mandatory')
edfaminor_high_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 127), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighLPSetting.setStatus('mandatory')
edfaminor_low_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 128), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowLPSetting.setStatus('mandatory')
edfacurrent_value_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 129), float()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
edfacurrentValueLPSetting.setStatus('mandatory')
edfastate_flag_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 130), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagLPSetting.setStatus('mandatory')
edfamin_value_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 131), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueLPSetting.setStatus('mandatory')
edfamax_value_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 132), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueLPSetting.setStatus('mandatory')
edfaalarm_state_lp_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 133), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateLPSetting.setStatus('mandatory')
edfalabel_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 134), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelCGSetting.setStatus('optional')
edfauom_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 135), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomCGSetting.setStatus('optional')
edfamajor_high_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 136), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighCGSetting.setStatus('mandatory')
edfamajor_low_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 137), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowCGSetting.setStatus('mandatory')
edfaminor_high_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 138), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighCGSetting.setStatus('mandatory')
edfaminor_low_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 139), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowCGSetting.setStatus('mandatory')
edfacurrent_value_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 140), float()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
edfacurrentValueCGSetting.setStatus('mandatory')
edfastate_flag_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 141), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagCGSetting.setStatus('mandatory')
edfamin_value_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 142), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueCGSetting.setStatus('mandatory')
edfamax_value_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 143), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueCGSetting.setStatus('mandatory')
edfaalarm_state_cg_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 144), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateCGSetting.setStatus('mandatory')
edfalabel_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 145), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelOptThreshold.setStatus('optional')
edfauom_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 146), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfauomOptThreshold.setStatus('optional')
edfamajor_high_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 147), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorHighOptThreshold.setStatus('mandatory')
edfamajor_low_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 148), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamajorLowOptThreshold.setStatus('mandatory')
edfaminor_high_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 149), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorHighOptThreshold.setStatus('mandatory')
edfaminor_low_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 150), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminorLowOptThreshold.setStatus('mandatory')
edfacurrent_value_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 151), float()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
edfacurrentValueOptThreshold.setStatus('mandatory')
edfastate_flag_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 152), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagOptThreshold.setStatus('mandatory')
edfamin_value_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 153), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaminValueOptThreshold.setStatus('mandatory')
edfamax_value_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 154), float()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfamaxValueOptThreshold.setStatus('mandatory')
edfaalarm_state_opt_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 2, 1, 155), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noAlarm', 1), ('majorLowAlarm', 2), ('minorLowAlarm', 3), ('minorHighAlarm', 4), ('majorHighAlarm', 5), ('informational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaalarmStateOptThreshold.setStatus('mandatory')
edfagx2_edfa_digital_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfagx2EDFADigitalTableIndex.setStatus('mandatory')
edfalabel_mode_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelModeSetting.setStatus('optional')
edfaenum_mode_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaenumModeSetting.setStatus('optional')
edfavalue_mode_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('power-out-preset', 1), ('power-out-set', 2), ('laser-power-preset', 3), ('laser-power-set', 4), ('constant-gain-preset', 5), ('constant-gain-set', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
edfavalueModeSetting.setStatus('mandatory')
edfastate_flag_mode_setting = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagModeSetting.setStatus('mandatory')
edfalabel_module_state = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelModuleState.setStatus('optional')
edfaenum_module_state = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaenumModuleState.setStatus('optional')
edfavalue_module_state = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
edfavalueModuleState.setStatus('mandatory')
edfastate_flag_module_state = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagModuleState.setStatus('mandatory')
edfalabel_factory_default = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelFactoryDefault.setStatus('optional')
edfaenum_factory_default = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaenumFactoryDefault.setStatus('optional')
edfavalue_factory_default = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
edfavalueFactoryDefault.setStatus('mandatory')
edfastate_flag_factory_default = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 3, 2, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateFlagFactoryDefault.setStatus('mandatory')
edfagx2_edfa_status_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfagx2EDFAStatusTableIndex.setStatus('mandatory')
edfalabel_boot = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelBoot.setStatus('optional')
edfavalue_boot = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueBoot.setStatus('mandatory')
edfastateflag_boot = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagBoot.setStatus('mandatory')
edfalabel_flash = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelFlash.setStatus('optional')
edfavalue_flash = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueFlash.setStatus('mandatory')
edfastateflag_flash = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagFlash.setStatus('mandatory')
edfalabel_factory_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelFactoryDataCRC.setStatus('optional')
edfavalue_factory_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueFactoryDataCRC.setStatus('mandatory')
edfastateflag_factory_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagFactoryDataCRC.setStatus('mandatory')
edfalabel_alarm_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelAlarmDataCRC.setStatus('optional')
edfavalue_alarm_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueAlarmDataCRC.setStatus('mandatory')
edfastateflag_alarm_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagAlarmDataCRC.setStatus('mandatory')
edfalabel_calibration_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelCalibrationDataCRC.setStatus('optional')
edfavalue_calibration_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueCalibrationDataCRC.setStatus('mandatory')
edfastateflag_calibration_data_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagCalibrationDataCRC.setStatus('mandatory')
edfalabel_opt_in_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelOptInShutdown.setStatus('optional')
edfavalue_opt_in_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueOptInShutdown.setStatus('mandatory')
edfastateflag_opt_in_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagOptInShutdown.setStatus('mandatory')
edfalabel_tec_temp_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 20), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelTECTempShutdown.setStatus('optional')
edfavalue_tec_temp_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueTECTempShutdown.setStatus('mandatory')
edfastateflag_tec_temp_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagTECTempShutdown.setStatus('mandatory')
edfalabel_tec_shut_override = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 23), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelTECShutOverride.setStatus('optional')
edfavalue_tec_shut_override = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueTECShutOverride.setStatus('mandatory')
edfastateflag_tec_shut_override = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagTECShutOverride.setStatus('mandatory')
edfalabel_power_fail = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 26), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelPowerFail.setStatus('optional')
edfavalue_power_fail = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavaluePowerFail.setStatus('mandatory')
edfastateflag_power_fail = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagPowerFail.setStatus('mandatory')
edfalabel_key_switch = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 29), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelKeySwitch.setStatus('optional')
edfavalue_key_switch = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueKeySwitch.setStatus('mandatory')
edfastateflag_key_switch = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagKeySwitch.setStatus('mandatory')
edfalabel_laser_curr_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 32), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelLaserCurrShutdown.setStatus('optional')
edfavalue_laser_curr_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueLaserCurrShutdown.setStatus('mandatory')
edfastateflag_laser_curr_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagLaserCurrShutdown.setStatus('mandatory')
edfalabel_laser_pow_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 35), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelLaserPowShutdown.setStatus('optional')
edfavalue_laser_pow_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 36), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueLaserPowShutdown.setStatus('mandatory')
edfastateflag_laser_pow_shutdown = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 37), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagLaserPowShutdown.setStatus('mandatory')
edfalabel_adc_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 38), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelADCStatus.setStatus('optional')
edfavalue_adc_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueADCStatus.setStatus('mandatory')
edfastateflag_adc_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagADCStatus.setStatus('mandatory')
edfalabel_const_gain_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 41), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelConstGainStatus.setStatus('optional')
edfavalue_const_gain_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueConstGainStatus.setStatus('mandatory')
edfastateflag_const_gain_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 43), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagConstGainStatus.setStatus('mandatory')
edfalabel_standby_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 44), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfalabelStandbyStatus.setStatus('optional')
edfavalue_standby_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('undetermined', 2), ('warning', 3), ('minor', 4), ('major', 5), ('critical', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfavalueStandbyStatus.setStatus('mandatory')
edfastateflag_standby_status = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 4, 3, 46), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hidden', 1), ('read-only', 2), ('updateable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfastateflagStandbyStatus.setStatus('mandatory')
edfagx2_edfa_factory_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfagx2EDFAFactoryTableIndex.setStatus('mandatory')
edfaboot_control_byte = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfabootControlByte.setStatus('mandatory')
edfaboot_status_byte = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfabootStatusByte.setStatus('mandatory')
edfabank0_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfabank0CRC.setStatus('mandatory')
edfabank1_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfabank1CRC.setStatus('mandatory')
edfaprg_eeprom_byte = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaprgEEPROMByte.setStatus('mandatory')
edfafactory_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfafactoryCRC.setStatus('mandatory')
edfacalculate_crc = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('factory', 1), ('calibration', 2), ('alarmdata', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfacalculateCRC.setStatus('mandatory')
edfahour_meter = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfahourMeter.setStatus('mandatory')
edfaflash_prg_cnt_a = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaflashPrgCntA.setStatus('mandatory')
edfaflash_prg_cnt_b = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfaflashPrgCntB.setStatus('mandatory')
edfafw_rev0 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfafwRev0.setStatus('mandatory')
edfafw_rev1 = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 5, 4, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
edfafwRev1.setStatus('mandatory')
gx2_edfa_hold_time_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2EDFAHoldTimeTableIndex.setStatus('mandatory')
gx2_edfa_hold_time_spec_index = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
gx2EDFAHoldTimeSpecIndex.setStatus('mandatory')
gx2_edfa_hold_time_data = mib_table_column((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11, 6, 5, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
gx2EDFAHoldTimeData.setStatus('mandatory')
trap_edfa_config_change_integer = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 1)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_config_change_display_string = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 2)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueDisplayString'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_module_temperature_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 3)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_optical_in_power_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 4)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_optical_out_power_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 5)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfatec_temperature_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 6)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfatec_current_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 7)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_laser_current_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 8)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_laser_power_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 9)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_plus12_current_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 10)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_plus37_current_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 11)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_fan_current_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 12)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_reset_fac_default = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 13)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_standby_mode = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 14)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_opt_in_shutdown = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 15)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfatec_temp_shutdown = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 16)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_key_switch = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 17)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_power_fail = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 18)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_las_curr_shutdown = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 19)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_las_power_shutdown = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 20)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_invalid_mode = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 21)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_flash_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 22)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_boot0_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 23)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_boot1_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 24)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_alarm_data_crc_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 25)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_factory_data_crc_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 26)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_cal_data_crc_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 27)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_fac_cal_float_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 28)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_opt_in_thresh_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 29)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
trap_edfa_gain_error_alarm = notification_type((1, 3, 6, 1, 4, 1, 1166, 6, 1, 2, 11) + (0, 30)).setObjects(('NLSBBN-TRAPS-MIB', 'trapIdentifier'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemModelNumber'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemSerialNum'), ('NLSBBN-TRAPS-MIB', 'trapPerceivedSeverity'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemOperState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAlarmStatus'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAdminState'), ('NLSBBN-TRAPS-MIB', 'trapNetworkElemAvailStatus'), ('NLSBBN-TRAPS-MIB', 'trapText'), ('NLSBBN-TRAPS-MIB', 'trapChangedObjectId'), ('NLSBBN-TRAPS-MIB', 'trapChangedValueInteger'), ('NLSBBN-TRAPS-MIB', 'trapNETrapLastTrapTimeStamp'))
mibBuilder.exportSymbols('OMNI-gx2EDFA-MIB', edfalabelPowerFail=edfalabelPowerFail, edfamajorHighModTemp=edfamajorHighModTemp, gx2EDFADescriptor=gx2EDFADescriptor, edfamajorLowOptThreshold=edfamajorLowOptThreshold, edfavalueTECShutOverride=edfavalueTECShutOverride, trapEDFAOpticalOutPowerAlarm=trapEDFAOpticalOutPowerAlarm, edfaminorLowTECTemp=edfaminorLowTECTemp, edfalabelTECTemp=edfalabelTECTemp, edfastateflagADCStatus=edfastateflagADCStatus, edfaflashPrgCntA=edfaflashPrgCntA, edfabank0CRC=edfabank0CRC, edfaalarmStateTECTemp=edfaalarmStateTECTemp, edfastateFlagTECCurrent=edfastateFlagTECCurrent, edfacurrentValueLaserPower=edfacurrentValueLaserPower, edfamajorLowFanCurrent=edfamajorLowFanCurrent, edfamajorLowCGSetting=edfamajorLowCGSetting, edfaminorHighCGSetting=edfaminorHighCGSetting, edfamajorHighOptThreshold=edfamajorHighOptThreshold, edfalabelADCStatus=edfalabelADCStatus, edfastateFlagLaserPower=edfastateFlagLaserPower, edfastateflagFlash=edfastateflagFlash, edfalabelCalibrationDataCRC=edfalabelCalibrationDataCRC, edfamajorHighCGSetting=edfamajorHighCGSetting, edfalabelFactoryDataCRC=edfalabelFactoryDataCRC, gx2EDFAFactoryTable=gx2EDFAFactoryTable, edfavalueFlash=edfavalueFlash, edfahourMeter=edfahourMeter, edfaminorHigh37Volt=edfaminorHigh37Volt, edfaminorHighOptInPower=edfaminorHighOptInPower, edfafactoryCRC=edfafactoryCRC, edfamajorLowModTemp=edfamajorLowModTemp, edfaminValueFanCurrent=edfaminValueFanCurrent, edfacurrentValueOPSetting=edfacurrentValueOPSetting, trapEDFALaserCurrentAlarm=trapEDFALaserCurrentAlarm, trapEDFAFanCurrentAlarm=trapEDFAFanCurrentAlarm, edfacurrentValue37Volt=edfacurrentValue37Volt, edfastateFlagLPSetting=edfastateFlagLPSetting, edfauomFanCurrent=edfauomFanCurrent, edfastateflagStandbyStatus=edfastateflagStandbyStatus, edfalabelLPSetting=edfalabelLPSetting, edfauomTECTemp=edfauomTECTemp, edfastateflagConstGainStatus=edfastateflagConstGainStatus, edfastateflagPowerFail=edfastateflagPowerFail, trapEDFAFacCalFloatAlarm=trapEDFAFacCalFloatAlarm, gx2EDFAStatusEntry=gx2EDFAStatusEntry, edfamajorLow12Volt=edfamajorLow12Volt, edfaminValueOptOutPower=edfaminValueOptOutPower, edfacurrentValueTECTemp=edfacurrentValueTECTemp, edfacurrentValueTECCurrent=edfacurrentValueTECCurrent, edfaalarmStateOPSetting=edfaalarmStateOPSetting, edfalabelTECShutOverride=edfalabelTECShutOverride, gx2EDFAFactoryEntry=gx2EDFAFactoryEntry, edfaminorLowFanCurrent=edfaminorLowFanCurrent, edfastateFlagFanCurrent=edfastateFlagFanCurrent, edfaminorLowOPSetting=edfaminorLowOPSetting, edfastateflagKeySwitch=edfastateflagKeySwitch, edfagx2EDFAFactoryTableIndex=edfagx2EDFAFactoryTableIndex, edfalabelConstGainStatus=edfalabelConstGainStatus, trapEDFAOpticalInPowerAlarm=trapEDFAOpticalInPowerAlarm, edfamajorLowLPSetting=edfamajorLowLPSetting, edfaalarmStateCGSetting=edfaalarmStateCGSetting, edfamaxValueTECCurrent=edfamaxValueTECCurrent, edfastateFlagOptOutPower=edfastateFlagOptOutPower, trapEDFAConfigChangeInteger=trapEDFAConfigChangeInteger, trapEDFAOptInThreshAlarm=trapEDFAOptInThreshAlarm, edfavalueFactoryDefault=edfavalueFactoryDefault, edfaminorLowLaserPower=edfaminorLowLaserPower, edfalabelOPSetting=edfalabelOPSetting, edfauomOptOutPower=edfauomOptOutPower, edfabootControlByte=edfabootControlByte, edfaprgEEPROMByte=edfaprgEEPROMByte, edfacurrentValueOptInPower=edfacurrentValueOptInPower, edfamajorHighFanCurrent=edfamajorHighFanCurrent, trapEDFABoot0Alarm=trapEDFABoot0Alarm, edfamaxValueTECTemp=edfamaxValueTECTemp, edfaminorHighOptOutPower=edfaminorHighOptOutPower, edfavaluePowerFail=edfavaluePowerFail, trapEDFALasCurrShutdown=trapEDFALasCurrShutdown, edfalabelLaserCurrent=edfalabelLaserCurrent, edfalabelOptInPower=edfalabelOptInPower, edfaminorLow12Volt=edfaminorLow12Volt, trapEDFAConfigChangeDisplayString=trapEDFAConfigChangeDisplayString, edfauom12Volt=edfauom12Volt, edfagx2EDFAAnalogTableIndex=edfagx2EDFAAnalogTableIndex, edfaalarmStateLaserPower=edfaalarmStateLaserPower, edfaminValueLPSetting=edfaminValueLPSetting, edfaminValueOptThreshold=edfaminValueOptThreshold, edfamajorHigh37Volt=edfamajorHigh37Volt, edfastateflagFactoryDataCRC=edfastateflagFactoryDataCRC, edfafwRev0=edfafwRev0, edfaminorHighLaserPower=edfaminorHighLaserPower, trapEDFAStandbyMode=trapEDFAStandbyMode, edfaminValue37Volt=edfaminValue37Volt, edfabank1CRC=edfabank1CRC, edfavalueAlarmDataCRC=edfavalueAlarmDataCRC, edfaminValueModTemp=edfaminValueModTemp, edfaminorHigh12Volt=edfaminorHigh12Volt, edfamaxValueOPSetting=edfamaxValueOPSetting, gx2EDFAAnalogEntry=gx2EDFAAnalogEntry, edfastateFlagOptThreshold=edfastateFlagOptThreshold, edfamajorHighLPSetting=edfamajorHighLPSetting, edfaminorLowLaserCurrent=edfaminorLowLaserCurrent, edfamajorLowOptOutPower=edfamajorLowOptOutPower, edfamaxValue37Volt=edfamaxValue37Volt, edfaminValue12Volt=edfaminValue12Volt, gx2EDFAAnalogTable=gx2EDFAAnalogTable, edfaminorLowOptInPower=edfaminorLowOptInPower, edfaminValueTECTemp=edfaminValueTECTemp, edfaalarmState12Volt=edfaalarmState12Volt, trapEDFALasPowerShutdown=trapEDFALasPowerShutdown, edfastateFlagFactoryDefault=edfastateFlagFactoryDefault, edfabootStatusByte=edfabootStatusByte, edfaminorHighTECCurrent=edfaminorHighTECCurrent, edfastateFlagOptInPower=edfastateFlagOptInPower, edfalabelCGSetting=edfalabelCGSetting, edfalabelModeSetting=edfalabelModeSetting, edfamajorHighOPSetting=edfamajorHighOPSetting, edfacurrentValueFanCurrent=edfacurrentValueFanCurrent, edfavalueLaserPowShutdown=edfavalueLaserPowShutdown, edfavalueFactoryDataCRC=edfavalueFactoryDataCRC, edfamaxValueOptThreshold=edfamaxValueOptThreshold, edfavalueCalibrationDataCRC=edfavalueCalibrationDataCRC, edfamaxValueOptInPower=edfamaxValueOptInPower, edfaalarmStateModTemp=edfaalarmStateModTemp, edfalabel37Volt=edfalabel37Volt, trapEDFAOptInShutdown=trapEDFAOptInShutdown, edfamajorLow37Volt=edfamajorLow37Volt, edfalabelOptOutPower=edfalabelOptOutPower, edfalabelAlarmDataCRC=edfalabelAlarmDataCRC, edfastateflagOptInShutdown=edfastateflagOptInShutdown, edfalabelKeySwitch=edfalabelKeySwitch, edfavalueConstGainStatus=edfavalueConstGainStatus, trapEDFALaserPowerAlarm=trapEDFALaserPowerAlarm, edfauomTECCurrent=edfauomTECCurrent, edfauomLaserPower=edfauomLaserPower, edfamaxValueLaserPower=edfamaxValueLaserPower, edfalabelFanCurrent=edfalabelFanCurrent, edfavalueTECTempShutdown=edfavalueTECTempShutdown, edfafwRev1=edfafwRev1, edfacalculateCRC=edfacalculateCRC, edfaalarmState37Volt=edfaalarmState37Volt, edfaminorHighLPSetting=edfaminorHighLPSetting, edfaminValueCGSetting=edfaminValueCGSetting, trapEDFATECTempShutdown=trapEDFATECTempShutdown, edfavalueModeSetting=edfavalueModeSetting, trapEDFAResetFacDefault=trapEDFAResetFacDefault, trapEDFAPowerFail=trapEDFAPowerFail, edfaminValueOptInPower=edfaminValueOptInPower, edfaminorLowLPSetting=edfaminorLowLPSetting, edfacurrentValueModTemp=edfacurrentValueModTemp, edfagx2EDFAStatusTableIndex=edfagx2EDFAStatusTableIndex, edfaminorHighOptThreshold=edfaminorHighOptThreshold, edfaenumModuleState=edfaenumModuleState, edfaminorLowTECCurrent=edfaminorLowTECCurrent, trapEDFAInvalidMode=trapEDFAInvalidMode, trapEDFAFlashAlarm=trapEDFAFlashAlarm, edfavalueStandbyStatus=edfavalueStandbyStatus, edfaminorHighFanCurrent=edfaminorHighFanCurrent, edfastateFlagOPSetting=edfastateFlagOPSetting, edfastateFlagCGSetting=edfastateFlagCGSetting, edfamajorLowTECTemp=edfamajorLowTECTemp, edfavalueADCStatus=edfavalueADCStatus, trapEDFAFactoryDataCRCAlarm=trapEDFAFactoryDataCRCAlarm, trapEDFAKeySwitch=trapEDFAKeySwitch, edfalabelOptInShutdown=edfalabelOptInShutdown, edfaalarmStateOptOutPower=edfaalarmStateOptOutPower, edfalabelLaserCurrShutdown=edfalabelLaserCurrShutdown, edfaalarmStateFanCurrent=edfaalarmStateFanCurrent, edfaalarmStateLPSetting=edfaalarmStateLPSetting, trapEDFATECCurrentAlarm=trapEDFATECCurrentAlarm, trapEDFAPlus12CurrentAlarm=trapEDFAPlus12CurrentAlarm, trapEDFAPlus37CurrentAlarm=trapEDFAPlus37CurrentAlarm, gx2EDFAHoldTimeSpecIndex=gx2EDFAHoldTimeSpecIndex, edfastateflagTECTempShutdown=edfastateflagTECTempShutdown, edfaalarmStateLaserCurrent=edfaalarmStateLaserCurrent, gx2EDFAHoldTimeData=gx2EDFAHoldTimeData, edfastateFlag12Volt=edfastateFlag12Volt, edfamajorHighTECTemp=edfamajorHighTECTemp, edfauomModTemp=edfauomModTemp, edfamaxValueLaserCurrent=edfamaxValueLaserCurrent, edfaminorHighOPSetting=edfaminorHighOPSetting, edfauomCGSetting=edfauomCGSetting, edfauom37Volt=edfauom37Volt, trapEDFAModuleTemperatureAlarm=trapEDFAModuleTemperatureAlarm, edfamaxValueModTemp=edfamaxValueModTemp, edfaminorLowCGSetting=edfaminorLowCGSetting, edfamajorHigh12Volt=edfamajorHigh12Volt, gx2EDFADigitalEntry=gx2EDFADigitalEntry, edfastateflagTECShutOverride=edfastateflagTECShutOverride, edfaminValueLaserCurrent=edfaminValueLaserCurrent, edfaflashPrgCntB=edfaflashPrgCntB, edfavalueLaserCurrShutdown=edfavalueLaserCurrShutdown, edfaminValueLaserPower=edfaminValueLaserPower, edfaalarmStateOptThreshold=edfaalarmStateOptThreshold, edfaenumModeSetting=edfaenumModeSetting, edfauomOPSetting=edfauomOPSetting, edfamajorLowOptInPower=edfamajorLowOptInPower, edfaminorLowModTemp=edfaminorLowModTemp, edfaminorHighModTemp=edfaminorHighModTemp, edfalabelLaserPower=edfalabelLaserPower, edfavalueOptInShutdown=edfavalueOptInShutdown, edfaenumFactoryDefault=edfaenumFactoryDefault, edfalabelFlash=edfalabelFlash, edfamajorHighOptInPower=edfamajorHighOptInPower, edfaalarmStateOptInPower=edfaalarmStateOptInPower, edfacurrentValue12Volt=edfacurrentValue12Volt, edfamaxValueFanCurrent=edfamaxValueFanCurrent, edfamaxValueLPSetting=edfamaxValueLPSetting, edfacurrentValueLaserCurrent=edfacurrentValueLaserCurrent, edfastateFlagModTemp=edfastateFlagModTemp, edfaminorLow37Volt=edfaminorLow37Volt, edfavalueKeySwitch=edfavalueKeySwitch, trapEDFAAlarmDataCRCAlarm=trapEDFAAlarmDataCRCAlarm, edfastateFlagTECTemp=edfastateFlagTECTemp, edfastateflagAlarmDataCRC=edfastateflagAlarmDataCRC, edfamajorLowLaserCurrent=edfamajorLowLaserCurrent, edfamajorHighLaserCurrent=edfamajorHighLaserCurrent, trapEDFATECTemperatureAlarm=trapEDFATECTemperatureAlarm, edfamajorHighLaserPower=edfamajorHighLaserPower, edfacurrentValueOptThreshold=edfacurrentValueOptThreshold, edfaminorHighLaserCurrent=edfaminorHighLaserCurrent, edfalabelBoot=edfalabelBoot, edfavalueBoot=edfavalueBoot, edfaminorHighTECTemp=edfaminorHighTECTemp, edfamajorHighTECCurrent=edfamajorHighTECCurrent, edfastateFlagModeSetting=edfastateFlagModeSetting, edfaminValueTECCurrent=edfaminValueTECCurrent, edfalabelFactoryDefault=edfalabelFactoryDefault, trapEDFAGainErrorAlarm=trapEDFAGainErrorAlarm, edfamaxValueCGSetting=edfamaxValueCGSetting, Float=Float, gx2EDFAStatusTable=gx2EDFAStatusTable, edfalabelLaserPowShutdown=edfalabelLaserPowShutdown, edfalabelModuleState=edfalabelModuleState, edfamajorLowLaserPower=edfamajorLowLaserPower, edfauomOptThreshold=edfauomOptThreshold, edfastateflagBoot=edfastateflagBoot, edfaminorLowOptThreshold=edfaminorLowOptThreshold, trapEDFABoot1Alarm=trapEDFABoot1Alarm, edfamajorLowTECCurrent=edfamajorLowTECCurrent, edfalabelStandbyStatus=edfalabelStandbyStatus, gx2EDFAHoldTimeEntry=gx2EDFAHoldTimeEntry, edfauomOptInPower=edfauomOptInPower, edfaminValueOPSetting=edfaminValueOPSetting, edfastateflagCalibrationDataCRC=edfastateflagCalibrationDataCRC, edfacurrentValueCGSetting=edfacurrentValueCGSetting, edfacurrentValueLPSetting=edfacurrentValueLPSetting, edfastateFlagModuleState=edfastateFlagModuleState, edfamajorHighOptOutPower=edfamajorHighOptOutPower, edfastateflagLaserPowShutdown=edfastateflagLaserPowShutdown, edfalabelOptThreshold=edfalabelOptThreshold, edfaminorLowOptOutPower=edfaminorLowOptOutPower, edfamajorLowOPSetting=edfamajorLowOPSetting, edfalabelTECTempShutdown=edfalabelTECTempShutdown)
mibBuilder.exportSymbols('OMNI-gx2EDFA-MIB', edfamaxValue12Volt=edfamaxValue12Volt, edfalabel12Volt=edfalabel12Volt, trapEDFACalDataCRCAlarm=trapEDFACalDataCRCAlarm, edfamaxValueOptOutPower=edfamaxValueOptOutPower, edfastateFlagLaserCurrent=edfastateFlagLaserCurrent, gx2EDFAHoldTimeTable=gx2EDFAHoldTimeTable, edfavalueModuleState=edfavalueModuleState, edfastateFlag37Volt=edfastateFlag37Volt, edfalabelModTemp=edfalabelModTemp, edfalabelTECCurrent=edfalabelTECCurrent, gx2EDFADigitalTable=gx2EDFADigitalTable, edfacurrentValueOptOutPower=edfacurrentValueOptOutPower, edfauomLaserCurrent=edfauomLaserCurrent, edfauomLPSetting=edfauomLPSetting, edfagx2EDFADigitalTableIndex=edfagx2EDFADigitalTableIndex, edfastateflagLaserCurrShutdown=edfastateflagLaserCurrShutdown, gx2EDFAHoldTimeTableIndex=gx2EDFAHoldTimeTableIndex, edfaalarmStateTECCurrent=edfaalarmStateTECCurrent) |
class CQueue:
def __init__(self):
self.q = []
def appendTail(self, value: int) -> None:
self.q.append(value)
def deleteHead(self) -> int:
return self.q.pop(0) if self.q else -1
# Your CQueue object will be instantiated and called as such:
# obj = CQueue()
# obj.appendTail(value)
# param_2 = obj.deleteHead()
| class Cqueue:
def __init__(self):
self.q = []
def append_tail(self, value: int) -> None:
self.q.append(value)
def delete_head(self) -> int:
return self.q.pop(0) if self.q else -1 |
# -*- coding: utf-8 -*-
__author__ = "venkat"
__author_email__ = "venkatram0273@gmail.com"
def block_indentation():
if 10 > 10:
print("if statement indented")
elif 10 > 5:
print("elif statement indented")
else:
print("else default statement indented")
for i in range(10):
print(i)
print("For loop also indented")
a = 0
while a > 2:
print("While loop also indented with 4 spaces but not tab")
print(a)
a = a + 1
if __name__ == "__main__":
block_indentation()
| __author__ = 'venkat'
__author_email__ = 'venkatram0273@gmail.com'
def block_indentation():
if 10 > 10:
print('if statement indented')
elif 10 > 5:
print('elif statement indented')
else:
print('else default statement indented')
for i in range(10):
print(i)
print('For loop also indented')
a = 0
while a > 2:
print('While loop also indented with 4 spaces but not tab')
print(a)
a = a + 1
if __name__ == '__main__':
block_indentation() |
# read numbers
numbers = []
with open("nums.txt", "r") as f:
lines = f.readlines()
numbers = [int(i) for i in lines]
print(numbers)
# part 1 soln
for x,el in enumerate(numbers):
for i in range(x+1, len(numbers)):
if el + numbers[i] == 2020:
print("YAY: {} {}".format(el, numbers[i]))
# part 2 soln
for x,el in enumerate(numbers):
for i in range(x+1, len(numbers)):
for j in range(i+1, len(numbers)):
if el + numbers[i] + numbers[j] == 2020:
print("YAY: {} {} {}".format(el, numbers[i], numbers[j]))
| numbers = []
with open('nums.txt', 'r') as f:
lines = f.readlines()
numbers = [int(i) for i in lines]
print(numbers)
for (x, el) in enumerate(numbers):
for i in range(x + 1, len(numbers)):
if el + numbers[i] == 2020:
print('YAY: {} {}'.format(el, numbers[i]))
for (x, el) in enumerate(numbers):
for i in range(x + 1, len(numbers)):
for j in range(i + 1, len(numbers)):
if el + numbers[i] + numbers[j] == 2020:
print('YAY: {} {} {}'.format(el, numbers[i], numbers[j])) |
# -*- coding: UTF-8 -*-
def read_file(filepath):
with open(filepath,'rb') as file:
# yield (file.readlines())
for i in file:
yield i
a = read_file(r'D:\pythontest/test\python_100/2/base.txt')
print(next(a))
| def read_file(filepath):
with open(filepath, 'rb') as file:
for i in file:
yield i
a = read_file('D:\\pythontest/test\\python_100/2/base.txt')
print(next(a)) |
class Solution:
def destCity(self, paths: List[List[str]]) -> str:
start = (list(map(lambda x: x[0], paths)))
for path in paths:
if path[1] not in start: return path[1]
# dic = {}
# for i in range(len(paths)):
# dic[paths[i][0]] = paths[i][1]
# city = paths[0][0]
# while True:
# if city in dic.keys(): city = dic[city]
# else: return city
| class Solution:
def dest_city(self, paths: List[List[str]]) -> str:
start = list(map(lambda x: x[0], paths))
for path in paths:
if path[1] not in start:
return path[1] |
# Copyright 2020 Software Improvement Group
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""
Module provides graph query and json query of a call graph in FASTEN json format.
"""
class GraphQuery:
def __init__(self,cg):
pass
def get_trans_callees(self, method):
return []
def get_trans_callers(self, method):
return []
| """
Module provides graph query and json query of a call graph in FASTEN json format.
"""
class Graphquery:
def __init__(self, cg):
pass
def get_trans_callees(self, method):
return []
def get_trans_callers(self, method):
return [] |
class Solution:
def rotatedDigits(self, n: int) -> int:
goodnums = set([2,5,6,9])
badnums = set([3,4,7])
ans = 0
for i in range(1,n+1):
good = False
num = i
while num:
remains = num % 10
if remains in goodnums:
good = True
elif remains in badnums:
good = False
break
num //= 10
if good:
ans += 1
return ans
| class Solution:
def rotated_digits(self, n: int) -> int:
goodnums = set([2, 5, 6, 9])
badnums = set([3, 4, 7])
ans = 0
for i in range(1, n + 1):
good = False
num = i
while num:
remains = num % 10
if remains in goodnums:
good = True
elif remains in badnums:
good = False
break
num //= 10
if good:
ans += 1
return ans |
# TODO: Chain class
"""
The Chain class will support chaining multiple Digests together.
The Chain feature should have support to be placed ANYWHERE within the ApiForm and chain together DigestFeatures
A single Digest Feature should run within the same thread/process and be relatively simple.
A series of Digest Features, or features that take more time should be placed into a chain, and chains should support
the ability to:
Run concurrently i.e. Support both -> ProcessPool/ThreadPool.
with Pool(5) as p:
res = p.map(DigestFeature, [df_1, df_2, df_3]))
Run serially: Support both -> Thread/Process
def mapper(f, df):
do stuff to df
return df
mapping = [f1, f2, f2]
def p_map(fs, df):
Process(target=f1, args=(df,))
df = Process result
Process(target=f2, args=(df,))
.
.
.
Chain example:
c = Chain(
DigestGetLatLongs(**kwargs),
DigestApiCallToGetCounty(**kwargs),
DigestGenerateMapWithLatLongAsPng(**kwargs),
DigestPostPngToGcs(**kwargs)
.
.
etc.
)
""" | """
The Chain class will support chaining multiple Digests together.
The Chain feature should have support to be placed ANYWHERE within the ApiForm and chain together DigestFeatures
A single Digest Feature should run within the same thread/process and be relatively simple.
A series of Digest Features, or features that take more time should be placed into a chain, and chains should support
the ability to:
Run concurrently i.e. Support both -> ProcessPool/ThreadPool.
with Pool(5) as p:
res = p.map(DigestFeature, [df_1, df_2, df_3]))
Run serially: Support both -> Thread/Process
def mapper(f, df):
do stuff to df
return df
mapping = [f1, f2, f2]
def p_map(fs, df):
Process(target=f1, args=(df,))
df = Process result
Process(target=f2, args=(df,))
.
.
.
Chain example:
c = Chain(
DigestGetLatLongs(**kwargs),
DigestApiCallToGetCounty(**kwargs),
DigestGenerateMapWithLatLongAsPng(**kwargs),
DigestPostPngToGcs(**kwargs)
.
.
etc.
)
""" |
def d(n):
return n + sum(list(map(int, list(str(n)))))
nums = [x for x in range(1, 10001)]
for i in range(1, 10001):
if d(i) in nums:
nums.remove(d(i))
for num in nums:
print(num) | def d(n):
return n + sum(list(map(int, list(str(n)))))
nums = [x for x in range(1, 10001)]
for i in range(1, 10001):
if d(i) in nums:
nums.remove(d(i))
for num in nums:
print(num) |
class Node:
def __init__(self, data) -> None:
self.data = data
self.next = None
self.traversed = False
class LinkedList:
def __init__(self) -> None:
self.head = self.rear = None
def check_loop(node):
temp = node.head
if temp == None:
print("Empty!!")
return
while temp:
if temp.traversed:
print("Loop Exist!!")
return
temp.traversed = True
temp = temp.next
print("Loop Does Not Exist!!")
def loop_using_hash(node): # O(n) and O(n) in both time and space
temp = node.head
h = set()
if temp == None:
print("Empty!!")
return
while temp:
if temp in h:
print("Loop Exist!!")
return
h.add(temp)
temp = temp.next
print("Loop Does Not Exist!!")
def loop_using_floyd_cycle(node):
slow = node.head
fast = node.head
while slow and fast.next and fast:
slow = slow.next
fast = fast.next.next
if slow == fast:
print("Loop Exist!!")
return
print("Loop Does Not Exist!!")
linked_list = LinkedList()
first = Node(1)
second = Node(2)
third = Node(3)
forth = Node(4)
fifth = Node(5)
linked_list.head = linked_list.rear = first
first.next = second
second.next = third
third.next = forth
forth.next = fifth
fifth.next = second
check_loop(linked_list)
loop_using_hash(linked_list)
loop_using_floyd_cycle(linked_list)
| class Node:
def __init__(self, data) -> None:
self.data = data
self.next = None
self.traversed = False
class Linkedlist:
def __init__(self) -> None:
self.head = self.rear = None
def check_loop(node):
temp = node.head
if temp == None:
print('Empty!!')
return
while temp:
if temp.traversed:
print('Loop Exist!!')
return
temp.traversed = True
temp = temp.next
print('Loop Does Not Exist!!')
def loop_using_hash(node):
temp = node.head
h = set()
if temp == None:
print('Empty!!')
return
while temp:
if temp in h:
print('Loop Exist!!')
return
h.add(temp)
temp = temp.next
print('Loop Does Not Exist!!')
def loop_using_floyd_cycle(node):
slow = node.head
fast = node.head
while slow and fast.next and fast:
slow = slow.next
fast = fast.next.next
if slow == fast:
print('Loop Exist!!')
return
print('Loop Does Not Exist!!')
linked_list = linked_list()
first = node(1)
second = node(2)
third = node(3)
forth = node(4)
fifth = node(5)
linked_list.head = linked_list.rear = first
first.next = second
second.next = third
third.next = forth
forth.next = fifth
fifth.next = second
check_loop(linked_list)
loop_using_hash(linked_list)
loop_using_floyd_cycle(linked_list) |
def is_horiz_or_vert(line):
return line[0]["x"] == line[1]["x"] or line[0]["y"] == line[1]["y"]
def parse(input_line):
return [
{"x": int(x), "y": int(y)}
for x, y in [s.strip().split(",") for s in input_line.split("->")]
]
def do_it(input_lines, diagonals=False):
lines = [
line
for line in [parse(input_line) for input_line in input_lines]
if diagonals or is_horiz_or_vert(line)
]
max_x = max(point["x"] for line in lines for point in line)
max_y = max(point["y"] for line in lines for point in line)
plot = [[0 for _ in range(max_x + 1)] for _ in range(max_y + 1)]
for a, b in lines:
cur_x = a["x"]
cur_y = a["y"]
dest_x = b["x"]
dest_y = b["y"]
plot[cur_y][cur_x] += 1
while cur_x - dest_x != 0 or cur_y - dest_y != 0:
if cur_x < dest_x:
cur_x += 1
elif cur_x > dest_x:
cur_x -= 1
if cur_y < dest_y:
cur_y += 1
elif cur_y > dest_y:
cur_y -= 1
plot[cur_y][cur_x] += 1
return sum(1 for row in plot for point in row if point > 1)
def part_one(lines):
return do_it(lines)
def part_two(lines):
return do_it(lines, True)
| def is_horiz_or_vert(line):
return line[0]['x'] == line[1]['x'] or line[0]['y'] == line[1]['y']
def parse(input_line):
return [{'x': int(x), 'y': int(y)} for (x, y) in [s.strip().split(',') for s in input_line.split('->')]]
def do_it(input_lines, diagonals=False):
lines = [line for line in [parse(input_line) for input_line in input_lines] if diagonals or is_horiz_or_vert(line)]
max_x = max((point['x'] for line in lines for point in line))
max_y = max((point['y'] for line in lines for point in line))
plot = [[0 for _ in range(max_x + 1)] for _ in range(max_y + 1)]
for (a, b) in lines:
cur_x = a['x']
cur_y = a['y']
dest_x = b['x']
dest_y = b['y']
plot[cur_y][cur_x] += 1
while cur_x - dest_x != 0 or cur_y - dest_y != 0:
if cur_x < dest_x:
cur_x += 1
elif cur_x > dest_x:
cur_x -= 1
if cur_y < dest_y:
cur_y += 1
elif cur_y > dest_y:
cur_y -= 1
plot[cur_y][cur_x] += 1
return sum((1 for row in plot for point in row if point > 1))
def part_one(lines):
return do_it(lines)
def part_two(lines):
return do_it(lines, True) |
windowWight=650
windowHeight=650
ellipseSize=200
def setup():
size(windowWight,windowHeight)
smooth()
background(255)
fill(50,80)
stroke(100)
strokeWeight(3)
noLoop()
def draw():
ellipse(windowWight/2, windowHeight/2 - ellipseSize/2, ellipseSize, ellipseSize)
ellipse(windowWight/2 - ellipseSize/2, windowHeight/2, ellipseSize, ellipseSize)
ellipse(windowWight/2 + ellipseSize/2, windowHeight/2, ellipseSize, ellipseSize)
ellipse(windowWight/2, windowHeight/2 + ellipseSize/2, ellipseSize, ellipseSize)
| window_wight = 650
window_height = 650
ellipse_size = 200
def setup():
size(windowWight, windowHeight)
smooth()
background(255)
fill(50, 80)
stroke(100)
stroke_weight(3)
no_loop()
def draw():
ellipse(windowWight / 2, windowHeight / 2 - ellipseSize / 2, ellipseSize, ellipseSize)
ellipse(windowWight / 2 - ellipseSize / 2, windowHeight / 2, ellipseSize, ellipseSize)
ellipse(windowWight / 2 + ellipseSize / 2, windowHeight / 2, ellipseSize, ellipseSize)
ellipse(windowWight / 2, windowHeight / 2 + ellipseSize / 2, ellipseSize, ellipseSize) |
# list(map(int, input().split()))
# int(input())
def main(N, A):
ans = 0
for n in range(1, N+1, 2):
if A[n-1] % 2 == 1:
ans += 1
print(ans)
if __name__ == '__main__':
N = int(input())
A = list(map(int, input().split()))
main(N, A)
| def main(N, A):
ans = 0
for n in range(1, N + 1, 2):
if A[n - 1] % 2 == 1:
ans += 1
print(ans)
if __name__ == '__main__':
n = int(input())
a = list(map(int, input().split()))
main(N, A) |
budget = 150.0
pi_string = '03.14159260'
age_string = '21'
# convert string to number
pi_float = float(pi_string)
age_int = int(age_string)
# convert and print to string
print('The budget is: $' + str(budget))
print('pi_string: ' + pi_string)
print('pi_float: ' + str(pi_float))
print('age_int: ' + str(age_int)) | budget = 150.0
pi_string = '03.14159260'
age_string = '21'
pi_float = float(pi_string)
age_int = int(age_string)
print('The budget is: $' + str(budget))
print('pi_string: ' + pi_string)
print('pi_float: ' + str(pi_float))
print('age_int: ' + str(age_int)) |
ficha=list()
while True:
nome=str(input('Nome: '))
nota1=float(input('Nota 1: '))
nota2=float(input('Nota 2: '))
media= (nota1+nota2)/2
ficha.append([nome, [nota1,nota2],media])
resp=str(input('Quer continuar? [S/N]: ')).strip().upper()
if resp in 'N':
break
print('-='*30)
| ficha = list()
while True:
nome = str(input('Nome: '))
nota1 = float(input('Nota 1: '))
nota2 = float(input('Nota 2: '))
media = (nota1 + nota2) / 2
ficha.append([nome, [nota1, nota2], media])
resp = str(input('Quer continuar? [S/N]: ')).strip().upper()
if resp in 'N':
break
print('-=' * 30) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright 2020, Yutong Xie, UIUC.
Convert sorted array to binary search tree using recursion.
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
def helper(l, r):
if l > r:
return None
mid = (l+r)//2
root = TreeNode(nums[mid])
root.left = helper(l, mid-1)
root.right = helper(mid+1, r)
return root
root = helper(0, len(nums)-1)
return root
| """
Copyright 2020, Yutong Xie, UIUC.
Convert sorted array to binary search tree using recursion.
"""
class Solution(object):
def sorted_array_to_bst(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
def helper(l, r):
if l > r:
return None
mid = (l + r) // 2
root = tree_node(nums[mid])
root.left = helper(l, mid - 1)
root.right = helper(mid + 1, r)
return root
root = helper(0, len(nums) - 1)
return root |
#exercice 1
#calories calculator. create 2 functions main, calories.
#It should calculate the amount of calories from
#the grams of carbs, fat and protein.
#calories from fat = fat gram x 9
#calories from carbs = carbs gram x 4
#calories from protein = protein gram x 4
#example:
#if item has 1 gram of fat, 2 grams of protein and
#3 grams of carbs
#1 x 9 + 2 x 4 + 3 x 4 = 29 calories total
#you will ask the user to enter fat, carbs and protein in main
#and calculate the total calories and print the answer
#in calories function.
def main():
fat = int(input("Please enter a number of grams of fat:\n"))
carbs = int(input("Please enter a number of grams of carbs:\n"))
protein = int(input("Please enter a number of grams of protein:\n"))
calories(fat, carbs, protein)
def calories(fat, carbs, protein):
total = fat * 9 + carbs * 4 + protein * 4
print("The grams of fat, carbs and protein equal to ",total, "calories")
main()
#exercice 2
#feet to inches
#1 foot = 12 inches
#you will create a feet_to_inches function
#it will take a number of feet and convert it to inches
#you will ask the user to input the number of feet in
#main() and print the number of inches in feet_to_inches(feet)
#HINT:
#main()
#feet_to_inches(feet)
def main():
feet = int(input("Please enter a number of feet:\n"))
feet_to_inches(feet)
def feet_to_inches(feet):
total = feet * 12
print("The number of feet equal to",total,"inches")
main()
#exercice 3
#maximum of 2 numbers
#write a function that accepts 2 floats it should print which number is bigger
#you should ask the user to input the 2 numbers in main() and max(num1, num2)
#should print the answer
#HINT:
#main()
#max(num1, num2)
#Example: if both numbers are 1 and 2
#then answer is 2 is bigger than 1
def main():
num1 = int(input("Please enter a number:\n"))
num2 = int(input("Please enter another number:\n"))
max(num1, num2)
def max(num1, num2):
if num1 > num2:
print(num1,"is bigger than",num2)
elif num2 > num1:
print(num2,"is bigger than",num1)
elif num1 == num2:
print("the numbers are equal")
main()
| def main():
fat = int(input('Please enter a number of grams of fat:\n'))
carbs = int(input('Please enter a number of grams of carbs:\n'))
protein = int(input('Please enter a number of grams of protein:\n'))
calories(fat, carbs, protein)
def calories(fat, carbs, protein):
total = fat * 9 + carbs * 4 + protein * 4
print('The grams of fat, carbs and protein equal to ', total, 'calories')
main()
def main():
feet = int(input('Please enter a number of feet:\n'))
feet_to_inches(feet)
def feet_to_inches(feet):
total = feet * 12
print('The number of feet equal to', total, 'inches')
main()
def main():
num1 = int(input('Please enter a number:\n'))
num2 = int(input('Please enter another number:\n'))
max(num1, num2)
def max(num1, num2):
if num1 > num2:
print(num1, 'is bigger than', num2)
elif num2 > num1:
print(num2, 'is bigger than', num1)
elif num1 == num2:
print('the numbers are equal')
main() |
# 7-3. Multiples of Ten: Ask the user for a number, and then report whether the number is a multiple of 10 or not.
number = input("Tell me a number man :v : ")
number = int(number)
if number % 10 == 0:
print(str(number) + " is a multiple of 10.")
else:
print(str(number) + " is not a multiple of 10.") | number = input('Tell me a number man :v : ')
number = int(number)
if number % 10 == 0:
print(str(number) + ' is a multiple of 10.')
else:
print(str(number) + ' is not a multiple of 10.') |
"""
https://www.codewars.com/kata/5168bb5dfe9a00b126000018/train/python
Given a string, return its reverse
"""
def solution(string):
return ''.join(reversed([char for char in string]))
def solution2(string):
return string[::-1]
print(solution2('world'))
| """
https://www.codewars.com/kata/5168bb5dfe9a00b126000018/train/python
Given a string, return its reverse
"""
def solution(string):
return ''.join(reversed([char for char in string]))
def solution2(string):
return string[::-1]
print(solution2('world')) |
# pylint: skip-file
# pylint: disable=too-many-instance-attributes
class GcloudConfig(GcloudCLI):
''' Class to wrap the gcloud config command'''
# pylint allows 5
# pylint: disable=too-many-arguments
def __init__(self,
project=None,
region=None):
''' Constructor for gcloud resource '''
super(GcloudConfig, self).__init__()
self._working_param = {}
if project:
self._working_param['name'] = 'project'
self._working_param['value'] = project
self._working_param['section'] = 'core'
elif region:
self._working_param['name'] = 'region'
self._working_param['value'] = region
self._working_param['section'] = 'compute'
self._current_config = self.get_compacted_config()
def get_compacted_config(self):
'''return compated config options'''
results = self._list_config()
compacted_results = {}
for config in results['results']:
compacted_results.update(results['results'][config])
return compacted_results
def list_config(self):
'''return config'''
results = self._list_config()
return results
def check_value(self, param, param_value):
'''check to see if param needs to be updated'''
return self._current_config[param] == param_value
def update(self):
''' do updates, if needed '''
if not self.check_value(self._working_param['name'], self._working_param['value']):
config_set_results = self._config_set(self._working_param['name'], self._working_param['value'],
self._working_param['section'])
list_config_results = self.list_config()
config_set_results['results'] = list_config_results['results']
return config_set_results
else:
list_config_results = self.list_config()
return {'results': list_config_results['results']}
| class Gcloudconfig(GcloudCLI):
""" Class to wrap the gcloud config command"""
def __init__(self, project=None, region=None):
""" Constructor for gcloud resource """
super(GcloudConfig, self).__init__()
self._working_param = {}
if project:
self._working_param['name'] = 'project'
self._working_param['value'] = project
self._working_param['section'] = 'core'
elif region:
self._working_param['name'] = 'region'
self._working_param['value'] = region
self._working_param['section'] = 'compute'
self._current_config = self.get_compacted_config()
def get_compacted_config(self):
"""return compated config options"""
results = self._list_config()
compacted_results = {}
for config in results['results']:
compacted_results.update(results['results'][config])
return compacted_results
def list_config(self):
"""return config"""
results = self._list_config()
return results
def check_value(self, param, param_value):
"""check to see if param needs to be updated"""
return self._current_config[param] == param_value
def update(self):
""" do updates, if needed """
if not self.check_value(self._working_param['name'], self._working_param['value']):
config_set_results = self._config_set(self._working_param['name'], self._working_param['value'], self._working_param['section'])
list_config_results = self.list_config()
config_set_results['results'] = list_config_results['results']
return config_set_results
else:
list_config_results = self.list_config()
return {'results': list_config_results['results']} |
"""
This file holds default settings value and it is used like template for creation userdef.py file.
If you want to change any variable listed below do that in generated userdef.py file.
"""
#args.gn template path
webRTCGnArgsTemplatePath='./webrtc/windows/templates/gns/args.gn'
#Path where nuget package and all of the files used to create the package are stored
nugetFolderPath = './webrtc/windows/nuget'
nugetVersionInfo = {
#Main version number of the NuGet package
'number': '66',
#False if not prerelease, Default is based on previous version, False if not prerelease
'prerelease': 'Default'
}
#Imput NuGet package version number manualy, used if selected version number does not exist on nuget.org, E.g., '1.66.0.3-Alpha'
manualNugetVersionNumber = False
#Path to a release notes file
releaseNotePath = 'releases.txt'
#List of NuGet packages used to manualy publish nuget packages, E.g., 'webrtc.1.66.0.3-Alpha.nupkg'
#Packages must be placed in a folder referenced in nugetFolderPath variable
nugetPackagesToPublish = []
#API key used to publish nuget packages nuget.org
nugetAPIKey = ''
#URL for the nuget server, if 'default' nuget.org is used
nugetServerURL = 'default'
#Output path where will be stored nuget package as well as libs and pdbs
#releaseOutputPath = '.'
#Supported platforms for specific host OS
supportedPlatformsForHostOs = {
'windows' : ['win', 'winuwp'],
'darwin' : ['ios', 'mac'],
'linux' : ['android', 'linux']
}
#Supported cpus for specific platform
supportedCPUsForPlatform = {
'winuwp' : ['arm', 'x86', 'x64'],
'win' : ['x86', 'x64'],
'ios' : ['arm'],
'mac' : [ 'x86', 'x64'],
'android' : ['arm'],
'linux' : [ 'x86', 'x64'],
}
#List of targets for which will be performed specified actions. Supported target is webrtc. In future it will be added support for ortc.
targets = [ 'webrtc' ]
#List of target cpus. Supported cpus are arm, x86 and x64
targetCPUs = [ 'arm', 'x86', 'x64' ]
#List of target platforms. Supported cpus are win and winuwp
targetPlatforms = [ 'win', 'winuwp' ]
#List of target configurations. Supported cpus are Release and Debug
targetConfigurations = [ 'Release', 'Debug' ]
#TODO: Implement logic to update zslib_eventing_tool.gni based on list of specified programming languages.
targetProgrammingLanguage = [ 'cx', 'cppwinrt', 'c', 'dotnet', 'python' ]
#=========== Supported actions: clean, createuserdef, prepare, build, backup, createnuget.
# In future it will be added support publishnuget, updatesample.
#'clean' : Based on cleanup options set in cleanupOptions dict, it can be choosen desired cleanup actions.
#'createuserdef' : Deletes existing userdef.py if exists and create a new from defaults.py.
#'prepare' : Prepares developement environemnt for selected targets for choosen cpus, platforms and configurations.
#'build' : Builds selected targets for choosen cpus, platforms and configurations.
#'backup': Backup latest build.
#'createnuget' : Creates nuget package.
#'uploadbackup' : Creates a zipp file with pdb files and nuget package based on configuration and uploads it to onedrive
#List of actions to perform
actions = [ 'prepare', 'build', 'backup' ]
#Flag if wrapper library should be built. If it is False, it will be built only native libraries
buildWrapper = True
#=========== cleanupOptions
#'actions' : ['cleanOutput', 'cleanIdls', 'cleanUserDef','cleanPrepare'],
#'targets' : If [], it will use values from targets variable above.
# If ['*'] it will delete output folders for all targets.
# If ['webrtc'] it will delete just webrtc target
#'cpus' : If [], it will use values from targetCPUs variable above.
# If ['*'] it will delete output folders for all cpus.
# If ['x64'] it will delete just x64 output folder
#'platforms' : If [], it will use values from targetPlatforms variable above.
# If ['*'] it will delete output folders for all platforms.
# If ['winuwp'] it will delete just winuwp output folder
#'configurations' : If [], it will use values from targetConfigurations variable above.
# If ['*'] it will delete output folders for all configurations.
# If ['Release'] it will delete just Release output folder
cleanupOptions = {
'actions' : ['cleanOutput'],
'targets' : [],
'cpus' : [],
'platforms' : [],
'configurations' : []
}
"""
Supported formats: %(funcName)s - function name, %(levelname)s - log level name, %(asctime)s - time, %(message)s - log message, %(filename)s - curremt python filename, %(lineno)d - log message line no, %(name)d - module name
For the rest of available attributes you can check on https://docs.python.org/3/library/logging.html#logrecord-attributes
"""
#logFormat = '[%(levelname)-17s] - %(asctime)s - %(message)s (%(filename)s:%(lineno)d)'
logFormat = '[%(levelname)-17s] - [%(name)-15s] - %(funcName)-30s - %(message)s (%(filename)s:%(lineno)d)'
#Supported log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL (case sensitive)
logLevel = 'DEBUG'
#Log filename. If it is empty string, log will be shown in console.
#In other case, it will log to specified file in folder from where script is run.
logToFile = ''
#If true overwrite old log file, otherwise it will create a new log file with time suffix.
overwriteLogFile = False
#If set to False, log messages for different log levels will be shown colorized.
noColoredOutput = False
#If set to True script execution will be stopped on error.
stopExecutionOnError = False
#If set to True, shows trace log when script execution is stopped on error
showTraceOnError = True
#If set to True, shows all settings values when script execution is stopped on error
showSettingsValuesOnError = True
#If set to True, shows PATH variable when script execution is stopped on error
showPATHOnError = True
#Windows specific variables
#If VS is installed but it is not found,, it is required to set msvsPath variable
msvsPath = ''
#If set to True, output libraries and pdbs will be stored in Backup folder
enabledBackup = False
#Backup folder, in user working directory (folder from where script is run)
libsBackupPath = './Backup'
#Flag for overwriting current backup folder
overwriteBackup = False | """
This file holds default settings value and it is used like template for creation userdef.py file.
If you want to change any variable listed below do that in generated userdef.py file.
"""
web_rtc_gn_args_template_path = './webrtc/windows/templates/gns/args.gn'
nuget_folder_path = './webrtc/windows/nuget'
nuget_version_info = {'number': '66', 'prerelease': 'Default'}
manual_nuget_version_number = False
release_note_path = 'releases.txt'
nuget_packages_to_publish = []
nuget_api_key = ''
nuget_server_url = 'default'
supported_platforms_for_host_os = {'windows': ['win', 'winuwp'], 'darwin': ['ios', 'mac'], 'linux': ['android', 'linux']}
supported_cp_us_for_platform = {'winuwp': ['arm', 'x86', 'x64'], 'win': ['x86', 'x64'], 'ios': ['arm'], 'mac': ['x86', 'x64'], 'android': ['arm'], 'linux': ['x86', 'x64']}
targets = ['webrtc']
target_cp_us = ['arm', 'x86', 'x64']
target_platforms = ['win', 'winuwp']
target_configurations = ['Release', 'Debug']
target_programming_language = ['cx', 'cppwinrt', 'c', 'dotnet', 'python']
actions = ['prepare', 'build', 'backup']
build_wrapper = True
cleanup_options = {'actions': ['cleanOutput'], 'targets': [], 'cpus': [], 'platforms': [], 'configurations': []}
'\nSupported formats: %(funcName)s - function name, %(levelname)s - log level name, %(asctime)s - time, %(message)s - log message, %(filename)s - curremt python filename, %(lineno)d - log message line no, %(name)d - module name\nFor the rest of available attributes you can check on https://docs.python.org/3/library/logging.html#logrecord-attributes\n'
log_format = '[%(levelname)-17s] - [%(name)-15s] - %(funcName)-30s - %(message)s (%(filename)s:%(lineno)d)'
log_level = 'DEBUG'
log_to_file = ''
overwrite_log_file = False
no_colored_output = False
stop_execution_on_error = False
show_trace_on_error = True
show_settings_values_on_error = True
show_path_on_error = True
msvs_path = ''
enabled_backup = False
libs_backup_path = './Backup'
overwrite_backup = False |
class TouchData:
x_distance = None
y_distance = None
x_offset = None
y_offset = None
relative_distance = None
is_external = None
in_range = None
def __init__(self, joystick, touch):
self.joystick = joystick
self.touch = touch
self._calculate()
def _calculate(self):
js = self.joystick
touch = self.touch
x_distance = js.center_x - touch.x
y_distance = js.center_y - touch.y
x_offset = touch.x - js.center_x
y_offset = touch.y - js.center_y
relative_distance = ((x_distance ** 2) + (y_distance ** 2)) ** 0.5
is_external = relative_distance > js._total_radius
in_range = relative_distance <= js._radius_difference
self._update(x_distance, y_distance, x_offset, y_offset,
relative_distance, is_external, in_range)
def _update(self, x_distance, y_distance, x_offset, y_offset,
relative_distance, is_external, in_range):
self.x_distance = x_distance
self.y_distance = y_distance
self.x_offset = x_offset
self.y_offset = y_offset
self.relative_distance = relative_distance
self.is_external = is_external
self.in_range = in_range
| class Touchdata:
x_distance = None
y_distance = None
x_offset = None
y_offset = None
relative_distance = None
is_external = None
in_range = None
def __init__(self, joystick, touch):
self.joystick = joystick
self.touch = touch
self._calculate()
def _calculate(self):
js = self.joystick
touch = self.touch
x_distance = js.center_x - touch.x
y_distance = js.center_y - touch.y
x_offset = touch.x - js.center_x
y_offset = touch.y - js.center_y
relative_distance = (x_distance ** 2 + y_distance ** 2) ** 0.5
is_external = relative_distance > js._total_radius
in_range = relative_distance <= js._radius_difference
self._update(x_distance, y_distance, x_offset, y_offset, relative_distance, is_external, in_range)
def _update(self, x_distance, y_distance, x_offset, y_offset, relative_distance, is_external, in_range):
self.x_distance = x_distance
self.y_distance = y_distance
self.x_offset = x_offset
self.y_offset = y_offset
self.relative_distance = relative_distance
self.is_external = is_external
self.in_range = in_range |
def testing_system(right_answer, Iras_answer):
if right_answer == Iras_answer:
print("YES")
else:
print("NO")
testing_system(int(input()), int(input())) | def testing_system(right_answer, Iras_answer):
if right_answer == Iras_answer:
print('YES')
else:
print('NO')
testing_system(int(input()), int(input())) |
#!/usr/bin/env python3
'''
lib/subl
sublime-ycmd sublime utility module.
'''
| """
lib/subl
sublime-ycmd sublime utility module.
""" |
class StyleGenerator:
def __init__(self):
self.sidebar_style = {}
self.content_style = {}
def getSidebarStyle(self):
return self.sidebar_style
def getContentStyle(self):
return self.content_style
def setSidebarStyle(self, position="fixed", top=0, left=0, bottom=0, width="0rem", padding="0rem 0rem", backgroundcolor="#f8f9fa"):
self.sidebar_style = {
"position": position,
"top":top,
"left":left,
"bottom":bottom,
"width":width,
"padding":padding,
"background-color":backgroundcolor
}
def setContentStyle(self, marginleft="0rem", marginright="0rem", padding="0rem 0rem"):
self.content_style = {
"margin-left":marginleft,
"margin-right":marginright,
"padding":padding
}
| class Stylegenerator:
def __init__(self):
self.sidebar_style = {}
self.content_style = {}
def get_sidebar_style(self):
return self.sidebar_style
def get_content_style(self):
return self.content_style
def set_sidebar_style(self, position='fixed', top=0, left=0, bottom=0, width='0rem', padding='0rem 0rem', backgroundcolor='#f8f9fa'):
self.sidebar_style = {'position': position, 'top': top, 'left': left, 'bottom': bottom, 'width': width, 'padding': padding, 'background-color': backgroundcolor}
def set_content_style(self, marginleft='0rem', marginright='0rem', padding='0rem 0rem'):
self.content_style = {'margin-left': marginleft, 'margin-right': marginright, 'padding': padding} |
# implementation of linked list using python 3
# Node class
class Node:
#function to initialize the node object
def __init__(self, data):
self.data = data #assign data
self.next = None #initialize next as null
#Linked list class
class LinkedList:
#function to initialize the linked
#list object
def __init__(self):
self.head = None
#function to print the contents of linked list
#starting from head
def printingList(self):
temp = self.head
while (temp):
print (temp.data)
temp = temp.next
#code execution starts here
if __name__ == '__main__':
#starts with empty list
llist = LinkedList()
llist.head = Node(1)
second = Node(2)
third = Node(3)
'''
Three nodes have been created.
We have reference to these blocks as
head -> secong -> third
'''
llist.head.next = second;
second.next = third;
llist.printingList()
| class Node:
def __init__(self, data):
self.data = data
self.next = None
class Linkedlist:
def __init__(self):
self.head = None
def printing_list(self):
temp = self.head
while temp:
print(temp.data)
temp = temp.next
if __name__ == '__main__':
llist = linked_list()
llist.head = node(1)
second = node(2)
third = node(3)
'\n Three nodes have been created.\n We have reference to these blocks as\n head -> secong -> third\n '
llist.head.next = second
second.next = third
llist.printingList() |
def test_content_id_2():
content_id_head = pd.DataFrame({'Content_Rating': ['Everyone', 'Everyone', 'Everyone', 'Teen', 'Everyone']},
index=[101, 101, 101, 102, 101])
assert content_id_df.head().equals(content_id_head) | def test_content_id_2():
content_id_head = pd.DataFrame({'Content_Rating': ['Everyone', 'Everyone', 'Everyone', 'Teen', 'Everyone']}, index=[101, 101, 101, 102, 101])
assert content_id_df.head().equals(content_id_head) |
"""
PASSENGERS
"""
numPassengers = 2713
passenger_arriving = (
(0, 6, 4, 4, 1, 0, 4, 5, 3, 6, 1, 0), # 0
(4, 10, 2, 0, 1, 0, 5, 8, 5, 5, 3, 0), # 1
(1, 6, 3, 2, 5, 0, 4, 4, 5, 5, 1, 0), # 2
(3, 10, 6, 3, 3, 0, 5, 5, 4, 2, 0, 0), # 3
(2, 6, 4, 1, 0, 0, 7, 8, 6, 6, 1, 0), # 4
(4, 9, 8, 3, 3, 0, 4, 7, 6, 7, 0, 0), # 5
(2, 6, 8, 4, 1, 0, 5, 6, 5, 0, 5, 0), # 6
(2, 8, 4, 5, 2, 0, 5, 6, 4, 5, 2, 0), # 7
(4, 5, 7, 3, 3, 0, 4, 12, 5, 2, 3, 0), # 8
(3, 7, 4, 3, 3, 0, 6, 8, 9, 2, 4, 0), # 9
(7, 2, 4, 4, 2, 0, 1, 10, 4, 5, 2, 0), # 10
(1, 9, 6, 4, 3, 0, 4, 5, 7, 4, 1, 0), # 11
(2, 8, 5, 2, 1, 0, 1, 8, 5, 2, 1, 0), # 12
(6, 7, 8, 4, 0, 0, 2, 5, 4, 3, 1, 0), # 13
(4, 5, 3, 3, 3, 0, 6, 6, 12, 3, 1, 0), # 14
(2, 12, 6, 2, 2, 0, 3, 5, 7, 5, 4, 0), # 15
(4, 8, 7, 4, 3, 0, 7, 4, 4, 4, 3, 0), # 16
(1, 5, 5, 3, 1, 0, 4, 10, 0, 8, 2, 0), # 17
(2, 12, 8, 2, 3, 0, 7, 8, 4, 7, 4, 0), # 18
(2, 2, 6, 2, 2, 0, 6, 9, 4, 2, 1, 0), # 19
(5, 6, 10, 2, 0, 0, 4, 5, 0, 2, 2, 0), # 20
(2, 6, 11, 1, 1, 0, 5, 9, 4, 3, 1, 0), # 21
(4, 14, 5, 3, 3, 0, 4, 10, 2, 8, 1, 0), # 22
(4, 8, 10, 7, 2, 0, 7, 12, 2, 5, 4, 0), # 23
(3, 3, 7, 3, 4, 0, 6, 8, 4, 5, 2, 0), # 24
(4, 9, 3, 1, 3, 0, 9, 10, 7, 5, 4, 0), # 25
(4, 6, 6, 5, 0, 0, 4, 5, 2, 5, 3, 0), # 26
(2, 10, 4, 4, 3, 0, 6, 9, 4, 3, 2, 0), # 27
(5, 8, 6, 5, 2, 0, 8, 6, 8, 4, 3, 0), # 28
(7, 5, 6, 2, 4, 0, 8, 7, 8, 3, 4, 0), # 29
(5, 6, 6, 1, 4, 0, 5, 5, 3, 1, 0, 0), # 30
(3, 8, 8, 2, 1, 0, 9, 6, 12, 5, 4, 0), # 31
(8, 9, 3, 6, 1, 0, 6, 6, 4, 6, 2, 0), # 32
(1, 6, 6, 1, 0, 0, 2, 6, 2, 5, 4, 0), # 33
(7, 10, 12, 3, 2, 0, 6, 11, 8, 6, 3, 0), # 34
(6, 8, 9, 4, 2, 0, 12, 11, 6, 1, 3, 0), # 35
(3, 6, 4, 4, 2, 0, 8, 10, 3, 4, 1, 0), # 36
(3, 10, 6, 3, 5, 0, 3, 10, 4, 4, 3, 0), # 37
(4, 10, 4, 6, 2, 0, 2, 4, 6, 4, 3, 0), # 38
(4, 11, 3, 3, 1, 0, 3, 8, 4, 6, 1, 0), # 39
(4, 8, 5, 2, 0, 0, 2, 9, 4, 6, 1, 0), # 40
(4, 7, 7, 1, 1, 0, 7, 10, 7, 1, 4, 0), # 41
(2, 2, 6, 6, 2, 0, 5, 10, 4, 2, 4, 0), # 42
(5, 4, 7, 5, 0, 0, 9, 10, 6, 2, 2, 0), # 43
(5, 3, 2, 3, 1, 0, 8, 4, 2, 7, 0, 0), # 44
(4, 4, 7, 3, 2, 0, 7, 11, 2, 2, 4, 0), # 45
(2, 9, 8, 2, 3, 0, 8, 7, 7, 5, 3, 0), # 46
(5, 8, 6, 1, 2, 0, 2, 9, 11, 5, 1, 0), # 47
(3, 4, 8, 2, 3, 0, 8, 9, 2, 3, 0, 0), # 48
(6, 12, 9, 2, 2, 0, 4, 7, 5, 6, 4, 0), # 49
(7, 5, 7, 4, 0, 0, 5, 6, 7, 2, 1, 0), # 50
(5, 8, 4, 4, 0, 0, 5, 10, 7, 7, 1, 0), # 51
(4, 8, 6, 8, 4, 0, 7, 11, 2, 4, 1, 0), # 52
(3, 13, 6, 3, 0, 0, 4, 6, 1, 4, 1, 0), # 53
(2, 8, 5, 3, 3, 0, 7, 7, 3, 5, 1, 0), # 54
(5, 7, 5, 3, 1, 0, 7, 10, 3, 4, 0, 0), # 55
(3, 8, 2, 2, 1, 0, 2, 5, 5, 5, 0, 0), # 56
(3, 8, 5, 1, 2, 0, 7, 7, 4, 4, 1, 0), # 57
(7, 7, 7, 4, 0, 0, 4, 8, 4, 3, 2, 0), # 58
(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), # 59
)
station_arriving_intensity = (
(3.1795818700614573, 8.15575284090909, 9.59308322622108, 7.603532608695652, 8.571634615384614, 5.708152173913044), # 0
(3.20942641205736, 8.246449918455387, 9.644898645029993, 7.6458772644927535, 8.635879807692307, 5.706206567028985), # 1
(3.238930172666081, 8.335801683501682, 9.695484147386459, 7.687289855072463, 8.69876923076923, 5.704201449275362), # 2
(3.268068107989464, 8.42371171875, 9.744802779562981, 7.727735054347824, 8.760245192307693, 5.702137092391305), # 3
(3.296815174129353, 8.510083606902358, 9.792817587832047, 7.767177536231884, 8.82025, 5.700013768115941), # 4
(3.3251463271875914, 8.594820930660775, 9.839491618466152, 7.805581974637681, 8.87872596153846, 5.697831748188405), # 5
(3.353036523266023, 8.677827272727273, 9.88478791773779, 7.842913043478261, 8.935615384615383, 5.695591304347826), # 6
(3.380460718466491, 8.75900621580387, 9.92866953191945, 7.879135416666666, 8.990860576923078, 5.693292708333334), # 7
(3.40739386889084, 8.83826134259259, 9.971099507283634, 7.914213768115941, 9.044403846153847, 5.6909362318840575), # 8
(3.4338109306409126, 8.915496235795453, 10.012040890102828, 7.9481127717391304, 9.0961875, 5.68852214673913), # 9
(3.459686859818554, 8.990614478114479, 10.051456726649528, 7.980797101449276, 9.146153846153846, 5.68605072463768), # 10
(3.4849966125256073, 9.063519652251683, 10.089310063196228, 8.012231431159421, 9.194245192307692, 5.683522237318841), # 11
(3.509715144863916, 9.134115340909089, 10.125563946015424, 8.042380434782608, 9.240403846153844, 5.680936956521738), # 12
(3.5338174129353224, 9.20230512678872, 10.160181421379605, 8.071208786231884, 9.284572115384616, 5.678295153985506), # 13
(3.5572783728416737, 9.267992592592593, 10.193125535561265, 8.098681159420288, 9.326692307692307, 5.6755971014492745), # 14
(3.5800729806848106, 9.331081321022726, 10.224359334832902, 8.124762228260868, 9.36670673076923, 5.672843070652174), # 15
(3.6021761925665783, 9.391474894781144, 10.25384586546701, 8.149416666666665, 9.404557692307693, 5.6700333333333335), # 16
(3.6235629645888205, 9.449076896569863, 10.281548173736075, 8.172609148550725, 9.4401875, 5.667168161231884), # 17
(3.64420825285338, 9.503790909090908, 10.307429305912597, 8.194304347826087, 9.473538461538464, 5.664247826086956), # 18
(3.664087013462101, 9.555520515046295, 10.331452308269066, 8.214466938405796, 9.504552884615384, 5.661272599637681), # 19
(3.683174202516827, 9.604169297138045, 10.353580227077975, 8.2330615942029, 9.533173076923077, 5.658242753623187), # 20
(3.7014447761194034, 9.649640838068178, 10.373776108611827, 8.250052989130435, 9.559341346153845, 5.655158559782609), # 21
(3.7188736903716704, 9.69183872053872, 10.3920029991431, 8.26540579710145, 9.582999999999998, 5.652020289855073), # 22
(3.7354359013754754, 9.730666527251683, 10.408223944944302, 8.279084692028986, 9.604091346153846, 5.6488282155797105), # 23
(3.75110636523266, 9.76602784090909, 10.422401992287917, 8.291054347826087, 9.62255769230769, 5.645582608695652), # 24
(3.7658600380450684, 9.797826244212962, 10.434500187446444, 8.301279438405798, 9.638341346153844, 5.642283740942029), # 25
(3.779671875914545, 9.825965319865318, 10.444481576692374, 8.309724637681159, 9.651384615384615, 5.63893188405797), # 26
(3.792516834942932, 9.85034865056818, 10.452309206298198, 8.316354619565217, 9.661629807692309, 5.635527309782609), # 27
(3.804369871232075, 9.870879819023568, 10.457946122536418, 8.321134057971014, 9.66901923076923, 5.632070289855072), # 28
(3.815205940883816, 9.887462407933501, 10.461355371679518, 8.324027626811594, 9.673495192307692, 5.628561096014493), # 29
(3.8249999999999997, 9.9, 10.4625, 8.325, 9.674999999999999, 5.625), # 30
(3.834164434143222, 9.910414559659088, 10.461641938405796, 8.324824387254901, 9.674452393617022, 5.620051511744128), # 31
(3.843131010230179, 9.920691477272728, 10.459092028985506, 8.324300980392156, 9.672821276595744, 5.612429710144928), # 32
(3.8519037563938614, 9.930829474431818, 10.45488668478261, 8.323434926470588, 9.670124202127658, 5.6022092203898035), # 33
(3.860486700767263, 9.940827272727272, 10.449062318840578, 8.32223137254902, 9.666378723404256, 5.589464667666167), # 34
(3.8688838714833755, 9.950683593749998, 10.441655344202898, 8.320695465686274, 9.661602393617022, 5.574270677161419), # 35
(3.8770992966751923, 9.96039715909091, 10.432702173913043, 8.318832352941177, 9.655812765957448, 5.556701874062968), # 36
(3.885137004475703, 9.96996669034091, 10.422239221014491, 8.316647181372549, 9.64902739361702, 5.536832883558221), # 37
(3.893001023017902, 9.979390909090908, 10.410302898550723, 8.314145098039214, 9.641263829787233, 5.514738330834581), # 38
(3.900695380434782, 9.988668536931817, 10.396929619565215, 8.31133125, 9.632539627659574, 5.490492841079459), # 39
(3.908224104859335, 9.997798295454546, 10.382155797101449, 8.308210784313726, 9.62287234042553, 5.464171039480259), # 40
(3.915591224424552, 10.006778906249998, 10.366017844202899, 8.304788848039216, 9.612279521276594, 5.435847551224389), # 41
(3.9228007672634266, 10.015609090909093, 10.348552173913044, 8.301070588235293, 9.600778723404256, 5.40559700149925), # 42
(3.929856761508952, 10.024287571022725, 10.329795199275361, 8.297061151960785, 9.5883875, 5.373494015492254), # 43
(3.936763235294117, 10.032813068181818, 10.309783333333334, 8.292765686274508, 9.575123404255319, 5.339613218390804), # 44
(3.9435242167519178, 10.041184303977271, 10.288552989130435, 8.288189338235293, 9.561003989361701, 5.304029235382309), # 45
(3.9501437340153456, 10.0494, 10.266140579710147, 8.28333725490196, 9.546046808510638, 5.266816691654173), # 46
(3.956625815217391, 10.05745887784091, 10.24258251811594, 8.278214583333332, 9.530269414893617, 5.228050212393803), # 47
(3.962974488491049, 10.065359659090909, 10.217915217391303, 8.272826470588234, 9.513689361702127, 5.187804422788607), # 48
(3.9691937819693086, 10.073101065340907, 10.19217509057971, 8.26717806372549, 9.49632420212766, 5.146153948025987), # 49
(3.9752877237851663, 10.080681818181816, 10.165398550724637, 8.261274509803922, 9.478191489361702, 5.103173413293353), # 50
(3.9812603420716113, 10.088100639204544, 10.137622010869565, 8.255120955882353, 9.459308776595744, 5.0589374437781105), # 51
(3.987115664961637, 10.09535625, 10.10888188405797, 8.248722549019607, 9.439693617021277, 5.013520664667666), # 52
(3.992857720588235, 10.10244737215909, 10.079214583333332, 8.24208443627451, 9.419363563829787, 4.966997701149425), # 53
(3.9984905370843995, 10.109372727272726, 10.04865652173913, 8.235211764705882, 9.398336170212765, 4.919443178410794), # 54
(4.00401814258312, 10.116131036931817, 10.017244112318838, 8.22810968137255, 9.376628989361702, 4.87093172163918), # 55
(4.0094445652173905, 10.122721022727271, 9.985013768115941, 8.220783333333333, 9.354259574468085, 4.821537956021989), # 56
(4.014773833120205, 10.129141406250001, 9.952001902173912, 8.213237867647058, 9.331245478723403, 4.771336506746626), # 57
(4.0200099744245525, 10.135390909090907, 9.91824492753623, 8.20547843137255, 9.307604255319148, 4.7204019990005), # 58
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 59
)
passenger_arriving_acc = (
(0, 6, 4, 4, 1, 0, 4, 5, 3, 6, 1, 0), # 0
(4, 16, 6, 4, 2, 0, 9, 13, 8, 11, 4, 0), # 1
(5, 22, 9, 6, 7, 0, 13, 17, 13, 16, 5, 0), # 2
(8, 32, 15, 9, 10, 0, 18, 22, 17, 18, 5, 0), # 3
(10, 38, 19, 10, 10, 0, 25, 30, 23, 24, 6, 0), # 4
(14, 47, 27, 13, 13, 0, 29, 37, 29, 31, 6, 0), # 5
(16, 53, 35, 17, 14, 0, 34, 43, 34, 31, 11, 0), # 6
(18, 61, 39, 22, 16, 0, 39, 49, 38, 36, 13, 0), # 7
(22, 66, 46, 25, 19, 0, 43, 61, 43, 38, 16, 0), # 8
(25, 73, 50, 28, 22, 0, 49, 69, 52, 40, 20, 0), # 9
(32, 75, 54, 32, 24, 0, 50, 79, 56, 45, 22, 0), # 10
(33, 84, 60, 36, 27, 0, 54, 84, 63, 49, 23, 0), # 11
(35, 92, 65, 38, 28, 0, 55, 92, 68, 51, 24, 0), # 12
(41, 99, 73, 42, 28, 0, 57, 97, 72, 54, 25, 0), # 13
(45, 104, 76, 45, 31, 0, 63, 103, 84, 57, 26, 0), # 14
(47, 116, 82, 47, 33, 0, 66, 108, 91, 62, 30, 0), # 15
(51, 124, 89, 51, 36, 0, 73, 112, 95, 66, 33, 0), # 16
(52, 129, 94, 54, 37, 0, 77, 122, 95, 74, 35, 0), # 17
(54, 141, 102, 56, 40, 0, 84, 130, 99, 81, 39, 0), # 18
(56, 143, 108, 58, 42, 0, 90, 139, 103, 83, 40, 0), # 19
(61, 149, 118, 60, 42, 0, 94, 144, 103, 85, 42, 0), # 20
(63, 155, 129, 61, 43, 0, 99, 153, 107, 88, 43, 0), # 21
(67, 169, 134, 64, 46, 0, 103, 163, 109, 96, 44, 0), # 22
(71, 177, 144, 71, 48, 0, 110, 175, 111, 101, 48, 0), # 23
(74, 180, 151, 74, 52, 0, 116, 183, 115, 106, 50, 0), # 24
(78, 189, 154, 75, 55, 0, 125, 193, 122, 111, 54, 0), # 25
(82, 195, 160, 80, 55, 0, 129, 198, 124, 116, 57, 0), # 26
(84, 205, 164, 84, 58, 0, 135, 207, 128, 119, 59, 0), # 27
(89, 213, 170, 89, 60, 0, 143, 213, 136, 123, 62, 0), # 28
(96, 218, 176, 91, 64, 0, 151, 220, 144, 126, 66, 0), # 29
(101, 224, 182, 92, 68, 0, 156, 225, 147, 127, 66, 0), # 30
(104, 232, 190, 94, 69, 0, 165, 231, 159, 132, 70, 0), # 31
(112, 241, 193, 100, 70, 0, 171, 237, 163, 138, 72, 0), # 32
(113, 247, 199, 101, 70, 0, 173, 243, 165, 143, 76, 0), # 33
(120, 257, 211, 104, 72, 0, 179, 254, 173, 149, 79, 0), # 34
(126, 265, 220, 108, 74, 0, 191, 265, 179, 150, 82, 0), # 35
(129, 271, 224, 112, 76, 0, 199, 275, 182, 154, 83, 0), # 36
(132, 281, 230, 115, 81, 0, 202, 285, 186, 158, 86, 0), # 37
(136, 291, 234, 121, 83, 0, 204, 289, 192, 162, 89, 0), # 38
(140, 302, 237, 124, 84, 0, 207, 297, 196, 168, 90, 0), # 39
(144, 310, 242, 126, 84, 0, 209, 306, 200, 174, 91, 0), # 40
(148, 317, 249, 127, 85, 0, 216, 316, 207, 175, 95, 0), # 41
(150, 319, 255, 133, 87, 0, 221, 326, 211, 177, 99, 0), # 42
(155, 323, 262, 138, 87, 0, 230, 336, 217, 179, 101, 0), # 43
(160, 326, 264, 141, 88, 0, 238, 340, 219, 186, 101, 0), # 44
(164, 330, 271, 144, 90, 0, 245, 351, 221, 188, 105, 0), # 45
(166, 339, 279, 146, 93, 0, 253, 358, 228, 193, 108, 0), # 46
(171, 347, 285, 147, 95, 0, 255, 367, 239, 198, 109, 0), # 47
(174, 351, 293, 149, 98, 0, 263, 376, 241, 201, 109, 0), # 48
(180, 363, 302, 151, 100, 0, 267, 383, 246, 207, 113, 0), # 49
(187, 368, 309, 155, 100, 0, 272, 389, 253, 209, 114, 0), # 50
(192, 376, 313, 159, 100, 0, 277, 399, 260, 216, 115, 0), # 51
(196, 384, 319, 167, 104, 0, 284, 410, 262, 220, 116, 0), # 52
(199, 397, 325, 170, 104, 0, 288, 416, 263, 224, 117, 0), # 53
(201, 405, 330, 173, 107, 0, 295, 423, 266, 229, 118, 0), # 54
(206, 412, 335, 176, 108, 0, 302, 433, 269, 233, 118, 0), # 55
(209, 420, 337, 178, 109, 0, 304, 438, 274, 238, 118, 0), # 56
(212, 428, 342, 179, 111, 0, 311, 445, 278, 242, 119, 0), # 57
(219, 435, 349, 183, 111, 0, 315, 453, 282, 245, 121, 0), # 58
(219, 435, 349, 183, 111, 0, 315, 453, 282, 245, 121, 0), # 59
)
passenger_arriving_rate = (
(3.1795818700614573, 6.524602272727271, 5.755849935732647, 3.0414130434782605, 1.7143269230769227, 0.0, 5.708152173913044, 6.857307692307691, 4.562119565217391, 3.8372332904884314, 1.6311505681818177, 0.0), # 0
(3.20942641205736, 6.597159934764309, 5.786939187017996, 3.0583509057971012, 1.7271759615384612, 0.0, 5.706206567028985, 6.908703846153845, 4.587526358695652, 3.857959458011997, 1.6492899836910773, 0.0), # 1
(3.238930172666081, 6.668641346801345, 5.817290488431875, 3.074915942028985, 1.7397538461538458, 0.0, 5.704201449275362, 6.959015384615383, 4.612373913043478, 3.8781936589545833, 1.6671603367003363, 0.0), # 2
(3.268068107989464, 6.738969375, 5.846881667737788, 3.091094021739129, 1.7520490384615384, 0.0, 5.702137092391305, 7.0081961538461535, 4.636641032608694, 3.897921111825192, 1.68474234375, 0.0), # 3
(3.296815174129353, 6.808066885521885, 5.875690552699228, 3.106871014492753, 1.76405, 0.0, 5.700013768115941, 7.0562, 4.66030652173913, 3.9171270351328187, 1.7020167213804713, 0.0), # 4
(3.3251463271875914, 6.87585674452862, 5.903694971079691, 3.122232789855072, 1.775745192307692, 0.0, 5.697831748188405, 7.102980769230768, 4.6833491847826085, 3.9357966473864603, 1.718964186132155, 0.0), # 5
(3.353036523266023, 6.942261818181818, 5.930872750642674, 3.137165217391304, 1.7871230769230766, 0.0, 5.695591304347826, 7.148492307692306, 4.705747826086957, 3.953915167095116, 1.7355654545454544, 0.0), # 6
(3.380460718466491, 7.007204972643096, 5.95720171915167, 3.1516541666666664, 1.7981721153846155, 0.0, 5.693292708333334, 7.192688461538462, 4.727481249999999, 3.97146781276778, 1.751801243160774, 0.0), # 7
(3.40739386889084, 7.0706090740740715, 5.982659704370181, 3.165685507246376, 1.8088807692307691, 0.0, 5.6909362318840575, 7.2355230769230765, 4.7485282608695645, 3.9884398029134536, 1.7676522685185179, 0.0), # 8
(3.4338109306409126, 7.132396988636362, 6.007224534061696, 3.179245108695652, 1.8192374999999996, 0.0, 5.68852214673913, 7.2769499999999985, 4.768867663043478, 4.004816356041131, 1.7830992471590905, 0.0), # 9
(3.459686859818554, 7.1924915824915825, 6.030874035989717, 3.19231884057971, 1.829230769230769, 0.0, 5.68605072463768, 7.316923076923076, 4.7884782608695655, 4.020582690659811, 1.7981228956228956, 0.0), # 10
(3.4849966125256073, 7.250815721801346, 6.053586037917737, 3.204892572463768, 1.8388490384615384, 0.0, 5.683522237318841, 7.355396153846153, 4.807338858695652, 4.0357240252784905, 1.8127039304503365, 0.0), # 11
(3.509715144863916, 7.30729227272727, 6.0753383676092545, 3.2169521739130427, 1.8480807692307688, 0.0, 5.680936956521738, 7.392323076923075, 4.825428260869565, 4.050225578406169, 1.8268230681818176, 0.0), # 12
(3.5338174129353224, 7.361844101430976, 6.096108852827762, 3.228483514492753, 1.8569144230769232, 0.0, 5.678295153985506, 7.427657692307693, 4.84272527173913, 4.0640725685518415, 1.840461025357744, 0.0), # 13
(3.5572783728416737, 7.414394074074074, 6.115875321336759, 3.2394724637681147, 1.8653384615384612, 0.0, 5.6755971014492745, 7.461353846153845, 4.859208695652172, 4.077250214224506, 1.8535985185185184, 0.0), # 14
(3.5800729806848106, 7.46486505681818, 6.134615600899742, 3.249904891304347, 1.873341346153846, 0.0, 5.672843070652174, 7.493365384615384, 4.874857336956521, 4.089743733933161, 1.866216264204545, 0.0), # 15
(3.6021761925665783, 7.513179915824915, 6.152307519280206, 3.259766666666666, 1.8809115384615382, 0.0, 5.6700333333333335, 7.523646153846153, 4.889649999999999, 4.101538346186803, 1.8782949789562287, 0.0), # 16
(3.6235629645888205, 7.55926151725589, 6.168928904241645, 3.26904365942029, 1.8880374999999998, 0.0, 5.667168161231884, 7.552149999999999, 4.903565489130435, 4.11261926949443, 1.8898153793139725, 0.0), # 17
(3.64420825285338, 7.603032727272725, 6.184457583547558, 3.2777217391304343, 1.8947076923076926, 0.0, 5.664247826086956, 7.578830769230771, 4.916582608695652, 4.122971722365039, 1.9007581818181813, 0.0), # 18
(3.664087013462101, 7.644416412037035, 6.198871384961439, 3.285786775362318, 1.9009105769230765, 0.0, 5.661272599637681, 7.603642307692306, 4.928680163043477, 4.132580923307626, 1.9111041030092588, 0.0), # 19
(3.683174202516827, 7.683335437710435, 6.2121481362467845, 3.2932246376811594, 1.9066346153846152, 0.0, 5.658242753623187, 7.626538461538461, 4.93983695652174, 4.14143209083119, 1.9208338594276086, 0.0), # 20
(3.7014447761194034, 7.719712670454542, 6.224265665167096, 3.3000211956521737, 1.911868269230769, 0.0, 5.655158559782609, 7.647473076923076, 4.950031793478261, 4.14951044344473, 1.9299281676136355, 0.0), # 21
(3.7188736903716704, 7.753470976430976, 6.23520179948586, 3.3061623188405793, 1.9165999999999994, 0.0, 5.652020289855073, 7.666399999999998, 4.959243478260869, 4.15680119965724, 1.938367744107744, 0.0), # 22
(3.7354359013754754, 7.784533221801346, 6.244934366966581, 3.311633876811594, 1.920818269230769, 0.0, 5.6488282155797105, 7.683273076923076, 4.967450815217392, 4.163289577977721, 1.9461333054503365, 0.0), # 23
(3.75110636523266, 7.812822272727271, 6.25344119537275, 3.3164217391304347, 1.9245115384615379, 0.0, 5.645582608695652, 7.6980461538461515, 4.974632608695652, 4.168960796915166, 1.9532055681818177, 0.0), # 24
(3.7658600380450684, 7.838260995370368, 6.260700112467866, 3.320511775362319, 1.9276682692307685, 0.0, 5.642283740942029, 7.710673076923074, 4.980767663043479, 4.173800074978577, 1.959565248842592, 0.0), # 25
(3.779671875914545, 7.860772255892254, 6.266688946015424, 3.3238898550724634, 1.9302769230769228, 0.0, 5.63893188405797, 7.721107692307691, 4.985834782608695, 4.177792630676949, 1.9651930639730635, 0.0), # 26
(3.792516834942932, 7.8802789204545425, 6.2713855237789184, 3.326541847826087, 1.9323259615384616, 0.0, 5.635527309782609, 7.729303846153846, 4.98981277173913, 4.180923682519278, 1.9700697301136356, 0.0), # 27
(3.804369871232075, 7.8967038552188535, 6.2747676735218505, 3.328453623188405, 1.9338038461538458, 0.0, 5.632070289855072, 7.735215384615383, 4.992680434782608, 4.183178449014567, 1.9741759638047134, 0.0), # 28
(3.815205940883816, 7.9099699263468, 6.276813223007711, 3.3296110507246373, 1.9346990384615383, 0.0, 5.628561096014493, 7.738796153846153, 4.994416576086956, 4.184542148671807, 1.9774924815867, 0.0), # 29
(3.8249999999999997, 7.92, 6.2775, 3.3299999999999996, 1.9349999999999996, 0.0, 5.625, 7.739999999999998, 4.994999999999999, 4.185, 1.98, 0.0), # 30
(3.834164434143222, 7.92833164772727, 6.276985163043477, 3.3299297549019604, 1.9348904787234043, 0.0, 5.620051511744128, 7.739561914893617, 4.994894632352941, 4.184656775362318, 1.9820829119318175, 0.0), # 31
(3.843131010230179, 7.936553181818182, 6.275455217391303, 3.329720392156862, 1.9345642553191487, 0.0, 5.612429710144928, 7.738257021276595, 4.994580588235293, 4.1836368115942015, 1.9841382954545455, 0.0), # 32
(3.8519037563938614, 7.944663579545454, 6.272932010869566, 3.329373970588235, 1.9340248404255314, 0.0, 5.6022092203898035, 7.736099361702125, 4.994060955882353, 4.181954673913044, 1.9861658948863634, 0.0), # 33
(3.860486700767263, 7.952661818181817, 6.269437391304347, 3.3288925490196077, 1.9332757446808508, 0.0, 5.589464667666167, 7.733102978723403, 4.993338823529411, 4.179624927536231, 1.9881654545454543, 0.0), # 34
(3.8688838714833755, 7.960546874999998, 6.264993206521739, 3.328278186274509, 1.9323204787234043, 0.0, 5.574270677161419, 7.729281914893617, 4.9924172794117645, 4.176662137681159, 1.9901367187499994, 0.0), # 35
(3.8770992966751923, 7.968317727272727, 6.259621304347825, 3.3275329411764707, 1.9311625531914893, 0.0, 5.556701874062968, 7.724650212765957, 4.9912994117647065, 4.173080869565217, 1.9920794318181818, 0.0), # 36
(3.885137004475703, 7.975973352272726, 6.253343532608695, 3.3266588725490194, 1.9298054787234038, 0.0, 5.536832883558221, 7.719221914893615, 4.989988308823529, 4.168895688405796, 1.9939933380681816, 0.0), # 37
(3.893001023017902, 7.983512727272726, 6.246181739130434, 3.325658039215685, 1.9282527659574464, 0.0, 5.514738330834581, 7.713011063829786, 4.988487058823528, 4.164121159420289, 1.9958781818181814, 0.0), # 38
(3.900695380434782, 7.990934829545453, 6.238157771739129, 3.3245324999999997, 1.9265079255319146, 0.0, 5.490492841079459, 7.7060317021276585, 4.98679875, 4.1587718478260856, 1.9977337073863632, 0.0), # 39
(3.908224104859335, 7.998238636363636, 6.229293478260869, 3.32328431372549, 1.924574468085106, 0.0, 5.464171039480259, 7.698297872340424, 4.984926470588236, 4.1528623188405795, 1.999559659090909, 0.0), # 40
(3.915591224424552, 8.005423124999998, 6.219610706521739, 3.321915539215686, 1.9224559042553186, 0.0, 5.435847551224389, 7.689823617021275, 4.982873308823529, 4.146407137681159, 2.0013557812499996, 0.0), # 41
(3.9228007672634266, 8.012487272727274, 6.209131304347826, 3.320428235294117, 1.920155744680851, 0.0, 5.40559700149925, 7.680622978723404, 4.980642352941175, 4.1394208695652175, 2.0031218181818184, 0.0), # 42
(3.929856761508952, 8.01943005681818, 6.1978771195652165, 3.3188244607843136, 1.9176774999999997, 0.0, 5.373494015492254, 7.670709999999999, 4.978236691176471, 4.131918079710144, 2.004857514204545, 0.0), # 43
(3.936763235294117, 8.026250454545455, 6.18587, 3.317106274509803, 1.9150246808510636, 0.0, 5.339613218390804, 7.660098723404254, 4.975659411764705, 4.123913333333333, 2.0065626136363637, 0.0), # 44
(3.9435242167519178, 8.032947443181817, 6.1731317934782615, 3.315275735294117, 1.91220079787234, 0.0, 5.304029235382309, 7.64880319148936, 4.972913602941175, 4.115421195652174, 2.008236860795454, 0.0), # 45
(3.9501437340153456, 8.03952, 6.159684347826087, 3.313334901960784, 1.9092093617021275, 0.0, 5.266816691654173, 7.63683744680851, 4.970002352941176, 4.106456231884058, 2.00988, 0.0), # 46
(3.956625815217391, 8.045967102272726, 6.1455495108695635, 3.3112858333333324, 1.9060538829787232, 0.0, 5.228050212393803, 7.624215531914893, 4.966928749999999, 4.097033007246376, 2.0114917755681816, 0.0), # 47
(3.962974488491049, 8.052287727272727, 6.130749130434782, 3.309130588235293, 1.9027378723404254, 0.0, 5.187804422788607, 7.610951489361701, 4.96369588235294, 4.087166086956521, 2.013071931818182, 0.0), # 48
(3.9691937819693086, 8.058480852272725, 6.115305054347826, 3.306871225490196, 1.899264840425532, 0.0, 5.146153948025987, 7.597059361702128, 4.960306838235294, 4.076870036231884, 2.014620213068181, 0.0), # 49
(3.9752877237851663, 8.064545454545453, 6.099239130434782, 3.3045098039215683, 1.8956382978723403, 0.0, 5.103173413293353, 7.582553191489361, 4.956764705882353, 4.066159420289854, 2.016136363636363, 0.0), # 50
(3.9812603420716113, 8.070480511363634, 6.082573206521739, 3.302048382352941, 1.8918617553191486, 0.0, 5.0589374437781105, 7.567447021276594, 4.953072573529411, 4.055048804347826, 2.0176201278409085, 0.0), # 51
(3.987115664961637, 8.076284999999999, 6.065329130434782, 3.299489019607843, 1.8879387234042553, 0.0, 5.013520664667666, 7.551754893617021, 4.949233529411765, 4.043552753623188, 2.0190712499999997, 0.0), # 52
(3.992857720588235, 8.081957897727271, 6.047528749999999, 3.2968337745098037, 1.8838727127659571, 0.0, 4.966997701149425, 7.5354908510638285, 4.945250661764706, 4.0316858333333325, 2.020489474431818, 0.0), # 53
(3.9984905370843995, 8.08749818181818, 6.0291939130434775, 3.294084705882353, 1.8796672340425529, 0.0, 4.919443178410794, 7.5186689361702115, 4.941127058823529, 4.019462608695651, 2.021874545454545, 0.0), # 54
(4.00401814258312, 8.092904829545454, 6.010346467391303, 3.2912438725490194, 1.8753257978723403, 0.0, 4.87093172163918, 7.501303191489361, 4.936865808823529, 4.006897644927535, 2.0232262073863634, 0.0), # 55
(4.0094445652173905, 8.098176818181816, 5.991008260869564, 3.288313333333333, 1.8708519148936167, 0.0, 4.821537956021989, 7.483407659574467, 4.9324699999999995, 3.994005507246376, 2.024544204545454, 0.0), # 56
(4.014773833120205, 8.103313125, 5.971201141304347, 3.285295147058823, 1.8662490957446805, 0.0, 4.771336506746626, 7.464996382978722, 4.927942720588234, 3.980800760869564, 2.02582828125, 0.0), # 57
(4.0200099744245525, 8.108312727272725, 5.950946956521738, 3.2821913725490197, 1.8615208510638295, 0.0, 4.7204019990005, 7.446083404255318, 4.923287058823529, 3.9672979710144918, 2.0270781818181813, 0.0), # 58
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 59
)
passenger_allighting_rate = (
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 0
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 1
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 2
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 3
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 4
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 5
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 6
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 7
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 8
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 9
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 10
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 11
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 12
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 13
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 14
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 15
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 16
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 17
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 18
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 19
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 20
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 21
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 22
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 23
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 24
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 25
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 26
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 27
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 28
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 29
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 30
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 31
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 32
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 33
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 34
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 35
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 36
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 37
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 38
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 39
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 40
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 41
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 42
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 43
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 44
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 45
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 46
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 47
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 48
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 49
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 50
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 51
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 52
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 53
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 54
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 55
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 56
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 57
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 58
(0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 59
)
"""
parameters for reproducibiliy. More information: https://numpy.org/doc/stable/reference/random/parallel.html
"""
#initial entropy
entropy = 258194110137029475889902652135037600173
#index for seed sequence child
child_seed_index = (
1, # 0
4, # 1
)
| """
PASSENGERS
"""
num_passengers = 2713
passenger_arriving = ((0, 6, 4, 4, 1, 0, 4, 5, 3, 6, 1, 0), (4, 10, 2, 0, 1, 0, 5, 8, 5, 5, 3, 0), (1, 6, 3, 2, 5, 0, 4, 4, 5, 5, 1, 0), (3, 10, 6, 3, 3, 0, 5, 5, 4, 2, 0, 0), (2, 6, 4, 1, 0, 0, 7, 8, 6, 6, 1, 0), (4, 9, 8, 3, 3, 0, 4, 7, 6, 7, 0, 0), (2, 6, 8, 4, 1, 0, 5, 6, 5, 0, 5, 0), (2, 8, 4, 5, 2, 0, 5, 6, 4, 5, 2, 0), (4, 5, 7, 3, 3, 0, 4, 12, 5, 2, 3, 0), (3, 7, 4, 3, 3, 0, 6, 8, 9, 2, 4, 0), (7, 2, 4, 4, 2, 0, 1, 10, 4, 5, 2, 0), (1, 9, 6, 4, 3, 0, 4, 5, 7, 4, 1, 0), (2, 8, 5, 2, 1, 0, 1, 8, 5, 2, 1, 0), (6, 7, 8, 4, 0, 0, 2, 5, 4, 3, 1, 0), (4, 5, 3, 3, 3, 0, 6, 6, 12, 3, 1, 0), (2, 12, 6, 2, 2, 0, 3, 5, 7, 5, 4, 0), (4, 8, 7, 4, 3, 0, 7, 4, 4, 4, 3, 0), (1, 5, 5, 3, 1, 0, 4, 10, 0, 8, 2, 0), (2, 12, 8, 2, 3, 0, 7, 8, 4, 7, 4, 0), (2, 2, 6, 2, 2, 0, 6, 9, 4, 2, 1, 0), (5, 6, 10, 2, 0, 0, 4, 5, 0, 2, 2, 0), (2, 6, 11, 1, 1, 0, 5, 9, 4, 3, 1, 0), (4, 14, 5, 3, 3, 0, 4, 10, 2, 8, 1, 0), (4, 8, 10, 7, 2, 0, 7, 12, 2, 5, 4, 0), (3, 3, 7, 3, 4, 0, 6, 8, 4, 5, 2, 0), (4, 9, 3, 1, 3, 0, 9, 10, 7, 5, 4, 0), (4, 6, 6, 5, 0, 0, 4, 5, 2, 5, 3, 0), (2, 10, 4, 4, 3, 0, 6, 9, 4, 3, 2, 0), (5, 8, 6, 5, 2, 0, 8, 6, 8, 4, 3, 0), (7, 5, 6, 2, 4, 0, 8, 7, 8, 3, 4, 0), (5, 6, 6, 1, 4, 0, 5, 5, 3, 1, 0, 0), (3, 8, 8, 2, 1, 0, 9, 6, 12, 5, 4, 0), (8, 9, 3, 6, 1, 0, 6, 6, 4, 6, 2, 0), (1, 6, 6, 1, 0, 0, 2, 6, 2, 5, 4, 0), (7, 10, 12, 3, 2, 0, 6, 11, 8, 6, 3, 0), (6, 8, 9, 4, 2, 0, 12, 11, 6, 1, 3, 0), (3, 6, 4, 4, 2, 0, 8, 10, 3, 4, 1, 0), (3, 10, 6, 3, 5, 0, 3, 10, 4, 4, 3, 0), (4, 10, 4, 6, 2, 0, 2, 4, 6, 4, 3, 0), (4, 11, 3, 3, 1, 0, 3, 8, 4, 6, 1, 0), (4, 8, 5, 2, 0, 0, 2, 9, 4, 6, 1, 0), (4, 7, 7, 1, 1, 0, 7, 10, 7, 1, 4, 0), (2, 2, 6, 6, 2, 0, 5, 10, 4, 2, 4, 0), (5, 4, 7, 5, 0, 0, 9, 10, 6, 2, 2, 0), (5, 3, 2, 3, 1, 0, 8, 4, 2, 7, 0, 0), (4, 4, 7, 3, 2, 0, 7, 11, 2, 2, 4, 0), (2, 9, 8, 2, 3, 0, 8, 7, 7, 5, 3, 0), (5, 8, 6, 1, 2, 0, 2, 9, 11, 5, 1, 0), (3, 4, 8, 2, 3, 0, 8, 9, 2, 3, 0, 0), (6, 12, 9, 2, 2, 0, 4, 7, 5, 6, 4, 0), (7, 5, 7, 4, 0, 0, 5, 6, 7, 2, 1, 0), (5, 8, 4, 4, 0, 0, 5, 10, 7, 7, 1, 0), (4, 8, 6, 8, 4, 0, 7, 11, 2, 4, 1, 0), (3, 13, 6, 3, 0, 0, 4, 6, 1, 4, 1, 0), (2, 8, 5, 3, 3, 0, 7, 7, 3, 5, 1, 0), (5, 7, 5, 3, 1, 0, 7, 10, 3, 4, 0, 0), (3, 8, 2, 2, 1, 0, 2, 5, 5, 5, 0, 0), (3, 8, 5, 1, 2, 0, 7, 7, 4, 4, 1, 0), (7, 7, 7, 4, 0, 0, 4, 8, 4, 3, 2, 0), (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
station_arriving_intensity = ((3.1795818700614573, 8.15575284090909, 9.59308322622108, 7.603532608695652, 8.571634615384614, 5.708152173913044), (3.20942641205736, 8.246449918455387, 9.644898645029993, 7.6458772644927535, 8.635879807692307, 5.706206567028985), (3.238930172666081, 8.335801683501682, 9.695484147386459, 7.687289855072463, 8.69876923076923, 5.704201449275362), (3.268068107989464, 8.42371171875, 9.744802779562981, 7.727735054347824, 8.760245192307693, 5.702137092391305), (3.296815174129353, 8.510083606902358, 9.792817587832047, 7.767177536231884, 8.82025, 5.700013768115941), (3.3251463271875914, 8.594820930660775, 9.839491618466152, 7.805581974637681, 8.87872596153846, 5.697831748188405), (3.353036523266023, 8.677827272727273, 9.88478791773779, 7.842913043478261, 8.935615384615383, 5.695591304347826), (3.380460718466491, 8.75900621580387, 9.92866953191945, 7.879135416666666, 8.990860576923078, 5.693292708333334), (3.40739386889084, 8.83826134259259, 9.971099507283634, 7.914213768115941, 9.044403846153847, 5.6909362318840575), (3.4338109306409126, 8.915496235795453, 10.012040890102828, 7.9481127717391304, 9.0961875, 5.68852214673913), (3.459686859818554, 8.990614478114479, 10.051456726649528, 7.980797101449276, 9.146153846153846, 5.68605072463768), (3.4849966125256073, 9.063519652251683, 10.089310063196228, 8.012231431159421, 9.194245192307692, 5.683522237318841), (3.509715144863916, 9.134115340909089, 10.125563946015424, 8.042380434782608, 9.240403846153844, 5.680936956521738), (3.5338174129353224, 9.20230512678872, 10.160181421379605, 8.071208786231884, 9.284572115384616, 5.678295153985506), (3.5572783728416737, 9.267992592592593, 10.193125535561265, 8.098681159420288, 9.326692307692307, 5.6755971014492745), (3.5800729806848106, 9.331081321022726, 10.224359334832902, 8.124762228260868, 9.36670673076923, 5.672843070652174), (3.6021761925665783, 9.391474894781144, 10.25384586546701, 8.149416666666665, 9.404557692307693, 5.6700333333333335), (3.6235629645888205, 9.449076896569863, 10.281548173736075, 8.172609148550725, 9.4401875, 5.667168161231884), (3.64420825285338, 9.503790909090908, 10.307429305912597, 8.194304347826087, 9.473538461538464, 5.664247826086956), (3.664087013462101, 9.555520515046295, 10.331452308269066, 8.214466938405796, 9.504552884615384, 5.661272599637681), (3.683174202516827, 9.604169297138045, 10.353580227077975, 8.2330615942029, 9.533173076923077, 5.658242753623187), (3.7014447761194034, 9.649640838068178, 10.373776108611827, 8.250052989130435, 9.559341346153845, 5.655158559782609), (3.7188736903716704, 9.69183872053872, 10.3920029991431, 8.26540579710145, 9.582999999999998, 5.652020289855073), (3.7354359013754754, 9.730666527251683, 10.408223944944302, 8.279084692028986, 9.604091346153846, 5.6488282155797105), (3.75110636523266, 9.76602784090909, 10.422401992287917, 8.291054347826087, 9.62255769230769, 5.645582608695652), (3.7658600380450684, 9.797826244212962, 10.434500187446444, 8.301279438405798, 9.638341346153844, 5.642283740942029), (3.779671875914545, 9.825965319865318, 10.444481576692374, 8.309724637681159, 9.651384615384615, 5.63893188405797), (3.792516834942932, 9.85034865056818, 10.452309206298198, 8.316354619565217, 9.661629807692309, 5.635527309782609), (3.804369871232075, 9.870879819023568, 10.457946122536418, 8.321134057971014, 9.66901923076923, 5.632070289855072), (3.815205940883816, 9.887462407933501, 10.461355371679518, 8.324027626811594, 9.673495192307692, 5.628561096014493), (3.8249999999999997, 9.9, 10.4625, 8.325, 9.674999999999999, 5.625), (3.834164434143222, 9.910414559659088, 10.461641938405796, 8.324824387254901, 9.674452393617022, 5.620051511744128), (3.843131010230179, 9.920691477272728, 10.459092028985506, 8.324300980392156, 9.672821276595744, 5.612429710144928), (3.8519037563938614, 9.930829474431818, 10.45488668478261, 8.323434926470588, 9.670124202127658, 5.6022092203898035), (3.860486700767263, 9.940827272727272, 10.449062318840578, 8.32223137254902, 9.666378723404256, 5.589464667666167), (3.8688838714833755, 9.950683593749998, 10.441655344202898, 8.320695465686274, 9.661602393617022, 5.574270677161419), (3.8770992966751923, 9.96039715909091, 10.432702173913043, 8.318832352941177, 9.655812765957448, 5.556701874062968), (3.885137004475703, 9.96996669034091, 10.422239221014491, 8.316647181372549, 9.64902739361702, 5.536832883558221), (3.893001023017902, 9.979390909090908, 10.410302898550723, 8.314145098039214, 9.641263829787233, 5.514738330834581), (3.900695380434782, 9.988668536931817, 10.396929619565215, 8.31133125, 9.632539627659574, 5.490492841079459), (3.908224104859335, 9.997798295454546, 10.382155797101449, 8.308210784313726, 9.62287234042553, 5.464171039480259), (3.915591224424552, 10.006778906249998, 10.366017844202899, 8.304788848039216, 9.612279521276594, 5.435847551224389), (3.9228007672634266, 10.015609090909093, 10.348552173913044, 8.301070588235293, 9.600778723404256, 5.40559700149925), (3.929856761508952, 10.024287571022725, 10.329795199275361, 8.297061151960785, 9.5883875, 5.373494015492254), (3.936763235294117, 10.032813068181818, 10.309783333333334, 8.292765686274508, 9.575123404255319, 5.339613218390804), (3.9435242167519178, 10.041184303977271, 10.288552989130435, 8.288189338235293, 9.561003989361701, 5.304029235382309), (3.9501437340153456, 10.0494, 10.266140579710147, 8.28333725490196, 9.546046808510638, 5.266816691654173), (3.956625815217391, 10.05745887784091, 10.24258251811594, 8.278214583333332, 9.530269414893617, 5.228050212393803), (3.962974488491049, 10.065359659090909, 10.217915217391303, 8.272826470588234, 9.513689361702127, 5.187804422788607), (3.9691937819693086, 10.073101065340907, 10.19217509057971, 8.26717806372549, 9.49632420212766, 5.146153948025987), (3.9752877237851663, 10.080681818181816, 10.165398550724637, 8.261274509803922, 9.478191489361702, 5.103173413293353), (3.9812603420716113, 10.088100639204544, 10.137622010869565, 8.255120955882353, 9.459308776595744, 5.0589374437781105), (3.987115664961637, 10.09535625, 10.10888188405797, 8.248722549019607, 9.439693617021277, 5.013520664667666), (3.992857720588235, 10.10244737215909, 10.079214583333332, 8.24208443627451, 9.419363563829787, 4.966997701149425), (3.9984905370843995, 10.109372727272726, 10.04865652173913, 8.235211764705882, 9.398336170212765, 4.919443178410794), (4.00401814258312, 10.116131036931817, 10.017244112318838, 8.22810968137255, 9.376628989361702, 4.87093172163918), (4.0094445652173905, 10.122721022727271, 9.985013768115941, 8.220783333333333, 9.354259574468085, 4.821537956021989), (4.014773833120205, 10.129141406250001, 9.952001902173912, 8.213237867647058, 9.331245478723403, 4.771336506746626), (4.0200099744245525, 10.135390909090907, 9.91824492753623, 8.20547843137255, 9.307604255319148, 4.7204019990005), (0.0, 0.0, 0.0, 0.0, 0.0, 0.0))
passenger_arriving_acc = ((0, 6, 4, 4, 1, 0, 4, 5, 3, 6, 1, 0), (4, 16, 6, 4, 2, 0, 9, 13, 8, 11, 4, 0), (5, 22, 9, 6, 7, 0, 13, 17, 13, 16, 5, 0), (8, 32, 15, 9, 10, 0, 18, 22, 17, 18, 5, 0), (10, 38, 19, 10, 10, 0, 25, 30, 23, 24, 6, 0), (14, 47, 27, 13, 13, 0, 29, 37, 29, 31, 6, 0), (16, 53, 35, 17, 14, 0, 34, 43, 34, 31, 11, 0), (18, 61, 39, 22, 16, 0, 39, 49, 38, 36, 13, 0), (22, 66, 46, 25, 19, 0, 43, 61, 43, 38, 16, 0), (25, 73, 50, 28, 22, 0, 49, 69, 52, 40, 20, 0), (32, 75, 54, 32, 24, 0, 50, 79, 56, 45, 22, 0), (33, 84, 60, 36, 27, 0, 54, 84, 63, 49, 23, 0), (35, 92, 65, 38, 28, 0, 55, 92, 68, 51, 24, 0), (41, 99, 73, 42, 28, 0, 57, 97, 72, 54, 25, 0), (45, 104, 76, 45, 31, 0, 63, 103, 84, 57, 26, 0), (47, 116, 82, 47, 33, 0, 66, 108, 91, 62, 30, 0), (51, 124, 89, 51, 36, 0, 73, 112, 95, 66, 33, 0), (52, 129, 94, 54, 37, 0, 77, 122, 95, 74, 35, 0), (54, 141, 102, 56, 40, 0, 84, 130, 99, 81, 39, 0), (56, 143, 108, 58, 42, 0, 90, 139, 103, 83, 40, 0), (61, 149, 118, 60, 42, 0, 94, 144, 103, 85, 42, 0), (63, 155, 129, 61, 43, 0, 99, 153, 107, 88, 43, 0), (67, 169, 134, 64, 46, 0, 103, 163, 109, 96, 44, 0), (71, 177, 144, 71, 48, 0, 110, 175, 111, 101, 48, 0), (74, 180, 151, 74, 52, 0, 116, 183, 115, 106, 50, 0), (78, 189, 154, 75, 55, 0, 125, 193, 122, 111, 54, 0), (82, 195, 160, 80, 55, 0, 129, 198, 124, 116, 57, 0), (84, 205, 164, 84, 58, 0, 135, 207, 128, 119, 59, 0), (89, 213, 170, 89, 60, 0, 143, 213, 136, 123, 62, 0), (96, 218, 176, 91, 64, 0, 151, 220, 144, 126, 66, 0), (101, 224, 182, 92, 68, 0, 156, 225, 147, 127, 66, 0), (104, 232, 190, 94, 69, 0, 165, 231, 159, 132, 70, 0), (112, 241, 193, 100, 70, 0, 171, 237, 163, 138, 72, 0), (113, 247, 199, 101, 70, 0, 173, 243, 165, 143, 76, 0), (120, 257, 211, 104, 72, 0, 179, 254, 173, 149, 79, 0), (126, 265, 220, 108, 74, 0, 191, 265, 179, 150, 82, 0), (129, 271, 224, 112, 76, 0, 199, 275, 182, 154, 83, 0), (132, 281, 230, 115, 81, 0, 202, 285, 186, 158, 86, 0), (136, 291, 234, 121, 83, 0, 204, 289, 192, 162, 89, 0), (140, 302, 237, 124, 84, 0, 207, 297, 196, 168, 90, 0), (144, 310, 242, 126, 84, 0, 209, 306, 200, 174, 91, 0), (148, 317, 249, 127, 85, 0, 216, 316, 207, 175, 95, 0), (150, 319, 255, 133, 87, 0, 221, 326, 211, 177, 99, 0), (155, 323, 262, 138, 87, 0, 230, 336, 217, 179, 101, 0), (160, 326, 264, 141, 88, 0, 238, 340, 219, 186, 101, 0), (164, 330, 271, 144, 90, 0, 245, 351, 221, 188, 105, 0), (166, 339, 279, 146, 93, 0, 253, 358, 228, 193, 108, 0), (171, 347, 285, 147, 95, 0, 255, 367, 239, 198, 109, 0), (174, 351, 293, 149, 98, 0, 263, 376, 241, 201, 109, 0), (180, 363, 302, 151, 100, 0, 267, 383, 246, 207, 113, 0), (187, 368, 309, 155, 100, 0, 272, 389, 253, 209, 114, 0), (192, 376, 313, 159, 100, 0, 277, 399, 260, 216, 115, 0), (196, 384, 319, 167, 104, 0, 284, 410, 262, 220, 116, 0), (199, 397, 325, 170, 104, 0, 288, 416, 263, 224, 117, 0), (201, 405, 330, 173, 107, 0, 295, 423, 266, 229, 118, 0), (206, 412, 335, 176, 108, 0, 302, 433, 269, 233, 118, 0), (209, 420, 337, 178, 109, 0, 304, 438, 274, 238, 118, 0), (212, 428, 342, 179, 111, 0, 311, 445, 278, 242, 119, 0), (219, 435, 349, 183, 111, 0, 315, 453, 282, 245, 121, 0), (219, 435, 349, 183, 111, 0, 315, 453, 282, 245, 121, 0))
passenger_arriving_rate = ((3.1795818700614573, 6.524602272727271, 5.755849935732647, 3.0414130434782605, 1.7143269230769227, 0.0, 5.708152173913044, 6.857307692307691, 4.562119565217391, 3.8372332904884314, 1.6311505681818177, 0.0), (3.20942641205736, 6.597159934764309, 5.786939187017996, 3.0583509057971012, 1.7271759615384612, 0.0, 5.706206567028985, 6.908703846153845, 4.587526358695652, 3.857959458011997, 1.6492899836910773, 0.0), (3.238930172666081, 6.668641346801345, 5.817290488431875, 3.074915942028985, 1.7397538461538458, 0.0, 5.704201449275362, 6.959015384615383, 4.612373913043478, 3.8781936589545833, 1.6671603367003363, 0.0), (3.268068107989464, 6.738969375, 5.846881667737788, 3.091094021739129, 1.7520490384615384, 0.0, 5.702137092391305, 7.0081961538461535, 4.636641032608694, 3.897921111825192, 1.68474234375, 0.0), (3.296815174129353, 6.808066885521885, 5.875690552699228, 3.106871014492753, 1.76405, 0.0, 5.700013768115941, 7.0562, 4.66030652173913, 3.9171270351328187, 1.7020167213804713, 0.0), (3.3251463271875914, 6.87585674452862, 5.903694971079691, 3.122232789855072, 1.775745192307692, 0.0, 5.697831748188405, 7.102980769230768, 4.6833491847826085, 3.9357966473864603, 1.718964186132155, 0.0), (3.353036523266023, 6.942261818181818, 5.930872750642674, 3.137165217391304, 1.7871230769230766, 0.0, 5.695591304347826, 7.148492307692306, 4.705747826086957, 3.953915167095116, 1.7355654545454544, 0.0), (3.380460718466491, 7.007204972643096, 5.95720171915167, 3.1516541666666664, 1.7981721153846155, 0.0, 5.693292708333334, 7.192688461538462, 4.727481249999999, 3.97146781276778, 1.751801243160774, 0.0), (3.40739386889084, 7.0706090740740715, 5.982659704370181, 3.165685507246376, 1.8088807692307691, 0.0, 5.6909362318840575, 7.2355230769230765, 4.7485282608695645, 3.9884398029134536, 1.7676522685185179, 0.0), (3.4338109306409126, 7.132396988636362, 6.007224534061696, 3.179245108695652, 1.8192374999999996, 0.0, 5.68852214673913, 7.2769499999999985, 4.768867663043478, 4.004816356041131, 1.7830992471590905, 0.0), (3.459686859818554, 7.1924915824915825, 6.030874035989717, 3.19231884057971, 1.829230769230769, 0.0, 5.68605072463768, 7.316923076923076, 4.7884782608695655, 4.020582690659811, 1.7981228956228956, 0.0), (3.4849966125256073, 7.250815721801346, 6.053586037917737, 3.204892572463768, 1.8388490384615384, 0.0, 5.683522237318841, 7.355396153846153, 4.807338858695652, 4.0357240252784905, 1.8127039304503365, 0.0), (3.509715144863916, 7.30729227272727, 6.0753383676092545, 3.2169521739130427, 1.8480807692307688, 0.0, 5.680936956521738, 7.392323076923075, 4.825428260869565, 4.050225578406169, 1.8268230681818176, 0.0), (3.5338174129353224, 7.361844101430976, 6.096108852827762, 3.228483514492753, 1.8569144230769232, 0.0, 5.678295153985506, 7.427657692307693, 4.84272527173913, 4.0640725685518415, 1.840461025357744, 0.0), (3.5572783728416737, 7.414394074074074, 6.115875321336759, 3.2394724637681147, 1.8653384615384612, 0.0, 5.6755971014492745, 7.461353846153845, 4.859208695652172, 4.077250214224506, 1.8535985185185184, 0.0), (3.5800729806848106, 7.46486505681818, 6.134615600899742, 3.249904891304347, 1.873341346153846, 0.0, 5.672843070652174, 7.493365384615384, 4.874857336956521, 4.089743733933161, 1.866216264204545, 0.0), (3.6021761925665783, 7.513179915824915, 6.152307519280206, 3.259766666666666, 1.8809115384615382, 0.0, 5.6700333333333335, 7.523646153846153, 4.889649999999999, 4.101538346186803, 1.8782949789562287, 0.0), (3.6235629645888205, 7.55926151725589, 6.168928904241645, 3.26904365942029, 1.8880374999999998, 0.0, 5.667168161231884, 7.552149999999999, 4.903565489130435, 4.11261926949443, 1.8898153793139725, 0.0), (3.64420825285338, 7.603032727272725, 6.184457583547558, 3.2777217391304343, 1.8947076923076926, 0.0, 5.664247826086956, 7.578830769230771, 4.916582608695652, 4.122971722365039, 1.9007581818181813, 0.0), (3.664087013462101, 7.644416412037035, 6.198871384961439, 3.285786775362318, 1.9009105769230765, 0.0, 5.661272599637681, 7.603642307692306, 4.928680163043477, 4.132580923307626, 1.9111041030092588, 0.0), (3.683174202516827, 7.683335437710435, 6.2121481362467845, 3.2932246376811594, 1.9066346153846152, 0.0, 5.658242753623187, 7.626538461538461, 4.93983695652174, 4.14143209083119, 1.9208338594276086, 0.0), (3.7014447761194034, 7.719712670454542, 6.224265665167096, 3.3000211956521737, 1.911868269230769, 0.0, 5.655158559782609, 7.647473076923076, 4.950031793478261, 4.14951044344473, 1.9299281676136355, 0.0), (3.7188736903716704, 7.753470976430976, 6.23520179948586, 3.3061623188405793, 1.9165999999999994, 0.0, 5.652020289855073, 7.666399999999998, 4.959243478260869, 4.15680119965724, 1.938367744107744, 0.0), (3.7354359013754754, 7.784533221801346, 6.244934366966581, 3.311633876811594, 1.920818269230769, 0.0, 5.6488282155797105, 7.683273076923076, 4.967450815217392, 4.163289577977721, 1.9461333054503365, 0.0), (3.75110636523266, 7.812822272727271, 6.25344119537275, 3.3164217391304347, 1.9245115384615379, 0.0, 5.645582608695652, 7.6980461538461515, 4.974632608695652, 4.168960796915166, 1.9532055681818177, 0.0), (3.7658600380450684, 7.838260995370368, 6.260700112467866, 3.320511775362319, 1.9276682692307685, 0.0, 5.642283740942029, 7.710673076923074, 4.980767663043479, 4.173800074978577, 1.959565248842592, 0.0), (3.779671875914545, 7.860772255892254, 6.266688946015424, 3.3238898550724634, 1.9302769230769228, 0.0, 5.63893188405797, 7.721107692307691, 4.985834782608695, 4.177792630676949, 1.9651930639730635, 0.0), (3.792516834942932, 7.8802789204545425, 6.2713855237789184, 3.326541847826087, 1.9323259615384616, 0.0, 5.635527309782609, 7.729303846153846, 4.98981277173913, 4.180923682519278, 1.9700697301136356, 0.0), (3.804369871232075, 7.8967038552188535, 6.2747676735218505, 3.328453623188405, 1.9338038461538458, 0.0, 5.632070289855072, 7.735215384615383, 4.992680434782608, 4.183178449014567, 1.9741759638047134, 0.0), (3.815205940883816, 7.9099699263468, 6.276813223007711, 3.3296110507246373, 1.9346990384615383, 0.0, 5.628561096014493, 7.738796153846153, 4.994416576086956, 4.184542148671807, 1.9774924815867, 0.0), (3.8249999999999997, 7.92, 6.2775, 3.3299999999999996, 1.9349999999999996, 0.0, 5.625, 7.739999999999998, 4.994999999999999, 4.185, 1.98, 0.0), (3.834164434143222, 7.92833164772727, 6.276985163043477, 3.3299297549019604, 1.9348904787234043, 0.0, 5.620051511744128, 7.739561914893617, 4.994894632352941, 4.184656775362318, 1.9820829119318175, 0.0), (3.843131010230179, 7.936553181818182, 6.275455217391303, 3.329720392156862, 1.9345642553191487, 0.0, 5.612429710144928, 7.738257021276595, 4.994580588235293, 4.1836368115942015, 1.9841382954545455, 0.0), (3.8519037563938614, 7.944663579545454, 6.272932010869566, 3.329373970588235, 1.9340248404255314, 0.0, 5.6022092203898035, 7.736099361702125, 4.994060955882353, 4.181954673913044, 1.9861658948863634, 0.0), (3.860486700767263, 7.952661818181817, 6.269437391304347, 3.3288925490196077, 1.9332757446808508, 0.0, 5.589464667666167, 7.733102978723403, 4.993338823529411, 4.179624927536231, 1.9881654545454543, 0.0), (3.8688838714833755, 7.960546874999998, 6.264993206521739, 3.328278186274509, 1.9323204787234043, 0.0, 5.574270677161419, 7.729281914893617, 4.9924172794117645, 4.176662137681159, 1.9901367187499994, 0.0), (3.8770992966751923, 7.968317727272727, 6.259621304347825, 3.3275329411764707, 1.9311625531914893, 0.0, 5.556701874062968, 7.724650212765957, 4.9912994117647065, 4.173080869565217, 1.9920794318181818, 0.0), (3.885137004475703, 7.975973352272726, 6.253343532608695, 3.3266588725490194, 1.9298054787234038, 0.0, 5.536832883558221, 7.719221914893615, 4.989988308823529, 4.168895688405796, 1.9939933380681816, 0.0), (3.893001023017902, 7.983512727272726, 6.246181739130434, 3.325658039215685, 1.9282527659574464, 0.0, 5.514738330834581, 7.713011063829786, 4.988487058823528, 4.164121159420289, 1.9958781818181814, 0.0), (3.900695380434782, 7.990934829545453, 6.238157771739129, 3.3245324999999997, 1.9265079255319146, 0.0, 5.490492841079459, 7.7060317021276585, 4.98679875, 4.1587718478260856, 1.9977337073863632, 0.0), (3.908224104859335, 7.998238636363636, 6.229293478260869, 3.32328431372549, 1.924574468085106, 0.0, 5.464171039480259, 7.698297872340424, 4.984926470588236, 4.1528623188405795, 1.999559659090909, 0.0), (3.915591224424552, 8.005423124999998, 6.219610706521739, 3.321915539215686, 1.9224559042553186, 0.0, 5.435847551224389, 7.689823617021275, 4.982873308823529, 4.146407137681159, 2.0013557812499996, 0.0), (3.9228007672634266, 8.012487272727274, 6.209131304347826, 3.320428235294117, 1.920155744680851, 0.0, 5.40559700149925, 7.680622978723404, 4.980642352941175, 4.1394208695652175, 2.0031218181818184, 0.0), (3.929856761508952, 8.01943005681818, 6.1978771195652165, 3.3188244607843136, 1.9176774999999997, 0.0, 5.373494015492254, 7.670709999999999, 4.978236691176471, 4.131918079710144, 2.004857514204545, 0.0), (3.936763235294117, 8.026250454545455, 6.18587, 3.317106274509803, 1.9150246808510636, 0.0, 5.339613218390804, 7.660098723404254, 4.975659411764705, 4.123913333333333, 2.0065626136363637, 0.0), (3.9435242167519178, 8.032947443181817, 6.1731317934782615, 3.315275735294117, 1.91220079787234, 0.0, 5.304029235382309, 7.64880319148936, 4.972913602941175, 4.115421195652174, 2.008236860795454, 0.0), (3.9501437340153456, 8.03952, 6.159684347826087, 3.313334901960784, 1.9092093617021275, 0.0, 5.266816691654173, 7.63683744680851, 4.970002352941176, 4.106456231884058, 2.00988, 0.0), (3.956625815217391, 8.045967102272726, 6.1455495108695635, 3.3112858333333324, 1.9060538829787232, 0.0, 5.228050212393803, 7.624215531914893, 4.966928749999999, 4.097033007246376, 2.0114917755681816, 0.0), (3.962974488491049, 8.052287727272727, 6.130749130434782, 3.309130588235293, 1.9027378723404254, 0.0, 5.187804422788607, 7.610951489361701, 4.96369588235294, 4.087166086956521, 2.013071931818182, 0.0), (3.9691937819693086, 8.058480852272725, 6.115305054347826, 3.306871225490196, 1.899264840425532, 0.0, 5.146153948025987, 7.597059361702128, 4.960306838235294, 4.076870036231884, 2.014620213068181, 0.0), (3.9752877237851663, 8.064545454545453, 6.099239130434782, 3.3045098039215683, 1.8956382978723403, 0.0, 5.103173413293353, 7.582553191489361, 4.956764705882353, 4.066159420289854, 2.016136363636363, 0.0), (3.9812603420716113, 8.070480511363634, 6.082573206521739, 3.302048382352941, 1.8918617553191486, 0.0, 5.0589374437781105, 7.567447021276594, 4.953072573529411, 4.055048804347826, 2.0176201278409085, 0.0), (3.987115664961637, 8.076284999999999, 6.065329130434782, 3.299489019607843, 1.8879387234042553, 0.0, 5.013520664667666, 7.551754893617021, 4.949233529411765, 4.043552753623188, 2.0190712499999997, 0.0), (3.992857720588235, 8.081957897727271, 6.047528749999999, 3.2968337745098037, 1.8838727127659571, 0.0, 4.966997701149425, 7.5354908510638285, 4.945250661764706, 4.0316858333333325, 2.020489474431818, 0.0), (3.9984905370843995, 8.08749818181818, 6.0291939130434775, 3.294084705882353, 1.8796672340425529, 0.0, 4.919443178410794, 7.5186689361702115, 4.941127058823529, 4.019462608695651, 2.021874545454545, 0.0), (4.00401814258312, 8.092904829545454, 6.010346467391303, 3.2912438725490194, 1.8753257978723403, 0.0, 4.87093172163918, 7.501303191489361, 4.936865808823529, 4.006897644927535, 2.0232262073863634, 0.0), (4.0094445652173905, 8.098176818181816, 5.991008260869564, 3.288313333333333, 1.8708519148936167, 0.0, 4.821537956021989, 7.483407659574467, 4.9324699999999995, 3.994005507246376, 2.024544204545454, 0.0), (4.014773833120205, 8.103313125, 5.971201141304347, 3.285295147058823, 1.8662490957446805, 0.0, 4.771336506746626, 7.464996382978722, 4.927942720588234, 3.980800760869564, 2.02582828125, 0.0), (4.0200099744245525, 8.108312727272725, 5.950946956521738, 3.2821913725490197, 1.8615208510638295, 0.0, 4.7204019990005, 7.446083404255318, 4.923287058823529, 3.9672979710144918, 2.0270781818181813, 0.0), (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0))
passenger_allighting_rate = ((0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1))
'\nparameters for reproducibiliy. More information: https://numpy.org/doc/stable/reference/random/parallel.html\n'
entropy = 258194110137029475889902652135037600173
child_seed_index = (1, 4) |
#!/usr/bin/python
__all__ = [
'__title__', '__summary__', '__uri__', '__version__', '__author__',
'__email__', '__license__', '__copyright__',
]
__title__ = 'django-simple-datatable'
__summary__ = 'Simple datatable'
__uri__ = 'https://github.com/2375452377/django-simple-datatable.git'
__version__ = '0.1.1'
__author__ = 'Terrence Luo'
__email__ = 'Terrence.luo@coassets.com.cn'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015 {0}'.format(__author__)
| __all__ = ['__title__', '__summary__', '__uri__', '__version__', '__author__', '__email__', '__license__', '__copyright__']
__title__ = 'django-simple-datatable'
__summary__ = 'Simple datatable'
__uri__ = 'https://github.com/2375452377/django-simple-datatable.git'
__version__ = '0.1.1'
__author__ = 'Terrence Luo'
__email__ = 'Terrence.luo@coassets.com.cn'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015 {0}'.format(__author__) |
'''
def square(num):
return num*num
a = square(10)
print(a)
'''
# Lamda function --> Function creating using an expression using lamda keyword
square = lambda num: num*num # creating a square lamda function which takes num as input and multiply num*num and return to square
num = 10
a=square(num)
print(a)
sum = lambda a,b,c: a+b+c
s= sum(num,4,6) # return 20 , take first value num =10
print(s)
| """
def square(num):
return num*num
a = square(10)
print(a)
"""
square = lambda num: num * num
num = 10
a = square(num)
print(a)
sum = lambda a, b, c: a + b + c
s = sum(num, 4, 6)
print(s) |
HTTP_METHOD_DELETE = "DELETE"
HTTP_METHOD_GET = "GET"
HTTP_METHOD_POST = "POST"
HTTP_METHOD_PUT = "PUT"
| http_method_delete = 'DELETE'
http_method_get = 'GET'
http_method_post = 'POST'
http_method_put = 'PUT' |
GYRO_FSR_250DPS = 0
GYRO_FSR_500DPS = 1
GYRO_FSR_1000DPS = 2
GYRO_FSR_2000DPS = 3
| gyro_fsr_250_dps = 0
gyro_fsr_500_dps = 1
gyro_fsr_1000_dps = 2
gyro_fsr_2000_dps = 3 |
# Hash Table; Two pointers; string
# Given a string, find the length of the longest substring without repeating characters.
#
# Example 1:
#
# Input: "abcabcbb"
# Output: 3
# Explanation: The answer is "abc", with the length of 3.
# Example 2:
#
# Input: "bbbbb"
# Output: 1
# Explanation: The answer is "b", with the length of 1.
# Example 3:
#
# Input: "pwwkew"
# Output: 3
# Explanation: The answer is "wke", with the length of 3.
# Note that the answer must be a substring, "pwke" is a subsequence and not a substring.
class Solution(object):
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
dic, res, start = {}, 0, 0
for i, ch in enumerate(s):
if ch in dic:
res = max(res, i-start)
start = max(start, dic[ch]+1)
dic[ch] = i
return max(res, len(s)-start)
| class Solution(object):
def length_of_longest_substring(self, s):
"""
:type s: str
:rtype: int
"""
(dic, res, start) = ({}, 0, 0)
for (i, ch) in enumerate(s):
if ch in dic:
res = max(res, i - start)
start = max(start, dic[ch] + 1)
dic[ch] = i
return max(res, len(s) - start) |
ACTIONS_MAP = {
"attack": "do_combat",
"area": "do_combat",
"block": "do_combat",
"disrupt": "do_combat",
"dodge": "do_combat",
"change character": "change_class",
"change class": "change_class",
}
| actions_map = {'attack': 'do_combat', 'area': 'do_combat', 'block': 'do_combat', 'disrupt': 'do_combat', 'dodge': 'do_combat', 'change character': 'change_class', 'change class': 'change_class'} |
#!/usr/bin/env python3
count = 0
while count < 5:
print(count)
count += 1
| count = 0
while count < 5:
print(count)
count += 1 |
# A sample config file
emailInformation = dict(
fromEmail = 'senderAccount',
toEmail = 'toAccount',
username = 'sender username',
password = 'sender password'
)
dropboxInfo = dict(
token = 'dropbox token'
) | email_information = dict(fromEmail='senderAccount', toEmail='toAccount', username='sender username', password='sender password')
dropbox_info = dict(token='dropbox token') |
# -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
class SchedulingPolicyProtoMonthlySchedule(object):
"""Implementation of the 'SchedulingPolicyProto_MonthlySchedule' model.
TODO: type model description here.
Attributes:
count (int): Count of the day on which to perform the backup (look
above for a more detailed description).
day (int): The day of the month the backup is to be performed.
"""
# Create a mapping from Model property names to API property names
_names = {
"count":'count',
"day":'day'
}
def __init__(self,
count=None,
day=None):
"""Constructor for the SchedulingPolicyProtoMonthlySchedule class"""
# Initialize members of the class
self.count = count
self.day = day
@classmethod
def from_dictionary(cls,
dictionary):
"""Creates an instance of this model from a dictionary
Args:
dictionary (dictionary): A dictionary representation of the object as
obtained from the deserialization of the server's response. The keys
MUST match property names in the API description.
Returns:
object: An instance of this structure class.
"""
if dictionary is None:
return None
# Extract variables from the dictionary
count = dictionary.get('count')
day = dictionary.get('day')
# Return an object of this model
return cls(count,
day)
| class Schedulingpolicyprotomonthlyschedule(object):
"""Implementation of the 'SchedulingPolicyProto_MonthlySchedule' model.
TODO: type model description here.
Attributes:
count (int): Count of the day on which to perform the backup (look
above for a more detailed description).
day (int): The day of the month the backup is to be performed.
"""
_names = {'count': 'count', 'day': 'day'}
def __init__(self, count=None, day=None):
"""Constructor for the SchedulingPolicyProtoMonthlySchedule class"""
self.count = count
self.day = day
@classmethod
def from_dictionary(cls, dictionary):
"""Creates an instance of this model from a dictionary
Args:
dictionary (dictionary): A dictionary representation of the object as
obtained from the deserialization of the server's response. The keys
MUST match property names in the API description.
Returns:
object: An instance of this structure class.
"""
if dictionary is None:
return None
count = dictionary.get('count')
day = dictionary.get('day')
return cls(count, day) |
# -*- mode: python -*-
# vi: set ft=python :
"""
Downloads a precompiled version of buildifier and makes it available to the
WORKSPACE.
Example:
WORKSPACE:
load("@drake//tools/workspace:mirrors.bzl", "DEFAULT_MIRRORS")
load("@drake//tools/workspace/buildifier:repository.bzl", "buildifier_repository") # noqa
buildifier_repository(name = "foo", mirrors = DEFAULT_MIRRORS)
BUILD:
sh_binary(
name = "foobar",
srcs = ["bar.sh"],
data = ["@foo//:buildifier"],
)
Argument:
name: A unique name for this rule.
"""
load("@drake//tools/workspace:os.bzl", "determine_os")
load(
"@drake//tools/workspace:metadata.bzl",
"generate_repository_metadata",
)
def _impl(repository_ctx):
# Enumerate the possible binaries.
version = "4.0.1"
mac_urls = [
x.format(version = version, filename = "buildifier-darwin-amd64")
for x in repository_ctx.attr.mirrors.get("buildifier")
]
mac_sha256 = "f4d0ede5af04b32671b9a086ae061df8f621f48ea139b01b3715bfa068219e4a" # noqa
ubuntu_urls = [
x.format(version = version, filename = "buildifier-linux-amd64")
for x in repository_ctx.attr.mirrors.get("buildifier")
]
ubuntu_sha256 = "069a03fc1fa46135e3f71e075696e09389344710ccee798b2722c50a2d92d55a" # noqa
# Choose which binary to use on the current OS.
os_result = determine_os(repository_ctx)
if os_result.error != None:
fail(os_result.error)
if os_result.is_macos:
urls = mac_urls
sha256 = mac_sha256
elif os_result.is_ubuntu:
urls = ubuntu_urls
sha256 = ubuntu_sha256
else:
fail("Operating system is NOT supported", attr = os_result)
# Fetch the binary from mirrors.
output = repository_ctx.path("buildifier")
repository_ctx.download(urls, output, sha256, executable = True)
# Add the BUILD file.
repository_ctx.symlink(
Label("@drake//tools/workspace/buildifier:package.BUILD.bazel"),
"BUILD.bazel",
)
# Create a summary file for for Drake maintainers. We need to list all
# possible binaries so Drake's mirroring scripts will fetch everything.
generate_repository_metadata(
repository_ctx,
repository_rule_type = "manual",
version = version,
downloads = [
{
"urls": mac_urls,
"sha256": mac_sha256,
},
{
"urls": ubuntu_urls,
"sha256": ubuntu_sha256,
},
],
)
buildifier_repository = repository_rule(
attrs = {
"mirrors": attr.string_list_dict(),
},
implementation = _impl,
)
| """
Downloads a precompiled version of buildifier and makes it available to the
WORKSPACE.
Example:
WORKSPACE:
load("@drake//tools/workspace:mirrors.bzl", "DEFAULT_MIRRORS")
load("@drake//tools/workspace/buildifier:repository.bzl", "buildifier_repository") # noqa
buildifier_repository(name = "foo", mirrors = DEFAULT_MIRRORS)
BUILD:
sh_binary(
name = "foobar",
srcs = ["bar.sh"],
data = ["@foo//:buildifier"],
)
Argument:
name: A unique name for this rule.
"""
load('@drake//tools/workspace:os.bzl', 'determine_os')
load('@drake//tools/workspace:metadata.bzl', 'generate_repository_metadata')
def _impl(repository_ctx):
version = '4.0.1'
mac_urls = [x.format(version=version, filename='buildifier-darwin-amd64') for x in repository_ctx.attr.mirrors.get('buildifier')]
mac_sha256 = 'f4d0ede5af04b32671b9a086ae061df8f621f48ea139b01b3715bfa068219e4a'
ubuntu_urls = [x.format(version=version, filename='buildifier-linux-amd64') for x in repository_ctx.attr.mirrors.get('buildifier')]
ubuntu_sha256 = '069a03fc1fa46135e3f71e075696e09389344710ccee798b2722c50a2d92d55a'
os_result = determine_os(repository_ctx)
if os_result.error != None:
fail(os_result.error)
if os_result.is_macos:
urls = mac_urls
sha256 = mac_sha256
elif os_result.is_ubuntu:
urls = ubuntu_urls
sha256 = ubuntu_sha256
else:
fail('Operating system is NOT supported', attr=os_result)
output = repository_ctx.path('buildifier')
repository_ctx.download(urls, output, sha256, executable=True)
repository_ctx.symlink(label('@drake//tools/workspace/buildifier:package.BUILD.bazel'), 'BUILD.bazel')
generate_repository_metadata(repository_ctx, repository_rule_type='manual', version=version, downloads=[{'urls': mac_urls, 'sha256': mac_sha256}, {'urls': ubuntu_urls, 'sha256': ubuntu_sha256}])
buildifier_repository = repository_rule(attrs={'mirrors': attr.string_list_dict()}, implementation=_impl) |
def largest_palindrome_product(digit_num):
pals = list()
for i in range(1,10**digit_num):
for j in range(1,10**digit_num):
n = (10**digit_num-i)*(10**digit_num-j)
p = ""
for i in range(1,len(str(n))+1):
p = p + str(n)[-i]
if p == str(n):
pals.append(n)
largest_pal = 0
for _ in pals:
if _ > largest_pal:
largest_pal = _
return largest_pal
assert largest_palindrome_product(3) == 90909
assert largest_palindrome_product(2) == 9009
print(largest_palindrome_product(1))
| def largest_palindrome_product(digit_num):
pals = list()
for i in range(1, 10 ** digit_num):
for j in range(1, 10 ** digit_num):
n = (10 ** digit_num - i) * (10 ** digit_num - j)
p = ''
for i in range(1, len(str(n)) + 1):
p = p + str(n)[-i]
if p == str(n):
pals.append(n)
largest_pal = 0
for _ in pals:
if _ > largest_pal:
largest_pal = _
return largest_pal
assert largest_palindrome_product(3) == 90909
assert largest_palindrome_product(2) == 9009
print(largest_palindrome_product(1)) |
def LEFT(i):
return 2*i + 1
def RIGHT(i):
return 2*i + 2
def swap(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
def heapify(A, i, size):
left = LEFT(i)
right = RIGHT(i)
largest = i
if left < size and A[left] > A[i]:
largest = left
if right < size and A[right] > A[largest]:
largest = right
if largest != i:
swap(A, i, largest)
heapify(A, largest, size)
def pop(A, size):
if size <= 0:
return -1
top = A[0]
A[0] = A[size - 1]
heapify(A, 0, size - 1)
return top
def heapsort(A):
n = len(A)
i = (n - 2) // 2
while i >= 0:
heapify(A, i, n)
i = i - 1
while n:
A[n - 1] = pop(A, n)
n = n - 1
if __name__ == '__main__':
A = [6, 4, 7, 1, 9, -2]
heapsort(A)
print(A) | def left(i):
return 2 * i + 1
def right(i):
return 2 * i + 2
def swap(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
def heapify(A, i, size):
left = left(i)
right = right(i)
largest = i
if left < size and A[left] > A[i]:
largest = left
if right < size and A[right] > A[largest]:
largest = right
if largest != i:
swap(A, i, largest)
heapify(A, largest, size)
def pop(A, size):
if size <= 0:
return -1
top = A[0]
A[0] = A[size - 1]
heapify(A, 0, size - 1)
return top
def heapsort(A):
n = len(A)
i = (n - 2) // 2
while i >= 0:
heapify(A, i, n)
i = i - 1
while n:
A[n - 1] = pop(A, n)
n = n - 1
if __name__ == '__main__':
a = [6, 4, 7, 1, 9, -2]
heapsort(A)
print(A) |
class APIException(Exception):
"""
Encapsulates HTTP errors thrown by the microcosm API.
"""
def __init__(self, error_message, status_code=None, detail=None):
self.status_code = status_code
self.detail = detail
super(APIException, self).__init__(error_message)
def __str__(self):
return 'HTTP status: %d: %s' % (self.status_code, self.message) | class Apiexception(Exception):
"""
Encapsulates HTTP errors thrown by the microcosm API.
"""
def __init__(self, error_message, status_code=None, detail=None):
self.status_code = status_code
self.detail = detail
super(APIException, self).__init__(error_message)
def __str__(self):
return 'HTTP status: %d: %s' % (self.status_code, self.message) |
# -*- coding: utf-8 -*-
"""
@author: mwahdan
"""
class NluDataset:
def __init__(self, text, tags, intents):
self.text = text
self.tags = tags
self.intents = intents | """
@author: mwahdan
"""
class Nludataset:
def __init__(self, text, tags, intents):
self.text = text
self.tags = tags
self.intents = intents |
""" Model for Player """
class Player:
""" Player class """
def __init__(self, player_name):
self.name = player_name
def say_hello(self):
""" Function used by player to introduce him/her self """
print("Hello, I'm ", self.name)
def score_runs(self, runs):
""" Function used to capture runs scored by a player """
print(self.name + " has just scored " + str(runs) + " runs" )
def main():
srt = Player("Sachin Tendulkar")
srt.say_hello()
srt.score_runs(100)
vk = Player("Virat Kohli")
vk.say_hello()
vk.score_runs(50)
if __name__ == '__main__':
main() | """ Model for Player """
class Player:
""" Player class """
def __init__(self, player_name):
self.name = player_name
def say_hello(self):
""" Function used by player to introduce him/her self """
print("Hello, I'm ", self.name)
def score_runs(self, runs):
""" Function used to capture runs scored by a player """
print(self.name + ' has just scored ' + str(runs) + ' runs')
def main():
srt = player('Sachin Tendulkar')
srt.say_hello()
srt.score_runs(100)
vk = player('Virat Kohli')
vk.say_hello()
vk.score_runs(50)
if __name__ == '__main__':
main() |
values = {
frozenset(("id=72", "vaultUserPermissions%5B2%5D=readOnly")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=disabled", "id=95")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=disabled", "id=12")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=readOnly", "id=72")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=readOnly", "id=14")): {
"status_code": "500",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
frozenset(("vaultUserPermissions%5B274%5D=disabled", "id=72")): {
"status_code": "200",
"text": {
"responseData": {},
"responseHeader": {
"now": 1492630700324,
"requestId": "WPe8rAoQgF4AADVcyb0AAAAv",
"status": "ok",
},
"responseStatus": "ok",
},
},
}
| values = {frozenset(('id=72', 'vaultUserPermissions%5B2%5D=readOnly')): {'status_code': '200', 'text': {'responseData': {}, 'responseHeader': {'now': 1492630700324, 'requestId': 'WPe8rAoQgF4AADVcyb0AAAAv', 'status': 'ok'}, 'responseStatus': 'ok'}}, frozenset(('vaultUserPermissions%5B274%5D=disabled', 'id=95')): {'status_code': '200', 'text': {'responseData': {}, 'responseHeader': {'now': 1492630700324, 'requestId': 'WPe8rAoQgF4AADVcyb0AAAAv', 'status': 'ok'}, 'responseStatus': 'ok'}}, frozenset(('vaultUserPermissions%5B274%5D=disabled', 'id=12')): {'status_code': '200', 'text': {'responseData': {}, 'responseHeader': {'now': 1492630700324, 'requestId': 'WPe8rAoQgF4AADVcyb0AAAAv', 'status': 'ok'}, 'responseStatus': 'ok'}}, frozenset(('vaultUserPermissions%5B274%5D=readOnly', 'id=72')): {'status_code': '200', 'text': {'responseData': {}, 'responseHeader': {'now': 1492630700324, 'requestId': 'WPe8rAoQgF4AADVcyb0AAAAv', 'status': 'ok'}, 'responseStatus': 'ok'}}, frozenset(('vaultUserPermissions%5B274%5D=readOnly', 'id=14')): {'status_code': '500', 'text': {'responseData': {}, 'responseHeader': {'now': 1492630700324, 'requestId': 'WPe8rAoQgF4AADVcyb0AAAAv', 'status': 'ok'}, 'responseStatus': 'ok'}}, frozenset(('vaultUserPermissions%5B274%5D=disabled', 'id=72')): {'status_code': '200', 'text': {'responseData': {}, 'responseHeader': {'now': 1492630700324, 'requestId': 'WPe8rAoQgF4AADVcyb0AAAAv', 'status': 'ok'}, 'responseStatus': 'ok'}}} |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def get_inputs():
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# I N P U T S #
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# Atmosphere options
Atmosphere = 0 # 0 for mutant US62/US76 standard atmosphere, 1 for NRLMSISE-00
#nrlmsise-00 options.
nrlmsise00_year = 0.
nrlmsise00_doy = 172.
nrlmsise00_sec = 29000.
nrlmsise00_lst = 16.
nrlmsise00_f107a = 150.
nrlmsise00_f107 = 150.
nrlmsise00_ap = 4.
# Aerodynamics solver options
ContinuumMethod = 0 # 1 for Classic Newtonian, 0 for Modified Newtonian
# Spacecraft dimensions and parameters
GeometryChoice = 0 # choice of box or plate or sphere (at the moment only box is available)
scWidth = 3.4 # Width [m]
scDepth = 4.8 # Depth [m]
scHeight = 2.35 # Height [m]
scDensity = 1000. # Density of spacecraft [kg/m3]
# Initial Spacecraft Conditions
FlightPathAngle = -0.5 # Positive down [deg]
Heading = 102. # Measured clockwise from North [deg]
Speed = 7500. # Velocity
Latitude = -79.8489 # [deg] Actually Declination. Geodetic Latitude input will be implemented soon
Longitude = -10 # [deg]
Altitude = 200e3 # Initial altitude [m]
Pitch = 0. # Euler Angle 1 measured from Geocentric coordinate system
Yaw = 0. # Euler Angle 2 measured from Geocentric coordinate system
Roll = 0. # Euler Angle 3 measured from Geocentric coordinate system
omega_x = 0. #3.14 # Angular velocity about the BODY x- axis [deg/s]
omega_y = 1. #0.314 # Angular velocity about the BODY y- axis [deg/s]
omega_z = 0. #314 # Angular velocity about the BODY z- axis [deg/s]
# Integration parameters
ndt = 1001 # Number of output steps
tmax = 1500 # time [s]
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# P O S T P R O C E S S I N G O P T I O N S #
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# Postprocessing Options
Run_name = 'Run01'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# M O D E L P A R A M E T E R S #
# (Not necessary to touch this) #
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Earthmu = 398600.4415e9 # Earth gravity constant
EarthRad = 6378.137e3 # Earth radius
EarthJ2 = 1.0826230e-3 # Earth J2
EarthOmega = 4.1780741e-3 # Earth angular velocity [deg/s]
KnFM = 10 # Knudsen number for free-molecular flow
KnCont = 0.001 # Knudsen number for continuum flow
a1 = 3./8 # Bridging function coefficient 1
a2 = 1./8 # Bridging function coefficient 2
SigN = 0.9 # Normal momentum accomodation coefficient
SigT = 0.9 # Tangential momentum accomodation coefficient
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# A S S E M B L E I N P U T S #
# (Not necessary to touch this) #
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
inputDictionary = dict([('Atmosphere' , Atmosphere),
('nrlmsise00_year' , nrlmsise00_year),
('nrlmsise00_doy' , nrlmsise00_doy),
('nrlmsise00_sec' , nrlmsise00_sec),
('nrlmsise00_lst' , nrlmsise00_lst),
('nrlmsise00_f107a' ,nrlmsise00_f107a),
('nrlmsise00_f107' , nrlmsise00_f107),
('nrlmsise00_ap' , nrlmsise00_ap),
('ContinuumMethod' , ContinuumMethod),
('GeometryChoice' , GeometryChoice),
('scWidth' , scWidth),
('scDepth' , scDepth),
('scHeight' , scHeight),
('scDensity' , scDensity),
('tmax' , tmax),
('ndt' , ndt),
('FlightPathAngle' , FlightPathAngle),
('Heading' , Heading),
('Speed' , Speed),
('Latitude' , Latitude),
('Longitude' , Longitude),
('Altitude' , Altitude),
('Pitch' , Pitch),
('Yaw' , Yaw),
('Roll' , Roll),
('omega_x' , omega_x),
('omega_y' , omega_y),
('omega_z' , omega_z),
('Earthmu' , Earthmu),
('EarthRad' , EarthRad),
('EarthJ2' , EarthJ2),
('EarthOmega' , EarthOmega),
('KnFM' , KnFM),
('KnCont' , KnCont),
('a1' , a1),
('a2' , a2),
('SigN' , SigN),
('SigT' , SigT)])
return inputDictionary
| def get_inputs():
"""
# I N P U T S #
"""
atmosphere = 0
nrlmsise00_year = 0.0
nrlmsise00_doy = 172.0
nrlmsise00_sec = 29000.0
nrlmsise00_lst = 16.0
nrlmsise00_f107a = 150.0
nrlmsise00_f107 = 150.0
nrlmsise00_ap = 4.0
continuum_method = 0
geometry_choice = 0
sc_width = 3.4
sc_depth = 4.8
sc_height = 2.35
sc_density = 1000.0
flight_path_angle = -0.5
heading = 102.0
speed = 7500.0
latitude = -79.8489
longitude = -10
altitude = 200000.0
pitch = 0.0
yaw = 0.0
roll = 0.0
omega_x = 0.0
omega_y = 1.0
omega_z = 0.0
ndt = 1001
tmax = 1500
'\n # P O S T P R O C E S S I N G O P T I O N S #\n '
run_name = 'Run01'
'\n # M O D E L P A R A M E T E R S #\n # (Not necessary to touch this) #\n '
earthmu = 398600441500000.0
earth_rad = 6378137.0
earth_j2 = 0.001082623
earth_omega = 0.0041780741
kn_fm = 10
kn_cont = 0.001
a1 = 3.0 / 8
a2 = 1.0 / 8
sig_n = 0.9
sig_t = 0.9
'\n # A S S E M B L E I N P U T S #\n # (Not necessary to touch this) #\n '
input_dictionary = dict([('Atmosphere', Atmosphere), ('nrlmsise00_year', nrlmsise00_year), ('nrlmsise00_doy', nrlmsise00_doy), ('nrlmsise00_sec', nrlmsise00_sec), ('nrlmsise00_lst', nrlmsise00_lst), ('nrlmsise00_f107a', nrlmsise00_f107a), ('nrlmsise00_f107', nrlmsise00_f107), ('nrlmsise00_ap', nrlmsise00_ap), ('ContinuumMethod', ContinuumMethod), ('GeometryChoice', GeometryChoice), ('scWidth', scWidth), ('scDepth', scDepth), ('scHeight', scHeight), ('scDensity', scDensity), ('tmax', tmax), ('ndt', ndt), ('FlightPathAngle', FlightPathAngle), ('Heading', Heading), ('Speed', Speed), ('Latitude', Latitude), ('Longitude', Longitude), ('Altitude', Altitude), ('Pitch', Pitch), ('Yaw', Yaw), ('Roll', Roll), ('omega_x', omega_x), ('omega_y', omega_y), ('omega_z', omega_z), ('Earthmu', Earthmu), ('EarthRad', EarthRad), ('EarthJ2', EarthJ2), ('EarthOmega', EarthOmega), ('KnFM', KnFM), ('KnCont', KnCont), ('a1', a1), ('a2', a2), ('SigN', SigN), ('SigT', SigT)])
return inputDictionary |
IX86_UNCONDITIONAL_JMP_CALLS = ["JMP", "JMP_SHORT", "JMP_FAR", "CALL"]
IX86_CONDITIONAL_JMP_CALLS = [
"JA",
"JA_SHORT",
"JNBE",
"JNBE_SHORT",
"JAE",
"JAE_SHORT",
"JNB",
"JNB_SHORT",
"JB",
"JB_SHORT",
"JBAE",
"JBAE_SHORT",
"JC",
"JC_SHORT",
"JBE",
"JBE_SHORT",
"JBZ",
"JBZ_SHORT",
"JBNA",
"JBNA_SHORT",
"JE",
"JE_SHORT",
"JZ",
"JZ_SHORT",
"JG",
"JG_SHORT",
"JNLE",
"JNLE_SHORT",
"JGE",
"JGE_SHORT",
"JNL",
"JNL_SHORT",
"JL",
"JL_SHORT",
"JNGE",
"JNGE_SHORT",
"JLE",
"JLE_SHORT",
"JNG",
"JNG_SHORT",
"JNE",
"JNE_SHORT",
"JNZ",
"JNZ_SHORT",
"JNO",
"JNO_SHORT",
"JNS",
"JNS_SHORT",
"JNP",
"JNP_SHORT",
"JPO",
"JPO_SHORT",
"JO",
"JO_SHORT",
"JP",
"JP_SHORT",
"JPE",
"JPE_SHORT",
"JS",
"JS_SHORT",
]
| ix86_unconditional_jmp_calls = ['JMP', 'JMP_SHORT', 'JMP_FAR', 'CALL']
ix86_conditional_jmp_calls = ['JA', 'JA_SHORT', 'JNBE', 'JNBE_SHORT', 'JAE', 'JAE_SHORT', 'JNB', 'JNB_SHORT', 'JB', 'JB_SHORT', 'JBAE', 'JBAE_SHORT', 'JC', 'JC_SHORT', 'JBE', 'JBE_SHORT', 'JBZ', 'JBZ_SHORT', 'JBNA', 'JBNA_SHORT', 'JE', 'JE_SHORT', 'JZ', 'JZ_SHORT', 'JG', 'JG_SHORT', 'JNLE', 'JNLE_SHORT', 'JGE', 'JGE_SHORT', 'JNL', 'JNL_SHORT', 'JL', 'JL_SHORT', 'JNGE', 'JNGE_SHORT', 'JLE', 'JLE_SHORT', 'JNG', 'JNG_SHORT', 'JNE', 'JNE_SHORT', 'JNZ', 'JNZ_SHORT', 'JNO', 'JNO_SHORT', 'JNS', 'JNS_SHORT', 'JNP', 'JNP_SHORT', 'JPO', 'JPO_SHORT', 'JO', 'JO_SHORT', 'JP', 'JP_SHORT', 'JPE', 'JPE_SHORT', 'JS', 'JS_SHORT'] |
#!/usr/bin/env python
#Lists
categoryList = []
factList = []
caseList = []
saList = []
ruleList = []
erList = []
foList = []
evalList = []
#Operations
AND = " AND "
OR = " OR "
NEG = " NEG "
IMPLY = " IMPLY "
EQUALS = " EQUALS "
LESSER = " LESSER "
GREATER = " GREATER "
#Classes
class Category(object):
def __init__(self, name=None, description=None):
self.name = name
self.description = description
class Fact(object):
def __init__(self, name=None, category=None, description=None, value=None):
self.name = name
self.category = category
self.description = description
self.value = value
class SecurityAttribute(object):
def __init__(self, name=None, description=None):
self.name = name
self.description = description
class Rule(object):
def __init__(self, elements=[]):
self.elements = elements #facts + operators
class EvaluationRule(object):
def __init__(self, elements=None, influence=None, security_attribute=None):
self.elements = elements #facts + operators
self.influence = influence #influence value
self.security_attribute = security_attribute
class FactsOrder(object):
def __init__(self, elements=[], security_attribute=None):
self.elements = elements
self.security_attribute = security_attribute
class Case(object):
def __init__(self, casename=None, facts=None, description=None):
self.casename = casename
self.facts = facts
self.description = description
class Evaluation(object):
def __init__(self, elements=[], description=None, results_name=[], results_value=[]):
self.elements = elements
self.description = description
self.results = results #dictionary - sec_att: value | category_list = []
fact_list = []
case_list = []
sa_list = []
rule_list = []
er_list = []
fo_list = []
eval_list = []
and = ' AND '
or = ' OR '
neg = ' NEG '
imply = ' IMPLY '
equals = ' EQUALS '
lesser = ' LESSER '
greater = ' GREATER '
class Category(object):
def __init__(self, name=None, description=None):
self.name = name
self.description = description
class Fact(object):
def __init__(self, name=None, category=None, description=None, value=None):
self.name = name
self.category = category
self.description = description
self.value = value
class Securityattribute(object):
def __init__(self, name=None, description=None):
self.name = name
self.description = description
class Rule(object):
def __init__(self, elements=[]):
self.elements = elements
class Evaluationrule(object):
def __init__(self, elements=None, influence=None, security_attribute=None):
self.elements = elements
self.influence = influence
self.security_attribute = security_attribute
class Factsorder(object):
def __init__(self, elements=[], security_attribute=None):
self.elements = elements
self.security_attribute = security_attribute
class Case(object):
def __init__(self, casename=None, facts=None, description=None):
self.casename = casename
self.facts = facts
self.description = description
class Evaluation(object):
def __init__(self, elements=[], description=None, results_name=[], results_value=[]):
self.elements = elements
self.description = description
self.results = results |
def median3():
numbers1 = input("What numbers are we finding the median of?: ")
numbers1 = numbers1.split(",")
num = []
for i in numbers1:
i = float(i)
n = num.append(i)
n1 = num.sort()
z = len(num)
if z % 2 == 0:
median1 = num[z//2]
median2 = num[z//2-1]
median = (median1 + median2)/2
else:
median = num[z//2]
median = float(median)
print(f"The Median is: {median}")
median3()
| def median3():
numbers1 = input('What numbers are we finding the median of?: ')
numbers1 = numbers1.split(',')
num = []
for i in numbers1:
i = float(i)
n = num.append(i)
n1 = num.sort()
z = len(num)
if z % 2 == 0:
median1 = num[z // 2]
median2 = num[z // 2 - 1]
median = (median1 + median2) / 2
else:
median = num[z // 2]
median = float(median)
print(f'The Median is: {median}')
median3() |
POSTGRES_USER=test
POSTGRES_PASSWORD=password
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=example | postgres_user = test
postgres_password = password
postgres_host = localhost
postgres_port = 5432
postgres_db = example |
"""
Given a string s formed by digits ('0' - '9') and '#' . We want to map s to
English lowercase characters as follows:
- Characters ('a' to 'i') are represented by ('1' to '9') respectively.
- Characters ('j' to 'z') are represented by ('10#' to '26#')
respectively.
Return the string formed after mapping.
It's guaranteed that a unique mapping will always exist.
Example:
Input: s = "10#11#12"
Output: "jkab"
Explanation: "j" -> "10#" , "k" -> "11#" , "a" -> "1" , "b" -> "2".
Example:
Input: s = "1326#"
Output: "acz"
Example:
Input: s = "25#"
Output: "y"
Example:
Input: s = "12345678910#11#12#13#14#15#16#17#18#19#20#21#22#23#24#25#26#"
Output: "abcdefghijklmnopqrstuvwxyz"
Constraints:
- 1 <= s.length <= 1000
- s[i] only contains digits letters ('0'-'9') and '#' letter.
- s will be valid string such that mapping is always possible.
"""
#Difficulty: Easy
#40 / 40 test cases passed.
#Runtime: 24 ms
#Memory Usage: 13.6 MB
#Runtime: 24 ms, faster than 95.15% of Python3 online submissions for Decrypt String from Alphabet to Integer Mapping.
#Memory Usage: 13.6 MB, less than 97.44% of Python3 online submissions for Decrypt String from Alphabet to Integer Mapping.
class Solution:
def freqAlphabets(self, s: str) -> str:
string = ''
length = len(s) - 1
while length >= 0:
if s[length] == '#':
string = chr(96 + int(s[length-2:length])) + string
s = s[:length-2]
else:
string = chr(96 + int(s[length])) + string
s = s[:length]
length = len(s) - 1
return string
| """
Given a string s formed by digits ('0' - '9') and '#' . We want to map s to
English lowercase characters as follows:
- Characters ('a' to 'i') are represented by ('1' to '9') respectively.
- Characters ('j' to 'z') are represented by ('10#' to '26#')
respectively.
Return the string formed after mapping.
It's guaranteed that a unique mapping will always exist.
Example:
Input: s = "10#11#12"
Output: "jkab"
Explanation: "j" -> "10#" , "k" -> "11#" , "a" -> "1" , "b" -> "2".
Example:
Input: s = "1326#"
Output: "acz"
Example:
Input: s = "25#"
Output: "y"
Example:
Input: s = "12345678910#11#12#13#14#15#16#17#18#19#20#21#22#23#24#25#26#"
Output: "abcdefghijklmnopqrstuvwxyz"
Constraints:
- 1 <= s.length <= 1000
- s[i] only contains digits letters ('0'-'9') and '#' letter.
- s will be valid string such that mapping is always possible.
"""
class Solution:
def freq_alphabets(self, s: str) -> str:
string = ''
length = len(s) - 1
while length >= 0:
if s[length] == '#':
string = chr(96 + int(s[length - 2:length])) + string
s = s[:length - 2]
else:
string = chr(96 + int(s[length])) + string
s = s[:length]
length = len(s) - 1
return string |
# Reverse Cipher
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
# message = 'Three can keep a secret, if two of them are dead.'
# message = '.daed era meht fo owt fi ,terces a peek nac eerhT'
message = input('Enter message: ')
translated = ''
i = len(message) - 1
while i >= 0:
translated = translated + message[i]
print('i is', i, ', message[i] is', message[i], ', translated is', translated)
i = i - 1
print(translated)
| message = input('Enter message: ')
translated = ''
i = len(message) - 1
while i >= 0:
translated = translated + message[i]
print('i is', i, ', message[i] is', message[i], ', translated is', translated)
i = i - 1
print(translated) |
# Input: nums = [0,1,2,2,3,0,4,2], val = 2
# Output: 5, nums = [0,1,4,0,3]
def removeElement(arr, element):
dictonary = {}
output = 0
for iter in arr:
if iter in dictonary:
dictonary[iter] += 1
else:
dictonary[iter] = 1
# {0: 2, 1: 1, 3: 1, 4: 1}
delete = int(dictonary.get(element))
for i in range(delete):
arr.remove(element)
del dictonary[element]
output = sum(dictonary.values())
return arr, output
arr = [0, 1, 2, 2, 3, 0, 4, 2]
element = 2
nums, output = removeElement(arr, 2)
print(nums, "::", output)
| def remove_element(arr, element):
dictonary = {}
output = 0
for iter in arr:
if iter in dictonary:
dictonary[iter] += 1
else:
dictonary[iter] = 1
delete = int(dictonary.get(element))
for i in range(delete):
arr.remove(element)
del dictonary[element]
output = sum(dictonary.values())
return (arr, output)
arr = [0, 1, 2, 2, 3, 0, 4, 2]
element = 2
(nums, output) = remove_element(arr, 2)
print(nums, '::', output) |
# Define a coverage report
#
# Arguments:
# name : prefix of generated targets
# tests : list of test targets run for the report
# srcpath_include : (optional) list of path prefixes used to restrict data from matching sourcefiles
# srcpath_exclude : (optional) list of path prefixes used to exclude data from matching sourcefiles
#
# Generated Targets:
# name.suite : test_suite of tests
# name.lcov.unfiltered : merger of LCOV tracefiles from individual tests
# name.lcov : filtered version of merged LCOV tracefile
#
# Sourcepath Filtering:
# - A path matching any prefix in srcpath_include is included
# - A path matching any prefix in srcpath_exclude is excluded
# - A path that is both included and excluded is treated as excluded
# - If srcpath_included is omitted or empty then all paths are treated as included
# - The filtered tracefile contains all paths that are included and not excluded
def coverage_report(name, tests, srcpath_include = [], srcpath_exclude = []):
native.test_suite(
name = name + ".suite",
tests = ["@{}".format(t) for t in tests],
)
lcovs = ["@results//:{}.LCOVTracefile".format(t[2:].replace(":", "/")) for t in tests]
native.genrule(
name = "{}.lcov.unfiltered".format(name),
srcs = lcovs,
outs = ["{}/lcov.unfiltered".format(name)],
tools = [":merge_lcov"],
cmd = "python $(location :merge_lcov) $(SRCS) >$@",
)
spi = " ".join(srcpath_include)
spe = " ".join(["-" + x for x in srcpath_exclude])
native.genrule(
name = "{}.lcov".format(name),
srcs = ["{}.lcov.unfiltered".format(name)],
outs = ["{}/lcov".format(name)],
tools = [":filter_lcov"],
cmd = "python $(location :filter_lcov) <$< >$@ {} {}".format(spi, spe),
)
| def coverage_report(name, tests, srcpath_include=[], srcpath_exclude=[]):
native.test_suite(name=name + '.suite', tests=['@{}'.format(t) for t in tests])
lcovs = ['@results//:{}.LCOVTracefile'.format(t[2:].replace(':', '/')) for t in tests]
native.genrule(name='{}.lcov.unfiltered'.format(name), srcs=lcovs, outs=['{}/lcov.unfiltered'.format(name)], tools=[':merge_lcov'], cmd='python $(location :merge_lcov) $(SRCS) >$@')
spi = ' '.join(srcpath_include)
spe = ' '.join(['-' + x for x in srcpath_exclude])
native.genrule(name='{}.lcov'.format(name), srcs=['{}.lcov.unfiltered'.format(name)], outs=['{}/lcov'.format(name)], tools=[':filter_lcov'], cmd='python $(location :filter_lcov) <$< >$@ {} {}'.format(spi, spe)) |
# arrays
bonus = [0.005, 0.12, 0.345, 0.68, 1.125, 1.68, 2.345, 3.12, 4.005, 5 , 6.105, 7.32 ]
loss = [0]
probability = [0.359, 0.330, 0.3 , 0.27 , 0.24, 0.21 , 0.18, 0.15 , 0.12, 0.09 , 0.06, 0.03 ]
time = []
cookies_lost = []
# constants
cps = 11.696 #quadrillion
# counters
total_time = 0
# calculations
i = 0
while i < 11:
loss.append(bonus[i] - bonus[i-1])
i = i + 1
i = 0
while i < 12:
time.append(100/probability[i])
cookies_lost.append(cps*loss[i]*time[i])
i = i + 1
# questions
current_wrinklers = int(input("How many Wrinklers do you have? - "))
spend = float(input("How much are you spending? [quad] - "))
gain = float(input("what's the cps gain? [%] - "))
# calculations
cookies_gained = cps * gain/100 * time[current_wrinklers-1]
change = cookies_gained - cookies_lost[current_wrinklers-1]
# results
print("the wrinkler will be offline for " + str(time[current_wrinklers-1]) + " s")
print("you will gain " + str(cookies_gained) + " quadrillion cookies")
print("you will lose " + str(cookies_lost[current_wrinklers-1]) + " quadrillion cookies")
print("total chage - " + str(change) + " quadrillion cookies")
| bonus = [0.005, 0.12, 0.345, 0.68, 1.125, 1.68, 2.345, 3.12, 4.005, 5, 6.105, 7.32]
loss = [0]
probability = [0.359, 0.33, 0.3, 0.27, 0.24, 0.21, 0.18, 0.15, 0.12, 0.09, 0.06, 0.03]
time = []
cookies_lost = []
cps = 11.696
total_time = 0
i = 0
while i < 11:
loss.append(bonus[i] - bonus[i - 1])
i = i + 1
i = 0
while i < 12:
time.append(100 / probability[i])
cookies_lost.append(cps * loss[i] * time[i])
i = i + 1
current_wrinklers = int(input('How many Wrinklers do you have? - '))
spend = float(input('How much are you spending? [quad] - '))
gain = float(input("what's the cps gain? [%] - "))
cookies_gained = cps * gain / 100 * time[current_wrinklers - 1]
change = cookies_gained - cookies_lost[current_wrinklers - 1]
print('the wrinkler will be offline for ' + str(time[current_wrinklers - 1]) + ' s')
print('you will gain ' + str(cookies_gained) + ' quadrillion cookies')
print('you will lose ' + str(cookies_lost[current_wrinklers - 1]) + ' quadrillion cookies')
print('total chage - ' + str(change) + ' quadrillion cookies') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.