content stringlengths 7 1.05M |
|---|
#!/usr/bin/python3
"""
Define a Square class
"""
class Square:
"""
A class that defines a square.
"""
def __init__(self, size=0):
"""
Initializes the square.
Args:
size (int): The size of the square.
"""
self.size = size
@property
def size(self):
"""
Returns the size of the square.
"""
return self.__size
@size.setter
def size(self, value):
"""
Sets the size of the square.
Args:
value (int): The size of the square.
"""
if type(value) is not int:
raise TypeError("size must be an integer")
if value < 0:
raise ValueError("size must be >= 0")
self.__size = value
def area(self):
"""
Returns the area of the square.
"""
return self.__size ** 2
def my_print(self):
"""
Prints the square with character #.
"""
if self.__size == 0:
print()
else:
for i in range(self.__size):
print("#" * self.__size)
|
'''Без использования библиотек, создать класс для представления информации о времени. Ваш класс должен иметь
возможности установки времени и изменения его отдельных полей (час, минута,
секунда) с проверкой допустимости вводимых значений. В случае недопустимых
значений полей нужно установить максимально допустимое значение.
Создать методы изменения времени на заданное количество часов, минут и секунд.'''
class Time:
def __init__(self, h=0, m=0, s=0):
self.hours = h
self.minutes = m
self.seconds = s
@property
def hours(self):
return self.hours
@hours.setter
def _set_hours(self, value):
if 0 <= value <= 23:
self._hours = value
else:
raise ValueError
@property
def minutes(self):
return self.minutes
@minutes.setter
def _set_minutes(self, value):
if 0 <= value <= 59:
self._minutes = value
else:
raise ValueError
@property
def seconds(self):
return self.seconds
@second.setter
def _set_seconds(self, value):
if 0 <= value <= 59:
self._seconds = value
else:
raise ValueError
def offsethours(self, n_hours):
act_hours = self._hours + n_hours
self._hours = act_hours%24
def offsetminutes(self, n_minutes):
act_minutes = self._minutes + n_minutes
self._minutes = act_minutes%60
def offsetseconds(self, n_seconds):
act_seconds = self._seconds + n_seconds
self._seconds = act_seconds%60
def __repr__(self):
return f'<Time {self.hours}h {self.minutes}m {self.seconds}s>'
def __str__(self):
return f'{self.hours}:{self.minutes}:{self.seconds}'
|
#
# PySNMP MIB module CISCOSB-TRAPS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-TRAPS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:23:52 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")
ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint")
rldot1dStpTrapVrblVID, rldot1dStpTrapVrblifIndex = mibBuilder.importSymbols("CISCOSB-BRIDGEMIBOBJECTS-MIB", "rldot1dStpTrapVrblVID", "rldot1dStpTrapVrblifIndex")
rndErrorSeverity, rndErrorDesc = mibBuilder.importSymbols("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity", "rndErrorDesc")
switch001, = mibBuilder.importSymbols("CISCOSB-MIB", "switch001")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
NotificationType, Gauge32, Unsigned32, IpAddress, MibIdentifier, Bits, Counter32, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Integer32, TimeTicks, ModuleIdentity, iso = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Gauge32", "Unsigned32", "IpAddress", "MibIdentifier", "Bits", "Counter32", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Integer32", "TimeTicks", "ModuleIdentity", "iso")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
rndNotifications = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0))
rndNotifications.setRevisions(('2010-06-25 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: rndNotifications.setRevisionsDescriptions(('Initial revision.',))
if mibBuilder.loadTexts: rndNotifications.setLastUpdated('201006250000Z')
if mibBuilder.loadTexts: rndNotifications.setOrganization('Cisco Small Business')
if mibBuilder.loadTexts: rndNotifications.setContactInfo('Postal: 170 West Tasman Drive San Jose , CA 95134-1706 USA Website: Cisco Small Business Home http://www.cisco.com/smb>;, Cisco Small Business Support Community <http://www.cisco.com/go/smallbizsupport>')
if mibBuilder.loadTexts: rndNotifications.setDescription('This private MIB module defines switch private notifications')
rxOverflowHWFault = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 3)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rxOverflowHWFault.setStatus('current')
if mibBuilder.loadTexts: rxOverflowHWFault.setDescription('An RX buffer overflow has occurred in one of the LAN or link interfaces. The bound variable rndErrorDesc provides the interface number.')
txOverflowHWFault = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 4)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: txOverflowHWFault.setStatus('current')
if mibBuilder.loadTexts: txOverflowHWFault.setDescription('Interport queue overflow has occurred in one of the LAN or link interfaces. The bound variable rndErrorDesc provides the interface number.')
routeTableOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 5)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: routeTableOverflow.setStatus('current')
if mibBuilder.loadTexts: routeTableOverflow.setDescription('An overflow condition has occurred in the Routing Table. The Routing Table is used for IP routing algorithm (RIP).')
resetRequired = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 10)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: resetRequired.setStatus('current')
if mibBuilder.loadTexts: resetRequired.setDescription('This trap indicates that in order to perform the last SET request, a reset operation of the router/bridge is required. This occurs when the layer 2 routing algorithm is changed between SPF and Spanning Tree. The reset can be performed manually or using the variable rndAction.')
endTftp = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 12)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: endTftp.setStatus('current')
if mibBuilder.loadTexts: endTftp.setDescription('This trap indicates that in the device finished a TFTP transaction with the management station. variable rndErrorDesc and rndErrorSeverity provides the actual message text and severity respectively.')
abortTftp = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 13)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: abortTftp.setStatus('current')
if mibBuilder.loadTexts: abortTftp.setDescription('This trap indicates that in the device aborted a TFTP session with the management station. Variable rndErrorDesc and rndErrorSeverity provides the actual message text and severity respectively.')
startTftp = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 14)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: startTftp.setStatus('current')
if mibBuilder.loadTexts: startTftp.setDescription('Informational trap indicating that the device has intiated a TFTP session. rndErrorDesc will contain the file type in question')
faultBackUp = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 23)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: faultBackUp.setStatus('current')
if mibBuilder.loadTexts: faultBackUp.setDescription('Automantic switchover to backup link because of main link fault.')
mainLinkUp = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 24)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: mainLinkUp.setStatus('current')
if mibBuilder.loadTexts: mainLinkUp.setDescription('Communication returened to main link.')
ipxRipTblOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 36)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: ipxRipTblOverflow.setStatus('current')
if mibBuilder.loadTexts: ipxRipTblOverflow.setDescription('This trap indicates that in an OpenGate IPX RIP table overflow. The bound variable rndErrorDesc, rndErrorSeverity provides the actual message text and severity respectively.')
ipxSapTblOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 37)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: ipxSapTblOverflow.setStatus('current')
if mibBuilder.loadTexts: ipxSapTblOverflow.setDescription('This trap indicates that in an OpenGate IPX SAP table overflow. The bound variable rndErrorDesc, rndErrorSeverity provides the actual message text and severity respectively.')
facsAccessVoilation = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 49)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: facsAccessVoilation.setStatus('current')
if mibBuilder.loadTexts: facsAccessVoilation.setDescription('This trap indicates that message that fits FACS statenebt with operation blockAndReport was forward to the interface. The bound variable rndErrorDesc, rndErrorSeverity(== info ) and interface Number.')
autoConfigurationCompleted = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 50)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: autoConfigurationCompleted.setStatus('current')
if mibBuilder.loadTexts: autoConfigurationCompleted.setDescription('This trap indicates that auto comfiguration completetd succssefully. The bound variable rndErrorDesc, rndErrorSeverity(== info )')
forwardingTabOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 51)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: forwardingTabOverflow.setStatus('current')
if mibBuilder.loadTexts: forwardingTabOverflow.setDescription('This trap indicates that an overflow condition has occurred in the layer II Forward Table. The bound variable rndErrorDesc, rndErrorSeverity(== warning )')
framRelaySwitchConnectionUp = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 53)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: framRelaySwitchConnectionUp.setStatus('current')
if mibBuilder.loadTexts: framRelaySwitchConnectionUp.setDescription('This trap indicates that a connection establish between the Frame relay Switch and the WanGate. The bound variable rndErrorDesc, rndErrorSeverity(== warning )')
framRelaySwitchConnectionDown = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 54)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: framRelaySwitchConnectionDown.setStatus('current')
if mibBuilder.loadTexts: framRelaySwitchConnectionDown.setDescription('This trap indicates that a connection between the Frame Relay Switch and the WanGate failed. The bound variable rndErrorDesc, rndErrorSeverity(== warning )')
errorsDuringInit = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 61)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: errorsDuringInit.setStatus('current')
if mibBuilder.loadTexts: errorsDuringInit.setDescription('This trap indicates that the an error occured during initialization The bound variable rndErrorDesc, rndErrorSeverity(== error )')
vlanDynPortAdded = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 66)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: vlanDynPortAdded.setStatus('current')
if mibBuilder.loadTexts: vlanDynPortAdded.setDescription('')
vlanDynPortRemoved = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 67)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: vlanDynPortRemoved.setStatus('current')
if mibBuilder.loadTexts: vlanDynPortRemoved.setDescription('')
rsSDclientsTableOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 68)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsSDclientsTableOverflow.setStatus('current')
if mibBuilder.loadTexts: rsSDclientsTableOverflow.setDescription('This warning is generated when an overflow occurs in the clients table.')
rsSDinactiveServer = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 69)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsSDinactiveServer.setStatus('current')
if mibBuilder.loadTexts: rsSDinactiveServer.setDescription('This warning is generated when a server does not respond to the dispatchers polling and is thought to be inactive.')
rsIpZhrConnectionsTableOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 70)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsIpZhrConnectionsTableOverflow.setStatus('current')
if mibBuilder.loadTexts: rsIpZhrConnectionsTableOverflow.setDescription('The Zero Hop Routing connections Table has been overflown.')
rsIpZhrReqStaticConnNotAccepted = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 71)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsIpZhrReqStaticConnNotAccepted.setStatus('current')
if mibBuilder.loadTexts: rsIpZhrReqStaticConnNotAccepted.setDescription('The requested static connection was not accepted because there is no available IP virtual address to allocate to it.')
rsIpZhrVirtualIpAsSource = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 72)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsIpZhrVirtualIpAsSource.setStatus('current')
if mibBuilder.loadTexts: rsIpZhrVirtualIpAsSource.setDescription('The virtual IP address appeared as a source IP. All the connections using it will be deleted and it will not be further allocated to new connections.')
rsIpZhrNotAllocVirtualIp = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 73)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsIpZhrNotAllocVirtualIp.setStatus('current')
if mibBuilder.loadTexts: rsIpZhrNotAllocVirtualIp.setDescription('The source IP address sent an ARP specifying a virtual IP which was not allocated for this source. This virtual IP will not be allocated to connections of this specific source IP.')
rsSnmpSetRequestInSpecialCfgState = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 74)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsSnmpSetRequestInSpecialCfgState.setStatus('current')
if mibBuilder.loadTexts: rsSnmpSetRequestInSpecialCfgState.setDescription('An incoming SNMP SET request was rejected because no such requests (except action requests) are accepted after start of new configuration reception or during sending the current configuration to an NMS.')
rsPingCompletion = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 136)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsPingCompletion.setStatus('current')
if mibBuilder.loadTexts: rsPingCompletion.setDescription('A rsPingCompleted trap is sent at the completion of a sequence of pings if such a trap was requested when the sequence was initiated. The trap severity is info. The trap text will specify the following information: rsPingCompletionStatus, rsPingSentPackets, rsPingReceivedPackets In addition to the above listed objects (which are always present), the message will also specify the following quantities: if any responses were received: rsPingMinReturnTime rsPingAvgReturnTime rsPingMaxReturnTime')
pppSecurityViolation = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 137)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: pppSecurityViolation.setStatus('current')
if mibBuilder.loadTexts: pppSecurityViolation.setDescription('This trap indicates that a PPP link got an unrecognized secret. The bound variables rndErrorDesc, rndErrorSeverity(== warning ), interface Number. and pppSecurityIdentity')
frDLCIStatudChange = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 138)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: frDLCIStatudChange.setStatus('current')
if mibBuilder.loadTexts: frDLCIStatudChange.setDescription('')
papFailedCommunication = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 139)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: papFailedCommunication.setStatus('current')
if mibBuilder.loadTexts: papFailedCommunication.setDescription('')
chapFailedCommunication = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 140)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: chapFailedCommunication.setStatus('current')
if mibBuilder.loadTexts: chapFailedCommunication.setDescription('')
rsWSDRedundancySwitch = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 141)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsWSDRedundancySwitch.setStatus('current')
if mibBuilder.loadTexts: rsWSDRedundancySwitch.setDescription('Whenever main server fails and backup takes over or server comes up after failure a trap of this type is issued.')
rsDhcpAllocationFailure = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 142)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rsDhcpAllocationFailure.setStatus('current')
if mibBuilder.loadTexts: rsDhcpAllocationFailure.setDescription('DHCP failed to allocate an IP address to a requesting host because of memory shortage or inadequate configuration of available IP addresses.')
rlIpFftStnOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 145)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlIpFftStnOverflow.setStatus('current')
if mibBuilder.loadTexts: rlIpFftStnOverflow.setDescription('The IP SFFT overflow.')
rlIpFftSubOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 146)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlIpFftSubOverflow.setStatus('current')
if mibBuilder.loadTexts: rlIpFftSubOverflow.setDescription('The IP NFFT overflow.')
rlIpxFftStnOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 147)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlIpxFftStnOverflow.setStatus('current')
if mibBuilder.loadTexts: rlIpxFftStnOverflow.setDescription('The IPX SFFT overflow.')
rlIpxFftSubOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 148)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlIpxFftSubOverflow.setStatus('current')
if mibBuilder.loadTexts: rlIpxFftSubOverflow.setDescription('The IPX NFFT overflow.')
rlIpmFftOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 149)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlIpmFftOverflow.setStatus('current')
if mibBuilder.loadTexts: rlIpmFftOverflow.setDescription('The IPM FFT overflow.')
rlPhysicalDescriptionChanged = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 150)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlPhysicalDescriptionChanged.setStatus('current')
if mibBuilder.loadTexts: rlPhysicalDescriptionChanged.setDescription('Indicates that the physical decription of the device has changed')
rldot1dStpPortStateForwarding = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 151)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"), ("CISCOSB-BRIDGEMIBOBJECTS-MIB", "rldot1dStpTrapVrblifIndex"), ("CISCOSB-BRIDGEMIBOBJECTS-MIB", "rldot1dStpTrapVrblVID"))
if mibBuilder.loadTexts: rldot1dStpPortStateForwarding.setStatus('current')
if mibBuilder.loadTexts: rldot1dStpPortStateForwarding.setDescription('The trap is sent by a bridge when any of its configured ports transitions from the Learning state to the Forwarding state.')
rldot1dStpPortStateNotForwarding = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 152)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"), ("CISCOSB-BRIDGEMIBOBJECTS-MIB", "rldot1dStpTrapVrblifIndex"), ("CISCOSB-BRIDGEMIBOBJECTS-MIB", "rldot1dStpTrapVrblVID"))
if mibBuilder.loadTexts: rldot1dStpPortStateNotForwarding.setStatus('current')
if mibBuilder.loadTexts: rldot1dStpPortStateNotForwarding.setDescription('The trap is sent by a bridge when any of its configured ports transitions from the Forwarding state to the Blocking state.')
rlPolicyDropPacketTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 153)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlPolicyDropPacketTrap.setStatus('current')
if mibBuilder.loadTexts: rlPolicyDropPacketTrap.setDescription('Indicates that the packet drop due to the policy ')
rlPolicyForwardPacketTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 154)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlPolicyForwardPacketTrap.setStatus('current')
if mibBuilder.loadTexts: rlPolicyForwardPacketTrap.setDescription('Indicates that the packet has forward based on policy')
rlIgmpProxyTableOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 156)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlIgmpProxyTableOverflow.setStatus('current')
if mibBuilder.loadTexts: rlIgmpProxyTableOverflow.setDescription('An IGMP PROXY Table overflow.')
rlIgmpV1MsgReceived = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 157)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlIgmpV1MsgReceived.setStatus('current')
if mibBuilder.loadTexts: rlIgmpV1MsgReceived.setDescription('An IGMP Message of v1 received on ifIndex. ')
rlVrrpEntriesDeleted = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 158)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlVrrpEntriesDeleted.setStatus('current')
if mibBuilder.loadTexts: rlVrrpEntriesDeleted.setDescription('One or more VRRP entries deleted due to IP interface deletion or transition. ')
rlHotSwapTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 159)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlHotSwapTrap.setStatus('current')
if mibBuilder.loadTexts: rlHotSwapTrap.setDescription('Hot swap trap.')
rlTrunkPortAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 160)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlTrunkPortAddedTrap.setStatus('current')
if mibBuilder.loadTexts: rlTrunkPortAddedTrap.setDescription('Informational trap indicating that a port is added to a trunk')
rlTrunkPortRemovedTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 161)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlTrunkPortRemovedTrap.setStatus('current')
if mibBuilder.loadTexts: rlTrunkPortRemovedTrap.setDescription('This warning is generated when a port removed from a trunk.')
rlTrunkPortNotCapableTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 162)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlTrunkPortNotCapableTrap.setStatus('current')
if mibBuilder.loadTexts: rlTrunkPortNotCapableTrap.setDescription('Informational trap indicating that a port can not be added to a trunk because of device limitations or diffrent swIfType.')
rlLockPortTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 170)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlLockPortTrap.setStatus('current')
if mibBuilder.loadTexts: rlLockPortTrap.setDescription('Informational trap indicating that a locked port receive a frame with new source Mac Address.')
vlanDynVlanAdded = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 171)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: vlanDynVlanAdded.setStatus('current')
if mibBuilder.loadTexts: vlanDynVlanAdded.setDescription('add gvrp dynamic vlan')
vlanDynVlanRemoved = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 172)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: vlanDynVlanRemoved.setStatus('current')
if mibBuilder.loadTexts: vlanDynVlanRemoved.setDescription('remove gvrp dynamic vlan')
vlanDynamicToStatic = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 173)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: vlanDynamicToStatic.setStatus('current')
if mibBuilder.loadTexts: vlanDynamicToStatic.setDescription('vlan status was changed from dynamic to static')
vlanStaticToDynamic = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 174)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: vlanStaticToDynamic.setStatus('current')
if mibBuilder.loadTexts: vlanStaticToDynamic.setDescription('vlan status was changed from static to dynamic')
dstrSysLog = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 175)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: dstrSysLog.setStatus('current')
if mibBuilder.loadTexts: dstrSysLog.setDescription('Master receive trap from slave , and forward it as trap')
rlEnvMonFanStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 176)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlEnvMonFanStateChange.setStatus('current')
if mibBuilder.loadTexts: rlEnvMonFanStateChange.setDescription('Trap indicating the fan state. rndErrorSeverity will be: 0 for fan state nomal, notPresent 1 for fan state warning, notFunctioning 2 for fan state critical 3 for fan state fatal The error text will specify the fan index, fan description and the exact fan state')
rlEnvMonPowerSupplyStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 177)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlEnvMonPowerSupplyStateChange.setStatus('current')
if mibBuilder.loadTexts: rlEnvMonPowerSupplyStateChange.setDescription('Trap indicating the power supply state. rndErrorSeverity will be: 0 for power supply state nomal, notPresent 1 for power supply state warning, notFunctioning 2 for power supply state critical 3 for power supply state fatal The error text will specify the power supply index, power supply description and the exact power supply state')
rlStackStateChange = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 178)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlStackStateChange.setStatus('current')
if mibBuilder.loadTexts: rlStackStateChange.setDescription('Trap indicating the stack connection state 0 for stack state connected, 1 for stack state disconnected ')
rlEnvMonTemperatureRisingAlarm = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 179)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlEnvMonTemperatureRisingAlarm.setStatus('current')
if mibBuilder.loadTexts: rlEnvMonTemperatureRisingAlarm.setDescription('Trap indicating that the temperature in the device has exceeded the device specific safe temperature threshold.')
rlBrgMacAddFailedTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 183)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlBrgMacAddFailedTrap.setStatus('current')
if mibBuilder.loadTexts: rlBrgMacAddFailedTrap.setDescription('Informational trap indicating that adding dynamic mac/s failed due to full hash chain.')
rldot1xPortStatusAuthorizedTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 184)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rldot1xPortStatusAuthorizedTrap.setStatus('current')
if mibBuilder.loadTexts: rldot1xPortStatusAuthorizedTrap.setDescription('Informational trap indicating that port 802.1x status is authorized.')
rldot1xPortStatusUnauthorizedTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 185)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rldot1xPortStatusUnauthorizedTrap.setStatus('current')
if mibBuilder.loadTexts: rldot1xPortStatusUnauthorizedTrap.setDescription('Warning trap is indicating that port 802.1x status is unAuthorized.')
swIfTablePortLock = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 192)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: swIfTablePortLock.setStatus('current')
if mibBuilder.loadTexts: swIfTablePortLock.setDescription('Warning trap is indicating port lock hase began.')
swIfTablePortUnLock = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 193)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: swIfTablePortUnLock.setStatus('current')
if mibBuilder.loadTexts: swIfTablePortUnLock.setDescription('Warning trap is indicating port lock has ended.')
rlAAAUserLocked = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 194)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlAAAUserLocked.setStatus('current')
if mibBuilder.loadTexts: rlAAAUserLocked.setDescription('Warning trap indicating that the user was locked after number of consecutives unsuccessful login attempts.')
bpduGuardPortSuspended = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 202)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: bpduGuardPortSuspended.setStatus('current')
if mibBuilder.loadTexts: bpduGuardPortSuspended.setDescription('Warning trap indicating - Port was suspended because there was BPDU Guard violation.')
rldot1xSupplicantMacAuthorizedTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 203)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rldot1xSupplicantMacAuthorizedTrap.setStatus('current')
if mibBuilder.loadTexts: rldot1xSupplicantMacAuthorizedTrap.setDescription('Informational trap indicating that MAC authentication supplicant is authenticated and is allowed to access the network.')
rldot1xSupplicantMacUnauthorizedTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 204)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rldot1xSupplicantMacUnauthorizedTrap.setStatus('current')
if mibBuilder.loadTexts: rldot1xSupplicantMacUnauthorizedTrap.setDescription('Warning trap is indicating that Radius server rejects MAC authentication supplicant.')
stpLoopbackDetection = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 205)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: stpLoopbackDetection.setStatus('current')
if mibBuilder.loadTexts: stpLoopbackDetection.setDescription('Warning trap indicating - A loopback was detected on port.')
stpLoopbackDetectionResolved = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 206)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: stpLoopbackDetectionResolved.setStatus('current')
if mibBuilder.loadTexts: stpLoopbackDetectionResolved.setDescription('Warning trap indicating - A loopback detection resolved on port.')
loopbackDetectionPortSuspended = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 207)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: loopbackDetectionPortSuspended.setStatus('current')
if mibBuilder.loadTexts: loopbackDetectionPortSuspended.setDescription('Warning trap indicating - A port has been suspended by Loopback Detection.')
rlPortSuspended = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 213)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlPortSuspended.setStatus('current')
if mibBuilder.loadTexts: rlPortSuspended.setDescription('Warning trap indicating - A port has been suspended by Any application.')
rlSpecialBpduDbOverflow = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 214)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlSpecialBpduDbOverflow.setStatus('current')
if mibBuilder.loadTexts: rlSpecialBpduDbOverflow.setDescription('Warning trap indicating - Special BPDU DB Overflow.')
rldot1xSupplicantLoggedOutTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 215)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rldot1xSupplicantLoggedOutTrap.setStatus('current')
if mibBuilder.loadTexts: rldot1xSupplicantLoggedOutTrap.setDescription('Warning trap is indicating that supplicant was logged out Since the ports time-range state was changed to inactive.')
rldot1xPortControlModeNotAutoTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 216)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rldot1xPortControlModeNotAutoTrap.setStatus('current')
if mibBuilder.loadTexts: rldot1xPortControlModeNotAutoTrap.setDescription('Warning trap is indicating that altough ports time-range Is active now, it can not start working in mode auto.')
rlEeeLldpMultipleNeighbours = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 217)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlEeeLldpMultipleNeighbours.setStatus('current')
if mibBuilder.loadTexts: rlEeeLldpMultipleNeighbours.setDescription('Warning trap indicating - Port has multiple LLDP remote link neighbours - EEE operational state will be FALSE.')
rlEeeLldpSingleNeighbour = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 218)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlEeeLldpSingleNeighbour.setStatus('current')
if mibBuilder.loadTexts: rlEeeLldpSingleNeighbour.setDescription('Warning trap indicating - Port has single LLDP remote link neighbour - EEE operational can be TRUE.')
rldot1xSupplicantQuietPeriodTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 219)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rldot1xSupplicantQuietPeriodTrap.setStatus('current')
if mibBuilder.loadTexts: rldot1xSupplicantQuietPeriodTrap.setDescription('Warning trap is indicating that supplicant quiet period timeout is active now.')
rlStackVersionUpgradeTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 222)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlStackVersionUpgradeTrap.setStatus('current')
if mibBuilder.loadTexts: rlStackVersionUpgradeTrap.setDescription('Informational trap indicating that stack slave is upgrading to the image or boot version of the stack master.')
rlStackVersionDowngradeTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 223)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlStackVersionDowngradeTrap.setStatus('current')
if mibBuilder.loadTexts: rlStackVersionDowngradeTrap.setDescription('Warning trap indicating that stack slave is downgrading to the image or boot version of the stack master.')
pseInrushPort = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 240)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: pseInrushPort.setStatus('current')
if mibBuilder.loadTexts: pseInrushPort.setDescription('Informational trap indicating that port in PD does not meet the inrush-current standard.')
rlStormControlMinRateTrap = NotificationType((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 0, 241)).setObjects(("CISCOSB-DEVICEPARAMS-MIB", "rndErrorDesc"), ("CISCOSB-DEVICEPARAMS-MIB", "rndErrorSeverity"))
if mibBuilder.loadTexts: rlStormControlMinRateTrap.setStatus('current')
if mibBuilder.loadTexts: rlStormControlMinRateTrap.setDescription('Warning trap indicating that port storm control rate limit is configured to minumum rate.')
mibBuilder.exportSymbols("CISCOSB-TRAPS-MIB", dstrSysLog=dstrSysLog, framRelaySwitchConnectionUp=framRelaySwitchConnectionUp, rlIpmFftOverflow=rlIpmFftOverflow, rlIpFftSubOverflow=rlIpFftSubOverflow, vlanDynamicToStatic=vlanDynamicToStatic, papFailedCommunication=papFailedCommunication, rldot1xSupplicantMacAuthorizedTrap=rldot1xSupplicantMacAuthorizedTrap, swIfTablePortLock=swIfTablePortLock, vlanDynPortAdded=vlanDynPortAdded, rlTrunkPortRemovedTrap=rlTrunkPortRemovedTrap, rldot1xSupplicantQuietPeriodTrap=rldot1xSupplicantQuietPeriodTrap, bpduGuardPortSuspended=bpduGuardPortSuspended, forwardingTabOverflow=forwardingTabOverflow, rxOverflowHWFault=rxOverflowHWFault, rlEeeLldpMultipleNeighbours=rlEeeLldpMultipleNeighbours, stpLoopbackDetectionResolved=stpLoopbackDetectionResolved, rldot1dStpPortStateForwarding=rldot1dStpPortStateForwarding, stpLoopbackDetection=stpLoopbackDetection, rndNotifications=rndNotifications, rlBrgMacAddFailedTrap=rlBrgMacAddFailedTrap, rlStormControlMinRateTrap=rlStormControlMinRateTrap, vlanStaticToDynamic=vlanStaticToDynamic, rlStackStateChange=rlStackStateChange, frDLCIStatudChange=frDLCIStatudChange, vlanDynVlanAdded=vlanDynVlanAdded, rlTrunkPortAddedTrap=rlTrunkPortAddedTrap, rlIpxFftStnOverflow=rlIpxFftStnOverflow, swIfTablePortUnLock=swIfTablePortUnLock, rsWSDRedundancySwitch=rsWSDRedundancySwitch, routeTableOverflow=routeTableOverflow, pppSecurityViolation=pppSecurityViolation, rlTrunkPortNotCapableTrap=rlTrunkPortNotCapableTrap, rlIpFftStnOverflow=rlIpFftStnOverflow, rldot1xSupplicantMacUnauthorizedTrap=rldot1xSupplicantMacUnauthorizedTrap, rlPhysicalDescriptionChanged=rlPhysicalDescriptionChanged, rlEnvMonFanStateChange=rlEnvMonFanStateChange, rlSpecialBpduDbOverflow=rlSpecialBpduDbOverflow, faultBackUp=faultBackUp, txOverflowHWFault=txOverflowHWFault, vlanDynPortRemoved=vlanDynPortRemoved, autoConfigurationCompleted=autoConfigurationCompleted, abortTftp=abortTftp, rlLockPortTrap=rlLockPortTrap, rlEnvMonTemperatureRisingAlarm=rlEnvMonTemperatureRisingAlarm, chapFailedCommunication=chapFailedCommunication, endTftp=endTftp, rlEnvMonPowerSupplyStateChange=rlEnvMonPowerSupplyStateChange, rlStackVersionUpgradeTrap=rlStackVersionUpgradeTrap, rlIpxFftSubOverflow=rlIpxFftSubOverflow, rsSnmpSetRequestInSpecialCfgState=rsSnmpSetRequestInSpecialCfgState, rsIpZhrNotAllocVirtualIp=rsIpZhrNotAllocVirtualIp, vlanDynVlanRemoved=vlanDynVlanRemoved, rsPingCompletion=rsPingCompletion, rldot1xPortControlModeNotAutoTrap=rldot1xPortControlModeNotAutoTrap, startTftp=startTftp, framRelaySwitchConnectionDown=framRelaySwitchConnectionDown, ipxSapTblOverflow=ipxSapTblOverflow, ipxRipTblOverflow=ipxRipTblOverflow, rlHotSwapTrap=rlHotSwapTrap, rsSDclientsTableOverflow=rsSDclientsTableOverflow, rlPolicyDropPacketTrap=rlPolicyDropPacketTrap, PYSNMP_MODULE_ID=rndNotifications, rldot1xPortStatusAuthorizedTrap=rldot1xPortStatusAuthorizedTrap, loopbackDetectionPortSuspended=loopbackDetectionPortSuspended, mainLinkUp=mainLinkUp, rlPortSuspended=rlPortSuspended, rlVrrpEntriesDeleted=rlVrrpEntriesDeleted, rldot1xPortStatusUnauthorizedTrap=rldot1xPortStatusUnauthorizedTrap, rsDhcpAllocationFailure=rsDhcpAllocationFailure, rldot1dStpPortStateNotForwarding=rldot1dStpPortStateNotForwarding, rlAAAUserLocked=rlAAAUserLocked, rlStackVersionDowngradeTrap=rlStackVersionDowngradeTrap, rlIgmpV1MsgReceived=rlIgmpV1MsgReceived, errorsDuringInit=errorsDuringInit, rsIpZhrVirtualIpAsSource=rsIpZhrVirtualIpAsSource, rlIgmpProxyTableOverflow=rlIgmpProxyTableOverflow, facsAccessVoilation=facsAccessVoilation, rsSDinactiveServer=rsSDinactiveServer, rsIpZhrReqStaticConnNotAccepted=rsIpZhrReqStaticConnNotAccepted, rsIpZhrConnectionsTableOverflow=rsIpZhrConnectionsTableOverflow, pseInrushPort=pseInrushPort, rlEeeLldpSingleNeighbour=rlEeeLldpSingleNeighbour, rlPolicyForwardPacketTrap=rlPolicyForwardPacketTrap, rldot1xSupplicantLoggedOutTrap=rldot1xSupplicantLoggedOutTrap, resetRequired=resetRequired)
|
_base_ = [
'../../_base_/default_runtime.py',
'../../_base_/schedules/schedule_adam_600e.py',
'../../_base_/det_models/panet_r50_fpem_ffm.py',
'../../_base_/det_datasets/icdar2017.py',
'../../_base_/det_pipelines/panet_pipeline.py'
]
train_list = {{_base_.train_list}}
test_list = {{_base_.test_list}}
train_pipeline_icdar2017 = {{_base_.train_pipeline_icdar2017}}
test_pipeline_icdar2017 = {{_base_.test_pipeline_icdar2017}}
data = dict(
samples_per_gpu=4,
workers_per_gpu=4,
val_dataloader=dict(samples_per_gpu=1),
test_dataloader=dict(samples_per_gpu=1),
train=dict(
type='UniformConcatDataset',
datasets=train_list,
pipeline=train_pipeline_icdar2017),
val=dict(
type='UniformConcatDataset',
datasets=test_list,
pipeline=test_pipeline_icdar2017),
test=dict(
type='UniformConcatDataset',
datasets=test_list,
pipeline=test_pipeline_icdar2017))
evaluation = dict(interval=10, metric='hmean-iou')
|
#Write a program that prompts for a file name, then opens that file and reads through the file,
#and print the contents of the file in upper case.
#Use the file words.txt to produce the output below.
#You can download the sample data at http://www.py4e.com/code3/words.txt
# Use words.txt as the file name
fname = input("Enter file name: ")
fh = open(fname)
print("fh___", fh)
book = fh.read()
print("book___", book)
bookCAPITAL = book.upper()
bookCAPITALrstrip = bookCAPITAL.rstrip()
print(bookCAPITALrstrip)
|
class Player:
def __init__(self, name: str):
self.name = name
self.wins = 0
def add_win(self):
self.wins += 1
class Player_War(Player):
def __init__(self, name: str):
super().__init__(name)
self.card = None |
# The MIT License (MIT)
# Copyright (c) 2015 Yanzheng Li
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
## -----------------------------------------------------------------------------
CONST_STR_SLICE = __call_cls_builtin(str, 'slice(')
CONST_STR_COMMA = __call_cls_builtin(str, ', ')
CONST_STR_CLOSE_PAREN = __call_cls_builtin(str, ')')
CONST_INT_ZERO = __call_cls_builtin(int, 0)
## -----------------------------------------------------------------------------
class slice(object):
def __init__(self, start, stop, step):
self.start = start
self.stop = stop
self.step = step
def __str__(self):
res = __call_cls_builtin(str, '')
__call_method_1(res.__add__, CONST_STR_SLICE)
__call_method_1(res.__add__, __call_method_0(self.start.__repr__))
__call_method_1(res.__add__, CONST_STR_COMMA)
__call_method_1(res.__add__, __call_method_0(self.stop.__repr__))
__call_method_1(res.__add__, CONST_STR_COMMA)
__call_method_1(res.__add__, __call_method_0(self.step.__repr__))
__call_method_1(res.__add__, CONST_STR_CLOSE_PAREN)
return res
def __repr__(self):
return __call_method_0(self.__str__)
def __hash__(self):
raise __call_cls_0(TypeError)
def indices(self, num):
start = min(self.start, num)
stop = min(self.stop, num)
step = __call_cls_1(int, self.step)
if __call_method_1(step.__eq__, CONST_INT_ZERO):
raise __call_cls_0(ValueError)
res = __call_cls_builtin(tuple, (start, stop, step))
return res
## -----------------------------------------------------------------------------
|
car_lot = ["Ford", "Dodge", "Toyota", "Ford", "Toyota", "Chevrolet", "Ford"]
print(car_lot.count("Ford"))
|
"""
Module containing Client and Clients class.
"""
class Client(object):
"""
Class representing single client connecting to the server.
"""
def __init__(self, *args):
"""Constructor.
Can be called with various amount of arguments.
There are two main options: either provide a tuple argument, containing client's
address and port number, or specify address and port number through two distinct
arguments.
Args:
args: list of arguments
"""
if isinstance(args[0], tuple):
self._address = args[0][0]
self._port = args[0][1]
elif isinstance(args[0], str) and isinstance(args[1], int):
self._address = args[0]
self._port = args[1]
self._last_idle = -1
@property
def ep(self):
"""Endpoint tuple."""
return self._address, self._port
class Clients(list):
"""Class representing the clients lists.
Stores clients as a server.client.client.Client objects.
Extends list type.
"""
def __init__(self):
super(Clients, self).__init__()
def find_by_ep(self, ep):
"""Find a client in the list knowing its endpoint data.
Args:
ep: endpoint data of the client to find
Returns:
client with the given endpoint, or None if none was found
"""
for element in self:
if element.ep == ep:
return element
return None
|
class Board():
WINNERS = [
set([(0, 0), (0, 1), (0, 2), (0, 3), (0, 4)]),
set([(1, 0), (1, 1), (1, 2), (1, 3), (1, 4)]),
set([(2, 0), (2, 1), (2, 2), (2, 3), (2, 4)]),
set([(3, 0), (3, 1), (3, 2), (3, 3), (3, 4)]),
set([(4, 0), (4, 1), (4, 2), (4, 3), (4, 4)]),
set([(0, 0), (1, 0), (2, 0), (3, 0), (4, 0)]),
set([(0, 1), (1, 1), (2, 1), (3, 1), (4, 1)]),
set([(0, 2), (1, 2), (2, 2), (3, 2), (4, 2)]),
set([(0, 3), (1, 3), (2, 3), (3, 3), (4, 3)]),
set([(0, 4), (1, 4), (2, 4), (3, 4), (4, 4)]),
set([(0, 0), (1, 1), (2, 2), (3, 3), (4, 4)]),
set([(0, 4), (1, 3), (2, 2), (3, 1), (4, 0)]),
]
def __init__(self, lines):
self.numbers = {}
self.marked = set()
for y, line in enumerate(lines):
for x, number in enumerate([int(number) for number in line.split()]):
self.numbers[number] = (x, y)
def mark_number(self, number):
if number in self.numbers:
self.marked.add(self.numbers[number])
return True
return False
@property
def winner(self):
return any([len(winner.intersection(self.marked)) >= 5 for winner in Board.WINNERS])
def score(self, last_number_called):
uncalled_numbers = []
for number, location in self.numbers.items():
if location not in self.marked:
uncalled_numbers.append(number)
return sum(uncalled_numbers) * last_number_called
def build_boards(lines):
boards = []
i = 0
while i < len(lines):
if not lines[i]:
i += 1
continue
boards.append(Board(lines[i:i+5]))
i += 5
return boards
def main(lines):
numbers_to_draw = [int(number) for number in lines[0].split(',')]
boards = build_boards(lines[2:])
for number in numbers_to_draw:
for board in boards:
board.mark_number(number)
if board.winner:
return board.score(number)
if __name__ == '__main__':
with open('../data/input04.txt') as f:
lines = [line.strip() for line in f.readlines()]
print(main(lines))
|
# Copyright 2018 The GamePad Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""
[Note]
Convert "tokens" in dataset into unique integers for embeddings.
"""
class EmbedTokens(object):
"""
Collect all tokens in the data-set.
"""
def __init__(self, f_mid=False):
self.unique_sort = set()
self.unique_const = set()
self.unique_ind = set()
self.unique_conid = set()
self.unique_evar = set()
self.unique_fix = set()
self.f_mid = f_mid
def _tokens_to_idx(self, unique):
ls = list(unique)
tok_to_idx = {}
for idx, tok in enumerate(ls):
tok_to_idx[tok] = idx
return tok_to_idx
def tokens_to_idx(self):
sort_to_idx = self._tokens_to_idx(self.unique_sort)
const_to_idx = self._tokens_to_idx(self.unique_const)
ind_to_idx = self._tokens_to_idx(self.unique_ind)
conid_to_idx = self._tokens_to_idx(self.unique_conid)
evar_to_idx = self._tokens_to_idx(self.unique_evar)
fix_to_idx = self._tokens_to_idx(self.unique_fix)
return (sort_to_idx, const_to_idx, ind_to_idx,
conid_to_idx, evar_to_idx, fix_to_idx)
def tokenize_tactr(self, tactr):
if self.f_mid:
tokens = tactr.tokenize_mid()
else:
tokens = tactr.tokenize_kern()
self.unique_sort = self.unique_sort.union(tokens[0])
self.unique_const = self.unique_const.union(tokens[1])
self.unique_ind = self.unique_ind.union(tokens[2])
self.unique_conid = self.unique_conid.union(tokens[3])
self.unique_evar = self.unique_evar.union(tokens[4])
self.unique_fix = self.unique_fix.union(tokens[5])
def tokenize_tactrs(self, tactrs):
for tactr in tactrs:
self.tokenize_tactr(tactr)
|
n = 0
pares = []
impares = []
geral = []
for c in range(0, 7):
n = int(input(f'Digite o {c+1}° valor: '))
if n % 2 == 0:
pares.append(n)
else:
impares.append(n)
pares.sort()
impares.sort()
geral = pares + impares
print(f'Lstas dos pares: {pares}')
print(f'Lista dos Ímpares: {impares}')
""" #CÓDIGO DO PROFESSOR
n = [[], []]
valor = 0
for c in range(1, 8):
valor = int(input(f'Digite o {c}° valor: '))
if valor % 2 == 0:
n[0].append(valor)
else:
n[1].append(valor)
print('-=-'*12)
n[0].sort()
n[1].sort()
print(f'Todos os valores pares são {n[0]}')
print(f'Todos os valores ímpares são {n[1]}')
""" |
class Solution:
def nextGreaterElement(self, n: int) -> int:
num = list(str(n))
# Start from the right most digit and find the first
# digit that is smaller than the digit next to it
i = len(num)-1
while i-1 >= 0 and num[i] <= num[i-1]:
i -= 1
if i == 0:
return -1
# Now we know num[i-1] < num[i]
# We will find the smallest num but > num[i-1]
smallest = i
while smallest + 1 < len(num) and num[smallest+1] > num[i-1]:
smallest += 1
# Let's swap i-1 and smallest
num[i-1], num[smallest] = num[smallest], num[i-1]
suffix = num[i:][::-1]
ans = int(''.join(num[:i] + suffix))
return ans if ans < 1<<31 else -1
if __name__== '__main__':
solution = Solution()
# n = 21
# n = 101
n = 12222333
result = solution.nextGreaterElement(n)
print(result)
|
class Info(object):
# URLs:
data_live_url = "https://data-live.flightradar24.com"
flightradar_url = "https://www.flightradar24.com"
# Flights data URLs:
real_time_flight_tracker_data_url = data_live_url + "/zones/fcgi/feed.js"
flight_data_url = data_live_url + "/clickhandler/?flight={}"
headers = {
"accept-encoding": "gzip, br",
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
"cache-control": "max-age=0",
"origin": "https://www.flightradar24.com",
"referer": "https://www.flightradar24.com/",
"sec-fetch-dest": "document",
"sec-fetch-mode": "cors",
"sec-fetch-site": "none",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.67"
}
json_headers = headers.copy()
json_headers["accept"] = "application/json"
params = {
"faa": "1",
"satellite": "1",
"mlat": "1",
"flarm": "1",
"adsb": "1",
"gnd": "1",
"air": "1",
"vehicles": "1",
"estimated": "1",
"maxage": "14400",
"gliders": "1",
"stats": "1"}
message_tip = "(基于端口返回航班数据条数统计,仅供参考)" |
"""HTTP specific constants."""
KEY_AUTHENTICATED = "op_authenticated"
KEY_OPP = "opp"
KEY_OPP_USER = "opp_user"
KEY_REAL_IP = "op_real_ip"
|
# Base class
class SchemaError(Exception):
pass
class SchemaBaseError(SchemaError):
pass
class SchemaAttributeError(SchemaError):
pass
# Don't catch these exceptions
class SchemaBaseUnknownAttribute(SchemaBaseError):
pass
class SchemaBaseLinkTypeNotSupported(SchemaBaseError):
pass
class SchemaBaseUnknownObjectType(SchemaBaseError):
pass
class SchemaBaseUnknownLinkType(SchemaBaseError):
pass
class SchemaBaseAttributeTypeMismatch(SchemaBaseError):
pass
class SchemaBaseInvalidObjectType(SchemaBaseError):
pass
class SchemaBaseInvalidAttributeType(SchemaBaseError):
pass
class SchemaBaseInvalidAttributeModification(SchemaBaseError):
pass
class SchemaBaseInvalidAttribute(SchemaBaseError):
pass
class SchemaBaseInvalidLinkType(SchemaBaseError):
pass
class SchemaBaseInvalidLinkModification(SchemaBaseError):
pass
class SchemaBaseEmptyLink(SchemaBaseError):
pass
class SchemaBaseEmptyObject(SchemaBaseError):
pass
# Catch these exceptions
class SchemaAttributesInvalidDigits(SchemaAttributeError):
pass
class SchemaAttributesInvalidPhoneNumber(SchemaAttributeError):
pass
class SchemaAttributesInvalidEmailAddress(SchemaAttributeError):
pass
class SchemaAttributesInvalidGroupType(SchemaAttributeError):
pass
class SchemaAttributesInvalidGender(SchemaAttributeError):
pass
class SchemaAttributesInvalidIATA(SchemaAttributeError):
pass
class SchemaAttributesInvalidCountryCode(SchemaAttributeError):
pass
class SchemaAttributesInvalidGeoLocation(SchemaAttributeError):
pass
|
'''
Что покажет приведенная ниже программа?
x = 5
def add():
x = 3
x = x + 5
print(x)
add()
print(x)
'''
x = 5
def add():
x = 3
x = x + 5
print(x)
add() # результат выполнения функции - 8 (х+5)
print(x)
|
class FoxProgression:
def theCount(self, seq):
if len(seq) == 1:
return -1
a, m = seq[1]-seq[0], seq[1]/float(seq[0])
af, mf = True, m == int(m)
c = sum((af, mf))
for i, j in zip(seq[1:], seq[2:]):
if af and j-i != a:
af = False
c -= 1
if mf and j/float(i) != m:
mf = False
c -= 1
if not af and not mf:
break
if af and mf and seq[-1] + a == seq[-1] * m:
c -= 1
return c
|
#
# PySNMP MIB module ARUBA-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ARUBA-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:25:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint")
ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance")
Bits, IpAddress, TimeTicks, ObjectIdentity, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, snmpModules, iso, Integer32, Counter32, ModuleIdentity, enterprises, Unsigned32, Gauge32, MibIdentifier, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "IpAddress", "TimeTicks", "ObjectIdentity", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "snmpModules", "iso", "Integer32", "Counter32", "ModuleIdentity", "enterprises", "Unsigned32", "Gauge32", "MibIdentifier", "NotificationType")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
aruba = MibIdentifier((1, 3, 6, 1, 4, 1, 14823))
products = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1))
arubaEnterpriseMibModules = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2))
arubaMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 3))
switchProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1))
a5000 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 1))
a2400 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 2))
a800 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 3))
a6000 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 4))
a2400E = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 7))
a800E = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 8))
a804 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 9))
a200 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 10))
a2424 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 11))
a6000_SC3 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 12)).setLabel("a6000-SC3")
a3200 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 13))
a3200_8 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 14)).setLabel("a3200-8")
a3400 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 15))
a3400_32 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 16)).setLabel("a3400-32")
a3600 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 17))
a3600_64 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 18)).setLabel("a3600-64")
a650 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 19))
a651 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 20))
reserved1 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 21))
reserved2 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 22))
a620 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 23))
s3500_24P = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 24)).setLabel("s3500-24P")
s3500_24T = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 25)).setLabel("s3500-24T")
s3500_48P = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 26)).setLabel("s3500-48P")
s3500_48T = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 27)).setLabel("s3500-48T")
s2500_24P = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 28)).setLabel("s2500-24P")
s2500_24T = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 29)).setLabel("s2500-24T")
s2500_48P = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 30)).setLabel("s2500-48P")
s2500_48T = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 31)).setLabel("s2500-48T")
a7210 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 32))
a7220 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 33))
a7240 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 34))
s3500_24F = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 35)).setLabel("s3500-24F")
aUndefined = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 1, 9999))
apProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2))
a50 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 1))
a52 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 2))
ap60 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 3))
ap61 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 4))
ap70 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 5))
walljackAp61 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 6))
a2E = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 7))
ap1200 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 8))
ap80s = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 9))
ap80m = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 10))
wg102 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 11))
ap40 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 12))
ap41 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 13))
ap65 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 14))
apMw1700 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 15))
apDuowj = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 16))
apDuo = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 17))
ap80MB = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 18))
ap80SB = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 19))
ap85 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 20))
ap124 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 21))
ap125 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 22))
ap120 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 23))
ap121 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 24))
ap1250 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 25))
ap120abg = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 26))
ap121abg = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 27))
ap124abg = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 28))
ap125abg = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 29))
rap5wn = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 30))
rap5 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 31))
rap2wg = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 32))
reserved4 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 33))
ap105 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 34))
ap65wb = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 35))
ap651 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 36))
reserved6 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 37))
ap60p = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 38))
reserved7 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 39))
ap92 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 40))
ap93 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 41))
ap68 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 42))
ap68p = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 43))
ap175p = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 44))
ap175ac = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 45))
ap175dc = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 46))
ap134 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 47))
ap135 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 48))
reserved8 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 49))
ap93h = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 50))
iap23 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 51))
iap23p = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 52))
ap104 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 53))
apUndefined = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 2, 9999))
emsProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 3))
partnerProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 4))
ecsE50 = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 4, 1))
ecsE100C = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 4, 2))
ecsE100A = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 4, 3))
ecsENSM = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 4, 4))
amigopodProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 1, 5))
common = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2, 1))
switch = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2, 2))
arubaAp = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2, 3))
arubaEcs = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2, 4))
arubaMIBModules = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2, 1, 1))
wlsxEnterpriseMibModules = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2, 2, 1))
wlsrEnterpriseMibModules = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2, 3, 1))
wlsrOutDoorApMibModules = MibIdentifier((1, 3, 6, 1, 4, 1, 14823, 2, 3, 2))
mibBuilder.exportSymbols("ARUBA-MIB", walljackAp61=walljackAp61, ap134=ap134, ap124abg=ap124abg, ap41=ap41, s3500_24T=s3500_24T, ap68=ap68, ap60=ap60, a3600_64=a3600_64, a200=a200, ap68p=ap68p, ap104=ap104, apProducts=apProducts, wlsxEnterpriseMibModules=wlsxEnterpriseMibModules, arubaMIBModules=arubaMIBModules, ap93=ap93, a3400_32=a3400_32, a2E=a2E, ap105=ap105, ap60p=ap60p, ap1250=ap1250, a800E=a800E, a800=a800, s3500_48P=s3500_48P, apDuowj=apDuowj, iap23p=iap23p, partnerProducts=partnerProducts, a650=a650, rap2wg=rap2wg, a7240=a7240, ap61=ap61, switchProducts=switchProducts, a3400=a3400, ap125=ap125, ap121abg=ap121abg, a3200_8=a3200_8, a3200=a3200, ap125abg=ap125abg, s2500_24T=s2500_24T, s2500_48T=s2500_48T, iap23=iap23, apUndefined=apUndefined, ecsE100A=ecsE100A, arubaAp=arubaAp, reserved1=reserved1, s2500_24P=s2500_24P, ecsE50=ecsE50, ap65=ap65, a7210=a7210, ap85=ap85, a5000=a5000, emsProducts=emsProducts, wg102=wg102, a2400E=a2400E, ap93h=ap93h, ap40=ap40, ap124=ap124, reserved8=reserved8, aUndefined=aUndefined, ap80MB=ap80MB, ap92=ap92, reserved7=reserved7, reserved4=reserved4, rap5=rap5, a804=a804, ap1200=ap1200, apMw1700=apMw1700, amigopodProducts=amigopodProducts, a651=a651, arubaMgmt=arubaMgmt, reserved2=reserved2, ecsENSM=ecsENSM, a6000=a6000, common=common, a620=a620, rap5wn=rap5wn, wlsrEnterpriseMibModules=wlsrEnterpriseMibModules, ap175ac=ap175ac, s3500_24P=s3500_24P, ap120abg=ap120abg, a6000_SC3=a6000_SC3, aruba=aruba, a3600=a3600, ap65wb=ap65wb, reserved6=reserved6, ap120=ap120, a52=a52, ap70=ap70, s2500_48P=s2500_48P, a50=a50, wlsrOutDoorApMibModules=wlsrOutDoorApMibModules, ap175dc=ap175dc, ap80s=ap80s, ap135=ap135, ap651=ap651, arubaEnterpriseMibModules=arubaEnterpriseMibModules, switch=switch, ap175p=ap175p, a2424=a2424, ecsE100C=ecsE100C, s3500_24F=s3500_24F, a2400=a2400, ap80m=ap80m, s3500_48T=s3500_48T, ap80SB=ap80SB, products=products, apDuo=apDuo, arubaEcs=arubaEcs, a7220=a7220, ap121=ap121)
|
def session_hist_tex(f, session_data,threshold_requests_per_session):
"""
Write session caracteristics in latex file
Parameters
----------
f: file
session_data: pandas dataframe of sessions
threshold_requests_per_session: int for filter number of requests per session
Returns
-------
File (Optionnal)
"""
digit_dic={'0':'Zero','1':'One','2':'Two','3':'Three','4':'Four','5':'Five','6':'Six','7':'Seven','8':'Eight','9':'Nine'}
f.write("\n% 2. Histogram sessions with given requests")
f.write("\n\\newcommand{\\%s}{%d}"%('ThresholdRequestsPerSession',threshold_requests_per_session))
for reqs in range(1,threshold_requests_per_session+1):
num_of_sessions=session_data[session_data.requests==reqs].shape[0]
pc_of_sessions=100.0*num_of_sessions/session_data.shape[0]
f.write("\n\\newcommand{\\%s}{%d}"%('SessionsWith%sRequests'%digit_dic[str(reqs)],num_of_sessions))
f.write("\n\\newcommand{\\%s}{%.1f}"%('PCSessionsWith%sRequests'%digit_dic[str(reqs)],pc_of_sessions))
num_of_sessions=session_data[session_data.requests>threshold_requests_per_session].shape[0]
pc_of_sessions=100.0*num_of_sessions/session_data.shape[0]
f.write("\n\\newcommand{\\%s}{%d}"%('SessionsWithMT%sRequests'%digit_dic[str(threshold_requests_per_session)],num_of_sessions))
f.write("\n\\newcommand{\\%s}{%.1f}"%('PCSessionsWithMT%sRequests'%digit_dic[str(threshold_requests_per_session)],pc_of_sessions))
return f;
|
def YesNo(message=None):
if message:
print(message + ' [y/N]')
else:
print('[y/N]')
choice = input()
if choice != 'y' and choice != 'Y':
return False
return True
def YesNoTwice():
if YesNo():
return YesNo("Are you really really sure?")
return False
def YesNoTrice():
if YesNo():
if YesNo("Are you really really sure?"):
return YesNo("Are you really really really really sure?")
return False
|
for i in range(int(input())):
n=int(input())
a=[int(x) for x in input().split()]
m=int(input())
my=[]
pf,c=0,0
q=[]
for i in range(n):
z=a[i]
if z not in my:
if len(my)<m:
my.append(z)
else:
my[my.index(q.pop(0))]=z
pf+=1
else:
q.remove(z)
q.append(z)
print(pf)
|
class Solution:
def findKthLargest(self, nums: List[int], k: int) -> int:
for i in range(k-1):
nums.remove(max(nums))
return max(nums)
|
# Garo9521
# https://codeforces.com/contest/1521/problem/B
# math
t = int(input())
for case in range(t):
n = int(input())
array = list(map(int, input().split()))
minpos = array.index(min(array))
print(n - 1)
for i in range(minpos):
print(i + 1, minpos + 1, array[minpos] + minpos - i, array[minpos])
for i in range(minpos + 1, n):
print(minpos + 1, i + 1, array[minpos], array[minpos] + i - minpos)
|
class Encoder(tf.keras.layers.Layer):
def __init__(self, intermediate_dim):
super(Encoder, self).__init__()
self.hidden_layer = tf.keras.layers.Dense(
units=intermediate_dim,
activation=tf.nn.relu,
kernel_initializer='he_uniform'
)
self.output_layer = tf.keras.layers.Dense(
units=intermediate_dim,
activation=tf.nn.sigmoid
)
def call(self, input_features):
activation = self.hidden_layer(input_features)
return self.output_layer(activation)
class Decoder(tf.keras.layers.Layer):
def __init__(self, intermediate_dim, original_dim):
super(Decoder, self).__init__()
self.hidden_layer = tf.keras.layers.Dense(
units=intermediate_dim,
activation=tf.nn.relu,
kernel_initializer='he_uniform'
)
self.output_layer = tf.keras.layers.Dense(
units=original_dim,
activation=tf.nn.sigmoid
)
def call(self, code):
activation = self.hidden_layer(code)
return self.output_layer(activation)
class Autoencoder(tf.keras.Model):
def __init__(self, intermediate_dim, original_dim):
super(Autoencoder, self).__init__()
self.encoder = Encoder(intermediate_dim=intermediate_dim)
self.decoder = Decoder(intermediate_dim=intermediate_dim, original_dim=original_dim)
def call(self, input_features):
code = self.encoder(input_features)
reconstructed = self.decoder(code)
return reconstructed
def loss(model, original):
reconstruction_error = tf.reduce_mean(tf.square(tf.subtract(model(original), original)))
return reconstruction_error
def train(loss, model, opt, original):
with tf.GradientTape() as tape:
gradients = tape.gradient(loss(model, original), model.trainable_variables)
gradient_variables = zip(gradients, model.trainable_variables)
opt.apply_gradients(gradient_variables)
autoencoder = Autoencoder(intermediate_dim=64, original_dim=784)
opt = tf.optimizers.Adam(learning_rate=learning_rate)
(training_features, _), (test_features, _) = tf.keras.datasets.mnist.load_data()
training_features = training_features / np.max(training_features)
training_features = training_features.reshape(training_features.shape[0],
training_features.shape[1] * training_features.shape[2])
training_features = training_features.astype('float32')
training_dataset = tf.data.Dataset.from_tensor_slices(training_features)
training_dataset = training_dataset.batch(batch_size)
training_dataset = training_dataset.shuffle(training_features.shape[0])
training_dataset = training_dataset.prefetch(batch_size * 4)
writer = tf.summary.create_file_writer('tmp')
with writer.as_default():
with tf.summary.record_if(True):
for epoch in range(epochs):
for step, batch_features in enumerate(training_dataset):
train(loss, autoencoder, opt, batch_features)
loss_values = loss(autoencoder, batch_features)
original = tf.reshape(batch_features, (batch_features.shape[0], 28, 28, 1))
reconstructed = tf.reshape(autoencoder(tf.constant(batch_features)), (batch_features.shape[0], 28, 28, 1))
tf.summary.scalar('loss', loss_values, step=step)
tf.summary.image('original', original, max_outputs=10, step=step)
tf.summary.image('reconstructed', reconstructed, max_outputs=10, step=step) |
def main():
# input
S = input()
T = input()
U = input()
# compute
# output
print(U + T + S)
if __name__ == '__main__':
main()
|
def chi_squared(k1, k2, xs, ys):
stats_x = [0 for _ in range(k1)]
stats_y = [0 for _ in range(k2)]
d = dict()
for x, y in zip(xs, ys):
if (x,y) in d:
d[(x, y)] += 1
else:
d[(x, y)] = 1
stats_x[x] += 1
stats_y[y] += 1
result = 0.
for (x, y) in d.keys():
e = stats_x[x] * stats_y[y] / n
s = (d[(x, y)] - e) ** 2 / e - e
result += s
return result
if __name__ == '__main__':
k1, k2 = map(int, input().split())
n = int(input())
xs = list()
ys = list()
for _ in range(n):
x, y = map(int, input().split())
xs.append(x - 1)
ys.append(y - 1)
res = chi_squared(k1, k2, xs, ys)
print(res + n)
|
class Solution:
def dfs(self, root):
if root is None:
return (float('inf'), float('-inf'), 0, 0) # min, max, largest, size
left, right = self.dfs(root.left), self.dfs(root.right)
new_min = min(root.val, left[0], right[0])
new_max = max(root.val, left[1], right[1])
new_largest = max(left[2], right[2])
new_size = left[3] + right[3] + 1
if left[1] < root.val and right[0] > root.val:
new_largest = new_size
else:
new_min = float('-inf')
new_max = float('inf')
new_size = float('-inf')
return (new_min, new_max, new_largest, new_size)
def largestBSTSubtree(self, root: Optional[TreeNode]) -> int:
return self.dfs(root)[2]
|
def count_substring(string, sub_string):
stringSequences = []
for i in range(len(string)):
stringSequences.append(string[i:i+len(sub_string)])
return stringSequences.count(sub_string)
|
'''
@jacksontenorio8
Crie um programa que vai ler vários números e colocar em uma lista. Depois disso, crie
duas listas extras que vão conter apenas os valores pares e os valores ímpares digitados,
respectivamente. Ao final, mostre o conteúdo das três listas geradas.
'''
lista = []
lista_par = []
lista_impar = []
while True:
lista.append(int(input('Digite um número: ')))
resposta = str(input('Quer continuar?[S/N] ')).upper().strip()[0]
if resposta == 'N':
break
print(f'A lista completa é {lista}')
for i, numero in enumerate(lista):#enumerate() percorre os elementos da lista atravez de in.
if numero % 2 == 0:
lista_par.append(numero)
else:
lista_impar.append(numero)
print(f'A lista de números pares é {lista_par}')
print(f'A lista de números ímpares é {lista_impar}') |
'''
Copyright 2019-2020 Secure Shed Project Dev Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
# pylint: disable=C0103
# pylint: disable=R0903
AUTH_KEY = 'authorisationKey'
class KeypadLockRequest:
Schema = {
"type" : "object",
"properties":
{
"additionalProperties" : False,
"lockTime" :
{
"type" : "integer",
"minimum": 0
},
},
"required": ["lockTime"],
"additionalProperties" : False
}
class BodyElement:
LockTime = 'lockTime'
class RetrieveConsoleLogs:
Schema = {
"type" : "object",
"additionalProperties" : False,
"properties" : {
"additionalProperties" : False,
"startTimestamp" :
{
"type" : "number",
"minimum": 0
}
},
"required": ["startTimestamp"]
}
class BodyElement:
StartTimestamp = 'startTimestamp'
class RequestLogsResponse:
Schema = {
"definitions":
{
"LogEntry":
{
"type": "object",
"additionalProperties" : False,
"required": ["timestamp", "level", "message"],
"properties":
{
"timestamp": {"type": "number"},
"level": {"type": "integer"},
"message": {"type": "string"}
}
}
},
"type" : "object",
"properties":
{
"additionalProperties" : False,
"lastTimestamp" :
{
"type" : "number",
"minimum": 0
},
"entries":
{
"type": "array",
"items": {"$ref": "#/definitions/LogEntry"}
}
},
"required": ["lastTimestamp", "entries"],
"additionalProperties" : False
}
class BodyElement:
LastTimestamp = 'lastTimestamp'
Entries = 'entries'
EntryMsgLevel = 'level'
EntryMessage = 'message'
EntryTimestamp = 'timestamp'
|
'''configuration variables for use throughout the global scope'''
session = None
# --------------- Static Variables ------------------
APPLICATION_ID = 'amzn1.echo-sdk-ams.app.1a291230-7f25-48ed-b8b7-747205d072db'
APPLICATION_NAME = 'The Cyberpunk Dictionary'
APPLICATION_INVOCATION_NAME = 'the cyberpunk dictionary'
APPLICATION_VERSION = '0.1'
APPLICATION_ENDPOINT = 'arn:aws:lambda:us-east-1:099464953977:function:process_request'
SINDOME_STATUS_URL = 'http://status.sindome.org/checks/'
SPEECH_DIRECTORY = 'speech/'
SPEECH_FORMAT = '.json'
#in production this value should be set to True if you want to confirm someone has the right application id
RESTRICT_ACCESS = False
#turn on or off debugging
DEBUG = True |
#!/usr/bin/env python3
# Print Welcome Message
print('Hello, World')
|
desafio = 'DESAFIO 008'
print('{:=^20}' .format(desafio))
'''
Fazer um programa que leia um valor em metros e o exiba convertido em centímetros e milímetros
'''
metros = float(input('Informar um número em metros: '))
cm = metros * 100
mm = metros * 1000
print('Em centímetros: {} \n Em milímetros: {}' .format(cm, mm)) |
class Solution:
def dailyTemperatures(self, T: List[int]) -> List[int]:
stack = []
result = [0] * len(T)
for idx, t in enumerate(T):
while stack and T[stack[-1]] < t:
prev_idx = stack.pop()
result[prev_idx] = idx - prev_idx
stack.append(idx)
return result
|
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 6 09:33:36 2021
@author: user15
"""
s = '出席番号1番の山田が5分間スピーチを行わせていただきます。私の気になるITニュースについてお話しさせていただきます。よろしくお願いいたします。〜中略〜データとして4月は100人、5月は150人とひと月で大きく成長しています。'
# ① 発表者の出席番号は何番か出力せよ(出席番号は上記文字列から抜き出すこと)
print('出席番号:',s[4 : 4 + 2])
# ② 発表者の名前を下記のように出力せよ(名前は上記文字列から抜き出すこと)
print('発表者:',s[7 : 7 + 2])
# 発表者:〇〇
#③ スピーチのテーマを下記のように出力せよ(スピーチのテーマは上記文字列から抜き出すこと)
# print(len(s))
print('今日のテーマ:', "「",s[31 : 31 + 10],"」")
print(f"今日のテーマ:「{s[31:41]}」")
# 今日のテーマ:「〇〇」
#④ データ部分の4月と5月の人数を足し合わせ下記のように出力せよ(計算に使用する数値は上記文字列から抜き出すこと)
d1 = s[84:87]
d2 = s[92:95]
print('人数合計:',int(d1) + int(d2))
print(f"Ninzu {int(d1) + int(d2)}人")
# 人数合計:〇〇人
|
class RevitLinkType(ElementType,IDisposable):
"""
This class represents another Revit Document ("link") brought into
the current one ("host").
"""
@staticmethod
def Create(document,*__args):
"""
Create(document: Document,path: ModelPath,options: RevitLinkOptions) -> RevitLinkLoadResult
Creates a new Revit link type and loads the linked document.
document: The document in which to create the Revit link.
path: The path of the link to load. This may be a server path.
This must be a
full path.
options: An options class for loading Revit links.
Returns: An object containing the results of creating and loading
the Revit link
type. It contains the ElementId of the new link.
Create(document: Document,resourceReference: ExternalResourceReference,options: RevitLinkOptions) -> RevitLinkLoadResult
Creates a new Revit link type from an external resource reference and loads the
linked document.
document: The document in which to create the Revit link.
resourceReference: An external resource reference describing the source of the linked Revit
document.
options: An options class for loading Revit links. The path type information will be
ignored.
Returns: An object containing the results of creating and loading
the Revit link
type. It contains the ElementId of the new link.
"""
pass
@staticmethod
def CreateFromIFC(document,ifcFilePath,revitLinkedFilePath,recreateLink,options):
"""
CreateFromIFC(document: Document,ifcFilePath: str,revitLinkedFilePath: str,recreateLink: bool,options: RevitLinkOptions) -> RevitLinkLoadResult
Creates a new Revit link type from an existing Revit file created via import by
reference
of an asscoiated IFC file.
document: The document in which to create the Revit link.
ifcFilePath: The path of the associated IFC file. This must be a full path.
revitLinkedFilePath: The path of the existing Revit file that contains elements created via an
import by reference operation.
This must be a full path.
recreateLink: If true,the existing Revit file created via an import by reference operation
will be updated based on the information in the IFC file. If false,the
existing Revit file will be used as-is.
options: An options class for loading Revit links.
Returns: An object containing the results of creating and loading
the Revit link
type. It contains the ElementId of the new link.
"""
pass
def Dispose(self):
""" Dispose(self: Element,A_0: bool) """
pass
def getBoundingBox(self,*args):
""" getBoundingBox(self: Element,view: View) -> BoundingBoxXYZ """
pass
def GetChildIds(self):
"""
GetChildIds(self: RevitLinkType) -> ICollection[ElementId]
Gets the ids of the immediate children of this link.
Returns: The element ids of all links which are linked directly into this one
(immediate children)
"""
pass
def GetConversionData(self):
"""
GetConversionData(self: RevitLinkType) -> LinkConversionData
Returns the optional data that is necessary to generate the Revit file for this
link.
Returns: The RvtLinkConversionData containing the necessary information.
"""
pass
def GetParentId(self):
"""
GetParentId(self: RevitLinkType) -> ElementId
Gets the id of this link's immediate parent.
Returns: The id of the immediate parent of this link,or invalidElementId if
this
link is a top-level link.
"""
pass
def GetRootId(self):
"""
GetRootId(self: RevitLinkType) -> ElementId
Gets the id of the top-level link which this link is linked into.
Returns: The id of the top-level link which this link is ultimately linked under,
or
invalidElementId if this link is a top-level link.
"""
pass
@staticmethod
def GetTopLevelLink(document,*__args):
"""
GetTopLevelLink(document: Document,path: ModelPath) -> ElementId
Returns the ElementId of the (top-level) linked model with the given path.
document: The document to look for the linked model in.
path: A path indicating which linked model to return.
Returns: The id of the link with the given path,or InvalidElementId if
there is no
top-level link at that path.
GetTopLevelLink(document: Document,reference: ExternalResourceReference) -> ElementId
Returns the ElementId of the (top-level) linked model with the given
ExternalResourceReference.
document: The document to look for the linked model in.
reference: An ExternalResourceReference indicating which linked model to return.
Returns: The id of the link with the given ExternalResourceReference,
or
InvalidElementId if
there is no top-level link at that location.
"""
pass
def HasSaveablePositions(self):
"""
HasSaveablePositions(self: RevitLinkType) -> bool
Determines whether the link has changes to shared positioning that could
be
saved.
Returns: True if the link has shared positioning changes which can be saved.
False
if there are no changes to shared coordinates,or if the changes
cannot be
saved.
"""
pass
def IsFromLocalPath(self):
"""
IsFromLocalPath(self: RevitLinkType) -> bool
Checks whether the Revit link uses a local path,such as a hard drive.
Returns: Returns true if the Revit link is from a local drive.
"""
pass
def IsFromRevitServer(self):
"""
IsFromRevitServer(self: RevitLinkType) -> bool
Checks whether the Revit link is located on Revit Server.
Returns: Returns true if the Revit link is located on Revit Server.
"""
pass
@staticmethod
def IsLoaded(document,typeId):
"""
IsLoaded(document: Document,typeId: ElementId) -> bool
Checks whether the link with this id is loaded.
document: A document. Revit will see if typeId corresponds to a loaded link in this
document.
typeId: An element id. Revit will check if typeId corresponds to a loaded link in the
given document.
Returns: True if typeId corresponds to a loaded RevitLinkType. False otherwise.
"""
pass
def IsNotLoadedIntoMultipleOpenDocuments(self):
"""
IsNotLoadedIntoMultipleOpenDocuments(self: RevitLinkType) -> bool
Checks whether the link is loaded into more than one open document
in this
session of Revit. If the link is loaded into multiple open
documents,
reload will be disabled.
Returns: True if the link is loaded into at most one open document. False if the link
is loaded into more than one open document.
"""
pass
def Load(self):
"""
Load(self: RevitLinkType) -> RevitLinkLoadResult
Loads or reloads the Revit link from its
currently-stored location. If the
link is an
external resource,Revit will contact the
IExternalResourceServer to get the latest version
of the link.
Returns: An object containing the ElementId of the link
and an enum value indicating
any
errors which occurred while trying to load.
RevitLinkLoadResultType.LinkLoaded indicates
success.
"""
pass
def LoadFrom(self,*__args):
"""
LoadFrom(self: RevitLinkType,resourceReference: ExternalResourceReference,config: WorksetConfiguration) -> RevitLinkLoadResult
Loads or reloads the Revit link.
The link will be loaded from the location
given in the
input ExternalResourceReference.
resourceReference: An external resource reference describing the source of the linked Revit
document.
config: A WorksetConfiguration object indicating which worksets in the
link to
open.If you want to load the same set of worksets the link previously
had,
leave this argument as ll.
Returns: An object containing the ElementId of the link
and an enum value indicating
any errors
which occurred while trying to load.
LoadFrom(self: RevitLinkType,path: ModelPath,config: WorksetConfiguration) -> RevitLinkLoadResult
Loads or reloads the Revit link from disk.
The link will be loaded from the
input path.
path: A ModelPath indicating where to load the link from.
This must be an
absolute path.
config: A WorksetConfiguration object indicating which worksets in the
link to
open.If you want to load the same set of worksets the link previously
had,
leave this argument as ll.
Returns: An object containing the ElementId of the link
and an enum value indicating
any errors
which occurred while trying to load.
"""
pass
def ReleaseUnmanagedResources(self,*args):
""" ReleaseUnmanagedResources(self: Element,disposing: bool) """
pass
def Reload(self):
"""
Reload(self: RevitLinkType) -> RevitLinkLoadResult
Loads or reloads the Revit link from its
currently-stored location. If the
link is an
external resource,Revit will contact the
IExternalResourceServer to get the latest version
of the link.
Returns: An object containing the ElementId of the link
and an enum value indicating
any
errors which occurred while trying to load.
RevitLinkLoadResultType.LinkLoaded indicates
success.
"""
pass
def RevertLocalUnloadStatus(self):
"""
RevertLocalUnloadStatus(self: RevitLinkType) -> LinkedFileStatus
Restores the workshared load status of a link that has been unloaded only for
the current user,
in a local copy of a workshared model.
Returns: The link's LinkedFileStatus that has resulted from reverting the local unloaded
status.
"""
pass
def SavePositions(self,callback):
"""
SavePositions(self: RevitLinkType,callback: ISaveSharedCoordinatesCallback) -> bool
Saves shared coordinates changes back to the linked document.
callback: A callback object to resolve situations when Revit encounters
modified
links.
Returns: True if we saved the link or if there were no changes to save.
False if the
operation failed.
"""
pass
def setElementType(self,*args):
""" setElementType(self: Element,type: ElementType,incompatibleExceptionMessage: str) """
pass
def Unload(self,callback):
"""
Unload(self: RevitLinkType,callback: ISaveSharedCoordinatesCallback)
Unloads the Revit link.
callback: A callback indicating what to do if Revit encounters
links which have
changes in shared coordinates.
If ll,Revit will not save any shared
coordinates
changes to the link before unloading.
"""
pass
def UnloadLocally(self,callback):
"""
UnloadLocally(self: RevitLinkType,callback: ISaveSharedCoordinatesCallbackForUnloadLocally) -> bool
Unloads a Revit link for the current user only.
callback: A callback indicating what to do if Revit encounters
links which have
changes in shared coordinates. The saving options for
unloading locally
only could be: save the link,not save the link.
If ll,Revit will not save
any shared coordinates
changes to the link before unloading.
Returns: Returns true if the attempt to unload the link locally was successful.
"""
pass
def UpdateFromIFC(self,document,ifcFilePath,revitLinkedFilePath,recreateLink):
"""
UpdateFromIFC(self: RevitLinkType,document: Document,ifcFilePath: str,revitLinkedFilePath: str,recreateLink: bool) -> bool
Updates a Revit link type from an IFC file and loads the linked document.
document: The document that contains Revit link.
ifcFilePath: The path of the IFC link to load. This must be a full path.
revitLinkedFilePath: The path of the Revit file to create to hold the IFC information. This must be
a full path.
recreateLink: If true,the Revit file will be updated based on the information in the IFC
file. If false,the existing Revit file will be used.
Returns: Returns true if the update succeeded,false otherwise.
"""
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
AttachmentType=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""The attachment/overlay status of this link.
Get: AttachmentType(self: RevitLinkType) -> AttachmentType
Set: AttachmentType(self: RevitLinkType)=value
"""
IsNestedLink=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Indicates whether this link is a nested or top-level link.
Get: IsNestedLink(self: RevitLinkType) -> bool
"""
LocallyUnloaded=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Checks whether a Revit link in a local model is unloaded
only for the current user.
Get: LocallyUnloaded(self: RevitLinkType) -> bool
"""
PathType=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""The type of path the link uses.
Get: PathType(self: RevitLinkType) -> PathType
Set: PathType(self: RevitLinkType)=value
"""
|
'''Faça um programa para uma loja de tintas.
O programa deverá pedir o tamanho em metros quadrados da área a ser pintada.
Considere que a cobertura da tinta é de 1 litro para cada 3 metros quadrados e que a tinta
é vendida em latas de 18 litros,
que custam R$ 80,00.
Informe ao usuário a quantidades de latas de tinta a serem compradas e o preço total.'''
metros = float (input("Digite a quantidade de metros quadrados a serem pintados: "))
litros = metros/3
precoL = 80.0
capacidadeL = 18
latas = litros * capacidadeL
total = latas * precoL
print('Você usara ', latas, 'latas de tinta')
print('O preco total é de: R$', total)
|
def how_many_visited_houses(instructions):
visited = {'0:0' : True}
x = 0
y = 0
# ^y
# |
# |
# --------+---------->x
#
#
for step in instructions:
if step == '>':
x += 1
elif step == '<':
x -= 1
elif step == 'v':
y -= 1
elif step == '^':
y += 1
else:
next
visited[key(x,y)] = True
return len(visited)
def key(x, y):
return f'{x}:{y}'
print(f"this should be 2: {how_many_visited_houses('>')}")
print(f"this should be 4: {how_many_visited_houses('^>v<')}")
print(f"this should be 2: {how_many_visited_houses('^v^v^v^v^v')}")
print(f"this should be 2: {how_many_visited_houses('^v^v^v^vs^v')}")
with open(__file__+'.input.txt', "r+") as file:
input = file.read()
print(f"with the drunken elf, santa will visit {how_many_visited_houses(input)} houses!")
def with_robosanta(instructions):
visited = {'0:0' : True}
x,y,nx,ny = 0,0,0,0
for step in instructions:
if step == '>':
x += 1
elif step == '<':
x -= 1
elif step == 'v':
y -= 1
elif step == '^':
y += 1
else:
next
visited[key(x,y)] = True
x,y,nx,ny = nx,ny,x,y # !
return len(visited)
print(f"this should be 3: {with_robosanta('^v')}")
print(f"this should be 3: {with_robosanta('^>v<')}")
print(f"this should be 11: {with_robosanta('^v^v^v^v^v')}")
print(f"With robosanta, santa will visit {with_robosanta(input)} houses!") |
for _ in range(int(input())):
a=input()
n=len(a)
if n%2==0 and a[0:n//2]==a[n//2:n]:
print("YES")
else:
print("NO")
|
#class SVNRepo:
# @classmethod
# def isBadVersion(cls, id)
# # Run unit tests to check whether verison `id` is a bad version
# # return true if unit tests passed else false.
# You can use SVNRepo.isBadVersion(10) to check whether version 10 is a
# bad version.
class Solution:
"""
@param n: An integer
@return: An integer which is the first bad version.
"""
def findFirstBadVersion(self, n):
low = 1
result = n
while(low<=n):
mid = (low+n)//2
if(SVNRepo.isBadVersion(mid)) :
result = min(result,mid)
n = mid-1
else :
low = mid+1
return result |
config = {}
def process_logic_message(message):
type = message.get("type", None)
if type == "initialize":
return __initialize__()
if type == "enable":
return __enable__()
if type == "disable":
return __disable__()
else:
return wirehome.response_creator.not_supported(type)
def __initialize__():
__enable__()
def __enable__():
global subscriptions
subscriptions = []
for button in config["buttons"]:
__attach_button__(button)
def __disable__():
for subscription_uid in subscriptions:
wirehome.message_bus.unsubscribe(subscription_uid)
def __attach_button__(uid):
filter = {
"type": "component_registry.event.status_changed",
"component_uid": uid,
"status_uid": "button.state",
"new_value": "pressed"
}
subscription_uid = wirehome.context["component_uid"] + ":status_changed->" + uid
wirehome.message_bus.subscribe(subscription_uid, filter, __button_callback__)
global subscriptions
subscriptions.append(subscription_uid)
def __button_callback__(message):
targets = config.get("targets", [])
for target in targets:
wirehome.component_registry.execute_command(target, {"type": "increase_level"})
|
"""
8 / 8 test cases passed.
Runtime: 28 ms
Memory Usage: 15.2 MB
"""
class Solution:
def fizzBuzz(self, n: int) -> List[str]:
return ["FizzBuzz" if i % 3 == 0 and i % 5 == 0 else \
"Fizz" if i % 3 == 0 else \
"Buzz" if i % 5 == 0 else \
str(i) for i in range(1, n + 1)]
|
class tooltips:
def __init__ (self, attr):
self.tips = dict()
self.ori_attr = attr
for i in attr:
self.tips[i] = True
if 'time_value' in self.tips:
self.tips['time_value'] = False
def set_attr(self, attr):
for i in self.tips:
self.tips[i] = False
for i in attr:
if i in self.tips:
self.tips[i] = True
def build_tooptips(self):
res = []
for i in self.ori_attr:
if self.tips[i] == True:
res.append((i, "@" + i))
return res
|
# -*- coding: utf-8 -*-
################################################
#
# URL:
# =====
# https://leetcode.com/problems/implement-trie-prefix-tree/
#
# DESC:
# =====
# Implement a trie with insert, search, and startsWith methods.
#
# Example:
# Trie trie = new Trie();
# trie.insert("apple");
# trie.search("apple"); // returns true
# trie.search("app"); // returns false
# trie.startsWith("app"); // returns true
# trie.insert("app");
# trie.search("app"); // returns true
#
# Note:
# You may assume that all inputs are consist of lowercase letters a-z.
# All inputs are guaranteed to be non-empty strings.
################################################
class Node:
def __init__(self):
self.word = False
self.children = {}
class Trie:
def __init__(self):
"""
Initialize your data structure here.
"""
self.root = Node()
def insert(self, word: str) -> None:
"""
Inserts a word into the trie.
"""
node = self.root
for i in word:
if i not in node.children:
node.children[i] = Node()
node = node.children[i]
node.word = True
def search(self, word: str) -> bool:
"""
Returns if the word is in the trie.
"""
node = self.root
for i in word:
if i not in node.children:
return False
node = node.children[i]
return node.word
def startsWith(self, prefix: str) -> bool:
"""
Returns if there is any word in the trie that starts with the given prefix.
"""
node = self.root
for i in prefix:
if i not in node.children:
return False
node = node.children[i]
return True
|
def foo():
'''
>>> from mod import GoodFile as bad
'''
pass
|
print('program1.py')
a = 100000000
for x in range(1,9):
if (x>=1 and x<=2):
b=a*0
print('laba bulanan ke-',x,':',b)
if (x>=3 and x<=4):
c=a*0.1
print('laba bulanan ke-',x,':',c)
if (x>=5 and x<=7) :
d=a*0.5
print('laba bulanan ke-',x,':',d)
if (x==8) :
e=a*0.2
print('laba bulanan ke-',x,':',e)
total = b+b+c+c+d+d+e
print('\nTotal : ', total) |
def return_dict(list):
dict = {}
for plate in list:
if(plate in dict):
dict[plate] = dict[plate] + 1
else:
dict[plate] = 1
return dict
def isNumber(character):
return True if(character<='9' and character>='0') else False
def isLetter(character):
return True if((character<='z' and character>='a') or (character<='Z' and character>='A')) else False
def lookForIntersection(plate):
listIntersections = []
for i in range(len(plate)-1):
if(isNumber(plate[i]) and isLetter(plate[i+1])):
listIntersections.append(i)
return listIntersections
letter_to_number = {'z':'2', 's':'5', 'g':'6', 'i':'1','l':'1', 'a':'4', 't':'7', 'b':'8', 'o':'0'}
number_to_letter = {'2':'z', '5':'s', '6':'g', '1':'i', '4':'a', '7':'t', '8':'b', '0':'o'}
def change_letter_to_number(c):
return letter_to_number[c] if (c in letter_to_number) else c
def change_number_to_letter(c):
return number_to_letter[c] if (c in number_to_letter) else c
def replace(plate, flag, debug=False):
if (debug):
print(len(plate))
auxL = flag
auxR = flag+1
aux_numerical = ""
aux_letter = ""
while(auxL>-1):
if(isNumber(plate[auxL])):
aux_numerical += plate[auxL]
elif(isNumber(change_letter_to_number(plate[auxL]))):
aux_numerical += change_letter_to_number(plate[auxL])
auxL -= 1
aux_numerical = aux_numerical[::-1]
while(auxR<len(plate)):
if(isLetter(plate[auxR])):
aux_letter += plate[auxR]
elif(isLetter(change_number_to_letter(plate[auxR]))):
aux_letter += change_number_to_letter(plate[auxR])
auxR += 1
#print(aux_numerical, " and ", aux_letter)
res = aux_numerical+aux_letter
return res
def count_number_and_letters(plate, flag, debug=False):
#plate = replace(plate, flag)
if (debug):
print(len(plate))
auxL = flag
auxR = flag+1
numbers = 0
letters = 0
while(auxL>-1):
if (isNumber(plate[auxL])):
numbers += 1
if (debug):
print(auxL, " ", plate[auxL])
auxL -= 1
if debug:
print()
while(auxR<len(plate)):
if (debug):
print(auxR, " ", plate[auxR])
if(isLetter(plate[auxR])):
letters += 1
auxR += 1
return numbers, letters
def filter2(word, flag):
word = replace(word, flag)
flag = lookForIntersection(word)[0]
auxL = flag
auxR = flag + 1
number = ""
numbers = 0
letter = ""
letters = 0
while(auxL>-1):
if(isNumber(word[auxL]) and numbers < 4):
number += word[auxL]
numbers += 1
auxL -= 1
number = number[::-1]
while(auxR<len(word)):
if(isLetter(word[auxR]) and letters < 3):
letter += word[auxR]
letters += 1
auxR += 1
return number+letter if(numbers==4 and letters==3) else ""
def filter(test, debug=False):
answers = []
for plate in test:
aux = lookForIntersection(plate)
if (len(aux) >0):
#numbers, letters = count_number_and_letters(plate, aux[0], False)
#if(numbers == 4 and letters == 3):
# #print(plate)
# answers.append(plate)
#else:
value = filter2(plate, aux[0])
if(len(value)>0):
answers.append(value)
if(debug):
print("bo cumple")
return answers
def choose_the_best(car_id, debug = False):
try:
wordsFreqDict = return_dict(filter(car_id))
listofTuples = reversed(sorted(wordsFreqDict.items() , key=lambda x: x[1]))
# Iterate over the sorted sequence
cont_in_list = 0
for elem in listofTuples :
if(cont_in_list==0):
if (debug):
print(type(elem[0]) , " ::" , elem[1] )
return elem[0]
else:
break
cont_in_list += 1
except:
print("error")
return "placa no visible"
#####if is an old plate
def filter3_old(word, flag):
#word = replace(word, flag)
flag = lookForIntersection(word)[0]
auxL = flag
auxR = flag + 1
number = ""
numbers = 0
letter = ""
letters = 0
while(auxL>-1):
if(isNumber(word[auxL]) and numbers < 3):
number += word[auxL]
numbers += 1
auxL -= 1
number = number[::-1]
while(auxR<len(word)):
if(isLetter(word[auxR]) and letters < 3):
letter += word[auxR]
letters += 1
auxR += 1
return number+letter if(numbers==3 and letters==3) else ""
def find_old_plate(tres):
posible_answers = []
for old_plate in list(return_dict(tres).keys()):
intersections = lookForIntersection(old_plate)
for intersection in intersections:
#send value to the post processing part only if intersetcion is greater than 2
if(intersection >= 2):
filtered_old_plate = filter3_old(old_plate, intersection)
if (len(filtered_old_plate)>0):
posible_answers.append(filtered_old_plate)
#print(intersection, old_plate, sep= '; ')
old_plate_poss=return_dict(posible_answers)
ans = sorted(old_plate_poss)
return ans[-1]
|
try:
a = 4 / 0
except Exception as ex:
print(str(ex))
finally:
print('Thats all Folks')
|
class Torus(object,IEpsilonComparable[Torus]):
""" Torus(basePlane: Plane,majorRadius: float,minorRadius: float) """
def EpsilonEquals(self,other,epsilon):
""" EpsilonEquals(self: Torus,other: Torus,epsilon: float) -> bool """
pass
def ToNurbsSurface(self):
""" ToNurbsSurface(self: Torus) -> NurbsSurface """
pass
def ToRevSurface(self):
""" ToRevSurface(self: Torus) -> RevSurface """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
@staticmethod
def __new__(self,basePlane,majorRadius,minorRadius):
"""
__new__[Torus]() -> Torus
__new__(cls: type,basePlane: Plane,majorRadius: float,minorRadius: float)
"""
pass
def __reduce_ex__(self,*args):
pass
def __repr__(self,*args):
""" __repr__(self: object) -> str """
pass
def __str__(self,*args):
pass
IsValid=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: IsValid(self: Torus) -> bool
"""
MajorRadius=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: MajorRadius(self: Torus) -> float
Set: MajorRadius(self: Torus)=value
"""
MinorRadius=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: MinorRadius(self: Torus) -> float
Set: MinorRadius(self: Torus)=value
"""
Plane=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Plane(self: Torus) -> Plane
Set: Plane(self: Torus)=value
"""
Unset=None
|
def bfs(graph, init):
visited = []
queue = [init]
while queue:
current = queue.pop(0)
if current not in visited:
visited.append(current)
adj = graph[current]
for neighbor in adj:
for k in neighbor.keys():
queue.append(k)
return visited |
#coding: utf-8
#---------------------------------------------------------------------------------
# Um programa que contém uma função que recebe dois parâmetros sendo o primeiro
# o número a ser calculado, e o outro sendo um valor lógico(opcional) que indica
# se o processo do cálculo da fatororial será exibido ou não. Incluso docstring.
#---------------------------------------------------------------------------------
# Função para Fatorial - Exercício #102
#---------------------------------------------------------------------------------
print('\n-- FATORIAL DE 5 --')
def fatorial(n=1, show=False):
"""
=> Calcula o Fatorial de um número.
:parâmetro n: O número a ser calculado.
:parâmetro show: (opcional) Mostrar ou não a conta.
:return: O valor do Fatorial de um número n.
"""
f = 1
for c in range(n, 0, -1):
if show == True:
print(c, end = ' ')
if c > 1:
print('x', end =' ')
if c == 1:
print('=', end =' ')
f *= c
return f
print(fatorial(5, True))
|
del_items(0x80118770)
SetType(0x80118770, "int NumOfMonsterListLevels")
del_items(0x800A7554)
SetType(0x800A7554, "struct MonstLevel AllLevels[16]")
del_items(0x8011846C)
SetType(0x8011846C, "unsigned char NumsLEV1M1A[4]")
del_items(0x80118470)
SetType(0x80118470, "unsigned char NumsLEV1M1B[4]")
del_items(0x80118474)
SetType(0x80118474, "unsigned char NumsLEV1M1C[5]")
del_items(0x8011847C)
SetType(0x8011847C, "unsigned char NumsLEV2M2A[4]")
del_items(0x80118480)
SetType(0x80118480, "unsigned char NumsLEV2M2B[4]")
del_items(0x80118484)
SetType(0x80118484, "unsigned char NumsLEV2M2C[3]")
del_items(0x80118488)
SetType(0x80118488, "unsigned char NumsLEV2M2D[4]")
del_items(0x8011848C)
SetType(0x8011848C, "unsigned char NumsLEV2M2QA[4]")
del_items(0x80118490)
SetType(0x80118490, "unsigned char NumsLEV2M2QB[4]")
del_items(0x80118494)
SetType(0x80118494, "unsigned char NumsLEV3M3A[4]")
del_items(0x80118498)
SetType(0x80118498, "unsigned char NumsLEV3M3QA[3]")
del_items(0x8011849C)
SetType(0x8011849C, "unsigned char NumsLEV3M3B[4]")
del_items(0x801184A0)
SetType(0x801184A0, "unsigned char NumsLEV3M3C[4]")
del_items(0x801184A4)
SetType(0x801184A4, "unsigned char NumsLEV4M4A[4]")
del_items(0x801184A8)
SetType(0x801184A8, "unsigned char NumsLEV4M4QA[4]")
del_items(0x801184AC)
SetType(0x801184AC, "unsigned char NumsLEV4M4B[4]")
del_items(0x801184B0)
SetType(0x801184B0, "unsigned char NumsLEV4M4QB[5]")
del_items(0x801184B8)
SetType(0x801184B8, "unsigned char NumsLEV4M4C[4]")
del_items(0x801184BC)
SetType(0x801184BC, "unsigned char NumsLEV4M4QC[5]")
del_items(0x801184C4)
SetType(0x801184C4, "unsigned char NumsLEV4M4D[4]")
del_items(0x801184C8)
SetType(0x801184C8, "unsigned char NumsLEV5M5A[4]")
del_items(0x801184CC)
SetType(0x801184CC, "unsigned char NumsLEV5M5B[4]")
del_items(0x801184D0)
SetType(0x801184D0, "unsigned char NumsLEV5M5C[4]")
del_items(0x801184D4)
SetType(0x801184D4, "unsigned char NumsLEV5M5D[4]")
del_items(0x801184D8)
SetType(0x801184D8, "unsigned char NumsLEV5M5E[4]")
del_items(0x801184DC)
SetType(0x801184DC, "unsigned char NumsLEV5M5F[3]")
del_items(0x801184E0)
SetType(0x801184E0, "unsigned char NumsLEV5M5QA[4]")
del_items(0x801184E4)
SetType(0x801184E4, "unsigned char NumsLEV6M6A[5]")
del_items(0x801184EC)
SetType(0x801184EC, "unsigned char NumsLEV6M6B[3]")
del_items(0x801184F0)
SetType(0x801184F0, "unsigned char NumsLEV6M6C[4]")
del_items(0x801184F4)
SetType(0x801184F4, "unsigned char NumsLEV6M6D[3]")
del_items(0x801184F8)
SetType(0x801184F8, "unsigned char NumsLEV6M6E[3]")
del_items(0x801184FC)
SetType(0x801184FC, "unsigned char NumsLEV7M7A[4]")
del_items(0x80118500)
SetType(0x80118500, "unsigned char NumsLEV7M7B[4]")
del_items(0x80118504)
SetType(0x80118504, "unsigned char NumsLEV7M7C[3]")
del_items(0x80118508)
SetType(0x80118508, "unsigned char NumsLEV7M7D[2]")
del_items(0x8011850C)
SetType(0x8011850C, "unsigned char NumsLEV7M7E[2]")
del_items(0x80118510)
SetType(0x80118510, "unsigned char NumsLEV8M8QA[2]")
del_items(0x80118514)
SetType(0x80118514, "unsigned char NumsLEV8M8A[3]")
del_items(0x80118518)
SetType(0x80118518, "unsigned char NumsLEV8M8B[4]")
del_items(0x8011851C)
SetType(0x8011851C, "unsigned char NumsLEV8M8C[3]")
del_items(0x80118520)
SetType(0x80118520, "unsigned char NumsLEV8M8D[2]")
del_items(0x80118524)
SetType(0x80118524, "unsigned char NumsLEV8M8E[2]")
del_items(0x80118528)
SetType(0x80118528, "unsigned char NumsLEV9M9A[4]")
del_items(0x8011852C)
SetType(0x8011852C, "unsigned char NumsLEV9M9B[3]")
del_items(0x80118530)
SetType(0x80118530, "unsigned char NumsLEV9M9C[2]")
del_items(0x80118534)
SetType(0x80118534, "unsigned char NumsLEV9M9D[2]")
del_items(0x80118538)
SetType(0x80118538, "unsigned char NumsLEV10M10A[3]")
del_items(0x8011853C)
SetType(0x8011853C, "unsigned char NumsLEV10M10B[2]")
del_items(0x80118540)
SetType(0x80118540, "unsigned char NumsLEV10M10C[2]")
del_items(0x80118544)
SetType(0x80118544, "unsigned char NumsLEV10M10D[2]")
del_items(0x80118548)
SetType(0x80118548, "unsigned char NumsLEV10M10QA[3]")
del_items(0x8011854C)
SetType(0x8011854C, "unsigned char NumsLEV11M11A[3]")
del_items(0x80118550)
SetType(0x80118550, "unsigned char NumsLEV11M11B[3]")
del_items(0x80118554)
SetType(0x80118554, "unsigned char NumsLEV11M11C[3]")
del_items(0x80118558)
SetType(0x80118558, "unsigned char NumsLEV11M11D[3]")
del_items(0x8011855C)
SetType(0x8011855C, "unsigned char NumsLEV11M11E[2]")
del_items(0x80118560)
SetType(0x80118560, "unsigned char NumsLEV12M12A[3]")
del_items(0x80118564)
SetType(0x80118564, "unsigned char NumsLEV12M12B[3]")
del_items(0x80118568)
SetType(0x80118568, "unsigned char NumsLEV12M12C[3]")
del_items(0x8011856C)
SetType(0x8011856C, "unsigned char NumsLEV12M12D[3]")
del_items(0x80118570)
SetType(0x80118570, "unsigned char NumsLEV13M13A[3]")
del_items(0x80118574)
SetType(0x80118574, "unsigned char NumsLEV13M13B[2]")
del_items(0x80118578)
SetType(0x80118578, "unsigned char NumsLEV13M13QB[3]")
del_items(0x8011857C)
SetType(0x8011857C, "unsigned char NumsLEV13M13C[3]")
del_items(0x80118580)
SetType(0x80118580, "unsigned char NumsLEV13M13D[2]")
del_items(0x80118584)
SetType(0x80118584, "unsigned char NumsLEV14M14A[3]")
del_items(0x80118588)
SetType(0x80118588, "unsigned char NumsLEV14M14B[3]")
del_items(0x8011858C)
SetType(0x8011858C, "unsigned char NumsLEV14M14QB[3]")
del_items(0x80118590)
SetType(0x80118590, "unsigned char NumsLEV14M14C[3]")
del_items(0x80118594)
SetType(0x80118594, "unsigned char NumsLEV14M14D[3]")
del_items(0x80118598)
SetType(0x80118598, "unsigned char NumsLEV14M14E[2]")
del_items(0x8011859C)
SetType(0x8011859C, "unsigned char NumsLEV15M15A[3]")
del_items(0x801185A0)
SetType(0x801185A0, "unsigned char NumsLEV15M15B[3]")
del_items(0x801185A4)
SetType(0x801185A4, "unsigned char NumsLEV15M15C[2]")
del_items(0x801185A8)
SetType(0x801185A8, "unsigned char NumsLEV16M16D[3]")
del_items(0x800A7094)
SetType(0x800A7094, "struct MonstList ChoiceListLEV1[3]")
del_items(0x800A70C4)
SetType(0x800A70C4, "struct MonstList ChoiceListLEV2[6]")
del_items(0x800A7124)
SetType(0x800A7124, "struct MonstList ChoiceListLEV3[4]")
del_items(0x800A7164)
SetType(0x800A7164, "struct MonstList ChoiceListLEV4[7]")
del_items(0x800A71D4)
SetType(0x800A71D4, "struct MonstList ChoiceListLEV5[7]")
del_items(0x800A7244)
SetType(0x800A7244, "struct MonstList ChoiceListLEV6[5]")
del_items(0x800A7294)
SetType(0x800A7294, "struct MonstList ChoiceListLEV7[5]")
del_items(0x800A72E4)
SetType(0x800A72E4, "struct MonstList ChoiceListLEV8[6]")
del_items(0x800A7344)
SetType(0x800A7344, "struct MonstList ChoiceListLEV9[4]")
del_items(0x800A7384)
SetType(0x800A7384, "struct MonstList ChoiceListLEV10[5]")
del_items(0x800A73D4)
SetType(0x800A73D4, "struct MonstList ChoiceListLEV11[5]")
del_items(0x800A7424)
SetType(0x800A7424, "struct MonstList ChoiceListLEV12[4]")
del_items(0x800A7464)
SetType(0x800A7464, "struct MonstList ChoiceListLEV13[5]")
del_items(0x800A74B4)
SetType(0x800A74B4, "struct MonstList ChoiceListLEV14[6]")
del_items(0x800A7514)
SetType(0x800A7514, "struct MonstList ChoiceListLEV15[3]")
del_items(0x800A7544)
SetType(0x800A7544, "struct MonstList ChoiceListLEV16[1]")
del_items(0x8011A000)
SetType(0x8011A000, "struct TASK *GameTaskPtr")
del_items(0x800A75D4)
SetType(0x800A75D4, "struct LOAD_IMAGE_ARGS AllArgs[30]")
del_items(0x80118780)
SetType(0x80118780, "int ArgsSoFar")
del_items(0x80118784)
SetType(0x80118784, "unsigned long *ThisOt")
del_items(0x80118788)
SetType(0x80118788, "struct POLY_FT4 *ThisPrimAddr")
del_items(0x8011A004)
SetType(0x8011A004, "long hndPrimBuffers")
del_items(0x8011A008)
SetType(0x8011A008, "struct PRIM_BUFFER *PrimBuffers")
del_items(0x8011A00C)
SetType(0x8011A00C, "unsigned char BufferDepth")
del_items(0x8011A00D)
SetType(0x8011A00D, "unsigned char WorkRamId")
del_items(0x8011A00E)
SetType(0x8011A00E, "unsigned char ScrNum")
del_items(0x8011A010)
SetType(0x8011A010, "struct SCREEN_ENV *Screens")
del_items(0x8011A014)
SetType(0x8011A014, "struct PRIM_BUFFER *PbToClear")
del_items(0x8011A018)
SetType(0x8011A018, "unsigned char BufferNum")
del_items(0x8011878C)
SetType(0x8011878C, "struct POLY_FT4 *AddrToAvoid")
del_items(0x8011A019)
SetType(0x8011A019, "unsigned char LastBuffer")
del_items(0x8011A01C)
SetType(0x8011A01C, "struct DISPENV *DispEnvToPut")
del_items(0x8011A020)
SetType(0x8011A020, "int ThisOtSize")
del_items(0x80118790)
SetType(0x80118790, "struct RECT ScrRect")
del_items(0x8011A024)
SetType(0x8011A024, "int VidWait")
del_items(0x8011A470)
SetType(0x8011A470, "struct SCREEN_ENV screen[2]")
del_items(0x8011A028)
SetType(0x8011A028, "void (*VbFunc)()")
del_items(0x8011A02C)
SetType(0x8011A02C, "unsigned long VidTick")
del_items(0x8011A030)
SetType(0x8011A030, "int VXOff")
del_items(0x8011A034)
SetType(0x8011A034, "int VYOff")
del_items(0x801187A4)
SetType(0x801187A4, "struct LNK_OPTS *Gaz")
del_items(0x801187A8)
SetType(0x801187A8, "int LastFmem")
del_items(0x80118798)
SetType(0x80118798, "unsigned int GSYS_MemStart")
del_items(0x8011879C)
SetType(0x8011879C, "unsigned int GSYS_MemEnd")
del_items(0x800A791C)
SetType(0x800A791C, "struct MEM_INIT_INFO PsxMem")
del_items(0x800A7944)
SetType(0x800A7944, "struct MEM_INIT_INFO PsxFastMem")
del_items(0x801187A0)
SetType(0x801187A0, "int LowestFmem")
del_items(0x801187B8)
SetType(0x801187B8, "int FileSYS")
del_items(0x8011A038)
SetType(0x8011A038, "struct FileIO *FileSystem")
del_items(0x8011A03C)
SetType(0x8011A03C, "struct FileIO *OverlayFileSystem")
del_items(0x801187D2)
SetType(0x801187D2, "short DavesPad")
del_items(0x801187D4)
SetType(0x801187D4, "short DavesPadDeb")
del_items(0x800A796C)
SetType(0x800A796C, "char _6FileIO_FileToLoad[50]")
del_items(0x8011A550)
SetType(0x8011A550, "struct POLY_FT4 MyFT4")
del_items(0x800A8210)
SetType(0x800A8210, "struct TextDat *AllDats[285]")
del_items(0x80118824)
SetType(0x80118824, "int TpW")
del_items(0x80118828)
SetType(0x80118828, "int TpH")
del_items(0x8011882C)
SetType(0x8011882C, "int TpXDest")
del_items(0x80118830)
SetType(0x80118830, "int TpYDest")
del_items(0x80118834)
SetType(0x80118834, "struct RECT R")
del_items(0x800A8684)
SetType(0x800A8684, "struct POLY_GT4 MyGT4")
del_items(0x800A86B8)
SetType(0x800A86B8, "struct POLY_GT3 MyGT3")
del_items(0x800A79A0)
SetType(0x800A79A0, "struct TextDat DatPool[20]")
del_items(0x80118848)
SetType(0x80118848, "bool ChunkGot")
del_items(0x800A86E0)
SetType(0x800A86E0, "char STREAM_DIR[16]")
del_items(0x800A86F0)
SetType(0x800A86F0, "char STREAM_BIN[16]")
del_items(0x800A8700)
SetType(0x800A8700, "unsigned char EAC_DirectoryCache[300]")
del_items(0x80118860)
SetType(0x80118860, "unsigned long BL_NoLumpFiles")
del_items(0x80118864)
SetType(0x80118864, "unsigned long BL_NoStreamFiles")
del_items(0x80118868)
SetType(0x80118868, "struct STRHDR *LFileTab")
del_items(0x8011886C)
SetType(0x8011886C, "struct STRHDR *SFileTab")
del_items(0x80118870)
SetType(0x80118870, "unsigned char FileLoaded")
del_items(0x801188A0)
SetType(0x801188A0, "int NoTAllocs")
del_items(0x800A882C)
SetType(0x800A882C, "struct MEMSTRUCT MemBlock[50]")
del_items(0x8011A048)
SetType(0x8011A048, "bool CanPause")
del_items(0x8011A04C)
SetType(0x8011A04C, "bool Paused")
del_items(0x8011A578)
SetType(0x8011A578, "struct Dialog PBack")
del_items(0x800A8A94)
SetType(0x800A8A94, "unsigned char RawPadData0[34]")
del_items(0x800A8AB8)
SetType(0x800A8AB8, "unsigned char RawPadData1[34]")
del_items(0x800A8ADC)
SetType(0x800A8ADC, "unsigned char demo_buffer[1800]")
del_items(0x801188CC)
SetType(0x801188CC, "int demo_pad_time")
del_items(0x801188D0)
SetType(0x801188D0, "int demo_pad_count")
del_items(0x800A89BC)
SetType(0x800A89BC, "struct CPad Pad0")
del_items(0x800A8A28)
SetType(0x800A8A28, "struct CPad Pad1")
del_items(0x801188D4)
SetType(0x801188D4, "unsigned long demo_finish")
del_items(0x801188D8)
SetType(0x801188D8, "int cac_pad")
del_items(0x801188F4)
SetType(0x801188F4, "struct POLY_FT4 *CharFt4")
del_items(0x801188F8)
SetType(0x801188F8, "int CharFrm")
del_items(0x801188E5)
SetType(0x801188E5, "unsigned char WHITER")
del_items(0x801188E6)
SetType(0x801188E6, "unsigned char WHITEG")
del_items(0x801188E7)
SetType(0x801188E7, "unsigned char WHITEB")
del_items(0x801188E8)
SetType(0x801188E8, "unsigned char BLUER")
del_items(0x801188E9)
SetType(0x801188E9, "unsigned char BLUEG")
del_items(0x801188EA)
SetType(0x801188EA, "unsigned char BLUEB")
del_items(0x801188EB)
SetType(0x801188EB, "unsigned char REDR")
del_items(0x801188EC)
SetType(0x801188EC, "unsigned char REDG")
del_items(0x801188ED)
SetType(0x801188ED, "unsigned char REDB")
del_items(0x801188EE)
SetType(0x801188EE, "unsigned char GOLDR")
del_items(0x801188EF)
SetType(0x801188EF, "unsigned char GOLDG")
del_items(0x801188F0)
SetType(0x801188F0, "unsigned char GOLDB")
del_items(0x800A91E4)
SetType(0x800A91E4, "struct CFont MediumFont")
del_items(0x800A93FC)
SetType(0x800A93FC, "struct CFont LargeFont")
del_items(0x800A9614)
SetType(0x800A9614, "struct FontItem LFontTab[90]")
del_items(0x800A96C8)
SetType(0x800A96C8, "struct FontTab LFont")
del_items(0x800A96D8)
SetType(0x800A96D8, "struct FontItem MFontTab[155]")
del_items(0x800A9810)
SetType(0x800A9810, "struct FontTab MFont")
del_items(0x8011890D)
SetType(0x8011890D, "unsigned char DialogRed")
del_items(0x8011890E)
SetType(0x8011890E, "unsigned char DialogGreen")
del_items(0x8011890F)
SetType(0x8011890F, "unsigned char DialogBlue")
del_items(0x80118910)
SetType(0x80118910, "unsigned char DialogTRed")
del_items(0x80118911)
SetType(0x80118911, "unsigned char DialogTGreen")
del_items(0x80118912)
SetType(0x80118912, "unsigned char DialogTBlue")
del_items(0x80118914)
SetType(0x80118914, "struct TextDat *DialogTData")
del_items(0x80118918)
SetType(0x80118918, "int DialogBackGfx")
del_items(0x8011891C)
SetType(0x8011891C, "int DialogBackW")
del_items(0x80118920)
SetType(0x80118920, "int DialogBackH")
del_items(0x80118924)
SetType(0x80118924, "int DialogBorderGfx")
del_items(0x80118928)
SetType(0x80118928, "int DialogBorderTLW")
del_items(0x8011892C)
SetType(0x8011892C, "int DialogBorderTLH")
del_items(0x80118930)
SetType(0x80118930, "int DialogBorderTRW")
del_items(0x80118934)
SetType(0x80118934, "int DialogBorderTRH")
del_items(0x80118938)
SetType(0x80118938, "int DialogBorderBLW")
del_items(0x8011893C)
SetType(0x8011893C, "int DialogBorderBLH")
del_items(0x80118940)
SetType(0x80118940, "int DialogBorderBRW")
del_items(0x80118944)
SetType(0x80118944, "int DialogBorderBRH")
del_items(0x80118948)
SetType(0x80118948, "int DialogBorderTW")
del_items(0x8011894C)
SetType(0x8011894C, "int DialogBorderTH")
del_items(0x80118950)
SetType(0x80118950, "int DialogBorderBW")
del_items(0x80118954)
SetType(0x80118954, "int DialogBorderBH")
del_items(0x80118958)
SetType(0x80118958, "int DialogBorderLW")
del_items(0x8011895C)
SetType(0x8011895C, "int DialogBorderLH")
del_items(0x80118960)
SetType(0x80118960, "int DialogBorderRW")
del_items(0x80118964)
SetType(0x80118964, "int DialogBorderRH")
del_items(0x80118968)
SetType(0x80118968, "int DialogBevelGfx")
del_items(0x8011896C)
SetType(0x8011896C, "int DialogBevelCW")
del_items(0x80118970)
SetType(0x80118970, "int DialogBevelCH")
del_items(0x80118974)
SetType(0x80118974, "int DialogBevelLRW")
del_items(0x80118978)
SetType(0x80118978, "int DialogBevelLRH")
del_items(0x8011897C)
SetType(0x8011897C, "int DialogBevelUDW")
del_items(0x80118980)
SetType(0x80118980, "int DialogBevelUDH")
del_items(0x80118984)
SetType(0x80118984, "int MY_DialogOTpos")
del_items(0x8011A050)
SetType(0x8011A050, "unsigned char DialogGBack")
del_items(0x8011A051)
SetType(0x8011A051, "char GShadeX")
del_items(0x8011A052)
SetType(0x8011A052, "char GShadeY")
del_items(0x8011A058)
SetType(0x8011A058, "unsigned char RandBTab[8]")
del_items(0x800A9860)
SetType(0x800A9860, "int Cxy[28]")
del_items(0x80118907)
SetType(0x80118907, "unsigned char BORDERR")
del_items(0x80118908)
SetType(0x80118908, "unsigned char BORDERG")
del_items(0x80118909)
SetType(0x80118909, "unsigned char BORDERB")
del_items(0x8011890A)
SetType(0x8011890A, "unsigned char BACKR")
del_items(0x8011890B)
SetType(0x8011890B, "unsigned char BACKG")
del_items(0x8011890C)
SetType(0x8011890C, "unsigned char BACKB")
del_items(0x800A9820)
SetType(0x800A9820, "char GShadeTab[64]")
del_items(0x80118905)
SetType(0x80118905, "char GShadePX")
del_items(0x80118906)
SetType(0x80118906, "char GShadePY")
del_items(0x80118991)
SetType(0x80118991, "unsigned char PlayDemoFlag")
del_items(0x8011A588)
SetType(0x8011A588, "struct RGBPOLY rgbb")
del_items(0x8011A5B8)
SetType(0x8011A5B8, "struct RGBPOLY rgbt")
del_items(0x8011A060)
SetType(0x8011A060, "int blockr")
del_items(0x8011A064)
SetType(0x8011A064, "int blockg")
del_items(0x8011A068)
SetType(0x8011A068, "int blockb")
del_items(0x8011A06C)
SetType(0x8011A06C, "int InfraFlag")
del_items(0x8011A070)
SetType(0x8011A070, "unsigned char blank_bit")
del_items(0x801189A5)
SetType(0x801189A5, "unsigned char P1ObjSelCount")
del_items(0x801189A6)
SetType(0x801189A6, "unsigned char P2ObjSelCount")
del_items(0x801189A7)
SetType(0x801189A7, "unsigned char P12ObjSelCount")
del_items(0x801189A8)
SetType(0x801189A8, "unsigned char P1ItemSelCount")
del_items(0x801189A9)
SetType(0x801189A9, "unsigned char P2ItemSelCount")
del_items(0x801189AA)
SetType(0x801189AA, "unsigned char P12ItemSelCount")
del_items(0x801189AB)
SetType(0x801189AB, "unsigned char P1MonstSelCount")
del_items(0x801189AC)
SetType(0x801189AC, "unsigned char P2MonstSelCount")
del_items(0x801189AD)
SetType(0x801189AD, "unsigned char P12MonstSelCount")
del_items(0x801189AE)
SetType(0x801189AE, "unsigned short P1ObjSelCol")
del_items(0x801189B0)
SetType(0x801189B0, "unsigned short P2ObjSelCol")
del_items(0x801189B2)
SetType(0x801189B2, "unsigned short P12ObjSelCol")
del_items(0x801189B4)
SetType(0x801189B4, "unsigned short P1ItemSelCol")
del_items(0x801189B6)
SetType(0x801189B6, "unsigned short P2ItemSelCol")
del_items(0x801189B8)
SetType(0x801189B8, "unsigned short P12ItemSelCol")
del_items(0x801189BA)
SetType(0x801189BA, "unsigned short P1MonstSelCol")
del_items(0x801189BC)
SetType(0x801189BC, "unsigned short P2MonstSelCol")
del_items(0x801189BE)
SetType(0x801189BE, "unsigned short P12MonstSelCol")
del_items(0x801189C0)
SetType(0x801189C0, "struct CBlocks *CurrentBlocks")
del_items(0x8010E2B8)
SetType(0x8010E2B8, "short SinTab[32]")
del_items(0x800A98D0)
SetType(0x800A98D0, "struct TownToCreature TownConv[10]")
del_items(0x801189DC)
SetType(0x801189DC, "enum OVER_TYPE CurrentOverlay")
del_items(0x8010E358)
SetType(0x8010E358, "unsigned long HaltTab[3]")
del_items(0x8011A5E8)
SetType(0x8011A5E8, "struct Overlay FrontEndOver")
del_items(0x8011A5F8)
SetType(0x8011A5F8, "struct Overlay PregameOver")
del_items(0x8011A608)
SetType(0x8011A608, "struct Overlay GameOver")
del_items(0x8011A618)
SetType(0x8011A618, "struct Overlay FmvOver")
del_items(0x8011A074)
SetType(0x8011A074, "int OWorldX")
del_items(0x8011A078)
SetType(0x8011A078, "int OWorldY")
del_items(0x8011A07C)
SetType(0x8011A07C, "int WWorldX")
del_items(0x8011A080)
SetType(0x8011A080, "int WWorldY")
del_items(0x8010E3D4)
SetType(0x8010E3D4, "short TxyAdd[16]")
del_items(0x80118A00)
SetType(0x80118A00, "int GXAdj2")
del_items(0x8011A084)
SetType(0x8011A084, "int TimePerFrame")
del_items(0x8011A088)
SetType(0x8011A088, "int CpuStart")
del_items(0x8011A08C)
SetType(0x8011A08C, "int CpuTime")
del_items(0x8011A090)
SetType(0x8011A090, "int DrawTime")
del_items(0x8011A094)
SetType(0x8011A094, "int DrawStart")
del_items(0x8011A098)
SetType(0x8011A098, "int LastCpuTime")
del_items(0x8011A09C)
SetType(0x8011A09C, "int LastDrawTime")
del_items(0x8011A0A0)
SetType(0x8011A0A0, "int DrawArea")
del_items(0x80118A08)
SetType(0x80118A08, "bool ProfOn")
del_items(0x800A98E4)
SetType(0x800A98E4, "unsigned char LevPals[17]")
del_items(0x8010E53C)
SetType(0x8010E53C, "unsigned short Level2Bgdata[25]")
del_items(0x800A98F8)
SetType(0x800A98F8, "struct PanelXY DefP1PanelXY")
del_items(0x800A994C)
SetType(0x800A994C, "struct PanelXY DefP1PanelXY2")
del_items(0x800A99A0)
SetType(0x800A99A0, "struct PanelXY DefP2PanelXY")
del_items(0x800A99F4)
SetType(0x800A99F4, "struct PanelXY DefP2PanelXY2")
del_items(0x800A9A48)
SetType(0x800A9A48, "unsigned int SpeedBarGfxTable[50]")
del_items(0x80118A30)
SetType(0x80118A30, "int hof")
del_items(0x80118A34)
SetType(0x80118A34, "int mof")
del_items(0x800A9B10)
SetType(0x800A9B10, "struct SFXHDR SFXTab[2]")
del_items(0x80118A6C)
SetType(0x80118A6C, "unsigned long Time")
del_items(0x80118A70)
SetType(0x80118A70, "bool CDWAIT")
del_items(0x800A9C10)
SetType(0x800A9C10, "struct SpuVoiceAttr voice_attr")
del_items(0x80118A44)
SetType(0x80118A44, "unsigned long *STR_Buffer")
del_items(0x80118A48)
SetType(0x80118A48, "char NoActiveStreams")
del_items(0x80118A4C)
SetType(0x80118A4C, "bool STRInit")
del_items(0x80118A50)
SetType(0x80118A50, "unsigned char CDFlip")
del_items(0x80118A94)
SetType(0x80118A94, "char SFXNotPlayed")
del_items(0x80118A95)
SetType(0x80118A95, "char SFXNotInBank")
del_items(0x8011A628)
SetType(0x8011A628, "char spu_management[264]")
del_items(0x8011A738)
SetType(0x8011A738, "struct SpuReverbAttr rev_attr")
del_items(0x8011A0A8)
SetType(0x8011A0A8, "unsigned short NoSfx")
del_items(0x80118A80)
SetType(0x80118A80, "struct bank_entry *BankOffsets")
del_items(0x80118A84)
SetType(0x80118A84, "long OffsetHandle")
del_items(0x80118A88)
SetType(0x80118A88, "int BankBase")
del_items(0x80118A8C)
SetType(0x80118A8C, "unsigned char SPU_Done")
del_items(0x8010E8F8)
SetType(0x8010E8F8, "unsigned short SFXRemapTab[56]")
del_items(0x80118A90)
SetType(0x80118A90, "int NoSNDRemaps")
del_items(0x800A9C50)
SetType(0x800A9C50, "struct PalCollection ThePals")
del_items(0x8010E99C)
SetType(0x8010E99C, "struct InitPos InitialPositions[20]")
del_items(0x80118ADC)
SetType(0x80118ADC, "int demo_level")
del_items(0x8011A750)
SetType(0x8011A750, "int buff[8]")
del_items(0x80118AE0)
SetType(0x80118AE0, "int old_val")
del_items(0x80118AE4)
SetType(0x80118AE4, "struct TASK *DemoTask")
del_items(0x80118AE8)
SetType(0x80118AE8, "struct TASK *DemoGameTask")
del_items(0x80118AEC)
SetType(0x80118AEC, "struct TASK *tonys")
del_items(0x80118AC0)
SetType(0x80118AC0, "int demo_load")
del_items(0x80118AC4)
SetType(0x80118AC4, "int demo_record_load")
del_items(0x80118AC8)
SetType(0x80118AC8, "int level_record")
del_items(0x80118ACC)
SetType(0x80118ACC, "char demo_fade_finished")
del_items(0x80118ACD)
SetType(0x80118ACD, "unsigned char demo_which")
del_items(0x800A9E3C)
SetType(0x800A9E3C, "unsigned long demolevel[5]")
del_items(0x80118ABC)
SetType(0x80118ABC, "int moo_moo")
del_items(0x80118ACE)
SetType(0x80118ACE, "unsigned char demo_flash")
del_items(0x80118AD0)
SetType(0x80118AD0, "int tonys_Task")
del_items(0x80118C48)
SetType(0x80118C48, "bool DoShowPanel")
del_items(0x80118C4C)
SetType(0x80118C4C, "bool DoDrawBg")
del_items(0x8011A0AC)
SetType(0x8011A0AC, "bool GlueFinished")
del_items(0x8011A0B0)
SetType(0x8011A0B0, "bool DoHomingScroll")
del_items(0x8011A0B4)
SetType(0x8011A0B4, "struct TextDat *TownerGfx")
del_items(0x8011A0B8)
SetType(0x8011A0B8, "int CurrentMonsterList")
del_items(0x80118AF9)
SetType(0x80118AF9, "char started_grtask")
del_items(0x800A9E50)
SetType(0x800A9E50, "struct PInf PlayerInfo[81]")
del_items(0x80118C50)
SetType(0x80118C50, "char ArmourChar[4]")
del_items(0x8010EA90)
SetType(0x8010EA90, "char WepChar[10]")
del_items(0x80118C54)
SetType(0x80118C54, "char CharChar[4]")
del_items(0x8011A0BC)
SetType(0x8011A0BC, "char ctrl_select_line")
del_items(0x8011A0BD)
SetType(0x8011A0BD, "char ctrl_select_side")
del_items(0x8011A0BE)
SetType(0x8011A0BE, "char ckeyheld")
del_items(0x8011A0C4)
SetType(0x8011A0C4, "struct RECT CtrlRect")
del_items(0x80118C68)
SetType(0x80118C68, "unsigned char ctrlflag")
del_items(0x800AA180)
SetType(0x800AA180, "struct KEY_ASSIGNS txt_actions[19]")
del_items(0x800AA0D8)
SetType(0x800AA0D8, "struct pad_assigns pad_txt[14]")
del_items(0x80118C64)
SetType(0x80118C64, "int toppos")
del_items(0x8011A770)
SetType(0x8011A770, "struct Dialog CtrlBack")
del_items(0x800AA2B0)
SetType(0x800AA2B0, "int controller_defaults[2][19]")
del_items(0x80118CD8)
SetType(0x80118CD8, "int gr_scrxoff")
del_items(0x80118CDC)
SetType(0x80118CDC, "int gr_scryoff")
del_items(0x80118CE4)
SetType(0x80118CE4, "unsigned short water_clut")
del_items(0x80118CE8)
SetType(0x80118CE8, "char visible_level")
del_items(0x80118CD5)
SetType(0x80118CD5, "char last_type")
del_items(0x80118CEA)
SetType(0x80118CEA, "char daylight")
del_items(0x80118CE6)
SetType(0x80118CE6, "char cow_in_sight")
del_items(0x80118CE7)
SetType(0x80118CE7, "char inn_in_sight")
del_items(0x80118CE0)
SetType(0x80118CE0, "unsigned int water_count")
del_items(0x80118CE9)
SetType(0x80118CE9, "unsigned char lastrnd")
del_items(0x80118CEC)
SetType(0x80118CEC, "int call_clock")
del_items(0x80118CFC)
SetType(0x80118CFC, "int TitleAnimCount")
del_items(0x80118D00)
SetType(0x80118D00, "int flametick")
del_items(0x8010EB44)
SetType(0x8010EB44, "unsigned char light_tile[55]")
del_items(0x800AA368)
SetType(0x800AA368, "struct SPELLFX_DAT SpellFXDat[2]")
del_items(0x8011A780)
SetType(0x8011A780, "struct Particle PartArray[16]")
del_items(0x8011A0CC)
SetType(0x8011A0CC, "int partOtPos")
del_items(0x80118D1C)
SetType(0x80118D1C, "int SetParticle")
del_items(0x80118D20)
SetType(0x80118D20, "int p1partexecnum")
del_items(0x80118D24)
SetType(0x80118D24, "int p2partexecnum")
del_items(0x800AA348)
SetType(0x800AA348, "int JumpArray[8]")
del_items(0x80118D28)
SetType(0x80118D28, "int partjumpflag")
del_items(0x80118D2C)
SetType(0x80118D2C, "int partglowflag")
del_items(0x80118D30)
SetType(0x80118D30, "int partcolour")
del_items(0x800AA3F8)
SetType(0x800AA3F8, "struct Spell_Target SplTarget[2]")
del_items(0x80118D51)
SetType(0x80118D51, "unsigned char select_flag")
del_items(0x8011A0D0)
SetType(0x8011A0D0, "struct RECT SelectRect")
del_items(0x8011A0D8)
SetType(0x8011A0D8, "char item_select")
del_items(0x80118D54)
SetType(0x80118D54, "char QSpell[2]")
del_items(0x80118D58)
SetType(0x80118D58, "char _spltotype[2]")
del_items(0x80118D5C)
SetType(0x80118D5C, "bool force_attack[2]")
del_items(0x80118D44)
SetType(0x80118D44, "struct CPlayer *gplayer")
del_items(0x8011A9C0)
SetType(0x8011A9C0, "struct Dialog SelectBack")
del_items(0x80118D48)
SetType(0x80118D48, "char mana_order[4]")
del_items(0x80118D4C)
SetType(0x80118D4C, "char health_order[4]")
del_items(0x80118D50)
SetType(0x80118D50, "unsigned char birdcheck")
del_items(0x8011A9D0)
SetType(0x8011A9D0, "struct TextDat *DecRequestors[10]")
del_items(0x8011A0DC)
SetType(0x8011A0DC, "unsigned short progress")
del_items(0x8010EC58)
SetType(0x8010EC58, "unsigned short Level2CutScreen[21]")
del_items(0x80118D7C)
SetType(0x80118D7C, "char *CutString")
del_items(0x8011A9F8)
SetType(0x8011A9F8, "struct CScreen Scr")
del_items(0x80118D80)
SetType(0x80118D80, "struct TASK *CutScreenTSK")
del_items(0x80118D84)
SetType(0x80118D84, "bool GameLoading")
del_items(0x8011AA78)
SetType(0x8011AA78, "struct Dialog LBack")
del_items(0x80118D94)
SetType(0x80118D94, "unsigned int card_ev0")
del_items(0x80118D98)
SetType(0x80118D98, "unsigned int card_ev1")
del_items(0x80118D9C)
SetType(0x80118D9C, "unsigned int card_ev2")
del_items(0x80118DA0)
SetType(0x80118DA0, "unsigned int card_ev3")
del_items(0x80118DA4)
SetType(0x80118DA4, "unsigned int card_ev10")
del_items(0x80118DA8)
SetType(0x80118DA8, "unsigned int card_ev11")
del_items(0x80118DAC)
SetType(0x80118DAC, "unsigned int card_ev12")
del_items(0x80118DB0)
SetType(0x80118DB0, "unsigned int card_ev13")
del_items(0x80118DB4)
SetType(0x80118DB4, "int card_dirty[2]")
del_items(0x80118DBC)
SetType(0x80118DBC, "struct TASK *MemcardTask")
del_items(0x8011A0E0)
SetType(0x8011A0E0, "int card_event")
del_items(0x80118D90)
SetType(0x80118D90, "void (*mem_card_event_handler)()")
del_items(0x80118D88)
SetType(0x80118D88, "bool MemCardActive")
del_items(0x80118D8C)
SetType(0x80118D8C, "int never_hooked_events")
del_items(0x80118E00)
SetType(0x80118E00, "unsigned long MasterVol")
del_items(0x80118E04)
SetType(0x80118E04, "unsigned long MusicVol")
del_items(0x80118E08)
SetType(0x80118E08, "unsigned long SoundVol")
del_items(0x80118E0C)
SetType(0x80118E0C, "unsigned long VideoVol")
del_items(0x80118E10)
SetType(0x80118E10, "unsigned long SpeechVol")
del_items(0x8011A0E4)
SetType(0x8011A0E4, "struct TextDat *Slider")
del_items(0x8011A0E8)
SetType(0x8011A0E8, "int sw")
del_items(0x8011A0EC)
SetType(0x8011A0EC, "int sx")
del_items(0x8011A0F0)
SetType(0x8011A0F0, "int sy")
del_items(0x8011A0F4)
SetType(0x8011A0F4, "unsigned char Adjust")
del_items(0x8011A0F5)
SetType(0x8011A0F5, "unsigned char qspin")
del_items(0x8011A0F6)
SetType(0x8011A0F6, "unsigned char lqspin")
del_items(0x8011A0F8)
SetType(0x8011A0F8, "enum LANG_TYPE OrigLang")
del_items(0x8011A0FC)
SetType(0x8011A0FC, "enum LANG_TYPE OldLang")
del_items(0x8011A100)
SetType(0x8011A100, "enum LANG_TYPE NewLang")
del_items(0x80118E14)
SetType(0x80118E14, "int ReturnMenu")
del_items(0x8011A104)
SetType(0x8011A104, "struct RECT ORect")
del_items(0x8011A10C)
SetType(0x8011A10C, "char *McState[2]")
del_items(0x80118E18)
SetType(0x80118E18, "int they_pressed")
del_items(0x80118DE4)
SetType(0x80118DE4, "bool optionsflag")
del_items(0x80118DD8)
SetType(0x80118DD8, "int cmenu")
del_items(0x80118DEC)
SetType(0x80118DEC, "int options_pad")
del_items(0x80118DF8)
SetType(0x80118DF8, "char *PrevTxt")
del_items(0x80118DE0)
SetType(0x80118DE0, "bool allspellsflag")
del_items(0x800AAC60)
SetType(0x800AAC60, "short Circle[64]")
del_items(0x80118DCC)
SetType(0x80118DCC, "int Spacing")
del_items(0x80118DD0)
SetType(0x80118DD0, "int cs")
del_items(0x80118DD4)
SetType(0x80118DD4, "int lastcs")
del_items(0x80118DDC)
SetType(0x80118DDC, "bool MemcardOverlay")
del_items(0x80118DE8)
SetType(0x80118DE8, "int saveflag")
del_items(0x800AA440)
SetType(0x800AA440, "struct OMENUITEM MainMenu[7]")
del_items(0x800AA4E8)
SetType(0x800AA4E8, "struct OMENUITEM GameMenu[9]")
del_items(0x800AA5C0)
SetType(0x800AA5C0, "struct OMENUITEM SoundMenu[6]")
del_items(0x800AA650)
SetType(0x800AA650, "struct OMENUITEM CentreMenu[7]")
del_items(0x800AA6F8)
SetType(0x800AA6F8, "struct OMENUITEM LangMenu[7]")
del_items(0x800AA7A0)
SetType(0x800AA7A0, "struct OMENUITEM MemcardMenu[4]")
del_items(0x800AA800)
SetType(0x800AA800, "struct OMENUITEM MemcardGameMenu[6]")
del_items(0x800AA890)
SetType(0x800AA890, "struct OMENUITEM MemcardCharacterMenu[4]")
del_items(0x800AA8F0)
SetType(0x800AA8F0, "struct OMENUITEM MemcardSelectCard1[7]")
del_items(0x800AA998)
SetType(0x800AA998, "struct OMENUITEM MemcardSelectCard2[7]")
del_items(0x800AAA40)
SetType(0x800AAA40, "struct OMENUITEM MemcardFormatMenu[4]")
del_items(0x800AAAA0)
SetType(0x800AAAA0, "struct OMENUITEM CheatMenu[9]")
del_items(0x800AAB78)
SetType(0x800AAB78, "struct OMENUITEM InfoMenu[2]")
del_items(0x800AABA8)
SetType(0x800AABA8, "struct OMENUITEM MonstViewMenu[3]")
del_items(0x800AABF0)
SetType(0x800AABF0, "struct OMENULIST MenuList[14]")
del_items(0x80118DFC)
SetType(0x80118DFC, "bool debounce")
del_items(0x800AACE0)
SetType(0x800AACE0, "struct BIRDSTRUCT BirdList[16]")
del_items(0x80118E25)
SetType(0x80118E25, "char hop_height")
del_items(0x80118E28)
SetType(0x80118E28, "struct Perch perches[4]")
del_items(0x800AAE60)
SetType(0x800AAE60, "char *FmvTab[4]")
del_items(0x80118E3C)
SetType(0x80118E3C, "int CurMons")
del_items(0x80118E40)
SetType(0x80118E40, "int Frame")
del_items(0x80118E44)
SetType(0x80118E44, "int Action")
del_items(0x80118E48)
SetType(0x80118E48, "int Dir")
del_items(0x80118E8C)
SetType(0x80118E8C, "int indsize")
del_items(0x80118E90)
SetType(0x80118E90, "unsigned char *kanjbuff")
del_items(0x80118E94)
SetType(0x80118E94, "struct kindexS *kindex")
del_items(0x80118E98)
SetType(0x80118E98, "long hndKanjBuff")
del_items(0x80118E9C)
SetType(0x80118E9C, "long hndKanjIndex")
del_items(0x80118EF4)
SetType(0x80118EF4, "int FeBackX")
del_items(0x80118EF8)
SetType(0x80118EF8, "int FeBackY")
del_items(0x80118EFC)
SetType(0x80118EFC, "int FeBackW")
del_items(0x80118F00)
SetType(0x80118F00, "int FeBackH")
del_items(0x80118F04)
SetType(0x80118F04, "unsigned char FeFlag")
del_items(0x800AB9D0)
SetType(0x800AB9D0, "struct FeStruct FeBuffer[80]")
del_items(0x80118F08)
SetType(0x80118F08, "int FePlayerNo")
del_items(0x8011A114)
SetType(0x8011A114, "struct FE_CREATE *CStruct")
del_items(0x80118F0C)
SetType(0x80118F0C, "int FeBufferCount")
del_items(0x80118F10)
SetType(0x80118F10, "int FeNoOfPlayers")
del_items(0x80118F14)
SetType(0x80118F14, "int FeChrClass[2]")
del_items(0x800AC150)
SetType(0x800AC150, "char FePlayerName[11][2]")
del_items(0x80118F1C)
SetType(0x80118F1C, "struct FeTable *FeCurMenu")
del_items(0x80118F20)
SetType(0x80118F20, "unsigned char FePlayerNameFlag[2]")
del_items(0x80118F24)
SetType(0x80118F24, "unsigned long FeCount")
del_items(0x80118F28)
SetType(0x80118F28, "int fileselect")
del_items(0x80118F2C)
SetType(0x80118F2C, "int BookMenu")
del_items(0x80118F30)
SetType(0x80118F30, "int FeAttractMode")
del_items(0x80118F34)
SetType(0x80118F34, "int FMVPress")
del_items(0x80118EC4)
SetType(0x80118EC4, "struct TextDat *FeTData")
del_items(0x80118ECC)
SetType(0x80118ECC, "bool LoadedChar[2]")
del_items(0x80118EC8)
SetType(0x80118EC8, "struct TextDat *FlameTData")
del_items(0x80118ED4)
SetType(0x80118ED4, "unsigned char FeIsAVirgin")
del_items(0x80118ED8)
SetType(0x80118ED8, "int FeMenuDelay")
del_items(0x800AAE70)
SetType(0x800AAE70, "struct FeTable DummyMenu")
del_items(0x800AAE8C)
SetType(0x800AAE8C, "struct FeTable FeMainMenu")
del_items(0x800AAEA8)
SetType(0x800AAEA8, "struct FeTable FeNewGameMenu")
del_items(0x800AAEC4)
SetType(0x800AAEC4, "struct FeTable FeNewP1ClassMenu")
del_items(0x800AAEE0)
SetType(0x800AAEE0, "struct FeTable FeNewP1NameMenu")
del_items(0x800AAEFC)
SetType(0x800AAEFC, "struct FeTable FeNewP2ClassMenu")
del_items(0x800AAF18)
SetType(0x800AAF18, "struct FeTable FeNewP2NameMenu")
del_items(0x800AAF34)
SetType(0x800AAF34, "struct FeTable FeDifficultyMenu")
del_items(0x800AAF50)
SetType(0x800AAF50, "struct FeTable FeBackgroundMenu")
del_items(0x800AAF6C)
SetType(0x800AAF6C, "struct FeTable FeBook1Menu")
del_items(0x800AAF88)
SetType(0x800AAF88, "struct FeTable FeBook2Menu")
del_items(0x800AAFA4)
SetType(0x800AAFA4, "struct FeTable FeLoadCharMenu")
del_items(0x800AAFC0)
SetType(0x800AAFC0, "struct FeTable FeLoadChar1Menu")
del_items(0x800AAFDC)
SetType(0x800AAFDC, "struct FeTable FeLoadChar2Menu")
del_items(0x80118EDC)
SetType(0x80118EDC, "int fadeval")
del_items(0x800AAFF8)
SetType(0x800AAFF8, "struct FeMenuTable FeMainMenuTable[5]")
del_items(0x800AB070)
SetType(0x800AB070, "struct FeMenuTable FeNewGameMenuTable[3]")
del_items(0x800AB0B8)
SetType(0x800AB0B8, "struct FeMenuTable FePlayerClassMenuTable[5]")
del_items(0x800AB130)
SetType(0x800AB130, "struct FeMenuTable FeNameEngMenuTable[71]")
del_items(0x800AB7D8)
SetType(0x800AB7D8, "struct FeMenuTable FeMemcardMenuTable[3]")
del_items(0x800AB820)
SetType(0x800AB820, "struct FeMenuTable FeDifficultyMenuTable[4]")
del_items(0x800AB880)
SetType(0x800AB880, "struct FeMenuTable FeBackgroundMenuTable[4]")
del_items(0x800AB8E0)
SetType(0x800AB8E0, "struct FeMenuTable FeBook1MenuTable[5]")
del_items(0x800AB958)
SetType(0x800AB958, "struct FeMenuTable FeBook2MenuTable[5]")
del_items(0x80118EE8)
SetType(0x80118EE8, "unsigned long AttractTitleDelay")
del_items(0x80118EEC)
SetType(0x80118EEC, "unsigned long AttractMainDelay")
del_items(0x80118EF0)
SetType(0x80118EF0, "int FMVEndPad")
del_items(0x80118F68)
SetType(0x80118F68, "int InCredits")
del_items(0x80118F6C)
SetType(0x80118F6C, "int CreditTitleNo")
del_items(0x80118F70)
SetType(0x80118F70, "int CreditSubTitleNo")
del_items(0x80118F84)
SetType(0x80118F84, "int card_status[2]")
del_items(0x80118F8C)
SetType(0x80118F8C, "int card_usable[2]")
del_items(0x80118F94)
SetType(0x80118F94, "int card_files[2]")
del_items(0x80118F9C)
SetType(0x80118F9C, "int card_changed[2]")
del_items(0x80118FDC)
SetType(0x80118FDC, "int AlertTxt")
del_items(0x80118FE0)
SetType(0x80118FE0, "int current_card")
del_items(0x80118FE4)
SetType(0x80118FE4, "int LoadType")
del_items(0x80118FE8)
SetType(0x80118FE8, "int McMenuPos")
del_items(0x80118FEC)
SetType(0x80118FEC, "struct FeTable *McCurMenu")
del_items(0x80118FD8)
SetType(0x80118FD8, "bool fileinfoflag")
del_items(0x80118FB0)
SetType(0x80118FB0, "char *DiabloGameFile")
del_items(0x80118FD0)
SetType(0x80118FD0, "char *McState_addr_80118FD0[2]")
del_items(0x801190C0)
SetType(0x801190C0, "int mdec_audio_buffer[2]")
del_items(0x801190C8)
SetType(0x801190C8, "int mdec_audio_sec")
del_items(0x801190CC)
SetType(0x801190CC, "int mdec_audio_offs")
del_items(0x801190D0)
SetType(0x801190D0, "int mdec_audio_playing")
del_items(0x801190D4)
SetType(0x801190D4, "int mdec_audio_rate_shift")
del_items(0x801190D8)
SetType(0x801190D8, "char *vlcbuf[2]")
del_items(0x801190E0)
SetType(0x801190E0, "int slice_size")
del_items(0x801190E4)
SetType(0x801190E4, "struct RECT slice")
del_items(0x801190EC)
SetType(0x801190EC, "int slice_inc")
del_items(0x801190F0)
SetType(0x801190F0, "int area_pw")
del_items(0x801190F4)
SetType(0x801190F4, "int area_ph")
del_items(0x801190F8)
SetType(0x801190F8, "char tmdc_pol_dirty[2]")
del_items(0x801190FC)
SetType(0x801190FC, "int num_pol[2]")
del_items(0x80119104)
SetType(0x80119104, "int mdec_cx")
del_items(0x80119108)
SetType(0x80119108, "int mdec_cy")
del_items(0x8011910C)
SetType(0x8011910C, "int mdec_w")
del_items(0x80119110)
SetType(0x80119110, "int mdec_h")
del_items(0x80119114)
SetType(0x80119114, "int mdec_pw[2]")
del_items(0x8011911C)
SetType(0x8011911C, "int mdec_ph[2]")
del_items(0x80119124)
SetType(0x80119124, "int move_x")
del_items(0x80119128)
SetType(0x80119128, "int move_y")
del_items(0x8011912C)
SetType(0x8011912C, "int move_scale")
del_items(0x80119130)
SetType(0x80119130, "int stream_frames")
del_items(0x80119134)
SetType(0x80119134, "int last_stream_frame")
del_items(0x80119138)
SetType(0x80119138, "int mdec_framecount")
del_items(0x8011913C)
SetType(0x8011913C, "int mdec_speed")
del_items(0x80119140)
SetType(0x80119140, "int mdec_stream_starting")
del_items(0x80119144)
SetType(0x80119144, "int mdec_last_frame")
del_items(0x80119148)
SetType(0x80119148, "int mdec_sectors_per_frame")
del_items(0x8011914C)
SetType(0x8011914C, "unsigned short *vlctab")
del_items(0x80119150)
SetType(0x80119150, "unsigned char *mdc_buftop")
del_items(0x80119154)
SetType(0x80119154, "unsigned char *mdc_bufstart")
del_items(0x80119158)
SetType(0x80119158, "int mdc_bufleft")
del_items(0x8011915C)
SetType(0x8011915C, "int mdc_buftotal")
del_items(0x80119160)
SetType(0x80119160, "int ordertab_length")
del_items(0x80119164)
SetType(0x80119164, "int time_in_frames")
del_items(0x80119168)
SetType(0x80119168, "int stream_chunksize")
del_items(0x8011916C)
SetType(0x8011916C, "int stream_bufsize")
del_items(0x80119170)
SetType(0x80119170, "int stream_subsec")
del_items(0x80119174)
SetType(0x80119174, "int stream_secnum")
del_items(0x80119178)
SetType(0x80119178, "int stream_last_sector")
del_items(0x8011917C)
SetType(0x8011917C, "int stream_startsec")
del_items(0x80119180)
SetType(0x80119180, "int stream_opened")
del_items(0x80119184)
SetType(0x80119184, "int stream_last_chunk")
del_items(0x80119188)
SetType(0x80119188, "int stream_got_chunks")
del_items(0x8011918C)
SetType(0x8011918C, "int last_sector")
del_items(0x80119190)
SetType(0x80119190, "int cdstream_resetsec")
del_items(0x80119194)
SetType(0x80119194, "int last_handler_event")
del_items(0x80119064)
SetType(0x80119064, "bool user_start")
del_items(0x80118FFC)
SetType(0x80118FFC, "unsigned char *vlc_tab")
del_items(0x80119000)
SetType(0x80119000, "unsigned char *vlc_buf")
del_items(0x80119004)
SetType(0x80119004, "unsigned char *img_buf")
del_items(0x80119008)
SetType(0x80119008, "int vbuf")
del_items(0x8011900C)
SetType(0x8011900C, "int last_fn")
del_items(0x80119010)
SetType(0x80119010, "int last_mdc")
del_items(0x80119014)
SetType(0x80119014, "int slnum")
del_items(0x80119018)
SetType(0x80119018, "int slices_to_do")
del_items(0x8011901C)
SetType(0x8011901C, "int mbuf")
del_items(0x80119020)
SetType(0x80119020, "int mfn")
del_items(0x80119024)
SetType(0x80119024, "int last_move_mbuf")
del_items(0x80119028)
SetType(0x80119028, "int move_request")
del_items(0x8011902C)
SetType(0x8011902C, "int mdec_scale")
del_items(0x80119030)
SetType(0x80119030, "int do_brightness")
del_items(0x80119034)
SetType(0x80119034, "int frame_decoded")
del_items(0x80119038)
SetType(0x80119038, "int mdec_streaming")
del_items(0x8011903C)
SetType(0x8011903C, "int mdec_stream_size")
del_items(0x80119040)
SetType(0x80119040, "int first_stream_frame")
del_items(0x80119044)
SetType(0x80119044, "int stream_frames_played")
del_items(0x80119048)
SetType(0x80119048, "int num_mdcs")
del_items(0x8011904C)
SetType(0x8011904C, "int mdec_head")
del_items(0x80119050)
SetType(0x80119050, "int mdec_tail")
del_items(0x80119054)
SetType(0x80119054, "int mdec_waiting_tail")
del_items(0x80119058)
SetType(0x80119058, "int mdecs_queued")
del_items(0x8011905C)
SetType(0x8011905C, "int mdecs_waiting")
del_items(0x80119060)
SetType(0x80119060, "int sfx_volume")
del_items(0x80119068)
SetType(0x80119068, "int stream_chunks_in")
del_items(0x8011906C)
SetType(0x8011906C, "int stream_chunks_total")
del_items(0x80119070)
SetType(0x80119070, "int stream_in")
del_items(0x80119074)
SetType(0x80119074, "int stream_out")
del_items(0x80119078)
SetType(0x80119078, "int stream_stalled")
del_items(0x8011907C)
SetType(0x8011907C, "int stream_ending")
del_items(0x80119080)
SetType(0x80119080, "int stream_open")
del_items(0x80119084)
SetType(0x80119084, "int stream_handler_installed")
del_items(0x80119088)
SetType(0x80119088, "int stream_chunks_borrowed")
del_items(0x8011908C)
SetType(0x8011908C, "int _get_count")
del_items(0x80119090)
SetType(0x80119090, "int _discard_count")
del_items(0x80119094)
SetType(0x80119094, "struct TASK *CDTask")
del_items(0x80119098)
SetType(0x80119098, "struct cdstreamstruct *CDStream")
del_items(0x8011909C)
SetType(0x8011909C, "int cdready_calls")
del_items(0x801190A0)
SetType(0x801190A0, "int cdready_errors")
del_items(0x801190A4)
SetType(0x801190A4, "int cdready_out_of_sync")
del_items(0x801190A8)
SetType(0x801190A8, "int cdstream_resetting")
del_items(0x801190AC)
SetType(0x801190AC, "int sector_dma")
del_items(0x801190B0)
SetType(0x801190B0, "int sector_dma_in")
del_items(0x801190B4)
SetType(0x801190B4, "unsigned long *chkaddr")
del_items(0x801190B8)
SetType(0x801190B8, "struct chunkhdrstruct *chunk")
del_items(0x801190BC)
SetType(0x801190BC, "int first_handler_event")
del_items(0x80119234)
SetType(0x80119234, "unsigned char *pStatusPanel")
del_items(0x80119238)
SetType(0x80119238, "unsigned char *pGBoxBuff")
del_items(0x8011923C)
SetType(0x8011923C, "unsigned char dropGoldFlag")
del_items(0x80119240)
SetType(0x80119240, "unsigned char _pinfoflag[2]")
del_items(0x800AC748)
SetType(0x800AC748, "char _infostr[256][2]")
del_items(0x80119244)
SetType(0x80119244, "char _infoclr[2]")
del_items(0x800AC948)
SetType(0x800AC948, "char tempstr[256]")
del_items(0x80119246)
SetType(0x80119246, "unsigned char drawhpflag")
del_items(0x80119247)
SetType(0x80119247, "unsigned char drawmanaflag")
del_items(0x80119248)
SetType(0x80119248, "unsigned char chrflag")
del_items(0x80119249)
SetType(0x80119249, "unsigned char drawbtnflag")
del_items(0x8011924A)
SetType(0x8011924A, "unsigned char panbtndown")
del_items(0x8011924B)
SetType(0x8011924B, "unsigned char panelflag")
del_items(0x8011924C)
SetType(0x8011924C, "unsigned char chrbtndown")
del_items(0x8011924D)
SetType(0x8011924D, "unsigned char lvlbtndown")
del_items(0x8011924E)
SetType(0x8011924E, "unsigned char sbookflag")
del_items(0x8011924F)
SetType(0x8011924F, "unsigned char talkflag")
del_items(0x80119250)
SetType(0x80119250, "int dropGoldValue")
del_items(0x80119254)
SetType(0x80119254, "int initialDropGoldValue")
del_items(0x80119258)
SetType(0x80119258, "int initialDropGoldIndex")
del_items(0x8011925C)
SetType(0x8011925C, "unsigned char *pPanelButtons")
del_items(0x80119260)
SetType(0x80119260, "unsigned char *pPanelText")
del_items(0x80119264)
SetType(0x80119264, "unsigned char *pManaBuff")
del_items(0x80119268)
SetType(0x80119268, "unsigned char *pLifeBuff")
del_items(0x8011926C)
SetType(0x8011926C, "unsigned char *pChrPanel")
del_items(0x80119270)
SetType(0x80119270, "unsigned char *pChrButtons")
del_items(0x80119274)
SetType(0x80119274, "unsigned char *pSpellCels")
del_items(0x8011AAC8)
SetType(0x8011AAC8, "char _panelstr[64][8][2]")
del_items(0x8011AEC8)
SetType(0x8011AEC8, "int _pstrjust[8][2]")
del_items(0x8011A124)
SetType(0x8011A124, "int _pnumlines[2]")
del_items(0x80119278)
SetType(0x80119278, "struct RECT *InfoBoxRect")
del_items(0x8011927C)
SetType(0x8011927C, "struct RECT CSRect")
del_items(0x8011A134)
SetType(0x8011A134, "int _pSpell[2]")
del_items(0x8011A13C)
SetType(0x8011A13C, "int _pSplType[2]")
del_items(0x8011A144)
SetType(0x8011A144, "unsigned char panbtn[8]")
del_items(0x80119284)
SetType(0x80119284, "int numpanbtns")
del_items(0x80119288)
SetType(0x80119288, "unsigned char *pDurIcons")
del_items(0x8011928C)
SetType(0x8011928C, "unsigned char drawdurflag")
del_items(0x8011A14C)
SetType(0x8011A14C, "unsigned char chrbtn[4]")
del_items(0x8011928D)
SetType(0x8011928D, "unsigned char chrbtnactive")
del_items(0x80119290)
SetType(0x80119290, "unsigned char *pSpellBkCel")
del_items(0x80119294)
SetType(0x80119294, "unsigned char *pSBkBtnCel")
del_items(0x80119298)
SetType(0x80119298, "unsigned char *pSBkIconCels")
del_items(0x8011929C)
SetType(0x8011929C, "int sbooktab")
del_items(0x801192A0)
SetType(0x801192A0, "int cur_spel")
del_items(0x8011A150)
SetType(0x8011A150, "long talkofs")
del_items(0x8011AF18)
SetType(0x8011AF18, "char sgszTalkMsg[80]")
del_items(0x8011A154)
SetType(0x8011A154, "unsigned char sgbTalkSavePos")
del_items(0x8011A155)
SetType(0x8011A155, "unsigned char sgbNextTalkSave")
del_items(0x8011A156)
SetType(0x8011A156, "unsigned char sgbPlrTalkTbl[2]")
del_items(0x8011A158)
SetType(0x8011A158, "unsigned char *pTalkPanel")
del_items(0x8011A15C)
SetType(0x8011A15C, "unsigned char *pMultiBtns")
del_items(0x8011A160)
SetType(0x8011A160, "unsigned char *pTalkBtns")
del_items(0x8011A164)
SetType(0x8011A164, "unsigned char talkbtndown[3]")
del_items(0x8010F00C)
SetType(0x8010F00C, "unsigned char gbFontTransTbl[256]")
del_items(0x8010EF4C)
SetType(0x8010EF4C, "unsigned char fontkern[68]")
del_items(0x800AC17C)
SetType(0x800AC17C, "char SpellITbl[37]")
del_items(0x801191A1)
SetType(0x801191A1, "unsigned char DrawLevelUpFlag")
del_items(0x801191C8)
SetType(0x801191C8, "struct TASK *_spselflag[2]")
del_items(0x801191C4)
SetType(0x801191C4, "unsigned char spspelstate")
del_items(0x80119204)
SetType(0x80119204, "bool initchr")
del_items(0x801191A4)
SetType(0x801191A4, "int SPLICONNO")
del_items(0x801191A8)
SetType(0x801191A8, "int SPLICONY")
del_items(0x8011A12C)
SetType(0x8011A12C, "int SPLICONRIGHT")
del_items(0x801191AC)
SetType(0x801191AC, "int scx")
del_items(0x801191B0)
SetType(0x801191B0, "int scy")
del_items(0x801191B4)
SetType(0x801191B4, "int scx1")
del_items(0x801191B8)
SetType(0x801191B8, "int scy1")
del_items(0x801191BC)
SetType(0x801191BC, "int scx2")
del_items(0x801191C0)
SetType(0x801191C0, "int scy2")
del_items(0x801191D0)
SetType(0x801191D0, "char SpellCol")
del_items(0x800AC168)
SetType(0x800AC168, "unsigned char SpellColors[18]")
del_items(0x800AC1A4)
SetType(0x800AC1A4, "int PanBtnPos[5][8]")
del_items(0x800AC244)
SetType(0x800AC244, "char *PanBtnHotKey[8]")
del_items(0x800AC264)
SetType(0x800AC264, "unsigned long PanBtnStr[8]")
del_items(0x800AC284)
SetType(0x800AC284, "int SpellPages[5][5]")
del_items(0x801191F4)
SetType(0x801191F4, "int lus")
del_items(0x801191F8)
SetType(0x801191F8, "int CsNo")
del_items(0x801191FC)
SetType(0x801191FC, "char plusanim")
del_items(0x8011AF08)
SetType(0x8011AF08, "struct Dialog CSBack")
del_items(0x80119200)
SetType(0x80119200, "int CS_XOFF")
del_items(0x800AC2E8)
SetType(0x800AC2E8, "struct CSDATA CS_Tab[28]")
del_items(0x80119208)
SetType(0x80119208, "int NoCSEntries")
del_items(0x8011920C)
SetType(0x8011920C, "int SPALOFF")
del_items(0x80119210)
SetType(0x80119210, "int paloffset1")
del_items(0x80119214)
SetType(0x80119214, "int paloffset2")
del_items(0x80119218)
SetType(0x80119218, "int paloffset3")
del_items(0x8011921C)
SetType(0x8011921C, "int paloffset4")
del_items(0x80119220)
SetType(0x80119220, "int pinc1")
del_items(0x80119224)
SetType(0x80119224, "int pinc2")
del_items(0x80119228)
SetType(0x80119228, "int pinc3")
del_items(0x8011922C)
SetType(0x8011922C, "int pinc4")
del_items(0x801192B4)
SetType(0x801192B4, "int _pcurs[2]")
del_items(0x801192BC)
SetType(0x801192BC, "int cursW")
del_items(0x801192C0)
SetType(0x801192C0, "int cursH")
del_items(0x801192C4)
SetType(0x801192C4, "int icursW")
del_items(0x801192C8)
SetType(0x801192C8, "int icursH")
del_items(0x801192CC)
SetType(0x801192CC, "int icursW28")
del_items(0x801192D0)
SetType(0x801192D0, "int icursH28")
del_items(0x801192D4)
SetType(0x801192D4, "int cursmx")
del_items(0x801192D8)
SetType(0x801192D8, "int cursmy")
del_items(0x801192DC)
SetType(0x801192DC, "int _pcursmonst[2]")
del_items(0x801192E4)
SetType(0x801192E4, "char _pcursobj[2]")
del_items(0x801192E8)
SetType(0x801192E8, "char _pcursitem[2]")
del_items(0x801192EC)
SetType(0x801192EC, "char _pcursinvitem[2]")
del_items(0x801192F0)
SetType(0x801192F0, "char _pcursplr[2]")
del_items(0x801192B0)
SetType(0x801192B0, "int sel_data")
del_items(0x800ACA48)
SetType(0x800ACA48, "struct DeadStruct dead[31]")
del_items(0x801192F4)
SetType(0x801192F4, "int spurtndx")
del_items(0x801192F8)
SetType(0x801192F8, "int stonendx")
del_items(0x801192FC)
SetType(0x801192FC, "unsigned char *pSquareCel")
del_items(0x8011933C)
SetType(0x8011933C, "unsigned long ghInst")
del_items(0x80119340)
SetType(0x80119340, "unsigned char svgamode")
del_items(0x80119344)
SetType(0x80119344, "int MouseX")
del_items(0x80119348)
SetType(0x80119348, "int MouseY")
del_items(0x8011934C)
SetType(0x8011934C, "long gv1")
del_items(0x80119350)
SetType(0x80119350, "long gv2")
del_items(0x80119354)
SetType(0x80119354, "long gv3")
del_items(0x80119358)
SetType(0x80119358, "long gv4")
del_items(0x8011935C)
SetType(0x8011935C, "long gv5")
del_items(0x80119360)
SetType(0x80119360, "unsigned char gbProcessPlayers")
del_items(0x800ACBBC)
SetType(0x800ACBBC, "int DebugMonsters[10]")
del_items(0x800ACBE4)
SetType(0x800ACBE4, "unsigned long glSeedTbl[17]")
del_items(0x800ACC28)
SetType(0x800ACC28, "int gnLevelTypeTbl[17]")
del_items(0x80119361)
SetType(0x80119361, "unsigned char gbDoEnding")
del_items(0x80119362)
SetType(0x80119362, "unsigned char gbRunGame")
del_items(0x80119363)
SetType(0x80119363, "unsigned char gbRunGameResult")
del_items(0x80119364)
SetType(0x80119364, "unsigned char gbGameLoopStartup")
del_items(0x8011AF68)
SetType(0x8011AF68, "int glEndSeed[17]")
del_items(0x8011AFB8)
SetType(0x8011AFB8, "int glMid1Seed[17]")
del_items(0x8011B008)
SetType(0x8011B008, "int glMid2Seed[17]")
del_items(0x8011B058)
SetType(0x8011B058, "int glMid3Seed[17]")
del_items(0x8011A168)
SetType(0x8011A168, "long *sg_previousFilter")
del_items(0x800ACC6C)
SetType(0x800ACC6C, "int CreateEnv[12]")
del_items(0x80119368)
SetType(0x80119368, "int Passedlvldir")
del_items(0x8011936C)
SetType(0x8011936C, "unsigned char *TempStack")
del_items(0x8011930C)
SetType(0x8011930C, "unsigned long ghMainWnd")
del_items(0x80119310)
SetType(0x80119310, "unsigned char fullscreen")
del_items(0x80119314)
SetType(0x80119314, "int force_redraw")
del_items(0x80119328)
SetType(0x80119328, "unsigned char PauseMode")
del_items(0x80119329)
SetType(0x80119329, "unsigned char FriendlyMode")
del_items(0x80119319)
SetType(0x80119319, "unsigned char visiondebug")
del_items(0x8011931B)
SetType(0x8011931B, "unsigned char light4flag")
del_items(0x8011931C)
SetType(0x8011931C, "unsigned char leveldebug")
del_items(0x8011931D)
SetType(0x8011931D, "unsigned char monstdebug")
del_items(0x80119324)
SetType(0x80119324, "int debugmonsttypes")
del_items(0x80119318)
SetType(0x80119318, "unsigned char cineflag")
del_items(0x8011931A)
SetType(0x8011931A, "unsigned char scrollflag")
del_items(0x8011931E)
SetType(0x8011931E, "unsigned char trigdebug")
del_items(0x80119320)
SetType(0x80119320, "int setseed")
del_items(0x8011932C)
SetType(0x8011932C, "int sgnTimeoutCurs")
del_items(0x80119330)
SetType(0x80119330, "unsigned char sgbMouseDown")
del_items(0x800AD338)
SetType(0x800AD338, "struct TownerStruct towner[16]")
del_items(0x80119384)
SetType(0x80119384, "int numtowners")
del_items(0x80119388)
SetType(0x80119388, "unsigned char storeflag")
del_items(0x80119389)
SetType(0x80119389, "unsigned char boyloadflag")
del_items(0x8011938A)
SetType(0x8011938A, "unsigned char bannerflag")
del_items(0x8011938C)
SetType(0x8011938C, "unsigned char *pCowCels")
del_items(0x8011A16C)
SetType(0x8011A16C, "unsigned long sgdwCowClicks")
del_items(0x8011A170)
SetType(0x8011A170, "int sgnCowMsg")
del_items(0x800AD078)
SetType(0x800AD078, "int Qtalklist[16][11]")
del_items(0x8011937C)
SetType(0x8011937C, "unsigned long CowPlaying")
del_items(0x800ACC9C)
SetType(0x800ACC9C, "char AnimOrder[148][6]")
del_items(0x800AD014)
SetType(0x800AD014, "int TownCowX[3]")
del_items(0x800AD020)
SetType(0x800AD020, "int TownCowY[3]")
del_items(0x800AD02C)
SetType(0x800AD02C, "int TownCowDir[3]")
del_items(0x800AD038)
SetType(0x800AD038, "int cowoffx[8]")
del_items(0x800AD058)
SetType(0x800AD058, "int cowoffy[8]")
del_items(0x801193A4)
SetType(0x801193A4, "int sfxdelay")
del_items(0x801193A8)
SetType(0x801193A8, "int sfxdnum")
del_items(0x8011939C)
SetType(0x8011939C, "struct SFXHDR *sghStream")
del_items(0x800AE138)
SetType(0x800AE138, "struct TSFX sgSFX[980]")
del_items(0x801193A0)
SetType(0x801193A0, "struct TSFX *sgpStreamSFX")
del_items(0x801193AC)
SetType(0x801193AC, "long orgseed")
del_items(0x8011A174)
SetType(0x8011A174, "long sglGameSeed")
del_items(0x801193B0)
SetType(0x801193B0, "int SeedCount")
del_items(0x8011A178)
SetType(0x8011A178, "struct CCritSect sgMemCrit")
del_items(0x8011A17C)
SetType(0x8011A17C, "int sgnWidth")
del_items(0x801193BE)
SetType(0x801193BE, "char msgflag")
del_items(0x801193BF)
SetType(0x801193BF, "char msgdelay")
del_items(0x800AF138)
SetType(0x800AF138, "char msgtable[80]")
del_items(0x800AF088)
SetType(0x800AF088, "int MsgStrings[44]")
del_items(0x801193BD)
SetType(0x801193BD, "char msgcnt")
del_items(0x8011A180)
SetType(0x8011A180, "unsigned long sgdwProgress")
del_items(0x8011A184)
SetType(0x8011A184, "unsigned long sgdwXY")
del_items(0x800AF188)
SetType(0x800AF188, "unsigned char AllItemsUseable[157]")
del_items(0x8010F444)
SetType(0x8010F444, "struct ItemDataStruct AllItemsList[157]")
del_items(0x801107E4)
SetType(0x801107E4, "struct PLStruct PL_Prefix[84]")
del_items(0x80111504)
SetType(0x80111504, "struct PLStruct PL_Suffix[96]")
del_items(0x80112404)
SetType(0x80112404, "struct UItemStruct UniqueItemList[91]")
del_items(0x800AF39C)
SetType(0x800AF39C, "struct ItemStruct item[128]")
del_items(0x800B3F9C)
SetType(0x800B3F9C, "char itemactive[127]")
del_items(0x800B401C)
SetType(0x800B401C, "char itemavail[127]")
del_items(0x800B409C)
SetType(0x800B409C, "unsigned char UniqueItemFlag[128]")
del_items(0x801193F8)
SetType(0x801193F8, "unsigned char uitemflag")
del_items(0x8011A188)
SetType(0x8011A188, "int tem")
del_items(0x8011B0A0)
SetType(0x8011B0A0, "struct ItemStruct curruitem")
del_items(0x8011B140)
SetType(0x8011B140, "unsigned char itemhold[3][3]")
del_items(0x801193FC)
SetType(0x801193FC, "int ScrollType")
del_items(0x800B411C)
SetType(0x800B411C, "char ItemStr[64]")
del_items(0x800B415C)
SetType(0x800B415C, "char SufStr[64]")
del_items(0x801193D8)
SetType(0x801193D8, "long numitems")
del_items(0x801193DC)
SetType(0x801193DC, "int gnNumGetRecords")
del_items(0x800AF2F8)
SetType(0x800AF2F8, "int ItemInvSnds[35]")
del_items(0x800AF228)
SetType(0x800AF228, "unsigned char ItemCAnimTbl[169]")
del_items(0x80114248)
SetType(0x80114248, "short Item2Frm[35]")
del_items(0x800AF2D4)
SetType(0x800AF2D4, "unsigned char ItemAnimLs[35]")
del_items(0x801193E0)
SetType(0x801193E0, "int *ItemAnimSnds")
del_items(0x801193E4)
SetType(0x801193E4, "int idoppely")
del_items(0x801193E8)
SetType(0x801193E8, "int ScrollFlag")
del_items(0x800AF384)
SetType(0x800AF384, "int premiumlvladd[6]")
del_items(0x800B4F48)
SetType(0x800B4F48, "struct LightListStruct2 LightList[40]")
del_items(0x800B5088)
SetType(0x800B5088, "unsigned char lightactive[40]")
del_items(0x80119410)
SetType(0x80119410, "int numlights")
del_items(0x80119414)
SetType(0x80119414, "char lightmax")
del_items(0x800B50B0)
SetType(0x800B50B0, "struct LightListStruct VisionList[32]")
del_items(0x80119418)
SetType(0x80119418, "int numvision")
del_items(0x8011941C)
SetType(0x8011941C, "unsigned char dovision")
del_items(0x80119420)
SetType(0x80119420, "int visionid")
del_items(0x8011A18C)
SetType(0x8011A18C, "int disp_mask")
del_items(0x8011A190)
SetType(0x8011A190, "int weird")
del_items(0x8011A194)
SetType(0x8011A194, "int disp_tab_r")
del_items(0x8011A198)
SetType(0x8011A198, "int dispy_r")
del_items(0x8011A19C)
SetType(0x8011A19C, "int disp_tab_g")
del_items(0x8011A1A0)
SetType(0x8011A1A0, "int dispy_g")
del_items(0x8011A1A4)
SetType(0x8011A1A4, "int disp_tab_b")
del_items(0x8011A1A8)
SetType(0x8011A1A8, "int dispy_b")
del_items(0x8011A1AC)
SetType(0x8011A1AC, "int radius")
del_items(0x8011A1B0)
SetType(0x8011A1B0, "int bright")
del_items(0x8011B150)
SetType(0x8011B150, "unsigned char mult_tab[128]")
del_items(0x80119400)
SetType(0x80119400, "int lightflag")
del_items(0x800B4C5C)
SetType(0x800B4C5C, "unsigned char vCrawlTable[30][23]")
del_items(0x800B4F10)
SetType(0x800B4F10, "unsigned char RadiusAdj[23]")
del_items(0x800B419C)
SetType(0x800B419C, "char CrawlTable[2749]")
del_items(0x80119404)
SetType(0x80119404, "int restore_r")
del_items(0x80119408)
SetType(0x80119408, "int restore_g")
del_items(0x8011940C)
SetType(0x8011940C, "int restore_b")
del_items(0x800B4F28)
SetType(0x800B4F28, "char radius_tab[16]")
del_items(0x800B4F38)
SetType(0x800B4F38, "char bright_tab[16]")
del_items(0x80119441)
SetType(0x80119441, "unsigned char qtextflag")
del_items(0x80119444)
SetType(0x80119444, "int qtextSpd")
del_items(0x8011A1B4)
SetType(0x8011A1B4, "unsigned char *pMedTextCels")
del_items(0x8011A1B8)
SetType(0x8011A1B8, "unsigned char *pTextBoxCels")
del_items(0x8011A1BC)
SetType(0x8011A1BC, "char *qtextptr")
del_items(0x8011A1C0)
SetType(0x8011A1C0, "int qtexty")
del_items(0x8011A1C4)
SetType(0x8011A1C4, "unsigned long qtextDelay")
del_items(0x8011A1C8)
SetType(0x8011A1C8, "unsigned long sgLastScroll")
del_items(0x8011A1CC)
SetType(0x8011A1CC, "unsigned long scrolltexty")
del_items(0x8011A1D0)
SetType(0x8011A1D0, "long sglMusicVolumeSave")
del_items(0x80119430)
SetType(0x80119430, "bool qtbodge")
del_items(0x800B5270)
SetType(0x800B5270, "struct Dialog QBack")
del_items(0x800B5280)
SetType(0x800B5280, "struct MissileData missiledata[68]")
del_items(0x800B59F0)
SetType(0x800B59F0, "struct MisFileData misfiledata[47]")
del_items(0x800B58E0)
SetType(0x800B58E0, "void (*MissPrintRoutines[68])()")
del_items(0x800B5ADC)
SetType(0x800B5ADC, "struct DLevel sgLevels[21]")
del_items(0x800C9828)
SetType(0x800C9828, "struct LocalLevel sgLocals[21]")
del_items(0x8011B1D0)
SetType(0x8011B1D0, "struct DJunk sgJunk")
del_items(0x8011A1D5)
SetType(0x8011A1D5, "unsigned char sgbRecvCmd")
del_items(0x8011A1D8)
SetType(0x8011A1D8, "unsigned long sgdwRecvOffset")
del_items(0x8011A1DC)
SetType(0x8011A1DC, "unsigned char sgbDeltaChunks")
del_items(0x8011A1DD)
SetType(0x8011A1DD, "unsigned char sgbDeltaChanged")
del_items(0x8011A1E0)
SetType(0x8011A1E0, "unsigned long sgdwOwnerWait")
del_items(0x8011A1E4)
SetType(0x8011A1E4, "struct TMegaPkt *sgpMegaPkt")
del_items(0x8011A1E8)
SetType(0x8011A1E8, "struct TMegaPkt *sgpCurrPkt")
del_items(0x8011A1EC)
SetType(0x8011A1EC, "int sgnCurrMegaPlayer")
del_items(0x8011945D)
SetType(0x8011945D, "unsigned char deltaload")
del_items(0x8011945E)
SetType(0x8011945E, "unsigned char gbBufferMsgs")
del_items(0x80119460)
SetType(0x80119460, "unsigned long dwRecCount")
del_items(0x80119464)
SetType(0x80119464, "bool LevelOut")
del_items(0x8011947A)
SetType(0x8011947A, "unsigned char gbMaxPlayers")
del_items(0x8011947B)
SetType(0x8011947B, "unsigned char gbActivePlayers")
del_items(0x8011947C)
SetType(0x8011947C, "unsigned char gbGameDestroyed")
del_items(0x8011947D)
SetType(0x8011947D, "unsigned char gbDeltaSender")
del_items(0x8011947E)
SetType(0x8011947E, "unsigned char gbSelectProvider")
del_items(0x8011947F)
SetType(0x8011947F, "unsigned char gbSomebodyWonGameKludge")
del_items(0x8011A1F0)
SetType(0x8011A1F0, "unsigned char sgbSentThisCycle")
del_items(0x8011A1F4)
SetType(0x8011A1F4, "unsigned long sgdwGameLoops")
del_items(0x8011A1F8)
SetType(0x8011A1F8, "unsigned short sgwPackPlrOffsetTbl[2]")
del_items(0x8011A1FC)
SetType(0x8011A1FC, "unsigned char sgbPlayerLeftGameTbl[2]")
del_items(0x8011A200)
SetType(0x8011A200, "unsigned long sgdwPlayerLeftReasonTbl[2]")
del_items(0x8011A208)
SetType(0x8011A208, "unsigned char sgbSendDeltaTbl[2]")
del_items(0x8011A210)
SetType(0x8011A210, "struct _gamedata sgGameInitInfo")
del_items(0x8011A218)
SetType(0x8011A218, "unsigned char sgbTimeout")
del_items(0x8011A21C)
SetType(0x8011A21C, "long sglTimeoutStart")
del_items(0x80119474)
SetType(0x80119474, "char gszVersionNumber[5]")
del_items(0x80119479)
SetType(0x80119479, "unsigned char sgbNetInited")
del_items(0x800CA890)
SetType(0x800CA890, "int ObjTypeConv[113]")
del_items(0x800CAA54)
SetType(0x800CAA54, "struct ObjDataStruct AllObjects[99]")
del_items(0x80114910)
SetType(0x80114910, "struct OBJ_LOAD_INFO ObjMasterLoadList[56]")
del_items(0x800CB234)
SetType(0x800CB234, "struct ObjectStruct object[127]")
del_items(0x801194A0)
SetType(0x801194A0, "long numobjects")
del_items(0x800CC808)
SetType(0x800CC808, "char objectactive[127]")
del_items(0x800CC888)
SetType(0x800CC888, "char objectavail[127]")
del_items(0x801194A4)
SetType(0x801194A4, "unsigned char InitObjFlag")
del_items(0x801194A8)
SetType(0x801194A8, "int trapid")
del_items(0x800CC908)
SetType(0x800CC908, "char ObjFileList[40]")
del_items(0x801194AC)
SetType(0x801194AC, "int trapdir")
del_items(0x801194B0)
SetType(0x801194B0, "int leverid")
del_items(0x80119498)
SetType(0x80119498, "int numobjfiles")
del_items(0x800CB14C)
SetType(0x800CB14C, "int bxadd[8]")
del_items(0x800CB16C)
SetType(0x800CB16C, "int byadd[8]")
del_items(0x800CB1F4)
SetType(0x800CB1F4, "char shrineavail[26]")
del_items(0x800CB18C)
SetType(0x800CB18C, "int shrinestrs[26]")
del_items(0x800CB210)
SetType(0x800CB210, "int StoryBookName[9]")
del_items(0x8011949C)
SetType(0x8011949C, "int myscale")
del_items(0x801194C4)
SetType(0x801194C4, "unsigned char gbValidSaveFile")
del_items(0x801194C0)
SetType(0x801194C0, "bool DoLoadedChar")
del_items(0x800CCB28)
SetType(0x800CCB28, "struct PlayerStruct plr[2]")
del_items(0x801194E4)
SetType(0x801194E4, "int myplr")
del_items(0x801194E8)
SetType(0x801194E8, "int deathdelay")
del_items(0x801194EC)
SetType(0x801194EC, "unsigned char deathflag")
del_items(0x801194ED)
SetType(0x801194ED, "char light_rad")
del_items(0x801194DC)
SetType(0x801194DC, "char light_level[5]")
del_items(0x800CCA20)
SetType(0x800CCA20, "int MaxStats[4][3]")
del_items(0x801194D4)
SetType(0x801194D4, "int PlrStructSize")
del_items(0x801194D8)
SetType(0x801194D8, "int ItemStructSize")
del_items(0x800CC930)
SetType(0x800CC930, "int plrxoff[9]")
del_items(0x800CC954)
SetType(0x800CC954, "int plryoff[9]")
del_items(0x800CC978)
SetType(0x800CC978, "int plrxoff2[9]")
del_items(0x800CC99C)
SetType(0x800CC99C, "int plryoff2[9]")
del_items(0x800CC9C0)
SetType(0x800CC9C0, "char PlrGFXAnimLens[11][3]")
del_items(0x800CC9E4)
SetType(0x800CC9E4, "int StrengthTbl[3]")
del_items(0x800CC9F0)
SetType(0x800CC9F0, "int MagicTbl[3]")
del_items(0x800CC9FC)
SetType(0x800CC9FC, "int DexterityTbl[3]")
del_items(0x800CCA08)
SetType(0x800CCA08, "int VitalityTbl[3]")
del_items(0x800CCA14)
SetType(0x800CCA14, "int ToBlkTbl[3]")
del_items(0x800CCA50)
SetType(0x800CCA50, "long ExpLvlsTbl[51]")
del_items(0x800D13B0)
SetType(0x800D13B0, "struct QuestStruct quests[16]")
del_items(0x8011952C)
SetType(0x8011952C, "unsigned char *pQLogCel")
del_items(0x80119530)
SetType(0x80119530, "int ReturnLvlX")
del_items(0x80119534)
SetType(0x80119534, "int ReturnLvlY")
del_items(0x80119538)
SetType(0x80119538, "int ReturnLvl")
del_items(0x8011953C)
SetType(0x8011953C, "int ReturnLvlT")
del_items(0x80119540)
SetType(0x80119540, "unsigned char rporttest")
del_items(0x80119544)
SetType(0x80119544, "int qline")
del_items(0x80119548)
SetType(0x80119548, "int numqlines")
del_items(0x8011954C)
SetType(0x8011954C, "int qtopline")
del_items(0x8011B1E8)
SetType(0x8011B1E8, "int qlist[16]")
del_items(0x8011A220)
SetType(0x8011A220, "struct RECT QSRect")
del_items(0x801194F9)
SetType(0x801194F9, "unsigned char questlog")
del_items(0x800D1278)
SetType(0x800D1278, "struct QuestData questlist[16]")
del_items(0x801194FC)
SetType(0x801194FC, "int ALLQUESTS")
del_items(0x800D138C)
SetType(0x800D138C, "int QuestGroup1[3]")
del_items(0x800D1398)
SetType(0x800D1398, "int QuestGroup2[3]")
del_items(0x800D13A4)
SetType(0x800D13A4, "int QuestGroup3[3]")
del_items(0x80119510)
SetType(0x80119510, "int QuestGroup4[2]")
del_items(0x80119528)
SetType(0x80119528, "bool WaterDone")
del_items(0x80119500)
SetType(0x80119500, "char questxoff[7]")
del_items(0x80119508)
SetType(0x80119508, "char questyoff[7]")
del_items(0x800D1378)
SetType(0x800D1378, "int questtrigstr[5]")
del_items(0x80119518)
SetType(0x80119518, "int QS_PX")
del_items(0x8011951C)
SetType(0x8011951C, "int QS_PY")
del_items(0x80119520)
SetType(0x80119520, "int QS_PW")
del_items(0x80119524)
SetType(0x80119524, "int QS_PH")
del_items(0x8011B228)
SetType(0x8011B228, "struct Dialog QSBack")
del_items(0x800D14F0)
SetType(0x800D14F0, "struct SpellData spelldata[37]")
del_items(0x80119587)
SetType(0x80119587, "char stextflag")
del_items(0x800D1D98)
SetType(0x800D1D98, "struct ItemStruct smithitem[20]")
del_items(0x800D2978)
SetType(0x800D2978, "struct ItemStruct premiumitem[6]")
del_items(0x80119588)
SetType(0x80119588, "int numpremium")
del_items(0x8011958C)
SetType(0x8011958C, "int premiumlevel")
del_items(0x800D2D08)
SetType(0x800D2D08, "struct ItemStruct witchitem[20]")
del_items(0x800D38E8)
SetType(0x800D38E8, "struct ItemStruct boyitem")
del_items(0x80119590)
SetType(0x80119590, "int boylevel")
del_items(0x800D3980)
SetType(0x800D3980, "struct ItemStruct golditem")
del_items(0x800D3A18)
SetType(0x800D3A18, "struct ItemStruct healitem[20]")
del_items(0x80119594)
SetType(0x80119594, "char stextsize")
del_items(0x80119595)
SetType(0x80119595, "unsigned char stextscrl")
del_items(0x8011A228)
SetType(0x8011A228, "int stextsel")
del_items(0x8011A22C)
SetType(0x8011A22C, "int stextlhold")
del_items(0x8011A230)
SetType(0x8011A230, "int stextshold")
del_items(0x8011A234)
SetType(0x8011A234, "int stextvhold")
del_items(0x8011A238)
SetType(0x8011A238, "int stextsval")
del_items(0x8011A23C)
SetType(0x8011A23C, "int stextsmax")
del_items(0x8011A240)
SetType(0x8011A240, "int stextup")
del_items(0x8011A244)
SetType(0x8011A244, "int stextdown")
del_items(0x8011A248)
SetType(0x8011A248, "char stextscrlubtn")
del_items(0x8011A249)
SetType(0x8011A249, "char stextscrldbtn")
del_items(0x8011A24A)
SetType(0x8011A24A, "char SItemListFlag")
del_items(0x8011B238)
SetType(0x8011B238, "struct STextStruct stext[24]")
del_items(0x800D45F8)
SetType(0x800D45F8, "struct ItemStruct storehold[48]")
del_items(0x800D6278)
SetType(0x800D6278, "char storehidx[48]")
del_items(0x8011A24C)
SetType(0x8011A24C, "int storenumh")
del_items(0x8011A250)
SetType(0x8011A250, "int gossipstart")
del_items(0x8011A254)
SetType(0x8011A254, "int gossipend")
del_items(0x8011A258)
SetType(0x8011A258, "struct RECT StoreBackRect")
del_items(0x8011A260)
SetType(0x8011A260, "int talker")
del_items(0x80119574)
SetType(0x80119574, "unsigned char *pSTextBoxCels")
del_items(0x80119578)
SetType(0x80119578, "unsigned char *pSTextSlidCels")
del_items(0x8011957C)
SetType(0x8011957C, "int *SStringY")
del_items(0x800D1C74)
SetType(0x800D1C74, "struct Dialog SBack")
del_items(0x800D1C84)
SetType(0x800D1C84, "int SStringYNorm[20]")
del_items(0x800D1CD4)
SetType(0x800D1CD4, "int SStringYBuy0[20]")
del_items(0x800D1D24)
SetType(0x800D1D24, "int SStringYBuy1[20]")
del_items(0x800D1D74)
SetType(0x800D1D74, "int talkname[9]")
del_items(0x80119586)
SetType(0x80119586, "unsigned char InStoreFlag")
del_items(0x80115B64)
SetType(0x80115B64, "struct TextDataStruct alltext[269]")
del_items(0x801195A4)
SetType(0x801195A4, "unsigned long gdwAllTextEntries")
del_items(0x8011A264)
SetType(0x8011A264, "unsigned char *P3Tiles")
del_items(0x801195B4)
SetType(0x801195B4, "int tile")
del_items(0x801195C4)
SetType(0x801195C4, "unsigned char _trigflag[2]")
del_items(0x800D64E0)
SetType(0x800D64E0, "struct TriggerStruct trigs[5]")
del_items(0x801195C8)
SetType(0x801195C8, "int numtrigs")
del_items(0x801195CC)
SetType(0x801195CC, "unsigned char townwarps[3]")
del_items(0x801195D0)
SetType(0x801195D0, "int TWarpFrom")
del_items(0x800D62A8)
SetType(0x800D62A8, "int TownDownList[11]")
del_items(0x800D62D4)
SetType(0x800D62D4, "int TownWarp1List[13]")
del_items(0x800D6308)
SetType(0x800D6308, "int L1UpList[12]")
del_items(0x800D6338)
SetType(0x800D6338, "int L1DownList[10]")
del_items(0x800D6360)
SetType(0x800D6360, "int L2UpList[3]")
del_items(0x800D636C)
SetType(0x800D636C, "int L2DownList[5]")
del_items(0x800D6380)
SetType(0x800D6380, "int L2TWarpUpList[3]")
del_items(0x800D638C)
SetType(0x800D638C, "int L3UpList[15]")
del_items(0x800D63C8)
SetType(0x800D63C8, "int L3DownList[9]")
del_items(0x800D63EC)
SetType(0x800D63EC, "int L3TWarpUpList[14]")
del_items(0x800D6424)
SetType(0x800D6424, "int L4UpList[4]")
del_items(0x800D6434)
SetType(0x800D6434, "int L4DownList[6]")
del_items(0x800D644C)
SetType(0x800D644C, "int L4TWarpUpList[4]")
del_items(0x800D645C)
SetType(0x800D645C, "int L4PentaList[33]")
del_items(0x801168F4)
SetType(0x801168F4, "char cursoff[10]")
del_items(0x801195EA)
SetType(0x801195EA, "unsigned char gbMusicOn")
del_items(0x801195EB)
SetType(0x801195EB, "unsigned char gbSoundOn")
del_items(0x801195E9)
SetType(0x801195E9, "unsigned char gbSndInited")
del_items(0x801195F0)
SetType(0x801195F0, "long sglMasterVolume")
del_items(0x801195F4)
SetType(0x801195F4, "long sglMusicVolume")
del_items(0x801195F8)
SetType(0x801195F8, "long sglSoundVolume")
del_items(0x801195FC)
SetType(0x801195FC, "long sglSpeechVolume")
del_items(0x80119600)
SetType(0x80119600, "int sgnMusicTrack")
del_items(0x801195EC)
SetType(0x801195EC, "unsigned char gbDupSounds")
del_items(0x80119604)
SetType(0x80119604, "struct SFXHDR *sghMusic")
del_items(0x801169A0)
SetType(0x801169A0, "unsigned short sgszMusicTracks[6]")
del_items(0x80119628)
SetType(0x80119628, "int _pcurr_inv[2]")
del_items(0x800D6530)
SetType(0x800D6530, "struct found_objects _pfind_list[10][2]")
del_items(0x80119630)
SetType(0x80119630, "char _pfind_index[2]")
del_items(0x80119634)
SetType(0x80119634, "char _pfindx[2]")
del_items(0x80119638)
SetType(0x80119638, "char _pfindy[2]")
del_items(0x8011963A)
SetType(0x8011963A, "unsigned char automapmoved")
del_items(0x8011961C)
SetType(0x8011961C, "unsigned char flyflag")
del_items(0x80119614)
SetType(0x80119614, "char (*pad_styles[2])()")
del_items(0x8011961D)
SetType(0x8011961D, "char speed_type")
del_items(0x8011961E)
SetType(0x8011961E, "char sel_speed")
del_items(0x8011A268)
SetType(0x8011A268, "unsigned long (*CurrentProc)()")
del_items(0x80116B3C)
SetType(0x80116B3C, "struct MESSAGE_STR AllMsgs[12]")
del_items(0x80119674)
SetType(0x80119674, "int NumOfStrings")
del_items(0x80119648)
SetType(0x80119648, "enum LANG_TYPE LanguageType")
del_items(0x8011964C)
SetType(0x8011964C, "long hndText")
del_items(0x80119650)
SetType(0x80119650, "char **TextPtr")
del_items(0x80119654)
SetType(0x80119654, "enum LANG_DB_NO LangDbNo")
del_items(0x80119684)
SetType(0x80119684, "struct TextDat *MissDat")
del_items(0x80119688)
SetType(0x80119688, "int CharFade")
del_items(0x8011968C)
SetType(0x8011968C, "int rotateness")
del_items(0x80119690)
SetType(0x80119690, "int spiralling_shape")
del_items(0x80119694)
SetType(0x80119694, "int down")
del_items(0x800D6580)
SetType(0x800D6580, "char MlTab[16]")
del_items(0x800D6590)
SetType(0x800D6590, "char QlTab[16]")
del_items(0x800D65A0)
SetType(0x800D65A0, "struct POLY_FT4 *(*ObjPrintFuncs[98])()")
del_items(0x801196B0)
SetType(0x801196B0, "int MyXoff1")
del_items(0x801196B4)
SetType(0x801196B4, "int MyYoff1")
del_items(0x801196B8)
SetType(0x801196B8, "int MyXoff2")
del_items(0x801196BC)
SetType(0x801196BC, "int MyYoff2")
del_items(0x801196CC)
SetType(0x801196CC, "bool iscflag")
del_items(0x801196D9)
SetType(0x801196D9, "unsigned char sgbFadedIn")
del_items(0x801196DA)
SetType(0x801196DA, "unsigned char screenbright")
del_items(0x801196DC)
SetType(0x801196DC, "int faderate")
del_items(0x801196E0)
SetType(0x801196E0, "bool fading")
del_items(0x801196EC)
SetType(0x801196EC, "unsigned char FadeCoords[8]")
del_items(0x801196E4)
SetType(0x801196E4, "int st")
del_items(0x801196E8)
SetType(0x801196E8, "int mode")
del_items(0x800D6728)
SetType(0x800D6728, "struct PortalStruct portal[2]")
del_items(0x8011971E)
SetType(0x8011971E, "char portalindex")
del_items(0x80119718)
SetType(0x80119718, "char WarpDropX[2]")
del_items(0x8011971C)
SetType(0x8011971C, "char WarpDropY[2]")
del_items(0x800D6740)
SetType(0x800D6740, "char MyVerString[120]")
del_items(0x80119890)
SetType(0x80119890, "int Year")
del_items(0x80119894)
SetType(0x80119894, "int Day")
del_items(0x8011A26C)
SetType(0x8011A26C, "unsigned char *tbuff")
del_items(0x800D67B8)
SetType(0x800D67B8, "unsigned char IconBuffer[768]")
del_items(0x8011A270)
SetType(0x8011A270, "unsigned char HR1")
del_items(0x8011A271)
SetType(0x8011A271, "unsigned char HR2")
del_items(0x8011A272)
SetType(0x8011A272, "unsigned char HR3")
del_items(0x8011A273)
SetType(0x8011A273, "unsigned char VR1")
del_items(0x8011A274)
SetType(0x8011A274, "unsigned char VR2")
del_items(0x8011A275)
SetType(0x8011A275, "unsigned char VR3")
del_items(0x80119904)
SetType(0x80119904, "struct NODE *pHallList")
del_items(0x80119908)
SetType(0x80119908, "int nRoomCnt")
del_items(0x8011990C)
SetType(0x8011990C, "int nSx1")
del_items(0x80119910)
SetType(0x80119910, "int nSy1")
del_items(0x80119914)
SetType(0x80119914, "int nSx2")
del_items(0x80119918)
SetType(0x80119918, "int nSy2")
del_items(0x801198BC)
SetType(0x801198BC, "int Area_Min")
del_items(0x801198C0)
SetType(0x801198C0, "int Room_Max")
del_items(0x801198C4)
SetType(0x801198C4, "int Room_Min")
del_items(0x801198C8)
SetType(0x801198C8, "unsigned char BIG3[6]")
del_items(0x801198D0)
SetType(0x801198D0, "unsigned char BIG4[6]")
del_items(0x801198D8)
SetType(0x801198D8, "unsigned char BIG6[6]")
del_items(0x801198E0)
SetType(0x801198E0, "unsigned char BIG7[6]")
del_items(0x801198E8)
SetType(0x801198E8, "unsigned char RUINS1[4]")
del_items(0x801198EC)
SetType(0x801198EC, "unsigned char RUINS2[4]")
del_items(0x801198F0)
SetType(0x801198F0, "unsigned char RUINS3[4]")
del_items(0x801198F4)
SetType(0x801198F4, "unsigned char RUINS4[4]")
del_items(0x801198F8)
SetType(0x801198F8, "unsigned char RUINS5[4]")
del_items(0x801198FC)
SetType(0x801198FC, "unsigned char RUINS6[4]")
del_items(0x80119900)
SetType(0x80119900, "unsigned char RUINS7[4]")
del_items(0x8011A278)
SetType(0x8011A278, "int abyssx")
del_items(0x8011A27C)
SetType(0x8011A27C, "unsigned char lavapool")
del_items(0x801199A4)
SetType(0x801199A4, "int lockoutcnt")
del_items(0x80119928)
SetType(0x80119928, "unsigned char L3TITE12[6]")
del_items(0x80119930)
SetType(0x80119930, "unsigned char L3TITE13[6]")
del_items(0x80119938)
SetType(0x80119938, "unsigned char L3CREV1[6]")
del_items(0x80119940)
SetType(0x80119940, "unsigned char L3CREV2[6]")
del_items(0x80119948)
SetType(0x80119948, "unsigned char L3CREV3[6]")
del_items(0x80119950)
SetType(0x80119950, "unsigned char L3CREV4[6]")
del_items(0x80119958)
SetType(0x80119958, "unsigned char L3CREV5[6]")
del_items(0x80119960)
SetType(0x80119960, "unsigned char L3CREV6[6]")
del_items(0x80119968)
SetType(0x80119968, "unsigned char L3CREV7[6]")
del_items(0x80119970)
SetType(0x80119970, "unsigned char L3CREV8[6]")
del_items(0x80119978)
SetType(0x80119978, "unsigned char L3CREV9[6]")
del_items(0x80119980)
SetType(0x80119980, "unsigned char L3CREV10[6]")
del_items(0x80119988)
SetType(0x80119988, "unsigned char L3CREV11[6]")
del_items(0x80119990)
SetType(0x80119990, "unsigned char L3XTRA1[4]")
del_items(0x80119994)
SetType(0x80119994, "unsigned char L3XTRA2[4]")
del_items(0x80119998)
SetType(0x80119998, "unsigned char L3XTRA3[4]")
del_items(0x8011999C)
SetType(0x8011999C, "unsigned char L3XTRA4[4]")
del_items(0x801199A0)
SetType(0x801199A0, "unsigned char L3XTRA5[4]")
del_items(0x801199A8)
SetType(0x801199A8, "int diabquad1x")
del_items(0x801199AC)
SetType(0x801199AC, "int diabquad2x")
del_items(0x801199B0)
SetType(0x801199B0, "int diabquad3x")
del_items(0x801199B4)
SetType(0x801199B4, "int diabquad4x")
del_items(0x801199B8)
SetType(0x801199B8, "int diabquad1y")
del_items(0x801199BC)
SetType(0x801199BC, "int diabquad2y")
del_items(0x801199C0)
SetType(0x801199C0, "int diabquad3y")
del_items(0x801199C4)
SetType(0x801199C4, "int diabquad4y")
del_items(0x801199C8)
SetType(0x801199C8, "int SP4x1")
del_items(0x801199CC)
SetType(0x801199CC, "int SP4y1")
del_items(0x801199D0)
SetType(0x801199D0, "int SP4x2")
del_items(0x801199D4)
SetType(0x801199D4, "int SP4y2")
del_items(0x801199D8)
SetType(0x801199D8, "int l4holdx")
del_items(0x801199DC)
SetType(0x801199DC, "int l4holdy")
del_items(0x8011A280)
SetType(0x8011A280, "unsigned char *lpSetPiece1")
del_items(0x8011A284)
SetType(0x8011A284, "unsigned char *lpSetPiece2")
del_items(0x8011A288)
SetType(0x8011A288, "unsigned char *lpSetPiece3")
del_items(0x8011A28C)
SetType(0x8011A28C, "unsigned char *lpSetPiece4")
del_items(0x801199EC)
SetType(0x801199EC, "unsigned char SkelKingTrans1[8]")
del_items(0x801199F4)
SetType(0x801199F4, "unsigned char SkelKingTrans2[8]")
del_items(0x800D6AB8)
SetType(0x800D6AB8, "unsigned char SkelKingTrans3[20]")
del_items(0x800D6ACC)
SetType(0x800D6ACC, "unsigned char SkelKingTrans4[28]")
del_items(0x800D6AE8)
SetType(0x800D6AE8, "unsigned char SkelChamTrans1[20]")
del_items(0x801199FC)
SetType(0x801199FC, "unsigned char SkelChamTrans2[8]")
del_items(0x800D6AFC)
SetType(0x800D6AFC, "unsigned char SkelChamTrans3[36]")
del_items(0x80119AE8)
SetType(0x80119AE8, "bool DoUiForChooseMonster")
del_items(0x800D6B20)
SetType(0x800D6B20, "char *MgToText[34]")
del_items(0x800D6BA8)
SetType(0x800D6BA8, "int StoryText[3][3]")
del_items(0x800D6BCC)
SetType(0x800D6BCC, "unsigned short dungeon[48][48]")
del_items(0x800D7DCC)
SetType(0x800D7DCC, "unsigned char pdungeon[40][40]")
del_items(0x800D840C)
SetType(0x800D840C, "unsigned char dflags[40][40]")
del_items(0x80119B0C)
SetType(0x80119B0C, "int setpc_x")
del_items(0x80119B10)
SetType(0x80119B10, "int setpc_y")
del_items(0x80119B14)
SetType(0x80119B14, "int setpc_w")
del_items(0x80119B18)
SetType(0x80119B18, "int setpc_h")
del_items(0x80119B1C)
SetType(0x80119B1C, "unsigned char setloadflag")
del_items(0x80119B20)
SetType(0x80119B20, "unsigned char *pMegaTiles")
del_items(0x800D8A4C)
SetType(0x800D8A4C, "unsigned char nBlockTable[2049]")
del_items(0x800D9250)
SetType(0x800D9250, "unsigned char nSolidTable[2049]")
del_items(0x800D9A54)
SetType(0x800D9A54, "unsigned char nTransTable[2049]")
del_items(0x800DA258)
SetType(0x800DA258, "unsigned char nMissileTable[2049]")
del_items(0x800DAA5C)
SetType(0x800DAA5C, "unsigned char nTrapTable[2049]")
del_items(0x80119B24)
SetType(0x80119B24, "int dminx")
del_items(0x80119B28)
SetType(0x80119B28, "int dminy")
del_items(0x80119B2C)
SetType(0x80119B2C, "int dmaxx")
del_items(0x80119B30)
SetType(0x80119B30, "int dmaxy")
del_items(0x80119B34)
SetType(0x80119B34, "int gnDifficulty")
del_items(0x80119B38)
SetType(0x80119B38, "unsigned char currlevel")
del_items(0x80119B39)
SetType(0x80119B39, "unsigned char leveltype")
del_items(0x80119B3A)
SetType(0x80119B3A, "unsigned char setlevel")
del_items(0x80119B3B)
SetType(0x80119B3B, "unsigned char setlvlnum")
del_items(0x80119B3C)
SetType(0x80119B3C, "unsigned char setlvltype")
del_items(0x80119B40)
SetType(0x80119B40, "int ViewX")
del_items(0x80119B44)
SetType(0x80119B44, "int ViewY")
del_items(0x80119B48)
SetType(0x80119B48, "int ViewDX")
del_items(0x80119B4C)
SetType(0x80119B4C, "int ViewDY")
del_items(0x80119B50)
SetType(0x80119B50, "int ViewBX")
del_items(0x80119B54)
SetType(0x80119B54, "int ViewBY")
del_items(0x800DB260)
SetType(0x800DB260, "struct ScrollStruct ScrollInfo")
del_items(0x80119B58)
SetType(0x80119B58, "int LvlViewX")
del_items(0x80119B5C)
SetType(0x80119B5C, "int LvlViewY")
del_items(0x80119B60)
SetType(0x80119B60, "int btmbx")
del_items(0x80119B64)
SetType(0x80119B64, "int btmby")
del_items(0x80119B68)
SetType(0x80119B68, "int btmdx")
del_items(0x80119B6C)
SetType(0x80119B6C, "int btmdy")
del_items(0x80119B70)
SetType(0x80119B70, "int MicroTileLen")
del_items(0x80119B74)
SetType(0x80119B74, "char TransVal")
del_items(0x800DB274)
SetType(0x800DB274, "bool TransList[8]")
del_items(0x80119B78)
SetType(0x80119B78, "int themeCount")
del_items(0x800DB294)
SetType(0x800DB294, "struct map_info dung_map[108][108]")
del_items(0x800FD554)
SetType(0x800FD554, "unsigned char dung_map_r[54][54]")
del_items(0x800FE0B8)
SetType(0x800FE0B8, "unsigned char dung_map_g[54][54]")
del_items(0x800FEC1C)
SetType(0x800FEC1C, "unsigned char dung_map_b[54][54]")
del_items(0x800FF780)
SetType(0x800FF780, "struct MINIXY MinisetXY[17]")
del_items(0x80119B04)
SetType(0x80119B04, "unsigned char *pSetPiece")
del_items(0x80119B08)
SetType(0x80119B08, "int DungSize")
del_items(0x800FF94C)
SetType(0x800FF94C, "struct ThemeStruct theme[50]")
del_items(0x80119BB8)
SetType(0x80119BB8, "int numthemes")
del_items(0x80119BBC)
SetType(0x80119BBC, "int zharlib")
del_items(0x80119BC0)
SetType(0x80119BC0, "unsigned char armorFlag")
del_items(0x80119BC1)
SetType(0x80119BC1, "unsigned char bCrossFlag")
del_items(0x80119BC2)
SetType(0x80119BC2, "unsigned char weaponFlag")
del_items(0x80119BC4)
SetType(0x80119BC4, "int themex")
del_items(0x80119BC8)
SetType(0x80119BC8, "int themey")
del_items(0x80119BCC)
SetType(0x80119BCC, "int themeVar1")
del_items(0x80119BD0)
SetType(0x80119BD0, "unsigned char bFountainFlag")
del_items(0x80119BD1)
SetType(0x80119BD1, "unsigned char cauldronFlag")
del_items(0x80119BD2)
SetType(0x80119BD2, "unsigned char mFountainFlag")
del_items(0x80119BD3)
SetType(0x80119BD3, "unsigned char pFountainFlag")
del_items(0x80119BD4)
SetType(0x80119BD4, "unsigned char tFountainFlag")
del_items(0x80119BD5)
SetType(0x80119BD5, "unsigned char treasureFlag")
del_items(0x80119BD8)
SetType(0x80119BD8, "unsigned char ThemeGoodIn[4]")
del_items(0x800FF82C)
SetType(0x800FF82C, "int ThemeGood[4]")
del_items(0x800FF83C)
SetType(0x800FF83C, "int trm5x[25]")
del_items(0x800FF8A0)
SetType(0x800FF8A0, "int trm5y[25]")
del_items(0x800FF904)
SetType(0x800FF904, "int trm3x[9]")
del_items(0x800FF928)
SetType(0x800FF928, "int trm3y[9]")
del_items(0x80119C90)
SetType(0x80119C90, "int nummissiles")
del_items(0x800FFB64)
SetType(0x800FFB64, "int missileactive[125]")
del_items(0x800FFD58)
SetType(0x800FFD58, "int missileavail[125]")
del_items(0x80119C94)
SetType(0x80119C94, "unsigned char MissilePreFlag")
del_items(0x800FFF4C)
SetType(0x800FFF4C, "struct MissileStruct missile[125]")
del_items(0x80119C95)
SetType(0x80119C95, "unsigned char ManashieldFlag")
del_items(0x80119C96)
SetType(0x80119C96, "unsigned char ManashieldFlag2")
del_items(0x800FFADC)
SetType(0x800FFADC, "int XDirAdd[8]")
del_items(0x800FFAFC)
SetType(0x800FFAFC, "int YDirAdd[8]")
del_items(0x80119C7D)
SetType(0x80119C7D, "unsigned char fadetor")
del_items(0x80119C7E)
SetType(0x80119C7E, "unsigned char fadetog")
del_items(0x80119C7F)
SetType(0x80119C7F, "unsigned char fadetob")
del_items(0x800FFB1C)
SetType(0x800FFB1C, "unsigned char ValueTable[16]")
del_items(0x800FFB2C)
SetType(0x800FFB2C, "unsigned char StringTable[9][6]")
del_items(0x801027FC)
SetType(0x801027FC, "struct MonsterStruct monster[200]")
del_items(0x80119CF4)
SetType(0x80119CF4, "long nummonsters")
del_items(0x80107F7C)
SetType(0x80107F7C, "short monstactive[200]")
del_items(0x8010810C)
SetType(0x8010810C, "short monstkills[200]")
del_items(0x8010829C)
SetType(0x8010829C, "struct CMonster Monsters[16]")
del_items(0x80119CF8)
SetType(0x80119CF8, "long monstimgtot")
del_items(0x80119CFC)
SetType(0x80119CFC, "char totalmonsters")
del_items(0x80119D00)
SetType(0x80119D00, "int uniquetrans")
del_items(0x8011A290)
SetType(0x8011A290, "unsigned char sgbSaveSoundOn")
del_items(0x80119CC8)
SetType(0x80119CC8, "char offset_x[8]")
del_items(0x80119CD0)
SetType(0x80119CD0, "char offset_y[8]")
del_items(0x80119CB0)
SetType(0x80119CB0, "char left[8]")
del_items(0x80119CB8)
SetType(0x80119CB8, "char right[8]")
del_items(0x80119CC0)
SetType(0x80119CC0, "char opposite[8]")
del_items(0x80119CA4)
SetType(0x80119CA4, "int nummtypes")
del_items(0x80119CA8)
SetType(0x80119CA8, "char animletter[7]")
del_items(0x8010265C)
SetType(0x8010265C, "int MWVel[3][24]")
del_items(0x80119CD8)
SetType(0x80119CD8, "char rnd5[4]")
del_items(0x80119CDC)
SetType(0x80119CDC, "char rnd10[4]")
del_items(0x80119CE0)
SetType(0x80119CE0, "char rnd20[4]")
del_items(0x80119CE4)
SetType(0x80119CE4, "char rnd60[4]")
del_items(0x8010277C)
SetType(0x8010277C, "void (*AiProc[32])()")
del_items(0x80108774)
SetType(0x80108774, "struct MonsterData monsterdata[112]")
del_items(0x8010A1B4)
SetType(0x8010A1B4, "char MonstConvTbl[128]")
del_items(0x8010A234)
SetType(0x8010A234, "char MonstAvailTbl[112]")
del_items(0x8010A2A4)
SetType(0x8010A2A4, "struct UniqMonstStruct UniqMonst[98]")
del_items(0x8010855C)
SetType(0x8010855C, "int TransPals[134]")
del_items(0x8010845C)
SetType(0x8010845C, "struct STONEPAL StonePals[32]")
del_items(0x80119D30)
SetType(0x80119D30, "unsigned char invflag")
del_items(0x80119D31)
SetType(0x80119D31, "unsigned char drawsbarflag")
del_items(0x80119D34)
SetType(0x80119D34, "int InvBackY")
del_items(0x80119D38)
SetType(0x80119D38, "int InvCursPos")
del_items(0x8010B24C)
SetType(0x8010B24C, "unsigned char InvSlotTable[73]")
del_items(0x80119D3C)
SetType(0x80119D3C, "int InvBackAY")
del_items(0x80119D40)
SetType(0x80119D40, "int InvSel")
del_items(0x80119D44)
SetType(0x80119D44, "int ItemW")
del_items(0x80119D48)
SetType(0x80119D48, "int ItemH")
del_items(0x80119D4C)
SetType(0x80119D4C, "int ItemNo")
del_items(0x80119D50)
SetType(0x80119D50, "struct RECT BRect")
del_items(0x80119D20)
SetType(0x80119D20, "struct TextDat *InvPanelTData")
del_items(0x80119D24)
SetType(0x80119D24, "struct TextDat *InvGfxTData")
del_items(0x80119D1C)
SetType(0x80119D1C, "int InvPageNo")
del_items(0x8010ABD4)
SetType(0x8010ABD4, "int AP2x2Tbl[10]")
del_items(0x8010ABFC)
SetType(0x8010ABFC, "struct InvXY InvRect[73]")
del_items(0x8010AE44)
SetType(0x8010AE44, "int InvGfxTable[168]")
del_items(0x8010B0E4)
SetType(0x8010B0E4, "unsigned char InvItemWidth[180]")
del_items(0x8010B198)
SetType(0x8010B198, "unsigned char InvItemHeight[180]")
del_items(0x80119D28)
SetType(0x80119D28, "bool InvOn")
del_items(0x80119D2C)
SetType(0x80119D2C, "unsigned long sgdwLastTime")
del_items(0x80119D7A)
SetType(0x80119D7A, "unsigned char automapflag")
del_items(0x8010B298)
SetType(0x8010B298, "unsigned char automapview[40][5]")
del_items(0x8010B360)
SetType(0x8010B360, "unsigned short automaptype[512]")
del_items(0x80119D7B)
SetType(0x80119D7B, "unsigned char AMLWallFlag")
del_items(0x80119D7C)
SetType(0x80119D7C, "unsigned char AMRWallFlag")
del_items(0x80119D7D)
SetType(0x80119D7D, "unsigned char AMLLWallFlag")
del_items(0x80119D7E)
SetType(0x80119D7E, "unsigned char AMLRWallFlag")
del_items(0x80119D7F)
SetType(0x80119D7F, "unsigned char AMDirtFlag")
del_items(0x80119D80)
SetType(0x80119D80, "unsigned char AMColumnFlag")
del_items(0x80119D81)
SetType(0x80119D81, "unsigned char AMStairFlag")
del_items(0x80119D82)
SetType(0x80119D82, "unsigned char AMLDoorFlag")
del_items(0x80119D83)
SetType(0x80119D83, "unsigned char AMLGrateFlag")
del_items(0x80119D84)
SetType(0x80119D84, "unsigned char AMLArchFlag")
del_items(0x80119D85)
SetType(0x80119D85, "unsigned char AMRDoorFlag")
del_items(0x80119D86)
SetType(0x80119D86, "unsigned char AMRGrateFlag")
del_items(0x80119D87)
SetType(0x80119D87, "unsigned char AMRArchFlag")
del_items(0x80119D88)
SetType(0x80119D88, "int AutoMapX")
del_items(0x80119D8C)
SetType(0x80119D8C, "int AutoMapY")
del_items(0x80119D90)
SetType(0x80119D90, "int AutoMapXOfs")
del_items(0x80119D94)
SetType(0x80119D94, "int AutoMapYOfs")
del_items(0x80119D98)
SetType(0x80119D98, "int AMPlayerX")
del_items(0x80119D9C)
SetType(0x80119D9C, "int AMPlayerY")
del_items(0x80119D64)
SetType(0x80119D64, "int AutoMapScale")
del_items(0x80119D68)
SetType(0x80119D68, "unsigned char AutoMapPlayerR")
del_items(0x80119D69)
SetType(0x80119D69, "unsigned char AutoMapPlayerG")
del_items(0x80119D6A)
SetType(0x80119D6A, "unsigned char AutoMapPlayerB")
del_items(0x80119D6B)
SetType(0x80119D6B, "unsigned char AutoMapWallR")
del_items(0x80119D6C)
SetType(0x80119D6C, "unsigned char AutoMapWallG")
del_items(0x80119D6D)
SetType(0x80119D6D, "unsigned char AutoMapWallB")
del_items(0x80119D6E)
SetType(0x80119D6E, "unsigned char AutoMapDoorR")
del_items(0x80119D6F)
SetType(0x80119D6F, "unsigned char AutoMapDoorG")
del_items(0x80119D70)
SetType(0x80119D70, "unsigned char AutoMapDoorB")
del_items(0x80119D71)
SetType(0x80119D71, "unsigned char AutoMapColumnR")
del_items(0x80119D72)
SetType(0x80119D72, "unsigned char AutoMapColumnG")
del_items(0x80119D73)
SetType(0x80119D73, "unsigned char AutoMapColumnB")
del_items(0x80119D74)
SetType(0x80119D74, "unsigned char AutoMapArchR")
del_items(0x80119D75)
SetType(0x80119D75, "unsigned char AutoMapArchG")
del_items(0x80119D76)
SetType(0x80119D76, "unsigned char AutoMapArchB")
del_items(0x80119D77)
SetType(0x80119D77, "unsigned char AutoMapStairR")
del_items(0x80119D78)
SetType(0x80119D78, "unsigned char AutoMapStairG")
del_items(0x80119D79)
SetType(0x80119D79, "unsigned char AutoMapStairB")
del_items(0x8011A3EC)
SetType(0x8011A3EC, "unsigned long GazTick")
del_items(0x80120D28)
SetType(0x80120D28, "unsigned long RndTabs[6]")
del_items(0x800A6368)
SetType(0x800A6368, "unsigned long DefaultRnd[6]")
del_items(0x8011A414)
SetType(0x8011A414, "void (*PollFunc)()")
del_items(0x8011A3F8)
SetType(0x8011A3F8, "void (*MsgFunc)()")
del_items(0x8011A444)
SetType(0x8011A444, "void (*ErrorFunc)()")
del_items(0x8011A318)
SetType(0x8011A318, "struct TASK *ActiveTasks")
del_items(0x8011A31C)
SetType(0x8011A31C, "struct TASK *CurrentTask")
del_items(0x8011A320)
SetType(0x8011A320, "struct TASK *T")
del_items(0x8011A324)
SetType(0x8011A324, "unsigned long MemTypeForTasker")
del_items(0x8011E558)
SetType(0x8011E558, "int SchEnv[12]")
del_items(0x8011A328)
SetType(0x8011A328, "unsigned long ExecId")
del_items(0x8011A32C)
SetType(0x8011A32C, "unsigned long ExecMask")
del_items(0x8011A330)
SetType(0x8011A330, "int TasksActive")
del_items(0x8011A334)
SetType(0x8011A334, "void (*EpiFunc)()")
del_items(0x8011A338)
SetType(0x8011A338, "void (*ProFunc)()")
del_items(0x8011A33C)
SetType(0x8011A33C, "unsigned long EpiProId")
del_items(0x8011A340)
SetType(0x8011A340, "unsigned long EpiProMask")
del_items(0x8011A344)
SetType(0x8011A344, "void (*DoTasksPrologue)()")
del_items(0x8011A348)
SetType(0x8011A348, "void (*DoTasksEpilogue)()")
del_items(0x8011A34C)
SetType(0x8011A34C, "void (*StackFloodCallback)()")
del_items(0x8011A350)
SetType(0x8011A350, "unsigned char ExtraStackProtection")
del_items(0x8011A354)
SetType(0x8011A354, "int ExtraStackSizeLongs")
del_items(0x8011A400)
SetType(0x8011A400, "void *LastPtr")
del_items(0x800A63A0)
SetType(0x800A63A0, "struct MEM_INFO WorkMemInfo")
del_items(0x8011A358)
SetType(0x8011A358, "struct MEM_INIT_INFO *MemInitBlocks")
del_items(0x8011E588)
SetType(0x8011E588, "struct MEM_HDR MemHdrBlocks[140]")
del_items(0x8011A35C)
SetType(0x8011A35C, "struct MEM_HDR *FreeBlocks")
del_items(0x8011A360)
SetType(0x8011A360, "enum GAL_ERROR_CODE LastError")
del_items(0x8011A364)
SetType(0x8011A364, "int TimeStamp")
del_items(0x8011A368)
SetType(0x8011A368, "unsigned char FullErrorChecking")
del_items(0x8011A36C)
SetType(0x8011A36C, "unsigned long LastAttemptedAlloc")
del_items(0x8011A370)
SetType(0x8011A370, "unsigned long LastDeallocedBlock")
del_items(0x8011A374)
SetType(0x8011A374, "enum GAL_VERB_LEV VerbLev")
del_items(0x8011A378)
SetType(0x8011A378, "int NumOfFreeHdrs")
del_items(0x8011A37C)
SetType(0x8011A37C, "unsigned long LastTypeAlloced")
del_items(0x8011A380)
SetType(0x8011A380, "void (*AllocFilter)()")
del_items(0x800A63A8)
SetType(0x800A63A8, "char *GalErrors[10]")
del_items(0x800A63D0)
SetType(0x800A63D0, "struct MEM_INIT_INFO PhantomMem")
del_items(0x8011F708)
SetType(0x8011F708, "char buf[4992]")
del_items(0x800A63F8)
SetType(0x800A63F8, "char NULL_REP[7]")
|
ls = []
with open('input.txt') as fh:
for line in fh.readlines():
if not line.strip():
continue
ls.append(int(line))
for i in range(len(ls)):
for j in range(i+1, len(ls)):
if ls[i] + ls[j] == 2020:
print("part1:")
print(ls[i], ls[j])
print(ls[i] * ls[j])
for k in range(j + 1, len(ls)):
if ls[i]+ls[j]+ls[k]==2020:
print("\npart2:")
print(ls[i], ls[j], ls[k])
print(ls[i]*ls[j]*ls[k])
|
# encoding=utf8
def banner_bash( bannerstring ):
length= len(bannerstring)
i=0
v_str=""
while ( i < 6 ):
j=0
while (j < length):
char = bannerstring[j].lower()
if ( i == 0 ):
if ( char == "0" ):v_str+=" ██████╗ "
elif ( char == "1" ):v_str+=" ██╗"
elif ( char == "2" ):v_str+=" ██████╗ "
elif ( char == "3" ):v_str+=" ██████╗ "
elif ( char == "4" ):v_str+=" ██╗ ██╗"
elif ( char == "5" ):v_str+=" ███████╗"
elif ( char == "6" ):v_str+=" ██████╗ "
elif ( char == "7" ):v_str+=" ███████╗"
elif ( char == "8" ):v_str+=" █████╗ "
elif ( char == "9" ):v_str+=" █████╗ "
elif ( char == "a" ):v_str+=" █████╗ "
elif ( char == "b" ):v_str+=" ██████╗ "
elif ( char == "c" ):v_str+=" █████╗ "
elif ( char == "d" ):v_str+=" ██████╗ "
elif ( char == "e" ):v_str+=" ███████╗"
elif ( char == "f" ):v_str+=" ███████╗"
elif ( char == "g" ):v_str+=" ██████╗ "
elif ( char == "h" ):v_str+=" ██╗ ██╗"
elif ( char == "i" ):v_str+=" ██╗"
elif ( char == "j" ):v_str+=" ██╗"
elif ( char == "k" ):v_str+=" ██╗ ██╗"
elif ( char == "l" ):v_str+=" ██╗ "
elif ( char == "m" ):v_str+=" ███╗ ███╗"
elif ( char == "n" ):v_str+=" ███╗ ██╗"
elif ( char == "o" ):v_str+=" █████╗ "
elif ( char == "p" ):v_str+=" ██████╗ "
elif ( char == "q" ):v_str+=" ██████╗ "
elif ( char == "r" ):v_str+=" ██████╗ "
elif ( char == "s" ):v_str+=" ██████╗"
elif ( char == "t" ):v_str+=" ████████╗"
elif ( char == "u" ):v_str+=" ██╗ ██╗"
elif ( char == "v" ):v_str+=" ██╗ ██╗"
elif ( char == "w" ):v_str+=" ██╗ ██╗"
elif ( char == "x" ):v_str+=" ██╗ ██╗"
elif ( char == "y" ):v_str+=" ██╗ ██╗"
elif ( char == "z" ):v_str+=" ███████╗"
elif ( char == "+" ):v_str+=" "
elif ( char == "-" ):v_str+=" "
elif ( char == "*" ):v_str+=" "
elif ( char == "/" ):v_str+=" ██╗"
elif ( char == "=" ):v_str+=" "
elif ( char == "." ):v_str+=" "
elif ( char == "<" ):v_str+=" ██╗"
elif ( char == ">" ):v_str+=" ██╗ "
elif ( char == "%" ):v_str+=" ██╗ ██╗"
elif ( char == "^" ):v_str+=" ██ "
elif ( char == "!" ):v_str+=" ██╗"
elif ( char == "?" ):v_str+=" █████╗ "
elif ( char == ":" ):v_str+=" ██╗"
elif ( char == "" ):v_str+=" ██╗"
elif ( char == "$" ):v_str+=" ███████╗"
elif ( char == "@" ):v_str+=" █████╗ "
elif ( char == "," ):v_str+=" "
elif ( char == "&" ):v_str+=" ╔██████╗ "
elif ( char == "'" ):v_str+=" ██╗"
elif ( char == "[" ):v_str+=" ████╗"
elif ( char == "]" ):v_str+=" ████╗"
elif ( char == "#" ):v_str+=" ██╗ ██╗ "
elif ( char == " " ):v_str+=" "
if ( i == 1 and j == 0 ):v_str+="\n"
if ( i == 1 ):
if ( char == "0" ):v_str+=" ██╔═████╗"
elif ( char == "1" ):v_str+=" ███║"
elif ( char == "2" ):v_str+=" ╚════██╗"
elif ( char == "3" ):v_str+=" ╚════██╗"
elif ( char == "4" ):v_str+=" ██║ ██║"
elif ( char == "5" ):v_str+=" ██╔════╝"
elif ( char == "6" ):v_str+=" ██╔════╝ "
elif ( char == "7" ):v_str+=" ╚════██║"
elif ( char == "8" ):v_str+=" ██╔══██╗"
elif ( char == "9" ):v_str+=" ██╔══██╗"
elif ( char == "a" ):v_str+=" ██╔══██╗"
elif ( char == "b" ):v_str+=" ██╔══██╗"
elif ( char == "c" ):v_str+=" ██╔══██╗"
elif ( char == "d" ):v_str+=" ██╔══██╗"
elif ( char == "e" ):v_str+=" ██╔════╝"
elif ( char == "f" ):v_str+=" ██╔════╝"
elif ( char == "g" ):v_str+=" ██╔════╝ "
elif ( char == "h" ):v_str+=" ██║ ██║"
elif ( char == "i" ):v_str+=" ██║"
elif ( char == "j" ):v_str+=" ██║"
elif ( char == "k" ):v_str+=" ██║ ██╔╝"
elif ( char == "l" ):v_str+=" ██║ "
elif ( char == "m" ):v_str+=" ████╗ ████║"
elif ( char == "n" ):v_str+=" ████╗ ██║"
elif ( char == "o" ):v_str+=" ██╔══██╗"
elif ( char == "p" ):v_str+=" ██╔══██╗"
elif ( char == "q" ):v_str+=" ██╔═══██╗"
elif ( char == "r" ):v_str+=" ██╔══██╗"
elif ( char == "s" ):v_str+=" ██╔════╝"
elif ( char == "t" ):v_str+=" ╚══██╔══╝"
elif ( char == "u" ):v_str+=" ██║ ██║"
elif ( char == "v" ):v_str+=" ██║ ██║"
elif ( char == "w" ):v_str+=" ██║ ██╗ ██║"
elif ( char == "x" ):v_str+=" ╚██╗██╔╝"
elif ( char == "y" ):v_str+=" ╚██╗ ██╔╝"
elif ( char == "z" ):v_str+=" ╚════██║"
elif ( char == "+" ):v_str+=" ██╗ "
elif ( char == "-" ):v_str+=" "
elif ( char == "*" ):v_str+=" ██ ██"
elif ( char == "/" ):v_str+=" ██╔╝"
elif ( char == "=" ):v_str+=" ██████╗"
elif ( char == "." ):v_str+=" "
elif ( char == "<" ):v_str+=" ██╔╝"
elif ( char == ">" ):v_str+=" ╚██╗ "
elif ( char == "%" ):v_str+=" ╚═╝██╔╝"
elif ( char == "^" ):v_str+=" ██ ██ "
elif ( char == "!" ):v_str+=" ██║"
elif ( char == "?" ):v_str+=" ██╔══██╗"
elif ( char == ":" ):v_str+=" ╚═╝"
elif ( char == "" ):v_str+=" ╚═╝"
elif ( char == "$" ):v_str+=" ██╔██╔══╝"
elif ( char == "@" ):v_str+=" ██╔══█═██"
elif ( char == "," ):v_str+=" "
elif ( char == "&" ):v_str+=" █════██║ "
elif ( char == "'" ):v_str+=" ╚█║"
elif ( char == "[" ):v_str+=" ██╔═╝"
elif ( char == "]" ):v_str+=" ╚═██║"
elif ( char == "#" ):v_str+=" ██████████╗"
elif ( char == " " ):v_str+=" "
if ( i == 2 and j == 0 ):v_str+="\n"
if ( i == 2 ):
if ( char == "0" ):v_str+=" ██║██╔██║"
elif ( char == "1" ):v_str+=" ╚██║"
elif ( char == "2" ):v_str+=" █████╔╝"
elif ( char == "3" ):v_str+=" █████╔╝"
elif ( char == "4" ):v_str+=" ███████║"
elif ( char == "5" ):v_str+=" ███████╗"
elif ( char == "6" ):v_str+=" ███████╗ "
elif ( char == "7" ):v_str+=" ██╔╝"
elif ( char == "8" ):v_str+=" ╚█████╔╝"
elif ( char == "9" ):v_str+=" ╚██████║"
elif ( char == "a" ):v_str+=" ███████║"
elif ( char == "b" ):v_str+=" ██████╦╝"
elif ( char == "c" ):v_str+=" ██║ ╚═╝"
elif ( char == "d" ):v_str+=" ██║ ██║"
elif ( char == "e" ):v_str+=" █████╗ "
elif ( char == "f" ):v_str+=" █████╗ "
elif ( char == "g" ):v_str+=" ██║ ██╗ "
elif ( char == "h" ):v_str+=" ███████║"
elif ( char == "i" ):v_str+=" ██║"
elif ( char == "j" ):v_str+=" ██║"
elif ( char == "k" ):v_str+=" █████═╝ "
elif ( char == "l" ):v_str+=" ██║ "
elif ( char == "m" ):v_str+=" ██╔████╔██║"
elif ( char == "n" ):v_str+=" ██╔██╗██║"
elif ( char == "o" ):v_str+=" ██║ ██║"
elif ( char == "p" ):v_str+=" ██████╔╝"
elif ( char == "q" ):v_str+=" ██║██╗██║"
elif ( char == "r" ):v_str+=" ██████╔╝"
elif ( char == "s" ):v_str+=" ╚█████╗ "
elif ( char == "t" ):v_str+=" ██║ "
elif ( char == "u" ):v_str+=" ██║ ██║"
elif ( char == "v" ):v_str+=" ╚██╗ ██╔╝"
elif ( char == "w" ):v_str+=" ╚██╗████╗██╔╝"
elif ( char == "x" ):v_str+=" ╚███╔╝ "
elif ( char == "y" ):v_str+=" ╚████╔╝ "
elif ( char == "z" ):v_str+=" ███╔═╝"
elif ( char == "+" ):v_str+=" ██████╗"
elif ( char == "-" ):v_str+=" █████╗"
elif ( char == "*" ):v_str+=" ████ "
elif ( char == "/" ):v_str+=" ██╔╝ "
elif ( char == "=" ):v_str+=" ╚═════╝"
elif ( char == "." ):v_str+=" "
elif ( char == "<" ):v_str+=" ██╔╝ "
elif ( char == ">" ):v_str+=" ╚██╗"
elif ( char == "%" ):v_str+=" ██╔╝ "
elif ( char == "^" ):v_str+=" ██ ██"
elif ( char == "!" ):v_str+=" ██║"
elif ( char == "?" ):v_str+=" ╚═╝███╔╝"
elif ( char == ":" ):v_str+=" "
elif ( char == "" ):v_str+=" "
elif ( char == "$" ):v_str+=" ╚██████╗ "
elif ( char == "@" ):v_str+=" ██║ ████"
elif ( char == "," ):v_str+=" "
elif ( char == "&" ):v_str+=" ███ ╚╝ "
elif ( char == "'" ):v_str+=" ╚╝"
elif ( char == "[" ):v_str+=" ██║ "
elif ( char == "]" ):v_str+=" ██║"
elif ( char == "#" ):v_str+=" ╚═██╔═██╔═╝"
elif ( char == " " ):v_str+=" "
if ( i == 3 and j == 0 ):v_str+="\n"
if ( i == 3 ):
if ( char == "0" ):v_str+=" ████╔╝██║"
elif ( char == "1" ):v_str+=" ██║"
elif ( char == "2" ):v_str+=" ██╔═══╝ "
elif ( char == "3" ):v_str+=" ╚═══██╗"
elif ( char == "4" ):v_str+=" ╚════██║"
elif ( char == "5" ):v_str+=" ╚════██║"
elif ( char == "6" ):v_str+=" ██╔═══██╗"
elif ( char == "7" ):v_str+=" ██╔╝ "
elif ( char == "8" ):v_str+=" ██╔══██╗"
elif ( char == "9" ):v_str+=" ╚═══██║"
elif ( char == "a" ):v_str+=" ██╔══██║"
elif ( char == "b" ):v_str+=" ██╔══██╗"
elif ( char == "c" ):v_str+=" ██║ ██╗"
elif ( char == "d" ):v_str+=" ██║ ██║"
elif ( char == "e" ):v_str+=" ██╔══╝ "
elif ( char == "f" ):v_str+=" ██╔══╝ "
elif ( char == "g" ):v_str+=" ██║ ╚██╗"
elif ( char == "h" ):v_str+=" ██╔══██║"
elif ( char == "i" ):v_str+=" ██║"
elif ( char == "j" ):v_str+=" ██╗ ██║"
elif ( char == "k" ):v_str+=" ██╔═██╗ "
elif ( char == "l" ):v_str+=" ██║ "
elif ( char == "m" ):v_str+=" ██║╚██╔╝██║"
elif ( char == "n" ):v_str+=" ██║╚████║"
elif ( char == "o" ):v_str+=" ██║ ██║"
elif ( char == "p" ):v_str+=" ██╔═══╝ "
elif ( char == "q" ):v_str+=" ╚██████╔╝"
elif ( char == "r" ):v_str+=" ██╔══██╗"
elif ( char == "s" ):v_str+=" ╚═══██╗"
elif ( char == "t" ):v_str+=" ██║ "
elif ( char == "u" ):v_str+=" ██║ ██║"
elif ( char == "v" ):v_str+=" ╚████╔╝ "
elif ( char == "w" ):v_str+=" ████╔═████║ "
elif ( char == "x" ):v_str+=" ██╔██╗ "
elif ( char == "y" ):v_str+=" ╚██╔╝ "
elif ( char == "z" ):v_str+=" ██╔══╝ "
elif ( char == "+" ):v_str+=" ╚═██╔═╝"
elif ( char == "-" ):v_str+=" ╚════╝"
elif ( char == "*" ):v_str+=" ████ "
elif ( char == "/" ):v_str+=" ██╔╝ "
elif ( char == "=" ):v_str+=" ██████╗"
elif ( char == "." ):v_str+=" "
elif ( char == "<" ):v_str+=" ╚██╗ "
elif ( char == ">" ):v_str+=" ██╔╝"
elif ( char == "%" ):v_str+=" ██╔╝ "
elif ( char == "^" ):v_str+=" "
elif ( char == "!" ):v_str+=" ╚═╝"
elif ( char == "?" ):v_str+=" ╚══╝ "
elif ( char == ":" ):v_str+=" "
elif ( char == "" ):v_str+=" ██╗"
elif ( char == "$" ):v_str+=" ╚═██╔██╗"
elif ( char == "@" ):v_str+=" ██╚════╝ "
elif ( char == "," ):v_str+=" ██╗"
elif ( char == "&" ):v_str+=" ██╔══██ "
elif ( char == "'" ):v_str+=" "
elif ( char == "[" ):v_str+=" ██║ "
elif ( char == "]" ):v_str+=" ██║"
elif ( char == "#" ):v_str+=" ██████████╗"
elif ( char == " " ):v_str+=" "
if ( i == 4 and j == 0 ):v_str+="\n"
if ( i == 4 ):
if ( char == "0" ):v_str+=" ╚██████╔╝"
elif ( char == "1" ):v_str+=" ██║"
elif ( char == "2" ):v_str+=" ███████╗"
elif ( char == "3" ):v_str+=" ██████╔╝"
elif ( char == "4" ):v_str+=" ██║"
elif ( char == "5" ):v_str+=" ███████║"
elif ( char == "6" ):v_str+=" ╚██████╔╝"
elif ( char == "7" ):v_str+=" ██║ "
elif ( char == "8" ):v_str+=" ╚█████╔╝"
elif ( char == "9" ):v_str+=" █████╔╝"
elif ( char == "a" ):v_str+=" ██║ ██║"
elif ( char == "b" ):v_str+=" ██████╦╝"
elif ( char == "c" ):v_str+=" ╚█████╔╝"
elif ( char == "d" ):v_str+=" ██████╔╝"
elif ( char == "e" ):v_str+=" ███████╗"
elif ( char == "f" ):v_str+=" ██║ "
elif ( char == "g" ):v_str+=" ╚██████╔╝"
elif ( char == "h" ):v_str+=" ██║ ██║"
elif ( char == "i" ):v_str+=" ██║"
elif ( char == "j" ):v_str+=" ╚█████╔╝"
elif ( char == "k" ):v_str+=" ██║ ╚██╗"
elif ( char == "l" ):v_str+=" ███████╗"
elif ( char == "m" ):v_str+=" ██║ ╚═╝ ██║"
elif ( char == "n" ):v_str+=" ██║ ╚███║"
elif ( char == "o" ):v_str+=" ╚█████╔╝"
elif ( char == "p" ):v_str+=" ██║ "
elif ( char == "q" ):v_str+=" ╚═██╔═╝ "
elif ( char == "r" ):v_str+=" ██║ ██║"
elif ( char == "s" ):v_str+=" ██████╔╝"
elif ( char == "t" ):v_str+=" ██║ "
elif ( char == "u" ):v_str+=" ╚██████╔╝"
elif ( char == "v" ):v_str+=" ╚██╔╝ "
elif ( char == "w" ):v_str+=" ╚██╔╝ ╚██╔╝ "
elif ( char == "x" ):v_str+=" ██╔╝╚██╗"
elif ( char == "y" ):v_str+=" ██║ "
elif ( char == "z" ):v_str+=" ███████╗"
elif ( char == "+" ):v_str+=" ╚═╝ "
elif ( char == "-" ):v_str+=" "
elif ( char == "*" ):v_str+=" ██ ██"
elif ( char == "/" ):v_str+=" ██╔╝ "
elif ( char == "=" ):v_str+=" ╚═════╝"
elif ( char == "." ):v_str+=" ██╗"
elif ( char == "<" ):v_str+=" ╚██╗"
elif ( char == ">" ):v_str+=" ██╔╝ "
elif ( char == "%" ):v_str+=" ██╔╝██╗"
elif ( char == "^" ):v_str+=" "
elif ( char == "!" ):v_str+=" ██╗"
elif ( char == "?" ):v_str+=" ██╗ "
elif ( char == ":" ):v_str+=" ██╗"
elif ( char == "" ):v_str+=" ╚█║"
elif ( char == "$" ):v_str+=" ███████╔╝"
elif ( char == "@" ):v_str+=" ╚████████"
elif ( char == "," ):v_str+=" ╚█║"
elif ( char == "&" ):v_str+=" █████████╗"
elif ( char == "'" ):v_str+=" "
elif ( char == "[" ):v_str+=" ████╗"
elif ( char == "]" ):v_str+=" ████║"
elif ( char == "#" ):v_str+=" ╚██╔═██╔══╝"
elif ( char == " " ):v_str+=" "
if ( i == 5 and j == 0 ):v_str+="\n"
if ( i == 5 ):
if ( char == "0" ):v_str+=" ╚═════╝ "
elif ( char == "1" ):v_str+=" ╚═╝"
elif ( char == "2" ):v_str+=" ╚══════╝"
elif ( char == "3" ):v_str+=" ╚═════╝ "
elif ( char == "4" ):v_str+=" ╚═╝"
elif ( char == "5" ):v_str+=" ╚══════╝"
elif ( char == "6" ):v_str+=" ╚═════╝ "
elif ( char == "7" ):v_str+=" ╚═╝ "
elif ( char == "8" ):v_str+=" ╚════╝ "
elif ( char == "9" ):v_str+=" ╚════╝ "
elif ( char == "a" ):v_str+=" ╚═╝ ╚═╝"
elif ( char == "b" ):v_str+=" ╚═════╝ "
elif ( char == "c" ):v_str+=" ╚════╝ "
elif ( char == "d" ):v_str+=" ╚═════╝ "
elif ( char == "e" ):v_str+=" ╚══════╝"
elif ( char == "f" ):v_str+=" ╚═╝ "
elif ( char == "g" ):v_str+=" ╚═════╝ "
elif ( char == "h" ):v_str+=" ╚═╝ ╚═╝"
elif ( char == "i" ):v_str+=" ╚═╝"
elif ( char == "j" ):v_str+=" ╚════╝ "
elif ( char == "k" ):v_str+=" ╚═╝ ╚═╝"
elif ( char == "l" ):v_str+=" ╚══════╝"
elif ( char == "m" ):v_str+=" ╚═╝ ╚═╝"
elif ( char == "n" ):v_str+=" ╚═╝ ╚══╝"
elif ( char == "o" ):v_str+=" ╚════╝ "
elif ( char == "p" ):v_str+=" ╚═╝ "
elif ( char == "q" ):v_str+=" ╚═╝ "
elif ( char == "r" ):v_str+=" ╚═╝ ╚═╝"
elif ( char == "s" ):v_str+=" ╚═════╝ "
elif ( char == "t" ):v_str+=" ╚═╝ "
elif ( char == "u" ):v_str+=" ╚═════╝ "
elif ( char == "v" ):v_str+=" ╚═╝ "
elif ( char == "w" ):v_str+=" ╚═╝ ╚═╝ "
elif ( char == "x" ):v_str+=" ╚═╝ ╚═╝"
elif ( char == "y" ):v_str+=" ╚═╝ "
elif ( char == "z" ):v_str+=" ╚══════╝"
elif ( char == "+" ):v_str+=" "
elif ( char == "-" ):v_str+=" "
elif ( char == "*" ):v_str+=" "
elif ( char == "/" ):v_str+=" ╚═╝ "
elif ( char == "=" ):v_str+=" "
elif ( char == "." ):v_str+=" ╚═╝"
elif ( char == "<" ):v_str+=" ╚═╝"
elif ( char == ">" ):v_str+=" ╚═╝ "
elif ( char == "%" ):v_str+=" ╚═╝ ╚═╝"
elif ( char == "^" ):v_str+=" "
elif ( char == "!" ):v_str+=" ╚═╝"
elif ( char == "?" ):v_str+=" ╚═╝ "
elif ( char == ":" ):v_str+=" ╚═╝"
elif ( char == "" ):v_str+=" ╚╝"
elif ( char == "$" ):v_str+=" ╚══════╝ "
elif ( char == "@" ):v_str+=" ╚══════╝"
elif ( char == "," ):v_str+=" ╚╝"
elif ( char == "&" ):v_str+=" ╚════════╝"
elif ( char == "'" ):v_str+=" "
elif ( char == "[" ):v_str+=" ╚═══╝"
elif ( char == "]" ):v_str+=" ╚═══╝"
elif ( char == "#" ):v_str+=" ╚═╝ ╚═╝ "
elif ( char == " " ):v_str+=" "
j+=1
i+=1
return v_str
#==============================================================
print(banner_bash("Hi Earth"))
|
"""
Command parsing. :py:class:`CommandParser` breaks up the input, and tosses out
:py:class:`ParsedCommand` instance.
"""
class ParsedCommand(object):
"""
A parsed command, broken up into something the command handler can
muddle through.
:attr str command_str: The command that was passed.
:attr list switches: Switches that were passed in with the command.
:attr list arguments: A list of strings representing the arguments passed
with the command.
"""
def __init__(self, command_str, switches, arguments):
self.command_str = command_str
self.switches = set(switches)
self.arguments = arguments
self.argument_string = ' '.join(arguments)
class CommandParser(object):
"""
Parses user input. Dices it up into bits that the command handler can
look through to figure out what gets done.
"""
#noinspection PyShadowingBuiltins
def parse(self, raw_input):
"""
Do the magic. Returns the parsed command in a convenient container
object for use by the command handler.
:param str raw_input: The raw input string to parse.
:rtype: :class:`ParsedCommand`
"""
if raw_input[0] == ':':
raw_input = raw_input.replace(':', 'emote ', 1)
elif raw_input[0] == ';':
raw_input = raw_input.replace(';', 'emote/nospace ', 1)
tokens = raw_input.split()
# The first word should be the command string.
command_str = tokens[0]
# Switches are separated by forward slash.
command_str_split = command_str.split('/')
# First element (0) is the command string, everything after that
# is a switch.
switches = command_str_split[1:]
# Go back and re-set this to exclude any switches that were in the
# original command_str.
command_str = command_str_split[0]
# Anything after the first word is considered an argument.
arguments = tokens[1:]
return ParsedCommand(command_str, switches, arguments) |
# test practice of the the collatz sequence(the simplest impossible maths problem
def collatz(number):
while number != 1:
if number % 2 == 0:
number = number/2;
print(int(number))
else:
number = (number*3) + 1
print(int(number))
def main():
print("Enter number: ")
number = int(input())
collatz(number)
main()
|
class Solution:
def countAndSay__iterative(self, n: int) -> str:
if n <= 0: return "" # EMPTY
if n == 1: return "1"
say_prev = "1"
for i in range(2, n + 1): # n included
say_curr = self.convert(say_prev)
say_prev = say_curr
return say_prev
# Recursion1 tree is skewed, takes O(n) time for recursion, where n is the number
# for each recursion it convert part, which is O(string_len), and string_len in worst case would be n
# So total Time : O(n2)
# Takes O(n) space due to recursion, as solving for n, n-1, n-2 ..... n=1
# and at each level, we will be having a string to create which will keep on increase with n,
# this string is data is destroyed as well after that perticular method
# so space : (n + str_len)
# interesting is how this str_len grows
def countAndSay__recursive(self, n: int) -> str:
if n <= 0: return "" # EMPTY
if n == 1: return "1"
prev_say = self.countAndSay__recursive(n - 1)
# convert into different_string
my_say = self.convert(prev_say)
return my_say
# Time : O(string_len)
# Space : O(string_size) at each recursion level it is, being created and destroyed
@staticmethod
def convert(say):
characters = []
prev_char = say[0]
count = 0
for curr_char in say:
if prev_char != curr_char:
characters.append(str(count))
characters.append(prev_char)
prev_char = curr_char
count = 1
else:
count += 1
# handle last element
characters.append(str(count))
characters.append(prev_char)
return ''.join(characters)
if __name__ == "__main__":
sol = Solution()
for i in range(10):
print(sol.countAndSay__recursive(i))
for i in range(10):
print(sol.countAndSay__iterative(i))
# print(sol.convert("111221"))
|
maior = None
menor = None
cont = 0
while True:
entr = input('Digite algum número, ou fim para finalizar: ')
if entr == 'fim': break
try:
int(entr)
except:
print('Erro de entrada')
continue #retorna ao começo do input
if menor is None:
menor = entr
elif maior is None:
maior = entr
elif entr >= maior:
maior = entr
elif entr <= menor:
menor = entr
cont += 1
if cont == 2:
print(f'O maior número é {menor}.')
print(f'O menor número é {maior}.')
elif cont != 2:
print(f'O maior número é {maior}.')
print(f'O menor número é {menor}.')
|
"""
Question 7
Write code to calculate fibonacci numbers, create lists containing first 20 fibonacci numbers.
(Fib numbers made by sum of proceeding two.Series start at 0 1 1 2 3 5 8 13...)
"""
a = 0
b = 1
fib_num = list()
count = 0
user_input = input('Enter a number: ')
while not user_input.isdigit():
user_input = input('Try again: ')
user_input = int(user_input)
while count != user_input:
count += 1
fib_num.append(a)
a, b = b, a + b
print(fib_num)
|
"""TensorFlow Lite Support Library Helper Rules for iOS"""
# When the static framework is built with bazel, the all header files are moved
# to the "Headers" directory with no header path prefixes. This auxiliary rule
# is used for stripping the path prefix to the C API header files included by
# other C API header files.
def strip_c_api_include_path_prefix(name, hdr_labels, prefix = ""):
"""Create modified header files with the common.h include path stripped out.
Args:
name: The name to be used as a prefix to the generated genrules.
hdr_labels: List of header labels to strip out the include path. Each
label must end with a colon followed by the header file name.
prefix: Optional prefix path to prepend to the header inclusion path.
"""
for hdr_label in hdr_labels:
hdr_filename = hdr_label.split(":")[-1]
hdr_basename = hdr_filename.split(".")[0]
native.genrule(
name = "{}_{}".format(name, hdr_basename),
srcs = [hdr_label],
outs = [hdr_filename],
cmd = """
sed 's|#include ".*/\\([^/]\\{{1,\\}}\\.h\\)"|#include "{}\\1"|'\
"$(location {})"\
> "$@"
""".format(prefix, hdr_label),
)
|
class Bills:
"""A class that is used to build the Bills"""
def __init__(self, digest):
self.title = digest.get("title")
self.short_title = digest.get("shortTitle")
self.collection_code = digest.get("collectionCode")
self.collection_name = digest.get("collectionName")
self.category = digest.get("category")
self.date_issued = digest.get("dateIssued")
self.details_link = digest.get("detailsLink")
self.package_ID = digest.get("packageId")
self.download = digest.get("download")
self.related = digest.get("related")
self.branch = digest.get("branch")
self.pages = digest.get("pages")
self.government_author_1 = digest.get("governmentAuthor1")
self.government_author_2 = digest.get("governmentAuthor2")
self.SuDoc_class_number = digest.get("suDocClassNumber")
self.bill_type = digest.get("billType")
self.congress = digest.get("congress")
self.origin_chamber = digest.get("originChamber")
self.current_chamber = digest.get("currentChamber")
self.session = digest.get("session")
self.bill_number = digest.get("billNumber")
self.bill_version = digest.get("billVersion")
self.is_appropriation = digest.get("isAppropriation")
self.is_private = digest.get("isPrivate")
self.publisher = digest.get("publisher")
self.committees = digest.get("committees")
self.members = digest.get("members")
self.other_identifier = digest.get("otherIdentifier")
self.references = digest.get("references")
self.last_modified = digest.get("lastModified") |
count = 10
print("Hello!")
while count > 0:
print(count)
count -= 2 |
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------
# This is a sample controller
# this file is released under public domain and you can use without limitations
# -------------------------------------------------------------------------
# ---- example index page ----
def index():
response.flash = T("Hello World")
return dict(message=T('Welcome to web2py!'))
# ---- API (example) -----
@auth.requires_login()
def api_get_user_email():
if not request.env.request_method == 'GET': raise HTTP(403)
return response.json({'status':'success', 'email':auth.user.email})
# ---- Smart Grid (example) -----
@auth.requires_membership('admin') # can only be accessed by members of admin groupd
def grid():
response.view = 'generic.html' # use a generic view
tablename = request.args(0)
if not tablename in db.tables: raise HTTP(403)
grid = SQLFORM.smartgrid(db[tablename], args=[tablename], deletable=False, editable=False)
return dict(grid=grid)
# ---- Embedded wiki (example) ----
def wiki():
auth.wikimenu() # add the wiki to the menu
return auth.wiki()
# ---- Action for login/register/etc (required for auth) -----
def user():
"""
exposes:
http://..../[app]/default/user/login
http://..../[app]/default/user/logout
http://..../[app]/default/user/register
http://..../[app]/default/user/profile
http://..../[app]/default/user/retrieve_password
http://..../[app]/default/user/change_password
http://..../[app]/default/user/bulk_register
use @auth.requires_login()
@auth.requires_membership('group name')
@auth.requires_permission('read','table name',record_id)
to decorate functions that need access control
also notice there is http://..../[app]/appadmin/manage/auth to allow administrator to manage users
"""
return dict(form=auth())
# ---- action to server uploaded static content (required) ---
@cache.action()
def download():
"""
allows downloading of uploaded files
http://..../[app]/default/download/[filename]
"""
return response.download(request, db)
# Cria novo registro no banco
@auth.requires_membership('funcionario')
def novo_filme():
form = SQLFORM(Filmes)
if form.process().accepted:
session.flash = 'Novo filme cadastrado: %s' % form.vars.titulo
redirect(URL('novo_filme'))
elif form.errors:
response.flash = 'Erros no formulário!'
else:
if not response.flash:
response.flash = 'Preencha o formulário!'
return dict(form=form)
# Lista os registro cadastrados no banco
def ver_filmes_grid():
grid = SQLFORM.grid(Filmes)
return dict(grid=grid)
def ver_filmes():
if request.vars.filme:
# Busca filme exatamente como está na url e na tabela
# filmes = db(Filmes.titulo == request.vars.filme).select()
filmes = db(Filmes.titulo.like('%'+request.vars.filme+'%')).select()
else:
filmes = db(Filmes).select()
return dict(filmes=filmes)
# Atualiza os registro no banco
def editar_filme():
form = SQLFORM(Filmes, request.args(0, cast=int), showid=False)
if form.process().accepted:
session.flash = 'Filme atualizado: %s' % form.vars.titulo
redirect(URL('ver_filmes'))
elif form.errors:
response.flash = 'Erros no formulário!'
else:
if not response.flash:
response.flash = 'Preencha o formulário!'
return dict(form=form)
# Excluir registro no banco
def apagar_filme():
db(Filmes.id==request.args(0, cast=int)).delete()
session.flash = 'Filme apagado!'
redirect(URL('ver_filmes'))
def teste():
teste = SQLFORM(db.filmes)
if teste.process().accepted:
session.flash = 'hahaha form processado'
redirect(URL('teste'))
else:
response.flash = 'Nao processado'
return dict(form=teste) |
# 初始参数
h=1/10
y0=1
t=0
step=10
# 定义初值问题的右端函数f
def f(t,y):
return 4*t*y**(1/2)
# 定义初值问题的真解
def y(t):
return (1+t**2)**2
# 定义使用runge-kutta方法求解初值问题的函数
def runge_kutta_4(y0,t,h,f,y,step):
un=[y0]
u=[y0]
e=[0]
c=[0,1/2*h,1/2*h,h]
for i in range(step):
k1=f(t,y0)
k2=f(t+c[1],y0+c[1]*k1)
k3=f(t+c[2],y0+c[2]*k2)
k4=f(t+c[3],y0+c[3]*k3)
y0=y0+1/6*h*(k1+2*k2+2*k3+k4)
un.append(y0)
t+=h
u.append(y(t))
e.append(abs(un[-1]-u[-1]))
print(un,e)
ue=runge_kutta_4(y0,t,h,f,y,step)
|
'''
3.1.2 见sym_table中的array_st实现
'''
'''
3.1.3 见sym_table中的link_st实现
'''
class time_object(object):
'''
@brief 3.1.4
'''
def __init__(self, h, m, s):
super().__init__()
self.time = [h, m, s]
def compare_to(self, item):
for i in range(len(self.time)):
if self.time[i] < item.time[i]:
return -1
elif self.time[i] > item.time[i]:
return 1
else:
return 0
'''
3.1.24 见binary_search中的binary_search_inter实现
''' |
'''
Gui
___
Contains the Qt views and controllers.
:copyright: (c) 2015 The Regents of the University of California.
:license: GNU GPL, see licenses/GNU GPLv3.txt for more details.
'''
|
def make_text(x, y, z):
return '{}時の{}は{}'.format(x, y, z)
x = 12
y = '気温'
z = 22.4
print(make_text(x, y, z))
|
input = """
dir(e). dir(w). dir(n). dir(s).
inverse(e,w). inverse(w,e).
inverse(n,s). inverse(s,n).
row(X) :- field(X,Y).
col(Y) :- field(X,Y).
num_rows(X) :- row(X), not row(XX), XX = X+1.
num_cols(Y) :- col(Y), not col(YY), YY = Y+1.
goal(X,Y,0) :- goal_on(X,Y).
reach(X,Y,0) :- init_on(X,Y).
conn(X,Y,D,0) :- connect(X,Y,D).
step(S) :- max_steps(S), 0 < S.
step(T) :- step(S), T = S-1, 1 < S.
%% Direct neighbors
dneighbor(n,X,Y,XX,Y) :- field(X,Y), field(XX,Y), XX = X+1.
dneighbor(s,X,Y,XX,Y) :- field(X,Y), field(XX,Y), XX = X-1.
dneighbor(e,X,Y,X,YY) :- field(X,Y), field(X,YY), YY = Y+1.
dneighbor(w,X,Y,X,YY) :- field(X,Y), field(X,YY), YY = Y-1.
%% All neighboring fields
neighbor(D,X,Y,XX,YY) :- dneighbor(D,X,Y,XX,YY).
neighbor(n,X,Y, 1, Y) :- field(X,Y), num_rows(X).
neighbor(s,1,Y, X, Y) :- field(X,Y), num_rows(X).
neighbor(e,X,Y, X, 1) :- field(X,Y), num_cols(Y).
neighbor(w,X,1, X, Y) :- field(X,Y), num_cols(Y).
%% Select a row or column to push
neg_goal(T) :- goal(X,Y,T), not reach(X,Y,T).
rrpush(T) :- step(T), neg_goal(S), S = T-1, not ccpush(T).
ccpush(T) :- step(T), neg_goal(S), S = T-1, not rrpush(T).
orpush(X,T) :- row(X), row(XX), rpush(XX,T), X != XX.
ocpush(Y,T) :- col(Y), col(YY), cpush(YY,T), Y != YY.
rpush(X,T) :- row(X), rrpush(T), not orpush(X,T).
cpush(Y,T) :- col(Y), ccpush(T), not ocpush(Y,T).
push(X,e,T) :- rpush(X,T), not push(X,w,T).
push(X,w,T) :- rpush(X,T), not push(X,e,T).
push(Y,n,T) :- cpush(Y,T), not push(Y,s,T).
push(Y,s,T) :- cpush(Y,T), not push(Y,n,T).
%% Determine new position of a (pushed) field
shift(XX,YY,X,Y,T) :- neighbor(e,XX,YY,X,Y), push(XX,e,T), step(T).
shift(XX,YY,X,Y,T) :- neighbor(w,XX,YY,X,Y), push(XX,w,T), step(T).
shift(XX,YY,X,Y,T) :- neighbor(n,XX,YY,X,Y), push(YY,n,T), step(T).
shift(XX,YY,X,Y,T) :- neighbor(s,XX,YY,X,Y), push(YY,s,T), step(T).
shift( X, Y,X,Y,T) :- field(X,Y), not push(X,e,T), not push(X,w,T), not push(Y,n,T), not push(Y,s,T), step(T).
%% Move connections around
conn(X,Y,D,T) :- conn(XX,YY,D,S), S = T-1, dir(D), shift(XX,YY,X,Y,T), step(T).
%% Location of goal after pushing
goal(X,Y,T) :- goal(XX,YY,S), S = T-1, shift(XX,YY,X,Y,T), step(T).
%% Locations reachable from new position
reach(X,Y,T) :- reach(XX,YY,S), S = T-1, shift(XX,YY,X,Y,T), step(T).
reach(X,Y,T) :- reach(XX,YY,T), dneighbor(D,XX,YY,X,Y), conn(XX,YY,D,T), conn(X,Y,E,T), inverse(D,E), step(T).
%% Goal must be reached
:- neg_goal(S), max_steps(S).
%% Project output
% #hide.
% #show push(Z,D,T).
"""
output = """
dir(e). dir(w). dir(n). dir(s).
inverse(e,w). inverse(w,e).
inverse(n,s). inverse(s,n).
row(X) :- field(X,Y).
col(Y) :- field(X,Y).
num_rows(X) :- row(X), not row(XX), XX = X+1.
num_cols(Y) :- col(Y), not col(YY), YY = Y+1.
goal(X,Y,0) :- goal_on(X,Y).
reach(X,Y,0) :- init_on(X,Y).
conn(X,Y,D,0) :- connect(X,Y,D).
step(S) :- max_steps(S), 0 < S.
step(T) :- step(S), T = S-1, 1 < S.
%% Direct neighbors
dneighbor(n,X,Y,XX,Y) :- field(X,Y), field(XX,Y), XX = X+1.
dneighbor(s,X,Y,XX,Y) :- field(X,Y), field(XX,Y), XX = X-1.
dneighbor(e,X,Y,X,YY) :- field(X,Y), field(X,YY), YY = Y+1.
dneighbor(w,X,Y,X,YY) :- field(X,Y), field(X,YY), YY = Y-1.
%% All neighboring fields
neighbor(D,X,Y,XX,YY) :- dneighbor(D,X,Y,XX,YY).
neighbor(n,X,Y, 1, Y) :- field(X,Y), num_rows(X).
neighbor(s,1,Y, X, Y) :- field(X,Y), num_rows(X).
neighbor(e,X,Y, X, 1) :- field(X,Y), num_cols(Y).
neighbor(w,X,1, X, Y) :- field(X,Y), num_cols(Y).
%% Select a row or column to push
neg_goal(T) :- goal(X,Y,T), not reach(X,Y,T).
rrpush(T) :- step(T), neg_goal(S), S = T-1, not ccpush(T).
ccpush(T) :- step(T), neg_goal(S), S = T-1, not rrpush(T).
orpush(X,T) :- row(X), row(XX), rpush(XX,T), X != XX.
ocpush(Y,T) :- col(Y), col(YY), cpush(YY,T), Y != YY.
rpush(X,T) :- row(X), rrpush(T), not orpush(X,T).
cpush(Y,T) :- col(Y), ccpush(T), not ocpush(Y,T).
push(X,e,T) :- rpush(X,T), not push(X,w,T).
push(X,w,T) :- rpush(X,T), not push(X,e,T).
push(Y,n,T) :- cpush(Y,T), not push(Y,s,T).
push(Y,s,T) :- cpush(Y,T), not push(Y,n,T).
%% Determine new position of a (pushed) field
shift(XX,YY,X,Y,T) :- neighbor(e,XX,YY,X,Y), push(XX,e,T), step(T).
shift(XX,YY,X,Y,T) :- neighbor(w,XX,YY,X,Y), push(XX,w,T), step(T).
shift(XX,YY,X,Y,T) :- neighbor(n,XX,YY,X,Y), push(YY,n,T), step(T).
shift(XX,YY,X,Y,T) :- neighbor(s,XX,YY,X,Y), push(YY,s,T), step(T).
shift( X, Y,X,Y,T) :- field(X,Y), not push(X,e,T), not push(X,w,T), not push(Y,n,T), not push(Y,s,T), step(T).
%% Move connections around
conn(X,Y,D,T) :- conn(XX,YY,D,S), S = T-1, dir(D), shift(XX,YY,X,Y,T), step(T).
%% Location of goal after pushing
goal(X,Y,T) :- goal(XX,YY,S), S = T-1, shift(XX,YY,X,Y,T), step(T).
%% Locations reachable from new position
reach(X,Y,T) :- reach(XX,YY,S), S = T-1, shift(XX,YY,X,Y,T), step(T).
reach(X,Y,T) :- reach(XX,YY,T), dneighbor(D,XX,YY,X,Y), conn(XX,YY,D,T), conn(X,Y,E,T), inverse(D,E), step(T).
%% Goal must be reached
:- neg_goal(S), max_steps(S).
%% Project output
% #hide.
% #show push(Z,D,T).
"""
|
"""
44. How to select a specific column from a dataframe as a dataframe instead of a series?
"""
"""
Difficulty Level: L2
"""
"""
Get the first column (a) in df as a dataframe (rather than as a Series).
"""
"""
Input
"""
"""
df = pd.DataFrame(np.arange(20).reshape(-1, 5), columns=list('abcde'))
"""
# Input
df = pd.DataFrame(np.arange(20).reshape(-1, 5), columns=list('abcde'))
# Solution
type(df[['a']])
type(df.loc[:, ['a']])
type(df.iloc[:, [0]])
# Alternately the following returns a Series
type(df.a)
type(df['a'])
type(df.loc[:, 'a'])
type(df.iloc[:, 1]) |
numCasoTeste = int(input())
membros = ['Rolien', 'Naej', 'Elehcim', 'Odranoel']
for casoTeste in range(numCasoTeste):
numInput = int(input())
for _ in range(numInput):
recebido = int(input())
print(membros[recebido - 1]) |
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 8 13:44:47 2020
@author: celine.gross
"""
with open('input_day8.txt', 'r') as file:
puzzle = file.read().strip().split('\n')
# Part 1
def to_next(data, i=0, accumulator=0):
'''
Returns the next line index to look at (i) and the updated accumulator value
'''
action, increment = data[i].split(' ')
if action == 'nop':
i += 1
elif action == 'acc':
i += 1
accumulator += int(increment)
else:
i += int(increment)
return i, accumulator
assert to_next(puzzle, i=0, accumulator=0) == (232, 0)
assert to_next(puzzle, i=10, accumulator=0) == (11, 47)
def run(data):
'''
Returns accumulator value as soon as one instruction is repeated
'''
tracker = {}
i, accumulator = 0, 0
while to_next(data, i, accumulator)[0] not in tracker:
i, accumulator = to_next(data, i, accumulator)
tracker[i] = accumulator
return accumulator
print(run(puzzle))
# Part 2
def replace(instruction, changes={'nop':'jmp', 'jmp':'nop', 'acc':'acc'}):
'''
Returns the new instruction with changes made
'''
for k in changes.keys():
if k in instruction:
return instruction.replace(k, changes[k])
assert replace('jmp +232') == 'nop +232'
assert replace('nop +55') == 'jmp +55'
assert replace('acc -33') == 'acc -33'
def terminates(data):
'''
Returns True and the accumulator value if the programme terminates
Returns False and the accumulator value when first repeat
'''
tracker = {}
i, accumulator = 0, 0
while i < len(data):
if to_next(data, i, accumulator)[0] in tracker:
return False, accumulator
else:
i, accumulator = to_next(data, i, accumulator)
tracker[i] = accumulator
return True, accumulator
def run(data):
'''
Returns the accumulator value for the instruction set that successfully terminated
'''
for i, line in enumerate(data):
copy = list(data)
copy[i] = replace(copy[i])
if terminates(copy)[0]:
return terminates(copy)[1]
print(run(puzzle))
|
#
# PySNMP MIB module HP-SN-SW-L4-SWITCH-GROUP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-SN-MIBS
# Produced by pysmi-0.3.4 at Mon Apr 29 19:23:53 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")
ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint")
snL4, = mibBuilder.importSymbols("HP-SN-ROOT-MIB", "snL4")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
IpAddress, Integer32, Counter32, Counter64, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, TimeTicks, NotificationType, Gauge32, Unsigned32, ObjectIdentity, MibIdentifier, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Integer32", "Counter32", "Counter64", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "TimeTicks", "NotificationType", "Gauge32", "Unsigned32", "ObjectIdentity", "MibIdentifier", "ModuleIdentity")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
class L4RowSts(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))
namedValues = NamedValues(("other", 1), ("valid", 2), ("delete", 3), ("create", 4), ("modify", 5))
class L4Status(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1))
namedValues = NamedValues(("disabled", 0), ("enabled", 1))
class L4ServerName(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 32)
class L4Flag(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1))
namedValues = NamedValues(("false", 0), ("true", 1))
class L4DeleteState(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2))
namedValues = NamedValues(("done", 0), ("waitunbind", 1), ("waitdelete", 2))
class WebCacheState(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("disabled", 0), ("enabled", 1), ("failed", 2), ("testing", 3), ("suspect", 4), ("shutdown", 5), ("active", 6))
class PhysAddress(OctetString):
pass
class DisplayString(OctetString):
pass
snL4Gen = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1))
snL4VirtualServer = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2))
snL4RealServer = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3))
snL4VirtualServerPort = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4))
snL4RealServerPort = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5))
snL4Bind = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6))
snL4VirtualServerStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 7))
snL4RealServerStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8))
snL4VirtualServerPortStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9))
snL4RealServerPortStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10))
snL4Policy = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11))
snL4PolicyPortAccess = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 12))
snL4Trap = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 13))
snL4WebCache = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14))
snL4WebCacheGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15))
snL4WebCacheTrafficStats = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16))
snL4WebUncachedTrafficStats = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17))
snL4WebCachePort = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 18))
snL4RealServerCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19))
snL4RealServerPortCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20))
snL4VirtualServerCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21))
snL4VirtualServerPortCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22))
snL4RealServerStatistic = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23))
snL4RealServerPortStatistic = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24))
snL4VirtualServerStatistic = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25))
snL4VirtualServerPortStatistic = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26))
snL4GslbSiteRemoteServerIrons = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 27))
snL4History = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28))
snL4MaxSessionLimit = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4MaxSessionLimit.setStatus('mandatory')
snL4TcpSynLimit = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4TcpSynLimit.setStatus('mandatory')
snL4slbGlobalSDAType = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leastconnection", 1), ("roundrobin", 2), ("weighted", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4slbGlobalSDAType.setStatus('mandatory')
snL4slbTotalConnections = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbTotalConnections.setStatus('mandatory')
snL4slbLimitExceeds = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbLimitExceeds.setStatus('mandatory')
snL4slbForwardTraffic = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbForwardTraffic.setStatus('mandatory')
snL4slbReverseTraffic = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbReverseTraffic.setStatus('mandatory')
snL4slbDrops = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbDrops.setStatus('mandatory')
snL4slbDangling = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbDangling.setStatus('mandatory')
snL4slbDisableCount = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbDisableCount.setStatus('mandatory')
snL4slbAged = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbAged.setStatus('mandatory')
snL4slbFinished = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4slbFinished.setStatus('mandatory')
snL4FreeSessionCount = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4FreeSessionCount.setStatus('mandatory')
snL4BackupInterface = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 26))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4BackupInterface.setStatus('mandatory')
snL4BackupMacAddr = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 15), PhysAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4BackupMacAddr.setStatus('mandatory')
snL4Active = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 16), L4Flag()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4Active.setStatus('mandatory')
snL4Redundancy = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4Redundancy.setStatus('mandatory')
snL4Backup = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 18), L4Flag()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4Backup.setStatus('mandatory')
snL4BecomeActive = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4BecomeActive.setStatus('mandatory')
snL4BecomeStandBy = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4BecomeStandBy.setStatus('mandatory')
snL4BackupState = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("slbSyncComplete", 0), ("slbSyncReqMap", 1), ("slbSyncreqMac", 2), ("slbSyncreqServers", 3), ("slbSyncReqL4", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4BackupState.setStatus('mandatory')
snL4NoPDUSent = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 22), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4NoPDUSent.setStatus('mandatory')
snL4NoPDUCount = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 23), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4NoPDUCount.setStatus('mandatory')
snL4NoPortMap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 24), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4NoPortMap.setStatus('mandatory')
snL4unsuccessfulConn = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 25), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4unsuccessfulConn.setStatus('mandatory')
snL4PingInterval = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PingInterval.setStatus('mandatory')
snL4PingRetry = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 10)).clone(4)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PingRetry.setStatus('mandatory')
snL4TcpAge = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 28), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 60)).clone(30)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4TcpAge.setStatus('mandatory')
snL4UdpAge = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 60)).clone(5)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4UdpAge.setStatus('mandatory')
snL4EnableMaxSessionLimitReachedTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableMaxSessionLimitReachedTrap.setStatus('mandatory')
snL4EnableTcpSynLimitReachedTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableTcpSynLimitReachedTrap.setStatus('mandatory')
snL4EnableRealServerUpTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableRealServerUpTrap.setStatus('mandatory')
snL4EnableRealServerDownTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableRealServerDownTrap.setStatus('mandatory')
snL4EnableRealServerPortUpTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableRealServerPortUpTrap.setStatus('mandatory')
snL4EnableRealServerPortDownTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableRealServerPortDownTrap.setStatus('mandatory')
snL4EnableRealServerMaxConnLimitReachedTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableRealServerMaxConnLimitReachedTrap.setStatus('mandatory')
snL4EnableBecomeStandbyTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 37), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableBecomeStandbyTrap.setStatus('mandatory')
snL4EnableBecomeActiveTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableBecomeActiveTrap.setStatus('mandatory')
snL4slbRouterInterfacePortMask = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 39), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4slbRouterInterfacePortMask.setStatus('deprecated')
snL4MaxNumWebCacheGroup = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 40), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4MaxNumWebCacheGroup.setStatus('mandatory')
snL4MaxNumWebCachePerGroup = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 41), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4MaxNumWebCachePerGroup.setStatus('mandatory')
snL4WebCacheStateful = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 42), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheStateful.setStatus('mandatory')
snL4EnableGslbHealthCheckIpUpTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 43), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableGslbHealthCheckIpUpTrap.setStatus('mandatory')
snL4EnableGslbHealthCheckIpDownTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableGslbHealthCheckIpDownTrap.setStatus('mandatory')
snL4EnableGslbHealthCheckIpPortUpTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableGslbHealthCheckIpPortUpTrap.setStatus('mandatory')
snL4EnableGslbHealthCheckIpPortDownTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 46), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableGslbHealthCheckIpPortDownTrap.setStatus('mandatory')
snL4EnableGslbRemoteGslbSiDownTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 47), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableGslbRemoteGslbSiDownTrap.setStatus('mandatory')
snL4EnableGslbRemoteGslbSiUpTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 48), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableGslbRemoteGslbSiUpTrap.setStatus('mandatory')
snL4EnableGslbRemoteSiDownTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 49), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableGslbRemoteSiDownTrap.setStatus('mandatory')
snL4EnableGslbRemoteSiUpTrap = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4EnableGslbRemoteSiUpTrap.setStatus('mandatory')
snL4slbRouterInterfacePortList = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 1, 51), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4slbRouterInterfacePortList.setStatus('mandatory')
snL4VirtualServerTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1), )
if mibBuilder.loadTexts: snL4VirtualServerTable.setStatus('mandatory')
snL4VirtualServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerIndex"))
if mibBuilder.loadTexts: snL4VirtualServerEntry.setStatus('mandatory')
snL4VirtualServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerIndex.setStatus('mandatory')
snL4VirtualServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerName.setStatus('mandatory')
snL4VirtualServerVirtualIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerVirtualIP.setStatus('mandatory')
snL4VirtualServerAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1, 1, 4), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerAdminStatus.setStatus('mandatory')
snL4VirtualServerSDAType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("default", 0), ("leastconnection", 1), ("roundrobin", 2), ("weighted", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerSDAType.setStatus('mandatory')
snL4VirtualServerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1, 1, 6), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerRowStatus.setStatus('mandatory')
snL4VirtualServerDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 2, 1, 1, 7), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerDeleteState.setStatus('mandatory')
snL4RealServerTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1), )
if mibBuilder.loadTexts: snL4RealServerTable.setStatus('mandatory')
snL4RealServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerIndex"))
if mibBuilder.loadTexts: snL4RealServerEntry.setStatus('mandatory')
snL4RealServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerIndex.setStatus('mandatory')
snL4RealServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerName.setStatus('mandatory')
snL4RealServerIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerIP.setStatus('mandatory')
snL4RealServerAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1, 4), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerAdminStatus.setStatus('mandatory')
snL4RealServerMaxConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerMaxConnections.setStatus('mandatory')
snL4RealServerWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerWeight.setStatus('mandatory')
snL4RealServerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1, 7), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerRowStatus.setStatus('mandatory')
snL4RealServerDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 3, 1, 1, 8), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerDeleteState.setStatus('mandatory')
snL4VirtualServerPortTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1), )
if mibBuilder.loadTexts: snL4VirtualServerPortTable.setStatus('mandatory')
snL4VirtualServerPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortIndex"))
if mibBuilder.loadTexts: snL4VirtualServerPortEntry.setStatus('mandatory')
snL4VirtualServerPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortIndex.setStatus('mandatory')
snL4VirtualServerPortServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortServerName.setStatus('mandatory')
snL4VirtualServerPortPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortPort.setStatus('mandatory')
snL4VirtualServerPortAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1, 4), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortAdminStatus.setStatus('mandatory')
snL4VirtualServerPortSticky = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortSticky.setStatus('mandatory')
snL4VirtualServerPortConcurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortConcurrent.setStatus('mandatory')
snL4VirtualServerPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1, 7), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortRowStatus.setStatus('mandatory')
snL4VirtualServerPortDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 4, 1, 1, 8), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortDeleteState.setStatus('mandatory')
snL4RealServerPortTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5, 1), )
if mibBuilder.loadTexts: snL4RealServerPortTable.setStatus('mandatory')
snL4RealServerPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortIndex"))
if mibBuilder.loadTexts: snL4RealServerPortEntry.setStatus('mandatory')
snL4RealServerPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortIndex.setStatus('mandatory')
snL4RealServerPortServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortServerName.setStatus('mandatory')
snL4RealServerPortPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortPort.setStatus('mandatory')
snL4RealServerPortAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5, 1, 1, 4), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortAdminStatus.setStatus('mandatory')
snL4RealServerPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5, 1, 1, 5), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortRowStatus.setStatus('mandatory')
snL4RealServerPortDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 5, 1, 1, 6), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortDeleteState.setStatus('mandatory')
snL4BindTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6, 1), )
if mibBuilder.loadTexts: snL4BindTable.setStatus('mandatory')
snL4BindEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4BindIndex"))
if mibBuilder.loadTexts: snL4BindEntry.setStatus('mandatory')
snL4BindIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4BindIndex.setStatus('mandatory')
snL4BindVirtualServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4BindVirtualServerName.setStatus('mandatory')
snL4BindVirtualPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4BindVirtualPortNumber.setStatus('mandatory')
snL4BindRealServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6, 1, 1, 4), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4BindRealServerName.setStatus('mandatory')
snL4BindRealPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4BindRealPortNumber.setStatus('mandatory')
snL4BindRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("valid", 2), ("delete", 3), ("create", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4BindRowStatus.setStatus('mandatory')
snL4VirtualServerStatusTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 7, 1), )
if mibBuilder.loadTexts: snL4VirtualServerStatusTable.setStatus('mandatory')
snL4VirtualServerStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 7, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerStatusIndex"))
if mibBuilder.loadTexts: snL4VirtualServerStatusEntry.setStatus('mandatory')
snL4VirtualServerStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 7, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatusIndex.setStatus('mandatory')
snL4VirtualServerStatusName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 7, 1, 1, 2), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatusName.setStatus('mandatory')
snL4VirtualServerStatusReceivePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 7, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatusReceivePkts.setStatus('mandatory')
snL4VirtualServerStatusTransmitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 7, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatusTransmitPkts.setStatus('mandatory')
snL4VirtualServerStatusTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 7, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatusTotalConnections.setStatus('mandatory')
snL4RealServerStatusTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1), )
if mibBuilder.loadTexts: snL4RealServerStatusTable.setStatus('mandatory')
snL4RealServerStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerStatusIndex"))
if mibBuilder.loadTexts: snL4RealServerStatusEntry.setStatus('mandatory')
snL4RealServerStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusIndex.setStatus('mandatory')
snL4RealServerStatusName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 2), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusName.setStatus('mandatory')
snL4RealServerStatusRealIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusRealIP.setStatus('mandatory')
snL4RealServerStatusReceivePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusReceivePkts.setStatus('mandatory')
snL4RealServerStatusTransmitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusTransmitPkts.setStatus('mandatory')
snL4RealServerStatusCurConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusCurConnections.setStatus('mandatory')
snL4RealServerStatusTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusTotalConnections.setStatus('mandatory')
snL4RealServerStatusAge = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusAge.setStatus('mandatory')
snL4RealServerStatusState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("serverdisabled", 0), ("serverenabled", 1), ("serverfailed", 2), ("servertesting", 3), ("serversuspect", 4), ("servershutdown", 5), ("serveractive", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusState.setStatus('mandatory')
snL4RealServerStatusReassignments = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusReassignments.setStatus('mandatory')
snL4RealServerStatusReassignmentLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusReassignmentLimit.setStatus('mandatory')
snL4RealServerStatusFailedPortExists = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusFailedPortExists.setStatus('mandatory')
snL4RealServerStatusFailTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusFailTime.setStatus('mandatory')
snL4RealServerStatusPeakConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 8, 1, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatusPeakConnections.setStatus('mandatory')
snL4VirtualServerPortStatusTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9, 1), )
if mibBuilder.loadTexts: snL4VirtualServerPortStatusTable.setStatus('mandatory')
snL4VirtualServerPortStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortStatusIndex"))
if mibBuilder.loadTexts: snL4VirtualServerPortStatusEntry.setStatus('mandatory')
snL4VirtualServerPortStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatusIndex.setStatus('mandatory')
snL4VirtualServerPortStatusPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatusPort.setStatus('mandatory')
snL4VirtualServerPortStatusServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9, 1, 1, 3), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatusServerName.setStatus('mandatory')
snL4VirtualServerPortStatusCurrentConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatusCurrentConnection.setStatus('mandatory')
snL4VirtualServerPortStatusTotalConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatusTotalConnection.setStatus('mandatory')
snL4VirtualServerPortStatusPeakConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 9, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatusPeakConnection.setStatus('mandatory')
snL4RealServerPortStatusTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1), )
if mibBuilder.loadTexts: snL4RealServerPortStatusTable.setStatus('mandatory')
snL4RealServerPortStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortStatusIndex"))
if mibBuilder.loadTexts: snL4RealServerPortStatusEntry.setStatus('mandatory')
snL4RealServerPortStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusIndex.setStatus('mandatory')
snL4RealServerPortStatusPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusPort.setStatus('mandatory')
snL4RealServerPortStatusServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 3), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusServerName.setStatus('mandatory')
snL4RealServerPortStatusReassignCount = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusReassignCount.setStatus('mandatory')
snL4RealServerPortStatusState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1), ("failed", 2), ("testing", 3), ("suspect", 4), ("shutdown", 5), ("active", 6), ("unbound", 7), ("awaitUnbind", 8), ("awaitDelete", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusState.setStatus('mandatory')
snL4RealServerPortStatusFailTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusFailTime.setStatus('mandatory')
snL4RealServerPortStatusCurrentConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusCurrentConnection.setStatus('mandatory')
snL4RealServerPortStatusTotalConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusTotalConnection.setStatus('mandatory')
snL4RealServerPortStatusRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusRxPkts.setStatus('mandatory')
snL4RealServerPortStatusTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusTxPkts.setStatus('mandatory')
snL4RealServerPortStatusRxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusRxBytes.setStatus('mandatory')
snL4RealServerPortStatusTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusTxBytes.setStatus('mandatory')
snL4RealServerPortStatusPeakConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 10, 1, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatusPeakConnection.setStatus('mandatory')
snL4PolicyTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11, 1), )
if mibBuilder.loadTexts: snL4PolicyTable.setStatus('mandatory')
snL4PolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4PolicyId"))
if mibBuilder.loadTexts: snL4PolicyEntry.setStatus('mandatory')
snL4PolicyId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4PolicyId.setStatus('mandatory')
snL4PolicyPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("level0", 0), ("level1", 1), ("level2", 2), ("level3", 3), ("level4", 4), ("level5", 5), ("level6", 6), ("level7", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PolicyPriority.setStatus('mandatory')
snL4PolicyScope = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("global", 0), ("local", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PolicyScope.setStatus('mandatory')
snL4PolicyProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("udp", 0), ("tcp", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PolicyProtocol.setStatus('mandatory')
snL4PolicyPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PolicyPort.setStatus('mandatory')
snL4PolicyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 11, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2), ("delete", 3), ("create", 4), ("modify", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PolicyRowStatus.setStatus('mandatory')
snL4PolicyPortAccessTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 12, 1), )
if mibBuilder.loadTexts: snL4PolicyPortAccessTable.setStatus('mandatory')
snL4PolicyPortAccessEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 12, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4PolicyPortAccessPort"))
if mibBuilder.loadTexts: snL4PolicyPortAccessEntry.setStatus('mandatory')
snL4PolicyPortAccessPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 12, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4PolicyPortAccessPort.setStatus('mandatory')
snL4PolicyPortAccessList = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 12, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PolicyPortAccessList.setStatus('mandatory')
snL4PolicyPortAccessRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 12, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2), ("delete", 3), ("create", 4), ("modify", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4PolicyPortAccessRowStatus.setStatus('mandatory')
snL4TrapRealServerIP = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 13, 1), IpAddress())
if mibBuilder.loadTexts: snL4TrapRealServerIP.setStatus('mandatory')
snL4TrapRealServerName = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 13, 2), L4ServerName())
if mibBuilder.loadTexts: snL4TrapRealServerName.setStatus('mandatory')
snL4TrapRealServerPort = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 13, 3), Integer32())
if mibBuilder.loadTexts: snL4TrapRealServerPort.setStatus('mandatory')
snL4TrapRealServerCurConnections = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 13, 4), Integer32())
if mibBuilder.loadTexts: snL4TrapRealServerCurConnections.setStatus('mandatory')
snL4WebCacheTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1), )
if mibBuilder.loadTexts: snL4WebCacheTable.setStatus('mandatory')
snL4WebCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4WebCacheIP"))
if mibBuilder.loadTexts: snL4WebCacheEntry.setStatus('mandatory')
snL4WebCacheIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheIP.setStatus('mandatory')
snL4WebCacheName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheName.setStatus('mandatory')
snL4WebCacheAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1, 1, 3), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheAdminStatus.setStatus('mandatory')
snL4WebCacheMaxConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheMaxConnections.setStatus('mandatory')
snL4WebCacheWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheWeight.setStatus('mandatory')
snL4WebCacheRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1, 1, 6), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheRowStatus.setStatus('mandatory')
snL4WebCacheDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 14, 1, 1, 7), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheDeleteState.setStatus('mandatory')
snL4WebCacheGroupTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1), )
if mibBuilder.loadTexts: snL4WebCacheGroupTable.setStatus('mandatory')
snL4WebCacheGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4WebCacheGroupId"))
if mibBuilder.loadTexts: snL4WebCacheGroupEntry.setStatus('mandatory')
snL4WebCacheGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheGroupId.setStatus('mandatory')
snL4WebCacheGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheGroupName.setStatus('mandatory')
snL4WebCacheGroupWebCacheIpList = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1, 1, 3), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheGroupWebCacheIpList.setStatus('mandatory')
snL4WebCacheGroupDestMask = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheGroupDestMask.setStatus('mandatory')
snL4WebCacheGroupSrcMask = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheGroupSrcMask.setStatus('mandatory')
snL4WebCacheGroupAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheGroupAdminStatus.setStatus('mandatory')
snL4WebCacheGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 15, 1, 1, 7), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCacheGroupRowStatus.setStatus('mandatory')
snL4WebCacheTrafficStatsTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1), )
if mibBuilder.loadTexts: snL4WebCacheTrafficStatsTable.setStatus('mandatory')
snL4WebCacheTrafficStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4WebCacheTrafficIp"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4WebCacheTrafficPort"))
if mibBuilder.loadTexts: snL4WebCacheTrafficStatsEntry.setStatus('mandatory')
snL4WebCacheTrafficIp = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheTrafficIp.setStatus('mandatory')
snL4WebCacheTrafficPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheTrafficPort.setStatus('mandatory')
snL4WebCacheCurrConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheCurrConnections.setStatus('mandatory')
snL4WebCacheTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheTotalConnections.setStatus('mandatory')
snL4WebCacheTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheTxPkts.setStatus('mandatory')
snL4WebCacheRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheRxPkts.setStatus('mandatory')
snL4WebCacheTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheTxOctets.setStatus('mandatory')
snL4WebCacheRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCacheRxOctets.setStatus('mandatory')
snL4WebCachePortState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 16, 1, 1, 9), WebCacheState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCachePortState.setStatus('mandatory')
snL4WebUncachedTrafficStatsTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1), )
if mibBuilder.loadTexts: snL4WebUncachedTrafficStatsTable.setStatus('mandatory')
snL4WebUncachedTrafficStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4WebServerPort"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4WebClientPort"))
if mibBuilder.loadTexts: snL4WebUncachedTrafficStatsEntry.setStatus('mandatory')
snL4WebServerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebServerPort.setStatus('mandatory')
snL4WebClientPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebClientPort.setStatus('mandatory')
snL4WebUncachedTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebUncachedTxPkts.setStatus('mandatory')
snL4WebUncachedRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebUncachedRxPkts.setStatus('mandatory')
snL4WebUncachedTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebUncachedTxOctets.setStatus('mandatory')
snL4WebUncachedRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebUncachedRxOctets.setStatus('mandatory')
snL4WebServerPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebServerPortName.setStatus('mandatory')
snL4WebClientPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 17, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebClientPortName.setStatus('mandatory')
snL4WebCachePortTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 18, 1), )
if mibBuilder.loadTexts: snL4WebCachePortTable.setStatus('mandatory')
snL4WebCachePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 18, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4WebCachePortServerIp"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4WebCachePortPort"))
if mibBuilder.loadTexts: snL4WebCachePortEntry.setStatus('mandatory')
snL4WebCachePortServerIp = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 18, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCachePortServerIp.setStatus('mandatory')
snL4WebCachePortPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 18, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCachePortPort.setStatus('mandatory')
snL4WebCachePortAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 18, 1, 1, 3), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCachePortAdminStatus.setStatus('mandatory')
snL4WebCachePortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 18, 1, 1, 4), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4WebCachePortRowStatus.setStatus('mandatory')
snL4WebCachePortDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 18, 1, 1, 5), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4WebCachePortDeleteState.setStatus('mandatory')
snL4RealServerCfgTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1), )
if mibBuilder.loadTexts: snL4RealServerCfgTable.setStatus('mandatory')
snL4RealServerCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerCfgIP"))
if mibBuilder.loadTexts: snL4RealServerCfgEntry.setStatus('mandatory')
snL4RealServerCfgIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerCfgIP.setStatus('mandatory')
snL4RealServerCfgName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerCfgName.setStatus('mandatory')
snL4RealServerCfgAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1, 1, 3), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerCfgAdminStatus.setStatus('mandatory')
snL4RealServerCfgMaxConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerCfgMaxConnections.setStatus('mandatory')
snL4RealServerCfgWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerCfgWeight.setStatus('mandatory')
snL4RealServerCfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1, 1, 6), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerCfgRowStatus.setStatus('mandatory')
snL4RealServerCfgDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 19, 1, 1, 7), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerCfgDeleteState.setStatus('mandatory')
snL4RealServerPortCfgTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20, 1), )
if mibBuilder.loadTexts: snL4RealServerPortCfgTable.setStatus('mandatory')
snL4RealServerPortCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortCfgIP"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortCfgPort"))
if mibBuilder.loadTexts: snL4RealServerPortCfgEntry.setStatus('mandatory')
snL4RealServerPortCfgIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortCfgIP.setStatus('mandatory')
snL4RealServerPortCfgPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortCfgPort.setStatus('mandatory')
snL4RealServerPortCfgServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20, 1, 1, 2), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortCfgServerName.setStatus('mandatory')
snL4RealServerPortCfgAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20, 1, 1, 4), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortCfgAdminStatus.setStatus('mandatory')
snL4RealServerPortCfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20, 1, 1, 5), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortCfgRowStatus.setStatus('mandatory')
snL4RealServerPortCfgDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 20, 1, 1, 6), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortCfgDeleteState.setStatus('mandatory')
snL4VirtualServerCfgTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21, 1), )
if mibBuilder.loadTexts: snL4VirtualServerCfgTable.setStatus('mandatory')
snL4VirtualServerCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerCfgVirtualIP"))
if mibBuilder.loadTexts: snL4VirtualServerCfgEntry.setStatus('mandatory')
snL4VirtualServerCfgVirtualIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerCfgVirtualIP.setStatus('mandatory')
snL4VirtualServerCfgName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21, 1, 1, 2), L4ServerName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerCfgName.setStatus('mandatory')
snL4VirtualServerCfgAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21, 1, 1, 3), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerCfgAdminStatus.setStatus('mandatory')
snL4VirtualServerCfgSDAType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("default", 0), ("leastconnection", 1), ("roundrobin", 2), ("weighted", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerCfgSDAType.setStatus('mandatory')
snL4VirtualServerCfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21, 1, 1, 5), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerCfgRowStatus.setStatus('mandatory')
snL4VirtualServerCfgDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 21, 1, 1, 6), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerCfgDeleteState.setStatus('mandatory')
snL4VirtualServerPortCfgTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1), )
if mibBuilder.loadTexts: snL4VirtualServerPortCfgTable.setStatus('mandatory')
snL4VirtualServerPortCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortCfgIP"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortCfgPort"))
if mibBuilder.loadTexts: snL4VirtualServerPortCfgEntry.setStatus('mandatory')
snL4VirtualServerPortCfgIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortCfgIP.setStatus('mandatory')
snL4VirtualServerPortCfgPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortCfgPort.setStatus('mandatory')
snL4VirtualServerPortCfgServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1, 3), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortCfgServerName.setStatus('mandatory')
snL4VirtualServerPortCfgAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1, 4), L4Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortCfgAdminStatus.setStatus('mandatory')
snL4VirtualServerPortCfgSticky = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortCfgSticky.setStatus('mandatory')
snL4VirtualServerPortCfgConcurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortCfgConcurrent.setStatus('mandatory')
snL4VirtualServerPortCfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1, 7), L4RowSts()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortCfgRowStatus.setStatus('mandatory')
snL4VirtualServerPortCfgDeleteState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 22, 1, 1, 8), L4DeleteState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortCfgDeleteState.setStatus('mandatory')
snL4VirtualServerStatisticTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1), )
if mibBuilder.loadTexts: snL4VirtualServerStatisticTable.setStatus('mandatory')
snL4VirtualServerStatisticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerStatisticIP"))
if mibBuilder.loadTexts: snL4VirtualServerStatisticEntry.setStatus('mandatory')
snL4VirtualServerStatisticIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticIP.setStatus('mandatory')
snL4VirtualServerStatisticName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 2), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticName.setStatus('mandatory')
snL4VirtualServerStatisticReceivePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticReceivePkts.setStatus('mandatory')
snL4VirtualServerStatisticTransmitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticTransmitPkts.setStatus('mandatory')
snL4VirtualServerStatisticTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticTotalConnections.setStatus('mandatory')
snL4VirtualServerStatisticReceiveBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticReceiveBytes.setStatus('mandatory')
snL4VirtualServerStatisticTransmitBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 7), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticTransmitBytes.setStatus('mandatory')
snL4VirtualServerStatisticSymmetricState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticSymmetricState.setStatus('mandatory')
snL4VirtualServerStatisticSymmetricPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticSymmetricPriority.setStatus('mandatory')
snL4VirtualServerStatisticSymmetricKeep = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticSymmetricKeep.setStatus('mandatory')
snL4VirtualServerStatisticSymmetricActivates = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticSymmetricActivates.setStatus('mandatory')
snL4VirtualServerStatisticSymmetricInactives = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticSymmetricInactives.setStatus('mandatory')
snL4VirtualServerStatisticSymmetricBestStandbyMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 13), PhysAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticSymmetricBestStandbyMacAddr.setStatus('mandatory')
snL4VirtualServerStatisticSymmetricActiveMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 25, 1, 1, 14), PhysAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerStatisticSymmetricActiveMacAddr.setStatus('mandatory')
snL4RealServerStatisticTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1), )
if mibBuilder.loadTexts: snL4RealServerStatisticTable.setStatus('mandatory')
snL4RealServerStatisticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerStatisticRealIP"))
if mibBuilder.loadTexts: snL4RealServerStatisticEntry.setStatus('mandatory')
snL4RealServerStatisticRealIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticRealIP.setStatus('mandatory')
snL4RealServerStatisticName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 2), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticName.setStatus('mandatory')
snL4RealServerStatisticReceivePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticReceivePkts.setStatus('mandatory')
snL4RealServerStatisticTransmitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticTransmitPkts.setStatus('mandatory')
snL4RealServerStatisticCurConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticCurConnections.setStatus('mandatory')
snL4RealServerStatisticTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticTotalConnections.setStatus('mandatory')
snL4RealServerStatisticAge = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticAge.setStatus('mandatory')
snL4RealServerStatisticState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("serverdisabled", 0), ("serverenabled", 1), ("serverfailed", 2), ("servertesting", 3), ("serversuspect", 4), ("servershutdown", 5), ("serveractive", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticState.setStatus('mandatory')
snL4RealServerStatisticReassignments = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticReassignments.setStatus('mandatory')
snL4RealServerStatisticReassignmentLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticReassignmentLimit.setStatus('mandatory')
snL4RealServerStatisticFailedPortExists = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticFailedPortExists.setStatus('mandatory')
snL4RealServerStatisticFailTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticFailTime.setStatus('mandatory')
snL4RealServerStatisticPeakConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 23, 1, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerStatisticPeakConnections.setStatus('mandatory')
snL4VirtualServerPortStatisticTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26, 1), )
if mibBuilder.loadTexts: snL4VirtualServerPortStatisticTable.setStatus('mandatory')
snL4VirtualServerPortStatisticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortStatisticIP"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortStatisticPort"))
if mibBuilder.loadTexts: snL4VirtualServerPortStatisticEntry.setStatus('mandatory')
snL4VirtualServerPortStatisticIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatisticIP.setStatus('mandatory')
snL4VirtualServerPortStatisticPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatisticPort.setStatus('mandatory')
snL4VirtualServerPortStatisticServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26, 1, 1, 3), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatisticServerName.setStatus('mandatory')
snL4VirtualServerPortStatisticCurrentConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatisticCurrentConnection.setStatus('mandatory')
snL4VirtualServerPortStatisticTotalConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatisticTotalConnection.setStatus('mandatory')
snL4VirtualServerPortStatisticPeakConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 26, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortStatisticPeakConnection.setStatus('mandatory')
snL4RealServerPortStatisticTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1), )
if mibBuilder.loadTexts: snL4RealServerPortStatisticTable.setStatus('mandatory')
snL4RealServerPortStatisticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortStatisticIP"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortStatisticPort"))
if mibBuilder.loadTexts: snL4RealServerPortStatisticEntry.setStatus('mandatory')
snL4RealServerPortStatisticIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticIP.setStatus('mandatory')
snL4RealServerPortStatisticPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticPort.setStatus('mandatory')
snL4RealServerPortStatisticServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 3), L4ServerName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticServerName.setStatus('mandatory')
snL4RealServerPortStatisticReassignCount = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticReassignCount.setStatus('mandatory')
snL4RealServerPortStatisticState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1), ("failed", 2), ("testing", 3), ("suspect", 4), ("shutdown", 5), ("active", 6), ("unbound", 7), ("awaitUnbind", 8), ("awaitDelete", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticState.setStatus('mandatory')
snL4RealServerPortStatisticFailTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticFailTime.setStatus('mandatory')
snL4RealServerPortStatisticCurrentConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticCurrentConnection.setStatus('mandatory')
snL4RealServerPortStatisticTotalConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticTotalConnection.setStatus('mandatory')
snL4RealServerPortStatisticRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticRxPkts.setStatus('mandatory')
snL4RealServerPortStatisticTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticTxPkts.setStatus('mandatory')
snL4RealServerPortStatisticRxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticRxBytes.setStatus('mandatory')
snL4RealServerPortStatisticTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticTxBytes.setStatus('mandatory')
snL4RealServerPortStatisticPeakConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 24, 1, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortStatisticPeakConnection.setStatus('mandatory')
snL4GslbSiteRemoteServerIronTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 27, 1), )
if mibBuilder.loadTexts: snL4GslbSiteRemoteServerIronTable.setStatus('mandatory')
snL4GslbSiteRemoteServerIronEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 27, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4GslbSiteRemoteServerIronIP"))
if mibBuilder.loadTexts: snL4GslbSiteRemoteServerIronEntry.setStatus('mandatory')
snL4GslbSiteRemoteServerIronIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 27, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4GslbSiteRemoteServerIronIP.setStatus('mandatory')
snL4GslbSiteRemoteServerIronPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 27, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(128)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4GslbSiteRemoteServerIronPreference.setStatus('mandatory')
snL4RealServerHistoryControlTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1), )
if mibBuilder.loadTexts: snL4RealServerHistoryControlTable.setStatus('mandatory')
snL4RealServerHistoryControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerHistoryControlIndex"))
if mibBuilder.loadTexts: snL4RealServerHistoryControlEntry.setStatus('mandatory')
snL4RealServerHistoryControlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryControlIndex.setStatus('mandatory')
snL4RealServerHistoryControlDataSource = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1, 1, 2), ObjectIdentifier()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerHistoryControlDataSource.setStatus('mandatory')
snL4RealServerHistoryControlBucketsRequested = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(50)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerHistoryControlBucketsRequested.setStatus('mandatory')
snL4RealServerHistoryControlBucketsGranted = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryControlBucketsGranted.setStatus('mandatory')
snL4RealServerHistoryControlInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3600)).clone(1800)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerHistoryControlInterval.setStatus('mandatory')
snL4RealServerHistoryControlOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerHistoryControlOwner.setStatus('mandatory')
snL4RealServerHistoryControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("valid", 1), ("createRequest", 2), ("underCreation", 3), ("invalid", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerHistoryControlStatus.setStatus('mandatory')
snL4RealServerHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2), )
if mibBuilder.loadTexts: snL4RealServerHistoryTable.setStatus('mandatory')
snL4RealServerHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerHistoryIndex"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerHistorySampleIndex"))
if mibBuilder.loadTexts: snL4RealServerHistoryEntry.setStatus('mandatory')
snL4RealServerHistoryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryIndex.setStatus('mandatory')
snL4RealServerHistorySampleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistorySampleIndex.setStatus('mandatory')
snL4RealServerHistoryIntervalStart = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryIntervalStart.setStatus('mandatory')
snL4RealServerHistoryReceivePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryReceivePkts.setStatus('mandatory')
snL4RealServerHistoryTransmitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryTransmitPkts.setStatus('mandatory')
snL4RealServerHistoryTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryTotalConnections.setStatus('mandatory')
snL4RealServerHistoryCurConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryCurConnections.setStatus('mandatory')
snL4RealServerHistoryPeakConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryPeakConnections.setStatus('mandatory')
snL4RealServerHistoryReassignments = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 2, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerHistoryReassignments.setStatus('mandatory')
snL4RealServerPortHistoryControlTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3), )
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlTable.setStatus('mandatory')
snL4RealServerPortHistoryControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortHistoryControlIndex"))
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlEntry.setStatus('mandatory')
snL4RealServerPortHistoryControlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlIndex.setStatus('mandatory')
snL4RealServerPortHistoryControlDataSource = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3, 1, 2), ObjectIdentifier()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlDataSource.setStatus('mandatory')
snL4RealServerPortHistoryControlBucketsRequested = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(50)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlBucketsRequested.setStatus('mandatory')
snL4RealServerPortHistoryControlBucketsGranted = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlBucketsGranted.setStatus('mandatory')
snL4RealServerPortHistoryControlInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3600)).clone(1800)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlInterval.setStatus('mandatory')
snL4RealServerPortHistoryControlOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlOwner.setStatus('mandatory')
snL4RealServerPortHistoryControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("valid", 1), ("createRequest", 2), ("underCreation", 3), ("invalid", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4RealServerPortHistoryControlStatus.setStatus('mandatory')
snL4RealServerPortHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4), )
if mibBuilder.loadTexts: snL4RealServerPortHistoryTable.setStatus('mandatory')
snL4RealServerPortHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortHistoryIndex"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4RealServerPortHistorySampleIndex"))
if mibBuilder.loadTexts: snL4RealServerPortHistoryEntry.setStatus('mandatory')
snL4RealServerPortHistoryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryIndex.setStatus('mandatory')
snL4RealServerPortHistorySampleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistorySampleIndex.setStatus('mandatory')
snL4RealServerPortHistoryIntervalStart = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryIntervalStart.setStatus('mandatory')
snL4RealServerPortHistoryReceivePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryReceivePkts.setStatus('mandatory')
snL4RealServerPortHistoryTransmitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryTransmitPkts.setStatus('mandatory')
snL4RealServerPortHistoryTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryTotalConnections.setStatus('mandatory')
snL4RealServerPortHistoryCurConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryCurConnections.setStatus('mandatory')
snL4RealServerPortHistoryPeakConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryPeakConnections.setStatus('mandatory')
snL4RealServerPortHistoryResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 4, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4RealServerPortHistoryResponseTime.setStatus('mandatory')
snL4VirtualServerHistoryControlTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5), )
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlTable.setStatus('mandatory')
snL4VirtualServerHistoryControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerHistoryControlIndex"))
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlEntry.setStatus('mandatory')
snL4VirtualServerHistoryControlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlIndex.setStatus('mandatory')
snL4VirtualServerHistoryControlDataSource = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5, 1, 2), ObjectIdentifier()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlDataSource.setStatus('mandatory')
snL4VirtualServerHistoryControlBucketsRequested = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(50)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlBucketsRequested.setStatus('mandatory')
snL4VirtualServerHistoryControlBucketsGranted = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlBucketsGranted.setStatus('mandatory')
snL4VirtualServerHistoryControlInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3600)).clone(1800)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlInterval.setStatus('mandatory')
snL4VirtualServerHistoryControlOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlOwner.setStatus('mandatory')
snL4VirtualServerHistoryControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("valid", 1), ("createRequest", 2), ("underCreation", 3), ("invalid", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerHistoryControlStatus.setStatus('mandatory')
snL4VirtualServerHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6), )
if mibBuilder.loadTexts: snL4VirtualServerHistoryTable.setStatus('mandatory')
snL4VirtualServerHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerHistoryIndex"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerHistorySampleIndex"))
if mibBuilder.loadTexts: snL4VirtualServerHistoryEntry.setStatus('mandatory')
snL4VirtualServerHistoryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryIndex.setStatus('mandatory')
snL4VirtualServerHistorySampleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistorySampleIndex.setStatus('mandatory')
snL4VirtualServerHistoryIntervalStart = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryIntervalStart.setStatus('mandatory')
snL4VirtualServerHistoryReceivePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryReceivePkts.setStatus('mandatory')
snL4VirtualServerHistoryTransmitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryTransmitPkts.setStatus('mandatory')
snL4VirtualServerHistoryTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryTotalConnections.setStatus('mandatory')
snL4VirtualServerHistoryCurConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryCurConnections.setStatus('mandatory')
snL4VirtualServerHistoryPeakConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 6, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerHistoryPeakConnections.setStatus('mandatory')
snL4VirtualServerPortHistoryControlTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7), )
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlTable.setStatus('mandatory')
snL4VirtualServerPortHistoryControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortHistoryControlIndex"))
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlEntry.setStatus('mandatory')
snL4VirtualServerPortHistoryControlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlIndex.setStatus('mandatory')
snL4VirtualServerPortHistoryControlDataSource = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7, 1, 2), ObjectIdentifier()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlDataSource.setStatus('mandatory')
snL4VirtualServerPortHistoryControlBucketsRequested = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(50)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlBucketsRequested.setStatus('mandatory')
snL4VirtualServerPortHistoryControlBucketsGranted = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlBucketsGranted.setStatus('mandatory')
snL4VirtualServerPortHistoryControlInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3600)).clone(1800)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlInterval.setStatus('mandatory')
snL4VirtualServerPortHistoryControlOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlOwner.setStatus('mandatory')
snL4VirtualServerPortHistoryControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 7, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("valid", 1), ("createRequest", 2), ("underCreation", 3), ("invalid", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryControlStatus.setStatus('mandatory')
snL4VirtualServerPortHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8), )
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryTable.setStatus('mandatory')
snL4VirtualServerPortHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1), ).setIndexNames((0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortHistoryIndex"), (0, "HP-SN-SW-L4-SWITCH-GROUP-MIB", "snL4VirtualServerPortHistorySampleIndex"))
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryEntry.setStatus('mandatory')
snL4VirtualServerPortHistoryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryIndex.setStatus('mandatory')
snL4VirtualServerPortHistorySampleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistorySampleIndex.setStatus('mandatory')
snL4VirtualServerPortHistoryIntervalStart = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryIntervalStart.setStatus('mandatory')
snL4VirtualServerPortHistoryReceivePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryReceivePkts.setStatus('mandatory')
snL4VirtualServerPortHistoryTransmitPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryTransmitPkts.setStatus('mandatory')
snL4VirtualServerPortHistoryTotalConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryTotalConnections.setStatus('mandatory')
snL4VirtualServerPortHistoryCurConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryCurConnections.setStatus('mandatory')
snL4VirtualServerPortHistoryPeakConnections = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 1, 4, 28, 8, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snL4VirtualServerPortHistoryPeakConnections.setStatus('mandatory')
mibBuilder.exportSymbols("HP-SN-SW-L4-SWITCH-GROUP-MIB", snL4RealServerPortStatisticState=snL4RealServerPortStatisticState, snL4EnableRealServerDownTrap=snL4EnableRealServerDownTrap, snL4VirtualServerPortStatisticPort=snL4VirtualServerPortStatisticPort, snL4BindTable=snL4BindTable, snL4BackupMacAddr=snL4BackupMacAddr, snL4EnableGslbHealthCheckIpPortDownTrap=snL4EnableGslbHealthCheckIpPortDownTrap, snL4VirtualServerPortHistoryTransmitPkts=snL4VirtualServerPortHistoryTransmitPkts, snL4UdpAge=snL4UdpAge, L4Status=L4Status, snL4RealServerPortCfgServerName=snL4RealServerPortCfgServerName, snL4RealServerCfgMaxConnections=snL4RealServerCfgMaxConnections, snL4VirtualServerPort=snL4VirtualServerPort, snL4VirtualServerHistoryControlInterval=snL4VirtualServerHistoryControlInterval, snL4RealServerHistoryEntry=snL4RealServerHistoryEntry, snL4VirtualServerStatisticSymmetricInactives=snL4VirtualServerStatisticSymmetricInactives, snL4VirtualServerPortCfgRowStatus=snL4VirtualServerPortCfgRowStatus, snL4VirtualServerStatisticSymmetricBestStandbyMacAddr=snL4VirtualServerStatisticSymmetricBestStandbyMacAddr, snL4WebCacheTrafficStatsEntry=snL4WebCacheTrafficStatsEntry, snL4VirtualServerPortCfgEntry=snL4VirtualServerPortCfgEntry, snL4VirtualServerPortStatisticTable=snL4VirtualServerPortStatisticTable, snL4RealServerPortHistoryTotalConnections=snL4RealServerPortHistoryTotalConnections, snL4VirtualServerHistoryReceivePkts=snL4VirtualServerHistoryReceivePkts, snL4RealServerPortStatisticRxPkts=snL4RealServerPortStatisticRxPkts, PhysAddress=PhysAddress, snL4RealServerPortTable=snL4RealServerPortTable, snL4WebCacheGroup=snL4WebCacheGroup, snL4WebCachePortPort=snL4WebCachePortPort, snL4EnableGslbRemoteGslbSiUpTrap=snL4EnableGslbRemoteGslbSiUpTrap, snL4VirtualServerPortCfgPort=snL4VirtualServerPortCfgPort, snL4RealServerPortHistoryControlBucketsRequested=snL4RealServerPortHistoryControlBucketsRequested, snL4PolicyPortAccessTable=snL4PolicyPortAccessTable, snL4RealServerHistoryReassignments=snL4RealServerHistoryReassignments, snL4RealServerStatusFailTime=snL4RealServerStatusFailTime, snL4RealServerRowStatus=snL4RealServerRowStatus, snL4RealServerPortStatusRxPkts=snL4RealServerPortStatusRxPkts, snL4PolicyPriority=snL4PolicyPriority, snL4RealServerPortHistoryControlStatus=snL4RealServerPortHistoryControlStatus, L4DeleteState=L4DeleteState, snL4History=snL4History, snL4BecomeStandBy=snL4BecomeStandBy, snL4Gen=snL4Gen, snL4WebCachePortState=snL4WebCachePortState, snL4slbGlobalSDAType=snL4slbGlobalSDAType, snL4RealServerPortStatusTotalConnection=snL4RealServerPortStatusTotalConnection, snL4VirtualServerEntry=snL4VirtualServerEntry, snL4slbRouterInterfacePortMask=snL4slbRouterInterfacePortMask, snL4VirtualServerPortCfg=snL4VirtualServerPortCfg, snL4RealServerCfgDeleteState=snL4RealServerCfgDeleteState, snL4VirtualServerHistoryPeakConnections=snL4VirtualServerHistoryPeakConnections, snL4PolicyPort=snL4PolicyPort, snL4VirtualServerHistoryControlDataSource=snL4VirtualServerHistoryControlDataSource, snL4RealServerStatisticTotalConnections=snL4RealServerStatisticTotalConnections, snL4RealServerHistoryControlTable=snL4RealServerHistoryControlTable, snL4RealServerPortHistoryEntry=snL4RealServerPortHistoryEntry, snL4unsuccessfulConn=snL4unsuccessfulConn, snL4EnableRealServerMaxConnLimitReachedTrap=snL4EnableRealServerMaxConnLimitReachedTrap, snL4RealServerCfgWeight=snL4RealServerCfgWeight, snL4RealServerPortHistoryPeakConnections=snL4RealServerPortHistoryPeakConnections, snL4VirtualServerPortCfgIP=snL4VirtualServerPortCfgIP, snL4VirtualServerPortSticky=snL4VirtualServerPortSticky, snL4slbDrops=snL4slbDrops, L4Flag=L4Flag, snL4WebCacheRowStatus=snL4WebCacheRowStatus, snL4RealServerPortStatisticTable=snL4RealServerPortStatisticTable, snL4RealServerPortHistoryCurConnections=snL4RealServerPortHistoryCurConnections, snL4EnableGslbRemoteSiDownTrap=snL4EnableGslbRemoteSiDownTrap, snL4VirtualServerPortServerName=snL4VirtualServerPortServerName, snL4TrapRealServerPort=snL4TrapRealServerPort, snL4VirtualServerStatisticName=snL4VirtualServerStatisticName, snL4EnableBecomeActiveTrap=snL4EnableBecomeActiveTrap, snL4BindRealPortNumber=snL4BindRealPortNumber, snL4RealServerPortStatusPort=snL4RealServerPortStatusPort, snL4VirtualServerHistoryCurConnections=snL4VirtualServerHistoryCurConnections, snL4RealServerPortStatisticEntry=snL4RealServerPortStatisticEntry, snL4RealServerPortHistoryReceivePkts=snL4RealServerPortHistoryReceivePkts, snL4RealServerHistoryControlEntry=snL4RealServerHistoryControlEntry, snL4RealServerPort=snL4RealServerPort, snL4WebCacheGroupAdminStatus=snL4WebCacheGroupAdminStatus, snL4RealServerPortStatisticServerName=snL4RealServerPortStatisticServerName, snL4RealServerPortStatisticReassignCount=snL4RealServerPortStatisticReassignCount, snL4RealServerTable=snL4RealServerTable, snL4VirtualServerStatisticSymmetricActiveMacAddr=snL4VirtualServerStatisticSymmetricActiveMacAddr, snL4TrapRealServerIP=snL4TrapRealServerIP, snL4VirtualServerPortTable=snL4VirtualServerPortTable, snL4RealServerStatusState=snL4RealServerStatusState, snL4RealServerEntry=snL4RealServerEntry, snL4WebCacheTxPkts=snL4WebCacheTxPkts, snL4RealServerPortCfgAdminStatus=snL4RealServerPortCfgAdminStatus, snL4RealServerPortCfgTable=snL4RealServerPortCfgTable, snL4VirtualServerPortConcurrent=snL4VirtualServerPortConcurrent, snL4TrapRealServerName=snL4TrapRealServerName, snL4RealServerPortStatisticCurrentConnection=snL4RealServerPortStatisticCurrentConnection, snL4EnableBecomeStandbyTrap=snL4EnableBecomeStandbyTrap, snL4NoPDUSent=snL4NoPDUSent, snL4RealServerStatisticTable=snL4RealServerStatisticTable, snL4RealServerPortStatusState=snL4RealServerPortStatusState, snL4RealServerIndex=snL4RealServerIndex, snL4VirtualServerPortPort=snL4VirtualServerPortPort, snL4RealServerMaxConnections=snL4RealServerMaxConnections, snL4VirtualServerStatisticSymmetricKeep=snL4VirtualServerStatisticSymmetricKeep, snL4VirtualServerPortStatusServerName=snL4VirtualServerPortStatusServerName, snL4VirtualServerHistoryEntry=snL4VirtualServerHistoryEntry, snL4VirtualServerHistoryIndex=snL4VirtualServerHistoryIndex, snL4RealServerStatisticReceivePkts=snL4RealServerStatisticReceivePkts, snL4WebCacheTrafficIp=snL4WebCacheTrafficIp, snL4RealServerPortCfgDeleteState=snL4RealServerPortCfgDeleteState, snL4WebUncachedTrafficStatsEntry=snL4WebUncachedTrafficStatsEntry, snL4VirtualServerPortIndex=snL4VirtualServerPortIndex, snL4VirtualServerStatisticTransmitPkts=snL4VirtualServerStatisticTransmitPkts, snL4VirtualServerPortStatusTotalConnection=snL4VirtualServerPortStatusTotalConnection, snL4Backup=snL4Backup, snL4RealServerStatusCurConnections=snL4RealServerStatusCurConnections, snL4PolicyPortAccessEntry=snL4PolicyPortAccessEntry, snL4VirtualServerPortStatisticIP=snL4VirtualServerPortStatisticIP, snL4VirtualServerPortAdminStatus=snL4VirtualServerPortAdminStatus, snL4PolicyTable=snL4PolicyTable, snL4WebCacheGroupWebCacheIpList=snL4WebCacheGroupWebCacheIpList, snL4RealServerPortHistoryControlDataSource=snL4RealServerPortHistoryControlDataSource, snL4slbRouterInterfacePortList=snL4slbRouterInterfacePortList, snL4VirtualServerStatisticTotalConnections=snL4VirtualServerStatisticTotalConnections, snL4RealServerStatisticTransmitPkts=snL4RealServerStatisticTransmitPkts, snL4VirtualServerCfgTable=snL4VirtualServerCfgTable, snL4VirtualServerHistoryControlOwner=snL4VirtualServerHistoryControlOwner, snL4VirtualServerPortHistoryCurConnections=snL4VirtualServerPortHistoryCurConnections, snL4RealServerPortHistoryControlBucketsGranted=snL4RealServerPortHistoryControlBucketsGranted, snL4RealServerStatisticCurConnections=snL4RealServerStatisticCurConnections, snL4VirtualServerStatisticTransmitBytes=snL4VirtualServerStatisticTransmitBytes, snL4slbTotalConnections=snL4slbTotalConnections, snL4RealServerPortStatistic=snL4RealServerPortStatistic, snL4VirtualServerStatisticTable=snL4VirtualServerStatisticTable, snL4VirtualServerCfgDeleteState=snL4VirtualServerCfgDeleteState, snL4RealServerStatusTransmitPkts=snL4RealServerStatusTransmitPkts, snL4WebCacheTotalConnections=snL4WebCacheTotalConnections, snL4VirtualServerStatusIndex=snL4VirtualServerStatusIndex, snL4VirtualServerPortHistoryControlDataSource=snL4VirtualServerPortHistoryControlDataSource, snL4VirtualServerPortCfgSticky=snL4VirtualServerPortCfgSticky, snL4RealServerStatistic=snL4RealServerStatistic, snL4WebCacheGroupName=snL4WebCacheGroupName, snL4EnableGslbHealthCheckIpDownTrap=snL4EnableGslbHealthCheckIpDownTrap, snL4GslbSiteRemoteServerIronPreference=snL4GslbSiteRemoteServerIronPreference, snL4MaxNumWebCacheGroup=snL4MaxNumWebCacheGroup, snL4slbLimitExceeds=snL4slbLimitExceeds, snL4RealServerPortStatusTable=snL4RealServerPortStatusTable, snL4slbDangling=snL4slbDangling, snL4RealServerPortStatisticIP=snL4RealServerPortStatisticIP, snL4RealServerCfgTable=snL4RealServerCfgTable, snL4VirtualServerStatisticEntry=snL4VirtualServerStatisticEntry, snL4RealServerCfgEntry=snL4RealServerCfgEntry, snL4RealServerPortStatusFailTime=snL4RealServerPortStatusFailTime, snL4RealServerIP=snL4RealServerIP, snL4VirtualServerTable=snL4VirtualServerTable, snL4WebCacheMaxConnections=snL4WebCacheMaxConnections, snL4BindIndex=snL4BindIndex, snL4WebCacheGroupRowStatus=snL4WebCacheGroupRowStatus, snL4slbFinished=snL4slbFinished, snL4VirtualServerHistoryControlStatus=snL4VirtualServerHistoryControlStatus, snL4EnableRealServerPortDownTrap=snL4EnableRealServerPortDownTrap, snL4RealServerPortHistoryIntervalStart=snL4RealServerPortHistoryIntervalStart, snL4WebCacheEntry=snL4WebCacheEntry, snL4RealServerHistoryControlOwner=snL4RealServerHistoryControlOwner, snL4VirtualServerHistoryControlTable=snL4VirtualServerHistoryControlTable, snL4WebUncachedTrafficStatsTable=snL4WebUncachedTrafficStatsTable, snL4RealServerHistoryTotalConnections=snL4RealServerHistoryTotalConnections, snL4WebCacheStateful=snL4WebCacheStateful, snL4VirtualServerHistoryControlBucketsRequested=snL4VirtualServerHistoryControlBucketsRequested, snL4EnableGslbHealthCheckIpPortUpTrap=snL4EnableGslbHealthCheckIpPortUpTrap, snL4RealServerPortHistoryControlOwner=snL4RealServerPortHistoryControlOwner, snL4WebCacheAdminStatus=snL4WebCacheAdminStatus, snL4RealServerHistoryPeakConnections=snL4RealServerHistoryPeakConnections, snL4WebCachePortEntry=snL4WebCachePortEntry, snL4RealServerStatusReassignmentLimit=snL4RealServerStatusReassignmentLimit, snL4RealServerStatisticName=snL4RealServerStatisticName, snL4NoPDUCount=snL4NoPDUCount, snL4VirtualServerPortCfgAdminStatus=snL4VirtualServerPortCfgAdminStatus, snL4PingRetry=snL4PingRetry, snL4VirtualServerStatisticSymmetricState=snL4VirtualServerStatisticSymmetricState, snL4Bind=snL4Bind, snL4VirtualServerStatusTransmitPkts=snL4VirtualServerStatusTransmitPkts, snL4VirtualServerPortStatusEntry=snL4VirtualServerPortStatusEntry, snL4VirtualServerHistoryControlBucketsGranted=snL4VirtualServerHistoryControlBucketsGranted, snL4WebCacheGroupEntry=snL4WebCacheGroupEntry, snL4VirtualServerPortCfgDeleteState=snL4VirtualServerPortCfgDeleteState, snL4RealServerPortStatisticTotalConnection=snL4RealServerPortStatisticTotalConnection, snL4RealServerPortHistoryControlInterval=snL4RealServerPortHistoryControlInterval, snL4VirtualServerCfgName=snL4VirtualServerCfgName, snL4WebCachePortAdminStatus=snL4WebCachePortAdminStatus, snL4VirtualServerCfgVirtualIP=snL4VirtualServerCfgVirtualIP, snL4RealServerPortHistoryTable=snL4RealServerPortHistoryTable, snL4VirtualServerPortHistoryControlInterval=snL4VirtualServerPortHistoryControlInterval, snL4RealServerStatisticReassignmentLimit=snL4RealServerStatisticReassignmentLimit, snL4RealServerAdminStatus=snL4RealServerAdminStatus, snL4RealServerStatusReassignments=snL4RealServerStatusReassignments, snL4WebServerPort=snL4WebServerPort, snL4WebCacheTable=snL4WebCacheTable, snL4VirtualServerStatusEntry=snL4VirtualServerStatusEntry, snL4PolicyRowStatus=snL4PolicyRowStatus, snL4RealServerHistorySampleIndex=snL4RealServerHistorySampleIndex, snL4MaxNumWebCachePerGroup=snL4MaxNumWebCachePerGroup, snL4VirtualServerPortHistoryIntervalStart=snL4VirtualServerPortHistoryIntervalStart, snL4VirtualServerPortStatisticCurrentConnection=snL4VirtualServerPortStatisticCurrentConnection, snL4VirtualServerStatistic=snL4VirtualServerStatistic, snL4WebCacheCurrConnections=snL4WebCacheCurrConnections, snL4VirtualServerStatisticIP=snL4VirtualServerStatisticIP, snL4VirtualServerRowStatus=snL4VirtualServerRowStatus, snL4RealServerCfgRowStatus=snL4RealServerCfgRowStatus, snL4TcpAge=snL4TcpAge, snL4slbReverseTraffic=snL4slbReverseTraffic, snL4RealServerPortStatisticFailTime=snL4RealServerPortStatisticFailTime, snL4RealServerStatisticReassignments=snL4RealServerStatisticReassignments, snL4RealServerHistoryIndex=snL4RealServerHistoryIndex, snL4VirtualServerHistoryControlEntry=snL4VirtualServerHistoryControlEntry, snL4RealServerPortStatusRxBytes=snL4RealServerPortStatusRxBytes, snL4VirtualServerStatusName=snL4VirtualServerStatusName, snL4WebCacheIP=snL4WebCacheIP, snL4VirtualServerPortStatisticTotalConnection=snL4VirtualServerPortStatisticTotalConnection, snL4WebCacheTrafficPort=snL4WebCacheTrafficPort, snL4PolicyPortAccessPort=snL4PolicyPortAccessPort, snL4VirtualServerStatisticSymmetricPriority=snL4VirtualServerStatisticSymmetricPriority, snL4WebCacheRxOctets=snL4WebCacheRxOctets, snL4Active=snL4Active, snL4FreeSessionCount=snL4FreeSessionCount, snL4VirtualServerCfgSDAType=snL4VirtualServerCfgSDAType, snL4RealServerDeleteState=snL4RealServerDeleteState, snL4VirtualServerStatisticReceivePkts=snL4VirtualServerStatisticReceivePkts, snL4RealServerPortServerName=snL4RealServerPortServerName, snL4NoPortMap=snL4NoPortMap, snL4RealServerPortStatusReassignCount=snL4RealServerPortStatusReassignCount, snL4RealServerHistoryControlBucketsRequested=snL4RealServerHistoryControlBucketsRequested, snL4WebCacheGroupId=snL4WebCacheGroupId, snL4RealServerHistoryCurConnections=snL4RealServerHistoryCurConnections, snL4WebCachePortTable=snL4WebCachePortTable, snL4PolicyId=snL4PolicyId, snL4WebCacheTxOctets=snL4WebCacheTxOctets, WebCacheState=WebCacheState, snL4VirtualServerStatusTotalConnections=snL4VirtualServerStatusTotalConnections, snL4VirtualServerPortStatus=snL4VirtualServerPortStatus, snL4VirtualServerPortHistoryIndex=snL4VirtualServerPortHistoryIndex, snL4RealServerHistoryTable=snL4RealServerHistoryTable, snL4VirtualServerPortStatusCurrentConnection=snL4VirtualServerPortStatusCurrentConnection, snL4RealServerPortStatus=snL4RealServerPortStatus, snL4VirtualServerPortDeleteState=snL4VirtualServerPortDeleteState, snL4RealServerCfgAdminStatus=snL4RealServerCfgAdminStatus, snL4WebCacheTrafficStats=snL4WebCacheTrafficStats, snL4RealServerStatusFailedPortExists=snL4RealServerStatusFailedPortExists, snL4VirtualServerPortHistoryPeakConnections=snL4VirtualServerPortHistoryPeakConnections, snL4VirtualServerPortHistoryEntry=snL4VirtualServerPortHistoryEntry, snL4VirtualServerPortStatusTable=snL4VirtualServerPortStatusTable, snL4VirtualServerPortCfgConcurrent=snL4VirtualServerPortCfgConcurrent, snL4VirtualServerHistoryTotalConnections=snL4VirtualServerHistoryTotalConnections, snL4VirtualServerAdminStatus=snL4VirtualServerAdminStatus, snL4VirtualServerSDAType=snL4VirtualServerSDAType, snL4WebClientPortName=snL4WebClientPortName, snL4RealServerPortEntry=snL4RealServerPortEntry, snL4RealServerPortHistoryControlIndex=snL4RealServerPortHistoryControlIndex)
mibBuilder.exportSymbols("HP-SN-SW-L4-SWITCH-GROUP-MIB", snL4WebCachePort=snL4WebCachePort, snL4RealServerPortStatisticPort=snL4RealServerPortStatisticPort, snL4VirtualServerPortStatisticServerName=snL4VirtualServerPortStatisticServerName, snL4VirtualServerPortStatusPort=snL4VirtualServerPortStatusPort, snL4WebCacheGroupDestMask=snL4WebCacheGroupDestMask, snL4RealServerPortStatusIndex=snL4RealServerPortStatusIndex, snL4RealServerPortStatisticTxBytes=snL4RealServerPortStatisticTxBytes, snL4MaxSessionLimit=snL4MaxSessionLimit, snL4RealServerStatusTable=snL4RealServerStatusTable, snL4WebCacheWeight=snL4WebCacheWeight, snL4GslbSiteRemoteServerIrons=snL4GslbSiteRemoteServerIrons, snL4WebCachePortServerIp=snL4WebCachePortServerIp, snL4RealServerPortStatisticTxPkts=snL4RealServerPortStatisticTxPkts, snL4WebUncachedRxPkts=snL4WebUncachedRxPkts, snL4RealServerPortHistoryIndex=snL4RealServerPortHistoryIndex, snL4RealServerPortStatusServerName=snL4RealServerPortStatusServerName, snL4RealServerPortCfgEntry=snL4RealServerPortCfgEntry, snL4VirtualServerPortHistoryControlStatus=snL4VirtualServerPortHistoryControlStatus, snL4VirtualServerCfgEntry=snL4VirtualServerCfgEntry, snL4RealServerPortStatisticPeakConnection=snL4RealServerPortStatisticPeakConnection, snL4RealServerHistoryTransmitPkts=snL4RealServerHistoryTransmitPkts, snL4RealServerStatusName=snL4RealServerStatusName, snL4RealServerPortStatusTxPkts=snL4RealServerPortStatusTxPkts, snL4RealServerPortPort=snL4RealServerPortPort, snL4RealServerPortStatusTxBytes=snL4RealServerPortStatusTxBytes, snL4Redundancy=snL4Redundancy, L4RowSts=L4RowSts, snL4PolicyScope=snL4PolicyScope, snL4RealServerStatusRealIP=snL4RealServerStatusRealIP, snL4EnableGslbRemoteGslbSiDownTrap=snL4EnableGslbRemoteGslbSiDownTrap, snL4VirtualServerCfgRowStatus=snL4VirtualServerCfgRowStatus, snL4RealServerPortHistoryControlEntry=snL4RealServerPortHistoryControlEntry, snL4BackupInterface=snL4BackupInterface, snL4WebUncachedTxPkts=snL4WebUncachedTxPkts, snL4VirtualServerHistoryTable=snL4VirtualServerHistoryTable, snL4RealServerStatus=snL4RealServerStatus, snL4VirtualServerPortHistoryReceivePkts=snL4VirtualServerPortHistoryReceivePkts, snL4GslbSiteRemoteServerIronEntry=snL4GslbSiteRemoteServerIronEntry, snL4PolicyEntry=snL4PolicyEntry, snL4RealServerPortCfgRowStatus=snL4RealServerPortCfgRowStatus, snL4VirtualServerPortHistoryControlEntry=snL4VirtualServerPortHistoryControlEntry, snL4EnableRealServerPortUpTrap=snL4EnableRealServerPortUpTrap, snL4VirtualServerVirtualIP=snL4VirtualServerVirtualIP, snL4BindEntry=snL4BindEntry, snL4RealServerStatisticFailedPortExists=snL4RealServerStatisticFailedPortExists, snL4RealServerStatisticAge=snL4RealServerStatisticAge, snL4VirtualServerPortStatisticPeakConnection=snL4VirtualServerPortStatisticPeakConnection, snL4VirtualServerPortCfgTable=snL4VirtualServerPortCfgTable, snL4WebUncachedTxOctets=snL4WebUncachedTxOctets, snL4WebUncachedRxOctets=snL4WebUncachedRxOctets, snL4WebCacheName=snL4WebCacheName, snL4EnableRealServerUpTrap=snL4EnableRealServerUpTrap, snL4RealServerPortCfgIP=snL4RealServerPortCfgIP, snL4VirtualServer=snL4VirtualServer, snL4VirtualServerStatusReceivePkts=snL4VirtualServerStatusReceivePkts, snL4VirtualServerCfgAdminStatus=snL4VirtualServerCfgAdminStatus, snL4RealServerPortHistoryTransmitPkts=snL4RealServerPortHistoryTransmitPkts, snL4RealServerPortDeleteState=snL4RealServerPortDeleteState, snL4VirtualServerHistoryControlIndex=snL4VirtualServerHistoryControlIndex, snL4slbForwardTraffic=snL4slbForwardTraffic, snL4RealServerStatisticRealIP=snL4RealServerStatisticRealIP, snL4TrapRealServerCurConnections=snL4TrapRealServerCurConnections, snL4VirtualServerPortHistoryTable=snL4VirtualServerPortHistoryTable, snL4Trap=snL4Trap, snL4RealServerPortHistoryControlTable=snL4RealServerPortHistoryControlTable, snL4VirtualServerDeleteState=snL4VirtualServerDeleteState, snL4VirtualServerStatisticSymmetricActivates=snL4VirtualServerStatisticSymmetricActivates, snL4WebCacheRxPkts=snL4WebCacheRxPkts, snL4VirtualServerPortEntry=snL4VirtualServerPortEntry, snL4PingInterval=snL4PingInterval, snL4BindVirtualServerName=snL4BindVirtualServerName, snL4WebCacheDeleteState=snL4WebCacheDeleteState, snL4RealServerPortStatisticRxBytes=snL4RealServerPortStatisticRxBytes, snL4WebCachePortDeleteState=snL4WebCachePortDeleteState, snL4VirtualServerHistorySampleIndex=snL4VirtualServerHistorySampleIndex, snL4RealServerPortStatusPeakConnection=snL4RealServerPortStatusPeakConnection, snL4RealServerPortHistorySampleIndex=snL4RealServerPortHistorySampleIndex, snL4RealServerHistoryControlBucketsGranted=snL4RealServerHistoryControlBucketsGranted, snL4VirtualServerPortStatisticEntry=snL4VirtualServerPortStatisticEntry, snL4RealServerStatisticState=snL4RealServerStatisticState, snL4VirtualServerPortHistorySampleIndex=snL4VirtualServerPortHistorySampleIndex, snL4RealServerStatusReceivePkts=snL4RealServerStatusReceivePkts, snL4BecomeActive=snL4BecomeActive, snL4RealServerPortRowStatus=snL4RealServerPortRowStatus, snL4WebClientPort=snL4WebClientPort, snL4WebCacheGroupTable=snL4WebCacheGroupTable, snL4RealServerPortIndex=snL4RealServerPortIndex, snL4Policy=snL4Policy, snL4BindRealServerName=snL4BindRealServerName, snL4BindVirtualPortNumber=snL4BindVirtualPortNumber, snL4WebServerPortName=snL4WebServerPortName, snL4EnableMaxSessionLimitReachedTrap=snL4EnableMaxSessionLimitReachedTrap, snL4WebCacheGroupSrcMask=snL4WebCacheGroupSrcMask, snL4RealServerStatisticEntry=snL4RealServerStatisticEntry, snL4GslbSiteRemoteServerIronTable=snL4GslbSiteRemoteServerIronTable, snL4VirtualServerHistoryIntervalStart=snL4VirtualServerHistoryIntervalStart, snL4EnableGslbHealthCheckIpUpTrap=snL4EnableGslbHealthCheckIpUpTrap, snL4VirtualServerStatusTable=snL4VirtualServerStatusTable, snL4RealServerStatusTotalConnections=snL4RealServerStatusTotalConnections, snL4VirtualServerPortHistoryControlBucketsGranted=snL4VirtualServerPortHistoryControlBucketsGranted, snL4EnableGslbRemoteSiUpTrap=snL4EnableGslbRemoteSiUpTrap, snL4VirtualServerStatus=snL4VirtualServerStatus, snL4RealServerCfgIP=snL4RealServerCfgIP, snL4VirtualServerPortStatusPeakConnection=snL4VirtualServerPortStatusPeakConnection, snL4RealServerStatusPeakConnections=snL4RealServerStatusPeakConnections, snL4RealServerPortHistoryResponseTime=snL4RealServerPortHistoryResponseTime, DisplayString=DisplayString, snL4slbDisableCount=snL4slbDisableCount, snL4VirtualServerPortHistoryTotalConnections=snL4VirtualServerPortHistoryTotalConnections, snL4VirtualServerStatisticReceiveBytes=snL4VirtualServerStatisticReceiveBytes, snL4RealServerPortCfg=snL4RealServerPortCfg, snL4RealServerHistoryControlStatus=snL4RealServerHistoryControlStatus, snL4VirtualServerHistoryTransmitPkts=snL4VirtualServerHistoryTransmitPkts, snL4RealServerCfg=snL4RealServerCfg, snL4RealServerStatisticFailTime=snL4RealServerStatisticFailTime, snL4BackupState=snL4BackupState, snL4WebCachePortRowStatus=snL4WebCachePortRowStatus, snL4VirtualServerCfg=snL4VirtualServerCfg, snL4WebCacheTrafficStatsTable=snL4WebCacheTrafficStatsTable, snL4PolicyProtocol=snL4PolicyProtocol, snL4RealServer=snL4RealServer, snL4VirtualServerIndex=snL4VirtualServerIndex, snL4TcpSynLimit=snL4TcpSynLimit, snL4RealServerWeight=snL4RealServerWeight, snL4RealServerHistoryControlDataSource=snL4RealServerHistoryControlDataSource, snL4BindRowStatus=snL4BindRowStatus, snL4PolicyPortAccessRowStatus=snL4PolicyPortAccessRowStatus, snL4RealServerHistoryControlInterval=snL4RealServerHistoryControlInterval, snL4VirtualServerPortHistoryControlOwner=snL4VirtualServerPortHistoryControlOwner, snL4RealServerPortCfgPort=snL4RealServerPortCfgPort, snL4RealServerPortStatusEntry=snL4RealServerPortStatusEntry, snL4VirtualServerPortRowStatus=snL4VirtualServerPortRowStatus, snL4RealServerStatusEntry=snL4RealServerStatusEntry, L4ServerName=L4ServerName, snL4VirtualServerPortHistoryControlTable=snL4VirtualServerPortHistoryControlTable, snL4VirtualServerPortHistoryControlBucketsRequested=snL4VirtualServerPortHistoryControlBucketsRequested, snL4VirtualServerPortHistoryControlIndex=snL4VirtualServerPortHistoryControlIndex, snL4RealServerPortStatusCurrentConnection=snL4RealServerPortStatusCurrentConnection, snL4PolicyPortAccessList=snL4PolicyPortAccessList, snL4RealServerCfgName=snL4RealServerCfgName, snL4WebUncachedTrafficStats=snL4WebUncachedTrafficStats, snL4VirtualServerName=snL4VirtualServerName, snL4RealServerPortAdminStatus=snL4RealServerPortAdminStatus, snL4VirtualServerPortStatusIndex=snL4VirtualServerPortStatusIndex, snL4RealServerName=snL4RealServerName, snL4RealServerHistoryIntervalStart=snL4RealServerHistoryIntervalStart, snL4RealServerStatusAge=snL4RealServerStatusAge, snL4VirtualServerPortStatistic=snL4VirtualServerPortStatistic, snL4RealServerHistoryControlIndex=snL4RealServerHistoryControlIndex, snL4slbAged=snL4slbAged, snL4RealServerStatusIndex=snL4RealServerStatusIndex, snL4WebCache=snL4WebCache, snL4RealServerHistoryReceivePkts=snL4RealServerHistoryReceivePkts, snL4PolicyPortAccess=snL4PolicyPortAccess, snL4RealServerStatisticPeakConnections=snL4RealServerStatisticPeakConnections, snL4EnableTcpSynLimitReachedTrap=snL4EnableTcpSynLimitReachedTrap, snL4GslbSiteRemoteServerIronIP=snL4GslbSiteRemoteServerIronIP, snL4VirtualServerPortCfgServerName=snL4VirtualServerPortCfgServerName)
|
#!/usr/bin/env python3
# [rights] Copyright 2020 brianddk at github https://github.com/brianddk
# [license] Apache 2.0 License https://www.apache.org/licenses/LICENSE-2.0
# [repo] github.com/brianddk/reddit/blob/master/python/mining.py
# [btc] BTC-b32: bc1qwc2203uym96u0nmq04pcgqfs9ldqz9l3mz8fpj
# [tipjar] github.com/brianddk/reddit/blob/master/tipjar/tipjar.txt
spot = 8939.90
hashrate = 110 * 10**12
difficulty = float("16,104,807,485,529".replace(',','_'))
reward = 12.5
usd_per_day = (spot * hashrate * reward * 60 * 60 * 24) / (difficulty * 2**32)
print(usd_per_day)
|
""" Supplies the internal functions for functools.py in the standard library """
# reduce() has moved to _functools in Python 2.6+.
reduce = reduce
class partial(object):
"""
partial(func, *args, **keywords) - new function with partial application
of the given arguments and keywords.
"""
__slots__ = ('_func', '_args', '_keywords', '__dict__')
def __init__(*args, **keywords):
if len(args) < 2:
raise TypeError('__init__() takes at least 2 arguments (%d given)'
% len(args))
self, func, args = args[0], args[1], args[2:]
if not callable(func):
raise TypeError("the first argument must be callable")
self._func = func
self._args = args
self._keywords = keywords
def __delattr__(self, key):
if key == '__dict__':
raise TypeError("a partial object's dictionary may not be deleted")
object.__delattr__(self, key)
@property
def func(self):
return self._func
@property
def args(self):
return self._args
@property
def keywords(self):
return self._keywords
def __call__(self, *fargs, **fkeywords):
if self._keywords:
fkeywords = dict(self._keywords, **fkeywords)
return self._func(*(self._args + fargs), **fkeywords)
def __reduce__(self):
d = dict((k, v) for k, v in self.__dict__.iteritems() if k not in
('_func', '_args', '_keywords'))
if len(d) == 0:
d = None
return (type(self), (self._func,),
(self._func, self._args, self._keywords, d))
def __setstate__(self, state):
if not isinstance(state, tuple) or len(state) != 4:
raise TypeError("invalid partial state")
func, args, keywords, d = state
if (not callable(func) or not isinstance(args, tuple) or
(keywords is not None and not isinstance(keywords, dict))):
raise TypeError("invalid partial state")
self._func = func
self._args = tuple(args)
if keywords is None:
keywords = {}
elif type(keywords) is not dict:
keywords = dict(keywords)
self._keywords = keywords
if d is None:
self.__dict__.clear()
else:
self.__dict__.update(d)
|
# Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""CoreML related actions."""
load(
"@build_bazel_apple_support//lib:apple_support.bzl",
"apple_support",
)
load(
"@build_bazel_rules_apple//apple/internal/utils:xctoolrunner.bzl",
"xctoolrunner",
)
def compile_mlmodel(
*,
actions,
input_file,
output_bundle,
output_plist,
platform_prerequisites,
resolved_xctoolrunner):
"""Creates an action that compiles an mlmodel file into an mlmodelc bundle.
Args:
actions: The actions provider from `ctx.actions`.
input_file: The input mlmodel file.
output_bundle: The directory reference for the output mlmodelc bundle.
output_plist: The file reference for the output plist from coremlc that needs to be merged.
platform_prerequisites: Struct containing information on the platform being targeted.
resolved_xctoolrunner: A struct referencing the resolved wrapper for "xcrun" tools.
"""
args = [
"coremlc",
"compile",
xctoolrunner.prefixed_path(input_file.path),
output_bundle.dirname,
"--output-partial-info-plist",
xctoolrunner.prefixed_path(output_plist.path),
]
apple_support.run(
actions = actions,
apple_fragment = platform_prerequisites.apple_fragment,
arguments = args,
executable = resolved_xctoolrunner.executable,
inputs = depset([input_file], transitive = [resolved_xctoolrunner.inputs]),
input_manifests = resolved_xctoolrunner.input_manifests,
mnemonic = "MlmodelCompile",
outputs = [output_bundle, output_plist],
xcode_config = platform_prerequisites.xcode_version_config,
)
def generate_mlmodel_sources(
*,
actions,
input_file,
swift_output_src,
objc_output_src,
objc_output_hdr,
language,
platform_prerequisites,
resolved_xctoolrunner):
"""Creates an action that generates sources for an mlmodel file.
Args:
actions: The actions provider from `ctx.actions`.
input_file: The input mlmodel file.
swift_output_src: The output file when generating Swift sources.
objc_output_src: The output source file when generating Obj-C.
objc_output_hdr: The output header file when generating Obj-C.
language: Language of generated classes ("Objective-C", "Swift").
platform_prerequisites: Struct containing information on the platform being targeted.
resolved_xctoolrunner: A struct referencing the resolved wrapper for "xcrun" tools.
"""
is_swift = language == "Swift"
arguments = [
"coremlc",
"generate",
xctoolrunner.prefixed_path(input_file.path),
]
outputs = []
if is_swift:
arguments += [
"--public-access",
"--language",
"Swift",
swift_output_src.dirname,
]
outputs = [swift_output_src]
else:
arguments.append(objc_output_src.dirname)
outputs = [objc_output_src, objc_output_hdr]
apple_support.run(
actions = actions,
apple_fragment = platform_prerequisites.apple_fragment,
arguments = arguments,
executable = resolved_xctoolrunner.executable,
inputs = depset([input_file], transitive = [resolved_xctoolrunner.inputs]),
input_manifests = resolved_xctoolrunner.input_manifests,
mnemonic = "MlmodelGenerate",
outputs = outputs,
xcode_config = platform_prerequisites.xcode_version_config,
)
|
# -*- coding: utf-8 -*-
_translations = {
"req_fine_reduction": {
"en": "###Request a Fine Reduction",
"es": "###Cómo solicitar una reducción de multa",
"zh-s": "###请求减少罚款",
"zh-t": "###請求減少罰款"
},
"landing_page_description": {
"en":
"""*This online system is an optional way to request a fine reduction for your traffic ticket in cases of financial need.*
**Use this tool to:**
* Request a reduction in your traffic fine
* Request a payment plan
* Request Community Service
* Request more time to pay your ticket
**Do not use this tool:**
* If you wish to contest the ticket
* If your offense is a misdemeanor violation
* If you would like to attend traffic school
* If you have proof of correction and would like a dismissal or reduction of those charges
Please refer to your courtesy notice or contact your court instead.""",
"es":
"""*Este sistema en línea es una manera opcional de solicitar una reducción en su multa de tránsito debido a una necesidad económica.*
**Use este servicio para solicitar:**
* Una reducción de su multa de tránsito
* Un plan de pagos
* Servicio comunitario
* Más tiempo para pagar su multa
**No use este servicio:**
* Si quiere disputar la multa
* Si su ofensa es una violación por delito menor
* Si desea asistir a la escuela de tránsito
* Si tiene un comprobante de corrección y desea reducir la multa
Por favor refiérase a su aviso de cortesía o comuníquese con su corte.
""",
"zh-s":
"""*如果您有财务需要,本在线系统是请求减少交通罚单罚款的可选途径。*
**使用该工具请求:**
* 减少您的交通罚款
* 支付计划
* 社区服务
* 延长支付罚单时间
*如果您想对罚单提出异议,或者亲自解决问题,请联系您的法院。请参阅您的提醒通知。*""",
"zh-t":
"""*如果您有財務需求,本線上系統是請求減少交通罰單罰款的途徑之一。*
**使用本工具請求:**
* 減少您的交通罰款
* 付款計劃
* 社區服務
* 延長支付罰單的時間
*如果您想對罰單提出異議,或是親自解決問題,請聯繫您的法院。請參閱您的提醒通知。*"""
},
"lookup_citation": {
"en": "### Look Up Your Citation",
"es": "### Busque su citación",
"zh-s": "### 查看您的罚单",
"zh-t": "### 查看您的罰單"
},
"what_county": {
"en": "What California county did you get the citation in?",
"es": "¿En qué condado de California recibió la citación?",
"zh-s": "您在加州哪个县得到罚单?",
"zh-t": "您在加州哪個縣得到罰單?"
},
"what_citation_number": {
"en": "What's the citation number?",
"es": "¿Cuál es el número de citación?",
"zh-s": "罚单号码是多少?",
"zh-t": "罰單號碼是多少?"
},
"dont_have_citation_number": {
"en": "I don't have my citation number",
"es": "No tengo mi número de citación",
"zh-s": "我没有罚单号码",
"zh-t": "我沒有罰單號碼"
},
"what_first_name": {
"en": "What is your first name?",
"es": "¿Cuál es su nombre?",
"zh-s": "您的名字是什么?",
"zh-t": "您的名字是什麼?"
},
"what_last_name": {
"en": "What is your last name?",
"es": "¿Cuál es su apellido?",
"zh-s": "您的姓是什么?",
"zh-t": "您的姓是什麼?"
},
"what_dob": {
"en": "What's your date of birth?",
"es": "¿Cuál es su fecha de nacimiento?",
"zh-s": "您的出生日期是哪天?",
"zh-t": "您的出生日期是哪天?"
},
"what_license_number": {
"en": "What is your Driver's License Number?",
"es": "¿Cuál es el número de su licencia de manejar?",
"zh-s": "您的驾照号码是多少?",
"zh-t": "您的駕照號碼是多少?"
},
"name": {
"en": "Name",
"es": "Nombre",
"zh-s": "姓名",
"zh-t": "姓名"
},
"citation_number": {
"en": "Citation Number",
"es": "Número de citación",
"zh-s": "罚单号码",
"zh-t": "罰單號碼"
},
"county": {
"en": "County",
"es": "Condado",
"zh-s": "县",
"zh-t": "縣"
},
"violation_date": {
"en": "Violation Date",
"es": "Fecha de la infracción",
"zh-s": "违规日期",
"zh-t": "違規日期"
},
"total_due": {
"en": "Total Due",
"es": "Monto que se debe",
"zh-s": "应付总额",
"zh-t": "應付總額"
},
"yes": {
"en": "Yes",
"es": "Sí",
"zh-s": "是",
"zh-t": "是"
},
"no": {
"en": "No",
"es": "No",
"zh-s": "没有",
"zh-t": "否"
},
"your_citations": {
"en": "### Your Citations",
"es": "### Sus citaciones",
"zh-s": "",
"zh-t": ""
},
"need_more_info": {
"en": "We need some more information to find your citation: ",
"es": "Necesitamos más información para encontrar su citación:",
"zh-s": "",
"zh-t": ""
},
"found_multiple_citations": {
"en": "We found your citation. We also looked for other citations in your name in {county} County. You can request fine reductions for all the citations listed below.",
"es": "Encontramos su citación. También buscamos otras citaciones bajo su nombre en el condado de {county}. Puede solicitar una reducción en las multas para todas las citaciones que aparecen abajo.",
"zh-s": "",
"zh-t": ""
},
"select_citation": {
"en": "Select each of the tickets for which you want to request a reduction.",
"es": "Seleccione las citaciones para las que desea solicitar una reducción.",
"zh-s": "",
"zh-t": ""
},
"none_of_these_are_right": {
"en": "None of these are right",
"es": "Ninguna de estas es mía",
"zh-s": "",
"zh-t": ""
},
"how_this_works": {
"en": "### How this works",
"es": "### Cómo funciona este servicio",
"zh-s": "### 如何运作",
"zh-t": "### 如何運作"
},
"dont_have_citation_number": {
"en": "I don't have my citation number",
"es": "No tengo mi número de citación",
"zh-s": "我没有罚单号码",
"zh-t": ""
},
"how_works_instructions": {
"en": """
*We will walk you through a few questions to help the Court better understand your need for a reduction.*
Be prepared to share information about your income, monthly expenses and any public benefits you currently receive. A court official will still review your answers as they would if you came to court in person.
""",
"es": """
*Le haremos algunas preguntas para que la corte pueda comprender mejor su necesidad de reducir la multa.*
Esté preparado para compartir información sobre sus ingresos, gastos mensuales y cualquier beneficio público que recibe actualmente. Sus respuestas serán revisadas por un funcionario judicial como si fuera a la corte en persona.
""",
"zh-s": """
*我们将通过几个问题帮助法院更好地了解您要减少罚款的需求。*
请准备好分享您的收入、每月开支及目前领取的公共福利。法院官员仍然会像您亲自来法院一样审查您的答案。
""",
"zh-t": """
*我們將透過幾個問題幫助法院更瞭解您要減少罰款的需求。*
請準備好分享您的收入、每月開支及目前領取的公共福利。法院官員仍然會像您親自來法院一樣審查您的答案。
"""
},
"public_benefits": {
"en": "### Public Benefits",
"es": "### Beneficios públicos",
"zh-s": "### 公共福利",
"zh-t": "### 公共福利"
},
"receiving_benefits": {
"en": "Are you currently receiving any benefits? If you don''t see the public benefit you are currently enrolled in, click \"Other\".",
"es": "¿Está recibiendo beneficios actualmente? Si no ve el beneficio público que está recibiendo actualmente, haga clic en \"Otro\".",
"zh-s": "您目前是否在领取任何福利?如果您没有看到您目前登记的公共福利,点击“其他”",
"zh-t": "您目前是否領取任何福利?如果您沒有看到您目前登記的公共福利,請點選「其他」"
},
"cal_fresh": {
"en": "CalFresh (Food Stamps)",
"es": "CalFresh (cupones de alimentos)",
"zh-s": "CalFresh(食品券)",
"zh-t": "CalFresh(糧食券)"
},
"medi_cal": {
"en": "Medi-Cal",
"es": "Medi-Cal",
"zh-s": "Medi-Cal",
"zh-t": "Medi-Cal"
},
"cr_ga": {
"en": "General Assistance / County Relief",
"es": "Ayuda general/Ayuda del condado",
"zh-s": "普通救助/ 县救济",
"zh-t": "普通救助/ 縣救濟"
},
"ssi": {
"en": "SSI: Supplemental Security Income",
"es": "SSI: Seguridad de ingreso suplementario",
"zh-s": "SSI:社会安全补助金",
"zh-t": "SSI:社會安全補助金"
},
"wic": {
"en": "WIC: Special Supplemental Nutrition for Women, Infants and Children",
"es": "WIC: Programa de Nutrición y Alimentos para Mujeres, Bebés y Niños",
"zh-s": "",
"zh-t": ""
},
"ssp": {
"en": "SSP: State Supplemental Payment",
"es": "SSP: Pagos suplementarios del estado",
"zh-s": "SSP:州补助金",
"zh-t": "SSP:州補助金"
},
"ihss": {
"en": "IHSS: In Home Supportive Services",
"es": "IHSS: Servicios de apoyo en el hogar",
"zh-s": "IHSS:居家支持服务",
"zh-t": "IHSS:居家支援服務"
},
"cal_works": {
"en": "CalWORKS: California Work Opportunity and Responsibility to Kids Act",
"es": "CalWORKs: Oportunidades de trabajo y responsabilidades hacia los niños de California",
"zh-s": "CalWORKS:《加州工作机会及对孩子责任法案》",
"zh-t": "CalWORKS:《加州工作機會及對孩子責任法案》"
},
"tanf": {
"en": "TANF: Temporary Assistance for Needy Families",
"es": "TANF: Ayuda temporal para familias necesitadas",
"zh-s": "TANF:穷困家庭临时救助",
"zh-t": "TANF:窮困家庭臨時救助"
},
"capi": {
"en": "CAPI: Cash Assistance Program for Aged, Blind or Disabled Legal Immigrants",
"es": "CAPI: Programa de ayuda en efectivo para inmigrantes legales ancianos, no videntes o discapacitados",
"zh-s": "CAPI:老人、盲人或残障合法移民现金救助计划",
"zh-t": "CAPI:老人、盲人或殘障合法移民現金救助計畫"
},
"other": {
"en": "Other",
"es": "Otro",
"zh-s": "其他",
"zh-t": "其他"
},
"other_benefit_name": {
"en": "What's the other public benefit you receive?",
"es": "¿Cómo se llama el beneficio público que recibe? Nota: debe responder esta pregunta en inglés.",
"zh-s": "",
"zh-t": ""
},
"proof_calfresh": {
"en": "Proof of CalFresh",
"es": "### Comprobante de CalFresh",
"zh-s": "### CalFresh 的证明",
"zh-t": ""
},
"calfresh_upload": {
"en": "### You said you receive CalFresh. Can you please upload any document that proves you are currently receiving this benefit - like a CalFresh card?",
"es": "### Usted dijo que recibe CalFresh. ¿Puede subir un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de CalFresh?",
"zh-s": "",
"zh-t": ""
},
"calfresh_card": {
"en": "CalFresh Card",
"es": "Tarjeta de CalFresh",
"zh-s": "",
"zh-t": ""
},
"have_no_proof": {
"en": "I don't have proof available",
"es": "No tengo un comprobante en este momento",
"zh-s": "我现在没有证明",
"zh-t": "我現在沒有證明"
},
"why_no_proof": {
"en": "Tell us why you can't provide documentation at this time",
"es": "Explique por qué no puede darnos documentación en este momento. Nota: debe responder esta pregunta en inglés.",
"zh-s": "告诉我们您为何现在不能提供文件",
"zh-t": "告訴我們您為何現在不能提供文件"
},
"proof_of_medical": {
"en": "### Proof of Medi-Cal",
"es": "### Comprobante de Medi-Cal",
"zh-s": "###Medi-Cal 的证明",
"zh-t": ""
},
"upload_medical": {
"en": "### You said you receive Medi-Cal. Can you please upload any document that proves you are currently receiving this benefit - like a MediCal card?",
"es": "### Usted dijo que recibe Medi-Cal. ¿Puede subir un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de Medi-Cal?",
"zh-s": "",
"zh-t": ""
},
"medi_cal_card": {
"en": "Medi-Cal Card",
"es": "Tarjeta de Medi-Cal",
"zh-s": "",
"zh-t": ""
},
"proof_of_ssi_title": {
"en": "### Proof of SSI",
"es": "### Comprobante de SSI",
"zh-s": "###SSI 的证明",
"zh-t": ""
},
"upload_ssi_document": {
"en": "*You said you receive Supplemental Security Income. Can you please upload any document that proves you are currently receiving this benefit?*",
"es": "*Usted dijo que recibe Seguridad de ingreso suplementario. ¿Puede subir un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de Seguridad de ingreso suplementario?*",
"zh-s": "",
"zh-t": ""
},
"proof_of_ssi": {
"en": "Proof of SSI",
"es": "Comprobante de SSI",
"zh-s": "SSI 的证明",
"zh-t": ""
},
"proof_of_ssp": {
"en": "### Proof of State Supplemental Payment",
"es": "### Comprobante de Pagos suplementarios del estado",
"zh-s": "###州补助金 的证明",
"zh-t": ""
},
"upload_ssp": {
"en": "*You said you receive State Supplemental Payment (SSP). Can you please upload any document that proves you are currently receiving this benefit?*",
"es": "*Usted dijo que recibe beneficios de SSP (pagos suplementarios del estado). ¿Puede subir un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de pagos suplementarios del estado?*",
"zh-s": "",
"zh-t": ""
},
"proof_of_ssp_abbrev": {
"en": "Proof of SSP",
"es": "Comprobante de SSP",
"zh-s": "州补助金 的证明",
"zh-t": ""
},
"proof_of_gacr": {
"en": "### Proof of General Assistance/County Relief",
"es": "### Comprobante de ayuda general/ayuda del condado",
"zh-s": "###普通救助/ 县救济 的证明",
"zh-t": ""
},
"upload_gacr": {
"en": "*You said you receive General Assistance/County Relief. Can you please upload any document that proves you are currently receiving this benefit?*",
"es": "*Usted dijo que recibe ayuda general/ayuda del condado. ¿Puede subir un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de ayuda general/ayuda del condado?*",
"zh-s": "",
"zh-t": ""
},
"proof_of_gacr_abbrev": {
"en": "Proof of GA/CR",
"es": "Comprobante de ayuda general/ayuda del condado",
"zh-s": "普通救助/ 县救济 的证明",
"zh-t": ""
},
"proof_of_ihss": {
"en": "### Proof of In Home Supportive Services",
"es": "### Comprobante de servicios de apoyo en el hogar",
"zh-s": "###居家支持服务 的证明",
"zh-t": ""
},
"upload_ihss": {
"en": "*You said you receive In Home Supportive Services (IHSS). Can you please upload any document that proves you are currently receiving this benefit?*",
"es": "*Usted dijo que recibe beneficios de IHSS (servicios de apoyo en el hogar). ¿Puede subir un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de servicios de apoyo en el hogar?*",
"zh-s": "",
"zh-t": ""
},
"proof_of_ihss_abbrev": {
"en": "Proof of IHSS",
"es": "Comprobante de IHSS",
"zh-s": "居家支持服务 的证明",
"zh-t": ""
},
"proof_of_tanf": {
"en": "### Proof of TANF",
"es": "### Comprobante de TANF",
"zh-s": "###穷困家庭临时救助 的证明",
"zh-t": ""
},
"upload_tanf": {
"en": "*You said you receive Temporary Assistance for Needy Families. Can you please upload any document that proves you are currently receiving this benefit?*",
"es": "*Usted dijo que recibe beneficios de TANF (ayuda temporal para familias necesitadas). ¿Puede subir un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de ayuda temporal para familias necesitadas?*",
"zh-s": "",
"zh-t": ""
},
"proof_of_tanf_abbrev": {
"en": "Proof of TANF",
"es": "Comprobante de TANF",
"zh-s": "穷困家庭临时救助 的证明",
"zh-t": ""
},
"proof_of_wic": {
"en": "### Proof of WIC",
"es": "### Comprobante de WIC",
"zh-s": "###妇女、婴儿及儿童特殊营养补助 的证明",
"zh-t": ""
},
"upload_wic": {
"en": "*You said you are enrolled in WIC. Can you please upload any document that proves you are currently receiving this benefit?*",
"es": "*Usted dijo que recibe beneficios de WIC (programa de Nutrición suplementaria especial para mujeres, bebés y niños). ¿Puede cargar un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de nutrición suplementaria especial para mujeres, bebés y niños?*",
"zh-s": "",
"zh-t": ""
},
"proof_of_wic_abbrev": {
"en": "Proof of WIC",
"es": "Comprobante de WIC",
"zh-s": "妇女、婴儿及儿童特殊营养补助 的证明",
"zh-t": ""
},
"proof_of_calworks": {
"en": "### Proof of CalWORKS",
"es": "### Comprobante de CalWORKS",
"zh-s": "###《加州工作机会及对孩子责任法案》 的证明",
"zh-t": ""
},
"upload_calworks": {
"en": "*You said you are enrolled in CalWORKS. Can you please upload any document that proves you are currently receiving this benefit?*",
"es": "*Usted dijo que recibe beneficios de CalWORKs (asistencia monetaria del Programa de Oportunidades de Trabajo y Responsabilidad hacia los Niños). ¿Puede cargar un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de oportunidades de trabajo y responsabilidades hacia los niños de California?*",
"zh-s": "",
"zh-t": ""
},
"proof_of_calworks_abbrev": {
"en": "Proof of CalWORKS",
"es": "Comprobante de CalWORKS",
"zh-s": "《加州工作机会及对孩子责任法案》 的证明",
"zh-t": ""
},
"proof_of_capi": {
"en": "### Proof of CAPI",
"es": "### Comprobante de CAPI",
"zh-s": "###老人、盲人或残障合法移民现金救助计划 的证明",
"zh-t": ""
},
"upload_capi": {
"en": "*You said you are enrolled in the Cash Assistance Program for Aged, Blind, or Disabled Legal Immigrants (CAPI). Can you please upload any document that proves you are currently receiving this benefit?*",
"es": "*Usted dijo que recibe beneficios de CAPI (ayuda en efectivo para inmigrantes legales ancianos, no videntes o discapacitados). ¿Puede cargar un documento que demuestre que está recibiendo actualmente este beneficio, como por ejemplo una tarjeta de programa de ayuda en efectivo para inmigrantes legales ancianos, no videntes o discapacitados?*",
"zh-s": "",
"zh-t": ""
},
"proof_of_capi_abbrev": {
"en": "Proof of CAPI",
"es": "Comprobante de CAPI",
"zh-s": "老人、盲人或残障合法移民现金救助计划 的证明",
"zh-t": ""
},
"proof_of": {
"en": "### Proof of",
"es": "### Comprobante de",
"zh-s": "### 的证明",
"zh-t": ""
},
"said_receive": {
"en": "### You said you receive",
"es": "Usted dijo que recibe",
"zh-s": "",
"zh-t": ""
},
"please_upload": {
"en": ". Please upload any document that proves you are currently receiving this benefit.",
"es": ". Suba un documento que demuestre que está recibiendo actualmente este beneficio.",
"zh-s": "",
"zh-t": ""
},
"upload_picture": {
"en": "Upload picture",
"es": "Subir foto",
"zh-s": "",
"zh-t": ""
},
# TODO: Shim these into prepareFileUpload() so we don't store translations
# directly in a2p.js
"Use a different photo": {
"en": "Use a different photo",
"es": "Subir foto diferente",
"zh-s": "",
"zh-t": ""
},
"Add a photo": {
"en": "Add a photo",
"es": "Subir foto",
"zh-s": "",
"zh-t": ""
},
"current_income": {
"en": "### Current Income",
"es": "### Ingresos actuales",
"zh-s": "### 当前收入",
"zh-t": "### 目前收入"
},
"money_each_month": {
"en": "### How much money do you take home each month?",
"es": "### ¿Cuánto dinero gana por mes después de descontar los impuestos?",
"zh-s": "### 您每个月带回家多少税后收入?",
"zh-t": "### 您每個月帶回家多少稅後收入?"
},
"answer_best_you_can": {
"en": "Answer the best you can. Be sure to include income from your job and any other sources, including payments from people in your household (such as spouse or live-in partner).",
"es": "Responda a su mejor saber y entender. No se olvide de incluir los ingresos de su trabajo y de toda otra fuente, incluyendo los ingresos de otras personas que viven en su hogar (como un cónyuge o pareja de hecho).",
"zh-s": "尽可能回答。务必包括您的工作及其他来源的收入,比如从家人(如配偶或同居伴侣)得到的付款?",
"zh-t": "盡可能回答。務必包括您的工作及其他來源的收入,例如從家人(如配偶或同居伴侶)得到的付款?"
},
"amount_of_income": {
"en": "Amount of Income",
"es": "Monto de ingresos",
"zh-s": "收入金额",
"zh-t": "收入金額"
},
"household_details": {
"en": "### Household Details",
"es": "### Detalles sobre el hogar",
"zh-s": "### 家庭详情",
"zh-t": "### 家庭詳情"
},
"how_many_household": {
"en": "How many people live in your household?",
"es": "¿Cuántas personas viven en su hogar?",
"zh-s": "您家里有几口人?",
"zh-t": "您家裡有幾口人?"
},
"monthly_expenses": {
"en": "### Monthly Expenses",
"es": "### Gastos mensuales",
"zh-s": "### 每月花费",
"zh-t": "### 每月開支"
},
"please_estimate": {
"en": "### Now, please estimate what you pay _each month_ for the following expenses.",
"es": "### Ahora estime cuánto paga por mes por los siguientes gastos.",
"zh-s": "### 现在,请估算您每个月的以下花费是多少。",
"zh-t": "### 現在,請估算您每個月的以下開支。"
},
"you_take_home_pre": {
"en": "You said you take home",
"es": "Usted dijo que gana ",
"zh-s": "您说您每个月带回家${ format_money(income) }。如果您没有此项花费",
"zh-t": "您說每個月帶回家"
},
"you_take_home_post": {
"en": " each month. If you don't spend money on an expense, enter $0.",
"es": " por mes, después de deducir impuestos. Si no tiene este gasto, ponga $0.",
"zh-s": " 请输入$0。",
"zh-t": "。如果您沒有此項開支,請輸入$0。 "
},
"rent": {
"en": "Rent",
"es": "Alquiler",
"zh-s": "租金",
"zh-t": "租金"
},
"mortgage": {
"en": "Mortgage",
"es": "Hipoteca",
"zh-s": "按揭",
"zh-t": "房屋貸款"
},
"utilities": {
"en": "Utilities",
"es": "Servicios públicos",
"zh-s": "公用事业",
"zh-t": "公用事業"
},
"phone_bill": {
"en": "Phone Bill",
"es": "Teléfono",
"zh-s": "电话费",
"zh-t": "電話費"
},
"food_groceries_restaurants": {
"en": "Food (Groceries & Restaurants)",
"es": "Alimentos (supermercado y restaurantes)",
"zh-s": "食品(食品店和饭店)",
"zh-t": "食品(雜貨店和餐廳)"
},
"insurance": {
"en": "Insurance",
"es": "Seguro",
"zh-s": "保险",
"zh-t": "保險"
},
"clothing": {
"en": "Clothing",
"es": "Ropa",
"zh-s": "衣服",
"zh-t": "衣服"
},
"child_spousal_support": {
"en": "Child or Spousal Support",
"es": "Manutención de los hijos o del cónyuge",
"zh-s": "子女或配偶扶养费",
"zh-t": "子女或配偶扶養費"
},
"transportation_gas_etc": {
"en": "Transportation (Gas, Car Payments, Transit)",
"es": "Transporte (gasolina, pagos del carro, transporte público)",
"zh-s": "交通(汽油、车款、公交)",
"zh-t": "交通(汽油、汽車還款、公交)"
},
"would_other_hardship": {
"en": "Would you like to report other expenses or reasons for financial hardship?",
"es": "¿Quiere reportar otros gastos o razones para explicar sus dificultades económicas?",
"zh-s": "您是否想要报告其他花费或财务困难的原因?",
"zh-t": "您是否願意報告其他開支或財務困難的原因?"
},
"what_hardship": {
"en": "What other financial hardship would you like the Court to consider?",
"es": "¿Qué otro tipo de problema económico quiere que considere la corte? Nota: debe responder esta pregunta en inglés.",
"zh-s": "您希望法院考虑哪些其他种类的财务困难?",
"zh-t": "您希望法院考慮其他哪一種財務困難?"
},
"total_additional_expenses": {
"en": "What is the total monthly cost of these additional expenses?",
"es": "¿Cuánto es el costo total mensual de estos gastos adicionales?",
"zh-s": "",
"zh-t": ""
},
"additional_requests": {
"en": "Additional Requests",
"es": "Solicitudes adicionales",
"zh-s": "附加请求",
"zh-t": "額外請求"
},
"would_like_additional": {
"en": "In addition to a fine reduction, would you like to add any of the following requests to the current or reduced amount?",
"es": "Además de solicitar una multa reducida, ¿desea pedir una de las siguientes opciones a la corte?",
"zh-s": "",
"zh-t": "您是否想在目前或減低的金額之外增加以下請求:"
},
"payment_plan": {
"en": "Payment Plan",
"es": "Plan de pagos",
"zh-s": "支付计划",
"zh-t": "付款計劃"
},
"community_service": {
"en": "Community Service",
"es": "Servicio comunitario",
"zh-s": "社区服务",
"zh-t": "社區服務"
},
"extension": {
"en": "Extension",
"es": "Aplazamiento de pago de la multa",
"zh-s": "延期",
"zh-t": "延期"
},
"administrative_fees": {
"en": "Note: Your court may charge administrative fees for setting up a payment plan or community service work plan.",
"es": "Nota: Su corte puede cobrar una cuota para establecer un plan de pagos o un plan de servicio comunitario.",
"zh-s": "备注:您的法院可就设定支付计划或者社区服务工作计划收取管理费。",
"zh-t": "備註:您的法院可能會收取設定付款計劃或社區服務工作計劃的管理費。"
},
"make_plea": {
"en": "### Make a Plea for {citation_number}",
"es": "### Haga su declaración {citation_number}",
"zh-s": "### 进行答辩 {citation_number}",
"zh-t": "### 進行答辯 {citation_number}"
},
"plea_instructions": {
"en": """
In order to submit your fine reduction request, you need to admit responsibility for the ticket by pleading **Guilty** or **No Contest**.
If you do not want to admit responsibility or if you do not understand these rights, please exit the system and contact your court to set up an in-person court appearance.
By pleading you will be giving up the following rights:
* To be represented by an attorney employed by you;
* To have a speedy and public trial in front of a judge;
* To testify, to present evidence, and to use court orders without cost to compel the attendance of witnesses and the production of evidence on your behalf;
* To have the witnesses against you testify under oath in court, and to question such witnesses;
* To remain silent and not testify and not incriminate yourself.
""",
"es": """
Para presentar su solicitud de reducción de multa, tiene que admitir su responsabilidad por la citación y declararse culpable o sin disputa. Si no quiere admitir responsabilidad o no comprende estos derechos, deje de usar este programa y comuníquese con la corte para programar una comparecencia en persona.
Al declararse culpable o sin disputa, estará renunciando a los siguientes derechos:
* representación por un abogado contratado por usted;
* un juicio público y sin demora delante de un juez;
* dar testimonio, presentar pruebas, y usar órdenes de la corte sin costo para obligar la asistencia de testigos y la presentación de pruebas en su nombre;
* el testimonio bajo juramento en la corte de testigos en su contra, y la interrogación de dichos testigos;
* guardar silencio y no testificar ni incriminarse.
""",
"zh-s": """
为提交您的减少罚款请求,您需要通过有罪或无异议答辩承认对罚单的责任。如果您不想承认责任,或者您不理解这些权利,请退出系统,联系法院安排亲自出庭。
通过答辩,您将放弃以下权利:
* 由您聘请的律师代理;
* 由法官进行快速、公开审理;
* 作证,出示证据,免费使用法庭命令强制证人为您出庭和举证;
* 让对您不利的证人在法庭宣誓作证,并质问该证人;
* 保持沉默,不作证,不自证有罪。
""",
"zh-t": """
為提交您的減少罰款請求,您需要透過有罪或無異議答辯承認您對罰單的責任。如果您不想承認責任,或是不理解這些權利,請退出系統,聯繫法院安排親自出庭。
透過答辯,您將放棄以下權利:
* 由您聘請的律師代理;
* 由法官進行快速、公開的審理;
* 作證,出示證據,免費使用法庭命令強制證人為您出庭和舉證;
* 讓對您不利的證人在法庭宣誓作證,並質問該證人;
* 保持沉默,不作證,不自證有罪。
"""
},
"Make_plea_choice": {
"en": "Make a choice between pleading Guilty or No Contest. A no contest plea is a way of saying, 'I don’t believe I did all that the officer charges, but I admit violating the law.'",
"es": "Decida si se va a declarar culpable o sin disputa. Declararse ‘sin disputa’ es una manera de decir “no creo haber hecho todo lo que me acusa el agente, pero admito que violé la ley”.",
"zh-s": "在有罪或无异议答辩之间做出选择。无异议答辩是表示:“我不认为我做了官员指控的一切,但我承认违反法律。”",
"zh-t": "在有罪或無異議答辯之間做出選擇。無異議答辯是表示:「我不認為我做了官員指控的一切,但我承認違反法律。」"
},
"no_content_plea": {
"en": "**No Contest Plea.** I have read, understand, and waive the rights above, there are facts to support my plea, I am entering my plea freely and voluntarily, and I agree to plead “no contest”. I understand that, for purposes of this case, a plea of no contest will be considered the same as a plea of guilty and that if I plead no contest the court will find me guilty.",
"es": "**Sin disputa.** He leído, comprendo y renuncio a los derechos descritos arriba; hay hechos que justifican mi declaración. Hago esta declaración en forma libre y voluntaria, y acepto hacer una declaración de ‘sin disputa’. Comprendo que una declaración de sin disputa en este caso se interpretará de la misma manera que una declaración de culpable, y que si me declaro sin disputa la corte me declarará culpable.",
"zh-s": "**无异议答辩。** 我已阅读、理解并放弃以上权利,有事实支撑我的答辩,我的答辩是自由、自愿做出的,并且我同意“无异议”答辩。我理解,就本案而言,无异议答辩将被视同有罪答辩,并且如果我进行无异议答辩,法院将认定我有罪。",
"zh-t": "**無異議答辯。** 我已閱讀、理解並放棄以上權利,有事實支持我的答辯,我的答辯是自由、自願做出的,而且我同意「無異議」答辯。我理解,就本案而言,無異議答辯將被視同有罪答辯,如果我進行無異議答辯,法院將認定我有罪。"
},
"guilty_plea": {
"en": "**Guilty Plea.** I have read, understand, and waive the rights above, there are facts to support my plea. I am entering my plea freely and voluntarily, and agree to plead guilty.",
"es": "**Declaración de culpable.** He leído, comprendo y renuncio a los derechos descritos arriba; hay hechos que justifican mi declaración. Hago esta declaración en forma libre y voluntaria, y acepto hacer una declaración de culpable.",
"zh-s": "**有罪答辩。** 我已阅读、理解并放弃以上权利,有事实支撑我的答辩。我的答辩是自由、自愿做出的,并且我同意有罪答辩。",
"zh-t": "**有罪答辯。** 我已閱讀、理解並放棄以上權利,有事實支持我的答辯。我的答辯是自由、自願做出的,而且我同意有罪答辯。"
},
"admit_responsibility": {
"en": "Note: Once you admit responsibility, you will have a conviction for this traffic offense that will be reported the Department of Motor Vehicles (DMV).",
"es": "Nota: Una vez que admita responsabilidad, lo condenarán por esta infracción de tránsito y la condena será reportada al Departamento de Vehículos Motorizados (DMV).",
"zh-s": "备注:一旦您承认责任,您将被认定实施了该交通犯罪,这将被报告给机动车管理局(DMV)。",
"zh-t": "備註:一旦您承認責任,您將被認定實施了該交通犯罪,這會報告給機動車輛管理局(DMV)。"
},
"optional_questions": {
"en": "### Optional Questions",
"es": "### Preguntas opcionales",
"zh-s": "### 选答问题",
"zh-t": "### 選答題"
},
"info_confidential": {
"en": "## Your information will be kept confidential and may be used for research conducted to improve court services.",
"es": "## Su información será confidencial y se puede usar para investigaciones con el fin de mejorar los servicios de la corte.",
"zh-s": "## 您的信息将被保密,可能被用于为改善法院服务而进行的研究。",
"zh-t": "## 您的資訊將會保密,可能被用於為改善法院服務而進行的研究。"
},
"how_helpful": {
"en": "How helpful was this tool in addressing your traffic ticket?",
"es": "¿Qué tan útil fue este servicio para resolver su multa de tránsito?",
"zh-s": "该工具对解决您的交通罚单有多大帮助?",
"zh-t": "本工具對解決您的交通罰單有多大幫助?"
},
"very_helpful": {
"en": "Very helpful",
"es": "Muy útil",
"zh-s": "很有帮助",
"zh-t": "很有幫助"
},
"somewhat_helpful": {
"en": "Somewhat helpful",
"es": "Algo útil",
"zh-s": "有些帮助",
"zh-t": "有點幫助"
},
"as_helpful_as_court": {
"en": "As helpful as coming into court",
"es": "Tan útil como ir a la corte",
"zh-s": "跟去法院的帮助相同",
"zh-t": "和去法院的幫助相同"
},
"somewhat_unhelpful": {
"en": "Somewhat unhelpful",
"es": "No muy útil",
"zh-s": "不大有帮助",
"zh-t": "不太有幫助"
},
"not_helpful": {
"en": "Not helpful at all",
"es": "Completamente inútil",
"zh-s": "根本没有帮助",
"zh-t": "根本沒有幫助"
},
"say_more_about_difficulty": {
"en": "Can you say more about what difficulty you encountered with the tool?",
"es": "¿Nos puede contar más sobre la dificultad que tuvo con este servicio?",
"zh-s": "您能否详细说明您使用该工具面临的困难?",
"zh-t": "您能否詳細說說使用本工具面臨的困難?"
},
"how_to_resolve_again": {
"en": "If you get another traffic ticket, how would you prefer to resolve it?",
"es": "Si recibe otra multa de tránsito, ¿cómo preferiría resolverla?",
"zh-s": "如果您得到其他交通罚单,您是否想要解决?",
"zh-t": "如果您得到其他交通罰單,您是否想要解決?"
},
"use_this_tool": {
"en": "Use this online tool",
"es": "Con este servicio en línea",
"zh-s": "使用该在线工具",
"zh-t": "使用本線上工具"
},
"in_person": {
"en": "In-person at court",
"es": "En persona en la corte",
"zh-s": "亲自去法院",
"zh-t": "親自去法院"
},
"unsure": {
"en": "Unsure",
"es": "No estoy seguro",
"zh-s": "不确定",
"zh-t": "不確定"
},
"would_have_been_difficult": {
"en": "Would it have been difficult to come to court in person?",
"es": "¿Es díficil para usted ir a la corte en persona?",
"zh-s": "是否难以亲自去法院?",
"zh-t": "是否難以親自去法院?"
},
"why_difficult": {
"en": "Tell us why it's difficult for you to come to court in person (check all that apply)",
"es": "¿Por qué le cuesta ir a la corte en persona? (marque todo lo que corresponde)",
"zh-s": "告诉我们您为何难以亲自去法院(勾选所有适用项目)",
"zh-t": "告訴我們您為何難以親自去法院(勾選所有適用項目)"
},
"physical_disability": {
"en": "Physical Disability",
"es": "Discapacidad física",
"zh-s": "身体残障",
"zh-t": "身體殘障"
},
"transportation": {
"en": "Transportation",
"es": "Transporte",
"zh-s": "交通接送",
"zh-t": "交通接送"
},
"cant_take_off_work": {
"en": "Can't take time off work",
"es": "No puedo faltar al trabajo",
"zh-s": "不能从工作中抽出时间",
"zh-t": "不能從工作中抽出時間"
},
"childcare": {
"en": "Childcare",
"es": "Cuidado de los hijos",
"zh-s": "托儿",
"zh-t": "托兒"
},
"share_why_difficult": {
"en": "Share why it's difficult for you to come to court in person",
"es": "Explique por qué le cuesta ir a la corte en persona",
"zh-s": "告诉我们您为何难以亲自去法院",
"zh-t": "語言服務"
},
"final_step": {
"en": "### Final Step",
"es": "### Paso final",
"zh-s": "",
"zh-t": ""
},
"what_email_can_court_use": {
"en": "What email address can the Court use to communicate about your request?",
"es": "Su dirección de email donde la corte puede comunicarse con usted acerca de su solicitud",
"zh-s": "",
"zh-t": ""
},
"email_again": {
"en": "Please enter your email address again.",
"es": "Ingrese su dirección de email otra vez",
"zh-s": "",
"zh-t": ""
},
"make_sure_emails_match": {
"en": "Make sure the e-mail addresses match.",
"es": "Asegure que las dos direcciones sean idénticas",
"zh-s": "",
"zh-t": ""
},
"emails_match": {
"en": '<span class="text-success">E-mail addresses match!</span>',
"es": '<span class="text-success">¡Las dos direcciones sean idénticas!</span>',
"zh-s": '<span class="text-success"></span>',
"zh-t": '<span class="text-success"></span>'
},
"penalty_of_perjury": {
"en": "By checking this box, I declare under penalty of perjury that what I have reported is true.",
"es": "Al marcar esta casilla, declaro bajo pena de perjurio que lo que he reportado es verdadero.",
"zh-s": "",
"zh-t": ""
},
"cant_continue_email": {
"en": "You cannot continue until you confirm your e-mail address.",
"es": "No puede continuar hasta confirmar su dirección de email.",
"zh-s": "",
"zh-t": ""
},
"cant_continue_sign": {
"en": "You cannot continue until you electronically sign under penalty of perjury.",
"es": "No puede continuar hasta firmar electrónicamente bajo pena de perjurio.",
"zh-s": "",
"zh-t": ""
},
"continue_button": {
"en": "Submit",
"es": "Ingresar",
"zh-s": "",
"zh-t": ""
},
"thank_you": {
"en": "### Thank you!",
"es": "### ¡Gracias!",
"zh-s": "",
"zh-t": ""
},
"expect_response": {
"en": "*Expect a response from the court by email in 30 business days. If you don't get a notification please contact the Court.*",
"es": "*Puede esperar una respuesta de la corte por email en 30 días hábiles. Si no recibe una notificación, comuníquese con la corte.",
"zh-s": "",
"zh-t": ""
},
"restart": {
"en": "Start Another Request",
"es": "Comenzar otra solicitud",
"zh-s": "",
"zh-t": ""
},
#Error messages
###########################################
"citation_number_required": {
"en": "Please enter a citation number.",
"es": "Favor de poner el número de citación.",
"zh-s": "",
"zh-t": ""
},
"cant_process_online": {
"en": "We can't process this citation online. Please contact your Court for more information.",
"es": "No podemos procesar esta citación en línea. Favor de contactarse con su Corte para más información.",
"zh-s": "",
"zh-t": ""
},
"no_match_found": {
"en": "No match was found. Please check the county and citation number. Try again. Or click \"I don't have my citation\" to search another way.",
"es": "No se encontró una citación. Favor de verificar el condado y el número de citación. Intente de nuevo. O haga clic en \"No tengo mi citación\" para buscar de otra manera.",
"zh-s": "",
"zh-t": ""
},
"check_information": {
"en": "Check the information you entered. Try again.",
"es": "Verifique la información que ingresó. Intente de nuevo.",
"zh-s": "",
"zh-t": ""
},
"something_went_wrong": {
"en": "Sorry! Something went wrong with your submission. Our support team has been notified. Please try again later, or contact your court.",
"es": "¡Lo sentimos! Hubo un error con su submisión. Nuestro equipo de apoyo ha sido notificado. Intente nuevamente más tarde, o contáctese con su corte.",
"zh-s": "",
"zh-t": ""
},
}
def get_translation(key, lang, **kwargs):
return _translations[key][lang].format(**kwargs)
|
data = b""
data += b"\x7F\x45\x4C\x46" # ELF
data += b"\x02\x02\x02" # ELF64
data += b"\x20\x00" # ABI
data += b"\x00\x00\x00\x00\x00\x00\x00" # Pad
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Type Machine Version
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Start Address
data += b"\x00\x00\x00\x00\x00\x00\x00\x40" # Program Header
data += b"\x00\x00\x00\x00\x00\x00\x00\x78" # Section Header
data += b"\x00\x00\x00\x00" # Flags
data += b"\x00\x40" # Size of This Header
data += b"\x00\x38" # Size of Program Header
data += b"\x00\x01" # Number of Program Headers
data += b"\x00\x40" # Size of Section Headers
data += b"\x00\x02" # Number of Section Headers
data += b"\x00\x01" # Section Index Containing Labels
data += b"\x00\x00\x00\x01" # Segment Type (LOAD)
data += b"\x00\x00\x00\x00" # Flags (None)
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Offset
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Virtual Address
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Physical Address
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Size in File
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Size in Memory
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Alignment
data += b"\x00\x00\x00\x01" # Section Name in STRTAB
data += b"\x00\x00\x00\x01" # PROGBITS
data += b"\x00\x00\x00\x00\x00\x00\x00\x07" # Flags (WAX)
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Virtual Address
data += b"\x00\x00\x00\x00\x00\x00\x01\x00" # Offset in File
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Size in File
data += b"\x00\x00\x00\x00" # Section Index
data += b"\x00\x00\x00\x00" # Extra Information
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Alignment
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Size of Entry or Zero
data += b"\x00\x00\x00\x07" # Section Name in STRTAB
data += b"\x00\x00\x00\x03" # STRTAB
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Flags (None)
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Virtual Address
data += b"\x00\x00\x00\x00\x00\x00\x00\xF8" # Offset in File
data += b"\x00\x00\x00\x00\x00\x00\x00\x0C" # Size in File
data += b"\x00\x00\x00\x00" # Section Index
data += b"\x00\x00\x00\x00" # Extra Information
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Alignment
data += b"\x00\x00\x00\x00\x00\x00\x00\x00" # Size of Entry or Zero
data += b"\x00.text\x00.data\x00"
data += b"\x00" * (0x100 - len(data))
data += b"\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64\x21\x0A\x00" # Hello World!
file = open("sample4.elf", "wb")
file.write(data)
file.close()
print("Done!")
|
class User:
def __init__(self):
self.id = None
self.login = None
self.password = None
self.fullName = None
self.phone = None
self.email = None
self.imageUrl = ''
self.activated = False
self.langKey = 'en'
self.activationKey = None
self.resetKey = None
self.createdBy = None
self.createdDate = None
self.resetDate = None
self.lastModifiedBy = None
self.lastModifiedDate = None
self.authorities = ['ROLE_USER', ]
self.activateUrlPrefix = None
def from_record(self, record):
self.id = record[0]
self.login = record[1]
self.password = record[2]
self.fullName = record[3]
self.phone = record[4]
self.email = record[5]
self.imageUrl = record[6]
self.activated = ord(record[7]) == 1
self.langKey = record[8]
self.activationKey = record[9]
self.resetKey = record[10]
self.createdBy = record[11]
self.createdDate = record[12].strftime('%Y-%m-%dT%H:%M:%S') if record[12] else None
self.resetDate = record[13].strftime('%Y-%m-%dT%H:%M:%S') if record[13] else None
self.lastModifiedBy = record[14]
self.lastModifiedDate = record[15].strftime('%Y-%m-%dT%H:%M:%S') if record[15] else None
self.authorities = record[16].split(',')
def remove_internal_values(self):
delattr(self, 'password')
delattr(self, 'activationKey')
delattr(self, 'resetKey')
delattr(self, 'resetDate')
delattr(self, 'activateUrlPrefix')
|
row = int(input("How many rows you want? "))
column = int(input("How many columns you want? "))
if row==column:
for i in range(1,row+1):
for j in range(1,row+1):
if i==j:
print("1", end = " ")
else:
print("0", end= " ")
print("")
else:
print("It does not forms square matrix")
|
def arithmetic_progression(el_1, el_2, n):
"""Finds the nth element of Given the first two elements of
an arithmetic progression.
NOTE: nth term for arithmetic progression is a sub n = (n-1)*d + a
where n is the nth term, d is difference, a is the first element of
the arithmetic progression.
"""
a = el_1
d = el_2 - el_1
return (n-1) * d + a
|
patches = [
{
"op": "remove",
"path": "/PropertyTypes/AWS::S3::StorageLens.S3BucketDestination/Properties/Encryption/Type",
},
{
"op": "add",
"path": "/PropertyTypes/AWS::S3::StorageLens.S3BucketDestination/Properties/Encryption/PrimitiveType",
"value": "Json",
},
# Rename AWS::S3::StorageLens.DataExport to AWS::S3::StorageLens.StorageLensDataExport due to conflict with AWS::S3::Bucket.DataExport
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::StorageLens.DataExport",
"path": "/PropertyTypes/AWS::S3::StorageLens.StorageLensDataExport",
},
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::StorageLens.StorageLensConfiguration/Properties/DataExport/Type",
"value": "StorageLensDataExport",
},
# Rename AWS::S3::LifecycleConfiguration.Rule to AWS::S3::LifecycleConfiguration.LifecycleRule - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.Rule",
"path": "/PropertyTypes/AWS::S3::Bucket.LifecycleRule",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.LifecycleConfiguration/Properties/Rules/ItemType",
"value": "LifecycleRule",
},
# Rename AWS::S3::Bucket.Transition to AWS::S3::Bucket.LifecycleRuleTransition - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.Transition",
"path": "/PropertyTypes/AWS::S3::Bucket.LifecycleRuleTransition",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.LifecycleRule/Properties/Transition/Type",
"value": "LifecycleRuleTransition",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.LifecycleRule/Properties/Transitions/ItemType",
"value": "LifecycleRuleTransition",
},
# Rename AWS::S3::Bucket.CorsRule to AWS::S3::Bucket.CorsRule - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.CorsRule",
"path": "/PropertyTypes/AWS::S3::Bucket.CorsRules",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.CorsConfiguration/Properties/CorsRules/ItemType",
"value": "CorsRules",
},
# Rename AWS::S3::Bucket.FilterRule to AWS::S3::Bucket.Rules - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.FilterRule",
"path": "/PropertyTypes/AWS::S3::Bucket.Rules",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.S3KeyFilter/Properties/Rules/ItemType",
"value": "Rules",
},
# Rename AWS::S3::Bucket.S3KeyFilter to AWS::S3::Bucket.S3Key - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.S3KeyFilter",
"path": "/PropertyTypes/AWS::S3::Bucket.S3Key",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.NotificationFilter/Properties/S3Key/Type",
"value": "S3Key",
},
# Rename AWS::S3::Bucket.NotificationFilter to AWS::S3::Bucket.Filter - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.NotificationFilter",
"path": "/PropertyTypes/AWS::S3::Bucket.Filter",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.LambdaConfiguration/Properties/Filter/Type",
"value": "Filter",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.QueueConfiguration/Properties/Filter/Type",
"value": "Filter",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.TopicConfiguration/Properties/Filter/Type",
"value": "Filter",
},
# Rename AWS::S3::Bucket.LambdaConfiguration to AWS::S3::Bucket.LambdaConfigurations - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.LambdaConfiguration",
"path": "/PropertyTypes/AWS::S3::Bucket.LambdaConfigurations",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.NotificationConfiguration/Properties/LambdaConfigurations/ItemType",
"value": "LambdaConfigurations",
},
# Rename AWS::S3::Bucket.QueueConfigurations to AWS::S3::Bucket.QueueConfigurations - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.QueueConfiguration",
"path": "/PropertyTypes/AWS::S3::Bucket.QueueConfigurations",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.NotificationConfiguration/Properties/QueueConfigurations/ItemType",
"value": "QueueConfigurations",
},
# Rename AWS::S3::Bucket.TopicConfiguration to AWS::S3::Bucket.TopicConfigurations - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.TopicConfiguration",
"path": "/PropertyTypes/AWS::S3::Bucket.TopicConfigurations",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.NotificationConfiguration/Properties/TopicConfigurations/ItemType",
"value": "TopicConfigurations",
},
# Rename AWS::S3::Bucket.ReplicationDestination to AWS::S3::Bucket.ReplicationConfigurationRulesDestination - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.ReplicationDestination",
"path": "/PropertyTypes/AWS::S3::Bucket.ReplicationConfigurationRulesDestination",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.ReplicationRule/Properties/Destination/Type",
"value": "ReplicationConfigurationRulesDestination",
},
# Rename AWS::S3::Bucket.ReplicationRule to AWS::S3::Bucket.ReplicationConfigurationRules - backward compatibility
{
"op": "move",
"from": "/PropertyTypes/AWS::S3::Bucket.ReplicationRule",
"path": "/PropertyTypes/AWS::S3::Bucket.ReplicationConfigurationRules",
},
# backward compatibility
{
"op": "replace",
"path": "/PropertyTypes/AWS::S3::Bucket.ReplicationConfiguration/Properties/Rules/ItemType",
"value": "ReplicationConfigurationRules",
},
]
|
#
# PySNMP MIB module CISCO-COMMON-MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-COMMON-MGMT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:36:17 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
usmNoPrivProtocol, usmNoAuthProtocol = mibBuilder.importSymbols("SNMP-USER-BASED-SM-MIB", "usmNoPrivProtocol", "usmNoAuthProtocol")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
ModuleIdentity, TimeTicks, Counter64, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Integer32, Unsigned32, Counter32, iso, NotificationType, ObjectIdentity, IpAddress, Gauge32, dod = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "TimeTicks", "Counter64", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Integer32", "Unsigned32", "Counter32", "iso", "NotificationType", "ObjectIdentity", "IpAddress", "Gauge32", "dod")
TruthValue, StorageType, AutonomousType, DateAndTime, DisplayString, TextualConvention, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "StorageType", "AutonomousType", "DateAndTime", "DisplayString", "TextualConvention", "RowStatus")
ciscoCommonMgmtMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 443))
ciscoCommonMgmtMIB.setRevisions(('2008-06-13 00:00', '2005-06-23 00:00',))
if mibBuilder.loadTexts: ciscoCommonMgmtMIB.setLastUpdated('200806130000Z')
if mibBuilder.loadTexts: ciscoCommonMgmtMIB.setOrganization('Cisco Systems Inc.')
ciscoCommonMgmtNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 443, 0))
ciscoCommonMgmtMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 443, 1))
ciscoCommonMgmtMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 443, 2))
ccmUserConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1))
ccmCommonMaxUsers = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ccmCommonMaxUsers.setStatus('current')
ccmCommonUsers = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ccmCommonUsers.setStatus('current')
ccmCommonUsersGlobalEnforcePriv = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ccmCommonUsersGlobalEnforcePriv.setStatus('current')
ccmCommonUserLastChange = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 4), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ccmCommonUserLastChange.setStatus('current')
ccmCommonUserTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5), )
if mibBuilder.loadTexts: ccmCommonUserTable.setStatus('current')
ccmCommonUserEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1), ).setIndexNames((0, "CISCO-COMMON-MGMT-MIB", "ccmCommonUserName"))
if mibBuilder.loadTexts: ccmCommonUserEntry.setStatus('current')
ccmCommonUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
if mibBuilder.loadTexts: ccmCommonUserName.setStatus('current')
ccmCommonUserPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 2), DisplayString().clone(hexValue="")).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserPassword.setStatus('current')
ccmCommonUserExpiryDate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 3), DateAndTime().clone(hexValue="0000000000000000000000")).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserExpiryDate.setStatus('current')
ccmCommonUserSshKeyFilename = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 255)).clone(hexValue="")).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserSshKeyFilename.setStatus('current')
ccmCommonUserSshKeyConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ccmCommonUserSshKeyConfigured.setStatus('current')
ccmCommonUserSNMPAuthProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 6), AutonomousType().clone((1, 3, 6, 1, 6, 3, 10, 1, 1, 1))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserSNMPAuthProtocol.setStatus('current')
ccmCommonUserSNMPPrivProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 7), AutonomousType().clone((1, 3, 6, 1, 6, 3, 10, 1, 2, 1))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserSNMPPrivProtocol.setStatus('current')
ccmCommonUserCredType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("localCredentialStore", 2), ("remoteCredentialStore", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ccmCommonUserCredType.setStatus('current')
ccmCommonUserStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 9), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserStorageType.setStatus('current')
ccmCommonUserRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 5, 1, 10), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserRowStatus.setStatus('current')
ccmCommonUserRoleTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 6), )
if mibBuilder.loadTexts: ccmCommonUserRoleTable.setStatus('current')
ccmCommonUserRoleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 6, 1), ).setIndexNames((0, "CISCO-COMMON-MGMT-MIB", "ccmCommonUserName"), (0, "CISCO-COMMON-MGMT-MIB", "ccmCommonUserRoleName"))
if mibBuilder.loadTexts: ccmCommonUserRoleEntry.setStatus('current')
ccmCommonUserRoleName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 6, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
if mibBuilder.loadTexts: ccmCommonUserRoleName.setStatus('current')
ccmCommonUserRoleStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 6, 1, 2), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserRoleStorageType.setStatus('current')
ccmCommonUserRoleRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 6, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ccmCommonUserRoleRowStatus.setStatus('current')
ccmCommonUserCacheTimeout = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 443, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 86400))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: ccmCommonUserCacheTimeout.setStatus('current')
ciscoCommonMgmtMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 443, 2, 1))
ciscoCommonMgmtMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 443, 2, 2))
ciscoCommonMgmtMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 443, 2, 1, 1)).setObjects(("CISCO-COMMON-MGMT-MIB", "ccmConfigurationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoCommonMgmtMIBCompliance = ciscoCommonMgmtMIBCompliance.setStatus('obsolete')
ciscoCommonMgmtMIBCompliance1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 443, 2, 1, 2)).setObjects(("CISCO-COMMON-MGMT-MIB", "ccmConfigurationGroup"), ("CISCO-COMMON-MGMT-MIB", "ccmCacheTimeoutConfigGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoCommonMgmtMIBCompliance1 = ciscoCommonMgmtMIBCompliance1.setStatus('current')
ccmConfigurationGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 443, 2, 2, 1)).setObjects(("CISCO-COMMON-MGMT-MIB", "ccmCommonMaxUsers"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUsers"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUsersGlobalEnforcePriv"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserLastChange"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserPassword"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserExpiryDate"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserSshKeyFilename"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserSshKeyConfigured"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserSNMPAuthProtocol"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserSNMPPrivProtocol"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserCredType"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserStorageType"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserRowStatus"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserRoleStorageType"), ("CISCO-COMMON-MGMT-MIB", "ccmCommonUserRoleRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ccmConfigurationGroup = ccmConfigurationGroup.setStatus('current')
ccmCacheTimeoutConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 443, 2, 2, 2)).setObjects(("CISCO-COMMON-MGMT-MIB", "ccmCommonUserCacheTimeout"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ccmCacheTimeoutConfigGroup = ccmCacheTimeoutConfigGroup.setStatus('current')
mibBuilder.exportSymbols("CISCO-COMMON-MGMT-MIB", ccmCommonUserTable=ccmCommonUserTable, ccmCommonUserPassword=ccmCommonUserPassword, ccmCommonUserSNMPAuthProtocol=ccmCommonUserSNMPAuthProtocol, ccmCommonUserRoleStorageType=ccmCommonUserRoleStorageType, PYSNMP_MODULE_ID=ciscoCommonMgmtMIB, ccmCommonUsers=ccmCommonUsers, ciscoCommonMgmtMIB=ciscoCommonMgmtMIB, ccmCommonUserEntry=ccmCommonUserEntry, ciscoCommonMgmtMIBObjects=ciscoCommonMgmtMIBObjects, ccmConfigurationGroup=ccmConfigurationGroup, ccmCommonUserSNMPPrivProtocol=ccmCommonUserSNMPPrivProtocol, ccmCommonUserLastChange=ccmCommonUserLastChange, ccmCommonUserRoleName=ccmCommonUserRoleName, ciscoCommonMgmtMIBCompliance1=ciscoCommonMgmtMIBCompliance1, ciscoCommonMgmtMIBCompliances=ciscoCommonMgmtMIBCompliances, ccmCommonUserRoleTable=ccmCommonUserRoleTable, ccmCommonUserRoleEntry=ccmCommonUserRoleEntry, ccmCommonUserSshKeyConfigured=ccmCommonUserSshKeyConfigured, ccmUserConfig=ccmUserConfig, ciscoCommonMgmtMIBGroups=ciscoCommonMgmtMIBGroups, ccmCommonUserName=ccmCommonUserName, ccmCommonMaxUsers=ccmCommonMaxUsers, ccmCacheTimeoutConfigGroup=ccmCacheTimeoutConfigGroup, ccmCommonUserRowStatus=ccmCommonUserRowStatus, ciscoCommonMgmtMIBCompliance=ciscoCommonMgmtMIBCompliance, ccmCommonUserCredType=ccmCommonUserCredType, ccmCommonUserSshKeyFilename=ccmCommonUserSshKeyFilename, ciscoCommonMgmtNotifs=ciscoCommonMgmtNotifs, ciscoCommonMgmtMIBConform=ciscoCommonMgmtMIBConform, ccmCommonUserRoleRowStatus=ccmCommonUserRoleRowStatus, ccmCommonUsersGlobalEnforcePriv=ccmCommonUsersGlobalEnforcePriv, ccmCommonUserCacheTimeout=ccmCommonUserCacheTimeout, ccmCommonUserStorageType=ccmCommonUserStorageType, ccmCommonUserExpiryDate=ccmCommonUserExpiryDate)
|
with open("input_16.txt", "r") as f:
lines = f.readlines()
names = []
restrictions = []
for line in lines:
if len(line.strip()) == 0:
break
names.append(line.strip().split(": ")[0])
values = line.strip().split(": ")[1]
ranges = values.split(" or ")
restrictions.append([
[int(x) for x in ranges[0].split("-")],
[int(x) for x in ranges[1].split("-")]
])
nearby_tickets = []
start_adding = False
for line in lines:
if start_adding:
cleaned = line.strip().split(",")
nearby_tickets.append([int(x) for x in cleaned])
if "nearby tickets:" in line:
start_adding = True
not_satisfied = []
valid_tickets = []
for ticket in nearby_tickets:
valid_ticket = True
for field in ticket:
fulfills_restriction = False
for restriction in restrictions:
if (restriction[0][0] <= field <= restriction[0][1]) or (restriction[1][0] <= field <= restriction[1][1]):
fulfills_restriction = True
break
if not fulfills_restriction:
not_satisfied.append(field)
valid_ticket = False
if valid_ticket:
valid_tickets.append(ticket)
fields = [[valid_ticket[i] for valid_ticket in valid_tickets] for i in range(len(valid_tickets[0]))]
field_to_possibilities = []
for field in fields:
possible_restrictions = []
for i, restriction in enumerate(restrictions):
fulfills_restriction = True
for ticket in field:
if not ((restriction[0][0] <= ticket <= restriction[0][1]) or (restriction[1][0] <= ticket <= restriction[1][1])):
fulfills_restriction = False
break
if fulfills_restriction:
possible_restrictions.append(i)
field_to_possibilities.append(possible_restrictions)
remaining = set(range(len(fields)))
fields = ["" for _ in fields]
while len(remaining) > 0:
for i, possibilities in enumerate(field_to_possibilities):
if len(possibilities) == 1:
chosen = possibilities[0]
chosen_idx = i
break
for possibilities in field_to_possibilities:
if chosen in possibilities:
possibilities.remove(chosen)
fields[chosen_idx] = names[chosen]
remaining.remove(chosen)
print(fields)
idxs = [idx for idx, val in enumerate(fields) if val.startswith("departure")]
your_ticket = "151,71,67,113,127,163,131,59,137,103,73,139,107,101,97,149,157,53,109,61"
your_ticket_vals = [int(val) for val in your_ticket.split(",")]
ans = 1
for idx in idxs:
ans *= your_ticket_vals[idx]
print(ans) |
#cigar_party
def cigar_party(cigars, is_weekend):
if 40<=cigars<=60:
return True
elif cigars>=60 and is_weekend:
return True
return False
#date_fashion
def date_fashion(you, date):
if you<=2 or date<=2:
return 0
elif you>=8 or date>=8:
return 2
elif 2<you<8 or 2<date<8:
return 1
#squirrel_play
def squirrel_play(temp, is_summer):
if 60<=temp<=90:
return True
elif 90<temp<=100 and is_summer==False:
return False
elif 90<temp<=100 and is_summer==True:
return True
return False
#caught_speeding
def caught_speeding(speed, is_birthday):
if is_birthday:
speed-=5
if speed<=60:
return 0
elif 61<=speed<=80:
return 1
elif speed>=81:
return 2
#sorta_sum
def sorta_sum(a, b):
sum = a+b
if 10<=sum<=19:
return 20
return sum
#alarm_clock
def alarm_clock(day, vacation):
if (day==1 or day==2 or day==3 or day==4 or day==5) and not vacation:
return "7:00"
elif ((day==0 or day==6) and not vacation) or ((day==1 or day==2 or day==3 or day==4 or day==5) and vacation):
return "10:00"
else:
return "off"
#love6
def love6(a, b):
if a==6 or b==6 or a+b==6 or abs(a-b)==6:
return True
return False
#in1to10
def in1to10(n, outside_mode):
if outside_mode and (n>=10 or n<=1):
return True
elif 1<=n<=10 and not outside_mode:
return True
return False
#near_ten
def near_ten(num):
if (num%10)<=2 or num%10>=8:
return True
return False
|
def bucketSort(input):
'''简单的桶排序
时间复杂度可以,但是浪费空间'''
min=input[0]
max=input[0]
for temp1 in input:
if temp1>max:
max=temp1
if temp1<min:
min=temp1
tempArr=[0]*(max+1)
#print(tempArr)
for temp2 in input:
tempArr[temp2]+=1
print(tempArr)
for temp3 in range(len(tempArr)):
for index in range(tempArr[temp3]):
print(temp3)
testArr=[2,3,4,56,1,25,34,6,12]
# 输出方法的说明
print(bucketSort.__doc__)
bucketSort(testArr)
|
Listagem = ("Lápis", 1.75, "Borracha", 2.00, "Caderno", 15.90, "Estojo", 25.00, "Transferidor", 4.20,
"Compasso", 9.99, "Mochila", 120, "Canetas", 22.30, "Livro", 34.90)
print('--'*20)
print(f'{"LISTAGEM DE PREÇOS":^40}')
print('--'*20)
for i in Listagem:
if type(i) is str:
print(f'{i:.<32}', end='')
else:
print(f'R$ {i:>5.2f}')
print('--'*20)
|
#
# first solution:
#
class sample(object):
class one(object):
def __get__(self, obj, type=None):
print("computing ...")
obj.one = 1
return 1
one = one()
x=sample()
print(x.one)
print(x.one)
#
# other solution:
#
# lazy attribute descriptor
class lazyattr(object):
def __init__(self, fget, doc=''):
self.fget = fget
self.__doc__ = doc
def __appoint__(self, name, cl_name):
if hasattr(self,"name"):
raise SyntaxError("conflict between "+name+" and "+self.name)
self.name = name
def __get__(self, obj, cl=None):
if obj is None:
return self
value = self.fget(obj)
setattr(obj, self.name, value)
return value
# appointer metaclass:
# call the members __appoint__ method
class appointer(type):
def __init__(self, cl_name, bases, namespace):
for name,obj in namespace.items():
try:
obj.__appoint__(name, cl_name)
except AttributeError:
pass
super(appointer, self).__init__(cl_name, bases, namespace)
# base class for lazyattr users
class lazyuser(object, metaclass=appointer):
pass
# usage sample
class sample(lazyuser):
def one(self):
print("computing ...")
return 1
one = lazyattr(one, "one lazyattr")
x=sample()
print(x.one)
print(x.one)
del x.one
print(x.one)
|
"""Class Transaction"""
class Transaction:
"""Docs."""
def __init__(self):
# Crea una transacción
# hash
# de quien
# para quien
# timestamp
# monto en satoshis
# fee
pass
def read_transaction_config(config_file, node_file, dir):
"""Read the config file"""
# Config file
# frecuencia : Número de transacciones por minuto
# NumEntradasMin : Número de entradas Mínimo
# NumEntradasMax : Número de entradas Máximo
# NumSalidasMin : Número de salidas Mínimo
# NumSalidasMax : Número de salidas Máximo
# Node file
# nombre: puerto
# dir
# Directorio en donde vamos a tener todos los logs tipo nodo.log
def gen_dummy_transaction(target):
"""Genera una transaccion al target"""
|
"""About this package."""
__all__ = [
"__title__", "__summary__", "__uri__", "__version__", "__author__",
"__email__", "__license__", "__copyright__",
]
__title__ = "jupyter-d3"
__summary__ = "Jupyter magic providing easy integration of d3 JavaScript visualization library."
__uri__ = "https://github.com/CermakM/jupyter-d3"
__version__ = "0.1.0-dev"
__author__ = "Marek Cermak"
__email__ = "macermak@redhat.com"
__license__ = "MIT"
__copyright__ = "Copyright 2019 {0}".format(__author__)
|
class Ball(object):
color = str()
circumference = float()
brand = str()
|
NAME = 'converter.py'
ORIGINAL_AUTHORS = [
'Angelo Giacco'
]
ABOUT = '''
Converts currencies
'''
COMMANDS = '''
>>> .convert <<base currency code>> <<target currency code>> <<amount>>
returns the conversion: amount argument is optional with a default of 1
.convert help
shows a list of currencies supported
'''
WEBSITE = ''
|
class Bar:
x = 1
print(Bar.x)
|
def find_min(array, i):
if i == len(array) - 1:
return array[i]
else:
tmp_min = array[i]
i = i + 1
min_frm = find_min(array, i)
return min(tmp_min, min_frm)
a = [2, 1, 3, 10, 53, 23, -1, 2, 5, 0, 34, 8]
#a = [x for x in range(1000)]
print (find_min(a, 0))
|
def solve(input):
print(sum(list(map(int, input))))
with open('input.txt', 'r') as f:
input = f.read().splitlines()
solve(input)
|
# Given a linked list, determine if it has a cycle in it.
# Follow up:
# Can you solve it without using extra space?
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param head, a ListNode
# @return a boolean
def hasCycle(self, head):
if not head:
return False
walker = runner = head
while runner and runner.next:
walker = walker.next
runner = runner.next.next
if walker == runner:
return True
return False |
#1
# Time: O(n)
# Space: O(n)
# Given an array of integers, return indices of
# the two numbers such that they add up to a specific target.
# You may assume that each input would have exactly one solution,
# and you may not use the same element twice.
#
# Example:
# Given nums = [2, 7, 11, 15], target = 9,
# Because nums[0] + nums[1] = 2 + 7 = 9,
# return [0, 1].
class hashTableSol():
def twoSum(self,nums,target):
num_idx={}
for idx,num in enumerate(nums):
if target-num in num_idx:
return [num_idx[target-num],idx]
else:
num_idx[num]=idx
return []
|
def get_length(dna):
''' (str) -> int
Return the length of the DNA sequence dna.
>>> get_length('ATCGAT')
6
>>> get_length('ATCG')
4
'''
return len(dna)
def is_longer(dna1, dna2):
''' (str, str) -> bool
Return True if and only if DNA sequence dna1 is longer than DNA sequence
dna2.
>>> is_longer('ATCG', 'AT')
True
>>> is_longer('ATCG', 'ATCGGA')
False
'''
return len(dna1) > len(dna2)
def count_nucleotides(dna, nucleotide):
''' (str, str) -> int
Return the number of occurrences of nucleotide in the DNA sequence dna.
>>> count_nucleotides('ATCGGC', 'G')
2
>>> count_nucleotides('ATCTA', 'G')
0
'''
return dna.count(nucleotide,)
def contains_sequence(dna1, dna2):
''' (str, str) -> bool
Return True if and only if DNA sequence dna2 occurs in the DNA sequence
dna1.
>>> contains_sequence('ATCGGC', 'GG')
True
>>> contains_sequence('ATCGGC', 'GT')
False
'''
return dna2 in dna1
def is_valid_sequence(dna):
''' (str) -> bool
Return True if and only if the DNA sequence is valid.
Lowercase characters are not valid.
>>> is_valid_sequence('ATCGGC')
True
>>> is_valid_sequence('BTCGGC')
False
'''
validity = True
for char in dna:
if not char in 'ATCG':
validity = False
return validity
def insert_sequence(dna1, dna2, index):
''' (str, str, int) -> str
Return the DNA sequence obtained by inserting the second DNA sequence into the first DNA sequence at the given index
>>> insert_sequence('CCGG', 'AT', 2)
CCATGG
>>> insert_sequence('ATGC', 'CG', 4)
ATGCCG
'''
return dna1[0:index] + dna2 + dna1[index:]
def get_complement(nucleotide):
''' (str) -> str
Return the nucleotide's complement
>>> get_complement('A')
'T'
>>> get_complement('C')
'G'
>>> get_complement('G')
'C'
>>> get_complement('T')
'A'
'''
if nucleotide == 'A':
return 'T'
elif nucleotide == 'C':
return 'G'
elif nucleotide == 'G':
return 'C'
elif nucleotide == 'T':
return 'A'
def get_complementary_sequence(dna):
''' (str) -> str
Return the DNA sequency that is complementary to the given DNA sequency
>>> get_complementary_sequence('AT')
'TA'
>>> get_complementary_sequence('ATCGGC')
'TAGCCG'
'''
result=''
for nucleotide in dna:
result += get_complement(nucleotide)
return result
|
"""
Workflow module
"""
class Workflow:
"""
Base class for all workflows.
"""
def __init__(self, tasks, batch=100):
"""
Creates a new workflow. Workflows are lists of tasks to execute.
Args:
tasks: list of workflow tasks
batch: how many items to process at a time, defaults to 100
"""
self.tasks = tasks
self.batch = batch
def __call__(self, elements):
"""
Executes a workflow for input elements.
Args:
elements: list of data elements
Returns:
transformed data elements
"""
batch = []
for x in elements:
batch.append(x)
if len(batch) == self.batch:
yield from self.process(batch)
batch = []
if batch:
yield from self.process(batch)
def process(self, elements):
"""
Processes a batch of data elements.
Args:
elements: list of data elements
Returns:
transformed data elements
"""
for task in self.tasks:
# Build list of elements with unique process ids
indexed = list(enumerate(elements))
# Filter data down to data this task handles
data = [(x, self.unpack(element) if task.unpack else element) for x, element in indexed if task.accept(self.unpack(element))]
# Get list of filtered process ids
ids = [x for x, _ in data]
# Execute task action
results = task([element for _, element in data])
# Update with transformed elements. Handle one to many transformations.
elements = []
for x, element in indexed:
if x in ids:
# Get result for process id
result = results[ids.index(x)]
if isinstance(result, list):
# One-many transformations
elements.extend([self.pack(element, r) if task.unpack else r for r in result])
else:
# One-one transformations
elements.append(self.pack(element, result) if task.unpack else result)
else:
# Pass unprocessed elements through
elements.append(element)
# Remove process index and yield results
yield from elements
def unpack(self, element):
"""
Unpacks data for processing.
Args:
element: input data element
Returns:
data
"""
# Extract data from (id, data, tag) formatted elements
if isinstance(element, tuple):
return element[1]
return element
def pack(self, element, data):
"""
Packs data for delivery to the next workflow task.
Args:
element: transformed data element
data: item to pack element into
Returns:
packed data
"""
# Package data into (id, data, tag) formatted elements
if isinstance(element, tuple):
# If new data is a (id, data, tag) tuple use that
if isinstance(data, tuple):
return data
# Create a copy of tuple, update data element and return
element = list(element)
element[1] = data
return tuple(element)
return data
|
"""Utility variables and functions for the TS3 API"""
# FROM OLD API
"""
Don't change the order in this map, otherwise it might break
"""
_ESCAPE_MAP = [
("\\", r"\\"),
("/", r"\/"),
(" ", r"\s"),
("|", r"\p"),
("\a", r"\a"),
("\b", r"\b"),
("\f", r"\f"),
("\n", r"\n"),
("\r", r"\r"),
("\t", r"\t"),
("\v", r"\v")
]
def escape(raw):
"""
Escapes characters that need escaping according to _ESCAPE_MAP
"""
for char, replacement in _ESCAPE_MAP:
raw = raw.replace(char, replacement)
return raw
def unescape(raw):
"""
Undo escaping of characters according to _ESCAPE_MAP
"""
for replacement, char in reversed(_ESCAPE_MAP):
raw = raw.replace(char, replacement)
return raw
class TS3Exception(Exception):
pass
class TS3ConnectionClosedException(Exception):
pass
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.