content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non-U.S. persons whether in the United States or abroad requires # an export license or other authorization. # # Contractor Name: Raytheon Company # Contractor Address: 6825 Pine Street, Suite 340 # Mail Stop B8 # Omaha, NE 68106 # 402.291.0100 # # See the AWIPS II Master Rights File ("Master Rights File.pdf") for # further licensing information. ## ######################################################################## # FirePeriodTable # # Type: table # Edit Areas: solicited from user # Weather Elements: You must have these Weather elements defined in # your server: Sky, LAL, RelHum, MaxT, MinT, FreeWind, # Haines, TransWind, MixHgt(ft AGL) # To Run: # Set GFE Time Range # Products-->Generate Products # Choose Edit Areas # Select OK # ######################################################################## ## EXAMPLE OUTPUT (Scarce Data) ## Fire Period Table for Feb 29 00 17:00:00 GMT - Mar 01 00 11:00:00 GMT. ## Edit Area Sky (%) LAL RelHum (%) MaxT MinT FreeWind(mph) Haines TransWind(mph) MixHgt(ft AGL) ## COAdams 36-23 46 26 ## COArapahoe 34-24 46 26 ## COBoulder 31-52 34 18 ## COClearCreek 16-57 26 12 ## CODenver 37-40 43 25 ## CODouglas 24-47 40 21 ## COElbert 31-22 46 25 ######################################################################## Definition = { "type": "table", "displayName": "TEST_Fire Period Table", # for Product Generation Menu # Output file for product results "outputFile": "./FirePeriodTable.txt", # default output file "constantVariable": "TimePeriod", "rowVariable": "EditArea", "columnVariable": "WeatherElement", "beginningText": "Fire Period Table for %TimePeriod. \n\n", "endingText": "", # Edit Areas "defaultEditAreas" : [("area1","Area 1"),("area2","Area 2")], "runTimeEditAreas": "yes", "areaType" : "Edit Area", # E.g. City, County, Basin, etc. # Time Ranges "defaultRanges": ["Today"], "runTimeRanges" : "no", # if yes, ask user at run time "elementList": [ ("Sky", "Sky (%)", "minMax", "range2Value", "Scalar", 1, None), ("LAL","LAL", "minMax", "range2Value", "Scalar",1,None), ("MaxT","MaxT", "avg", "singleValue", "Scalar", 1, None), ("MinT","MinT", "avg", "singleValue", "Scalar", 1, None), ("FreeWind","FreeWind(mph)", "vectorRange", "range2Value", "Vector", 1, "ktToMph"), ("Haines","Haines", "minMax", "range2Value", "Scalar",1,None), ("TransWind","TransWind(mph)", "vectorRange", "range2Value", "Vector", 1, "ktToMph"), ("MixHgt", "MixHgt(ft AGL)", "minMax", "range2Value", "Scalar",10,None), ], }
definition = {'type': 'table', 'displayName': 'TEST_Fire Period Table', 'outputFile': './FirePeriodTable.txt', 'constantVariable': 'TimePeriod', 'rowVariable': 'EditArea', 'columnVariable': 'WeatherElement', 'beginningText': 'Fire Period Table for %TimePeriod. \n\n', 'endingText': '', 'defaultEditAreas': [('area1', 'Area 1'), ('area2', 'Area 2')], 'runTimeEditAreas': 'yes', 'areaType': 'Edit Area', 'defaultRanges': ['Today'], 'runTimeRanges': 'no', 'elementList': [('Sky', 'Sky (%)', 'minMax', 'range2Value', 'Scalar', 1, None), ('LAL', 'LAL', 'minMax', 'range2Value', 'Scalar', 1, None), ('MaxT', 'MaxT', 'avg', 'singleValue', 'Scalar', 1, None), ('MinT', 'MinT', 'avg', 'singleValue', 'Scalar', 1, None), ('FreeWind', 'FreeWind(mph)', 'vectorRange', 'range2Value', 'Vector', 1, 'ktToMph'), ('Haines', 'Haines', 'minMax', 'range2Value', 'Scalar', 1, None), ('TransWind', 'TransWind(mph)', 'vectorRange', 'range2Value', 'Vector', 1, 'ktToMph'), ('MixHgt', 'MixHgt(ft AGL)', 'minMax', 'range2Value', 'Scalar', 10, None)]}
# 20 num = 1 for i in range(100): num *= i + 1 print(sum(int(n) for n in str(num)))
num = 1 for i in range(100): num *= i + 1 print(sum((int(n) for n in str(num))))
# # PySNMP MIB module ADIC-INTELLIGENT-STORAGE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADIC-INTELLIGENT-STORAGE-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:13:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") NotificationType, NotificationType, iso, Counter64, ObjectIdentity, Counter32, Integer32, Unsigned32, enterprises, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, ModuleIdentity, MibIdentifier, Gauge32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "NotificationType", "iso", "Counter64", "ObjectIdentity", "Counter32", "Integer32", "Unsigned32", "enterprises", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "ModuleIdentity", "MibIdentifier", "Gauge32", "IpAddress") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") adic = MibIdentifier((1, 3, 6, 1, 4, 1, 3764)) storage = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1)) intelligent = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1)) productAgentInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10)) globalData = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20)) components = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30)) software = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 100)) hardware = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200)) powerAndCooling = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200)) sml = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 300)) network = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 400)) notification = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500)) class Boolean(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("true", 1), ("false", 2)) class AdicMibVersion(DisplayString): pass class AdicREDIdentifier(Counter32): pass class AdicEnable(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("enabled", 1), ("disabled", 2)) class AdicAgentStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("other", 1), ("unknown", 2), ("ok", 3), ("non-critical", 4), ("critical", 5), ("non-recoverable", 6)) class AdicOnlineStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("online", 1), ("offline", 2), ("shutdown", 3)) class AdicGlobalId(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class AdicComponentType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8)) namedValues = NamedValues(("mcb", 1), ("cmb", 2), ("ioBlade", 3), ("rcu", 4), ("networkChasis", 5), ("controlModule", 6), ("expansionModule", 7), ("powerSupply", 8)) class AdicInterfaceType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("scsi", 1), ("fibreChannel", 2)) class AdicSensorStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("nominal", 1), ("warningLow", 2), ("warningHigh", 3), ("alarmLow", 4), ("alarmHigh", 5), ("notInstalled", 6), ("noData", 7)) class AdicVoltageType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("dc", 1), ("ac", 2)) class AdicDateAndTime(OctetString): subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(8, 8), ValueSizeConstraint(11, 11), ) class AdicTrapSeverity(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("emergency", 1), ("alarm", 2), ("warning", 3), ("notice", 4), ("informational", 5)) class AdicDoorStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("open", 1), ("closed", 2), ("closedAndLocked", 3), ("closedAndUnlocked", 4), ("contollerFailed", 5), ("notInstalled", 6), ("noData", 7)) class AdicDriveStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("idle", 1), ("loading", 2), ("ejecting", 3), ("inserted", 4), ("removed", 5), ("notInstalled", 6), ("noData", 7)) class RowStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)) productMibVersion = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 1), AdicMibVersion()).setMaxAccess("readonly") if mibBuilder.loadTexts: productMibVersion.setStatus('mandatory') if mibBuilder.loadTexts: productMibVersion.setDescription('MIB version identifier.') productSnmpAgentVersion = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productSnmpAgentVersion.setStatus('mandatory') if mibBuilder.loadTexts: productSnmpAgentVersion.setDescription('SNMP agent version identifier.') productName = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productName.setStatus('mandatory') if mibBuilder.loadTexts: productName.setDescription('Name of ADIC branded product. Uniquely identifies the product, independent of OEM.') productDisplayName = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productDisplayName.setStatus('mandatory') if mibBuilder.loadTexts: productDisplayName.setDescription('Name of this agent for display purposes. May be customized for OEM.') productDescription = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productDescription.setStatus('mandatory') if mibBuilder.loadTexts: productDescription.setDescription('A short description of this SNMP agent.') productVendor = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productVendor.setStatus('mandatory') if mibBuilder.loadTexts: productVendor.setDescription('Name of the product vendor or OEM.') productVersion = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productVersion.setStatus('mandatory') if mibBuilder.loadTexts: productVersion.setDescription('String Format: MNNO.TVBBBPP Examples 1. 091a.TR054 Version 0.91, build 54 of the RCS test code for ADIC 2. 100A.GM052 Version 1.00, build 52 of the MCB GA candidate code for ADIC M Major version number NN Minor version number O OEM (Uppercase when release candidate, otherwise lowercase) A/a - ADIC Others - Reserved) T Target G - GA Candidate Release (labeled build that is a release candidate) T - Test build (labeled build used for formal testing) D - Dev build (labeled build used for unit testing) (lower case) - specifies developer of a local build V Variant S - System R - RCS M - MCB BBB Build number (3 digit sequential number specifying exact build) PP Patch Number (Optional alphanumeric characters denoting patch level of this build if necessary)') productDisplayVersion = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productDisplayVersion.setStatus('mandatory') if mibBuilder.loadTexts: productDisplayVersion.setDescription('The version identifier according to the vendor or OEM.') productLibraryClass = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 10))).clone(namedValues=NamedValues(("basic", 1), ("intelligent", 2), ("virtual", 10)))).setMaxAccess("readonly") if mibBuilder.loadTexts: productLibraryClass.setStatus('mandatory') if mibBuilder.loadTexts: productLibraryClass.setDescription('Basic library includes minimal connectivity hardware. Intelligent library includes SAN appliances and value-added features.') productSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: productSerialNumber.setDescription('The serial number of the entire library.') agentGlobalStatus = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 1), AdicAgentStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentGlobalStatus.setStatus('mandatory') if mibBuilder.loadTexts: agentGlobalStatus.setDescription('Current overall status of the agent.') agentLastGlobalStatus = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 2), AdicAgentStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentLastGlobalStatus.setStatus('mandatory') if mibBuilder.loadTexts: agentLastGlobalStatus.setDescription('The status before the current status which induced an initiative to issue a global status change trap.') agentTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentTimeStamp.setStatus('mandatory') if mibBuilder.loadTexts: agentTimeStamp.setDescription('The last time that the agent values have been updated. Universal time in seconds since UTC 1/1/70.') agentGetTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentGetTimeOut.setStatus('mandatory') if mibBuilder.loadTexts: agentGetTimeOut.setDescription('Suggested time out in milliseconds for how long an SNMP management application should wait while attempting to poll the SNMP agent.') agentModifiers = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentModifiers.setStatus('mandatory') if mibBuilder.loadTexts: agentModifiers.setDescription('Agent functional modifiers, when set the modifier is active. ----------------------------------------------------- Bit 3 => Agent in debug mode. ----------------------------------------------------- All other bits are product specific.') agentRefreshRate = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentRefreshRate.setStatus('mandatory') if mibBuilder.loadTexts: agentRefreshRate.setDescription('Rate in seconds at which the agent cached data is being updated.') componentTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10), ) if mibBuilder.loadTexts: componentTable.setStatus('mandatory') if mibBuilder.loadTexts: componentTable.setDescription("General information about the system's components, including the unique identifiers. The structure this table is based on the Fibre Alliance MIB connUnitEntry.") componentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId")) if mibBuilder.loadTexts: componentEntry.setStatus('mandatory') if mibBuilder.loadTexts: componentEntry.setDescription('A component entry containing objects for a particular component.') componentId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 1), AdicGlobalId()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentId.setStatus('mandatory') if mibBuilder.loadTexts: componentId.setDescription('The unique identification for this component among those within this proxy domain.') componentType = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 2), AdicComponentType()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentType.setStatus('mandatory') if mibBuilder.loadTexts: componentType.setDescription('The type of this component.') componentDisplayName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentDisplayName.setStatus('mandatory') if mibBuilder.loadTexts: componentDisplayName.setDescription('Name of this component for display purposes. Different OEMs may have different display names for the same ADIC product.') componentInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: componentInfo.setStatus('mandatory') if mibBuilder.loadTexts: componentInfo.setDescription('A display string containing information about this component.') componentLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentLocation.setStatus('mandatory') if mibBuilder.loadTexts: componentLocation.setDescription('Location information for this component.') componentVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentVendor.setStatus('mandatory') if mibBuilder.loadTexts: componentVendor.setDescription('Name vendor of this component.') componentSn = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentSn.setStatus('mandatory') if mibBuilder.loadTexts: componentSn.setDescription('The serial number for this component.') componentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("unused", 2), ("ok", 3), ("warning", 4), ("failed", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentStatus.setStatus('mandatory') if mibBuilder.loadTexts: componentStatus.setDescription('Overall status of the component.') componentControl = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("resetColdStart", 1), ("resetWarmStart", 2), ("offline", 3), ("online", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: componentControl.setStatus('mandatory') if mibBuilder.loadTexts: componentControl.setDescription("This object is used to control the addressed connUnit. NOTE: 'Cold Start' and 'Warm Start' are as defined in MIB II and are not meant to be a factory reset. resetColdStart: the addressed unit performs a 'Cold Start' reset. resetWarmStart: the addressed unit performs a 'Warm Start' reset. offline: the addressed unit puts itself into an implementation dependant 'offline' state. online: the addressed unit puts itself into an implementation dependant 'online' state.") componentREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 10), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentREDId.setStatus('mandatory') if mibBuilder.loadTexts: componentREDId.setDescription('Runtime Error Detection identifier for this power supply.') componentFirmwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentFirmwareVersion.setStatus('mandatory') if mibBuilder.loadTexts: componentFirmwareVersion.setDescription('Firmware version (or level) for this component.') componentGeoAddrAisle = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrAisle.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrAisle.setDescription('The aisle number where this component is located. A negative value indicates that an aisle number is not applicable to this component.') componentGeoAddrFrame = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrFrame.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrFrame.setDescription('The frame number where this component is located. A negative value indicates that a frame number is not applicable to this component.') componentGeoAddrRack = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrRack.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrRack.setDescription('The rack number where this component is located. A negative value indicates that a rack number is not applicable to this component.') componentGeoAddrChassis = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrChassis.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrChassis.setDescription('The chassis number where this component is located. A negative value indicates that a chassis number is not applicable to this component.') componentGeoAddrBlade = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrBlade.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrBlade.setDescription('The blade number within the network chasis where this component is located. A negative value indicates that a blade number is not applicable to this component.') componentIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 17), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentIpAddress.setStatus('mandatory') if mibBuilder.loadTexts: componentIpAddress.setDescription('IP address of this component. If the component has no IP address, this object returns 0.0.0.0. The address may refer to an internal network not accessible to an external management application.') powerSupplyTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10), ) if mibBuilder.loadTexts: powerSupplyTable.setStatus('optional') if mibBuilder.loadTexts: powerSupplyTable.setDescription('** This table is optional ** Table of the power supplies.') powerSupplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "powerSupplyIndex")) if mibBuilder.loadTexts: powerSupplyEntry.setStatus('optional') if mibBuilder.loadTexts: powerSupplyEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific power supply.') powerSupplyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyIndex.setStatus('optional') if mibBuilder.loadTexts: powerSupplyIndex.setDescription('** This object is optional ** Index of this power supply within the component specified by componentId.') powerSupplyName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyName.setStatus('optional') if mibBuilder.loadTexts: powerSupplyName.setDescription('** This object is optional ** Display name of this power supply.') powerSupplyWattage = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyWattage.setStatus('optional') if mibBuilder.loadTexts: powerSupplyWattage.setDescription('** This object is optional ** What is maximum power output of this power supply. Units are Watts.') powerSupplyType = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 4), AdicVoltageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyType.setStatus('optional') if mibBuilder.loadTexts: powerSupplyType.setDescription('** This object is optional ** DC or AC power supply?') powerSupplyREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 5), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyREDId.setStatus('optional') if mibBuilder.loadTexts: powerSupplyREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this power supply.') powerSupplyRatedVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyRatedVoltage.setStatus('optional') if mibBuilder.loadTexts: powerSupplyRatedVoltage.setDescription('** This object is optional ** Rated output voltage in millivolts of this power supply.') powerSupplyLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyLocation.setStatus('optional') if mibBuilder.loadTexts: powerSupplyLocation.setDescription('** This object is optional ** Physical location of this power supply.') voltageSensorTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20), ) if mibBuilder.loadTexts: voltageSensorTable.setStatus('optional') if mibBuilder.loadTexts: voltageSensorTable.setDescription('** This table is optional ** Table of the voltage sensors.') voltageSensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "powerSupplyIndex"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "voltageSensorIndex")) if mibBuilder.loadTexts: voltageSensorEntry.setStatus('optional') if mibBuilder.loadTexts: voltageSensorEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific voltage sensor.') voltageSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorIndex.setStatus('optional') if mibBuilder.loadTexts: voltageSensorIndex.setDescription('** This object is optional ** Index of this voltage sensor within the component specified by componentId.') voltageSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorName.setStatus('optional') if mibBuilder.loadTexts: voltageSensorName.setDescription('** This object is optional ** Display name of this voltage sensor.') voltageSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 3), AdicSensorStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorStatus.setStatus('optional') if mibBuilder.loadTexts: voltageSensorStatus.setDescription('** This object is optional ** What is the state of this voltage sensor? Is the voltage in the nominal, warning or alarm region?') voltageSensorMillivolts = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorMillivolts.setStatus('optional') if mibBuilder.loadTexts: voltageSensorMillivolts.setDescription('** This object is optional ** What is the voltage in millivolts of this voltage sensor?') voltageSensorType = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 5), AdicVoltageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorType.setStatus('optional') if mibBuilder.loadTexts: voltageSensorType.setDescription('** This object is optional ** DC or AC voltage sensor?') voltageSensorNominalLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorNominalLo.setStatus('optional') if mibBuilder.loadTexts: voltageSensorNominalLo.setDescription('** This object is optional ** Lower voltage limit of the nominal state for this voltage sensor. Unit are millivolts.') voltageSensorNominalHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorNominalHi.setStatus('optional') if mibBuilder.loadTexts: voltageSensorNominalHi.setDescription('** This object is optional ** Upper voltage limit of the nominal state for this voltage sensor. Unit are millivolts.') voltageSensorWarningLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorWarningLo.setStatus('optional') if mibBuilder.loadTexts: voltageSensorWarningLo.setDescription('** This object is optional ** Lower voltage limit of the warning state for this voltage sensor. Unit are millivolts. If the voltage falls below this limit, the sensor enters the alarm state.') voltageSensorWarningHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorWarningHi.setStatus('optional') if mibBuilder.loadTexts: voltageSensorWarningHi.setDescription('** This object is optional ** Upper voltage limit of the warning state for this voltage sensor. Unit are millivolts. If the voltage rises above this limit, the sensor enters the alarm state.') voltageSensorLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorLocation.setStatus('optional') if mibBuilder.loadTexts: voltageSensorLocation.setDescription('** This object is optional ** Physical location of the voltage sensor.') voltageSensorREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 11), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorREDId.setStatus('optional') if mibBuilder.loadTexts: voltageSensorREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this voltage sensor.') temperatureSensorTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30), ) if mibBuilder.loadTexts: temperatureSensorTable.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorTable.setDescription('** This table is optional ** Table of the temperature sensors in each component.') temperatureSensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "temperatureSensorIndex")) if mibBuilder.loadTexts: temperatureSensorEntry.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific sensor.') temperatureSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorIndex.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorIndex.setDescription('** This object is optional ** Index of this temperatureSensor within the component specified by componentId.') temperatureSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorName.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorName.setDescription('** This object is optional ** Display name of this temperatureSensor.') temperatureSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 3), AdicSensorStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorStatus.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorStatus.setDescription('** This object is optional ** What is the state of this temperatureSensor? Is the temperature in the nominal, warning or alarm region?') temperatureSensorDegreesCelsius = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorDegreesCelsius.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorDegreesCelsius.setDescription('** This object is optional ** The temperature in degrees Celsuis for this temperature sensor.') temperatureSensorNominalLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorNominalLo.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorNominalLo.setDescription('** This object is optional ** Lower temperature limit of the nominal state for this temperature sensor. Unit are degrees Celsius.') temperatureSensorNominalHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorNominalHi.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorNominalHi.setDescription('** This object is optional ** Upper temperature limit of the nominal state for this temperature sensor. Unit are degrees Celsius.') temperatureSensorWarningLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorWarningLo.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorWarningLo.setDescription('** This object is optional ** Lower temperature limit of the warning state for this temperature sensor. Unit are degrees Celsius. If the temperature falls below this limit, the sensor enters the alarm state.') temperatureSensorWarningHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorWarningHi.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorWarningHi.setDescription('** This object is optional ** Upper temperature limit of the warning state for this temperature sensor. Unit are degrees Celsius. If the temperature rises above this limit, the sensor enters the alarm state.') temperatureSensorLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorLocation.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorLocation.setDescription('** This object is optional ** Physical location of this temperature sensor.') temperatureSensorREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 10), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorREDId.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this temperature sensor.') coolingFanTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40), ) if mibBuilder.loadTexts: coolingFanTable.setStatus('optional') if mibBuilder.loadTexts: coolingFanTable.setDescription('** This table is optional ** Table of cooling fans in the library.') coolingFanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "coolingFanIndex")) if mibBuilder.loadTexts: coolingFanEntry.setStatus('optional') if mibBuilder.loadTexts: coolingFanEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific cooling fan.') coolingFanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanIndex.setStatus('optional') if mibBuilder.loadTexts: coolingFanIndex.setDescription('** This object is optional ** Index of this cooling fan within the component specified by componentId.') coolingFanName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanName.setStatus('optional') if mibBuilder.loadTexts: coolingFanName.setDescription('** This object is optional ** Display name of this coolingFan.') coolingFanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 3), AdicSensorStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanStatus.setStatus('optional') if mibBuilder.loadTexts: coolingFanStatus.setDescription('** This object is optional ** Is the fan speed in the nominal, warning or alarm region?') coolingFanRPM = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanRPM.setStatus('optional') if mibBuilder.loadTexts: coolingFanRPM.setDescription('** This object is optional ** The fan speed in revolutions per minute.') coolingFanNominalLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanNominalLo.setStatus('optional') if mibBuilder.loadTexts: coolingFanNominalLo.setDescription('** This object is optional ** Lower fan speed limit of the nominal state for this fan. Units are RPM.') coolingFanNominalHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanNominalHi.setStatus('optional') if mibBuilder.loadTexts: coolingFanNominalHi.setDescription('** This object is optional ** Upper fan speed limit of the nominal state for this fan. Units are RPM.') coolingFanWarningLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanWarningLo.setStatus('optional') if mibBuilder.loadTexts: coolingFanWarningLo.setDescription('** This object is optional ** Lower fan speed limit of the warning state for this fan. Units are RPM. If the speed falls below this limit, the fan enters the alarmLow state.') coolingFanWarningHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanWarningHi.setStatus('optional') if mibBuilder.loadTexts: coolingFanWarningHi.setDescription('** This object is optional ** Upper fan speed limit of the warning state for this fan. Units are RPM. If the speed rises above this limit, the fan enters the alarmHigh state.') coolingFanLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanLocation.setStatus('optional') if mibBuilder.loadTexts: coolingFanLocation.setDescription('** This object is optional ** Physical location of this fan.') coolingFanREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 10), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanREDId.setStatus('optional') if mibBuilder.loadTexts: coolingFanREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this fan.') trapPayloadTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10), ) if mibBuilder.loadTexts: trapPayloadTable.setStatus('mandatory') if mibBuilder.loadTexts: trapPayloadTable.setDescription('Defines objects common to all trap payloads.') trapPayloadEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "trapSequenceNumber")) if mibBuilder.loadTexts: trapPayloadEntry.setStatus('mandatory') if mibBuilder.loadTexts: trapPayloadEntry.setDescription('Each entry contains the information for a specific cooling fan.') trapSequenceNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trapSequenceNumber.setStatus('mandatory') if mibBuilder.loadTexts: trapSequenceNumber.setDescription('') trapSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trapSeverity.setStatus('mandatory') if mibBuilder.loadTexts: trapSeverity.setDescription('') trapSummaryText = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: trapSummaryText.setStatus('mandatory') if mibBuilder.loadTexts: trapSummaryText.setDescription('') trapIntendedUsage = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("public", 1), ("triggerRefresh", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapIntendedUsage.setStatus('mandatory') if mibBuilder.loadTexts: trapIntendedUsage.setDescription("The value of this qualifier aids the management application in determining how to respond to the trap. If the value is public(1), the information is intended to be propagated to external observers, such as sending email. If the value is triggerRefresh(2), the information is intended to update the management application's data model, but not necessarily propagated to external observers.") startupSequenceComplete = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,500)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), ("ADIC-INTELLIGENT-STORAGE-MIB", "trapSummaryText")) if mibBuilder.loadTexts: startupSequenceComplete.setDescription('The component indicated by the value of componentId has successfully completed its startup sequence.') shutdownSequenceInitiated = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,501)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), ("ADIC-INTELLIGENT-STORAGE-MIB", "trapSummaryText")) if mibBuilder.loadTexts: shutdownSequenceInitiated.setDescription('The component indicated by the value of componentId has initiated its shutdown sequence.') componentAdded = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,502)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), ("ADIC-INTELLIGENT-STORAGE-MIB", "componentType")) if mibBuilder.loadTexts: componentAdded.setDescription('The component indicated by the value of componentId has been added to the library.') componentRemoved = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,503)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), ("ADIC-INTELLIGENT-STORAGE-MIB", "componentType")) if mibBuilder.loadTexts: componentRemoved.setDescription('The component indicated by the value of componentId has been removed from the library.') productLibraryClassChange = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,504)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "productLibraryClass"), ("ADIC-INTELLIGENT-STORAGE-MIB", "productLibraryClass")) if mibBuilder.loadTexts: productLibraryClassChange.setDescription('The product library class has changed. This occurs when connectivity hardware is added or removed. The payload contains the productLibraryClass before and after the change.') mibBuilder.exportSymbols("ADIC-INTELLIGENT-STORAGE-MIB", powerSupplyTable=powerSupplyTable, powerSupplyEntry=powerSupplyEntry, sml=sml, powerSupplyREDId=powerSupplyREDId, temperatureSensorEntry=temperatureSensorEntry, componentLocation=componentLocation, voltageSensorNominalLo=voltageSensorNominalLo, temperatureSensorWarningHi=temperatureSensorWarningHi, intelligent=intelligent, RowStatus=RowStatus, AdicVoltageType=AdicVoltageType, software=software, agentModifiers=agentModifiers, shutdownSequenceInitiated=shutdownSequenceInitiated, coolingFanName=coolingFanName, voltageSensorTable=voltageSensorTable, trapSequenceNumber=trapSequenceNumber, trapIntendedUsage=trapIntendedUsage, componentIpAddress=componentIpAddress, globalData=globalData, temperatureSensorNominalHi=temperatureSensorNominalHi, productName=productName, powerSupplyRatedVoltage=powerSupplyRatedVoltage, AdicAgentStatus=AdicAgentStatus, voltageSensorWarningLo=voltageSensorWarningLo, agentGetTimeOut=agentGetTimeOut, coolingFanLocation=coolingFanLocation, AdicGlobalId=AdicGlobalId, voltageSensorStatus=voltageSensorStatus, AdicMibVersion=AdicMibVersion, powerSupplyLocation=powerSupplyLocation, productLibraryClassChange=productLibraryClassChange, AdicTrapSeverity=AdicTrapSeverity, storage=storage, componentEntry=componentEntry, coolingFanIndex=coolingFanIndex, temperatureSensorDegreesCelsius=temperatureSensorDegreesCelsius, voltageSensorLocation=voltageSensorLocation, agentRefreshRate=agentRefreshRate, coolingFanNominalHi=coolingFanNominalHi, AdicInterfaceType=AdicInterfaceType, componentId=componentId, temperatureSensorIndex=temperatureSensorIndex, coolingFanStatus=coolingFanStatus, AdicDriveStatus=AdicDriveStatus, coolingFanREDId=coolingFanREDId, trapPayloadEntry=trapPayloadEntry, agentTimeStamp=agentTimeStamp, componentREDId=componentREDId, powerAndCooling=powerAndCooling, voltageSensorEntry=voltageSensorEntry, coolingFanWarningHi=coolingFanWarningHi, AdicDateAndTime=AdicDateAndTime, componentGeoAddrBlade=componentGeoAddrBlade, notification=notification, productDisplayVersion=productDisplayVersion, componentControl=componentControl, AdicDoorStatus=AdicDoorStatus, componentGeoAddrChassis=componentGeoAddrChassis, productSnmpAgentVersion=productSnmpAgentVersion, components=components, agentLastGlobalStatus=agentLastGlobalStatus, temperatureSensorNominalLo=temperatureSensorNominalLo, voltageSensorType=voltageSensorType, componentGeoAddrAisle=componentGeoAddrAisle, network=network, componentDisplayName=componentDisplayName, temperatureSensorTable=temperatureSensorTable, powerSupplyType=powerSupplyType, temperatureSensorStatus=temperatureSensorStatus, AdicREDIdentifier=AdicREDIdentifier, voltageSensorIndex=voltageSensorIndex, componentTable=componentTable, componentStatus=componentStatus, powerSupplyIndex=powerSupplyIndex, AdicSensorStatus=AdicSensorStatus, agentGlobalStatus=agentGlobalStatus, componentVendor=componentVendor, AdicComponentType=AdicComponentType, componentFirmwareVersion=componentFirmwareVersion, coolingFanNominalLo=coolingFanNominalLo, coolingFanTable=coolingFanTable, temperatureSensorREDId=temperatureSensorREDId, coolingFanWarningLo=coolingFanWarningLo, powerSupplyName=powerSupplyName, hardware=hardware, voltageSensorName=voltageSensorName, productAgentInfo=productAgentInfo, Boolean=Boolean, voltageSensorNominalHi=voltageSensorNominalHi, temperatureSensorName=temperatureSensorName, componentSn=componentSn, powerSupplyWattage=powerSupplyWattage, voltageSensorMillivolts=voltageSensorMillivolts, voltageSensorWarningHi=voltageSensorWarningHi, startupSequenceComplete=startupSequenceComplete, productDisplayName=productDisplayName, productLibraryClass=productLibraryClass, componentGeoAddrRack=componentGeoAddrRack, productSerialNumber=productSerialNumber, adic=adic, coolingFanEntry=coolingFanEntry, AdicEnable=AdicEnable, temperatureSensorWarningLo=temperatureSensorWarningLo, componentType=componentType, componentAdded=componentAdded, productVendor=productVendor, componentRemoved=componentRemoved, productVersion=productVersion, voltageSensorREDId=voltageSensorREDId, productMibVersion=productMibVersion, componentGeoAddrFrame=componentGeoAddrFrame, temperatureSensorLocation=temperatureSensorLocation, trapPayloadTable=trapPayloadTable, trapSummaryText=trapSummaryText, AdicOnlineStatus=AdicOnlineStatus, trapSeverity=trapSeverity, componentInfo=componentInfo, coolingFanRPM=coolingFanRPM, productDescription=productDescription)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, single_value_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (notification_type, notification_type, iso, counter64, object_identity, counter32, integer32, unsigned32, enterprises, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, module_identity, mib_identifier, gauge32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'NotificationType', 'iso', 'Counter64', 'ObjectIdentity', 'Counter32', 'Integer32', 'Unsigned32', 'enterprises', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'ModuleIdentity', 'MibIdentifier', 'Gauge32', 'IpAddress') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') adic = mib_identifier((1, 3, 6, 1, 4, 1, 3764)) storage = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1)) intelligent = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1)) product_agent_info = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10)) global_data = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20)) components = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30)) software = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 100)) hardware = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200)) power_and_cooling = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200)) sml = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 300)) network = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 400)) notification = mib_identifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500)) class Boolean(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('true', 1), ('false', 2)) class Adicmibversion(DisplayString): pass class Adicredidentifier(Counter32): pass class Adicenable(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('enabled', 1), ('disabled', 2)) class Adicagentstatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('other', 1), ('unknown', 2), ('ok', 3), ('non-critical', 4), ('critical', 5), ('non-recoverable', 6)) class Adiconlinestatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('online', 1), ('offline', 2), ('shutdown', 3)) class Adicglobalid(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 class Adiccomponenttype(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8)) named_values = named_values(('mcb', 1), ('cmb', 2), ('ioBlade', 3), ('rcu', 4), ('networkChasis', 5), ('controlModule', 6), ('expansionModule', 7), ('powerSupply', 8)) class Adicinterfacetype(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('scsi', 1), ('fibreChannel', 2)) class Adicsensorstatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7)) named_values = named_values(('nominal', 1), ('warningLow', 2), ('warningHigh', 3), ('alarmLow', 4), ('alarmHigh', 5), ('notInstalled', 6), ('noData', 7)) class Adicvoltagetype(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('dc', 1), ('ac', 2)) class Adicdateandtime(OctetString): subtype_spec = OctetString.subtypeSpec + constraints_union(value_size_constraint(8, 8), value_size_constraint(11, 11)) class Adictrapseverity(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('emergency', 1), ('alarm', 2), ('warning', 3), ('notice', 4), ('informational', 5)) class Adicdoorstatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7)) named_values = named_values(('open', 1), ('closed', 2), ('closedAndLocked', 3), ('closedAndUnlocked', 4), ('contollerFailed', 5), ('notInstalled', 6), ('noData', 7)) class Adicdrivestatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7)) named_values = named_values(('idle', 1), ('loading', 2), ('ejecting', 3), ('inserted', 4), ('removed', 5), ('notInstalled', 6), ('noData', 7)) class Rowstatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)) product_mib_version = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 1), adic_mib_version()).setMaxAccess('readonly') if mibBuilder.loadTexts: productMibVersion.setStatus('mandatory') if mibBuilder.loadTexts: productMibVersion.setDescription('MIB version identifier.') product_snmp_agent_version = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: productSnmpAgentVersion.setStatus('mandatory') if mibBuilder.loadTexts: productSnmpAgentVersion.setDescription('SNMP agent version identifier.') product_name = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: productName.setStatus('mandatory') if mibBuilder.loadTexts: productName.setDescription('Name of ADIC branded product. Uniquely identifies the product, independent of OEM.') product_display_name = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: productDisplayName.setStatus('mandatory') if mibBuilder.loadTexts: productDisplayName.setDescription('Name of this agent for display purposes. May be customized for OEM.') product_description = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: productDescription.setStatus('mandatory') if mibBuilder.loadTexts: productDescription.setDescription('A short description of this SNMP agent.') product_vendor = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: productVendor.setStatus('mandatory') if mibBuilder.loadTexts: productVendor.setDescription('Name of the product vendor or OEM.') product_version = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: productVersion.setStatus('mandatory') if mibBuilder.loadTexts: productVersion.setDescription('String Format: MNNO.TVBBBPP Examples 1. 091a.TR054 Version 0.91, build 54 of the RCS test code for ADIC 2. 100A.GM052 Version 1.00, build 52 of the MCB GA candidate code for ADIC M Major version number NN Minor version number O OEM (Uppercase when release candidate, otherwise lowercase) A/a - ADIC Others - Reserved) T Target G - GA Candidate Release (labeled build that is a release candidate) T - Test build (labeled build used for formal testing) D - Dev build (labeled build used for unit testing) (lower case) - specifies developer of a local build V Variant S - System R - RCS M - MCB BBB Build number (3 digit sequential number specifying exact build) PP Patch Number (Optional alphanumeric characters denoting patch level of this build if necessary)') product_display_version = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: productDisplayVersion.setStatus('mandatory') if mibBuilder.loadTexts: productDisplayVersion.setDescription('The version identifier according to the vendor or OEM.') product_library_class = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 10))).clone(namedValues=named_values(('basic', 1), ('intelligent', 2), ('virtual', 10)))).setMaxAccess('readonly') if mibBuilder.loadTexts: productLibraryClass.setStatus('mandatory') if mibBuilder.loadTexts: productLibraryClass.setDescription('Basic library includes minimal connectivity hardware. Intelligent library includes SAN appliances and value-added features.') product_serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: productSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: productSerialNumber.setDescription('The serial number of the entire library.') agent_global_status = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 1), adic_agent_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentGlobalStatus.setStatus('mandatory') if mibBuilder.loadTexts: agentGlobalStatus.setDescription('Current overall status of the agent.') agent_last_global_status = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 2), adic_agent_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentLastGlobalStatus.setStatus('mandatory') if mibBuilder.loadTexts: agentLastGlobalStatus.setDescription('The status before the current status which induced an initiative to issue a global status change trap.') agent_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentTimeStamp.setStatus('mandatory') if mibBuilder.loadTexts: agentTimeStamp.setDescription('The last time that the agent values have been updated. Universal time in seconds since UTC 1/1/70.') agent_get_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentGetTimeOut.setStatus('mandatory') if mibBuilder.loadTexts: agentGetTimeOut.setDescription('Suggested time out in milliseconds for how long an SNMP management application should wait while attempting to poll the SNMP agent.') agent_modifiers = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentModifiers.setStatus('mandatory') if mibBuilder.loadTexts: agentModifiers.setDescription('Agent functional modifiers, when set the modifier is active. ----------------------------------------------------- Bit 3 => Agent in debug mode. ----------------------------------------------------- All other bits are product specific.') agent_refresh_rate = mib_scalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentRefreshRate.setStatus('mandatory') if mibBuilder.loadTexts: agentRefreshRate.setDescription('Rate in seconds at which the agent cached data is being updated.') component_table = mib_table((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10)) if mibBuilder.loadTexts: componentTable.setStatus('mandatory') if mibBuilder.loadTexts: componentTable.setDescription("General information about the system's components, including the unique identifiers. The structure this table is based on the Fibre Alliance MIB connUnitEntry.") component_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1)).setIndexNames((0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'componentId')) if mibBuilder.loadTexts: componentEntry.setStatus('mandatory') if mibBuilder.loadTexts: componentEntry.setDescription('A component entry containing objects for a particular component.') component_id = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 1), adic_global_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentId.setStatus('mandatory') if mibBuilder.loadTexts: componentId.setDescription('The unique identification for this component among those within this proxy domain.') component_type = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 2), adic_component_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentType.setStatus('mandatory') if mibBuilder.loadTexts: componentType.setDescription('The type of this component.') component_display_name = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 79))).setMaxAccess('readonly') if mibBuilder.loadTexts: componentDisplayName.setStatus('mandatory') if mibBuilder.loadTexts: componentDisplayName.setDescription('Name of this component for display purposes. Different OEMs may have different display names for the same ADIC product.') component_info = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 4), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: componentInfo.setStatus('mandatory') if mibBuilder.loadTexts: componentInfo.setDescription('A display string containing information about this component.') component_location = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 79))).setMaxAccess('readonly') if mibBuilder.loadTexts: componentLocation.setStatus('mandatory') if mibBuilder.loadTexts: componentLocation.setDescription('Location information for this component.') component_vendor = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 79))).setMaxAccess('readonly') if mibBuilder.loadTexts: componentVendor.setStatus('mandatory') if mibBuilder.loadTexts: componentVendor.setDescription('Name vendor of this component.') component_sn = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 79))).setMaxAccess('readonly') if mibBuilder.loadTexts: componentSn.setStatus('mandatory') if mibBuilder.loadTexts: componentSn.setDescription('The serial number for this component.') component_status = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('unused', 2), ('ok', 3), ('warning', 4), ('failed', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: componentStatus.setStatus('mandatory') if mibBuilder.loadTexts: componentStatus.setDescription('Overall status of the component.') component_control = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('resetColdStart', 1), ('resetWarmStart', 2), ('offline', 3), ('online', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: componentControl.setStatus('mandatory') if mibBuilder.loadTexts: componentControl.setDescription("This object is used to control the addressed connUnit. NOTE: 'Cold Start' and 'Warm Start' are as defined in MIB II and are not meant to be a factory reset. resetColdStart: the addressed unit performs a 'Cold Start' reset. resetWarmStart: the addressed unit performs a 'Warm Start' reset. offline: the addressed unit puts itself into an implementation dependant 'offline' state. online: the addressed unit puts itself into an implementation dependant 'online' state.") component_red_id = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 10), adic_red_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentREDId.setStatus('mandatory') if mibBuilder.loadTexts: componentREDId.setDescription('Runtime Error Detection identifier for this power supply.') component_firmware_version = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 11), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentFirmwareVersion.setStatus('mandatory') if mibBuilder.loadTexts: componentFirmwareVersion.setDescription('Firmware version (or level) for this component.') component_geo_addr_aisle = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentGeoAddrAisle.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrAisle.setDescription('The aisle number where this component is located. A negative value indicates that an aisle number is not applicable to this component.') component_geo_addr_frame = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentGeoAddrFrame.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrFrame.setDescription('The frame number where this component is located. A negative value indicates that a frame number is not applicable to this component.') component_geo_addr_rack = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentGeoAddrRack.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrRack.setDescription('The rack number where this component is located. A negative value indicates that a rack number is not applicable to this component.') component_geo_addr_chassis = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentGeoAddrChassis.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrChassis.setDescription('The chassis number where this component is located. A negative value indicates that a chassis number is not applicable to this component.') component_geo_addr_blade = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentGeoAddrBlade.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrBlade.setDescription('The blade number within the network chasis where this component is located. A negative value indicates that a blade number is not applicable to this component.') component_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 17), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: componentIpAddress.setStatus('mandatory') if mibBuilder.loadTexts: componentIpAddress.setDescription('IP address of this component. If the component has no IP address, this object returns 0.0.0.0. The address may refer to an internal network not accessible to an external management application.') power_supply_table = mib_table((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10)) if mibBuilder.loadTexts: powerSupplyTable.setStatus('optional') if mibBuilder.loadTexts: powerSupplyTable.setDescription('** This table is optional ** Table of the power supplies.') power_supply_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1)).setIndexNames((0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'componentId'), (0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'powerSupplyIndex')) if mibBuilder.loadTexts: powerSupplyEntry.setStatus('optional') if mibBuilder.loadTexts: powerSupplyEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific power supply.') power_supply_index = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyIndex.setStatus('optional') if mibBuilder.loadTexts: powerSupplyIndex.setDescription('** This object is optional ** Index of this power supply within the component specified by componentId.') power_supply_name = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyName.setStatus('optional') if mibBuilder.loadTexts: powerSupplyName.setDescription('** This object is optional ** Display name of this power supply.') power_supply_wattage = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyWattage.setStatus('optional') if mibBuilder.loadTexts: powerSupplyWattage.setDescription('** This object is optional ** What is maximum power output of this power supply. Units are Watts.') power_supply_type = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 4), adic_voltage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyType.setStatus('optional') if mibBuilder.loadTexts: powerSupplyType.setDescription('** This object is optional ** DC or AC power supply?') power_supply_red_id = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 5), adic_red_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyREDId.setStatus('optional') if mibBuilder.loadTexts: powerSupplyREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this power supply.') power_supply_rated_voltage = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyRatedVoltage.setStatus('optional') if mibBuilder.loadTexts: powerSupplyRatedVoltage.setDescription('** This object is optional ** Rated output voltage in millivolts of this power supply.') power_supply_location = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyLocation.setStatus('optional') if mibBuilder.loadTexts: powerSupplyLocation.setDescription('** This object is optional ** Physical location of this power supply.') voltage_sensor_table = mib_table((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20)) if mibBuilder.loadTexts: voltageSensorTable.setStatus('optional') if mibBuilder.loadTexts: voltageSensorTable.setDescription('** This table is optional ** Table of the voltage sensors.') voltage_sensor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1)).setIndexNames((0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'componentId'), (0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'powerSupplyIndex'), (0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'voltageSensorIndex')) if mibBuilder.loadTexts: voltageSensorEntry.setStatus('optional') if mibBuilder.loadTexts: voltageSensorEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific voltage sensor.') voltage_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorIndex.setStatus('optional') if mibBuilder.loadTexts: voltageSensorIndex.setDescription('** This object is optional ** Index of this voltage sensor within the component specified by componentId.') voltage_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorName.setStatus('optional') if mibBuilder.loadTexts: voltageSensorName.setDescription('** This object is optional ** Display name of this voltage sensor.') voltage_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 3), adic_sensor_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorStatus.setStatus('optional') if mibBuilder.loadTexts: voltageSensorStatus.setDescription('** This object is optional ** What is the state of this voltage sensor? Is the voltage in the nominal, warning or alarm region?') voltage_sensor_millivolts = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorMillivolts.setStatus('optional') if mibBuilder.loadTexts: voltageSensorMillivolts.setDescription('** This object is optional ** What is the voltage in millivolts of this voltage sensor?') voltage_sensor_type = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 5), adic_voltage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorType.setStatus('optional') if mibBuilder.loadTexts: voltageSensorType.setDescription('** This object is optional ** DC or AC voltage sensor?') voltage_sensor_nominal_lo = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorNominalLo.setStatus('optional') if mibBuilder.loadTexts: voltageSensorNominalLo.setDescription('** This object is optional ** Lower voltage limit of the nominal state for this voltage sensor. Unit are millivolts.') voltage_sensor_nominal_hi = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorNominalHi.setStatus('optional') if mibBuilder.loadTexts: voltageSensorNominalHi.setDescription('** This object is optional ** Upper voltage limit of the nominal state for this voltage sensor. Unit are millivolts.') voltage_sensor_warning_lo = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorWarningLo.setStatus('optional') if mibBuilder.loadTexts: voltageSensorWarningLo.setDescription('** This object is optional ** Lower voltage limit of the warning state for this voltage sensor. Unit are millivolts. If the voltage falls below this limit, the sensor enters the alarm state.') voltage_sensor_warning_hi = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorWarningHi.setStatus('optional') if mibBuilder.loadTexts: voltageSensorWarningHi.setDescription('** This object is optional ** Upper voltage limit of the warning state for this voltage sensor. Unit are millivolts. If the voltage rises above this limit, the sensor enters the alarm state.') voltage_sensor_location = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorLocation.setStatus('optional') if mibBuilder.loadTexts: voltageSensorLocation.setDescription('** This object is optional ** Physical location of the voltage sensor.') voltage_sensor_red_id = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 11), adic_red_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensorREDId.setStatus('optional') if mibBuilder.loadTexts: voltageSensorREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this voltage sensor.') temperature_sensor_table = mib_table((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30)) if mibBuilder.loadTexts: temperatureSensorTable.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorTable.setDescription('** This table is optional ** Table of the temperature sensors in each component.') temperature_sensor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1)).setIndexNames((0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'componentId'), (0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'temperatureSensorIndex')) if mibBuilder.loadTexts: temperatureSensorEntry.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific sensor.') temperature_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorIndex.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorIndex.setDescription('** This object is optional ** Index of this temperatureSensor within the component specified by componentId.') temperature_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorName.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorName.setDescription('** This object is optional ** Display name of this temperatureSensor.') temperature_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 3), adic_sensor_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorStatus.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorStatus.setDescription('** This object is optional ** What is the state of this temperatureSensor? Is the temperature in the nominal, warning or alarm region?') temperature_sensor_degrees_celsius = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorDegreesCelsius.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorDegreesCelsius.setDescription('** This object is optional ** The temperature in degrees Celsuis for this temperature sensor.') temperature_sensor_nominal_lo = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorNominalLo.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorNominalLo.setDescription('** This object is optional ** Lower temperature limit of the nominal state for this temperature sensor. Unit are degrees Celsius.') temperature_sensor_nominal_hi = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorNominalHi.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorNominalHi.setDescription('** This object is optional ** Upper temperature limit of the nominal state for this temperature sensor. Unit are degrees Celsius.') temperature_sensor_warning_lo = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorWarningLo.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorWarningLo.setDescription('** This object is optional ** Lower temperature limit of the warning state for this temperature sensor. Unit are degrees Celsius. If the temperature falls below this limit, the sensor enters the alarm state.') temperature_sensor_warning_hi = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorWarningHi.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorWarningHi.setDescription('** This object is optional ** Upper temperature limit of the warning state for this temperature sensor. Unit are degrees Celsius. If the temperature rises above this limit, the sensor enters the alarm state.') temperature_sensor_location = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 9), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorLocation.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorLocation.setDescription('** This object is optional ** Physical location of this temperature sensor.') temperature_sensor_red_id = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 10), adic_red_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureSensorREDId.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this temperature sensor.') cooling_fan_table = mib_table((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40)) if mibBuilder.loadTexts: coolingFanTable.setStatus('optional') if mibBuilder.loadTexts: coolingFanTable.setDescription('** This table is optional ** Table of cooling fans in the library.') cooling_fan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1)).setIndexNames((0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'componentId'), (0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'coolingFanIndex')) if mibBuilder.loadTexts: coolingFanEntry.setStatus('optional') if mibBuilder.loadTexts: coolingFanEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific cooling fan.') cooling_fan_index = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanIndex.setStatus('optional') if mibBuilder.loadTexts: coolingFanIndex.setDescription('** This object is optional ** Index of this cooling fan within the component specified by componentId.') cooling_fan_name = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanName.setStatus('optional') if mibBuilder.loadTexts: coolingFanName.setDescription('** This object is optional ** Display name of this coolingFan.') cooling_fan_status = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 3), adic_sensor_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanStatus.setStatus('optional') if mibBuilder.loadTexts: coolingFanStatus.setDescription('** This object is optional ** Is the fan speed in the nominal, warning or alarm region?') cooling_fan_rpm = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanRPM.setStatus('optional') if mibBuilder.loadTexts: coolingFanRPM.setDescription('** This object is optional ** The fan speed in revolutions per minute.') cooling_fan_nominal_lo = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanNominalLo.setStatus('optional') if mibBuilder.loadTexts: coolingFanNominalLo.setDescription('** This object is optional ** Lower fan speed limit of the nominal state for this fan. Units are RPM.') cooling_fan_nominal_hi = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanNominalHi.setStatus('optional') if mibBuilder.loadTexts: coolingFanNominalHi.setDescription('** This object is optional ** Upper fan speed limit of the nominal state for this fan. Units are RPM.') cooling_fan_warning_lo = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanWarningLo.setStatus('optional') if mibBuilder.loadTexts: coolingFanWarningLo.setDescription('** This object is optional ** Lower fan speed limit of the warning state for this fan. Units are RPM. If the speed falls below this limit, the fan enters the alarmLow state.') cooling_fan_warning_hi = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanWarningHi.setStatus('optional') if mibBuilder.loadTexts: coolingFanWarningHi.setDescription('** This object is optional ** Upper fan speed limit of the warning state for this fan. Units are RPM. If the speed rises above this limit, the fan enters the alarmHigh state.') cooling_fan_location = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 9), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanLocation.setStatus('optional') if mibBuilder.loadTexts: coolingFanLocation.setDescription('** This object is optional ** Physical location of this fan.') cooling_fan_red_id = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 10), adic_red_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: coolingFanREDId.setStatus('optional') if mibBuilder.loadTexts: coolingFanREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this fan.') trap_payload_table = mib_table((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10)) if mibBuilder.loadTexts: trapPayloadTable.setStatus('mandatory') if mibBuilder.loadTexts: trapPayloadTable.setDescription('Defines objects common to all trap payloads.') trap_payload_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1)).setIndexNames((0, 'ADIC-INTELLIGENT-STORAGE-MIB', 'trapSequenceNumber')) if mibBuilder.loadTexts: trapPayloadEntry.setStatus('mandatory') if mibBuilder.loadTexts: trapPayloadEntry.setDescription('Each entry contains the information for a specific cooling fan.') trap_sequence_number = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: trapSequenceNumber.setStatus('mandatory') if mibBuilder.loadTexts: trapSequenceNumber.setDescription('') trap_severity = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: trapSeverity.setStatus('mandatory') if mibBuilder.loadTexts: trapSeverity.setDescription('') trap_summary_text = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: trapSummaryText.setStatus('mandatory') if mibBuilder.loadTexts: trapSummaryText.setDescription('') trap_intended_usage = mib_table_column((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('public', 1), ('triggerRefresh', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: trapIntendedUsage.setStatus('mandatory') if mibBuilder.loadTexts: trapIntendedUsage.setDescription("The value of this qualifier aids the management application in determining how to respond to the trap. If the value is public(1), the information is intended to be propagated to external observers, such as sending email. If the value is triggerRefresh(2), the information is intended to update the management application's data model, but not necessarily propagated to external observers.") startup_sequence_complete = notification_type((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0, 500)).setObjects(('ADIC-INTELLIGENT-STORAGE-MIB', 'componentId'), ('ADIC-INTELLIGENT-STORAGE-MIB', 'trapSummaryText')) if mibBuilder.loadTexts: startupSequenceComplete.setDescription('The component indicated by the value of componentId has successfully completed its startup sequence.') shutdown_sequence_initiated = notification_type((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0, 501)).setObjects(('ADIC-INTELLIGENT-STORAGE-MIB', 'componentId'), ('ADIC-INTELLIGENT-STORAGE-MIB', 'trapSummaryText')) if mibBuilder.loadTexts: shutdownSequenceInitiated.setDescription('The component indicated by the value of componentId has initiated its shutdown sequence.') component_added = notification_type((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0, 502)).setObjects(('ADIC-INTELLIGENT-STORAGE-MIB', 'componentId'), ('ADIC-INTELLIGENT-STORAGE-MIB', 'componentType')) if mibBuilder.loadTexts: componentAdded.setDescription('The component indicated by the value of componentId has been added to the library.') component_removed = notification_type((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0, 503)).setObjects(('ADIC-INTELLIGENT-STORAGE-MIB', 'componentId'), ('ADIC-INTELLIGENT-STORAGE-MIB', 'componentType')) if mibBuilder.loadTexts: componentRemoved.setDescription('The component indicated by the value of componentId has been removed from the library.') product_library_class_change = notification_type((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0, 504)).setObjects(('ADIC-INTELLIGENT-STORAGE-MIB', 'productLibraryClass'), ('ADIC-INTELLIGENT-STORAGE-MIB', 'productLibraryClass')) if mibBuilder.loadTexts: productLibraryClassChange.setDescription('The product library class has changed. This occurs when connectivity hardware is added or removed. The payload contains the productLibraryClass before and after the change.') mibBuilder.exportSymbols('ADIC-INTELLIGENT-STORAGE-MIB', powerSupplyTable=powerSupplyTable, powerSupplyEntry=powerSupplyEntry, sml=sml, powerSupplyREDId=powerSupplyREDId, temperatureSensorEntry=temperatureSensorEntry, componentLocation=componentLocation, voltageSensorNominalLo=voltageSensorNominalLo, temperatureSensorWarningHi=temperatureSensorWarningHi, intelligent=intelligent, RowStatus=RowStatus, AdicVoltageType=AdicVoltageType, software=software, agentModifiers=agentModifiers, shutdownSequenceInitiated=shutdownSequenceInitiated, coolingFanName=coolingFanName, voltageSensorTable=voltageSensorTable, trapSequenceNumber=trapSequenceNumber, trapIntendedUsage=trapIntendedUsage, componentIpAddress=componentIpAddress, globalData=globalData, temperatureSensorNominalHi=temperatureSensorNominalHi, productName=productName, powerSupplyRatedVoltage=powerSupplyRatedVoltage, AdicAgentStatus=AdicAgentStatus, voltageSensorWarningLo=voltageSensorWarningLo, agentGetTimeOut=agentGetTimeOut, coolingFanLocation=coolingFanLocation, AdicGlobalId=AdicGlobalId, voltageSensorStatus=voltageSensorStatus, AdicMibVersion=AdicMibVersion, powerSupplyLocation=powerSupplyLocation, productLibraryClassChange=productLibraryClassChange, AdicTrapSeverity=AdicTrapSeverity, storage=storage, componentEntry=componentEntry, coolingFanIndex=coolingFanIndex, temperatureSensorDegreesCelsius=temperatureSensorDegreesCelsius, voltageSensorLocation=voltageSensorLocation, agentRefreshRate=agentRefreshRate, coolingFanNominalHi=coolingFanNominalHi, AdicInterfaceType=AdicInterfaceType, componentId=componentId, temperatureSensorIndex=temperatureSensorIndex, coolingFanStatus=coolingFanStatus, AdicDriveStatus=AdicDriveStatus, coolingFanREDId=coolingFanREDId, trapPayloadEntry=trapPayloadEntry, agentTimeStamp=agentTimeStamp, componentREDId=componentREDId, powerAndCooling=powerAndCooling, voltageSensorEntry=voltageSensorEntry, coolingFanWarningHi=coolingFanWarningHi, AdicDateAndTime=AdicDateAndTime, componentGeoAddrBlade=componentGeoAddrBlade, notification=notification, productDisplayVersion=productDisplayVersion, componentControl=componentControl, AdicDoorStatus=AdicDoorStatus, componentGeoAddrChassis=componentGeoAddrChassis, productSnmpAgentVersion=productSnmpAgentVersion, components=components, agentLastGlobalStatus=agentLastGlobalStatus, temperatureSensorNominalLo=temperatureSensorNominalLo, voltageSensorType=voltageSensorType, componentGeoAddrAisle=componentGeoAddrAisle, network=network, componentDisplayName=componentDisplayName, temperatureSensorTable=temperatureSensorTable, powerSupplyType=powerSupplyType, temperatureSensorStatus=temperatureSensorStatus, AdicREDIdentifier=AdicREDIdentifier, voltageSensorIndex=voltageSensorIndex, componentTable=componentTable, componentStatus=componentStatus, powerSupplyIndex=powerSupplyIndex, AdicSensorStatus=AdicSensorStatus, agentGlobalStatus=agentGlobalStatus, componentVendor=componentVendor, AdicComponentType=AdicComponentType, componentFirmwareVersion=componentFirmwareVersion, coolingFanNominalLo=coolingFanNominalLo, coolingFanTable=coolingFanTable, temperatureSensorREDId=temperatureSensorREDId, coolingFanWarningLo=coolingFanWarningLo, powerSupplyName=powerSupplyName, hardware=hardware, voltageSensorName=voltageSensorName, productAgentInfo=productAgentInfo, Boolean=Boolean, voltageSensorNominalHi=voltageSensorNominalHi, temperatureSensorName=temperatureSensorName, componentSn=componentSn, powerSupplyWattage=powerSupplyWattage, voltageSensorMillivolts=voltageSensorMillivolts, voltageSensorWarningHi=voltageSensorWarningHi, startupSequenceComplete=startupSequenceComplete, productDisplayName=productDisplayName, productLibraryClass=productLibraryClass, componentGeoAddrRack=componentGeoAddrRack, productSerialNumber=productSerialNumber, adic=adic, coolingFanEntry=coolingFanEntry, AdicEnable=AdicEnable, temperatureSensorWarningLo=temperatureSensorWarningLo, componentType=componentType, componentAdded=componentAdded, productVendor=productVendor, componentRemoved=componentRemoved, productVersion=productVersion, voltageSensorREDId=voltageSensorREDId, productMibVersion=productMibVersion, componentGeoAddrFrame=componentGeoAddrFrame, temperatureSensorLocation=temperatureSensorLocation, trapPayloadTable=trapPayloadTable, trapSummaryText=trapSummaryText, AdicOnlineStatus=AdicOnlineStatus, trapSeverity=trapSeverity, componentInfo=componentInfo, coolingFanRPM=coolingFanRPM, productDescription=productDescription)
description = 'Q range displaying devices' group = 'lowlevel' includes = ['detector', 'det1', 'sans1_det', 'alias_lambda'] devices = dict( QRange = device('nicos_mlz.sans1.devices.resolution.Resolution', description = 'Current q range', detector = 'det1', beamstop = 'bs1', wavelength = 'wl', detpos = 'det1_z', ), )
description = 'Q range displaying devices' group = 'lowlevel' includes = ['detector', 'det1', 'sans1_det', 'alias_lambda'] devices = dict(QRange=device('nicos_mlz.sans1.devices.resolution.Resolution', description='Current q range', detector='det1', beamstop='bs1', wavelength='wl', detpos='det1_z'))
pkgname = "gsettings-desktop-schemas" pkgver = "42.0" pkgrel = 0 build_style = "meson" configure_args = ["-Dintrospection=true"] hostmakedepends = [ "meson", "pkgconf", "glib-devel", "gobject-introspection" ] makedepends = ["libglib-devel"] depends = [ "fonts-cantarell-otf", "fonts-source-code-pro-otf", "adwaita-icon-theme" ] pkgdesc = "Collection of GSettings schemas" maintainer = "q66 <q66@chimera-linux.org>" license = "LGPL-2.1-or-later" url = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas" source = f"$(GNOME_SITE)/{pkgname}/{pkgver[:-2]}/{pkgname}-{pkgver}.tar.xz" sha256 = "6686335a9ed623f7ae2276fefa50a410d4e71d4231880824714070cb317323d2" options = ["!cross"] @subpackage("gsettings-desktop-schemas-devel") def _devel(self): self.depends += [f"{pkgname}={pkgver}-r{pkgrel}"] return self.default_devel()
pkgname = 'gsettings-desktop-schemas' pkgver = '42.0' pkgrel = 0 build_style = 'meson' configure_args = ['-Dintrospection=true'] hostmakedepends = ['meson', 'pkgconf', 'glib-devel', 'gobject-introspection'] makedepends = ['libglib-devel'] depends = ['fonts-cantarell-otf', 'fonts-source-code-pro-otf', 'adwaita-icon-theme'] pkgdesc = 'Collection of GSettings schemas' maintainer = 'q66 <q66@chimera-linux.org>' license = 'LGPL-2.1-or-later' url = 'https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas' source = f'$(GNOME_SITE)/{pkgname}/{pkgver[:-2]}/{pkgname}-{pkgver}.tar.xz' sha256 = '6686335a9ed623f7ae2276fefa50a410d4e71d4231880824714070cb317323d2' options = ['!cross'] @subpackage('gsettings-desktop-schemas-devel') def _devel(self): self.depends += [f'{pkgname}={pkgver}-r{pkgrel}'] return self.default_devel()
#! /usr/bin/python # -*- coding: utf-8 -*- class GpioData: _count = 0 _modNum = 8 _specMap = {} _freqMap = {} _mapList = [] _modeMap = {} _smtMap = {} _map_table = {} def __init__(self): self.__defMode = 0 self.__eintMode = False self.__modeVec = ['0', '0', '0', '0', '0', '0', '0', '0'] self.__inPullEn = True self.__inPullSelHigh = False self.__defDirInt = 0 self.__defDir = 'IN' self.__inEn = True self.__outEn = False self.__outHigh = False self.__varNames = [] self.__smtNum = -1 self.__smtEn = False self.__iesEn = True self.__drvCur = "" def get_defMode(self): return self.__defMode def set_defMode(self, mode): self.__defMode = mode def get_eintMode(self): return self.__eintMode def set_eintMode(self, flag): self.__eintMode = flag def get_modeVec(self): return self.__modeVec def set_modeVec(self, vec): self.__modeVec = vec def get_inPullEn(self): return self.__inPullEn def set_inpullEn(self, flag): self.__inPullEn = flag def get_inPullSelHigh(self): return self.__inPullSelHigh def set_inpullSelHigh(self, flag): self.__inPullSelHigh = flag def get_defDir(self): return self.__defDir def set_defDir(self, dir): self.__defDir = dir def get_inEn(self): return self.__inEn def set_inEn(self, flag): self.__inEn = flag def get_outEn(self): return self.__outEn def set_outEn(self, flag): self.__outEn = flag def get_outHigh(self): return self.__outHigh def set_outHigh(self, outHigh): self.__outHigh = outHigh def get_varNames(self): return self.__varNames def set_varNames(self, names): self.__varNames = names def set_smtEn(self, flag): self.__smtEn = flag def get_smtEn(self): return self.__smtEn def get_iesEn(self): return self.__iesEn def set_iesEn(self, flag): self.__iesEn = flag def set_drvCur(self, val): self.__drvCur = val def get_drvCur(self): return self.__drvCur def set_smtNum(self, num): self.__smtNum = num def get_smtNum(self): return self.__smtNum def ge_defDirInt(self): if self.__defDir == 'IN': return 0 else: return 1 @staticmethod def set_eint_map_table(map_table): GpioData._map_table = map_table @staticmethod def get_modeName(key, idx): if key in GpioData._modeMap.keys(): value = GpioData._modeMap[key] return value[idx]
class Gpiodata: _count = 0 _mod_num = 8 _spec_map = {} _freq_map = {} _map_list = [] _mode_map = {} _smt_map = {} _map_table = {} def __init__(self): self.__defMode = 0 self.__eintMode = False self.__modeVec = ['0', '0', '0', '0', '0', '0', '0', '0'] self.__inPullEn = True self.__inPullSelHigh = False self.__defDirInt = 0 self.__defDir = 'IN' self.__inEn = True self.__outEn = False self.__outHigh = False self.__varNames = [] self.__smtNum = -1 self.__smtEn = False self.__iesEn = True self.__drvCur = '' def get_def_mode(self): return self.__defMode def set_def_mode(self, mode): self.__defMode = mode def get_eint_mode(self): return self.__eintMode def set_eint_mode(self, flag): self.__eintMode = flag def get_mode_vec(self): return self.__modeVec def set_mode_vec(self, vec): self.__modeVec = vec def get_in_pull_en(self): return self.__inPullEn def set_inpull_en(self, flag): self.__inPullEn = flag def get_in_pull_sel_high(self): return self.__inPullSelHigh def set_inpull_sel_high(self, flag): self.__inPullSelHigh = flag def get_def_dir(self): return self.__defDir def set_def_dir(self, dir): self.__defDir = dir def get_in_en(self): return self.__inEn def set_in_en(self, flag): self.__inEn = flag def get_out_en(self): return self.__outEn def set_out_en(self, flag): self.__outEn = flag def get_out_high(self): return self.__outHigh def set_out_high(self, outHigh): self.__outHigh = outHigh def get_var_names(self): return self.__varNames def set_var_names(self, names): self.__varNames = names def set_smt_en(self, flag): self.__smtEn = flag def get_smt_en(self): return self.__smtEn def get_ies_en(self): return self.__iesEn def set_ies_en(self, flag): self.__iesEn = flag def set_drv_cur(self, val): self.__drvCur = val def get_drv_cur(self): return self.__drvCur def set_smt_num(self, num): self.__smtNum = num def get_smt_num(self): return self.__smtNum def ge_def_dir_int(self): if self.__defDir == 'IN': return 0 else: return 1 @staticmethod def set_eint_map_table(map_table): GpioData._map_table = map_table @staticmethod def get_mode_name(key, idx): if key in GpioData._modeMap.keys(): value = GpioData._modeMap[key] return value[idx]
class Solution: def smallestRepunitDivByK(self, k: int) -> int: if k % 2 == 0 or k % 5 == 0: return -1 if k == 1: return 1 count = 1 n = 1 while (n % k > 0): n = (n % k) * 10 + 1 count += 1 return count
class Solution: def smallest_repunit_div_by_k(self, k: int) -> int: if k % 2 == 0 or k % 5 == 0: return -1 if k == 1: return 1 count = 1 n = 1 while n % k > 0: n = n % k * 10 + 1 count += 1 return count
class PiggyBank: # create __init__ and add_money methods def __init__(self, dollars, cents): self.dollars = dollars self.cents = cents def add_money(self, deposit_dollars, deposit_cents): self.dollars += deposit_dollars self.cents += deposit_cents if self.cents >= 100: to_dollar = int(self.cents / 100) self.dollars += to_dollar self.cents -= to_dollar * 100
class Piggybank: def __init__(self, dollars, cents): self.dollars = dollars self.cents = cents def add_money(self, deposit_dollars, deposit_cents): self.dollars += deposit_dollars self.cents += deposit_cents if self.cents >= 100: to_dollar = int(self.cents / 100) self.dollars += to_dollar self.cents -= to_dollar * 100
class Solution: def countAndSay(self, n: int) -> str: s = '1' for _ in range(1, n): nextS = '' countC = 1 for i in range(1, len(s) + 1): if i == len(s) or s[i] != s[i - 1]: nextS += str(countC) + s[i - 1] countC = 1 else: countC += 1 s = nextS return s
class Solution: def count_and_say(self, n: int) -> str: s = '1' for _ in range(1, n): next_s = '' count_c = 1 for i in range(1, len(s) + 1): if i == len(s) or s[i] != s[i - 1]: next_s += str(countC) + s[i - 1] count_c = 1 else: count_c += 1 s = nextS return s
def convert_to_int(integer_string_with_commas): comma_separated_parts = integer_string_with_commas.split(",") for i in range(len(comma_separated_parts)): if len(comma_separated_parts[i]) > 3: return None if i != 0 and len(comma_separated_parts[i]) != 3: return None integer_string_without_commas = "".join(comma_separated_parts) try: return int(integer_string_without_commas) except ValueError: return None def row_to_list(row): row = row.rstrip("\n") separated_entries = row.split("\t") if len(separated_entries) == 2 and "" not in separated_entries: return separated_entries return None def preprocess(raw_data_file_path, clean_data_file_path): with open(raw_data_file_path, "r") as input_file: rows = input_file.readlines() with open(clean_data_file_path, "w") as output_file: for row in rows: row_as_list = row_to_list(row) if row_as_list is None: continue area = convert_to_int(row_as_list[0]) price = convert_to_int(row_as_list[1]) if area is None or price is None: continue output_file.write("{0}\t{1}\n".format(area, price))
def convert_to_int(integer_string_with_commas): comma_separated_parts = integer_string_with_commas.split(',') for i in range(len(comma_separated_parts)): if len(comma_separated_parts[i]) > 3: return None if i != 0 and len(comma_separated_parts[i]) != 3: return None integer_string_without_commas = ''.join(comma_separated_parts) try: return int(integer_string_without_commas) except ValueError: return None def row_to_list(row): row = row.rstrip('\n') separated_entries = row.split('\t') if len(separated_entries) == 2 and '' not in separated_entries: return separated_entries return None def preprocess(raw_data_file_path, clean_data_file_path): with open(raw_data_file_path, 'r') as input_file: rows = input_file.readlines() with open(clean_data_file_path, 'w') as output_file: for row in rows: row_as_list = row_to_list(row) if row_as_list is None: continue area = convert_to_int(row_as_list[0]) price = convert_to_int(row_as_list[1]) if area is None or price is None: continue output_file.write('{0}\t{1}\n'.format(area, price))
class Component: def update(self): return self def print_to(self, x, y, media): return media
class Component: def update(self): return self def print_to(self, x, y, media): return media
# CAPWATCH downloader config variables ## Copyright 2017 Marshall E. Giguere ## ## 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. # ID for eServices account Login UID = '' # eServices password PASSWD = '' # Unit default UNIT = 'NER-NH-001' # Fully qualified path name for downloaded CAPWATCH zipfile DL_FILEPATH = '' # Timeout value for download - how long to wait for file exsits TIMEOUT = 5 # How long to wait for an HTML DOM element to appear in webdriver DOM_TIMEOUT = 50 # If you are running on Linux and have installed the xvfb, pyvirtdisplay # packages you can run capwatch.py in the background wo/display. Otherwise # webdriver requires a display to render the DOM on. BATCH = False
uid = '' passwd = '' unit = 'NER-NH-001' dl_filepath = '' timeout = 5 dom_timeout = 50 batch = False
class FakeCustomerRepository: def __init__(self): self.customers = [] def get_by_id(self, customer_id): return next( (customer for customer in self.customers if customer.id == customer_id), None, ) def get_by_email(self, email): return next( (customer for customer in self.customers if customer.email == email), None ) def has_customer_with_email(self, email, customer_id=None): if customer_id: return any( customer for customer in self.customers if customer.email == email and customer.id != customer_id ) return any(customer for customer in self.customers if customer.email == email) def save(self, customer): self.customers = [other for other in self.customers if other.id != customer.id] self.customers.append(customer) def delete(self, customer): self.customers.remove(customer)
class Fakecustomerrepository: def __init__(self): self.customers = [] def get_by_id(self, customer_id): return next((customer for customer in self.customers if customer.id == customer_id), None) def get_by_email(self, email): return next((customer for customer in self.customers if customer.email == email), None) def has_customer_with_email(self, email, customer_id=None): if customer_id: return any((customer for customer in self.customers if customer.email == email and customer.id != customer_id)) return any((customer for customer in self.customers if customer.email == email)) def save(self, customer): self.customers = [other for other in self.customers if other.id != customer.id] self.customers.append(customer) def delete(self, customer): self.customers.remove(customer)
# # Copyright 2019 The FATE 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. # class RuntimeConfig(object): WORK_MODE = None JOB_QUEUE = None USE_LOCAL_DATABASE = False @staticmethod def init_config(**kwargs): for k, v in kwargs.items(): if hasattr(RuntimeConfig, k): setattr(RuntimeConfig, k, v)
class Runtimeconfig(object): work_mode = None job_queue = None use_local_database = False @staticmethod def init_config(**kwargs): for (k, v) in kwargs.items(): if hasattr(RuntimeConfig, k): setattr(RuntimeConfig, k, v)
# # PySNMP MIB module CISCO-ENTITY-SENSOR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ENTITY-SENSOR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:39:57 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") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") EntPhysicalIndexOrZero, = mibBuilder.importSymbols("CISCO-TC", "EntPhysicalIndexOrZero") entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") Counter32, iso, Bits, IpAddress, ObjectIdentity, Counter64, Gauge32, ModuleIdentity, MibIdentifier, NotificationType, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "iso", "Bits", "IpAddress", "ObjectIdentity", "Counter64", "Gauge32", "ModuleIdentity", "MibIdentifier", "NotificationType", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Unsigned32") TimeStamp, TruthValue, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "TruthValue", "DisplayString", "TextualConvention") ciscoEntitySensorMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 91)) ciscoEntitySensorMIB.setRevisions(('2017-01-19 00:00', '2015-01-15 00:00', '2013-09-21 00:00', '2007-11-12 00:00', '2006-01-01 00:00', '2005-09-08 00:00', '2003-01-07 00:00', '2002-10-16 00:00', '2000-06-20 00:00',)) if mibBuilder.loadTexts: ciscoEntitySensorMIB.setLastUpdated('201701190000Z') if mibBuilder.loadTexts: ciscoEntitySensorMIB.setOrganization('Cisco Systems, Inc.') entitySensorMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1)) entitySensorMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 2)) entitySensorMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3)) class SensorDataType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)) namedValues = NamedValues(("other", 1), ("unknown", 2), ("voltsAC", 3), ("voltsDC", 4), ("amperes", 5), ("watts", 6), ("hertz", 7), ("celsius", 8), ("percentRH", 9), ("rpm", 10), ("cmm", 11), ("truthvalue", 12), ("specialEnum", 13), ("dBm", 14), ("dB", 15)) class SensorDataScale(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)) namedValues = NamedValues(("yocto", 1), ("zepto", 2), ("atto", 3), ("femto", 4), ("pico", 5), ("nano", 6), ("micro", 7), ("milli", 8), ("units", 9), ("kilo", 10), ("mega", 11), ("giga", 12), ("tera", 13), ("exa", 14), ("peta", 15), ("zetta", 16), ("yotta", 17)) class SensorPrecision(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-8, 9) class SensorValue(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-1000000000, 1000000000) class SensorStatus(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("ok", 1), ("unavailable", 2), ("nonoperational", 3)) class SensorValueUpdateRate(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 999999999) class SensorThresholdSeverity(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 10, 20, 30)) namedValues = NamedValues(("other", 1), ("minor", 10), ("major", 20), ("critical", 30)) class SensorThresholdRelation(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("lessThan", 1), ("lessOrEqual", 2), ("greaterThan", 3), ("greaterOrEqual", 4), ("equalTo", 5), ("notEqualTo", 6)) entSensorValues = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1)) entSensorThresholds = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2)) entSensorGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 3)) entSensorValueTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1), ) if mibBuilder.loadTexts: entSensorValueTable.setStatus('current') entSensorValueEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: entSensorValueEntry.setStatus('current') entSensorType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 1), SensorDataType()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorType.setStatus('current') entSensorScale = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 2), SensorDataScale()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorScale.setStatus('current') entSensorPrecision = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 3), SensorPrecision()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorPrecision.setStatus('current') entSensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 4), SensorValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorValue.setStatus('current') entSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 5), SensorStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorStatus.setStatus('current') entSensorValueTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorValueTimeStamp.setStatus('current') entSensorValueUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 7), SensorValueUpdateRate()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorValueUpdateRate.setStatus('current') entSensorMeasuredEntity = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 8), EntPhysicalIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorMeasuredEntity.setStatus('current') entSensorThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1), ) if mibBuilder.loadTexts: entSensorThresholdTable.setStatus('current') entSensorThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdIndex")) if mibBuilder.loadTexts: entSensorThresholdEntry.setStatus('current') entSensorThresholdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99999999))) if mibBuilder.loadTexts: entSensorThresholdIndex.setStatus('current') entSensorThresholdSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 2), SensorThresholdSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThresholdSeverity.setStatus('current') entSensorThresholdRelation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 3), SensorThresholdRelation()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThresholdRelation.setStatus('current') entSensorThresholdValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 4), SensorValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThresholdValue.setStatus('current') entSensorThresholdEvaluation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorThresholdEvaluation.setStatus('current') entSensorThresholdNotificationEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThresholdNotificationEnable.setStatus('current') entSensorThreshNotifGlobalEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 3, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThreshNotifGlobalEnable.setStatus('current') entitySensorMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0)) entSensorThresholdNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0, 1)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdSeverity")) if mibBuilder.loadTexts: entSensorThresholdNotification.setStatus('current') entSensorThresholdRecoveryNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0, 2)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdSeverity"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdValue")) if mibBuilder.loadTexts: entSensorThresholdRecoveryNotification.setStatus('current') entitySensorMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1)) entitySensorMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2)) entitySensorMIBComplianceV01 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 1)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV01 = entitySensorMIBComplianceV01.setStatus('deprecated') entitySensorMIBComplianceV02 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 2)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV02 = entitySensorMIBComplianceV02.setStatus('deprecated') entitySensorMIBComplianceV03 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 3)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdNotificationGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroupSup1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV03 = entitySensorMIBComplianceV03.setStatus('deprecated') entitySensorMIBComplianceV04 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 4)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdNotificationGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroupSup1"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorNotifCtrlGlobalGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV04 = entitySensorMIBComplianceV04.setStatus('deprecated') entitySensorMIBComplianceV05 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 5)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroupSup1"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorNotifCtrlGlobalGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV05 = entitySensorMIBComplianceV05.setStatus('current') entitySensorValueGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 1)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorType"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorScale"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorPrecision"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorStatus"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorValueTimeStamp"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorValueUpdateRate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorValueGroup = entitySensorValueGroup.setStatus('current') entitySensorThresholdGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 2)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdSeverity"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdRelation"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdEvaluation"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdNotificationEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorThresholdGroup = entitySensorThresholdGroup.setStatus('current') entitySensorThresholdNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 3)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorThresholdNotificationGroup = entitySensorThresholdNotificationGroup.setStatus('deprecated') entitySensorValueGroupSup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 4)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorMeasuredEntity")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorValueGroupSup1 = entitySensorValueGroupSup1.setStatus('current') entitySensorNotifCtrlGlobalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 5)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThreshNotifGlobalEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorNotifCtrlGlobalGroup = entitySensorNotifCtrlGlobalGroup.setStatus('current') entitySensorNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 6)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdNotification"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdRecoveryNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorNotificationGroup = entitySensorNotificationGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-ENTITY-SENSOR-MIB", entSensorThresholdSeverity=entSensorThresholdSeverity, SensorStatus=SensorStatus, entitySensorValueGroup=entitySensorValueGroup, entSensorThresholdRecoveryNotification=entSensorThresholdRecoveryNotification, entSensorThresholds=entSensorThresholds, entitySensorMIBObjects=entitySensorMIBObjects, entSensorValueTable=entSensorValueTable, SensorPrecision=SensorPrecision, entSensorThresholdValue=entSensorThresholdValue, entSensorThresholdEvaluation=entSensorThresholdEvaluation, entSensorThreshNotifGlobalEnable=entSensorThreshNotifGlobalEnable, entitySensorMIBComplianceV04=entitySensorMIBComplianceV04, entSensorStatus=entSensorStatus, entitySensorMIBNotificationPrefix=entitySensorMIBNotificationPrefix, ciscoEntitySensorMIB=ciscoEntitySensorMIB, entSensorThresholdNotificationEnable=entSensorThresholdNotificationEnable, entSensorThresholdRelation=entSensorThresholdRelation, SensorValue=SensorValue, entSensorType=entSensorType, entSensorThresholdEntry=entSensorThresholdEntry, entitySensorMIBNotifications=entitySensorMIBNotifications, entitySensorNotifCtrlGlobalGroup=entitySensorNotifCtrlGlobalGroup, entSensorThresholdNotification=entSensorThresholdNotification, SensorValueUpdateRate=SensorValueUpdateRate, PYSNMP_MODULE_ID=ciscoEntitySensorMIB, entSensorThresholdTable=entSensorThresholdTable, entSensorValues=entSensorValues, SensorThresholdRelation=SensorThresholdRelation, entitySensorMIBComplianceV03=entitySensorMIBComplianceV03, SensorDataScale=SensorDataScale, entSensorValueEntry=entSensorValueEntry, entSensorScale=entSensorScale, entitySensorMIBComplianceV05=entitySensorMIBComplianceV05, entitySensorThresholdNotificationGroup=entitySensorThresholdNotificationGroup, entitySensorMIBConformance=entitySensorMIBConformance, entSensorValue=entSensorValue, entSensorGlobalObjects=entSensorGlobalObjects, entitySensorMIBComplianceV02=entitySensorMIBComplianceV02, entitySensorThresholdGroup=entitySensorThresholdGroup, entitySensorNotificationGroup=entitySensorNotificationGroup, entSensorPrecision=entSensorPrecision, entSensorValueTimeStamp=entSensorValueTimeStamp, entitySensorValueGroupSup1=entitySensorValueGroupSup1, entitySensorMIBCompliances=entitySensorMIBCompliances, entitySensorMIBGroups=entitySensorMIBGroups, entSensorThresholdIndex=entSensorThresholdIndex, SensorDataType=SensorDataType, SensorThresholdSeverity=SensorThresholdSeverity, entSensorMeasuredEntity=entSensorMeasuredEntity, entSensorValueUpdateRate=entSensorValueUpdateRate, entitySensorMIBComplianceV01=entitySensorMIBComplianceV01)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (ent_physical_index_or_zero,) = mibBuilder.importSymbols('CISCO-TC', 'EntPhysicalIndexOrZero') (ent_physical_index,) = mibBuilder.importSymbols('ENTITY-MIB', 'entPhysicalIndex') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (counter32, iso, bits, ip_address, object_identity, counter64, gauge32, module_identity, mib_identifier, notification_type, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'iso', 'Bits', 'IpAddress', 'ObjectIdentity', 'Counter64', 'Gauge32', 'ModuleIdentity', 'MibIdentifier', 'NotificationType', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Unsigned32') (time_stamp, truth_value, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'TruthValue', 'DisplayString', 'TextualConvention') cisco_entity_sensor_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 91)) ciscoEntitySensorMIB.setRevisions(('2017-01-19 00:00', '2015-01-15 00:00', '2013-09-21 00:00', '2007-11-12 00:00', '2006-01-01 00:00', '2005-09-08 00:00', '2003-01-07 00:00', '2002-10-16 00:00', '2000-06-20 00:00')) if mibBuilder.loadTexts: ciscoEntitySensorMIB.setLastUpdated('201701190000Z') if mibBuilder.loadTexts: ciscoEntitySensorMIB.setOrganization('Cisco Systems, Inc.') entity_sensor_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1)) entity_sensor_mib_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 2)) entity_sensor_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3)) class Sensordatatype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)) named_values = named_values(('other', 1), ('unknown', 2), ('voltsAC', 3), ('voltsDC', 4), ('amperes', 5), ('watts', 6), ('hertz', 7), ('celsius', 8), ('percentRH', 9), ('rpm', 10), ('cmm', 11), ('truthvalue', 12), ('specialEnum', 13), ('dBm', 14), ('dB', 15)) class Sensordatascale(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)) named_values = named_values(('yocto', 1), ('zepto', 2), ('atto', 3), ('femto', 4), ('pico', 5), ('nano', 6), ('micro', 7), ('milli', 8), ('units', 9), ('kilo', 10), ('mega', 11), ('giga', 12), ('tera', 13), ('exa', 14), ('peta', 15), ('zetta', 16), ('yotta', 17)) class Sensorprecision(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(-8, 9) class Sensorvalue(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(-1000000000, 1000000000) class Sensorstatus(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('ok', 1), ('unavailable', 2), ('nonoperational', 3)) class Sensorvalueupdaterate(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 999999999) class Sensorthresholdseverity(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 10, 20, 30)) named_values = named_values(('other', 1), ('minor', 10), ('major', 20), ('critical', 30)) class Sensorthresholdrelation(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('lessThan', 1), ('lessOrEqual', 2), ('greaterThan', 3), ('greaterOrEqual', 4), ('equalTo', 5), ('notEqualTo', 6)) ent_sensor_values = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1)) ent_sensor_thresholds = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2)) ent_sensor_global_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 3)) ent_sensor_value_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1)) if mibBuilder.loadTexts: entSensorValueTable.setStatus('current') ent_sensor_value_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: entSensorValueEntry.setStatus('current') ent_sensor_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 1), sensor_data_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorType.setStatus('current') ent_sensor_scale = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 2), sensor_data_scale()).setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorScale.setStatus('current') ent_sensor_precision = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 3), sensor_precision()).setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorPrecision.setStatus('current') ent_sensor_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 4), sensor_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorValue.setStatus('current') ent_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 5), sensor_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorStatus.setStatus('current') ent_sensor_value_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 6), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorValueTimeStamp.setStatus('current') ent_sensor_value_update_rate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 7), sensor_value_update_rate()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorValueUpdateRate.setStatus('current') ent_sensor_measured_entity = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 8), ent_physical_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorMeasuredEntity.setStatus('current') ent_sensor_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1)) if mibBuilder.loadTexts: entSensorThresholdTable.setStatus('current') ent_sensor_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdIndex')) if mibBuilder.loadTexts: entSensorThresholdEntry.setStatus('current') ent_sensor_threshold_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 99999999))) if mibBuilder.loadTexts: entSensorThresholdIndex.setStatus('current') ent_sensor_threshold_severity = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 2), sensor_threshold_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: entSensorThresholdSeverity.setStatus('current') ent_sensor_threshold_relation = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 3), sensor_threshold_relation()).setMaxAccess('readwrite') if mibBuilder.loadTexts: entSensorThresholdRelation.setStatus('current') ent_sensor_threshold_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 4), sensor_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: entSensorThresholdValue.setStatus('current') ent_sensor_threshold_evaluation = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: entSensorThresholdEvaluation.setStatus('current') ent_sensor_threshold_notification_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: entSensorThresholdNotificationEnable.setStatus('current') ent_sensor_thresh_notif_global_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 3, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: entSensorThreshNotifGlobalEnable.setStatus('current') entity_sensor_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0)) ent_sensor_threshold_notification = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0, 1)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdValue'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorValue'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdSeverity')) if mibBuilder.loadTexts: entSensorThresholdNotification.setStatus('current') ent_sensor_threshold_recovery_notification = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0, 2)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entSensorValue'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdSeverity'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdValue')) if mibBuilder.loadTexts: entSensorThresholdRecoveryNotification.setStatus('current') entity_sensor_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1)) entity_sensor_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2)) entity_sensor_mib_compliance_v01 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 1)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entitySensorValueGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_mib_compliance_v01 = entitySensorMIBComplianceV01.setStatus('deprecated') entity_sensor_mib_compliance_v02 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 2)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorValueGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_mib_compliance_v02 = entitySensorMIBComplianceV02.setStatus('deprecated') entity_sensor_mib_compliance_v03 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 3)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorValueGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdNotificationGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorValueGroupSup1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_mib_compliance_v03 = entitySensorMIBComplianceV03.setStatus('deprecated') entity_sensor_mib_compliance_v04 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 4)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorValueGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdNotificationGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorValueGroupSup1'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorNotifCtrlGlobalGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_mib_compliance_v04 = entitySensorMIBComplianceV04.setStatus('deprecated') entity_sensor_mib_compliance_v05 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 5)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entitySensorThresholdGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorValueGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorValueGroupSup1'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorNotifCtrlGlobalGroup'), ('CISCO-ENTITY-SENSOR-MIB', 'entitySensorNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_mib_compliance_v05 = entitySensorMIBComplianceV05.setStatus('current') entity_sensor_value_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 1)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entSensorType'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorScale'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorPrecision'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorValue'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorStatus'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorValueTimeStamp'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorValueUpdateRate')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_value_group = entitySensorValueGroup.setStatus('current') entity_sensor_threshold_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 2)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdSeverity'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdRelation'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdValue'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdEvaluation'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdNotificationEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_threshold_group = entitySensorThresholdGroup.setStatus('current') entity_sensor_threshold_notification_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 3)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdNotification')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_threshold_notification_group = entitySensorThresholdNotificationGroup.setStatus('deprecated') entity_sensor_value_group_sup1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 4)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entSensorMeasuredEntity')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_value_group_sup1 = entitySensorValueGroupSup1.setStatus('current') entity_sensor_notif_ctrl_global_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 5)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entSensorThreshNotifGlobalEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_notif_ctrl_global_group = entitySensorNotifCtrlGlobalGroup.setStatus('current') entity_sensor_notification_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 6)).setObjects(('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdNotification'), ('CISCO-ENTITY-SENSOR-MIB', 'entSensorThresholdRecoveryNotification')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entity_sensor_notification_group = entitySensorNotificationGroup.setStatus('current') mibBuilder.exportSymbols('CISCO-ENTITY-SENSOR-MIB', entSensorThresholdSeverity=entSensorThresholdSeverity, SensorStatus=SensorStatus, entitySensorValueGroup=entitySensorValueGroup, entSensorThresholdRecoveryNotification=entSensorThresholdRecoveryNotification, entSensorThresholds=entSensorThresholds, entitySensorMIBObjects=entitySensorMIBObjects, entSensorValueTable=entSensorValueTable, SensorPrecision=SensorPrecision, entSensorThresholdValue=entSensorThresholdValue, entSensorThresholdEvaluation=entSensorThresholdEvaluation, entSensorThreshNotifGlobalEnable=entSensorThreshNotifGlobalEnable, entitySensorMIBComplianceV04=entitySensorMIBComplianceV04, entSensorStatus=entSensorStatus, entitySensorMIBNotificationPrefix=entitySensorMIBNotificationPrefix, ciscoEntitySensorMIB=ciscoEntitySensorMIB, entSensorThresholdNotificationEnable=entSensorThresholdNotificationEnable, entSensorThresholdRelation=entSensorThresholdRelation, SensorValue=SensorValue, entSensorType=entSensorType, entSensorThresholdEntry=entSensorThresholdEntry, entitySensorMIBNotifications=entitySensorMIBNotifications, entitySensorNotifCtrlGlobalGroup=entitySensorNotifCtrlGlobalGroup, entSensorThresholdNotification=entSensorThresholdNotification, SensorValueUpdateRate=SensorValueUpdateRate, PYSNMP_MODULE_ID=ciscoEntitySensorMIB, entSensorThresholdTable=entSensorThresholdTable, entSensorValues=entSensorValues, SensorThresholdRelation=SensorThresholdRelation, entitySensorMIBComplianceV03=entitySensorMIBComplianceV03, SensorDataScale=SensorDataScale, entSensorValueEntry=entSensorValueEntry, entSensorScale=entSensorScale, entitySensorMIBComplianceV05=entitySensorMIBComplianceV05, entitySensorThresholdNotificationGroup=entitySensorThresholdNotificationGroup, entitySensorMIBConformance=entitySensorMIBConformance, entSensorValue=entSensorValue, entSensorGlobalObjects=entSensorGlobalObjects, entitySensorMIBComplianceV02=entitySensorMIBComplianceV02, entitySensorThresholdGroup=entitySensorThresholdGroup, entitySensorNotificationGroup=entitySensorNotificationGroup, entSensorPrecision=entSensorPrecision, entSensorValueTimeStamp=entSensorValueTimeStamp, entitySensorValueGroupSup1=entitySensorValueGroupSup1, entitySensorMIBCompliances=entitySensorMIBCompliances, entitySensorMIBGroups=entitySensorMIBGroups, entSensorThresholdIndex=entSensorThresholdIndex, SensorDataType=SensorDataType, SensorThresholdSeverity=SensorThresholdSeverity, entSensorMeasuredEntity=entSensorMeasuredEntity, entSensorValueUpdateRate=entSensorValueUpdateRate, entitySensorMIBComplianceV01=entitySensorMIBComplianceV01)
INSTALLED_APPS += ( 'social_auth', ) AUTHENTICATION_BACKENDS = ( 'social_auth.backends.twitter.TwitterBackend', 'social_auth.backends.facebook.FacebookBackend', 'django.contrib.auth.backends.ModelBackend', ) TEMPLATE_CONTEXT_PROCESSORS += ( 'social_auth.context_processors.social_auth_backends', 'social_auth.context_processors.social_auth_login_redirect', ) TWITTER_CONSUMER_KEY = 'YOUR KEY HERE ' TWITTER_CONSUMER_SECRET = 'YOUR SECRET HERE ' FACEBOOK_APP_ID = '299553123569374' FACEBOOK_API_SECRET = '83a6bc215286c8c0429d134a2db38d0d'
installed_apps += ('social_auth',) authentication_backends = ('social_auth.backends.twitter.TwitterBackend', 'social_auth.backends.facebook.FacebookBackend', 'django.contrib.auth.backends.ModelBackend') template_context_processors += ('social_auth.context_processors.social_auth_backends', 'social_auth.context_processors.social_auth_login_redirect') twitter_consumer_key = 'YOUR KEY HERE ' twitter_consumer_secret = 'YOUR SECRET HERE ' facebook_app_id = '299553123569374' facebook_api_secret = '83a6bc215286c8c0429d134a2db38d0d'
num_waves = 4 num_eqn = 5 # Conserved quantities density = 0 x_momentum = 1 y_momentum = 2 energy = 3 tracer = 4
num_waves = 4 num_eqn = 5 density = 0 x_momentum = 1 y_momentum = 2 energy = 3 tracer = 4
class Solution: def circularArrayLoop(self, nums: List[int]) -> bool: N = len(nums) for i, num in enumerate(nums): if num == 0: continue cur = i flag = num / abs(num) seen = set() while nums[cur] * flag > 0: nx = (cur + nums[cur]) % N nums[cur] = 0 seen.add(cur) if nx in seen and cur != nx: return True cur = nx return False
class Solution: def circular_array_loop(self, nums: List[int]) -> bool: n = len(nums) for (i, num) in enumerate(nums): if num == 0: continue cur = i flag = num / abs(num) seen = set() while nums[cur] * flag > 0: nx = (cur + nums[cur]) % N nums[cur] = 0 seen.add(cur) if nx in seen and cur != nx: return True cur = nx return False
N, M = map(int, input().split()) for i in range(1, N, 2): print(''.join(['.|.'] * i).center(M, '-')) print("WELCOME".center(M, '-')) for i in range(N-2, -1, -2): print(''.join(['.|.'] * i).center(M, '-'))
(n, m) = map(int, input().split()) for i in range(1, N, 2): print(''.join(['.|.'] * i).center(M, '-')) print('WELCOME'.center(M, '-')) for i in range(N - 2, -1, -2): print(''.join(['.|.'] * i).center(M, '-'))
class SVGFilterInputs: SourceGraphic = 'SourceGraphic' SourceAlpha = 'SourceAlpha' BackgroundImage = 'BackgroundImage' BackgroundAlpha = 'BackgroundAlpha' FillPaint = 'FillPaint' StrokePaint = 'StrokePaint' class SVGFilter: def __init__(self, svg): self.svg = svg def render(self, renderfn): # do some setup renderfn() # undo some setup
class Svgfilterinputs: source_graphic = 'SourceGraphic' source_alpha = 'SourceAlpha' background_image = 'BackgroundImage' background_alpha = 'BackgroundAlpha' fill_paint = 'FillPaint' stroke_paint = 'StrokePaint' class Svgfilter: def __init__(self, svg): self.svg = svg def render(self, renderfn): renderfn()
#coding:utf-8 bind = 'unix:/var/run/gunicorn.sock' workers = 4 # you should change this user = 'root' # maybe you like error loglevel = 'warning' errorlog = '-' secure_scheme_headers = { 'X-SCHEME': 'https', } x_forwarded_for_header = 'X-FORWARDED-FOR' ### gunicorn -c settings.py -b 0.0.0.0:9000 wsgi:app
bind = 'unix:/var/run/gunicorn.sock' workers = 4 user = 'root' loglevel = 'warning' errorlog = '-' secure_scheme_headers = {'X-SCHEME': 'https'} x_forwarded_for_header = 'X-FORWARDED-FOR'
def get_count_A_C_G_and_T_in_string(dna_string): ''' Create a function named get_count_A_C_G_and_T_in_string with a parameter named dna_string. :param dna_string: a DNA string :return: the count of As, Cs, Gs, and Ts in the dna_string ''' A_count=0 C_count=0 G_count=0 T_count=0 for ch in dna_string.upper(): if ch == 'A': A_count += 1 for ch in dna_string.upper(): if ch == 'C': C_count += 1 for ch in dna_string.upper(): if ch == 'G': G_count += 1 for ch in dna_string.upper(): if ch == 'T': T_count += 1 return A_count, C_count, G_count, T_count
def get_count_a_c_g_and_t_in_string(dna_string): """ Create a function named get_count_A_C_G_and_T_in_string with a parameter named dna_string. :param dna_string: a DNA string :return: the count of As, Cs, Gs, and Ts in the dna_string """ a_count = 0 c_count = 0 g_count = 0 t_count = 0 for ch in dna_string.upper(): if ch == 'A': a_count += 1 for ch in dna_string.upper(): if ch == 'C': c_count += 1 for ch in dna_string.upper(): if ch == 'G': g_count += 1 for ch in dna_string.upper(): if ch == 'T': t_count += 1 return (A_count, C_count, G_count, T_count)
for i in range(10): a = i print(a)
for i in range(10): a = i print(a)
# LeetCode 897. Increasing Order Search Tree `E` # 1sk | 89% | 19' # A~0v10 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def increasingBST(self, root: TreeNode) -> TreeNode: ans = self.tree = TreeNode(None) self.inorder(root) return ans.right def inorder(self, node): if not node: return self.inorder(node.left) node.left = None self.tree.right = node self.tree = node self.inorder(node.right)
class Solution: def increasing_bst(self, root: TreeNode) -> TreeNode: ans = self.tree = tree_node(None) self.inorder(root) return ans.right def inorder(self, node): if not node: return self.inorder(node.left) node.left = None self.tree.right = node self.tree = node self.inorder(node.right)
# Python program to print positive Numbers in a List # list of numbers list1 = [10, -21, 4, -45, -66, -93] # using list comprehension positive_nos = [num for num in list1 if num <= 0] print("positive numbers in the list: ", positive_nos) # Remove multiple elements from list l = [3, 5, 7, 4, 8, 4, 3] l.sort() print("l=", l) # Find the reverse of given list. l = [1, 2, 3, 4] l.reverse() print(l)
list1 = [10, -21, 4, -45, -66, -93] positive_nos = [num for num in list1 if num <= 0] print('positive numbers in the list: ', positive_nos) l = [3, 5, 7, 4, 8, 4, 3] l.sort() print('l=', l) l = [1, 2, 3, 4] l.reverse() print(l)
# nested try's try: print("try 1") try: print("try 2") foo() except: print("except 2") bar() except: print("except 1") try: print("try 1") try: print("try 2") foo() except TypeError: print("except 2") bar() except NameError: print("except 1") # Check that exceptions across function boundaries work as expected def func1(): try: print("try func1") func2() except NameError: print("except func1") def func2(): try: print("try func2") foo() except TypeError: print("except func2") func1()
try: print('try 1') try: print('try 2') foo() except: print('except 2') bar() except: print('except 1') try: print('try 1') try: print('try 2') foo() except TypeError: print('except 2') bar() except NameError: print('except 1') def func1(): try: print('try func1') func2() except NameError: print('except func1') def func2(): try: print('try func2') foo() except TypeError: print('except func2') func1()
__all__ = [ 'fullname', 'starts_with' ] # https://stackoverflow.com/questions/2020014/get-fully-qualified-class-name-of-an-object-in-python def fullname(o): if o is None: return None module = o.__class__.__module__ if module is None or module == str.__class__.__module__: return o.__class__.__name__ else: return module + '.' + o.__class__.__name__ def starts_with(collection, text): if text is None or collection is None: return False for item in collection: if text.startswith(item): return True return False
__all__ = ['fullname', 'starts_with'] def fullname(o): if o is None: return None module = o.__class__.__module__ if module is None or module == str.__class__.__module__: return o.__class__.__name__ else: return module + '.' + o.__class__.__name__ def starts_with(collection, text): if text is None or collection is None: return False for item in collection: if text.startswith(item): return True return False
config_prefix = '=' config_description = 'Use =help to get started!' config_owner_id = 311661241406062592 config_bot_log_channel = 741486105173688351 config_command_log_channel = 741486105173688351 config_error_log_channel = 741486105173688351 config_guild_log_channel = 741486105173688351
config_prefix = '=' config_description = 'Use =help to get started!' config_owner_id = 311661241406062592 config_bot_log_channel = 741486105173688351 config_command_log_channel = 741486105173688351 config_error_log_channel = 741486105173688351 config_guild_log_channel = 741486105173688351
#Number analysis program NUMBER_SERIES = 20 def main(): #here is the mathematical algorithm/code numbers = get_numbers() total = calculate_total(numbers) average = total / len(numbers) highest_number = max(numbers) lowest_number = min(numbers) print() print_details(numbers,total,average,highest_number,lowest_number) def get_numbers(): number_list = [0] * NUMBER_SERIES print('Enter a series of numbers.') print() for index in range(len(number_list)): number_list[index] = float(input('Enter a number: ')) return number_list def calculate_total(numbers): total = 0 #intiating accumulator for values in numbers: total += values return total def print_details(numbers,total,average,highest_number,lowest_number): print(numbers,'\nThe total =',total,'\nThe average =',average,\ '\nThe highest number =',highest_number,'\nThe lowest number'\ ' =',lowest_number) main()
number_series = 20 def main(): numbers = get_numbers() total = calculate_total(numbers) average = total / len(numbers) highest_number = max(numbers) lowest_number = min(numbers) print() print_details(numbers, total, average, highest_number, lowest_number) def get_numbers(): number_list = [0] * NUMBER_SERIES print('Enter a series of numbers.') print() for index in range(len(number_list)): number_list[index] = float(input('Enter a number: ')) return number_list def calculate_total(numbers): total = 0 for values in numbers: total += values return total def print_details(numbers, total, average, highest_number, lowest_number): print(numbers, '\nThe total =', total, '\nThe average =', average, '\nThe highest number =', highest_number, '\nThe lowest number =', lowest_number) main()
def eastern_boundaries(lon,lat): m = Basemap(projection='cyl') boundaries = [] last_l_is_land = m.is_land(lon[0],lat) for l in lon[1:]: current_l_is_land = m.is_land(l,lat) if last_l_is_land and not current_l_is_land: boundaries.append(l) last_l_is_land = current_l_is_land return boundaries def calculate_coefficients(z,lon,lats,target_lat,dt,c1,c2,c3,c4,c5,c6,c7): # Constants, defined as in CCSM EARTH_RADIUS = 6370.0E3 OMEGA = 7.292123625E-5 PI = 4*math.atan(1) lat_i = find_nearest(lats, target_lat) lat = lats[lat_i] dlon = np.abs(lon[1] - lon[0]) dx = dlon * EARTH_RADIUS / 180 * PI * math.cos(lat / 180 * PI) try: dlat = np.diff(lats)[lat_i] except IndexError: dlat = np.diff(lats)[-1] dy = dlat * EARTH_RADIUS / 180 * PI phip = PI * min(np.abs(lat),c7) / c7 ASGS = c6 BSGS = c1*(1+c2*(1-math.cos(phip))) if np.abs(lat) < 30: VS = 0.425 * np.cos(lat*PI/30) + 0.575 else: VS = 0.15 #AGRe = 0.5 * VS * np.exp(-z/1000) * dx AGRe = 0 p = [] boundaries = eastern_boundaries(lon,lat) for x in lon: boundary_distance = np.Inf in_boundary_layer = False for boundary in boundaries: if (x - c5*dlon <= boundary) & (x >= boundary): p_x = 0 in_boundary_layer = True elif x >= boundary: boundary_distance = min(np.abs(x - boundary - c5*dlon),boundary_distance) if not in_boundary_layer: p_x = boundary_distance * c4 * EARTH_RADIUS / 180 * PI * math.cos(lat / 180 * PI) p.append(p_x) beta = 2 * OMEGA / EARTH_RADIUS * math.cos(lat * PI / 180) BMUNK = c3 * beta * dx**3 * np.exp(-np.asarray(p)**2) ANoise = [max(AGRe,x) for x in BMUNK] BNoise = ANoise Ap = [max(ASGS,x) for x in ANoise] Bp = [max(BSGS,x) for x in BNoise] AVCFL = 0.125 / (dt * (1/dx/dx + 1/dy/dy)) BVCFL = AVCFL A = [min(AVCFL,x) for x in Ap] B = [min(BVCFL,x) for x in Bp] return np.asarray(A)/1E3, np.asarray(B)/1E3
def eastern_boundaries(lon, lat): m = basemap(projection='cyl') boundaries = [] last_l_is_land = m.is_land(lon[0], lat) for l in lon[1:]: current_l_is_land = m.is_land(l, lat) if last_l_is_land and (not current_l_is_land): boundaries.append(l) last_l_is_land = current_l_is_land return boundaries def calculate_coefficients(z, lon, lats, target_lat, dt, c1, c2, c3, c4, c5, c6, c7): earth_radius = 6370000.0 omega = 7.292123625e-05 pi = 4 * math.atan(1) lat_i = find_nearest(lats, target_lat) lat = lats[lat_i] dlon = np.abs(lon[1] - lon[0]) dx = dlon * EARTH_RADIUS / 180 * PI * math.cos(lat / 180 * PI) try: dlat = np.diff(lats)[lat_i] except IndexError: dlat = np.diff(lats)[-1] dy = dlat * EARTH_RADIUS / 180 * PI phip = PI * min(np.abs(lat), c7) / c7 asgs = c6 bsgs = c1 * (1 + c2 * (1 - math.cos(phip))) if np.abs(lat) < 30: vs = 0.425 * np.cos(lat * PI / 30) + 0.575 else: vs = 0.15 ag_re = 0 p = [] boundaries = eastern_boundaries(lon, lat) for x in lon: boundary_distance = np.Inf in_boundary_layer = False for boundary in boundaries: if (x - c5 * dlon <= boundary) & (x >= boundary): p_x = 0 in_boundary_layer = True elif x >= boundary: boundary_distance = min(np.abs(x - boundary - c5 * dlon), boundary_distance) if not in_boundary_layer: p_x = boundary_distance * c4 * EARTH_RADIUS / 180 * PI * math.cos(lat / 180 * PI) p.append(p_x) beta = 2 * OMEGA / EARTH_RADIUS * math.cos(lat * PI / 180) bmunk = c3 * beta * dx ** 3 * np.exp(-np.asarray(p) ** 2) a_noise = [max(AGRe, x) for x in BMUNK] b_noise = ANoise ap = [max(ASGS, x) for x in ANoise] bp = [max(BSGS, x) for x in BNoise] avcfl = 0.125 / (dt * (1 / dx / dx + 1 / dy / dy)) bvcfl = AVCFL a = [min(AVCFL, x) for x in Ap] b = [min(BVCFL, x) for x in Bp] return (np.asarray(A) / 1000.0, np.asarray(B) / 1000.0)
def counter(start, stop): x=start if start>stop: return_string = "Counting down: " while x != stop: return_string += str(x) if x!=stop: return_string += "," else: return_string = "Counting up: " while x !=stop: return_string += str(x) if x!=stop: return_string += "," return return_string print(counter(1,10))
def counter(start, stop): x = start if start > stop: return_string = 'Counting down: ' while x != stop: return_string += str(x) if x != stop: return_string += ',' else: return_string = 'Counting up: ' while x != stop: return_string += str(x) if x != stop: return_string += ',' return return_string print(counter(1, 10))
number = 9 print(type(number)) # print type of variable "number" float_number = 9.0 print(float_number) print(int(float_number))
number = 9 print(type(number)) float_number = 9.0 print(float_number) print(int(float_number))
# https://www.codechef.com/problems/FLOW005 for T in range(int(input())): a,n,s = [100,50,10,5,2,1],int(input()),0 for i in a: s,n = s+(n//i),n%i print(s)
for t in range(int(input())): (a, n, s) = ([100, 50, 10, 5, 2, 1], int(input()), 0) for i in a: (s, n) = (s + n // i, n % i) print(s)
def fibonacci(num): if num < 0: print("Make it a positive number") elif num == 1: return 0 elif num == 2: return 1 else: return fibonacci(num-1)+fibonacci(num-2)
def fibonacci(num): if num < 0: print('Make it a positive number') elif num == 1: return 0 elif num == 2: return 1 else: return fibonacci(num - 1) + fibonacci(num - 2)
def close2zero(t): try: i,j = sorted(map(int, set(t.split())), key = lambda x: abs(int(x)))[:2] return max(i,j) if abs(i)==abs(j) else i except: return 0
def close2zero(t): try: (i, j) = sorted(map(int, set(t.split())), key=lambda x: abs(int(x)))[:2] return max(i, j) if abs(i) == abs(j) else i except: return 0
styleDict = { 'clear': f'\033[0m', 'bold': f'\033[1m', 'dim': f'\033[2m', 'italic': f'\033[3m', 'underline': f'\033[4m', 'blinking': f'\033[5m', 'anarch': f'\033[38;2;255;106;51m', 'criminal': f'\033[38;2;65;105;255m', 'shaper': f'\033[38;2;50;205;50m', 'haas-bioroid': f'\033[38;2;138;43;226m', 'jinteki': f'\033[38;2;220;20;60m', 'nbn': f'\033[38;2;255;140;0m', 'weyland-consortium': f'\033[38;2;0;100;0m', 'adam': f'\033[38;2;173;167;73m', 'sunny-lebeau': f'\033[38;2;196;196;196m', 'apex': f'\033[38;2;231;57;56m', 'neutral-runner': '', 'neutral-corp': '' } def style(string, styles): return ''.join(map(lambda x: styleDict[x],styles)) + string + styleDict['clear']
style_dict = {'clear': f'\x1b[0m', 'bold': f'\x1b[1m', 'dim': f'\x1b[2m', 'italic': f'\x1b[3m', 'underline': f'\x1b[4m', 'blinking': f'\x1b[5m', 'anarch': f'\x1b[38;2;255;106;51m', 'criminal': f'\x1b[38;2;65;105;255m', 'shaper': f'\x1b[38;2;50;205;50m', 'haas-bioroid': f'\x1b[38;2;138;43;226m', 'jinteki': f'\x1b[38;2;220;20;60m', 'nbn': f'\x1b[38;2;255;140;0m', 'weyland-consortium': f'\x1b[38;2;0;100;0m', 'adam': f'\x1b[38;2;173;167;73m', 'sunny-lebeau': f'\x1b[38;2;196;196;196m', 'apex': f'\x1b[38;2;231;57;56m', 'neutral-runner': '', 'neutral-corp': ''} def style(string, styles): return ''.join(map(lambda x: styleDict[x], styles)) + string + styleDict['clear']
DB_HOST = 'localhost' DB_PORT = 5432 DB_USER = 'platappform' DB_PASSWORD = 'development' DB_DATABASE = 'platappform_dev' DB_POOL_MIN_SIZE = 5 #default DB_POOL_MAX_SIZE = 10 #default
db_host = 'localhost' db_port = 5432 db_user = 'platappform' db_password = 'development' db_database = 'platappform_dev' db_pool_min_size = 5 db_pool_max_size = 10
class Component: def __init__(self, position): self.position = position self.dirty = True self.focus = False def update(self, screen): if self.dirty: screen.blit(self.surface, self.position) self.dirty = False
class Component: def __init__(self, position): self.position = position self.dirty = True self.focus = False def update(self, screen): if self.dirty: screen.blit(self.surface, self.position) self.dirty = False
# # THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS # FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS. # # get the configuration properties from the UI params = { 'url': configuration.url, 'username': configuration.username, 'password': configuration.password, 'proxyHost': configuration.proxyHost, 'proxyPort': configuration.proxyPort, 'proxyUsername': configuration.proxyUsername, 'proxyPassword': configuration.proxyPassword } # make a http request call to the server - access the user api in this test response = HttpRequest(params).get('/api/v4/user', contentType='application/json') # check response status code, if different than 200 exit with error code if response.status != 200: raise Exception( "Failed to connect to Blazemeter Server. Status: %s" % response.status )
params = {'url': configuration.url, 'username': configuration.username, 'password': configuration.password, 'proxyHost': configuration.proxyHost, 'proxyPort': configuration.proxyPort, 'proxyUsername': configuration.proxyUsername, 'proxyPassword': configuration.proxyPassword} response = http_request(params).get('/api/v4/user', contentType='application/json') if response.status != 200: raise exception('Failed to connect to Blazemeter Server. Status: %s' % response.status)
title = ' MULTIPLICATION TABLES ' line = len(title) * '-' print('{}\n{}'.format(title, line)) for x in range(1,13): for i in range(1,13): f = i i = i * x print(' {} x {} = {}'.format(x,f,i)) print('')
title = ' MULTIPLICATION TABLES ' line = len(title) * '-' print('{}\n{}'.format(title, line)) for x in range(1, 13): for i in range(1, 13): f = i i = i * x print(' {} x {} = {}'.format(x, f, i)) print('')
def list_view(tree): print("Listing\n") movies = tree.list_by_name() if movies: print("Every movie in tree:") for movie in movies: print(movie) else: print("Empty tree.") input("ENTER to continue")
def list_view(tree): print('Listing\n') movies = tree.list_by_name() if movies: print('Every movie in tree:') for movie in movies: print(movie) else: print('Empty tree.') input('ENTER to continue')
class GameObject: def __init__(self, id, bounds_offsets, width, height, pos_x, pos_y, speed): self.id = id self.bounds_offsets = bounds_offsets self.bounds = [] for offset_array in bounds_offsets: self.bounds.append({}) self.width = width # In meters self.height = height # In meters self.pos_x = pos_x # In meters self.pos_y = pos_y # In meters self.speed = speed # In m/s #self.speed = speed # In %/s # Getters def getId(self): return self.id def getBounds(self): return self.bounds.copy() def getWidth(self): return self.width def getHeight(self): return self.height def getX(self): return self.pos_x def getY(self): return self.pos_y def getSpeed(self): return self.speed # Setters def setX(self, pos_x): self.pos_x = pos_x # In meters def setY(self, pos_y): self.pos_y = pos_y # In meters def setSpeed(self, speed): self.speed = speed # In m/s #self.speed = speed # In %/s # Update UI def update(self, dt): # Set physics bounds for i in range(len(self.bounds_offsets)): offset_array = self.bounds_offsets[i] if len(offset_array) == 4: b = self.bounds[i] b["x1"] = self.getX() + offset_array[0] * self.getWidth() b["y1"] = self.getY() + offset_array[1] * self.getHeight() b["x2"] = self.getX() + offset_array[2] * self.getWidth() b["y2"] = self.getY() + offset_array[3] * self.getHeight()
class Gameobject: def __init__(self, id, bounds_offsets, width, height, pos_x, pos_y, speed): self.id = id self.bounds_offsets = bounds_offsets self.bounds = [] for offset_array in bounds_offsets: self.bounds.append({}) self.width = width self.height = height self.pos_x = pos_x self.pos_y = pos_y self.speed = speed def get_id(self): return self.id def get_bounds(self): return self.bounds.copy() def get_width(self): return self.width def get_height(self): return self.height def get_x(self): return self.pos_x def get_y(self): return self.pos_y def get_speed(self): return self.speed def set_x(self, pos_x): self.pos_x = pos_x def set_y(self, pos_y): self.pos_y = pos_y def set_speed(self, speed): self.speed = speed def update(self, dt): for i in range(len(self.bounds_offsets)): offset_array = self.bounds_offsets[i] if len(offset_array) == 4: b = self.bounds[i] b['x1'] = self.getX() + offset_array[0] * self.getWidth() b['y1'] = self.getY() + offset_array[1] * self.getHeight() b['x2'] = self.getX() + offset_array[2] * self.getWidth() b['y2'] = self.getY() + offset_array[3] * self.getHeight()
# # Copyright (c) 2017-2018 Joy Diamond. All rights reserved. # @gem('Sapphire.UnaryExpression') def gem(): require_gem('Sapphire.Tree') @share class UnaryExpression(SapphireTrunk): __slots__ = (( 'a', # Expression )) class_order = CLASS_ORDER__UNARY_EXPRESSION is_colon = false is_special_operator = false def __init__(t, a): t.a = a def __repr__(t): return arrange('<%s %r>', t.__class__.__name__, t.a) def count_newlines(t): return t.a.count_newlines() def display_token(t): return arrange('<%s %s>', t.display_name, t.a.display_token()) def dump_token(t, f, newline = true): f.partial('<%s ', t.display_name) t .frill.dump_token(f) r = t.a .dump_token(f, false) return f.token_result(r, newline) order = order__frill_a def write(t, w): w(t.frill.s) t.a.write(w) UnaryExpression.k1 = UnaryExpression.a @share def produce_conjure_unary_expression(name, Meta): cache = create_cache(name, conjure_nub) lookup = cache.lookup provide = cache.provide store = cache.store def conjure_UnaryExpression_WithFrill(a, frill): UnaryExpression_WithFrill = lookup_adjusted_meta(Meta) if UnaryExpression_WithFrill is none: class UnaryExpression_WithFrill(Meta): __slots__ = (( 'frill', # Operator* )) def __init__(t, a, frill): t.a = a t.frill = frill def __repr__(t): return arrange('<%s %r %r>', t.__class__.__name__, t.frill, t.a) def count_newlines(t): return t.a.count_newlines() + t.frill.count_newlines() display_token = attribute(Meta, 'display_token__frill', none) if display_token is none: def display_token(t): return arrange('<%s+frill %s %s>', t.display_name, t.frill.display_token(), t.a.display_token()) UnaryExpression_WithFrill.k2 = UnaryExpression_WithFrill.frill if __debug__: UnaryExpression_WithFrill.__name__ = intern_arrange('%s_WithFrill', Meta.__name__) store_adjusted_meta(Meta, UnaryExpression_WithFrill) return UnaryExpression_WithFrill(a, frill) conjure_dual__21 = produce_conjure_unique_dual__21( name, conjure_UnaryExpression_WithFrill, cache, lookup, store, ) meta_frill = Meta.frill @rename('conjure_%s', name) def conjure_unary_expression(frill, a): if frill is meta_frill: return (lookup(a)) or (provide(a, Meta(a))) return conjure_dual__21(a, frill) return conjure_unary_expression class NegativeExpression(UnaryExpression): __slots__ = (()) display_name = '-' frill = conjure_action_word('-', '-') scout_variables = scout_variables__a class NotExpression(UnaryExpression): __slots__ = (()) display_name = 'not' frill = NOT__W mutate = produce_mutate__frill__a__priority('not-expression', PRIORITY_UNARY) scout_variables = scout_variables__a class StarArgument(UnaryExpression): __slots__ = (()) display_name = '*-argument' frill = conjure_star_sign('*') scout_variables = scout_variables__a class StarParameter(UnaryExpression): __slots__ = (()) display_name = '*-parameter' frill = conjure_star_sign('*') is_atom = true add_parameters = add_parameters__a scout_default_values = scout_default_values__a class TwosComplementExpression(UnaryExpression): __slots__ = (()) display_name = '~' frill = conjure_action_word('~', '~') scout_variables = scout_variables__a conjure_negative_expression = produce_conjure_unary_expression('negative', NegativeExpression) conjure_not_expression = produce_conjure_unary_expression('not', NotExpression) conjure_star_argument = produce_conjure_unary_expression('*-argument', StarArgument) conjure_star_parameter = produce_conjure_unary_expression('*-parameter', StarParameter) conjure_twos_complement = produce_conjure_unary_expression('twos-complement', TwosComplementExpression) NotExpression .conjure_with_frill = static_method(conjure_not_expression) StarArgument .conjure_with_frill = static_method(conjure_star_argument) StarParameter .conjure_with_frill = static_method(conjure_star_parameter) TwosComplementExpression.conjure_with_frill = static_method(conjure_twos_complement) # # .mutate # NegativeExpression.mutate = produce_mutate__frill__a_with_priority( 'negative_expression', PRIORITY_UNARY, conjure_negative_expression, ) StarArgument.mutate = produce_mutate__frill__a_with_priority( 'star_argument', PRIORITY_TERNARY, conjure_star_argument, ) TwosComplementExpression.mutate = produce_mutate__frill__a_with_priority( 'twos_complement_expression', PRIORITY_TERNARY, conjure_twos_complement, ) # # .transform # StarParameter.transform = produce_transform__frill_a('star_paramater', conjure_star_parameter) share( 'conjure_negative_expression', conjure_negative_expression, 'conjure_not_expression', conjure_not_expression, 'conjure_star_argument', conjure_star_argument, 'conjure_star_parameter', conjure_star_parameter, 'conjure_twos_complement', conjure_twos_complement, )
@gem('Sapphire.UnaryExpression') def gem(): require_gem('Sapphire.Tree') @share class Unaryexpression(SapphireTrunk): __slots__ = ('a',) class_order = CLASS_ORDER__UNARY_EXPRESSION is_colon = false is_special_operator = false def __init__(t, a): t.a = a def __repr__(t): return arrange('<%s %r>', t.__class__.__name__, t.a) def count_newlines(t): return t.a.count_newlines() def display_token(t): return arrange('<%s %s>', t.display_name, t.a.display_token()) def dump_token(t, f, newline=true): f.partial('<%s ', t.display_name) t.frill.dump_token(f) r = t.a.dump_token(f, false) return f.token_result(r, newline) order = order__frill_a def write(t, w): w(t.frill.s) t.a.write(w) UnaryExpression.k1 = UnaryExpression.a @share def produce_conjure_unary_expression(name, Meta): cache = create_cache(name, conjure_nub) lookup = cache.lookup provide = cache.provide store = cache.store def conjure__unary_expression__with_frill(a, frill): unary_expression__with_frill = lookup_adjusted_meta(Meta) if UnaryExpression_WithFrill is none: class Unaryexpression_Withfrill(Meta): __slots__ = ('frill',) def __init__(t, a, frill): t.a = a t.frill = frill def __repr__(t): return arrange('<%s %r %r>', t.__class__.__name__, t.frill, t.a) def count_newlines(t): return t.a.count_newlines() + t.frill.count_newlines() display_token = attribute(Meta, 'display_token__frill', none) if display_token is none: def display_token(t): return arrange('<%s+frill %s %s>', t.display_name, t.frill.display_token(), t.a.display_token()) UnaryExpression_WithFrill.k2 = UnaryExpression_WithFrill.frill if __debug__: UnaryExpression_WithFrill.__name__ = intern_arrange('%s_WithFrill', Meta.__name__) store_adjusted_meta(Meta, UnaryExpression_WithFrill) return unary_expression__with_frill(a, frill) conjure_dual__21 = produce_conjure_unique_dual__21(name, conjure_UnaryExpression_WithFrill, cache, lookup, store) meta_frill = Meta.frill @rename('conjure_%s', name) def conjure_unary_expression(frill, a): if frill is meta_frill: return lookup(a) or provide(a, meta(a)) return conjure_dual__21(a, frill) return conjure_unary_expression class Negativeexpression(UnaryExpression): __slots__ = () display_name = '-' frill = conjure_action_word('-', '-') scout_variables = scout_variables__a class Notexpression(UnaryExpression): __slots__ = () display_name = 'not' frill = NOT__W mutate = produce_mutate__frill__a__priority('not-expression', PRIORITY_UNARY) scout_variables = scout_variables__a class Starargument(UnaryExpression): __slots__ = () display_name = '*-argument' frill = conjure_star_sign('*') scout_variables = scout_variables__a class Starparameter(UnaryExpression): __slots__ = () display_name = '*-parameter' frill = conjure_star_sign('*') is_atom = true add_parameters = add_parameters__a scout_default_values = scout_default_values__a class Twoscomplementexpression(UnaryExpression): __slots__ = () display_name = '~' frill = conjure_action_word('~', '~') scout_variables = scout_variables__a conjure_negative_expression = produce_conjure_unary_expression('negative', NegativeExpression) conjure_not_expression = produce_conjure_unary_expression('not', NotExpression) conjure_star_argument = produce_conjure_unary_expression('*-argument', StarArgument) conjure_star_parameter = produce_conjure_unary_expression('*-parameter', StarParameter) conjure_twos_complement = produce_conjure_unary_expression('twos-complement', TwosComplementExpression) NotExpression.conjure_with_frill = static_method(conjure_not_expression) StarArgument.conjure_with_frill = static_method(conjure_star_argument) StarParameter.conjure_with_frill = static_method(conjure_star_parameter) TwosComplementExpression.conjure_with_frill = static_method(conjure_twos_complement) NegativeExpression.mutate = produce_mutate__frill__a_with_priority('negative_expression', PRIORITY_UNARY, conjure_negative_expression) StarArgument.mutate = produce_mutate__frill__a_with_priority('star_argument', PRIORITY_TERNARY, conjure_star_argument) TwosComplementExpression.mutate = produce_mutate__frill__a_with_priority('twos_complement_expression', PRIORITY_TERNARY, conjure_twos_complement) StarParameter.transform = produce_transform__frill_a('star_paramater', conjure_star_parameter) share('conjure_negative_expression', conjure_negative_expression, 'conjure_not_expression', conjure_not_expression, 'conjure_star_argument', conjure_star_argument, 'conjure_star_parameter', conjure_star_parameter, 'conjure_twos_complement', conjure_twos_complement)
list_of_lists = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']] string = '' for l in list_of_lists: max_i = len(l) for i in range(len(l)): if i < max_i - 1: string += l[i]+',' else: string += l[i]+'\n' print(string)
list_of_lists = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']] string = '' for l in list_of_lists: max_i = len(l) for i in range(len(l)): if i < max_i - 1: string += l[i] + ',' else: string += l[i] + '\n' print(string)
quant = int(input()) for c in range(quant): num_estudantes = int(input()) nomes = input().split(' ') registro = input().split(' ') reprovados = [] contador = 0 for frequencia in registro: media = 0 tam = len(frequencia) for letra in frequencia: if letra == "P": media += 1 elif letra == "A": pass elif letra == "M": tam -= 1 if media < (3 / 4) * tam: reprovados.append(nomes[contador]) contador += 1 print(' '.join(reprovados))
quant = int(input()) for c in range(quant): num_estudantes = int(input()) nomes = input().split(' ') registro = input().split(' ') reprovados = [] contador = 0 for frequencia in registro: media = 0 tam = len(frequencia) for letra in frequencia: if letra == 'P': media += 1 elif letra == 'A': pass elif letra == 'M': tam -= 1 if media < 3 / 4 * tam: reprovados.append(nomes[contador]) contador += 1 print(' '.join(reprovados))
# -*- coding: utf8 -*- # Copyright (c) 2020 Nicholas de Jong __title__ = "arpwitch" __author__ = "Nicholas de Jong <contact@nicholasdejong.com>" __version__ = '0.3.9' __license__ = "BSD2" __logger_default_level__ = 'info' __sniff_batch_size__ = 16 __sniff_batch_timeout__ = 2 __save_data_interval__default__ = 30 __nmap__exec__ = 'nmap -n -T4 -Pn -oX ' + __title__ + '-nmap-{IP}-{ts}.xml {IP}' __exec_max_runtime__ = 30
__title__ = 'arpwitch' __author__ = 'Nicholas de Jong <contact@nicholasdejong.com>' __version__ = '0.3.9' __license__ = 'BSD2' __logger_default_level__ = 'info' __sniff_batch_size__ = 16 __sniff_batch_timeout__ = 2 __save_data_interval__default__ = 30 __nmap__exec__ = 'nmap -n -T4 -Pn -oX ' + __title__ + '-nmap-{IP}-{ts}.xml {IP}' __exec_max_runtime__ = 30
category_dict_icml15 = { "Bandit Learning" : [["Bandits"]], "Bayesian Nonparametrics" : [["Baysian Nonparametrics"]], "Bayesian Optimization" : [["Optimization"], ["Baysian Optimization"]], "Causality" : [["Causality"]], "Clustering" : [["Clustering"]], "Computational Advertising And Social Science" : [["Computational Advertising", "Social Science"]], "Deep Learning" : [["Deep Learning"]], "Deep Learning And Vision" : [["Deep Learning", "Computer Vision"]], "Deep Learning Computations" : [["Deep Learning"]], "Distributed Optimization" : [["Optimization"], ["Distributed Optimization"]], "Feature Selection" : [["Feature Selection"]], "Gaussian Processes" : [["Gaussian Processes"]], "Hashing" : [["Hashing"]], "Kernel Methods" : [["Kernel Methods"]], "Large Scale Learning" : [["Large Scale Learning"]], "Learning Theory" : [["Learning Theory"]], "Manifold Learning" : [["Manifold Learning"]], "Matrix Factorization" : [["Matrix Factorization"]], "Monte Carlo Methods" : [["Monte Carlo Methods"]], "Natural Language Processing" : [["Natural Language Processing"]], "Networks And Graphs" : [["Networks", "Graph Analysis"]], "Online Learning" : [["Online Learning"]], "Optimization" : [["Optimization"]], "Privacy" : [["Privacy"]], "Probabilistic Models" : [["Probabilistic Models"]], "Ranking Learning" : [["Ranking Learning"]], "Reinforcement Learning" : [["Reinforcement Learning"]], "Sparse Optimization" : [["Optimization"], ["Sparse Optimization"]], "Sparsity" : [["Sparsity"]], "Structured Prediction" : [["Structured Prediction"]], "Submodularity" : [["Submodularity"]], "Supervised Learning" : [["Supervised Learning"]], "Time Series Analysis" : [["Time-Series"]], "Topic Models" : [["Probabilistic Models"]], "Transfer Learning" : [["Transfer Learning"]], "Unsupervised Learning" : [["Unsupervised Learning"]], "Variational Inference" : [["Approximate Inference"]], "Vision" : [["Computer Vision"]] } category_dict_icml16 = { "Applications and Time-Series Analysis" : [["Applications", "Time-Series"]], "Approximate Inference" : [["Approximate Inference"]], "Bandit Problems" : [["Bandits"]], "Bayesian Nonparametric Methods" : [["Baysian Nonparametrics"]], "Causal Inference" : [["Causal Inference"]], "Clustering" : [["Clustering"]], "Crowdsourcing and Interactive Learning" : [["Crowdsourcing", "Interactive Learning"]], "Dimensionality Reduction / Private Learning" : [["Dimensionality Reduction", "Privacy"]], "Feature Selection and Dimensionality Reduction" : [["Feature Selection", "Dimensionality Reduction"]], "Gaussian Processes" : [["Gaussian Processes"]], "Graph Analysis/ Spectral Methods" : [["Graph Analysis", "Spectral Methods"]], "Graphical Models" : [["Probabilistic Models"]], "Kernel Methods" : [["Kernel Methods"]], "Large Scale Learning and Big Data" : [["Large Scale Learning"]], "Learning Theory" : [["Learning Theory"]], "Machine Learning Applications" : [["Applications"]], "Matrix Factorization / Neuroscience Applications" : [["Matrix Factorization", "Neuroscience Applications"]], "Matrix Factorization and Related Topics" : [["Matrix Factorization"]], "Metric and Manifold Learning / Kernel Methods" : [["Metric Learning", "Manifold Learning", "Kernel Methods"]], "Monte Carlo Methods" : [["Monte Carlo Methods"]], "Multi-label, multi-task, and neural networks" : [["Multi-Label Learning", "Multi-Task Learning"], ["Deep Learning"]], "Neural Networks and Deep Learning" : [["Deep Learning"]], "Neural Networks and Deep Learning&nbsp;I" : [["Deep Learning"]], "Neural Networks and Deep Learning&nbsp;II" : [["Deep Learning"]], "Neural Networks and Deep Learning&nbsp;II (Computer Vision)" : [["Deep Learning"], ["Computer Vision"]], "Online Learning" : [["Online Learning"]], "Optimization" : [["Optimization"]], "Optimization (Combinatorial)" : [["Optimization"], ["Combinatorial Optimization"]], "Optimization (Continuous)" : [["Optimization"], ["Continuous Optimization"]], "Optimization / Online Learning" : [["Optimization", "Online Learning"]], "Privacy, Anonymity, and Security" : [["Privacy"]], "Ranking and Preference Learning" : [["Ranking Learning", "Preference Learning"]], "Reinforcement Learning" : [["Reinforcement Learning"]], "Sampling / Kernel Methods" : [["Sampling", "Kernel Methods"]], "Sparsity and Compressed Sensing" : [["Sparsity", "Compressed Sensing"]], "Statistical Learning Theory" : [["Statistical Learning Theory"]], "Structured Prediction / Monte Carlo Methods" : [["Structured Prediction", "Monte Carlo Methods"]], "Supervised Learning" : [["Supervised Learning"]], "Transfer Learning / Learning Theory" : [["Transfer Learning", "Learning Theory"]], "Unsupervised Learning / Applications" : [["Unsupervised Learning", "Applications"]], "Unsupervised Learning / Representation Learning" : [["Unsupervised Learning", "Representation Learning"]] } category_dict_icml17 = { "Active Learning" : [["Active Learning"]], "Applications" : [["Applications"]], "Bayesian Nonparametrics" : [["Baysian Nonparametrics"]], "Bayesian Optimization" : [["Optimization"], ["Baysian Optimization"]], "Causal Inference" : [["Causal Inference"]], "Clustering" : [["Clustering"]], "Combinatorial Optimization" : [["Optimization"], ["Combinatorial Optimization"]], "Continuous Control" : [["Continuous Control"]], "Continuous Optimization" : [["Optimization"], ["Continuous Optimization"]], "Deep Generative Models" : [["Deep Learning"], ["Deep Generative Models"]], "Deep Learning" : [["Deep Learning"]], "Deep Learning : Analysis": [["Deep Learning"]], "Deep Learning : Backprop": [["Deep Learning"]], "Deep Learning : Fisher Approximations": [["Deep Learning"]], "Deep Learning : Hardware": [["Deep Learning"]], "Deep Learning : Invariances": [["Deep Learning"]], "Deep Learning : Learning To Learn": [["Deep Learning"]], "Deep Learning : Metalearning": [["Deep Learning"]], "Deep Learning : Probabilistic": [["Deep Learning"], ["Probabilistic Models"]], "Deep Learning Theory" : [["Deep Learning"], ["Deep Learning Theory"]], "Deep Reinforcement Learning" : [["Deep Reinforcement Learning"], ["Reinforcement Learning"]], "Distributed Optimization" : [["Optimization"], ["Distributed Optimization"]], "Ensemble Methods" : [["Ensemble Methods"]], "Game Theory And Multiagents" : [["Game Theory", "Multi-Agent Learning"]], "Gaussian Processes" : [["Gaussian Processes"]], "Healthcare" : [["Healthcare"]], "High Dimensional Estimation" : [["High Dimensional Estimation"]], "Infomation Theory" : [["Information Theory"]], "Kernel Methods" : [["Kernel Methods"]], "Language" : [["Natural Language Processing"]], "Large Scale Learning" : [["Large Scale Learning"]], "Latent Feature Models" : [["Latent Feature Models"]], "Learning Theory" : [["Learning Theory"]], "Matrix Factorization" : [["Matrix Factorization"]], "Metric Learning" : [["Metric Learning"]], "Ml And Programming" : [["Ml And Programming"]], "Monte Carlo Methods" : [["Monte Carlo Methods"]], "Networks And Relational Learning" : [["Networks", "Relational Learning"]], "Online Learning" : [["Online Learning"]], "Privacy And Security" : [["Privacy"]], "Probabilistic Inference" : [["Approximate Inference"]], "Probabilistic Learning" : [["Probabilistic Models"]], "Ranking And Preferences" : [["Ranking Learning", "Preference Learning"]], "Recurrent Neural Networks" : [["Recurrent Neural Networks"]], "Reinforcement Learning" : [["Reinforcement Learning"]], "Robust Estimation" : [["Robustness"]], "Semisupervised And Curriculum Learning" : [ ["Semi-Supervised Learning", "Curriculum Learning"] ], "Sparsity" : [["Sparsity"]], "Spectral Methods" : [["Spectral Methods"]], "Structured Prediction" : [["Structured Prediction"]], "Supervised Learning" : [["Supervised Learning"]], "Time Series" : [["Time-Series"]], "Transfer And Multitask Learning": [["Transfer Learning", "Multi-Task Learning"]] } category_dict_icml18 = { "Active Learning" : [["Active Learning"]], "Approximate Inference" : [["Approximate Inference"]], "Causal Inference" : [["Causal Inference"]], "Clustering" : [["Clustering"]], "Computer Vision" : [["Computer Vision"]], "Deep Learning (Adversarial)" : [["Deep Learning", "Adversarial"]], "Deep Learning (Bayesian)" : [["Deep Learning", "Baysian Deep Learning"]], "Deep Learning (Neural Network Architectures)" : [["Deep Learning", "Architectures"]], "Deep Learning (Theory)" : [["Deep Learning", "Deep Learning Theory"]], "Dimensionality Reduction" : [["Dimensionality Reduction"]], "Feature Selection" : [["Feature Selection"]], "Gaussian Processes" : [["Gaussian Processes"]], "Generative Models" : [["Generative Models"]], "Graphical Models" : [["Probabilistic Models"]], "Kernel Methods" : [["Kernel Methods"]], "Large Scale Learning and Big Data" : [["Large Scale Learning"]], "Matrix Factorization" : [["Matrix Factorization"]], "Monte Carlo Methods" : [["Monte Carlo Methods"]], "Multi-Agent Learning" : [["Multi-Agent Learning"]], "Natural Language and Speech Processing" : [["Natural Language Processing", "Speech Processing"]], "Networks and Relational Learning" : [["Networks", "Relational Learning"]], "Online Learning" : [["Online Learning"]], "Optimization (Bayesian)" : [["Optimization"], ["Baysian Optimization"]], "Optimization (Combinatorial)" : [["Optimization"], ["Combinatorial Optimization"]], "Optimization (Convex)" : [["Optimization"], ["Convex Optimization"]], "Optimization (Non-convex)" : [["Optimization"], ["Non-Convex Optimization"]], "Other Applications" : [["Applications"]], "Other Models and Methods" : [["Other Models and Methods"]], "Parallel and Distributed Learning" : [["Optimization"], ["Distributed Optimization"]], "Privacy, Anonymity, and Security" : [["Privacy"]], "Ranking and Preference Learning" : [["Ranking Learning", "Preference Learning"]], "Reinforcement Learning" : [["Reinforcement Learning"]], "Representation Learning" : [["Representation Learning"]], "Society Impacts of Machine Learning" : [["Society Impacts of Machine Learning"]], "Sparsity and Compressed Sensing" : [["Sparsity", "Compressed Sensing"]], "Spectral Methods" : [["Spectral Methods"]], "Statistical Learning Theory" : [["Statistical Learning Theory"]], "Structured Prediction" : [["Structured Prediction"]], "Supervised Learning" : [["Supervised Learning"]], "Time-Series Analysis" : [["Time-Series"]], "Transfer and Multi-Task Learning" : [["Transfer Learning", "Multi-Task Learning"]], "Unsupervised Learning" : [["Unsupervised Learning"]] } category_dict_icml19 = { "Active Learning" : [["Active Learning"]], "Adversarial Examples" : [["Adversarial"]], "Applications" : [["Applications"]], "Applications: Computer Vision" : [["Applications"], ["Computer Vision"]], "Applications: Natural Language Processing" : [["Applications"], ["Natural Language Processing"]], "Approximate Inference" : [["Approximate Inference"]], "Bandits and Multiagent Learning" : [["Bandits", "Multi-Agent Learning"]], "Bayesian Deep Learning" : [["Deep Learning"], ["Baysian Deep Learning"]], "Bayesian Methods" : [["Baysian Methods"]], "Bayesian Non-parametrics" : [["Baysian Nonparametrics"]], "Causality" : [["Causality"]], "Combinatorial Optimization" : [["Combinatorial Optimization"]], "Convex Optimization" : [["Optimization"], ["Convex Optimization"]], "Deep Generative Models" : [["Deep Learning"], ["Deep Generative Models"]], "Deep Learning" : [["Deep Learning"]], "Deep Learning Algorithms" : [["Deep Learning"]], "Deep Learning Architectures" : [["Deep Learning"], ["Architectures"]], "Deep Learning Optimization" : [["Deep Learning"], ["Optimization"]], "Deep Learning Theory" : [["Deep Learning"], ["Deep Learning Theory"]], "Deep RL" : [["Deep Learning"], ["Deep Reinforcement Learning"]], "Deep Sequence Models" : [["Deep Learning"]], "Fairness" : [["Fairness"]], "Gaussian Processes" : [["Gaussian Processes"]], "General ML" : [["General ML"]], "Generative Adversarial Networks" : [["Generative Models"]], "Generative Models" : [["Generative Models"]], "Information Theory and Estimation" : [["Information Theory", "Estimation"]], "Interpretability" : [["Interpretability"]], "Kernel Methods" : [["Kernel Methods"]], "Large Scale Learning and Systems" : [["Large Scale Learning"]], "Learning Theory" : [["Learning Theory"]], "Learning Theory: Games" : [["Learning Theory", "Games"]], "Monte Carlo Methods" : [["Monte Carlo Methods"]], "Networks and Relational Learning" : [["Networks", "Relational Learning"]], "Non-convex Optimization" : [["Optimization"], ["Non-Convex Optimization"]], "Online Learning" : [["Online Learning"]], "Optimization" : [["Optimization"]], "Optimization and Graphical Models" : [["Optimization", "Probabilistic Models"]], "Optimization: Convex and Non-convex" : [["Optimization"], ["Convex Optimization", "Non-Convex Optimization"]], "Privacy" : [["Privacy"]], "Privacy and Fairness" : [["Privacy", "Fairness"]], "Probabilistic Inference" : [["Probabilistic Inference"]], "Ranking and Preference Learning" : [["Ranking Learning", "Preference Learning"]], "Reinforcement Learning" : [["Reinforcement Learning"]], "Reinforcement Learning Theory" : [["Reinforcement Learning"]], "Reinforcement Learning and Bandits" : [["Reinforcement Learning", "Bandits"]], "Representation Learning" : [["Representation Learning"]], "Robust Statistics and Interpretability" : [["Robustness", "Interpretability"]], "Robust Statistics and Machine Learning" : [["Robustness"]], "Statistical Learning Theory" : [["Statistical Learning Theory"]], "Supervised Learning" : [["Supervised Learning"]], "Supervised and Transfer Learning" : [["Supervised Learning", "Transfer Learning"]], "Time Series" : [["Time-Series"]], "Transfer and Multitask Learning" : [["Transfer Learning", "Multi-Task Learning"]], "Unsupervised Learning" : [["Unsupervised Learning"]] }
category_dict_icml15 = {'Bandit Learning': [['Bandits']], 'Bayesian Nonparametrics': [['Baysian Nonparametrics']], 'Bayesian Optimization': [['Optimization'], ['Baysian Optimization']], 'Causality': [['Causality']], 'Clustering': [['Clustering']], 'Computational Advertising And Social Science': [['Computational Advertising', 'Social Science']], 'Deep Learning': [['Deep Learning']], 'Deep Learning And Vision': [['Deep Learning', 'Computer Vision']], 'Deep Learning Computations': [['Deep Learning']], 'Distributed Optimization': [['Optimization'], ['Distributed Optimization']], 'Feature Selection': [['Feature Selection']], 'Gaussian Processes': [['Gaussian Processes']], 'Hashing': [['Hashing']], 'Kernel Methods': [['Kernel Methods']], 'Large Scale Learning': [['Large Scale Learning']], 'Learning Theory': [['Learning Theory']], 'Manifold Learning': [['Manifold Learning']], 'Matrix Factorization': [['Matrix Factorization']], 'Monte Carlo Methods': [['Monte Carlo Methods']], 'Natural Language Processing': [['Natural Language Processing']], 'Networks And Graphs': [['Networks', 'Graph Analysis']], 'Online Learning': [['Online Learning']], 'Optimization': [['Optimization']], 'Privacy': [['Privacy']], 'Probabilistic Models': [['Probabilistic Models']], 'Ranking Learning': [['Ranking Learning']], 'Reinforcement Learning': [['Reinforcement Learning']], 'Sparse Optimization': [['Optimization'], ['Sparse Optimization']], 'Sparsity': [['Sparsity']], 'Structured Prediction': [['Structured Prediction']], 'Submodularity': [['Submodularity']], 'Supervised Learning': [['Supervised Learning']], 'Time Series Analysis': [['Time-Series']], 'Topic Models': [['Probabilistic Models']], 'Transfer Learning': [['Transfer Learning']], 'Unsupervised Learning': [['Unsupervised Learning']], 'Variational Inference': [['Approximate Inference']], 'Vision': [['Computer Vision']]} category_dict_icml16 = {'Applications and Time-Series Analysis': [['Applications', 'Time-Series']], 'Approximate Inference': [['Approximate Inference']], 'Bandit Problems': [['Bandits']], 'Bayesian Nonparametric Methods': [['Baysian Nonparametrics']], 'Causal Inference': [['Causal Inference']], 'Clustering': [['Clustering']], 'Crowdsourcing and Interactive Learning': [['Crowdsourcing', 'Interactive Learning']], 'Dimensionality Reduction / Private Learning': [['Dimensionality Reduction', 'Privacy']], 'Feature Selection and Dimensionality Reduction': [['Feature Selection', 'Dimensionality Reduction']], 'Gaussian Processes': [['Gaussian Processes']], 'Graph Analysis/ Spectral Methods': [['Graph Analysis', 'Spectral Methods']], 'Graphical Models': [['Probabilistic Models']], 'Kernel Methods': [['Kernel Methods']], 'Large Scale Learning and Big Data': [['Large Scale Learning']], 'Learning Theory': [['Learning Theory']], 'Machine Learning Applications': [['Applications']], 'Matrix Factorization / Neuroscience Applications': [['Matrix Factorization', 'Neuroscience Applications']], 'Matrix Factorization and Related Topics': [['Matrix Factorization']], 'Metric and Manifold Learning / Kernel Methods': [['Metric Learning', 'Manifold Learning', 'Kernel Methods']], 'Monte Carlo Methods': [['Monte Carlo Methods']], 'Multi-label, multi-task, and neural networks': [['Multi-Label Learning', 'Multi-Task Learning'], ['Deep Learning']], 'Neural Networks and Deep Learning': [['Deep Learning']], 'Neural Networks and Deep Learning&nbsp;I': [['Deep Learning']], 'Neural Networks and Deep Learning&nbsp;II': [['Deep Learning']], 'Neural Networks and Deep Learning&nbsp;II (Computer Vision)': [['Deep Learning'], ['Computer Vision']], 'Online Learning': [['Online Learning']], 'Optimization': [['Optimization']], 'Optimization (Combinatorial)': [['Optimization'], ['Combinatorial Optimization']], 'Optimization (Continuous)': [['Optimization'], ['Continuous Optimization']], 'Optimization / Online Learning': [['Optimization', 'Online Learning']], 'Privacy, Anonymity, and Security': [['Privacy']], 'Ranking and Preference Learning': [['Ranking Learning', 'Preference Learning']], 'Reinforcement Learning': [['Reinforcement Learning']], 'Sampling / Kernel Methods': [['Sampling', 'Kernel Methods']], 'Sparsity and Compressed Sensing': [['Sparsity', 'Compressed Sensing']], 'Statistical Learning Theory': [['Statistical Learning Theory']], 'Structured Prediction / Monte Carlo Methods': [['Structured Prediction', 'Monte Carlo Methods']], 'Supervised Learning': [['Supervised Learning']], 'Transfer Learning / Learning Theory': [['Transfer Learning', 'Learning Theory']], 'Unsupervised Learning / Applications': [['Unsupervised Learning', 'Applications']], 'Unsupervised Learning / Representation Learning': [['Unsupervised Learning', 'Representation Learning']]} category_dict_icml17 = {'Active Learning': [['Active Learning']], 'Applications': [['Applications']], 'Bayesian Nonparametrics': [['Baysian Nonparametrics']], 'Bayesian Optimization': [['Optimization'], ['Baysian Optimization']], 'Causal Inference': [['Causal Inference']], 'Clustering': [['Clustering']], 'Combinatorial Optimization': [['Optimization'], ['Combinatorial Optimization']], 'Continuous Control': [['Continuous Control']], 'Continuous Optimization': [['Optimization'], ['Continuous Optimization']], 'Deep Generative Models': [['Deep Learning'], ['Deep Generative Models']], 'Deep Learning': [['Deep Learning']], 'Deep Learning : Analysis': [['Deep Learning']], 'Deep Learning : Backprop': [['Deep Learning']], 'Deep Learning : Fisher Approximations': [['Deep Learning']], 'Deep Learning : Hardware': [['Deep Learning']], 'Deep Learning : Invariances': [['Deep Learning']], 'Deep Learning : Learning To Learn': [['Deep Learning']], 'Deep Learning : Metalearning': [['Deep Learning']], 'Deep Learning : Probabilistic': [['Deep Learning'], ['Probabilistic Models']], 'Deep Learning Theory': [['Deep Learning'], ['Deep Learning Theory']], 'Deep Reinforcement Learning': [['Deep Reinforcement Learning'], ['Reinforcement Learning']], 'Distributed Optimization': [['Optimization'], ['Distributed Optimization']], 'Ensemble Methods': [['Ensemble Methods']], 'Game Theory And Multiagents': [['Game Theory', 'Multi-Agent Learning']], 'Gaussian Processes': [['Gaussian Processes']], 'Healthcare': [['Healthcare']], 'High Dimensional Estimation': [['High Dimensional Estimation']], 'Infomation Theory': [['Information Theory']], 'Kernel Methods': [['Kernel Methods']], 'Language': [['Natural Language Processing']], 'Large Scale Learning': [['Large Scale Learning']], 'Latent Feature Models': [['Latent Feature Models']], 'Learning Theory': [['Learning Theory']], 'Matrix Factorization': [['Matrix Factorization']], 'Metric Learning': [['Metric Learning']], 'Ml And Programming': [['Ml And Programming']], 'Monte Carlo Methods': [['Monte Carlo Methods']], 'Networks And Relational Learning': [['Networks', 'Relational Learning']], 'Online Learning': [['Online Learning']], 'Privacy And Security': [['Privacy']], 'Probabilistic Inference': [['Approximate Inference']], 'Probabilistic Learning': [['Probabilistic Models']], 'Ranking And Preferences': [['Ranking Learning', 'Preference Learning']], 'Recurrent Neural Networks': [['Recurrent Neural Networks']], 'Reinforcement Learning': [['Reinforcement Learning']], 'Robust Estimation': [['Robustness']], 'Semisupervised And Curriculum Learning': [['Semi-Supervised Learning', 'Curriculum Learning']], 'Sparsity': [['Sparsity']], 'Spectral Methods': [['Spectral Methods']], 'Structured Prediction': [['Structured Prediction']], 'Supervised Learning': [['Supervised Learning']], 'Time Series': [['Time-Series']], 'Transfer And Multitask Learning': [['Transfer Learning', 'Multi-Task Learning']]} category_dict_icml18 = {'Active Learning': [['Active Learning']], 'Approximate Inference': [['Approximate Inference']], 'Causal Inference': [['Causal Inference']], 'Clustering': [['Clustering']], 'Computer Vision': [['Computer Vision']], 'Deep Learning (Adversarial)': [['Deep Learning', 'Adversarial']], 'Deep Learning (Bayesian)': [['Deep Learning', 'Baysian Deep Learning']], 'Deep Learning (Neural Network Architectures)': [['Deep Learning', 'Architectures']], 'Deep Learning (Theory)': [['Deep Learning', 'Deep Learning Theory']], 'Dimensionality Reduction': [['Dimensionality Reduction']], 'Feature Selection': [['Feature Selection']], 'Gaussian Processes': [['Gaussian Processes']], 'Generative Models': [['Generative Models']], 'Graphical Models': [['Probabilistic Models']], 'Kernel Methods': [['Kernel Methods']], 'Large Scale Learning and Big Data': [['Large Scale Learning']], 'Matrix Factorization': [['Matrix Factorization']], 'Monte Carlo Methods': [['Monte Carlo Methods']], 'Multi-Agent Learning': [['Multi-Agent Learning']], 'Natural Language and Speech Processing': [['Natural Language Processing', 'Speech Processing']], 'Networks and Relational Learning': [['Networks', 'Relational Learning']], 'Online Learning': [['Online Learning']], 'Optimization (Bayesian)': [['Optimization'], ['Baysian Optimization']], 'Optimization (Combinatorial)': [['Optimization'], ['Combinatorial Optimization']], 'Optimization (Convex)': [['Optimization'], ['Convex Optimization']], 'Optimization (Non-convex)': [['Optimization'], ['Non-Convex Optimization']], 'Other Applications': [['Applications']], 'Other Models and Methods': [['Other Models and Methods']], 'Parallel and Distributed Learning': [['Optimization'], ['Distributed Optimization']], 'Privacy, Anonymity, and Security': [['Privacy']], 'Ranking and Preference Learning': [['Ranking Learning', 'Preference Learning']], 'Reinforcement Learning': [['Reinforcement Learning']], 'Representation Learning': [['Representation Learning']], 'Society Impacts of Machine Learning': [['Society Impacts of Machine Learning']], 'Sparsity and Compressed Sensing': [['Sparsity', 'Compressed Sensing']], 'Spectral Methods': [['Spectral Methods']], 'Statistical Learning Theory': [['Statistical Learning Theory']], 'Structured Prediction': [['Structured Prediction']], 'Supervised Learning': [['Supervised Learning']], 'Time-Series Analysis': [['Time-Series']], 'Transfer and Multi-Task Learning': [['Transfer Learning', 'Multi-Task Learning']], 'Unsupervised Learning': [['Unsupervised Learning']]} category_dict_icml19 = {'Active Learning': [['Active Learning']], 'Adversarial Examples': [['Adversarial']], 'Applications': [['Applications']], 'Applications: Computer Vision': [['Applications'], ['Computer Vision']], 'Applications: Natural Language Processing': [['Applications'], ['Natural Language Processing']], 'Approximate Inference': [['Approximate Inference']], 'Bandits and Multiagent Learning': [['Bandits', 'Multi-Agent Learning']], 'Bayesian Deep Learning': [['Deep Learning'], ['Baysian Deep Learning']], 'Bayesian Methods': [['Baysian Methods']], 'Bayesian Non-parametrics': [['Baysian Nonparametrics']], 'Causality': [['Causality']], 'Combinatorial Optimization': [['Combinatorial Optimization']], 'Convex Optimization': [['Optimization'], ['Convex Optimization']], 'Deep Generative Models': [['Deep Learning'], ['Deep Generative Models']], 'Deep Learning': [['Deep Learning']], 'Deep Learning Algorithms': [['Deep Learning']], 'Deep Learning Architectures': [['Deep Learning'], ['Architectures']], 'Deep Learning Optimization': [['Deep Learning'], ['Optimization']], 'Deep Learning Theory': [['Deep Learning'], ['Deep Learning Theory']], 'Deep RL': [['Deep Learning'], ['Deep Reinforcement Learning']], 'Deep Sequence Models': [['Deep Learning']], 'Fairness': [['Fairness']], 'Gaussian Processes': [['Gaussian Processes']], 'General ML': [['General ML']], 'Generative Adversarial Networks': [['Generative Models']], 'Generative Models': [['Generative Models']], 'Information Theory and Estimation': [['Information Theory', 'Estimation']], 'Interpretability': [['Interpretability']], 'Kernel Methods': [['Kernel Methods']], 'Large Scale Learning and Systems': [['Large Scale Learning']], 'Learning Theory': [['Learning Theory']], 'Learning Theory: Games': [['Learning Theory', 'Games']], 'Monte Carlo Methods': [['Monte Carlo Methods']], 'Networks and Relational Learning': [['Networks', 'Relational Learning']], 'Non-convex Optimization': [['Optimization'], ['Non-Convex Optimization']], 'Online Learning': [['Online Learning']], 'Optimization': [['Optimization']], 'Optimization and Graphical Models': [['Optimization', 'Probabilistic Models']], 'Optimization: Convex and Non-convex': [['Optimization'], ['Convex Optimization', 'Non-Convex Optimization']], 'Privacy': [['Privacy']], 'Privacy and Fairness': [['Privacy', 'Fairness']], 'Probabilistic Inference': [['Probabilistic Inference']], 'Ranking and Preference Learning': [['Ranking Learning', 'Preference Learning']], 'Reinforcement Learning': [['Reinforcement Learning']], 'Reinforcement Learning Theory': [['Reinforcement Learning']], 'Reinforcement Learning and Bandits': [['Reinforcement Learning', 'Bandits']], 'Representation Learning': [['Representation Learning']], 'Robust Statistics and Interpretability': [['Robustness', 'Interpretability']], 'Robust Statistics and Machine Learning': [['Robustness']], 'Statistical Learning Theory': [['Statistical Learning Theory']], 'Supervised Learning': [['Supervised Learning']], 'Supervised and Transfer Learning': [['Supervised Learning', 'Transfer Learning']], 'Time Series': [['Time-Series']], 'Transfer and Multitask Learning': [['Transfer Learning', 'Multi-Task Learning']], 'Unsupervised Learning': [['Unsupervised Learning']]}
# -------------------------------------- # CSCI 127, Lab 4 # May 29, 2020 # Your Name # -------------------------------------- def process_season(season, games_played, points_earned): print("Season: " + str(season) + ", Games Played: " + str(games_played) + ", Points earned: " + str(points_earned)) print("Possible Win-Tie-Loss Records") print("-----------------------------") pass print() # -------------------------------------- def process_seasons(seasons): pass # -------------------------------------- def main(): # format of list: [[season-1-games, season-1-points], [season-2-games, season-2-points], etc.] soccer_seasons = [[1, 3], [1, 1], [1, 0], [20, 30]] process_seasons(soccer_seasons) # -------------------------------------- main()
def process_season(season, games_played, points_earned): print('Season: ' + str(season) + ', Games Played: ' + str(games_played) + ', Points earned: ' + str(points_earned)) print('Possible Win-Tie-Loss Records') print('-----------------------------') pass print() def process_seasons(seasons): pass def main(): soccer_seasons = [[1, 3], [1, 1], [1, 0], [20, 30]] process_seasons(soccer_seasons) main()
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def rob(self, root: TreeNode) -> int: def helper(root): if root is None: return [0,0] x = helper(root.left) y = helper(root.right) return [root.val+x[1]+y[1],max(x)+max(y)] ans = helper(root) return max(ans)
class Treenode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def rob(self, root: TreeNode) -> int: def helper(root): if root is None: return [0, 0] x = helper(root.left) y = helper(root.right) return [root.val + x[1] + y[1], max(x) + max(y)] ans = helper(root) return max(ans)
# Made by Wallee#8314/Red-exe-Engineer # Thanks @Bigjango helping :p Block = { "Air": [0, 0], "Stone": [1, 0], "Grass": [2, 0], "Dirt": [3, 0], "Cobblestone": [4, 0], "Wooden Planks": [5, 0], "Saplin":[6, 0], "Oak Saplin": [6, 0], "Spruce Saplin": [6, 1], "Birch Saplin": [6, 2], "Bedrock": [7, 0], "Water": [8, 0], "Water Stationary": [9, 0], "Lava": [10, 0], "Lava Staionary": [11, 0], "Sand": [12, 0], "Gravel": [13, 0], "Gold Ore": [14, 0], "Iron Ore": [15, 0], "Coal Ore": [16, 0], "Log": [17, 0], "Oak Log": [17, 0], "Spruce Log": [17, 1], "Birch Log": [17, 2], "Leaves": [18, 0], "Oak Leaves": [18, 0], "Spruce Leaves": [18, 1], "Birch Leaves": [18, 2], "Glass": [20, 0], "Lapis Lazuli Ore": [21, 0], "Lapis Lazuli Block": [22, 0], "Sandstone": [24, 0], "Chiseled Sandstone": [24, 1], "Smooth Sandstone": [24, 2], "Bed": [26, 0], "Bed Foot": [26, 0], "Bed Head": [26, 8], "North Bed Foot": [26, 0], "North Bed Head": [26, 8], "East Bed Foot": [26, 1], "East Bed Head": [26, 9], "South Bed Foot": [26, 2], "South Bed Head": [26, 10], "West Bed Foot": [26, 3], "West Bed Head": [26, 11], "Cobweb": [30, 0], "Shrub": [31, 0], "Tall Grass": [31, 1], "Fern": [31, 3], "Wool": [35, 0], "White Wool": [35, 0], "Orange Wool": [35, 1], "Magenta Wool": [35, 2], "Light Blue Wool": [35, 3], "Yello Wool": [35, 4], "Lime Wool": [35, 5], "Pink Wool": [35, 6], "Grey Wool": [35, 7], "Light Grey Wool": [35, 8], "Cyan Wool": [35, 9], "Purple Wool": [35, 10], "Blue Wool": [35, 11], "Brown Wool": [35, 12], "Green Wool": [35, 13], "Red Wool": [35, 14], "Black Wool": [35, 15], "Flower": [37, 0], "Poppy": [38, 0], "Brown Mushroom": [39, 0], "Red Mushroom": [40, 0], "Block of Gold": [41, 0], "Block of Iron": [42, 0], "Double Stone Slab": [43, 0], "Smooth Stone": [43, 6], "Stone Slab": [44, 0], "Sandstone Slab": [44, 1], "Wooden Slab": [44, 2], "Cobblestone Slab": [44, 3], "Bricks Slab": [44, 4], "Stone Bricks Slab": [44, 5], "Lower Stone Slab": [44, 0], "Lower Sandstone Slab": [44, 1], "Lower Wooden Slab": [44, 2], "Lower Cobblestone Slab": [44, 3], "Lower Bricks Slab": [44, 4], "Lower Stone Bricks Slab": [44, 5], "Upper Stone Slab": [44, 8], "Upper Sandstone Slab": [44, 9], "Upper Wooden Slab": [44, 10], "Upper Cobblestone Slab": [44, 11], "Upper Bricks Slab": [44, 12], "Upper Stone Bricks Slab": [44, 13], "Stone Slab Block": [43, 0], "Sandstone Slab Block": [43, 1], "Wooden Slab Block": [43, 2], "Cobblestone Slab Block": [43, 3], "Bricks Slab Block": [43, 4], "Stone Bricks Slab Block": [43, 5], "Smooth Stone": [43, 6], "Bricks": [45, 0], "TNT": [46, 0], "Active TNT": [46, 1], "Bookshelf": [47, 0], "Moss Stone": [48, 0], "Obsidian": [49, 0], "Torch": [50, 0], "Wooden Stairs": [53, 2], "North Lower Wooden Stairs": [53, 2], "East Lower Wooden Stairs": [53, 1], "South Lower Wooden Stairs": [53, 3], "West Lower Wooden Stairs": [53, 0], "North Upper Wooden Stairs": [53, 6], "East Upper Wooden Stairs": [53, 5], "South Upper Wooden Stairs": [53, 7], "West Upper Wooden Stairs": [53, 4], "Chest": [54, 2], "Blank Chest": [54, 1], "North Chest": [54, 2], "East Chest": [54, 5], "South Chest": [54, 3], "West Chest": [54, 4], "Diamond Ore": [56, 0], "Diamond Block": [57, 0], "Crafting Table": [58, 0], "Crops": [59, 0], "Crops 1": [59, 1], "Crops 2": [59, 2], "Crops 3": [59, 3], "Crops 4": [59, 4], "Crops 5": [59, 5], "Crops 6": [59, 6], "Crops 7": [59, 7], "Farmland": [60, 0], "Wet Farmland": [60, 1], "Furnace": [61, 0], "Active Furnace": [62, 0], "Sign": [63, 0], "Sign 0": [63, 0], "Sign 1": [63, 1], "Sign 2": [63, 2], "Sign 3": [63, 3], "Sign 4": [63, 4], "Sign 5": [63, 5], "Sign 6": [63, 6], "Sign 7": [63, 7], "Sign 8": [63, 8], "Sign 9": [63, 9], "Sign 10": [63, 10], "Sign 11": [63, 11], "Sign 12": [63, 12], "Sign 13": [63, 13], "Sign 14": [63, 14], "Sign 15": [63, 15], "Lower North Closed Wooden Door": [64, 1], "Lower North Opened Wooden Door": [64, 5], "Lower East Closed Wooden Door": [64, 2], "Lower East Opened Wooden Door": [64, 2], "Lower South Closed Wooden Door": [46, 3], "Lower South Opened Wooden Door": [64, 7], "Lower West Closed Wooden Door": [64, 0], "Lower West Opened Wooden Door": [64, 4], "Upper Left Wooden Door": [64, 8], "Upper Right Wooden Door": [64, 9], "Lower Wooden Door": [64, 1], "Upper Wooden Door": [64, 8], "Ladder": [65, 2], "North Ladder": [65, 2], "East Ladder": [65, 5], "South Ladder": [65, 3], "West Ladder": [65, 4], "Cobblestone Stairs": [67, 2], "North Lower Cobblestone Stairs": [67, 2], "East Lower Cobblestone Stairs": [67, 1], "South Lower Cobblestone Stairs": [67, 3], "West Lower Cobblestone Stairs": [67, 0], "North Upper Cobblestone Stairs": [57, 6], "East Upper Cobbleston Stairs": [57, 5], "South Upper Cobbleston Stairs": [57, 7], "West Upper Cobbleston Stairs": [57, 4], "Wall Sign": [68, 2], "North Wall Sign": [68, 2], "East Wall Sign": [68, 5], "South Wall Sign": [68, 1], "West Wall Sign": [68, 4], "Lower North Closed Iron Door": [71, 1], "Lower North Opened Iron Door": [71, 5], "Lower East Closed Iron Door": [71, 2], "Lower East Opened Iron Door": [71, 2], "Lower South Closed Iron Door": [71, 3], "Lower South Opened Iron Door": [71, 7], "Lower West Closed Iron Door": [71, 0], "Lower West Opened Iron Door": [71, 4], "Upper Left Iron Door": [71, 8], "Upper Right Iron Door": [71, 9], "Lower Iron Door": [71, 1], "Upper Iron Door": [71, 8], "Redstone Ore": [73, 0], "Snow": [78, 0], "Ice": [79, 0], "Snow Block": [80, 0], "Cactus": [81, 0], "Clay Block": [82, 0], "Sugercane": [83, 0], "Fence": [85, 0], "Glowstone Block": [89, 0], "Invisible Bedrock": [95, 0], "Trapdoor": [96, 0], "North Closed Trapdoor": [96, 0], "East Closed Trapdoor": [96, 3], "South Closed Trapdoor": [96, 1], "West Closed Trapdoor": [96, 2], "North Opened Trapdoor": [96, 4], "East Opened Trapdoor": [96, 7], "South Opened Trapdoor": [96, 5], "West Opened Trapdoor": [96, 6], "Stone Bricks": [98, 0], "Mossy Stone Bricks": [98, 1], "Cracked Stone Bricks": [98, 2], "Glass Pane": [102, 0], "Melon": [103, 0], "Melon Stem": [105, 0], "Melon Stem 0": [105, 0], "Melon Stem 1": [105, 1], "Melon Stem 2": [105, 2], "Melon Stem 3": [105, 3], "Melon Stem 4": [105, 4], "Melon Stem 5": [105, 5], "Melon Stem 6": [105, 6], "Melon Stem 7": [105, 7], "Fence Gate": [107, 0], "North South Fence Gate": [107, 0], "South North Fence Gate": [107, 0], "East West Closed Fence Gate": [107, 3], "West West Closed Fence Gate": [107, 3], "North Opened Fence Gate": [107, 4], "East Opened Fence Gate": [107, 5], "South Opened Fence Gate": [107, 6], "West Opened Fence Gate": [107, 7], "Brick Stairs": [108, 2], "North Lower Brick Stairs": [108, 2], "East Lower Brick Stairs": [108, 1], "South Lower Brick Stairs": [108, 3], "West Lower Brick Stairs": [108, 0], "North Upper Brick Stairs": [108, 6], "East Upper Brick Stairs": [108, 5], "South Upper Brick Stairs": [108, 7], "West Upper Brick Stairs": [108, 4], "Stone Brick Stairs": [109, 2], "North Lower Stone Brick Stairs": [109, 2], "East Lower Stone Brick Stairs": [109, 1], "South Lower Stone Brick Stairs": [109, 3], "West Lower Stone Brick Stairs": [109, 0], "North Upper Stone Brick Stairs": [109, 6], "East Upper Stone Brick Stairs": [109, 5], "South Upper Stone Brick Stairs": [109, 7], "West Upper Stone Brick Stairs": [109, 4], "Nether Brick Stairs": [114, 2], "North Lower Nether Brick Stairs": [114, 2], "East Lower Nether Brick Stairs": [114, 1], "South Lower Nether Brick Stairs": [114, 3], "West Lower Nether Brick Stairs": [114, 0], "North Upper Nether Brick Stairs": [114, 6], "East Upper Nether Brick Stairs": [114, 5], "South Upper Nether Brick Stairs": [114, 7], "West Upper Nether Brick Stairs": [114, 4], "Sandstone Stairs": [128, 2], "North Lower Sandstone Stairs": [128, 2], "East Lower Sandstone Stairs": [128, 1], "South Lower Sandstone Stairs": [128, 3], "West Lower Sandstone Stairs": [128, 0], "North Upper Sandstone Stairs": [128, 6], "East Upper Sandstone Stairs": [128, 5], "South Upper Sandstone Stairs": [128, 7], "West Upper Sandstone Stairs": [128, 4], "Block of Quartz": [155, 0], "Chiseled Quartz Block": [155, 1], "Quartz Pillar": [155, 2], "Glowing Obsidian": [246, 0], "Nether Reactor Core": [247, 0], "Active Nether Reactor Core": [247, 1], "Used Nether Reactor Core": [247, 2], "Update": [248, 0], "Ateupd": [249, 0], "Held Grass": [253, 0], "Held Leaves": [254, 0], "Held Oak Leaves": [254, 0], "Held Spruce Leaves": [254, 1], "Held Birch Leaves": [254, 2], "Fire": [255, 0] } Item = { "Iron Shovel": 256, "Iron Pickaxe": 257, "Iron Axe": 258, "Flint and Steel": 259, "Apple": 260, "Bow": 261, "Arrow": 262, "Coal": 263, "Diamond": 264, "Iron Ingot": 265, "Gold Ingot": 266, "Iron Sword": 267, "Wooden Sword": 268, "Wooden Shovel": 269, "Wooden Pickaxe": 270, "Wooden Axe": 271, "Stone Sword": 272, "Stone Shovel": 273, "Stone Pickaxe": 274, "Stone Axe": 275, "Diamond Sword": 276, "Diamond Shovel": 277, "Diamond Pickace": 278, "Diamond Axe": 279, "Stick": 280, "Bowl": 281, "Mushroom Stew": 282, "Gold Sword": 283, "Gold Shovel": 284, "Gold Pickaxe": 285, "Gold Axe": 286, "String": 287, "Feather": 288, "Gunpowder": 289, "Wooden Hoe": 290, "Stone Hoe": 291, "Iron Hoe": 292, "Diamond Hoe": 293, "Gold Hoe": 294, "Seeds": 295, "Wheet": 296, "Bread": 297, "Leather Cap": 298, "Leather Tunic": 299, "Leather Pants": 300, "Leather Boots": 301, "Chain Helmet": 302, "Chain Chestplate": 303, "Chain Leggings": 304, "Chain Boots": 305, "Iron Helmet": 306, "Iron Chestplate": 307, "Iron Leggings": 308, "Iron Boots": 309, "Diamond Helmet": 310, "Diamond Chestplate": 311, "Diamond Leggings": 312, "Diamond Boots": 313, "Gold Helmet": 314, "Gold Chestplate": 315, "Gold Leggings": 316, "Gold Boots": 317, "Flint": 318, "Raw Porkchop": 319, "Cooked Porkchop": 320, "Painting": 321, "Sign": 323, "Wooden Door": 324, "Iron Door": 330, "Snowball": 332, "Leather": 334, "Brick": 336, "Clay": 337, "Sugarcane": 338, "Paper": 339, "Book": 340, "Slimeball": 341, "Egg": 344, "Compass": 345, "Clock": 347, "Glowstone Dust": 248, "Dye": 351, "Bone": 352, "Sugar": 353, "Bed": 356, "Shears": 359, "Melon": 360, "Melon Seeds": 362, "Raw Beef": 363, "Steak": 364, "Raw Chicken": 365, "Cooked Chicken": 366, "Camera": 456 } def searchBlock(search="", printName=False): search = search.lower() IDs = [] for block in Block: blockName = block.lower() if search in blockName: IDs.append([block, Block[block]]) if printName == True: print(f'{block} ({Block[block]})') return(dict(IDs)) def searchItem(search="", printName=False): search = search.lower() IDs = [] for item in Item: itemName = item.lower() if search in itemName: IDs.append([item, Item[item]]) if printName == True: print(f'{item} ({Item[item]})') return(dict(IDs)) def searchAll(search="", printName=False): search = search.lower() IDs = [] for block in Block: blockName = block.lower() if search in blockName: IDs.append([block, Block[block]]) if printName == True: print(f'{block} ({Block[block]})') for item in Item: itemName = item.lower() if search in itemName: IDs.append([item, Item[item]]) if printName == True: print(f'{item} ({Item[item]})') return(dict(IDs)) if __name__ == "__main__": searchFor = input("Search for a block or item: ") print(searchAll(search=searchFor))
block = {'Air': [0, 0], 'Stone': [1, 0], 'Grass': [2, 0], 'Dirt': [3, 0], 'Cobblestone': [4, 0], 'Wooden Planks': [5, 0], 'Saplin': [6, 0], 'Oak Saplin': [6, 0], 'Spruce Saplin': [6, 1], 'Birch Saplin': [6, 2], 'Bedrock': [7, 0], 'Water': [8, 0], 'Water Stationary': [9, 0], 'Lava': [10, 0], 'Lava Staionary': [11, 0], 'Sand': [12, 0], 'Gravel': [13, 0], 'Gold Ore': [14, 0], 'Iron Ore': [15, 0], 'Coal Ore': [16, 0], 'Log': [17, 0], 'Oak Log': [17, 0], 'Spruce Log': [17, 1], 'Birch Log': [17, 2], 'Leaves': [18, 0], 'Oak Leaves': [18, 0], 'Spruce Leaves': [18, 1], 'Birch Leaves': [18, 2], 'Glass': [20, 0], 'Lapis Lazuli Ore': [21, 0], 'Lapis Lazuli Block': [22, 0], 'Sandstone': [24, 0], 'Chiseled Sandstone': [24, 1], 'Smooth Sandstone': [24, 2], 'Bed': [26, 0], 'Bed Foot': [26, 0], 'Bed Head': [26, 8], 'North Bed Foot': [26, 0], 'North Bed Head': [26, 8], 'East Bed Foot': [26, 1], 'East Bed Head': [26, 9], 'South Bed Foot': [26, 2], 'South Bed Head': [26, 10], 'West Bed Foot': [26, 3], 'West Bed Head': [26, 11], 'Cobweb': [30, 0], 'Shrub': [31, 0], 'Tall Grass': [31, 1], 'Fern': [31, 3], 'Wool': [35, 0], 'White Wool': [35, 0], 'Orange Wool': [35, 1], 'Magenta Wool': [35, 2], 'Light Blue Wool': [35, 3], 'Yello Wool': [35, 4], 'Lime Wool': [35, 5], 'Pink Wool': [35, 6], 'Grey Wool': [35, 7], 'Light Grey Wool': [35, 8], 'Cyan Wool': [35, 9], 'Purple Wool': [35, 10], 'Blue Wool': [35, 11], 'Brown Wool': [35, 12], 'Green Wool': [35, 13], 'Red Wool': [35, 14], 'Black Wool': [35, 15], 'Flower': [37, 0], 'Poppy': [38, 0], 'Brown Mushroom': [39, 0], 'Red Mushroom': [40, 0], 'Block of Gold': [41, 0], 'Block of Iron': [42, 0], 'Double Stone Slab': [43, 0], 'Smooth Stone': [43, 6], 'Stone Slab': [44, 0], 'Sandstone Slab': [44, 1], 'Wooden Slab': [44, 2], 'Cobblestone Slab': [44, 3], 'Bricks Slab': [44, 4], 'Stone Bricks Slab': [44, 5], 'Lower Stone Slab': [44, 0], 'Lower Sandstone Slab': [44, 1], 'Lower Wooden Slab': [44, 2], 'Lower Cobblestone Slab': [44, 3], 'Lower Bricks Slab': [44, 4], 'Lower Stone Bricks Slab': [44, 5], 'Upper Stone Slab': [44, 8], 'Upper Sandstone Slab': [44, 9], 'Upper Wooden Slab': [44, 10], 'Upper Cobblestone Slab': [44, 11], 'Upper Bricks Slab': [44, 12], 'Upper Stone Bricks Slab': [44, 13], 'Stone Slab Block': [43, 0], 'Sandstone Slab Block': [43, 1], 'Wooden Slab Block': [43, 2], 'Cobblestone Slab Block': [43, 3], 'Bricks Slab Block': [43, 4], 'Stone Bricks Slab Block': [43, 5], 'Smooth Stone': [43, 6], 'Bricks': [45, 0], 'TNT': [46, 0], 'Active TNT': [46, 1], 'Bookshelf': [47, 0], 'Moss Stone': [48, 0], 'Obsidian': [49, 0], 'Torch': [50, 0], 'Wooden Stairs': [53, 2], 'North Lower Wooden Stairs': [53, 2], 'East Lower Wooden Stairs': [53, 1], 'South Lower Wooden Stairs': [53, 3], 'West Lower Wooden Stairs': [53, 0], 'North Upper Wooden Stairs': [53, 6], 'East Upper Wooden Stairs': [53, 5], 'South Upper Wooden Stairs': [53, 7], 'West Upper Wooden Stairs': [53, 4], 'Chest': [54, 2], 'Blank Chest': [54, 1], 'North Chest': [54, 2], 'East Chest': [54, 5], 'South Chest': [54, 3], 'West Chest': [54, 4], 'Diamond Ore': [56, 0], 'Diamond Block': [57, 0], 'Crafting Table': [58, 0], 'Crops': [59, 0], 'Crops 1': [59, 1], 'Crops 2': [59, 2], 'Crops 3': [59, 3], 'Crops 4': [59, 4], 'Crops 5': [59, 5], 'Crops 6': [59, 6], 'Crops 7': [59, 7], 'Farmland': [60, 0], 'Wet Farmland': [60, 1], 'Furnace': [61, 0], 'Active Furnace': [62, 0], 'Sign': [63, 0], 'Sign 0': [63, 0], 'Sign 1': [63, 1], 'Sign 2': [63, 2], 'Sign 3': [63, 3], 'Sign 4': [63, 4], 'Sign 5': [63, 5], 'Sign 6': [63, 6], 'Sign 7': [63, 7], 'Sign 8': [63, 8], 'Sign 9': [63, 9], 'Sign 10': [63, 10], 'Sign 11': [63, 11], 'Sign 12': [63, 12], 'Sign 13': [63, 13], 'Sign 14': [63, 14], 'Sign 15': [63, 15], 'Lower North Closed Wooden Door': [64, 1], 'Lower North Opened Wooden Door': [64, 5], 'Lower East Closed Wooden Door': [64, 2], 'Lower East Opened Wooden Door': [64, 2], 'Lower South Closed Wooden Door': [46, 3], 'Lower South Opened Wooden Door': [64, 7], 'Lower West Closed Wooden Door': [64, 0], 'Lower West Opened Wooden Door': [64, 4], 'Upper Left Wooden Door': [64, 8], 'Upper Right Wooden Door': [64, 9], 'Lower Wooden Door': [64, 1], 'Upper Wooden Door': [64, 8], 'Ladder': [65, 2], 'North Ladder': [65, 2], 'East Ladder': [65, 5], 'South Ladder': [65, 3], 'West Ladder': [65, 4], 'Cobblestone Stairs': [67, 2], 'North Lower Cobblestone Stairs': [67, 2], 'East Lower Cobblestone Stairs': [67, 1], 'South Lower Cobblestone Stairs': [67, 3], 'West Lower Cobblestone Stairs': [67, 0], 'North Upper Cobblestone Stairs': [57, 6], 'East Upper Cobbleston Stairs': [57, 5], 'South Upper Cobbleston Stairs': [57, 7], 'West Upper Cobbleston Stairs': [57, 4], 'Wall Sign': [68, 2], 'North Wall Sign': [68, 2], 'East Wall Sign': [68, 5], 'South Wall Sign': [68, 1], 'West Wall Sign': [68, 4], 'Lower North Closed Iron Door': [71, 1], 'Lower North Opened Iron Door': [71, 5], 'Lower East Closed Iron Door': [71, 2], 'Lower East Opened Iron Door': [71, 2], 'Lower South Closed Iron Door': [71, 3], 'Lower South Opened Iron Door': [71, 7], 'Lower West Closed Iron Door': [71, 0], 'Lower West Opened Iron Door': [71, 4], 'Upper Left Iron Door': [71, 8], 'Upper Right Iron Door': [71, 9], 'Lower Iron Door': [71, 1], 'Upper Iron Door': [71, 8], 'Redstone Ore': [73, 0], 'Snow': [78, 0], 'Ice': [79, 0], 'Snow Block': [80, 0], 'Cactus': [81, 0], 'Clay Block': [82, 0], 'Sugercane': [83, 0], 'Fence': [85, 0], 'Glowstone Block': [89, 0], 'Invisible Bedrock': [95, 0], 'Trapdoor': [96, 0], 'North Closed Trapdoor': [96, 0], 'East Closed Trapdoor': [96, 3], 'South Closed Trapdoor': [96, 1], 'West Closed Trapdoor': [96, 2], 'North Opened Trapdoor': [96, 4], 'East Opened Trapdoor': [96, 7], 'South Opened Trapdoor': [96, 5], 'West Opened Trapdoor': [96, 6], 'Stone Bricks': [98, 0], 'Mossy Stone Bricks': [98, 1], 'Cracked Stone Bricks': [98, 2], 'Glass Pane': [102, 0], 'Melon': [103, 0], 'Melon Stem': [105, 0], 'Melon Stem 0': [105, 0], 'Melon Stem 1': [105, 1], 'Melon Stem 2': [105, 2], 'Melon Stem 3': [105, 3], 'Melon Stem 4': [105, 4], 'Melon Stem 5': [105, 5], 'Melon Stem 6': [105, 6], 'Melon Stem 7': [105, 7], 'Fence Gate': [107, 0], 'North South Fence Gate': [107, 0], 'South North Fence Gate': [107, 0], 'East West Closed Fence Gate': [107, 3], 'West West Closed Fence Gate': [107, 3], 'North Opened Fence Gate': [107, 4], 'East Opened Fence Gate': [107, 5], 'South Opened Fence Gate': [107, 6], 'West Opened Fence Gate': [107, 7], 'Brick Stairs': [108, 2], 'North Lower Brick Stairs': [108, 2], 'East Lower Brick Stairs': [108, 1], 'South Lower Brick Stairs': [108, 3], 'West Lower Brick Stairs': [108, 0], 'North Upper Brick Stairs': [108, 6], 'East Upper Brick Stairs': [108, 5], 'South Upper Brick Stairs': [108, 7], 'West Upper Brick Stairs': [108, 4], 'Stone Brick Stairs': [109, 2], 'North Lower Stone Brick Stairs': [109, 2], 'East Lower Stone Brick Stairs': [109, 1], 'South Lower Stone Brick Stairs': [109, 3], 'West Lower Stone Brick Stairs': [109, 0], 'North Upper Stone Brick Stairs': [109, 6], 'East Upper Stone Brick Stairs': [109, 5], 'South Upper Stone Brick Stairs': [109, 7], 'West Upper Stone Brick Stairs': [109, 4], 'Nether Brick Stairs': [114, 2], 'North Lower Nether Brick Stairs': [114, 2], 'East Lower Nether Brick Stairs': [114, 1], 'South Lower Nether Brick Stairs': [114, 3], 'West Lower Nether Brick Stairs': [114, 0], 'North Upper Nether Brick Stairs': [114, 6], 'East Upper Nether Brick Stairs': [114, 5], 'South Upper Nether Brick Stairs': [114, 7], 'West Upper Nether Brick Stairs': [114, 4], 'Sandstone Stairs': [128, 2], 'North Lower Sandstone Stairs': [128, 2], 'East Lower Sandstone Stairs': [128, 1], 'South Lower Sandstone Stairs': [128, 3], 'West Lower Sandstone Stairs': [128, 0], 'North Upper Sandstone Stairs': [128, 6], 'East Upper Sandstone Stairs': [128, 5], 'South Upper Sandstone Stairs': [128, 7], 'West Upper Sandstone Stairs': [128, 4], 'Block of Quartz': [155, 0], 'Chiseled Quartz Block': [155, 1], 'Quartz Pillar': [155, 2], 'Glowing Obsidian': [246, 0], 'Nether Reactor Core': [247, 0], 'Active Nether Reactor Core': [247, 1], 'Used Nether Reactor Core': [247, 2], 'Update': [248, 0], 'Ateupd': [249, 0], 'Held Grass': [253, 0], 'Held Leaves': [254, 0], 'Held Oak Leaves': [254, 0], 'Held Spruce Leaves': [254, 1], 'Held Birch Leaves': [254, 2], 'Fire': [255, 0]} item = {'Iron Shovel': 256, 'Iron Pickaxe': 257, 'Iron Axe': 258, 'Flint and Steel': 259, 'Apple': 260, 'Bow': 261, 'Arrow': 262, 'Coal': 263, 'Diamond': 264, 'Iron Ingot': 265, 'Gold Ingot': 266, 'Iron Sword': 267, 'Wooden Sword': 268, 'Wooden Shovel': 269, 'Wooden Pickaxe': 270, 'Wooden Axe': 271, 'Stone Sword': 272, 'Stone Shovel': 273, 'Stone Pickaxe': 274, 'Stone Axe': 275, 'Diamond Sword': 276, 'Diamond Shovel': 277, 'Diamond Pickace': 278, 'Diamond Axe': 279, 'Stick': 280, 'Bowl': 281, 'Mushroom Stew': 282, 'Gold Sword': 283, 'Gold Shovel': 284, 'Gold Pickaxe': 285, 'Gold Axe': 286, 'String': 287, 'Feather': 288, 'Gunpowder': 289, 'Wooden Hoe': 290, 'Stone Hoe': 291, 'Iron Hoe': 292, 'Diamond Hoe': 293, 'Gold Hoe': 294, 'Seeds': 295, 'Wheet': 296, 'Bread': 297, 'Leather Cap': 298, 'Leather Tunic': 299, 'Leather Pants': 300, 'Leather Boots': 301, 'Chain Helmet': 302, 'Chain Chestplate': 303, 'Chain Leggings': 304, 'Chain Boots': 305, 'Iron Helmet': 306, 'Iron Chestplate': 307, 'Iron Leggings': 308, 'Iron Boots': 309, 'Diamond Helmet': 310, 'Diamond Chestplate': 311, 'Diamond Leggings': 312, 'Diamond Boots': 313, 'Gold Helmet': 314, 'Gold Chestplate': 315, 'Gold Leggings': 316, 'Gold Boots': 317, 'Flint': 318, 'Raw Porkchop': 319, 'Cooked Porkchop': 320, 'Painting': 321, 'Sign': 323, 'Wooden Door': 324, 'Iron Door': 330, 'Snowball': 332, 'Leather': 334, 'Brick': 336, 'Clay': 337, 'Sugarcane': 338, 'Paper': 339, 'Book': 340, 'Slimeball': 341, 'Egg': 344, 'Compass': 345, 'Clock': 347, 'Glowstone Dust': 248, 'Dye': 351, 'Bone': 352, 'Sugar': 353, 'Bed': 356, 'Shears': 359, 'Melon': 360, 'Melon Seeds': 362, 'Raw Beef': 363, 'Steak': 364, 'Raw Chicken': 365, 'Cooked Chicken': 366, 'Camera': 456} def search_block(search='', printName=False): search = search.lower() i_ds = [] for block in Block: block_name = block.lower() if search in blockName: IDs.append([block, Block[block]]) if printName == True: print(f'{block} ({Block[block]})') return dict(IDs) def search_item(search='', printName=False): search = search.lower() i_ds = [] for item in Item: item_name = item.lower() if search in itemName: IDs.append([item, Item[item]]) if printName == True: print(f'{item} ({Item[item]})') return dict(IDs) def search_all(search='', printName=False): search = search.lower() i_ds = [] for block in Block: block_name = block.lower() if search in blockName: IDs.append([block, Block[block]]) if printName == True: print(f'{block} ({Block[block]})') for item in Item: item_name = item.lower() if search in itemName: IDs.append([item, Item[item]]) if printName == True: print(f'{item} ({Item[item]})') return dict(IDs) if __name__ == '__main__': search_for = input('Search for a block or item: ') print(search_all(search=searchFor))
CONFIG_BINDIR="<CONFIG_BINDIR>" CONFIG_LIBDIR="<CONFIG_LIBDIR>" CONFIG_LOCALSTATEDIR="<CONFIG_LOCALSTATEDIR>" CONFIG_SYSCONFDIR="<CONFIG_SYSCONFDIR>" CONFIG_SYSCONFDIR_DSC="<CONFIG_SYSCONFDIR_DSC>" CONFIG_OAAS_CERTPATH="<OAAS_CERTPATH>" OMI_LIB_SCRIPTS="<OMI_LIB_SCRIPTS>" PYTHON_PID_DIR="<PYTHON_PID_DIR>" DSC_NAMESPACE="<DSC_NAMESPACE>" DSC_SCRIPT_PATH="<DSC_SCRIPT_PATH>" DSC_MODULES_PATH="<DSC_MODULES_PATH>"
config_bindir = '<CONFIG_BINDIR>' config_libdir = '<CONFIG_LIBDIR>' config_localstatedir = '<CONFIG_LOCALSTATEDIR>' config_sysconfdir = '<CONFIG_SYSCONFDIR>' config_sysconfdir_dsc = '<CONFIG_SYSCONFDIR_DSC>' config_oaas_certpath = '<OAAS_CERTPATH>' omi_lib_scripts = '<OMI_LIB_SCRIPTS>' python_pid_dir = '<PYTHON_PID_DIR>' dsc_namespace = '<DSC_NAMESPACE>' dsc_script_path = '<DSC_SCRIPT_PATH>' dsc_modules_path = '<DSC_MODULES_PATH>'
h, m = map(int, input().split()) fullMin = (h * 60) + m hour = (fullMin - 45) // 60 minu = (fullMin - 45) % 60 if hour == -1: hour = 23 print(f'{hour} {minu}') else: print(f'{hour} {minu}')
(h, m) = map(int, input().split()) full_min = h * 60 + m hour = (fullMin - 45) // 60 minu = (fullMin - 45) % 60 if hour == -1: hour = 23 print(f'{hour} {minu}') else: print(f'{hour} {minu}')
def get_attribute_or_key(obj, name): if isinstance(obj, dict): return obj.get(name) return getattr(obj, name, None)
def get_attribute_or_key(obj, name): if isinstance(obj, dict): return obj.get(name) return getattr(obj, name, None)
# # PySNMP MIB module FASTPATH-QOS-AUTOVOIP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FASTPATH-QOS-AUTOVOIP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:58:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection") fastPathQOS, = mibBuilder.importSymbols("FASTPATH-QOS-MIB", "fastPathQOS") InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, IpAddress, ObjectIdentity, MibIdentifier, Unsigned32, NotificationType, Integer32, Gauge32, iso, Counter64, TimeTicks, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "IpAddress", "ObjectIdentity", "MibIdentifier", "Unsigned32", "NotificationType", "Integer32", "Gauge32", "iso", "Counter64", "TimeTicks", "ModuleIdentity") RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention") fastPathQOSAUTOVOIP = ModuleIdentity((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4)) fastPathQOSAUTOVOIP.setRevisions(('2007-11-23 00:00', '2007-11-23 00:00',)) if mibBuilder.loadTexts: fastPathQOSAUTOVOIP.setLastUpdated('200711230000Z') if mibBuilder.loadTexts: fastPathQOSAUTOVOIP.setOrganization('Broadcom Corporation') class PercentByFives(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5, 5), ValueRangeConstraint(10, 10), ValueRangeConstraint(15, 15), ValueRangeConstraint(20, 20), ValueRangeConstraint(25, 25), ValueRangeConstraint(30, 30), ValueRangeConstraint(35, 35), ValueRangeConstraint(40, 40), ValueRangeConstraint(45, 45), ValueRangeConstraint(50, 50), ValueRangeConstraint(55, 55), ValueRangeConstraint(60, 60), ValueRangeConstraint(65, 65), ValueRangeConstraint(70, 70), ValueRangeConstraint(75, 75), ValueRangeConstraint(80, 80), ValueRangeConstraint(85, 85), ValueRangeConstraint(90, 90), ValueRangeConstraint(95, 95), ValueRangeConstraint(100, 100), ) class Sixteenths(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 16) agentAutoVoIPCfgGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1)) agentAutoVoIPTable = MibTable((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1), ) if mibBuilder.loadTexts: agentAutoVoIPTable.setStatus('current') agentAutoVoIPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1, 1), ).setIndexNames((0, "FASTPATH-QOS-AUTOVOIP-MIB", "agentAutoVoIPIntfIndex")) if mibBuilder.loadTexts: agentAutoVoIPEntry.setStatus('current') agentAutoVoIPIntfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1, 1, 1), InterfaceIndexOrZero()) if mibBuilder.loadTexts: agentAutoVoIPIntfIndex.setStatus('current') agentAutoVoIPMode = MibTableColumn((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentAutoVoIPMode.setStatus('current') agentAutoVoIPCosQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentAutoVoIPCosQueue.setStatus('current') mibBuilder.exportSymbols("FASTPATH-QOS-AUTOVOIP-MIB", fastPathQOSAUTOVOIP=fastPathQOSAUTOVOIP, agentAutoVoIPEntry=agentAutoVoIPEntry, Sixteenths=Sixteenths, agentAutoVoIPIntfIndex=agentAutoVoIPIntfIndex, agentAutoVoIPMode=agentAutoVoIPMode, PercentByFives=PercentByFives, PYSNMP_MODULE_ID=fastPathQOSAUTOVOIP, agentAutoVoIPCosQueue=agentAutoVoIPCosQueue, agentAutoVoIPTable=agentAutoVoIPTable, agentAutoVoIPCfgGroup=agentAutoVoIPCfgGroup)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_union, value_range_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection') (fast_path_qos,) = mibBuilder.importSymbols('FASTPATH-QOS-MIB', 'fastPathQOS') (interface_index_or_zero,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, ip_address, object_identity, mib_identifier, unsigned32, notification_type, integer32, gauge32, iso, counter64, time_ticks, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'IpAddress', 'ObjectIdentity', 'MibIdentifier', 'Unsigned32', 'NotificationType', 'Integer32', 'Gauge32', 'iso', 'Counter64', 'TimeTicks', 'ModuleIdentity') (row_status, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention') fast_path_qosautovoip = module_identity((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4)) fastPathQOSAUTOVOIP.setRevisions(('2007-11-23 00:00', '2007-11-23 00:00')) if mibBuilder.loadTexts: fastPathQOSAUTOVOIP.setLastUpdated('200711230000Z') if mibBuilder.loadTexts: fastPathQOSAUTOVOIP.setOrganization('Broadcom Corporation') class Percentbyfives(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(5, 5), value_range_constraint(10, 10), value_range_constraint(15, 15), value_range_constraint(20, 20), value_range_constraint(25, 25), value_range_constraint(30, 30), value_range_constraint(35, 35), value_range_constraint(40, 40), value_range_constraint(45, 45), value_range_constraint(50, 50), value_range_constraint(55, 55), value_range_constraint(60, 60), value_range_constraint(65, 65), value_range_constraint(70, 70), value_range_constraint(75, 75), value_range_constraint(80, 80), value_range_constraint(85, 85), value_range_constraint(90, 90), value_range_constraint(95, 95), value_range_constraint(100, 100)) class Sixteenths(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 16) agent_auto_vo_ip_cfg_group = mib_identifier((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1)) agent_auto_vo_ip_table = mib_table((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1)) if mibBuilder.loadTexts: agentAutoVoIPTable.setStatus('current') agent_auto_vo_ip_entry = mib_table_row((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1, 1)).setIndexNames((0, 'FASTPATH-QOS-AUTOVOIP-MIB', 'agentAutoVoIPIntfIndex')) if mibBuilder.loadTexts: agentAutoVoIPEntry.setStatus('current') agent_auto_vo_ip_intf_index = mib_table_column((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1, 1, 1), interface_index_or_zero()) if mibBuilder.loadTexts: agentAutoVoIPIntfIndex.setStatus('current') agent_auto_vo_ip_mode = mib_table_column((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentAutoVoIPMode.setStatus('current') agent_auto_vo_ip_cos_queue = mib_table_column((1, 3, 6, 1, 4, 1, 674, 10895, 5000, 2, 6132, 1, 1, 3, 4, 1, 1, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentAutoVoIPCosQueue.setStatus('current') mibBuilder.exportSymbols('FASTPATH-QOS-AUTOVOIP-MIB', fastPathQOSAUTOVOIP=fastPathQOSAUTOVOIP, agentAutoVoIPEntry=agentAutoVoIPEntry, Sixteenths=Sixteenths, agentAutoVoIPIntfIndex=agentAutoVoIPIntfIndex, agentAutoVoIPMode=agentAutoVoIPMode, PercentByFives=PercentByFives, PYSNMP_MODULE_ID=fastPathQOSAUTOVOIP, agentAutoVoIPCosQueue=agentAutoVoIPCosQueue, agentAutoVoIPTable=agentAutoVoIPTable, agentAutoVoIPCfgGroup=agentAutoVoIPCfgGroup)
{ "midi_fname": "sample_music/effrhy_131.mid", "video_fname": "tests/test_out/start_size.mp4", "note_start_height": 0.0, # "note_end_height": 0.0, }
{'midi_fname': 'sample_music/effrhy_131.mid', 'video_fname': 'tests/test_out/start_size.mp4', 'note_start_height': 0.0}
par = list() impar = list() num = list() for i in range(1, 8): num.append(int(input(f'Digite o {i} numero: '))) for a in num: if a % 2 == 0: par.append(a) else: impar.append(a) print(num) print(par) print(impar)
par = list() impar = list() num = list() for i in range(1, 8): num.append(int(input(f'Digite o {i} numero: '))) for a in num: if a % 2 == 0: par.append(a) else: impar.append(a) print(num) print(par) print(impar)
class Solution: def scheduleCourse(self, courses: List[List[int]]) -> int: time = 0 maxHeap = [] for duration, lastDay in sorted(courses, key=lambda x: x[1]): heapq.heappush(maxHeap, -duration) time += duration # if current course could not be taken, check if it's able to swap with a # previously taken course with larger duration, to increase the time # available to take upcoming courses if time > lastDay: time += heapq.heappop(maxHeap) return len(maxHeap)
class Solution: def schedule_course(self, courses: List[List[int]]) -> int: time = 0 max_heap = [] for (duration, last_day) in sorted(courses, key=lambda x: x[1]): heapq.heappush(maxHeap, -duration) time += duration if time > lastDay: time += heapq.heappop(maxHeap) return len(maxHeap)
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"get_data": "01_core.ipynb", "Dataset": "01_core.ipynb", "DataBunch": "01_core.ipynb", "Learner": "01_core.ipynb", "get_dls": "01_core.ipynb", "get_model": "01_core.ipynb", "get_learner": "01_core.ipynb", "accuracy": "01_core.ipynb", "camel2snake": "01_core.ipynb", "Callback": "01_core.ipynb", "TrainEvalCallback": "01_core.ipynb", "listify": "01_core.ipynb", "Runner": "01_core.ipynb", "AvgStats": "01_core.ipynb", "AvgStatsCallback": "01_core.ipynb", "Recorder": "01_core.ipynb", "ParamScheduler": "01_core.ipynb", "annealer": "01_core.ipynb", "sched_lin": "01_core.ipynb", "sched_cos": "01_core.ipynb", "sched_no": "01_core.ipynb", "sched_expo": "01_core.ipynb", "cos_1cycle_anneal": "01_core.ipynb", "torch.Tensor.ndim": "01_core.ipynb", "combine_scheds": "01_core.ipynb"} modules = ["l10_anneal.py"] doc_url = "https://weilainicolas.github.io/fastai_lai_lib/" git_url = "https://github.com/weilainicolas/fastai_lai_lib/tree/master/" def custom_doc_links(name): return None
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url'] index = {'get_data': '01_core.ipynb', 'Dataset': '01_core.ipynb', 'DataBunch': '01_core.ipynb', 'Learner': '01_core.ipynb', 'get_dls': '01_core.ipynb', 'get_model': '01_core.ipynb', 'get_learner': '01_core.ipynb', 'accuracy': '01_core.ipynb', 'camel2snake': '01_core.ipynb', 'Callback': '01_core.ipynb', 'TrainEvalCallback': '01_core.ipynb', 'listify': '01_core.ipynb', 'Runner': '01_core.ipynb', 'AvgStats': '01_core.ipynb', 'AvgStatsCallback': '01_core.ipynb', 'Recorder': '01_core.ipynb', 'ParamScheduler': '01_core.ipynb', 'annealer': '01_core.ipynb', 'sched_lin': '01_core.ipynb', 'sched_cos': '01_core.ipynb', 'sched_no': '01_core.ipynb', 'sched_expo': '01_core.ipynb', 'cos_1cycle_anneal': '01_core.ipynb', 'torch.Tensor.ndim': '01_core.ipynb', 'combine_scheds': '01_core.ipynb'} modules = ['l10_anneal.py'] doc_url = 'https://weilainicolas.github.io/fastai_lai_lib/' git_url = 'https://github.com/weilainicolas/fastai_lai_lib/tree/master/' def custom_doc_links(name): return None
#function that allows user to filter photos based on ranking def filterPhotos(photoAlbum, userchoice): if userchoice: #display photos in ascending order return; else: #display photos in descending order return; return;
def filter_photos(photoAlbum, userchoice): if userchoice: return else: return return
def test_about_should_return_200(client): rv = client.get('/about') assert rv.status_code == 200 assert rv.headers['Content-type'] == 'text/html; charset=utf-8'
def test_about_should_return_200(client): rv = client.get('/about') assert rv.status_code == 200 assert rv.headers['Content-type'] == 'text/html; charset=utf-8'
# dfs class Solution: def numIslands(self, grid: 'List[List[str]]') -> 'int': if grid == []: return 0 def dfs(i, j, n, m): if i < 0 or j < 0 or i >= n or j >= m or grid[i][j] == "0" or grid[i][j] == "-1": return grid[i][j] = "-1" dfs(i + 1, j, n, m) dfs(i - 1, j, n, m) dfs(i, j + 1, n, m) dfs(i, j - 1, n, m) num_islands = 0 n, m = len(grid), len(grid[0]) for i in range(n): for j in range(m): if grid[i][j] == "1": dfs(i, j, n, m) num_islands += 1 return num_islands
class Solution: def num_islands(self, grid: 'List[List[str]]') -> 'int': if grid == []: return 0 def dfs(i, j, n, m): if i < 0 or j < 0 or i >= n or (j >= m) or (grid[i][j] == '0') or (grid[i][j] == '-1'): return grid[i][j] = '-1' dfs(i + 1, j, n, m) dfs(i - 1, j, n, m) dfs(i, j + 1, n, m) dfs(i, j - 1, n, m) num_islands = 0 (n, m) = (len(grid), len(grid[0])) for i in range(n): for j in range(m): if grid[i][j] == '1': dfs(i, j, n, m) num_islands += 1 return num_islands
# # Copyright (c) 2017 Joy Diamond. All rights reserved. # @gem('Topaz.Cache') def gem(): require_gem('Gem.Cache2') require_gem('Topaz.Core') require_gem('Topaz.CacheSupport') # # Specific instances # eight = conjure_number('eight', 8) five = conjure_number('five', 5) four = conjure_number('four', 4) nine = conjure_number('nine', 9) one = conjure_number('one', 1) seven = conjure_number('seven', 7) six = conjure_number('six', 6) three = conjure_number('three', 3) two = conjure_number('two', 2) zero = conjure_number('zero', 0) red = conjure_color('red') white = conjure_color('white') purple = conjure_color('purple') green = conjure_color('green') silver = conjure_color('silver') black = conjure_color('black') blue = conjure_color('blue') yellow = conjure_color('yellow') cyan = conjure_color('cyan') circle = conjure_shape('circle') ellipse = conjure_shape('ellipse') moon = conjure_shape('moon') pentagon = conjure_shape('pentagon') oval = conjure_shape('oval') square = conjure_shape('square') polygon = conjure_shape('polygon') star = conjure_shape('star') trapazoid = conjure_shape('trapazoid') triangle = conjure_shape('triangle') def test_conjure_again(): assert one is conjure_number('one', 1) assert two is conjure_number('two', 2) assert zero is conjure_number('zero', 0) assert three is conjure_number('three', 3) assert four is conjure_number('four', 4) assert five is conjure_number('five', 5) assert six is conjure_number('six', 6) assert seven is conjure_number('seven', 7) assert eight is conjure_number('eight', 8) assert nine is conjure_number('nine', 9) assert black is conjure_color('black') assert blue is conjure_color('blue') assert cyan is conjure_color('cyan') assert green is conjure_color('green') assert purple is conjure_color('purple') assert red is conjure_color('red') assert silver is conjure_color('silver') assert white is conjure_color('white') assert yellow is conjure_color('yellow') assert circle is conjure_shape('circle') assert ellipse is conjure_shape('ellipse') assert moon is conjure_shape('moon') assert oval is conjure_shape('oval') assert pentagon is conjure_shape('pentagon') assert polygon is conjure_shape('polygon') assert square is conjure_shape('square') assert star is conjure_shape('star') assert trapazoid is conjure_shape('trapazoid') assert triangle is conjure_shape('triangle') @share def test_conjure_single(): test_conjure_again() line('PASSED: conjure_single')
@gem('Topaz.Cache') def gem(): require_gem('Gem.Cache2') require_gem('Topaz.Core') require_gem('Topaz.CacheSupport') eight = conjure_number('eight', 8) five = conjure_number('five', 5) four = conjure_number('four', 4) nine = conjure_number('nine', 9) one = conjure_number('one', 1) seven = conjure_number('seven', 7) six = conjure_number('six', 6) three = conjure_number('three', 3) two = conjure_number('two', 2) zero = conjure_number('zero', 0) red = conjure_color('red') white = conjure_color('white') purple = conjure_color('purple') green = conjure_color('green') silver = conjure_color('silver') black = conjure_color('black') blue = conjure_color('blue') yellow = conjure_color('yellow') cyan = conjure_color('cyan') circle = conjure_shape('circle') ellipse = conjure_shape('ellipse') moon = conjure_shape('moon') pentagon = conjure_shape('pentagon') oval = conjure_shape('oval') square = conjure_shape('square') polygon = conjure_shape('polygon') star = conjure_shape('star') trapazoid = conjure_shape('trapazoid') triangle = conjure_shape('triangle') def test_conjure_again(): assert one is conjure_number('one', 1) assert two is conjure_number('two', 2) assert zero is conjure_number('zero', 0) assert three is conjure_number('three', 3) assert four is conjure_number('four', 4) assert five is conjure_number('five', 5) assert six is conjure_number('six', 6) assert seven is conjure_number('seven', 7) assert eight is conjure_number('eight', 8) assert nine is conjure_number('nine', 9) assert black is conjure_color('black') assert blue is conjure_color('blue') assert cyan is conjure_color('cyan') assert green is conjure_color('green') assert purple is conjure_color('purple') assert red is conjure_color('red') assert silver is conjure_color('silver') assert white is conjure_color('white') assert yellow is conjure_color('yellow') assert circle is conjure_shape('circle') assert ellipse is conjure_shape('ellipse') assert moon is conjure_shape('moon') assert oval is conjure_shape('oval') assert pentagon is conjure_shape('pentagon') assert polygon is conjure_shape('polygon') assert square is conjure_shape('square') assert star is conjure_shape('star') assert trapazoid is conjure_shape('trapazoid') assert triangle is conjure_shape('triangle') @share def test_conjure_single(): test_conjure_again() line('PASSED: conjure_single')
ENV = 'directory that defines e.g. the boxes' WORKSPACE = 'workspace directory' BEAD_REF = ''' bead to load data from - either an archive file name or a bead name ''' INPUT_NICK = ( 'name of input,' + ' its workspace relative location is "input/%(metavar)s"') BOX = 'Name of box to store bead'
env = 'directory that defines e.g. the boxes' workspace = 'workspace directory' bead_ref = '\n bead to load data from\n - either an archive file name or a bead name\n' input_nick = 'name of input,' + ' its workspace relative location is "input/%(metavar)s"' box = 'Name of box to store bead'
a = [] assert a[:] == [] assert a[:2**100] == [] assert a[-2**100:] == [] assert a[::2**100] == [] assert a[10:20] == [] assert a[-20:-10] == [] b = [1, 2] assert b[:] == [1, 2] assert b[:2**100] == [1, 2] assert b[-2**100:] == [1, 2] assert b[2**100:] == [] assert b[::2**100] == [1] assert b[-10:1] == [1] assert b[0:0] == [] assert b[1:0] == [] try: _ = b[::0] except ValueError: pass else: assert False, "Zero step slice should raise ValueError" assert b[::-1] == [2, 1] assert b[1::-1] == [2, 1] assert b[0::-1] == [1] assert b[0:-5:-1] == [1] assert b[:0:-1] == [2] assert b[5:0:-1] == [2] c = list(range(10)) assert c[9:6:-3] == [9] assert c[9::-3] == [9, 6, 3, 0] assert c[9::-4] == [9, 5, 1] assert c[8::-2**100] == [8] assert c[7:7:-2] == [] assert c[7:8:-2] == [] d = "123456" assert d[3::-1] == "4321" assert d[4::-3] == "52" slice_a = slice(5) assert slice_a.start is None assert slice_a.stop == 5 assert slice_a.step is None slice_b = slice(1, 5) assert slice_b.start == 1 assert slice_b.stop == 5 assert slice_b.step is None slice_c = slice(1, 5, 2) assert slice_c.start == 1 assert slice_c.stop == 5 assert slice_c.step == 2 class SubScript(object): def __getitem__(self, item): assert type(item) == slice def __setitem__(self, key, value): assert type(key) == slice ss = SubScript() _ = ss[:] ss[:1] = 1
a = [] assert a[:] == [] assert a[:2 ** 100] == [] assert a[-2 ** 100:] == [] assert a[::2 ** 100] == [] assert a[10:20] == [] assert a[-20:-10] == [] b = [1, 2] assert b[:] == [1, 2] assert b[:2 ** 100] == [1, 2] assert b[-2 ** 100:] == [1, 2] assert b[2 ** 100:] == [] assert b[::2 ** 100] == [1] assert b[-10:1] == [1] assert b[0:0] == [] assert b[1:0] == [] try: _ = b[::0] except ValueError: pass else: assert False, 'Zero step slice should raise ValueError' assert b[::-1] == [2, 1] assert b[1::-1] == [2, 1] assert b[0::-1] == [1] assert b[0:-5:-1] == [1] assert b[:0:-1] == [2] assert b[5:0:-1] == [2] c = list(range(10)) assert c[9:6:-3] == [9] assert c[9::-3] == [9, 6, 3, 0] assert c[9::-4] == [9, 5, 1] assert c[8::-2 ** 100] == [8] assert c[7:7:-2] == [] assert c[7:8:-2] == [] d = '123456' assert d[3::-1] == '4321' assert d[4::-3] == '52' slice_a = slice(5) assert slice_a.start is None assert slice_a.stop == 5 assert slice_a.step is None slice_b = slice(1, 5) assert slice_b.start == 1 assert slice_b.stop == 5 assert slice_b.step is None slice_c = slice(1, 5, 2) assert slice_c.start == 1 assert slice_c.stop == 5 assert slice_c.step == 2 class Subscript(object): def __getitem__(self, item): assert type(item) == slice def __setitem__(self, key, value): assert type(key) == slice ss = sub_script() _ = ss[:] ss[:1] = 1
class Class: __students_count = 22 def __init__(self, name): self.name = name self.students = [] self.grades = [] def add_student(self, name, grade): if self.__students_count != 0: self.students.append(name) self.grades.append(float(grade)) self.__students_count -= 1 def get_average_grade(self): return sum(self.grades) / len(self.grades) def __repr__(self): return f'The students in {self.name}: {", ".join(self.students)}. Average grade: {self.get_average_grade():.2f}' a_class = Class("11B") a_class.add_student("Peter", 4.80) a_class.add_student("George", 6.00) a_class.add_student("Amy", 3.50) print(a_class)
class Class: __students_count = 22 def __init__(self, name): self.name = name self.students = [] self.grades = [] def add_student(self, name, grade): if self.__students_count != 0: self.students.append(name) self.grades.append(float(grade)) self.__students_count -= 1 def get_average_grade(self): return sum(self.grades) / len(self.grades) def __repr__(self): return f"The students in {self.name}: {', '.join(self.students)}. Average grade: {self.get_average_grade():.2f}" a_class = class('11B') a_class.add_student('Peter', 4.8) a_class.add_student('George', 6.0) a_class.add_student('Amy', 3.5) print(a_class)
#!/usr/bin/env python3 #p3_180824_2354.py # Search synonym #2 # Format: # Number_of_lines # Key (space) Value # Key_word def main(): num = input() myDictionary = getDictionary(num) word = input() #wordToSearch = getKeySearchWord(myDictionary) checkDictionary(myDictionary, word) # Fill dictionary with input lines def getDictionary(numberOfLines): myDictionary = dict() listTemp = list() for i in range(int(numberOfLines)): listTemp.append(input().split(' ')) myDictionary = dict(listTemp) return myDictionary # Get the word we're looking for # Not used def getKeySearchWord(synonymDict): keyList = list(synonymDict.keys()) keyIndex = int(keyList[0])+1 keyWord = keyList[keyIndex] return keyWord # Get a synonym for key-word def checkDictionary(synonymDict, keyWord): for wordsN1, wordsN2 in synonymDict.items(): if wordsN1 == keyWord: synonymDict.update({keyWord: wordsN2}) break if wordsN2 == keyWord: synonymDict.update({keyWord: wordsN1}) break print(synonymDict[keyWord]) if __name__ == '__main__': main()
def main(): num = input() my_dictionary = get_dictionary(num) word = input() check_dictionary(myDictionary, word) def get_dictionary(numberOfLines): my_dictionary = dict() list_temp = list() for i in range(int(numberOfLines)): listTemp.append(input().split(' ')) my_dictionary = dict(listTemp) return myDictionary def get_key_search_word(synonymDict): key_list = list(synonymDict.keys()) key_index = int(keyList[0]) + 1 key_word = keyList[keyIndex] return keyWord def check_dictionary(synonymDict, keyWord): for (words_n1, words_n2) in synonymDict.items(): if wordsN1 == keyWord: synonymDict.update({keyWord: wordsN2}) break if wordsN2 == keyWord: synonymDict.update({keyWord: wordsN1}) break print(synonymDict[keyWord]) if __name__ == '__main__': main()
__title__ = 'cli_command_parser' __description__ = 'CLI Command Parser' __url__ = 'https://github.com/dskrypa/cli_command_parser' __version__ = '2022.06.06' __author__ = 'Doug Skrypa' __author_email__ = 'dskrypa@gmail.com' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2022 Doug Skrypa'
__title__ = 'cli_command_parser' __description__ = 'CLI Command Parser' __url__ = 'https://github.com/dskrypa/cli_command_parser' __version__ = '2022.06.06' __author__ = 'Doug Skrypa' __author_email__ = 'dskrypa@gmail.com' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2022 Doug Skrypa'
altitude=int(input("enter the current altitude : ")) if altitude<=1000: print(" SAFE to land") elif altitude>1000 and altitude<=5000: print("bring it down to 1000ft") else: print("turn around")
altitude = int(input('enter the current altitude : ')) if altitude <= 1000: print(' SAFE to land') elif altitude > 1000 and altitude <= 5000: print('bring it down to 1000ft') else: print('turn around')
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def hasCycle(self, head: Optional[ListNode]) -> bool: cs = head cf = head if head == None: return False if cf.next == None: return False else: cf = cf.next while cf.next != None and cf != cs: cs = cs.next cf = cf.next if cf.next != None: cf = cf.next else: return False if cf == cs: return True return False
class Solution: def has_cycle(self, head: Optional[ListNode]) -> bool: cs = head cf = head if head == None: return False if cf.next == None: return False else: cf = cf.next while cf.next != None and cf != cs: cs = cs.next cf = cf.next if cf.next != None: cf = cf.next else: return False if cf == cs: return True return False
# *************************************** # ******** Manual Configurations ******** # *************************************** # ---------------------------------------------------------------- # -------- Part 1, meta-network generation settings ---------- # ---------------------------------------------------------------- # 1. What is the path to the folder containing the BLAST result files ? Please end all folders with a single slash ('/'). blast_results_path = 'C:/Users/Tokuriki Lab/Documents/Sync/Projects/MBL SSN 2020/mbl_cdhit50_all_by_all/' # 2. Which files in the input folder should be used for this analysis ? Setting None will use all files in the input folder. # blast_results_files = ['b1_all_by_all.txt','b2_vs_b1_all_blast.txt','b2_vs_b1_all_as_subject.txt'] blast_results_files = None # 3. Which columns (1st column is 0, 2nd is 1, etc) in the blast files contain the following information ? # Please ensure this is true for all files given as input. query_col = 0 subject_col = 1 bitscore_col = 3 # Obsolete : clustering thresholds now provided directly through command line # 4. At what bitscore threshold should sequences be grouped together into a metanode ? # metanode_bitscore_range = range(100,310,10) # 5. At what bitscore threshold should edge connections be ignored for the network ? # fixed_min_bitscore = None # bitscore_gap = 10 # 6. Enter the path to the file used to limit the sequences used in the analysis ? Only sequence IDs present in the file will be used in the analysis. # If set to None, ther filter is ignored. # The file should be formatted to have a single sequence ID on each line filter_path = 'input/filters/' filter_files = [] # filter_files = ['b1_subgroup_all_reps.txt'] # 7. What should the output be named? The label given should only describe the input data, as the bitscore cut-offs and other information will be added as suffixes automatically. output_label = 'mbl_full_cdhit50' # output_label = 'b1_subgroup' # 8. Where should the output be placed ? This will create a directory relative to the scripts running location. # output_dir = 'result_tiered/' # output_dir = 'cluster_extraction/' output_dir = 'metaSSN_v4_test/' # use_old_metanodes = True # use old if found # 9. Out put member names can be remapped, supply a mapping file with the old name in the first column and the new name in the second # names not found in the file will be left as is. mapping_path = 'C:/Users/Tokuriki Lab/Documents/Sync/Projects/MBL SSN 2020/sequences/' member_name_mapping = [] # ---------------------------------------------------------------- # ------- Part 2, resolving sequence clustering, OPTIONAL -------- # ---------------------------------------------------------------- # 1. Should member sequences in the metanodes be analysed for cluster members ? Only applicable if each member sequence is the representative of a cluster of sequences, # and should be set to False otherwise. # analyze_clustering = True # use_old_clustering = True # 2. What is the path to the folder containing clustering information ? cluster_info_path = 'C:/Users/Tokuriki Lab/Documents/Sync/Projects/MBL SSN 2020/sequences/' # 3. Describe each file in the input folder using the following Dictionary. # Each top level key should be the name of the file, and the value should be a dictionary specifying if the file is 1) a 'cdhit' cluster or a 'table', # 2) a label to give data extracted from this clustering, 3) the table delimiter, 4) the key column of the table for matching sequence IDs, # 5) the column in the table that contains member information, and 6) the delimiter that separates cluster members in the table's string. # Properties 3-6 are for tables only and can be set to None for cdhit files. Properties 4-5 should be given with 0 as the 1st column, 1 as the 2nd, etc. # For heirarchical clustering of cdhit files, only the lowest identity file needs to be assigned, the remainder should be provided below. # label currently unused, doesn't make sense, since clustering may not necessarily mean distinct datasets cluster_file_info = { 'mbl_cdhit50.clstr': {'format':'cdhit', 'delim':None, 'key_col':None, 'member_col':None, 'member_delim':None} # 'B1_230_to_300_cdhit.clstr': {'format':'cdhit', 'label':'metagenome', 'delim':None, 'key_col':None, 'member_col':None, 'member_delim':None}, # 'CARD_b1_cdhit70.clstr': {'format':'cdhit', 'label':'B1', 'delim':None, 'key_col':None, 'member_col':None, 'member_delim':None}, # 'CARD_b2_cdhit70.clstr': {'format':'cdhit', 'label':'B2', 'delim':None, 'key_col':None, 'member_col':None, 'member_delim':None}, # 'uniref50_IPR001279.tab': {'format':'table', 'label':'uniprot', 'delim':'\t', 'key_col':0, 'member_col':4, 'member_delim':';'} } # 4. For cdhit based clustering, describe heirarchical clustering, if any. Use a dictionary where the key is the clustering with the lowest identity, and # the value is a list of the other files in the heirarchy in ascending order of identity cut-off. # If not, give None as the input. # example # cdhit_heirarchy = { '40%.clstr': ['70%.clstr','90%.clstr'] } cdhit_heirarchy = {'mbl_cdhit50.clstr': ['mbl_cdhit70.clstr','mbl_cdhit90.clstr'] } # ---------------------------------------------------------------- # ------- Part 3, extra annotation, OPTIONAL -------- # ---------------------------------------------------------------- # 1. Would you like to add extra annotations ? # annot_metanodes = True # 2. Provide the path to the folder containing the annotation files. annot_path = 'input/annot/' # 3. Provide a list of files to annotate by membership count. Each entry should be a dictionary # that specifies the filename, the annotation label and the level at which the annotations should be applied (metanode members vs all sequences in metanode) # Each file should be a series of sequence IDs separated by new lines. The IDs should be non-redundant. # NOTE: the same file may not work for both 'member' and 'sequence' level extractions, since representative members may have different names than at the individual sequence level # such as UniRef vs UniProt IDs membership_count_annot = [ {'files':'b1_refs.txt','id_col':0,'data_col':None,'delim':'\t','label':'CARD B1','level':'sequence'}, {'files':'b2_refs.txt','id_col':0,'data_col':None,'delim':'\t','label':'CARD B2','level':'sequence'}, {'files':'b3_refs.txt','id_col':0,'data_col':None,'delim':'\t','label':'CARD B3','level':'sequence'}, {'files':'mbl_swissprot_acc.txt','id_col':0,'data_col':None,'delim':'\t','label':'SwissProt','level':'sequence'}, {'files':'mbl_uniprot_acc.txt','id_col':0,'data_col':None,'delim':'\t','label':'UniProt','level':'sequence'}, {'files':'jgi_headers.txt','id_col':0,'data_col':None,'delim':'\t','label':'JGI','level':'sequence'} # {'files':'b1_refs.txt','id_col':0,'data_col':None,'delim':'\t','label':'known B1','level':'member'}, # {'files':'b1_refs.txt','id_col':0,'data_col':None,'delim':'\t','label':'known B1','level':'sequence'}, # {'files':'ipr001279_acc.txt','id_col':0,'data_col':None,'delim':'\t','label':'UniProt','level':'sequence'}, # {'files':'JGI_b1_230-300aa_headers.txt','id_col':0,'data_col':None,'delim':'\t','label':'JGI','level':'sequence'} ] # 4. Provide a list of files to annotate by frequency of certain traits (genus, kingdom, etc). Each entry should be a dictionary # that specifies the file name, the column of the sequence id, the column of the data, the file delimiter, the annotation label and the level at which the annotations # should be applied (metanode members vs all sequences in metanode) # Each file should be a tab separated file with the sequence ID in the first column, and the trait in the second column. membership_freq_annot = [ # {'files':'b1_active_sites.txt','id_col':0,'data_col':1,'delim':'\t','label':'active_site','level':'member','highest_entries':3}, # {'files':'b1_active_sites.txt','id_col':0,'data_col':1,'delim':'\t','label':'active_site','level':'member','highest_entries':3}, {'files':'ipr001279_org_annot_filled.txt','id_col':0,'data_col':2,'delim':'\t','label':'genus','level':'sequence','highest_entries':5}, {'files':['B1_activesite.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B1_activesite','level':'sequence','highest_entries':3}, {'files':['B2_activesite.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B2_activesite','level':'sequence','highest_entries':3}, {'files':['B3_activesite.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B3_activesite','level':'sequence','highest_entries':3}, {'files':['B1_200-350aa_activesite.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B1_200-350aa_activesite','level':'sequence','highest_entries':3}, {'files':['B2_200-350aa_activesite.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B2_200-350aa_activesite','level':'sequence','highest_entries':3}, {'files':['B3_200-350aa_activesite.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B3_200-350aa_activesite','level':'sequence','highest_entries':3}, {'files':['B1_MSA_inclusion.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B1_200-350aa_MSA_inclusion','level':'sequence','highest_entries':3}, {'files':['B2_MSA_inclusion.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B2_200-350aa_MSA_inclusion','level':'sequence','highest_entries':3}, {'files':['B3_MSA_inclusion.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'B3_200-350aa_MSA_inclusion','level':'sequence','highest_entries':3} ] # 5. Unique labels membership_label = [ {'files':'b1_name.txt','id_col':1,'data_col':2 ,'delim':'\t', 'label':'known B1 families', 'level':'sequence'}, {'files':'b2_name.txt','id_col':1,'data_col':2 ,'delim':'\t', 'label':'known B2 families', 'level':'sequence'}, {'files':'b3_name.txt','id_col':1,'data_col':2 ,'delim':'\t', 'label':'known B3 families', 'level':'sequence'}, # {'files':'b1_family_label.txt','id_col':0,'data_col':1 ,'delim':'\t', 'label':'known B1 families', 'level':'member'} ] # 6. Numerical distribution membership_dist_annot = [ # {'files':['ipr001279_length.txt', 'JGI_b1_230-300aa_headers+length.txt'],'id_col':0,'data_col':1,'delim':'\t','label':'length_dist','level':'sequence'} {'files':'mbl_lengths.txt','id_col':0,'data_col':1,'delim':'\t','label':'length_dist','level':'sequence'} ] # 7. link nodes at higher cut-offs to those observed at lower ones. Make sure the file is a lower cut-off than the currently set metanode bitscores, or else the results # will not make any sense. It also doesn't need to be from the same set of analysis, since node numbering is arbitrary so long as the clustering is correct. # level should always be member. membership_lower_node = [ # {'files':'b1_ssn_50min_115clust_meta-node_members.txt','id_col':1,'data_col':0 ,'delim':'\t', 'label':'115clust node', 'level':'member', 'bitscore':115} ]
blast_results_path = 'C:/Users/Tokuriki Lab/Documents/Sync/Projects/MBL SSN 2020/mbl_cdhit50_all_by_all/' blast_results_files = None query_col = 0 subject_col = 1 bitscore_col = 3 filter_path = 'input/filters/' filter_files = [] output_label = 'mbl_full_cdhit50' output_dir = 'metaSSN_v4_test/' mapping_path = 'C:/Users/Tokuriki Lab/Documents/Sync/Projects/MBL SSN 2020/sequences/' member_name_mapping = [] cluster_info_path = 'C:/Users/Tokuriki Lab/Documents/Sync/Projects/MBL SSN 2020/sequences/' cluster_file_info = {'mbl_cdhit50.clstr': {'format': 'cdhit', 'delim': None, 'key_col': None, 'member_col': None, 'member_delim': None}} cdhit_heirarchy = {'mbl_cdhit50.clstr': ['mbl_cdhit70.clstr', 'mbl_cdhit90.clstr']} annot_path = 'input/annot/' membership_count_annot = [{'files': 'b1_refs.txt', 'id_col': 0, 'data_col': None, 'delim': '\t', 'label': 'CARD B1', 'level': 'sequence'}, {'files': 'b2_refs.txt', 'id_col': 0, 'data_col': None, 'delim': '\t', 'label': 'CARD B2', 'level': 'sequence'}, {'files': 'b3_refs.txt', 'id_col': 0, 'data_col': None, 'delim': '\t', 'label': 'CARD B3', 'level': 'sequence'}, {'files': 'mbl_swissprot_acc.txt', 'id_col': 0, 'data_col': None, 'delim': '\t', 'label': 'SwissProt', 'level': 'sequence'}, {'files': 'mbl_uniprot_acc.txt', 'id_col': 0, 'data_col': None, 'delim': '\t', 'label': 'UniProt', 'level': 'sequence'}, {'files': 'jgi_headers.txt', 'id_col': 0, 'data_col': None, 'delim': '\t', 'label': 'JGI', 'level': 'sequence'}] membership_freq_annot = [{'files': 'ipr001279_org_annot_filled.txt', 'id_col': 0, 'data_col': 2, 'delim': '\t', 'label': 'genus', 'level': 'sequence', 'highest_entries': 5}, {'files': ['B1_activesite.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B1_activesite', 'level': 'sequence', 'highest_entries': 3}, {'files': ['B2_activesite.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B2_activesite', 'level': 'sequence', 'highest_entries': 3}, {'files': ['B3_activesite.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B3_activesite', 'level': 'sequence', 'highest_entries': 3}, {'files': ['B1_200-350aa_activesite.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B1_200-350aa_activesite', 'level': 'sequence', 'highest_entries': 3}, {'files': ['B2_200-350aa_activesite.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B2_200-350aa_activesite', 'level': 'sequence', 'highest_entries': 3}, {'files': ['B3_200-350aa_activesite.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B3_200-350aa_activesite', 'level': 'sequence', 'highest_entries': 3}, {'files': ['B1_MSA_inclusion.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B1_200-350aa_MSA_inclusion', 'level': 'sequence', 'highest_entries': 3}, {'files': ['B2_MSA_inclusion.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B2_200-350aa_MSA_inclusion', 'level': 'sequence', 'highest_entries': 3}, {'files': ['B3_MSA_inclusion.txt'], 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'B3_200-350aa_MSA_inclusion', 'level': 'sequence', 'highest_entries': 3}] membership_label = [{'files': 'b1_name.txt', 'id_col': 1, 'data_col': 2, 'delim': '\t', 'label': 'known B1 families', 'level': 'sequence'}, {'files': 'b2_name.txt', 'id_col': 1, 'data_col': 2, 'delim': '\t', 'label': 'known B2 families', 'level': 'sequence'}, {'files': 'b3_name.txt', 'id_col': 1, 'data_col': 2, 'delim': '\t', 'label': 'known B3 families', 'level': 'sequence'}] membership_dist_annot = [{'files': 'mbl_lengths.txt', 'id_col': 0, 'data_col': 1, 'delim': '\t', 'label': 'length_dist', 'level': 'sequence'}] membership_lower_node = []
sbox0 = [ 0X3e, 0x72, 0x5b, 0x47, 0xca, 0xe0, 0x00, 0x33, 0x04, 0xd1, 0x54, 0x98, 0x09, 0xb9, 0x6d, 0xcb, 0X7b, 0x1b, 0xf9, 0x32, 0xaf, 0x9d, 0x6a, 0xa5, 0xb8, 0x2d, 0xfc, 0x1d, 0x08, 0x53, 0x03, 0x90, 0X4d, 0x4e, 0x84, 0x99, 0xe4, 0xce, 0xd9, 0x91, 0xdd, 0xb6, 0x85, 0x48, 0x8b, 0x29, 0x6e, 0xac, 0Xcd, 0xc1, 0xf8, 0x1e, 0x73, 0x43, 0x69, 0xc6, 0xb5, 0xbd, 0xfd, 0x39, 0x63, 0x20, 0xd4, 0x38, 0X76, 0x7d, 0xb2, 0xa7, 0xcf, 0xed, 0x57, 0xc5, 0xf3, 0x2c, 0xbb, 0x14, 0x21, 0x06, 0x55, 0x9b, 0Xe3, 0xef, 0x5e, 0x31, 0x4f, 0x7f, 0x5a, 0xa4, 0x0d, 0x82, 0x51, 0x49, 0x5f, 0xba, 0x58, 0x1c, 0X4a, 0x16, 0xd5, 0x17, 0xa8, 0x92, 0x24, 0x1f, 0x8c, 0xff, 0xd8, 0xae, 0x2e, 0x01, 0xd3, 0xad, 0X3b, 0x4b, 0xda, 0x46, 0xeb, 0xc9, 0xde, 0x9a, 0x8f, 0x87, 0xd7, 0x3a, 0x80, 0x6f, 0x2f, 0xc8, 0Xb1, 0xb4, 0x37, 0xf7, 0x0a, 0x22, 0x13, 0x28, 0x7c, 0xcc, 0x3c, 0x89, 0xc7, 0xc3, 0x96, 0x56, 0X07, 0xbf, 0x7e, 0xf0, 0x0b, 0x2b, 0x97, 0x52, 0x35, 0x41, 0x79, 0x61, 0xa6, 0x4c, 0x10, 0xfe, 0Xbc, 0x26, 0x95, 0x88, 0x8a, 0xb0, 0xa3, 0xfb, 0xc0, 0x18, 0x94, 0xf2, 0xe1, 0xe5, 0xe9, 0x5d, 0Xd0, 0xdc, 0x11, 0x66, 0x64, 0x5c, 0xec, 0x59, 0x42, 0x75, 0x12, 0xf5, 0x74, 0x9c, 0xaa, 0x23, 0X0e, 0x86, 0xab, 0xbe, 0x2a, 0x02, 0xe7, 0x67, 0xe6, 0x44, 0xa2, 0x6c, 0xc2, 0x93, 0x9f, 0xf1, 0Xf6, 0xfa, 0x36, 0xd2, 0x50, 0x68, 0x9e, 0x62, 0x71, 0x15, 0x3d, 0xd6, 0x40, 0xc4, 0xe2, 0x0f, 0X8e, 0x83, 0x77, 0x6b, 0x25, 0x05, 0x3f, 0x0c, 0x30, 0xea, 0x70, 0xb7, 0xa1, 0xe8, 0xa9, 0x65, 0X8d, 0x27, 0x1a, 0xdb, 0x81, 0xb3, 0xa0, 0xf4, 0x45, 0x7a, 0x19, 0xdf, 0xee, 0x78, 0x34, 0x60 ] sbox1 = [ 0x55, 0xc2, 0x63, 0x71, 0x3b, 0xc8, 0x47, 0x86, 0x9f, 0x3c, 0xda, 0x5b, 0x29, 0xaa, 0xfd, 0x77, 0x8c, 0xc5, 0x94, 0x0c, 0xa6, 0x1a, 0x13, 0x00, 0xe3, 0xa8, 0x16, 0x72, 0x40, 0xf9, 0xf8, 0x42, 0x44, 0x26, 0x68, 0x96, 0x81, 0xd9, 0x45, 0x3e, 0x10, 0x76, 0xc6, 0xa7, 0x8b, 0x39, 0x43, 0xe1, 0x3a, 0xb5, 0x56, 0x2a, 0xc0, 0x6d, 0xb3, 0x05, 0x22, 0x66, 0xbf, 0xdc, 0x0b, 0xfa, 0x62, 0x48, 0xdd, 0x20, 0x11, 0x06, 0x36, 0xc9, 0xc1, 0xcf, 0xf6, 0x27, 0x52, 0xbb, 0x69, 0xf5, 0xd4, 0x87, 0x7f, 0x84, 0x4c, 0xd2, 0x9c, 0x57, 0xa4, 0xbc, 0x4f, 0x9a, 0xdf, 0xfe, 0xd6, 0x8d, 0x7a, 0xeb, 0x2b, 0x53, 0xd8, 0x5c, 0xa1, 0x14, 0x17, 0xfb, 0x23, 0xd5, 0x7d, 0x30, 0x67, 0x73, 0x08, 0x09, 0xee, 0xb7, 0x70, 0x3f, 0x61, 0xb2, 0x19, 0x8e, 0x4e, 0xe5, 0x4b, 0x93, 0x8f, 0x5d, 0xdb, 0xa9, 0xad, 0xf1, 0xae, 0x2e, 0xcb, 0x0d, 0xfc, 0xf4, 0x2d, 0x46, 0x6e, 0x1d, 0x97, 0xe8, 0xd1, 0xe9, 0x4d, 0x37, 0xa5, 0x75, 0x5e, 0x83, 0x9e, 0xab, 0x82, 0x9d, 0xb9, 0x1c, 0xe0, 0xcd, 0x49, 0x89, 0x01, 0xb6, 0xbd, 0x58, 0x24, 0xa2, 0x5f, 0x38, 0x78, 0x99, 0x15, 0x90, 0x50, 0xb8, 0x95, 0xe4, 0xd0, 0x91, 0xc7, 0xce, 0xed, 0x0f, 0xb4, 0x6f, 0xa0, 0xcc, 0xf0, 0x02, 0x4a, 0x79, 0xc3, 0xde, 0xa3, 0xef, 0xea, 0x51, 0xe6, 0x6b, 0x18, 0xec, 0x1b, 0x2c, 0x80, 0xf7, 0x74, 0xe7, 0xff, 0x21, 0x5a, 0x6a, 0x54, 0x1e, 0x41, 0x31, 0x92, 0x35, 0xc4, 0x33, 0x07, 0x0a, 0xba, 0x7e, 0x0e, 0x34, 0x88, 0xb1, 0x98, 0x7c, 0xf3, 0x3d, 0x60, 0x6c, 0x7b, 0xca, 0xd3, 0x1f, 0x32, 0x65, 0x04, 0x28, 0x64, 0xbe, 0x85, 0x9b, 0x2f, 0x59, 0x8a, 0xd7, 0xb0, 0x25, 0xac, 0xaf, 0x12, 0x03, 0xe2, 0xf2 ] D = [ 0x44d7, 0x26bc, 0x626b, 0x135e, 0x5789, 0x35e2, 0x7135, 0x09af, 0x4d78, 0x2f13, 0x6bc4, 0x1af1, 0x5e26, 0x3c4d, 0x789a, 0x47ac ] def LFSRCalcS(s): # return (s[15] << 15 + s[13] << 17 + s[10] << 21 + s[4] << 20 + s[0] << 8 + s[0]) % 0x7fffffff return (left_rot(s[15], 15, 31) + left_rot(s[13], 17, 31) + left_rot(s[10], 21, 31) + left_rot(s[4], 20, 31) + left_rot(s[0], 8, 31) + s[0]) % 0x7fffffff def LFSRWithInitMode(s, u): s.append(0x7fffffff if s[0] == 0 else ((LFSRCalcS(s) + u) % 0x7fffffff)) s.pop(0) def LFSRWithWorkMode(s): s.append(0x7fffffff if s[0] == 0 else LFSRCalcS(s)) s.pop(0) def BitReorganization(s): X = [0, 0, 0, 0] X[0] = ((s[15] & 0x7fff8000) << 1) | (s[14] & 0xffff) X[1] = ((s[11] & 0xffff) << 16) | (s[9] >> 15) X[2] = ((s[7] & 0xffff) << 16) | (s[5] >> 15) X[3] = ((s[2] & 0xffff) << 16) | (s[0] >> 15) return X def left_rot(x, n, x_len): n %= x_len return ((x << n) | (x >> (x_len - n))) & ((1 << x_len) - 1) def left_rot1(x): return x ^ left_rot(x, 2, 32) ^ left_rot(x, 10, 32) ^ left_rot(x, 18, 32) ^ left_rot(x, 24, 32) def left_rot2(x): return x ^ left_rot(x, 8, 32) ^ left_rot(x, 14, 32) ^ left_rot(x, 22, 32) ^ left_rot(x, 30, 32) def SBOX(x): return (sbox0[x >> 24] << 24) | (sbox1[(x >> 16) & 0xff] << 16) | (sbox0[(x >> 8) & 0xff] << 8) | (sbox1[x & 0xff]) def F(R, x0, x1, x2): W = [0, 0, 0] W[0] = ((x0 ^ R[0]) + R[1]) & 0xffffffff W[1] = (R[0] + x1) & 0xffffffff W[2] = R[1] ^ x2 R[0] = SBOX(left_rot1((((W[1] & 0xffff) << 16) | (W[2] >> 16)))) R[1] = SBOX(left_rot2((((W[2] & 0xffff) << 16) | (W[1] >> 16)))) return W[0] def pack_key(s, k, iv): for i in range(15, -1, -1): s[i] = ((k & 0xff) << 23) | (D[i] << 8) | (iv & 0xff) k >>= 8 iv >>= 8 def zuc_run(k, iv, key_len): s = [0 for i in range(16)] R = [0, 0] # init mode pack_key(s, k, iv) for i in range(32): X = BitReorganization(s) W = F(R, X[0], X[1], X[2]) LFSRWithInitMode(s, W >> 1) ''' debug for j in X: print ('%x' % j, end = ' ') for j in R: print ('%x' % j, end = ' ') print ('%x' % W, end = ' ') print ('%x' % s[15]) ''' # work mode X = BitReorganization(s) F(R, X[0], X[1], X[2]) LFSRWithWorkMode(s) Z = [] for i in range(key_len): X = BitReorganization(s) Z.append(F(R, X[0], X[1], X[2]) ^ X[3]) LFSRWithWorkMode(s) return Z if __name__ == '__main__': a = zuc_run(0, 0, 2) print ('%x\n%x\n' % (a[0], a[1])) a = zuc_run(0xffffffffffffffffffffffffffffffff, 0xffffffffffffffffffffffffffffffff, 2) print ('%x\n%x\n' % (a[0], a[1])) a = zuc_run(0x3d4c4be96a82fdaeb58f641db17b455b, 0x84319aa8de6915ca1f6bda6bfbd8c766, 2) print ('%x\n%x\n' % (a[0], a[1])) a = zuc_run(0x338985fedc98cb99c9f9b346bd6cae56, 0x7dd3175c2374c7113bcbbfb339563172, 10) for a_i in a: print ('%x' % (a_i))
sbox0 = [62, 114, 91, 71, 202, 224, 0, 51, 4, 209, 84, 152, 9, 185, 109, 203, 123, 27, 249, 50, 175, 157, 106, 165, 184, 45, 252, 29, 8, 83, 3, 144, 77, 78, 132, 153, 228, 206, 217, 145, 221, 182, 133, 72, 139, 41, 110, 172, 205, 193, 248, 30, 115, 67, 105, 198, 181, 189, 253, 57, 99, 32, 212, 56, 118, 125, 178, 167, 207, 237, 87, 197, 243, 44, 187, 20, 33, 6, 85, 155, 227, 239, 94, 49, 79, 127, 90, 164, 13, 130, 81, 73, 95, 186, 88, 28, 74, 22, 213, 23, 168, 146, 36, 31, 140, 255, 216, 174, 46, 1, 211, 173, 59, 75, 218, 70, 235, 201, 222, 154, 143, 135, 215, 58, 128, 111, 47, 200, 177, 180, 55, 247, 10, 34, 19, 40, 124, 204, 60, 137, 199, 195, 150, 86, 7, 191, 126, 240, 11, 43, 151, 82, 53, 65, 121, 97, 166, 76, 16, 254, 188, 38, 149, 136, 138, 176, 163, 251, 192, 24, 148, 242, 225, 229, 233, 93, 208, 220, 17, 102, 100, 92, 236, 89, 66, 117, 18, 245, 116, 156, 170, 35, 14, 134, 171, 190, 42, 2, 231, 103, 230, 68, 162, 108, 194, 147, 159, 241, 246, 250, 54, 210, 80, 104, 158, 98, 113, 21, 61, 214, 64, 196, 226, 15, 142, 131, 119, 107, 37, 5, 63, 12, 48, 234, 112, 183, 161, 232, 169, 101, 141, 39, 26, 219, 129, 179, 160, 244, 69, 122, 25, 223, 238, 120, 52, 96] sbox1 = [85, 194, 99, 113, 59, 200, 71, 134, 159, 60, 218, 91, 41, 170, 253, 119, 140, 197, 148, 12, 166, 26, 19, 0, 227, 168, 22, 114, 64, 249, 248, 66, 68, 38, 104, 150, 129, 217, 69, 62, 16, 118, 198, 167, 139, 57, 67, 225, 58, 181, 86, 42, 192, 109, 179, 5, 34, 102, 191, 220, 11, 250, 98, 72, 221, 32, 17, 6, 54, 201, 193, 207, 246, 39, 82, 187, 105, 245, 212, 135, 127, 132, 76, 210, 156, 87, 164, 188, 79, 154, 223, 254, 214, 141, 122, 235, 43, 83, 216, 92, 161, 20, 23, 251, 35, 213, 125, 48, 103, 115, 8, 9, 238, 183, 112, 63, 97, 178, 25, 142, 78, 229, 75, 147, 143, 93, 219, 169, 173, 241, 174, 46, 203, 13, 252, 244, 45, 70, 110, 29, 151, 232, 209, 233, 77, 55, 165, 117, 94, 131, 158, 171, 130, 157, 185, 28, 224, 205, 73, 137, 1, 182, 189, 88, 36, 162, 95, 56, 120, 153, 21, 144, 80, 184, 149, 228, 208, 145, 199, 206, 237, 15, 180, 111, 160, 204, 240, 2, 74, 121, 195, 222, 163, 239, 234, 81, 230, 107, 24, 236, 27, 44, 128, 247, 116, 231, 255, 33, 90, 106, 84, 30, 65, 49, 146, 53, 196, 51, 7, 10, 186, 126, 14, 52, 136, 177, 152, 124, 243, 61, 96, 108, 123, 202, 211, 31, 50, 101, 4, 40, 100, 190, 133, 155, 47, 89, 138, 215, 176, 37, 172, 175, 18, 3, 226, 242] d = [17623, 9916, 25195, 4958, 22409, 13794, 28981, 2479, 19832, 12051, 27588, 6897, 24102, 15437, 30874, 18348] def lfsr_calc_s(s): return (left_rot(s[15], 15, 31) + left_rot(s[13], 17, 31) + left_rot(s[10], 21, 31) + left_rot(s[4], 20, 31) + left_rot(s[0], 8, 31) + s[0]) % 2147483647 def lfsr_with_init_mode(s, u): s.append(2147483647 if s[0] == 0 else (lfsr_calc_s(s) + u) % 2147483647) s.pop(0) def lfsr_with_work_mode(s): s.append(2147483647 if s[0] == 0 else lfsr_calc_s(s)) s.pop(0) def bit_reorganization(s): x = [0, 0, 0, 0] X[0] = (s[15] & 2147450880) << 1 | s[14] & 65535 X[1] = (s[11] & 65535) << 16 | s[9] >> 15 X[2] = (s[7] & 65535) << 16 | s[5] >> 15 X[3] = (s[2] & 65535) << 16 | s[0] >> 15 return X def left_rot(x, n, x_len): n %= x_len return (x << n | x >> x_len - n) & (1 << x_len) - 1 def left_rot1(x): return x ^ left_rot(x, 2, 32) ^ left_rot(x, 10, 32) ^ left_rot(x, 18, 32) ^ left_rot(x, 24, 32) def left_rot2(x): return x ^ left_rot(x, 8, 32) ^ left_rot(x, 14, 32) ^ left_rot(x, 22, 32) ^ left_rot(x, 30, 32) def sbox(x): return sbox0[x >> 24] << 24 | sbox1[x >> 16 & 255] << 16 | sbox0[x >> 8 & 255] << 8 | sbox1[x & 255] def f(R, x0, x1, x2): w = [0, 0, 0] W[0] = (x0 ^ R[0]) + R[1] & 4294967295 W[1] = R[0] + x1 & 4294967295 W[2] = R[1] ^ x2 R[0] = sbox(left_rot1((W[1] & 65535) << 16 | W[2] >> 16)) R[1] = sbox(left_rot2((W[2] & 65535) << 16 | W[1] >> 16)) return W[0] def pack_key(s, k, iv): for i in range(15, -1, -1): s[i] = (k & 255) << 23 | D[i] << 8 | iv & 255 k >>= 8 iv >>= 8 def zuc_run(k, iv, key_len): s = [0 for i in range(16)] r = [0, 0] pack_key(s, k, iv) for i in range(32): x = bit_reorganization(s) w = f(R, X[0], X[1], X[2]) lfsr_with_init_mode(s, W >> 1) " debug\n\t\tfor j in X:\n\t\t\tprint ('%x' % j, end = ' ')\n\t\tfor j in R:\n\t\t\tprint ('%x' % j, end = ' ')\n\t\tprint ('%x' % W, end = ' ')\n\t\tprint ('%x' % s[15])\n\t\t" x = bit_reorganization(s) f(R, X[0], X[1], X[2]) lfsr_with_work_mode(s) z = [] for i in range(key_len): x = bit_reorganization(s) Z.append(f(R, X[0], X[1], X[2]) ^ X[3]) lfsr_with_work_mode(s) return Z if __name__ == '__main__': a = zuc_run(0, 0, 2) print('%x\n%x\n' % (a[0], a[1])) a = zuc_run(340282366920938463463374607431768211455, 340282366920938463463374607431768211455, 2) print('%x\n%x\n' % (a[0], a[1])) a = zuc_run(81479061977974424224921903182177322331, 175715654859920078820355257736348878694, 2) print('%x\n%x\n' % (a[0], a[1])) a = zuc_run(68504690207351965561090037172763668054, 167249547905650318850990489600416690546, 10) for a_i in a: print('%x' % a_i)
# Description: Raw Strings if __name__ == '__main__': # Escape characters are honoured a_string = "this is\na string split\t\tand tabbed" print(a_string) # Raw string is printed as it is without interpreting the escape characters. # This is used a lot in regular expressions raw_string = r"this is\na string split\t\tand tabbed" print(raw_string) b_string = "this is" + chr(10) + "a string split" + chr(9) + chr(9) + "and tabbed" print(b_string) backslash_string = "this is a backslash \followed by some text" print(backslash_string) backslash_string = "this is a backslash \\followed by some text" print(backslash_string) error_string = r"this string ends with \\"
if __name__ == '__main__': a_string = 'this is\na string split\t\tand tabbed' print(a_string) raw_string = 'this is\\na string split\\t\\tand tabbed' print(raw_string) b_string = 'this is' + chr(10) + 'a string split' + chr(9) + chr(9) + 'and tabbed' print(b_string) backslash_string = 'this is a backslash \x0collowed by some text' print(backslash_string) backslash_string = 'this is a backslash \\followed by some text' print(backslash_string) error_string = 'this string ends with \\\\'
class Board(): def __init__(self, matrix): self.matrix = matrix self.cols = len(matrix) self.rows = len(matrix[0]) self.last = None self.matches = [] for i in range(self.rows): self.matches.append([False] * self.cols) def is_winner(self): for row in self.matches: if all(row): return True for j in range(self.cols): col = [self.matches[i][j] for i in range(self.rows)] if all(col): return True return False def add_number(self, number): for i in range(self.rows): for j in range(self.cols): if number == self.matrix[i][j]: self.matches[i][j] = True self.last = number def score(self): sum_unmarked = 0 for i in range(self.rows): for j in range(self.cols): sum_unmarked += self.matrix[i][j] * int(not self.matches[i][j]) return sum_unmarked * self.last def __str__(self): string = "" for i in range(self.rows): row_val = "" row_mat = "" for j in range(self.cols): val = (" " + str(self.matrix[i][j]))[-2:] mat = "x " if self.matches[i][j] else " " row_val += val + " " row_mat += mat + " " row = row_val + " | " + row_mat string += row + "\n" return string
class Board: def __init__(self, matrix): self.matrix = matrix self.cols = len(matrix) self.rows = len(matrix[0]) self.last = None self.matches = [] for i in range(self.rows): self.matches.append([False] * self.cols) def is_winner(self): for row in self.matches: if all(row): return True for j in range(self.cols): col = [self.matches[i][j] for i in range(self.rows)] if all(col): return True return False def add_number(self, number): for i in range(self.rows): for j in range(self.cols): if number == self.matrix[i][j]: self.matches[i][j] = True self.last = number def score(self): sum_unmarked = 0 for i in range(self.rows): for j in range(self.cols): sum_unmarked += self.matrix[i][j] * int(not self.matches[i][j]) return sum_unmarked * self.last def __str__(self): string = '' for i in range(self.rows): row_val = '' row_mat = '' for j in range(self.cols): val = (' ' + str(self.matrix[i][j]))[-2:] mat = 'x ' if self.matches[i][j] else ' ' row_val += val + ' ' row_mat += mat + ' ' row = row_val + ' | ' + row_mat string += row + '\n' return string
DATABASE_ENGINE = 'sqlite3' ROOT_URLCONF = 'tests.urls' INSTALLED_APPS = [ 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'tests.app', ]
database_engine = 'sqlite3' root_urlconf = 'tests.urls' installed_apps = ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'tests.app']
# using return in functions def my_function(name,surname): full_name = name.title() + " " + surname.title() return full_name print(my_function('selim', 'mh'))
def my_function(name, surname): full_name = name.title() + ' ' + surname.title() return full_name print(my_function('selim', 'mh'))
class Solution: def reverseWords(self, s: str) -> str: q = [] raw_split = s.split(' ') for raw_w in raw_split: w = raw_w.strip() if w: q.append(w) return ' '.join(q[::-1])
class Solution: def reverse_words(self, s: str) -> str: q = [] raw_split = s.split(' ') for raw_w in raw_split: w = raw_w.strip() if w: q.append(w) return ' '.join(q[::-1])
class RaddarException(Exception): pass class FailedToCloneRepoException(RaddarException): pass class FailedToWriteRepoException(RaddarException): pass
class Raddarexception(Exception): pass class Failedtoclonerepoexception(RaddarException): pass class Failedtowriterepoexception(RaddarException): pass
QUERIES = {} QUERIES['1A'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, agerange from vw_cpims_registration {ocbos} {oareas} {odate} group by gender, agerange ''' QUERIES['1B'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, CASE exit_status WHEN 'ACTIVE' THEN 'Active' ELSE 'Exited' END AS active_status from vw_cpims_registration {ocbos} {oareas} {odate} group by gender, active_status UNION SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Ever Registered' AS active_status from vw_cpims_registration {ocbos} {oareas} {odate} group by gender ''' QUERIES['1C'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, schoollevel as school_level from vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate} group by gender, schoollevel ''' QUERIES['1D'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Active' as services from vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate} group by gender UNION SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Has Birth Certificate' as services from vw_cpims_registration where exit_status='ACTIVE' and birthcert = 'HAS BIRTHCERT' {cbos} {areas} {fdate} group by gender UNION SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Has Disability' as services from vw_cpims_registration where exit_status='ACTIVE' and ovcdisability = 'HAS DISABILITY' {cbos} {areas} {fdate} group by gender UNION SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'School Going' as services from vw_cpims_registration where exit_status='ACTIVE' and schoollevel != 'Not in School' {cbos} {areas} {fdate} group by gender ''' QUERIES['1E'] = ''' Select count(distinct(cpims_ovc_id)) AS dcount, gender as sex_id, CASE when ovchivstatus='POSITIVE' THEN 'HIV Status +Ve' when ovchivstatus='NEGATIVE' THEN 'HIV Status -Ve' when ovchivstatus='NOT KNOWN' THEN 'HIV Status Unknown' when ovchivstatus='HIV Test Not Required' THEN 'HIV Test not Required' when ovchivstatus='HIV Referred For Testing' THEN 'HIV Referred For Testing' ELSE 'Others' END AS hivstat from vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate} group by gender, ovchivstatus ''' QUERIES['1F'] = ''' SELECT count(cpims_ovc_id) as dcount, gender as sex_id, eligibility from vw_cpims_registration {ocbos} {oareas} {odate} group by gender, eligibility ''' QUERIES['1G'] = ''' SELECT count(cpims_ovc_id) as dcount, gender as sex_id, exit_reason from vw_cpims_registration where exit_status = 'EXITED' {cbos} {areas} {fdate} group by gender, exit_reason order by count(cpims_ovc_id) desc ''' QUERIES['1H'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'OVC Registration' as services from vw_cpims_registration where exit_status = 'ACTIVE' {cbos} {areas} {dates} group by gender UNION SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'OVC Exit' as services from vw_cpims_registration where exit_status = 'EXITED' {cbos} {areas} {dates} group by gender ''' QUERIES['2A'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Active' as hivstat from vw_cpims_registration where exit_status='ACTIVE' {cbos} {fdate} group by gender UNION Select count(distinct(cpims_ovc_id)) AS dcount, gender as sex_id, 'Positive' as hivstat from vw_cpims_registration where exit_status='ACTIVE' and ovchivstatus='POSITIVE' {cbos} {fdate} group by gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'On ART' as hivstat from vw_cpims_registration where exit_status='ACTIVE' and ovchivstatus='POSITIVE' AND artstatus='ART' {cbos} {fdate} group by gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'VL Accessed' as hivstat from vw_cpims_viral_load {ocbos} group by gender UNION Select count(distinct(v.cpims_ovc_id)) as dcount, v.gender as sex_id, 'Current VL' as hivstat from vw_cpims_viral_load v inner join ( select cpims_ovc_id, max(date_of_event) as most_current_vl_date from vw_cpims_viral_load group by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id and v.date_of_event=vl.most_current_vl_date where current_date - vl.most_current_vl_date <= 400 {vcbos} group by v.gender UNION Select count(distinct(v.cpims_ovc_id)) AS dcount, v.gender as sex_id, 'Suppressed' as hivstat from vw_cpims_viral_load v inner join ( select cpims_ovc_id, max(date_of_event) as most_current_vl_date from vw_cpims_viral_load group by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id and v.date_of_event=vl.most_current_vl_date where current_date - vl.most_current_vl_date <= 400 and v.viral_load < 1001 {vcbos} group by v.gender UNION Select count(distinct(v.cpims_ovc_id)) AS dcount, v.gender as sex_id, 'Not Suppressed' as hivstat from vw_cpims_viral_load v inner join ( select cpims_ovc_id, max(date_of_event) as most_current_vl_date from vw_cpims_viral_load group by cpims_ovc_id ) vl on v.cpims_ovc_id=vl.cpims_ovc_id and v.date_of_event=vl.most_current_vl_date where current_date - vl.most_current_vl_date <=400 and v.viral_load > 1000 {vcbos} group by v.gender ''' QUERIES['2B'] = ''' Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, agerange from vw_cpims_viral_load where (current_date - date_of_event) < 401 and viral_load > 10000 {cbos} group by gender, agerange ''' QUERIES['2C'] = ''' select sum(x.cnt) as dcount, x.gender as sex_id, 'OVC_SERV' as hivstat from ( Select count(distinct(cpims_ovc_id)) as cnt, gender from vw_cpims_active_beneficiary {ocbos} group by gender UNION ALL Select count(distinct(cpims_ovc_id)), gender from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400 AND cpara_score = 17 {cbos} group by gender ) x group by x.gender UNION Select count(distinct(cpims_ovc_id)) AS dcount, gender as sex_id, CASE when ovchivstatus='POSITIVE' THEN 'HIV Status +Ve' when ovchivstatus='NEGATIVE' THEN 'HIV Status -Ve' when ovchivstatus='NOT KNOWN' THEN 'HIV Status Unknown' when ovchivstatus='HIV Test Not Required' THEN 'HIV Test not Required' when ovchivstatus='HIV Referred For Testing' THEN 'HIV Referred For Testing' ELSE 'Others' END AS hivstat from vw_cpims_registration where cpims_ovc_id in (select distinct(x.cpims_ovc_id) from ( Select distinct(cpims_ovc_id) from vw_cpims_active_beneficiary {ocbos} UNION ALL Select distinct(cpims_ovc_id) from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400 AND cpara_score = 17 {cbos} ) x) and exit_status='ACTIVE' {cbos} {areas} {fdate} group by gender, ovchivstatus ''' QUERIES['2D'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, 'Male' as sex_id, 'HIV Status' as hivstat from vw_cpims_registration where exit_status='ACTIVE' {cbos} UNION Select count(distinct(cpims_ovc_id)) AS dcount, 'Male' as sex_id, 'ART Status' as hivstat from vw_cpims_registration where exit_status='ACTIVE' and ovchivstatus='POSITIVE' {cbos} UNION Select count(distinct(v.cpims_ovc_id)) as dcount, 'Male' as sex_id, 'Suppression' as hivstat from vw_cpims_viral_load v inner join ( select cpims_ovc_id, max(date_of_event) as most_current_vl_date from vw_cpims_viral_load group by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id and v.date_of_event=vl.most_current_vl_date where current_date - vl.most_current_vl_date <= 400 {vcbos} UNION Select count(distinct(cpims_ovc_id)) AS dcount, 'Female' as sex_id, 'HIV Status' as hivstat from vw_cpims_registration where exit_status='ACTIVE' and (ovchivstatus='POSITIVE' or ovchivstatus='NEGATIVE' or ovchivstatus='NOT KNOWN' or ovchivstatus='HIV Test Not Required' or ovchivstatus='HIV Referred For Testing') {cbos} UNION Select count(distinct(cpims_ovc_id)) as dcount, 'Female' as sex_id, 'ART Status' as hivstat from vw_cpims_registration where exit_status='ACTIVE' and ovchivstatus='POSITIVE' AND artstatus='ART' {cbos} UNION Select count(distinct(v.cpims_ovc_id)) AS dcount, 'Female' as sex_id, 'Suppression' as hivstat from vw_cpims_viral_load v inner join ( select cpims_ovc_id, max(date_of_event) as most_current_vl_date from vw_cpims_viral_load group by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id and v.date_of_event=vl.most_current_vl_date where current_date - vl.most_current_vl_date <= 400 and v.viral_load < 1001 {vcbos} ''' QUERIES['3A'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Active' as services from vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender UNION Select count(distinct(person_id)) AS dcount, gender as sex_id, 'Served Two Quarters' as services from vw_cpims_two_quarters where (current_date - date_of_event) <=400 {cbos} group by gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender, 'Case Plans' as services from vw_cpims_case_plan where (current_date - date_of_event) <= 400 {cbos} group by gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender, 'CPARA' as services from vw_cpims_cpara where (current_date - date_of_event) <= 400 {cbos} group by gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Graduated' as services from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400 AND cpara_score = 17 {cbos} group by gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Active Beneficiary' as services from vw_cpims_active_beneficiary {ocbos} group by gender UNION select sum(x.cnt) as dcount, x.gender as sex_id, 'OVC_SERV' as hivstat from ( Select count(distinct(cpims_ovc_id)) as cnt, gender from vw_cpims_active_beneficiary {ocbos} group by gender UNION ALL Select count(distinct(cpims_ovc_id)), gender from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400 AND cpara_score = 17 {cbos} group by gender ) x group by x.gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Exit without Graduation' as services from vw_cpims_registration where exit_status='ACTIVE' AND cpims_ovc_id NOT IN (select distinct(vw_cpims_registration.cpims_ovc_id) from vw_cpims_two_quarters ) {cbos} group by gender ''' QUERIES['3B'] = ''' Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, domain as services from vw_cpims_list_served {ocbos} group by gender, domain ''' QUERIES['3C'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'OVC Comprehensive' as services from vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender ''' QUERIES['3D'] = ''' Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, cpara_score as services from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400 {cbos} group by gender, cpara_score ''' QUERIES['3E'] = ''' Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, service as services from vw_cpims_list_served where {odates} {cbos} group by gender, service order by dcount desc ''' QUERIES['4A'] = ''' SELECT count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, 'Active' as services from vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender, 'Current Case Plan' as services from vw_cpims_case_plan where (current_date - date_of_event) <= 400 {cbos} group by gender UNION Select count(distinct(cpims_ovc_id)) as dcount, gender, 'Current CPARA' as services from vw_cpims_cpara where (current_date - date_of_event) <= 400 {cbos} group by gender ''' QUERIES['4B'] = ''' Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, graduationpath as services from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400 {cbos} group by gender, graduationpath; '''
queries = {} QUERIES['1A'] = '\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, agerange\nfrom vw_cpims_registration {ocbos} {oareas} {odate}\ngroup by gender, agerange\n' QUERIES['1B'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id,\nCASE exit_status WHEN 'ACTIVE' THEN 'Active'\nELSE 'Exited' END AS active_status\nfrom vw_cpims_registration {ocbos} {oareas} {odate}\ngroup by gender, active_status\nUNION\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Ever Registered' AS active_status\nfrom vw_cpims_registration {ocbos} {oareas} {odate}\ngroup by gender\n" QUERIES['1C'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, schoollevel as school_level\nfrom vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate}\ngroup by gender, schoollevel\n" QUERIES['1D'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Active' as services\nfrom vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate}\ngroup by gender\nUNION\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Has Birth Certificate' as services\nfrom vw_cpims_registration where exit_status='ACTIVE'\nand birthcert = 'HAS BIRTHCERT' {cbos} {areas} {fdate}\ngroup by gender\nUNION\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Has Disability' as services\nfrom vw_cpims_registration where exit_status='ACTIVE'\nand ovcdisability = 'HAS DISABILITY' {cbos} {areas} {fdate}\ngroup by gender\nUNION\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'School Going' as services\nfrom vw_cpims_registration where exit_status='ACTIVE'\nand schoollevel != 'Not in School' {cbos} {areas} {fdate}\ngroup by gender\n" QUERIES['1E'] = "\nSelect count(distinct(cpims_ovc_id)) AS dcount,\ngender as sex_id,\nCASE\nwhen ovchivstatus='POSITIVE' THEN 'HIV Status +Ve'\nwhen ovchivstatus='NEGATIVE' THEN 'HIV Status -Ve'\nwhen ovchivstatus='NOT KNOWN' THEN 'HIV Status Unknown'\nwhen ovchivstatus='HIV Test Not Required' THEN 'HIV Test not Required'\nwhen ovchivstatus='HIV Referred For Testing' THEN 'HIV Referred For Testing'\nELSE 'Others' END AS hivstat\nfrom vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate}\ngroup by gender, ovchivstatus\n" QUERIES['1F'] = '\nSELECT count(cpims_ovc_id) as dcount,\ngender as sex_id, eligibility\nfrom vw_cpims_registration {ocbos} {oareas} {odate}\ngroup by gender, eligibility\n' QUERIES['1G'] = "\nSELECT count(cpims_ovc_id) as dcount,\ngender as sex_id, exit_reason\nfrom vw_cpims_registration where exit_status = 'EXITED' {cbos} {areas} {fdate}\ngroup by gender, exit_reason order by count(cpims_ovc_id) desc\n" QUERIES['1H'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'OVC Registration' as services\nfrom vw_cpims_registration where exit_status = 'ACTIVE' {cbos} {areas} {dates}\ngroup by gender\nUNION\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'OVC Exit' as services\nfrom vw_cpims_registration where exit_status = 'EXITED' {cbos} {areas} {dates}\ngroup by gender\n" QUERIES['2A'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Active' as hivstat\nfrom vw_cpims_registration where exit_status='ACTIVE' {cbos} {fdate}\ngroup by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) AS dcount,\ngender as sex_id, 'Positive' as hivstat\nfrom vw_cpims_registration where exit_status='ACTIVE'\nand ovchivstatus='POSITIVE' {cbos} {fdate} group by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'On ART' as hivstat\nfrom vw_cpims_registration where exit_status='ACTIVE'\nand ovchivstatus='POSITIVE' AND artstatus='ART' {cbos} {fdate}\ngroup by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'VL Accessed' as hivstat\nfrom vw_cpims_viral_load {ocbos}\ngroup by gender\nUNION\nSelect count(distinct(v.cpims_ovc_id)) as dcount,\nv.gender as sex_id, 'Current VL' as hivstat\nfrom vw_cpims_viral_load v\ninner join (\nselect cpims_ovc_id, max(date_of_event) as most_current_vl_date\nfrom vw_cpims_viral_load\ngroup by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id\nand v.date_of_event=vl.most_current_vl_date\nwhere current_date - vl.most_current_vl_date <= 400 {vcbos}\ngroup by v.gender\nUNION\nSelect count(distinct(v.cpims_ovc_id)) AS dcount,\nv.gender as sex_id, 'Suppressed' as hivstat\nfrom vw_cpims_viral_load v\ninner join (\nselect cpims_ovc_id, max(date_of_event) as most_current_vl_date\nfrom vw_cpims_viral_load\ngroup by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id\nand v.date_of_event=vl.most_current_vl_date\nwhere current_date - vl.most_current_vl_date <= 400\nand v.viral_load < 1001 {vcbos} group by v.gender\nUNION\nSelect count(distinct(v.cpims_ovc_id)) AS dcount,\nv.gender as sex_id, 'Not Suppressed' as hivstat\nfrom vw_cpims_viral_load v\ninner join (\nselect cpims_ovc_id, max(date_of_event) as most_current_vl_date\nfrom vw_cpims_viral_load\ngroup by cpims_ovc_id ) vl on v.cpims_ovc_id=vl.cpims_ovc_id\nand v.date_of_event=vl.most_current_vl_date\nwhere current_date - vl.most_current_vl_date <=400\nand v.viral_load > 1000 {vcbos}\ngroup by v.gender\n" QUERIES['2B'] = '\nSelect count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, agerange\nfrom vw_cpims_viral_load where (current_date - date_of_event) < 401\nand viral_load > 10000 {cbos} group by gender, agerange\n' QUERIES['2C'] = "\nselect sum(x.cnt) as dcount, x.gender as sex_id,\n'OVC_SERV' as hivstat from\n(\nSelect count(distinct(cpims_ovc_id)) as cnt,\ngender from vw_cpims_active_beneficiary {ocbos}\ngroup by gender\nUNION ALL\nSelect count(distinct(cpims_ovc_id)), gender\nfrom vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400\nAND cpara_score = 17 {cbos} group by gender\n) x group by x.gender\nUNION\nSelect count(distinct(cpims_ovc_id)) AS dcount,\ngender as sex_id,\nCASE\nwhen ovchivstatus='POSITIVE' THEN 'HIV Status +Ve'\nwhen ovchivstatus='NEGATIVE' THEN 'HIV Status -Ve'\nwhen ovchivstatus='NOT KNOWN' THEN 'HIV Status Unknown'\nwhen ovchivstatus='HIV Test Not Required' THEN 'HIV Test not Required'\nwhen ovchivstatus='HIV Referred For Testing' THEN 'HIV Referred For Testing'\nELSE 'Others' END AS hivstat\nfrom vw_cpims_registration where cpims_ovc_id in\n(select distinct(x.cpims_ovc_id) from\n(\nSelect distinct(cpims_ovc_id)\nfrom vw_cpims_active_beneficiary {ocbos}\nUNION ALL\nSelect distinct(cpims_ovc_id)\nfrom vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400\nAND cpara_score = 17 {cbos}\n) x)\nand exit_status='ACTIVE' {cbos} {areas} {fdate}\ngroup by gender, ovchivstatus\n" QUERIES['2D'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\n'Male' as sex_id, 'HIV Status' as hivstat\nfrom vw_cpims_registration where exit_status='ACTIVE' {cbos}\nUNION\nSelect count(distinct(cpims_ovc_id)) AS dcount,\n'Male' as sex_id, 'ART Status' as hivstat\nfrom vw_cpims_registration where exit_status='ACTIVE'\nand ovchivstatus='POSITIVE' {cbos}\nUNION\nSelect count(distinct(v.cpims_ovc_id)) as dcount,\n'Male' as sex_id, 'Suppression' as hivstat\nfrom vw_cpims_viral_load v\ninner join (\nselect cpims_ovc_id, max(date_of_event) as most_current_vl_date\nfrom vw_cpims_viral_load\ngroup by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id\nand v.date_of_event=vl.most_current_vl_date\nwhere current_date - vl.most_current_vl_date <= 400 {vcbos}\nUNION\nSelect count(distinct(cpims_ovc_id)) AS dcount,\n'Female' as sex_id, 'HIV Status' as hivstat\nfrom vw_cpims_registration where exit_status='ACTIVE'\nand (ovchivstatus='POSITIVE' or ovchivstatus='NEGATIVE'\nor ovchivstatus='NOT KNOWN' or ovchivstatus='HIV Test Not Required'\nor ovchivstatus='HIV Referred For Testing') {cbos}\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\n'Female' as sex_id, 'ART Status' as hivstat\nfrom vw_cpims_registration where exit_status='ACTIVE'\nand ovchivstatus='POSITIVE' AND artstatus='ART' {cbos}\nUNION\nSelect count(distinct(v.cpims_ovc_id)) AS dcount,\n'Female' as sex_id, 'Suppression' as hivstat\nfrom vw_cpims_viral_load v\ninner join (\nselect cpims_ovc_id, max(date_of_event) as most_current_vl_date\nfrom vw_cpims_viral_load\ngroup by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id\nand v.date_of_event=vl.most_current_vl_date\nwhere current_date - vl.most_current_vl_date <= 400\nand v.viral_load < 1001 {vcbos}\n" QUERIES['3A'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Active' as services\nfrom vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender\nUNION\nSelect count(distinct(person_id)) AS dcount,\ngender as sex_id, 'Served Two Quarters' as services\nfrom vw_cpims_two_quarters where (current_date - date_of_event) <=400 {cbos}\ngroup by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender, 'Case Plans' as services\nfrom vw_cpims_case_plan where (current_date - date_of_event) <= 400 {cbos}\ngroup by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender, 'CPARA' as services\nfrom vw_cpims_cpara where (current_date - date_of_event) <= 400 {cbos}\ngroup by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Graduated' as services\nfrom vw_cpims_benchmark_achieved\nwhere (current_date - date_of_event) <= 400\nAND cpara_score = 17 {cbos}\ngroup by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Active Beneficiary' as services\nfrom vw_cpims_active_beneficiary {ocbos}\ngroup by gender\nUNION\nselect sum(x.cnt) as dcount, x.gender as sex_id,\n'OVC_SERV' as hivstat from\n(\nSelect count(distinct(cpims_ovc_id)) as cnt,\ngender from vw_cpims_active_beneficiary {ocbos}\ngroup by gender\nUNION ALL\nSelect count(distinct(cpims_ovc_id)), gender\nfrom vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400\nAND cpara_score = 17 {cbos} group by gender\n) x group by x.gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Exit without Graduation' as services\nfrom vw_cpims_registration where exit_status='ACTIVE'\nAND cpims_ovc_id NOT IN\n(select distinct(vw_cpims_registration.cpims_ovc_id)\nfrom vw_cpims_two_quarters ) {cbos}\ngroup by gender\n" QUERIES['3B'] = '\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, domain as services\nfrom vw_cpims_list_served {ocbos} group by gender, domain\n' QUERIES['3C'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'OVC Comprehensive' as services\nfrom vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender\n" QUERIES['3D'] = '\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, cpara_score as services\nfrom vw_cpims_benchmark_achieved\nwhere (current_date - date_of_event) <= 400 {cbos}\ngroup by gender, cpara_score\n' QUERIES['3E'] = '\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, service as services\nfrom vw_cpims_list_served\nwhere {odates} {cbos}\ngroup by gender, service\norder by dcount desc\n' QUERIES['4A'] = "\nSELECT count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, 'Active' as services\nfrom vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender, 'Current Case Plan' as services\nfrom vw_cpims_case_plan where (current_date - date_of_event) <= 400 {cbos}\ngroup by gender\nUNION\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender, 'Current CPARA' as services\nfrom vw_cpims_cpara where (current_date - date_of_event) <= 400 {cbos}\ngroup by gender\n" QUERIES['4B'] = '\nSelect count(distinct(cpims_ovc_id)) as dcount,\ngender as sex_id, graduationpath as services\nfrom vw_cpims_benchmark_achieved\nwhere (current_date - date_of_event) <= 400 {cbos}\ngroup by gender, graduationpath;\n'
def countingSort(array, place): size = len(array) output = [0] * size count = [0] * 10 for i in range(0, size): index = array[i] // place count[index % 10] += 1 for i in range(1, 10): count[i] += count[i - 1] i = size - 1 while i >= 0: index = array[i] // place output[count[index % 10] - 1] = array[i] count[index % 10] -= 1 i -= 1 for i in range(0, size): array[i] = output[i] def radixSort(array): max_element = max(array) place = 1 while max_element // place > 0: countingSort(array, place) place *= 10 alist = input('Enter the list of (nonnegative) numbers: ').split() data = [int(x) for x in alist] radixSort(data) print(data)
def counting_sort(array, place): size = len(array) output = [0] * size count = [0] * 10 for i in range(0, size): index = array[i] // place count[index % 10] += 1 for i in range(1, 10): count[i] += count[i - 1] i = size - 1 while i >= 0: index = array[i] // place output[count[index % 10] - 1] = array[i] count[index % 10] -= 1 i -= 1 for i in range(0, size): array[i] = output[i] def radix_sort(array): max_element = max(array) place = 1 while max_element // place > 0: counting_sort(array, place) place *= 10 alist = input('Enter the list of (nonnegative) numbers: ').split() data = [int(x) for x in alist] radix_sort(data) print(data)
####################################################################################### # 2.1 # change what is stored in the variables to another types of data # if a variable stores a string, change it to an int, or a boolean, or a float some_var = "hi" some_var2 = 1 some_var3 = True some_var4 = 1.32 ####################################################################################### # 2.2 # using the variables a, b, c, and d, print out the number 5 # use a combonation of +, -, *, / # ex. print(a + b - c * d) -> this is not the answer a = 10 b = 2 c = 3 d = 12 ####################################################################################### # 2.3 # create 2 variables with 1 holding your first name and 1 holding your last name # add them together with a space so it prints nicely # ex. print("Ben" + " " + "Campbell") -> "Ben Campbell" ####################################################################################### # 2.4 # Make 2 variables. 1 Variable will be a string and the other will be a number. Then # add them together and print them out. ####################################################################################### # 2.5 # Make 1 variable. Make another variable and set it equal to the other variable. Then # print out the second variable to see what is stored. ####################################################################################### # 2.6 # Make a math equation with at least a +, -, /, * and (). Store this equation in a # variable and then print out what is stored in the variable. ####################################################################################### # 2.7 # Create string, int, double, and boolean variables. Then print them all out.
some_var = 'hi' some_var2 = 1 some_var3 = True some_var4 = 1.32 a = 10 b = 2 c = 3 d = 12
load("@build_bazel_integration_testing//tools:import.bzl", "bazel_external_dependency_archive") def bazel_external_dependencies(rules_scala_version, rules_scala_version_sha256): bazel_external_dependency_archive( name = "io_bazel_rules_scala_test", srcs = { rules_scala_version_sha256: [ "https://github.com/wix/rules_scala/archive/%s.zip" % rules_scala_version, ], "3023b07cc02f2b0217b2c04f8e636b396130b3a8544a8dfad498a19c3e57a863": [ "https://repo.maven.apache.org/maven2/org/scala-lang/scala-compiler/2.12.6/scala-compiler-2.12.6.jar" ], "f81d7144f0ce1b8123335b72ba39003c4be2870767aca15dd0888ba3dab65e98": [ "https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.12.6/scala-library-2.12.6.jar" ], "ffa70d522fc9f9deec14358aa674e6dd75c9dfa39d4668ef15bb52f002ce99fa": [ "https://repo.maven.apache.org/maven2/org/scala-lang/scala-reflect/2.12.6/scala-reflect-2.12.6.jar" ], "b416b5bcef6720da469a8d8a5726e457fc2d1cd5d316e1bc283aa75a2ae005e5": [ "http://central.maven.org/maven2/org/scalatest/scalatest_2.12/3.0.5/scalatest_2.12-3.0.5.jar" ], "57e25b4fd969b1758fe042595112c874dfea99dca5cc48eebe07ac38772a0c41": [ "http://central.maven.org/maven2/org/scalactic/scalactic_2.12/3.0.5/scalactic_2.12-3.0.5.jar" ], "f877d304660ac2a142f3865badfc971dec7ed73c747c7f8d5d2f5139ca736513": [ "http://central.maven.org/maven2/commons/io/commons-io/2.6/commons-io-2.6.jar" ], "8d7ec605ca105747653e002bfe67bddba90ab964da697aaa5daa1060923585db": [ "http://central.maven.org/maven2/com/google/protobuf/protobuf-java/3.1.0/protobuf-java-3.1.0.jar" ], "39097bdc47407232e0fe7eed4f2c175c067b7eda95873cb76ffa76f1b4c18895": [ "https://mirror.bazel.build/raw.githubusercontent.com/bazelbuild/bazel/0.17.1" + "/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt" ], } ) bazel_external_dependency_archive( name = "com_google_guava_guava_test", srcs = { "36a666e3b71ae7f0f0dca23654b67e086e6c93d192f60ba5dfd5519db6c288c8": [ "http://central.maven.org/maven2/com/google/guava/guava/20.0/guava-20.0.jar", ], } ) bazel_external_dependency_archive( name = "bazel_toolchains_test", srcs = { "f08758b646beea3b37dc9e07d63020cecd5f9d29f42de1cd60e9325e047c7103": [ "https://github.com/bazelbuild/bazel-toolchains/archive/719f8035a20997289727e16693acdebc8e918e28.tar.gz", ], } )
load('@build_bazel_integration_testing//tools:import.bzl', 'bazel_external_dependency_archive') def bazel_external_dependencies(rules_scala_version, rules_scala_version_sha256): bazel_external_dependency_archive(name='io_bazel_rules_scala_test', srcs={rules_scala_version_sha256: ['https://github.com/wix/rules_scala/archive/%s.zip' % rules_scala_version], '3023b07cc02f2b0217b2c04f8e636b396130b3a8544a8dfad498a19c3e57a863': ['https://repo.maven.apache.org/maven2/org/scala-lang/scala-compiler/2.12.6/scala-compiler-2.12.6.jar'], 'f81d7144f0ce1b8123335b72ba39003c4be2870767aca15dd0888ba3dab65e98': ['https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.12.6/scala-library-2.12.6.jar'], 'ffa70d522fc9f9deec14358aa674e6dd75c9dfa39d4668ef15bb52f002ce99fa': ['https://repo.maven.apache.org/maven2/org/scala-lang/scala-reflect/2.12.6/scala-reflect-2.12.6.jar'], 'b416b5bcef6720da469a8d8a5726e457fc2d1cd5d316e1bc283aa75a2ae005e5': ['http://central.maven.org/maven2/org/scalatest/scalatest_2.12/3.0.5/scalatest_2.12-3.0.5.jar'], '57e25b4fd969b1758fe042595112c874dfea99dca5cc48eebe07ac38772a0c41': ['http://central.maven.org/maven2/org/scalactic/scalactic_2.12/3.0.5/scalactic_2.12-3.0.5.jar'], 'f877d304660ac2a142f3865badfc971dec7ed73c747c7f8d5d2f5139ca736513': ['http://central.maven.org/maven2/commons/io/commons-io/2.6/commons-io-2.6.jar'], '8d7ec605ca105747653e002bfe67bddba90ab964da697aaa5daa1060923585db': ['http://central.maven.org/maven2/com/google/protobuf/protobuf-java/3.1.0/protobuf-java-3.1.0.jar'], '39097bdc47407232e0fe7eed4f2c175c067b7eda95873cb76ffa76f1b4c18895': ['https://mirror.bazel.build/raw.githubusercontent.com/bazelbuild/bazel/0.17.1' + '/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt']}) bazel_external_dependency_archive(name='com_google_guava_guava_test', srcs={'36a666e3b71ae7f0f0dca23654b67e086e6c93d192f60ba5dfd5519db6c288c8': ['http://central.maven.org/maven2/com/google/guava/guava/20.0/guava-20.0.jar']}) bazel_external_dependency_archive(name='bazel_toolchains_test', srcs={'f08758b646beea3b37dc9e07d63020cecd5f9d29f42de1cd60e9325e047c7103': ['https://github.com/bazelbuild/bazel-toolchains/archive/719f8035a20997289727e16693acdebc8e918e28.tar.gz']})
class Line: pic = None color = -1 def __init__(self, pic, color): self.pic = pic self.color = color def oct1(self, x0, y0, x1, y1): if (x0 > x1): x0, y0, x1, y1 = x1, y1, x0, y0 x = x0 y = y0 A = y1 - y0 B = x0 - x1 d = 2 * A + B while (x <= x1): self.pic.set(x, y, self.color) if (d > 0): y += 1 d += 2 * B x += 1 d += 2 * A def oct2(self, x0, y0, x1, y1): if (y0 > y1): x0, y0, x1, y1 = x1, y1, x0, y0 x = x0 y = y0 A = y1 - y0 B = x0 - x1 d = A + 2 * B while (y <= y1): self.pic.set(x, y, self.color) if (d < 0): x += 1 d += 2 * A y += 1 d += 2 * B def oct7(self, x0, y0, x1, y1): if (y1 > y0): x0, y0, x1, y1 = x1, y1, x0, y0 x = x0 y = y0 A = y1 - y0 B = x0 - x1 d = A - 2 * B while (y >= y1): self.pic.set(x, y, self.color) if (d > 0): x += 1 d += 2 * A y -= 1 d -= 2 * B def oct8(self, x0, y0, x1, y1): if (x0 > x1): x0, y0, x1, y1 = x1, y1, x0, y0 x = x0 y = y0 A = y1 - y0 B = x0 - x1 d = 2 * A - B while (x <= x1): self.pic.set(x, y, self.color) if (d < 0): y -= 1 d -= 2 * B x += 1 d += 2 * A def draw(self, x0, y0, x1, y1): try: m = (y1 - y0) / (x1 - x0) except ZeroDivisionError: m = 2 if (1 <= m): self.oct2(x0, y0, x1, y1) elif (0 <= m < 1): self.oct1(x0, y0, x1, y1) elif (-1 <= m < 0): self.oct8(x0, y0, x1, y1) else: self.oct7(x0, y0, x1, y1) def draw(self, matrix): matrix = matrix.getContent() for i in range(matrix.getEdges()): self.draw(matrix[0][2 * i], matrix[1][2 * i], matrix[0][2 * i + 1], matrix[1][2 * i + 1])
class Line: pic = None color = -1 def __init__(self, pic, color): self.pic = pic self.color = color def oct1(self, x0, y0, x1, y1): if x0 > x1: (x0, y0, x1, y1) = (x1, y1, x0, y0) x = x0 y = y0 a = y1 - y0 b = x0 - x1 d = 2 * A + B while x <= x1: self.pic.set(x, y, self.color) if d > 0: y += 1 d += 2 * B x += 1 d += 2 * A def oct2(self, x0, y0, x1, y1): if y0 > y1: (x0, y0, x1, y1) = (x1, y1, x0, y0) x = x0 y = y0 a = y1 - y0 b = x0 - x1 d = A + 2 * B while y <= y1: self.pic.set(x, y, self.color) if d < 0: x += 1 d += 2 * A y += 1 d += 2 * B def oct7(self, x0, y0, x1, y1): if y1 > y0: (x0, y0, x1, y1) = (x1, y1, x0, y0) x = x0 y = y0 a = y1 - y0 b = x0 - x1 d = A - 2 * B while y >= y1: self.pic.set(x, y, self.color) if d > 0: x += 1 d += 2 * A y -= 1 d -= 2 * B def oct8(self, x0, y0, x1, y1): if x0 > x1: (x0, y0, x1, y1) = (x1, y1, x0, y0) x = x0 y = y0 a = y1 - y0 b = x0 - x1 d = 2 * A - B while x <= x1: self.pic.set(x, y, self.color) if d < 0: y -= 1 d -= 2 * B x += 1 d += 2 * A def draw(self, x0, y0, x1, y1): try: m = (y1 - y0) / (x1 - x0) except ZeroDivisionError: m = 2 if 1 <= m: self.oct2(x0, y0, x1, y1) elif 0 <= m < 1: self.oct1(x0, y0, x1, y1) elif -1 <= m < 0: self.oct8(x0, y0, x1, y1) else: self.oct7(x0, y0, x1, y1) def draw(self, matrix): matrix = matrix.getContent() for i in range(matrix.getEdges()): self.draw(matrix[0][2 * i], matrix[1][2 * i], matrix[0][2 * i + 1], matrix[1][2 * i + 1])
def test_signal_url_total_length(ranker): rank = lambda url: ranker.client.get_signal_value_from_url("url_total_length", url) rank_long = rank("http://www.verrrryyyylongdomain.com/very-long-url-xxxxxxxxxxxxxx.html") rank_short = rank("https://en.wikipedia.org/wiki/Maceo_Parker") rank_min = rank("http://t.co") assert 0 <= rank_long < rank_short < rank_min <= 1 def test_signal_url_path_length(ranker): rank = lambda url: ranker.client.get_signal_value_from_url("url_path_length", url) rank_hp = rank("http://www.longdomain.com") rank_hp2 = rank("http://www.domain.com/") assert rank_hp == rank_hp2 rank_subpage = rank("http://t.co/p") assert rank_subpage < rank_hp rank_subpage_query = rank("http://t.co/p?q=1") assert rank_subpage_query < rank_subpage
def test_signal_url_total_length(ranker): rank = lambda url: ranker.client.get_signal_value_from_url('url_total_length', url) rank_long = rank('http://www.verrrryyyylongdomain.com/very-long-url-xxxxxxxxxxxxxx.html') rank_short = rank('https://en.wikipedia.org/wiki/Maceo_Parker') rank_min = rank('http://t.co') assert 0 <= rank_long < rank_short < rank_min <= 1 def test_signal_url_path_length(ranker): rank = lambda url: ranker.client.get_signal_value_from_url('url_path_length', url) rank_hp = rank('http://www.longdomain.com') rank_hp2 = rank('http://www.domain.com/') assert rank_hp == rank_hp2 rank_subpage = rank('http://t.co/p') assert rank_subpage < rank_hp rank_subpage_query = rank('http://t.co/p?q=1') assert rank_subpage_query < rank_subpage
terms=int(input("Enter the number of terms:")) a, b= 0, 1 count=0 if terms <= 0: print("Please enter a positive number") elif terms == 1: print("The fibonacci series upto",terms) print(a) else: print("The fabinocci series upto",terms,"terms is:") while count < terms: print(a, end=" ") c=a+b a=b b=c count+=1
terms = int(input('Enter the number of terms:')) (a, b) = (0, 1) count = 0 if terms <= 0: print('Please enter a positive number') elif terms == 1: print('The fibonacci series upto', terms) print(a) else: print('The fabinocci series upto', terms, 'terms is:') while count < terms: print(a, end=' ') c = a + b a = b b = c count += 1
OV2640_JPEG_INIT = [ [ 0xff, 0x00 ], [ 0x2c, 0xff ], [ 0x2e, 0xdf ], [ 0xff, 0x01 ], [ 0x3c, 0x32 ], [ 0x11, 0x04 ], [ 0x09, 0x02 ], [ 0x04, 0x28 ], [ 0x13, 0xe5 ], [ 0x14, 0x48 ], [ 0x2c, 0x0c ], [ 0x33, 0x78 ], [ 0x3a, 0x33 ], [ 0x3b, 0xfB ], [ 0x3e, 0x00 ], [ 0x43, 0x11 ], [ 0x16, 0x10 ], [ 0x39, 0x92 ], [ 0x35, 0xda ], [ 0x22, 0x1a ], [ 0x37, 0xc3 ], [ 0x23, 0x00 ], [ 0x34, 0xc0 ], [ 0x36, 0x1a ], [ 0x06, 0x88 ], [ 0x07, 0xc0 ], [ 0x0d, 0x87 ], [ 0x0e, 0x41 ], [ 0x4c, 0x00 ], [ 0x48, 0x00 ], [ 0x5B, 0x00 ], [ 0x42, 0x03 ], [ 0x4a, 0x81 ], [ 0x21, 0x99 ], [ 0x24, 0x40 ], [ 0x25, 0x38 ], [ 0x26, 0x82 ], [ 0x5c, 0x00 ], [ 0x63, 0x00 ], [ 0x61, 0x70 ], [ 0x62, 0x80 ], [ 0x7c, 0x05 ], [ 0x20, 0x80 ], [ 0x28, 0x30 ], [ 0x6c, 0x00 ], [ 0x6d, 0x80 ], [ 0x6e, 0x00 ], [ 0x70, 0x02 ], [ 0x71, 0x94 ], [ 0x73, 0xc1 ], [ 0x12, 0x40 ], [ 0x17, 0x11 ], [ 0x18, 0x43 ], [ 0x19, 0x00 ], [ 0x1a, 0x4b ], [ 0x32, 0x09 ], [ 0x37, 0xc0 ], [ 0x4f, 0x60 ], [ 0x50, 0xa8 ], [ 0x6d, 0x00 ], [ 0x3d, 0x38 ], [ 0x46, 0x3f ], [ 0x4f, 0x60 ], [ 0x0c, 0x3c ], [ 0xff, 0x00 ], [ 0xe5, 0x7f ], [ 0xf9, 0xc0 ], [ 0x41, 0x24 ], [ 0xe0, 0x14 ], [ 0x76, 0xff ], [ 0x33, 0xa0 ], [ 0x42, 0x20 ], [ 0x43, 0x18 ], [ 0x4c, 0x00 ], [ 0x87, 0xd5 ], [ 0x88, 0x3f ], [ 0xd7, 0x03 ], [ 0xd9, 0x10 ], [ 0xd3, 0x82 ], [ 0xc8, 0x08 ], [ 0xc9, 0x80 ], [ 0x7c, 0x00 ], [ 0x7d, 0x00 ], [ 0x7c, 0x03 ], [ 0x7d, 0x48 ], [ 0x7d, 0x48 ], [ 0x7c, 0x08 ], [ 0x7d, 0x20 ], [ 0x7d, 0x10 ], [ 0x7d, 0x0e ], [ 0x90, 0x00 ], [ 0x91, 0x0e ], [ 0x91, 0x1a ], [ 0x91, 0x31 ], [ 0x91, 0x5a ], [ 0x91, 0x69 ], [ 0x91, 0x75 ], [ 0x91, 0x7e ], [ 0x91, 0x88 ], [ 0x91, 0x8f ], [ 0x91, 0x96 ], [ 0x91, 0xa3 ], [ 0x91, 0xaf ], [ 0x91, 0xc4 ], [ 0x91, 0xd7 ], [ 0x91, 0xe8 ], [ 0x91, 0x20 ], [ 0x92, 0x00 ], [ 0x93, 0x06 ], [ 0x93, 0xe3 ], [ 0x93, 0x05 ], [ 0x93, 0x05 ], [ 0x93, 0x00 ], [ 0x93, 0x04 ], [ 0x93, 0x00 ], [ 0x93, 0x00 ], [ 0x93, 0x00 ], [ 0x93, 0x00 ], [ 0x93, 0x00 ], [ 0x93, 0x00 ], [ 0x93, 0x00 ], [ 0x96, 0x00 ], [ 0x97, 0x08 ], [ 0x97, 0x19 ], [ 0x97, 0x02 ], [ 0x97, 0x0c ], [ 0x97, 0x24 ], [ 0x97, 0x30 ], [ 0x97, 0x28 ], [ 0x97, 0x26 ], [ 0x97, 0x02 ], [ 0x97, 0x98 ], [ 0x97, 0x80 ], [ 0x97, 0x00 ], [ 0x97, 0x00 ], [ 0xc3, 0xed ], [ 0xa4, 0x00 ], [ 0xa8, 0x00 ], [ 0xc5, 0x11 ], [ 0xc6, 0x51 ], [ 0xbf, 0x80 ], [ 0xc7, 0x10 ], [ 0xb6, 0x66 ], [ 0xb8, 0xA5 ], [ 0xb7, 0x64 ], [ 0xb9, 0x7C ], [ 0xb3, 0xaf ], [ 0xb4, 0x97 ], [ 0xb5, 0xFF ], [ 0xb0, 0xC5 ], [ 0xb1, 0x94 ], [ 0xb2, 0x0f ], [ 0xc4, 0x5c ], [ 0xc0, 0x64 ], [ 0xc1, 0x4B ], [ 0x8c, 0x00 ], [ 0x86, 0x3D ], [ 0x50, 0x00 ], [ 0x51, 0xC8 ], [ 0x52, 0x96 ], [ 0x53, 0x00 ], [ 0x54, 0x00 ], [ 0x55, 0x00 ], [ 0x5a, 0xC8 ], [ 0x5b, 0x96 ], [ 0x5c, 0x00 ], [ 0xd3, 0x00 ], [ 0xc3, 0xed ], [ 0x7f, 0x00 ], [ 0xda, 0x00 ], [ 0xe5, 0x1f ], [ 0xe1, 0x67 ], [ 0xe0, 0x00 ], [ 0xdd, 0x7f ], [ 0x05, 0x00 ], [ 0x12, 0x40 ], [ 0xd3, 0x04 ], [ 0xc0, 0x16 ], [ 0xC1, 0x12 ], [ 0x8c, 0x00 ], [ 0x86, 0x3d ], [ 0x50, 0x00 ], [ 0x51, 0x2C ], [ 0x52, 0x24 ], [ 0x53, 0x00 ], [ 0x54, 0x00 ], [ 0x55, 0x00 ], [ 0x5A, 0x2c ], [ 0x5b, 0x24 ], [ 0x5c, 0x00 ], [ 0xff, 0xff ], ] OV2640_YUV422 = [ [ 0xFF, 0x00 ], [ 0x05, 0x00 ], [ 0xDA, 0x10 ], [ 0xD7, 0x03 ], [ 0xDF, 0x00 ], [ 0x33, 0x80 ], [ 0x3C, 0x40 ], [ 0xe1, 0x77 ], [ 0x00, 0x00 ], [ 0xff, 0xff ], ] OV2640_JPEG = [ [ 0xe0, 0x14 ], [ 0xe1, 0x77 ], [ 0xe5, 0x1f ], [ 0xd7, 0x03 ], [ 0xda, 0x10 ], [ 0xe0, 0x00 ], [ 0xFF, 0x01 ], [ 0x04, 0x08 ], [ 0xff, 0xff ], ] SENSORADDR = 0x30 PICBUFSIZE = 64
ov2640_jpeg_init = [[255, 0], [44, 255], [46, 223], [255, 1], [60, 50], [17, 4], [9, 2], [4, 40], [19, 229], [20, 72], [44, 12], [51, 120], [58, 51], [59, 251], [62, 0], [67, 17], [22, 16], [57, 146], [53, 218], [34, 26], [55, 195], [35, 0], [52, 192], [54, 26], [6, 136], [7, 192], [13, 135], [14, 65], [76, 0], [72, 0], [91, 0], [66, 3], [74, 129], [33, 153], [36, 64], [37, 56], [38, 130], [92, 0], [99, 0], [97, 112], [98, 128], [124, 5], [32, 128], [40, 48], [108, 0], [109, 128], [110, 0], [112, 2], [113, 148], [115, 193], [18, 64], [23, 17], [24, 67], [25, 0], [26, 75], [50, 9], [55, 192], [79, 96], [80, 168], [109, 0], [61, 56], [70, 63], [79, 96], [12, 60], [255, 0], [229, 127], [249, 192], [65, 36], [224, 20], [118, 255], [51, 160], [66, 32], [67, 24], [76, 0], [135, 213], [136, 63], [215, 3], [217, 16], [211, 130], [200, 8], [201, 128], [124, 0], [125, 0], [124, 3], [125, 72], [125, 72], [124, 8], [125, 32], [125, 16], [125, 14], [144, 0], [145, 14], [145, 26], [145, 49], [145, 90], [145, 105], [145, 117], [145, 126], [145, 136], [145, 143], [145, 150], [145, 163], [145, 175], [145, 196], [145, 215], [145, 232], [145, 32], [146, 0], [147, 6], [147, 227], [147, 5], [147, 5], [147, 0], [147, 4], [147, 0], [147, 0], [147, 0], [147, 0], [147, 0], [147, 0], [147, 0], [150, 0], [151, 8], [151, 25], [151, 2], [151, 12], [151, 36], [151, 48], [151, 40], [151, 38], [151, 2], [151, 152], [151, 128], [151, 0], [151, 0], [195, 237], [164, 0], [168, 0], [197, 17], [198, 81], [191, 128], [199, 16], [182, 102], [184, 165], [183, 100], [185, 124], [179, 175], [180, 151], [181, 255], [176, 197], [177, 148], [178, 15], [196, 92], [192, 100], [193, 75], [140, 0], [134, 61], [80, 0], [81, 200], [82, 150], [83, 0], [84, 0], [85, 0], [90, 200], [91, 150], [92, 0], [211, 0], [195, 237], [127, 0], [218, 0], [229, 31], [225, 103], [224, 0], [221, 127], [5, 0], [18, 64], [211, 4], [192, 22], [193, 18], [140, 0], [134, 61], [80, 0], [81, 44], [82, 36], [83, 0], [84, 0], [85, 0], [90, 44], [91, 36], [92, 0], [255, 255]] ov2640_yuv422 = [[255, 0], [5, 0], [218, 16], [215, 3], [223, 0], [51, 128], [60, 64], [225, 119], [0, 0], [255, 255]] ov2640_jpeg = [[224, 20], [225, 119], [229, 31], [215, 3], [218, 16], [224, 0], [255, 1], [4, 8], [255, 255]] sensoraddr = 48 picbufsize = 64
class Parent: value1="This is value 1" value2="This is value 2" class Child(Parent): pass parent=Parent() child=Child() print(parent.value1) print(child.value2)
class Parent: value1 = 'This is value 1' value2 = 'This is value 2' class Child(Parent): pass parent = parent() child = child() print(parent.value1) print(child.value2)
begin_unit comment|'# Copyright (c) 2016 Intel, Inc.' nl|'\n' comment|'# Copyright (c) 2013 OpenStack Foundation' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy of the License at' nl|'\n' comment|'#' nl|'\n' comment|'# http://www.apache.org/licenses/LICENSE-2.0' nl|'\n' comment|'#' nl|'\n' comment|'# Unless required by applicable law or agreed to in writing, software' nl|'\n' comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT' nl|'\n' comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the' nl|'\n' comment|'# License for the specific language governing permissions and limitations' nl|'\n' comment|'# under the License.' nl|'\n' nl|'\n' name|'from' name|'oslo_config' name|'import' name|'cfg' newline|'\n' nl|'\n' DECL|variable|debugger_group name|'debugger_group' op|'=' name|'cfg' op|'.' name|'OptGroup' op|'(' string|"'remote_debug'" op|',' nl|'\n' DECL|variable|title name|'title' op|'=' string|"'debugger options'" op|')' newline|'\n' nl|'\n' DECL|variable|host name|'host' op|'=' name|'cfg' op|'.' name|'StrOpt' op|'(' string|"'host'" op|',' nl|'\n' DECL|variable|help name|'help' op|'=' string|"'Debug host (IP or name) to connect. Note '" nl|'\n' string|"'that using the remote debug option changes how '" nl|'\n' string|"'Nova uses the eventlet library to support async IO. '" nl|'\n' string|"'This could result in failures that do not occur '" nl|'\n' string|"'under normal operation. Use at your own risk.'" op|')' newline|'\n' nl|'\n' DECL|variable|port name|'port' op|'=' name|'cfg' op|'.' name|'IntOpt' op|'(' string|"'port'" op|',' nl|'\n' DECL|variable|min name|'min' op|'=' number|'1' op|',' nl|'\n' DECL|variable|max name|'max' op|'=' number|'65535' op|',' nl|'\n' DECL|variable|help name|'help' op|'=' string|"'Debug port to connect. Note '" nl|'\n' string|"'that using the remote debug option changes how '" nl|'\n' string|"'Nova uses the eventlet library to support async IO. '" nl|'\n' string|"'This could result in failures that do not occur '" nl|'\n' string|"'under normal operation. Use at your own risk.'" op|')' newline|'\n' nl|'\n' DECL|variable|CLI_OPTS name|'CLI_OPTS' op|'=' op|'[' name|'host' op|',' name|'port' op|']' newline|'\n' nl|'\n' nl|'\n' DECL|function|register_cli_opts name|'def' name|'register_cli_opts' op|'(' name|'conf' op|')' op|':' newline|'\n' indent|' ' name|'conf' op|'.' name|'register_cli_opts' op|'(' name|'CLI_OPTS' op|',' name|'group' op|'=' name|'debugger_group' op|')' newline|'\n' nl|'\n' nl|'\n' DECL|function|list_opts dedent|'' name|'def' name|'list_opts' op|'(' op|')' op|':' newline|'\n' indent|' ' name|'return' op|'{' name|'debugger_group' op|':' name|'CLI_OPTS' op|'}' newline|'\n' dedent|'' endmarker|'' end_unit
begin_unit comment | '# Copyright (c) 2016 Intel, Inc.' nl | '\n' comment | '# Copyright (c) 2013 OpenStack Foundation' nl | '\n' comment | '# All Rights Reserved.' nl | '\n' comment | '#' nl | '\n' comment | '# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl | '\n' comment | '# not use this file except in compliance with the License. You may obtain' nl | '\n' comment | '# a copy of the License at' nl | '\n' comment | '#' nl | '\n' comment | '# http://www.apache.org/licenses/LICENSE-2.0' nl | '\n' comment | '#' nl | '\n' comment | '# Unless required by applicable law or agreed to in writing, software' nl | '\n' comment | '# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT' nl | '\n' comment | '# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the' nl | '\n' comment | '# License for the specific language governing permissions and limitations' nl | '\n' comment | '# under the License.' nl | '\n' nl | '\n' name | 'from' name | 'oslo_config' name | 'import' name | 'cfg' newline | '\n' nl | '\n' DECL | variable | debugger_group name | 'debugger_group' op | '=' name | 'cfg' op | '.' name | 'OptGroup' op | '(' string | "'remote_debug'" op | ',' nl | '\n' DECL | variable | title name | 'title' op | '=' string | "'debugger options'" op | ')' newline | '\n' nl | '\n' DECL | variable | host name | 'host' op | '=' name | 'cfg' op | '.' name | 'StrOpt' op | '(' string | "'host'" op | ',' nl | '\n' DECL | variable | help name | 'help' op | '=' string | "'Debug host (IP or name) to connect. Note '" nl | '\n' string | "'that using the remote debug option changes how '" nl | '\n' string | "'Nova uses the eventlet library to support async IO. '" nl | '\n' string | "'This could result in failures that do not occur '" nl | '\n' string | "'under normal operation. Use at your own risk.'" op | ')' newline | '\n' nl | '\n' DECL | variable | port name | 'port' op | '=' name | 'cfg' op | '.' name | 'IntOpt' op | '(' string | "'port'" op | ',' nl | '\n' DECL | variable | min name | 'min' op | '=' number | '1' op | ',' nl | '\n' DECL | variable | max name | 'max' op | '=' number | '65535' op | ',' nl | '\n' DECL | variable | help name | 'help' op | '=' string | "'Debug port to connect. Note '" nl | '\n' string | "'that using the remote debug option changes how '" nl | '\n' string | "'Nova uses the eventlet library to support async IO. '" nl | '\n' string | "'This could result in failures that do not occur '" nl | '\n' string | "'under normal operation. Use at your own risk.'" op | ')' newline | '\n' nl | '\n' DECL | variable | CLI_OPTS name | 'CLI_OPTS' op | '=' op | '[' name | 'host' op | ',' name | 'port' op | ']' newline | '\n' nl | '\n' nl | '\n' DECL | function | register_cli_opts name | 'def' name | 'register_cli_opts' op | '(' name | 'conf' op | ')' op | ':' newline | '\n' indent | ' ' name | 'conf' op | '.' name | 'register_cli_opts' op | '(' name | 'CLI_OPTS' op | ',' name | 'group' op | '=' name | 'debugger_group' op | ')' newline | '\n' nl | '\n' nl | '\n' DECL | function | list_opts dedent | '' name | 'def' name | 'list_opts' op | '(' op | ')' op | ':' newline | '\n' indent | ' ' name | 'return' op | '{' name | 'debugger_group' op | ':' name | 'CLI_OPTS' op | '}' newline | '\n' dedent | '' endmarker | '' end_unit
class Frame: __slots__ = ("name", "class_name", "line_no", "file_path") def __init__(self, name, class_name=None, line_no=None, file_path=None): self.name = name self.class_name = class_name self.line_no = line_no self.file_path = file_path
class Frame: __slots__ = ('name', 'class_name', 'line_no', 'file_path') def __init__(self, name, class_name=None, line_no=None, file_path=None): self.name = name self.class_name = class_name self.line_no = line_no self.file_path = file_path
# 6.Input and Range # Given an integer n, write a program that generates a dictionary with # entries from 1 to n. For each key i, the corresponding value should # be i*i. def range_dict(_max): my_dict = {} for i in range(1, _max + 1): my_dict[i] = i ** 2 return my_dict # or with dictionary Comprehension def range_dict2(_max): return {i: i ** 2 for i in range(1, _max + 1)} print(range_dict(10)) print(range_dict2(10)) # for n=10: # {1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100}
def range_dict(_max): my_dict = {} for i in range(1, _max + 1): my_dict[i] = i ** 2 return my_dict def range_dict2(_max): return {i: i ** 2 for i in range(1, _max + 1)} print(range_dict(10)) print(range_dict2(10))
# Holds permission data for a private race room def get_permission_info(server, race_private_info): permission_info = PermissionInfo() for admin_name in race_private_info.admin_names: for role in server.roles: if role.name.lower() == admin_name.lower(): permission_info.admin_roles.append(role) for member in server.members: if member.name.lower() == admin_name.lower(): permission_info.admins.append(member) for racer_name in race_private_info.racer_names: for member in server.members: if member.name.lower() == racer_name.lower(): permission_info.racers.append(member) return permission_info class PermissionInfo(object): def __init__(self): self.admins = [] self.admin_roles = [] self.racers = [] def is_admin(self, member): for role in member.roles: if role in self.admin_roles: return True return member in self.admins
def get_permission_info(server, race_private_info): permission_info = permission_info() for admin_name in race_private_info.admin_names: for role in server.roles: if role.name.lower() == admin_name.lower(): permission_info.admin_roles.append(role) for member in server.members: if member.name.lower() == admin_name.lower(): permission_info.admins.append(member) for racer_name in race_private_info.racer_names: for member in server.members: if member.name.lower() == racer_name.lower(): permission_info.racers.append(member) return permission_info class Permissioninfo(object): def __init__(self): self.admins = [] self.admin_roles = [] self.racers = [] def is_admin(self, member): for role in member.roles: if role in self.admin_roles: return True return member in self.admins
WORDLIST =\ ('dna', 'vor', 'how', 'hot', 'yud', 'fir', 'fit', 'fix', 'dsc', 'ate', 'ira', 'cup', 'fre', 'fry', 'had', 'has', 'hat', 'hav', 'old', 'fou', 'for', 'fox', 'foe', 'fob', 'foi', 'soo', 'son', 'pet', 'veo', 'vel', 'jim', 'bla', 'one', 'san', 'sad', 'say', 'sap', 'saw', 'sat', 'cim', 'ivy', 'wpi', 'pop', 'act', 'her', 'hey', 'hel', 'heh', 'ohn', 'wav', 'its', 'bye', 'bhi', 'cry', 'set', 'sep', 'sez', 'see', 'sea', 'seo', 'sem', 'vow', 'ago', 'age', 'evo', 'eve', 'try', 'tru', 'uea', 'odd', 'led', 'lee', 'leg', 'leo', 'let', 'bay', 'log', 'low', 'jug', 'jul', 'jay', 'jar', 'aes', 'btw', 'tlc', 'off', 'oft', 'web', 'wee', 'wed', 'wes', 'wer', 'wet', 'ink', 'ing', 'ina', 'hps', 'ale', 'ala', 'bro', 'ere', 'lab', 'lay', 'law', 'zen', 'kin', 'sue', 'sun', 'yew', 'ill', 'air', 'aim', 'aid', 'thy', 'thu', 'tho', 'the', 'way', 'wax', 'was', 'war', 'fog', 'gum', 'gus', 'guy', 'fbi', 'jan', 'ibm', 'car', 'caw', 'can', 'aon', 'not', 'nov', 'now', 'nor', 'nos', 'zap', 'yin', 'egg', 'cen', 'sri', 'lol', 'los', 'lot', 'you', 'mph', 'ask', 'ash', 'awe', 'ego', 'dia', 'asc', 'put', 'str', 'lie', 'lia', 'lib', 'lit', 'lip', 'wow', 'won', 'ads', 'phu', 'bon', 'eel', 'run', 'cue', 'nam', 'ech', 'mad', 'mal', 'ben', 'bel', 'beg', 'bed', 'arc', 'bet', 'she', 'ken', 'oak', 'esp', 'dug', 'eat', 'aug', 'neo', 'new', 'net', 'men', 'met', 'dry', 'ise', 'tyr', 'don', 'doc', 'dog', 'bar', 'bag', 'bad', 'ban', 'sam', 'kid', 'yep', 'yes', 'yer', 'yet', 'dio', 'did', 'die', 'dig', 'dip', 'box', 'boy', 'bot', 'bow', 'bob', 'bod', 'bog', 'fly', 'map', 'mas', 'mar', 'may', 'max', 'mac', 'mao', 'man', 'lsd', 'ort', 'orb', 'las', 'get', 'par', 'yrs', 'pay', 'pan', 'oir', 'moy', 'mor', 'mov', 'tap', 'eye', 'two', 'der', 'dew', 'del', 'dec', 'oil', 'gif', 'cfn', 'gas', 'gap', 'fur', 'raw', 'fun', 'ray', 'cut', 'win', 'big', 'bid', 'apt', 'bit', 'per', 'pen', 'ufo', 'lyr', 'hal', 'chi', 'chs', 'iii', 'afa', 'sip', 'tsp', 'dad', 'dai', 'das', 'day', 'cwn', 'red', 'quo', 'mid', 'mix', 'adf', 'add', 'est', 'dcw', 'buy', 'but', 'bud', 'pin', 'pig', 'our', 'pit', 'end', 'gom', 'god', 'sow', 'got', 'tos', 'top', 'tow', 'too', 'tom', 'toe', 'ran', 'rap', 'abc', 'oct', 'nut', 'mud', 'rit', 'via', 'ice', 'ahp', 'uri', 'tir', 'til', 'tim', 'tin', 'rom', 'rob', 'rod', 'ard', 'msg', 'ahn', 'shu', 'iad', 'iaa', 'iau', 'hug', 'and', 'ann', 'any', 'tip', 'tie', 'jun', 'cbs', 'hit', 'ley', 'all', 'ptv', 'far', 'fan', 'fal', 'fad', 'teh', 'ten', 'tea', 'sum', 'hig', 'nan', 'ieo', 'hip', 'his', 'him', 'art', 'are', 'arm', 'lap', 'key', 'dun', 'dub', 'due', 'rim', 'rig', 'rid', 'row', 'cit', 'cad', 'apr', 'use', 'feb', 'usa', 'few', 'tax', 'tao', 'sir', 'sit', 'six', 'sid', 'sin', 'out', 'who', 'why', 'ear', 'joy', 'job', 'joe', 'jog', 'bbi', 'bbs', 'non', 'nob', 'sky', 'own', 'owe', 'van', 'four', 'pack', 'lore', 'lord', 'dell', 'foul', 'hero', 'herb', 'hera', 'here', 'cult', 'dorn', 'unit', 'holy', 'hurt', 'hole', 'hold', 'wand', 'want', 'dyke', 'turn', 'wins', 'wind', 'wine', 'vary', 'inar', 'wast', 'wash', 'legs', 'tree', 'idle', 'apre', 'that', 'cops', 'camp', 'came', 'prif', 'busy', 'ment', 'rich', 'blew', 'fair', 'pads', 'fail', 'fain', 'best', 'lots', 'dorm', 'diff', 'slay', 'much', 'life', 'dave', 'lift', 'suas', 'doth', 'spin', 'topy', 'tune', 'ease', 'wrap', 'nova', 'jane', 'lays', 'dues', 'role', 'enya', 'yhvh', 'time', 'push', 'gown', 'jerk', 'sign', 'ordo', 'melt', 'love', 'spot', 'date', 'such', 'kong', 'torc', 'webs', 'plea', 'raed', 'lbrp', 'vote', 'open', 'city', 'bite', 'cite', 'note', 'take', 'knew', 'knee', 'ways', 'bade', 'salt', 'laws', 'slow', 'robe', 'many', 'twin', 'boar', 'boat', 'west', 'brow', 'monk', 'nile', 'knot', 'rest', 'sums', 'dark', 'dare', 'clad', 'meal', 'bond', 'wade', 'with', 'pull', 'rush', 'rags', 'gone', 'yoga', 'mass', 'adam', 'tain', 'nora', 'sand', 'sank', 'past', 'pass', 'full', 'hast', 'pick', 'luck', 'mord', 'more', 'door', 'doom', 'sent', 'male', 'bogs', 'scam', 'huge', 'hugh', 'hugs', 'bowl', 'bows', 'ally', 'odin', 'shop', 'isle', 'week', 'ness', 'crow', 'zeus', 'hyde', 'sell', 'self', 'play', 'plan', 'tips', 'gold', 'burp', 'rite', 'nope', 'fame', 'thou', 'thor', 'bell', 'sees', 'firm', 'fire', 'fung', 'owed', 'mote', 'owen', 'read', 'caer', 'unto', 'reap', 'hues', 'sion', 'pale', 'into', 'span', 'suit', 'linn', 'link', 'atom', 'line', 'chan', 'chao', 'chap', 'tara', 'bush', 'land', 'code', 'send', 'wipe', 'pout', 'race', 'bird', 'thin', 'stag', 'mens', 'next', 'rick', 'babe', 'baby', 'this', 'pour', 'bent', 'loch', 'rode', 'high', 'bend', 'rods', 'pair', 'tied', 'fits', 'ties', 'hawk', 'move', 'lamp', 'earl', 'ship', 'kiss', 'mete', 'shut', 'veov', 'muin', 'eryn', 'awen', 'soak', 'awed', 'soar', 'visa', 'face', 'brew', 'fact', 'hops', 'mute', 'tape', 'hope', 'fewr', 'reis', 'wire', 'ends', 'drum', 'drug', 'lush', 'site', 'lust', 'sits', 'juan', 'ball', 'dusk', 'upon', 'dust', 'lest', 'paul', 'five', 'does', 'naff', 'iris', 'asks', 'mere', 'veil', 'rule', 'cian', 'owes', 'horn', 'neat', 'bhur', 'plot', 'ploy', 'yard', 'word', 'wore', 'work', 'worn', 'nuts', 'hong', 'arch', 'then', 'them', 'thee', 'safe', 'bang', 'sack', 'they', 'ther', 'bank', 'nudd', 'tops', 'mojo', 'neck', 'airy', 'john', 'rath', 'nana', 'aunt', 'just', 'runs', 'gaul', 'rune', 'rung', 'away', 'bolt', 'brad', 'bran', 'tone', 'tong', 'tons', 'axis', 'easy', 'east', 'cons', 'cone', 'cong', 'muid', 'rail', 'evil', 'hand', 'hans', 'kept', 'gods', 'soap', 'dwyr', 'born', 'bore', 'hare', 'post', 'pays', 'lewd', 'breo', 'crys', 'true', 'iisi', 'isis', 'anew', 'mold', 'test', 'bedw', 'zone', 'slip', 'cost', 'buch', 'labs', 'live', 'club', 'clue', 'coll', 'cold', 'halt', 'evoe', 'half', 'hall', 'wont', 'drop', 'year', 'carl', 'card', 'care', 'size', 'pomp', 'than', 'fork', 'slan', 'loki', 'only', 'urdr', 'pray', 'aura', 'scot', 'ruby', 'joke', 'lite', 'noah', 'real', 'ream', 'lady', 'llew', 'vahv', 'wolf', 'your', 'area', 'ares', 'poor', 'peat', 'peak', 'pooh', 'pool', 'very', 'verb', 'bass', 'cues', 'dion', 'nine', 'alby', 'lyre', 'rude', 'kuno', 'help', 'soon', 'carn', 'held', 'eros', 'hine', 'fool', 'food', 'foot', 'tear', 'jaws', 'bhar', 'bast', 'bald', 'azif', 'dirt', 'base', 'dire', 'bash', 'misc', 'mist', 'ascs', 'grew', 'grey', 'greg', 'hips', 'pans', 'less', 'mell', 'hype', 'oobe', 'both', 'elsa', 'else', 'pact', 'look', 'loop', 'sham', 'used', 'uses', 'moby', 'ioho', 'game', 'some', 'lips', 'gaia', 'step', 'ache', 'eons', 'duly', 'dips', 'reed', 'hail', 'dull', 'info', 'hair', 'gaze', 'hint', 'draw', 'aser', 'mhol', 'drag', 'dram', 'nuns', 'wave', 'orov', 'jump', 'celt', 'cell', 'crab', 'ride', 'meet', 'fare', 'mode', 'ills', 'keep', 'keen', 'omen', 'bare', 'bard', 'need', 'able', 'wyrd', 'envy', 'tire', 'rash', 'tirs', 'gray', 'wish', 'grab', 'cuts', 'tenm', 'joys', 'tend', 'tent', 'sole', 'magi', 'magh', 'poem', 'poee', 'poet', 'ufos', 'mail', 'owns', 'well', 'bohr', 'sufi', 'dose', 'dair', 'dost', 'vide', 'kick', 'fate', 'lost', 'ring', 'roth', 'lose', 'page', 'shed', 'shea', 'hush', 'home', 'eris', 'eric', 'star', 'stay', 'stan', 'bays', 'void', 'vast', 'yack', 'even', 'ever', 'drew', 'omar', 'hiya', 'arms', 'maes', 'call', 'calm', 'type', 'tell', 'wars', 'warn', 'warm', 'room', 'roof', 'akin', 'akim', 'root', 'give', 'egos', 'deck', 'crew', 'meat', 'mead', 'went', 'side', 'bone', 'mean', 'nave', 'navy', 'aids', 'dawn', 'loud', 'hook', 'hoof', 'mini', 'seer', 'mind', 'mine', 'seed', 'seen', 'seem', 'seek', 'stop', 'earn', 'told', 'ears', 'said', 'vows', 'puts', 'tiny', 'neal', 'ugly', 'near', 'make', 'left', 'nota', 'save', 'nude', 'dean', 'deal', 'dead', 'dear', 'veda', 'burn', 'bury', 'down', 'lies', 'dowm', 'form', 'ford', 'fort', 'zeno', 'toss', 'dies', 'felt', 'fell', 'died', 'skip', 'mild', 'mile', 'skin', 'gaea', 'item', 'anna', 'adds', 'stem', 'wait', 'sake', 'thru', 'soul', 'pink', 'rays', 'idir', 'pine', 'till', 'pure', 'pins', 'idic', 'guys', 'grow', 'tale', 'tall', 'talk', 'ours', 'main', 'beil', 'rock', 'girt', 'girl', 'lone', 'fast', 'eyes', 'memo', 'lugh', 'orgy', 'were', 'lick', 'dash', 'pain', 'paid', 'beth', 'shot', 'show', 'data', 'mung', 'seat', 'sean', 'seal', 'ogma', 'nose', 'arts', 'mark', 'mars', 'mary', 'wake', 'manx', 'same', 'tout', 'pile', 'grip', 'grid', 'grin', 'mare', 'roam', 'road', 'gort', 'deer', 'deep', 'film', 'fill', 'sunk', 'fall', 'none', 'tuan', 'hour', 'maps', 'stir', 'sect', 'pens', 'late', 'good', 'otto', 'rank', 'harm', 'hark', 'hard', 'idea', 'fist', 'harp', 'dont', 'done', 'park', 'part', 'ages', 'most', 'fine', 'find', 'ruis', 'sill', 'vine', 'lion', 'acts', 'fang', 'afar', 'amam', 'bill', 'keys', 'task', 'howe', 'snow', 'snag', 'clan', 'back', 'lark', 'epic', 'from', 'trad', 'boys', 'cure', 'curl', 'yang', 'lend', 'papa', 'lens', 'lent', 'crop', 'body', 'sins', 'sinn', 'sink', 'sing', 'oval', 'fete', 'bind', 'koad', 'kids', 'mate', 'tide', 'have', 'text', 'gorm', 'mica', 'isha', 'beat', 'bear', 'beam', 'halo', 'pulp', 'bull', 'bulb', 'amke', 'hubs', 'file', 'deed', 'sets', 'llyr', 'lake', 'atha', 'like', 'heed', 'soft', 'heel', 'guff', 'host', 'tomb', 'wise', 'flys', 'goin', 'oral', 'yell', 'tibs', 'hath', 'hate', 'risk', 'siul', 'rise', 'nail', 'blue', 'hide', 'sung', 'path', 'must', 'join', 'norn', 'gate', 'mess', 'amid', 'over', 'fade', 'alex', 'each', 'laid', 'sane', 'nite', 'hang', 'free', 'fred', 'rain', 'days', 'heck', 'onto', 'tool', 'took', 'glow', 'flow', 'leis', 'pope', 'sage', 'pops', 'kali', 'weak', 'boss', 'wear', 'news', 'been', 'beer', 'jean', 'gave', 'gifs', 'gift', 'hunt', 'hung', 'cord', 'core', 'corn', 'corp', 'bath', 'rely', 'head', 'heal', 'heat', 'hear', 'trim', 'when', 'whem', 'indo', 'bile', 'town', 'cook', 'cool', 'says', 'port', 'hymn', 'goes', 'iron', 'plug', 'plus', 'yule', 'term', 'name', 'miss', 'view', 'cope', 'alan', 'copy', 'wide', 'oath', 'diug', 'duir', 'rent', 'duit', 'urge', 'sure', 'mbeo', 'trom', 'troy', 'hack', 'wood', 'wool', 'ozma', 'come', 'duty', 'pole', 'case', 'cash', 'cast', 'trip', 'lute', 'weep', 'kill', 'blow', 'blot', 'rose', 'lets', 'rosy', 'ross', 'node', 'mood', 'moon', 'quit', 'cent', 'gary', 'fish', 'wife', 'bapa', 'lack', 'dish', 'song', 'sons', 'hemp', 'list', 'rate', 'what', 'womb', 'flat', 'obod', 'mire', 'flag', 'glad', 'eden', 'omit', 'goal', 'okay', 'jove', 'inch', 'hill', 'feed', 'feel', 'feet', 'king', 'kind', 'danu', 'aims', 'dane', 'dana', 'gall', 'fond', 'font', 'luis', 'dumb', 'bark', 'mban', 'solo', 'sold', 'whom', 'edge', 'gems', 'also', 'pros', 'anne', 'prob', 'long', 'mock', 'nice', 'vice', 'once', 'gang', 'agus', 'fold', 'acid', 'folk', 'rede', 'duck', 'fron', 'cili', 'sort', 'sore', 'tthe', 'flew', 'nuit', 'york', 'nuin', 'obvd', 'cain', 'isbn', 'echo', 'july', 'deny', 'gain', 'fear', 'ones', 'spur', 'viet', 'walk', 'walt', 'lyin', 'mike', 'last', 'wilt', 'will', 'wild', 'thus', 'dual', 'thud', 'gets', 'yoou', 'wren', 'myth', 'know', 'leaf', 'lead', 'lean', 'leap', 'leat', 'obey', 'pike', 'rare', 'made', 'gaps', 'cake', 'mady', 'cave', 'book', 'sick', 'junk', 'agla', 'june', 'jung', 'sase', 'pods', 'woods', 'knelt', 'tired', 'pulse', 'atoms', 'china', 'uisci', 'norse', 'spoke', 'music', 'until', 'relax', 'glass', 'blade', 'pints', 'wrong', 'types', 'keeps', 'wales', 'thyme', 'fnord', 'arrow', 'bowls', 'mayan', 'adapt', 'sheet', 'nigel', 'dwale', 'spawn', 'sooth', 'alive', 'doors', 'henge', 'shall', 'wells', 'mouth', 'entry', 'shalt', 'grove', 'runic', 'gauge', 'theme', 'bliss', 'pelen', 'plate', 'plato', 'afall', 'rings', 'score', 'never', 'lamac', 'logic', 'argue', 'asked', 'raith', 'union', 'child', 'chill', 'tapes', 'split', 'josey', 'neter', 'veils', 'osman', 'posed', 'birth', 'bobby', 'steph', 'steps', 'right', 'crowd', 'creed', 'crown', 'bruig', 'nixon', 'nglas', 'waits', 'avail', 'untie', 'halls', 'happy', 'offer', 'batle', 'beech', 'otter', 'proud', 'exist', 'floor', 'warms', 'smell', 'palms', 'roimh', 'chain', 'chair', 'midst', 'macha', 'copse', 'edred', 'stays', 'exact', 'cooks', 'unify', 'leave', 'whome', 'badge', 'snack', 'egypt', 'owuld', 'alone', 'along', 'tasks', 'carol', 'angry', 'papal', 'films', 'scope', 'deign', 'honey', 'privy', 'stole', 'deity', 'limbo', 'apron', 'temen', 'deady', 'abide', 'quite', 'poems', 'dunno', 'monks', 'uriel', 'waist', 'sayer', 'prone', 'herds', 'nicer', 'alley', 'allen', 'aside', 'pages', 'drive', 'lotus', 'cloak', 'tears', 'going', 'imbas', 'touch', 'prime', 'where', 'mecca', 'clips', 'sites', 'acome', 'garda', 'spark', 'geese', 'wants', 'pinks', 'ascii', 'shuti', 'anseo', 'genie', 'lambs', 'nessa', 'being', 'world', 'snare', 'fives', 'brits', 'troth', 'lucid', 'refer', 'power', 'stone', 'niall', 'other', 'image', 'ciabh', 'myths', 'vanir', 'dirty', 'agree', 'tight', 'herbs', 'thorn', 'groom', 'hello', 'thorr', 'smile', 'cable', 'large', 'harry', 'small', 'hours', 'prior', 'pulls', 'trips', 'goeth', 'leary', 'learn', 'salty', 'bated', 'plant', 'plane', 'waves', 'scota', 'paper', 'scott', 'signs', 'trads', 'roots', 'isaac', 'found', 'eddas', 'ditch', 'zwack', 'rises', 'pairs', 'major', 'gazed', 'guess', 'heads', 'saint', 'grace', 'vocal', 'shops', 'virus', 'emyrs', 'seize', 'cover', 'coven', 'piper', 'xeper', 'wayne', 'cowan', 'beams', 'sunny', 'hilts', 'thoth', 'cease', 'river', 'movie', 'kneel', 'death', 'pagan', 'harps', 'whole', 'acted', 'devin', 'devil', 'teann', 'races', 'awake', 'error', 'cages', 'pound', 'sabha', 'chase', 'funny', 'cigar', 'alert', 'leaps', 'focal', 'picks', 'feces', 'kelly', 'ahura', 'quest', 'spine', 'scape', 'canst', 'maige', 'sighs', 'sight', 'pools', 'santa', 'doubt', 'opens', 'codes', 'evohe', 'swirl', 'sided', 'sides', 'holey', 'fresh', 'essay', 'totem', 'stops', 'young', 'mytle', 'darra', 'magic', 'marry', 'fewer', 'reich', 'imply', 'video', 'ithin', 'index', 'anton', 'punch', 'great', 'makes', 'maker', 'tools', 'folks', 'mabon', 'await', 'ombos', 'allow', 'rilla', 'decay', 'necht', 'betty', 'truth', 'doing', 'books', 'banal', 'ewige', 'venom', 'tempo', 'spill', 'could', 'david', 'blown', 'scene', 'stark', 'owner', 'blows', 'prank', 'start', 'stars', 'haven', 'steed', 'false', 'linda', 'bring', 'brink', 'pause', 'meant', 'bonds', 'lucky', 'stuff', 'exude', 'frame', 'liken', 'cense', 'marty', 'muine', 'beach', 'waste', 'eaton', 'groin', 'mutat', 'drink', 'audio', 'snake', 'flesh', 'gulls', 'rooms', 'photo', 'taunt', 'fools', 'criss', 'yearn', 'onnen', 'grids', 'thier', 'avoid', 'hadit', 'stage', 'seeds', 'burma', 'erect', 'roads', 'afoot', 'ovovo', 'yarns', 'gwion', 'count', 'calls', 'irish', 'jesse', 'tides', 'ghost', 'walks', 'worth', 'pinch', 'brill', 'above', 'sinks', 'pluto', 'items', 'study', 'adopt', 'dowth', 'total', 'dilly', 'reign', 'mages', 'india', 'knees', 'sever', 'after', 'uisce', 'greet', 'greek', 'green', 'south', 'worst', 'order', 'greed', 'break', 'bread', 'rocks', 'doled', 'flock', 'forty', 'forth', 'renew', 'comic', 'rated', 'mercy', 'binds', 'guilt', 'banes', 'reall', 'gravy', 'bruce', 'aesir', 'lewis', 'toast', 'elite', 'steel', 'nasty', 'steal', 'draws', 'props', 'drawn', 'terms', 'gable', 'trunk', 'wider', 'speak', 'ahead', 'beith', 'voice', 'wheel', 'horus', 'swell', 'hills', 'shout', 'board', 'night', 'mazes', 'hypoc', 'sends', 'humor', 'hodge', 'float', 'fight', 'palce', 'moors', 'dying', 'songs', 'dance', 'flash', 'turns', 'woven', 'upper', 'curse', 'argee', 'genes', 'trial', 'triad', 'extra', 'prove', 'super', 'ninny', 'gwynn', 'eidos', 'purge', 'heart', 'topic', 'heard', 'occur', 'means', 'write', 'nosed', 'wwhat', 'brain', 'whats', 'still', 'birds', 'forms', 'saxon', 'feats', 'james', 'couls', 'goose', 'fires', 'album', 'shown', 'space', 'shows', 'thong', 'blind', 'madam', 'beest', 'drove', 'sheep', 'dawns', 'baldr', 'muide', 'shady', 'angel', 'craig', 'anger', 'dread', 'begin', 'prick', 'shade', 'price', 'fifth', 'ratio', 'stair', 'title', 'skith', 'truly', 'loath', 'keyed', 'burst', 'sport', 'huggs', 'pluck', 'blame', 'hurts', 'comes', 'jeans', 'cares', 'crumb', 'these', 'trick', 'celts', 'conys', 'worry', 'sould', 'proto', 'media', 'whyte', 'medic', 'noble', 'fruit', 'heaps', 'speed', 'parts', 'verse', 'rules', 'ruler', 'gonna', 'early', 'using', 'stuns', 'ruled', 'faire', 'fairs', 'nuada', 'sixth', 'throw', 'lymph', 'fraud', 'tones', 'moved', 'oisin', 'salem', 'moves', 'valid', 'month', 'corps', 'nodes', 'robes', 'robed', 'coals', 'loose', 'arena', 'aball', 'aimed', 'lagoz', 'teach', 'takes', 'girds', 'taken', 'broke', 'hurry', 'lacks', 'tried', 'tries', 'banks', 'dream', 'match', 'fines', 'finer', 'vomit', 'payer', 'fully', 'bless', 'fairy', 'heavy', 'event', 'warts', 'since', 'dearg', 'issue', 'stead', 'inert', 'knots', 'elder', 'craps', 'horse', 'storm', 'tunic', 'bride', 'quote', 'clear', 'cleat', 'clean', 'blend', 'pucas', 'withe', 'close', 'duinn', 'vault', 'liked', 'stamp', 'empty', 'lived', 'packs', 'heute', 'while', 'smart', 'fleet', 'guide', 'reads', 'ready', 'grant', 'grand', 'older', 'cedar', 'olden', 'elect', 'elven', 'yeahm', 'maeve', 'march', 'wings', 'holes', 'modus', 'infra', 'feill', 'taboo', 'shine', 'faith', 'gnome', 'kwiat', 'alpha', 'frost', 'malik', 'fears', 'orbit', 'neils', 'bribe', 'etain', 'oliva', 'suits', 'suite', 'tonal', 'plays', 'chant', 'pitch', 'cloud', 'cosmo', 'drops', 'duile', 'hides', 'links', 'echos', 'trees', 'ruadh', 'feels', 'ogham', 'boils', 'outer', 'broom', 'abred', 'sword', 'hands', 'front', 'slide', 'chunk', 'cause', 'sneer', 'paten', 'shred', 'timed', 'spots', 'bears', 'ankle', 'final', 'lists', 'claim', 'screw', 'edric', 'based', 'bases', 'dodge', 'slows', 'joint', 'joins', 'years', 'state', 'dogon', 'merry', 'thumb', 'mindy', 'minds', 'admit', 'lofty', 'kings', 'tread', 'wills', 'treat', 'novel', 'chalk', 'bucks', 'began', 'begat', 'party', 'gaoth', 'skill', 'ought', 'clown', 'likes', 'peter', 'murry', 'inner', 'north', 'xerox', 'goals', 'leper', 'cells', 'limit', 'piece', 'beats', 'conan', 'lives', 'liver', 'aided', 'whose', 'sorry', 'fists', 'force', 'saved', 'niche', 'spiel', 'moral', 'barks', 'oscar', 'cuups', 'dogma', 'adult', 'flora', 'guise', 'foods', 'thine', 'laida', 'third', 'jacob', 'weeks', 'kesey', 'grade', 'girls', 'dwell', 'helen', 'bikka', 'silly', 'caled', 'tells', 'chest', 'atman', 'marie', 'doves', 'dover', 'debts', 'coast', 'bhall', 'cower', 'zones', 'sorta', 'sorts', 'weary', 'scuba', 'lowly', 'ether', 'lttle', 'basis', 'three', 'basic', 'threw', 'seven', 'shame', 'grown', 'bella', 'grows', 'bells', 'meets', 'smoke', 'yours', 'human', 'facts', 'nudge', 'meath', 'jeeah', 'dense', 'track', 'beget', 'faery', 'azure', 'nerve', 'coins', 'erinn', 'sagas', 'suebi', 'gland', 'vista', 'holly', 'aware', 'daily', 'souls', 'marks', 'round', 'seidr', 'visit', 'rigid', 'olive', 'bites', 'lords', 'crazy', 'agent', 'swore', 'wicca', 'waxen', 'maybe', 'block', 'serge', 'tales', 'shake', 'clans', 'group', 'thank', 'views', 'boats', 'ruddy', 'cough', 'thing', 'think', 'first', 'carry', 'murky', 'slept', 'fiery', 'gotta', 'kevin', 'squaw', 'trace', 'enter', 'aloud', 'tract', 'eadha', 'fills', 'ladle', 'black', 'helix', 'sidhe', 'hippo', 'hippy', 'skull', 'yield', 'dagda', 'dates', 'among', 'barry', 'sound', 'issac', 'handy', 'weave', 'conor', 'solve', 'gates', 'money', 'forge', 'adams', 'titan', 'erase', 'gross', 'ellis', 'lunar', 'knife', 'tease', 'mixed', 'vigil', 'strip', 'fates', 'rider', 'adler', 'gaels', 'hound', 'midhe', 'boons', 'casts', 'talks', 'those', 'furze', 'steve', 'angus', 'hogan', 'stood', 'garth', 'bible', 'liber', 'wiped', 'canon', 'sylph', 'halts', 'biodh', 'share', 'needs', 'sired', 'lythe', 'blood', 'kegan', 'heirs', 'bosom', 'balor', 'walls', 'ashes', 'token', 'house', 'deals', 'podge', 'print', 'least', 'paint', 'sated', 'rates', 'stirs', 'youth', 'built', 'couch', 'onset', 'build', 'flute', 'chart', 'charm', 'giant', 'gilly', 'celyn', 'ovate', 'aldus', 'rover', 'sigil', 'cakes', 'point', 'raise', 'inoke', 'solid', 'lingo', 'realm', 'spent', 'flags', 'spend', 'alder', 'gheal', 'shape', 'hated', 'hates', 'knock', 'dtoil', 'often', 'scale', 'smail', 'crone', 'goods', 'yorba', 'drama', 'piled', 'ounce', 'phase', 'grave', 'hoped', 'hopes', 'adair', 'metal', 'ellen', 'druim', 'druid', 'druis', 'wards', 'dhuit', 'querc', 'fitch', 'tombs', 'quert', 'helps', 'queen', 'rhyme', 'tinne', 'pipes', 'gimle', 'safer', 'drank', 'climb', 'proof', 'honor', 'named', 'drums', 'names', 'train', 'hints', 'fetch', 'bones', 'holds', 'orson', 'lines', 'linen', 'chief', 'lands', 'horns', 'bunch', 'labor', 'pangs', 'spell', 'cider', 'faidh', 'cures', 'sadly', 'scant', 'loved', 'draoi', 'lover', 'waken', 'hazel', 'eight', 'sally', 'gurus', 'staff', 'areas', 'organ', 'fixed', 'rowan', 'legis', 'equal', 'sexes', 'laugh', 'thsis', 'plain', 'value', 'esras', 'diety', 'whirr', 'again', 'usual', 'chord', 'seats', 'tough', 'spear', 'field', 'crops', 'raven', 'tests', 'testy', 'dirac', 'ozone', 'works', 'awash', 'prose', 'noise', 'panel', 'gifts', 'about', 'evoke', 'guard', 'hexed', 'globe', 'ivory', 'misty', 'glory', 'mists', 'ledge', 'pupil', 'sleep', 'paris', 'under', 'pride', 'every', 'venus', 'enjoy', 'seeks', 'druel', 'forum', 'stray', 'julia', 'would', 'raids', 'naive', 'phone', 'tampa', 'henry', 'shook', 'bothy', 'times', 'badly', 'canto', 'edits', 'diana', 'newly', 'wowed', 'sobek', 'pyres', 'awoke', 'sober', 'serve', 'gulfs', 'roles', 'aztec', 'flame', 'beket', 'mirth', 'beard', 'bards', 'pylon', 'cleff', 'clock', 'radio', 'queer', 'earth', 'spite', 'watch', 'tammy', 'haite', 'aught', 'beads', 'twice', 'shots', 'swept', 'habit', 'wakan', 'tommy', 'mazda', 'faced', 'fault', 'games', 'faces', 'trust', 'drugs', 'craft', 'catch', 'broth', 'wound', 'lusty', 'sings', 'welsh', 'cycle', 'ocean', 'torah', 'thick', 'suzan', 'judge', 'burns', 'rumor', 'apart', 'adieu', 'usher', 'armed', 'foote', 'khaki', 'choke', 'civil', 'class', 'stuck', 'solar', 'annwn', 'adore', 'check', 'eerie', 'navel', 'focus', 'leads', 'tanka', 'level', 'quick', 'doeth', 'fearn', 'cyber', 'colin', 'dried', 'spiro', 'reply', 'hairs', 'dazed', 'water', 'witch', 'boast', 'weird', 'isles', 'vivid', 'runes', 'tubes', 'today', 'altar', 'lazlo', 'cases', 'piano', 'wands', 'rufus', 'boris', 'nexus', 'sense', 'nuber', 'bigot', 'gulik', 'vital', 'rites', 'amuse', 'chips', 'swans', 'bound', 'opera', 'torch', 'torcs', 'begun', 'plans', 'eagle', 'flyer', 'place', 'swing', 'feign', 'given', 'white', 'circa', 'giver', 'gives', 'lacha', 'cards', 'mated', 'sells', 'ideas', 'ideal', 'falls', 'later', 'uncle', 'perch', 'cheap', 'dirge', 'crime', 'trade', 'olaus', 'naked', 'scots', 'fails', 'shiva', 'seers', 'quiet', 'cabal', 'color', 'deeds', 'abdul', 'cords', 'maire', 'shaft', 'mound', 'thses', 'arose', 'raibh', 'model', 'seems', 'kills', 'boyne', 'acute', 'inate', 'fount', 'tower', 'tarot', 'table', 'frees', 'legal', 'freed', 'raths', 'stand', 'hindu', 'amber', 'tribe', 'there', 'beret', 'grasp', 'grass', 'taste', 'tasty', 'abyss', 'wkshp', 'trash', 'brass', 'oriel', 'curve', 'ments', 'seals', 'woman', 'worse', 'awful', 'vibes', 'brief', 'texts', 'faint', 'wield', 'minor', 'knows', 'waxed', 'known', 'ouija', 'brown', 'arise', 'court', 'maith', 'cults', 'short', 'susan', 'style', 'abbey', 'might', 'alter', 'odubh', 'loops', 'huath', 'roofs', 'fancy', 'blank', 'story', 'comfy', 'syrup', 'store', 'pains', 'hotel', 'exert', 'oaken', 'alike', 'fionn', 'added', 'reach', 'react', 'niver', 'liath', 'lying', 'gains', 'wrote', 'blurb', 'latin', 'epona', 'herne', 'roman', 'finds', 'cynic', 'sweet', 'sweep', 'goats', 'brick', 'miles', 'apear', 'paths', 'flows', 'birch', 'lower', 'redes', 'tends', 'jumps', 'aloft', 'plaza', 'range', 'wanne', 'wanna', 'muzak', 'canal', 'files', 'cloth', 'filed', 'crane', 'freak', 'stick', 'rally', 'peace', 'gloss', 'risin', 'karma', 'broad', 'alien', 'winds', 'simon', 'abode', 'notes', 'dealt', 'dealy', 'noted', 'folds', 'poets', 'chuid', 'chose', 'lends', 'matov', 'apple', 'apply', 'grian', 'porch', 'women', 'roich', 'sakes', 'clues', 'asily', 'abuse', 'light', 'looks', 'quake', 'ships', 'crash', 'enemy', 'crass', 'feast', 'chaos', 'chaol', 'pours', 'hence', 'their', 'shell', 'scone', 'reeks', 'which', 'clasp', 'stove', 'utter', 'local', 'words', 'ended', 'truer', 'magus', 'favor', 'swift', 'grain', 'grail', 'tutor', 'ysgaw', 'anois', 'layer', 'motif', 'pikes', 'cross', 'unite', 'unity', 'units', 'slave', 'idris', 'cried', 'cries', 'tawny', 'press', 'gypsy', 'miami', 'loses', 'hosts', 'nagas', 'noose', 'pasts', 'urged', 'swear', 'sweat', 'brush', 'fired', 'siuil', 'funds', 'below', 'ailim', 'hymns', 'lance', 'kinds', 'cliff', 'yellow', 'verses', 'outwit', 'tingle', 'oceans', 'wooden', 'piling', 'ornate', 'second', 'sailed', 'errors', 'golden', 'strike', 'whorls', 'brings', 'hereby', 'locked', 'pursue', 'tuatha', 'exhale', 'unjust', 'travel', 'drying', 'beauty', 'youths', 'kokomo', 'preeve', 'hidden', 'easier', 'enrich', 'silver', 'rumour', 'barton', 'snakes', 'series', 'george', 'speeds', 'needed', 'master', 'listed', 'bitter', 'listen', 'danish', 'wisdom', 'doreen', 'showed', 'outlaw', 'endure', 'person', 'scummy', 'figger', 'object', 'letter', 'snares', 'brehon', 'mating', 'scream', 'saying', 'layout', 'louise', 'fetish', 'jaguar', 'greens', 'radius', 'result', 'hammer', 'stamps', 'extend', 'nature', 'rolled', 'extent', 'summat', 'gheall', 'worked', 'employ', 'played', 'things', 'format', 'beckon', 'babies', 'fairly', 'maxims', 'echoes', 'bergan', 'sleeps', 'prison', 'elders', 'online', 'shadow', 'unique', 'desire', 'remind', 'people', 'hoover', 'bottom', 'shakes', 'losing', 'bowing', 'collen', 'raised', 'danaan', 'beings', 'raises', 'shoots', 'joseph', 'utmost', 'inside', 'solong', 'proved', 'proven', 'oscail', 'intend', 'models', 'taurus', 'intent', 'cupped', 'recipe', 'choice', 'minute', 'amoral', 'skewed', 'solved', 'settle', 'erotic', 'freaks', 'ground', 'honour', 'carill', 'tyoing', 'saints', 'prefer', 'druids', 'helter', 'loving', 'visual', 'virtue', 'riders', 'nether', 'values', 'winter', 'mythos', 'missal', 'stress', 'briony', 'pulled', 'scents', 'aeonic', 'augury', 'course', 'derive', 'solace', 'dwarfs', 'nroogd', 'nation', 'amulet', 'thuinn', 'square', 'herard', 'astral', 'sorcha', 'shores', 'impure', 'routes', 'spoked', 'saving', 'spoken', 'clause', 'submit', 'mannan', 'loveth', 'typing', 'thetis', 'future', 'gwyned', 'russia', 'sophia', 'turned', 'buried', 'nymphs', 'towers', 'airing', 'crealm', 'bright', 'artist', 'borrow', 'priest', 'liable', 'vision', 'pisces', 'dexter', 'harvey', 'bureau', 'jumper', 'screen', 'planes', 'loudly', 'riddle', 'breath', 'enable', 'benoit', 'formed', 'photos', 'extant', 'former', 'tribal', 'region', 'zonked', 'flocks', 'pacing', 'summer', 'joyful', 'around', 'yearly', 'racial', 'divine', 'thinks', 'biased', 'phagos', 'dagdha', 'burial', 'legged', 'lively', 'gennep', 'cultic', 'buying', 'abused', 'naming', 'shevet', 'glenda', 'johnny', 'forgot', 'carved', 'novice', 'waving', 'caused', 'urbane', 'causes', 'paying', 'sabbat', 'laying', 'joined', 'healed', 'healer', 'seemed', 'method', 'dwells', 'legend', 'fergus', 'bestow', 'action', 'filial', 'select', 'casket', 'coyote', 'ghrian', 'stated', 'cosmic', 'staten', 'accept', 'states', 'gallon', 'pogrom', 'refuse', 'termed', 'gerald', 'hounds', 'olivia', 'misuse', 'always', 'truths', 'osiris', 'arrray', 'detect', 'waking', 'reduce', 'finish', 'scribe', 'really', 'missed', 'dianic', 'finnen', 'occurs', 'salute', 'belief', 'bedlam', 'murmur', 'reared', 'castle', 'number', 'fluxes', 'ulster', 'justly', 'warmly', 'stifle', 'wessex', 'uscias', 'barred', 'barren', 'impact', 'failed', 'factor', 'wiccan', 'weaved', 'peleus', 'weaver', 'insane', 'potent', 'europe', 'barely', 'agents', 'church', 'satire', 'lovest', 'admire', 'varies', 'triple', 'vanish', 'satyrs', 'survey', 'levels', 'recent', 'expend', 'papyri', 'mandan', 'couple', 'falcon', 'formal', 'facets', 'yields', 'tribes', 'spring', 'bounce', 'mighty', 'behave', 'dating', 'temple', 'clancy', 'pietra', 'repaid', 'sneaky', 'mythic', 'custom', 'inches', 'jewish', 'pastor', 'posted', 'horned', 'mature', 'pineal', 'purges', 'fixing', 'bianca', 'unplug', 'scotch', 'walked', 'purged', 'oracle', 'gleini', 'menace', 'having', 'gossip', 'garden', 'timely', 'pledge', 'fables', 'victor', 'waning', 'indian', 'orainn', 'engage', 'stairs', 'defeat', 'quests', 'eleven', 'pencil', 'zimmer', 'bodily', 'pieces', 'chakra', 'martyr', 'senach', 'animal', 'blocks', 'tomato', 'shapes', 'chosen', 'traced', 'fields', 'statis', 'jagged', 'wander', 'motifs', 'perish', 'greedy', 'surely', 'thrust', 'length', 'system', 'norton', 'quarry', 'bodrun', 'aztecs', 'gently', 'gentle', 'viewed', 'korean', 'sirius', 'device', 'rubric', 'decade', 'smacks', 'should', 'riding', 'handle', 'summon', 'rapped', 'needto', 'galaxy', 'gnomes', 'getyou', 'ollomh', 'engulf', 'waseth', 'dunnan', 'banish', 'basket', 'hahaha', 'tattoo', 'denial', 'spends', 'colour', 'strive', 'warded', 'height', 'become', 'aillil', 'singin', 'wields', 'gained', 'sister', 'chrome', 'suited', 'assess', 'immune', 'camden', 'heresy', 'apollo', 'tossed', 'places', 'smooth', 'placed', 'rubble', 'denote', 'deadly', 'behold', 'monday', 'chance', 'lasted', 'defend', 'oldest', 'davies', 'rocnat', 'chapel', 'upload', 'gaelic', 'totems', 'follow', 'equals', 'secure', 'highly', 'dannan', 'groves', 'gloria', 'impair', 'chilly', 'verify', 'coined', 'retain', 'office', 'devote', 'pascal', 'denver', 'versus', 'lifted', 'kneels', 'evolve', 'hosted', 'hazels', 'sprigg', 'alskog', 'thuban', 'raisin', 'oppose', 'eremon', 'rooted', 'nooses', 'emblem', 'albert', 'jingle', 'wasted', 'gwynyd', 'target', 'scenes', 'seated', 'powers', 'return', 'manner', 'forced', 'latter', 'forces', 'magnum', 'maiden', 'lindow', 'oftenj', 'hindic', 'notion', 'echlyn', 'subtle', 'latent', 'masons', 'vowels', 'roinnt', 'cattle', 'imbolg', 'imbolc', 'pasted', 'unable', 'arcane', 'accord', 'unfold', 'relics', 'warmth', 'duties', 'excite', 'abrupt', 'vernal', 'avoids', 'depict', 'faiths', 'humble', 'humbly', 'indigo', 'quoted', 'newton', 'quotes', 'thanks', 'victim', 'swears', 'hallow', 'spread', 'jehana', 'viking', 'usable', 'alther', 'libhse', 'scaoil', 'purple', 'denied', 'framed', 'theirs', 'months', 'treble', 'amidst', 'lowest', 'rabbis', 'injury', 'veiled', 'flecks', 'lugaid', 'prayed', 'gather', 'manure', 'prayer', 'shrine', 'scored', 'pefect', 'murias', 'matron', 'global', 'battle', 'rhythm', 'terror', 'eliade', 'drakes', 'appear', 'aneris', 'shared', 'appeal', 'muslin', 'change', 'flames', 'pillow', 'marked', 'marker', 'rarely', 'market', 'salted', 'angels', 'slogan', 'decked', 'social', 'purity', 'heroes', 'indeed', 'aiding', 'selves', 'window', 'norway', 'domain', 'happen', 'opened', 'orphic', 'opener', 'cycles', 'honest', 'styles', 'flying', 'silent', 'caught', 'friend', 'mostly', 'brains', 'fruits', 'neatly', 'steady', 'sunset', 'filing', 'sceach', 'german', 'dougal', 'cannon', 'samuel', 'cannot', 'seldom', 'fanned', 'flatly', 'herbal', 'import', 'notice', 'aradia', 'wheels', 'nearby', 'differ', 'failte', 'beaver', 'poetic', 'cuchul', 'breezy', 'breeze', 'poplar', 'struck', 'dishes', 'pounds', 'twelve', 'verbal', 'oscars', 'willie', 'verily', 'mircea', 'grange', 'poured', 'shower', 'trying', 'sheath', 'merest', 'issian', 'diruit', 'dabble', 'gorias', 'gavity', 'ceased', 'carpet', 'foster', 'eldest', 'minded', 'decide', 'finger', 'heaven', 'orgasm', 'casual', 'edited', 'excess', 'strong', 'amoung', 'losses', 'amount', 'family', 'chunks', 'excuse', 'sweeps', 'visage', 'pushes', 'pushed', 'phrase', 'firmly', 'reject', 'anoint', 'minuto', 'wiener', 'huathe', 'bagage', 'beyond', 'payson', 'robert', 'safety', 'houses', 'reason', 'fenian', 'launch', 'scouts', 'assign', 'meadow', 'prople', 'pinned', 'expand', 'bardai', 'raping', 'kindle', 'toward', 'mickey', 'option', 'adrift', 'trance', 'salary', 'raving', 'sturdy', 'latest', 'jehova', 'pretty', 'circle', 'albeit', 'famous', 'during', 'stored', 'arrien', 'howled', 'cuirim', 'horrid', 'segais', 'header', 'vessel', 'partly', 'hoodoo', 'soiled', 'dictum', 'herein', 'belong', 'margot', 'influx', 'bearer', 'dearly', 'toyota', 'sketch', 'parade', 'urgent', 'savage', 'wealth', 'conrad', 'wicker', 'seeing', 'within', 'smells', 'innate', 'oghams', 'wicked', 'adults', 'willed', 'rupert', 'turedh', 'smiles', 'kansas', 'leaned', 'rested', 'oregon', 'knowth', 'wizard', 'athame', 'button', 'lleian', 'picked', 'rotten', 'infuse', 'scythe', 'ramses', 'orkney', 'danger', 'manage', 'infest', 'hiding', 'cheeks', 'sought', 'poetry', 'beatha', 'chiefs', 'thence', 'upward', 'ankles', 'inputs', 'morton', 'reacts', 'austin', 'boring', 'attack', 'punish', 'mantra', 'weiser', 'sewing', 'saolta', 'spleen', 'affair', 'parker', 'anyway', 'likens', 'argues', 'stance', 'cardan', 'ordain', 'preach', 'poular', 'humans', 'canine', 'tosses', 'limits', 'career', 'jersey', 'agreed', 'inhale', 'slowly', 'senses', 'league', 'sensed', 'harder', 'yeself', 'campus', 'chants', 'absorb', 'effect', 'fierce', 'single', 'hecate', 'trials', 'spells', 'idunna', 'logged', 'killed', 'sarsen', 'burden', 'starry', 'repeat', 'quarts', 'bundle', 'muchly', 'refuge', 'primal', 'museum', 'harken', 'signed', 'pumped', 'devise', 'kisses', 'upsets', 'relive', 'fodder', 'canvas', 'acroos', 'sphinx', 'todays', 'pardon', 'demand', 'fronts', 'sigils', 'rescue', 'govern', 'affect', 'baking', 'skills', 'graced', 'vector', 'graces', 'dogmas', 'likely', 'panama', 'lights', 'active', 'luther', 'credit', 'permit', 'joshua', 'sliced', 'guests', 'opovig', 'janine', 'expose', 'frenzy', 'sumbel', 'rights', 'climax', 'faults', 'answer', 'murray', 'censer', 'oswald', 'before', 'chatti', 'better', 'glazed', 'taught', 'decree', 'reader', 'grease', 'linear', 'resume', 'shaggy', 'setian', 'aphrod', 'starts', 'plains', 'tokens', 'swells', 'begins', 'matter', 'street', 'palace', 'rattle', 'modern', 'wrists', 'points', 'lyrics', 'hunger', 'retire', 'ending', 'poison', 'nevada', 'saturn', 'sinked', 'mayans', 'derwen', 'softly', 'voyage', 'siging', 'staves', 'peyotl', 'peyote', 'tasted', 'bardic', 'lovely', 'deeper', 'sooooo', 'magics', 'jewels', 'deepen', 'affirm', 'tastes', 'melted', 'anchor', 'mexico', 'tugaim', 'parish', 'writer', 'hooded', 'novels', 'butter', 'berate', 'claims', 'givers', 'unfair', 'legion', 'defray', 'rotate', 'dreams', 'signal', 'strife', 'normal', 'goddeu', 'goddes', 'keeper', 'myrdin', 'commit', 'editor', 'builds', 'bounds', 'tucson', 'cosmos', 'boomed', 'sticks', 'covers', 'awhile', 'handed', 'hangin', 'assume', 'undine', 'forthe', 'invent', 'themes', 'primer', 'father', 'string', 'forked', 'nectar', 'gypsie', 'talked', 'eating', 'troops', 'favour', 'filled', 'french', 'merlin', 'monies', 'useful', 'merely', 'pluses', 'cabals', 'repast', 'effort', 'making', 'arrive', 'sample', 'drawer', 'dennis', 'sunday', 'swayed', 'purify', 'hassan', 'shield', 'entity', 'policy', 'truest', 'tucked', 'sooner', 'arrows', 'zurich', 'richly', 'unlock', 'giveth', 'canada', 'living', 'greeks', 'pamela', 'romans', 'pundit', 'waited', 'rachel', 'sounds', 'little', 'anyone', 'knives', 'booted', 'liveth', 'topics', 'voices', 'roster', 'bowels', 'queens', 'jumped', 'uranus', 'corner', 'storms', 'behind', 'dianna', 'stupid', 'moladh', 'asatru', 'wonder', 'enough', 'across', 'august', 'parent', 'cancer', 'cancel', 'lakota', 'unwise', 'rammed', 'coffee', 'middle', 'sudden', 'ooomph', 'straif', 'wisely', 'doctor', 'driseg', 'speech', 'assist', 'driven', 'bottle', 'amazed', 'aspect', 'dipped', 'fucked', 'aiming', 'serves', 'facing', 'served', 'moving', 'images', 'ascent', 'stages', 'overly', 'caring', 'broken', 'visits', 'refers', 'helgen', 'island', 'tupper', 'dagger', 'downey', 'wiping', 'dolmen', 'cabled', 'cables', 'ngetal', 'ofrail', 'waxing', 'tackle', 'grudge', 'neters', 'forget', 'deosil', 'dollar', 'forged', 'washer', 'titled', 'strung', 'titles', 'public', 'beacon', 'enmity', 'stella', 'narrow', 'africa', 'croons', 'landed', 'trelle', 'strain', 'recall', 'remain', 'clergy', 'meeker', 'attain', 'sacred', 'charms', 'advice', 'coming', 'bathed', 'dragon', 'infant', 'odinic', 'winged', 'suffer', 'libido', 'obeyed', 'oxford', 'detach', 'easily', 'habits', 'fiacha', 'mental', 'energy', 'orient', 'lovers', 'flowed', 'backed', 'luisne', 'twenty', 'plexus', 'ordure', 'malice', 'gotten', 'orders', 'salmon', 'syntax', 'thomas', 'cerrig', 'hopped', 'evoked', 'inanna', 'merged', 'remove', 'common', 'gospel', 'devils',)
wordlist = ('dna', 'vor', 'how', 'hot', 'yud', 'fir', 'fit', 'fix', 'dsc', 'ate', 'ira', 'cup', 'fre', 'fry', 'had', 'has', 'hat', 'hav', 'old', 'fou', 'for', 'fox', 'foe', 'fob', 'foi', 'soo', 'son', 'pet', 'veo', 'vel', 'jim', 'bla', 'one', 'san', 'sad', 'say', 'sap', 'saw', 'sat', 'cim', 'ivy', 'wpi', 'pop', 'act', 'her', 'hey', 'hel', 'heh', 'ohn', 'wav', 'its', 'bye', 'bhi', 'cry', 'set', 'sep', 'sez', 'see', 'sea', 'seo', 'sem', 'vow', 'ago', 'age', 'evo', 'eve', 'try', 'tru', 'uea', 'odd', 'led', 'lee', 'leg', 'leo', 'let', 'bay', 'log', 'low', 'jug', 'jul', 'jay', 'jar', 'aes', 'btw', 'tlc', 'off', 'oft', 'web', 'wee', 'wed', 'wes', 'wer', 'wet', 'ink', 'ing', 'ina', 'hps', 'ale', 'ala', 'bro', 'ere', 'lab', 'lay', 'law', 'zen', 'kin', 'sue', 'sun', 'yew', 'ill', 'air', 'aim', 'aid', 'thy', 'thu', 'tho', 'the', 'way', 'wax', 'was', 'war', 'fog', 'gum', 'gus', 'guy', 'fbi', 'jan', 'ibm', 'car', 'caw', 'can', 'aon', 'not', 'nov', 'now', 'nor', 'nos', 'zap', 'yin', 'egg', 'cen', 'sri', 'lol', 'los', 'lot', 'you', 'mph', 'ask', 'ash', 'awe', 'ego', 'dia', 'asc', 'put', 'str', 'lie', 'lia', 'lib', 'lit', 'lip', 'wow', 'won', 'ads', 'phu', 'bon', 'eel', 'run', 'cue', 'nam', 'ech', 'mad', 'mal', 'ben', 'bel', 'beg', 'bed', 'arc', 'bet', 'she', 'ken', 'oak', 'esp', 'dug', 'eat', 'aug', 'neo', 'new', 'net', 'men', 'met', 'dry', 'ise', 'tyr', 'don', 'doc', 'dog', 'bar', 'bag', 'bad', 'ban', 'sam', 'kid', 'yep', 'yes', 'yer', 'yet', 'dio', 'did', 'die', 'dig', 'dip', 'box', 'boy', 'bot', 'bow', 'bob', 'bod', 'bog', 'fly', 'map', 'mas', 'mar', 'may', 'max', 'mac', 'mao', 'man', 'lsd', 'ort', 'orb', 'las', 'get', 'par', 'yrs', 'pay', 'pan', 'oir', 'moy', 'mor', 'mov', 'tap', 'eye', 'two', 'der', 'dew', 'del', 'dec', 'oil', 'gif', 'cfn', 'gas', 'gap', 'fur', 'raw', 'fun', 'ray', 'cut', 'win', 'big', 'bid', 'apt', 'bit', 'per', 'pen', 'ufo', 'lyr', 'hal', 'chi', 'chs', 'iii', 'afa', 'sip', 'tsp', 'dad', 'dai', 'das', 'day', 'cwn', 'red', 'quo', 'mid', 'mix', 'adf', 'add', 'est', 'dcw', 'buy', 'but', 'bud', 'pin', 'pig', 'our', 'pit', 'end', 'gom', 'god', 'sow', 'got', 'tos', 'top', 'tow', 'too', 'tom', 'toe', 'ran', 'rap', 'abc', 'oct', 'nut', 'mud', 'rit', 'via', 'ice', 'ahp', 'uri', 'tir', 'til', 'tim', 'tin', 'rom', 'rob', 'rod', 'ard', 'msg', 'ahn', 'shu', 'iad', 'iaa', 'iau', 'hug', 'and', 'ann', 'any', 'tip', 'tie', 'jun', 'cbs', 'hit', 'ley', 'all', 'ptv', 'far', 'fan', 'fal', 'fad', 'teh', 'ten', 'tea', 'sum', 'hig', 'nan', 'ieo', 'hip', 'his', 'him', 'art', 'are', 'arm', 'lap', 'key', 'dun', 'dub', 'due', 'rim', 'rig', 'rid', 'row', 'cit', 'cad', 'apr', 'use', 'feb', 'usa', 'few', 'tax', 'tao', 'sir', 'sit', 'six', 'sid', 'sin', 'out', 'who', 'why', 'ear', 'joy', 'job', 'joe', 'jog', 'bbi', 'bbs', 'non', 'nob', 'sky', 'own', 'owe', 'van', 'four', 'pack', 'lore', 'lord', 'dell', 'foul', 'hero', 'herb', 'hera', 'here', 'cult', 'dorn', 'unit', 'holy', 'hurt', 'hole', 'hold', 'wand', 'want', 'dyke', 'turn', 'wins', 'wind', 'wine', 'vary', 'inar', 'wast', 'wash', 'legs', 'tree', 'idle', 'apre', 'that', 'cops', 'camp', 'came', 'prif', 'busy', 'ment', 'rich', 'blew', 'fair', 'pads', 'fail', 'fain', 'best', 'lots', 'dorm', 'diff', 'slay', 'much', 'life', 'dave', 'lift', 'suas', 'doth', 'spin', 'topy', 'tune', 'ease', 'wrap', 'nova', 'jane', 'lays', 'dues', 'role', 'enya', 'yhvh', 'time', 'push', 'gown', 'jerk', 'sign', 'ordo', 'melt', 'love', 'spot', 'date', 'such', 'kong', 'torc', 'webs', 'plea', 'raed', 'lbrp', 'vote', 'open', 'city', 'bite', 'cite', 'note', 'take', 'knew', 'knee', 'ways', 'bade', 'salt', 'laws', 'slow', 'robe', 'many', 'twin', 'boar', 'boat', 'west', 'brow', 'monk', 'nile', 'knot', 'rest', 'sums', 'dark', 'dare', 'clad', 'meal', 'bond', 'wade', 'with', 'pull', 'rush', 'rags', 'gone', 'yoga', 'mass', 'adam', 'tain', 'nora', 'sand', 'sank', 'past', 'pass', 'full', 'hast', 'pick', 'luck', 'mord', 'more', 'door', 'doom', 'sent', 'male', 'bogs', 'scam', 'huge', 'hugh', 'hugs', 'bowl', 'bows', 'ally', 'odin', 'shop', 'isle', 'week', 'ness', 'crow', 'zeus', 'hyde', 'sell', 'self', 'play', 'plan', 'tips', 'gold', 'burp', 'rite', 'nope', 'fame', 'thou', 'thor', 'bell', 'sees', 'firm', 'fire', 'fung', 'owed', 'mote', 'owen', 'read', 'caer', 'unto', 'reap', 'hues', 'sion', 'pale', 'into', 'span', 'suit', 'linn', 'link', 'atom', 'line', 'chan', 'chao', 'chap', 'tara', 'bush', 'land', 'code', 'send', 'wipe', 'pout', 'race', 'bird', 'thin', 'stag', 'mens', 'next', 'rick', 'babe', 'baby', 'this', 'pour', 'bent', 'loch', 'rode', 'high', 'bend', 'rods', 'pair', 'tied', 'fits', 'ties', 'hawk', 'move', 'lamp', 'earl', 'ship', 'kiss', 'mete', 'shut', 'veov', 'muin', 'eryn', 'awen', 'soak', 'awed', 'soar', 'visa', 'face', 'brew', 'fact', 'hops', 'mute', 'tape', 'hope', 'fewr', 'reis', 'wire', 'ends', 'drum', 'drug', 'lush', 'site', 'lust', 'sits', 'juan', 'ball', 'dusk', 'upon', 'dust', 'lest', 'paul', 'five', 'does', 'naff', 'iris', 'asks', 'mere', 'veil', 'rule', 'cian', 'owes', 'horn', 'neat', 'bhur', 'plot', 'ploy', 'yard', 'word', 'wore', 'work', 'worn', 'nuts', 'hong', 'arch', 'then', 'them', 'thee', 'safe', 'bang', 'sack', 'they', 'ther', 'bank', 'nudd', 'tops', 'mojo', 'neck', 'airy', 'john', 'rath', 'nana', 'aunt', 'just', 'runs', 'gaul', 'rune', 'rung', 'away', 'bolt', 'brad', 'bran', 'tone', 'tong', 'tons', 'axis', 'easy', 'east', 'cons', 'cone', 'cong', 'muid', 'rail', 'evil', 'hand', 'hans', 'kept', 'gods', 'soap', 'dwyr', 'born', 'bore', 'hare', 'post', 'pays', 'lewd', 'breo', 'crys', 'true', 'iisi', 'isis', 'anew', 'mold', 'test', 'bedw', 'zone', 'slip', 'cost', 'buch', 'labs', 'live', 'club', 'clue', 'coll', 'cold', 'halt', 'evoe', 'half', 'hall', 'wont', 'drop', 'year', 'carl', 'card', 'care', 'size', 'pomp', 'than', 'fork', 'slan', 'loki', 'only', 'urdr', 'pray', 'aura', 'scot', 'ruby', 'joke', 'lite', 'noah', 'real', 'ream', 'lady', 'llew', 'vahv', 'wolf', 'your', 'area', 'ares', 'poor', 'peat', 'peak', 'pooh', 'pool', 'very', 'verb', 'bass', 'cues', 'dion', 'nine', 'alby', 'lyre', 'rude', 'kuno', 'help', 'soon', 'carn', 'held', 'eros', 'hine', 'fool', 'food', 'foot', 'tear', 'jaws', 'bhar', 'bast', 'bald', 'azif', 'dirt', 'base', 'dire', 'bash', 'misc', 'mist', 'ascs', 'grew', 'grey', 'greg', 'hips', 'pans', 'less', 'mell', 'hype', 'oobe', 'both', 'elsa', 'else', 'pact', 'look', 'loop', 'sham', 'used', 'uses', 'moby', 'ioho', 'game', 'some', 'lips', 'gaia', 'step', 'ache', 'eons', 'duly', 'dips', 'reed', 'hail', 'dull', 'info', 'hair', 'gaze', 'hint', 'draw', 'aser', 'mhol', 'drag', 'dram', 'nuns', 'wave', 'orov', 'jump', 'celt', 'cell', 'crab', 'ride', 'meet', 'fare', 'mode', 'ills', 'keep', 'keen', 'omen', 'bare', 'bard', 'need', 'able', 'wyrd', 'envy', 'tire', 'rash', 'tirs', 'gray', 'wish', 'grab', 'cuts', 'tenm', 'joys', 'tend', 'tent', 'sole', 'magi', 'magh', 'poem', 'poee', 'poet', 'ufos', 'mail', 'owns', 'well', 'bohr', 'sufi', 'dose', 'dair', 'dost', 'vide', 'kick', 'fate', 'lost', 'ring', 'roth', 'lose', 'page', 'shed', 'shea', 'hush', 'home', 'eris', 'eric', 'star', 'stay', 'stan', 'bays', 'void', 'vast', 'yack', 'even', 'ever', 'drew', 'omar', 'hiya', 'arms', 'maes', 'call', 'calm', 'type', 'tell', 'wars', 'warn', 'warm', 'room', 'roof', 'akin', 'akim', 'root', 'give', 'egos', 'deck', 'crew', 'meat', 'mead', 'went', 'side', 'bone', 'mean', 'nave', 'navy', 'aids', 'dawn', 'loud', 'hook', 'hoof', 'mini', 'seer', 'mind', 'mine', 'seed', 'seen', 'seem', 'seek', 'stop', 'earn', 'told', 'ears', 'said', 'vows', 'puts', 'tiny', 'neal', 'ugly', 'near', 'make', 'left', 'nota', 'save', 'nude', 'dean', 'deal', 'dead', 'dear', 'veda', 'burn', 'bury', 'down', 'lies', 'dowm', 'form', 'ford', 'fort', 'zeno', 'toss', 'dies', 'felt', 'fell', 'died', 'skip', 'mild', 'mile', 'skin', 'gaea', 'item', 'anna', 'adds', 'stem', 'wait', 'sake', 'thru', 'soul', 'pink', 'rays', 'idir', 'pine', 'till', 'pure', 'pins', 'idic', 'guys', 'grow', 'tale', 'tall', 'talk', 'ours', 'main', 'beil', 'rock', 'girt', 'girl', 'lone', 'fast', 'eyes', 'memo', 'lugh', 'orgy', 'were', 'lick', 'dash', 'pain', 'paid', 'beth', 'shot', 'show', 'data', 'mung', 'seat', 'sean', 'seal', 'ogma', 'nose', 'arts', 'mark', 'mars', 'mary', 'wake', 'manx', 'same', 'tout', 'pile', 'grip', 'grid', 'grin', 'mare', 'roam', 'road', 'gort', 'deer', 'deep', 'film', 'fill', 'sunk', 'fall', 'none', 'tuan', 'hour', 'maps', 'stir', 'sect', 'pens', 'late', 'good', 'otto', 'rank', 'harm', 'hark', 'hard', 'idea', 'fist', 'harp', 'dont', 'done', 'park', 'part', 'ages', 'most', 'fine', 'find', 'ruis', 'sill', 'vine', 'lion', 'acts', 'fang', 'afar', 'amam', 'bill', 'keys', 'task', 'howe', 'snow', 'snag', 'clan', 'back', 'lark', 'epic', 'from', 'trad', 'boys', 'cure', 'curl', 'yang', 'lend', 'papa', 'lens', 'lent', 'crop', 'body', 'sins', 'sinn', 'sink', 'sing', 'oval', 'fete', 'bind', 'koad', 'kids', 'mate', 'tide', 'have', 'text', 'gorm', 'mica', 'isha', 'beat', 'bear', 'beam', 'halo', 'pulp', 'bull', 'bulb', 'amke', 'hubs', 'file', 'deed', 'sets', 'llyr', 'lake', 'atha', 'like', 'heed', 'soft', 'heel', 'guff', 'host', 'tomb', 'wise', 'flys', 'goin', 'oral', 'yell', 'tibs', 'hath', 'hate', 'risk', 'siul', 'rise', 'nail', 'blue', 'hide', 'sung', 'path', 'must', 'join', 'norn', 'gate', 'mess', 'amid', 'over', 'fade', 'alex', 'each', 'laid', 'sane', 'nite', 'hang', 'free', 'fred', 'rain', 'days', 'heck', 'onto', 'tool', 'took', 'glow', 'flow', 'leis', 'pope', 'sage', 'pops', 'kali', 'weak', 'boss', 'wear', 'news', 'been', 'beer', 'jean', 'gave', 'gifs', 'gift', 'hunt', 'hung', 'cord', 'core', 'corn', 'corp', 'bath', 'rely', 'head', 'heal', 'heat', 'hear', 'trim', 'when', 'whem', 'indo', 'bile', 'town', 'cook', 'cool', 'says', 'port', 'hymn', 'goes', 'iron', 'plug', 'plus', 'yule', 'term', 'name', 'miss', 'view', 'cope', 'alan', 'copy', 'wide', 'oath', 'diug', 'duir', 'rent', 'duit', 'urge', 'sure', 'mbeo', 'trom', 'troy', 'hack', 'wood', 'wool', 'ozma', 'come', 'duty', 'pole', 'case', 'cash', 'cast', 'trip', 'lute', 'weep', 'kill', 'blow', 'blot', 'rose', 'lets', 'rosy', 'ross', 'node', 'mood', 'moon', 'quit', 'cent', 'gary', 'fish', 'wife', 'bapa', 'lack', 'dish', 'song', 'sons', 'hemp', 'list', 'rate', 'what', 'womb', 'flat', 'obod', 'mire', 'flag', 'glad', 'eden', 'omit', 'goal', 'okay', 'jove', 'inch', 'hill', 'feed', 'feel', 'feet', 'king', 'kind', 'danu', 'aims', 'dane', 'dana', 'gall', 'fond', 'font', 'luis', 'dumb', 'bark', 'mban', 'solo', 'sold', 'whom', 'edge', 'gems', 'also', 'pros', 'anne', 'prob', 'long', 'mock', 'nice', 'vice', 'once', 'gang', 'agus', 'fold', 'acid', 'folk', 'rede', 'duck', 'fron', 'cili', 'sort', 'sore', 'tthe', 'flew', 'nuit', 'york', 'nuin', 'obvd', 'cain', 'isbn', 'echo', 'july', 'deny', 'gain', 'fear', 'ones', 'spur', 'viet', 'walk', 'walt', 'lyin', 'mike', 'last', 'wilt', 'will', 'wild', 'thus', 'dual', 'thud', 'gets', 'yoou', 'wren', 'myth', 'know', 'leaf', 'lead', 'lean', 'leap', 'leat', 'obey', 'pike', 'rare', 'made', 'gaps', 'cake', 'mady', 'cave', 'book', 'sick', 'junk', 'agla', 'june', 'jung', 'sase', 'pods', 'woods', 'knelt', 'tired', 'pulse', 'atoms', 'china', 'uisci', 'norse', 'spoke', 'music', 'until', 'relax', 'glass', 'blade', 'pints', 'wrong', 'types', 'keeps', 'wales', 'thyme', 'fnord', 'arrow', 'bowls', 'mayan', 'adapt', 'sheet', 'nigel', 'dwale', 'spawn', 'sooth', 'alive', 'doors', 'henge', 'shall', 'wells', 'mouth', 'entry', 'shalt', 'grove', 'runic', 'gauge', 'theme', 'bliss', 'pelen', 'plate', 'plato', 'afall', 'rings', 'score', 'never', 'lamac', 'logic', 'argue', 'asked', 'raith', 'union', 'child', 'chill', 'tapes', 'split', 'josey', 'neter', 'veils', 'osman', 'posed', 'birth', 'bobby', 'steph', 'steps', 'right', 'crowd', 'creed', 'crown', 'bruig', 'nixon', 'nglas', 'waits', 'avail', 'untie', 'halls', 'happy', 'offer', 'batle', 'beech', 'otter', 'proud', 'exist', 'floor', 'warms', 'smell', 'palms', 'roimh', 'chain', 'chair', 'midst', 'macha', 'copse', 'edred', 'stays', 'exact', 'cooks', 'unify', 'leave', 'whome', 'badge', 'snack', 'egypt', 'owuld', 'alone', 'along', 'tasks', 'carol', 'angry', 'papal', 'films', 'scope', 'deign', 'honey', 'privy', 'stole', 'deity', 'limbo', 'apron', 'temen', 'deady', 'abide', 'quite', 'poems', 'dunno', 'monks', 'uriel', 'waist', 'sayer', 'prone', 'herds', 'nicer', 'alley', 'allen', 'aside', 'pages', 'drive', 'lotus', 'cloak', 'tears', 'going', 'imbas', 'touch', 'prime', 'where', 'mecca', 'clips', 'sites', 'acome', 'garda', 'spark', 'geese', 'wants', 'pinks', 'ascii', 'shuti', 'anseo', 'genie', 'lambs', 'nessa', 'being', 'world', 'snare', 'fives', 'brits', 'troth', 'lucid', 'refer', 'power', 'stone', 'niall', 'other', 'image', 'ciabh', 'myths', 'vanir', 'dirty', 'agree', 'tight', 'herbs', 'thorn', 'groom', 'hello', 'thorr', 'smile', 'cable', 'large', 'harry', 'small', 'hours', 'prior', 'pulls', 'trips', 'goeth', 'leary', 'learn', 'salty', 'bated', 'plant', 'plane', 'waves', 'scota', 'paper', 'scott', 'signs', 'trads', 'roots', 'isaac', 'found', 'eddas', 'ditch', 'zwack', 'rises', 'pairs', 'major', 'gazed', 'guess', 'heads', 'saint', 'grace', 'vocal', 'shops', 'virus', 'emyrs', 'seize', 'cover', 'coven', 'piper', 'xeper', 'wayne', 'cowan', 'beams', 'sunny', 'hilts', 'thoth', 'cease', 'river', 'movie', 'kneel', 'death', 'pagan', 'harps', 'whole', 'acted', 'devin', 'devil', 'teann', 'races', 'awake', 'error', 'cages', 'pound', 'sabha', 'chase', 'funny', 'cigar', 'alert', 'leaps', 'focal', 'picks', 'feces', 'kelly', 'ahura', 'quest', 'spine', 'scape', 'canst', 'maige', 'sighs', 'sight', 'pools', 'santa', 'doubt', 'opens', 'codes', 'evohe', 'swirl', 'sided', 'sides', 'holey', 'fresh', 'essay', 'totem', 'stops', 'young', 'mytle', 'darra', 'magic', 'marry', 'fewer', 'reich', 'imply', 'video', 'ithin', 'index', 'anton', 'punch', 'great', 'makes', 'maker', 'tools', 'folks', 'mabon', 'await', 'ombos', 'allow', 'rilla', 'decay', 'necht', 'betty', 'truth', 'doing', 'books', 'banal', 'ewige', 'venom', 'tempo', 'spill', 'could', 'david', 'blown', 'scene', 'stark', 'owner', 'blows', 'prank', 'start', 'stars', 'haven', 'steed', 'false', 'linda', 'bring', 'brink', 'pause', 'meant', 'bonds', 'lucky', 'stuff', 'exude', 'frame', 'liken', 'cense', 'marty', 'muine', 'beach', 'waste', 'eaton', 'groin', 'mutat', 'drink', 'audio', 'snake', 'flesh', 'gulls', 'rooms', 'photo', 'taunt', 'fools', 'criss', 'yearn', 'onnen', 'grids', 'thier', 'avoid', 'hadit', 'stage', 'seeds', 'burma', 'erect', 'roads', 'afoot', 'ovovo', 'yarns', 'gwion', 'count', 'calls', 'irish', 'jesse', 'tides', 'ghost', 'walks', 'worth', 'pinch', 'brill', 'above', 'sinks', 'pluto', 'items', 'study', 'adopt', 'dowth', 'total', 'dilly', 'reign', 'mages', 'india', 'knees', 'sever', 'after', 'uisce', 'greet', 'greek', 'green', 'south', 'worst', 'order', 'greed', 'break', 'bread', 'rocks', 'doled', 'flock', 'forty', 'forth', 'renew', 'comic', 'rated', 'mercy', 'binds', 'guilt', 'banes', 'reall', 'gravy', 'bruce', 'aesir', 'lewis', 'toast', 'elite', 'steel', 'nasty', 'steal', 'draws', 'props', 'drawn', 'terms', 'gable', 'trunk', 'wider', 'speak', 'ahead', 'beith', 'voice', 'wheel', 'horus', 'swell', 'hills', 'shout', 'board', 'night', 'mazes', 'hypoc', 'sends', 'humor', 'hodge', 'float', 'fight', 'palce', 'moors', 'dying', 'songs', 'dance', 'flash', 'turns', 'woven', 'upper', 'curse', 'argee', 'genes', 'trial', 'triad', 'extra', 'prove', 'super', 'ninny', 'gwynn', 'eidos', 'purge', 'heart', 'topic', 'heard', 'occur', 'means', 'write', 'nosed', 'wwhat', 'brain', 'whats', 'still', 'birds', 'forms', 'saxon', 'feats', 'james', 'couls', 'goose', 'fires', 'album', 'shown', 'space', 'shows', 'thong', 'blind', 'madam', 'beest', 'drove', 'sheep', 'dawns', 'baldr', 'muide', 'shady', 'angel', 'craig', 'anger', 'dread', 'begin', 'prick', 'shade', 'price', 'fifth', 'ratio', 'stair', 'title', 'skith', 'truly', 'loath', 'keyed', 'burst', 'sport', 'huggs', 'pluck', 'blame', 'hurts', 'comes', 'jeans', 'cares', 'crumb', 'these', 'trick', 'celts', 'conys', 'worry', 'sould', 'proto', 'media', 'whyte', 'medic', 'noble', 'fruit', 'heaps', 'speed', 'parts', 'verse', 'rules', 'ruler', 'gonna', 'early', 'using', 'stuns', 'ruled', 'faire', 'fairs', 'nuada', 'sixth', 'throw', 'lymph', 'fraud', 'tones', 'moved', 'oisin', 'salem', 'moves', 'valid', 'month', 'corps', 'nodes', 'robes', 'robed', 'coals', 'loose', 'arena', 'aball', 'aimed', 'lagoz', 'teach', 'takes', 'girds', 'taken', 'broke', 'hurry', 'lacks', 'tried', 'tries', 'banks', 'dream', 'match', 'fines', 'finer', 'vomit', 'payer', 'fully', 'bless', 'fairy', 'heavy', 'event', 'warts', 'since', 'dearg', 'issue', 'stead', 'inert', 'knots', 'elder', 'craps', 'horse', 'storm', 'tunic', 'bride', 'quote', 'clear', 'cleat', 'clean', 'blend', 'pucas', 'withe', 'close', 'duinn', 'vault', 'liked', 'stamp', 'empty', 'lived', 'packs', 'heute', 'while', 'smart', 'fleet', 'guide', 'reads', 'ready', 'grant', 'grand', 'older', 'cedar', 'olden', 'elect', 'elven', 'yeahm', 'maeve', 'march', 'wings', 'holes', 'modus', 'infra', 'feill', 'taboo', 'shine', 'faith', 'gnome', 'kwiat', 'alpha', 'frost', 'malik', 'fears', 'orbit', 'neils', 'bribe', 'etain', 'oliva', 'suits', 'suite', 'tonal', 'plays', 'chant', 'pitch', 'cloud', 'cosmo', 'drops', 'duile', 'hides', 'links', 'echos', 'trees', 'ruadh', 'feels', 'ogham', 'boils', 'outer', 'broom', 'abred', 'sword', 'hands', 'front', 'slide', 'chunk', 'cause', 'sneer', 'paten', 'shred', 'timed', 'spots', 'bears', 'ankle', 'final', 'lists', 'claim', 'screw', 'edric', 'based', 'bases', 'dodge', 'slows', 'joint', 'joins', 'years', 'state', 'dogon', 'merry', 'thumb', 'mindy', 'minds', 'admit', 'lofty', 'kings', 'tread', 'wills', 'treat', 'novel', 'chalk', 'bucks', 'began', 'begat', 'party', 'gaoth', 'skill', 'ought', 'clown', 'likes', 'peter', 'murry', 'inner', 'north', 'xerox', 'goals', 'leper', 'cells', 'limit', 'piece', 'beats', 'conan', 'lives', 'liver', 'aided', 'whose', 'sorry', 'fists', 'force', 'saved', 'niche', 'spiel', 'moral', 'barks', 'oscar', 'cuups', 'dogma', 'adult', 'flora', 'guise', 'foods', 'thine', 'laida', 'third', 'jacob', 'weeks', 'kesey', 'grade', 'girls', 'dwell', 'helen', 'bikka', 'silly', 'caled', 'tells', 'chest', 'atman', 'marie', 'doves', 'dover', 'debts', 'coast', 'bhall', 'cower', 'zones', 'sorta', 'sorts', 'weary', 'scuba', 'lowly', 'ether', 'lttle', 'basis', 'three', 'basic', 'threw', 'seven', 'shame', 'grown', 'bella', 'grows', 'bells', 'meets', 'smoke', 'yours', 'human', 'facts', 'nudge', 'meath', 'jeeah', 'dense', 'track', 'beget', 'faery', 'azure', 'nerve', 'coins', 'erinn', 'sagas', 'suebi', 'gland', 'vista', 'holly', 'aware', 'daily', 'souls', 'marks', 'round', 'seidr', 'visit', 'rigid', 'olive', 'bites', 'lords', 'crazy', 'agent', 'swore', 'wicca', 'waxen', 'maybe', 'block', 'serge', 'tales', 'shake', 'clans', 'group', 'thank', 'views', 'boats', 'ruddy', 'cough', 'thing', 'think', 'first', 'carry', 'murky', 'slept', 'fiery', 'gotta', 'kevin', 'squaw', 'trace', 'enter', 'aloud', 'tract', 'eadha', 'fills', 'ladle', 'black', 'helix', 'sidhe', 'hippo', 'hippy', 'skull', 'yield', 'dagda', 'dates', 'among', 'barry', 'sound', 'issac', 'handy', 'weave', 'conor', 'solve', 'gates', 'money', 'forge', 'adams', 'titan', 'erase', 'gross', 'ellis', 'lunar', 'knife', 'tease', 'mixed', 'vigil', 'strip', 'fates', 'rider', 'adler', 'gaels', 'hound', 'midhe', 'boons', 'casts', 'talks', 'those', 'furze', 'steve', 'angus', 'hogan', 'stood', 'garth', 'bible', 'liber', 'wiped', 'canon', 'sylph', 'halts', 'biodh', 'share', 'needs', 'sired', 'lythe', 'blood', 'kegan', 'heirs', 'bosom', 'balor', 'walls', 'ashes', 'token', 'house', 'deals', 'podge', 'print', 'least', 'paint', 'sated', 'rates', 'stirs', 'youth', 'built', 'couch', 'onset', 'build', 'flute', 'chart', 'charm', 'giant', 'gilly', 'celyn', 'ovate', 'aldus', 'rover', 'sigil', 'cakes', 'point', 'raise', 'inoke', 'solid', 'lingo', 'realm', 'spent', 'flags', 'spend', 'alder', 'gheal', 'shape', 'hated', 'hates', 'knock', 'dtoil', 'often', 'scale', 'smail', 'crone', 'goods', 'yorba', 'drama', 'piled', 'ounce', 'phase', 'grave', 'hoped', 'hopes', 'adair', 'metal', 'ellen', 'druim', 'druid', 'druis', 'wards', 'dhuit', 'querc', 'fitch', 'tombs', 'quert', 'helps', 'queen', 'rhyme', 'tinne', 'pipes', 'gimle', 'safer', 'drank', 'climb', 'proof', 'honor', 'named', 'drums', 'names', 'train', 'hints', 'fetch', 'bones', 'holds', 'orson', 'lines', 'linen', 'chief', 'lands', 'horns', 'bunch', 'labor', 'pangs', 'spell', 'cider', 'faidh', 'cures', 'sadly', 'scant', 'loved', 'draoi', 'lover', 'waken', 'hazel', 'eight', 'sally', 'gurus', 'staff', 'areas', 'organ', 'fixed', 'rowan', 'legis', 'equal', 'sexes', 'laugh', 'thsis', 'plain', 'value', 'esras', 'diety', 'whirr', 'again', 'usual', 'chord', 'seats', 'tough', 'spear', 'field', 'crops', 'raven', 'tests', 'testy', 'dirac', 'ozone', 'works', 'awash', 'prose', 'noise', 'panel', 'gifts', 'about', 'evoke', 'guard', 'hexed', 'globe', 'ivory', 'misty', 'glory', 'mists', 'ledge', 'pupil', 'sleep', 'paris', 'under', 'pride', 'every', 'venus', 'enjoy', 'seeks', 'druel', 'forum', 'stray', 'julia', 'would', 'raids', 'naive', 'phone', 'tampa', 'henry', 'shook', 'bothy', 'times', 'badly', 'canto', 'edits', 'diana', 'newly', 'wowed', 'sobek', 'pyres', 'awoke', 'sober', 'serve', 'gulfs', 'roles', 'aztec', 'flame', 'beket', 'mirth', 'beard', 'bards', 'pylon', 'cleff', 'clock', 'radio', 'queer', 'earth', 'spite', 'watch', 'tammy', 'haite', 'aught', 'beads', 'twice', 'shots', 'swept', 'habit', 'wakan', 'tommy', 'mazda', 'faced', 'fault', 'games', 'faces', 'trust', 'drugs', 'craft', 'catch', 'broth', 'wound', 'lusty', 'sings', 'welsh', 'cycle', 'ocean', 'torah', 'thick', 'suzan', 'judge', 'burns', 'rumor', 'apart', 'adieu', 'usher', 'armed', 'foote', 'khaki', 'choke', 'civil', 'class', 'stuck', 'solar', 'annwn', 'adore', 'check', 'eerie', 'navel', 'focus', 'leads', 'tanka', 'level', 'quick', 'doeth', 'fearn', 'cyber', 'colin', 'dried', 'spiro', 'reply', 'hairs', 'dazed', 'water', 'witch', 'boast', 'weird', 'isles', 'vivid', 'runes', 'tubes', 'today', 'altar', 'lazlo', 'cases', 'piano', 'wands', 'rufus', 'boris', 'nexus', 'sense', 'nuber', 'bigot', 'gulik', 'vital', 'rites', 'amuse', 'chips', 'swans', 'bound', 'opera', 'torch', 'torcs', 'begun', 'plans', 'eagle', 'flyer', 'place', 'swing', 'feign', 'given', 'white', 'circa', 'giver', 'gives', 'lacha', 'cards', 'mated', 'sells', 'ideas', 'ideal', 'falls', 'later', 'uncle', 'perch', 'cheap', 'dirge', 'crime', 'trade', 'olaus', 'naked', 'scots', 'fails', 'shiva', 'seers', 'quiet', 'cabal', 'color', 'deeds', 'abdul', 'cords', 'maire', 'shaft', 'mound', 'thses', 'arose', 'raibh', 'model', 'seems', 'kills', 'boyne', 'acute', 'inate', 'fount', 'tower', 'tarot', 'table', 'frees', 'legal', 'freed', 'raths', 'stand', 'hindu', 'amber', 'tribe', 'there', 'beret', 'grasp', 'grass', 'taste', 'tasty', 'abyss', 'wkshp', 'trash', 'brass', 'oriel', 'curve', 'ments', 'seals', 'woman', 'worse', 'awful', 'vibes', 'brief', 'texts', 'faint', 'wield', 'minor', 'knows', 'waxed', 'known', 'ouija', 'brown', 'arise', 'court', 'maith', 'cults', 'short', 'susan', 'style', 'abbey', 'might', 'alter', 'odubh', 'loops', 'huath', 'roofs', 'fancy', 'blank', 'story', 'comfy', 'syrup', 'store', 'pains', 'hotel', 'exert', 'oaken', 'alike', 'fionn', 'added', 'reach', 'react', 'niver', 'liath', 'lying', 'gains', 'wrote', 'blurb', 'latin', 'epona', 'herne', 'roman', 'finds', 'cynic', 'sweet', 'sweep', 'goats', 'brick', 'miles', 'apear', 'paths', 'flows', 'birch', 'lower', 'redes', 'tends', 'jumps', 'aloft', 'plaza', 'range', 'wanne', 'wanna', 'muzak', 'canal', 'files', 'cloth', 'filed', 'crane', 'freak', 'stick', 'rally', 'peace', 'gloss', 'risin', 'karma', 'broad', 'alien', 'winds', 'simon', 'abode', 'notes', 'dealt', 'dealy', 'noted', 'folds', 'poets', 'chuid', 'chose', 'lends', 'matov', 'apple', 'apply', 'grian', 'porch', 'women', 'roich', 'sakes', 'clues', 'asily', 'abuse', 'light', 'looks', 'quake', 'ships', 'crash', 'enemy', 'crass', 'feast', 'chaos', 'chaol', 'pours', 'hence', 'their', 'shell', 'scone', 'reeks', 'which', 'clasp', 'stove', 'utter', 'local', 'words', 'ended', 'truer', 'magus', 'favor', 'swift', 'grain', 'grail', 'tutor', 'ysgaw', 'anois', 'layer', 'motif', 'pikes', 'cross', 'unite', 'unity', 'units', 'slave', 'idris', 'cried', 'cries', 'tawny', 'press', 'gypsy', 'miami', 'loses', 'hosts', 'nagas', 'noose', 'pasts', 'urged', 'swear', 'sweat', 'brush', 'fired', 'siuil', 'funds', 'below', 'ailim', 'hymns', 'lance', 'kinds', 'cliff', 'yellow', 'verses', 'outwit', 'tingle', 'oceans', 'wooden', 'piling', 'ornate', 'second', 'sailed', 'errors', 'golden', 'strike', 'whorls', 'brings', 'hereby', 'locked', 'pursue', 'tuatha', 'exhale', 'unjust', 'travel', 'drying', 'beauty', 'youths', 'kokomo', 'preeve', 'hidden', 'easier', 'enrich', 'silver', 'rumour', 'barton', 'snakes', 'series', 'george', 'speeds', 'needed', 'master', 'listed', 'bitter', 'listen', 'danish', 'wisdom', 'doreen', 'showed', 'outlaw', 'endure', 'person', 'scummy', 'figger', 'object', 'letter', 'snares', 'brehon', 'mating', 'scream', 'saying', 'layout', 'louise', 'fetish', 'jaguar', 'greens', 'radius', 'result', 'hammer', 'stamps', 'extend', 'nature', 'rolled', 'extent', 'summat', 'gheall', 'worked', 'employ', 'played', 'things', 'format', 'beckon', 'babies', 'fairly', 'maxims', 'echoes', 'bergan', 'sleeps', 'prison', 'elders', 'online', 'shadow', 'unique', 'desire', 'remind', 'people', 'hoover', 'bottom', 'shakes', 'losing', 'bowing', 'collen', 'raised', 'danaan', 'beings', 'raises', 'shoots', 'joseph', 'utmost', 'inside', 'solong', 'proved', 'proven', 'oscail', 'intend', 'models', 'taurus', 'intent', 'cupped', 'recipe', 'choice', 'minute', 'amoral', 'skewed', 'solved', 'settle', 'erotic', 'freaks', 'ground', 'honour', 'carill', 'tyoing', 'saints', 'prefer', 'druids', 'helter', 'loving', 'visual', 'virtue', 'riders', 'nether', 'values', 'winter', 'mythos', 'missal', 'stress', 'briony', 'pulled', 'scents', 'aeonic', 'augury', 'course', 'derive', 'solace', 'dwarfs', 'nroogd', 'nation', 'amulet', 'thuinn', 'square', 'herard', 'astral', 'sorcha', 'shores', 'impure', 'routes', 'spoked', 'saving', 'spoken', 'clause', 'submit', 'mannan', 'loveth', 'typing', 'thetis', 'future', 'gwyned', 'russia', 'sophia', 'turned', 'buried', 'nymphs', 'towers', 'airing', 'crealm', 'bright', 'artist', 'borrow', 'priest', 'liable', 'vision', 'pisces', 'dexter', 'harvey', 'bureau', 'jumper', 'screen', 'planes', 'loudly', 'riddle', 'breath', 'enable', 'benoit', 'formed', 'photos', 'extant', 'former', 'tribal', 'region', 'zonked', 'flocks', 'pacing', 'summer', 'joyful', 'around', 'yearly', 'racial', 'divine', 'thinks', 'biased', 'phagos', 'dagdha', 'burial', 'legged', 'lively', 'gennep', 'cultic', 'buying', 'abused', 'naming', 'shevet', 'glenda', 'johnny', 'forgot', 'carved', 'novice', 'waving', 'caused', 'urbane', 'causes', 'paying', 'sabbat', 'laying', 'joined', 'healed', 'healer', 'seemed', 'method', 'dwells', 'legend', 'fergus', 'bestow', 'action', 'filial', 'select', 'casket', 'coyote', 'ghrian', 'stated', 'cosmic', 'staten', 'accept', 'states', 'gallon', 'pogrom', 'refuse', 'termed', 'gerald', 'hounds', 'olivia', 'misuse', 'always', 'truths', 'osiris', 'arrray', 'detect', 'waking', 'reduce', 'finish', 'scribe', 'really', 'missed', 'dianic', 'finnen', 'occurs', 'salute', 'belief', 'bedlam', 'murmur', 'reared', 'castle', 'number', 'fluxes', 'ulster', 'justly', 'warmly', 'stifle', 'wessex', 'uscias', 'barred', 'barren', 'impact', 'failed', 'factor', 'wiccan', 'weaved', 'peleus', 'weaver', 'insane', 'potent', 'europe', 'barely', 'agents', 'church', 'satire', 'lovest', 'admire', 'varies', 'triple', 'vanish', 'satyrs', 'survey', 'levels', 'recent', 'expend', 'papyri', 'mandan', 'couple', 'falcon', 'formal', 'facets', 'yields', 'tribes', 'spring', 'bounce', 'mighty', 'behave', 'dating', 'temple', 'clancy', 'pietra', 'repaid', 'sneaky', 'mythic', 'custom', 'inches', 'jewish', 'pastor', 'posted', 'horned', 'mature', 'pineal', 'purges', 'fixing', 'bianca', 'unplug', 'scotch', 'walked', 'purged', 'oracle', 'gleini', 'menace', 'having', 'gossip', 'garden', 'timely', 'pledge', 'fables', 'victor', 'waning', 'indian', 'orainn', 'engage', 'stairs', 'defeat', 'quests', 'eleven', 'pencil', 'zimmer', 'bodily', 'pieces', 'chakra', 'martyr', 'senach', 'animal', 'blocks', 'tomato', 'shapes', 'chosen', 'traced', 'fields', 'statis', 'jagged', 'wander', 'motifs', 'perish', 'greedy', 'surely', 'thrust', 'length', 'system', 'norton', 'quarry', 'bodrun', 'aztecs', 'gently', 'gentle', 'viewed', 'korean', 'sirius', 'device', 'rubric', 'decade', 'smacks', 'should', 'riding', 'handle', 'summon', 'rapped', 'needto', 'galaxy', 'gnomes', 'getyou', 'ollomh', 'engulf', 'waseth', 'dunnan', 'banish', 'basket', 'hahaha', 'tattoo', 'denial', 'spends', 'colour', 'strive', 'warded', 'height', 'become', 'aillil', 'singin', 'wields', 'gained', 'sister', 'chrome', 'suited', 'assess', 'immune', 'camden', 'heresy', 'apollo', 'tossed', 'places', 'smooth', 'placed', 'rubble', 'denote', 'deadly', 'behold', 'monday', 'chance', 'lasted', 'defend', 'oldest', 'davies', 'rocnat', 'chapel', 'upload', 'gaelic', 'totems', 'follow', 'equals', 'secure', 'highly', 'dannan', 'groves', 'gloria', 'impair', 'chilly', 'verify', 'coined', 'retain', 'office', 'devote', 'pascal', 'denver', 'versus', 'lifted', 'kneels', 'evolve', 'hosted', 'hazels', 'sprigg', 'alskog', 'thuban', 'raisin', 'oppose', 'eremon', 'rooted', 'nooses', 'emblem', 'albert', 'jingle', 'wasted', 'gwynyd', 'target', 'scenes', 'seated', 'powers', 'return', 'manner', 'forced', 'latter', 'forces', 'magnum', 'maiden', 'lindow', 'oftenj', 'hindic', 'notion', 'echlyn', 'subtle', 'latent', 'masons', 'vowels', 'roinnt', 'cattle', 'imbolg', 'imbolc', 'pasted', 'unable', 'arcane', 'accord', 'unfold', 'relics', 'warmth', 'duties', 'excite', 'abrupt', 'vernal', 'avoids', 'depict', 'faiths', 'humble', 'humbly', 'indigo', 'quoted', 'newton', 'quotes', 'thanks', 'victim', 'swears', 'hallow', 'spread', 'jehana', 'viking', 'usable', 'alther', 'libhse', 'scaoil', 'purple', 'denied', 'framed', 'theirs', 'months', 'treble', 'amidst', 'lowest', 'rabbis', 'injury', 'veiled', 'flecks', 'lugaid', 'prayed', 'gather', 'manure', 'prayer', 'shrine', 'scored', 'pefect', 'murias', 'matron', 'global', 'battle', 'rhythm', 'terror', 'eliade', 'drakes', 'appear', 'aneris', 'shared', 'appeal', 'muslin', 'change', 'flames', 'pillow', 'marked', 'marker', 'rarely', 'market', 'salted', 'angels', 'slogan', 'decked', 'social', 'purity', 'heroes', 'indeed', 'aiding', 'selves', 'window', 'norway', 'domain', 'happen', 'opened', 'orphic', 'opener', 'cycles', 'honest', 'styles', 'flying', 'silent', 'caught', 'friend', 'mostly', 'brains', 'fruits', 'neatly', 'steady', 'sunset', 'filing', 'sceach', 'german', 'dougal', 'cannon', 'samuel', 'cannot', 'seldom', 'fanned', 'flatly', 'herbal', 'import', 'notice', 'aradia', 'wheels', 'nearby', 'differ', 'failte', 'beaver', 'poetic', 'cuchul', 'breezy', 'breeze', 'poplar', 'struck', 'dishes', 'pounds', 'twelve', 'verbal', 'oscars', 'willie', 'verily', 'mircea', 'grange', 'poured', 'shower', 'trying', 'sheath', 'merest', 'issian', 'diruit', 'dabble', 'gorias', 'gavity', 'ceased', 'carpet', 'foster', 'eldest', 'minded', 'decide', 'finger', 'heaven', 'orgasm', 'casual', 'edited', 'excess', 'strong', 'amoung', 'losses', 'amount', 'family', 'chunks', 'excuse', 'sweeps', 'visage', 'pushes', 'pushed', 'phrase', 'firmly', 'reject', 'anoint', 'minuto', 'wiener', 'huathe', 'bagage', 'beyond', 'payson', 'robert', 'safety', 'houses', 'reason', 'fenian', 'launch', 'scouts', 'assign', 'meadow', 'prople', 'pinned', 'expand', 'bardai', 'raping', 'kindle', 'toward', 'mickey', 'option', 'adrift', 'trance', 'salary', 'raving', 'sturdy', 'latest', 'jehova', 'pretty', 'circle', 'albeit', 'famous', 'during', 'stored', 'arrien', 'howled', 'cuirim', 'horrid', 'segais', 'header', 'vessel', 'partly', 'hoodoo', 'soiled', 'dictum', 'herein', 'belong', 'margot', 'influx', 'bearer', 'dearly', 'toyota', 'sketch', 'parade', 'urgent', 'savage', 'wealth', 'conrad', 'wicker', 'seeing', 'within', 'smells', 'innate', 'oghams', 'wicked', 'adults', 'willed', 'rupert', 'turedh', 'smiles', 'kansas', 'leaned', 'rested', 'oregon', 'knowth', 'wizard', 'athame', 'button', 'lleian', 'picked', 'rotten', 'infuse', 'scythe', 'ramses', 'orkney', 'danger', 'manage', 'infest', 'hiding', 'cheeks', 'sought', 'poetry', 'beatha', 'chiefs', 'thence', 'upward', 'ankles', 'inputs', 'morton', 'reacts', 'austin', 'boring', 'attack', 'punish', 'mantra', 'weiser', 'sewing', 'saolta', 'spleen', 'affair', 'parker', 'anyway', 'likens', 'argues', 'stance', 'cardan', 'ordain', 'preach', 'poular', 'humans', 'canine', 'tosses', 'limits', 'career', 'jersey', 'agreed', 'inhale', 'slowly', 'senses', 'league', 'sensed', 'harder', 'yeself', 'campus', 'chants', 'absorb', 'effect', 'fierce', 'single', 'hecate', 'trials', 'spells', 'idunna', 'logged', 'killed', 'sarsen', 'burden', 'starry', 'repeat', 'quarts', 'bundle', 'muchly', 'refuge', 'primal', 'museum', 'harken', 'signed', 'pumped', 'devise', 'kisses', 'upsets', 'relive', 'fodder', 'canvas', 'acroos', 'sphinx', 'todays', 'pardon', 'demand', 'fronts', 'sigils', 'rescue', 'govern', 'affect', 'baking', 'skills', 'graced', 'vector', 'graces', 'dogmas', 'likely', 'panama', 'lights', 'active', 'luther', 'credit', 'permit', 'joshua', 'sliced', 'guests', 'opovig', 'janine', 'expose', 'frenzy', 'sumbel', 'rights', 'climax', 'faults', 'answer', 'murray', 'censer', 'oswald', 'before', 'chatti', 'better', 'glazed', 'taught', 'decree', 'reader', 'grease', 'linear', 'resume', 'shaggy', 'setian', 'aphrod', 'starts', 'plains', 'tokens', 'swells', 'begins', 'matter', 'street', 'palace', 'rattle', 'modern', 'wrists', 'points', 'lyrics', 'hunger', 'retire', 'ending', 'poison', 'nevada', 'saturn', 'sinked', 'mayans', 'derwen', 'softly', 'voyage', 'siging', 'staves', 'peyotl', 'peyote', 'tasted', 'bardic', 'lovely', 'deeper', 'sooooo', 'magics', 'jewels', 'deepen', 'affirm', 'tastes', 'melted', 'anchor', 'mexico', 'tugaim', 'parish', 'writer', 'hooded', 'novels', 'butter', 'berate', 'claims', 'givers', 'unfair', 'legion', 'defray', 'rotate', 'dreams', 'signal', 'strife', 'normal', 'goddeu', 'goddes', 'keeper', 'myrdin', 'commit', 'editor', 'builds', 'bounds', 'tucson', 'cosmos', 'boomed', 'sticks', 'covers', 'awhile', 'handed', 'hangin', 'assume', 'undine', 'forthe', 'invent', 'themes', 'primer', 'father', 'string', 'forked', 'nectar', 'gypsie', 'talked', 'eating', 'troops', 'favour', 'filled', 'french', 'merlin', 'monies', 'useful', 'merely', 'pluses', 'cabals', 'repast', 'effort', 'making', 'arrive', 'sample', 'drawer', 'dennis', 'sunday', 'swayed', 'purify', 'hassan', 'shield', 'entity', 'policy', 'truest', 'tucked', 'sooner', 'arrows', 'zurich', 'richly', 'unlock', 'giveth', 'canada', 'living', 'greeks', 'pamela', 'romans', 'pundit', 'waited', 'rachel', 'sounds', 'little', 'anyone', 'knives', 'booted', 'liveth', 'topics', 'voices', 'roster', 'bowels', 'queens', 'jumped', 'uranus', 'corner', 'storms', 'behind', 'dianna', 'stupid', 'moladh', 'asatru', 'wonder', 'enough', 'across', 'august', 'parent', 'cancer', 'cancel', 'lakota', 'unwise', 'rammed', 'coffee', 'middle', 'sudden', 'ooomph', 'straif', 'wisely', 'doctor', 'driseg', 'speech', 'assist', 'driven', 'bottle', 'amazed', 'aspect', 'dipped', 'fucked', 'aiming', 'serves', 'facing', 'served', 'moving', 'images', 'ascent', 'stages', 'overly', 'caring', 'broken', 'visits', 'refers', 'helgen', 'island', 'tupper', 'dagger', 'downey', 'wiping', 'dolmen', 'cabled', 'cables', 'ngetal', 'ofrail', 'waxing', 'tackle', 'grudge', 'neters', 'forget', 'deosil', 'dollar', 'forged', 'washer', 'titled', 'strung', 'titles', 'public', 'beacon', 'enmity', 'stella', 'narrow', 'africa', 'croons', 'landed', 'trelle', 'strain', 'recall', 'remain', 'clergy', 'meeker', 'attain', 'sacred', 'charms', 'advice', 'coming', 'bathed', 'dragon', 'infant', 'odinic', 'winged', 'suffer', 'libido', 'obeyed', 'oxford', 'detach', 'easily', 'habits', 'fiacha', 'mental', 'energy', 'orient', 'lovers', 'flowed', 'backed', 'luisne', 'twenty', 'plexus', 'ordure', 'malice', 'gotten', 'orders', 'salmon', 'syntax', 'thomas', 'cerrig', 'hopped', 'evoked', 'inanna', 'merged', 'remove', 'common', 'gospel', 'devils')
n1 = float(input("Type the first number: ")) n2 = float(input("Type the second number: ")) print("Are equals?", n1 == n2) print("Are different?", n1 != n2) print("First number is greater than Second number? =", n1 > n2) print("Second is greater or equal than First number ? =", n2 >= n1) strTest = input("Type a string: ") conditions = 3 <= len(strTest) < 10 print("The string is greater or equal than 3 and less than 10? =", conditions) magicNumber = 12345679 userNumber = int(input("Type a random number between 1 and 9:")) userNumber *= 9 magicNumber *= userNumber print("The magic number is: ", magicNumber)
n1 = float(input('Type the first number: ')) n2 = float(input('Type the second number: ')) print('Are equals?', n1 == n2) print('Are different?', n1 != n2) print('First number is greater than Second number? =', n1 > n2) print('Second is greater or equal than First number ? =', n2 >= n1) str_test = input('Type a string: ') conditions = 3 <= len(strTest) < 10 print('The string is greater or equal than 3 and less than 10? =', conditions) magic_number = 12345679 user_number = int(input('Type a random number between 1 and 9:')) user_number *= 9 magic_number *= userNumber print('The magic number is: ', magicNumber)
track = dict( author_username='ryanholbrook', course_name='Computer Vision', course_url='https://www.kaggle.com/ryanholbrook/computer-vision', course_forum_url='https://www.kaggle.com/learn-forum', ) TOPICS = [ 'The Convolutional Classifier', 'Convolution and ReLU', 'Maximum Pooling', 'The Moving Window', 'Custom Convnets', 'Data Augmentation', ] lessons = [{'topic': topic_name} for topic_name in TOPICS] notebooks = [ dict( filename="tut1.ipynb", lesson_idx=0, type='tutorial', enable_gpu=True, ), dict( filename="ex1.ipynb", lesson_idx=0, type='exercise', enable_gpu=True, ), dict( filename="tut2.ipynb", lesson_idx=1, type='tutorial', ), dict( filename="ex2.ipynb", lesson_idx=1, type='exercise', ), dict( filename="tut3.ipynb", lesson_idx=2, type='tutorial', ), dict( filename="ex3.ipynb", lesson_idx=2, type='exercise', ), dict( filename="tut4.ipynb", lesson_idx=3, type='tutorial', ), dict( filename="ex4.ipynb", lesson_idx=3, type='exercise', ), dict( filename="tut5.ipynb", lesson_idx=4, type='tutorial', enable_gpu=True, ), dict( filename="ex5.ipynb", lesson_idx=4, type='exercise', enable_gpu=True, ), dict( filename="tut6.ipynb", lesson_idx=5, type='tutorial', enable_gpu=True, ), dict( filename="ex6.ipynb", lesson_idx=5, type='exercise', enable_gpu=True, ), ] for nb in notebooks: nb['dataset_sources'] = [ 'ryanholbrook/car-or-truck', 'ryanholbrook/computer-vision-resources', 'ryanholbrook/cv-course-models', ] # Add extra datasets to Exercise 6 if '6' in nb['filename']: nb['dataset_sources'] += [ 'ryanholbrook/tensorflow-flowers', 'ryanholbrook/eurosat', ]
track = dict(author_username='ryanholbrook', course_name='Computer Vision', course_url='https://www.kaggle.com/ryanholbrook/computer-vision', course_forum_url='https://www.kaggle.com/learn-forum') topics = ['The Convolutional Classifier', 'Convolution and ReLU', 'Maximum Pooling', 'The Moving Window', 'Custom Convnets', 'Data Augmentation'] lessons = [{'topic': topic_name} for topic_name in TOPICS] notebooks = [dict(filename='tut1.ipynb', lesson_idx=0, type='tutorial', enable_gpu=True), dict(filename='ex1.ipynb', lesson_idx=0, type='exercise', enable_gpu=True), dict(filename='tut2.ipynb', lesson_idx=1, type='tutorial'), dict(filename='ex2.ipynb', lesson_idx=1, type='exercise'), dict(filename='tut3.ipynb', lesson_idx=2, type='tutorial'), dict(filename='ex3.ipynb', lesson_idx=2, type='exercise'), dict(filename='tut4.ipynb', lesson_idx=3, type='tutorial'), dict(filename='ex4.ipynb', lesson_idx=3, type='exercise'), dict(filename='tut5.ipynb', lesson_idx=4, type='tutorial', enable_gpu=True), dict(filename='ex5.ipynb', lesson_idx=4, type='exercise', enable_gpu=True), dict(filename='tut6.ipynb', lesson_idx=5, type='tutorial', enable_gpu=True), dict(filename='ex6.ipynb', lesson_idx=5, type='exercise', enable_gpu=True)] for nb in notebooks: nb['dataset_sources'] = ['ryanholbrook/car-or-truck', 'ryanholbrook/computer-vision-resources', 'ryanholbrook/cv-course-models'] if '6' in nb['filename']: nb['dataset_sources'] += ['ryanholbrook/tensorflow-flowers', 'ryanholbrook/eurosat']
''' PythonExercicios\from math import factorial number = int(input('Choose a number: ')) result = factorial(number) print('The factorial of {}! is = {}'.format(number, result)) ''' number = int(input('Choose a number: ')) control = number result = 1 print('Calculating {}! = '.format(number), end='') while control > 0: if control > 1: print('{} X '.format(control), end='') else: print('{} = '.format(control), end='') if control > 0: result = result * control control -= 1 print('{}'.format(result))
""" PythonExercicios\x0crom math import factorial number = int(input('Choose a number: ')) result = factorial(number) print('The factorial of {}! is = {}'.format(number, result)) """ number = int(input('Choose a number: ')) control = number result = 1 print('Calculating {}! = '.format(number), end='') while control > 0: if control > 1: print('{} X '.format(control), end='') else: print('{} = '.format(control), end='') if control > 0: result = result * control control -= 1 print('{}'.format(result))
exclusions = ['\bCHAPTER (\d*|M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3}))\.*\b', 'CHAPTER', '\bChapter \d*\b', '\d{2}:\d{2}:\d{2},\d{3}\s-->\s\d{2}:\d{2}:\d{2},\d{3}', '^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})\.?\n', '^[^\w\d\s]*\n', '^(CLOV|HAMM|NAGG|NELL)\s\([\w\s\d]*\):', '^(HAMM|NAGG|NELL|CLOV):', '^-\s', '(Merryn|Hygd|Physician|Goneril|Cordeil|Gormflaith|The Younger Woman|The Elder Woman).*\.', '^Scene:.+\.\n', '^Lear.*\.\n', '^ACT I{0,3}V{0,1}\. Scene \w\.\n', '^Enter.*\.\n', '\[.*\n*.*\]', 'Exeunt\.', '(Glou|Edm|Bur|Corn|Alb|Edg|Cur|Doct|Osw|Capt|Gent|Her|\d\. Serv|Gon|Reg|Cor|Knight)(\.+|,+)\s*\n*', '(Bast|Glost|Cord|Edgar|Kent|Lear|Alb|Burg|Duke|Reg|Gon|Att|Gent)\.+\n+', 'S C E N E(\.|,)', 'A C T\s+(IV|I+|V)\.?', '^\^\).*\n', 'Mme\.+\s+', '^\*\).*\n', '\d+\n', '\b\d+\b', '\d+', '\"', '\s+\.\s+' ]
exclusions = ['\x08CHAPTER (\\d*|M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3}))\\.*\x08', 'CHAPTER', '\x08Chapter \\d*\x08', '\\d{2}:\\d{2}:\\d{2},\\d{3}\\s-->\\s\\d{2}:\\d{2}:\\d{2},\\d{3}', '^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})\\.?\n', '^[^\\w\\d\\s]*\n', '^(CLOV|HAMM|NAGG|NELL)\\s\\([\\w\\s\\d]*\\):', '^(HAMM|NAGG|NELL|CLOV):', '^-\\s', '(Merryn|Hygd|Physician|Goneril|Cordeil|Gormflaith|The Younger Woman|The Elder Woman).*\\.', '^Scene:.+\\.\n', '^Lear.*\\.\n', '^ACT I{0,3}V{0,1}\\. Scene \\w\\.\n', '^Enter.*\\.\n', '\\[.*\n*.*\\]', 'Exeunt\\.', '(Glou|Edm|Bur|Corn|Alb|Edg|Cur|Doct|Osw|Capt|Gent|Her|\\d\\. Serv|Gon|Reg|Cor|Knight)(\\.+|,+)\\s*\n*', '(Bast|Glost|Cord|Edgar|Kent|Lear|Alb|Burg|Duke|Reg|Gon|Att|Gent)\\.+\n+', 'S C E N E(\\.|,)', 'A C T\\s+(IV|I+|V)\\.?', '^\\^\\).*\n', 'Mme\\.+\\s+', '^\\*\\).*\n', '\\d+\n', '\x08\\d+\x08', '\\d+', '"', '\\s+\\.\\s+']
class Agent: def __init__(self, env, q_function, action_selector, logger): self.__env = env self.__q_function = q_function self.__action_selector = action_selector self.__logger = logger def train(self, steps, episodes, filepath, filename): episode_reward = 0 total_reward = 0 self.__q_function.reset() self.__action_selector.reset() for episode in range(episodes): current_state = self.__env.reset() episode_reward = 0 episode_length = 0 for t in range(steps): action = self.__action_selector.select_action(current_state, self.__q_function, self.__env) next_state, reward, done, info = self.__env.step(action) td_error = self.__q_function.update_q_function(current_state, next_state, action, reward) self.__action_selector.post_update(current_state, action, td_error) current_state = next_state episode_reward += reward episode_length += 1 if done: break total_reward += episode_reward self.__logger.log(episode, episode_reward, total_reward, episode_length) self.__logger.write(filepath + '/training-data/' + filename + '.csv') self.__logger.write(filepath + '/q_function/' + filename + '-q-function.csv', self.__q_function.get_q_function()) def solve(self, steps, render): episode_reward = 0 current_state = self.__env.reset() if render: self.__env.render() for i in range(steps): action = self.__q_function.get_best_action(current_state) next_state, reward, done, info = self.__env.step(action) current_state = next_state episode_reward += reward if render: self.__env.render() if done: break print("Episode finished after {} timesteps".format(i+1)) print("Cumulative reward at end = " + str(episode_reward))
class Agent: def __init__(self, env, q_function, action_selector, logger): self.__env = env self.__q_function = q_function self.__action_selector = action_selector self.__logger = logger def train(self, steps, episodes, filepath, filename): episode_reward = 0 total_reward = 0 self.__q_function.reset() self.__action_selector.reset() for episode in range(episodes): current_state = self.__env.reset() episode_reward = 0 episode_length = 0 for t in range(steps): action = self.__action_selector.select_action(current_state, self.__q_function, self.__env) (next_state, reward, done, info) = self.__env.step(action) td_error = self.__q_function.update_q_function(current_state, next_state, action, reward) self.__action_selector.post_update(current_state, action, td_error) current_state = next_state episode_reward += reward episode_length += 1 if done: break total_reward += episode_reward self.__logger.log(episode, episode_reward, total_reward, episode_length) self.__logger.write(filepath + '/training-data/' + filename + '.csv') self.__logger.write(filepath + '/q_function/' + filename + '-q-function.csv', self.__q_function.get_q_function()) def solve(self, steps, render): episode_reward = 0 current_state = self.__env.reset() if render: self.__env.render() for i in range(steps): action = self.__q_function.get_best_action(current_state) (next_state, reward, done, info) = self.__env.step(action) current_state = next_state episode_reward += reward if render: self.__env.render() if done: break print('Episode finished after {} timesteps'.format(i + 1)) print('Cumulative reward at end = ' + str(episode_reward))
student = {"name":"Rolf", "grades":(89,9,93,78,90)} def average(seq): return sum(seq)/len(seq) print(average(student["grades"])) class Student: def __init__(self,name,grades): self.name = name self.grades = grades def averageGrade(self): return sum(self.grades)/len(self.grades) student = Student("Bob", (89,90,93,78,90) ) student2 = Student("Rolf", (89,9,93,78,90) ) print(student.name) print(student.grades) print(student.averageGrade()) print(student2.name) print(student2.grades) print(student2.averageGrade())
student = {'name': 'Rolf', 'grades': (89, 9, 93, 78, 90)} def average(seq): return sum(seq) / len(seq) print(average(student['grades'])) class Student: def __init__(self, name, grades): self.name = name self.grades = grades def average_grade(self): return sum(self.grades) / len(self.grades) student = student('Bob', (89, 90, 93, 78, 90)) student2 = student('Rolf', (89, 9, 93, 78, 90)) print(student.name) print(student.grades) print(student.averageGrade()) print(student2.name) print(student2.grades) print(student2.averageGrade())
VERSION = '2.0b9' DEFAULT_TIMEOUT = 60000 REQUEST_ID_HEADER = 'Cko-Request-Id' API_VERSION_HEADER = 'Cko-Version'
version = '2.0b9' default_timeout = 60000 request_id_header = 'Cko-Request-Id' api_version_header = 'Cko-Version'
#Leia um numero real e imprima a quinta parte deste numero n=float(input("Informe um numero real: ")) n=n/5 print(n)
n = float(input('Informe um numero real: ')) n = n / 5 print(n)
expected_output = { 'instance': { 'default': { 'vrf': { 'red': { 'address_family': { '': { 'prefixes': { '11.11.11.11/32': { 'available_path': '1', 'best_path': '1', 'index': { 1: { 'binding_sid': { 'color': '7', 'sid': '22', 'state': 'UP', }, 'cluster_list': '8.8.8.9', 'ext_community': 'RT:2:2 Color:1 Color:2 Color:3 Color:4 Color:7', 'gateway': '7.7.7.9', 'imported_path_from': '1:1:11.11.11.11/32 (global)', 'localpref': 100, 'metric': 0, 'mpls_labels': { 'in': 'nolabel', 'out': '19', }, 'next_hop': '4.4.4.4', 'next_hop_igp_metric': '20', 'next_hop_via': 'default', 'origin_codes': '?', 'originator': '8.8.8.9', 'recipient_pathid': '0', 'refresh_epoch': 5, 'route_info': '1', 'status_codes': '*>', 'transfer_pathid': '0x0', 'update_group': 5, }, }, 'paths': '1 available, best #1, table red', 'table_version': '17', }, }, }, }, }, }, }, }, }
expected_output = {'instance': {'default': {'vrf': {'red': {'address_family': {'': {'prefixes': {'11.11.11.11/32': {'available_path': '1', 'best_path': '1', 'index': {1: {'binding_sid': {'color': '7', 'sid': '22', 'state': 'UP'}, 'cluster_list': '8.8.8.9', 'ext_community': 'RT:2:2 Color:1 Color:2 Color:3 Color:4 Color:7', 'gateway': '7.7.7.9', 'imported_path_from': '1:1:11.11.11.11/32 (global)', 'localpref': 100, 'metric': 0, 'mpls_labels': {'in': 'nolabel', 'out': '19'}, 'next_hop': '4.4.4.4', 'next_hop_igp_metric': '20', 'next_hop_via': 'default', 'origin_codes': '?', 'originator': '8.8.8.9', 'recipient_pathid': '0', 'refresh_epoch': 5, 'route_info': '1', 'status_codes': '*>', 'transfer_pathid': '0x0', 'update_group': 5}}, 'paths': '1 available, best #1, table red', 'table_version': '17'}}}}}}}}}