content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
"""
Stworz klase Ulamek reprezentujaca liczby ulamkowe.
Kazdy obiekt typu Ulamek powinien miec dwa atrybuty: self.licznik oraz self.mianownik.
Glownym celem zadania jest dorobienie imlementacji, dzieki ktorej mozliwe stanie sie
dodawanie, mnozenie, dzielenie i odejmowanie od siebie dwoch obiektow typu Ulamek. W tym celu nalezy
przeladowac operatory +, -, *, / (magiczne metody: __add__, __sub__, __mul__, __truediv__).
Pamietac trzeba o tym, ze przed dodaniem ulamkow, nalezy je sprowadzic do wspolnego mianowanika!
Dla uproszczenia: nie trzeba skracac ulamkow, czyli ulamka 10/20 nie trzeba bedzie sprowadzac do postaci 1/2.
Takie dzialania powinny sie zakonczyc sukcesem:
>> half = Ulamek(1, 2)
>> print(half.licznik)
1
>> print(half.mianownik)
2
>> quarter = Ulamek(1, 4)
>> print(quarter.licznik)
1
>> print(quarter.mianownik)
4
>> result = half + quarter # 1/2 + 1/4
>> print(result.licznik)
6
>> print(result.mianownik)
8
Zauwaz, ze nie chcemy w tym przypadku skracac ulamka do postaci 3/4. Algorytm zamienia 1/2 na 4/8 a 1/4 na 2/8
(po prostu wymnaza liczby przez siebie).
"""
class Ulamek:
pass
| """
Stworz klase Ulamek reprezentujaca liczby ulamkowe.
Kazdy obiekt typu Ulamek powinien miec dwa atrybuty: self.licznik oraz self.mianownik.
Glownym celem zadania jest dorobienie imlementacji, dzieki ktorej mozliwe stanie sie
dodawanie, mnozenie, dzielenie i odejmowanie od siebie dwoch obiektow typu Ulamek. W tym celu nalezy
przeladowac operatory +, -, *, / (magiczne metody: __add__, __sub__, __mul__, __truediv__).
Pamietac trzeba o tym, ze przed dodaniem ulamkow, nalezy je sprowadzic do wspolnego mianowanika!
Dla uproszczenia: nie trzeba skracac ulamkow, czyli ulamka 10/20 nie trzeba bedzie sprowadzac do postaci 1/2.
Takie dzialania powinny sie zakonczyc sukcesem:
>> half = Ulamek(1, 2)
>> print(half.licznik)
1
>> print(half.mianownik)
2
>> quarter = Ulamek(1, 4)
>> print(quarter.licznik)
1
>> print(quarter.mianownik)
4
>> result = half + quarter # 1/2 + 1/4
>> print(result.licznik)
6
>> print(result.mianownik)
8
Zauwaz, ze nie chcemy w tym przypadku skracac ulamka do postaci 3/4. Algorytm zamienia 1/2 na 4/8 a 1/4 na 2/8
(po prostu wymnaza liczby przez siebie).
"""
class Ulamek:
pass |
'''
You all have seen how to write loops in python. Now is the time to implement what you have learned.
Given an array A of N numbers (integers), you have to write a program which prints the sum of the elements of array A with the corresponding elements of the reverse of array A.
If array A has elements [1,2,3], then reverse of the array A will be [3,2,1] and the resultant array should be [4,4,4].
>>Input Format:
The first line of the input contains a number N representing the number of elements in array A.
The second line of the input contains N numbers separated by a space. (after the last elements, there is no space)
>>Output Format:
Print the resultant array elements separated by a space. (no space after the last element)
>>Example:
Input:
4
2 5 3 1
Output:
3 8 8 3
>>Explanation:
Here array A is [2,5,3,1] and reverse of this array is [1,3,5,2] and hence the resultant array is [3,8,8,3]
'''
N=int(input())
A = list(map(int, input().split()))
[print((str(A[i]+A[::-1][i])+" " if i<N-1 else A[i]+A[::-1][i]), end="") for i in range(N)]
| """
You all have seen how to write loops in python. Now is the time to implement what you have learned.
Given an array A of N numbers (integers), you have to write a program which prints the sum of the elements of array A with the corresponding elements of the reverse of array A.
If array A has elements [1,2,3], then reverse of the array A will be [3,2,1] and the resultant array should be [4,4,4].
>>Input Format:
The first line of the input contains a number N representing the number of elements in array A.
The second line of the input contains N numbers separated by a space. (after the last elements, there is no space)
>>Output Format:
Print the resultant array elements separated by a space. (no space after the last element)
>>Example:
Input:
4
2 5 3 1
Output:
3 8 8 3
>>Explanation:
Here array A is [2,5,3,1] and reverse of this array is [1,3,5,2] and hence the resultant array is [3,8,8,3]
"""
n = int(input())
a = list(map(int, input().split()))
[print(str(A[i] + A[::-1][i]) + ' ' if i < N - 1 else A[i] + A[::-1][i], end='') for i in range(N)] |
#
# PySNMP MIB module ELTEX-MES-IpRouter (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ELTEX-MES-IpRouter
# Produced by pysmi-0.3.4 at Mon Apr 29 18:47:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint")
eltMesOspf, = mibBuilder.importSymbols("ELTEX-MES-IP", "eltMesOspf")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
NotificationType, Unsigned32, Counter32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Bits, Integer32, TimeTicks, ModuleIdentity, MibIdentifier, Counter64, ObjectIdentity, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Unsigned32", "Counter32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Bits", "Integer32", "TimeTicks", "ModuleIdentity", "MibIdentifier", "Counter64", "ObjectIdentity", "Gauge32")
TextualConvention, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString")
eltOspfAuthTable = MibTable((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1), )
if mibBuilder.loadTexts: eltOspfAuthTable.setStatus('current')
eltOspfAuthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1), ).setIndexNames((0, "ELTEX-MES-IpRouter", "eltOspfIfIpAddress"), (0, "ELTEX-MES-IpRouter", "eltOspfAuthKeyId"))
if mibBuilder.loadTexts: eltOspfAuthEntry.setStatus('current')
eltOspfIfIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eltOspfIfIpAddress.setStatus('current')
eltOspfAuthKeyId = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1, 2), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eltOspfAuthKeyId.setStatus('current')
eltOspfAuthKey = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eltOspfAuthKey.setStatus('current')
eltOspfAuthStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: eltOspfAuthStatus.setStatus('current')
mibBuilder.exportSymbols("ELTEX-MES-IpRouter", eltOspfIfIpAddress=eltOspfIfIpAddress, eltOspfAuthEntry=eltOspfAuthEntry, eltOspfAuthStatus=eltOspfAuthStatus, eltOspfAuthKeyId=eltOspfAuthKeyId, eltOspfAuthTable=eltOspfAuthTable, eltOspfAuthKey=eltOspfAuthKey)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint')
(elt_mes_ospf,) = mibBuilder.importSymbols('ELTEX-MES-IP', 'eltMesOspf')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(notification_type, unsigned32, counter32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, bits, integer32, time_ticks, module_identity, mib_identifier, counter64, object_identity, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'Unsigned32', 'Counter32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Bits', 'Integer32', 'TimeTicks', 'ModuleIdentity', 'MibIdentifier', 'Counter64', 'ObjectIdentity', 'Gauge32')
(textual_convention, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'RowStatus', 'DisplayString')
elt_ospf_auth_table = mib_table((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1))
if mibBuilder.loadTexts:
eltOspfAuthTable.setStatus('current')
elt_ospf_auth_entry = mib_table_row((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1)).setIndexNames((0, 'ELTEX-MES-IpRouter', 'eltOspfIfIpAddress'), (0, 'ELTEX-MES-IpRouter', 'eltOspfAuthKeyId'))
if mibBuilder.loadTexts:
eltOspfAuthEntry.setStatus('current')
elt_ospf_if_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
eltOspfIfIpAddress.setStatus('current')
elt_ospf_auth_key_id = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1, 2), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
eltOspfAuthKeyId.setStatus('current')
elt_ospf_auth_key = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
eltOspfAuthKey.setStatus('current')
elt_ospf_auth_status = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 91, 1, 1, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
eltOspfAuthStatus.setStatus('current')
mibBuilder.exportSymbols('ELTEX-MES-IpRouter', eltOspfIfIpAddress=eltOspfIfIpAddress, eltOspfAuthEntry=eltOspfAuthEntry, eltOspfAuthStatus=eltOspfAuthStatus, eltOspfAuthKeyId=eltOspfAuthKeyId, eltOspfAuthTable=eltOspfAuthTable, eltOspfAuthKey=eltOspfAuthKey) |
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
def __repr__(self):
if self:
return "{} -> {} -> {}".format(self.val,self.left, self.right)
class Trim:
def trimBST(self, root: TreeNode, low: int, high: int) -> TreeNode:
while root:
if root.val < low: root = root.right
elif root.val > high: root = root.left
else: break
ref = TreeNode(left=root, right=root)
# Low state
prev, cur = ref, root
while cur:
if cur.val > low:
prev, cur = cur, cur.left
elif cur.val < low:
prev.left = cur = cur.right
else:
cur.left = None
break
#high state
prev, cur = ref, root
while cur:
if cur.val < high:
prev, cur = cur, cur.right
elif cur.val > high:
prev.right = cur = cur.left
else:
cur.right = None
break
return root
a=TreeNode(1)
low=1
high=2
print("The Binary Tree is: ",a)
print(Trim().trimBST(a,low,high)) | class Treenode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
def __repr__(self):
if self:
return '{} -> {} -> {}'.format(self.val, self.left, self.right)
class Trim:
def trim_bst(self, root: TreeNode, low: int, high: int) -> TreeNode:
while root:
if root.val < low:
root = root.right
elif root.val > high:
root = root.left
else:
break
ref = tree_node(left=root, right=root)
(prev, cur) = (ref, root)
while cur:
if cur.val > low:
(prev, cur) = (cur, cur.left)
elif cur.val < low:
prev.left = cur = cur.right
else:
cur.left = None
break
(prev, cur) = (ref, root)
while cur:
if cur.val < high:
(prev, cur) = (cur, cur.right)
elif cur.val > high:
prev.right = cur = cur.left
else:
cur.right = None
break
return root
a = tree_node(1)
low = 1
high = 2
print('The Binary Tree is: ', a)
print(trim().trimBST(a, low, high)) |
# The setup function is run once at the beginning
def setup():
# Create a canvas of size 800 x 800
size(800, 500)
# Set the background color to white
background(255, 255, 255)
# Color the shapes black
fill(0)
# No shape outline
noStroke()
# The draw function is run every frame of animation
def draw():
# Draw a circle at the mouse position
ellipse(mouseX, mouseY, 10, 10)
# When a key is pressed, this function will be called
def keyPressed():
# Check for specific keys and change the shape color accordingly
# If the key is 'c', clear the canvas
if key == 'r':
fill(255, 0, 0)
elif key == 'g':
fill(0, 255, 0)
elif key == 'b':
fill(0, 0, 255)
elif key == 'c':
clear()
# Function that clears the canvas by coloring it white
def clear():
background(255, 255, 255)
| def setup():
size(800, 500)
background(255, 255, 255)
fill(0)
no_stroke()
def draw():
ellipse(mouseX, mouseY, 10, 10)
def key_pressed():
if key == 'r':
fill(255, 0, 0)
elif key == 'g':
fill(0, 255, 0)
elif key == 'b':
fill(0, 0, 255)
elif key == 'c':
clear()
def clear():
background(255, 255, 255) |
class Solution:
def rotateTheBox(self, box: list[list[str]]) -> list[list[str]]:
if len(box) == 0:
return box
rows = len(box)
cols = len(box[0])
ROCK, OBSTACLE, EMPTY = '#', '*', '.'
for row in box:
nearest_obstacle = cols
for index, cell in reversed(list(enumerate(row))):
if cell == OBSTACLE:
nearest_obstacle = index
elif cell == ROCK:
row[index] = EMPTY
row[nearest_obstacle-1] = ROCK
nearest_obstacle = nearest_obstacle-1
rotated_box = [
[box[rows-1-j][i] for j in range(rows)]
for i in range(cols)
]
return rotated_box
tests = [
(
([["#", ".", "#"]],),
[["."],
["#"],
["#"]],
),
(
(
[["#", ".", "*", "."],
["#", "#", "*", "."]],
),
[["#", "."],
["#", "#"],
["*", "*"],
[".", "."]],
),
(
(
[["#", "#", "*", ".", "*", "."],
["#", "#", "#", "*", ".", "."],
["#", "#", "#", ".", "#", "."]],
),
[[".", "#", "#"],
[".", "#", "#"],
["#", "#", "*"],
["#", "*", "."],
["#", ".", "*"],
["#", ".", "."]],
),
]
| class Solution:
def rotate_the_box(self, box: list[list[str]]) -> list[list[str]]:
if len(box) == 0:
return box
rows = len(box)
cols = len(box[0])
(rock, obstacle, empty) = ('#', '*', '.')
for row in box:
nearest_obstacle = cols
for (index, cell) in reversed(list(enumerate(row))):
if cell == OBSTACLE:
nearest_obstacle = index
elif cell == ROCK:
row[index] = EMPTY
row[nearest_obstacle - 1] = ROCK
nearest_obstacle = nearest_obstacle - 1
rotated_box = [[box[rows - 1 - j][i] for j in range(rows)] for i in range(cols)]
return rotated_box
tests = [(([['#', '.', '#']],), [['.'], ['#'], ['#']]), (([['#', '.', '*', '.'], ['#', '#', '*', '.']],), [['#', '.'], ['#', '#'], ['*', '*'], ['.', '.']]), (([['#', '#', '*', '.', '*', '.'], ['#', '#', '#', '*', '.', '.'], ['#', '#', '#', '.', '#', '.']],), [['.', '#', '#'], ['.', '#', '#'], ['#', '#', '*'], ['#', '*', '.'], ['#', '.', '*'], ['#', '.', '.']])] |
"""
Module version
==============
Just the version of the ASE2SPRKKR package.
"""
#: Version number of the ASE2SPRKKR package
__version__ = "1.0.5"
| """
Module version
==============
Just the version of the ASE2SPRKKR package.
"""
__version__ = '1.0.5' |
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
class Group(object):
''' a group of ansible hosts '''
__slots__ = [ 'name', 'hosts', 'vars', 'child_groups', 'parent_groups', 'depth' ]
def __init__(self, name=None):
self.depth = 0
self.name = name
self.hosts = []
self.vars = {}
self.child_groups = []
self.parent_groups = []
if self.name is None:
raise Exception("group name is required")
def add_child_group(self, group):
if self == group:
raise Exception("can't add group to itself")
# don't add if it's already there
if not group in self.child_groups:
self.child_groups.append(group)
group.depth = max([self.depth+1, group.depth])
group.parent_groups.append(self)
def add_host(self, host):
self.hosts.append(host)
host.add_group(self)
def set_variable(self, key, value):
self.vars[key] = value
def get_hosts(self):
hosts = set()
for kid in self.child_groups:
hosts.update(kid.get_hosts())
hosts.update(self.hosts)
return list(hosts)
def get_variables(self):
return self.vars.copy()
def _get_ancestors(self):
results = {}
for g in self.parent_groups:
results[g.name] = g
results.update(g._get_ancestors())
return results
def get_ancestors(self):
return self._get_ancestors().values()
| class Group(object):
""" a group of ansible hosts """
__slots__ = ['name', 'hosts', 'vars', 'child_groups', 'parent_groups', 'depth']
def __init__(self, name=None):
self.depth = 0
self.name = name
self.hosts = []
self.vars = {}
self.child_groups = []
self.parent_groups = []
if self.name is None:
raise exception('group name is required')
def add_child_group(self, group):
if self == group:
raise exception("can't add group to itself")
if not group in self.child_groups:
self.child_groups.append(group)
group.depth = max([self.depth + 1, group.depth])
group.parent_groups.append(self)
def add_host(self, host):
self.hosts.append(host)
host.add_group(self)
def set_variable(self, key, value):
self.vars[key] = value
def get_hosts(self):
hosts = set()
for kid in self.child_groups:
hosts.update(kid.get_hosts())
hosts.update(self.hosts)
return list(hosts)
def get_variables(self):
return self.vars.copy()
def _get_ancestors(self):
results = {}
for g in self.parent_groups:
results[g.name] = g
results.update(g._get_ancestors())
return results
def get_ancestors(self):
return self._get_ancestors().values() |
def test_counter_ip_dscp(api, b2b_raw_config, utils):
"""
Configure a raw IPv4 flow with,
- all Dscp values
Validate,
- Fetch the IPv4 header config via restpy and validate
against expected
"""
f = b2b_raw_config.flows[0]
f.packet.ethernet().ipv4()
ipv4 = f.packet[1]
phb = (
["DEFAULT"]
+ ["CS%d" % i for i in range(1, 8)]
+ ["AF%d" % i for j in range(11, 51, 10) for i in range(j, j + 3)]
)
phb = phb + ["EF46"]
af_ef = [
"10",
"12",
"14",
"18",
"20",
"22",
"26",
"28",
"30",
"34",
"36",
"38",
"46",
]
for i, p in enumerate(phb):
# https://github.com/open-traffic-generator/snappi/issues/25
# currently assigning the choice as work around
ipv4.priority.choice = ipv4.priority.DSCP
ipv4.priority.dscp.phb.value = getattr(ipv4.priority.dscp.phb, p)
ipv4.priority.dscp.ecn.value = 3
api.set_config(b2b_raw_config)
if i == 0:
attrs = {"Default PHB": str(i)}
attrs["ipv4.header.priority.ds.phb.defaultPHB.unused"] = "3"
elif i > 0 and i < 8:
attrs = {"Class selector PHB": str(i * 8)}
attrs["ipv4.header.priority.ds.phb.classSelectorPHB.unused"] = "3"
elif i > 7 and i < (len(phb) - 1):
attrs = {"Assured forwarding PHB": af_ef[i - 8]}
attrs[
"ipv4.header.priority.ds.phb.assuredForwardingPHB.unused"
] = "3"
else:
attrs = {"Expedited forwarding PHB": af_ef[-1]}
attrs[
"ipv4.header.priority.ds.phb.expeditedForwardingPHB.unused"
] = "3"
utils.validate_config(api, "f1", "ipv4", **attrs)
def test_ip_priority_tos(api, b2b_raw_config, utils):
"""
Configure a raw IPv4 flow with,
- all Tos values
Validate,
- Fetch the IPv4 header config via restpy and validate
against expected
"""
f = b2b_raw_config.flows[0]
ipv4 = f.packet.ethernet().ipv4()[-1]
api.set_config(b2b_raw_config)
precedence = [
"ROUTINE",
"PRIORITY",
"IMMEDIATE",
"FLASH",
"FLASH_OVERRIDE",
"CRITIC_ECP",
"INTERNETWORK_CONTROL",
"NETWORK_CONTROL",
]
flag = 0
for i, p in enumerate(precedence):
# https://github.com/open-traffic-generator/snappi/issues/25
# currently assigning the choice as work around
ipv4.priority.choice = ipv4.priority.TOS
ipv4.priority.tos.precedence.value = getattr(
ipv4.priority.tos.precedence, p
)
ipv4.priority.tos.delay.value = flag
ipv4.priority.tos.throughput.value = flag
ipv4.priority.tos.reliability.value = flag
ipv4.priority.tos.monetary.value = flag
ipv4.priority.tos.unused.value = flag
api.set_config(b2b_raw_config)
attrs = {
"Precedence": str(i),
"Delay": str(flag),
"Throughput": str(flag),
"Reliability": str(flag),
"Monetary": str(flag),
# 'Unused': str(flag) <restpy returns 0 for unused even if set 1>
}
utils.validate_config(api, "f1", "ipv4", **attrs)
flag = int(not flag)
| def test_counter_ip_dscp(api, b2b_raw_config, utils):
"""
Configure a raw IPv4 flow with,
- all Dscp values
Validate,
- Fetch the IPv4 header config via restpy and validate
against expected
"""
f = b2b_raw_config.flows[0]
f.packet.ethernet().ipv4()
ipv4 = f.packet[1]
phb = ['DEFAULT'] + ['CS%d' % i for i in range(1, 8)] + ['AF%d' % i for j in range(11, 51, 10) for i in range(j, j + 3)]
phb = phb + ['EF46']
af_ef = ['10', '12', '14', '18', '20', '22', '26', '28', '30', '34', '36', '38', '46']
for (i, p) in enumerate(phb):
ipv4.priority.choice = ipv4.priority.DSCP
ipv4.priority.dscp.phb.value = getattr(ipv4.priority.dscp.phb, p)
ipv4.priority.dscp.ecn.value = 3
api.set_config(b2b_raw_config)
if i == 0:
attrs = {'Default PHB': str(i)}
attrs['ipv4.header.priority.ds.phb.defaultPHB.unused'] = '3'
elif i > 0 and i < 8:
attrs = {'Class selector PHB': str(i * 8)}
attrs['ipv4.header.priority.ds.phb.classSelectorPHB.unused'] = '3'
elif i > 7 and i < len(phb) - 1:
attrs = {'Assured forwarding PHB': af_ef[i - 8]}
attrs['ipv4.header.priority.ds.phb.assuredForwardingPHB.unused'] = '3'
else:
attrs = {'Expedited forwarding PHB': af_ef[-1]}
attrs['ipv4.header.priority.ds.phb.expeditedForwardingPHB.unused'] = '3'
utils.validate_config(api, 'f1', 'ipv4', **attrs)
def test_ip_priority_tos(api, b2b_raw_config, utils):
"""
Configure a raw IPv4 flow with,
- all Tos values
Validate,
- Fetch the IPv4 header config via restpy and validate
against expected
"""
f = b2b_raw_config.flows[0]
ipv4 = f.packet.ethernet().ipv4()[-1]
api.set_config(b2b_raw_config)
precedence = ['ROUTINE', 'PRIORITY', 'IMMEDIATE', 'FLASH', 'FLASH_OVERRIDE', 'CRITIC_ECP', 'INTERNETWORK_CONTROL', 'NETWORK_CONTROL']
flag = 0
for (i, p) in enumerate(precedence):
ipv4.priority.choice = ipv4.priority.TOS
ipv4.priority.tos.precedence.value = getattr(ipv4.priority.tos.precedence, p)
ipv4.priority.tos.delay.value = flag
ipv4.priority.tos.throughput.value = flag
ipv4.priority.tos.reliability.value = flag
ipv4.priority.tos.monetary.value = flag
ipv4.priority.tos.unused.value = flag
api.set_config(b2b_raw_config)
attrs = {'Precedence': str(i), 'Delay': str(flag), 'Throughput': str(flag), 'Reliability': str(flag), 'Monetary': str(flag)}
utils.validate_config(api, 'f1', 'ipv4', **attrs)
flag = int(not flag) |
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"ls": "01_utils.ipynb",
"Path.ls": "00_dup_finder.ipynb",
"Path.lf": "00_dup_finder.ipynb",
"Path.ld": "00_dup_finder.ipynb",
"ls_print": "01_utils.ipynb"}
modules = ["dup_finder.py",
"utils.py"]
doc_url = "https://ayasyrev.github.io/dup_finder/"
git_url = "https://github.com/ayasyrev/dup_finder/tree/master/"
def custom_doc_links(name): return None
| __all__ = ['index', 'modules', 'custom_doc_links', 'git_url']
index = {'ls': '01_utils.ipynb', 'Path.ls': '00_dup_finder.ipynb', 'Path.lf': '00_dup_finder.ipynb', 'Path.ld': '00_dup_finder.ipynb', 'ls_print': '01_utils.ipynb'}
modules = ['dup_finder.py', 'utils.py']
doc_url = 'https://ayasyrev.github.io/dup_finder/'
git_url = 'https://github.com/ayasyrev/dup_finder/tree/master/'
def custom_doc_links(name):
return None |
def tsearch (l, r, f):
while (r-l > 0.01): # precision en x
m1 = (r+2*l)/3
m2 = (2*r+l)/3
if f(m1)>f(m2): # maximo
r = m2
else:
l = m1
return l
def bsearch (l, r, v, f):
while (r-l > 0.01): # precision en x
med = (l+r)/2
if f(med,v): # mayor
r = med
else:
l = med
return l
def bsearch_array (l, r, v, arr):
while (r-l > 1):
med = (l+r)//2
if arr[med]>v:
r = med
else:
l = med
return l
f = lambda x,y: x**2>y # continua
g = lambda x,y: 1 if x>9 else 0 # booleano
h = lambda x: -((x-25)**2) # continua
print (bsearch(0, 100, 10, f))
print (bsearch(0, 100, 1, g))
print (tsearch(0, 40, h))
arr = [2,4,6,8,10]
print (bsearch_array(0, len(arr), 8, arr))
| def tsearch(l, r, f):
while r - l > 0.01:
m1 = (r + 2 * l) / 3
m2 = (2 * r + l) / 3
if f(m1) > f(m2):
r = m2
else:
l = m1
return l
def bsearch(l, r, v, f):
while r - l > 0.01:
med = (l + r) / 2
if f(med, v):
r = med
else:
l = med
return l
def bsearch_array(l, r, v, arr):
while r - l > 1:
med = (l + r) // 2
if arr[med] > v:
r = med
else:
l = med
return l
f = lambda x, y: x ** 2 > y
g = lambda x, y: 1 if x > 9 else 0
h = lambda x: -(x - 25) ** 2
print(bsearch(0, 100, 10, f))
print(bsearch(0, 100, 1, g))
print(tsearch(0, 40, h))
arr = [2, 4, 6, 8, 10]
print(bsearch_array(0, len(arr), 8, arr)) |
def print_birthdays(people):
"""print names of people in birthdays dictionary
The birthdays dictionary contains names as keys and birthdays as values.
When the function is invoked, it returns the names of the people in the
dictionary built in the program
:return: None
:rtype: Boolean
"""
print('''Welcome to the birthday dictionary.
We know the birthdays of these people:''')
for name in people.keys():
print(people[name])
def return_birthday(name, people, verbosity):
"""print the birthday of a celebrity
The birthdays dictionary contains names as keys and birthdays as values.
When this function is invoked, it returns the birthday of the person
received as a parameter if the value exists in the dictionary, False
otherwise.
:param name: the name of the person
:type name: string
:param verbosity: The verbosity wanted by the user
:type verbosity: Boolean
:return: The birthday of the person passed as parameter or False
:rtype: String or Boolean
"""
# if the name is present in the dictionary
if verbosity:
print("Started looking for {}'s birthday".format(name))
if name in list(people.keys()):
return people[name]
else:
return False
| def print_birthdays(people):
"""print names of people in birthdays dictionary
The birthdays dictionary contains names as keys and birthdays as values.
When the function is invoked, it returns the names of the people in the
dictionary built in the program
:return: None
:rtype: Boolean
"""
print('Welcome to the birthday dictionary.\n We know the birthdays of these people:')
for name in people.keys():
print(people[name])
def return_birthday(name, people, verbosity):
"""print the birthday of a celebrity
The birthdays dictionary contains names as keys and birthdays as values.
When this function is invoked, it returns the birthday of the person
received as a parameter if the value exists in the dictionary, False
otherwise.
:param name: the name of the person
:type name: string
:param verbosity: The verbosity wanted by the user
:type verbosity: Boolean
:return: The birthday of the person passed as parameter or False
:rtype: String or Boolean
"""
if verbosity:
print("Started looking for {}'s birthday".format(name))
if name in list(people.keys()):
return people[name]
else:
return False |
class Solution:
def XXX(self, root: TreeNode) -> int:
if root is None:
return 0
st = list()
res = 0
while st or root:
while root:
st.append(root)
root = root.left if root.left else root.right
res = max(res, len(st))
root = st.pop()
if st and root is st[-1].left:
root = st[-1].right
else:
root = None
return res
| class Solution:
def xxx(self, root: TreeNode) -> int:
if root is None:
return 0
st = list()
res = 0
while st or root:
while root:
st.append(root)
root = root.left if root.left else root.right
res = max(res, len(st))
root = st.pop()
if st and root is st[-1].left:
root = st[-1].right
else:
root = None
return res |
#!/usr/bin/env python3
num_inputs = 16
print(f"""
--------------------------------------------------------------------------------
-- Block: avg{num_inputs}
-- Description:
-- This block implements a big adder with {num_inputs} inputs.
-- There are several add stages to improve timing.
--
--------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use ieee.math_real.log2;
use ieee.math_real.ceil;
library work;
""")
print(f"entity avg{num_inputs} is")
print(" generic (\n DWIDTH : integer := 16\n);\n port (\n clk : std_logic;\n rst : std_logic;")
for i in range(num_inputs):
print(f" i_data_{i} : in std_logic_vector(DWIDTH-1 downto 0);")
level = 4
print( f" o_avg : out std_logic_vector(DWIDTH-1 downto 0)")
print(f" );\nend entity avg{num_inputs};\n")
print(f"architecture rtl of avg{num_inputs} is")
nn = num_inputs
level = 0
while nn >= 1:
for i in range(nn):
if nn == num_inputs:
print(f" signal sum_{level}_{i} : unsigned(DWIDTH-1 downto 0);")
else:
print(f" signal sum_{level}_{i} : unsigned(DWIDTH+{level-1} downto 0);")
print()
nn //= 2
level += 1
print("begin\n process(clk, rst)\n begin\n if rst then")
print(" elsif rising_edge(clk) then")
for i in range(num_inputs):
print(f" sum_0_{i} <= unsigned(i_data_{i});");
nn = num_inputs
level = 0
while nn > 1:
nn //= 2
level += 1
print(f" -- level: {level}. Num Adders: {nn}")
for i in range(nn):
print(f" sum_{level}_{i} <= ('0' + sum_{level-1}_{2*i}) + ('0' & sum_{level-1}_{2*i+1});")
print()
print(f" o_avg <= std_logic_vector(sum_{level}_0(sum_{level}_0'high downto {level}));")
print(" end if;\n end process;\nend architecture rtl;")
| num_inputs = 16
print(f'\n--------------------------------------------------------------------------------\n-- Block: avg{num_inputs}\n-- Description:\n-- This block implements a big adder with {num_inputs} inputs.\n-- There are several add stages to improve timing.\n--\n--------------------------------------------------------------------------------\n\nlibrary ieee;\nuse ieee.std_logic_1164.all;\nuse ieee.numeric_std.all;\nuse ieee.math_real.log2;\nuse ieee.math_real.ceil;\nlibrary work;\n\n')
print(f'entity avg{num_inputs} is')
print(' generic (\n DWIDTH : integer := 16\n);\n port (\n clk : std_logic;\n rst : std_logic;')
for i in range(num_inputs):
print(f' i_data_{i} : in std_logic_vector(DWIDTH-1 downto 0);')
level = 4
print(f' o_avg : out std_logic_vector(DWIDTH-1 downto 0)')
print(f' );\nend entity avg{num_inputs};\n')
print(f'architecture rtl of avg{num_inputs} is')
nn = num_inputs
level = 0
while nn >= 1:
for i in range(nn):
if nn == num_inputs:
print(f' signal sum_{level}_{i} : unsigned(DWIDTH-1 downto 0);')
else:
print(f' signal sum_{level}_{i} : unsigned(DWIDTH+{level - 1} downto 0);')
print()
nn //= 2
level += 1
print('begin\n process(clk, rst)\n begin\n if rst then')
print(' elsif rising_edge(clk) then')
for i in range(num_inputs):
print(f' sum_0_{i} <= unsigned(i_data_{i});')
nn = num_inputs
level = 0
while nn > 1:
nn //= 2
level += 1
print(f' -- level: {level}. Num Adders: {nn}')
for i in range(nn):
print(f" sum_{level}_{i} <= ('0' + sum_{level - 1}_{2 * i}) + ('0' & sum_{level - 1}_{2 * i + 1});")
print()
print(f" o_avg <= std_logic_vector(sum_{level}_0(sum_{level}_0'high downto {level}));")
print(' end if;\n end process;\nend architecture rtl;') |
class Solution:
def calculate(self, s: str) -> int:
res, num, sign, stack = 0, 0, 1, []
for c in s:
if c.isdigit():
num = 10 * num + int(c)
elif c == "+" or c == "-":
res += sign * num
num = 0
sign = 1 if c == "+" else -1
elif c == "(":
stack.append(res)
stack.append(sign)
res = 0
sign = 1
elif c == ")":
res = res + sign * num
num = 0
res *= stack.pop()
res += stack.pop()
res = res + sign * num
return res
| class Solution:
def calculate(self, s: str) -> int:
(res, num, sign, stack) = (0, 0, 1, [])
for c in s:
if c.isdigit():
num = 10 * num + int(c)
elif c == '+' or c == '-':
res += sign * num
num = 0
sign = 1 if c == '+' else -1
elif c == '(':
stack.append(res)
stack.append(sign)
res = 0
sign = 1
elif c == ')':
res = res + sign * num
num = 0
res *= stack.pop()
res += stack.pop()
res = res + sign * num
return res |
class BadHTTPResponse(Exception):
def __init__(self, code):
msg = f"The bridge returned HTTP response code {code}"
class BadResponse(Exception):
def __init__(self, text):
msg= f"The bridge returned an unrecognized response {text}"
class InvalidColorSpec(Exception):
def __init__(self, colorspec):
msg = "Invalid color spec "+str(colorspec)
class InvalidOperation(Exception):
pass
class APIVersion(Exception):
def __init__(self, have=None, need=None):
if have is not None:
if need is not None:
msg= f"API version {need} required, bridge version is {have}"
else:
msg= f"Not supported by bridge API version {have}"
elif need is not None:
msg= f"API version {need} required"
else:
msg= f"Not supported by bridge API version"
class InvalidObject(Exception):
pass
class AttrsNotSet(Exception):
def __init__(self, attrs):
msg= f"Could not set attributes: {attrs}"
class UnknownOperator(Exception):
def __init__(self, op):
msg= f"Unknown operator: {op}"
# The Hue Bridge conveniently provides message text for these
class HueGenericException(Exception):
pass
class UnauthorizedUser(HueGenericException):
pass
class InvalidJSON(HueGenericException):
pass
class ResourceUnavailable(HueGenericException):
pass
class MethodNotAvailable(HueGenericException):
pass
class MissingParameters(HueGenericException):
pass
class ParameterUnavailable(HueGenericException):
pass
class ParameterReadOnly(HueGenericException):
pass
class TooMany(HueGenericException):
pass
class PortalRequired(HueGenericException):
pass
class InternalError(HueGenericException):
pass
| class Badhttpresponse(Exception):
def __init__(self, code):
msg = f'The bridge returned HTTP response code {code}'
class Badresponse(Exception):
def __init__(self, text):
msg = f'The bridge returned an unrecognized response {text}'
class Invalidcolorspec(Exception):
def __init__(self, colorspec):
msg = 'Invalid color spec ' + str(colorspec)
class Invalidoperation(Exception):
pass
class Apiversion(Exception):
def __init__(self, have=None, need=None):
if have is not None:
if need is not None:
msg = f'API version {need} required, bridge version is {have}'
else:
msg = f'Not supported by bridge API version {have}'
elif need is not None:
msg = f'API version {need} required'
else:
msg = f'Not supported by bridge API version'
class Invalidobject(Exception):
pass
class Attrsnotset(Exception):
def __init__(self, attrs):
msg = f'Could not set attributes: {attrs}'
class Unknownoperator(Exception):
def __init__(self, op):
msg = f'Unknown operator: {op}'
class Huegenericexception(Exception):
pass
class Unauthorizeduser(HueGenericException):
pass
class Invalidjson(HueGenericException):
pass
class Resourceunavailable(HueGenericException):
pass
class Methodnotavailable(HueGenericException):
pass
class Missingparameters(HueGenericException):
pass
class Parameterunavailable(HueGenericException):
pass
class Parameterreadonly(HueGenericException):
pass
class Toomany(HueGenericException):
pass
class Portalrequired(HueGenericException):
pass
class Internalerror(HueGenericException):
pass |
def add_zeros(element):
"""This changes the format of postcodes to string with the needed zeros
Args:
element: individual row from apply codes
Returns:
parameter postcode value with zeros
"""
#postinumeroihin etunollat jos on ollut integer
element=str(element)
if len(element) == 3:
element = "00" + element
if len(element) == 4:
element = "0" + element
return(element)
def add_zeros_muncipality(element):
"""This changes the format of municipalities to string with the needed zeros
Args:
element: individual row from apply codes
Returns:
parameter municipality value with zeros
"""
element=str(element)
if len(element) == 1:
element = "00" + element
if len(element) == 2:
element = "0" + element
return(element) | def add_zeros(element):
"""This changes the format of postcodes to string with the needed zeros
Args:
element: individual row from apply codes
Returns:
parameter postcode value with zeros
"""
element = str(element)
if len(element) == 3:
element = '00' + element
if len(element) == 4:
element = '0' + element
return element
def add_zeros_muncipality(element):
"""This changes the format of municipalities to string with the needed zeros
Args:
element: individual row from apply codes
Returns:
parameter municipality value with zeros
"""
element = str(element)
if len(element) == 1:
element = '00' + element
if len(element) == 2:
element = '0' + element
return element |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isSubPath(self, head: ListNode, root: TreeNode) -> bool:
def check(root, head):
if head is None: return True
if root is None: return False
if root.val != head.val: return False
return check(root.left, head.next) or check(root.right, head.next)
def dfs(root):
if root is None: return False
return check(root, head) or dfs(root.left) or dfs(root.right)
return dfs(root)
| class Solution:
def is_sub_path(self, head: ListNode, root: TreeNode) -> bool:
def check(root, head):
if head is None:
return True
if root is None:
return False
if root.val != head.val:
return False
return check(root.left, head.next) or check(root.right, head.next)
def dfs(root):
if root is None:
return False
return check(root, head) or dfs(root.left) or dfs(root.right)
return dfs(root) |
class BaseExporter(object):
"""
The base class of all exporters.
"""
def __init__(self, document):
self.document = document
def export(self):
raise NotImplementedError
def as_text(self):
return "\n".join(list(self.export()))
class ExporterError(Exception):
pass | class Baseexporter(object):
"""
The base class of all exporters.
"""
def __init__(self, document):
self.document = document
def export(self):
raise NotImplementedError
def as_text(self):
return '\n'.join(list(self.export()))
class Exportererror(Exception):
pass |
task = {i + 1: 0 for i in range(12)}
for i in range(int(input())):
task[int(input())] += 1
for i in sorted(filter(lambda key: task[key] != 0, task)):
print(i, task[i])
| task = {i + 1: 0 for i in range(12)}
for i in range(int(input())):
task[int(input())] += 1
for i in sorted(filter(lambda key: task[key] != 0, task)):
print(i, task[i]) |
def remote_field(field):
# remote_field is new in Django 1.9
return field.remote_field if hasattr(field, 'remote_field') else getattr(field, 'rel', None)
def remote_model(field):
# remote_field is new in Django 1.9
return field.remote_field.model if hasattr(field, 'remote_field') else field.rel.to
def cached_field_value(instance, attr):
try:
# In Django 2.0, use the new field cache API
field = instance._meta.get_field(attr)
if field.is_cached(instance):
return field.get_cached_value(instance)
except AttributeError:
cache_attr = '_%s_cache' % attr
if hasattr(instance, cache_attr):
return getattr(instance, cache_attr)
return None
| def remote_field(field):
return field.remote_field if hasattr(field, 'remote_field') else getattr(field, 'rel', None)
def remote_model(field):
return field.remote_field.model if hasattr(field, 'remote_field') else field.rel.to
def cached_field_value(instance, attr):
try:
field = instance._meta.get_field(attr)
if field.is_cached(instance):
return field.get_cached_value(instance)
except AttributeError:
cache_attr = '_%s_cache' % attr
if hasattr(instance, cache_attr):
return getattr(instance, cache_attr)
return None |
def f():
i: i32
i = 4
print(i // 0)
f()
| def f():
i: i32
i = 4
print(i // 0)
f() |
MAX = 1000000
def breakSum(n):
dp = [0] * (n + 1)
dp[0] = 0
dp[1] = 1
for i in range(2, n + 1):
dp[i] = max(dp[int(i / 2)] + dp[int(i / 3)] + dp[int(i / 4)], i);
return dp[n]
n = 24
print(breakSum(n))
| max = 1000000
def break_sum(n):
dp = [0] * (n + 1)
dp[0] = 0
dp[1] = 1
for i in range(2, n + 1):
dp[i] = max(dp[int(i / 2)] + dp[int(i / 3)] + dp[int(i / 4)], i)
return dp[n]
n = 24
print(break_sum(n)) |
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
dictIndex = {}
for i in range(len(nums)):
n = target - nums[i]
if n in dictIndex:
return [dictIndex[n], i]
dictIndex[nums[i]] = i
return [-1, -1]
| class Solution:
def two_sum(self, nums: List[int], target: int) -> List[int]:
dict_index = {}
for i in range(len(nums)):
n = target - nums[i]
if n in dictIndex:
return [dictIndex[n], i]
dictIndex[nums[i]] = i
return [-1, -1] |
"""comprehensions - do more with less!"""
print("===== Intermediate =====")
nested = [
[x * y for y in range(1, 11)]
for x in range(1, 11)
]
print("nested:", nested)
multiple_ifs = [
f"{char}{num}" for char in "AbCDe" for num in range(26)
if char.isupper()
if not num % 5
]
print("multiple_ifs:", multiple_ifs)
inline_if = {
x: [1 if not x * y % 4 else 0 for y in range(1, 11)]
for x in range(1, 11)
}
print("inline_if:", inline_if)
| """comprehensions - do more with less!"""
print('===== Intermediate =====')
nested = [[x * y for y in range(1, 11)] for x in range(1, 11)]
print('nested:', nested)
multiple_ifs = [f'{char}{num}' for char in 'AbCDe' for num in range(26) if char.isupper() if not num % 5]
print('multiple_ifs:', multiple_ifs)
inline_if = {x: [1 if not x * y % 4 else 0 for y in range(1, 11)] for x in range(1, 11)}
print('inline_if:', inline_if) |
class Solution:
# 1st brute-froce solution
# def maxProfit(self, prices: List[int]) -> int:
# d = len(prices)
# lst = [0]
# for i in range(d):
# for j in range(i + 1, d):
# profit = prices[j] - prices[i]
# if profit > 0:
# lst.append(profit)
# return max(lst)
# 2nd sotution
# def maxProfit(self, prices: List[int]) -> int:
# low = prices[0]
# maxProfit = 0
# for i, price in enumerate(prices):
# if price < low:
# low = price
# elif price - low > maxProfit:
# maxProfit = price - low
# return maxProfit
# 3rd solution
# def maxProfit(self, prices: List[int]) -> int:
# low = prices[0]
# maxProfit = 0
# for price in prices:
# if price < low:
# low = price
# profit = price - low
# if profit > maxProfit:
# maxProfit = profit
# return maxProfit
# 4th solution Kadane's Algorithm
# def maxProfit(self, prices: List[int]) -> int:
# profit = [0]
# for i in range(len(prices) - 1):
# profit.append(prices[i + 1] - prices[i])
# if profit[i] > 0:
# profit[i + 1] = profit[i] + profit[i + 1]
# return max(profit)
# 5th solution Kadane's Algorithm
# def maxProfit(self, prices: List[int]) -> int:
# curProfit = 0
# maxProfit = 0
# for i in range(len(prices) - 1):
# singleProfit = prices[i + 1] - prices[i]
# if curProfit > 0:
# curProfit += singleProfit
# else:
# curProfit = singleProfit
# if curProfit > maxProfit:
# maxProfit = curProfit
# return maxProfit
# 6thi final simplified solution
def maxProfit(self, prices: List[int]) -> int:
low = prices[0]
maxProfit = 0
for price in prices:
if price < low:
low = price
if price - low > maxProfit:
maxProfit = price - low
return maxProfit
| class Solution:
def max_profit(self, prices: List[int]) -> int:
low = prices[0]
max_profit = 0
for price in prices:
if price < low:
low = price
if price - low > maxProfit:
max_profit = price - low
return maxProfit |
# String
# Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the magazines ; otherwise, it will return false.
#
# Each letter in the magazine string can only be used once in your ransom note.
#
# Note:
# You may assume that both strings contain only lowercase letters.
#
# canConstruct("a", "b") -> false
# canConstruct("aa", "ab") -> false
# canConstruct("aa", "aab") -> true
class Solution:
def canConstruct(self, ransomNote, magazine):
"""
:type ransomNote: str
:type magazine: str
:rtype: bool
"""
magList = list(magazine)
for x in ransomNote:
if x in magList:
magList.remove(x)
else:
return False
return True
| class Solution:
def can_construct(self, ransomNote, magazine):
"""
:type ransomNote: str
:type magazine: str
:rtype: bool
"""
mag_list = list(magazine)
for x in ransomNote:
if x in magList:
magList.remove(x)
else:
return False
return True |
#Integers Come In All Sizes
#https://www.hackerrank.com/challenges/python-integers-come-in-all-sizes/problem
a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(a**b + c**d)
| a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(a ** b + c ** d) |
class Dummy:
"""
Implements a dummy class that is completely inert.
"""
def __init__(self, *args, **kwargs):
pass
def __getattr__(self, item):
return self.dummy_function
def __setattr__(self, key, value):
pass
def dummy_function(*args, **kwargs):
pass
| class Dummy:
"""
Implements a dummy class that is completely inert.
"""
def __init__(self, *args, **kwargs):
pass
def __getattr__(self, item):
return self.dummy_function
def __setattr__(self, key, value):
pass
def dummy_function(*args, **kwargs):
pass |
#############################
# www.adventofcode.com/2021 #
# Challenge: Day 4 #
#############################
def main_01():
with open('input_demo.txt', 'r') as f:
data = f.read().splitlines()
# Get the bingo numbers from the input and convert them to integers
bingoNumbers = data[0].split(',')
bingoNumbers = [int(x) for x in bingoNumbers]
del data[0]
data = [x.split() for x in data]
bingoBoards = data[:]
# delete empty lines
delete = []
for i in range(len(bingoBoards)):
if len(bingoBoards[i]) != 5:
delete.append(i)
for i in reversed(delete):
del bingoBoards[i]
# convert the bingo boards to integers
for i in range(len(bingoBoards)):
for j in range(len(bingoBoards[i])):
bingoBoards[i][j] = int(bingoBoards[i][j])
# create for every 5 elements a new list
bingoBoards = [bingoBoards[i:i + 5] for i in range(0, len(bingoBoards), 5)]
print(bingoBoards)
# Todo: loop through the bingoBoards and check if the numbers are in the bingoBoards
def main_02():
pass
if __name__ == "__main__":
main_01()
| def main_01():
with open('input_demo.txt', 'r') as f:
data = f.read().splitlines()
bingo_numbers = data[0].split(',')
bingo_numbers = [int(x) for x in bingoNumbers]
del data[0]
data = [x.split() for x in data]
bingo_boards = data[:]
delete = []
for i in range(len(bingoBoards)):
if len(bingoBoards[i]) != 5:
delete.append(i)
for i in reversed(delete):
del bingoBoards[i]
for i in range(len(bingoBoards)):
for j in range(len(bingoBoards[i])):
bingoBoards[i][j] = int(bingoBoards[i][j])
bingo_boards = [bingoBoards[i:i + 5] for i in range(0, len(bingoBoards), 5)]
print(bingoBoards)
def main_02():
pass
if __name__ == '__main__':
main_01() |
L=[]
for i in range(1,9): L.append((i,int(input())))
L=sorted(sorted(L,key=lambda x:x[1],reverse=True)[:5],key=lambda x:x[0])
print(sum(i[1] for i in L))
for i in L: print(i[0],end=' ') | l = []
for i in range(1, 9):
L.append((i, int(input())))
l = sorted(sorted(L, key=lambda x: x[1], reverse=True)[:5], key=lambda x: x[0])
print(sum((i[1] for i in L)))
for i in L:
print(i[0], end=' ') |
#
# PySNMP MIB module ELTEX-TAU8 (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ELTEX-TAU8
# Produced by pysmi-0.3.4 at Wed May 1 13:02:27 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, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint")
elHardware, = mibBuilder.importSymbols("ELTEX-SMI-ACTUAL", "elHardware")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
ModuleIdentity, ObjectIdentity, iso, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, TimeTicks, Bits, IpAddress, Integer32, Gauge32, Counter32, NotificationType, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "ObjectIdentity", "iso", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "TimeTicks", "Bits", "IpAddress", "Integer32", "Gauge32", "Counter32", "NotificationType", "Counter64")
TextualConvention, TimeStamp, RowStatus, TruthValue, DisplayString, TimeInterval = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TimeStamp", "RowStatus", "TruthValue", "DisplayString", "TimeInterval")
tau8 = ModuleIdentity((1, 3, 6, 1, 4, 1, 35265, 1, 55))
tau8.setRevisions(('2013-08-28 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: tau8.setRevisionsDescriptions(('first version',))
if mibBuilder.loadTexts: tau8.setLastUpdated('201308280000Z')
if mibBuilder.loadTexts: tau8.setOrganization('Eltex Enterprise Ltd')
if mibBuilder.loadTexts: tau8.setContactInfo(' ')
if mibBuilder.loadTexts: tau8.setDescription('TAU-4/8.IP MIB')
class CallerIdType(TextualConvention, Integer32):
description = 'Caller-Id generation'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))
namedValues = NamedValues(("bell", 0), ("v23", 1), ("dtmf", 2), ("off", 3))
class CallTransferType(TextualConvention, Integer32):
description = 'Flash mode'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))
namedValues = NamedValues(("transmitFlash", 0), ("attendedCT", 1), ("unattendedCT", 2), ("localCT", 3))
class RsrvModeType(TextualConvention, Integer32):
description = 'Proxy mode'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("off", 0), ("homing", 1), ("parking", 2))
class RsrvCheckMethodType(TextualConvention, Integer32):
description = 'Check method'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("invite", 0), ("register", 1), ("options", 2))
class OutboundType(TextualConvention, Integer32):
description = 'Outbound mode'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("off", 0), ("outbound", 1), ("outboundWithBusy", 2))
class EarlyMediaType(TextualConvention, Integer32):
description = 'User call (SIP) (180 Ringing (0), 183 Progress (Early media) (1))'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1))
namedValues = NamedValues(("ringing180", 0), ("progress183EarlyMedia", 1))
class Option100relType(TextualConvention, Integer32):
description = '100rel (supported, required, off)'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("supported", 0), ("required", 1), ("off", 2))
class KeepAliveModeType(TextualConvention, Integer32):
description = ' '
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))
namedValues = NamedValues(("off", 0), ("options", 1), ("notify", 2), ("clrf", 3))
class DtmfTransferType(TextualConvention, Integer32):
description = 'DTMF transfer'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("inband", 0), ("rfc2833", 1), ("info", 2))
class FaxDirectionType(TextualConvention, Integer32):
description = 'Fax Direction'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))
namedValues = NamedValues(("callerAndCallee", 0), ("caller", 1), ("callee", 2), ("noDetectFax", 3))
class FaxtransferType(TextualConvention, Integer32):
description = 'Fax Direction'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))
namedValues = NamedValues(("g711a", 0), ("g711u", 1), ("t38", 2), ("none", 3))
class FlashtransferType(TextualConvention, Integer32):
description = 'Flash transfer'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("off", 0), ("rfc2833", 1), ("info", 2))
class FlashMimeType(TextualConvention, Integer32):
description = 'Hook flash MIME Type (if flashtransfer = info)'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))
namedValues = NamedValues(("hookflash", 0), ("dtmfRelay", 1), ("broadsoft", 2), ("sscc", 3))
class ModemType(TextualConvention, Integer32):
description = 'Modem transfer (V.152)'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))
namedValues = NamedValues(("g711a", 0), ("g711u", 1), ("g711aNse", 2), ("g711uNse", 3), ("off", 4))
class GroupType(TextualConvention, Integer32):
description = 'Type of group (group(0),serial(1),cyclic(2))'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("group", 0), ("serial", 1), ("cyclic", 2))
class TraceOutputType(TextualConvention, Integer32):
description = 'Output trace to'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("console", 0), ("syslogd", 1), ("disable", 2))
class ConferenceMode(TextualConvention, Integer32):
description = 'sip profile conference settings'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1))
namedValues = NamedValues(("local", 0), ("remote", 1))
pbxConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1))
fxsPorts = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1))
fxsPortsUseFxsProfile = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortsUseFxsProfile.setStatus('current')
if mibBuilder.loadTexts: fxsPortsUseFxsProfile.setDescription('Use FXS profiles settings')
fxsPortTable = MibTable((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2), )
if mibBuilder.loadTexts: fxsPortTable.setStatus('current')
if mibBuilder.loadTexts: fxsPortTable.setDescription(' ')
fxsPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1), ).setIndexNames((0, "ELTEX-TAU8", "fxsPortIndex"))
if mibBuilder.loadTexts: fxsPortEntry.setStatus('current')
if mibBuilder.loadTexts: fxsPortEntry.setDescription(' ')
fxsPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 1), Integer32())
if mibBuilder.loadTexts: fxsPortIndex.setStatus('current')
if mibBuilder.loadTexts: fxsPortIndex.setDescription('FXS port index (from 1)')
fxsPortEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortEnabled.setStatus('current')
if mibBuilder.loadTexts: fxsPortEnabled.setDescription('Enabled')
fxsPortSipProfileId = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortSipProfileId.setStatus('current')
if mibBuilder.loadTexts: fxsPortSipProfileId.setDescription('SIP profile')
fxsPortProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortProfile.setStatus('current')
if mibBuilder.loadTexts: fxsPortProfile.setDescription('FXS profile')
fxsPortPhone = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortPhone.setStatus('current')
if mibBuilder.loadTexts: fxsPortPhone.setDescription('Phone')
fxsPortUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortUsername.setStatus('current')
if mibBuilder.loadTexts: fxsPortUsername.setDescription('Username')
fxsPortAuthName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortAuthName.setStatus('current')
if mibBuilder.loadTexts: fxsPortAuthName.setDescription('Login')
fxsPortAuthPass = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortAuthPass.setStatus('current')
if mibBuilder.loadTexts: fxsPortAuthPass.setDescription('Password')
fxsPortSipPort = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortSipPort.setStatus('current')
if mibBuilder.loadTexts: fxsPortSipPort.setDescription('SIP Port')
fxsPortUseAltNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 10), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortUseAltNumber.setStatus('current')
if mibBuilder.loadTexts: fxsPortUseAltNumber.setDescription('Use alternative number')
fxsPortAltNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 11), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortAltNumber.setStatus('current')
if mibBuilder.loadTexts: fxsPortAltNumber.setDescription('Alternative number')
fxsPortCpcRus = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCpcRus.setStatus('current')
if mibBuilder.loadTexts: fxsPortCpcRus.setDescription('Calling party category')
fxsPortMinOnhookTime = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 13), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortMinOnhookTime.setStatus('current')
if mibBuilder.loadTexts: fxsPortMinOnhookTime.setDescription('Minimal on-hook time')
fxsPortMinFlash = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortMinFlash.setStatus('current')
if mibBuilder.loadTexts: fxsPortMinFlash.setDescription('Min flash time')
fxsPortGainR = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 15), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortGainR.setStatus('current')
if mibBuilder.loadTexts: fxsPortGainR.setDescription('Gain receive (x0.1dB)')
fxsPortGainT = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 16), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortGainT.setStatus('current')
if mibBuilder.loadTexts: fxsPortGainT.setDescription('Gain transmit (x0.1dB)')
fxsPortMinPulse = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 17), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortMinPulse.setStatus('current')
if mibBuilder.loadTexts: fxsPortMinPulse.setDescription('Min pulse')
fxsPortInterdigit = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 18), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortInterdigit.setStatus('current')
if mibBuilder.loadTexts: fxsPortInterdigit.setDescription('Interdigit')
fxsPortCallerId = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 19), CallerIdType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCallerId.setStatus('current')
if mibBuilder.loadTexts: fxsPortCallerId.setDescription('Caller-Id generation')
fxsPortHangupTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 20), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortHangupTimeout.setStatus('current')
if mibBuilder.loadTexts: fxsPortHangupTimeout.setDescription('Hangup timeout')
fxsPortRbTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 21), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortRbTimeout.setStatus('current')
if mibBuilder.loadTexts: fxsPortRbTimeout.setDescription('Ringback timeout')
fxsPortBusyTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 22), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortBusyTimeout.setStatus('current')
if mibBuilder.loadTexts: fxsPortBusyTimeout.setDescription('Busy timeout')
fxsPortPolarityReverse = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 23), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortPolarityReverse.setStatus('current')
if mibBuilder.loadTexts: fxsPortPolarityReverse.setDescription('Polarity reversal')
fxsPortCallTransfer = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 24), CallTransferType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCallTransfer.setStatus('current')
if mibBuilder.loadTexts: fxsPortCallTransfer.setDescription('Flash mode')
fxsPortCallWaiting = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 25), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCallWaiting.setStatus('current')
if mibBuilder.loadTexts: fxsPortCallWaiting.setDescription('Callwaiting')
fxsPortDirectnumber = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 26), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortDirectnumber.setStatus('current')
if mibBuilder.loadTexts: fxsPortDirectnumber.setDescription('Direct number')
fxsPortStopDial = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 27), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortStopDial.setStatus('current')
if mibBuilder.loadTexts: fxsPortStopDial.setDescription('Stop dialing at #')
fxsPortHotLine = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 28), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortHotLine.setStatus('current')
if mibBuilder.loadTexts: fxsPortHotLine.setDescription('Hotline')
fxsPortHotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 29), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortHotNumber.setStatus('current')
if mibBuilder.loadTexts: fxsPortHotNumber.setDescription('Hot number (if Hotline is enabled)')
fxsPortHotTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 30), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortHotTimeout.setStatus('current')
if mibBuilder.loadTexts: fxsPortHotTimeout.setDescription('Hot timeout (if Hotline is enabled)')
fxsPortCtUnconditional = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 31), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCtUnconditional.setStatus('current')
if mibBuilder.loadTexts: fxsPortCtUnconditional.setDescription('CFU')
fxsPortCfuNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 32), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCfuNumber.setStatus('current')
if mibBuilder.loadTexts: fxsPortCfuNumber.setDescription('CGU number (if CFU is enabled)')
fxsPortCtBusy = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 33), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCtBusy.setStatus('current')
if mibBuilder.loadTexts: fxsPortCtBusy.setDescription('CFB')
fxsPortCfbNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 34), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCfbNumber.setStatus('current')
if mibBuilder.loadTexts: fxsPortCfbNumber.setDescription('CFB number (if CFB is enabled)')
fxsPortCtNoanswer = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 35), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCtNoanswer.setStatus('current')
if mibBuilder.loadTexts: fxsPortCtNoanswer.setDescription('CFNA')
fxsPortCfnaNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 36), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCfnaNumber.setStatus('current')
if mibBuilder.loadTexts: fxsPortCfnaNumber.setDescription('CFNA number (if CFNA is enabled)')
fxsPortCtTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 37), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortCtTimeout.setStatus('current')
if mibBuilder.loadTexts: fxsPortCtTimeout.setDescription('CFNA timeout (if CFNA is enabled)')
fxsPortDndEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 38), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsPortDndEnable.setStatus('current')
if mibBuilder.loadTexts: fxsPortDndEnable.setDescription('DND')
fxsPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 39), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: fxsPortRowStatus.setStatus('current')
if mibBuilder.loadTexts: fxsPortRowStatus.setDescription('RowStatus')
fxsPortsMIBBoundary = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fxsPortsMIBBoundary.setStatus('current')
if mibBuilder.loadTexts: fxsPortsMIBBoundary.setDescription('Dummy object to prevent GETNEXT request from poking into neighbor table.')
fxsProfiles = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2))
fxsProfileTable = MibTable((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1), )
if mibBuilder.loadTexts: fxsProfileTable.setStatus('current')
if mibBuilder.loadTexts: fxsProfileTable.setDescription(' ')
fxsProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1), ).setIndexNames((0, "ELTEX-TAU8", "fxsProfileIndex"))
if mibBuilder.loadTexts: fxsProfileEntry.setStatus('current')
if mibBuilder.loadTexts: fxsProfileEntry.setDescription(' ')
fxsProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 1), Integer32())
if mibBuilder.loadTexts: fxsProfileIndex.setStatus('current')
if mibBuilder.loadTexts: fxsProfileIndex.setDescription('FXS Profile index (from 1)')
fxsProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileName.setStatus('current')
if mibBuilder.loadTexts: fxsProfileName.setDescription('Profile name')
fxsProfileMinOnhookTime = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileMinOnhookTime.setStatus('current')
if mibBuilder.loadTexts: fxsProfileMinOnhookTime.setDescription('Minimal on-hook time')
fxsProfileMinFlash = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileMinFlash.setStatus('current')
if mibBuilder.loadTexts: fxsProfileMinFlash.setDescription('Min flash time (from 80 to 1000 ms)')
fxsProfileGainR = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileGainR.setStatus('current')
if mibBuilder.loadTexts: fxsProfileGainR.setDescription('Gain receive (x0.1dB)')
fxsProfileGainT = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileGainT.setStatus('current')
if mibBuilder.loadTexts: fxsProfileGainT.setDescription('Gain transmit (x0.1dB)')
fxsProfileMinPulse = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileMinPulse.setStatus('current')
if mibBuilder.loadTexts: fxsProfileMinPulse.setDescription('Minimal pulse time (from 20 to 100 ms)')
fxsProfileInterdigit = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileInterdigit.setStatus('current')
if mibBuilder.loadTexts: fxsProfileInterdigit.setDescription('Interdigit interval (from 100 to 400 ms)')
fxsProfileCallerId = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 9), CallerIdType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileCallerId.setStatus('current')
if mibBuilder.loadTexts: fxsProfileCallerId.setDescription('Caller-Id generation')
fxsProfileHangupTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileHangupTimeout.setStatus('current')
if mibBuilder.loadTexts: fxsProfileHangupTimeout.setDescription('Hangup timeout')
fxsProfileRbTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileRbTimeout.setStatus('current')
if mibBuilder.loadTexts: fxsProfileRbTimeout.setDescription('Ringback timeout')
fxsProfileBusyTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfileBusyTimeout.setStatus('current')
if mibBuilder.loadTexts: fxsProfileBusyTimeout.setDescription('Busy timeout')
fxsProfilePolarityReverse = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 13), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fxsProfilePolarityReverse.setStatus('current')
if mibBuilder.loadTexts: fxsProfilePolarityReverse.setDescription('Polarity reversal')
fxsProfileRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 14), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: fxsProfileRowStatus.setStatus('current')
if mibBuilder.loadTexts: fxsProfileRowStatus.setDescription('RowStatus')
fxsProfilesMIBBoundary = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fxsProfilesMIBBoundary.setStatus('current')
if mibBuilder.loadTexts: fxsProfilesMIBBoundary.setDescription('Dummy object to prevent GETNEXT request from poking into neighbor table.')
sipConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3))
sipCommon = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1))
sipCommonStunEnable = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipCommonStunEnable.setStatus('current')
if mibBuilder.loadTexts: sipCommonStunEnable.setDescription('STUN enable')
sipCommonStunServer = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipCommonStunServer.setStatus('current')
if mibBuilder.loadTexts: sipCommonStunServer.setDescription('STUN server address (:port)')
sipCommonStunInterval = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipCommonStunInterval.setStatus('current')
if mibBuilder.loadTexts: sipCommonStunInterval.setDescription('STUN request sending interval (sec)')
sipCommonPublicIp = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipCommonPublicIp.setStatus('current')
if mibBuilder.loadTexts: sipCommonPublicIp.setDescription('Public IP')
sipCommonNotUseNAPTR = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipCommonNotUseNAPTR.setStatus('current')
if mibBuilder.loadTexts: sipCommonNotUseNAPTR.setDescription('Disable NAPTR DNS queries')
sipCommonNotUseSRV = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipCommonNotUseSRV.setStatus('current')
if mibBuilder.loadTexts: sipCommonNotUseSRV.setDescription('Disable SRV DNS queries')
sipProfileTable = MibTable((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2), )
if mibBuilder.loadTexts: sipProfileTable.setStatus('current')
if mibBuilder.loadTexts: sipProfileTable.setDescription(' ')
sipProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1), ).setIndexNames((0, "ELTEX-TAU8", "sipProfileIndex"))
if mibBuilder.loadTexts: sipProfileEntry.setStatus('current')
if mibBuilder.loadTexts: sipProfileEntry.setDescription(' ')
sipProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 1), Integer32())
if mibBuilder.loadTexts: sipProfileIndex.setStatus('current')
if mibBuilder.loadTexts: sipProfileIndex.setDescription('SIP Profile index (from 1)')
sipProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProfileName.setStatus('current')
if mibBuilder.loadTexts: sipProfileName.setDescription('Profile name')
sipProEnablesip = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 3), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProEnablesip.setStatus('current')
if mibBuilder.loadTexts: sipProEnablesip.setDescription('Activate profile')
sipProRsrvMode = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 4), RsrvModeType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRsrvMode.setStatus('current')
if mibBuilder.loadTexts: sipProRsrvMode.setDescription('Proxy mode')
sipProProxyip = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProProxyip.setStatus('current')
if mibBuilder.loadTexts: sipProProxyip.setDescription('Proxy address (:port)')
sipProRegistration = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistration.setStatus('current')
if mibBuilder.loadTexts: sipProRegistration.setDescription('Registration')
sipProRegistrarip = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistrarip.setStatus('current')
if mibBuilder.loadTexts: sipProRegistrarip.setDescription('Registrar address (:port) (if Registration is enabled)')
sipProProxyipRsrv1 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProProxyipRsrv1.setStatus('current')
if mibBuilder.loadTexts: sipProProxyipRsrv1.setDescription('Proxy address (:port)')
sipProRegistrationRsrv1 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 9), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistrationRsrv1.setStatus('current')
if mibBuilder.loadTexts: sipProRegistrationRsrv1.setDescription('Registration')
sipProRegistraripRsrv1 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 10), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistraripRsrv1.setStatus('current')
if mibBuilder.loadTexts: sipProRegistraripRsrv1.setDescription('Registrar address (:port) (if Registration is enabled)')
sipProProxyipRsrv2 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 11), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProProxyipRsrv2.setStatus('current')
if mibBuilder.loadTexts: sipProProxyipRsrv2.setDescription('Proxy address (:port)')
sipProRegistrationRsrv2 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 12), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistrationRsrv2.setStatus('current')
if mibBuilder.loadTexts: sipProRegistrationRsrv2.setDescription('Registration')
sipProRegistraripRsrv2 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 13), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistraripRsrv2.setStatus('current')
if mibBuilder.loadTexts: sipProRegistraripRsrv2.setDescription('Registrar address (:port) (if Registration is enabled)')
sipProProxyipRsrv3 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 14), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProProxyipRsrv3.setStatus('current')
if mibBuilder.loadTexts: sipProProxyipRsrv3.setDescription('Proxy address (:port)')
sipProRegistrationRsrv3 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 15), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistrationRsrv3.setStatus('current')
if mibBuilder.loadTexts: sipProRegistrationRsrv3.setDescription('Registration')
sipProRegistraripRsrv3 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 16), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistraripRsrv3.setStatus('current')
if mibBuilder.loadTexts: sipProRegistraripRsrv3.setDescription('Registrar address (:port) (if Registration is enabled)')
sipProProxyipRsrv4 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 17), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProProxyipRsrv4.setStatus('current')
if mibBuilder.loadTexts: sipProProxyipRsrv4.setDescription('Proxy address (:port)')
sipProRegistrationRsrv4 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 18), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistrationRsrv4.setStatus('current')
if mibBuilder.loadTexts: sipProRegistrationRsrv4.setDescription('Registration')
sipProRegistraripRsrv4 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 19), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRegistraripRsrv4.setStatus('current')
if mibBuilder.loadTexts: sipProRegistraripRsrv4.setDescription('Registrar address (:port) (if Registration is enabled)')
sipProRsrvCheckMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 20), RsrvCheckMethodType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRsrvCheckMethod.setStatus('current')
if mibBuilder.loadTexts: sipProRsrvCheckMethod.setDescription('Check method')
sipProRsrvKeepaliveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 21), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRsrvKeepaliveTime.setStatus('current')
if mibBuilder.loadTexts: sipProRsrvKeepaliveTime.setDescription('Keepalive timeout (s)')
sipProDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 22), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProDomain.setStatus('current')
if mibBuilder.loadTexts: sipProDomain.setDescription('SIP domain')
sipProOutbound = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 23), OutboundType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProOutbound.setStatus('current')
if mibBuilder.loadTexts: sipProOutbound.setDescription('Outbound mode')
sipProExpires = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 24), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProExpires.setStatus('current')
if mibBuilder.loadTexts: sipProExpires.setDescription('Expires')
sipProRri = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 25), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRri.setStatus('current')
if mibBuilder.loadTexts: sipProRri.setDescription('Registration Retry Interval')
sipProDomainToReg = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 26), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProDomainToReg.setStatus('current')
if mibBuilder.loadTexts: sipProDomainToReg.setDescription('Use domain to register')
sipProEarlyMedia = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 27), EarlyMediaType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProEarlyMedia.setStatus('current')
if mibBuilder.loadTexts: sipProEarlyMedia.setDescription('User call (SIP) (180 Ringing (0), 183 Progress (Early media) (1))')
sipProDisplayToReg = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 28), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProDisplayToReg.setStatus('current')
if mibBuilder.loadTexts: sipProDisplayToReg.setDescription('Use SIP Display info in Register')
sipProRingback = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 29), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRingback.setStatus('current')
if mibBuilder.loadTexts: sipProRingback.setDescription('Ringback at 183 Progress')
sipProReduceSdpMediaCount = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 30), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProReduceSdpMediaCount.setStatus('current')
if mibBuilder.loadTexts: sipProReduceSdpMediaCount.setDescription('Remove rejected media')
sipProOption100rel = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 31), Option100relType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProOption100rel.setStatus('current')
if mibBuilder.loadTexts: sipProOption100rel.setDescription('100rel (supported, required, off)')
sipProCodecOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 32), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProCodecOrder.setStatus('current')
if mibBuilder.loadTexts: sipProCodecOrder.setDescription('List of codecs in preferred order (g711a,g711u,g723,g729x,g729a,g729b)')
sipProG711pte = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 33), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProG711pte.setStatus('current')
if mibBuilder.loadTexts: sipProG711pte.setDescription('G.711 PTE, ms')
sipProDtmfTransfer = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 34), DtmfTransferType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProDtmfTransfer.setStatus('current')
if mibBuilder.loadTexts: sipProDtmfTransfer.setDescription('DTMF transfer')
sipProFaxDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 35), FaxDirectionType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProFaxDirection.setStatus('current')
if mibBuilder.loadTexts: sipProFaxDirection.setDescription('Fax Direction')
sipProFaxTransfer1 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 36), FaxtransferType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProFaxTransfer1.setStatus('current')
if mibBuilder.loadTexts: sipProFaxTransfer1.setDescription('Codec 1')
sipProFaxTransfer2 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 37), FaxtransferType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProFaxTransfer2.setStatus('current')
if mibBuilder.loadTexts: sipProFaxTransfer2.setDescription('Codec 2')
sipProFaxTransfer3 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 38), FaxtransferType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProFaxTransfer3.setStatus('current')
if mibBuilder.loadTexts: sipProFaxTransfer3.setDescription('Codec 3')
sipProEnableInT38 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 39), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProEnableInT38.setStatus('current')
if mibBuilder.loadTexts: sipProEnableInT38.setDescription('Take the transition to T.38')
sipProFlashTransfer = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 40), FlashtransferType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProFlashTransfer.setStatus('current')
if mibBuilder.loadTexts: sipProFlashTransfer.setDescription('Flash transfer')
sipProFlashMime = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 41), FlashMimeType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProFlashMime.setStatus('current')
if mibBuilder.loadTexts: sipProFlashMime.setDescription('Hook flash MIME Type (if flashtransfer = info)')
sipProModem = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 42), ModemType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProModem.setStatus('current')
if mibBuilder.loadTexts: sipProModem.setDescription('Modem transfer (V.152)')
sipProPayload = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 43), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProPayload.setStatus('current')
if mibBuilder.loadTexts: sipProPayload.setDescription('Payload ((96..127))')
sipProSilenceDetector = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 44), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProSilenceDetector.setStatus('current')
if mibBuilder.loadTexts: sipProSilenceDetector.setDescription('Silencedetector')
sipProEchoCanceler = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 45), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProEchoCanceler.setStatus('current')
if mibBuilder.loadTexts: sipProEchoCanceler.setDescription('Echocanceller')
sipProRtcp = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 46), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRtcp.setStatus('current')
if mibBuilder.loadTexts: sipProRtcp.setDescription('RTCP')
sipProRtcpTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 47), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRtcpTimer.setStatus('current')
if mibBuilder.loadTexts: sipProRtcpTimer.setDescription('Sending interval (if rtcp on)')
sipProRtcpCount = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 48), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProRtcpCount.setStatus('current')
if mibBuilder.loadTexts: sipProRtcpCount.setDescription('Receiving period (if rtcp on)')
sipProDialplanRegexp = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 49), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProDialplanRegexp.setStatus('current')
if mibBuilder.loadTexts: sipProDialplanRegexp.setDescription('The regular expression for dialplan')
sipProRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 50), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: sipProRowStatus.setStatus('current')
if mibBuilder.loadTexts: sipProRowStatus.setDescription('RowStatus')
sipProKeepAliveMode = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 51), KeepAliveModeType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProKeepAliveMode.setStatus('current')
if mibBuilder.loadTexts: sipProKeepAliveMode.setDescription(' ')
sipProKeepAliveInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 52), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProKeepAliveInterval.setStatus('current')
if mibBuilder.loadTexts: sipProKeepAliveInterval.setDescription('sec')
sipProConferenceMode = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 53), ConferenceMode()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProConferenceMode.setStatus('current')
if mibBuilder.loadTexts: sipProConferenceMode.setDescription(' ')
sipProConferenceServer = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 54), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProConferenceServer.setStatus('current')
if mibBuilder.loadTexts: sipProConferenceServer.setDescription(' ')
sipProImsEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 55), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProImsEnable.setStatus('current')
if mibBuilder.loadTexts: sipProImsEnable.setDescription(' ')
sipProXcapCallholdName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 56), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProXcapCallholdName.setStatus('current')
if mibBuilder.loadTexts: sipProXcapCallholdName.setDescription(' ')
sipProXcapCwName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 57), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProXcapCwName.setStatus('current')
if mibBuilder.loadTexts: sipProXcapCwName.setDescription(' ')
sipProXcapConferenceName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 58), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProXcapConferenceName.setStatus('current')
if mibBuilder.loadTexts: sipProXcapConferenceName.setDescription(' ')
sipProXcapHotlineName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 59), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sipProXcapHotlineName.setStatus('current')
if mibBuilder.loadTexts: sipProXcapHotlineName.setDescription(' ')
sipProfilesMIBBoundary = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sipProfilesMIBBoundary.setStatus('current')
if mibBuilder.loadTexts: sipProfilesMIBBoundary.setDescription('Dummy object to prevent GETNEXT request from poking into neighbor table.')
groupsConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4))
huntGroupTable = MibTable((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1), )
if mibBuilder.loadTexts: huntGroupTable.setStatus('current')
if mibBuilder.loadTexts: huntGroupTable.setDescription(' ')
huntGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1), ).setIndexNames((0, "ELTEX-TAU8", "huntGrIndex"))
if mibBuilder.loadTexts: huntGroupEntry.setStatus('current')
if mibBuilder.loadTexts: huntGroupEntry.setDescription(' ')
huntGrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 1), Integer32())
if mibBuilder.loadTexts: huntGrIndex.setStatus('current')
if mibBuilder.loadTexts: huntGrIndex.setDescription('Hunt group index (from 1)')
huntGrEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrEnable.setStatus('current')
if mibBuilder.loadTexts: huntGrEnable.setDescription('Enable group')
huntGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGroupName.setStatus('current')
if mibBuilder.loadTexts: huntGroupName.setDescription('Group name')
huntGrSipProfileId = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrSipProfileId.setStatus('current')
if mibBuilder.loadTexts: huntGrSipProfileId.setDescription('SIP profile')
huntGrPhone = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrPhone.setStatus('current')
if mibBuilder.loadTexts: huntGrPhone.setDescription('Phone')
huntGrRegistration = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrRegistration.setStatus('current')
if mibBuilder.loadTexts: huntGrRegistration.setDescription('Registration')
huntGrUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrUserName.setStatus('current')
if mibBuilder.loadTexts: huntGrUserName.setDescription('User Name')
huntGrPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrPassword.setStatus('current')
if mibBuilder.loadTexts: huntGrPassword.setDescription('Password')
huntGrType = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 9), GroupType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrType.setStatus('current')
if mibBuilder.loadTexts: huntGrType.setDescription('Type of group (group(0),serial(1),cyclic(2))')
huntGrCallQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrCallQueueSize.setStatus('current')
if mibBuilder.loadTexts: huntGrCallQueueSize.setDescription('Call queue size')
huntGrWaitingTime = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrWaitingTime.setStatus('current')
if mibBuilder.loadTexts: huntGrWaitingTime.setDescription('Call reply timeout, sec')
huntGrSipPort = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrSipPort.setStatus('current')
if mibBuilder.loadTexts: huntGrSipPort.setDescription('SIP Port of group')
huntGrPickupEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 13), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrPickupEnable.setStatus('current')
if mibBuilder.loadTexts: huntGrPickupEnable.setDescription('Group call pickup enable')
huntGrPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 14), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: huntGrPorts.setStatus('current')
if mibBuilder.loadTexts: huntGrPorts.setDescription('List of the ports in the group')
huntGrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 15), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: huntGrRowStatus.setStatus('current')
if mibBuilder.loadTexts: huntGrRowStatus.setDescription('RowStatus')
huntGroupsMIBBoundary = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: huntGroupsMIBBoundary.setStatus('current')
if mibBuilder.loadTexts: huntGroupsMIBBoundary.setDescription('Dummy object to prevent GETNEXT request from poking into neighbor table.')
suppServices = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5))
dvoCfuPrefix = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dvoCfuPrefix.setStatus('current')
if mibBuilder.loadTexts: dvoCfuPrefix.setDescription('Unconditional forward')
dvoCfbPrefix = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dvoCfbPrefix.setStatus('current')
if mibBuilder.loadTexts: dvoCfbPrefix.setDescription('CT busy')
dvoCfnaPrefix = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dvoCfnaPrefix.setStatus('current')
if mibBuilder.loadTexts: dvoCfnaPrefix.setDescription('CT noanswer')
dvoCallPickupPrefix = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dvoCallPickupPrefix.setStatus('current')
if mibBuilder.loadTexts: dvoCallPickupPrefix.setDescription('Permit to pickup incoming calls')
dvoHotNumberPrefix = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dvoHotNumberPrefix.setStatus('current')
if mibBuilder.loadTexts: dvoHotNumberPrefix.setDescription('Hotline')
dvoCallwaitingPrefix = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dvoCallwaitingPrefix.setStatus('current')
if mibBuilder.loadTexts: dvoCallwaitingPrefix.setDescription('Callwaiting')
dvoDndPrefix = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dvoDndPrefix.setStatus('current')
if mibBuilder.loadTexts: dvoDndPrefix.setDescription('DND')
networkConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2))
snmpConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1))
snmpRoCommunity = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpRoCommunity.setStatus('current')
if mibBuilder.loadTexts: snmpRoCommunity.setDescription('roCommunity')
snmpRwCommunity = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpRwCommunity.setStatus('current')
if mibBuilder.loadTexts: snmpRwCommunity.setDescription('rwCommunity')
snmpTrapsink = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpTrapsink.setStatus('current')
if mibBuilder.loadTexts: snmpTrapsink.setDescription('TrapSink, usage: HOST [COMMUNITY [PORT]]')
snmpTrap2sink = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpTrap2sink.setStatus('current')
if mibBuilder.loadTexts: snmpTrap2sink.setDescription('Trap2Sink, usage: HOST [COMMUNITY [PORT]]')
snmpInformsink = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpInformsink.setStatus('current')
if mibBuilder.loadTexts: snmpInformsink.setDescription('InformSink, usage: HOST [COMMUNITY [PORT]]')
snmpSysname = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpSysname.setStatus('current')
if mibBuilder.loadTexts: snmpSysname.setDescription('System name')
snmpSyscontact = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpSyscontact.setStatus('current')
if mibBuilder.loadTexts: snmpSyscontact.setDescription('System contact')
snmpSyslocation = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpSyslocation.setStatus('current')
if mibBuilder.loadTexts: snmpSyslocation.setDescription('System location')
snmpTrapCommunity = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpTrapCommunity.setStatus('current')
if mibBuilder.loadTexts: snmpTrapCommunity.setDescription('TrapCommunity')
systemConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3))
traceConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1))
traceOutput = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 1), TraceOutputType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: traceOutput.setStatus('current')
if mibBuilder.loadTexts: traceOutput.setDescription('Output trace to')
syslogdIpaddr = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogdIpaddr.setStatus('current')
if mibBuilder.loadTexts: syslogdIpaddr.setDescription('Syslog server address')
syslogdPort = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogdPort.setStatus('current')
if mibBuilder.loadTexts: syslogdPort.setDescription('Syslog server port')
logLocalFile = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logLocalFile.setStatus('current')
if mibBuilder.loadTexts: logLocalFile.setDescription('Log file name')
logLocalSize = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logLocalSize.setStatus('current')
if mibBuilder.loadTexts: logLocalSize.setDescription('Log file size (kB)')
logVoipPbxEnable = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logVoipPbxEnable.setStatus('current')
if mibBuilder.loadTexts: logVoipPbxEnable.setDescription('VoIP trace enable')
logVoipError = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 7), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logVoipError.setStatus('current')
if mibBuilder.loadTexts: logVoipError.setDescription('Errors')
logVoipWarning = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 8), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logVoipWarning.setStatus('current')
if mibBuilder.loadTexts: logVoipWarning.setDescription('Warnings')
logVoipDebug = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 9), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logVoipDebug.setStatus('current')
if mibBuilder.loadTexts: logVoipDebug.setDescription('Debug')
logVoipInfo = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 10), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logVoipInfo.setStatus('current')
if mibBuilder.loadTexts: logVoipInfo.setDescription('Info')
logVoipSipLevel = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 9))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logVoipSipLevel.setStatus('current')
if mibBuilder.loadTexts: logVoipSipLevel.setDescription('SIP trace level')
logIgmpEnable = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 12), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logIgmpEnable.setStatus('current')
if mibBuilder.loadTexts: logIgmpEnable.setDescription('IGMP trace enable')
actionCommands = MibIdentifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 10))
actionSave = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 10, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: actionSave.setStatus('current')
if mibBuilder.loadTexts: actionSave.setDescription('set true(1) to save all config files')
actionReboot = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 10, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: actionReboot.setStatus('current')
if mibBuilder.loadTexts: actionReboot.setDescription('set true(1) to reboot')
tau8Group = ObjectGroup((1, 3, 6, 1, 4, 1, 35265, 1, 55, 200)).setObjects(("ELTEX-TAU8", "fxsPortsUseFxsProfile"), ("ELTEX-TAU8", "fxsPortEnabled"), ("ELTEX-TAU8", "fxsPortSipProfileId"), ("ELTEX-TAU8", "fxsPortProfile"), ("ELTEX-TAU8", "fxsPortPhone"), ("ELTEX-TAU8", "fxsPortUsername"), ("ELTEX-TAU8", "fxsPortAuthName"), ("ELTEX-TAU8", "fxsPortAuthPass"), ("ELTEX-TAU8", "fxsPortSipPort"), ("ELTEX-TAU8", "fxsPortUseAltNumber"), ("ELTEX-TAU8", "fxsPortAltNumber"), ("ELTEX-TAU8", "fxsPortCpcRus"), ("ELTEX-TAU8", "fxsPortMinOnhookTime"), ("ELTEX-TAU8", "fxsPortMinFlash"), ("ELTEX-TAU8", "fxsPortGainR"), ("ELTEX-TAU8", "fxsPortGainT"), ("ELTEX-TAU8", "fxsPortMinPulse"), ("ELTEX-TAU8", "fxsPortInterdigit"), ("ELTEX-TAU8", "fxsPortCallerId"), ("ELTEX-TAU8", "fxsPortHangupTimeout"), ("ELTEX-TAU8", "fxsPortRbTimeout"), ("ELTEX-TAU8", "fxsPortBusyTimeout"), ("ELTEX-TAU8", "fxsPortPolarityReverse"), ("ELTEX-TAU8", "fxsPortCallTransfer"), ("ELTEX-TAU8", "fxsPortCallWaiting"), ("ELTEX-TAU8", "fxsPortDirectnumber"), ("ELTEX-TAU8", "fxsPortStopDial"), ("ELTEX-TAU8", "fxsPortHotLine"), ("ELTEX-TAU8", "fxsPortHotNumber"), ("ELTEX-TAU8", "fxsPortHotTimeout"), ("ELTEX-TAU8", "fxsPortCtUnconditional"), ("ELTEX-TAU8", "fxsPortCfuNumber"), ("ELTEX-TAU8", "fxsPortCtBusy"), ("ELTEX-TAU8", "fxsPortCfbNumber"), ("ELTEX-TAU8", "fxsPortCtNoanswer"), ("ELTEX-TAU8", "fxsPortCfnaNumber"), ("ELTEX-TAU8", "fxsPortCtTimeout"), ("ELTEX-TAU8", "fxsPortDndEnable"), ("ELTEX-TAU8", "fxsPortRowStatus"), ("ELTEX-TAU8", "fxsPortsMIBBoundary"), ("ELTEX-TAU8", "fxsProfileName"), ("ELTEX-TAU8", "fxsProfileMinOnhookTime"), ("ELTEX-TAU8", "fxsProfileMinFlash"), ("ELTEX-TAU8", "fxsProfileGainR"), ("ELTEX-TAU8", "fxsProfileGainT"), ("ELTEX-TAU8", "fxsProfileMinPulse"), ("ELTEX-TAU8", "fxsProfileInterdigit"), ("ELTEX-TAU8", "fxsProfileCallerId"), ("ELTEX-TAU8", "fxsProfileHangupTimeout"), ("ELTEX-TAU8", "fxsProfileRbTimeout"), ("ELTEX-TAU8", "fxsProfileBusyTimeout"), ("ELTEX-TAU8", "fxsProfilePolarityReverse"), ("ELTEX-TAU8", "fxsProfileRowStatus"), ("ELTEX-TAU8", "fxsProfilesMIBBoundary"), ("ELTEX-TAU8", "sipCommonStunEnable"), ("ELTEX-TAU8", "sipCommonStunServer"), ("ELTEX-TAU8", "sipCommonStunInterval"), ("ELTEX-TAU8", "sipCommonPublicIp"), ("ELTEX-TAU8", "sipCommonNotUseNAPTR"), ("ELTEX-TAU8", "sipCommonNotUseSRV"), ("ELTEX-TAU8", "sipProfileName"), ("ELTEX-TAU8", "sipProEnablesip"), ("ELTEX-TAU8", "sipProRsrvMode"), ("ELTEX-TAU8", "sipProProxyip"), ("ELTEX-TAU8", "sipProRegistration"), ("ELTEX-TAU8", "sipProRegistrarip"), ("ELTEX-TAU8", "sipProProxyipRsrv1"), ("ELTEX-TAU8", "sipProRegistrationRsrv1"), ("ELTEX-TAU8", "sipProRegistraripRsrv1"), ("ELTEX-TAU8", "sipProProxyipRsrv2"), ("ELTEX-TAU8", "sipProRegistrationRsrv2"), ("ELTEX-TAU8", "sipProRegistraripRsrv2"), ("ELTEX-TAU8", "sipProProxyipRsrv3"), ("ELTEX-TAU8", "sipProRegistrationRsrv3"), ("ELTEX-TAU8", "sipProRegistraripRsrv3"), ("ELTEX-TAU8", "sipProProxyipRsrv4"), ("ELTEX-TAU8", "sipProRegistrationRsrv4"), ("ELTEX-TAU8", "sipProRegistraripRsrv4"), ("ELTEX-TAU8", "sipProRsrvCheckMethod"), ("ELTEX-TAU8", "sipProRsrvKeepaliveTime"), ("ELTEX-TAU8", "sipProDomain"), ("ELTEX-TAU8", "sipProOutbound"), ("ELTEX-TAU8", "sipProExpires"), ("ELTEX-TAU8", "sipProRri"), ("ELTEX-TAU8", "sipProDomainToReg"), ("ELTEX-TAU8", "sipProEarlyMedia"), ("ELTEX-TAU8", "sipProDisplayToReg"), ("ELTEX-TAU8", "sipProRingback"), ("ELTEX-TAU8", "sipProReduceSdpMediaCount"), ("ELTEX-TAU8", "sipProOption100rel"), ("ELTEX-TAU8", "sipProCodecOrder"), ("ELTEX-TAU8", "sipProG711pte"), ("ELTEX-TAU8", "sipProDtmfTransfer"), ("ELTEX-TAU8", "sipProFaxDirection"), ("ELTEX-TAU8", "sipProFaxTransfer1"), ("ELTEX-TAU8", "sipProFaxTransfer2"), ("ELTEX-TAU8", "sipProFaxTransfer3"), ("ELTEX-TAU8", "sipProEnableInT38"), ("ELTEX-TAU8", "sipProFlashTransfer"), ("ELTEX-TAU8", "sipProFlashMime"), ("ELTEX-TAU8", "sipProModem"), ("ELTEX-TAU8", "sipProPayload"), ("ELTEX-TAU8", "sipProSilenceDetector"), ("ELTEX-TAU8", "sipProEchoCanceler"), ("ELTEX-TAU8", "sipProRtcp"), ("ELTEX-TAU8", "sipProRtcpTimer"), ("ELTEX-TAU8", "sipProRtcpCount"), ("ELTEX-TAU8", "sipProDialplanRegexp"), ("ELTEX-TAU8", "sipProRowStatus"), ("ELTEX-TAU8", "sipProKeepAliveMode"), ("ELTEX-TAU8", "sipProKeepAliveInterval"), ("ELTEX-TAU8", "sipProConferenceMode"), ("ELTEX-TAU8", "sipProConferenceServer"), ("ELTEX-TAU8", "sipProImsEnable"), ("ELTEX-TAU8", "sipProXcapCallholdName"), ("ELTEX-TAU8", "sipProXcapCwName"), ("ELTEX-TAU8", "sipProXcapConferenceName"), ("ELTEX-TAU8", "sipProXcapHotlineName"), ("ELTEX-TAU8", "sipProfilesMIBBoundary"), ("ELTEX-TAU8", "huntGrEnable"), ("ELTEX-TAU8", "huntGroupName"), ("ELTEX-TAU8", "huntGrSipProfileId"), ("ELTEX-TAU8", "huntGrPhone"), ("ELTEX-TAU8", "huntGrRegistration"), ("ELTEX-TAU8", "huntGrUserName"), ("ELTEX-TAU8", "huntGrPassword"), ("ELTEX-TAU8", "huntGrType"), ("ELTEX-TAU8", "huntGrCallQueueSize"), ("ELTEX-TAU8", "huntGrWaitingTime"), ("ELTEX-TAU8", "huntGrSipPort"), ("ELTEX-TAU8", "huntGrPickupEnable"), ("ELTEX-TAU8", "huntGrPorts"), ("ELTEX-TAU8", "huntGrRowStatus"), ("ELTEX-TAU8", "huntGroupsMIBBoundary"), ("ELTEX-TAU8", "dvoCfuPrefix"), ("ELTEX-TAU8", "dvoCfbPrefix"), ("ELTEX-TAU8", "dvoCfnaPrefix"), ("ELTEX-TAU8", "dvoCallPickupPrefix"), ("ELTEX-TAU8", "dvoHotNumberPrefix"), ("ELTEX-TAU8", "dvoCallwaitingPrefix"), ("ELTEX-TAU8", "dvoDndPrefix"), ("ELTEX-TAU8", "snmpRoCommunity"), ("ELTEX-TAU8", "snmpRwCommunity"), ("ELTEX-TAU8", "snmpTrapsink"), ("ELTEX-TAU8", "snmpTrap2sink"), ("ELTEX-TAU8", "snmpInformsink"), ("ELTEX-TAU8", "snmpSysname"), ("ELTEX-TAU8", "snmpSyscontact"), ("ELTEX-TAU8", "snmpSyslocation"), ("ELTEX-TAU8", "snmpTrapCommunity"), ("ELTEX-TAU8", "traceOutput"), ("ELTEX-TAU8", "syslogdIpaddr"), ("ELTEX-TAU8", "syslogdPort"), ("ELTEX-TAU8", "logLocalFile"), ("ELTEX-TAU8", "logLocalSize"), ("ELTEX-TAU8", "logVoipPbxEnable"), ("ELTEX-TAU8", "logVoipError"), ("ELTEX-TAU8", "logVoipWarning"), ("ELTEX-TAU8", "logVoipDebug"), ("ELTEX-TAU8", "logVoipInfo"), ("ELTEX-TAU8", "logVoipSipLevel"), ("ELTEX-TAU8", "logIgmpEnable"), ("ELTEX-TAU8", "actionReboot"), ("ELTEX-TAU8", "actionSave"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
tau8Group = tau8Group.setStatus('current')
if mibBuilder.loadTexts: tau8Group.setDescription(' ')
mibBuilder.exportSymbols("ELTEX-TAU8", GroupType=GroupType, sipProRegistraripRsrv1=sipProRegistraripRsrv1, sipProFaxTransfer3=sipProFaxTransfer3, sipProRtcpTimer=sipProRtcpTimer, traceConfig=traceConfig, ConferenceMode=ConferenceMode, sipProRegistrationRsrv2=sipProRegistrationRsrv2, actionCommands=actionCommands, sipProRegistration=sipProRegistration, dvoCallPickupPrefix=dvoCallPickupPrefix, sipProEarlyMedia=sipProEarlyMedia, logVoipPbxEnable=logVoipPbxEnable, sipProDomainToReg=sipProDomainToReg, FlashtransferType=FlashtransferType, fxsPortProfile=fxsPortProfile, fxsPortSipPort=fxsPortSipPort, sipProfileEntry=sipProfileEntry, sipProOutbound=sipProOutbound, fxsPortGainT=fxsPortGainT, snmpRoCommunity=snmpRoCommunity, fxsPortGainR=fxsPortGainR, snmpTrapsink=snmpTrapsink, sipProModem=sipProModem, snmpTrapCommunity=snmpTrapCommunity, sipProFaxTransfer2=sipProFaxTransfer2, snmpConfig=snmpConfig, sipProRegistrationRsrv3=sipProRegistrationRsrv3, fxsPortDndEnable=fxsPortDndEnable, sipProReduceSdpMediaCount=sipProReduceSdpMediaCount, traceOutput=traceOutput, TraceOutputType=TraceOutputType, RsrvModeType=RsrvModeType, fxsPortHotLine=fxsPortHotLine, sipProDomain=sipProDomain, huntGrCallQueueSize=huntGrCallQueueSize, logVoipError=logVoipError, sipProExpires=sipProExpires, sipProProxyipRsrv4=sipProProxyipRsrv4, fxsPortCfbNumber=fxsPortCfbNumber, huntGrEnable=huntGrEnable, CallTransferType=CallTransferType, logIgmpEnable=logIgmpEnable, fxsProfilesMIBBoundary=fxsProfilesMIBBoundary, sipProConferenceServer=sipProConferenceServer, tau8Group=tau8Group, fxsPortInterdigit=fxsPortInterdigit, fxsPortRowStatus=fxsPortRowStatus, sipProFlashMime=sipProFlashMime, sipProXcapConferenceName=sipProXcapConferenceName, suppServices=suppServices, fxsProfileCallerId=fxsProfileCallerId, RsrvCheckMethodType=RsrvCheckMethodType, EarlyMediaType=EarlyMediaType, fxsPortCallTransfer=fxsPortCallTransfer, sipProRegistraripRsrv4=sipProRegistraripRsrv4, huntGrSipProfileId=huntGrSipProfileId, networkConfig=networkConfig, dvoHotNumberPrefix=dvoHotNumberPrefix, fxsPortMinOnhookTime=fxsPortMinOnhookTime, snmpSysname=snmpSysname, FaxtransferType=FaxtransferType, fxsProfileRowStatus=fxsProfileRowStatus, sipProRowStatus=sipProRowStatus, systemConfig=systemConfig, fxsProfileRbTimeout=fxsProfileRbTimeout, fxsPortPhone=fxsPortPhone, fxsPortSipProfileId=fxsPortSipProfileId, fxsPortDirectnumber=fxsPortDirectnumber, fxsPortMinPulse=fxsPortMinPulse, fxsPortHotNumber=fxsPortHotNumber, CallerIdType=CallerIdType, huntGrUserName=huntGrUserName, sipProRegistraripRsrv3=sipProRegistraripRsrv3, sipProXcapHotlineName=sipProXcapHotlineName, fxsProfileTable=fxsProfileTable, actionReboot=actionReboot, ModemType=ModemType, fxsProfilePolarityReverse=fxsProfilePolarityReverse, sipProDialplanRegexp=sipProDialplanRegexp, sipProImsEnable=sipProImsEnable, sipProProxyipRsrv2=sipProProxyipRsrv2, fxsPortCtNoanswer=fxsPortCtNoanswer, fxsProfileGainR=fxsProfileGainR, sipProRegistrationRsrv4=sipProRegistrationRsrv4, sipProProxyipRsrv3=sipProProxyipRsrv3, huntGrPorts=huntGrPorts, huntGrWaitingTime=huntGrWaitingTime, sipProProxyipRsrv1=sipProProxyipRsrv1, fxsPortMinFlash=fxsPortMinFlash, sipCommonStunInterval=sipCommonStunInterval, dvoCfnaPrefix=dvoCfnaPrefix, snmpTrap2sink=snmpTrap2sink, sipCommonStunServer=sipCommonStunServer, fxsProfileName=fxsProfileName, fxsPortBusyTimeout=fxsPortBusyTimeout, snmpSyscontact=snmpSyscontact, huntGroupName=huntGroupName, sipProfileIndex=sipProfileIndex, actionSave=actionSave, sipProRingback=sipProRingback, logVoipSipLevel=logVoipSipLevel, logVoipDebug=logVoipDebug, sipProRtcp=sipProRtcp, fxsProfiles=fxsProfiles, sipProRegistraripRsrv2=sipProRegistraripRsrv2, huntGroupEntry=huntGroupEntry, fxsPortUseAltNumber=fxsPortUseAltNumber, sipProRsrvKeepaliveTime=sipProRsrvKeepaliveTime, sipProKeepAliveMode=sipProKeepAliveMode, OutboundType=OutboundType, huntGrRegistration=huntGrRegistration, fxsPortCtBusy=fxsPortCtBusy, fxsProfileInterdigit=fxsProfileInterdigit, sipProDtmfTransfer=sipProDtmfTransfer, logVoipInfo=logVoipInfo, fxsPortHotTimeout=fxsPortHotTimeout, fxsProfileEntry=fxsProfileEntry, fxsPorts=fxsPorts, fxsPortCtTimeout=fxsPortCtTimeout, logVoipWarning=logVoipWarning, fxsPortRbTimeout=fxsPortRbTimeout, huntGrPickupEnable=huntGrPickupEnable, snmpInformsink=snmpInformsink, fxsPortTable=fxsPortTable, fxsPortHangupTimeout=fxsPortHangupTimeout, sipProRri=sipProRri, sipCommonNotUseNAPTR=sipCommonNotUseNAPTR, huntGrIndex=huntGrIndex, sipProRtcpCount=sipProRtcpCount, fxsPortCfnaNumber=fxsPortCfnaNumber, fxsPortEntry=fxsPortEntry, sipProRsrvCheckMethod=sipProRsrvCheckMethod, fxsProfileMinOnhookTime=fxsProfileMinOnhookTime, huntGrRowStatus=huntGrRowStatus, sipCommon=sipCommon, sipCommonPublicIp=sipCommonPublicIp, PYSNMP_MODULE_ID=tau8, huntGroupsMIBBoundary=huntGroupsMIBBoundary, sipProSilenceDetector=sipProSilenceDetector, fxsPortCfuNumber=fxsPortCfuNumber, fxsProfileIndex=fxsProfileIndex, sipProDisplayToReg=sipProDisplayToReg, sipProEnableInT38=sipProEnableInT38, huntGrPhone=huntGrPhone, fxsPortCpcRus=fxsPortCpcRus, fxsPortCallerId=fxsPortCallerId, groupsConfig=groupsConfig, fxsPortsMIBBoundary=fxsPortsMIBBoundary, fxsPortAltNumber=fxsPortAltNumber, sipCommonNotUseSRV=sipCommonNotUseSRV, tau8=tau8, fxsPortStopDial=fxsPortStopDial, sipProEnablesip=sipProEnablesip, sipProXcapCallholdName=sipProXcapCallholdName, huntGrSipPort=huntGrSipPort, sipProFaxDirection=sipProFaxDirection, fxsPortPolarityReverse=fxsPortPolarityReverse, sipProKeepAliveInterval=sipProKeepAliveInterval, Option100relType=Option100relType, syslogdPort=syslogdPort, sipProFlashTransfer=sipProFlashTransfer, huntGroupTable=huntGroupTable, sipProConferenceMode=sipProConferenceMode, FaxDirectionType=FaxDirectionType, KeepAliveModeType=KeepAliveModeType, sipProRsrvMode=sipProRsrvMode, huntGrType=huntGrType, sipProXcapCwName=sipProXcapCwName, fxsProfileBusyTimeout=fxsProfileBusyTimeout, syslogdIpaddr=syslogdIpaddr, fxsPortAuthName=fxsPortAuthName, sipProCodecOrder=sipProCodecOrder, sipProfileName=sipProfileName, logLocalSize=logLocalSize, DtmfTransferType=DtmfTransferType, logLocalFile=logLocalFile, fxsPortsUseFxsProfile=fxsPortsUseFxsProfile, sipProProxyip=sipProProxyip, fxsProfileHangupTimeout=fxsProfileHangupTimeout, huntGrPassword=huntGrPassword, sipProfilesMIBBoundary=sipProfilesMIBBoundary, snmpSyslocation=snmpSyslocation, fxsPortUsername=fxsPortUsername, fxsPortCtUnconditional=fxsPortCtUnconditional, dvoCfbPrefix=dvoCfbPrefix, fxsProfileMinFlash=fxsProfileMinFlash, sipProPayload=sipProPayload, sipCommonStunEnable=sipCommonStunEnable, fxsPortCallWaiting=fxsPortCallWaiting, sipProOption100rel=sipProOption100rel, dvoCfuPrefix=dvoCfuPrefix, sipProRegistrationRsrv1=sipProRegistrationRsrv1, fxsProfileGainT=fxsProfileGainT, fxsPortEnabled=fxsPortEnabled, fxsProfileMinPulse=fxsProfileMinPulse, sipConfig=sipConfig, sipProEchoCanceler=sipProEchoCanceler, pbxConfig=pbxConfig, fxsPortIndex=fxsPortIndex, fxsPortAuthPass=fxsPortAuthPass, dvoCallwaitingPrefix=dvoCallwaitingPrefix, snmpRwCommunity=snmpRwCommunity, dvoDndPrefix=dvoDndPrefix, sipProRegistrarip=sipProRegistrarip, sipProFaxTransfer1=sipProFaxTransfer1, sipProG711pte=sipProG711pte, FlashMimeType=FlashMimeType, sipProfileTable=sipProfileTable)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint')
(el_hardware,) = mibBuilder.importSymbols('ELTEX-SMI-ACTUAL', 'elHardware')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(module_identity, object_identity, iso, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, time_ticks, bits, ip_address, integer32, gauge32, counter32, notification_type, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'ObjectIdentity', 'iso', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'TimeTicks', 'Bits', 'IpAddress', 'Integer32', 'Gauge32', 'Counter32', 'NotificationType', 'Counter64')
(textual_convention, time_stamp, row_status, truth_value, display_string, time_interval) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TimeStamp', 'RowStatus', 'TruthValue', 'DisplayString', 'TimeInterval')
tau8 = module_identity((1, 3, 6, 1, 4, 1, 35265, 1, 55))
tau8.setRevisions(('2013-08-28 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
tau8.setRevisionsDescriptions(('first version',))
if mibBuilder.loadTexts:
tau8.setLastUpdated('201308280000Z')
if mibBuilder.loadTexts:
tau8.setOrganization('Eltex Enterprise Ltd')
if mibBuilder.loadTexts:
tau8.setContactInfo(' ')
if mibBuilder.loadTexts:
tau8.setDescription('TAU-4/8.IP MIB')
class Calleridtype(TextualConvention, Integer32):
description = 'Caller-Id generation'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3))
named_values = named_values(('bell', 0), ('v23', 1), ('dtmf', 2), ('off', 3))
class Calltransfertype(TextualConvention, Integer32):
description = 'Flash mode'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3))
named_values = named_values(('transmitFlash', 0), ('attendedCT', 1), ('unattendedCT', 2), ('localCT', 3))
class Rsrvmodetype(TextualConvention, Integer32):
description = 'Proxy mode'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('off', 0), ('homing', 1), ('parking', 2))
class Rsrvcheckmethodtype(TextualConvention, Integer32):
description = 'Check method'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('invite', 0), ('register', 1), ('options', 2))
class Outboundtype(TextualConvention, Integer32):
description = 'Outbound mode'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('off', 0), ('outbound', 1), ('outboundWithBusy', 2))
class Earlymediatype(TextualConvention, Integer32):
description = 'User call (SIP) (180 Ringing (0), 183 Progress (Early media) (1))'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1))
named_values = named_values(('ringing180', 0), ('progress183EarlyMedia', 1))
class Option100Reltype(TextualConvention, Integer32):
description = '100rel (supported, required, off)'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('supported', 0), ('required', 1), ('off', 2))
class Keepalivemodetype(TextualConvention, Integer32):
description = ' '
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3))
named_values = named_values(('off', 0), ('options', 1), ('notify', 2), ('clrf', 3))
class Dtmftransfertype(TextualConvention, Integer32):
description = 'DTMF transfer'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('inband', 0), ('rfc2833', 1), ('info', 2))
class Faxdirectiontype(TextualConvention, Integer32):
description = 'Fax Direction'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3))
named_values = named_values(('callerAndCallee', 0), ('caller', 1), ('callee', 2), ('noDetectFax', 3))
class Faxtransfertype(TextualConvention, Integer32):
description = 'Fax Direction'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3))
named_values = named_values(('g711a', 0), ('g711u', 1), ('t38', 2), ('none', 3))
class Flashtransfertype(TextualConvention, Integer32):
description = 'Flash transfer'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('off', 0), ('rfc2833', 1), ('info', 2))
class Flashmimetype(TextualConvention, Integer32):
description = 'Hook flash MIME Type (if flashtransfer = info)'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3))
named_values = named_values(('hookflash', 0), ('dtmfRelay', 1), ('broadsoft', 2), ('sscc', 3))
class Modemtype(TextualConvention, Integer32):
description = 'Modem transfer (V.152)'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4))
named_values = named_values(('g711a', 0), ('g711u', 1), ('g711aNse', 2), ('g711uNse', 3), ('off', 4))
class Grouptype(TextualConvention, Integer32):
description = 'Type of group (group(0),serial(1),cyclic(2))'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('group', 0), ('serial', 1), ('cyclic', 2))
class Traceoutputtype(TextualConvention, Integer32):
description = 'Output trace to'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2))
named_values = named_values(('console', 0), ('syslogd', 1), ('disable', 2))
class Conferencemode(TextualConvention, Integer32):
description = 'sip profile conference settings'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1))
named_values = named_values(('local', 0), ('remote', 1))
pbx_config = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1))
fxs_ports = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1))
fxs_ports_use_fxs_profile = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortsUseFxsProfile.setStatus('current')
if mibBuilder.loadTexts:
fxsPortsUseFxsProfile.setDescription('Use FXS profiles settings')
fxs_port_table = mib_table((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2))
if mibBuilder.loadTexts:
fxsPortTable.setStatus('current')
if mibBuilder.loadTexts:
fxsPortTable.setDescription(' ')
fxs_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1)).setIndexNames((0, 'ELTEX-TAU8', 'fxsPortIndex'))
if mibBuilder.loadTexts:
fxsPortEntry.setStatus('current')
if mibBuilder.loadTexts:
fxsPortEntry.setDescription(' ')
fxs_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 1), integer32())
if mibBuilder.loadTexts:
fxsPortIndex.setStatus('current')
if mibBuilder.loadTexts:
fxsPortIndex.setDescription('FXS port index (from 1)')
fxs_port_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 2), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortEnabled.setStatus('current')
if mibBuilder.loadTexts:
fxsPortEnabled.setDescription('Enabled')
fxs_port_sip_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortSipProfileId.setStatus('current')
if mibBuilder.loadTexts:
fxsPortSipProfileId.setDescription('SIP profile')
fxs_port_profile = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortProfile.setStatus('current')
if mibBuilder.loadTexts:
fxsPortProfile.setDescription('FXS profile')
fxs_port_phone = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortPhone.setStatus('current')
if mibBuilder.loadTexts:
fxsPortPhone.setDescription('Phone')
fxs_port_username = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 6), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortUsername.setStatus('current')
if mibBuilder.loadTexts:
fxsPortUsername.setDescription('Username')
fxs_port_auth_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortAuthName.setStatus('current')
if mibBuilder.loadTexts:
fxsPortAuthName.setDescription('Login')
fxs_port_auth_pass = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortAuthPass.setStatus('current')
if mibBuilder.loadTexts:
fxsPortAuthPass.setDescription('Password')
fxs_port_sip_port = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortSipPort.setStatus('current')
if mibBuilder.loadTexts:
fxsPortSipPort.setDescription('SIP Port')
fxs_port_use_alt_number = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 10), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortUseAltNumber.setStatus('current')
if mibBuilder.loadTexts:
fxsPortUseAltNumber.setDescription('Use alternative number')
fxs_port_alt_number = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 11), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortAltNumber.setStatus('current')
if mibBuilder.loadTexts:
fxsPortAltNumber.setDescription('Alternative number')
fxs_port_cpc_rus = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCpcRus.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCpcRus.setDescription('Calling party category')
fxs_port_min_onhook_time = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 13), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortMinOnhookTime.setStatus('current')
if mibBuilder.loadTexts:
fxsPortMinOnhookTime.setDescription('Minimal on-hook time')
fxs_port_min_flash = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 14), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortMinFlash.setStatus('current')
if mibBuilder.loadTexts:
fxsPortMinFlash.setDescription('Min flash time')
fxs_port_gain_r = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 15), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortGainR.setStatus('current')
if mibBuilder.loadTexts:
fxsPortGainR.setDescription('Gain receive (x0.1dB)')
fxs_port_gain_t = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 16), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortGainT.setStatus('current')
if mibBuilder.loadTexts:
fxsPortGainT.setDescription('Gain transmit (x0.1dB)')
fxs_port_min_pulse = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 17), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortMinPulse.setStatus('current')
if mibBuilder.loadTexts:
fxsPortMinPulse.setDescription('Min pulse')
fxs_port_interdigit = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 18), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortInterdigit.setStatus('current')
if mibBuilder.loadTexts:
fxsPortInterdigit.setDescription('Interdigit')
fxs_port_caller_id = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 19), caller_id_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCallerId.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCallerId.setDescription('Caller-Id generation')
fxs_port_hangup_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 20), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortHangupTimeout.setStatus('current')
if mibBuilder.loadTexts:
fxsPortHangupTimeout.setDescription('Hangup timeout')
fxs_port_rb_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 21), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortRbTimeout.setStatus('current')
if mibBuilder.loadTexts:
fxsPortRbTimeout.setDescription('Ringback timeout')
fxs_port_busy_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 22), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortBusyTimeout.setStatus('current')
if mibBuilder.loadTexts:
fxsPortBusyTimeout.setDescription('Busy timeout')
fxs_port_polarity_reverse = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 23), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortPolarityReverse.setStatus('current')
if mibBuilder.loadTexts:
fxsPortPolarityReverse.setDescription('Polarity reversal')
fxs_port_call_transfer = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 24), call_transfer_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCallTransfer.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCallTransfer.setDescription('Flash mode')
fxs_port_call_waiting = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 25), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCallWaiting.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCallWaiting.setDescription('Callwaiting')
fxs_port_directnumber = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 26), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortDirectnumber.setStatus('current')
if mibBuilder.loadTexts:
fxsPortDirectnumber.setDescription('Direct number')
fxs_port_stop_dial = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 27), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortStopDial.setStatus('current')
if mibBuilder.loadTexts:
fxsPortStopDial.setDescription('Stop dialing at #')
fxs_port_hot_line = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 28), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortHotLine.setStatus('current')
if mibBuilder.loadTexts:
fxsPortHotLine.setDescription('Hotline')
fxs_port_hot_number = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 29), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortHotNumber.setStatus('current')
if mibBuilder.loadTexts:
fxsPortHotNumber.setDescription('Hot number (if Hotline is enabled)')
fxs_port_hot_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 30), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortHotTimeout.setStatus('current')
if mibBuilder.loadTexts:
fxsPortHotTimeout.setDescription('Hot timeout (if Hotline is enabled)')
fxs_port_ct_unconditional = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 31), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCtUnconditional.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCtUnconditional.setDescription('CFU')
fxs_port_cfu_number = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 32), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCfuNumber.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCfuNumber.setDescription('CGU number (if CFU is enabled)')
fxs_port_ct_busy = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 33), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCtBusy.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCtBusy.setDescription('CFB')
fxs_port_cfb_number = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 34), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCfbNumber.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCfbNumber.setDescription('CFB number (if CFB is enabled)')
fxs_port_ct_noanswer = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 35), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCtNoanswer.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCtNoanswer.setDescription('CFNA')
fxs_port_cfna_number = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 36), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCfnaNumber.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCfnaNumber.setDescription('CFNA number (if CFNA is enabled)')
fxs_port_ct_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 37), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortCtTimeout.setStatus('current')
if mibBuilder.loadTexts:
fxsPortCtTimeout.setDescription('CFNA timeout (if CFNA is enabled)')
fxs_port_dnd_enable = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 38), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsPortDndEnable.setStatus('current')
if mibBuilder.loadTexts:
fxsPortDndEnable.setDescription('DND')
fxs_port_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 2, 1, 39), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
fxsPortRowStatus.setStatus('current')
if mibBuilder.loadTexts:
fxsPortRowStatus.setDescription('RowStatus')
fxs_ports_mib_boundary = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fxsPortsMIBBoundary.setStatus('current')
if mibBuilder.loadTexts:
fxsPortsMIBBoundary.setDescription('Dummy object to prevent GETNEXT request from poking into neighbor table.')
fxs_profiles = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2))
fxs_profile_table = mib_table((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1))
if mibBuilder.loadTexts:
fxsProfileTable.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileTable.setDescription(' ')
fxs_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1)).setIndexNames((0, 'ELTEX-TAU8', 'fxsProfileIndex'))
if mibBuilder.loadTexts:
fxsProfileEntry.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileEntry.setDescription(' ')
fxs_profile_index = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 1), integer32())
if mibBuilder.loadTexts:
fxsProfileIndex.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileIndex.setDescription('FXS Profile index (from 1)')
fxs_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileName.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileName.setDescription('Profile name')
fxs_profile_min_onhook_time = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileMinOnhookTime.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileMinOnhookTime.setDescription('Minimal on-hook time')
fxs_profile_min_flash = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileMinFlash.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileMinFlash.setDescription('Min flash time (from 80 to 1000 ms)')
fxs_profile_gain_r = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileGainR.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileGainR.setDescription('Gain receive (x0.1dB)')
fxs_profile_gain_t = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileGainT.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileGainT.setDescription('Gain transmit (x0.1dB)')
fxs_profile_min_pulse = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 7), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileMinPulse.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileMinPulse.setDescription('Minimal pulse time (from 20 to 100 ms)')
fxs_profile_interdigit = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileInterdigit.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileInterdigit.setDescription('Interdigit interval (from 100 to 400 ms)')
fxs_profile_caller_id = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 9), caller_id_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileCallerId.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileCallerId.setDescription('Caller-Id generation')
fxs_profile_hangup_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 10), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileHangupTimeout.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileHangupTimeout.setDescription('Hangup timeout')
fxs_profile_rb_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 11), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileRbTimeout.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileRbTimeout.setDescription('Ringback timeout')
fxs_profile_busy_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfileBusyTimeout.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileBusyTimeout.setDescription('Busy timeout')
fxs_profile_polarity_reverse = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 13), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fxsProfilePolarityReverse.setStatus('current')
if mibBuilder.loadTexts:
fxsProfilePolarityReverse.setDescription('Polarity reversal')
fxs_profile_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 1, 1, 14), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
fxsProfileRowStatus.setStatus('current')
if mibBuilder.loadTexts:
fxsProfileRowStatus.setDescription('RowStatus')
fxs_profiles_mib_boundary = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 2, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fxsProfilesMIBBoundary.setStatus('current')
if mibBuilder.loadTexts:
fxsProfilesMIBBoundary.setDescription('Dummy object to prevent GETNEXT request from poking into neighbor table.')
sip_config = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3))
sip_common = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1))
sip_common_stun_enable = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipCommonStunEnable.setStatus('current')
if mibBuilder.loadTexts:
sipCommonStunEnable.setDescription('STUN enable')
sip_common_stun_server = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipCommonStunServer.setStatus('current')
if mibBuilder.loadTexts:
sipCommonStunServer.setDescription('STUN server address (:port)')
sip_common_stun_interval = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipCommonStunInterval.setStatus('current')
if mibBuilder.loadTexts:
sipCommonStunInterval.setDescription('STUN request sending interval (sec)')
sip_common_public_ip = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipCommonPublicIp.setStatus('current')
if mibBuilder.loadTexts:
sipCommonPublicIp.setDescription('Public IP')
sip_common_not_use_naptr = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 5), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipCommonNotUseNAPTR.setStatus('current')
if mibBuilder.loadTexts:
sipCommonNotUseNAPTR.setDescription('Disable NAPTR DNS queries')
sip_common_not_use_srv = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 1, 6), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipCommonNotUseSRV.setStatus('current')
if mibBuilder.loadTexts:
sipCommonNotUseSRV.setDescription('Disable SRV DNS queries')
sip_profile_table = mib_table((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2))
if mibBuilder.loadTexts:
sipProfileTable.setStatus('current')
if mibBuilder.loadTexts:
sipProfileTable.setDescription(' ')
sip_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1)).setIndexNames((0, 'ELTEX-TAU8', 'sipProfileIndex'))
if mibBuilder.loadTexts:
sipProfileEntry.setStatus('current')
if mibBuilder.loadTexts:
sipProfileEntry.setDescription(' ')
sip_profile_index = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 1), integer32())
if mibBuilder.loadTexts:
sipProfileIndex.setStatus('current')
if mibBuilder.loadTexts:
sipProfileIndex.setDescription('SIP Profile index (from 1)')
sip_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProfileName.setStatus('current')
if mibBuilder.loadTexts:
sipProfileName.setDescription('Profile name')
sip_pro_enablesip = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 3), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProEnablesip.setStatus('current')
if mibBuilder.loadTexts:
sipProEnablesip.setDescription('Activate profile')
sip_pro_rsrv_mode = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 4), rsrv_mode_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRsrvMode.setStatus('current')
if mibBuilder.loadTexts:
sipProRsrvMode.setDescription('Proxy mode')
sip_pro_proxyip = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProProxyip.setStatus('current')
if mibBuilder.loadTexts:
sipProProxyip.setDescription('Proxy address (:port)')
sip_pro_registration = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 6), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistration.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistration.setDescription('Registration')
sip_pro_registrarip = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistrarip.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistrarip.setDescription('Registrar address (:port) (if Registration is enabled)')
sip_pro_proxyip_rsrv1 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProProxyipRsrv1.setStatus('current')
if mibBuilder.loadTexts:
sipProProxyipRsrv1.setDescription('Proxy address (:port)')
sip_pro_registration_rsrv1 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 9), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistrationRsrv1.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistrationRsrv1.setDescription('Registration')
sip_pro_registrarip_rsrv1 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 10), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistraripRsrv1.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistraripRsrv1.setDescription('Registrar address (:port) (if Registration is enabled)')
sip_pro_proxyip_rsrv2 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 11), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProProxyipRsrv2.setStatus('current')
if mibBuilder.loadTexts:
sipProProxyipRsrv2.setDescription('Proxy address (:port)')
sip_pro_registration_rsrv2 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 12), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistrationRsrv2.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistrationRsrv2.setDescription('Registration')
sip_pro_registrarip_rsrv2 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 13), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistraripRsrv2.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistraripRsrv2.setDescription('Registrar address (:port) (if Registration is enabled)')
sip_pro_proxyip_rsrv3 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 14), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProProxyipRsrv3.setStatus('current')
if mibBuilder.loadTexts:
sipProProxyipRsrv3.setDescription('Proxy address (:port)')
sip_pro_registration_rsrv3 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 15), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistrationRsrv3.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistrationRsrv3.setDescription('Registration')
sip_pro_registrarip_rsrv3 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 16), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistraripRsrv3.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistraripRsrv3.setDescription('Registrar address (:port) (if Registration is enabled)')
sip_pro_proxyip_rsrv4 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 17), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProProxyipRsrv4.setStatus('current')
if mibBuilder.loadTexts:
sipProProxyipRsrv4.setDescription('Proxy address (:port)')
sip_pro_registration_rsrv4 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 18), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistrationRsrv4.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistrationRsrv4.setDescription('Registration')
sip_pro_registrarip_rsrv4 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 19), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRegistraripRsrv4.setStatus('current')
if mibBuilder.loadTexts:
sipProRegistraripRsrv4.setDescription('Registrar address (:port) (if Registration is enabled)')
sip_pro_rsrv_check_method = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 20), rsrv_check_method_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRsrvCheckMethod.setStatus('current')
if mibBuilder.loadTexts:
sipProRsrvCheckMethod.setDescription('Check method')
sip_pro_rsrv_keepalive_time = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 21), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRsrvKeepaliveTime.setStatus('current')
if mibBuilder.loadTexts:
sipProRsrvKeepaliveTime.setDescription('Keepalive timeout (s)')
sip_pro_domain = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 22), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProDomain.setStatus('current')
if mibBuilder.loadTexts:
sipProDomain.setDescription('SIP domain')
sip_pro_outbound = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 23), outbound_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProOutbound.setStatus('current')
if mibBuilder.loadTexts:
sipProOutbound.setDescription('Outbound mode')
sip_pro_expires = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 24), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProExpires.setStatus('current')
if mibBuilder.loadTexts:
sipProExpires.setDescription('Expires')
sip_pro_rri = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 25), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRri.setStatus('current')
if mibBuilder.loadTexts:
sipProRri.setDescription('Registration Retry Interval')
sip_pro_domain_to_reg = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 26), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProDomainToReg.setStatus('current')
if mibBuilder.loadTexts:
sipProDomainToReg.setDescription('Use domain to register')
sip_pro_early_media = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 27), early_media_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProEarlyMedia.setStatus('current')
if mibBuilder.loadTexts:
sipProEarlyMedia.setDescription('User call (SIP) (180 Ringing (0), 183 Progress (Early media) (1))')
sip_pro_display_to_reg = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 28), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProDisplayToReg.setStatus('current')
if mibBuilder.loadTexts:
sipProDisplayToReg.setDescription('Use SIP Display info in Register')
sip_pro_ringback = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 29), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRingback.setStatus('current')
if mibBuilder.loadTexts:
sipProRingback.setDescription('Ringback at 183 Progress')
sip_pro_reduce_sdp_media_count = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 30), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProReduceSdpMediaCount.setStatus('current')
if mibBuilder.loadTexts:
sipProReduceSdpMediaCount.setDescription('Remove rejected media')
sip_pro_option100rel = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 31), option100rel_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProOption100rel.setStatus('current')
if mibBuilder.loadTexts:
sipProOption100rel.setDescription('100rel (supported, required, off)')
sip_pro_codec_order = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 32), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProCodecOrder.setStatus('current')
if mibBuilder.loadTexts:
sipProCodecOrder.setDescription('List of codecs in preferred order (g711a,g711u,g723,g729x,g729a,g729b)')
sip_pro_g711pte = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 33), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProG711pte.setStatus('current')
if mibBuilder.loadTexts:
sipProG711pte.setDescription('G.711 PTE, ms')
sip_pro_dtmf_transfer = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 34), dtmf_transfer_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProDtmfTransfer.setStatus('current')
if mibBuilder.loadTexts:
sipProDtmfTransfer.setDescription('DTMF transfer')
sip_pro_fax_direction = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 35), fax_direction_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProFaxDirection.setStatus('current')
if mibBuilder.loadTexts:
sipProFaxDirection.setDescription('Fax Direction')
sip_pro_fax_transfer1 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 36), faxtransfer_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProFaxTransfer1.setStatus('current')
if mibBuilder.loadTexts:
sipProFaxTransfer1.setDescription('Codec 1')
sip_pro_fax_transfer2 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 37), faxtransfer_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProFaxTransfer2.setStatus('current')
if mibBuilder.loadTexts:
sipProFaxTransfer2.setDescription('Codec 2')
sip_pro_fax_transfer3 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 38), faxtransfer_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProFaxTransfer3.setStatus('current')
if mibBuilder.loadTexts:
sipProFaxTransfer3.setDescription('Codec 3')
sip_pro_enable_in_t38 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 39), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProEnableInT38.setStatus('current')
if mibBuilder.loadTexts:
sipProEnableInT38.setDescription('Take the transition to T.38')
sip_pro_flash_transfer = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 40), flashtransfer_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProFlashTransfer.setStatus('current')
if mibBuilder.loadTexts:
sipProFlashTransfer.setDescription('Flash transfer')
sip_pro_flash_mime = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 41), flash_mime_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProFlashMime.setStatus('current')
if mibBuilder.loadTexts:
sipProFlashMime.setDescription('Hook flash MIME Type (if flashtransfer = info)')
sip_pro_modem = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 42), modem_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProModem.setStatus('current')
if mibBuilder.loadTexts:
sipProModem.setDescription('Modem transfer (V.152)')
sip_pro_payload = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 43), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProPayload.setStatus('current')
if mibBuilder.loadTexts:
sipProPayload.setDescription('Payload ((96..127))')
sip_pro_silence_detector = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 44), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProSilenceDetector.setStatus('current')
if mibBuilder.loadTexts:
sipProSilenceDetector.setDescription('Silencedetector')
sip_pro_echo_canceler = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 45), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProEchoCanceler.setStatus('current')
if mibBuilder.loadTexts:
sipProEchoCanceler.setDescription('Echocanceller')
sip_pro_rtcp = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 46), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRtcp.setStatus('current')
if mibBuilder.loadTexts:
sipProRtcp.setDescription('RTCP')
sip_pro_rtcp_timer = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 47), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRtcpTimer.setStatus('current')
if mibBuilder.loadTexts:
sipProRtcpTimer.setDescription('Sending interval (if rtcp on)')
sip_pro_rtcp_count = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 48), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProRtcpCount.setStatus('current')
if mibBuilder.loadTexts:
sipProRtcpCount.setDescription('Receiving period (if rtcp on)')
sip_pro_dialplan_regexp = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 49), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProDialplanRegexp.setStatus('current')
if mibBuilder.loadTexts:
sipProDialplanRegexp.setDescription('The regular expression for dialplan')
sip_pro_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 50), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
sipProRowStatus.setStatus('current')
if mibBuilder.loadTexts:
sipProRowStatus.setDescription('RowStatus')
sip_pro_keep_alive_mode = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 51), keep_alive_mode_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProKeepAliveMode.setStatus('current')
if mibBuilder.loadTexts:
sipProKeepAliveMode.setDescription(' ')
sip_pro_keep_alive_interval = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 52), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProKeepAliveInterval.setStatus('current')
if mibBuilder.loadTexts:
sipProKeepAliveInterval.setDescription('sec')
sip_pro_conference_mode = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 53), conference_mode()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProConferenceMode.setStatus('current')
if mibBuilder.loadTexts:
sipProConferenceMode.setDescription(' ')
sip_pro_conference_server = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 54), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProConferenceServer.setStatus('current')
if mibBuilder.loadTexts:
sipProConferenceServer.setDescription(' ')
sip_pro_ims_enable = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 55), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProImsEnable.setStatus('current')
if mibBuilder.loadTexts:
sipProImsEnable.setDescription(' ')
sip_pro_xcap_callhold_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 56), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProXcapCallholdName.setStatus('current')
if mibBuilder.loadTexts:
sipProXcapCallholdName.setDescription(' ')
sip_pro_xcap_cw_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 57), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProXcapCwName.setStatus('current')
if mibBuilder.loadTexts:
sipProXcapCwName.setDescription(' ')
sip_pro_xcap_conference_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 58), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProXcapConferenceName.setStatus('current')
if mibBuilder.loadTexts:
sipProXcapConferenceName.setDescription(' ')
sip_pro_xcap_hotline_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 2, 1, 59), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sipProXcapHotlineName.setStatus('current')
if mibBuilder.loadTexts:
sipProXcapHotlineName.setDescription(' ')
sip_profiles_mib_boundary = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 3, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sipProfilesMIBBoundary.setStatus('current')
if mibBuilder.loadTexts:
sipProfilesMIBBoundary.setDescription('Dummy object to prevent GETNEXT request from poking into neighbor table.')
groups_config = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4))
hunt_group_table = mib_table((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1))
if mibBuilder.loadTexts:
huntGroupTable.setStatus('current')
if mibBuilder.loadTexts:
huntGroupTable.setDescription(' ')
hunt_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1)).setIndexNames((0, 'ELTEX-TAU8', 'huntGrIndex'))
if mibBuilder.loadTexts:
huntGroupEntry.setStatus('current')
if mibBuilder.loadTexts:
huntGroupEntry.setDescription(' ')
hunt_gr_index = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 1), integer32())
if mibBuilder.loadTexts:
huntGrIndex.setStatus('current')
if mibBuilder.loadTexts:
huntGrIndex.setDescription('Hunt group index (from 1)')
hunt_gr_enable = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 2), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrEnable.setStatus('current')
if mibBuilder.loadTexts:
huntGrEnable.setDescription('Enable group')
hunt_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGroupName.setStatus('current')
if mibBuilder.loadTexts:
huntGroupName.setDescription('Group name')
hunt_gr_sip_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrSipProfileId.setStatus('current')
if mibBuilder.loadTexts:
huntGrSipProfileId.setDescription('SIP profile')
hunt_gr_phone = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrPhone.setStatus('current')
if mibBuilder.loadTexts:
huntGrPhone.setDescription('Phone')
hunt_gr_registration = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 6), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrRegistration.setStatus('current')
if mibBuilder.loadTexts:
huntGrRegistration.setDescription('Registration')
hunt_gr_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrUserName.setStatus('current')
if mibBuilder.loadTexts:
huntGrUserName.setDescription('User Name')
hunt_gr_password = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrPassword.setStatus('current')
if mibBuilder.loadTexts:
huntGrPassword.setDescription('Password')
hunt_gr_type = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 9), group_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrType.setStatus('current')
if mibBuilder.loadTexts:
huntGrType.setDescription('Type of group (group(0),serial(1),cyclic(2))')
hunt_gr_call_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 10), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrCallQueueSize.setStatus('current')
if mibBuilder.loadTexts:
huntGrCallQueueSize.setDescription('Call queue size')
hunt_gr_waiting_time = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 11), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrWaitingTime.setStatus('current')
if mibBuilder.loadTexts:
huntGrWaitingTime.setDescription('Call reply timeout, sec')
hunt_gr_sip_port = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrSipPort.setStatus('current')
if mibBuilder.loadTexts:
huntGrSipPort.setDescription('SIP Port of group')
hunt_gr_pickup_enable = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 13), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrPickupEnable.setStatus('current')
if mibBuilder.loadTexts:
huntGrPickupEnable.setDescription('Group call pickup enable')
hunt_gr_ports = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 14), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
huntGrPorts.setStatus('current')
if mibBuilder.loadTexts:
huntGrPorts.setDescription('List of the ports in the group')
hunt_gr_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 1, 1, 15), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
huntGrRowStatus.setStatus('current')
if mibBuilder.loadTexts:
huntGrRowStatus.setDescription('RowStatus')
hunt_groups_mib_boundary = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 4, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
huntGroupsMIBBoundary.setStatus('current')
if mibBuilder.loadTexts:
huntGroupsMIBBoundary.setDescription('Dummy object to prevent GETNEXT request from poking into neighbor table.')
supp_services = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5))
dvo_cfu_prefix = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dvoCfuPrefix.setStatus('current')
if mibBuilder.loadTexts:
dvoCfuPrefix.setDescription('Unconditional forward')
dvo_cfb_prefix = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dvoCfbPrefix.setStatus('current')
if mibBuilder.loadTexts:
dvoCfbPrefix.setDescription('CT busy')
dvo_cfna_prefix = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dvoCfnaPrefix.setStatus('current')
if mibBuilder.loadTexts:
dvoCfnaPrefix.setDescription('CT noanswer')
dvo_call_pickup_prefix = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dvoCallPickupPrefix.setStatus('current')
if mibBuilder.loadTexts:
dvoCallPickupPrefix.setDescription('Permit to pickup incoming calls')
dvo_hot_number_prefix = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dvoHotNumberPrefix.setStatus('current')
if mibBuilder.loadTexts:
dvoHotNumberPrefix.setDescription('Hotline')
dvo_callwaiting_prefix = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 6), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dvoCallwaitingPrefix.setStatus('current')
if mibBuilder.loadTexts:
dvoCallwaitingPrefix.setDescription('Callwaiting')
dvo_dnd_prefix = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 1, 5, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dvoDndPrefix.setStatus('current')
if mibBuilder.loadTexts:
dvoDndPrefix.setDescription('DND')
network_config = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2))
snmp_config = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1))
snmp_ro_community = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpRoCommunity.setStatus('current')
if mibBuilder.loadTexts:
snmpRoCommunity.setDescription('roCommunity')
snmp_rw_community = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpRwCommunity.setStatus('current')
if mibBuilder.loadTexts:
snmpRwCommunity.setDescription('rwCommunity')
snmp_trapsink = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpTrapsink.setStatus('current')
if mibBuilder.loadTexts:
snmpTrapsink.setDescription('TrapSink, usage: HOST [COMMUNITY [PORT]]')
snmp_trap2sink = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpTrap2sink.setStatus('current')
if mibBuilder.loadTexts:
snmpTrap2sink.setDescription('Trap2Sink, usage: HOST [COMMUNITY [PORT]]')
snmp_informsink = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpInformsink.setStatus('current')
if mibBuilder.loadTexts:
snmpInformsink.setDescription('InformSink, usage: HOST [COMMUNITY [PORT]]')
snmp_sysname = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 6), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpSysname.setStatus('current')
if mibBuilder.loadTexts:
snmpSysname.setDescription('System name')
snmp_syscontact = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpSyscontact.setStatus('current')
if mibBuilder.loadTexts:
snmpSyscontact.setDescription('System contact')
snmp_syslocation = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpSyslocation.setStatus('current')
if mibBuilder.loadTexts:
snmpSyslocation.setDescription('System location')
snmp_trap_community = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 2, 1, 9), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpTrapCommunity.setStatus('current')
if mibBuilder.loadTexts:
snmpTrapCommunity.setDescription('TrapCommunity')
system_config = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3))
trace_config = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1))
trace_output = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 1), trace_output_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
traceOutput.setStatus('current')
if mibBuilder.loadTexts:
traceOutput.setDescription('Output trace to')
syslogd_ipaddr = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
syslogdIpaddr.setStatus('current')
if mibBuilder.loadTexts:
syslogdIpaddr.setDescription('Syslog server address')
syslogd_port = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
syslogdPort.setStatus('current')
if mibBuilder.loadTexts:
syslogdPort.setDescription('Syslog server port')
log_local_file = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logLocalFile.setStatus('current')
if mibBuilder.loadTexts:
logLocalFile.setDescription('Log file name')
log_local_size = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logLocalSize.setStatus('current')
if mibBuilder.loadTexts:
logLocalSize.setDescription('Log file size (kB)')
log_voip_pbx_enable = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 6), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logVoipPbxEnable.setStatus('current')
if mibBuilder.loadTexts:
logVoipPbxEnable.setDescription('VoIP trace enable')
log_voip_error = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 7), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logVoipError.setStatus('current')
if mibBuilder.loadTexts:
logVoipError.setDescription('Errors')
log_voip_warning = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 8), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logVoipWarning.setStatus('current')
if mibBuilder.loadTexts:
logVoipWarning.setDescription('Warnings')
log_voip_debug = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 9), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logVoipDebug.setStatus('current')
if mibBuilder.loadTexts:
logVoipDebug.setDescription('Debug')
log_voip_info = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 10), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logVoipInfo.setStatus('current')
if mibBuilder.loadTexts:
logVoipInfo.setDescription('Info')
log_voip_sip_level = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 9))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logVoipSipLevel.setStatus('current')
if mibBuilder.loadTexts:
logVoipSipLevel.setDescription('SIP trace level')
log_igmp_enable = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 3, 1, 12), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logIgmpEnable.setStatus('current')
if mibBuilder.loadTexts:
logIgmpEnable.setDescription('IGMP trace enable')
action_commands = mib_identifier((1, 3, 6, 1, 4, 1, 35265, 1, 55, 10))
action_save = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 10, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
actionSave.setStatus('current')
if mibBuilder.loadTexts:
actionSave.setDescription('set true(1) to save all config files')
action_reboot = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 55, 10, 2), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
actionReboot.setStatus('current')
if mibBuilder.loadTexts:
actionReboot.setDescription('set true(1) to reboot')
tau8_group = object_group((1, 3, 6, 1, 4, 1, 35265, 1, 55, 200)).setObjects(('ELTEX-TAU8', 'fxsPortsUseFxsProfile'), ('ELTEX-TAU8', 'fxsPortEnabled'), ('ELTEX-TAU8', 'fxsPortSipProfileId'), ('ELTEX-TAU8', 'fxsPortProfile'), ('ELTEX-TAU8', 'fxsPortPhone'), ('ELTEX-TAU8', 'fxsPortUsername'), ('ELTEX-TAU8', 'fxsPortAuthName'), ('ELTEX-TAU8', 'fxsPortAuthPass'), ('ELTEX-TAU8', 'fxsPortSipPort'), ('ELTEX-TAU8', 'fxsPortUseAltNumber'), ('ELTEX-TAU8', 'fxsPortAltNumber'), ('ELTEX-TAU8', 'fxsPortCpcRus'), ('ELTEX-TAU8', 'fxsPortMinOnhookTime'), ('ELTEX-TAU8', 'fxsPortMinFlash'), ('ELTEX-TAU8', 'fxsPortGainR'), ('ELTEX-TAU8', 'fxsPortGainT'), ('ELTEX-TAU8', 'fxsPortMinPulse'), ('ELTEX-TAU8', 'fxsPortInterdigit'), ('ELTEX-TAU8', 'fxsPortCallerId'), ('ELTEX-TAU8', 'fxsPortHangupTimeout'), ('ELTEX-TAU8', 'fxsPortRbTimeout'), ('ELTEX-TAU8', 'fxsPortBusyTimeout'), ('ELTEX-TAU8', 'fxsPortPolarityReverse'), ('ELTEX-TAU8', 'fxsPortCallTransfer'), ('ELTEX-TAU8', 'fxsPortCallWaiting'), ('ELTEX-TAU8', 'fxsPortDirectnumber'), ('ELTEX-TAU8', 'fxsPortStopDial'), ('ELTEX-TAU8', 'fxsPortHotLine'), ('ELTEX-TAU8', 'fxsPortHotNumber'), ('ELTEX-TAU8', 'fxsPortHotTimeout'), ('ELTEX-TAU8', 'fxsPortCtUnconditional'), ('ELTEX-TAU8', 'fxsPortCfuNumber'), ('ELTEX-TAU8', 'fxsPortCtBusy'), ('ELTEX-TAU8', 'fxsPortCfbNumber'), ('ELTEX-TAU8', 'fxsPortCtNoanswer'), ('ELTEX-TAU8', 'fxsPortCfnaNumber'), ('ELTEX-TAU8', 'fxsPortCtTimeout'), ('ELTEX-TAU8', 'fxsPortDndEnable'), ('ELTEX-TAU8', 'fxsPortRowStatus'), ('ELTEX-TAU8', 'fxsPortsMIBBoundary'), ('ELTEX-TAU8', 'fxsProfileName'), ('ELTEX-TAU8', 'fxsProfileMinOnhookTime'), ('ELTEX-TAU8', 'fxsProfileMinFlash'), ('ELTEX-TAU8', 'fxsProfileGainR'), ('ELTEX-TAU8', 'fxsProfileGainT'), ('ELTEX-TAU8', 'fxsProfileMinPulse'), ('ELTEX-TAU8', 'fxsProfileInterdigit'), ('ELTEX-TAU8', 'fxsProfileCallerId'), ('ELTEX-TAU8', 'fxsProfileHangupTimeout'), ('ELTEX-TAU8', 'fxsProfileRbTimeout'), ('ELTEX-TAU8', 'fxsProfileBusyTimeout'), ('ELTEX-TAU8', 'fxsProfilePolarityReverse'), ('ELTEX-TAU8', 'fxsProfileRowStatus'), ('ELTEX-TAU8', 'fxsProfilesMIBBoundary'), ('ELTEX-TAU8', 'sipCommonStunEnable'), ('ELTEX-TAU8', 'sipCommonStunServer'), ('ELTEX-TAU8', 'sipCommonStunInterval'), ('ELTEX-TAU8', 'sipCommonPublicIp'), ('ELTEX-TAU8', 'sipCommonNotUseNAPTR'), ('ELTEX-TAU8', 'sipCommonNotUseSRV'), ('ELTEX-TAU8', 'sipProfileName'), ('ELTEX-TAU8', 'sipProEnablesip'), ('ELTEX-TAU8', 'sipProRsrvMode'), ('ELTEX-TAU8', 'sipProProxyip'), ('ELTEX-TAU8', 'sipProRegistration'), ('ELTEX-TAU8', 'sipProRegistrarip'), ('ELTEX-TAU8', 'sipProProxyipRsrv1'), ('ELTEX-TAU8', 'sipProRegistrationRsrv1'), ('ELTEX-TAU8', 'sipProRegistraripRsrv1'), ('ELTEX-TAU8', 'sipProProxyipRsrv2'), ('ELTEX-TAU8', 'sipProRegistrationRsrv2'), ('ELTEX-TAU8', 'sipProRegistraripRsrv2'), ('ELTEX-TAU8', 'sipProProxyipRsrv3'), ('ELTEX-TAU8', 'sipProRegistrationRsrv3'), ('ELTEX-TAU8', 'sipProRegistraripRsrv3'), ('ELTEX-TAU8', 'sipProProxyipRsrv4'), ('ELTEX-TAU8', 'sipProRegistrationRsrv4'), ('ELTEX-TAU8', 'sipProRegistraripRsrv4'), ('ELTEX-TAU8', 'sipProRsrvCheckMethod'), ('ELTEX-TAU8', 'sipProRsrvKeepaliveTime'), ('ELTEX-TAU8', 'sipProDomain'), ('ELTEX-TAU8', 'sipProOutbound'), ('ELTEX-TAU8', 'sipProExpires'), ('ELTEX-TAU8', 'sipProRri'), ('ELTEX-TAU8', 'sipProDomainToReg'), ('ELTEX-TAU8', 'sipProEarlyMedia'), ('ELTEX-TAU8', 'sipProDisplayToReg'), ('ELTEX-TAU8', 'sipProRingback'), ('ELTEX-TAU8', 'sipProReduceSdpMediaCount'), ('ELTEX-TAU8', 'sipProOption100rel'), ('ELTEX-TAU8', 'sipProCodecOrder'), ('ELTEX-TAU8', 'sipProG711pte'), ('ELTEX-TAU8', 'sipProDtmfTransfer'), ('ELTEX-TAU8', 'sipProFaxDirection'), ('ELTEX-TAU8', 'sipProFaxTransfer1'), ('ELTEX-TAU8', 'sipProFaxTransfer2'), ('ELTEX-TAU8', 'sipProFaxTransfer3'), ('ELTEX-TAU8', 'sipProEnableInT38'), ('ELTEX-TAU8', 'sipProFlashTransfer'), ('ELTEX-TAU8', 'sipProFlashMime'), ('ELTEX-TAU8', 'sipProModem'), ('ELTEX-TAU8', 'sipProPayload'), ('ELTEX-TAU8', 'sipProSilenceDetector'), ('ELTEX-TAU8', 'sipProEchoCanceler'), ('ELTEX-TAU8', 'sipProRtcp'), ('ELTEX-TAU8', 'sipProRtcpTimer'), ('ELTEX-TAU8', 'sipProRtcpCount'), ('ELTEX-TAU8', 'sipProDialplanRegexp'), ('ELTEX-TAU8', 'sipProRowStatus'), ('ELTEX-TAU8', 'sipProKeepAliveMode'), ('ELTEX-TAU8', 'sipProKeepAliveInterval'), ('ELTEX-TAU8', 'sipProConferenceMode'), ('ELTEX-TAU8', 'sipProConferenceServer'), ('ELTEX-TAU8', 'sipProImsEnable'), ('ELTEX-TAU8', 'sipProXcapCallholdName'), ('ELTEX-TAU8', 'sipProXcapCwName'), ('ELTEX-TAU8', 'sipProXcapConferenceName'), ('ELTEX-TAU8', 'sipProXcapHotlineName'), ('ELTEX-TAU8', 'sipProfilesMIBBoundary'), ('ELTEX-TAU8', 'huntGrEnable'), ('ELTEX-TAU8', 'huntGroupName'), ('ELTEX-TAU8', 'huntGrSipProfileId'), ('ELTEX-TAU8', 'huntGrPhone'), ('ELTEX-TAU8', 'huntGrRegistration'), ('ELTEX-TAU8', 'huntGrUserName'), ('ELTEX-TAU8', 'huntGrPassword'), ('ELTEX-TAU8', 'huntGrType'), ('ELTEX-TAU8', 'huntGrCallQueueSize'), ('ELTEX-TAU8', 'huntGrWaitingTime'), ('ELTEX-TAU8', 'huntGrSipPort'), ('ELTEX-TAU8', 'huntGrPickupEnable'), ('ELTEX-TAU8', 'huntGrPorts'), ('ELTEX-TAU8', 'huntGrRowStatus'), ('ELTEX-TAU8', 'huntGroupsMIBBoundary'), ('ELTEX-TAU8', 'dvoCfuPrefix'), ('ELTEX-TAU8', 'dvoCfbPrefix'), ('ELTEX-TAU8', 'dvoCfnaPrefix'), ('ELTEX-TAU8', 'dvoCallPickupPrefix'), ('ELTEX-TAU8', 'dvoHotNumberPrefix'), ('ELTEX-TAU8', 'dvoCallwaitingPrefix'), ('ELTEX-TAU8', 'dvoDndPrefix'), ('ELTEX-TAU8', 'snmpRoCommunity'), ('ELTEX-TAU8', 'snmpRwCommunity'), ('ELTEX-TAU8', 'snmpTrapsink'), ('ELTEX-TAU8', 'snmpTrap2sink'), ('ELTEX-TAU8', 'snmpInformsink'), ('ELTEX-TAU8', 'snmpSysname'), ('ELTEX-TAU8', 'snmpSyscontact'), ('ELTEX-TAU8', 'snmpSyslocation'), ('ELTEX-TAU8', 'snmpTrapCommunity'), ('ELTEX-TAU8', 'traceOutput'), ('ELTEX-TAU8', 'syslogdIpaddr'), ('ELTEX-TAU8', 'syslogdPort'), ('ELTEX-TAU8', 'logLocalFile'), ('ELTEX-TAU8', 'logLocalSize'), ('ELTEX-TAU8', 'logVoipPbxEnable'), ('ELTEX-TAU8', 'logVoipError'), ('ELTEX-TAU8', 'logVoipWarning'), ('ELTEX-TAU8', 'logVoipDebug'), ('ELTEX-TAU8', 'logVoipInfo'), ('ELTEX-TAU8', 'logVoipSipLevel'), ('ELTEX-TAU8', 'logIgmpEnable'), ('ELTEX-TAU8', 'actionReboot'), ('ELTEX-TAU8', 'actionSave'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
tau8_group = tau8Group.setStatus('current')
if mibBuilder.loadTexts:
tau8Group.setDescription(' ')
mibBuilder.exportSymbols('ELTEX-TAU8', GroupType=GroupType, sipProRegistraripRsrv1=sipProRegistraripRsrv1, sipProFaxTransfer3=sipProFaxTransfer3, sipProRtcpTimer=sipProRtcpTimer, traceConfig=traceConfig, ConferenceMode=ConferenceMode, sipProRegistrationRsrv2=sipProRegistrationRsrv2, actionCommands=actionCommands, sipProRegistration=sipProRegistration, dvoCallPickupPrefix=dvoCallPickupPrefix, sipProEarlyMedia=sipProEarlyMedia, logVoipPbxEnable=logVoipPbxEnable, sipProDomainToReg=sipProDomainToReg, FlashtransferType=FlashtransferType, fxsPortProfile=fxsPortProfile, fxsPortSipPort=fxsPortSipPort, sipProfileEntry=sipProfileEntry, sipProOutbound=sipProOutbound, fxsPortGainT=fxsPortGainT, snmpRoCommunity=snmpRoCommunity, fxsPortGainR=fxsPortGainR, snmpTrapsink=snmpTrapsink, sipProModem=sipProModem, snmpTrapCommunity=snmpTrapCommunity, sipProFaxTransfer2=sipProFaxTransfer2, snmpConfig=snmpConfig, sipProRegistrationRsrv3=sipProRegistrationRsrv3, fxsPortDndEnable=fxsPortDndEnable, sipProReduceSdpMediaCount=sipProReduceSdpMediaCount, traceOutput=traceOutput, TraceOutputType=TraceOutputType, RsrvModeType=RsrvModeType, fxsPortHotLine=fxsPortHotLine, sipProDomain=sipProDomain, huntGrCallQueueSize=huntGrCallQueueSize, logVoipError=logVoipError, sipProExpires=sipProExpires, sipProProxyipRsrv4=sipProProxyipRsrv4, fxsPortCfbNumber=fxsPortCfbNumber, huntGrEnable=huntGrEnable, CallTransferType=CallTransferType, logIgmpEnable=logIgmpEnable, fxsProfilesMIBBoundary=fxsProfilesMIBBoundary, sipProConferenceServer=sipProConferenceServer, tau8Group=tau8Group, fxsPortInterdigit=fxsPortInterdigit, fxsPortRowStatus=fxsPortRowStatus, sipProFlashMime=sipProFlashMime, sipProXcapConferenceName=sipProXcapConferenceName, suppServices=suppServices, fxsProfileCallerId=fxsProfileCallerId, RsrvCheckMethodType=RsrvCheckMethodType, EarlyMediaType=EarlyMediaType, fxsPortCallTransfer=fxsPortCallTransfer, sipProRegistraripRsrv4=sipProRegistraripRsrv4, huntGrSipProfileId=huntGrSipProfileId, networkConfig=networkConfig, dvoHotNumberPrefix=dvoHotNumberPrefix, fxsPortMinOnhookTime=fxsPortMinOnhookTime, snmpSysname=snmpSysname, FaxtransferType=FaxtransferType, fxsProfileRowStatus=fxsProfileRowStatus, sipProRowStatus=sipProRowStatus, systemConfig=systemConfig, fxsProfileRbTimeout=fxsProfileRbTimeout, fxsPortPhone=fxsPortPhone, fxsPortSipProfileId=fxsPortSipProfileId, fxsPortDirectnumber=fxsPortDirectnumber, fxsPortMinPulse=fxsPortMinPulse, fxsPortHotNumber=fxsPortHotNumber, CallerIdType=CallerIdType, huntGrUserName=huntGrUserName, sipProRegistraripRsrv3=sipProRegistraripRsrv3, sipProXcapHotlineName=sipProXcapHotlineName, fxsProfileTable=fxsProfileTable, actionReboot=actionReboot, ModemType=ModemType, fxsProfilePolarityReverse=fxsProfilePolarityReverse, sipProDialplanRegexp=sipProDialplanRegexp, sipProImsEnable=sipProImsEnable, sipProProxyipRsrv2=sipProProxyipRsrv2, fxsPortCtNoanswer=fxsPortCtNoanswer, fxsProfileGainR=fxsProfileGainR, sipProRegistrationRsrv4=sipProRegistrationRsrv4, sipProProxyipRsrv3=sipProProxyipRsrv3, huntGrPorts=huntGrPorts, huntGrWaitingTime=huntGrWaitingTime, sipProProxyipRsrv1=sipProProxyipRsrv1, fxsPortMinFlash=fxsPortMinFlash, sipCommonStunInterval=sipCommonStunInterval, dvoCfnaPrefix=dvoCfnaPrefix, snmpTrap2sink=snmpTrap2sink, sipCommonStunServer=sipCommonStunServer, fxsProfileName=fxsProfileName, fxsPortBusyTimeout=fxsPortBusyTimeout, snmpSyscontact=snmpSyscontact, huntGroupName=huntGroupName, sipProfileIndex=sipProfileIndex, actionSave=actionSave, sipProRingback=sipProRingback, logVoipSipLevel=logVoipSipLevel, logVoipDebug=logVoipDebug, sipProRtcp=sipProRtcp, fxsProfiles=fxsProfiles, sipProRegistraripRsrv2=sipProRegistraripRsrv2, huntGroupEntry=huntGroupEntry, fxsPortUseAltNumber=fxsPortUseAltNumber, sipProRsrvKeepaliveTime=sipProRsrvKeepaliveTime, sipProKeepAliveMode=sipProKeepAliveMode, OutboundType=OutboundType, huntGrRegistration=huntGrRegistration, fxsPortCtBusy=fxsPortCtBusy, fxsProfileInterdigit=fxsProfileInterdigit, sipProDtmfTransfer=sipProDtmfTransfer, logVoipInfo=logVoipInfo, fxsPortHotTimeout=fxsPortHotTimeout, fxsProfileEntry=fxsProfileEntry, fxsPorts=fxsPorts, fxsPortCtTimeout=fxsPortCtTimeout, logVoipWarning=logVoipWarning, fxsPortRbTimeout=fxsPortRbTimeout, huntGrPickupEnable=huntGrPickupEnable, snmpInformsink=snmpInformsink, fxsPortTable=fxsPortTable, fxsPortHangupTimeout=fxsPortHangupTimeout, sipProRri=sipProRri, sipCommonNotUseNAPTR=sipCommonNotUseNAPTR, huntGrIndex=huntGrIndex, sipProRtcpCount=sipProRtcpCount, fxsPortCfnaNumber=fxsPortCfnaNumber, fxsPortEntry=fxsPortEntry, sipProRsrvCheckMethod=sipProRsrvCheckMethod, fxsProfileMinOnhookTime=fxsProfileMinOnhookTime, huntGrRowStatus=huntGrRowStatus, sipCommon=sipCommon, sipCommonPublicIp=sipCommonPublicIp, PYSNMP_MODULE_ID=tau8, huntGroupsMIBBoundary=huntGroupsMIBBoundary, sipProSilenceDetector=sipProSilenceDetector, fxsPortCfuNumber=fxsPortCfuNumber, fxsProfileIndex=fxsProfileIndex, sipProDisplayToReg=sipProDisplayToReg, sipProEnableInT38=sipProEnableInT38, huntGrPhone=huntGrPhone, fxsPortCpcRus=fxsPortCpcRus, fxsPortCallerId=fxsPortCallerId, groupsConfig=groupsConfig, fxsPortsMIBBoundary=fxsPortsMIBBoundary, fxsPortAltNumber=fxsPortAltNumber, sipCommonNotUseSRV=sipCommonNotUseSRV, tau8=tau8, fxsPortStopDial=fxsPortStopDial, sipProEnablesip=sipProEnablesip, sipProXcapCallholdName=sipProXcapCallholdName, huntGrSipPort=huntGrSipPort, sipProFaxDirection=sipProFaxDirection, fxsPortPolarityReverse=fxsPortPolarityReverse, sipProKeepAliveInterval=sipProKeepAliveInterval, Option100relType=Option100relType, syslogdPort=syslogdPort, sipProFlashTransfer=sipProFlashTransfer, huntGroupTable=huntGroupTable, sipProConferenceMode=sipProConferenceMode, FaxDirectionType=FaxDirectionType, KeepAliveModeType=KeepAliveModeType, sipProRsrvMode=sipProRsrvMode, huntGrType=huntGrType, sipProXcapCwName=sipProXcapCwName, fxsProfileBusyTimeout=fxsProfileBusyTimeout, syslogdIpaddr=syslogdIpaddr, fxsPortAuthName=fxsPortAuthName, sipProCodecOrder=sipProCodecOrder, sipProfileName=sipProfileName, logLocalSize=logLocalSize, DtmfTransferType=DtmfTransferType, logLocalFile=logLocalFile, fxsPortsUseFxsProfile=fxsPortsUseFxsProfile, sipProProxyip=sipProProxyip, fxsProfileHangupTimeout=fxsProfileHangupTimeout, huntGrPassword=huntGrPassword, sipProfilesMIBBoundary=sipProfilesMIBBoundary, snmpSyslocation=snmpSyslocation, fxsPortUsername=fxsPortUsername, fxsPortCtUnconditional=fxsPortCtUnconditional, dvoCfbPrefix=dvoCfbPrefix, fxsProfileMinFlash=fxsProfileMinFlash, sipProPayload=sipProPayload, sipCommonStunEnable=sipCommonStunEnable, fxsPortCallWaiting=fxsPortCallWaiting, sipProOption100rel=sipProOption100rel, dvoCfuPrefix=dvoCfuPrefix, sipProRegistrationRsrv1=sipProRegistrationRsrv1, fxsProfileGainT=fxsProfileGainT, fxsPortEnabled=fxsPortEnabled, fxsProfileMinPulse=fxsProfileMinPulse, sipConfig=sipConfig, sipProEchoCanceler=sipProEchoCanceler, pbxConfig=pbxConfig, fxsPortIndex=fxsPortIndex, fxsPortAuthPass=fxsPortAuthPass, dvoCallwaitingPrefix=dvoCallwaitingPrefix, snmpRwCommunity=snmpRwCommunity, dvoDndPrefix=dvoDndPrefix, sipProRegistrarip=sipProRegistrarip, sipProFaxTransfer1=sipProFaxTransfer1, sipProG711pte=sipProG711pte, FlashMimeType=FlashMimeType, sipProfileTable=sipProfileTable) |
class DatabaseConfig:
def __init__(self,
driver: str = None,
host: str = None,
database: str = None,
username: str = None,
password: str = None,
):
self.driver = driver
self.host = host
self.database = database
self.username = username
self.password = password
| class Databaseconfig:
def __init__(self, driver: str=None, host: str=None, database: str=None, username: str=None, password: str=None):
self.driver = driver
self.host = host
self.database = database
self.username = username
self.password = password |
names = ['wangfan','wagfan1','wangfan2']
for name in names:
print(name)
for value in range(1,5):
print(value)
numbers = list(range(1,6))
print(numbers)
even_number = list(range(2,11,2))
print(even_number)
squers = []
for value in range(1,11):
squers.append(value ** 2)
print(squers)
print(min(squers))
print(max(squers))
print(sum(squers)) | names = ['wangfan', 'wagfan1', 'wangfan2']
for name in names:
print(name)
for value in range(1, 5):
print(value)
numbers = list(range(1, 6))
print(numbers)
even_number = list(range(2, 11, 2))
print(even_number)
squers = []
for value in range(1, 11):
squers.append(value ** 2)
print(squers)
print(min(squers))
print(max(squers))
print(sum(squers)) |
class CalibrationProcess:
def __init__(self, calibrator_factory):
if calibrator_factory is None:
raise TypeError('calibrator_factory')
self._calibrator_factory = calibrator_factory
def calibrate(self):
calibrate_another = True
while calibrate_another:
while True:
ready = input('Is the device connected and ready for calibration; [y]es, [n]o or [q]uit ? ')
if ready in ('q', 'Q'):
calibrate_another = False
break
elif ready in ('y', 'Y'):
break
else:
print('Enter [y] to start device calibration, or [q] to quit.')
if calibrate_another:
calibrator = self._calibrator_factory()
if calibrator is None:
raise TypeError('calibrator')
calibrator.calibrate()
| class Calibrationprocess:
def __init__(self, calibrator_factory):
if calibrator_factory is None:
raise type_error('calibrator_factory')
self._calibrator_factory = calibrator_factory
def calibrate(self):
calibrate_another = True
while calibrate_another:
while True:
ready = input('Is the device connected and ready for calibration; [y]es, [n]o or [q]uit ? ')
if ready in ('q', 'Q'):
calibrate_another = False
break
elif ready in ('y', 'Y'):
break
else:
print('Enter [y] to start device calibration, or [q] to quit.')
if calibrate_another:
calibrator = self._calibrator_factory()
if calibrator is None:
raise type_error('calibrator')
calibrator.calibrate() |
level = 3
name = 'Soreang'
capital = 'Soreang'
area = 25.51
| level = 3
name = 'Soreang'
capital = 'Soreang'
area = 25.51 |
class Solution:
def findMaxConsecutiveOnes(self, nums: List[int]) -> int:
# https://leetcode.com/problems/max-consecutive-ones/
maxLength = 0
curLength = 0
for n in nums:
if n == 1:
curLength = curLength + 1
else:
curLength = 0
maxLength = max(curLength, maxLength)
return maxLength | class Solution:
def find_max_consecutive_ones(self, nums: List[int]) -> int:
max_length = 0
cur_length = 0
for n in nums:
if n == 1:
cur_length = curLength + 1
else:
cur_length = 0
max_length = max(curLength, maxLength)
return maxLength |
def get_book_by_osis_id(id):
"""
Retrieves book meta data
:param id: the osis book id
:return:
"""
sort = find_key(id, osis_ids)
return get_book_by_sort(sort)
def get_book_by_sort(sort):
"""
Retrieves book metadata
:param sort: the sort order of the book to look up
:return:
"""
if sort in osis_ids and sort in usfm_ids and sort in en_names:
return {
'osis_id': osis_ids[sort],
'usfm_id': usfm_ids[sort],
'en_name': en_names[sort],
'sort': sort
}
return None
def find_key(value, dict):
"""
Looks up the key for the case insensitive value
:param value:
:return:
"""
for k, v in dict.iteritems():
if v.lower() == value.lower():
return k
osis_ids = {
# OT
'01':'Gen',
'02':'Exod',
'03':'Lev',
'04':'Num',
'05':'Deut',
'06':'Josh',
'07':'Judg',
'08':'Ruth',
'09':'1Sam',
'10':'2Sam',
'11':'1Kgs',
'12':'2Kgs',
'13':'1Chr',
'14':'2Chr',
'15':'Ezra',
'16':'Neh',
'17':'Esth',
'18':'Job',
'19':'Ps',
'20':'Prov',
'21':'Eccl',
'22':'Song',
'23':'Isa',
'24':'Jer',
'25':'Lam',
'26':'Ezek',
'27':'Dan',
'28':'Hos',
'29':'Joel',
'30':'Amos',
'31':'Obad',
'32':'Jonah',
'33':'Mic',
'34':'Nah',
'35':'Hab',
'36':'Zeph',
'37':'Hag',
'38':'Zech',
'39':'Mal',
# NT
'41':'Matt',
'42':'Mark',
'43':'Luke',
'44':'John',
'45':'Acts',
'46':'Rom',
'47':'1Cor',
'48':'2Cor',
'49':'Gal',
'50':'Eph',
'51':'Phil',
'52':'Col',
'53':'1Thess',
'54':'2Thess',
'55':'1Tim',
'56':'2Tim',
'57':'Titus',
'58':'Phlm',
'59':'Heb',
'60':'Jas',
'61':'1Pet',
'62':'2Pet',
'63':'1John',
'64':'2John',
'65':'3John',
'66':'Jude',
'67':'Rev'
}
usfm_ids = {
# OT
'01': 'GEN',
'02': 'EXO',
'03': 'LEV',
'04': 'NUM',
'05': 'DEU',
'06': 'JOS',
'07': 'JDG',
'08': 'RUT',
'09': '1SA',
'10': '2SA',
'11': '1KI',
'12': '2KI',
'13': '1CH',
'14': '2CH',
'15': 'EZR',
'16': 'NEH',
'17': 'EST',
'18': 'JOB',
'19': 'PSA',
'20': 'PRO',
'21': 'ECC',
'22': 'SNG',
'23': 'ISA',
'24': 'JER',
'25': 'LAM',
'26': 'EZK',
'27': 'DAN',
'28': 'HOS',
'29': 'JOL',
'30': 'AMO',
'31': 'OBA',
'32': 'JON',
'33': 'MIC',
'34': 'NAM',
'35': 'HAB',
'36': 'ZEP',
'37': 'HAG',
'38': 'ZEC',
'39': 'MAL',
# NT
'41': 'MAT',
'42': 'MRK',
'43': 'LUK',
'44': 'JHN',
'45': 'ACT',
'46': 'ROM',
'47': '1CO',
'48': '2CO',
'49': 'GAL',
'50': 'EPH',
'51': 'PHP',
'52': 'COL',
'53': '1TH',
'54': '2TH',
'55': '1TI',
'56': '2TI',
'57': 'TIT',
'58': 'PHM',
'59': 'HEB',
'60': 'JAS',
'61': '1PE',
'62': '2PE',
'63': '1JN',
'64': '2JN',
'65': '3JN',
'66': 'JUD',
'67': 'REV',
# APO/DEUT
'68': 'TOB',
'69': 'JDT',
'70': 'ESG',
'71': 'WIS',
'72': 'SIR',
'73': 'BAR',
'74': 'LJE',
'75': 'S3Y',
'76': 'SUS',
'77': 'BEL',
'78': '1MA',
'79': '2MA',
'80': '3MA',
'81': '4MA',
'82': '1ES',
'83': '2ES',
'84': 'MAN',
'85': 'PS2',
'86': 'ODA',
'87': 'PSS',
'A4': 'EZA',
'A5': '5EZ',
'A6': '6EZ',
'B2': 'DAG',
'B3': 'PS3',
'B4': '2BA',
'B5': 'LBA',
'B6': 'JUB',
'B7': 'ENO',
'B8': '1MQ',
'B9': '2MQ',
'C0': '3MQ',
'C1': 'REP',
'C2': '4BA',
'C3': 'LAO',
'A0': 'FRT',
'A1': 'BAK',
'A2': 'OTH',
'A7': 'INT',
'A8': 'CNC',
'A9': 'GLO',
'B0': 'TDX',
'B1': 'NDX'
}
en_names = {
'01':'Genesis',
'02':'Exodus',
'03':'Leviticus',
'04':'Numbers',
'05':'Deuteronomy',
'06':'Joshua',
'07':'Judges',
'08':'Ruth',
'09':'1 Samuel',
'10':'2 Samuel',
'11':'1 Kings',
'12':'2 Kings',
'13':'1 Chronicles',
'14':'2 Chronicles',
'15':'Ezra',
'16':'Nehemiah',
'17':'Esther (Hebrew)',
'18':'Job',
'19':'Psalms',
'20':'Proverbs',
'21':'Ecclesiastes',
'22':'Song of Songs',
'23':'Isaiah',
'24':'Jeremiah',
'25':'Lamentations',
'26':'Ezekiel',
'27':'Daniel (Hebrew)',
'28':'Hosea',
'29':'Joel',
'30':'Amos',
'31':'Obadiah',
'32':'Jonah',
'33':'Micah',
'34':'Nahum',
'35':'Habakkuk',
'36':'Zephaniah',
'37':'Haggai',
'38':'Zechariah',
'39':'Malachi',
'41':'Matthew',
'42':'Mark',
'43':'Luke',
'44':'John',
'45':'Acts',
'46':'Romans',
'47':'1 Corinthians',
'48':'2 Corinthians',
'49':'Galatians',
'50':'Ephesians',
'51':'Philippians',
'52':'Colossians',
'53':'1 Thessalonians',
'54':'2 Thessalonians',
'55':'1 Timothy',
'56':'2 Timothy',
'57':'Titus',
'58':'Philemon',
'59':'Hebrews',
'60':'James',
'61':'1 Peter',
'62':'2 Peter',
'63':'1 John',
'64':'2 John',
'65':'3 John',
'66':'Jude',
'67':'Revelation',
'68':'Tobit',
'69':'Judith',
'70':'Esther Greek',
'71':'Wisdom of Solomon',
'72':'Sirach',
'73':'Baruch',
'74':'Letter of Jeremiah',
'75':'Song of the 3 Young Men',
'76':'Susanna',
'77':'Bel and the Dragon',
'78':'1 Maccabees',
'79':'2 Maccabees',
'80':'3 Maccabees',
'81':'4 Maccabees',
'82':'1 Esdras (Greek)',
'83':'2 Esdras (Latin)',
'84':'Prayer of Manasseh',
'85':'Psalm 151',
'86':'Odae/Odes',
'87':'Psalms of Solomon',
'A4':'Ezra Apocalypse',
'A5':'5 Ezra',
'A6':'6 Ezra',
'B2':'Daniel Greek',
'B3':'Psalms 152-155',
'B4':'2 Baruch (Apocalypse)',
'B5':'Letter of Baruch',
'B6':'Jubilees',
'B7':'Enoch',
'B8':'1 Meqabyan/Mekabis',
'B9':'2 Meqabyan/Mekabis',
'C0':'3 Meqabyan/Mekabis',
'C1':'Reproof',
'C2':'4 Baruch',
'C3':'Letter to the Laodiceans',
'A0':'Front Matter',
'A1':'Back Matter',
'A2':'Other Matter',
'A7':'Introduction Matter',
'A8':'Concordance',
'A9':'Glossary / Wordlist',
'B0':'Topical Index',
'B1':'Names Index'
} | def get_book_by_osis_id(id):
"""
Retrieves book meta data
:param id: the osis book id
:return:
"""
sort = find_key(id, osis_ids)
return get_book_by_sort(sort)
def get_book_by_sort(sort):
"""
Retrieves book metadata
:param sort: the sort order of the book to look up
:return:
"""
if sort in osis_ids and sort in usfm_ids and (sort in en_names):
return {'osis_id': osis_ids[sort], 'usfm_id': usfm_ids[sort], 'en_name': en_names[sort], 'sort': sort}
return None
def find_key(value, dict):
"""
Looks up the key for the case insensitive value
:param value:
:return:
"""
for (k, v) in dict.iteritems():
if v.lower() == value.lower():
return k
osis_ids = {'01': 'Gen', '02': 'Exod', '03': 'Lev', '04': 'Num', '05': 'Deut', '06': 'Josh', '07': 'Judg', '08': 'Ruth', '09': '1Sam', '10': '2Sam', '11': '1Kgs', '12': '2Kgs', '13': '1Chr', '14': '2Chr', '15': 'Ezra', '16': 'Neh', '17': 'Esth', '18': 'Job', '19': 'Ps', '20': 'Prov', '21': 'Eccl', '22': 'Song', '23': 'Isa', '24': 'Jer', '25': 'Lam', '26': 'Ezek', '27': 'Dan', '28': 'Hos', '29': 'Joel', '30': 'Amos', '31': 'Obad', '32': 'Jonah', '33': 'Mic', '34': 'Nah', '35': 'Hab', '36': 'Zeph', '37': 'Hag', '38': 'Zech', '39': 'Mal', '41': 'Matt', '42': 'Mark', '43': 'Luke', '44': 'John', '45': 'Acts', '46': 'Rom', '47': '1Cor', '48': '2Cor', '49': 'Gal', '50': 'Eph', '51': 'Phil', '52': 'Col', '53': '1Thess', '54': '2Thess', '55': '1Tim', '56': '2Tim', '57': 'Titus', '58': 'Phlm', '59': 'Heb', '60': 'Jas', '61': '1Pet', '62': '2Pet', '63': '1John', '64': '2John', '65': '3John', '66': 'Jude', '67': 'Rev'}
usfm_ids = {'01': 'GEN', '02': 'EXO', '03': 'LEV', '04': 'NUM', '05': 'DEU', '06': 'JOS', '07': 'JDG', '08': 'RUT', '09': '1SA', '10': '2SA', '11': '1KI', '12': '2KI', '13': '1CH', '14': '2CH', '15': 'EZR', '16': 'NEH', '17': 'EST', '18': 'JOB', '19': 'PSA', '20': 'PRO', '21': 'ECC', '22': 'SNG', '23': 'ISA', '24': 'JER', '25': 'LAM', '26': 'EZK', '27': 'DAN', '28': 'HOS', '29': 'JOL', '30': 'AMO', '31': 'OBA', '32': 'JON', '33': 'MIC', '34': 'NAM', '35': 'HAB', '36': 'ZEP', '37': 'HAG', '38': 'ZEC', '39': 'MAL', '41': 'MAT', '42': 'MRK', '43': 'LUK', '44': 'JHN', '45': 'ACT', '46': 'ROM', '47': '1CO', '48': '2CO', '49': 'GAL', '50': 'EPH', '51': 'PHP', '52': 'COL', '53': '1TH', '54': '2TH', '55': '1TI', '56': '2TI', '57': 'TIT', '58': 'PHM', '59': 'HEB', '60': 'JAS', '61': '1PE', '62': '2PE', '63': '1JN', '64': '2JN', '65': '3JN', '66': 'JUD', '67': 'REV', '68': 'TOB', '69': 'JDT', '70': 'ESG', '71': 'WIS', '72': 'SIR', '73': 'BAR', '74': 'LJE', '75': 'S3Y', '76': 'SUS', '77': 'BEL', '78': '1MA', '79': '2MA', '80': '3MA', '81': '4MA', '82': '1ES', '83': '2ES', '84': 'MAN', '85': 'PS2', '86': 'ODA', '87': 'PSS', 'A4': 'EZA', 'A5': '5EZ', 'A6': '6EZ', 'B2': 'DAG', 'B3': 'PS3', 'B4': '2BA', 'B5': 'LBA', 'B6': 'JUB', 'B7': 'ENO', 'B8': '1MQ', 'B9': '2MQ', 'C0': '3MQ', 'C1': 'REP', 'C2': '4BA', 'C3': 'LAO', 'A0': 'FRT', 'A1': 'BAK', 'A2': 'OTH', 'A7': 'INT', 'A8': 'CNC', 'A9': 'GLO', 'B0': 'TDX', 'B1': 'NDX'}
en_names = {'01': 'Genesis', '02': 'Exodus', '03': 'Leviticus', '04': 'Numbers', '05': 'Deuteronomy', '06': 'Joshua', '07': 'Judges', '08': 'Ruth', '09': '1 Samuel', '10': '2 Samuel', '11': '1 Kings', '12': '2 Kings', '13': '1 Chronicles', '14': '2 Chronicles', '15': 'Ezra', '16': 'Nehemiah', '17': 'Esther (Hebrew)', '18': 'Job', '19': 'Psalms', '20': 'Proverbs', '21': 'Ecclesiastes', '22': 'Song of Songs', '23': 'Isaiah', '24': 'Jeremiah', '25': 'Lamentations', '26': 'Ezekiel', '27': 'Daniel (Hebrew)', '28': 'Hosea', '29': 'Joel', '30': 'Amos', '31': 'Obadiah', '32': 'Jonah', '33': 'Micah', '34': 'Nahum', '35': 'Habakkuk', '36': 'Zephaniah', '37': 'Haggai', '38': 'Zechariah', '39': 'Malachi', '41': 'Matthew', '42': 'Mark', '43': 'Luke', '44': 'John', '45': 'Acts', '46': 'Romans', '47': '1 Corinthians', '48': '2 Corinthians', '49': 'Galatians', '50': 'Ephesians', '51': 'Philippians', '52': 'Colossians', '53': '1 Thessalonians', '54': '2 Thessalonians', '55': '1 Timothy', '56': '2 Timothy', '57': 'Titus', '58': 'Philemon', '59': 'Hebrews', '60': 'James', '61': '1 Peter', '62': '2 Peter', '63': '1 John', '64': '2 John', '65': '3 John', '66': 'Jude', '67': 'Revelation', '68': 'Tobit', '69': 'Judith', '70': 'Esther Greek', '71': 'Wisdom of Solomon', '72': 'Sirach', '73': 'Baruch', '74': 'Letter of Jeremiah', '75': 'Song of the 3 Young Men', '76': 'Susanna', '77': 'Bel and the Dragon', '78': '1 Maccabees', '79': '2 Maccabees', '80': '3 Maccabees', '81': '4 Maccabees', '82': '1 Esdras (Greek)', '83': '2 Esdras (Latin)', '84': 'Prayer of Manasseh', '85': 'Psalm 151', '86': 'Odae/Odes', '87': 'Psalms of Solomon', 'A4': 'Ezra Apocalypse', 'A5': '5 Ezra', 'A6': '6 Ezra', 'B2': 'Daniel Greek', 'B3': 'Psalms 152-155', 'B4': '2 Baruch (Apocalypse)', 'B5': 'Letter of Baruch', 'B6': 'Jubilees', 'B7': 'Enoch', 'B8': '1 Meqabyan/Mekabis', 'B9': '2 Meqabyan/Mekabis', 'C0': '3 Meqabyan/Mekabis', 'C1': 'Reproof', 'C2': '4 Baruch', 'C3': 'Letter to the Laodiceans', 'A0': 'Front Matter', 'A1': 'Back Matter', 'A2': 'Other Matter', 'A7': 'Introduction Matter', 'A8': 'Concordance', 'A9': 'Glossary / Wordlist', 'B0': 'Topical Index', 'B1': 'Names Index'} |
try:
age = int(input("Enter your age: "))
if (age > -1 and age < 101):
if (age >= 18):
print("Eligible for voting!")
else:
print("Not Eligible for Voting")
else:
print("Invalid Age!")
except:
print("You've entered invalid age")
| try:
age = int(input('Enter your age: '))
if age > -1 and age < 101:
if age >= 18:
print('Eligible for voting!')
else:
print('Not Eligible for Voting')
else:
print('Invalid Age!')
except:
print("You've entered invalid age") |
# pysam versioning information
__version__ = "0.16.0.1"
__samtools_version__ = "1.10"
__bcftools_version__ = "1.10.2"
__htslib_version__ = "1.10.2"
| __version__ = '0.16.0.1'
__samtools_version__ = '1.10'
__bcftools_version__ = '1.10.2'
__htslib_version__ = '1.10.2' |
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
def envoy_py_test(name, package, visibility, envoy_prefix = "@envoy"):
filepath = "$(location %s//tools/testing:base_pytest_runner.py)" % envoy_prefix
output = "$(@D)/pytest_%s.py" % name
native.genrule(
name = "generate_pytest_" + name,
cmd = "sed s/_PACKAGE_NAME_/%s/ %s > \"%s\"" % (package, filepath, output),
tools = ["%s//tools/testing:base_pytest_runner.py" % envoy_prefix],
outs = ["pytest_%s.py" % name],
)
test_deps = [
":%s" % name,
]
if name != "python_pytest":
test_deps.append("%s//tools/testing:python_pytest" % envoy_prefix)
py_binary(
name = "pytest_%s" % name,
srcs = [
"pytest_%s.py" % name,
"tests/test_%s.py" % name,
],
data = [":generate_pytest_%s" % name],
deps = test_deps,
visibility = visibility,
)
def envoy_py_library(
name = None,
deps = [],
data = [],
visibility = ["//visibility:public"],
envoy_prefix = "",
test = True):
_parts = name.split(".")
package = ".".join(_parts[:-1])
name = _parts[-1]
py_library(
name = name,
srcs = ["%s.py" % name],
deps = deps,
data = data,
visibility = visibility,
)
if test:
envoy_py_test(name, package, visibility, envoy_prefix = envoy_prefix)
def envoy_py_binary(
name = None,
deps = [],
data = [],
visibility = ["//visibility:public"],
envoy_prefix = "@envoy",
test = True):
_parts = name.split(".")
package = ".".join(_parts[:-1])
name = _parts[-1]
py_binary(
name = name,
srcs = ["%s.py" % name],
deps = deps,
data = data,
visibility = visibility,
)
if test:
envoy_py_test(name, package, visibility, envoy_prefix = envoy_prefix)
def envoy_py_script(
name,
entry_point,
deps = [],
data = [],
visibility = ["//visibility:public"],
envoy_prefix = "@envoy"):
"""This generates a `py_binary` from an entry_point in a python package
Currently, the actual entrypoint callable is hard-coded to `main`.
For example, if you wish to make use of a `console_script` in an upstream
package that resolves as `envoy.code_format.python.command.main` from a
package named `envoy.code_format.python`, you can use this macro as
follows:
```skylark
envoy_py_script(
name = "tools.code_format.python",
entry_point = "envoy.code_format.python.command",
deps = [requirement("envoy.code_format.python")],
```
You will then be able to use the console script from bazel.
Separate args to be passed to the console_script with `--`, eg:
```console
$ bazel run //tools/code_format:python -- -h
```
"""
py_file = "%s.py" % name.split(".")[-1]
output = "$(@D)/%s" % py_file
template_rule = "%s//tools/base:base_command.py" % envoy_prefix
template = "$(location %s)" % template_rule
native.genrule(
name = "py_script_%s" % py_file,
cmd = "sed s/__UPSTREAM_PACKAGE__/%s/ %s > \"%s\"" % (entry_point, template, output),
tools = [template_rule],
outs = [py_file],
)
envoy_py_binary(
name = name,
deps = deps,
data = data,
visibility = visibility,
envoy_prefix = envoy_prefix,
test = False,
)
| load('@rules_python//python:defs.bzl', 'py_binary', 'py_library')
def envoy_py_test(name, package, visibility, envoy_prefix='@envoy'):
filepath = '$(location %s//tools/testing:base_pytest_runner.py)' % envoy_prefix
output = '$(@D)/pytest_%s.py' % name
native.genrule(name='generate_pytest_' + name, cmd='sed s/_PACKAGE_NAME_/%s/ %s > "%s"' % (package, filepath, output), tools=['%s//tools/testing:base_pytest_runner.py' % envoy_prefix], outs=['pytest_%s.py' % name])
test_deps = [':%s' % name]
if name != 'python_pytest':
test_deps.append('%s//tools/testing:python_pytest' % envoy_prefix)
py_binary(name='pytest_%s' % name, srcs=['pytest_%s.py' % name, 'tests/test_%s.py' % name], data=[':generate_pytest_%s' % name], deps=test_deps, visibility=visibility)
def envoy_py_library(name=None, deps=[], data=[], visibility=['//visibility:public'], envoy_prefix='', test=True):
_parts = name.split('.')
package = '.'.join(_parts[:-1])
name = _parts[-1]
py_library(name=name, srcs=['%s.py' % name], deps=deps, data=data, visibility=visibility)
if test:
envoy_py_test(name, package, visibility, envoy_prefix=envoy_prefix)
def envoy_py_binary(name=None, deps=[], data=[], visibility=['//visibility:public'], envoy_prefix='@envoy', test=True):
_parts = name.split('.')
package = '.'.join(_parts[:-1])
name = _parts[-1]
py_binary(name=name, srcs=['%s.py' % name], deps=deps, data=data, visibility=visibility)
if test:
envoy_py_test(name, package, visibility, envoy_prefix=envoy_prefix)
def envoy_py_script(name, entry_point, deps=[], data=[], visibility=['//visibility:public'], envoy_prefix='@envoy'):
"""This generates a `py_binary` from an entry_point in a python package
Currently, the actual entrypoint callable is hard-coded to `main`.
For example, if you wish to make use of a `console_script` in an upstream
package that resolves as `envoy.code_format.python.command.main` from a
package named `envoy.code_format.python`, you can use this macro as
follows:
```skylark
envoy_py_script(
name = "tools.code_format.python",
entry_point = "envoy.code_format.python.command",
deps = [requirement("envoy.code_format.python")],
```
You will then be able to use the console script from bazel.
Separate args to be passed to the console_script with `--`, eg:
```console
$ bazel run //tools/code_format:python -- -h
```
"""
py_file = '%s.py' % name.split('.')[-1]
output = '$(@D)/%s' % py_file
template_rule = '%s//tools/base:base_command.py' % envoy_prefix
template = '$(location %s)' % template_rule
native.genrule(name='py_script_%s' % py_file, cmd='sed s/__UPSTREAM_PACKAGE__/%s/ %s > "%s"' % (entry_point, template, output), tools=[template_rule], outs=[py_file])
envoy_py_binary(name=name, deps=deps, data=data, visibility=visibility, envoy_prefix=envoy_prefix, test=False) |
# generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Layer.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Packet.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Point.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Scan.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Sweep.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16ScanUnified.msg"
services_str = ""
pkg_name = "lslidar_c16_msgs"
dependencies_str = "std_msgs;sensor_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "lslidar_c16_msgs;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg;std_msgs;/opt/ros/melodic/share/std_msgs/cmake/../msg;sensor_msgs;/opt/ros/melodic/share/sensor_msgs/cmake/../msg;geometry_msgs;/opt/ros/melodic/share/geometry_msgs/cmake/../msg"
PYTHON_EXECUTABLE = "/usr/bin/python2"
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = "/opt/ros/melodic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
| messages_str = '/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Layer.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Packet.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Point.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Scan.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16Sweep.msg;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg/LslidarC16ScanUnified.msg'
services_str = ''
pkg_name = 'lslidar_c16_msgs'
dependencies_str = 'std_msgs;sensor_msgs'
langs = 'gencpp;geneus;genlisp;gennodejs;genpy'
dep_include_paths_str = 'lslidar_c16_msgs;/home/lzh/racecar_ws/src/lslidar_ws/src/lslidar_c16/lslidar_c16_msgs/msg;std_msgs;/opt/ros/melodic/share/std_msgs/cmake/../msg;sensor_msgs;/opt/ros/melodic/share/sensor_msgs/cmake/../msg;geometry_msgs;/opt/ros/melodic/share/geometry_msgs/cmake/../msg'
python_executable = '/usr/bin/python2'
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = '/opt/ros/melodic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py' |
"""
Example .csv file contents that should be parsable as a mapping, or should fail
Used in test_mapping.
"""
BASIC_MAPPING = r"""
## DESCRIPTION ##,,,
some comment by some person,,,
,,,,
## OPTIONS ##,,,
destination_path,\\someserver\share\folder1,,
pims_key,555,,
## MAPPING ##,,,
source,patient_id,patient_name,description
folder:/folder/file0,patient0,patientName0,test description
"""
# Lower case titles should not matter
BASIC_MAPPING_LOWER = r"""
## description ##,,,
some comment by some person,,,
,,,,
## options ##,,,
destination_path,\\someserver\share\folder1,,
pims_key,555,,
## Mapping ##,,,
source,patient_id,patient_name,description
folder:/folder/file0,patient0,patientName0,test description
"""
# After saving in excel with a locale with colon list separator.
# Tricky things here are colons and the empty lines with ;;; content
COLON_SEPARATED_MAPPING = r"""
## Description ##;;;
Mapping created September 09 2020 by user;;;
;;;
## Options ##;;;
root_source_path;C:\temp;;
project;Wetenschap-Algemeen;;
destination_path;\\server\share\folder;;
;;;
## Mapping ##;;;
source;patient_id;patient_name;description
folder:example\folder1;1;Patient1;All files from folder1
study_instance_uid:123.12121212.12345678;2;Patient2;A study which should be retrieved from PACS, identified by StudyInstanceUID
accession_number:12345678.1234567;3;Patient3;A study which should be retrieved from PACS, identified by AccessionNumber
fileselection:folder2\fileselection.txt;4;Patient4;A selection of files in folder2
"""
CAN_NOT_BE_PARSED_AS_MAPPING = [
# Missing description
r"""## Options ##
destination_path,\\someserver\share\folder1
pims_key,555
## Mapping ##
source,patient_id,patient_name,description
folder:/folder/file0,patient0,patientName0,test description
""",
# mistyped description
r"""
## Desc ##
some comment by some person
## options ##
destination_path,\\someserver\share\folder1
pims_key,555
## Mapping ##
source,patient_id,patient_name,description
folder:/folder/file0,patient0,patientName0,test description
""",
]
# Recreates #327, space on empty line under options will yield unneeded exception
BASIC_MAPPING_WITH_SPACE = r"""
## DESCRIPTION ##,,,
Has a space under options. This recreates #327,,,
,,,,
## OPTIONS ##,,,
,,,
destination_path,\\someserver\share\folder1,,
pims_key,555,,
## MAPPING ##,,,
source,patient_id,patient_name,description
folder:/folder/file0,patient0,patientName0,test description
"""
| """
Example .csv file contents that should be parsable as a mapping, or should fail
Used in test_mapping.
"""
basic_mapping = '\n## DESCRIPTION ##,,,\nsome comment by some person,,,\n,,,,\n## OPTIONS ##,,,\ndestination_path,\\\\someserver\\share\\folder1,,\npims_key,555,,\n## MAPPING ##,,,\nsource,patient_id,patient_name,description\nfolder:/folder/file0,patient0,patientName0,test description\n'
basic_mapping_lower = '\n## description ##,,,\nsome comment by some person,,,\n,,,,\n## options ##,,,\ndestination_path,\\\\someserver\\share\\folder1,,\npims_key,555,,\n## Mapping ##,,,\nsource,patient_id,patient_name,description\nfolder:/folder/file0,patient0,patientName0,test description\n'
colon_separated_mapping = '\n## Description ##;;;\nMapping created September 09 2020 by user;;;\n;;;\n## Options ##;;;\nroot_source_path;C:\\temp;;\nproject;Wetenschap-Algemeen;;\ndestination_path;\\\\server\\share\\folder;;\n;;;\n## Mapping ##;;;\nsource;patient_id;patient_name;description\nfolder:example\\folder1;1;Patient1;All files from folder1\nstudy_instance_uid:123.12121212.12345678;2;Patient2;A study which should be retrieved from PACS, identified by StudyInstanceUID\naccession_number:12345678.1234567;3;Patient3;A study which should be retrieved from PACS, identified by AccessionNumber\nfileselection:folder2\\fileselection.txt;4;Patient4;A selection of files in folder2\n'
can_not_be_parsed_as_mapping = ['## Options ##\ndestination_path,\\\\someserver\\share\\folder1\npims_key,555\n## Mapping ##\nsource,patient_id,patient_name,description\nfolder:/folder/file0,patient0,patientName0,test description\n', '\n## Desc ##\nsome comment by some person\n## options ##\ndestination_path,\\\\someserver\\share\\folder1\npims_key,555\n## Mapping ##\nsource,patient_id,patient_name,description\nfolder:/folder/file0,patient0,patientName0,test description\n']
basic_mapping_with_space = '\n## DESCRIPTION ##,,,\nHas a space under options. This recreates #327,,,\n,,,,\n## OPTIONS ##,,,\n ,,,\ndestination_path,\\\\someserver\\share\\folder1,,\npims_key,555,,\n## MAPPING ##,,,\nsource,patient_id,patient_name,description\nfolder:/folder/file0,patient0,patientName0,test description\n' |
# __init__.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Wed, Sep 1, 2021 5:05:55 PM
# Open GoPro API Versions to test
versions = ["1.0", "2.0"]
# Cameras to test. This assumes that a camera with the given name is advertising.
# TODO make these input parameters to pytest
cameras = {
"HERO9": "GoPro 0456",
"HERO10": "GoPro 0480",
}
| versions = ['1.0', '2.0']
cameras = {'HERO9': 'GoPro 0456', 'HERO10': 'GoPro 0480'} |
class ResponseQueue:
RESULT_SUCCESS = "success"
RESULT_FAILURE = "failure"
RESULT_CANCEL = "canceled"
CANCEL_RESULT_CANCELLING = "cancelling"
CANCEL_RESULT_FAILURE = RESULT_FAILURE
CANCEL_RESULT_FINISHED = "finished"
def __init__(self, queue):
self.queue = queue
def ack(self, playbook_run_id):
self.queue.put({"type": "playbook_run_ack", "playbook_run_id": playbook_run_id})
def playbook_run_update(self, host, playbook_run_id, output, sequence):
self.queue.put(
{
"type": "playbook_run_update",
"playbook_run_id": playbook_run_id,
"sequence": sequence,
"host": host,
"console": output,
}
)
def playbook_run_finished(self, host, playbook_run_id, result=RESULT_SUCCESS):
self.queue.put(
{
"type": "playbook_run_finished",
"playbook_run_id": playbook_run_id,
"host": host,
"status": result,
}
)
def playbook_run_cancel_ack(self, playbook_run_id, status):
self.queue.put(
{
"type": "playbook_run_cancel_ack",
"playbook_run_id": playbook_run_id,
"status": status,
}
)
| class Responsequeue:
result_success = 'success'
result_failure = 'failure'
result_cancel = 'canceled'
cancel_result_cancelling = 'cancelling'
cancel_result_failure = RESULT_FAILURE
cancel_result_finished = 'finished'
def __init__(self, queue):
self.queue = queue
def ack(self, playbook_run_id):
self.queue.put({'type': 'playbook_run_ack', 'playbook_run_id': playbook_run_id})
def playbook_run_update(self, host, playbook_run_id, output, sequence):
self.queue.put({'type': 'playbook_run_update', 'playbook_run_id': playbook_run_id, 'sequence': sequence, 'host': host, 'console': output})
def playbook_run_finished(self, host, playbook_run_id, result=RESULT_SUCCESS):
self.queue.put({'type': 'playbook_run_finished', 'playbook_run_id': playbook_run_id, 'host': host, 'status': result})
def playbook_run_cancel_ack(self, playbook_run_id, status):
self.queue.put({'type': 'playbook_run_cancel_ack', 'playbook_run_id': playbook_run_id, 'status': status}) |
#coding: utf-8
BASE = ''
routes_in = (
(BASE + '/index', BASE + '/kolaborativa/default/index'),
(BASE + '/principal', BASE + '/kolaborativa/default/principal'),
(BASE + '/user/$anything', BASE + '/kolaborativa/default/user/$anything'),
(BASE + '/user_info/$anything', BASE + '/kolaborativa/default/user_info/$anything'),
(BASE + '/projects/$anything', BASE + '/kolaborativa/default/projects/$anything'),
(BASE + '/create_project', BASE + '/kolaborativa/default/create_project'),
(BASE + '/edit_project/$anything', BASE + '/kolaborativa/default/edit_project/$anything'),
(BASE + '/download/$anything', BASE + '/kolaborativa/default/download/$anything'),
(BASE + '/call/$anything', BASE + '/kolaborativa/default/call$anything'),
(BASE + '/call/json/$anything', BASE + '/kolaborativa/default/call/json/$anything'),
(BASE + '/data/$anything', BASE + '/kolaborativa/default/data/$anything'),
(BASE + '/search', BASE + '/kolaborativa/default/search.load'),
(BASE + '/results', BASE + '/kolaborativa/default/results'),
(BASE + '/$username', BASE + '/kolaborativa/default/user_info/$username'),
)
routes_out = [(x, y) for (y, x) in routes_in]
| base = ''
routes_in = ((BASE + '/index', BASE + '/kolaborativa/default/index'), (BASE + '/principal', BASE + '/kolaborativa/default/principal'), (BASE + '/user/$anything', BASE + '/kolaborativa/default/user/$anything'), (BASE + '/user_info/$anything', BASE + '/kolaborativa/default/user_info/$anything'), (BASE + '/projects/$anything', BASE + '/kolaborativa/default/projects/$anything'), (BASE + '/create_project', BASE + '/kolaborativa/default/create_project'), (BASE + '/edit_project/$anything', BASE + '/kolaborativa/default/edit_project/$anything'), (BASE + '/download/$anything', BASE + '/kolaborativa/default/download/$anything'), (BASE + '/call/$anything', BASE + '/kolaborativa/default/call$anything'), (BASE + '/call/json/$anything', BASE + '/kolaborativa/default/call/json/$anything'), (BASE + '/data/$anything', BASE + '/kolaborativa/default/data/$anything'), (BASE + '/search', BASE + '/kolaborativa/default/search.load'), (BASE + '/results', BASE + '/kolaborativa/default/results'), (BASE + '/$username', BASE + '/kolaborativa/default/user_info/$username'))
routes_out = [(x, y) for (y, x) in routes_in] |
x = int(input())
y = int(input())
range_xy = range(x+1, y)
if (x > y):
range_xy = range(y+1, x)
sum_xy = 0
for i in range_xy:
if i % 2 != 0:
sum_xy = sum_xy + i
print(sum_xy)
| x = int(input())
y = int(input())
range_xy = range(x + 1, y)
if x > y:
range_xy = range(y + 1, x)
sum_xy = 0
for i in range_xy:
if i % 2 != 0:
sum_xy = sum_xy + i
print(sum_xy) |
"""Types used in configuration module for Spark's performance tests."""
class OptionSet(object):
"""Represents an option and a set of values for it to sweep over."""
def __init__(self, name, vals, can_scale=False):
self.name = name
self.vals = vals
self.can_scale = can_scale
def scaled_vals(self, scale_factor):
"""If this class can_scale, then return scaled vals. Else return values as-is."""
if self.can_scale:
return [max(1, int(val * scale_factor)) for val in self.vals]
else:
return [val for val in self.vals]
def to_array(self, scale_factor = 1.0):
"""
Return array of strings each representing a command line option name/value pair.
If can_scale is True, all values will be multipled by scale_factor before being returned.
"""
return ["--%s=%s" % (self.name, val) for val in self.scaled_vals(scale_factor)]
class JavaOptionSet(OptionSet):
def __init__(self, name, vals, can_scale=False):
OptionSet.__init__(self, name, vals, can_scale)
def to_array(self, scale_factor = 1.0):
"""Return array of strings each representing a Java option name/value pair."""
return ["-D%s=%s" % (self.name, val) for val in self.scaled_vals(scale_factor)]
# Represents a flag-style option and a set of values that
# we will sweep over in a test run. Values can be True or False.
class FlagSet:
def __init__(self, name, vals):
self.name = name
self.vals = vals
def to_array(self, scale_factor = 1.0):
for val in self.vals:
assert val == True or val == False, ("FlagSet value for %s is not True or False" %
self.name)
return ["--%s" % self.name if val is True else "" for val in self.vals]
# Represents an option with a constant value
class ConstantOption:
def __init__(self, name):
self.name = name
def to_array(self, scale_factor = 1.0):
return [self.name]
| """Types used in configuration module for Spark's performance tests."""
class Optionset(object):
"""Represents an option and a set of values for it to sweep over."""
def __init__(self, name, vals, can_scale=False):
self.name = name
self.vals = vals
self.can_scale = can_scale
def scaled_vals(self, scale_factor):
"""If this class can_scale, then return scaled vals. Else return values as-is."""
if self.can_scale:
return [max(1, int(val * scale_factor)) for val in self.vals]
else:
return [val for val in self.vals]
def to_array(self, scale_factor=1.0):
"""
Return array of strings each representing a command line option name/value pair.
If can_scale is True, all values will be multipled by scale_factor before being returned.
"""
return ['--%s=%s' % (self.name, val) for val in self.scaled_vals(scale_factor)]
class Javaoptionset(OptionSet):
def __init__(self, name, vals, can_scale=False):
OptionSet.__init__(self, name, vals, can_scale)
def to_array(self, scale_factor=1.0):
"""Return array of strings each representing a Java option name/value pair."""
return ['-D%s=%s' % (self.name, val) for val in self.scaled_vals(scale_factor)]
class Flagset:
def __init__(self, name, vals):
self.name = name
self.vals = vals
def to_array(self, scale_factor=1.0):
for val in self.vals:
assert val == True or val == False, 'FlagSet value for %s is not True or False' % self.name
return ['--%s' % self.name if val is True else '' for val in self.vals]
class Constantoption:
def __init__(self, name):
self.name = name
def to_array(self, scale_factor=1.0):
return [self.name] |
'''input
5
3
10000
9000
48000
2
3
10000
9000
20000
'''
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem A
if __name__ == '__main__':
n = int(input())
k = int(input())
x = int(input())
y = int(input())
diff = n - k
if diff > 0:
print((k * x) + diff * y)
else:
print(n * x)
| """input
5
3
10000
9000
48000
2
3
10000
9000
20000
"""
if __name__ == '__main__':
n = int(input())
k = int(input())
x = int(input())
y = int(input())
diff = n - k
if diff > 0:
print(k * x + diff * y)
else:
print(n * x) |
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
# p.left = parent.right
# parent.right = p.right
# p.right = parent
# parent = p.left
# p = left
def upsideDownBinaryTree(self, root):
"""
:type root: TreeNode
:rtype: TreeNode
"""
# top-down
node, parent, parentRight = root, None, None
while node is not None:
left = node.left
node.left = parentRight
parentRight = node.right
node.right = parent
parent = node
node = left
return parent | class Solution(object):
def upside_down_binary_tree(self, root):
"""
:type root: TreeNode
:rtype: TreeNode
"""
(node, parent, parent_right) = (root, None, None)
while node is not None:
left = node.left
node.left = parentRight
parent_right = node.right
node.right = parent
parent = node
node = left
return parent |
def intInput(prompt,default):
try:
return int(input(prompt))
except:
return default
age = intInput("How old is your car? ",0)
print("Your car is",age,"years old")
| def int_input(prompt, default):
try:
return int(input(prompt))
except:
return default
age = int_input('How old is your car? ', 0)
print('Your car is', age, 'years old') |
class Employee:
raise_amount = 1.04
num_of_emps = 0
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
self.email = first + '.' + last + '@company.com'
Employee.num_of_emps += 1
def fullname(self):
return "{} {}".format(self.first, self.last)
def apply_raise(self):
self.pay = int(self.pay * self.raise_amount)
@classmethod
def set_raise_amount(cls, amount):
cls.raise_amount = amount
def main():
emp_1 = Employee('prajesh', 'ananthan', 10000)
emp_2 = Employee('sasha', 'ananthan', 5000)
Employee.set_raise_amount(1.05)
emp_1.apply_raise()
emp_2.apply_raise()
print(emp_1.pay)
print(emp_2.pay)
if __name__ == '__main__':
main()
| class Employee:
raise_amount = 1.04
num_of_emps = 0
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
self.email = first + '.' + last + '@company.com'
Employee.num_of_emps += 1
def fullname(self):
return '{} {}'.format(self.first, self.last)
def apply_raise(self):
self.pay = int(self.pay * self.raise_amount)
@classmethod
def set_raise_amount(cls, amount):
cls.raise_amount = amount
def main():
emp_1 = employee('prajesh', 'ananthan', 10000)
emp_2 = employee('sasha', 'ananthan', 5000)
Employee.set_raise_amount(1.05)
emp_1.apply_raise()
emp_2.apply_raise()
print(emp_1.pay)
print(emp_2.pay)
if __name__ == '__main__':
main() |
def solve_part_1(sequence):
sequence = sequence.split("\t")
historic = [sequence[:]]
block_redistribution = 0
sequence_size = len(sequence)
for i in range(sequence_size):
sequence[i] = int(sequence[i])
while True:
maximum = -1
index = -1
for i in range(sequence_size):
if sequence[i] > maximum:
maximum = sequence[i]
index = i
sequence[index] = 0
increase = int(maximum/sequence_size)
res = maximum % sequence_size
for i in range(1, sequence_size+1):
if i <= res:
sequence[(index + i) % sequence_size] += increase + 1
else:
sequence[(index + i) % sequence_size] += increase
if sequence in historic:
return len(historic)
else:
historic.append(sequence[:])
def solve_part_2(sequence):
sequence = sequence.split("\t")
historic = [sequence[:]]
block_redistribution = 0
sequence_size = len(sequence)
for i in range(sequence_size):
sequence[i] = int(sequence[i])
while True:
maximum = -1
index = -1
for i in range(sequence_size):
if sequence[i] > maximum:
maximum = sequence[i]
index = i
sequence[index] = 0
increase = int(maximum/sequence_size)
res = maximum % sequence_size
for i in range(1, sequence_size+1):
if i <= res:
sequence[(index + i) % sequence_size] += increase + 1
else:
sequence[(index + i) % sequence_size] += increase
if sequence in historic:
return len(historic) - historic.index(sequence)
else:
historic.append(sequence[:]) | def solve_part_1(sequence):
sequence = sequence.split('\t')
historic = [sequence[:]]
block_redistribution = 0
sequence_size = len(sequence)
for i in range(sequence_size):
sequence[i] = int(sequence[i])
while True:
maximum = -1
index = -1
for i in range(sequence_size):
if sequence[i] > maximum:
maximum = sequence[i]
index = i
sequence[index] = 0
increase = int(maximum / sequence_size)
res = maximum % sequence_size
for i in range(1, sequence_size + 1):
if i <= res:
sequence[(index + i) % sequence_size] += increase + 1
else:
sequence[(index + i) % sequence_size] += increase
if sequence in historic:
return len(historic)
else:
historic.append(sequence[:])
def solve_part_2(sequence):
sequence = sequence.split('\t')
historic = [sequence[:]]
block_redistribution = 0
sequence_size = len(sequence)
for i in range(sequence_size):
sequence[i] = int(sequence[i])
while True:
maximum = -1
index = -1
for i in range(sequence_size):
if sequence[i] > maximum:
maximum = sequence[i]
index = i
sequence[index] = 0
increase = int(maximum / sequence_size)
res = maximum % sequence_size
for i in range(1, sequence_size + 1):
if i <= res:
sequence[(index + i) % sequence_size] += increase + 1
else:
sequence[(index + i) % sequence_size] += increase
if sequence in historic:
return len(historic) - historic.index(sequence)
else:
historic.append(sequence[:]) |
# Instruction: Replace the character H with a J.
txt = "Hello World"
# Solution:
txt = txt.replace("H", "J")
print(txt)
# Read More Here: https://www.w3schools.com/python/python_strings.asp
| txt = 'Hello World'
txt = txt.replace('H', 'J')
print(txt) |
#!/usr/bin/env python3
"""
A Befunge-93 interpreter written in Python.
Spec can be found at https://en.wikipedia.org/wiki/Befunge.
"""
class Pointer:
def __init__(self):
self.x = 0
self.y = 0
| """
A Befunge-93 interpreter written in Python.
Spec can be found at https://en.wikipedia.org/wiki/Befunge.
"""
class Pointer:
def __init__(self):
self.x = 0
self.y = 0 |
# q1
def select_second(L):
"""Return the second element of the given list. If the list has no second
element, return None.
"""
if len(L) < 2:
return None
return L[1]
# q2
def losing_team_captain(teams):
"""Given a list of teams, where each team is a list of names, return the 2nd player (captain)
from the last listed team
"""
return teams[-1][1]
# q3
def purple_shell(racers):
"""Given a list of racers, set the first place racer (at the front of the list) to last
place and vice versa.
>>> r = ["Mario", "Bowser", "Luigi"]
>>> purple_shell(r)
>>> r
["Luigi", "Bowser", "Mario"]
"""
racers[0], racers[-1] = racers[-1], racers[0]
return
# q4
a = [1, 2, 3]
b = [1, [2, 3]]
c = []
d = [1, 2, 3][1:]
# Put your predictions in the list below. Lengths should contain 4 numbers, the
# first being the length of a, the second being the length of b and so on.
lengths = [3, 2, 0, 2]
def fashionably_late(arrivals, name):
"""Given an ordered list of arrivals to the party and a name, return whether the guest with that
name was fashionably late.
"""
if len(arrivals) >= 3:
# first fashionably late
if len(arrivals) % 2 == 0:
index = (len(arrivals)//2)
else:
index = (len(arrivals)//2) + 1
return name in arrivals[index:-1]
else:
return False
"""
My solution passed all tests, the given solution is:
def fashionably_late(arrivals, name):
order = arrivals.index(name)
return order >= len(arrivals) / 2 and order != len(arrivals) - 1
"""
| def select_second(L):
"""Return the second element of the given list. If the list has no second
element, return None.
"""
if len(L) < 2:
return None
return L[1]
def losing_team_captain(teams):
"""Given a list of teams, where each team is a list of names, return the 2nd player (captain)
from the last listed team
"""
return teams[-1][1]
def purple_shell(racers):
"""Given a list of racers, set the first place racer (at the front of the list) to last
place and vice versa.
>>> r = ["Mario", "Bowser", "Luigi"]
>>> purple_shell(r)
>>> r
["Luigi", "Bowser", "Mario"]
"""
(racers[0], racers[-1]) = (racers[-1], racers[0])
return
a = [1, 2, 3]
b = [1, [2, 3]]
c = []
d = [1, 2, 3][1:]
lengths = [3, 2, 0, 2]
def fashionably_late(arrivals, name):
"""Given an ordered list of arrivals to the party and a name, return whether the guest with that
name was fashionably late.
"""
if len(arrivals) >= 3:
if len(arrivals) % 2 == 0:
index = len(arrivals) // 2
else:
index = len(arrivals) // 2 + 1
return name in arrivals[index:-1]
else:
return False
'\nMy solution passed all tests, the given solution is:\ndef fashionably_late(arrivals, name):\n order = arrivals.index(name)\n return order >= len(arrivals) / 2 and order != len(arrivals) - 1\n' |
N, M = map(int, input().split())
P = []
for _ in range(N):
a, b = map(int, input().split())
P.append((a, b))
P2 = []
for _ in range(M):
a, b = map(int, input().split())
P2.append((a, b))
for i, (x, y) in enumerate(P):
dis = 1e10
ans = 1
for j, (x2, y2) in enumerate(P2):
new_dis = abs(x - x2) + abs(y2 - y)
if dis > new_dis:
dis = new_dis
ans = j + 1
print(ans)
| (n, m) = map(int, input().split())
p = []
for _ in range(N):
(a, b) = map(int, input().split())
P.append((a, b))
p2 = []
for _ in range(M):
(a, b) = map(int, input().split())
P2.append((a, b))
for (i, (x, y)) in enumerate(P):
dis = 10000000000.0
ans = 1
for (j, (x2, y2)) in enumerate(P2):
new_dis = abs(x - x2) + abs(y2 - y)
if dis > new_dis:
dis = new_dis
ans = j + 1
print(ans) |
"""The code template to supply to the front end. This is what the user will
be asked to complete and submit for grading.
Do not include any imports.
This is not a REPL environment so include explicit 'print' statements
for any outputs you want to be displayed back to the user.
Use triple single quotes to enclose the formatted code block.
"""
challenge_code = '''def ham_close_spins(B, J):
"""Creates the Hamiltonian for two close spins.
Args:
B (float): The strength of the field, assumed to point in the z direction.
J (list[float]): A vector of couplings [J_X, J_Y, J_Z].
Returns:
qml.Hamiltonian: The Hamiltonian of the system.
"""
e = 1.6e-19
m_e = 9.1e-31
alpha = B*e/(2*m_e)
hbar = 1e-34
##################
# YOUR CODE HERE #
##################
coeffs = [] # MODIFY THIS
obs = [] # MODIFY THIS
return qml.Hamiltonian(coeffs, obs)
'''
| """The code template to supply to the front end. This is what the user will
be asked to complete and submit for grading.
Do not include any imports.
This is not a REPL environment so include explicit 'print' statements
for any outputs you want to be displayed back to the user.
Use triple single quotes to enclose the formatted code block.
"""
challenge_code = 'def ham_close_spins(B, J):\n """Creates the Hamiltonian for two close spins.\n\n Args:\n B (float): The strength of the field, assumed to point in the z direction.\n J (list[float]): A vector of couplings [J_X, J_Y, J_Z].\n\n Returns:\n qml.Hamiltonian: The Hamiltonian of the system.\n """\n e = 1.6e-19\n m_e = 9.1e-31\n alpha = B*e/(2*m_e)\n hbar = 1e-34\n ##################\n # YOUR CODE HERE #\n ##################\n coeffs = [] # MODIFY THIS\n obs = [] # MODIFY THIS\n return qml.Hamiltonian(coeffs, obs)\n' |
class NoTokenError(Exception):
def __init__(self, *a, **kw):
super().__init__(*a, **kw)
class GetContentError(Exception):
def __init__(self, *a, **kw):
super().__init__(*a, **kw)
| class Notokenerror(Exception):
def __init__(self, *a, **kw):
super().__init__(*a, **kw)
class Getcontenterror(Exception):
def __init__(self, *a, **kw):
super().__init__(*a, **kw) |
class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
n = len(nums)
res = [1] * (n)
fwd = [1] * (n)
bwd = [1] * (n)
fwd[0] = 1
bwd[n-1] = 1
for i in range(1,n):
fwd[i] = fwd[i-1] * nums[i-1]
for i in range(n-2, -1, -1):
bwd[i] = bwd[i+1] * nums[i+1]
for i in range(n):
res[i] = fwd[i] * bwd[i]
return res | class Solution:
def product_except_self(self, nums: List[int]) -> List[int]:
n = len(nums)
res = [1] * n
fwd = [1] * n
bwd = [1] * n
fwd[0] = 1
bwd[n - 1] = 1
for i in range(1, n):
fwd[i] = fwd[i - 1] * nums[i - 1]
for i in range(n - 2, -1, -1):
bwd[i] = bwd[i + 1] * nums[i + 1]
for i in range(n):
res[i] = fwd[i] * bwd[i]
return res |
1
1_0
-1
0x1
0xff
0xf_f
0o123
0o12_3
10j
1_0j
1-2j
| 1
10
-1
1
255
255
83
83
10j
10j
1 - 2j |
"""
538. Convert BST to Greater Tree
Input: The root of a Binary Search Tree like this:
5
/ \
2 13
Output: The root of a Greater Tree like this:
18
/ \
20 13
"""
""""
5
/ \
2 13 r = 16, node 13,
/ / \
1 12 16 pre = 0
pre = 29
"""
class Solution:
def convertBST(self, root):
self.pre = 0
def helper(node):
if not node: return
helper(node.right)
node.val = self.pre + node.val
self.pre = node.val
helper(node.left)
helper(root)
return root
class Solution:
def convertBST(self, root):
def helper(node, pre):
if not node: return pre
pre = helper(node.right, pre)
node.val += pre
pre = helper(node.left,node.val)
return pre
helper(root, 0)
return root
class Solution:
def convertBST(self, root):
def reverse(root):
return reverse(root.right) + [root] + reverse(root.left) if root else []
for a, b in zip(reverse(root), reverse(root)[1:]):
b.val += a.val
return root
#BFS
class Solution:
summ = 0
def convertBST(self, root):
"""
:type root: TreeNode
:rtype: TreeNode
"""
stack = [(root, 0)]
while stack:
node, visited = stack.pop()
if node is None:
continue
if visited == 0:
stack.extend([(node.left, 0), (node, 1), (node.right, 0)])
else:
self.summ += node.val
node.val = self.summ
return root | """
538. Convert BST to Greater Tree
Input: The root of a Binary Search Tree like this:
5
/ 2 13
Output: The root of a Greater Tree like this:
18
/ 20 13
"""
'"\n 5 \n / \\ \n 2 13 r = 16, node 13, \n / / \\ \n 1 12 16 pre = 0\n pre = 29\n\n'
class Solution:
def convert_bst(self, root):
self.pre = 0
def helper(node):
if not node:
return
helper(node.right)
node.val = self.pre + node.val
self.pre = node.val
helper(node.left)
helper(root)
return root
class Solution:
def convert_bst(self, root):
def helper(node, pre):
if not node:
return pre
pre = helper(node.right, pre)
node.val += pre
pre = helper(node.left, node.val)
return pre
helper(root, 0)
return root
class Solution:
def convert_bst(self, root):
def reverse(root):
return reverse(root.right) + [root] + reverse(root.left) if root else []
for (a, b) in zip(reverse(root), reverse(root)[1:]):
b.val += a.val
return root
class Solution:
summ = 0
def convert_bst(self, root):
"""
:type root: TreeNode
:rtype: TreeNode
"""
stack = [(root, 0)]
while stack:
(node, visited) = stack.pop()
if node is None:
continue
if visited == 0:
stack.extend([(node.left, 0), (node, 1), (node.right, 0)])
else:
self.summ += node.val
node.val = self.summ
return root |
"""A bcftools modules.
Author: Shujia Huang
Date: 2020-04-28 20:29:09
"""
def concat(config, input_vcfs, output_vcf):
tabix = config["tabix"]
bcftools = config["bcftools"]["bcftools"]
concat_options = "%s" % " ".join(config["bcftools"]["concat_options"]).replace("-O z", "") \
if "concat_options" in config["bcftools"] and \
len(config["bcftools"]["concat_options"]) else ""
# Always output gz compress
if not output_vcf.endswith(".gz"):
output_vcf += ".gz"
cmd = [("time {bcftools} concat {concat_options} "
"-O z "
"-o {output_vcf}").format(**locals())] + input_vcfs
return " ".join(cmd) + " && time {tabix} -p vcf {output_vcf}".format(**locals())
| """A bcftools modules.
Author: Shujia Huang
Date: 2020-04-28 20:29:09
"""
def concat(config, input_vcfs, output_vcf):
tabix = config['tabix']
bcftools = config['bcftools']['bcftools']
concat_options = '%s' % ' '.join(config['bcftools']['concat_options']).replace('-O z', '') if 'concat_options' in config['bcftools'] and len(config['bcftools']['concat_options']) else ''
if not output_vcf.endswith('.gz'):
output_vcf += '.gz'
cmd = ['time {bcftools} concat {concat_options} -O z -o {output_vcf}'.format(**locals())] + input_vcfs
return ' '.join(cmd) + ' && time {tabix} -p vcf {output_vcf}'.format(**locals()) |
class Solution:
def maxSubArray(self, nums):
sm, mn, mx = 0, 0, -float("inf")
for num in nums:
sm += num
mx, mn = max(mx, sm - mn), min(mn, sm)
return mx | class Solution:
def max_sub_array(self, nums):
(sm, mn, mx) = (0, 0, -float('inf'))
for num in nums:
sm += num
(mx, mn) = (max(mx, sm - mn), min(mn, sm))
return mx |
# expr
# : AWAIT? atom trailer*
# | <assoc=right> expr op=POWER expr
# | op=(ADD | MINUS | NOT_OP) expr
# | expr op=(STAR | DIV | MOD | IDIV | AT) expr
# | expr op=(ADD | MINUS) expr
# | expr op=(LEFT_SHIFT | RIGHT_SHIFT) expr
# | expr op=AND_OP expr
# | expr op=XOR expr
# | expr op=OR_OP expr
# ;
# atom
"123"
# AWAIT atom
await 5
# atom trailer
"1231".lower()
# atom trailer trailer
"1231".lower().upper()
# AWAIT atom trailer trailer
await "1231".lower().upper()
# expr op=POWER expr op=POWER expr
2 ** 2 ** 3
# ADD expr
+6
# MINUS expr
-6
# NOT_OP expr
~6
# expr STAR expr
6 * 7
# expr DIV expr
6 / 7
# expr MOD expr
6 % 8
# expr IDIV expr
6 // 7
# expr AT expr
6 @ 2
# expr ADD expr
6 + 1
# expr MINUS expr
7 - 9
# expr LEFT_SHIFT expr
8 << 9
# expr RIGHT_SHIFT expr
4 >> 1
# expr op=AND_OP expr
4 & 6
# expr op=XOR expr
4 ^ 7
# expr op=OR_OP expr
7 | 1
| """123"""
await 5
'1231'.lower()
'1231'.lower().upper()
await '1231'.lower().upper()
2 ** 2 ** 3
+6
-6
~6
6 * 7
6 / 7
6 % 8
6 // 7
6 @ 2
6 + 1
7 - 9
8 << 9
4 >> 1
4 & 6
4 ^ 7
7 | 1 |
LOCS__ABCDE = list('abcde')
LOCS__A_TO_Z = list('abcdefghijklmnopqrstuvwxyz')
SRCS_TGTS__ONE_SHOT__ABCDE = [('a', 'b'), ('b', 'c'), ('c', 'd'), ('d', 'e')]
SRCS_TGTS__FORWARD_BACK__ABCDE = [
('a', 'b'), ('b', 'c'), ('c', 'd'),
('d', 'c'), ('c', 'b'),
('b', 'c'), ('c', 'd'), ('d', 'e')
]
| locs__abcde = list('abcde')
locs__a_to_z = list('abcdefghijklmnopqrstuvwxyz')
srcs_tgts__one_shot__abcde = [('a', 'b'), ('b', 'c'), ('c', 'd'), ('d', 'e')]
srcs_tgts__forward_back__abcde = [('a', 'b'), ('b', 'c'), ('c', 'd'), ('d', 'c'), ('c', 'b'), ('b', 'c'), ('c', 'd'), ('d', 'e')] |
def interpret(data, soc):
'''takes foot movements and converts to chess moves'''
row = ''
column = ''
if len(data) != 2 and len(data) != 4:
print("ERROR: command len is " + str(len(data)))
soc.send(bytes("FF", encoding='utf8'))
return -1
column = data[0]
row = str(ord(data[1]) - 64)
if len(data) == 2:
return column + row
column2 = data[2]
row2 = str(ord(data[3]) - 64)
return column + row + column2 + row2 | def interpret(data, soc):
"""takes foot movements and converts to chess moves"""
row = ''
column = ''
if len(data) != 2 and len(data) != 4:
print('ERROR: command len is ' + str(len(data)))
soc.send(bytes('FF', encoding='utf8'))
return -1
column = data[0]
row = str(ord(data[1]) - 64)
if len(data) == 2:
return column + row
column2 = data[2]
row2 = str(ord(data[3]) - 64)
return column + row + column2 + row2 |
#!/usr/bin/env python3
# --- general ------------------------------------------------------------------
project = "Ethereum Classic Technical Reference"
author = "Christian Seberino"
copyright = "2018 " + author
version = "0.1"
release = version
master_doc = "index"
source_suffix = ".rst"
extensions = ["sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.coverage",
"sphinx.ext.mathjax",
"sphinx.ext.ifconfig",
"sphinx.ext.viewcode",
"sphinx.ext.githubpages"]
# --- HTML ---------------------------------------------------------------------
html_sidebars = {"*" : ["searchbox.html", "relations.html"]}
html_static_path = ["static"]
# --- Latex --------------------------------------------------------------------
latex_engine = 'xelatex'
latex_toplevel_sectioning = "part"
latex_documents = [(master_doc,
"etc_tech_ref.tex",
project,
author,
"howto")]
| project = 'Ethereum Classic Technical Reference'
author = 'Christian Seberino'
copyright = '2018 ' + author
version = '0.1'
release = version
master_doc = 'index'
source_suffix = '.rst'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinx.ext.githubpages']
html_sidebars = {'*': ['searchbox.html', 'relations.html']}
html_static_path = ['static']
latex_engine = 'xelatex'
latex_toplevel_sectioning = 'part'
latex_documents = [(master_doc, 'etc_tech_ref.tex', project, author, 'howto')] |
#
# PySNMP MIB module NSC-TCP-EXCEL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NSC-TCP-EXCEL-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:15:20 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion")
nscDx, = mibBuilder.importSymbols("NSC-MIB", "nscDx")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
NotificationType, ModuleIdentity, MibIdentifier, TimeTicks, Counter32, iso, Integer32, Bits, ObjectIdentity, Gauge32, Counter64, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "ModuleIdentity", "MibIdentifier", "TimeTicks", "Counter32", "iso", "Integer32", "Bits", "ObjectIdentity", "Gauge32", "Counter64", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
nscDxTcpXcel = MibIdentifier((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6))
nscDxTcpXcelTcp = MibIdentifier((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1))
nscDxTcpXcelUdp = MibIdentifier((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2))
nscDxTcpXcelTcpRtoAlgorithm = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("constant", 2), ("rsre", 3), ("vanj", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRtoAlgorithm.setStatus('mandatory')
nscDxTcpXcelTcpRtoMin = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRtoMin.setStatus('mandatory')
nscDxTcpXcelTcpRtoMax = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRtoMax.setStatus('mandatory')
nscDxTcpXcelTcpMaxConn = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpMaxConn.setStatus('mandatory')
nscDxTcpXcelTcpActiveOpens = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpActiveOpens.setStatus('mandatory')
nscDxTcpXcelTcpPassiveOpens = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpPassiveOpens.setStatus('mandatory')
nscDxTcpXcelTcpAttemptFails = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpAttemptFails.setStatus('mandatory')
nscDxTcpXcelTcpEstabResets = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpEstabResets.setStatus('mandatory')
nscDxTcpXcelTcpCurrEstab = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 9), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpCurrEstab.setStatus('mandatory')
nscDxTcpXcelTcpInSegs = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpInSegs.setStatus('mandatory')
nscDxTcpXcelTcpOutSegs = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpOutSegs.setStatus('mandatory')
nscDxTcpXcelTcpRetransSegs = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRetransSegs.setStatus('mandatory')
nscDxTcpXcelTcpConnTable = MibTable((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13), )
if mibBuilder.loadTexts: nscDxTcpXcelTcpConnTable.setStatus('mandatory')
nscDxTcpXcelTcpConnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1), ).setIndexNames((0, "NSC-TCP-EXCEL-MIB", "nscDxTcpXcelTcpSapId"))
if mibBuilder.loadTexts: nscDxTcpXcelTcpConnEntry.setStatus('mandatory')
nscDxTcpXcelTcpSapId = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSapId.setStatus('mandatory')
nscDxTcpXcelTcpHostIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpHostIdx.setStatus('mandatory')
nscDxTcpXcelTcpHostName = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpHostName.setStatus('mandatory')
nscDxTcpXcelTcpConnState = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("closed", 1), ("listen", 2), ("synSent", 3), ("synReceived", 4), ("established", 5), ("finWait1", 6), ("finWait2", 7), ("closeWait", 8), ("lastAck", 9), ("closing", 10), ("timeWait", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpConnState.setStatus('mandatory')
nscDxTcpXcelTcpConnLocalAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 5), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpConnLocalAddress.setStatus('mandatory')
nscDxTcpXcelTcpConnLocalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpConnLocalPort.setStatus('mandatory')
nscDxTcpXcelTcpConnRemAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 7), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpConnRemAddress.setStatus('mandatory')
nscDxTcpXcelTcpConnRemPort = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpConnRemPort.setStatus('mandatory')
nscDxTcpXcelTcpInErrs = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpInErrs.setStatus('mandatory')
nscDxTcpXcelTcpOutRsts = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpOutRsts.setStatus('mandatory')
nscDxTcpXcelTcpConnAttempt = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpConnAttempt.setStatus('mandatory')
nscDxTcpXcelTcpClosed = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpClosed.setStatus('mandatory')
nscDxTcpXcelTcpSegsTimed = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSegsTimed.setStatus('mandatory')
nscDxTcpXcelTcpRttUpdated = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRttUpdated.setStatus('mandatory')
nscDxTcpXcelTcpDelAck = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpDelAck.setStatus('mandatory')
nscDxTcpXcelTcpTimeoutDrop = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpTimeoutDrop.setStatus('mandatory')
nscDxTcpXcelTcpRexmtTimeo = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRexmtTimeo.setStatus('mandatory')
nscDxTcpXcelTcpPersistTimeo = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpPersistTimeo.setStatus('mandatory')
nscDxTcpXcelTcpKeepTimeo = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpKeepTimeo.setStatus('mandatory')
nscDxTcpXcelTcpKeepProbe = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpKeepProbe.setStatus('mandatory')
nscDxTcpXcelTcpKeepDrop = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpKeepDrop.setStatus('mandatory')
nscDxTcpXcelTcpSndPack = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndPack.setStatus('mandatory')
nscDxTcpXcelTcpSndByte = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndByte.setStatus('mandatory')
nscDxTcpXcelTcpSndRexmitPack = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndRexmitPack.setStatus('mandatory')
nscDxTcpXcelTcpSndRexmitByte = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndRexmitByte.setStatus('mandatory')
nscDxTcpXcelTcpSndAcks = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndAcks.setStatus('mandatory')
nscDxTcpXcelTcpSndProbe = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndProbe.setStatus('mandatory')
nscDxTcpXcelTcpSndUrg = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 33), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndUrg.setStatus('mandatory')
nscDxTcpXcelTcpSndWinUp = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 34), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndWinUp.setStatus('mandatory')
nscDxTcpXcelTcpSndCtrl = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 35), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpSndCtrl.setStatus('mandatory')
nscDxTcpXcelTcpPcbCacheMiss = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 36), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpPcbCacheMiss.setStatus('mandatory')
nscDxTcpXcelTcpRcvPack = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 37), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvPack.setStatus('mandatory')
nscDxTcpXcelTcpRcvBytes = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 38), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvBytes.setStatus('mandatory')
nscDxTcpXcelTcpRcvByteAfterWin = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 39), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvByteAfterWin.setStatus('mandatory')
nscDxTcpXcelTcpRcvAfterClose = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 40), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvAfterClose.setStatus('mandatory')
nscDxTcpXcelTcpRcvWinProbe = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 41), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvWinProbe.setStatus('mandatory')
nscDxTcpXcelTcpRcvdUpack = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 42), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvdUpack.setStatus('mandatory')
nscDxTcpXcelTcpRcvAckTooMuch = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 43), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvAckTooMuch.setStatus('mandatory')
nscDxTcpXcelTcpRcvAckPack = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 44), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvAckPack.setStatus('mandatory')
nscDxTcpXcelTcpRcvAckByte = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 45), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvAckByte.setStatus('mandatory')
nscDxTcpXcelTcpRcvWinUpd = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelTcpRcvWinUpd.setStatus('mandatory')
nscDxTcpXcelUdpInDatagrams = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpInDatagrams.setStatus('mandatory')
nscDxTcpXcelUdpNoPorts = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpNoPorts.setStatus('mandatory')
nscDxTcpXcelUdpInErrors = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpInErrors.setStatus('mandatory')
nscDxTcpXcelUdpOutDatagrams = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpOutDatagrams.setStatus('mandatory')
nscDxTcpXcelUdpNoPortBcast = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpNoPortBcast.setStatus('mandatory')
nscDxTcpXcelUdpPcbCacheMissing = MibScalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpPcbCacheMissing.setStatus('mandatory')
nscDxTcpXcelUdpTable = MibTable((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7), )
if mibBuilder.loadTexts: nscDxTcpXcelUdpTable.setStatus('mandatory')
nscDxTcpXcelUdpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1), ).setIndexNames((0, "NSC-TCP-EXCEL-MIB", "nscDxTcpXcelUdpSapId"))
if mibBuilder.loadTexts: nscDxTcpXcelUdpEntry.setStatus('mandatory')
nscDxTcpXcelUdpSapId = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpSapId.setStatus('mandatory')
nscDxTcpXcelUdpHostIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpHostIdx.setStatus('mandatory')
nscDxTcpXcelUdpHostName = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpHostName.setStatus('mandatory')
nscDxTcpXcelUdpLocalAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 4), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpLocalAddress.setStatus('mandatory')
nscDxTcpXcelUdpLocalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nscDxTcpXcelUdpLocalPort.setStatus('mandatory')
mibBuilder.exportSymbols("NSC-TCP-EXCEL-MIB", nscDxTcpXcelUdpNoPortBcast=nscDxTcpXcelUdpNoPortBcast, nscDxTcpXcelTcpConnRemPort=nscDxTcpXcelTcpConnRemPort, nscDxTcpXcelTcpSndWinUp=nscDxTcpXcelTcpSndWinUp, nscDxTcpXcelTcpKeepTimeo=nscDxTcpXcelTcpKeepTimeo, nscDxTcpXcelTcpConnTable=nscDxTcpXcelTcpConnTable, nscDxTcpXcelUdpLocalPort=nscDxTcpXcelUdpLocalPort, nscDxTcpXcelTcpInErrs=nscDxTcpXcelTcpInErrs, nscDxTcpXcelTcpRcvAfterClose=nscDxTcpXcelTcpRcvAfterClose, nscDxTcpXcelTcpConnLocalPort=nscDxTcpXcelTcpConnLocalPort, nscDxTcpXcelTcpDelAck=nscDxTcpXcelTcpDelAck, nscDxTcpXcelTcpSndRexmitByte=nscDxTcpXcelTcpSndRexmitByte, nscDxTcpXcelTcpKeepDrop=nscDxTcpXcelTcpKeepDrop, nscDxTcpXcelTcpRcvByteAfterWin=nscDxTcpXcelTcpRcvByteAfterWin, nscDxTcpXcelTcpRcvBytes=nscDxTcpXcelTcpRcvBytes, nscDxTcpXcelUdpInDatagrams=nscDxTcpXcelUdpInDatagrams, nscDxTcpXcelTcpSapId=nscDxTcpXcelTcpSapId, nscDxTcpXcelTcpActiveOpens=nscDxTcpXcelTcpActiveOpens, nscDxTcpXcelUdpLocalAddress=nscDxTcpXcelUdpLocalAddress, nscDxTcpXcelTcpRcvdUpack=nscDxTcpXcelTcpRcvdUpack, nscDxTcpXcelTcpEstabResets=nscDxTcpXcelTcpEstabResets, nscDxTcpXcelTcpInSegs=nscDxTcpXcelTcpInSegs, nscDxTcpXcelUdp=nscDxTcpXcelUdp, nscDxTcpXcelTcpClosed=nscDxTcpXcelTcpClosed, nscDxTcpXcelTcpSegsTimed=nscDxTcpXcelTcpSegsTimed, nscDxTcpXcelTcpSndProbe=nscDxTcpXcelTcpSndProbe, nscDxTcpXcelTcpRcvWinProbe=nscDxTcpXcelTcpRcvWinProbe, nscDxTcpXcelUdpTable=nscDxTcpXcelUdpTable, nscDxTcpXcelTcpSndUrg=nscDxTcpXcelTcpSndUrg, nscDxTcpXcel=nscDxTcpXcel, nscDxTcpXcelTcpSndCtrl=nscDxTcpXcelTcpSndCtrl, nscDxTcpXcelUdpHostName=nscDxTcpXcelUdpHostName, nscDxTcpXcelTcpMaxConn=nscDxTcpXcelTcpMaxConn, nscDxTcpXcelTcpConnEntry=nscDxTcpXcelTcpConnEntry, nscDxTcpXcelTcpPassiveOpens=nscDxTcpXcelTcpPassiveOpens, nscDxTcpXcelTcpSndAcks=nscDxTcpXcelTcpSndAcks, nscDxTcpXcelTcpRcvPack=nscDxTcpXcelTcpRcvPack, nscDxTcpXcelUdpSapId=nscDxTcpXcelUdpSapId, nscDxTcpXcelTcpPersistTimeo=nscDxTcpXcelTcpPersistTimeo, nscDxTcpXcelTcpSndPack=nscDxTcpXcelTcpSndPack, nscDxTcpXcelTcpRexmtTimeo=nscDxTcpXcelTcpRexmtTimeo, nscDxTcpXcelTcpConnAttempt=nscDxTcpXcelTcpConnAttempt, nscDxTcpXcelTcpOutRsts=nscDxTcpXcelTcpOutRsts, nscDxTcpXcelTcpSndRexmitPack=nscDxTcpXcelTcpSndRexmitPack, nscDxTcpXcelTcpConnRemAddress=nscDxTcpXcelTcpConnRemAddress, nscDxTcpXcelTcpRtoAlgorithm=nscDxTcpXcelTcpRtoAlgorithm, nscDxTcpXcelTcpRtoMin=nscDxTcpXcelTcpRtoMin, nscDxTcpXcelUdpHostIdx=nscDxTcpXcelUdpHostIdx, nscDxTcpXcelTcpRttUpdated=nscDxTcpXcelTcpRttUpdated, nscDxTcpXcelTcpRcvAckTooMuch=nscDxTcpXcelTcpRcvAckTooMuch, nscDxTcpXcelTcpHostIdx=nscDxTcpXcelTcpHostIdx, nscDxTcpXcelTcpConnState=nscDxTcpXcelTcpConnState, nscDxTcpXcelUdpInErrors=nscDxTcpXcelUdpInErrors, nscDxTcpXcelTcpCurrEstab=nscDxTcpXcelTcpCurrEstab, nscDxTcpXcelUdpNoPorts=nscDxTcpXcelUdpNoPorts, nscDxTcpXcelTcpRetransSegs=nscDxTcpXcelTcpRetransSegs, nscDxTcpXcelTcpRtoMax=nscDxTcpXcelTcpRtoMax, nscDxTcpXcelTcpTimeoutDrop=nscDxTcpXcelTcpTimeoutDrop, nscDxTcpXcelTcp=nscDxTcpXcelTcp, nscDxTcpXcelUdpPcbCacheMissing=nscDxTcpXcelUdpPcbCacheMissing, nscDxTcpXcelTcpConnLocalAddress=nscDxTcpXcelTcpConnLocalAddress, nscDxTcpXcelTcpRcvAckByte=nscDxTcpXcelTcpRcvAckByte, nscDxTcpXcelTcpOutSegs=nscDxTcpXcelTcpOutSegs, nscDxTcpXcelUdpEntry=nscDxTcpXcelUdpEntry, nscDxTcpXcelUdpOutDatagrams=nscDxTcpXcelUdpOutDatagrams, nscDxTcpXcelTcpPcbCacheMiss=nscDxTcpXcelTcpPcbCacheMiss, nscDxTcpXcelTcpRcvAckPack=nscDxTcpXcelTcpRcvAckPack, nscDxTcpXcelTcpSndByte=nscDxTcpXcelTcpSndByte, nscDxTcpXcelTcpHostName=nscDxTcpXcelTcpHostName, nscDxTcpXcelTcpKeepProbe=nscDxTcpXcelTcpKeepProbe, nscDxTcpXcelTcpAttemptFails=nscDxTcpXcelTcpAttemptFails, nscDxTcpXcelTcpRcvWinUpd=nscDxTcpXcelTcpRcvWinUpd)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, single_value_constraint, value_size_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion')
(nsc_dx,) = mibBuilder.importSymbols('NSC-MIB', 'nscDx')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(notification_type, module_identity, mib_identifier, time_ticks, counter32, iso, integer32, bits, object_identity, gauge32, counter64, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'ModuleIdentity', 'MibIdentifier', 'TimeTicks', 'Counter32', 'iso', 'Integer32', 'Bits', 'ObjectIdentity', 'Gauge32', 'Counter64', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
nsc_dx_tcp_xcel = mib_identifier((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6))
nsc_dx_tcp_xcel_tcp = mib_identifier((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1))
nsc_dx_tcp_xcel_udp = mib_identifier((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2))
nsc_dx_tcp_xcel_tcp_rto_algorithm = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('constant', 2), ('rsre', 3), ('vanj', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRtoAlgorithm.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rto_min = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRtoMin.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rto_max = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRtoMax.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_max_conn = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpMaxConn.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_active_opens = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpActiveOpens.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_passive_opens = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpPassiveOpens.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_attempt_fails = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpAttemptFails.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_estab_resets = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpEstabResets.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_curr_estab = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 9), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpCurrEstab.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_in_segs = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpInSegs.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_out_segs = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpOutSegs.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_retrans_segs = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRetransSegs.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_conn_table = mib_table((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13))
if mibBuilder.loadTexts:
nscDxTcpXcelTcpConnTable.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_conn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1)).setIndexNames((0, 'NSC-TCP-EXCEL-MIB', 'nscDxTcpXcelTcpSapId'))
if mibBuilder.loadTexts:
nscDxTcpXcelTcpConnEntry.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_sap_id = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSapId.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_host_idx = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpHostIdx.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_host_name = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpHostName.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_conn_state = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('closed', 1), ('listen', 2), ('synSent', 3), ('synReceived', 4), ('established', 5), ('finWait1', 6), ('finWait2', 7), ('closeWait', 8), ('lastAck', 9), ('closing', 10), ('timeWait', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpConnState.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_conn_local_address = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 5), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpConnLocalAddress.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_conn_local_port = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpConnLocalPort.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_conn_rem_address = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 7), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpConnRemAddress.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_conn_rem_port = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 13, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpConnRemPort.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_in_errs = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpInErrs.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_out_rsts = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpOutRsts.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_conn_attempt = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpConnAttempt.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_closed = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpClosed.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_segs_timed = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSegsTimed.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rtt_updated = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRttUpdated.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_del_ack = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpDelAck.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_timeout_drop = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpTimeoutDrop.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rexmt_timeo = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRexmtTimeo.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_persist_timeo = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpPersistTimeo.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_keep_timeo = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpKeepTimeo.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_keep_probe = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpKeepProbe.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_keep_drop = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpKeepDrop.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_pack = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndPack.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_byte = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndByte.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_rexmit_pack = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndRexmitPack.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_rexmit_byte = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndRexmitByte.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_acks = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndAcks.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_probe = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 32), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndProbe.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_urg = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 33), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndUrg.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_win_up = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 34), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndWinUp.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_snd_ctrl = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 35), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpSndCtrl.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_pcb_cache_miss = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 36), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpPcbCacheMiss.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_pack = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 37), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvPack.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 38), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvBytes.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_byte_after_win = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 39), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvByteAfterWin.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_after_close = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 40), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvAfterClose.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_win_probe = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 41), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvWinProbe.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcvd_upack = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 42), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvdUpack.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_ack_too_much = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 43), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvAckTooMuch.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_ack_pack = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 44), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvAckPack.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_ack_byte = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 45), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvAckByte.setStatus('mandatory')
nsc_dx_tcp_xcel_tcp_rcv_win_upd = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 1, 46), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelTcpRcvWinUpd.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_in_datagrams = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpInDatagrams.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_no_ports = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpNoPorts.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_in_errors = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpInErrors.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_out_datagrams = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpOutDatagrams.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_no_port_bcast = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpNoPortBcast.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_pcb_cache_missing = mib_scalar((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpPcbCacheMissing.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_table = mib_table((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7))
if mibBuilder.loadTexts:
nscDxTcpXcelUdpTable.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1)).setIndexNames((0, 'NSC-TCP-EXCEL-MIB', 'nscDxTcpXcelUdpSapId'))
if mibBuilder.loadTexts:
nscDxTcpXcelUdpEntry.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_sap_id = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpSapId.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_host_idx = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpHostIdx.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_host_name = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpHostName.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_local_address = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 4), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpLocalAddress.setStatus('mandatory')
nsc_dx_tcp_xcel_udp_local_port = mib_table_column((1, 3, 6, 1, 4, 1, 10, 2, 1, 3, 6, 2, 7, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nscDxTcpXcelUdpLocalPort.setStatus('mandatory')
mibBuilder.exportSymbols('NSC-TCP-EXCEL-MIB', nscDxTcpXcelUdpNoPortBcast=nscDxTcpXcelUdpNoPortBcast, nscDxTcpXcelTcpConnRemPort=nscDxTcpXcelTcpConnRemPort, nscDxTcpXcelTcpSndWinUp=nscDxTcpXcelTcpSndWinUp, nscDxTcpXcelTcpKeepTimeo=nscDxTcpXcelTcpKeepTimeo, nscDxTcpXcelTcpConnTable=nscDxTcpXcelTcpConnTable, nscDxTcpXcelUdpLocalPort=nscDxTcpXcelUdpLocalPort, nscDxTcpXcelTcpInErrs=nscDxTcpXcelTcpInErrs, nscDxTcpXcelTcpRcvAfterClose=nscDxTcpXcelTcpRcvAfterClose, nscDxTcpXcelTcpConnLocalPort=nscDxTcpXcelTcpConnLocalPort, nscDxTcpXcelTcpDelAck=nscDxTcpXcelTcpDelAck, nscDxTcpXcelTcpSndRexmitByte=nscDxTcpXcelTcpSndRexmitByte, nscDxTcpXcelTcpKeepDrop=nscDxTcpXcelTcpKeepDrop, nscDxTcpXcelTcpRcvByteAfterWin=nscDxTcpXcelTcpRcvByteAfterWin, nscDxTcpXcelTcpRcvBytes=nscDxTcpXcelTcpRcvBytes, nscDxTcpXcelUdpInDatagrams=nscDxTcpXcelUdpInDatagrams, nscDxTcpXcelTcpSapId=nscDxTcpXcelTcpSapId, nscDxTcpXcelTcpActiveOpens=nscDxTcpXcelTcpActiveOpens, nscDxTcpXcelUdpLocalAddress=nscDxTcpXcelUdpLocalAddress, nscDxTcpXcelTcpRcvdUpack=nscDxTcpXcelTcpRcvdUpack, nscDxTcpXcelTcpEstabResets=nscDxTcpXcelTcpEstabResets, nscDxTcpXcelTcpInSegs=nscDxTcpXcelTcpInSegs, nscDxTcpXcelUdp=nscDxTcpXcelUdp, nscDxTcpXcelTcpClosed=nscDxTcpXcelTcpClosed, nscDxTcpXcelTcpSegsTimed=nscDxTcpXcelTcpSegsTimed, nscDxTcpXcelTcpSndProbe=nscDxTcpXcelTcpSndProbe, nscDxTcpXcelTcpRcvWinProbe=nscDxTcpXcelTcpRcvWinProbe, nscDxTcpXcelUdpTable=nscDxTcpXcelUdpTable, nscDxTcpXcelTcpSndUrg=nscDxTcpXcelTcpSndUrg, nscDxTcpXcel=nscDxTcpXcel, nscDxTcpXcelTcpSndCtrl=nscDxTcpXcelTcpSndCtrl, nscDxTcpXcelUdpHostName=nscDxTcpXcelUdpHostName, nscDxTcpXcelTcpMaxConn=nscDxTcpXcelTcpMaxConn, nscDxTcpXcelTcpConnEntry=nscDxTcpXcelTcpConnEntry, nscDxTcpXcelTcpPassiveOpens=nscDxTcpXcelTcpPassiveOpens, nscDxTcpXcelTcpSndAcks=nscDxTcpXcelTcpSndAcks, nscDxTcpXcelTcpRcvPack=nscDxTcpXcelTcpRcvPack, nscDxTcpXcelUdpSapId=nscDxTcpXcelUdpSapId, nscDxTcpXcelTcpPersistTimeo=nscDxTcpXcelTcpPersistTimeo, nscDxTcpXcelTcpSndPack=nscDxTcpXcelTcpSndPack, nscDxTcpXcelTcpRexmtTimeo=nscDxTcpXcelTcpRexmtTimeo, nscDxTcpXcelTcpConnAttempt=nscDxTcpXcelTcpConnAttempt, nscDxTcpXcelTcpOutRsts=nscDxTcpXcelTcpOutRsts, nscDxTcpXcelTcpSndRexmitPack=nscDxTcpXcelTcpSndRexmitPack, nscDxTcpXcelTcpConnRemAddress=nscDxTcpXcelTcpConnRemAddress, nscDxTcpXcelTcpRtoAlgorithm=nscDxTcpXcelTcpRtoAlgorithm, nscDxTcpXcelTcpRtoMin=nscDxTcpXcelTcpRtoMin, nscDxTcpXcelUdpHostIdx=nscDxTcpXcelUdpHostIdx, nscDxTcpXcelTcpRttUpdated=nscDxTcpXcelTcpRttUpdated, nscDxTcpXcelTcpRcvAckTooMuch=nscDxTcpXcelTcpRcvAckTooMuch, nscDxTcpXcelTcpHostIdx=nscDxTcpXcelTcpHostIdx, nscDxTcpXcelTcpConnState=nscDxTcpXcelTcpConnState, nscDxTcpXcelUdpInErrors=nscDxTcpXcelUdpInErrors, nscDxTcpXcelTcpCurrEstab=nscDxTcpXcelTcpCurrEstab, nscDxTcpXcelUdpNoPorts=nscDxTcpXcelUdpNoPorts, nscDxTcpXcelTcpRetransSegs=nscDxTcpXcelTcpRetransSegs, nscDxTcpXcelTcpRtoMax=nscDxTcpXcelTcpRtoMax, nscDxTcpXcelTcpTimeoutDrop=nscDxTcpXcelTcpTimeoutDrop, nscDxTcpXcelTcp=nscDxTcpXcelTcp, nscDxTcpXcelUdpPcbCacheMissing=nscDxTcpXcelUdpPcbCacheMissing, nscDxTcpXcelTcpConnLocalAddress=nscDxTcpXcelTcpConnLocalAddress, nscDxTcpXcelTcpRcvAckByte=nscDxTcpXcelTcpRcvAckByte, nscDxTcpXcelTcpOutSegs=nscDxTcpXcelTcpOutSegs, nscDxTcpXcelUdpEntry=nscDxTcpXcelUdpEntry, nscDxTcpXcelUdpOutDatagrams=nscDxTcpXcelUdpOutDatagrams, nscDxTcpXcelTcpPcbCacheMiss=nscDxTcpXcelTcpPcbCacheMiss, nscDxTcpXcelTcpRcvAckPack=nscDxTcpXcelTcpRcvAckPack, nscDxTcpXcelTcpSndByte=nscDxTcpXcelTcpSndByte, nscDxTcpXcelTcpHostName=nscDxTcpXcelTcpHostName, nscDxTcpXcelTcpKeepProbe=nscDxTcpXcelTcpKeepProbe, nscDxTcpXcelTcpAttemptFails=nscDxTcpXcelTcpAttemptFails, nscDxTcpXcelTcpRcvWinUpd=nscDxTcpXcelTcpRcvWinUpd) |
power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0699222,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.257609,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.391941,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.187215,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.324188,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.185931,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.697333,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.124965,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.79997,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.074046,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00678667,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0746711,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0501916,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.148717,
'Execution Unit/Register Files/Runtime Dynamic': 0.0569783,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.199592,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.544512,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 1.96181,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000129392,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000129392,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000111995,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 4.29688e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000721006,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00109179,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00126583,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0482505,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.06915,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.117623,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.16388,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.43889,
'Instruction Fetch Unit/Runtime Dynamic': 0.332111,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.127126,
'L2/Runtime Dynamic': 0.0372235,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.29389,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.04022,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0665413,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0665412,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.60939,
'Load Store Unit/Runtime Dynamic': 1.43492,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.164079,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.328158,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0582323,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0601337,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.190828,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0193061,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.449999,
'Memory Management Unit/Runtime Dynamic': 0.0794398,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 19.9871,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.258329,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.0126817,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0939102,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 0.364921,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 4.21042,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0263559,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.22339,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.139668,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0546275,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.0881121,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.044476,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.187216,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.0410637,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.15066,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0263863,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00229132,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0265443,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0169457,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.0529306,
'Execution Unit/Register Files/Runtime Dynamic': 0.019237,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0625118,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.164479,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 0.999699,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 4.05644e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.05644e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.53757e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.37187e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000243427,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000359931,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00038735,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0162904,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 1.03621,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0381479,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.0553294,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 3.30501,
'Instruction Fetch Unit/Runtime Dynamic': 0.110515,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0425415,
'L2/Runtime Dynamic': 0.0128499,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 1.92486,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.348049,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0222502,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0222501,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.02993,
'Load Store Unit/Runtime Dynamic': 0.480029,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0548651,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.10973,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0194718,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0201081,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.0644275,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00626143,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.253986,
'Memory Management Unit/Runtime Dynamic': 0.0263695,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 13.3716,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0694104,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.00330935,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0268057,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.0995254,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 1.72899,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0204913,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.218784,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.117108,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0462527,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.0746039,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0376575,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.158514,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.0349451,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.0937,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0221242,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00194005,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0214383,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0143478,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.0435625,
'Execution Unit/Register Files/Runtime Dynamic': 0.0162879,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0502884,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.137914,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 0.936877,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 3.56099e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 3.56099e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.0896e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.18947e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000206108,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000308224,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000345715,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0137929,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 0.877351,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0330863,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.046847,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 3.13845,
'Instruction Fetch Unit/Runtime Dynamic': 0.0943802,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0374064,
'L2/Runtime Dynamic': 0.0108138,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 1.81246,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.291083,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0186135,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0186136,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 1.90035,
'Load Store Unit/Runtime Dynamic': 0.401492,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0458978,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.0917959,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0162893,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0168493,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.0545505,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00542955,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.238641,
'Memory Management Unit/Runtime Dynamic': 0.0222788,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 12.998,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0581992,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.00279507,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0227126,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.0837069,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 1.54955,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0167229,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.215823,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.107395,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0455796,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.0735182,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0371095,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.156207,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.0356643,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.0719,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0202892,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00191181,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0193908,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.014139,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.03968,
'Execution Unit/Register Files/Runtime Dynamic': 0.0160508,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0450326,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.1325,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 0.925959,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 4.09019e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.09019e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.56535e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.38173e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000203108,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000320566,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000391166,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0135922,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 0.864581,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0342178,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.0461652,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 3.12506,
'Instruction Fetch Unit/Runtime Dynamic': 0.094687,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.038241,
'L2/Runtime Dynamic': 0.0106277,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 1.80898,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.289274,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.018501,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0185009,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 1.89634,
'Load Store Unit/Runtime Dynamic': 0.399015,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0456202,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.0912399,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0161908,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0167631,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.0537565,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00561521,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.237678,
'Memory Management Unit/Runtime Dynamic': 0.0223783,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 12.9587,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0533712,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.00270594,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0225161,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.0785933,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 1.53126,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 8.23870643681251,
'Runtime Dynamic': 8.23870643681251,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.434847,
'Runtime Dynamic': 0.170736,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 59.7502,
'Peak Power': 92.8625,
'Runtime Dynamic': 9.19096,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 59.3154,
'Total Cores/Runtime Dynamic': 9.02022,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.434847,
'Total L3s/Runtime Dynamic': 0.170736,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} | power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0699222, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.257609, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.391941, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.187215, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.324188, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.185931, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.697333, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.124965, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.79997, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.074046, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00678667, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0746711, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0501916, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.148717, 'Execution Unit/Register Files/Runtime Dynamic': 0.0569783, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.199592, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.544512, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 1.96181, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000129392, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000129392, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000111995, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 4.29688e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000721006, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00109179, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00126583, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0482505, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.06915, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.117623, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.16388, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 5.43889, 'Instruction Fetch Unit/Runtime Dynamic': 0.332111, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.127126, 'L2/Runtime Dynamic': 0.0372235, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.29389, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.04022, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0665413, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0665412, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.60939, 'Load Store Unit/Runtime Dynamic': 1.43492, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.164079, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.328158, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0582323, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0601337, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.190828, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0193061, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.449999, 'Memory Management Unit/Runtime Dynamic': 0.0794398, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 19.9871, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.258329, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0126817, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0939102, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.364921, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 4.21042, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0263559, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.22339, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.139668, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0546275, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.0881121, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.044476, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.187216, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0410637, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.15066, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0263863, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00229132, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0265443, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0169457, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.0529306, 'Execution Unit/Register Files/Runtime Dynamic': 0.019237, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0625118, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.164479, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 0.999699, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 4.05644e-05, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.05644e-05, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.53757e-05, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.37187e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000243427, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000359931, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00038735, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0162904, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 1.03621, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0381479, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.0553294, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 3.30501, 'Instruction Fetch Unit/Runtime Dynamic': 0.110515, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0425415, 'L2/Runtime Dynamic': 0.0128499, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.92486, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.348049, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0222502, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0222501, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.02993, 'Load Store Unit/Runtime Dynamic': 0.480029, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0548651, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.10973, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0194718, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0201081, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.0644275, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00626143, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.253986, 'Memory Management Unit/Runtime Dynamic': 0.0263695, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 13.3716, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0694104, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00330935, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0268057, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.0995254, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.72899, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0204913, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.218784, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.117108, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0462527, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.0746039, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0376575, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.158514, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0349451, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.0937, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0221242, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00194005, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0214383, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0143478, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.0435625, 'Execution Unit/Register Files/Runtime Dynamic': 0.0162879, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0502884, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.137914, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 0.936877, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 3.56099e-05, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 3.56099e-05, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.0896e-05, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.18947e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000206108, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000308224, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000345715, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0137929, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 0.877351, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0330863, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.046847, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 3.13845, 'Instruction Fetch Unit/Runtime Dynamic': 0.0943802, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0374064, 'L2/Runtime Dynamic': 0.0108138, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.81246, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.291083, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0186135, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0186136, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.90035, 'Load Store Unit/Runtime Dynamic': 0.401492, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0458978, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.0917959, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0162893, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0168493, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.0545505, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00542955, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.238641, 'Memory Management Unit/Runtime Dynamic': 0.0222788, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 12.998, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0581992, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00279507, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0227126, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.0837069, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.54955, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0167229, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.215823, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.107395, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0455796, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.0735182, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0371095, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.156207, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0356643, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.0719, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0202892, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00191181, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0193908, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.014139, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.03968, 'Execution Unit/Register Files/Runtime Dynamic': 0.0160508, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0450326, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.1325, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 0.925959, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 4.09019e-05, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.09019e-05, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.56535e-05, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.38173e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000203108, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000320566, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000391166, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0135922, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 0.864581, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0342178, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.0461652, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 3.12506, 'Instruction Fetch Unit/Runtime Dynamic': 0.094687, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.038241, 'L2/Runtime Dynamic': 0.0106277, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.80898, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.289274, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.018501, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0185009, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.89634, 'Load Store Unit/Runtime Dynamic': 0.399015, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0456202, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.0912399, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0161908, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0167631, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.0537565, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00561521, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.237678, 'Memory Management Unit/Runtime Dynamic': 0.0223783, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 12.9587, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0533712, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00270594, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0225161, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.0785933, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.53126, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 8.23870643681251, 'Runtime Dynamic': 8.23870643681251, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.434847, 'Runtime Dynamic': 0.170736, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 59.7502, 'Peak Power': 92.8625, 'Runtime Dynamic': 9.19096, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 59.3154, 'Total Cores/Runtime Dynamic': 9.02022, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.434847, 'Total L3s/Runtime Dynamic': 0.170736, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} |
withdraw,balance = map(float,input().split())
#withdraw,balance = [float(item) for item in read]
if (withdraw%5 != 0) :
print (balance)
elif (balance < withdraw +0.5) :
print (balance)
else :
print(balance-(withdraw+0.5)) | (withdraw, balance) = map(float, input().split())
if withdraw % 5 != 0:
print(balance)
elif balance < withdraw + 0.5:
print(balance)
else:
print(balance - (withdraw + 0.5)) |
"""
let's reset the array by it's min value start out from (0,0)
in another words, after reset
grid[i][j]'s value will be the min value start out from (0,0)
if we are at (i,j), we will be either from (i-1,j) or (i,j-1)
we call them s1 and s2, let's assume they are both in range
grid[i][j] will be grid[i][j]+min(s1, s2)
we will start out from (0,0) and reset the entire grid.
"""
class Solution(object):
def minPathSum(self, grid):
n = len(grid)
m = len(grid[0])
for i in xrange(n):
for j in xrange(m):
s1 = s2 = float('inf')
if i-1>=0:
s1 = grid[i-1][j]
if j-1>=0:
s2 = grid[i][j-1]
if s1==float('inf') and s2==float('inf'): continue #both source out of range
grid[i][j]+=min(s1, s2)
return grid[-1][-1] | """
let's reset the array by it's min value start out from (0,0)
in another words, after reset
grid[i][j]'s value will be the min value start out from (0,0)
if we are at (i,j), we will be either from (i-1,j) or (i,j-1)
we call them s1 and s2, let's assume they are both in range
grid[i][j] will be grid[i][j]+min(s1, s2)
we will start out from (0,0) and reset the entire grid.
"""
class Solution(object):
def min_path_sum(self, grid):
n = len(grid)
m = len(grid[0])
for i in xrange(n):
for j in xrange(m):
s1 = s2 = float('inf')
if i - 1 >= 0:
s1 = grid[i - 1][j]
if j - 1 >= 0:
s2 = grid[i][j - 1]
if s1 == float('inf') and s2 == float('inf'):
continue
grid[i][j] += min(s1, s2)
return grid[-1][-1] |
s1=input()
s2=input()
s3=input()
print(s1+s2+s3)
print(s2+s3+s1)
print(s3+s1+s2)
print('%s%s%s'%(s1[:10], s2[:10], s3[:10]))
| s1 = input()
s2 = input()
s3 = input()
print(s1 + s2 + s3)
print(s2 + s3 + s1)
print(s3 + s1 + s2)
print('%s%s%s' % (s1[:10], s2[:10], s3[:10])) |
class Board:
def __init__(self, settings):
self.number_of_players = settings.number_of_players
self.number_to_pass = settings.number_to_pass
self.missions = settings.missions
self.spy_score = 0
self.antifa_score = 0
self.current_mission = 0
self.stall_counter = 0
self.players_on_mission = []
self.win = None
print('Settings player 0 as leader\n')
self.leader_index = 0
def number_to_assign(self):
return self.missions[self.current_mission]
def add_to_mission(self, index):
""" Add a player index to mission, must be unique players """
if index < 0 or index >= self.number_of_players:
raise IndexError
if index in self.players_on_mission:
raise ValueError
if len(self.players_on_mission) >= self.number_to_assign():
raise OverflowError
self.players_on_mission += [index]
def increment_stall_counter(self):
""" Increment stall counter, if it reaches 5 automatic loss """
if self.stall_counter >=5:
raise OverflowError
self.stall_counter += 1
if self.stall_counter >= 5:
self.win = False
def failed_vote(self):
print('Vote Failed!\n')
self.increment_stall_counter()
self.reset_mission()
def successful_vote(self):
print('Vote Successful!')
self.stall_counter = 0
def reset_mission(self):
self.leader_index = (self.leader_index + 1) % self.number_of_players
self.players_on_mission = []
def record_is_mission_success(self, is_success):
if is_success:
self.antifa_score += 1
else:
self.spy_score +=1
print('Spies: {} Resistance: {}\n'.format(self.spy_score, self.antifa_score))
if self.antifa_score == 3:
self.win = True
return
if self.spy_score == 3:
self.win = False
return
self.current_mission += 1
self.reset_mission()
| class Board:
def __init__(self, settings):
self.number_of_players = settings.number_of_players
self.number_to_pass = settings.number_to_pass
self.missions = settings.missions
self.spy_score = 0
self.antifa_score = 0
self.current_mission = 0
self.stall_counter = 0
self.players_on_mission = []
self.win = None
print('Settings player 0 as leader\n')
self.leader_index = 0
def number_to_assign(self):
return self.missions[self.current_mission]
def add_to_mission(self, index):
""" Add a player index to mission, must be unique players """
if index < 0 or index >= self.number_of_players:
raise IndexError
if index in self.players_on_mission:
raise ValueError
if len(self.players_on_mission) >= self.number_to_assign():
raise OverflowError
self.players_on_mission += [index]
def increment_stall_counter(self):
""" Increment stall counter, if it reaches 5 automatic loss """
if self.stall_counter >= 5:
raise OverflowError
self.stall_counter += 1
if self.stall_counter >= 5:
self.win = False
def failed_vote(self):
print('Vote Failed!\n')
self.increment_stall_counter()
self.reset_mission()
def successful_vote(self):
print('Vote Successful!')
self.stall_counter = 0
def reset_mission(self):
self.leader_index = (self.leader_index + 1) % self.number_of_players
self.players_on_mission = []
def record_is_mission_success(self, is_success):
if is_success:
self.antifa_score += 1
else:
self.spy_score += 1
print('Spies: {} Resistance: {}\n'.format(self.spy_score, self.antifa_score))
if self.antifa_score == 3:
self.win = True
return
if self.spy_score == 3:
self.win = False
return
self.current_mission += 1
self.reset_mission() |
# Copyright 2018-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
# This Starlark rule imports the BF SDE shared libraries and headers. The
# SDE_INSTALL environment variable needs to be set, otherwise the Stratum
# rules for barefoot platforms cannot be built.
def _impl(repository_ctx):
if "SDE_INSTALL" not in repository_ctx.os.environ:
repository_ctx.file("BUILD", "")
return
bf_sde_path = repository_ctx.os.environ["SDE_INSTALL"]
repository_ctx.symlink(bf_sde_path, "barefoot-bin")
repository_ctx.symlink(Label("@//bazel:external/bfsde.BUILD"), "BUILD")
barefoot_configure = repository_rule(
implementation = _impl,
local = True,
environ = ["SDE_INSTALL"],
)
| def _impl(repository_ctx):
if 'SDE_INSTALL' not in repository_ctx.os.environ:
repository_ctx.file('BUILD', '')
return
bf_sde_path = repository_ctx.os.environ['SDE_INSTALL']
repository_ctx.symlink(bf_sde_path, 'barefoot-bin')
repository_ctx.symlink(label('@//bazel:external/bfsde.BUILD'), 'BUILD')
barefoot_configure = repository_rule(implementation=_impl, local=True, environ=['SDE_INSTALL']) |
MOCK_SALE = [{
"id": 1,
"title": "Demix Magus M",
"description": "Lightweight and flexible Demix Magus training sneakers. Special grooves on the sole, located in places of the anatomical fold of the foot, allow you to move naturally. Ultra-lightweight knitwear with a special weave provides air circulation and also effectively removes excess heat and moisture. EVA soles and modern upper materials guarantee a low weight model.", # pylint: disable=line-too-long
"tags": ["Fashion", "Sneakers", "Shoes"],
"price": {
"min": 1126,
"max": 1234
}
}, {
"id": 2,
"title": "Nike Star Runner 2",
"description": "Comfortable and functional Nike Star Runner 2 sneakers are great for running. The Phylon midsole effectively dampens shock loads. Outsole grooves for maximum natural movement. Rubber outsole for reliable grip. The upper is made of elastic breathable fabric, supplemented with leather elements, fixes the foot and guarantees comfort while running. Soft inserts in the ankle and on the tongue provide additional comfort.", # pylint: disable=line-too-long
"tags": ["Fashion", "Men", "Autumn"],
"price": {
"min": 1126,
"max": 2232
}
}, {
"id": 3,
"title": "Skechers Go Run 600",
"description": "Skechers Go Run 600 Divert Running Shoes The model is designed for neutral and hypopronization. Sole made of lightweight 5GEN material quickly restores shape after deformation, providing comfort and additional cushioning while running. The special GOGA Run insole has good cushioning properties. The antibacterial properties of the insole protect against unpleasant odors.", # pylint: disable=line-too-long
"tags": ["Men", "Running", "Leather"],
"price": {
"min": 1156,
"max": 1334
}
}, {
"id": 4,
"title": "Skechers Dynamight 2.0-Rayhill",
"description": "Comfortable and soft Dynimate 2 sneakers from Skechers are the optimal combination of comfort and original design. A special Memory Foam insole made of soft foam follows the contour of the foot, providing additional comfort, and quickly regains shape after deformation. The upper of the shoe is made of well-ventilated textile material.", # pylint: disable=line-too-long
"tags": ["Running", "Leather", "Summer"],
"price": {
"min": 1120,
"max": 5234
}
}, {
"id": 5,
"title": "Nike Tanjun",
"description": "In Japanese, tanjun means simplicity. Nike Tanjun sporty men's sneakers mean simplicity at its best. A smooth, seamless upper provides comfortable wearing. Flexible textile upper for air circulation. Lightweight outsole provides good cushioning.", # pylint: disable=line-too-long
"tags": ["Shoes", "Winter", "Men"],
"price": {
"min": 1826,
"max": 2423
}
}, {
"id": 6,
"title": "Puma Vista",
"description": "Vista Mid WTR sneakers inspired by the legendary 70s collection. The warmed model in sports style is irreplaceable in cold weather. Fur lining perfectly protects from cold. Anatomical insole SoftFoam + provides maximum comfort. Combination of genuine leather and suede for a spectacular look. Insole with antibacterial impregnation for freshness of the legs.", # pylint: disable=line-too-long
"tags": ["Winter", "Men", "Running"],
"price": {
"min": 1626,
"max": 1274
}
}, {
"id": 7,
"title": "Fila Tornado 3.0",
"description": "Comfortable Fila TORNADO LOW 3.0 sneakers are perfect for sports lovers. Slip design allows for quick change of shoes. Anatomical insole for added comfort. The EVA midsole effectively dampens shock loads while walking. An improved sole protector for reliable traction. Reflectors will make walking in the dark or in bad weather safer. Sole material has high wear-resistant properties.", # pylint: disable=line-too-long
"tags": ["Fashion", "Winter", "Shoes"],
"price": {
"min": 1196,
"max": 1234
}
}, {
"id": 8,
"title": "Fila Ray",
"description": "Light and comfortable Fila Ray sneakers are made in a modern sports style with retro and classic elements. The EVA midsole absorbs shock when walking. Sole material has high wear-resistant properties. EVA outsole ensures low shoe weight.", # pylint: disable=line-too-long
"tags": ["Winter", "Autumn", "Men"],
"price": {
"min": 1526,
"max": 1634
}
}, {
"id": 9,
"title": "Kappa Neoclassic 2.0",
"description": "The warmed Kappa Neoclassic 2 sneakers perfectly complete the look in a sporty style and warm in cold weather. A tall model with a warm fleece lining helps keep you warm. Genuine leather looks great and comfortable to wear. EVA midsole material dampens shock when walking. Rubber outsole provides excellent traction. Thanks to a wearproof outsole, sneakers will last you longer.", # pylint: disable=line-too-long
"tags": ["Shoes", "Winter", "Men"],
"price": {
"min": 1826,
"max": 3294
}
}, {
"id": 10,
"title": "ASICS Gel-Rocket 9",
"description": "Asics GEL-ROCKET 9 volleyball shoes are the perfect combination of comfort and stability. The tech model will be a great choice for indoor games. Forefoot Gel gel inserts in the front part and EVA midsole effectively absorb shock loads. Mesh material for optimal air exchange and a comfortable microclimate. Trusstic technology for extra foot support. A removable EVA footbed ensures comfortable foot position.", # pylint: disable=line-too-long
"tags": ["Fashion", "Sneakers", "Shoes"],
"price": {
"min": 2126,
"max": 2234
}
}, {
"id": 11,
"title": "Nike Zoom Zero",
"description": "The modified Nike Court Air Zoom Zero tennis sneakers are a great choice for games and workouts. The full-length insert of the Nike Zoom Air sneakers provides excellent cushioning. The one-piece upper provides air exchange and a comfortable fit. A well thought-out lacing system for a good fit.", # pylint: disable=line-too-long
"tags": ["Summer", "Men", "Fashion"],
"price": {
"min": 6126,
"max": 9234
}
}, {
"id": 12,
"title": "Puma Wired",
"description": "Comfortable Puma sneakers for a sporty outing. SoftFoam + foam insole for comfort and extra cushioning. The top is made of mesh breathable material. IMEVA wavy midsole absorbs shock loads.", # pylint: disable=line-too-long
"tags": ["Fashion", "Men", "Autumn"],
"price": {
"min": 2126,
"max": 3244
}
}]
MOCK_EXPLORE = [{
"id": 1,
"title": "Demix Magus M",
"description": "Lightweight and flexible Demix Magus training sneakers. Special grooves on the sole, located in places of the anatomical fold of the foot, allow you to move naturally. Ultra-lightweight knitwear with a special weave provides air circulation and also effectively removes excess heat and moisture. EVA soles and modern upper materials guarantee a low weight model.", # pylint: disable=line-too-long
"tags": ["Fashion", "Sneakers", "Shoes"],
"price": {
"min": 1234,
"max": 1234
}
}, {
"id": 2,
"title": "Nike Star Runner 2",
"description": "Comfortable and functional Nike Star Runner 2 sneakers are great for running. The Phylon midsole effectively dampens shock loads. Outsole grooves for maximum natural movement. Rubber outsole for reliable grip. The upper is made of elastic breathable fabric, supplemented with leather elements, fixes the foot and guarantees comfort while running. Soft inserts in the ankle and on the tongue provide additional comfort.", # pylint: disable=line-too-long
"tags": ["Fashion", "Men", "Autumn"],
"price": {
"min": 2232,
"max": 2232
}
}, {
"id": 3,
"title": "Skechers Go Run 600",
"description": "Skechers Go Run 600 Divert Running Shoes The model is designed for neutral and hypopronization. Sole made of lightweight 5GEN material quickly restores shape after deformation, providing comfort and additional cushioning while running. The special GOGA Run insole has good cushioning properties. The antibacterial properties of the insole protect against unpleasant odors.", # pylint: disable=line-too-long
"tags": ["Men", "Running", "Leather"],
"price": {
"min": 1334,
"max": 1334
}
}, {
"id": 4,
"title": "Skechers Dynamight 2.0-Rayhill",
"description": "Comfortable and soft Dynimate 2 sneakers from Skechers are the optimal combination of comfort and original design. A special Memory Foam insole made of soft foam follows the contour of the foot, providing additional comfort, and quickly regains shape after deformation. The upper of the shoe is made of well-ventilated textile material.", # pylint: disable=line-too-long
"tags": ["Running", "Leather", "Summer"],
"price": {
"min": 5234,
"max": 5234
}
}, {
"id": 5,
"title": "Nike Tanjun",
"description": "In Japanese, tanjun means simplicity. Nike Tanjun sporty men's sneakers mean simplicity at its best. A smooth, seamless upper provides comfortable wearing. Flexible textile upper for air circulation. Lightweight outsole provides good cushioning.", # pylint: disable=line-too-long
"tags": ["Shoes", "Winter", "Men"],
"price": {
"min": 2423,
"max": 2423
}
}, {
"id": 6,
"title": "Puma Vista",
"description": "Vista Mid WTR sneakers inspired by the legendary 70s collection. The warmed model in sports style is irreplaceable in cold weather. Fur lining perfectly protects from cold. Anatomical insole SoftFoam + provides maximum comfort. Combination of genuine leather and suede for a spectacular look. Insole with antibacterial impregnation for freshness of the legs.", # pylint: disable=line-too-long
"tags": ["Winter", "Men", "Running"],
"price": {
"min": 1274,
"max": 1274
}
}, {
"id": 7,
"title": "Fila Tornado 3.0",
"description": "Comfortable Fila TORNADO LOW 3.0 sneakers are perfect for sports lovers. Slip design allows for quick change of shoes. Anatomical insole for added comfort. The EVA midsole effectively dampens shock loads while walking. An improved sole protector for reliable traction. Reflectors will make walking in the dark or in bad weather safer. Sole material has high wear-resistant properties.", # pylint: disable=line-too-long
"tags": ["Fashion", "Winter", "Shoes"],
"price": {
"min": 1234,
"max": 1234
}
}, {
"id": 8,
"title": "Fila Ray",
"description": "Light and comfortable Fila Ray sneakers are made in a modern sports style with retro and classic elements. The EVA midsole absorbs shock when walking. Sole material has high wear-resistant properties. EASY EVA outsole ensures low shoe weight.", # pylint: disable=line-too-long
"tags": ["Winter", "Autumn", "Men"],
"price": {
"min": 1634,
"max": 1634
}
}, {
"id": 9,
"title": "Kappa Neoclassic 2.0",
"description": "The warmed Kappa Neoclassic 2 sneakers perfectly complete the look in a sporty style and warm in cold weather. A tall model with a warm fleece lining helps keep you warm. Genuine leather looks great and comfortable to wear. EVA midsole material dampens shock when walking. Rubber outsole provides excellent traction. Thanks to a wearproof outsole, sneakers will last you longer.", # pylint: disable=line-too-long
"tags": ["Shoes", "Winter", "Men"],
"price": {
"min": 3294,
"max": 3294
}
}, {
"id": 10,
"title": "Nike Zoom Zero",
"description": "The modified Nike Court Air Zoom Zero tennis sneakers are a great choice for games and workouts. The full-length insert of the Nike Zoom Air sneakers provides excellent cushioning. The one-piece upper provides air exchange and a comfortable fit. A well thought-out lacing system for a good fit.", # pylint: disable=line-too-long
"tags": ["Summer", "Men", "Fashion"],
"price": {
"min": 2234,
"max": 2234
}
}, {
"id": 11,
"title": "Nike Zoom Zero",
"description": "The modified Nike Court Air Zoom Zero tennis sneakers are a great choice for games and workouts. The full-length insert of the Nike Zoom Air sneakers provides excellent cushioning. The one-piece upper provides air exchange and a comfortable fit. A well thought-out lacing system for a good fit.", # pylint: disable=line-too-long
"tags": ["Summer", "Men", "Fashion"],
"price": {
"min": 9234,
"max": 9234
}
}, {
"id": 12,
"title": "Puma Wired",
"description": "Comfortable Puma sneakers for a sporty outing. SoftFoam + foam insole for comfort and extra cushioning. The top is made of mesh breathable material. IMEVA wavy midsole absorbs shock loads.", # pylint: disable=line-too-long
"tags": ["Fashion", "Men", "Autumn"],
"price": {
"min": 3244,
"max": 3244
}
}]
| mock_sale = [{'id': 1, 'title': 'Demix Magus M', 'description': 'Lightweight and flexible Demix Magus training sneakers. Special grooves on the sole, located in places of the anatomical fold of the foot, allow you to move naturally. Ultra-lightweight knitwear with a special weave provides air circulation and also effectively removes excess heat and moisture. EVA soles and modern upper materials guarantee a low weight model.', 'tags': ['Fashion', 'Sneakers', 'Shoes'], 'price': {'min': 1126, 'max': 1234}}, {'id': 2, 'title': 'Nike Star Runner 2', 'description': 'Comfortable and functional Nike Star Runner 2 sneakers are great for running. The Phylon midsole effectively dampens shock loads. Outsole grooves for maximum natural movement. Rubber outsole for reliable grip. The upper is made of elastic breathable fabric, supplemented with leather elements, fixes the foot and guarantees comfort while running. Soft inserts in the ankle and on the tongue provide additional comfort.', 'tags': ['Fashion', 'Men', 'Autumn'], 'price': {'min': 1126, 'max': 2232}}, {'id': 3, 'title': 'Skechers Go Run 600', 'description': 'Skechers Go Run 600 Divert Running Shoes The model is designed for neutral and hypopronization. Sole made of lightweight 5GEN material quickly restores shape after deformation, providing comfort and additional cushioning while running. The special GOGA Run insole has good cushioning properties. The antibacterial properties of the insole protect against unpleasant odors.', 'tags': ['Men', 'Running', 'Leather'], 'price': {'min': 1156, 'max': 1334}}, {'id': 4, 'title': 'Skechers Dynamight 2.0-Rayhill', 'description': 'Comfortable and soft Dynimate 2 sneakers from Skechers are the optimal combination of comfort and original design. A special Memory Foam insole made of soft foam follows the contour of the foot, providing additional comfort, and quickly regains shape after deformation. The upper of the shoe is made of well-ventilated textile material.', 'tags': ['Running', 'Leather', 'Summer'], 'price': {'min': 1120, 'max': 5234}}, {'id': 5, 'title': 'Nike Tanjun', 'description': "In Japanese, tanjun means simplicity. Nike Tanjun sporty men's sneakers mean simplicity at its best. A smooth, seamless upper provides comfortable wearing. Flexible textile upper for air circulation. Lightweight outsole provides good cushioning.", 'tags': ['Shoes', 'Winter', 'Men'], 'price': {'min': 1826, 'max': 2423}}, {'id': 6, 'title': 'Puma Vista', 'description': 'Vista Mid WTR sneakers inspired by the legendary 70s collection. The warmed model in sports style is irreplaceable in cold weather. Fur lining perfectly protects from cold. Anatomical insole SoftFoam + provides maximum comfort. Combination of genuine leather and suede for a spectacular look. Insole with antibacterial impregnation for freshness of the legs.', 'tags': ['Winter', 'Men', 'Running'], 'price': {'min': 1626, 'max': 1274}}, {'id': 7, 'title': 'Fila Tornado 3.0', 'description': 'Comfortable Fila TORNADO LOW 3.0 sneakers are perfect for sports lovers. Slip design allows for quick change of shoes. Anatomical insole for added comfort. The EVA midsole effectively dampens shock loads while walking. An improved sole protector for reliable traction. Reflectors will make walking in the dark or in bad weather safer. Sole material has high wear-resistant properties.', 'tags': ['Fashion', 'Winter', 'Shoes'], 'price': {'min': 1196, 'max': 1234}}, {'id': 8, 'title': 'Fila Ray', 'description': 'Light and comfortable Fila Ray sneakers are made in a modern sports style with retro and classic elements. The EVA midsole absorbs shock when walking. Sole material has high wear-resistant properties. EVA outsole ensures low shoe weight.', 'tags': ['Winter', 'Autumn', 'Men'], 'price': {'min': 1526, 'max': 1634}}, {'id': 9, 'title': 'Kappa Neoclassic 2.0', 'description': 'The warmed Kappa Neoclassic 2 sneakers perfectly complete the look in a sporty style and warm in cold weather. A tall model with a warm fleece lining helps keep you warm. Genuine leather looks great and comfortable to wear. EVA midsole material dampens shock when walking. Rubber outsole provides excellent traction. Thanks to a wearproof outsole, sneakers will last you longer.', 'tags': ['Shoes', 'Winter', 'Men'], 'price': {'min': 1826, 'max': 3294}}, {'id': 10, 'title': 'ASICS Gel-Rocket 9', 'description': 'Asics GEL-ROCKET 9 volleyball shoes are the perfect combination of comfort and stability. The tech model will be a great choice for indoor games. Forefoot Gel gel inserts in the front part and EVA midsole effectively absorb shock loads. Mesh material for optimal air exchange and a comfortable microclimate. Trusstic technology for extra foot support. A removable EVA footbed ensures comfortable foot position.', 'tags': ['Fashion', 'Sneakers', 'Shoes'], 'price': {'min': 2126, 'max': 2234}}, {'id': 11, 'title': 'Nike Zoom Zero', 'description': 'The modified Nike Court Air Zoom Zero tennis sneakers are a great choice for games and workouts. The full-length insert of the Nike Zoom Air sneakers provides excellent cushioning. The one-piece upper provides air exchange and a comfortable fit. A well thought-out lacing system for a good fit.', 'tags': ['Summer', 'Men', 'Fashion'], 'price': {'min': 6126, 'max': 9234}}, {'id': 12, 'title': 'Puma Wired', 'description': 'Comfortable Puma sneakers for a sporty outing. SoftFoam + foam insole for comfort and extra cushioning. The top is made of mesh breathable material. IMEVA wavy midsole absorbs shock loads.', 'tags': ['Fashion', 'Men', 'Autumn'], 'price': {'min': 2126, 'max': 3244}}]
mock_explore = [{'id': 1, 'title': 'Demix Magus M', 'description': 'Lightweight and flexible Demix Magus training sneakers. Special grooves on the sole, located in places of the anatomical fold of the foot, allow you to move naturally. Ultra-lightweight knitwear with a special weave provides air circulation and also effectively removes excess heat and moisture. EVA soles and modern upper materials guarantee a low weight model.', 'tags': ['Fashion', 'Sneakers', 'Shoes'], 'price': {'min': 1234, 'max': 1234}}, {'id': 2, 'title': 'Nike Star Runner 2', 'description': 'Comfortable and functional Nike Star Runner 2 sneakers are great for running. The Phylon midsole effectively dampens shock loads. Outsole grooves for maximum natural movement. Rubber outsole for reliable grip. The upper is made of elastic breathable fabric, supplemented with leather elements, fixes the foot and guarantees comfort while running. Soft inserts in the ankle and on the tongue provide additional comfort.', 'tags': ['Fashion', 'Men', 'Autumn'], 'price': {'min': 2232, 'max': 2232}}, {'id': 3, 'title': 'Skechers Go Run 600', 'description': 'Skechers Go Run 600 Divert Running Shoes The model is designed for neutral and hypopronization. Sole made of lightweight 5GEN material quickly restores shape after deformation, providing comfort and additional cushioning while running. The special GOGA Run insole has good cushioning properties. The antibacterial properties of the insole protect against unpleasant odors.', 'tags': ['Men', 'Running', 'Leather'], 'price': {'min': 1334, 'max': 1334}}, {'id': 4, 'title': 'Skechers Dynamight 2.0-Rayhill', 'description': 'Comfortable and soft Dynimate 2 sneakers from Skechers are the optimal combination of comfort and original design. A special Memory Foam insole made of soft foam follows the contour of the foot, providing additional comfort, and quickly regains shape after deformation. The upper of the shoe is made of well-ventilated textile material.', 'tags': ['Running', 'Leather', 'Summer'], 'price': {'min': 5234, 'max': 5234}}, {'id': 5, 'title': 'Nike Tanjun', 'description': "In Japanese, tanjun means simplicity. Nike Tanjun sporty men's sneakers mean simplicity at its best. A smooth, seamless upper provides comfortable wearing. Flexible textile upper for air circulation. Lightweight outsole provides good cushioning.", 'tags': ['Shoes', 'Winter', 'Men'], 'price': {'min': 2423, 'max': 2423}}, {'id': 6, 'title': 'Puma Vista', 'description': 'Vista Mid WTR sneakers inspired by the legendary 70s collection. The warmed model in sports style is irreplaceable in cold weather. Fur lining perfectly protects from cold. Anatomical insole SoftFoam + provides maximum comfort. Combination of genuine leather and suede for a spectacular look. Insole with antibacterial impregnation for freshness of the legs.', 'tags': ['Winter', 'Men', 'Running'], 'price': {'min': 1274, 'max': 1274}}, {'id': 7, 'title': 'Fila Tornado 3.0', 'description': 'Comfortable Fila TORNADO LOW 3.0 sneakers are perfect for sports lovers. Slip design allows for quick change of shoes. Anatomical insole for added comfort. The EVA midsole effectively dampens shock loads while walking. An improved sole protector for reliable traction. Reflectors will make walking in the dark or in bad weather safer. Sole material has high wear-resistant properties.', 'tags': ['Fashion', 'Winter', 'Shoes'], 'price': {'min': 1234, 'max': 1234}}, {'id': 8, 'title': 'Fila Ray', 'description': 'Light and comfortable Fila Ray sneakers are made in a modern sports style with retro and classic elements. The EVA midsole absorbs shock when walking. Sole material has high wear-resistant properties. EASY EVA outsole ensures low shoe weight.', 'tags': ['Winter', 'Autumn', 'Men'], 'price': {'min': 1634, 'max': 1634}}, {'id': 9, 'title': 'Kappa Neoclassic 2.0', 'description': 'The warmed Kappa Neoclassic 2 sneakers perfectly complete the look in a sporty style and warm in cold weather. A tall model with a warm fleece lining helps keep you warm. Genuine leather looks great and comfortable to wear. EVA midsole material dampens shock when walking. Rubber outsole provides excellent traction. Thanks to a wearproof outsole, sneakers will last you longer.', 'tags': ['Shoes', 'Winter', 'Men'], 'price': {'min': 3294, 'max': 3294}}, {'id': 10, 'title': 'Nike Zoom Zero', 'description': 'The modified Nike Court Air Zoom Zero tennis sneakers are a great choice for games and workouts. The full-length insert of the Nike Zoom Air sneakers provides excellent cushioning. The one-piece upper provides air exchange and a comfortable fit. A well thought-out lacing system for a good fit.', 'tags': ['Summer', 'Men', 'Fashion'], 'price': {'min': 2234, 'max': 2234}}, {'id': 11, 'title': 'Nike Zoom Zero', 'description': 'The modified Nike Court Air Zoom Zero tennis sneakers are a great choice for games and workouts. The full-length insert of the Nike Zoom Air sneakers provides excellent cushioning. The one-piece upper provides air exchange and a comfortable fit. A well thought-out lacing system for a good fit.', 'tags': ['Summer', 'Men', 'Fashion'], 'price': {'min': 9234, 'max': 9234}}, {'id': 12, 'title': 'Puma Wired', 'description': 'Comfortable Puma sneakers for a sporty outing. SoftFoam + foam insole for comfort and extra cushioning. The top is made of mesh breathable material. IMEVA wavy midsole absorbs shock loads.', 'tags': ['Fashion', 'Men', 'Autumn'], 'price': {'min': 3244, 'max': 3244}}] |
#!/usr/bin/env python
#_*_coding:utf-8_*_
__all__ = [
'readCode',
'saveCluster',
'kmeans',
'hcluster',
'apc',
'meanshift',
'dbscan',
'tsne',
'pca'
] | __all__ = ['readCode', 'saveCluster', 'kmeans', 'hcluster', 'apc', 'meanshift', 'dbscan', 'tsne', 'pca'] |
# tombstone
__author__ = "N. Laughton"
__copyright__ = "Copyright 2018, N. Laughton"
__credits__ = ["N. Laughton"]
__license__ = "MIT"
__version__ = "0.1.0dev"
__maintainer__ = "N. Laughton"
__status__ = "development"
| __author__ = 'N. Laughton'
__copyright__ = 'Copyright 2018, N. Laughton'
__credits__ = ['N. Laughton']
__license__ = 'MIT'
__version__ = '0.1.0dev'
__maintainer__ = 'N. Laughton'
__status__ = 'development' |
lista= []
for x in range (5):
lista.append(input("Ingrese un numero"))
menor=lista[0]
posicion_x=0
for x in range(1,5):
if lista[x] < menor:
menor= lista[x]
posicion_x= x
print("El valor es: ", menor, " y la posicion es: ", posicion_x) | lista = []
for x in range(5):
lista.append(input('Ingrese un numero'))
menor = lista[0]
posicion_x = 0
for x in range(1, 5):
if lista[x] < menor:
menor = lista[x]
posicion_x = x
print('El valor es: ', menor, ' y la posicion es: ', posicion_x) |
# This file is intended to be used with the HDLMAKE tool for HDL generator. If
# you don't use it, please ignore
files = [
"ahb3lite_to_wb.v",
"wb_to_ahb3lite.v",
]
| files = ['ahb3lite_to_wb.v', 'wb_to_ahb3lite.v'] |
"""
Good morning! Here's your coding interview problem for today.
This problem was asked by Facebook.
There is an N by M matrix of zeroes. Given N and M, write a function to count the number of ways of starting at the top-left corner and getting to the bottom-right corner. You can only move right or down.
For example, given a 2 by 2 matrix, you should return 2, since there are two ways to get to the bottom-right:
Right, then down
Down, then right
Given a 5 by 5 matrix, there are 70 ways to get to the bottom-right.
https://www.geeksforgeeks.org/count-possible-paths-top-left-bottom-right-nxm-matrix/
https://www.youtube.com/watch?v=GO5QHC_BmvM
"""
def nWays(n, m):
nWaysArr = [[0] * m for _ in range(n)]
for i in range(n):
for j in range(m):
if i == 0:
nWaysArr[i][j] = 1
elif j == 0:
nWaysArr[i][j] = 1
else:
nWaysArr[i][j] = nWaysArr[i][j-1] + nWaysArr[i-1][j]
return nWaysArr[n-1][m-1]
if __name__ == '__main__':
print(nWays(3, 3))
| """
Good morning! Here's your coding interview problem for today.
This problem was asked by Facebook.
There is an N by M matrix of zeroes. Given N and M, write a function to count the number of ways of starting at the top-left corner and getting to the bottom-right corner. You can only move right or down.
For example, given a 2 by 2 matrix, you should return 2, since there are two ways to get to the bottom-right:
Right, then down
Down, then right
Given a 5 by 5 matrix, there are 70 ways to get to the bottom-right.
https://www.geeksforgeeks.org/count-possible-paths-top-left-bottom-right-nxm-matrix/
https://www.youtube.com/watch?v=GO5QHC_BmvM
"""
def n_ways(n, m):
n_ways_arr = [[0] * m for _ in range(n)]
for i in range(n):
for j in range(m):
if i == 0:
nWaysArr[i][j] = 1
elif j == 0:
nWaysArr[i][j] = 1
else:
nWaysArr[i][j] = nWaysArr[i][j - 1] + nWaysArr[i - 1][j]
return nWaysArr[n - 1][m - 1]
if __name__ == '__main__':
print(n_ways(3, 3)) |
"""
Ask the user for a number.
Depending on whether the number is even or odd, print out an
appropriate message to the user. Hint: how does an even / odd number
react differently when divided by 2?
Extras:
If the number is a multiple of 4, print out a different message.
Ask the user for two numbers: one number to check (call it num) and one
number to divide by (check). If check divides evenly into num, tell that to the user.
If not, print a different appropriate message.
"""
number = int(input("Please enter a number: "))
evenNumber = number%2 == 0
oddNumber = number%2 == 1
if number == evenNumber:
print("This is an even number.")
else:
print("This is an odd number.") | """
Ask the user for a number.
Depending on whether the number is even or odd, print out an
appropriate message to the user. Hint: how does an even / odd number
react differently when divided by 2?
Extras:
If the number is a multiple of 4, print out a different message.
Ask the user for two numbers: one number to check (call it num) and one
number to divide by (check). If check divides evenly into num, tell that to the user.
If not, print a different appropriate message.
"""
number = int(input('Please enter a number: '))
even_number = number % 2 == 0
odd_number = number % 2 == 1
if number == evenNumber:
print('This is an even number.')
else:
print('This is an odd number.') |
class _NFA:
pass
class NFA(_NFA):
STATE_ID = -1
def __init__(self, final_states=None, name=""):
if final_states is None:
final_states = set()
NFA.STATE_ID += 1
self.id = NFA.STATE_ID
self.final_states = final_states
self.transitions = {}
self.name = f"STATE: {self.id}" if name == "" else name
def add_transition(self, state: _NFA, symbol: str):
if symbol in self.transitions:
self.transitions[symbol].add(state)
else:
self.transitions[symbol] = {state}
def subset_construction(self, visited=None):
if visited is None:
visited = set()
if self in visited:
return
visited.add(self)
if "EPSILON" in self.transitions:
epsilon_transitions = self.transitions["EPSILON"].copy()
epsilon_visited = set()
while len(epsilon_transitions) > 0:
epsilon_state = epsilon_transitions.pop()
if epsilon_state not in epsilon_visited:
epsilon_visited.add(epsilon_state)
if "EPSILON" in epsilon_state.transitions:
epsilon_transitions = epsilon_transitions.union(
epsilon_state.transitions["EPSILON"]
)
for key in epsilon_state.transitions.keys():
for state in epsilon_state.transitions[key]:
self.add_transition(state, key)
for symbol, states in self.transitions.items():
for state in states:
state.subset_construction(visited)
def is_final_state(self, final_states):
if self in final_states:
return self
for state in final_states:
if "EPSILON" in self.transitions and state in self.transitions["EPSILON"]:
return state
return False
def delta(self, symbol):
transitions = set()
if symbol in self.transitions:
transitions = self.transitions[symbol]
return transitions
def __str__(self):
return self.name + f"({len(self.transitions)})"
def __repr__(self):
return str(self)
def display(self, visited=None):
if visited is None:
visited = set()
if self in visited:
return
visited.add(self)
for symbol in self.transitions:
for state in self.transitions[symbol]:
print(f"{self} -- {symbol} --> {state}")
for symbol in self.transitions:
for state in self.transitions[symbol]:
state.display(visited)
def _combine_nfas(nfas: list):
initial_state = NFA()
for nfa in nfas:
initial_state.add_transition(nfa, "EPSILON")
initial_state.final_states = initial_state.final_states.union(nfa.final_states)
return initial_state
| class _Nfa:
pass
class Nfa(_NFA):
state_id = -1
def __init__(self, final_states=None, name=''):
if final_states is None:
final_states = set()
NFA.STATE_ID += 1
self.id = NFA.STATE_ID
self.final_states = final_states
self.transitions = {}
self.name = f'STATE: {self.id}' if name == '' else name
def add_transition(self, state: _NFA, symbol: str):
if symbol in self.transitions:
self.transitions[symbol].add(state)
else:
self.transitions[symbol] = {state}
def subset_construction(self, visited=None):
if visited is None:
visited = set()
if self in visited:
return
visited.add(self)
if 'EPSILON' in self.transitions:
epsilon_transitions = self.transitions['EPSILON'].copy()
epsilon_visited = set()
while len(epsilon_transitions) > 0:
epsilon_state = epsilon_transitions.pop()
if epsilon_state not in epsilon_visited:
epsilon_visited.add(epsilon_state)
if 'EPSILON' in epsilon_state.transitions:
epsilon_transitions = epsilon_transitions.union(epsilon_state.transitions['EPSILON'])
for key in epsilon_state.transitions.keys():
for state in epsilon_state.transitions[key]:
self.add_transition(state, key)
for (symbol, states) in self.transitions.items():
for state in states:
state.subset_construction(visited)
def is_final_state(self, final_states):
if self in final_states:
return self
for state in final_states:
if 'EPSILON' in self.transitions and state in self.transitions['EPSILON']:
return state
return False
def delta(self, symbol):
transitions = set()
if symbol in self.transitions:
transitions = self.transitions[symbol]
return transitions
def __str__(self):
return self.name + f'({len(self.transitions)})'
def __repr__(self):
return str(self)
def display(self, visited=None):
if visited is None:
visited = set()
if self in visited:
return
visited.add(self)
for symbol in self.transitions:
for state in self.transitions[symbol]:
print(f'{self} -- {symbol} --> {state}')
for symbol in self.transitions:
for state in self.transitions[symbol]:
state.display(visited)
def _combine_nfas(nfas: list):
initial_state = nfa()
for nfa in nfas:
initial_state.add_transition(nfa, 'EPSILON')
initial_state.final_states = initial_state.final_states.union(nfa.final_states)
return initial_state |
class NumArray:
def __init__(self, nums: List[int]):
self.NumArray = nums
self.sum_mat = [0]*(len(nums)+1)
for i in range(len(nums)):
self.sum_mat[i+1] = nums[i] + self.sum_mat[i]
def sumRange(self, left: int, right: int) -> int:
#Approach 1
# sum1 = 0
# for i in range(left,right+1):
# sum1+=self.NumArray[i]
# return sum1
#Approach 2
return self.sum_mat[right+1] - self.sum_mat[left]
# Your NumArray object will be instantiated and called as such:
# obj = NumArray(nums)
# param_1 = obj.sumRange(left,right) | class Numarray:
def __init__(self, nums: List[int]):
self.NumArray = nums
self.sum_mat = [0] * (len(nums) + 1)
for i in range(len(nums)):
self.sum_mat[i + 1] = nums[i] + self.sum_mat[i]
def sum_range(self, left: int, right: int) -> int:
return self.sum_mat[right + 1] - self.sum_mat[left] |
def primes(N):
f = []
i = 1
while N > 1:
i = i + 1
k = 1
check = True
while k < i - 1:
k = k + 1
check = check and (i % k != 0)
if check:
c = 0
while N >= 1 and N % i == 0:
c = c + 1
N = N / i
if c > 0:
f.append((i, c))
return f
print(primes(2 ** 3 * 11 * 23))
print(primes(7))
| def primes(N):
f = []
i = 1
while N > 1:
i = i + 1
k = 1
check = True
while k < i - 1:
k = k + 1
check = check and i % k != 0
if check:
c = 0
while N >= 1 and N % i == 0:
c = c + 1
n = N / i
if c > 0:
f.append((i, c))
return f
print(primes(2 ** 3 * 11 * 23))
print(primes(7)) |
#program to delete all the repetitive character in a list
c=0;
lis=[1,2,3,4,5,1,2,3,4,5,1];
lis1=[];
k=0
for i in range(0,len(lis)):
for j in range(0,i+1):
if(lis[j]==lis[i]):
c=c+1;
if(c>1):
break;
if(c==1):
lis1.append(lis[i]);
k+=1;
c=0;
print(lis1);
| c = 0
lis = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1]
lis1 = []
k = 0
for i in range(0, len(lis)):
for j in range(0, i + 1):
if lis[j] == lis[i]:
c = c + 1
if c > 1:
break
if c == 1:
lis1.append(lis[i])
k += 1
c = 0
print(lis1) |
test = { 'name': 'q1_12_0',
'points': 0,
'suites': [ { 'cases': [ {'code': '>>> pop_for_year(1972) == 3345978384\nTrue', 'hidden': False, 'locked': False},
{'code': '>>> pop_for_year(1989) == 4567880153\nTrue', 'hidden': False, 'locked': False},
{'code': '>>> pop_for_year(2002) == 5501335945\nTrue', 'hidden': False, 'locked': False}],
'scored': True,
'setup': '',
'teardown': '',
'type': 'doctest'}]}
| test = {'name': 'q1_12_0', 'points': 0, 'suites': [{'cases': [{'code': '>>> pop_for_year(1972) == 3345978384\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> pop_for_year(1989) == 4567880153\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> pop_for_year(2002) == 5501335945\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]} |
# This program calculates the area of rectangle
# input for length
length = float(input('Enter the length: '))
# input for breadth
breadth = float(input('Enter the breadth: '))
# calculate area
area = length * breadth
# calculate perimeter
perimeter = 2 * (length + breadth)
print(f"Area is {area} and perimeter is {perimeter}") | length = float(input('Enter the length: '))
breadth = float(input('Enter the breadth: '))
area = length * breadth
perimeter = 2 * (length + breadth)
print(f'Area is {area} and perimeter is {perimeter}') |
# 3.2: Stack Min
# Runtime: O(1) - Space: O(1)
class Node:
def __init__(self, value):
self.value = value
self.next = None
self.minimum = None
class Stack:
def __init__(self):
self.top = None
self.minimum = None
def push(self, value):
new_top = Node(value)
new_top.next = self.top
self.top = new_top
if not self.minimum:
self.minimum = new_top
return
if value < self.minimum.value:
new_top.minimum = self.minimum
self.minimum = new_top
else:
new_top.minimum = self.minimum
def pop(self):
item = self.top
self.minimum = self.top.minimum
self.top = self.top.next
return item
def min(self):
return self.minimum
stack = Stack()
stack.push(5)
stack.push(3)
stack.push(2)
stack.push(6)
stack.push(1)
print("top:", stack.top.value)
print("min:", stack.min().value)
print("popped:", stack.pop().value)
print("top:", stack.top.value)
print("min:", stack.min().value)
print("popped:", stack.pop().value)
print("top:", stack.top.value)
print("min:", stack.min().value)
print("popped:", stack.pop().value)
print("top:", stack.top.value)
print("min:", stack.min().value)
print("popped:", stack.pop().value)
print("top:", stack.top.value)
print("min:", stack.min().value)
print("popped:", stack.pop().value)
| class Node:
def __init__(self, value):
self.value = value
self.next = None
self.minimum = None
class Stack:
def __init__(self):
self.top = None
self.minimum = None
def push(self, value):
new_top = node(value)
new_top.next = self.top
self.top = new_top
if not self.minimum:
self.minimum = new_top
return
if value < self.minimum.value:
new_top.minimum = self.minimum
self.minimum = new_top
else:
new_top.minimum = self.minimum
def pop(self):
item = self.top
self.minimum = self.top.minimum
self.top = self.top.next
return item
def min(self):
return self.minimum
stack = stack()
stack.push(5)
stack.push(3)
stack.push(2)
stack.push(6)
stack.push(1)
print('top:', stack.top.value)
print('min:', stack.min().value)
print('popped:', stack.pop().value)
print('top:', stack.top.value)
print('min:', stack.min().value)
print('popped:', stack.pop().value)
print('top:', stack.top.value)
print('min:', stack.min().value)
print('popped:', stack.pop().value)
print('top:', stack.top.value)
print('min:', stack.min().value)
print('popped:', stack.pop().value)
print('top:', stack.top.value)
print('min:', stack.min().value)
print('popped:', stack.pop().value) |
def test_configuration_session(eos_conn):
eos_conn.register_configuration_session(session_name="scrapli_test_session1")
result = eos_conn.send_configs(
configs=["interface ethernet 1", "show configuration sessions"],
privilege_level="scrapli_test_session1",
)
eos_conn.close()
# pop the config session out
eos_conn.privilege_levels.pop("scrapli_test_session1")
assert "* scrapli_test_session" in result[1].result
def test_configuration_session_abort(eos_conn):
eos_conn.register_configuration_session(session_name="scrapli_test_session2")
result = eos_conn.send_configs(
configs=["tacocat", "show configuration sessions"],
privilege_level="scrapli_test_session2",
stop_on_failed=True,
)
current_prompt = eos_conn.get_prompt()
eos_conn.close()
# pop the config session out
eos_conn.privilege_levels.pop("scrapli_test_session2")
# assert config session was aborted at first sign of failed config
assert len(result) == 1
# assert that session aborted and we are back at priv exec
assert current_prompt == "localhost#"
| def test_configuration_session(eos_conn):
eos_conn.register_configuration_session(session_name='scrapli_test_session1')
result = eos_conn.send_configs(configs=['interface ethernet 1', 'show configuration sessions'], privilege_level='scrapli_test_session1')
eos_conn.close()
eos_conn.privilege_levels.pop('scrapli_test_session1')
assert '* scrapli_test_session' in result[1].result
def test_configuration_session_abort(eos_conn):
eos_conn.register_configuration_session(session_name='scrapli_test_session2')
result = eos_conn.send_configs(configs=['tacocat', 'show configuration sessions'], privilege_level='scrapli_test_session2', stop_on_failed=True)
current_prompt = eos_conn.get_prompt()
eos_conn.close()
eos_conn.privilege_levels.pop('scrapli_test_session2')
assert len(result) == 1
assert current_prompt == 'localhost#' |
def print_left_triangle(b):
for i in range(1,b+1):
print ("*"*i)
print ("%"*i)
print_left_triangle(20)
| def print_left_triangle(b):
for i in range(1, b + 1):
print('*' * i)
print('%' * i)
print_left_triangle(20) |
# -*- coding: utf-8 -*-
"""
Spyder Editor
@auther: syenpark
Python Version: 3.6
"""
class WeightedEdge(Edge):
"""
make a gragh weighted
"""
def __init__(self, src, dest, weight):
self.src = src
self.dest = dest
self.weight = weight
def getWeight(self):
return self.weight
def __str__(self):
return Edge.getSource(self).getName() + '->' + Edge.getDestination(self).getName() + \
' (' + str(self.getWeight()) + ')'
| """
Spyder Editor
@auther: syenpark
Python Version: 3.6
"""
class Weightededge(Edge):
"""
make a gragh weighted
"""
def __init__(self, src, dest, weight):
self.src = src
self.dest = dest
self.weight = weight
def get_weight(self):
return self.weight
def __str__(self):
return Edge.getSource(self).getName() + '->' + Edge.getDestination(self).getName() + ' (' + str(self.getWeight()) + ')' |
def getModels(self):
if self._isFalse(self._root):
return list([])
if self._isTrue(self._root):
models = list([])
else:
models = self._getModels(self._root)
if self._varFullCount != len(self._varMap):
scope1 = self._nodes[self._root].scope
scope2 = self._vtreeMan.getScope(self._vtreeMan.getRoot())
missing = list(set(scope1) - set(scope2))
models = self._completeModels(models,missing)
return models
def _getModels(self,nodeId):
node = self._nodes[nodeId]
if node.computed:
modelsSave, modelsReturn = itertools.tee(node.models,2)
node.models = modelsSave
return modelsReturn
elif isinstance(node,LitNode):
model = BitVector(size = self._varFullModelLength)
model[node.varId] = (0 if node.negated else 1)
node.models = list([model])
node.computed = True
return node.models
models = []
for (p,s) in node.children:
tmpModels = []
if self._isFalse(p) or self._isFalse(s):
continue
if self._isTrue(p):
tmpModels = self._getModels(s)
elif self._isTrue(s):
tmpModels = self._getModels(p)
else:
tmpModels= self._product(self._getModels(p),\
self._getModels(s))
#------ complete the computed models
if node.scopeCount != self._nodes[p].scopeCount + self._nodes[s].scopeCount:
tmpModels = self._completeModels(tmpModels,node.scope,p, s)
models = itertools.chain(models,tmpModels)
modelsSave, modelsReturn = itertools.tee(node.models,2)
node.models = modelsSave
return modelsReturn
| def get_models(self):
if self._isFalse(self._root):
return list([])
if self._isTrue(self._root):
models = list([])
else:
models = self._getModels(self._root)
if self._varFullCount != len(self._varMap):
scope1 = self._nodes[self._root].scope
scope2 = self._vtreeMan.getScope(self._vtreeMan.getRoot())
missing = list(set(scope1) - set(scope2))
models = self._completeModels(models, missing)
return models
def _get_models(self, nodeId):
node = self._nodes[nodeId]
if node.computed:
(models_save, models_return) = itertools.tee(node.models, 2)
node.models = modelsSave
return modelsReturn
elif isinstance(node, LitNode):
model = bit_vector(size=self._varFullModelLength)
model[node.varId] = 0 if node.negated else 1
node.models = list([model])
node.computed = True
return node.models
models = []
for (p, s) in node.children:
tmp_models = []
if self._isFalse(p) or self._isFalse(s):
continue
if self._isTrue(p):
tmp_models = self._getModels(s)
elif self._isTrue(s):
tmp_models = self._getModels(p)
else:
tmp_models = self._product(self._getModels(p), self._getModels(s))
if node.scopeCount != self._nodes[p].scopeCount + self._nodes[s].scopeCount:
tmp_models = self._completeModels(tmpModels, node.scope, p, s)
models = itertools.chain(models, tmpModels)
(models_save, models_return) = itertools.tee(node.models, 2)
node.models = modelsSave
return modelsReturn |
def Corpus_bello():
return 'Corpus'
def actionMan(s):
return 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFU'
| def corpus_bello():
return 'Corpus'
def action_man(s):
return 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFU' |
# coding=utf-8
"""
@author: conan
@date: 2018/6/25
"""
if __name__ == '__main__':
empty_list = list()
print(empty_list)
str1 = 'I love you!'
print(str1)
fac = (1, 1, 2, 3, 5, 8, 13, 21, 34)
fac_list = list(fac)
print(fac_list)
print(len(empty_list))
print(len(str1))
print(max(1, 2, 3, 4, 5))
print(max([1, 2, 3, 39, -343, 559]))
print(min([1, 2, 3, 39, -343, 559]))
print(min((1, 2, 3, 39, -343, 559)))
print(min('123840'))
print(sum((3.1, 3.2, 2.2)))
print(sum((3.1, 3.2, 2.2), 8))
print(sorted(fac))
print(list(reversed(fac)))
print(list(enumerate(fac)))
a = [1, 2, 3, 4, 5]
b = [3, 2, 3, 4, 6]
print(list(zip(a, b)))
| """
@author: conan
@date: 2018/6/25
"""
if __name__ == '__main__':
empty_list = list()
print(empty_list)
str1 = 'I love you!'
print(str1)
fac = (1, 1, 2, 3, 5, 8, 13, 21, 34)
fac_list = list(fac)
print(fac_list)
print(len(empty_list))
print(len(str1))
print(max(1, 2, 3, 4, 5))
print(max([1, 2, 3, 39, -343, 559]))
print(min([1, 2, 3, 39, -343, 559]))
print(min((1, 2, 3, 39, -343, 559)))
print(min('123840'))
print(sum((3.1, 3.2, 2.2)))
print(sum((3.1, 3.2, 2.2), 8))
print(sorted(fac))
print(list(reversed(fac)))
print(list(enumerate(fac)))
a = [1, 2, 3, 4, 5]
b = [3, 2, 3, 4, 6]
print(list(zip(a, b))) |
"""
https://leetcode.com/problems/duplicate-zeros/
Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right.
Note that elements beyond the length of the original array are not written.
Do the above modifications to the input array in place, do not return anything from your function.
Example 1:
Input: [1,0,2,3,0,4,5,0]
Output: null
Explanation: After calling your function, the input array is modified to: [1,0,0,2,3,0,0,4]
Example 2:
Input: [1,2,3]
Output: null
Explanation: After calling your function, the input array is modified to: [1,2,3]
Note:
1 <= arr.length <= 10000
0 <= arr[i] <= 9
"""
# this is very tricky about the edge condition. In the first traverse, read and write can end up with read == write or ready == write + 1
# These two are different situations,
# read==write means read += 1 then read meet write, in this case write did not move at the last move of read,
# or read(0), 1, write, after this situation, read += 1 and write -= 1, so read and write meet.
# In both cases, this element that write is pointing to at the last, should not be repeated, because this one is literally the last element in the new list.
# read==write+1 means read finds a 0 this is second to the last element of the new list and this 0 should be repeated in this case.
# time complexity: O(n), space complexity: O(1)
class Solution:
def duplicateZeros(self, arr: List[int]) -> None:
"""
Do not return anything, modify arr in-place instead.
"""
write = len(arr) - 1 # this points to the last element of the final array
read = 0 # this points to the element we are scanning
while read < write:
read, write = (read+1, write) if arr[read] != 0 else (read+1, write-1)
lastrepeat = read != write
read, write = write, len(arr)-1
while read >= 0 and read <= write:
if arr[read] != 0 or write == len(arr)-1 and lastrepeat is False:
arr[write] = arr[read]
read -= 1
write -= 1
else:
arr[write] = 0
arr[write-1] = 0
write -= 2
read -= 1 | """
https://leetcode.com/problems/duplicate-zeros/
Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right.
Note that elements beyond the length of the original array are not written.
Do the above modifications to the input array in place, do not return anything from your function.
Example 1:
Input: [1,0,2,3,0,4,5,0]
Output: null
Explanation: After calling your function, the input array is modified to: [1,0,0,2,3,0,0,4]
Example 2:
Input: [1,2,3]
Output: null
Explanation: After calling your function, the input array is modified to: [1,2,3]
Note:
1 <= arr.length <= 10000
0 <= arr[i] <= 9
"""
class Solution:
def duplicate_zeros(self, arr: List[int]) -> None:
"""
Do not return anything, modify arr in-place instead.
"""
write = len(arr) - 1
read = 0
while read < write:
(read, write) = (read + 1, write) if arr[read] != 0 else (read + 1, write - 1)
lastrepeat = read != write
(read, write) = (write, len(arr) - 1)
while read >= 0 and read <= write:
if arr[read] != 0 or (write == len(arr) - 1 and lastrepeat is False):
arr[write] = arr[read]
read -= 1
write -= 1
else:
arr[write] = 0
arr[write - 1] = 0
write -= 2
read -= 1 |
# encoding: utf8
owner = 'module2'
def show_owner():
print(owner)
| owner = 'module2'
def show_owner():
print(owner) |
# Constants for first year, last year, date of march, and special years
FIRST_YEAR = 1900
LAST_YEAR = 2099
DATE_OF_MARCH = 31
SPECIAL_YEARS = [1954, 1981, 2049, 2076]
# Prompt and return year
def get_year():
valid = False
# Enter year until valid year is entered
while not valid:
year = int(input('Enter a year between 1900 to 2099, or 0 to finish: '))
# Check if valid year is entered
if year == 0 or year in range(FIRST_YEAR, LAST_YEAR + 1):
valid = True
else:
print('ERROR...year out of range')
print('Please enter a year that is in range. \n')
return year
# Calculate and return easter sunday date
def calculate_easter_sunday(year):
a = year % 19
b = year % 4
c = year % 7
d = (19 * a + 24) % 30
e = (2 * b + 4 * c + 6 * d + 5) % 7
easter_sunday = 22 + d + e
return easter_sunday
# Display easter sunday date in form month day, year
def get_date(year, easter_sunday):
if easter_sunday > DATE_OF_MARCH:
print(f'The date is April {easter_sunday - DATE_OF_MARCH}, {year}. \n')
else:
print(f'The date is March {easter_sunday}, {year}. \n')
# Define main function
def main():
finish = False
# Enter year until user enters 0
while not finish:
# Obtain year
year = get_year()
# Check if user finishes entering year
if year == 0:
finish = True
else:
# Obtain easter sunday date
easter_sunday = calculate_easter_sunday(year)
# Check if year is in special years
if year in SPECIAL_YEARS:
easter_sunday -= 7
# Display easter sunday date in form month day, year
get_date(year, easter_sunday)
# Call main function
main()
| first_year = 1900
last_year = 2099
date_of_march = 31
special_years = [1954, 1981, 2049, 2076]
def get_year():
valid = False
while not valid:
year = int(input('Enter a year between 1900 to 2099, or 0 to finish: '))
if year == 0 or year in range(FIRST_YEAR, LAST_YEAR + 1):
valid = True
else:
print('ERROR...year out of range')
print('Please enter a year that is in range. \n')
return year
def calculate_easter_sunday(year):
a = year % 19
b = year % 4
c = year % 7
d = (19 * a + 24) % 30
e = (2 * b + 4 * c + 6 * d + 5) % 7
easter_sunday = 22 + d + e
return easter_sunday
def get_date(year, easter_sunday):
if easter_sunday > DATE_OF_MARCH:
print(f'The date is April {easter_sunday - DATE_OF_MARCH}, {year}. \n')
else:
print(f'The date is March {easter_sunday}, {year}. \n')
def main():
finish = False
while not finish:
year = get_year()
if year == 0:
finish = True
else:
easter_sunday = calculate_easter_sunday(year)
if year in SPECIAL_YEARS:
easter_sunday -= 7
get_date(year, easter_sunday)
main() |
def parser(l, r):
if all(S[i].isdigit() for i in range(l, r + 1)):
return int(S[l:r + 1]) // 2 + 1
ret = []
cnt = 0
start = 0
for i in range(l, r + 1):
if S[i] == '[':
cnt += 1
if cnt == 1:
start = i
elif S[i] == ']':
if cnt == 1:
ret.append(parser(start + 1, i - 1))
cnt -= 1
ret.sort()
return sum(ret[:len(ret) // 2 + 1])
N = int(input())
for _ in range(N):
S = input()
print(parser(0, len(S) - 1))
| def parser(l, r):
if all((S[i].isdigit() for i in range(l, r + 1))):
return int(S[l:r + 1]) // 2 + 1
ret = []
cnt = 0
start = 0
for i in range(l, r + 1):
if S[i] == '[':
cnt += 1
if cnt == 1:
start = i
elif S[i] == ']':
if cnt == 1:
ret.append(parser(start + 1, i - 1))
cnt -= 1
ret.sort()
return sum(ret[:len(ret) // 2 + 1])
n = int(input())
for _ in range(N):
s = input()
print(parser(0, len(S) - 1)) |
# Print out an error message when DIV by zero occurs
#
# %rdi := the line of the binary expression
#
error_div_by_zero_code = """__error_div_by_zero:
pushq %rbx
movq %rdi, %rbx
movq $1, %rax
movq $2, %rdi
movq $_div_error, %rsi
movq $47, %rdx
syscall
movq %rbx, %rdi
call __write_stderr
movq $1, %rax
movq $2, %rdi
movq $_zero_end, %rsi
movq $20, %rdx
syscall
popq %rbx
movq $60, %rax
movq $1, %rdi
syscall"""
# Print out an error message when MOD by zero occurs
#
# %rdi := the line of the binary expression
#
error_mod_by_zero_code = """__error_mod_by_zero:
pushq %rbx
movq %rdi, %rbx
movq $1, %rax
movq $2, %rdi
movq $_mod_error, %rsi
movq $47, %rdx
syscall
movq %rbx, %rdi
call __write_stderr
movq $1, %rax
movq $2, %rdi
movq $_zero_end, %rsi
movq $20, %rdx
syscall
popq %rbx
movq $60, %rax
movq $1, %rdi
syscall"""
# Print out an error message when an index is out of range
#
# %rdi := line of the binary expression
# %rsi := the value the expression evaluated to
#
error_bad_index_code = """__error_bad_index:
pushq %rbx
movq %rdi, %rbx
pushq %r12
movq %rsi, %r12
movq $1, %rax
movq $2, %rdi
movq $_index_range, %rsi
movq $50, %rdx
syscall
movq %rbx, %rdi
call __write_stderr
movq $1, %rax
movq $2, %rdi
movq $_evaluated_to, %rsi
movq $14, %rdx
syscall
movq %r12, %rdi
call __write_stderr
movq $1, %rax
movq $2, %rdi
movb $10, -1(%rsp)
leaq -1(%rsp), %rsi
movq $1, %rdx
syscall
popq %r12
popq %rbx
movq $60, %rax
movq $1, %rdi
syscall"""
# Write an integer to stdout
#
# %rdi := the integer to write
#
write_stdout_code = """__write_stdout:
movq $1, %rsi
call __write
movq $1, %rax
movq $1, %rdi
movb $10, -1(%rsp)
leaq -1(%rsp), %rsi
movq $1, %rdx
syscall
ret"""
# Write an integer to stderr
#
# %rdi := the integer to write
#
write_stderr_code = """__write_stderr:
movq $2, %rsi
call __write
ret"""
# Write an integer to output
#
# %rdi := the integer to write
# %rsi := where to write to (1 : stdin, 2 : stderr)
#
write_code = """__write:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq %rdi, %rbx
pushq %r13
movq %rsi, %r13
pushq %r12
xorq %r12, %r12
cmpq $0, %rbx
jge _conversion_loop
movq $1, %rax
movq %r13, %rdi
movb $45, -1(%rsp)
leaq -1(%rsp), %rsi
movq $1, %rdx
syscall
neg %rbx
_conversion_loop:
cmpq $0, %rbx
je _write_characters
movq %rbx, %rax
xorq %rdx, %rdx
movq $10, %rcx
idivq %rcx
addq $48, %rdx
pushq %rdx
incq %r12
movq %rax, %rbx
jmp _conversion_loop
_write_characters:
cmpq $0, %r12
jne _write_loop
movq $1, %rax
movq %r13, %rdi
movb $48, -1(%rsp)
leaq -1(%rsp), %rsi
movq $1, %rdx
syscall
jmp _write_end
_write_loop:
movq $1, %rax
movq %r13, %rdi
popq %rsi
movb %sil, -1(%rsp)
leaq -1(%rsp), %rsi
movq $1, %rdx
syscall
decq %r12
jnz _write_loop
_write_end:
popq %r12
popq %r13
popq %rbx
movq %rbp, %rsp
popq %rbp
ret"""
# Print out an error if the input is not an integer
#
error_bad_input_code = """__error_bad_input:
movq $1, %rax
movq $2, %rdi
movq $_bad_input, %rsi
movq $37, %rdx
syscall
movq $60, %rax
movq $1, %rdi
syscall"""
# Read in an integer
#
# Returns:
# %rax := the integer read in
#
read_code = """__read:
pushq %rbp
movq %rsp, %rbp
subq $20, %rsp
xorq %rax, %rax
xorq %rdi, %rdi
movq %rsp, %rsi
movq $20, %rdx
syscall
_char_to_int:
xorq %rax, %rax
xorq %rcx, %rcx
movq %rsp, %rsi
xorq %rdx, %rdx
movb $45, %r8b
cmpb (%rsi), %r8b
jne _char_loop
movq $1, %rdx
incq %rsi
incq %rcx
_char_loop:
xorq %rdi, %rdi
movb (%rsi), %dil
cmpq $10, %rdi
je _finished_char_loop
cmpq $20, %rcx
je _finished_char_loop
cmpq $48, %rdi
jl __error_bad_input
cmpq $57, %rdi
jg __error_bad_input
subq $48, %rdi
movq $10, %r8
imulq %r8, %rax
addq %rdi, %rax
incq %rsi
incq %rcx
jmp _char_loop
_finished_char_loop:
cmp $1, %rdx
jne _finished_conversion
negq %rax
_finished_conversion:
movq %rbp, %rsp
popq %rbp
ret"""
| error_div_by_zero_code = '__error_div_by_zero:\n\t\tpushq\t%rbx\n\t\tmovq\t%rdi, %rbx\n\t\tmovq\t$1, %rax\n\t\tmovq\t$2, %rdi\n\t\tmovq\t$_div_error, %rsi\n\t\tmovq\t$47, %rdx\n\t\tsyscall\n\t\tmovq\t%rbx, %rdi\n\t\tcall\t__write_stderr\n\t\tmovq\t$1, %rax\n\t\tmovq\t$2, %rdi\n\t\tmovq\t$_zero_end, %rsi\n\t\tmovq\t$20, %rdx\n\t\tsyscall\n\t\tpopq\t%rbx\n\t\tmovq\t$60, %rax\n\t\tmovq\t$1, %rdi\n\t\tsyscall'
error_mod_by_zero_code = '__error_mod_by_zero:\n\t\tpushq\t%rbx\n\t\tmovq\t%rdi, %rbx\n\t\tmovq\t$1, %rax\n\t\tmovq\t$2, %rdi\n\t\tmovq\t$_mod_error, %rsi\n\t\tmovq\t$47, %rdx\n\t\tsyscall\n\t\tmovq\t%rbx, %rdi\n\t\tcall\t__write_stderr\n\t\tmovq\t$1, %rax\n\t\tmovq\t$2, %rdi\n\t\tmovq\t$_zero_end, %rsi\n\t\tmovq\t$20, %rdx\n\t\tsyscall\n\t\tpopq\t%rbx\n\t\tmovq\t$60, %rax\n\t\tmovq\t$1, %rdi\n\t\tsyscall'
error_bad_index_code = '__error_bad_index:\n\t\tpushq\t%rbx\n\t\tmovq\t%rdi, %rbx\n\t\tpushq\t%r12\n\t\tmovq\t%rsi, %r12\n\t\tmovq\t$1, %rax\n\t\tmovq\t$2, %rdi\n\t\tmovq\t$_index_range, %rsi\n\t\tmovq\t$50, %rdx\n\t\tsyscall\n\t\tmovq\t%rbx, %rdi\n\t\tcall\t__write_stderr\n\t\tmovq\t$1, %rax\n\t\tmovq\t$2, %rdi\n\t\tmovq\t$_evaluated_to, %rsi\n\t\tmovq\t$14, %rdx\n\t\tsyscall\n\t\tmovq\t%r12, %rdi\n\t\tcall\t__write_stderr\n\t\tmovq\t$1, %rax\n\t\tmovq\t$2, %rdi\n\t\tmovb\t$10, -1(%rsp)\n\t\tleaq\t-1(%rsp), %rsi\n\t\tmovq\t$1, %rdx\n\t\tsyscall\n\t\tpopq\t%r12\n\t\tpopq\t%rbx\n\t\tmovq\t$60, %rax\n\t\tmovq\t$1, %rdi\n\t\tsyscall'
write_stdout_code = '__write_stdout:\n\t\tmovq\t$1, %rsi\n\t\tcall\t__write\n\t\tmovq\t$1, %rax\n\t\tmovq\t$1, %rdi\n\t\tmovb\t$10, -1(%rsp)\n\t\tleaq\t-1(%rsp), %rsi\n\t\tmovq\t$1, %rdx\n\t\tsyscall\n\t\tret'
write_stderr_code = '__write_stderr:\n\t\tmovq\t$2, %rsi\n\t\tcall\t__write\n\t\tret'
write_code = '__write:\n\t\tpushq\t%rbp\n\t\tmovq\t%rsp, %rbp\n\t\tpushq\t%rbx\n\t\tmovq\t%rdi, %rbx\n\t\tpushq\t%r13\n\t\tmovq\t%rsi, %r13\n\t\tpushq\t%r12\n\t\txorq\t%r12, %r12\n\t\tcmpq\t$0, %rbx\n\t\tjge\t\t_conversion_loop\n\t\tmovq\t$1, %rax\n\t\tmovq\t%r13, %rdi\n\t\tmovb\t$45, -1(%rsp)\n\t\tleaq\t-1(%rsp), %rsi\n\t\tmovq\t$1, %rdx\n\t\tsyscall\n\t\tneg\t\t%rbx\n_conversion_loop:\n\t\tcmpq\t$0, %rbx\n\t\tje\t\t_write_characters\n\t\tmovq\t%rbx, %rax\n\t\txorq\t%rdx, %rdx\n\t\tmovq\t$10, %rcx\n\t\tidivq\t%rcx\n\t\taddq\t$48, %rdx\n\t\tpushq\t%rdx\n\t\tincq\t%r12\n\t\tmovq\t%rax, %rbx\n\t\tjmp\t\t_conversion_loop\n_write_characters:\n\t\tcmpq\t$0, %r12\n\t\tjne\t\t_write_loop\n\t\tmovq\t$1, %rax\n\t\tmovq\t%r13, %rdi\n\t\tmovb\t$48, -1(%rsp)\n\t\tleaq\t-1(%rsp), %rsi\n\t\tmovq\t$1, %rdx\n\t\tsyscall\n\t\tjmp\t\t_write_end\n_write_loop:\n\t\tmovq\t$1, %rax\n\t\tmovq\t%r13, %rdi\n\t\tpopq\t%rsi\n\t\tmovb\t%sil, -1(%rsp)\n\t\tleaq\t-1(%rsp), %rsi\n\t\tmovq\t$1, %rdx\n\t\tsyscall\n\t\tdecq\t%r12\n\t\tjnz\t\t_write_loop\n_write_end:\n\t\tpopq\t%r12\n\t\tpopq\t%r13\n\t\tpopq\t%rbx\n\t\tmovq\t%rbp, %rsp\n\t\tpopq\t%rbp\n\t\tret'
error_bad_input_code = '__error_bad_input:\n\t\tmovq\t$1, %rax\n\t\tmovq\t$2, %rdi\n\t\tmovq\t$_bad_input, %rsi\n\t\tmovq\t$37, %rdx\n\t\tsyscall\n\t\tmovq\t$60, %rax\n\t\tmovq\t$1, %rdi\n\t\tsyscall'
read_code = '__read:\n\t\tpushq\t%rbp\n\t\tmovq\t%rsp, %rbp\n\t\tsubq\t$20, %rsp\n\t\txorq\t%rax, %rax\n\t\txorq\t%rdi, %rdi\n\t\tmovq\t%rsp, %rsi\n\t\tmovq\t$20, %rdx\n\t\tsyscall\n_char_to_int:\n\t\txorq\t%rax, %rax\n\t\txorq\t%rcx, %rcx\n\t\tmovq\t%rsp, %rsi\n\t\txorq\t%rdx, %rdx\n\t\tmovb\t$45, %r8b\n\t\tcmpb\t(%rsi), %r8b\n\t\tjne\t\t_char_loop\n\t\tmovq\t$1, %rdx\n\t\tincq\t%rsi\n\t\tincq\t%rcx\n_char_loop:\n\t\txorq\t%rdi, %rdi\n\t\tmovb\t(%rsi), %dil\n\t\tcmpq\t$10, %rdi\n\t\tje\t\t_finished_char_loop\n\t\tcmpq\t$20, %rcx\n\t\tje\t\t_finished_char_loop\n\t\tcmpq\t$48, %rdi\n\t\tjl\t\t__error_bad_input\n\t\tcmpq\t$57, %rdi\n\t\tjg\t\t__error_bad_input\n\t\tsubq\t$48, %rdi\n\t\tmovq\t$10, %r8\n\t\timulq\t%r8, %rax\n\t\taddq\t%rdi, %rax\n\t\tincq\t%rsi\n\t\tincq\t%rcx\n\t\tjmp\t\t_char_loop\n_finished_char_loop:\n\t\tcmp\t\t$1, %rdx\n\t\tjne\t\t_finished_conversion\n\t\tnegq\t%rax\n_finished_conversion:\n\t\tmovq\t%rbp, %rsp\n\t\tpopq\t%rbp\n\t\tret' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.