content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
'simple demo of using map to create instances of objects' class Dog: def __init__(self, name): self.name = name def bark(self): print("Woof! %s is barking!" % self.name) dogs = list(map(Dog, ['rex', 'rover', 'ranger']))
"""simple demo of using map to create instances of objects""" class Dog: def __init__(self, name): self.name = name def bark(self): print('Woof! %s is barking!' % self.name) dogs = list(map(Dog, ['rex', 'rover', 'ranger']))
#!/usr/bin/python3 max_integer = __import__('6-max_integer').max_integer print(max_integer([1, 2, 3, 4])) print(max_integer([1, 3, 4, 2]))
max_integer = __import__('6-max_integer').max_integer print(max_integer([1, 2, 3, 4])) print(max_integer([1, 3, 4, 2]))
try: # Check if the basestring type if available, this will fail in python3 basestring except NameError: basestring = str class ControlFileParams: generalParams = "GeneralParams" spawningBlockname = "SpawningParams" simulationBlockname = "SimulationParams" clusteringBlockname = "clusteringTypes" class GeneralParams: mandatory = { "restart": "bool", "outputPath": "basestring", "initialStructures": "list" } params = { "restart": "bool", "outputPath": "basestring", "initialStructures": "list", "debug": "bool", "writeAllClusteringStructures": "bool", "nativeStructure": "basestring" } class SpawningParams: params = { "epsilon": "numbers.Real", "T": "numbers.Real", "reportFilename": "basestring", "metricColumnInReport": "numbers.Real", "varEpsilonType": "basestring", "maxEpsilon": "numbers.Real", "minEpsilon": "numbers.Real", "variationWindow": "numbers.Real", "maxEpsilonWindow": "numbers.Real", "period": "numbers.Real", "alpha": "numbers.Real", "metricWeights": "basestring", "metricsInd": "list", "condition": "basestring", "n": "numbers.Real", "lagtime": "numbers.Real", "minPos": "list", "SASA_column": "int", "filterByMetric": "bool", "filter_value": "numbers.Real", "filter_col": "int" } types = { "sameWeight": { "reportFilename": "basestring" }, "independent": { "reportFilename": "basestring" }, "independentMetric": { "metricColumnInReport": "numbers.Real", "reportFilename": "basestring" }, "inverselyProportional": { "reportFilename": "basestring" }, "null": { "reportFilename": "basestring" }, "epsilon": { "epsilon": "numbers.Real", "reportFilename": "basestring", "metricColumnInReport": "numbers.Real", }, "FAST": { "epsilon": "numbers.Real", "reportFilename": "basestring", "metricColumnInReport": "numbers.Real", }, "variableEpsilon": { "epsilon": "numbers.Real", "reportFilename": "basestring", "metricColumnInReport": "numbers.Real", "varEpsilonType": "basestring", "maxEpsilon": "numbers.Real" }, "UCB": { "reportFilename": "basestring", "metricColumnInReport": "numbers.Real" }, "REAP": { "reportFilename": "basestring", "metricColumnInReport": "numbers.Real" }, "ProbabilityMSM": { "lagtime": "numbers.Real" }, "MetastabilityMSM": { "lagtime": "numbers.Real" }, "UncertaintyMSM": { "lagtime": "numbers.Real" }, "IndependentMSM": { "lagtime": "numbers.Real" } } density = { "types": { "heaviside": "basestring", "null": "basestring", "constant": "basestring", "exitContinuous": "basestring", "continuous": "basestring" }, "params": { "heaviside": "basestring", "null": "basestring", "constant": "basestring", "values": "list", "conditions": "list", "exitContinuous": "basestring", "continuous": "basestring" } } class SimulationParams: types = { "pele": { "processors": "numbers.Real", "controlFile": "basestring", "seed": "numbers.Real", "peleSteps": "numbers.Real", "iterations": "numbers.Real" }, "test": { "destination": "basestring", "origin": "basestring", "processors": "numbers.Real", "seed": "numbers.Real", "peleSteps": "numbers.Real", "iterations": "numbers.Real" }, "md": { "processors": "numbers.Real", "seed": "numbers.Real", "productionLength": "numbers.Real", "iterations": "numbers.Real", "numReplicas": "numbers.Real" }} params = { "executable": "basestring", "data": "basestring", "documents": "basestring", "destination": "basestring", "origin": "basestring", "time": "numbers.Real", "processors": "numbers.Real", "controlFile": "basestring", "seed": "numbers.Real", "peleSteps": "numbers.Real", "iterations": "numbers.Real", "modeMovingBox": "basestring", "boxCenter": "list", "boxRadius": "numbers.Real", "runEquilibration": "bool", "equilibrationMode": "basestring", "equilibrationLength": "numbers.Real", "equilibrationBoxRadius": "numbers.Real", "equilibrationTranslationRange": "numbers.Real", "equilibrationRotationRange": "numbers.Real", "numberEquilibrationStructures": "numbers.Real", "useSrun": "bool", "srunParameters": "basestring", "mpiParameters": "basestring", "exitCondition": "dict", "trajectoryName": "basestring", "ligandCharge": "list|numbers.Real", "ligandName": "list|basestring", "cofactors": "list", "ligandsToRestrict": "list", "nonBondedCutoff": "numbers.Real", "timeStep": "numbers.Real", "temperature": "numbers.Real", "runningPlatform": "basestring", "minimizationIterations": "numbers.Real", "reporterFrequency": "numbers.Real", "productionLength": "numbers.Real", "WaterBoxSize": "numbers.Real", "forcefield": "basestring", "trajectoriesPerReplica": "numbers.Real", "equilibrationLengthNVT": "numbers.Real", "equilibrationLengthNPT": "numbers.Real", "devicesPerTrajectory": "int", "constraintsMinimization": "numbers.Real", "constraintsNVT": "numbers.Real", "constraintsNPT": "numbers.Real", "customparamspath": "basestring", "numReplicas": "numbers.Real", "maxDevicesPerReplica": "numbers.Real", "format": "basestring", "constraints": "list", "boxType": "basestring", "postprocessing": "bool", "cylinderBases": "list" } exitCondition = { "types": { "metric": "basestring", "clustering": "basestring", "metricMultipleTrajectories": "basestring" }, "params": { "metricCol": "numbers.Real", "exitValue": "numbers.Real", "condition": "basestring", "numTrajs": "numbers.Real" } } class clusteringTypes: types = { "rmsd": {}, "contactMap": { "similarityEvaluator": "basestring", "ligandResname": "basestring" }, "lastSnapshot": { "ligandResname": "basestring" }, "null": {}, "MSM": { "ligandResname": "basestring", "nclusters": "numbers.Real" } } params = { "rmsd": "basestring", "contactMap": "basestring", "lastSnapshot": "basestring", "null": "basestring", "contactThresholdDistance": "numbers.Real", "ligandResname": "basestring", "ligandResnum": "numbers.Real", "ligandChain": "basestring", "similarityEvaluator": "basestring", "symmetries": "list", "alternativeStructure": "bool", "nclusters": "numbers.Real", "tica": "bool", "atom_Ids": "list", "writeCA": "bool", "sidechains": "bool", "tica_lagtime": "numbers.Real", "tica_nICs": "numbers.Real", "tica_kinetic_map": "bool", "tica_commute_map": "bool" } thresholdCalculator = { "types": { "heaviside": "basestring", "constant": "basestring" }, "params": { "conditions": "list", "values": "list", "value": "numbers.Real", "heaviside": "basestring", "constant": "basestring" } }
try: basestring except NameError: basestring = str class Controlfileparams: general_params = 'GeneralParams' spawning_blockname = 'SpawningParams' simulation_blockname = 'SimulationParams' clustering_blockname = 'clusteringTypes' class Generalparams: mandatory = {'restart': 'bool', 'outputPath': 'basestring', 'initialStructures': 'list'} params = {'restart': 'bool', 'outputPath': 'basestring', 'initialStructures': 'list', 'debug': 'bool', 'writeAllClusteringStructures': 'bool', 'nativeStructure': 'basestring'} class Spawningparams: params = {'epsilon': 'numbers.Real', 'T': 'numbers.Real', 'reportFilename': 'basestring', 'metricColumnInReport': 'numbers.Real', 'varEpsilonType': 'basestring', 'maxEpsilon': 'numbers.Real', 'minEpsilon': 'numbers.Real', 'variationWindow': 'numbers.Real', 'maxEpsilonWindow': 'numbers.Real', 'period': 'numbers.Real', 'alpha': 'numbers.Real', 'metricWeights': 'basestring', 'metricsInd': 'list', 'condition': 'basestring', 'n': 'numbers.Real', 'lagtime': 'numbers.Real', 'minPos': 'list', 'SASA_column': 'int', 'filterByMetric': 'bool', 'filter_value': 'numbers.Real', 'filter_col': 'int'} types = {'sameWeight': {'reportFilename': 'basestring'}, 'independent': {'reportFilename': 'basestring'}, 'independentMetric': {'metricColumnInReport': 'numbers.Real', 'reportFilename': 'basestring'}, 'inverselyProportional': {'reportFilename': 'basestring'}, 'null': {'reportFilename': 'basestring'}, 'epsilon': {'epsilon': 'numbers.Real', 'reportFilename': 'basestring', 'metricColumnInReport': 'numbers.Real'}, 'FAST': {'epsilon': 'numbers.Real', 'reportFilename': 'basestring', 'metricColumnInReport': 'numbers.Real'}, 'variableEpsilon': {'epsilon': 'numbers.Real', 'reportFilename': 'basestring', 'metricColumnInReport': 'numbers.Real', 'varEpsilonType': 'basestring', 'maxEpsilon': 'numbers.Real'}, 'UCB': {'reportFilename': 'basestring', 'metricColumnInReport': 'numbers.Real'}, 'REAP': {'reportFilename': 'basestring', 'metricColumnInReport': 'numbers.Real'}, 'ProbabilityMSM': {'lagtime': 'numbers.Real'}, 'MetastabilityMSM': {'lagtime': 'numbers.Real'}, 'UncertaintyMSM': {'lagtime': 'numbers.Real'}, 'IndependentMSM': {'lagtime': 'numbers.Real'}} density = {'types': {'heaviside': 'basestring', 'null': 'basestring', 'constant': 'basestring', 'exitContinuous': 'basestring', 'continuous': 'basestring'}, 'params': {'heaviside': 'basestring', 'null': 'basestring', 'constant': 'basestring', 'values': 'list', 'conditions': 'list', 'exitContinuous': 'basestring', 'continuous': 'basestring'}} class Simulationparams: types = {'pele': {'processors': 'numbers.Real', 'controlFile': 'basestring', 'seed': 'numbers.Real', 'peleSteps': 'numbers.Real', 'iterations': 'numbers.Real'}, 'test': {'destination': 'basestring', 'origin': 'basestring', 'processors': 'numbers.Real', 'seed': 'numbers.Real', 'peleSteps': 'numbers.Real', 'iterations': 'numbers.Real'}, 'md': {'processors': 'numbers.Real', 'seed': 'numbers.Real', 'productionLength': 'numbers.Real', 'iterations': 'numbers.Real', 'numReplicas': 'numbers.Real'}} params = {'executable': 'basestring', 'data': 'basestring', 'documents': 'basestring', 'destination': 'basestring', 'origin': 'basestring', 'time': 'numbers.Real', 'processors': 'numbers.Real', 'controlFile': 'basestring', 'seed': 'numbers.Real', 'peleSteps': 'numbers.Real', 'iterations': 'numbers.Real', 'modeMovingBox': 'basestring', 'boxCenter': 'list', 'boxRadius': 'numbers.Real', 'runEquilibration': 'bool', 'equilibrationMode': 'basestring', 'equilibrationLength': 'numbers.Real', 'equilibrationBoxRadius': 'numbers.Real', 'equilibrationTranslationRange': 'numbers.Real', 'equilibrationRotationRange': 'numbers.Real', 'numberEquilibrationStructures': 'numbers.Real', 'useSrun': 'bool', 'srunParameters': 'basestring', 'mpiParameters': 'basestring', 'exitCondition': 'dict', 'trajectoryName': 'basestring', 'ligandCharge': 'list|numbers.Real', 'ligandName': 'list|basestring', 'cofactors': 'list', 'ligandsToRestrict': 'list', 'nonBondedCutoff': 'numbers.Real', 'timeStep': 'numbers.Real', 'temperature': 'numbers.Real', 'runningPlatform': 'basestring', 'minimizationIterations': 'numbers.Real', 'reporterFrequency': 'numbers.Real', 'productionLength': 'numbers.Real', 'WaterBoxSize': 'numbers.Real', 'forcefield': 'basestring', 'trajectoriesPerReplica': 'numbers.Real', 'equilibrationLengthNVT': 'numbers.Real', 'equilibrationLengthNPT': 'numbers.Real', 'devicesPerTrajectory': 'int', 'constraintsMinimization': 'numbers.Real', 'constraintsNVT': 'numbers.Real', 'constraintsNPT': 'numbers.Real', 'customparamspath': 'basestring', 'numReplicas': 'numbers.Real', 'maxDevicesPerReplica': 'numbers.Real', 'format': 'basestring', 'constraints': 'list', 'boxType': 'basestring', 'postprocessing': 'bool', 'cylinderBases': 'list'} exit_condition = {'types': {'metric': 'basestring', 'clustering': 'basestring', 'metricMultipleTrajectories': 'basestring'}, 'params': {'metricCol': 'numbers.Real', 'exitValue': 'numbers.Real', 'condition': 'basestring', 'numTrajs': 'numbers.Real'}} class Clusteringtypes: types = {'rmsd': {}, 'contactMap': {'similarityEvaluator': 'basestring', 'ligandResname': 'basestring'}, 'lastSnapshot': {'ligandResname': 'basestring'}, 'null': {}, 'MSM': {'ligandResname': 'basestring', 'nclusters': 'numbers.Real'}} params = {'rmsd': 'basestring', 'contactMap': 'basestring', 'lastSnapshot': 'basestring', 'null': 'basestring', 'contactThresholdDistance': 'numbers.Real', 'ligandResname': 'basestring', 'ligandResnum': 'numbers.Real', 'ligandChain': 'basestring', 'similarityEvaluator': 'basestring', 'symmetries': 'list', 'alternativeStructure': 'bool', 'nclusters': 'numbers.Real', 'tica': 'bool', 'atom_Ids': 'list', 'writeCA': 'bool', 'sidechains': 'bool', 'tica_lagtime': 'numbers.Real', 'tica_nICs': 'numbers.Real', 'tica_kinetic_map': 'bool', 'tica_commute_map': 'bool'} threshold_calculator = {'types': {'heaviside': 'basestring', 'constant': 'basestring'}, 'params': {'conditions': 'list', 'values': 'list', 'value': 'numbers.Real', 'heaviside': 'basestring', 'constant': 'basestring'}}
num = int(input()) if num == 0: print("zero") elif num == 1: print("one") elif num == 2: print("two") elif num == 3: print("three") elif num == 4: print("four") elif num == 5: print("five") elif num == 6: print("six") elif num == 7: print("seven") elif num == 8: print("eight") elif num == 9: print("nine") else: print("number too big")
num = int(input()) if num == 0: print('zero') elif num == 1: print('one') elif num == 2: print('two') elif num == 3: print('three') elif num == 4: print('four') elif num == 5: print('five') elif num == 6: print('six') elif num == 7: print('seven') elif num == 8: print('eight') elif num == 9: print('nine') else: print('number too big')
# -*- coding:utf-8 -*- """ Description: Exceptions Usage: from AntShares.Exceptions import * """ class WorkIdError(Exception): """Work Id Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 0x0002 class OutputError(Exception): """Output Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 0x0003 class RegisterNameError(Exception): """Regiser Transaction Name Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 0x0004
""" Description: Exceptions Usage: from AntShares.Exceptions import * """ class Workiderror(Exception): """Work Id Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 2 class Outputerror(Exception): """Output Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 3 class Registernameerror(Exception): """Regiser Transaction Name Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 4
# Crie um progrmaa que leia dois numeros e mostra a soma entre eles n1 = int(input('Digite o primeiro numero: ')) n2 = int(input('Digite o segundo numero: ')) s = n1 + n2 print('A soma de \033[31m{}\033[m e \033[34m{}\033[m eh de \033[32m{}\033[m ' .format(n1, n2, s))
n1 = int(input('Digite o primeiro numero: ')) n2 = int(input('Digite o segundo numero: ')) s = n1 + n2 print('A soma de \x1b[31m{}\x1b[m e \x1b[34m{}\x1b[m eh de \x1b[32m{}\x1b[m '.format(n1, n2, s))
# TODO(dan): Sort out how this displays in tracebacks, it's terrible class ValidationError(Exception): def __init__(self, errors, exc=None): self.errors = errors self.exc = exc self._str = str(exc) if exc is not None else '' + ', '.join( [str(e) for e in errors]) def __str__(self): return self._str
class Validationerror(Exception): def __init__(self, errors, exc=None): self.errors = errors self.exc = exc self._str = str(exc) if exc is not None else '' + ', '.join([str(e) for e in errors]) def __str__(self): return self._str
# # PySNMP MIB module SONUS-NTP-SERVICES-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SONUS-NTP-SERVICES-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:02:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibIdentifier, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, NotificationType, TimeTicks, Bits, IpAddress, Unsigned32, ObjectIdentity, ModuleIdentity, iso, Integer32, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "NotificationType", "TimeTicks", "Bits", "IpAddress", "Unsigned32", "ObjectIdentity", "ModuleIdentity", "iso", "Integer32", "Gauge32") RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention") sonusEventLevel, sonusEventClass, sonusEventDescription, sonusShelfIndex, sonusSlotIndex = mibBuilder.importSymbols("SONUS-COMMON-MIB", "sonusEventLevel", "sonusEventClass", "sonusEventDescription", "sonusShelfIndex", "sonusSlotIndex") sonusServicesMIBs, = mibBuilder.importSymbols("SONUS-SMI", "sonusServicesMIBs") SonusName, SonusNameReference = mibBuilder.importSymbols("SONUS-TC", "SonusName", "SonusNameReference") sonusNtpServicesMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2)) if mibBuilder.loadTexts: sonusNtpServicesMIB.setLastUpdated('200004230000Z') if mibBuilder.loadTexts: sonusNtpServicesMIB.setOrganization('Sonus Networks, Inc.') sonusNtpServicesMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1)) sonusTimeZoneObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 1)) sonusTimeZone = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35))).clone(namedValues=NamedValues(("gmtMinus12-Eniuetok", 1), ("gmtMinus11-MidwayIsland", 2), ("gmtMinus10-Hawaii", 3), ("gmtMinus09-Alaska", 4), ("gmtMinus08-Pacific-US", 5), ("gmtMinus07-Arizona", 6), ("gmtMinus07-Mountain", 7), ("gmtMinus06-Central-US", 8), ("gmtMinus06-Mexico", 9), ("gmtMinus06-Saskatchewan", 10), ("gmtMinus05-Bojota", 11), ("gmtMinus05-Eastern-US", 12), ("gmtMinus05-Indiana", 13), ("gmtMinus04-Atlantic-Canada", 14), ("gmtMinus04-Caracas", 15), ("gmtMinus03-BuenosAires", 16), ("gmtMinus02-MidAtlantic", 17), ("gmtMinus01-Azores", 18), ("gmt", 19), ("gmtPlus01-Berlin", 20), ("gmtPlus02-Athens", 21), ("gmtPlus03-Moscow", 22), ("gmtPlus0330-Tehran", 23), ("gmtPlus04-AbuDhabi", 24), ("gmtPlus0430-Kabul", 25), ("gmtPlus05-Islamabad", 26), ("gmtPlus0530-NewDelhi", 27), ("gmtPlus06-Dhaka", 28), ("gmtPlus07-Bangkok", 29), ("gmtPlus08-Beijing", 30), ("gmtPlus09-Tokyo", 31), ("gmtPlus0930-Adelaide", 32), ("gmtPlus10-Guam", 33), ("gmtPlus11-Magadan", 34), ("gmtPlus12-Fiji", 35))).clone(12)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusTimeZone.setStatus('current') sonusNtpPeer = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2)) sonusNtpPeerNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerNextIndex.setStatus('current') sonusNtpPeerTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2), ) if mibBuilder.loadTexts: sonusNtpPeerTable.setStatus('current') sonusNtpAdmnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1), ).setIndexNames((0, "SONUS-NTP-SERVICES-MIB", "sonusNtpPeerIndex")) if mibBuilder.loadTexts: sonusNtpAdmnEntry.setStatus('current') sonusNtpPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerIndex.setStatus('current') sonusNtpServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 2), SonusName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpServerName.setStatus('current') sonusNtpPeerIpaddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerIpaddr.setStatus('current') sonusNtpPeerMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3, 8))).clone(namedValues=NamedValues(("poll", 3), ("broadcast", 8))).clone('poll')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerMode.setStatus('current') sonusNtpPeerVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3, 4))).clone(namedValues=NamedValues(("version3", 3), ("version4", 4))).clone('version3')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerVersion.setStatus('current') sonusNtpPeerMinPoll = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 63)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerMinPoll.setStatus('current') sonusNtpPeerMaxPoll = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 63)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerMaxPoll.setStatus('current') sonusNtpPeerAdmnState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerAdmnState.setStatus('current') sonusNtpPeerAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 9), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerAdmnRowStatus.setStatus('current') sonusNtpPeerStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3), ) if mibBuilder.loadTexts: sonusNtpPeerStatTable.setStatus('current') sonusNtpPeerStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1), ).setIndexNames((0, "SONUS-NTP-SERVICES-MIB", "sonusNtpPeerStatShelfIndex"), (0, "SONUS-NTP-SERVICES-MIB", "sonusNtpPeerStatIndex")) if mibBuilder.loadTexts: sonusNtpPeerStatEntry.setStatus('current') sonusNtpPeerStatShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerStatShelfIndex.setStatus('current') sonusNtpPeerStatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerStatIndex.setStatus('current') sonusNtpPeerState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("outofsync", 1), ("insync", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerState.setStatus('current') sonusNtpPeerStratum = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerStratum.setStatus('current') sonusNtpPeerRefTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerRefTime.setStatus('current') sonusNtpSysStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4), ) if mibBuilder.loadTexts: sonusNtpSysStatTable.setStatus('current') sonusNtpSysStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1), ).setIndexNames((0, "SONUS-NTP-SERVICES-MIB", "sonusNtpSysShelfIndex")) if mibBuilder.loadTexts: sonusNtpSysStatEntry.setStatus('current') sonusNtpSysShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysShelfIndex.setStatus('current') sonusNtpSysClock = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysClock.setStatus('current') sonusNtpSysRefTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysRefTime.setStatus('current') sonusNtpSysLastSelect = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysLastSelect.setStatus('current') sonusNtpSysPeer = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 5), SonusNameReference()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysPeer.setStatus('current') sonusNtpServicesMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2)) sonusNtpServicesMIBNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0)) sonusNtpServicesMIBNotificationsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1)) sonusNtpServerOutOfServiceReason = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ntpServerDisabled", 1), ("ntpServerOutOfSync", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpServerOutOfServiceReason.setStatus('current') sonusNtpDownReason = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noNtpServerConfigured", 1), ("allNtpServersOutOfSync", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpDownReason.setStatus('current') sonusNtpServerInServiceNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 1)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NTP-SERVICES-MIB", "sonusNtpServerName"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusNtpServerInServiceNotification.setStatus('current') sonusNtpServerOutOfServiceNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 2)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NTP-SERVICES-MIB", "sonusNtpServerName"), ("SONUS-NTP-SERVICES-MIB", "sonusNtpServerOutOfServiceReason"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusNtpServerOutOfServiceNotification.setStatus('current') sonusNtpUpNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 3)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusNtpUpNotification.setStatus('current') sonusNtpDownNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 4)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NTP-SERVICES-MIB", "sonusNtpDownReason"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusNtpDownNotification.setStatus('current') mibBuilder.exportSymbols("SONUS-NTP-SERVICES-MIB", sonusNtpServerName=sonusNtpServerName, sonusNtpSysStatEntry=sonusNtpSysStatEntry, sonusNtpPeerVersion=sonusNtpPeerVersion, sonusNtpPeerState=sonusNtpPeerState, sonusNtpSysPeer=sonusNtpSysPeer, sonusNtpPeerAdmnState=sonusNtpPeerAdmnState, sonusNtpUpNotification=sonusNtpUpNotification, sonusNtpServerOutOfServiceNotification=sonusNtpServerOutOfServiceNotification, sonusNtpPeerStatTable=sonusNtpPeerStatTable, sonusNtpDownNotification=sonusNtpDownNotification, sonusNtpPeerMaxPoll=sonusNtpPeerMaxPoll, sonusNtpServicesMIB=sonusNtpServicesMIB, sonusNtpSysRefTime=sonusNtpSysRefTime, sonusTimeZoneObjects=sonusTimeZoneObjects, sonusNtpPeerStratum=sonusNtpPeerStratum, sonusNtpPeerIpaddr=sonusNtpPeerIpaddr, sonusNtpSysLastSelect=sonusNtpSysLastSelect, sonusNtpServicesMIBNotifications=sonusNtpServicesMIBNotifications, sonusNtpPeerStatEntry=sonusNtpPeerStatEntry, sonusNtpPeerTable=sonusNtpPeerTable, sonusNtpPeerMinPoll=sonusNtpPeerMinPoll, sonusNtpPeerMode=sonusNtpPeerMode, sonusNtpPeerIndex=sonusNtpPeerIndex, sonusNtpPeerAdmnRowStatus=sonusNtpPeerAdmnRowStatus, PYSNMP_MODULE_ID=sonusNtpServicesMIB, sonusNtpPeer=sonusNtpPeer, sonusNtpPeerStatShelfIndex=sonusNtpPeerStatShelfIndex, sonusNtpServerInServiceNotification=sonusNtpServerInServiceNotification, sonusNtpAdmnEntry=sonusNtpAdmnEntry, sonusNtpPeerRefTime=sonusNtpPeerRefTime, sonusNtpPeerNextIndex=sonusNtpPeerNextIndex, sonusNtpServicesMIBNotificationsObjects=sonusNtpServicesMIBNotificationsObjects, sonusNtpDownReason=sonusNtpDownReason, sonusNtpSysShelfIndex=sonusNtpSysShelfIndex, sonusNtpSysStatTable=sonusNtpSysStatTable, sonusNtpSysClock=sonusNtpSysClock, sonusNtpServerOutOfServiceReason=sonusNtpServerOutOfServiceReason, sonusNtpServicesMIBNotificationsPrefix=sonusNtpServicesMIBNotificationsPrefix, sonusTimeZone=sonusTimeZone, sonusNtpServicesMIBObjects=sonusNtpServicesMIBObjects, sonusNtpPeerStatIndex=sonusNtpPeerStatIndex)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (mib_identifier, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, notification_type, time_ticks, bits, ip_address, unsigned32, object_identity, module_identity, iso, integer32, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'NotificationType', 'TimeTicks', 'Bits', 'IpAddress', 'Unsigned32', 'ObjectIdentity', 'ModuleIdentity', 'iso', 'Integer32', 'Gauge32') (row_status, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention') (sonus_event_level, sonus_event_class, sonus_event_description, sonus_shelf_index, sonus_slot_index) = mibBuilder.importSymbols('SONUS-COMMON-MIB', 'sonusEventLevel', 'sonusEventClass', 'sonusEventDescription', 'sonusShelfIndex', 'sonusSlotIndex') (sonus_services_mi_bs,) = mibBuilder.importSymbols('SONUS-SMI', 'sonusServicesMIBs') (sonus_name, sonus_name_reference) = mibBuilder.importSymbols('SONUS-TC', 'SonusName', 'SonusNameReference') sonus_ntp_services_mib = module_identity((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2)) if mibBuilder.loadTexts: sonusNtpServicesMIB.setLastUpdated('200004230000Z') if mibBuilder.loadTexts: sonusNtpServicesMIB.setOrganization('Sonus Networks, Inc.') sonus_ntp_services_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1)) sonus_time_zone_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 1)) sonus_time_zone = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35))).clone(namedValues=named_values(('gmtMinus12-Eniuetok', 1), ('gmtMinus11-MidwayIsland', 2), ('gmtMinus10-Hawaii', 3), ('gmtMinus09-Alaska', 4), ('gmtMinus08-Pacific-US', 5), ('gmtMinus07-Arizona', 6), ('gmtMinus07-Mountain', 7), ('gmtMinus06-Central-US', 8), ('gmtMinus06-Mexico', 9), ('gmtMinus06-Saskatchewan', 10), ('gmtMinus05-Bojota', 11), ('gmtMinus05-Eastern-US', 12), ('gmtMinus05-Indiana', 13), ('gmtMinus04-Atlantic-Canada', 14), ('gmtMinus04-Caracas', 15), ('gmtMinus03-BuenosAires', 16), ('gmtMinus02-MidAtlantic', 17), ('gmtMinus01-Azores', 18), ('gmt', 19), ('gmtPlus01-Berlin', 20), ('gmtPlus02-Athens', 21), ('gmtPlus03-Moscow', 22), ('gmtPlus0330-Tehran', 23), ('gmtPlus04-AbuDhabi', 24), ('gmtPlus0430-Kabul', 25), ('gmtPlus05-Islamabad', 26), ('gmtPlus0530-NewDelhi', 27), ('gmtPlus06-Dhaka', 28), ('gmtPlus07-Bangkok', 29), ('gmtPlus08-Beijing', 30), ('gmtPlus09-Tokyo', 31), ('gmtPlus0930-Adelaide', 32), ('gmtPlus10-Guam', 33), ('gmtPlus11-Magadan', 34), ('gmtPlus12-Fiji', 35))).clone(12)).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusTimeZone.setStatus('current') sonus_ntp_peer = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2)) sonus_ntp_peer_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpPeerNextIndex.setStatus('current') sonus_ntp_peer_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2)) if mibBuilder.loadTexts: sonusNtpPeerTable.setStatus('current') sonus_ntp_admn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1)).setIndexNames((0, 'SONUS-NTP-SERVICES-MIB', 'sonusNtpPeerIndex')) if mibBuilder.loadTexts: sonusNtpAdmnEntry.setStatus('current') sonus_ntp_peer_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpPeerIndex.setStatus('current') sonus_ntp_server_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 2), sonus_name()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusNtpServerName.setStatus('current') sonus_ntp_peer_ipaddr = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusNtpPeerIpaddr.setStatus('current') sonus_ntp_peer_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(3, 8))).clone(namedValues=named_values(('poll', 3), ('broadcast', 8))).clone('poll')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusNtpPeerMode.setStatus('current') sonus_ntp_peer_version = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(3, 4))).clone(namedValues=named_values(('version3', 3), ('version4', 4))).clone('version3')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusNtpPeerVersion.setStatus('current') sonus_ntp_peer_min_poll = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 63)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusNtpPeerMinPoll.setStatus('current') sonus_ntp_peer_max_poll = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 63)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusNtpPeerMaxPoll.setStatus('current') sonus_ntp_peer_admn_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusNtpPeerAdmnState.setStatus('current') sonus_ntp_peer_admn_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 9), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusNtpPeerAdmnRowStatus.setStatus('current') sonus_ntp_peer_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3)) if mibBuilder.loadTexts: sonusNtpPeerStatTable.setStatus('current') sonus_ntp_peer_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1)).setIndexNames((0, 'SONUS-NTP-SERVICES-MIB', 'sonusNtpPeerStatShelfIndex'), (0, 'SONUS-NTP-SERVICES-MIB', 'sonusNtpPeerStatIndex')) if mibBuilder.loadTexts: sonusNtpPeerStatEntry.setStatus('current') sonus_ntp_peer_stat_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpPeerStatShelfIndex.setStatus('current') sonus_ntp_peer_stat_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpPeerStatIndex.setStatus('current') sonus_ntp_peer_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('outofsync', 1), ('insync', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpPeerState.setStatus('current') sonus_ntp_peer_stratum = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpPeerStratum.setStatus('current') sonus_ntp_peer_ref_time = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 23))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpPeerRefTime.setStatus('current') sonus_ntp_sys_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4)) if mibBuilder.loadTexts: sonusNtpSysStatTable.setStatus('current') sonus_ntp_sys_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1)).setIndexNames((0, 'SONUS-NTP-SERVICES-MIB', 'sonusNtpSysShelfIndex')) if mibBuilder.loadTexts: sonusNtpSysStatEntry.setStatus('current') sonus_ntp_sys_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpSysShelfIndex.setStatus('current') sonus_ntp_sys_clock = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 23))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpSysClock.setStatus('current') sonus_ntp_sys_ref_time = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 23))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpSysRefTime.setStatus('current') sonus_ntp_sys_last_select = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 23))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpSysLastSelect.setStatus('current') sonus_ntp_sys_peer = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 5), sonus_name_reference()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpSysPeer.setStatus('current') sonus_ntp_services_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2)) sonus_ntp_services_mib_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0)) sonus_ntp_services_mib_notifications_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1)) sonus_ntp_server_out_of_service_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ntpServerDisabled', 1), ('ntpServerOutOfSync', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpServerOutOfServiceReason.setStatus('current') sonus_ntp_down_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noNtpServerConfigured', 1), ('allNtpServersOutOfSync', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusNtpDownReason.setStatus('current') sonus_ntp_server_in_service_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 1)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-NTP-SERVICES-MIB', 'sonusNtpServerName'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusNtpServerInServiceNotification.setStatus('current') sonus_ntp_server_out_of_service_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 2)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-NTP-SERVICES-MIB', 'sonusNtpServerName'), ('SONUS-NTP-SERVICES-MIB', 'sonusNtpServerOutOfServiceReason'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusNtpServerOutOfServiceNotification.setStatus('current') sonus_ntp_up_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 3)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusNtpUpNotification.setStatus('current') sonus_ntp_down_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 4)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-NTP-SERVICES-MIB', 'sonusNtpDownReason'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusNtpDownNotification.setStatus('current') mibBuilder.exportSymbols('SONUS-NTP-SERVICES-MIB', sonusNtpServerName=sonusNtpServerName, sonusNtpSysStatEntry=sonusNtpSysStatEntry, sonusNtpPeerVersion=sonusNtpPeerVersion, sonusNtpPeerState=sonusNtpPeerState, sonusNtpSysPeer=sonusNtpSysPeer, sonusNtpPeerAdmnState=sonusNtpPeerAdmnState, sonusNtpUpNotification=sonusNtpUpNotification, sonusNtpServerOutOfServiceNotification=sonusNtpServerOutOfServiceNotification, sonusNtpPeerStatTable=sonusNtpPeerStatTable, sonusNtpDownNotification=sonusNtpDownNotification, sonusNtpPeerMaxPoll=sonusNtpPeerMaxPoll, sonusNtpServicesMIB=sonusNtpServicesMIB, sonusNtpSysRefTime=sonusNtpSysRefTime, sonusTimeZoneObjects=sonusTimeZoneObjects, sonusNtpPeerStratum=sonusNtpPeerStratum, sonusNtpPeerIpaddr=sonusNtpPeerIpaddr, sonusNtpSysLastSelect=sonusNtpSysLastSelect, sonusNtpServicesMIBNotifications=sonusNtpServicesMIBNotifications, sonusNtpPeerStatEntry=sonusNtpPeerStatEntry, sonusNtpPeerTable=sonusNtpPeerTable, sonusNtpPeerMinPoll=sonusNtpPeerMinPoll, sonusNtpPeerMode=sonusNtpPeerMode, sonusNtpPeerIndex=sonusNtpPeerIndex, sonusNtpPeerAdmnRowStatus=sonusNtpPeerAdmnRowStatus, PYSNMP_MODULE_ID=sonusNtpServicesMIB, sonusNtpPeer=sonusNtpPeer, sonusNtpPeerStatShelfIndex=sonusNtpPeerStatShelfIndex, sonusNtpServerInServiceNotification=sonusNtpServerInServiceNotification, sonusNtpAdmnEntry=sonusNtpAdmnEntry, sonusNtpPeerRefTime=sonusNtpPeerRefTime, sonusNtpPeerNextIndex=sonusNtpPeerNextIndex, sonusNtpServicesMIBNotificationsObjects=sonusNtpServicesMIBNotificationsObjects, sonusNtpDownReason=sonusNtpDownReason, sonusNtpSysShelfIndex=sonusNtpSysShelfIndex, sonusNtpSysStatTable=sonusNtpSysStatTable, sonusNtpSysClock=sonusNtpSysClock, sonusNtpServerOutOfServiceReason=sonusNtpServerOutOfServiceReason, sonusNtpServicesMIBNotificationsPrefix=sonusNtpServicesMIBNotificationsPrefix, sonusTimeZone=sonusTimeZone, sonusNtpServicesMIBObjects=sonusNtpServicesMIBObjects, sonusNtpPeerStatIndex=sonusNtpPeerStatIndex)
JSVIZ1='''<script type="text/javascript"> function go() { var zoomCanvas = document.getElementById('canvas'); origZoomChart = new Scribl(zoomCanvas, 100); //origZoomChart.scale.min = 0; // origZoomChart.scale.max = 12000; ''' JSVIZ2=''' origZoomChart.scrollable = true; origZoomChart.scrollValues = [10, 250]; origZoomChart.draw(); } </script> ''' CANVAS=''' <div id="container"> <canvas id="canvas" width="940px" height="400px" style="margin-left:auto; margin-right:auto"></canvas> </div> ''' SEQ='''origZoomChart.addFeature( new Seq('human', %s, %s, "%s") );''' def addseq(pos,len,seq): return(SEQ % (pos,len,seq))
jsviz1 = '<script type="text/javascript">\n\t\t function go() {\n var zoomCanvas = document.getElementById(\'canvas\');\n origZoomChart = new Scribl(zoomCanvas, 100);\n //origZoomChart.scale.min = 0;\n\t // origZoomChart.scale.max = 12000;\n' jsviz2 = '\n origZoomChart.scrollable = true;\n origZoomChart.scrollValues = [10, 250];\n origZoomChart.draw();\n\t\t }\n\n\t\t</script>\n' canvas = '\t\t<div id="container">\n\t\t <canvas id="canvas" width="940px" height="400px" style="margin-left:auto; margin-right:auto"></canvas> \n\t\t</div>\t\t\n' seq = 'origZoomChart.addFeature( new Seq(\'human\', %s, %s, "%s") );' def addseq(pos, len, seq): return SEQ % (pos, len, seq)
"""Default constants used in this library. Exponential Coulomb interaction. v(x) = amplitude * exp(-abs(x) * kappa) See also ext_potentials.exp_hydrogenic. Further details in: Thomas E Baker, E Miles Stoudenmire, Lucas O Wagner, Kieron Burke, and Steven R White. One-dimensional mimicking of electronic structure: The case for exponentials. Physical Review B,91(23):235141, 2015. """ EXPONENTIAL_COULOMB_AMPLITUDE = 1.071295 EXPONENTIAL_COULOMB_KAPPA = 1 / 2.385345
"""Default constants used in this library. Exponential Coulomb interaction. v(x) = amplitude * exp(-abs(x) * kappa) See also ext_potentials.exp_hydrogenic. Further details in: Thomas E Baker, E Miles Stoudenmire, Lucas O Wagner, Kieron Burke, and Steven R White. One-dimensional mimicking of electronic structure: The case for exponentials. Physical Review B,91(23):235141, 2015. """ exponential_coulomb_amplitude = 1.071295 exponential_coulomb_kappa = 1 / 2.385345
def catalan_rec(n): if n <= 1: return 1 res = 0 for i in range(n): res += catalan_rec(i) * catalan_rec(n-i-1) return res def catalan_rec_td(n, arr): if n <= 1: return 1 if arr[n] > 0: return arr[n] res = 0 for i in range(n): res += catalan_rec_td(i, arr) * catalan_rec_td(n-i-1, arr) arr[n] = res return res def catalan_rec_bu(n): catalan = [0] * (n+1) catalan[0] = 1 catalan[1] = 1 for i in range(2, n + 1): catalan[i] = 0 for j in range(i): catalan[i] = catalan[i] + catalan[j] + catalan[i-j-1] return catalan[n] if __name__ == "__main__": for i in range(10): catalan_rec(i) for i in range(10): arr = [0] * i catalan_rec(i, arr)
def catalan_rec(n): if n <= 1: return 1 res = 0 for i in range(n): res += catalan_rec(i) * catalan_rec(n - i - 1) return res def catalan_rec_td(n, arr): if n <= 1: return 1 if arr[n] > 0: return arr[n] res = 0 for i in range(n): res += catalan_rec_td(i, arr) * catalan_rec_td(n - i - 1, arr) arr[n] = res return res def catalan_rec_bu(n): catalan = [0] * (n + 1) catalan[0] = 1 catalan[1] = 1 for i in range(2, n + 1): catalan[i] = 0 for j in range(i): catalan[i] = catalan[i] + catalan[j] + catalan[i - j - 1] return catalan[n] if __name__ == '__main__': for i in range(10): catalan_rec(i) for i in range(10): arr = [0] * i catalan_rec(i, arr)
# %% P = {"task.variable_a": "value-used-during-interactive-development"} # %% tags=["parameters"] # ---- During automated runs parameters will be injected in this cell --- # %% # ----------------------------------------------------------------------- # %% # Example comment print(1 + 12 + 123) # %% print(f"""variable_a={P["task.variable_a"]}""") # %%
p = {'task.variable_a': 'value-used-during-interactive-development'} print(1 + 12 + 123) print(f"variable_a={P['task.variable_a']}")
class Solution: def isValidSerialization(self, preorder: str) -> bool: return self.isValidSerializationStack(preorder) ''' Initial, Almost-Optimal, Split Iteration Look at the question closely. If i give you a subset from start, will you be able to tell me easily if its valid You will quickly realize that the numbers don't matter There a given number of slots for any given tree structure and all of them must be filled, BUT there should be no more nodes than the number of slots How do we know how many slots to be filled? Look at the tree growth and you will find a pattern Initially, we have 1 slot available (for the root) For every new number node, we use up 1 slot but create 2 new ones Net change: +1 For every null node, we use up 1 slot and create 0 new ones Net change: -1 So if you keep track of this slot count, you can easily figure out if the traversal is valid NOTE: The traversal being preorder is basically useless Time: O(n) Space: O(n) ''' def isValidSerializationInitial(self, preorder: str) -> bool: # initially we have one empty slot to put the root in it slots = 1 for node in preorder.split(','): # no empty slot to put the current node if slots == 0: return False if node == '#': # null node uses up a slot slots -= 1 else: # number node creates a new slot slots += 1 # we don't allow empty slots at the end return slots == 0 ''' Optimal, Character Iteration Similar logic as above, just skips the .split for char iteration This is because .split saves the split in a new list, costing us O(n) memory Time: O(n) Space: O(n) ''' def isValidSerializationCharIteration(self, preorder: str) -> bool: # initially we have one empty slot to put the root in it slots = 1 # this boolean indicates whether current digit char indicates a new node (for multi-char numbers) new_symbol = True for ch in preorder: # if current char is a comma # get ready for next node and continue if ch == ',': new_symbol = True continue # no empty slot to put the current node if slots == 0: return False if ch == '#': # null node uses up a slot slots -= 1 elif new_symbol: # number node creates a new slot slots += 1 # next letter is not a new node new_symbol = False # we don't allow empty slots at the end return slots == 0 ''' Stack Not better than initial, but interesting ''' def isValidSerializationStack(self, preorder: str) -> bool: stack = [] for node in preorder.split(","): while stack and node == stack[-1] == "#": if len(stack) < 2: return False stack.pop() stack.pop() stack.append(node) return stack == ['#']
class Solution: def is_valid_serialization(self, preorder: str) -> bool: return self.isValidSerializationStack(preorder) "\n Initial, Almost-Optimal, Split Iteration\n Look at the question closely.\n If i give you a subset from start, will you be able to tell me easily if its valid\n You will quickly realize that the numbers don't matter\n There a given number of slots for any given tree structure\n and all of them must be filled, BUT\n there should be no more nodes than the number of slots\n How do we know how many slots to be filled?\n Look at the tree growth and you will find a pattern\n Initially, we have 1 slot available (for the root)\n For every new number node, we use up 1 slot but create 2 new ones\n Net change: +1\n For every null node, we use up 1 slot and create 0 new ones\n Net change: -1\n So if you keep track of this slot count, you can easily figure out if the traversal is valid\n NOTE: The traversal being preorder is basically useless\n \n Time: O(n)\n Space: O(n)\n " def is_valid_serialization_initial(self, preorder: str) -> bool: slots = 1 for node in preorder.split(','): if slots == 0: return False if node == '#': slots -= 1 else: slots += 1 return slots == 0 '\n Optimal, Character Iteration\n Similar logic as above, just skips the .split for char iteration\n This is because .split saves the split in a new list, costing us O(n) memory\n \n Time: O(n)\n Space: O(n)\n ' def is_valid_serialization_char_iteration(self, preorder: str) -> bool: slots = 1 new_symbol = True for ch in preorder: if ch == ',': new_symbol = True continue if slots == 0: return False if ch == '#': slots -= 1 elif new_symbol: slots += 1 new_symbol = False return slots == 0 '\n Stack\n Not better than initial, but interesting\n ' def is_valid_serialization_stack(self, preorder: str) -> bool: stack = [] for node in preorder.split(','): while stack and node == stack[-1] == '#': if len(stack) < 2: return False stack.pop() stack.pop() stack.append(node) return stack == ['#']
""" Shell Sort Approach: Divide and Conquer Complexity: O(n2) """ def sort_shell(input_arr): print("""""""""""""""""""""""""") print("input " + str(input_arr)) print("""""""""""""""""""""""""") print("""""""""""""""""""""""""") print("result " + str(input_arr)) print("""""""""""""""""""""""""") if __name__ == '__main__': arr = [21, 4, 1, 3, 9, 20, 25, 6, 21, 14] sort_shell(arr)
""" Shell Sort Approach: Divide and Conquer Complexity: O(n2) """ def sort_shell(input_arr): print('') print('input ' + str(input_arr)) print('') print('') print('result ' + str(input_arr)) print('') if __name__ == '__main__': arr = [21, 4, 1, 3, 9, 20, 25, 6, 21, 14] sort_shell(arr)
#!/usr/bin/env python3 # Day 22: Binary Tree Zigzag Level Order Traversal # # Given a binary tree, return the zigzag level order traversal of its nodes' # values. (ie, from left to right, then right to left for the next level and # alternate between). # 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 zigzagLevelOrder(self, root: TreeNode) -> [[int]]: # First get a regular level order traversal if root is None: return [] result = [[root.val]] queue = [root] while len(queue) > 0: children = [] for node in queue: if node.left is not None: children.append(node.left) if node.right is not None: children.append(node.right) queue = children if len(children) > 0: result.append([node.val for node in queue]) # Then flip the odd levels for level in range(len(result)): if level % 2 == 1: result[level] = result[level][::-1] return result # Test test_tree = TreeNode(3) test_tree.left = TreeNode(9) test_tree.right = TreeNode(20) test_tree.right.left = TreeNode(15) test_tree.right.right = TreeNode(7) assert Solution().zigzagLevelOrder(test_tree) == [[3],[20,9],[15,7]]
class Treenode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def zigzag_level_order(self, root: TreeNode) -> [[int]]: if root is None: return [] result = [[root.val]] queue = [root] while len(queue) > 0: children = [] for node in queue: if node.left is not None: children.append(node.left) if node.right is not None: children.append(node.right) queue = children if len(children) > 0: result.append([node.val for node in queue]) for level in range(len(result)): if level % 2 == 1: result[level] = result[level][::-1] return result test_tree = tree_node(3) test_tree.left = tree_node(9) test_tree.right = tree_node(20) test_tree.right.left = tree_node(15) test_tree.right.right = tree_node(7) assert solution().zigzagLevelOrder(test_tree) == [[3], [20, 9], [15, 7]]
def minion_game(string): length = len(string) the_vowel = "AEIOU" kevin = 0 stuart = 0 for i in range(length): if string[i] in the_vowel: kevin = kevin + length - i else: stuart = stuart + length - i if kevin > stuart: print ("Kevin %d" % kevin) elif kevin < stuart: print ("Stuart %d" % stuart) else: print ("Draw")
def minion_game(string): length = len(string) the_vowel = 'AEIOU' kevin = 0 stuart = 0 for i in range(length): if string[i] in the_vowel: kevin = kevin + length - i else: stuart = stuart + length - i if kevin > stuart: print('Kevin %d' % kevin) elif kevin < stuart: print('Stuart %d' % stuart) else: print('Draw')
class PatchExtractor: def __init__(self, img, patch_size, stride): self.img = img self.size = patch_size self.stride = stride def extract_patches(self): wp, hp = self.shape() return [self.extract_patch((w, h)) for h in range(hp) for w in range(wp)] def extract_patch(self, patch): return self.img.crop(( patch[0] * self.stride, # left patch[1] * self.stride, # up patch[0] * self.stride + self.size, # right patch[1] * self.stride + self.size # down )) def shape(self): wp = int((self.img.width - self.size) / self.stride + 1) hp = int((self.img.height - self.size) / self.stride + 1) return wp, hp
class Patchextractor: def __init__(self, img, patch_size, stride): self.img = img self.size = patch_size self.stride = stride def extract_patches(self): (wp, hp) = self.shape() return [self.extract_patch((w, h)) for h in range(hp) for w in range(wp)] def extract_patch(self, patch): return self.img.crop((patch[0] * self.stride, patch[1] * self.stride, patch[0] * self.stride + self.size, patch[1] * self.stride + self.size)) def shape(self): wp = int((self.img.width - self.size) / self.stride + 1) hp = int((self.img.height - self.size) / self.stride + 1) return (wp, hp)
class OnegramException(Exception): pass # TODO [romeira]: Login exceptions {06/03/18 23:07} class AuthException(OnegramException): pass class AuthFailed(AuthException): pass class AuthUserError(AuthException): pass class NotSupportedError(OnegramException): pass class RequestFailed(OnegramException): pass class RateLimitedError(RequestFailed): pass # TODO [romeira]: Query/action exceptions {06/03/18 23:08} # TODO [romeira]: Session expired exception {06/03/18 23:08} # TODO [romeira]: Private user exception/warning {06/03/18 23:09} # TODO [romeira]: Not found exception {06/03/18 23:12} # TODO [romeira]: Already following/liked/commented? warnings {06/03/18 23:12} # TODO [romeira]: Timeout exception {06/03/18 23:12}
class Onegramexception(Exception): pass class Authexception(OnegramException): pass class Authfailed(AuthException): pass class Authusererror(AuthException): pass class Notsupportederror(OnegramException): pass class Requestfailed(OnegramException): pass class Ratelimitederror(RequestFailed): pass
# _version.py # Simon Hulse # [email protected] # Last Edited: Tue 10 May 2022 10:24:50 BST __version__ = "0.0.6"
__version__ = '0.0.6'
def fact(n): if n == 0: return(1) return(n*fact(n-1)) def ncr(n, r): return(fact(n)/(fact(r)*fact(n-r))) million = 1000000 n = 0 a = 0 comp = 0 for n in range(100, 0, -1): for r in range(a, n): if ncr(n,r) > million: comp += n-2*r + 1 a = r-1 break print(n) print("comp=" + str(comp))
def fact(n): if n == 0: return 1 return n * fact(n - 1) def ncr(n, r): return fact(n) / (fact(r) * fact(n - r)) million = 1000000 n = 0 a = 0 comp = 0 for n in range(100, 0, -1): for r in range(a, n): if ncr(n, r) > million: comp += n - 2 * r + 1 a = r - 1 break print(n) print('comp=' + str(comp))
#!/usr/bin/env python # # Copyright 2019 DFKI GmbH. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the # following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE # USE OR OTHER DEALINGS IN THE SOFTWARE. LOG_MODE_ERROR = -1 LOG_MODE_INFO = 1 LOG_MODE_DEBUG = 2 _lines = [] _active = True _mode = LOG_MODE_INFO def activate(): global _active _active = True def deactivate(): global _active _active = False def set_log_mode(mode): global _mode _mode = mode def write_log(*args): global _active global _lines if _active: line = " ".join(map(str, args)) print(line) _lines.append(line) def write_message_to_log(message, mode=LOG_MODE_INFO): global _active global _lines if _active and _mode >= mode: print(message) _lines.append(message) def save_log(filename): global _lines with open(filename, "wb") as outfile: for l in _lines: outfile.write(l+"\n") def clear_log(): global _lines _lines = []
log_mode_error = -1 log_mode_info = 1 log_mode_debug = 2 _lines = [] _active = True _mode = LOG_MODE_INFO def activate(): global _active _active = True def deactivate(): global _active _active = False def set_log_mode(mode): global _mode _mode = mode def write_log(*args): global _active global _lines if _active: line = ' '.join(map(str, args)) print(line) _lines.append(line) def write_message_to_log(message, mode=LOG_MODE_INFO): global _active global _lines if _active and _mode >= mode: print(message) _lines.append(message) def save_log(filename): global _lines with open(filename, 'wb') as outfile: for l in _lines: outfile.write(l + '\n') def clear_log(): global _lines _lines = []
# # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy, modify, # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A # PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # ORIGINAL_VALUE = 0 TOP_RESOLUTION = 1 SLOT_CONFIG = { 'event_name': {'type': TOP_RESOLUTION, 'remember': True, 'error': 'I couldn\'t find an event called "{}".'}, 'event_month': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_name': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_city': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_state': {'type': ORIGINAL_VALUE, 'remember': True}, 'cat_desc': {'type': TOP_RESOLUTION, 'remember': True, 'error': 'I couldn\'t find a category called "{}".'}, 'count': {'type': ORIGINAL_VALUE, 'remember': True}, 'dimension': {'type': ORIGINAL_VALUE, 'remember': True}, 'one_event': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find an event called "{}".'}, 'another_event': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find an event called "{}".'}, 'one_venue': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_venue': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_month': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_month': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_city': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_city': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_state': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_state': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_category': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find a category called "{}".'}, 'another_category': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find a category called "{}".'} } DIMENSIONS = { 'events': {'slot': 'event_name', 'column': 'e.event_name', 'singular': 'event'}, 'months': {'slot': 'event_month', 'column': 'd.month', 'singular': 'month'}, 'venues': {'slot': 'venue_name', 'column': 'v.venue_name', 'singular': 'venue'}, 'cities': {'slot': 'venue_city', 'column': 'v.venue_city', 'singular': 'city'}, 'states': {'slot': 'venue_state', 'column': 'v.venue_state', 'singular': 'state'}, 'categories': {'slot': 'cat_desc', 'column': 'c.cat_desc', 'singular': 'category'} } class SlotError(Exception): pass
original_value = 0 top_resolution = 1 slot_config = {'event_name': {'type': TOP_RESOLUTION, 'remember': True, 'error': 'I couldn\'t find an event called "{}".'}, 'event_month': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_name': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_city': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_state': {'type': ORIGINAL_VALUE, 'remember': True}, 'cat_desc': {'type': TOP_RESOLUTION, 'remember': True, 'error': 'I couldn\'t find a category called "{}".'}, 'count': {'type': ORIGINAL_VALUE, 'remember': True}, 'dimension': {'type': ORIGINAL_VALUE, 'remember': True}, 'one_event': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find an event called "{}".'}, 'another_event': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find an event called "{}".'}, 'one_venue': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_venue': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_month': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_month': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_city': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_city': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_state': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_state': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_category': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find a category called "{}".'}, 'another_category': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find a category called "{}".'}} dimensions = {'events': {'slot': 'event_name', 'column': 'e.event_name', 'singular': 'event'}, 'months': {'slot': 'event_month', 'column': 'd.month', 'singular': 'month'}, 'venues': {'slot': 'venue_name', 'column': 'v.venue_name', 'singular': 'venue'}, 'cities': {'slot': 'venue_city', 'column': 'v.venue_city', 'singular': 'city'}, 'states': {'slot': 'venue_state', 'column': 'v.venue_state', 'singular': 'state'}, 'categories': {'slot': 'cat_desc', 'column': 'c.cat_desc', 'singular': 'category'}} class Sloterror(Exception): pass
""" Examples: >>> square(1) 1 >>> square(2) 4 >>> square(3) 9 >>> spam = Spam() >>> spam.eggs() 42 """ def square(x): """ Examples: >>> square(1) 1 >>> square(2) 4 >>> square(3) 9 """ return x * x class Spam(object): """ Examples: >>> spam = Spam() >>> spam.eggs() 42 """ def eggs(self): """ Examples: >>> spam = Spam() >>> spam.eggs() 42 """ return 42
""" Examples: >>> square(1) 1 >>> square(2) 4 >>> square(3) 9 >>> spam = Spam() >>> spam.eggs() 42 """ def square(x): """ Examples: >>> square(1) 1 >>> square(2) 4 >>> square(3) 9 """ return x * x class Spam(object): """ Examples: >>> spam = Spam() >>> spam.eggs() 42 """ def eggs(self): """ Examples: >>> spam = Spam() >>> spam.eggs() 42 """ return 42
'''' def multiplica(a,b): return a*b print(multiplica(4,5)) def troca(x,y): aux = x x=y y=aux x=10 y=20 troca(x,y) print("X=",x,"e y =",y) ''' def total_caracteres (x,y,z): return (len(x)+len(y)+len(z))
"""' def multiplica(a,b): return a*b print(multiplica(4,5)) def troca(x,y): aux = x x=y y=aux x=10 y=20 troca(x,y) print("X=",x,"e y =",y) """ def total_caracteres(x, y, z): return len(x) + len(y) + len(z)
#!/usr/bin/env python3 def encode(message): encoded_message = "" i = 0 while (i <= len(message) - 1): count = 1 ch = message[i] j = i while (j < len(message) - 1): if (message[j] == message[j + 1]): count = count + 1 j = j + 1 else: break encoded_message = encoded_message + str(count) + ch i = j + 1 return encoded_message #Provide different values for message and test your program encoded_message = encode("ABBBBCCCCCCCCAB") print(encoded_message)
def encode(message): encoded_message = '' i = 0 while i <= len(message) - 1: count = 1 ch = message[i] j = i while j < len(message) - 1: if message[j] == message[j + 1]: count = count + 1 j = j + 1 else: break encoded_message = encoded_message + str(count) + ch i = j + 1 return encoded_message encoded_message = encode('ABBBBCCCCCCCCAB') print(encoded_message)
class MainClass: class_number = 20 class_string = 'Hello, world' def get_local_number(self): return 14 def get_lass_number(self): return MainClass.class_number def get_class_string(self): return MainClass.class_string
class Mainclass: class_number = 20 class_string = 'Hello, world' def get_local_number(self): return 14 def get_lass_number(self): return MainClass.class_number def get_class_string(self): return MainClass.class_string
friendly_names = { "fim_s01e01": "Season 1, Episode 1", "fim_s01e02": "Season 1, Episode 2", "fim_s01e03": "Season 1, Episode 3", "fim_s01e04": "Season 1, Episode 4", "fim_s01e05": "Season 1, Episode 5", "fim_s01e06": "Season 1, Episode 6", "fim_s01e07": "Season 1, Episode 7", "fim_s01e08": "Season 1, Episode 8", "fim_s01e09": "Season 1, Episode 9", "fim_s01e10": "Season 1, Episode 10", "fim_s01e11": "Season 1, Episode 11", "fim_s01e12": "Season 1, Episode 12", "fim_s01e13": "Season 1, Episode 13", "fim_s01e14": "Season 1, Episode 14", "fim_s01e15": "Season 1, Episode 15", "fim_s01e16": "Season 1, Episode 16", "fim_s01e17": "Season 1, Episode 17", "fim_s01e18": "Season 1, Episode 18", "fim_s01e19": "Season 1, Episode 19", "fim_s01e20": "Season 1, Episode 20", "fim_s01e21": "Season 1, Episode 21", "fim_s01e22": "Season 1, Episode 22", "fim_s01e23": "Season 1, Episode 23", "fim_s01e24": "Season 1, Episode 24", "fim_s01e25": "Season 1, Episode 25", "fim_s01e26": "Season 1, Episode 26", "fim_s02e01": "Season 2, Episode 1", "fim_s02e02": "Season 2, Episode 2", "fim_s02e03": "Season 2, Episode 3", "fim_s02e04": "Season 2, Episode 4", "fim_s02e05": "Season 2, Episode 5", "fim_s02e06": "Season 2, Episode 6", "fim_s02e07": "Season 2, Episode 7", "fim_s02e08": "Season 2, Episode 8", "fim_s02e09": "Season 2, Episode 9", "fim_s02e10": "Season 2, Episode 10", "fim_s02e11": "Season 2, Episode 11", "fim_s02e12": "Season 2, Episode 12", "fim_s02e13": "Season 2, Episode 13", "fim_s02e14": "Season 2, Episode 14", "fim_s02e15": "Season 2, Episode 15", "fim_s02e16": "Season 2, Episode 16", "fim_s02e17": "Season 2, Episode 17", "fim_s02e18": "Season 2, Episode 18", "fim_s02e19": "Season 2, Episode 19", "fim_s02e20": "Season 2, Episode 20", "fim_s02e21": "Season 2, Episode 21", "fim_s02e22": "Season 2, Episode 22", "fim_s02e23": "Season 2, Episode 23", "fim_s02e24": "Season 2, Episode 24", "fim_s02e25": "Season 2, Episode 25", "fim_s02e26": "Season 2, Episode 26", "fim_s03e01": "Season 3, Episode 1", "fim_s03e02": "Season 3, Episode 2", "fim_s03e03": "Season 3, Episode 3", "fim_s03e04": "Season 3, Episode 4", "fim_s03e05": "Season 3, Episode 5", "fim_s03e06": "Season 3, Episode 6", "fim_s03e07": "Season 3, Episode 7", "fim_s03e08": "Season 3, Episode 8", "fim_s03e09": "Season 3, Episode 9", "fim_s03e10": "Season 3, Episode 10", "fim_s03e11": "Season 3, Episode 11", "fim_s03e12": "Season 3, Episode 12", "fim_s03e13": "Season 3, Episode 13", "fim_s04e01": "Season 4, Episode 1", "fim_s04e02": "Season 4, Episode 2", "fim_s04e03": "Season 4, Episode 3", "fim_s04e04": "Season 4, Episode 4", "fim_s04e05": "Season 4, Episode 5", "fim_s04e06": "Season 4, Episode 6", "fim_s04e07": "Season 4, Episode 7", "fim_s04e08": "Season 4, Episode 8", "fim_s04e09": "Season 4, Episode 9", "fim_s04e10": "Season 4, Episode 10", "fim_s04e11": "Season 4, Episode 11", "fim_s04e12": "Season 4, Episode 12", "fim_s04e13": "Season 4, Episode 13", "fim_s04e14": "Season 4, Episode 14", "fim_s04e15": "Season 4, Episode 15", "fim_s04e16": "Season 4, Episode 16", "fim_s04e17": "Season 4, Episode 17", "fim_s04e18": "Season 4, Episode 18", "fim_s04e19": "Season 4, Episode 19", "fim_s04e20": "Season 4, Episode 20", "fim_s04e21": "Season 4, Episode 21", "fim_s04e22": "Season 4, Episode 22", "fim_s04e23": "Season 4, Episode 23", "fim_s04e24": "Season 4, Episode 24", "fim_s04e25": "Season 4, Episode 25", "fim_s04e26": "Season 4, Episode 26", "fim_s05e01": "Season 5, Episode 1", "fim_s05e02": "Season 5, Episode 2", "fim_s05e03": "Season 5, Episode 3", "fim_s05e04": "Season 5, Episode 4", "fim_s05e05": "Season 5, Episode 5", "fim_s05e06": "Season 5, Episode 6", "fim_s05e07": "Season 5, Episode 7", "fim_s05e08": "Season 5, Episode 8", "fim_s05e09": "Season 5, Episode 9", "fim_s05e10": "Season 5, Episode 10", "fim_s05e11": "Season 5, Episode 11", "fim_s05e12": "Season 5, Episode 12", "fim_s05e13": "Season 5, Episode 13", "fim_s05e14": "Season 5, Episode 14", "fim_s05e15": "Season 5, Episode 15", "fim_s05e16": "Season 5, Episode 16", "fim_s05e17": "Season 5, Episode 17", "fim_s05e18": "Season 5, Episode 18", "fim_s05e19": "Season 5, Episode 19", "fim_s05e20": "Season 5, Episode 20", "fim_s05e21": "Season 5, Episode 21", "fim_s05e22": "Season 5, Episode 22", "fim_s05e23": "Season 5, Episode 23", "fim_s05e24": "Season 5, Episode 24", "fim_s05e25": "Season 5, Episode 25", "fim_s05e26": "Season 5, Episode 26", "fim_s06e01": "Season 6, Episode 1", "fim_s06e02": "Season 6, Episode 2", "fim_s06e03": "Season 6, Episode 3", "fim_s06e04": "Season 6, Episode 4", "fim_s06e05": "Season 6, Episode 5", "fim_s06e06": "Season 6, Episode 6", "fim_s06e07": "Season 6, Episode 7", "fim_s06e08": "Season 6, Episode 8", "fim_s06e09": "Season 6, Episode 9", "fim_s06e10": "Season 6, Episode 10", "fim_s06e11": "Season 6, Episode 11", "fim_s06e12": "Season 6, Episode 12", "fim_s06e13": "Season 6, Episode 13", "fim_s06e14": "Season 6, Episode 14", "fim_s06e15": "Season 6, Episode 15", "fim_s06e16": "Season 6, Episode 16", "fim_s06e17": "Season 6, Episode 17", "fim_s06e18": "Season 6, Episode 18", "fim_s06e19": "Season 6, Episode 19", "fim_s06e20": "Season 6, Episode 20", "fim_s06e21": "Season 6, Episode 21", "fim_s06e22": "Season 6, Episode 22", "fim_s06e23": "Season 6, Episode 23", "fim_s06e24": "Season 6, Episode 24", "fim_s06e25": "Season 6, Episode 25", "fim_s06e26": "Season 6, Episode 26", "fim_s07e01": "Season 7, Episode 1", "fim_s07e02": "Season 7, Episode 2", "fim_s07e03": "Season 7, Episode 3", "fim_s07e04": "Season 7, Episode 4", "fim_s07e05": "Season 7, Episode 5", "fim_s07e06": "Season 7, Episode 6", "fim_s07e07": "Season 7, Episode 7", "fim_s07e08": "Season 7, Episode 8", "fim_s07e09": "Season 7, Episode 9", "fim_s07e10": "Season 7, Episode 10", "fim_s07e11": "Season 7, Episode 11", "fim_s07e12": "Season 7, Episode 12", "fim_s07e13": "Season 7, Episode 13", "fim_s07e14": "Season 7, Episode 14", "fim_s07e15": "Season 7, Episode 15", "fim_s07e16": "Season 7, Episode 16", "fim_s07e17": "Season 7, Episode 17", "fim_s07e18": "Season 7, Episode 18", "fim_s07e19": "Season 7, Episode 19", "fim_s07e20": "Season 7, Episode 20", "fim_s07e21": "Season 7, Episode 21", "fim_s07e22": "Season 7, Episode 22", "fim_s07e23": "Season 7, Episode 23", "fim_s07e24": "Season 7, Episode 24", "fim_s07e25": "Season 7, Episode 25", "fim_s07e26": "Season 7, Episode 26", "fim_s08e01": "Season 8, Episode 1", "fim_s08e02": "Season 8, Episode 2", "fim_s08e03": "Season 8, Episode 3", "fim_s08e04": "Season 8, Episode 4", "fim_s08e05": "Season 8, Episode 5", "fim_s08e06": "Season 8, Episode 6", "fim_s08e07": "Season 8, Episode 7", "fim_s08e08": "Season 8, Episode 8", "fim_s08e09": "Season 8, Episode 9", "fim_s08e10": "Season 8, Episode 10", "fim_s08e11": "Season 8, Episode 11", "fim_s08e12": "Season 8, Episode 12", "fim_s08e13": "Season 8, Episode 13", "fim_s08e14": "Season 8, Episode 14", "fim_s08e15": "Season 8, Episode 15", "fim_s08e16": "Season 8, Episode 16", "fim_s08e17": "Season 8, Episode 17", "fim_s08e18": "Season 8, Episode 18", "fim_s08e19": "Season 8, Episode 19", "fim_s08e20": "Season 8, Episode 20", "fim_s08e21": "Season 8, Episode 21", "fim_s08e22": "Season 8, Episode 22", "fim_s08e23": "Season 8, Episode 23", "fim_s08e24": "Season 8, Episode 24", "fim_s08e25": "Season 8, Episode 25", "fim_s08e26": "Season 8, Episode 26", "fim_s09e01": "Season 9, Episode 1", "fim_s09e02": "Season 9, Episode 2", "fim_s09e03": "Season 9, Episode 3", "fim_s09e04": "Season 9, Episode 4", "fim_s09e05": "Season 9, Episode 5", "fim_s09e06": "Season 9, Episode 6", "fim_s09e07": "Season 9, Episode 7", "fim_s09e08": "Season 9, Episode 8", "fim_s09e09": "Season 9, Episode 9", "fim_s09e10": "Season 9, Episode 10", "fim_s09e11": "Season 9, Episode 11", "fim_s09e12": "Season 9, Episode 12", "fim_s09e13": "Season 9, Episode 13", "fim_s09e14": "Season 9, Episode 14", "fim_s09e15": "Season 9, Episode 15", "fim_s09e16": "Season 9, Episode 16", "fim_s09e17": "Season 9, Episode 17", "fim_s09e18": "Season 9, Episode 18", "fim_s09e19": "Season 9, Episode 19", "fim_s09e20": "Season 9, Episode 20", "fim_s09e21": "Season 9, Episode 21", # "fim_s09e22": "Season 9, Episode 22", # "fim_s09e23": "Season 9, Episode 23", # "fim_s09e24": "Season 9, Episode 24", # "fim_s09e25": "Season 9, Episode 25", # "fim_s09e26": "Season 9, Episode 26", "eqg_original_movie": "Equestria Girls (Original)", "eqg_friendship_games": "Equestria Girls: Friendship Games", "eqg_legend_of_everfree": "Equestria Girls: Legend of Everfree", "eqg_rainbow_rocks": "Equestria Girls: Rainbow Rocks", } original_hashes = { "fim_s01e01": "5735ea49c43ea56109171cde2547a42cecb839cc", "fim_s01e02": "8d61b132aaff821b0b93fbff5baf74a017b93942", "fim_s01e03": "6c5e832dbdc91aec2159bd517a818c6aa1057613", "fim_s01e04": "b18eb5b02993dfed9cd383e54207119ee5cb51e4", "fim_s01e05": "7d7461461e39dd807ad5ace457d762c65075e62e", "fim_s01e06": "94138a8ed565a1d39ab43cbf9244720372287d66", "fim_s01e07": "a416681e16e9d8397e9ae06ecdfd9d2386e8f8f1", "fim_s01e08": "fedfadaa3d737e59fe1617407f80157258858004", "fim_s01e09": "75c31f8555f4b6a931b41185dd9aa645a6b5d9df", "fim_s01e10": "868a4050fd56eb397b25624a6bd6efea7b05f4d1", "fim_s01e11": "d9c603f4073e796454935eb855205f424b2bc0b0", "fim_s01e12": "9aa15d4cc4d6a1596b1b964add7398149cff5d4d", "fim_s01e13": "aa94e28636d9ad224b71c544a1ad84598a4899f6", "fim_s01e14": "6ea73fc00e5626669269c207b3ee0e52f018e382", "fim_s01e15": "701f2862a9aeefca70f6d314c0589c7a8a179ccc", "fim_s01e16": "dfcb90fb26d55641b554268d1d93efaa11ad285c", "fim_s01e17": "cc867f314d68564ce48e0bcad9b57a7af80a1520", "fim_s01e18": "e54ae83f44efd7dcab1bafa88eb6f3a6bd7f6c2a", "fim_s01e19": "96ca30cedca8170dad9611da02f774980ad83737", "fim_s01e20": "f4dbd0df7214583e0848360c89a8bde432c91b6d", "fim_s01e21": "ec5b1b9036ddce7cd62c0af9fb0c96a4dd85a52a", "fim_s01e22": "89aae028e1658c083c18a99216d1a549b30bce21", "fim_s01e23": "b18d2ab28435fbafb90046328e77751b8ca8cf6f", "fim_s01e24": "2e72f04bb686ea6273ebdda7f712ae32d76d0594", "fim_s01e25": "225228dcba4fdc08601b4b48cb182a9bc5d841f8", "fim_s01e26": "69030f04a1395db8a732149d552c7f9a5f95cad7", "fim_s02e01": "b188a4b7b3d9e74fa26dcb573e29216f450d677f", "fim_s02e02": "9072ea4af815c04c86fe00884aa55acde51c8de8", "fim_s02e03": "bc9bcab5e626e649185a237485cd6c45044febac", "fim_s02e04": "0bf3465a2adb91829d8fe16d8354f4dea9a96a4f", "fim_s02e05": "4d3033f9b443ebf892db563ecc183b15ad171134", "fim_s02e06": "e80a27201a93226b99377e5f3c7d60a337bfb974", "fim_s02e07": "5fd93be8ea58d26ed2eac7aee6cab6ea6d606da8", "fim_s02e08": "0f4197de4d3e5e29bb916c68c989c42003a3cae7", "fim_s02e09": "4aec2125d344f7651a25869f6fefe2d340cf255c", "fim_s02e10": "2df0e6d01d8510db000065baa2d028240d7dae49", "fim_s02e11": "7586a9586ffd57ddacda6201abd1e919cc6a782f", "fim_s02e12": "dd027fe0d956c851f8d4b633cfc56e0b5b24f786", "fim_s02e13": "667ef565d8fd3fa82dcd54cf2b469a5e1ae85c5e", "fim_s02e14": "69d1e1a4610eba20343287f2fd5a3419b74fb6e7", "fim_s02e15": "feedd3600151fa1834f9ff73363ce8931f7b5ec6", "fim_s02e16": "d2bb3a3f5daa5553b5be15894b4e209b211ea178", "fim_s02e17": "4524d942ca3834230e9766ba1e4ad4e51681ed0c", "fim_s02e18": "6ac536af39ec9a3096296af9da5559ae4a5d8523", "fim_s02e19": "82e77f72f7b67126ae7fd85e87cccb1d6fc586ff", "fim_s02e20": "333994b8309e760d0eaeaa793b18020b5b7acd9c", "fim_s02e21": "1b085707a89006b05290cc4df7e29030b42c85d0", "fim_s02e22": "cee734596a7c3f57e7c87e8542746142745375c7", "fim_s02e23": "e698ae4ec212fbef527914f5eeb4ee6cae8060fd", "fim_s02e24": "14b3bb367891df57cbd39aa9f34309d6a1658884", "fim_s02e25": "b6e1cc5ec6bcd7c9a14e901a278c7eb940ea93e1", "fim_s02e26": "201d11c9eea301bb85f222b392f88289d1b966d9", "fim_s03e01": "4408659e47d65176add7e46137f67b1756ea0265", "fim_s03e02": "32ace5c7e56f0dc92d192ccc3c5c5eda4ff32f29", "fim_s03e03": "60422fc559b26daeb7392b9c7839c6787e1bbdf0", "fim_s03e04": "51487978bdf587624f56abeb18e98703bb738ab1", "fim_s03e05": "ebd85277ee14163e7f5ec690197e617346032bd3", "fim_s03e06": "36c4ac7e393b268ce76cf7f834a52bcdd170a22c", "fim_s03e07": "7faadb4e07ea50f9660d4d29c5ec98e5080da2e2", "fim_s03e08": "3b4001fce0ab49313f59afcecfdb3944564b3682", "fim_s03e09": "5c045b5532829d502adcc9839cd22b961f5e7342", "fim_s03e10": "8212168e108028e5e4906a4fabba10530f2550a9", "fim_s03e11": "520d1362576df396c8db428fe430b4b14260346c", "fim_s03e12": "735ca37f27f8c75a7d3bc23bd43c933a4aa073c5", "fim_s03e13": "b9c1e54800c8965a2b3a3ab73ba8e1a3b24dd58b", "fim_s04e01": "fd420d33b9f256868ee5e379eb9c8a2bc3b40b09", "fim_s04e02": "73b72f84f85ee26ee9c2728b933c86d7d370a69b", "fim_s04e03": "5bedfc8eb95c9b692daa4a806ff35e6d5c215d1b", "fim_s04e04": "4f6aa4d45802b3304f04e6a4e3a7456933878a21", "fim_s04e05": "a03e2eb3d089408e3b37d3cd258736e81ee2e2cb", "fim_s04e06": "678bd6d70839761b9a4271af8cf55e526c12e6ca", "fim_s04e07": "ca0cd431366b9d29282f1cafed3c4b1194670a89", "fim_s04e08": "81f8192af3404dc563ba9d5567e89e781201226a", "fim_s04e09": "aad68c1cb09aa95482e22cfc9fd4495445cfe1e6", "fim_s04e10": "7be7993cc1a2ea9866f0ee6350765c0973fbab48", "fim_s04e11": "a7476b04649ab027f6419d439b7d7add52342145", "fim_s04e12": "977825b271c87e55d760ef3f93663f1491c16fcb", "fim_s04e13": "3d0fc66b9f550f84d599ae26a0561888620b83a2", "fim_s04e14": "ef3e76f455176c085d74f5571fbe20e378e2db15", "fim_s04e15": "26ef4519511b99b13d112dca008f8933bb0417ef", "fim_s04e16": "09155205ae4c06db7fc224016f3c529b2d72aeeb", "fim_s04e17": "d4516745d73a6c6b06922367370d9b60c1e9c9e2", "fim_s04e18": "0166151f5eb32b945fc0a7c87a83661193dc8a7e", "fim_s04e19": "714b02bc8baf1d892cd7a40d1846e2a98e17f771", "fim_s04e20": "a541743d1e4c68fec52ba8890ffde23b53d76df1", "fim_s04e21": "92ce42d2b108fe9adf0b6be24e91d8f7772a2b97", "fim_s04e22": "e274ef133ad4b64751737407ff2d56fafd404669", "fim_s04e23": "19983b86893a51ff9a9c7dfd975724dcba07f6fd", "fim_s04e24": "477c881d8da11102e280363b61a65fb3da41eecb", "fim_s04e25": "51d3e59472d7393a46303f7f7be084929242145b", "fim_s04e26": "97444afe8ab97a9d31586eb812a2fcd239fd055a", "fim_s05e01": "5dbb872d9bff9054a28e7438558d6a1f8264ff91", "fim_s05e02": "c3f15e75538b723a08fd602faba7714bd6e6d812", "fim_s05e03": "4621407df2da79bd229df24599f5caff56b88ea1", "fim_s05e04": "f839303bc2689ec96d61910ae6c7cf5c209616c7", "fim_s05e05": "5115b64a61e0819007f6382425f397ebe48a06de", "fim_s05e06": "0eb12c6d0baa38299b6afe70450e1c4bf02001fb", "fim_s05e07": "2178552485f41cb2fc30a6e0b5e0b6ff70129ef9", "fim_s05e08": "c5240a27e9956e388ab3aaa75078db473cf4f755", "fim_s05e09": "def459ef5462a3ae16aee3d7897eeeb272f366fc", "fim_s05e10": "b9c0b00bb44280c5a882ab86d65d62c864cd4aca", "fim_s05e11": "c8b22e0bb8d1e8db700ab334b7e1af487028abd1", "fim_s05e12": "d368b0c504d66794db1c576e2665f9e0bdc26149", "fim_s05e13": "9205df05a50ccebe7ef943dd753add0c113977e4", "fim_s05e14": "1f85660cc8a5eb6f02995b9d6791a2a693c78c15", "fim_s05e15": "8a5e01c14f3506c24c62204d57e882b40e77fbad", "fim_s05e16": "935236f72c771c29f37102ef039e91d6650ccb0b", "fim_s05e17": "e0ae2f283a214a454c1f5dc2d7f5266fcf06b625", "fim_s05e18": "aec9d8082e0b5d44df44530ac925eaf06d9eb36c", "fim_s05e19": "897e301efe7314d8b9badce6a976201aeb4a85bc", "fim_s05e20": "0bf2590abedcc2273813e641e19f6a85da0e868f", "fim_s05e21": "319945de56b444a1b576158af1a85f93ee1cce47", "fim_s05e22": "958dcd5354a6a1f92b9f7f825fa621a58a4f24b3", "fim_s05e23": "5ba88f8254ef41fc344e1cc4e19696e1dda8ed4f", "fim_s05e24": "a6f4b609f03c7c3db10f139ae9777b31faa87ade", "fim_s05e25": "2a457cace44f83d75d75a97d51ef8f7610b1ee5e", "fim_s05e26": "6109d956ffa8ef0e5654101188ceac10e0e4b00a", "fim_s06e01": "2f5a0741966fd0a65f39f6a46cf7e211c4abd615", "fim_s06e02": "772a81ef3a8bc4de77e9844a222024b7c6556902", "fim_s06e03": "c1776d478795ef7c1a80163df1d2577020fd67c1", "fim_s06e04": "31df7f9e1b14fe9e2cfda4bc374d42b5f6410ee8", "fim_s06e05": "63ae25a890c4ce775dd1e468cce9ff53ce1555d6", "fim_s06e06": "01eee5ecc47f9194252b0e6a79e3eab1e7c967bf", "fim_s06e07": "fb37ddb83fd33fb21f7ec531d2ab22ee553bfcff", "fim_s06e08": "e59cf84e2bda3c737e8e493eeacd8cc03226ed62", "fim_s06e09": "af76a47b6a4cc4f70c90b5a7a01198c36f9cefe2", "fim_s06e10": "64d83601772b03136d008755ac489d7db6f8782a", "fim_s06e11": "ee4b97ba3d04e45fb95f0bdd3489d2e89082fe46", "fim_s06e12": "624eb125ab329d0cbb6753e0485b3e898ec74f2a", "fim_s06e13": "265a77bbec7ffda9c4bc984a771eac89046d3db4", "fim_s06e14": "60f7e86420539011d092374e1fb9146f8a795108", "fim_s06e15": "b8c38b7727fe2711d5b27f5fd128e4f43f1230c6", "fim_s06e16": "e4e7c18f04dcfe19e6a122edd69dd0705b05815e", "fim_s06e17": "d75ffe2da2f92f8f80671d6a2f6de5ec41909f99", "fim_s06e18": "fb7b89e4a0984b3a31387199bc1e760e5e8e34fc", "fim_s06e19": "e768fb304bc6d8de89496d20649a068c9c482419", "fim_s06e20": "50b39be291c5d541587ec717df9703430f848266", "fim_s06e21": "617546695b583ece594330c591a6e4427eaaf77a", "fim_s06e22": "303d856ed659c809aab459684e1a94d1e4df5f76", "fim_s06e23": "a32aa10d18294a43fd3d6df25a129117f3261397", "fim_s06e24": "25fce908c96c825fd88e5b300f237eb34ec267b5", "fim_s06e25": "0aa2b8bcdc0d515ce645abebf96cf50eabbb2d68", "fim_s06e26": "e28ae456662b264cb791a071d9d8c9fca1b128c6", "fim_s07e01": "c2edfa142bb6c91446a3a747c49c9f3ee2234b9d", "fim_s07e02": "de9c1ca38abce51ed605d86bc6d85daf8fbe595a", "fim_s07e03": "585e527dd175d89f58723725d5aa1d4d27949616", "fim_s07e04": "f94a53d4ca0ff914b35de88f6488d5d0e666ce3b", "fim_s07e05": "58695b0e626411828275efd146d1e2c0953cb054", "fim_s07e06": "ed0d957a8e7f5b35835c9b617159dbef72378c6d", "fim_s07e07": "e75b261b0420f2051558f5d9b7c5d427ce997cbe", "fim_s07e08": "b1a72ee905e56567e9277247aee5ae78ce0ae3af", "fim_s07e09": "59f1d24cdb1b89775ee1c08e697c534b30ee09c0", "fim_s07e10": "fd83d40fcaf077b47fc3e953fcd71a9b55a5d230", "fim_s07e11": "c9a867d1ddc812b691b50cd413aa74d854cbe69f", "fim_s07e12": "df3ab652a7c120292069664886c72a05f6c3d31e", "fim_s07e13": "637041b3645af31dd7467b566f512b491582f59e", "fim_s07e14": "58ebd77188a430a23d63d36c317d40563265448c", "fim_s07e15": "029953957f3f5f96430b9900286671c45ed5029f", "fim_s07e16": "ebd3f72254542a3ab9bd05c8e8833f5ba4961d9e", "fim_s07e17": "c85dbaec5fc5508269cc1a68d8bc2d0fd09a1c5d", "fim_s07e18": "710e6e92c6e755ef6fb833b74b8335d2c4ae1855", "fim_s07e19": "4bc91bc47cc7c1d49682cea2ca5ea0897a14792a", "fim_s07e20": "1066134a286afa3ad42da6d40d800d4d70d10bb8", "fim_s07e21": "438f7eb81b4ef8ef20376bb87a3b07a938354066", "fim_s07e22": "b14f3aabbdafd30cdd91c18b4c8fd31ff6f50e8f", "fim_s07e23": "35e529712b734da8d2e4026f1e7297c064bb5686", "fim_s07e24": "a546204cece37896e6a49df7f53850586bb395ce", "fim_s07e25": "cd3624133eeac941a5a6e26912f9416a762017ef", "fim_s07e26": "7eb71360fafe1fb1f397b3e1ec5023e1a877e575", "fim_s08e01": "076cc70aeedf3b775070a174d24899c99bba48e7", "fim_s08e02": "ef55ff3f9e8be2c295687a9c05e607ef3902b74f", "fim_s08e03": "5d389fd6b7eb480b02f1a42e97ad496349c95ce4", "fim_s08e04": "c309a04a82c5d6b3a805de4ba6fdb1f2a7463283", "fim_s08e05": "83ba497a8e0e6c3cb0e030a0cc45ca2c412f264d", "fim_s08e06": "bb1a1e6aba6414d3d54e42dba64f636b6ccca1f4", "fim_s08e07": "cd90c566bec22350c83c53aa9892b3a31ad6c69a", "fim_s08e08": "7e100b9b553136604e411863d1b01f20b731c747", "fim_s08e09": "4360eba6f9068ddda8534a034e3eaada342bac97", "fim_s08e10": "94ad320e05ce30402d8f22b014f3004d76edfa6b", "fim_s08e11": "03b9ff19482c8db8c700d547025a23b8ca0c9b74", "fim_s08e12": "304d0723742c7fc10ef5d44868daef6684a5f674", "fim_s08e13": "3531ea698101b35a0823a843725e51500b6d70f2", "fim_s08e14": "4830050ce62167e61391b6cece11057caac273e6", "fim_s08e15": "8a2fd1e83457459fe29c548df94de3461d46adfd", "fim_s08e16": "2fb4a3ecc5062a1b5e7515c1f5e87f45151ca319", "fim_s08e17": "27bc30641357df42cae1a8622a6653c29540b550", "fim_s08e18": "c5f759656652a3c4745e2c25e90dae59442f46df", "fim_s08e19": "cb8b76cfcae9ca0496df5c3e8570e927093bce79", "fim_s08e20": "362db545da4fbaabcf31db03151f106ac66fecc1", "fim_s08e21": "c397c7a2c59f905e30d8654ebcb86417bc349dfc", "fim_s08e22": "9e790fb4b4796af8e8c9a7fd4a12cd69628243ba", "fim_s08e23": "19df7e2a55ca6141ac8708d8552fca36e19b593b", "fim_s08e24": "214f2c55f0d2bd625ed32d98bfda086c90d282b8", "fim_s08e25": "ee960deb72558e988f896e6e4bee03972ac598c7", "fim_s08e26": "af21facb8c787fe81b4fc03f7de529a87f425540", "fim_s09e01": "b42a1efd4656e1a935dbdd83bd5090323ec1f3c1", "fim_s09e02": "515fb107f552dfc34b85102276336c77a9daca37", "fim_s09e03": "6a584f94467f7df36ba970c2136f824abcdc8c16", "fim_s09e04": "72b9a3dc0493b064b12500bffaea6f7cf9206f41", "fim_s09e05": "c5540523c71796cc073836e82aca115a4a1c79ba", "fim_s09e06": "847bc311062d64baf047478323cc5aae20993eb9", "fim_s09e07": "6b5a6224ba2d52df20b73e2357a5c78facb0a60f", "fim_s09e08": "2a7fa34a6ddb7e8ee2263756f4d315bc323af94e", "fim_s09e09": "c60d111f27ea50bdb886adc71a8c5f946bfce280", "fim_s09e10": "8adfc1e86af3ec220c8d379a8a397588d98e11a6", "fim_s09e11": "40fb13de7799c29f8bf6f41090a54d24d49233a4", "fim_s09e12": "8cceb7e03154c46c61c6a0691180a654a8fe268d", "fim_s09e13": "7700e2e51cb7c8e634f7cabe28f066c4b1f0f72a", "fim_s09e14": "736f62c0c276f6aa1f911517b82d294dfce4b876", "fim_s09e15": "6a1ddf8ba3c0cd2713522f7582b16a0b48828a41", "fim_s09e16": "18b5e2fa57b4f82b76f3338a5ca44e95a289659e", "fim_s09e17": "d319eedfebff339b116985eeec7db529f952c9de", "fim_s09e18": "baa11cd12bee95a5bf2719b8f7bbe1fa3fad60f5", "fim_s09e19": "1757cfd03e199649d11d566d2c74f9a52d660bc8", "fim_s09e20": "5ba76c741cae8f83fb5ade47b946ba5925224577", "fim_s09e21": "beb7a4d66acd631f2891d2491702db673f026935", "fim_s09e22": "unknown", "fim_s09e23": "unknown", "fim_s09e24": "unknown", "fim_s09e25": "unknown", "fim_s09e26": "unknown", "eqg_original_movie": "a7d91653a1e68c7c1be95cb6f20d334c66266e98", "eqg_friendship_games": "41d5a6e45d13cde4220720e843ad5285d9ab95ff", "eqg_legend_of_everfree": "0ae355e182f7ad116127dcede68c50f247db6876", "eqg_rainbow_rocks": "3e9bccff77192b5acfce95d334805027f1de83e4", } izo_hashes = { "fim_s01e01": "f6a9024c2d5f1b98ed6f65ffb9e633b731633ca1", "fim_s01e02": "837028fbc12f6998da620bd687093cb71da44300", "fim_s01e03": "46cb8d1bdf8a59dbc38a080f7c1ee69bcf6ebe50", "fim_s01e04": "01fd19c33a7cfebae29630469f2b63f00e61ab67", "fim_s01e05": "7ed175f523796df134fe4a91cd924f495e7fc6f0", "fim_s01e06": "b44630407e4ba8aeecb9c9bce3094578a5989be5", "fim_s01e07": "c606a59baf8ea44667cdc1ef32dd0a8b439aa832", "fim_s01e08": "f9ece1c16c067f935f472ca44de2b42cbd4ce72c", "fim_s01e09": "081c9ad4947c28f111c64a2d0dfa3dbb122865a5", "fim_s01e10": "77ea25d4e5d6fbed37c87ef51498465c47850809", "fim_s01e11": "55b6a431b0fdb124106dc3ec3c9b34426780c7be", "fim_s01e12": "92d010ba3ac2b8fef2971ad95fa60b3d88b2dce3", "fim_s01e13": "39c55e57ade0e1dd75ac9f1d9528ebc9eb4049c7", "fim_s01e14": "ff9c70f14c1e9e17c90e5e74f0e6c830662e6641", "fim_s01e15": "c06c7e448eee5390c203692550deaa56c7ca99fa", "fim_s01e16": "f95e0b3e36bf56ad987a338d896c41ecfb5d6ef2", "fim_s01e17": "337e1d6a9d60b516ad4c1c252a2b3b43b110cd4a", "fim_s01e18": "f6adcde8831ca4801cd455c864e47ecf001becbd", "fim_s01e19": "bc91d89bf4361306ee03fbd66161f2c09e932180", "fim_s01e20": "077ef96ebe6b62f7b8dfbad054ccf48eeaa639ad", "fim_s01e21": "e79c648baffc2889e1bcda8bb1e6180ed229bdd0", "fim_s01e22": "d05cbf7e0062b23692542cfef4cb4509e1d1bb7c", "fim_s01e23": "6a6edc7f89bb1f5d297b9163abde7b60218b2f72", "fim_s01e24": "bd7bf5fca6f75306db9d06546a8151cdc8fa2af4", "fim_s01e25": "1f323ccc45e5ed180b91636cafaec314070eeb45", "fim_s01e26": "6c9f96dac12594083cadb1c520d9e9e238127414", "fim_s02e01": "961f47fc2d8617cb513a5c6e963ab5405583b24f", "fim_s02e02": "9cf031d0f8f5fa891a73f086417e3bf9f42f9ccc", "fim_s02e03": "12685c6cf5f1fac7e9114e78f091f42ee5f52b7d", "fim_s02e04": "3c789884ec1d340e55413a813bd39dab4290ef38", "fim_s02e05": "618049dbb04f4c9325f93854e9dd5bf984a459a4", "fim_s02e06": "de634231e70c2f23316944086f2c543c97c19a9f", "fim_s02e07": "4866c807dadb346607332b25c08530931967b4e3", "fim_s02e08": "d1f1885afd3eccc191b586ff7217be732b0d17a5", "fim_s02e09": "d52d0c06cec5ffabc441f2d390ea8260b63b8d47", "fim_s02e10": "9a9845afa5a4b5b64b418294debc45221042ba4f", "fim_s02e11": "f307bf2614e1ce8e19e581a683694a7d37f318c3", "fim_s02e12": "49bc1e0b89c944a5408d7d757779f130ff533ed6", "fim_s02e13": "5e56f840d7d5fbcf4c0724f9fbf6cbf5f00e56f5", "fim_s02e14": "ac86b17bfc3d9341dab3e6282506ead5326c3c70", "fim_s02e15": "1dcb2629a203f0a4f758dfee25930fe18f228a9b", "fim_s02e16": "c17161d4f77d44be1f8c72af6a15df630253ac53", "fim_s02e17": "b08637bc0489faaf9e1e7392536a6c218fadc2ab", "fim_s02e18": "a1191dd442d88bd50037cc8000eeb30b559c53e3", "fim_s02e19": "d9de8c47d06b6a922ba058b72ebfa816f302c573", "fim_s02e20": "fb72d51dab61f932313261a9a424f432e14df024", "fim_s02e21": "319344dd49593b60b2f9188deaac64c7207a91e4", "fim_s02e22": "3dacdacb0831dbf23ea02bc3edaa923b14c0216e", "fim_s02e23": "0415b042a97b52f6d4ee68a7dab90e6032160ab0", "fim_s02e24": "a0a48b6e4609e0c089966043ccdae842cfad7401", "fim_s02e25": "9f52e54d5273baafc607bc2e6503c5b4283a202e", "fim_s02e26": "5cd79ebce7f9302b4fd581c42d8f2ebb9d4dbf11", "fim_s03e01": "ad581fa4b222d653f8f067bf073251aad5c508f5", "fim_s03e02": "26043fa9c1ffd15ce10a32975a81cd0eb024a635", "fim_s03e03": "4ccc98ae5ae3a6845973f05414ee9d5f6bd106e3", "fim_s03e04": "2d028f89db0ab5ecf72126af65a0580d72f37fd8", "fim_s03e05": "a0c2edcc17bb07d07988199d4b8699ae1311cf92", "fim_s03e06": "fd7bdcd134c4e1a1039b58943143cd42c16daf22", "fim_s03e07": "06c566eb542db2fa6591e7d0be03d0588ffc72ce", "fim_s03e08": "fae0c07f7cdd4e071648477e861cf1e16a0bb705", "fim_s03e09": "3753c33c68f01934bc189ec017317f2bcbd70dd6", "fim_s03e10": "82844bb1ebabac572a239d5c08bc50ac602cc4b5", "fim_s03e11": "7cbc0294c8fd6412cd3f60f4d9dfde5a3a4ecae1", "fim_s03e12": "ba91ccd6ecb94859e895c8f3340ff4323ea8739f", "fim_s03e13": "b2bab2e7fa9e171aefcf0996b0987b4af25f16fe", "fim_s04e01": "0b8da7a6025a14aa2a2376d2519052fe883247cf", "fim_s04e02": "16dc2f4e35644a3b6df37ca3270eafa27fbc1dab", "fim_s04e03": "0bab184d4d58e520ea7a2ef54232a3f439076f83", "fim_s04e04": "3e971bd50fd6801a69169c81c9b22d2054b9102e", "fim_s04e05": "4efdae5536326d27db57cea43c8ffb9b486b2cbf", "fim_s04e06": "edb0561371fc453e6fe2474b2401948daab43333", "fim_s04e07": "4bbf58fdd9bc3f33376a44ccf164e8b33e14449e", "fim_s04e08": "f2a5c2ab930579c52aab347e003b6b4bb72c96b6", "fim_s04e09": "7d2f532d3540cd1147c9c3427e0f9a3bd6431162", "fim_s04e10": "f1f1ca515bd1bf1d462c570921c3486ebe99e5ff", "fim_s04e11": "4964977a3956c359d8800ee0f73a65bca0713805", "fim_s04e12": "ef639444d94cb91f057be13feb7d6107011d1c63", "fim_s04e13": "df95a0c61c2eaed4ea3a22d054a14d3533b5e61c", "fim_s04e14": "308cb00a6ab8bd4458759627063b64cff9e71b2b", "fim_s04e15": "19ac49592509505adb2e9cd6bdacb5c6e4ea3fcb", "fim_s04e16": "68f5b5df443dd44f31ba98b797b799022e4b9f58", "fim_s04e17": "06351f66834b2149ce3e4207af795d01f59986d7", "fim_s04e18": "afadfb72c758af6722df942ceb117ff59e26ca83", "fim_s04e19": "c48728696083634780d169c0334ef7570ff9b24c", "fim_s04e20": "bda66b67600367b1a79368e160d94f3f8132bfc3", "fim_s04e21": "36676b142a4765e1b4503067bae814245e5f9d9b", "fim_s04e22": "de86d1413b2d0f6d218f36fa19816d087c8fffda", "fim_s04e23": "06654109453e40c0a771f3f6f931c45638836eeb", "fim_s04e24": "8f0b8efe53b924ede6174b81fc2981accb24a126", "fim_s04e25": "ef09917da342d41a82a56c8688aa8de4fdaeca02", "fim_s04e26": "be4f396dff757242c5eaab50a72e1fe5d1f53223", "fim_s05e01": "dadbddb82ef59384c14c8ff341db3eff97f24ca8", "fim_s05e02": "210dcfc2ae2f3d81ae141c0fe53df47c8a9ab59d", "fim_s05e03": "78416fd1698876844ab838e55075c7d6224c9cc4", "fim_s05e04": "f5e84b08970e3b473361617abdc1f6a0bbe17792", "fim_s05e05": "304ed96576a36cd5646f1bcbe74279cd594871b3", "fim_s05e06": "83cee832d68583db83e6066380ecd0086ca2f1b8", "fim_s05e07": "1a64148801f604cf419f4edd3f0900af1f292112", "fim_s05e08": "6ef331a7f08cd0923f2f0326bf0d4fa0c17626f0", "fim_s05e09": "f7db68bf6e74be8ae26fe7d0c069db66dc48225f", "fim_s05e10": "d8d915e674acab272a146af517629e6d45a2e5c9", "fim_s05e11": "c07f5e9b1be669b59c28ce5aa26eb67546dd074f", "fim_s05e12": "6ea0cf770a228b9537c3c14e1382dd14b50997f7", "fim_s05e13": "27609192ad83af804295d8ae98c00ab8fc22eb5f", "fim_s05e14": "38a6b06c2ab0b3fc4fd7f238f89fe8bd277d28ef", "fim_s05e15": "4688d8c2050235dd5eebf7aa0099812eb5aeca34", "fim_s05e16": "71b2c6c682e142bbd53e80adc298d6b5c6f54123", "fim_s05e17": "a9ef2e4f7bbad929bd21f98563d07adfaab6129e", "fim_s05e18": "806444a811e91498d3cbfb001811cb21d548d4a8", "fim_s05e19": "f862eb7c844ae1f6c721e3fde703488b0e022dc2", "fim_s05e20": "253dc31d2279bfb7ec24228042702ed9e8f27a9a", "fim_s05e21": "beba681c7bf7e04f5537b9dda8d26eea81ad6abc", "fim_s05e22": "4f1118498df9a8a098b945843e2d4708099da8b1", "fim_s05e23": "700b3b57686af13fe370a509f7fe49c93fd12cb6", "fim_s05e24": "eff6b8292ce12f9427a1612e1c5736fada62f071", "fim_s05e25": "e0b85c17a79cb694cfedfe41c9f269ace64354ef", "fim_s05e26": "94173ecac9fa6d993b9e321c24a21d37b5295bdf", "fim_s06e01": "f9abcbff1c6559363dc2d01b1b131b1fd7652075", "fim_s06e02": "4570cb5c8f677081856503e9473b829af9ea5279", "fim_s06e03": "6da71d196d87b5a0d71a0d6cbc8d0739e6f08df3", "fim_s06e04": "a1e365ea7e0a5eee9d3284dc59345ceab167d8a0", "fim_s06e05": "717aca95a8877a9b5b5aaa4224c8eb595efbc8f8", "fim_s06e06": "5a1422a00d41575285b653b087fd72c2880452b5", "fim_s06e07": "e73b105b48d9554661558f0296bc4c34cb33c237", "fim_s06e08": "dda06b88279e0d2bbc536526af548d48b5e4f1e4", "fim_s06e09": "289234b9563758f0ced37eac3e6ed43e9bf2dd49", "fim_s06e10": "0368cfdd86f97d4ba49076cb164452e3aa920beb", "fim_s06e11": "11ab453a3f70f147952d35e9b4158920fc112524", "fim_s06e12": "9b4182df2d0e21170e23552796bcfcd33ecad1f1", "fim_s06e13": "b93b9faf3daa40b569c7d1200175a981dcc27335", "fim_s06e14": "46d41de3ce8e1811225930d27691c4de2049de85", "fim_s06e15": "fcb2fa148c53badc896b38e3b7ca9a9697ac063b", "fim_s06e16": "f3ae9395e43b6f3690795d8ab187af799e87cf29", "fim_s06e17": "498828cb2eee52431057d8b6728eccfb372df368", "fim_s06e18": "010ae66278753eb775d49bae32acab0d1c9c6fcd", "fim_s06e19": "8b6e00372b21906b74161141745cbb8643f937d5", "fim_s06e20": "2ea96c422a1d980cbc431da6df61cbf2bbb00ecf", "fim_s06e21": "fee21ca21647b474b10c57cd95b915f9454e3e4c", "fim_s06e22": "fd05dd1eafabb6ad23294f087400415428083952", "fim_s06e23": "e6b38a84d01530fb1710417c37b14edb9ceb0318", "fim_s06e24": "1d569bd9e83b93165a321d7f1137cc4f856e2f28", "fim_s06e25": "0988ecb76b172b1e0f2ab83c8a81a2b21d90cb23", "fim_s06e26": "7b255c9d24419c79b61cb03e1aa1c51ee869a59b", "fim_s07e01": "13552a4e583122cb929c335f2aabb96868ebe8bf", "fim_s07e02": "7168f16470d158d98e77cd2f956d3c3aeed950f0", "fim_s07e03": "f9d114d4a6ba8728ab1e66e2c72c2ab49afdb425", "fim_s07e04": "a4863d754430365e8f8352f1ea281b33152f62ec", "fim_s07e05": "f7e82abd7dfb363f7cc5d88c056ff39bf88fc91a", "fim_s07e06": "6f7d7a949963cf603d94a1d2f6ea2faba40d6ec0", "fim_s07e07": "f554058057385bf47b8e44247296bdecd74245d7", "fim_s07e08": "34a440cba25b5c0d28c4a4519fd666291c4eacb5", "fim_s07e09": "0a80082dcb8261751db62316624ddb1a5413d084", "fim_s07e10": "33959c2ac2e4210fe679a9d74ed035baa32ff581", "fim_s07e11": "f262360d1b534b9893277f17065efbc006e86597", "fim_s07e12": "decde67c0c63c957c89b3cc4814ec62010e0390f", "fim_s07e13": "a1fd8783e398141ab29969c968a9ef8d926a2761", "fim_s07e14": "538abc0eb0513c9d2915b7c226d63949977c8b45", "fim_s07e15": "ce4422c88246c21768f4188843824dc48bf2da30", "fim_s07e16": "ae4ba22190cdf32599bad2d1fa67371e31fa1bc5", "fim_s07e17": "c6a47aab6a11fccb4846ddabf650a47ed3ad95d9", "fim_s07e18": "800d3ba5074eb59556ff3d2d929fe55f33662467", "fim_s07e19": "49566b3604ef3414064cc5f6e2ddb71716f3c55e", "fim_s07e20": "856e6dc2c66f4c352fdb48625eae6cf8f8e8d0bf", "fim_s07e21": "55d99812da760cd528a735887e822517e06a30f4", "fim_s07e22": "62801071748a63e688e939b306d78b51f5f8e824", "fim_s07e23": "3a70ac5a28606d4e92fb9fec484997c5c45454bc", "fim_s07e24": "c8b532184c09ecb0f9eb468b18746edb95553053", "fim_s07e25": "da047c5cf0eb2e93cd163775fe1729e64ad3b5ca", "fim_s07e26": "b69f4c32c3717abef52fbf43e0f7d95e5ce0a9ae", "fim_s08e01": "695f7365f9fbb7df059f38911ef397c2525ddd0f", "fim_s08e02": "976df812644dbbaa5905dd9e6f2b712bfb9bce5a", "fim_s08e03": "4f8f3f236ad697147aa002d545907ce6427c1ef2", "fim_s08e04": "b3faf68eaf99deec4f5ef9ea162b5ec6df0412ff", "fim_s08e05": "7bdd85dec8e09fda1ec57cf56ce5cafc75188b31", "fim_s08e06": "6a53c91e3dd22ddc069d5cf85225d3ec9a141e2e", "fim_s08e07": "5b788645db606822e99d6188cbad5a06556bcd80", "fim_s08e08": "6cbcfde1eddaef72e4f54fab85602776c3f83f1f", "fim_s08e09": "1c01cfc679b442b2f05184327ca15fa0bb54a04c", "fim_s08e10": "8d680da1acdd9c8636fb6d093e3cae5e1072916c", "fim_s08e11": "3acc0bd1c3bd9ad1924a7baad0ae52d224f1b98f", "fim_s08e12": "814e5e20a1d5cb11b2d40630d8d9f09aadf0f367", "fim_s08e13": "f153eb6197d9587f10d5ef21b2564ecce8a0869c", "fim_s08e14": "003127da6e5d687a916e8f0facb99130f34d6856", "fim_s08e15": "c1db00dfe88352f6d09e90825ccf20aedda29416", "fim_s08e16": "bd5879b90204a8e45534f8f1021aeb05085b0cfb", "fim_s08e17": "d5d073670b0053b023bf7c82ba33bc58ae064e81", "fim_s08e18": "8bac4e2877cbdb46df87f1ca61c4f78ca41cb491", "fim_s08e19": "7d7cb95831868838738a12a215b04e97ab7d15d4", "fim_s08e20": "f631a709607562db55fc15b36657ef4ecddcc039", "fim_s08e21": "9690385208ee229254b635af82a09fa2ab9828c4", "fim_s08e22": "4379434a499ec49628607955e9d711d001c2c709", "fim_s08e23": "9d1bbd5ffa936a38dd50f819ee0ffa61bb8ce9b7", "fim_s08e24": "ae1aa3fa3ad40e000d3e4ce4775d665ff9f54cda", "fim_s08e25": "d51e3fe09bfcf10efcb7e81db41075d1afd48476", "fim_s08e26": "db77fb88f9de6d48f1abd197f366d481be9b76c6", "fim_s09e01": "697b309edad2fea1ac2d21e6c1d6e17dcedcabdb", "fim_s09e02": "756036b6d4932190a97b08c3578a5fd67fce328d", "fim_s09e03": "44a1060f5bf3d587e7bf85ad0dd172fefa636a83", "fim_s09e04": "430e5a5756053b09780400e1cb4bdad0662f492b", "fim_s09e05": "5d0fdc9c8dc60bdff56aec4c031de671f639749b", "fim_s09e06": "bb38c9d23c41df9c22668da7bf535988c3f1356f", "fim_s09e07": "ca180f475678b55150b92382edd7ce1c4350467d", "fim_s09e08": "e01251baa48012eb5a75e7798ca0f7970b08bbd6", "fim_s09e09": "f7d6a40d4c4405a96fdad66917fbb1b013b3d0aa", "fim_s09e10": "5c726e521b2160c19b9010fab42103e181e60ed5", "fim_s09e11": "54c9aedfe15155519c363c10133dd6d2277ad751", "fim_s09e12": "60f163a0092527684966532789bc2d90b8ee6986", "fim_s09e13": "6008d29554185bd36deec16b72368101b791fda3", "fim_s09e14": "44b896f80f0393559ee001e05c64df30a5dda905", "fim_s09e15": "6d880d843f8adecd6ec664128c1d355c486f2753", "fim_s09e16": "682776123da12ab638f3af15a75d7915dab38b4d", "fim_s09e17": "79e62638d6628c7ba97af6f6187a864e15787a7f", "fim_s09e18": "2974b45463f9ac41b4a29f63d9b0d013e311771e", "fim_s09e19": "8989d8a96822f29839bc3330487d7586aa927d37", "fim_s09e20": "088134fe57889434089515c889e590f33afeb099", "fim_s09e21": "7d6749aeb470e71c0e8bd51e3760ae9562f6579d", "fim_s09e22": "a164e1f92185d6fb51f1b5a25196c2377498ea43", "fim_s09e23": "3094600e69bd6934e925f58cb95a2430d1839f54", "fim_s09e24": "ded8ba2b9887a14597e41ec7256d9f45b0f61abc", "fim_s09e25": "ebab1fc09dadb040388d89486aeef1b75885b0b5", "fim_s09e26": "2ba14c1d174eb33155dd3f6ebace2279ba8b4ef6", "eqg_original_movie": "edea58393759cf74326e05d0b0a821e7ff54dc03", "eqg_friendship_games": "9619ab463a28b5498490ed1e43ff83ba247ac309", "eqg_legend_of_everfree": "6b65399c961f71afd2dfa2189d493a412ee3300a", "eqg_rainbow_rocks": "b5a8d331a5e6b37931282207874b334d488d562d", } unmix_hashes = { "fim_s01e01": "104d5aaa0c37225c200ad7b83fcf63034f05522f", "fim_s01e02": "e0d7b62bb2291a3d692f3feccdeefa184e80e7c1", "fim_s01e03": "c29cb960fae5e435016e02fa107ea1bcdbc75eae", "fim_s01e04": "19a6c63c6ebf8be3e040003e8c08627df98e5a44", "fim_s01e05": "9ef84b6c65927182d21b3cc3d4b2a847e6c16c18", "fim_s01e06": "50594babaf65ec42243c4a9800ee1bfebc6bc7d8", "fim_s01e07": "eb05c17e53a166ae660d1f3da6e90b8f14b7c79a", "fim_s01e08": "41577ab4d5a133397e55c03a747d41f4658b4481", "fim_s01e09": "59a587efd4f2292c9969f0e391e54ecf9d7cb594", "fim_s01e10": "df48e4108bfb89a9e6b490b07bf04dbd1bc3494b", "fim_s01e11": "907907fdc17d15f7e65d8ca1e079095b508b18a6", "fim_s01e12": "5a8007535d7b0925f077fde57a63791b71bad523", "fim_s01e13": "d6e26ed11d68262ebd32becca6529509f97c3a58", "fim_s01e14": "a5784986a38730fc1fb430ad0f0272fd0c7d0cf4", "fim_s01e15": "7fd50b75fe4a02337c25f8ff694e390f268a9456", "fim_s01e16": "0344d2ae7ee8f2f6461798e2900ed0ad3bd0b11d", "fim_s01e17": "28b9582d04a27dd13b0557730cf0eadaaa2cd629", "fim_s01e18": "6e84cf840ba430e9527f71ef2a0dc8ce6c218875", "fim_s01e19": "4a9a544a5663a6d7ac731a9083c9cce71aefdb6b", "fim_s01e20": "fa7733b6ab981829b4466c26f185738509ec062e", "fim_s01e21": "388cc179f81c44d23aee3fcffec64b17d3c10f01", "fim_s01e22": "e46ae2a8f92e82be3172ffd7d25f491de7cd0289", "fim_s01e23": "661828a394087d716376dc0139b61137389ae5de", "fim_s01e24": "b227ac1c89f3a25dc4522118750a58e978475b9c", "fim_s01e25": "2004b2aa9015498e1f2d8454856e5883bfbb3315", "fim_s01e26": "f66ca26045de350188d476ab5b501408c551acba", "fim_s02e01": "44b3fe6e76e60b7e70ef85aed2c0b2756c69cef7", "fim_s02e02": "35fff48ca55ecb1e601b57d896330900a55cbc92", "fim_s02e03": "87e1d81dcb3cffbca12550e143cc922e6a4a68b1", "fim_s02e04": "e5463604e47ddcc6c15552e65c4a8ae75ba55730", "fim_s02e05": "33149416515e8a3f04e1db6f636afecd20e4572c", "fim_s02e06": "8516c352f688e3be76cd9db8ca709d5dd62dc5bf", "fim_s02e07": "00f060faae1f1e0b6b82361b4c0fc4ddde90fd1d", "fim_s02e08": "059f6d9b21d6e78d7ff2593f01a032f045bb3246", "fim_s02e09": "153a013f94d0272ccaee7a4197f353a0756b917e", "fim_s02e10": "13de5f5c20c11bcf6afdf01a76db934f370c5afa", "fim_s02e11": "1f1b0e38ec868d3d976444b6b28548e023fd2508", "fim_s02e12": "cc9a39c32d44632161968b5b5babd9a38bc9b385", "fim_s02e13": "00ccf5ce90f50db65a4aeec6a8b6c75f056e9e19", "fim_s02e14": "b737ccfc861470abbc6e9e1d8d4d11dae78cfe8f", "fim_s02e15": "9e03f0e03c39f797f16211b086aea4f660f72684", "fim_s02e16": "ae02167827b0a27794154534fcb16c489df6418c", "fim_s02e17": "4a002a75c00b34ca9cf932a5cf7987b7abf84292", "fim_s02e18": "8fe1a7765ddf8ab1b062ea7ddb968d1c92569876", "fim_s02e19": "c4f73cec0071d37a021d96a0c7e8e8269cfa6b21", "fim_s02e20": "a8a392cbfe39a7f478f308dde7774f5264da1bef", "fim_s02e21": "c19ce429444c7862f6de83fcee8479ede4d2de0b", "fim_s02e22": "9054930ee5a9403da56794aa30ee8a9b8bc66c54", "fim_s02e23": "96baecf46098eccca9b26a587f8e588c622a0443", "fim_s02e24": "d304f143b81026f93628bc26f3018442d6b494b4", "fim_s02e25": "258b39c68661c89a7a3f564f0827382c365ac824", "fim_s02e26": "58df95dbcd6998ace149d16479add90f670b5156", "fim_s03e01": "197d03426d4bbdebff15e7723bb95f5cffccd230", "fim_s03e02": "3623a1cb7dea3c5fd43ed5b5e77c91f83d7ced4b", "fim_s03e03": "4df72e4dc9580acf9a9c598d5fbcb36e1f1429f7", "fim_s03e04": "213ba1e62e23931e58dc4ebb5f4b2dfd735f47ca", "fim_s03e05": "564a8c54b13320aa982ff2209565ef4750564194", "fim_s03e06": "ed1b6fb5b071ab56a78492e54875b082c0c8a074", "fim_s03e07": "a37fc358a86679130e9a4ff8baf0ba55ccf28b56", "fim_s03e08": "e050d4d8d14c26c6ebb859b01a4569d871fcd2b0", "fim_s03e09": "229dbc841e643c820653af1e7f3bd14f07ef1e1b", "fim_s03e10": "50f5e34647763ab9b007c7e86d0d7be94c297845", "fim_s03e11": "df0c039168e062c9dd57e77c974e810255dceb4f", "fim_s03e12": "3bf02a42574ea2a703639adddb3614172d50a525", "fim_s03e13": "788d4bc2660f27bf51fa57c469155d4e3a4488e4", "fim_s04e01": "b538e685b444022c8fce4916da0d422d13f6e576", "fim_s04e02": "aa205fdfd60da95fc4f99fffba883c567421dab1", "fim_s04e03": "fe64dcf231ccc42722fc855a3e74ae3bbbf0e643", "fim_s04e04": "001c014fe5324332f8d00f012efb35fefa47f533", "fim_s04e05": "e8a338e557652d21b161b8026dd5768e05976027", "fim_s04e06": "321426038fc6cc0bc8ddd086a79c3946a27cd436", "fim_s04e07": "611e78559560a6b63a099fc3397ef3a8eb0db4c7", "fim_s04e08": "3a463dd8573a4eb51dabd2efb28cd099681e110e", "fim_s04e09": "de37b8d59676f5f598ea6bda080077a371fbf601", "fim_s04e10": "9f40be459463d5513ba274189548c2b0b3552d36", "fim_s04e11": "bfa1dc10e4c64bdefe2c7ebe0fc2ffb9f4f1e443", "fim_s04e12": "13adfc2233f9a005b6bf708e7abd0b93faba828b", "fim_s04e13": "3fc37f27939d951f313111a9f792715731ed059d", "fim_s04e14": "88a29e567214de2c72b8b5a11466ea8f2e2b5c96", "fim_s04e15": "2728093f445fd3a21d0ac86598cf07f9b20fc45d", "fim_s04e16": "9f720280324c0d491fc75f179d69ca4965f46821", "fim_s04e17": "77437fa49ab73a880859c76ee4b6b522e60e5b5e", "fim_s04e18": "ee79772dd96bb4cf78e53879168b52044a80f83a", "fim_s04e19": "3a93bca017d5fe1f28a1f89c10df0abc49a33e42", "fim_s04e20": "8481897fa44d02624b3a8799ceba22a1b9087060", "fim_s04e21": "74f6f18d61e52673b99ba1c1379fcad2a1125899", "fim_s04e22": "cec016654cdd2f7c73864229f54760ea20b86c8a", "fim_s04e23": "1f894ae6cf86a865988b72b3d1a5060cf2f89a86", "fim_s04e24": "c6a4fe51123ba3ce0b0716df21e9989e8b555ade", "fim_s04e25": "204666928675f6b9bff9e92ef3b2176099180e9b", "fim_s04e26": "47de6d5d70bb61fc746a47d28fc53854d2be441b", "fim_s05e01": "2cafa7cc6ca0414c294c824d63c3a433e07b2f13", "fim_s05e02": "69260d52ed666d0dc97544ed5019e1914d674c53", "fim_s05e03": "5c7db95c1f78f2e7425096b67ce534fc872e6618", "fim_s05e04": "91da34c761324628156d1db94b5a06b77a327c41", "fim_s05e05": "ee74a927b5a5419fe9e851a132fe2d814f699f10", "fim_s05e06": "84d7d6c7cce9a4cca502d9c8a24ed0be862ea702", "fim_s05e07": "2c128bf9d45e75ffddd452ac2f20abd553203641", "fim_s05e08": "2954354ce57c7fedd61d372e8fa908731e3407bb", "fim_s05e09": "317ac1df8d316d175fca6e1715bb9f97cfc1ca13", "fim_s05e10": "f977396916f65a96ca0aa40fee7345d3ce0d34a8", "fim_s05e11": "1df05e8363c41ba68f5eaa2af0c22e29998d066d", "fim_s05e12": "bc08072dc6be4e21dae03db1464ae0b83f657a7f", "fim_s05e13": "674758bd23d8ba73d14858580b60fa5062e28fe0", "fim_s05e14": "047799ab041a30d774938d0dc2672c34935371f8", "fim_s05e15": "66ec2eb2ce01dc382cc32c9c6530374e8a96a938", "fim_s05e16": "4bc308416d420583a69642bfa83c8235fb84e1e1", "fim_s05e17": "8fe15d113baf7a5e140f53729aa11a4722aaec64", "fim_s05e18": "9ff2bf125cf6a07af325cb5cbba3d17b2579c498", "fim_s05e19": "af9a63a629b1fc154e600ab058878457bdc799e1", "fim_s05e20": "ea0635bf7757e53300a07d56887e4b1857cde93c", "fim_s05e21": "3fa37e113e81c54667db87204d68958cb4dfb50f", "fim_s05e22": "b5f54f2e4736b4e1be4d537d8d0edaa219ca16c7", "fim_s05e23": "40bce23e28e12686b667c431072f925b01bdf817", "fim_s05e24": "f08b14a1e6e41dccc4315aade503ed91ce2f71b3", "fim_s05e25": "85272b7929fa219f503ca08637f04b52458b2636", "fim_s05e26": "abe7acfacc78bba55e4da71eab592383e8c2010d", "fim_s06e01": "bb554e4b036f19bfe98b0e11db71732204e71747", "fim_s06e02": "9bcd6ba7d6da353e49da88ee9702a1c9e7b58f9d", "fim_s06e03": "44f278c1c3b1642f92dae0f1dc9d1869cb5edd3e", "fim_s06e04": "a23fc5a9b0171265d4c37debd3e6888b7d5cfadd", "fim_s06e05": "717c3c0a63515266079cafe0d0076cedf3eeb2c9", "fim_s06e06": "0c7f49103a41190b115f8d4d4a4134c10d03c441", "fim_s06e07": "dc1011e5ee80a45544ee9d9c5edd6bca2e0b9b10", "fim_s06e08": "70ebfee1498e73c6e0432e279cda32efc6c611d7", "fim_s06e09": "0ecdf3735a03bb49075e94221e840815e960e736", "fim_s06e10": "eac675ef07f63907353d758cc5dccf82c75bcf9c", "fim_s06e11": "43bd3f861e85bc7e21dc4523e112d82a3193edd0", "fim_s06e12": "cee4185a9957ecbd00b6b6f374fa56715ef04fcd", "fim_s06e13": "e040a7ec92cf7139a415a5e27bff994c8604c320", "fim_s06e14": "b1f071de18a25d9ee6f70674ff3c00379ed44e09", "fim_s06e15": "75473364424e5b4dd91e918657e41b5d4e7f0b61", "fim_s06e16": "a59a451317257474359cc85e523892e94c2f393c", "fim_s06e17": "0bd07609e7209aac921e21d9f33f6a8b16172d65", "fim_s06e18": "3d16b21da67c674735b61adddb831a0e2240d3b9", "fim_s06e19": "3594101ff21359203054973ead72905fd09b5680", "fim_s06e20": "562c8a5c548deef2a915c8fdd9f3ab069e1222ae", "fim_s06e21": "38a558ff7551b56511cb9644dfe2ceb7b0c635ec", "fim_s06e22": "5735868115acbe5c18d0370592eeff689402a3b3", "fim_s06e23": "9a40a8b6b6c304d286f34d2cee80535dc46c618a", "fim_s06e24": "8987aaca1bb4395673093c28ec00023b65abf451", "fim_s06e25": "f33e490c411fe249d90be1e23b455f422bbfea7d", "fim_s06e26": "70a737ebe36d85801294b2d22a462bf41a211a77", "fim_s07e01": "unknown", "fim_s07e02": "unknown", "fim_s07e03": "unknown", "fim_s07e04": "unknown", "fim_s07e05": "unknown", "fim_s07e06": "unknown", "fim_s07e07": "unknown", "fim_s07e08": "unknown", "fim_s07e09": "unknown", "fim_s07e10": "unknown", "fim_s07e11": "unknown", "fim_s07e12": "unknown", "fim_s07e13": "unknown", "fim_s07e14": "unknown", "fim_s07e15": "unknown", "fim_s07e16": "unknown", "fim_s07e17": "unknown", "fim_s07e18": "unknown", "fim_s07e19": "unknown", "fim_s07e20": "unknown", "fim_s07e21": "unknown", "fim_s07e22": "unknown", "fim_s07e23": "unknown", "fim_s07e24": "unknown", "fim_s07e25": "unknown", "fim_s07e26": "unknown", "fim_s08e01": "unknown", "fim_s08e02": "unknown", "fim_s08e03": "unknown", "fim_s08e04": "unknown", "fim_s08e05": "unknown", "fim_s08e06": "unknown", "fim_s08e07": "unknown", "fim_s08e08": "unknown", "fim_s08e09": "unknown", "fim_s08e10": "unknown", "fim_s08e11": "unknown", "fim_s08e12": "unknown", "fim_s08e13": "unknown", "fim_s08e14": "unknown", "fim_s08e15": "unknown", "fim_s08e16": "unknown", "fim_s08e17": "unknown", "fim_s08e18": "unknown", "fim_s08e19": "unknown", "fim_s08e20": "unknown", "fim_s08e21": "unknown", "fim_s08e22": "unknown", "fim_s08e23": "unknown", "fim_s08e24": "unknown", "fim_s08e25": "unknown", "fim_s08e26": "unknown", "fim_s09e01": "unknown", "fim_s09e02": "unknown", "fim_s09e03": "unknown", "fim_s09e04": "unknown", "fim_s09e05": "unknown", "fim_s09e06": "unknown", "fim_s09e07": "unknown", "fim_s09e08": "unknown", "fim_s09e09": "unknown", "fim_s09e10": "unknown", "fim_s09e11": "unknown", "fim_s09e12": "unknown", "fim_s09e13": "unknown", "fim_s09e14": "unknown", "fim_s09e15": "unknown", "fim_s09e16": "unknown", "fim_s09e17": "unknown", "fim_s09e18": "unknown", "fim_s09e19": "unknown", "fim_s09e20": "unknown", "fim_s09e21": "unknown", "fim_s09e22": "eec65346f3f84a2200a5e5918e89d91a2a549a29", "fim_s09e23": "1426f4afd21cc478d175cc89d342d4cb42d358b7", "fim_s09e24": "14ac91b7eda5698feed15ec53084aee5cf0fb571", "fim_s09e25": "60cbea49cec1cd14c94921c0990a42df754abf51", "fim_s09e26": "9b2d98c2eb5e336a97e49b3e35bffee39238414c", "eqg_original_movie": "5ecf9491a5808e7b32accabdf7c57273ad197192", "eqg_friendship_games": "31097404640cced077169c41e7cdf925ced9f165", "eqg_legend_of_everfree": "3104471033ef47b7cd303812dfeb720bd0d63f8a", "eqg_rainbow_rocks": "ff4e528045e846f2221229a3f38bababd5c0b733", }
friendly_names = {'fim_s01e01': 'Season 1, Episode 1', 'fim_s01e02': 'Season 1, Episode 2', 'fim_s01e03': 'Season 1, Episode 3', 'fim_s01e04': 'Season 1, Episode 4', 'fim_s01e05': 'Season 1, Episode 5', 'fim_s01e06': 'Season 1, Episode 6', 'fim_s01e07': 'Season 1, Episode 7', 'fim_s01e08': 'Season 1, Episode 8', 'fim_s01e09': 'Season 1, Episode 9', 'fim_s01e10': 'Season 1, Episode 10', 'fim_s01e11': 'Season 1, Episode 11', 'fim_s01e12': 'Season 1, Episode 12', 'fim_s01e13': 'Season 1, Episode 13', 'fim_s01e14': 'Season 1, Episode 14', 'fim_s01e15': 'Season 1, Episode 15', 'fim_s01e16': 'Season 1, Episode 16', 'fim_s01e17': 'Season 1, Episode 17', 'fim_s01e18': 'Season 1, Episode 18', 'fim_s01e19': 'Season 1, Episode 19', 'fim_s01e20': 'Season 1, Episode 20', 'fim_s01e21': 'Season 1, Episode 21', 'fim_s01e22': 'Season 1, Episode 22', 'fim_s01e23': 'Season 1, Episode 23', 'fim_s01e24': 'Season 1, Episode 24', 'fim_s01e25': 'Season 1, Episode 25', 'fim_s01e26': 'Season 1, Episode 26', 'fim_s02e01': 'Season 2, Episode 1', 'fim_s02e02': 'Season 2, Episode 2', 'fim_s02e03': 'Season 2, Episode 3', 'fim_s02e04': 'Season 2, Episode 4', 'fim_s02e05': 'Season 2, Episode 5', 'fim_s02e06': 'Season 2, Episode 6', 'fim_s02e07': 'Season 2, Episode 7', 'fim_s02e08': 'Season 2, Episode 8', 'fim_s02e09': 'Season 2, Episode 9', 'fim_s02e10': 'Season 2, Episode 10', 'fim_s02e11': 'Season 2, Episode 11', 'fim_s02e12': 'Season 2, Episode 12', 'fim_s02e13': 'Season 2, Episode 13', 'fim_s02e14': 'Season 2, Episode 14', 'fim_s02e15': 'Season 2, Episode 15', 'fim_s02e16': 'Season 2, Episode 16', 'fim_s02e17': 'Season 2, Episode 17', 'fim_s02e18': 'Season 2, Episode 18', 'fim_s02e19': 'Season 2, Episode 19', 'fim_s02e20': 'Season 2, Episode 20', 'fim_s02e21': 'Season 2, Episode 21', 'fim_s02e22': 'Season 2, Episode 22', 'fim_s02e23': 'Season 2, Episode 23', 'fim_s02e24': 'Season 2, Episode 24', 'fim_s02e25': 'Season 2, Episode 25', 'fim_s02e26': 'Season 2, Episode 26', 'fim_s03e01': 'Season 3, Episode 1', 'fim_s03e02': 'Season 3, Episode 2', 'fim_s03e03': 'Season 3, Episode 3', 'fim_s03e04': 'Season 3, Episode 4', 'fim_s03e05': 'Season 3, Episode 5', 'fim_s03e06': 'Season 3, Episode 6', 'fim_s03e07': 'Season 3, Episode 7', 'fim_s03e08': 'Season 3, Episode 8', 'fim_s03e09': 'Season 3, Episode 9', 'fim_s03e10': 'Season 3, Episode 10', 'fim_s03e11': 'Season 3, Episode 11', 'fim_s03e12': 'Season 3, Episode 12', 'fim_s03e13': 'Season 3, Episode 13', 'fim_s04e01': 'Season 4, Episode 1', 'fim_s04e02': 'Season 4, Episode 2', 'fim_s04e03': 'Season 4, Episode 3', 'fim_s04e04': 'Season 4, Episode 4', 'fim_s04e05': 'Season 4, Episode 5', 'fim_s04e06': 'Season 4, Episode 6', 'fim_s04e07': 'Season 4, Episode 7', 'fim_s04e08': 'Season 4, Episode 8', 'fim_s04e09': 'Season 4, Episode 9', 'fim_s04e10': 'Season 4, Episode 10', 'fim_s04e11': 'Season 4, Episode 11', 'fim_s04e12': 'Season 4, Episode 12', 'fim_s04e13': 'Season 4, Episode 13', 'fim_s04e14': 'Season 4, Episode 14', 'fim_s04e15': 'Season 4, Episode 15', 'fim_s04e16': 'Season 4, Episode 16', 'fim_s04e17': 'Season 4, Episode 17', 'fim_s04e18': 'Season 4, Episode 18', 'fim_s04e19': 'Season 4, Episode 19', 'fim_s04e20': 'Season 4, Episode 20', 'fim_s04e21': 'Season 4, Episode 21', 'fim_s04e22': 'Season 4, Episode 22', 'fim_s04e23': 'Season 4, Episode 23', 'fim_s04e24': 'Season 4, Episode 24', 'fim_s04e25': 'Season 4, Episode 25', 'fim_s04e26': 'Season 4, Episode 26', 'fim_s05e01': 'Season 5, Episode 1', 'fim_s05e02': 'Season 5, Episode 2', 'fim_s05e03': 'Season 5, Episode 3', 'fim_s05e04': 'Season 5, Episode 4', 'fim_s05e05': 'Season 5, Episode 5', 'fim_s05e06': 'Season 5, Episode 6', 'fim_s05e07': 'Season 5, Episode 7', 'fim_s05e08': 'Season 5, Episode 8', 'fim_s05e09': 'Season 5, Episode 9', 'fim_s05e10': 'Season 5, Episode 10', 'fim_s05e11': 'Season 5, Episode 11', 'fim_s05e12': 'Season 5, Episode 12', 'fim_s05e13': 'Season 5, Episode 13', 'fim_s05e14': 'Season 5, Episode 14', 'fim_s05e15': 'Season 5, Episode 15', 'fim_s05e16': 'Season 5, Episode 16', 'fim_s05e17': 'Season 5, Episode 17', 'fim_s05e18': 'Season 5, Episode 18', 'fim_s05e19': 'Season 5, Episode 19', 'fim_s05e20': 'Season 5, Episode 20', 'fim_s05e21': 'Season 5, Episode 21', 'fim_s05e22': 'Season 5, Episode 22', 'fim_s05e23': 'Season 5, Episode 23', 'fim_s05e24': 'Season 5, Episode 24', 'fim_s05e25': 'Season 5, Episode 25', 'fim_s05e26': 'Season 5, Episode 26', 'fim_s06e01': 'Season 6, Episode 1', 'fim_s06e02': 'Season 6, Episode 2', 'fim_s06e03': 'Season 6, Episode 3', 'fim_s06e04': 'Season 6, Episode 4', 'fim_s06e05': 'Season 6, Episode 5', 'fim_s06e06': 'Season 6, Episode 6', 'fim_s06e07': 'Season 6, Episode 7', 'fim_s06e08': 'Season 6, Episode 8', 'fim_s06e09': 'Season 6, Episode 9', 'fim_s06e10': 'Season 6, Episode 10', 'fim_s06e11': 'Season 6, Episode 11', 'fim_s06e12': 'Season 6, Episode 12', 'fim_s06e13': 'Season 6, Episode 13', 'fim_s06e14': 'Season 6, Episode 14', 'fim_s06e15': 'Season 6, Episode 15', 'fim_s06e16': 'Season 6, Episode 16', 'fim_s06e17': 'Season 6, Episode 17', 'fim_s06e18': 'Season 6, Episode 18', 'fim_s06e19': 'Season 6, Episode 19', 'fim_s06e20': 'Season 6, Episode 20', 'fim_s06e21': 'Season 6, Episode 21', 'fim_s06e22': 'Season 6, Episode 22', 'fim_s06e23': 'Season 6, Episode 23', 'fim_s06e24': 'Season 6, Episode 24', 'fim_s06e25': 'Season 6, Episode 25', 'fim_s06e26': 'Season 6, Episode 26', 'fim_s07e01': 'Season 7, Episode 1', 'fim_s07e02': 'Season 7, Episode 2', 'fim_s07e03': 'Season 7, Episode 3', 'fim_s07e04': 'Season 7, Episode 4', 'fim_s07e05': 'Season 7, Episode 5', 'fim_s07e06': 'Season 7, Episode 6', 'fim_s07e07': 'Season 7, Episode 7', 'fim_s07e08': 'Season 7, Episode 8', 'fim_s07e09': 'Season 7, Episode 9', 'fim_s07e10': 'Season 7, Episode 10', 'fim_s07e11': 'Season 7, Episode 11', 'fim_s07e12': 'Season 7, Episode 12', 'fim_s07e13': 'Season 7, Episode 13', 'fim_s07e14': 'Season 7, Episode 14', 'fim_s07e15': 'Season 7, Episode 15', 'fim_s07e16': 'Season 7, Episode 16', 'fim_s07e17': 'Season 7, Episode 17', 'fim_s07e18': 'Season 7, Episode 18', 'fim_s07e19': 'Season 7, Episode 19', 'fim_s07e20': 'Season 7, Episode 20', 'fim_s07e21': 'Season 7, Episode 21', 'fim_s07e22': 'Season 7, Episode 22', 'fim_s07e23': 'Season 7, Episode 23', 'fim_s07e24': 'Season 7, Episode 24', 'fim_s07e25': 'Season 7, Episode 25', 'fim_s07e26': 'Season 7, Episode 26', 'fim_s08e01': 'Season 8, Episode 1', 'fim_s08e02': 'Season 8, Episode 2', 'fim_s08e03': 'Season 8, Episode 3', 'fim_s08e04': 'Season 8, Episode 4', 'fim_s08e05': 'Season 8, Episode 5', 'fim_s08e06': 'Season 8, Episode 6', 'fim_s08e07': 'Season 8, Episode 7', 'fim_s08e08': 'Season 8, Episode 8', 'fim_s08e09': 'Season 8, Episode 9', 'fim_s08e10': 'Season 8, Episode 10', 'fim_s08e11': 'Season 8, Episode 11', 'fim_s08e12': 'Season 8, Episode 12', 'fim_s08e13': 'Season 8, Episode 13', 'fim_s08e14': 'Season 8, Episode 14', 'fim_s08e15': 'Season 8, Episode 15', 'fim_s08e16': 'Season 8, Episode 16', 'fim_s08e17': 'Season 8, Episode 17', 'fim_s08e18': 'Season 8, Episode 18', 'fim_s08e19': 'Season 8, Episode 19', 'fim_s08e20': 'Season 8, Episode 20', 'fim_s08e21': 'Season 8, Episode 21', 'fim_s08e22': 'Season 8, Episode 22', 'fim_s08e23': 'Season 8, Episode 23', 'fim_s08e24': 'Season 8, Episode 24', 'fim_s08e25': 'Season 8, Episode 25', 'fim_s08e26': 'Season 8, Episode 26', 'fim_s09e01': 'Season 9, Episode 1', 'fim_s09e02': 'Season 9, Episode 2', 'fim_s09e03': 'Season 9, Episode 3', 'fim_s09e04': 'Season 9, Episode 4', 'fim_s09e05': 'Season 9, Episode 5', 'fim_s09e06': 'Season 9, Episode 6', 'fim_s09e07': 'Season 9, Episode 7', 'fim_s09e08': 'Season 9, Episode 8', 'fim_s09e09': 'Season 9, Episode 9', 'fim_s09e10': 'Season 9, Episode 10', 'fim_s09e11': 'Season 9, Episode 11', 'fim_s09e12': 'Season 9, Episode 12', 'fim_s09e13': 'Season 9, Episode 13', 'fim_s09e14': 'Season 9, Episode 14', 'fim_s09e15': 'Season 9, Episode 15', 'fim_s09e16': 'Season 9, Episode 16', 'fim_s09e17': 'Season 9, Episode 17', 'fim_s09e18': 'Season 9, Episode 18', 'fim_s09e19': 'Season 9, Episode 19', 'fim_s09e20': 'Season 9, Episode 20', 'fim_s09e21': 'Season 9, Episode 21', 'eqg_original_movie': 'Equestria Girls (Original)', 'eqg_friendship_games': 'Equestria Girls: Friendship Games', 'eqg_legend_of_everfree': 'Equestria Girls: Legend of Everfree', 'eqg_rainbow_rocks': 'Equestria Girls: Rainbow Rocks'} original_hashes = {'fim_s01e01': '5735ea49c43ea56109171cde2547a42cecb839cc', 'fim_s01e02': '8d61b132aaff821b0b93fbff5baf74a017b93942', 'fim_s01e03': '6c5e832dbdc91aec2159bd517a818c6aa1057613', 'fim_s01e04': 'b18eb5b02993dfed9cd383e54207119ee5cb51e4', 'fim_s01e05': '7d7461461e39dd807ad5ace457d762c65075e62e', 'fim_s01e06': '94138a8ed565a1d39ab43cbf9244720372287d66', 'fim_s01e07': 'a416681e16e9d8397e9ae06ecdfd9d2386e8f8f1', 'fim_s01e08': 'fedfadaa3d737e59fe1617407f80157258858004', 'fim_s01e09': '75c31f8555f4b6a931b41185dd9aa645a6b5d9df', 'fim_s01e10': '868a4050fd56eb397b25624a6bd6efea7b05f4d1', 'fim_s01e11': 'd9c603f4073e796454935eb855205f424b2bc0b0', 'fim_s01e12': '9aa15d4cc4d6a1596b1b964add7398149cff5d4d', 'fim_s01e13': 'aa94e28636d9ad224b71c544a1ad84598a4899f6', 'fim_s01e14': '6ea73fc00e5626669269c207b3ee0e52f018e382', 'fim_s01e15': '701f2862a9aeefca70f6d314c0589c7a8a179ccc', 'fim_s01e16': 'dfcb90fb26d55641b554268d1d93efaa11ad285c', 'fim_s01e17': 'cc867f314d68564ce48e0bcad9b57a7af80a1520', 'fim_s01e18': 'e54ae83f44efd7dcab1bafa88eb6f3a6bd7f6c2a', 'fim_s01e19': '96ca30cedca8170dad9611da02f774980ad83737', 'fim_s01e20': 'f4dbd0df7214583e0848360c89a8bde432c91b6d', 'fim_s01e21': 'ec5b1b9036ddce7cd62c0af9fb0c96a4dd85a52a', 'fim_s01e22': '89aae028e1658c083c18a99216d1a549b30bce21', 'fim_s01e23': 'b18d2ab28435fbafb90046328e77751b8ca8cf6f', 'fim_s01e24': '2e72f04bb686ea6273ebdda7f712ae32d76d0594', 'fim_s01e25': '225228dcba4fdc08601b4b48cb182a9bc5d841f8', 'fim_s01e26': '69030f04a1395db8a732149d552c7f9a5f95cad7', 'fim_s02e01': 'b188a4b7b3d9e74fa26dcb573e29216f450d677f', 'fim_s02e02': '9072ea4af815c04c86fe00884aa55acde51c8de8', 'fim_s02e03': 'bc9bcab5e626e649185a237485cd6c45044febac', 'fim_s02e04': '0bf3465a2adb91829d8fe16d8354f4dea9a96a4f', 'fim_s02e05': '4d3033f9b443ebf892db563ecc183b15ad171134', 'fim_s02e06': 'e80a27201a93226b99377e5f3c7d60a337bfb974', 'fim_s02e07': '5fd93be8ea58d26ed2eac7aee6cab6ea6d606da8', 'fim_s02e08': '0f4197de4d3e5e29bb916c68c989c42003a3cae7', 'fim_s02e09': '4aec2125d344f7651a25869f6fefe2d340cf255c', 'fim_s02e10': '2df0e6d01d8510db000065baa2d028240d7dae49', 'fim_s02e11': '7586a9586ffd57ddacda6201abd1e919cc6a782f', 'fim_s02e12': 'dd027fe0d956c851f8d4b633cfc56e0b5b24f786', 'fim_s02e13': '667ef565d8fd3fa82dcd54cf2b469a5e1ae85c5e', 'fim_s02e14': '69d1e1a4610eba20343287f2fd5a3419b74fb6e7', 'fim_s02e15': 'feedd3600151fa1834f9ff73363ce8931f7b5ec6', 'fim_s02e16': 'd2bb3a3f5daa5553b5be15894b4e209b211ea178', 'fim_s02e17': '4524d942ca3834230e9766ba1e4ad4e51681ed0c', 'fim_s02e18': '6ac536af39ec9a3096296af9da5559ae4a5d8523', 'fim_s02e19': '82e77f72f7b67126ae7fd85e87cccb1d6fc586ff', 'fim_s02e20': '333994b8309e760d0eaeaa793b18020b5b7acd9c', 'fim_s02e21': '1b085707a89006b05290cc4df7e29030b42c85d0', 'fim_s02e22': 'cee734596a7c3f57e7c87e8542746142745375c7', 'fim_s02e23': 'e698ae4ec212fbef527914f5eeb4ee6cae8060fd', 'fim_s02e24': '14b3bb367891df57cbd39aa9f34309d6a1658884', 'fim_s02e25': 'b6e1cc5ec6bcd7c9a14e901a278c7eb940ea93e1', 'fim_s02e26': '201d11c9eea301bb85f222b392f88289d1b966d9', 'fim_s03e01': '4408659e47d65176add7e46137f67b1756ea0265', 'fim_s03e02': '32ace5c7e56f0dc92d192ccc3c5c5eda4ff32f29', 'fim_s03e03': '60422fc559b26daeb7392b9c7839c6787e1bbdf0', 'fim_s03e04': '51487978bdf587624f56abeb18e98703bb738ab1', 'fim_s03e05': 'ebd85277ee14163e7f5ec690197e617346032bd3', 'fim_s03e06': '36c4ac7e393b268ce76cf7f834a52bcdd170a22c', 'fim_s03e07': '7faadb4e07ea50f9660d4d29c5ec98e5080da2e2', 'fim_s03e08': '3b4001fce0ab49313f59afcecfdb3944564b3682', 'fim_s03e09': '5c045b5532829d502adcc9839cd22b961f5e7342', 'fim_s03e10': '8212168e108028e5e4906a4fabba10530f2550a9', 'fim_s03e11': '520d1362576df396c8db428fe430b4b14260346c', 'fim_s03e12': '735ca37f27f8c75a7d3bc23bd43c933a4aa073c5', 'fim_s03e13': 'b9c1e54800c8965a2b3a3ab73ba8e1a3b24dd58b', 'fim_s04e01': 'fd420d33b9f256868ee5e379eb9c8a2bc3b40b09', 'fim_s04e02': '73b72f84f85ee26ee9c2728b933c86d7d370a69b', 'fim_s04e03': '5bedfc8eb95c9b692daa4a806ff35e6d5c215d1b', 'fim_s04e04': '4f6aa4d45802b3304f04e6a4e3a7456933878a21', 'fim_s04e05': 'a03e2eb3d089408e3b37d3cd258736e81ee2e2cb', 'fim_s04e06': '678bd6d70839761b9a4271af8cf55e526c12e6ca', 'fim_s04e07': 'ca0cd431366b9d29282f1cafed3c4b1194670a89', 'fim_s04e08': '81f8192af3404dc563ba9d5567e89e781201226a', 'fim_s04e09': 'aad68c1cb09aa95482e22cfc9fd4495445cfe1e6', 'fim_s04e10': '7be7993cc1a2ea9866f0ee6350765c0973fbab48', 'fim_s04e11': 'a7476b04649ab027f6419d439b7d7add52342145', 'fim_s04e12': '977825b271c87e55d760ef3f93663f1491c16fcb', 'fim_s04e13': '3d0fc66b9f550f84d599ae26a0561888620b83a2', 'fim_s04e14': 'ef3e76f455176c085d74f5571fbe20e378e2db15', 'fim_s04e15': '26ef4519511b99b13d112dca008f8933bb0417ef', 'fim_s04e16': '09155205ae4c06db7fc224016f3c529b2d72aeeb', 'fim_s04e17': 'd4516745d73a6c6b06922367370d9b60c1e9c9e2', 'fim_s04e18': '0166151f5eb32b945fc0a7c87a83661193dc8a7e', 'fim_s04e19': '714b02bc8baf1d892cd7a40d1846e2a98e17f771', 'fim_s04e20': 'a541743d1e4c68fec52ba8890ffde23b53d76df1', 'fim_s04e21': '92ce42d2b108fe9adf0b6be24e91d8f7772a2b97', 'fim_s04e22': 'e274ef133ad4b64751737407ff2d56fafd404669', 'fim_s04e23': '19983b86893a51ff9a9c7dfd975724dcba07f6fd', 'fim_s04e24': '477c881d8da11102e280363b61a65fb3da41eecb', 'fim_s04e25': '51d3e59472d7393a46303f7f7be084929242145b', 'fim_s04e26': '97444afe8ab97a9d31586eb812a2fcd239fd055a', 'fim_s05e01': '5dbb872d9bff9054a28e7438558d6a1f8264ff91', 'fim_s05e02': 'c3f15e75538b723a08fd602faba7714bd6e6d812', 'fim_s05e03': '4621407df2da79bd229df24599f5caff56b88ea1', 'fim_s05e04': 'f839303bc2689ec96d61910ae6c7cf5c209616c7', 'fim_s05e05': '5115b64a61e0819007f6382425f397ebe48a06de', 'fim_s05e06': '0eb12c6d0baa38299b6afe70450e1c4bf02001fb', 'fim_s05e07': '2178552485f41cb2fc30a6e0b5e0b6ff70129ef9', 'fim_s05e08': 'c5240a27e9956e388ab3aaa75078db473cf4f755', 'fim_s05e09': 'def459ef5462a3ae16aee3d7897eeeb272f366fc', 'fim_s05e10': 'b9c0b00bb44280c5a882ab86d65d62c864cd4aca', 'fim_s05e11': 'c8b22e0bb8d1e8db700ab334b7e1af487028abd1', 'fim_s05e12': 'd368b0c504d66794db1c576e2665f9e0bdc26149', 'fim_s05e13': '9205df05a50ccebe7ef943dd753add0c113977e4', 'fim_s05e14': '1f85660cc8a5eb6f02995b9d6791a2a693c78c15', 'fim_s05e15': '8a5e01c14f3506c24c62204d57e882b40e77fbad', 'fim_s05e16': '935236f72c771c29f37102ef039e91d6650ccb0b', 'fim_s05e17': 'e0ae2f283a214a454c1f5dc2d7f5266fcf06b625', 'fim_s05e18': 'aec9d8082e0b5d44df44530ac925eaf06d9eb36c', 'fim_s05e19': '897e301efe7314d8b9badce6a976201aeb4a85bc', 'fim_s05e20': '0bf2590abedcc2273813e641e19f6a85da0e868f', 'fim_s05e21': '319945de56b444a1b576158af1a85f93ee1cce47', 'fim_s05e22': '958dcd5354a6a1f92b9f7f825fa621a58a4f24b3', 'fim_s05e23': '5ba88f8254ef41fc344e1cc4e19696e1dda8ed4f', 'fim_s05e24': 'a6f4b609f03c7c3db10f139ae9777b31faa87ade', 'fim_s05e25': '2a457cace44f83d75d75a97d51ef8f7610b1ee5e', 'fim_s05e26': '6109d956ffa8ef0e5654101188ceac10e0e4b00a', 'fim_s06e01': '2f5a0741966fd0a65f39f6a46cf7e211c4abd615', 'fim_s06e02': '772a81ef3a8bc4de77e9844a222024b7c6556902', 'fim_s06e03': 'c1776d478795ef7c1a80163df1d2577020fd67c1', 'fim_s06e04': '31df7f9e1b14fe9e2cfda4bc374d42b5f6410ee8', 'fim_s06e05': '63ae25a890c4ce775dd1e468cce9ff53ce1555d6', 'fim_s06e06': '01eee5ecc47f9194252b0e6a79e3eab1e7c967bf', 'fim_s06e07': 'fb37ddb83fd33fb21f7ec531d2ab22ee553bfcff', 'fim_s06e08': 'e59cf84e2bda3c737e8e493eeacd8cc03226ed62', 'fim_s06e09': 'af76a47b6a4cc4f70c90b5a7a01198c36f9cefe2', 'fim_s06e10': '64d83601772b03136d008755ac489d7db6f8782a', 'fim_s06e11': 'ee4b97ba3d04e45fb95f0bdd3489d2e89082fe46', 'fim_s06e12': '624eb125ab329d0cbb6753e0485b3e898ec74f2a', 'fim_s06e13': '265a77bbec7ffda9c4bc984a771eac89046d3db4', 'fim_s06e14': '60f7e86420539011d092374e1fb9146f8a795108', 'fim_s06e15': 'b8c38b7727fe2711d5b27f5fd128e4f43f1230c6', 'fim_s06e16': 'e4e7c18f04dcfe19e6a122edd69dd0705b05815e', 'fim_s06e17': 'd75ffe2da2f92f8f80671d6a2f6de5ec41909f99', 'fim_s06e18': 'fb7b89e4a0984b3a31387199bc1e760e5e8e34fc', 'fim_s06e19': 'e768fb304bc6d8de89496d20649a068c9c482419', 'fim_s06e20': '50b39be291c5d541587ec717df9703430f848266', 'fim_s06e21': '617546695b583ece594330c591a6e4427eaaf77a', 'fim_s06e22': '303d856ed659c809aab459684e1a94d1e4df5f76', 'fim_s06e23': 'a32aa10d18294a43fd3d6df25a129117f3261397', 'fim_s06e24': '25fce908c96c825fd88e5b300f237eb34ec267b5', 'fim_s06e25': '0aa2b8bcdc0d515ce645abebf96cf50eabbb2d68', 'fim_s06e26': 'e28ae456662b264cb791a071d9d8c9fca1b128c6', 'fim_s07e01': 'c2edfa142bb6c91446a3a747c49c9f3ee2234b9d', 'fim_s07e02': 'de9c1ca38abce51ed605d86bc6d85daf8fbe595a', 'fim_s07e03': '585e527dd175d89f58723725d5aa1d4d27949616', 'fim_s07e04': 'f94a53d4ca0ff914b35de88f6488d5d0e666ce3b', 'fim_s07e05': '58695b0e626411828275efd146d1e2c0953cb054', 'fim_s07e06': 'ed0d957a8e7f5b35835c9b617159dbef72378c6d', 'fim_s07e07': 'e75b261b0420f2051558f5d9b7c5d427ce997cbe', 'fim_s07e08': 'b1a72ee905e56567e9277247aee5ae78ce0ae3af', 'fim_s07e09': '59f1d24cdb1b89775ee1c08e697c534b30ee09c0', 'fim_s07e10': 'fd83d40fcaf077b47fc3e953fcd71a9b55a5d230', 'fim_s07e11': 'c9a867d1ddc812b691b50cd413aa74d854cbe69f', 'fim_s07e12': 'df3ab652a7c120292069664886c72a05f6c3d31e', 'fim_s07e13': '637041b3645af31dd7467b566f512b491582f59e', 'fim_s07e14': '58ebd77188a430a23d63d36c317d40563265448c', 'fim_s07e15': '029953957f3f5f96430b9900286671c45ed5029f', 'fim_s07e16': 'ebd3f72254542a3ab9bd05c8e8833f5ba4961d9e', 'fim_s07e17': 'c85dbaec5fc5508269cc1a68d8bc2d0fd09a1c5d', 'fim_s07e18': '710e6e92c6e755ef6fb833b74b8335d2c4ae1855', 'fim_s07e19': '4bc91bc47cc7c1d49682cea2ca5ea0897a14792a', 'fim_s07e20': '1066134a286afa3ad42da6d40d800d4d70d10bb8', 'fim_s07e21': '438f7eb81b4ef8ef20376bb87a3b07a938354066', 'fim_s07e22': 'b14f3aabbdafd30cdd91c18b4c8fd31ff6f50e8f', 'fim_s07e23': '35e529712b734da8d2e4026f1e7297c064bb5686', 'fim_s07e24': 'a546204cece37896e6a49df7f53850586bb395ce', 'fim_s07e25': 'cd3624133eeac941a5a6e26912f9416a762017ef', 'fim_s07e26': '7eb71360fafe1fb1f397b3e1ec5023e1a877e575', 'fim_s08e01': '076cc70aeedf3b775070a174d24899c99bba48e7', 'fim_s08e02': 'ef55ff3f9e8be2c295687a9c05e607ef3902b74f', 'fim_s08e03': '5d389fd6b7eb480b02f1a42e97ad496349c95ce4', 'fim_s08e04': 'c309a04a82c5d6b3a805de4ba6fdb1f2a7463283', 'fim_s08e05': '83ba497a8e0e6c3cb0e030a0cc45ca2c412f264d', 'fim_s08e06': 'bb1a1e6aba6414d3d54e42dba64f636b6ccca1f4', 'fim_s08e07': 'cd90c566bec22350c83c53aa9892b3a31ad6c69a', 'fim_s08e08': '7e100b9b553136604e411863d1b01f20b731c747', 'fim_s08e09': '4360eba6f9068ddda8534a034e3eaada342bac97', 'fim_s08e10': '94ad320e05ce30402d8f22b014f3004d76edfa6b', 'fim_s08e11': '03b9ff19482c8db8c700d547025a23b8ca0c9b74', 'fim_s08e12': '304d0723742c7fc10ef5d44868daef6684a5f674', 'fim_s08e13': '3531ea698101b35a0823a843725e51500b6d70f2', 'fim_s08e14': '4830050ce62167e61391b6cece11057caac273e6', 'fim_s08e15': '8a2fd1e83457459fe29c548df94de3461d46adfd', 'fim_s08e16': '2fb4a3ecc5062a1b5e7515c1f5e87f45151ca319', 'fim_s08e17': '27bc30641357df42cae1a8622a6653c29540b550', 'fim_s08e18': 'c5f759656652a3c4745e2c25e90dae59442f46df', 'fim_s08e19': 'cb8b76cfcae9ca0496df5c3e8570e927093bce79', 'fim_s08e20': '362db545da4fbaabcf31db03151f106ac66fecc1', 'fim_s08e21': 'c397c7a2c59f905e30d8654ebcb86417bc349dfc', 'fim_s08e22': '9e790fb4b4796af8e8c9a7fd4a12cd69628243ba', 'fim_s08e23': '19df7e2a55ca6141ac8708d8552fca36e19b593b', 'fim_s08e24': '214f2c55f0d2bd625ed32d98bfda086c90d282b8', 'fim_s08e25': 'ee960deb72558e988f896e6e4bee03972ac598c7', 'fim_s08e26': 'af21facb8c787fe81b4fc03f7de529a87f425540', 'fim_s09e01': 'b42a1efd4656e1a935dbdd83bd5090323ec1f3c1', 'fim_s09e02': '515fb107f552dfc34b85102276336c77a9daca37', 'fim_s09e03': '6a584f94467f7df36ba970c2136f824abcdc8c16', 'fim_s09e04': '72b9a3dc0493b064b12500bffaea6f7cf9206f41', 'fim_s09e05': 'c5540523c71796cc073836e82aca115a4a1c79ba', 'fim_s09e06': '847bc311062d64baf047478323cc5aae20993eb9', 'fim_s09e07': '6b5a6224ba2d52df20b73e2357a5c78facb0a60f', 'fim_s09e08': '2a7fa34a6ddb7e8ee2263756f4d315bc323af94e', 'fim_s09e09': 'c60d111f27ea50bdb886adc71a8c5f946bfce280', 'fim_s09e10': '8adfc1e86af3ec220c8d379a8a397588d98e11a6', 'fim_s09e11': '40fb13de7799c29f8bf6f41090a54d24d49233a4', 'fim_s09e12': '8cceb7e03154c46c61c6a0691180a654a8fe268d', 'fim_s09e13': '7700e2e51cb7c8e634f7cabe28f066c4b1f0f72a', 'fim_s09e14': '736f62c0c276f6aa1f911517b82d294dfce4b876', 'fim_s09e15': '6a1ddf8ba3c0cd2713522f7582b16a0b48828a41', 'fim_s09e16': '18b5e2fa57b4f82b76f3338a5ca44e95a289659e', 'fim_s09e17': 'd319eedfebff339b116985eeec7db529f952c9de', 'fim_s09e18': 'baa11cd12bee95a5bf2719b8f7bbe1fa3fad60f5', 'fim_s09e19': '1757cfd03e199649d11d566d2c74f9a52d660bc8', 'fim_s09e20': '5ba76c741cae8f83fb5ade47b946ba5925224577', 'fim_s09e21': 'beb7a4d66acd631f2891d2491702db673f026935', 'fim_s09e22': 'unknown', 'fim_s09e23': 'unknown', 'fim_s09e24': 'unknown', 'fim_s09e25': 'unknown', 'fim_s09e26': 'unknown', 'eqg_original_movie': 'a7d91653a1e68c7c1be95cb6f20d334c66266e98', 'eqg_friendship_games': '41d5a6e45d13cde4220720e843ad5285d9ab95ff', 'eqg_legend_of_everfree': '0ae355e182f7ad116127dcede68c50f247db6876', 'eqg_rainbow_rocks': '3e9bccff77192b5acfce95d334805027f1de83e4'} izo_hashes = {'fim_s01e01': 'f6a9024c2d5f1b98ed6f65ffb9e633b731633ca1', 'fim_s01e02': '837028fbc12f6998da620bd687093cb71da44300', 'fim_s01e03': '46cb8d1bdf8a59dbc38a080f7c1ee69bcf6ebe50', 'fim_s01e04': '01fd19c33a7cfebae29630469f2b63f00e61ab67', 'fim_s01e05': '7ed175f523796df134fe4a91cd924f495e7fc6f0', 'fim_s01e06': 'b44630407e4ba8aeecb9c9bce3094578a5989be5', 'fim_s01e07': 'c606a59baf8ea44667cdc1ef32dd0a8b439aa832', 'fim_s01e08': 'f9ece1c16c067f935f472ca44de2b42cbd4ce72c', 'fim_s01e09': '081c9ad4947c28f111c64a2d0dfa3dbb122865a5', 'fim_s01e10': '77ea25d4e5d6fbed37c87ef51498465c47850809', 'fim_s01e11': '55b6a431b0fdb124106dc3ec3c9b34426780c7be', 'fim_s01e12': '92d010ba3ac2b8fef2971ad95fa60b3d88b2dce3', 'fim_s01e13': '39c55e57ade0e1dd75ac9f1d9528ebc9eb4049c7', 'fim_s01e14': 'ff9c70f14c1e9e17c90e5e74f0e6c830662e6641', 'fim_s01e15': 'c06c7e448eee5390c203692550deaa56c7ca99fa', 'fim_s01e16': 'f95e0b3e36bf56ad987a338d896c41ecfb5d6ef2', 'fim_s01e17': '337e1d6a9d60b516ad4c1c252a2b3b43b110cd4a', 'fim_s01e18': 'f6adcde8831ca4801cd455c864e47ecf001becbd', 'fim_s01e19': 'bc91d89bf4361306ee03fbd66161f2c09e932180', 'fim_s01e20': '077ef96ebe6b62f7b8dfbad054ccf48eeaa639ad', 'fim_s01e21': 'e79c648baffc2889e1bcda8bb1e6180ed229bdd0', 'fim_s01e22': 'd05cbf7e0062b23692542cfef4cb4509e1d1bb7c', 'fim_s01e23': '6a6edc7f89bb1f5d297b9163abde7b60218b2f72', 'fim_s01e24': 'bd7bf5fca6f75306db9d06546a8151cdc8fa2af4', 'fim_s01e25': '1f323ccc45e5ed180b91636cafaec314070eeb45', 'fim_s01e26': '6c9f96dac12594083cadb1c520d9e9e238127414', 'fim_s02e01': '961f47fc2d8617cb513a5c6e963ab5405583b24f', 'fim_s02e02': '9cf031d0f8f5fa891a73f086417e3bf9f42f9ccc', 'fim_s02e03': '12685c6cf5f1fac7e9114e78f091f42ee5f52b7d', 'fim_s02e04': '3c789884ec1d340e55413a813bd39dab4290ef38', 'fim_s02e05': '618049dbb04f4c9325f93854e9dd5bf984a459a4', 'fim_s02e06': 'de634231e70c2f23316944086f2c543c97c19a9f', 'fim_s02e07': '4866c807dadb346607332b25c08530931967b4e3', 'fim_s02e08': 'd1f1885afd3eccc191b586ff7217be732b0d17a5', 'fim_s02e09': 'd52d0c06cec5ffabc441f2d390ea8260b63b8d47', 'fim_s02e10': '9a9845afa5a4b5b64b418294debc45221042ba4f', 'fim_s02e11': 'f307bf2614e1ce8e19e581a683694a7d37f318c3', 'fim_s02e12': '49bc1e0b89c944a5408d7d757779f130ff533ed6', 'fim_s02e13': '5e56f840d7d5fbcf4c0724f9fbf6cbf5f00e56f5', 'fim_s02e14': 'ac86b17bfc3d9341dab3e6282506ead5326c3c70', 'fim_s02e15': '1dcb2629a203f0a4f758dfee25930fe18f228a9b', 'fim_s02e16': 'c17161d4f77d44be1f8c72af6a15df630253ac53', 'fim_s02e17': 'b08637bc0489faaf9e1e7392536a6c218fadc2ab', 'fim_s02e18': 'a1191dd442d88bd50037cc8000eeb30b559c53e3', 'fim_s02e19': 'd9de8c47d06b6a922ba058b72ebfa816f302c573', 'fim_s02e20': 'fb72d51dab61f932313261a9a424f432e14df024', 'fim_s02e21': '319344dd49593b60b2f9188deaac64c7207a91e4', 'fim_s02e22': '3dacdacb0831dbf23ea02bc3edaa923b14c0216e', 'fim_s02e23': '0415b042a97b52f6d4ee68a7dab90e6032160ab0', 'fim_s02e24': 'a0a48b6e4609e0c089966043ccdae842cfad7401', 'fim_s02e25': '9f52e54d5273baafc607bc2e6503c5b4283a202e', 'fim_s02e26': '5cd79ebce7f9302b4fd581c42d8f2ebb9d4dbf11', 'fim_s03e01': 'ad581fa4b222d653f8f067bf073251aad5c508f5', 'fim_s03e02': '26043fa9c1ffd15ce10a32975a81cd0eb024a635', 'fim_s03e03': '4ccc98ae5ae3a6845973f05414ee9d5f6bd106e3', 'fim_s03e04': '2d028f89db0ab5ecf72126af65a0580d72f37fd8', 'fim_s03e05': 'a0c2edcc17bb07d07988199d4b8699ae1311cf92', 'fim_s03e06': 'fd7bdcd134c4e1a1039b58943143cd42c16daf22', 'fim_s03e07': '06c566eb542db2fa6591e7d0be03d0588ffc72ce', 'fim_s03e08': 'fae0c07f7cdd4e071648477e861cf1e16a0bb705', 'fim_s03e09': '3753c33c68f01934bc189ec017317f2bcbd70dd6', 'fim_s03e10': '82844bb1ebabac572a239d5c08bc50ac602cc4b5', 'fim_s03e11': '7cbc0294c8fd6412cd3f60f4d9dfde5a3a4ecae1', 'fim_s03e12': 'ba91ccd6ecb94859e895c8f3340ff4323ea8739f', 'fim_s03e13': 'b2bab2e7fa9e171aefcf0996b0987b4af25f16fe', 'fim_s04e01': '0b8da7a6025a14aa2a2376d2519052fe883247cf', 'fim_s04e02': '16dc2f4e35644a3b6df37ca3270eafa27fbc1dab', 'fim_s04e03': '0bab184d4d58e520ea7a2ef54232a3f439076f83', 'fim_s04e04': '3e971bd50fd6801a69169c81c9b22d2054b9102e', 'fim_s04e05': '4efdae5536326d27db57cea43c8ffb9b486b2cbf', 'fim_s04e06': 'edb0561371fc453e6fe2474b2401948daab43333', 'fim_s04e07': '4bbf58fdd9bc3f33376a44ccf164e8b33e14449e', 'fim_s04e08': 'f2a5c2ab930579c52aab347e003b6b4bb72c96b6', 'fim_s04e09': '7d2f532d3540cd1147c9c3427e0f9a3bd6431162', 'fim_s04e10': 'f1f1ca515bd1bf1d462c570921c3486ebe99e5ff', 'fim_s04e11': '4964977a3956c359d8800ee0f73a65bca0713805', 'fim_s04e12': 'ef639444d94cb91f057be13feb7d6107011d1c63', 'fim_s04e13': 'df95a0c61c2eaed4ea3a22d054a14d3533b5e61c', 'fim_s04e14': '308cb00a6ab8bd4458759627063b64cff9e71b2b', 'fim_s04e15': '19ac49592509505adb2e9cd6bdacb5c6e4ea3fcb', 'fim_s04e16': '68f5b5df443dd44f31ba98b797b799022e4b9f58', 'fim_s04e17': '06351f66834b2149ce3e4207af795d01f59986d7', 'fim_s04e18': 'afadfb72c758af6722df942ceb117ff59e26ca83', 'fim_s04e19': 'c48728696083634780d169c0334ef7570ff9b24c', 'fim_s04e20': 'bda66b67600367b1a79368e160d94f3f8132bfc3', 'fim_s04e21': '36676b142a4765e1b4503067bae814245e5f9d9b', 'fim_s04e22': 'de86d1413b2d0f6d218f36fa19816d087c8fffda', 'fim_s04e23': '06654109453e40c0a771f3f6f931c45638836eeb', 'fim_s04e24': '8f0b8efe53b924ede6174b81fc2981accb24a126', 'fim_s04e25': 'ef09917da342d41a82a56c8688aa8de4fdaeca02', 'fim_s04e26': 'be4f396dff757242c5eaab50a72e1fe5d1f53223', 'fim_s05e01': 'dadbddb82ef59384c14c8ff341db3eff97f24ca8', 'fim_s05e02': '210dcfc2ae2f3d81ae141c0fe53df47c8a9ab59d', 'fim_s05e03': '78416fd1698876844ab838e55075c7d6224c9cc4', 'fim_s05e04': 'f5e84b08970e3b473361617abdc1f6a0bbe17792', 'fim_s05e05': '304ed96576a36cd5646f1bcbe74279cd594871b3', 'fim_s05e06': '83cee832d68583db83e6066380ecd0086ca2f1b8', 'fim_s05e07': '1a64148801f604cf419f4edd3f0900af1f292112', 'fim_s05e08': '6ef331a7f08cd0923f2f0326bf0d4fa0c17626f0', 'fim_s05e09': 'f7db68bf6e74be8ae26fe7d0c069db66dc48225f', 'fim_s05e10': 'd8d915e674acab272a146af517629e6d45a2e5c9', 'fim_s05e11': 'c07f5e9b1be669b59c28ce5aa26eb67546dd074f', 'fim_s05e12': '6ea0cf770a228b9537c3c14e1382dd14b50997f7', 'fim_s05e13': '27609192ad83af804295d8ae98c00ab8fc22eb5f', 'fim_s05e14': '38a6b06c2ab0b3fc4fd7f238f89fe8bd277d28ef', 'fim_s05e15': '4688d8c2050235dd5eebf7aa0099812eb5aeca34', 'fim_s05e16': '71b2c6c682e142bbd53e80adc298d6b5c6f54123', 'fim_s05e17': 'a9ef2e4f7bbad929bd21f98563d07adfaab6129e', 'fim_s05e18': '806444a811e91498d3cbfb001811cb21d548d4a8', 'fim_s05e19': 'f862eb7c844ae1f6c721e3fde703488b0e022dc2', 'fim_s05e20': '253dc31d2279bfb7ec24228042702ed9e8f27a9a', 'fim_s05e21': 'beba681c7bf7e04f5537b9dda8d26eea81ad6abc', 'fim_s05e22': '4f1118498df9a8a098b945843e2d4708099da8b1', 'fim_s05e23': '700b3b57686af13fe370a509f7fe49c93fd12cb6', 'fim_s05e24': 'eff6b8292ce12f9427a1612e1c5736fada62f071', 'fim_s05e25': 'e0b85c17a79cb694cfedfe41c9f269ace64354ef', 'fim_s05e26': '94173ecac9fa6d993b9e321c24a21d37b5295bdf', 'fim_s06e01': 'f9abcbff1c6559363dc2d01b1b131b1fd7652075', 'fim_s06e02': '4570cb5c8f677081856503e9473b829af9ea5279', 'fim_s06e03': '6da71d196d87b5a0d71a0d6cbc8d0739e6f08df3', 'fim_s06e04': 'a1e365ea7e0a5eee9d3284dc59345ceab167d8a0', 'fim_s06e05': '717aca95a8877a9b5b5aaa4224c8eb595efbc8f8', 'fim_s06e06': '5a1422a00d41575285b653b087fd72c2880452b5', 'fim_s06e07': 'e73b105b48d9554661558f0296bc4c34cb33c237', 'fim_s06e08': 'dda06b88279e0d2bbc536526af548d48b5e4f1e4', 'fim_s06e09': '289234b9563758f0ced37eac3e6ed43e9bf2dd49', 'fim_s06e10': '0368cfdd86f97d4ba49076cb164452e3aa920beb', 'fim_s06e11': '11ab453a3f70f147952d35e9b4158920fc112524', 'fim_s06e12': '9b4182df2d0e21170e23552796bcfcd33ecad1f1', 'fim_s06e13': 'b93b9faf3daa40b569c7d1200175a981dcc27335', 'fim_s06e14': '46d41de3ce8e1811225930d27691c4de2049de85', 'fim_s06e15': 'fcb2fa148c53badc896b38e3b7ca9a9697ac063b', 'fim_s06e16': 'f3ae9395e43b6f3690795d8ab187af799e87cf29', 'fim_s06e17': '498828cb2eee52431057d8b6728eccfb372df368', 'fim_s06e18': '010ae66278753eb775d49bae32acab0d1c9c6fcd', 'fim_s06e19': '8b6e00372b21906b74161141745cbb8643f937d5', 'fim_s06e20': '2ea96c422a1d980cbc431da6df61cbf2bbb00ecf', 'fim_s06e21': 'fee21ca21647b474b10c57cd95b915f9454e3e4c', 'fim_s06e22': 'fd05dd1eafabb6ad23294f087400415428083952', 'fim_s06e23': 'e6b38a84d01530fb1710417c37b14edb9ceb0318', 'fim_s06e24': '1d569bd9e83b93165a321d7f1137cc4f856e2f28', 'fim_s06e25': '0988ecb76b172b1e0f2ab83c8a81a2b21d90cb23', 'fim_s06e26': '7b255c9d24419c79b61cb03e1aa1c51ee869a59b', 'fim_s07e01': '13552a4e583122cb929c335f2aabb96868ebe8bf', 'fim_s07e02': '7168f16470d158d98e77cd2f956d3c3aeed950f0', 'fim_s07e03': 'f9d114d4a6ba8728ab1e66e2c72c2ab49afdb425', 'fim_s07e04': 'a4863d754430365e8f8352f1ea281b33152f62ec', 'fim_s07e05': 'f7e82abd7dfb363f7cc5d88c056ff39bf88fc91a', 'fim_s07e06': '6f7d7a949963cf603d94a1d2f6ea2faba40d6ec0', 'fim_s07e07': 'f554058057385bf47b8e44247296bdecd74245d7', 'fim_s07e08': '34a440cba25b5c0d28c4a4519fd666291c4eacb5', 'fim_s07e09': '0a80082dcb8261751db62316624ddb1a5413d084', 'fim_s07e10': '33959c2ac2e4210fe679a9d74ed035baa32ff581', 'fim_s07e11': 'f262360d1b534b9893277f17065efbc006e86597', 'fim_s07e12': 'decde67c0c63c957c89b3cc4814ec62010e0390f', 'fim_s07e13': 'a1fd8783e398141ab29969c968a9ef8d926a2761', 'fim_s07e14': '538abc0eb0513c9d2915b7c226d63949977c8b45', 'fim_s07e15': 'ce4422c88246c21768f4188843824dc48bf2da30', 'fim_s07e16': 'ae4ba22190cdf32599bad2d1fa67371e31fa1bc5', 'fim_s07e17': 'c6a47aab6a11fccb4846ddabf650a47ed3ad95d9', 'fim_s07e18': '800d3ba5074eb59556ff3d2d929fe55f33662467', 'fim_s07e19': '49566b3604ef3414064cc5f6e2ddb71716f3c55e', 'fim_s07e20': '856e6dc2c66f4c352fdb48625eae6cf8f8e8d0bf', 'fim_s07e21': '55d99812da760cd528a735887e822517e06a30f4', 'fim_s07e22': '62801071748a63e688e939b306d78b51f5f8e824', 'fim_s07e23': '3a70ac5a28606d4e92fb9fec484997c5c45454bc', 'fim_s07e24': 'c8b532184c09ecb0f9eb468b18746edb95553053', 'fim_s07e25': 'da047c5cf0eb2e93cd163775fe1729e64ad3b5ca', 'fim_s07e26': 'b69f4c32c3717abef52fbf43e0f7d95e5ce0a9ae', 'fim_s08e01': '695f7365f9fbb7df059f38911ef397c2525ddd0f', 'fim_s08e02': '976df812644dbbaa5905dd9e6f2b712bfb9bce5a', 'fim_s08e03': '4f8f3f236ad697147aa002d545907ce6427c1ef2', 'fim_s08e04': 'b3faf68eaf99deec4f5ef9ea162b5ec6df0412ff', 'fim_s08e05': '7bdd85dec8e09fda1ec57cf56ce5cafc75188b31', 'fim_s08e06': '6a53c91e3dd22ddc069d5cf85225d3ec9a141e2e', 'fim_s08e07': '5b788645db606822e99d6188cbad5a06556bcd80', 'fim_s08e08': '6cbcfde1eddaef72e4f54fab85602776c3f83f1f', 'fim_s08e09': '1c01cfc679b442b2f05184327ca15fa0bb54a04c', 'fim_s08e10': '8d680da1acdd9c8636fb6d093e3cae5e1072916c', 'fim_s08e11': '3acc0bd1c3bd9ad1924a7baad0ae52d224f1b98f', 'fim_s08e12': '814e5e20a1d5cb11b2d40630d8d9f09aadf0f367', 'fim_s08e13': 'f153eb6197d9587f10d5ef21b2564ecce8a0869c', 'fim_s08e14': '003127da6e5d687a916e8f0facb99130f34d6856', 'fim_s08e15': 'c1db00dfe88352f6d09e90825ccf20aedda29416', 'fim_s08e16': 'bd5879b90204a8e45534f8f1021aeb05085b0cfb', 'fim_s08e17': 'd5d073670b0053b023bf7c82ba33bc58ae064e81', 'fim_s08e18': '8bac4e2877cbdb46df87f1ca61c4f78ca41cb491', 'fim_s08e19': '7d7cb95831868838738a12a215b04e97ab7d15d4', 'fim_s08e20': 'f631a709607562db55fc15b36657ef4ecddcc039', 'fim_s08e21': '9690385208ee229254b635af82a09fa2ab9828c4', 'fim_s08e22': '4379434a499ec49628607955e9d711d001c2c709', 'fim_s08e23': '9d1bbd5ffa936a38dd50f819ee0ffa61bb8ce9b7', 'fim_s08e24': 'ae1aa3fa3ad40e000d3e4ce4775d665ff9f54cda', 'fim_s08e25': 'd51e3fe09bfcf10efcb7e81db41075d1afd48476', 'fim_s08e26': 'db77fb88f9de6d48f1abd197f366d481be9b76c6', 'fim_s09e01': '697b309edad2fea1ac2d21e6c1d6e17dcedcabdb', 'fim_s09e02': '756036b6d4932190a97b08c3578a5fd67fce328d', 'fim_s09e03': '44a1060f5bf3d587e7bf85ad0dd172fefa636a83', 'fim_s09e04': '430e5a5756053b09780400e1cb4bdad0662f492b', 'fim_s09e05': '5d0fdc9c8dc60bdff56aec4c031de671f639749b', 'fim_s09e06': 'bb38c9d23c41df9c22668da7bf535988c3f1356f', 'fim_s09e07': 'ca180f475678b55150b92382edd7ce1c4350467d', 'fim_s09e08': 'e01251baa48012eb5a75e7798ca0f7970b08bbd6', 'fim_s09e09': 'f7d6a40d4c4405a96fdad66917fbb1b013b3d0aa', 'fim_s09e10': '5c726e521b2160c19b9010fab42103e181e60ed5', 'fim_s09e11': '54c9aedfe15155519c363c10133dd6d2277ad751', 'fim_s09e12': '60f163a0092527684966532789bc2d90b8ee6986', 'fim_s09e13': '6008d29554185bd36deec16b72368101b791fda3', 'fim_s09e14': '44b896f80f0393559ee001e05c64df30a5dda905', 'fim_s09e15': '6d880d843f8adecd6ec664128c1d355c486f2753', 'fim_s09e16': '682776123da12ab638f3af15a75d7915dab38b4d', 'fim_s09e17': '79e62638d6628c7ba97af6f6187a864e15787a7f', 'fim_s09e18': '2974b45463f9ac41b4a29f63d9b0d013e311771e', 'fim_s09e19': '8989d8a96822f29839bc3330487d7586aa927d37', 'fim_s09e20': '088134fe57889434089515c889e590f33afeb099', 'fim_s09e21': '7d6749aeb470e71c0e8bd51e3760ae9562f6579d', 'fim_s09e22': 'a164e1f92185d6fb51f1b5a25196c2377498ea43', 'fim_s09e23': '3094600e69bd6934e925f58cb95a2430d1839f54', 'fim_s09e24': 'ded8ba2b9887a14597e41ec7256d9f45b0f61abc', 'fim_s09e25': 'ebab1fc09dadb040388d89486aeef1b75885b0b5', 'fim_s09e26': '2ba14c1d174eb33155dd3f6ebace2279ba8b4ef6', 'eqg_original_movie': 'edea58393759cf74326e05d0b0a821e7ff54dc03', 'eqg_friendship_games': '9619ab463a28b5498490ed1e43ff83ba247ac309', 'eqg_legend_of_everfree': '6b65399c961f71afd2dfa2189d493a412ee3300a', 'eqg_rainbow_rocks': 'b5a8d331a5e6b37931282207874b334d488d562d'} unmix_hashes = {'fim_s01e01': '104d5aaa0c37225c200ad7b83fcf63034f05522f', 'fim_s01e02': 'e0d7b62bb2291a3d692f3feccdeefa184e80e7c1', 'fim_s01e03': 'c29cb960fae5e435016e02fa107ea1bcdbc75eae', 'fim_s01e04': '19a6c63c6ebf8be3e040003e8c08627df98e5a44', 'fim_s01e05': '9ef84b6c65927182d21b3cc3d4b2a847e6c16c18', 'fim_s01e06': '50594babaf65ec42243c4a9800ee1bfebc6bc7d8', 'fim_s01e07': 'eb05c17e53a166ae660d1f3da6e90b8f14b7c79a', 'fim_s01e08': '41577ab4d5a133397e55c03a747d41f4658b4481', 'fim_s01e09': '59a587efd4f2292c9969f0e391e54ecf9d7cb594', 'fim_s01e10': 'df48e4108bfb89a9e6b490b07bf04dbd1bc3494b', 'fim_s01e11': '907907fdc17d15f7e65d8ca1e079095b508b18a6', 'fim_s01e12': '5a8007535d7b0925f077fde57a63791b71bad523', 'fim_s01e13': 'd6e26ed11d68262ebd32becca6529509f97c3a58', 'fim_s01e14': 'a5784986a38730fc1fb430ad0f0272fd0c7d0cf4', 'fim_s01e15': '7fd50b75fe4a02337c25f8ff694e390f268a9456', 'fim_s01e16': '0344d2ae7ee8f2f6461798e2900ed0ad3bd0b11d', 'fim_s01e17': '28b9582d04a27dd13b0557730cf0eadaaa2cd629', 'fim_s01e18': '6e84cf840ba430e9527f71ef2a0dc8ce6c218875', 'fim_s01e19': '4a9a544a5663a6d7ac731a9083c9cce71aefdb6b', 'fim_s01e20': 'fa7733b6ab981829b4466c26f185738509ec062e', 'fim_s01e21': '388cc179f81c44d23aee3fcffec64b17d3c10f01', 'fim_s01e22': 'e46ae2a8f92e82be3172ffd7d25f491de7cd0289', 'fim_s01e23': '661828a394087d716376dc0139b61137389ae5de', 'fim_s01e24': 'b227ac1c89f3a25dc4522118750a58e978475b9c', 'fim_s01e25': '2004b2aa9015498e1f2d8454856e5883bfbb3315', 'fim_s01e26': 'f66ca26045de350188d476ab5b501408c551acba', 'fim_s02e01': '44b3fe6e76e60b7e70ef85aed2c0b2756c69cef7', 'fim_s02e02': '35fff48ca55ecb1e601b57d896330900a55cbc92', 'fim_s02e03': '87e1d81dcb3cffbca12550e143cc922e6a4a68b1', 'fim_s02e04': 'e5463604e47ddcc6c15552e65c4a8ae75ba55730', 'fim_s02e05': '33149416515e8a3f04e1db6f636afecd20e4572c', 'fim_s02e06': '8516c352f688e3be76cd9db8ca709d5dd62dc5bf', 'fim_s02e07': '00f060faae1f1e0b6b82361b4c0fc4ddde90fd1d', 'fim_s02e08': '059f6d9b21d6e78d7ff2593f01a032f045bb3246', 'fim_s02e09': '153a013f94d0272ccaee7a4197f353a0756b917e', 'fim_s02e10': '13de5f5c20c11bcf6afdf01a76db934f370c5afa', 'fim_s02e11': '1f1b0e38ec868d3d976444b6b28548e023fd2508', 'fim_s02e12': 'cc9a39c32d44632161968b5b5babd9a38bc9b385', 'fim_s02e13': '00ccf5ce90f50db65a4aeec6a8b6c75f056e9e19', 'fim_s02e14': 'b737ccfc861470abbc6e9e1d8d4d11dae78cfe8f', 'fim_s02e15': '9e03f0e03c39f797f16211b086aea4f660f72684', 'fim_s02e16': 'ae02167827b0a27794154534fcb16c489df6418c', 'fim_s02e17': '4a002a75c00b34ca9cf932a5cf7987b7abf84292', 'fim_s02e18': '8fe1a7765ddf8ab1b062ea7ddb968d1c92569876', 'fim_s02e19': 'c4f73cec0071d37a021d96a0c7e8e8269cfa6b21', 'fim_s02e20': 'a8a392cbfe39a7f478f308dde7774f5264da1bef', 'fim_s02e21': 'c19ce429444c7862f6de83fcee8479ede4d2de0b', 'fim_s02e22': '9054930ee5a9403da56794aa30ee8a9b8bc66c54', 'fim_s02e23': '96baecf46098eccca9b26a587f8e588c622a0443', 'fim_s02e24': 'd304f143b81026f93628bc26f3018442d6b494b4', 'fim_s02e25': '258b39c68661c89a7a3f564f0827382c365ac824', 'fim_s02e26': '58df95dbcd6998ace149d16479add90f670b5156', 'fim_s03e01': '197d03426d4bbdebff15e7723bb95f5cffccd230', 'fim_s03e02': '3623a1cb7dea3c5fd43ed5b5e77c91f83d7ced4b', 'fim_s03e03': '4df72e4dc9580acf9a9c598d5fbcb36e1f1429f7', 'fim_s03e04': '213ba1e62e23931e58dc4ebb5f4b2dfd735f47ca', 'fim_s03e05': '564a8c54b13320aa982ff2209565ef4750564194', 'fim_s03e06': 'ed1b6fb5b071ab56a78492e54875b082c0c8a074', 'fim_s03e07': 'a37fc358a86679130e9a4ff8baf0ba55ccf28b56', 'fim_s03e08': 'e050d4d8d14c26c6ebb859b01a4569d871fcd2b0', 'fim_s03e09': '229dbc841e643c820653af1e7f3bd14f07ef1e1b', 'fim_s03e10': '50f5e34647763ab9b007c7e86d0d7be94c297845', 'fim_s03e11': 'df0c039168e062c9dd57e77c974e810255dceb4f', 'fim_s03e12': '3bf02a42574ea2a703639adddb3614172d50a525', 'fim_s03e13': '788d4bc2660f27bf51fa57c469155d4e3a4488e4', 'fim_s04e01': 'b538e685b444022c8fce4916da0d422d13f6e576', 'fim_s04e02': 'aa205fdfd60da95fc4f99fffba883c567421dab1', 'fim_s04e03': 'fe64dcf231ccc42722fc855a3e74ae3bbbf0e643', 'fim_s04e04': '001c014fe5324332f8d00f012efb35fefa47f533', 'fim_s04e05': 'e8a338e557652d21b161b8026dd5768e05976027', 'fim_s04e06': '321426038fc6cc0bc8ddd086a79c3946a27cd436', 'fim_s04e07': '611e78559560a6b63a099fc3397ef3a8eb0db4c7', 'fim_s04e08': '3a463dd8573a4eb51dabd2efb28cd099681e110e', 'fim_s04e09': 'de37b8d59676f5f598ea6bda080077a371fbf601', 'fim_s04e10': '9f40be459463d5513ba274189548c2b0b3552d36', 'fim_s04e11': 'bfa1dc10e4c64bdefe2c7ebe0fc2ffb9f4f1e443', 'fim_s04e12': '13adfc2233f9a005b6bf708e7abd0b93faba828b', 'fim_s04e13': '3fc37f27939d951f313111a9f792715731ed059d', 'fim_s04e14': '88a29e567214de2c72b8b5a11466ea8f2e2b5c96', 'fim_s04e15': '2728093f445fd3a21d0ac86598cf07f9b20fc45d', 'fim_s04e16': '9f720280324c0d491fc75f179d69ca4965f46821', 'fim_s04e17': '77437fa49ab73a880859c76ee4b6b522e60e5b5e', 'fim_s04e18': 'ee79772dd96bb4cf78e53879168b52044a80f83a', 'fim_s04e19': '3a93bca017d5fe1f28a1f89c10df0abc49a33e42', 'fim_s04e20': '8481897fa44d02624b3a8799ceba22a1b9087060', 'fim_s04e21': '74f6f18d61e52673b99ba1c1379fcad2a1125899', 'fim_s04e22': 'cec016654cdd2f7c73864229f54760ea20b86c8a', 'fim_s04e23': '1f894ae6cf86a865988b72b3d1a5060cf2f89a86', 'fim_s04e24': 'c6a4fe51123ba3ce0b0716df21e9989e8b555ade', 'fim_s04e25': '204666928675f6b9bff9e92ef3b2176099180e9b', 'fim_s04e26': '47de6d5d70bb61fc746a47d28fc53854d2be441b', 'fim_s05e01': '2cafa7cc6ca0414c294c824d63c3a433e07b2f13', 'fim_s05e02': '69260d52ed666d0dc97544ed5019e1914d674c53', 'fim_s05e03': '5c7db95c1f78f2e7425096b67ce534fc872e6618', 'fim_s05e04': '91da34c761324628156d1db94b5a06b77a327c41', 'fim_s05e05': 'ee74a927b5a5419fe9e851a132fe2d814f699f10', 'fim_s05e06': '84d7d6c7cce9a4cca502d9c8a24ed0be862ea702', 'fim_s05e07': '2c128bf9d45e75ffddd452ac2f20abd553203641', 'fim_s05e08': '2954354ce57c7fedd61d372e8fa908731e3407bb', 'fim_s05e09': '317ac1df8d316d175fca6e1715bb9f97cfc1ca13', 'fim_s05e10': 'f977396916f65a96ca0aa40fee7345d3ce0d34a8', 'fim_s05e11': '1df05e8363c41ba68f5eaa2af0c22e29998d066d', 'fim_s05e12': 'bc08072dc6be4e21dae03db1464ae0b83f657a7f', 'fim_s05e13': '674758bd23d8ba73d14858580b60fa5062e28fe0', 'fim_s05e14': '047799ab041a30d774938d0dc2672c34935371f8', 'fim_s05e15': '66ec2eb2ce01dc382cc32c9c6530374e8a96a938', 'fim_s05e16': '4bc308416d420583a69642bfa83c8235fb84e1e1', 'fim_s05e17': '8fe15d113baf7a5e140f53729aa11a4722aaec64', 'fim_s05e18': '9ff2bf125cf6a07af325cb5cbba3d17b2579c498', 'fim_s05e19': 'af9a63a629b1fc154e600ab058878457bdc799e1', 'fim_s05e20': 'ea0635bf7757e53300a07d56887e4b1857cde93c', 'fim_s05e21': '3fa37e113e81c54667db87204d68958cb4dfb50f', 'fim_s05e22': 'b5f54f2e4736b4e1be4d537d8d0edaa219ca16c7', 'fim_s05e23': '40bce23e28e12686b667c431072f925b01bdf817', 'fim_s05e24': 'f08b14a1e6e41dccc4315aade503ed91ce2f71b3', 'fim_s05e25': '85272b7929fa219f503ca08637f04b52458b2636', 'fim_s05e26': 'abe7acfacc78bba55e4da71eab592383e8c2010d', 'fim_s06e01': 'bb554e4b036f19bfe98b0e11db71732204e71747', 'fim_s06e02': '9bcd6ba7d6da353e49da88ee9702a1c9e7b58f9d', 'fim_s06e03': '44f278c1c3b1642f92dae0f1dc9d1869cb5edd3e', 'fim_s06e04': 'a23fc5a9b0171265d4c37debd3e6888b7d5cfadd', 'fim_s06e05': '717c3c0a63515266079cafe0d0076cedf3eeb2c9', 'fim_s06e06': '0c7f49103a41190b115f8d4d4a4134c10d03c441', 'fim_s06e07': 'dc1011e5ee80a45544ee9d9c5edd6bca2e0b9b10', 'fim_s06e08': '70ebfee1498e73c6e0432e279cda32efc6c611d7', 'fim_s06e09': '0ecdf3735a03bb49075e94221e840815e960e736', 'fim_s06e10': 'eac675ef07f63907353d758cc5dccf82c75bcf9c', 'fim_s06e11': '43bd3f861e85bc7e21dc4523e112d82a3193edd0', 'fim_s06e12': 'cee4185a9957ecbd00b6b6f374fa56715ef04fcd', 'fim_s06e13': 'e040a7ec92cf7139a415a5e27bff994c8604c320', 'fim_s06e14': 'b1f071de18a25d9ee6f70674ff3c00379ed44e09', 'fim_s06e15': '75473364424e5b4dd91e918657e41b5d4e7f0b61', 'fim_s06e16': 'a59a451317257474359cc85e523892e94c2f393c', 'fim_s06e17': '0bd07609e7209aac921e21d9f33f6a8b16172d65', 'fim_s06e18': '3d16b21da67c674735b61adddb831a0e2240d3b9', 'fim_s06e19': '3594101ff21359203054973ead72905fd09b5680', 'fim_s06e20': '562c8a5c548deef2a915c8fdd9f3ab069e1222ae', 'fim_s06e21': '38a558ff7551b56511cb9644dfe2ceb7b0c635ec', 'fim_s06e22': '5735868115acbe5c18d0370592eeff689402a3b3', 'fim_s06e23': '9a40a8b6b6c304d286f34d2cee80535dc46c618a', 'fim_s06e24': '8987aaca1bb4395673093c28ec00023b65abf451', 'fim_s06e25': 'f33e490c411fe249d90be1e23b455f422bbfea7d', 'fim_s06e26': '70a737ebe36d85801294b2d22a462bf41a211a77', 'fim_s07e01': 'unknown', 'fim_s07e02': 'unknown', 'fim_s07e03': 'unknown', 'fim_s07e04': 'unknown', 'fim_s07e05': 'unknown', 'fim_s07e06': 'unknown', 'fim_s07e07': 'unknown', 'fim_s07e08': 'unknown', 'fim_s07e09': 'unknown', 'fim_s07e10': 'unknown', 'fim_s07e11': 'unknown', 'fim_s07e12': 'unknown', 'fim_s07e13': 'unknown', 'fim_s07e14': 'unknown', 'fim_s07e15': 'unknown', 'fim_s07e16': 'unknown', 'fim_s07e17': 'unknown', 'fim_s07e18': 'unknown', 'fim_s07e19': 'unknown', 'fim_s07e20': 'unknown', 'fim_s07e21': 'unknown', 'fim_s07e22': 'unknown', 'fim_s07e23': 'unknown', 'fim_s07e24': 'unknown', 'fim_s07e25': 'unknown', 'fim_s07e26': 'unknown', 'fim_s08e01': 'unknown', 'fim_s08e02': 'unknown', 'fim_s08e03': 'unknown', 'fim_s08e04': 'unknown', 'fim_s08e05': 'unknown', 'fim_s08e06': 'unknown', 'fim_s08e07': 'unknown', 'fim_s08e08': 'unknown', 'fim_s08e09': 'unknown', 'fim_s08e10': 'unknown', 'fim_s08e11': 'unknown', 'fim_s08e12': 'unknown', 'fim_s08e13': 'unknown', 'fim_s08e14': 'unknown', 'fim_s08e15': 'unknown', 'fim_s08e16': 'unknown', 'fim_s08e17': 'unknown', 'fim_s08e18': 'unknown', 'fim_s08e19': 'unknown', 'fim_s08e20': 'unknown', 'fim_s08e21': 'unknown', 'fim_s08e22': 'unknown', 'fim_s08e23': 'unknown', 'fim_s08e24': 'unknown', 'fim_s08e25': 'unknown', 'fim_s08e26': 'unknown', 'fim_s09e01': 'unknown', 'fim_s09e02': 'unknown', 'fim_s09e03': 'unknown', 'fim_s09e04': 'unknown', 'fim_s09e05': 'unknown', 'fim_s09e06': 'unknown', 'fim_s09e07': 'unknown', 'fim_s09e08': 'unknown', 'fim_s09e09': 'unknown', 'fim_s09e10': 'unknown', 'fim_s09e11': 'unknown', 'fim_s09e12': 'unknown', 'fim_s09e13': 'unknown', 'fim_s09e14': 'unknown', 'fim_s09e15': 'unknown', 'fim_s09e16': 'unknown', 'fim_s09e17': 'unknown', 'fim_s09e18': 'unknown', 'fim_s09e19': 'unknown', 'fim_s09e20': 'unknown', 'fim_s09e21': 'unknown', 'fim_s09e22': 'eec65346f3f84a2200a5e5918e89d91a2a549a29', 'fim_s09e23': '1426f4afd21cc478d175cc89d342d4cb42d358b7', 'fim_s09e24': '14ac91b7eda5698feed15ec53084aee5cf0fb571', 'fim_s09e25': '60cbea49cec1cd14c94921c0990a42df754abf51', 'fim_s09e26': '9b2d98c2eb5e336a97e49b3e35bffee39238414c', 'eqg_original_movie': '5ecf9491a5808e7b32accabdf7c57273ad197192', 'eqg_friendship_games': '31097404640cced077169c41e7cdf925ced9f165', 'eqg_legend_of_everfree': '3104471033ef47b7cd303812dfeb720bd0d63f8a', 'eqg_rainbow_rocks': 'ff4e528045e846f2221229a3f38bababd5c0b733'}
class Solution(object): def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int """ # Simple brute force # while val in nums: # nums.remove(val) # return (len(nums)) # Trying a 2 pointer approach which should be faster k = 0 for i in range(len(nums)): if(nums[i] != val): nums[k] = nums[i] k+=1 return k
class Solution(object): def remove_element(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int """ k = 0 for i in range(len(nums)): if nums[i] != val: nums[k] = nums[i] k += 1 return k
class SpotUrls: token='85392160' CFID='459565' venice_morning_good='https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.20191103T162900647.mp4' venice_static='https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.20191027T235900139.mp4' lookup={'breakwater': 'http://www.surfline.com/surfdata/video-rewind/video_rewind.cfm?id=150603&CFID=459565&CFTOKEN=85392160', 'topanga': 'http://www.surfline.com/surfdata/video-rewind/video_rewind.cfm?id=150605&CFID=491164&CFTOKEN=82948697'} lookupmp4={'breakwater': "https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.", 'topanga': "https://camrewinds.cdn-surfline.com/live/wc-topangaclose.stream."}
class Spoturls: token = '85392160' cfid = '459565' venice_morning_good = 'https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.20191103T162900647.mp4' venice_static = 'https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.20191027T235900139.mp4' lookup = {'breakwater': 'http://www.surfline.com/surfdata/video-rewind/video_rewind.cfm?id=150603&CFID=459565&CFTOKEN=85392160', 'topanga': 'http://www.surfline.com/surfdata/video-rewind/video_rewind.cfm?id=150605&CFID=491164&CFTOKEN=82948697'} lookupmp4 = {'breakwater': 'https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.', 'topanga': 'https://camrewinds.cdn-surfline.com/live/wc-topangaclose.stream.'}
s = input() n = len(s) formulas = s.split('+') ans = 0 for f in formulas: for i in range(len(f)): if f[i] == '0': break if i == len(f) - 1: ans += 1 print(ans)
s = input() n = len(s) formulas = s.split('+') ans = 0 for f in formulas: for i in range(len(f)): if f[i] == '0': break if i == len(f) - 1: ans += 1 print(ans)
x = int(input('Qual tabuada multiplicar: ')) print('-' * 15) print('{} x {:2} = {}'.format(x, 1, (x*1))) print('{} x {:2} = {}'.format(x, 2, (x*2))) print('{} x {:2} = {}'.format(x, 3, (x*3))) print('{} x {:2} = {}'.format(x, 4, (x*4))) print('{} x {:2} = {}'.format(x, 5, (x*5))) print('{} x {:2} = {}'.format(x, 6, (x*6))) print('{} x {:2} = {}'.format(x, 7, (x*7))) print('{} x {:2} = {}'.format(x, 8, (x*8))) print('{} x {:2} = {}'.format(x, 9, (x*9))) print('{} x {:2} = {}'.format(x, 10, (x*10))) print('-' * 15)
x = int(input('Qual tabuada multiplicar: ')) print('-' * 15) print('{} x {:2} = {}'.format(x, 1, x * 1)) print('{} x {:2} = {}'.format(x, 2, x * 2)) print('{} x {:2} = {}'.format(x, 3, x * 3)) print('{} x {:2} = {}'.format(x, 4, x * 4)) print('{} x {:2} = {}'.format(x, 5, x * 5)) print('{} x {:2} = {}'.format(x, 6, x * 6)) print('{} x {:2} = {}'.format(x, 7, x * 7)) print('{} x {:2} = {}'.format(x, 8, x * 8)) print('{} x {:2} = {}'.format(x, 9, x * 9)) print('{} x {:2} = {}'.format(x, 10, x * 10)) print('-' * 15)
def FibonacciSearch(arr, key): fib2 = 0 fib1 = 1 fib = fib1 + fib2 while (fib < len(arr)): fib2 = fib1 fib1 = fib fib = fib1 + fib2 index = -1 while (fib > 1): i = min(index + fib2, (len(arr)-1)) if (arr[i] < key): fib = fib1 fib1 = fib2 fib2 = fib - fib1 index = i elif (arr[i] > key): fib = fib2 fib1 = fib1 - fib2 fib2 = fib - fib1 else : return i if(fib1 and index < (len(arr)-1) and arr[index+1] == key): return index+1 return -1 key= 15 arr = [5, 10, 15, 20, 25, 30, 35] ans = FibonacciSearch(arr, key) print(ans) if (ans): print("Found at "+ str(ans+1) +" position") else: print("Not Found")
def fibonacci_search(arr, key): fib2 = 0 fib1 = 1 fib = fib1 + fib2 while fib < len(arr): fib2 = fib1 fib1 = fib fib = fib1 + fib2 index = -1 while fib > 1: i = min(index + fib2, len(arr) - 1) if arr[i] < key: fib = fib1 fib1 = fib2 fib2 = fib - fib1 index = i elif arr[i] > key: fib = fib2 fib1 = fib1 - fib2 fib2 = fib - fib1 else: return i if fib1 and index < len(arr) - 1 and (arr[index + 1] == key): return index + 1 return -1 key = 15 arr = [5, 10, 15, 20, 25, 30, 35] ans = fibonacci_search(arr, key) print(ans) if ans: print('Found at ' + str(ans + 1) + ' position') else: print('Not Found')
# from fluprodia import FluidPropertyDiagram def test_main(): pass
def test_main(): pass
""" Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. Example 1: Input: [1,2,3,1] Output: true Example 2: Input: [1,2,3,4] Output: false Example 3: Input: [1,1,1,3,3,4,3,2,4,2] Output: true """ # in order to check if an array contains any duplicates: # FIRST SOLUTION # make a set from the array (set will ignore duplicates) # compare length of set to length of array # if length is == return true else return false # SECOND SOLUTION # make a hashtable for the array with each item as the key and a count of occurances as valuus # loop through the hashtable and return true if any value is > 0 # THIRD SOLUTION # LOOP THROUGH EACH ITEM IN THE ARRAY # FOR EACH ITERATION OF LOOP LOOP THROUGH THE WHOLE ARRAY AGAIN(EXCLUDING CURRENT ITEM) AND RETURN TRUE IF A MATCH IS FOUND input1 = [1,2,3,1] input2 = [1,2,3,4] input3 = [1,1,1,3,3,4,3,2,4,2] def first_solution (arr): new_set = set(arr) if len(new_set) == len(arr): return False else: return True # print(f"First Solution") # print(first_solution(input1)) # print(first_solution(input2)) # print(first_solution(input3)) def second_solution (arr): arrDict = {} for i in arr: if i not in arrDict: arrDict[i] = 0 arrDict[i] += 1 for key, value in arrDict.items(): if value > 1: return True return False # print(f"Second Solution") # print(second_solution(input1)) # print(second_solution(input2)) # print(second_solution(input3)) def third_solution (arr): for i in range(len(arr)): for j in arr[i + 1:]: if arr[i] == j: return True return False print(f"Third Solution") print(third_solution(input1)) print(third_solution(input2)) print(third_solution(input3))
""" Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. Example 1: Input: [1,2,3,1] Output: true Example 2: Input: [1,2,3,4] Output: false Example 3: Input: [1,1,1,3,3,4,3,2,4,2] Output: true """ input1 = [1, 2, 3, 1] input2 = [1, 2, 3, 4] input3 = [1, 1, 1, 3, 3, 4, 3, 2, 4, 2] def first_solution(arr): new_set = set(arr) if len(new_set) == len(arr): return False else: return True def second_solution(arr): arr_dict = {} for i in arr: if i not in arrDict: arrDict[i] = 0 arrDict[i] += 1 for (key, value) in arrDict.items(): if value > 1: return True return False def third_solution(arr): for i in range(len(arr)): for j in arr[i + 1:]: if arr[i] == j: return True return False print(f'Third Solution') print(third_solution(input1)) print(third_solution(input2)) print(third_solution(input3))
a=0 pg=[[]] # input the number of chapters # input the maximum number of problems per page x,y=map(int,input().split(' ')) # input the number of problems in each chapter l=list(map(int,input().split(' '))) for i in l: k = [[] for _ in range(100)] for j in range(i): k[j//y].append(j+1) for i in k: if i != []: pg.append(i) for i in range(len(pg)): if i in pg[i]: a+=1 # Print the number of special problems in Lisa's workbook print(a)
a = 0 pg = [[]] (x, y) = map(int, input().split(' ')) l = list(map(int, input().split(' '))) for i in l: k = [[] for _ in range(100)] for j in range(i): k[j // y].append(j + 1) for i in k: if i != []: pg.append(i) for i in range(len(pg)): if i in pg[i]: a += 1 print(a)
# Import Data commands = [] with open('../input/day_2.txt') as f: lines = f.read().splitlines() for line in lines: splitline = line.split(" ") splitline[1] = int(splitline[1]) commands.append(splitline) # Process Data positionHorizontal = 0 positionVertical = 0 for command in commands: direction = command[0] amount = command[1] if direction == 'forward': positionHorizontal += amount elif direction == 'down': positionVertical += amount elif direction == 'up': positionVertical -= amount print(f'Horizontal Movement: {positionHorizontal}') print(f'Vertical Movement: {positionVertical}') print(f'Multiplied Movement: {positionHorizontal * positionVertical}')
commands = [] with open('../input/day_2.txt') as f: lines = f.read().splitlines() for line in lines: splitline = line.split(' ') splitline[1] = int(splitline[1]) commands.append(splitline) position_horizontal = 0 position_vertical = 0 for command in commands: direction = command[0] amount = command[1] if direction == 'forward': position_horizontal += amount elif direction == 'down': position_vertical += amount elif direction == 'up': position_vertical -= amount print(f'Horizontal Movement: {positionHorizontal}') print(f'Vertical Movement: {positionVertical}') print(f'Multiplied Movement: {positionHorizontal * positionVertical}')
def product(fracs): t = reduce(lambda x, y: x * y, fracs, 1) return t.numerator, t.denominator
def product(fracs): t = reduce(lambda x, y: x * y, fracs, 1) return (t.numerator, t.denominator)
#Copyright 2010 Google Inc. # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agreed to in writing, software #distributed under the License is distributed on an "AS IS" BASIS, #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #See the License for the specific language governing permissions and #limitations under the License. def slugify(inStr): removelist = ["a", "an", "as", "at", "before", "but", "by", "for","from","is", "in", "into", "like", "of", "off", "on", "onto","per","since", "than", "the", "this", "that", "to", "up", "via","with"]; for a in removelist: aslug = re.sub(r'\b'+a+r'\b','',inStr) aslug = re.sub('[^\w\s-]', '', aslug).strip().lower() aslug = re.sub('\s+', '-', aslug) return aslug
def slugify(inStr): removelist = ['a', 'an', 'as', 'at', 'before', 'but', 'by', 'for', 'from', 'is', 'in', 'into', 'like', 'of', 'off', 'on', 'onto', 'per', 'since', 'than', 'the', 'this', 'that', 'to', 'up', 'via', 'with'] for a in removelist: aslug = re.sub('\\b' + a + '\\b', '', inStr) aslug = re.sub('[^\\w\\s-]', '', aslug).strip().lower() aslug = re.sub('\\s+', '-', aslug) return aslug
'this crashed pychecker from calendar.py in Python 2.2' class X: 'd' def test(self, item): return [e for e in item].__getslice__() # this crashed in 2.2, but not 2.3 def f(a): a.a = [x for x in range(2) if x > 1]
"""this crashed pychecker from calendar.py in Python 2.2""" class X: """d""" def test(self, item): return [e for e in item].__getslice__() def f(a): a.a = [x for x in range(2) if x > 1]
#!/usr/bin/env python3 def round_down_to_even(value): return value & ~1 for _ in range(int(input())): input() # don't need n a = list(map(int, input().split())) for i in range(0, round_down_to_even(len(a)), 2): if a[i] > a[i + 1]: a[i], a[i + 1] = a[i + 1], a[i] print(*a)
def round_down_to_even(value): return value & ~1 for _ in range(int(input())): input() a = list(map(int, input().split())) for i in range(0, round_down_to_even(len(a)), 2): if a[i] > a[i + 1]: (a[i], a[i + 1]) = (a[i + 1], a[i]) print(*a)
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim:fileencoding=utf_8 """Add doc string """ __author__ = 'M. Kocher' __copyright__ = "" __credits__ = ['M. Kocher'] __license__ = 'MIT License' __maintainer__ = 'M. Kocher' __email__ = '[email protected]' __version__ = '0.1'
"""Add doc string """ __author__ = 'M. Kocher' __copyright__ = '' __credits__ = ['M. Kocher'] __license__ = 'MIT License' __maintainer__ = 'M. Kocher' __email__ = '[email protected]' __version__ = '0.1'
num = [int(x) for x in input("Enter the Numbers : ").split()] index=[int(x) for x in input("Enter the Index : ").split()] target=[] for i in range(len(num)): target.insert(index[i], num[i]) print("The Target array is :",target)
num = [int(x) for x in input('Enter the Numbers : ').split()] index = [int(x) for x in input('Enter the Index : ').split()] target = [] for i in range(len(num)): target.insert(index[i], num[i]) print('The Target array is :', target)
def func(param1=True, param2="default val"): """Description of func with docstring groups style (Googledoc). Parameters ---------- param1 : descr of param1 that has True for default value param2 : descr of param2 (Default value = 'default val') Returns ------- type some value Raises ------ keyError raises key exception TypeError raises type exception """ pass class A: """ """ def method(self, param1, param2=None): """ Parameters ---------- param1 : param param2: (Default value = None) param2 : (Default value = None) Returns ------- """ pass
def func(param1=True, param2='default val'): """Description of func with docstring groups style (Googledoc). Parameters ---------- param1 : descr of param1 that has True for default value param2 : descr of param2 (Default value = 'default val') Returns ------- type some value Raises ------ keyError raises key exception TypeError raises type exception """ pass class A: """ """ def method(self, param1, param2=None): """ Parameters ---------- param1 : param param2: (Default value = None) param2 : (Default value = None) Returns ------- """ pass
# Python Program to find Power of a Number number = int(input(" Please Enter any Positive Integer : ")) exponent = int(input(" Please Enter Exponent Value : ")) power = 1 for i in range(1, exponent + 1): power = power * number print("The Result of {0} Power {1} = {2}".format(number, exponent, power)) # by aditya
number = int(input(' Please Enter any Positive Integer : ')) exponent = int(input(' Please Enter Exponent Value : ')) power = 1 for i in range(1, exponent + 1): power = power * number print('The Result of {0} Power {1} = {2}'.format(number, exponent, power))
# anything above 0xa0 is printed as Unicode by CPython # the abobe is CPython implementation detail, stick to ASCII for c in range(0x80): print("0x%02x: %s" % (c, repr(chr(c)))) print("PASS")
for c in range(128): print('0x%02x: %s' % (c, repr(chr(c)))) print('PASS')
# Title : Linked list :- delete element at front and back of a list # Author : Kiran raj R. # Date : 30:10:2020 class Node: """Create a node with value provided, the pointer to next is set to None""" def __init__(self, value): self.value = value self.next = None class Simply_linked_list: """create a empty singly linked list """ def __init__(self): self.head = None def printList(self): linked_list = [] temp = self.head while(temp): linked_list.append(temp.value) temp = temp.next print(f"The elements are {linked_list}") def search_list(self, item): temp = self.head while temp.next != None: temp = temp.next if temp.value == item: print(f"Found {temp.value}") break def delete_fist_elem(self): if self.head == None: print("The linked list is empty") else: self.head = self.head.next def delete_elem_end(self): # print(elem.next, elem.value) if self.head == None: print("The linked list is empty") else: temp = self.head while temp != None: if temp.next.next == None: temp.next = None temp = temp.next sl_list = Simply_linked_list() sl_list.head = Node(1) node2 = Node(2) node3 = Node(3) node4 = Node(4) node5 = Node(5) sl_list.head.next = node2 node2.next = node3 node3.next = node4 node4.next = node5 sl_list.printList() sl_list.search_list(20) sl_list.search_list(2) sl_list.search_list(3) print("List before deletion at start: ", end="") sl_list.printList() sl_list.delete_fist_elem() print(f"List after deletion at start: ", end="") sl_list.printList() print("List before deletion at end: ", end="") sl_list.printList() sl_list.delete_elem_end() print(f"List after deletion at end: ", end="") sl_list.printList()
class Node: """Create a node with value provided, the pointer to next is set to None""" def __init__(self, value): self.value = value self.next = None class Simply_Linked_List: """create a empty singly linked list """ def __init__(self): self.head = None def print_list(self): linked_list = [] temp = self.head while temp: linked_list.append(temp.value) temp = temp.next print(f'The elements are {linked_list}') def search_list(self, item): temp = self.head while temp.next != None: temp = temp.next if temp.value == item: print(f'Found {temp.value}') break def delete_fist_elem(self): if self.head == None: print('The linked list is empty') else: self.head = self.head.next def delete_elem_end(self): if self.head == None: print('The linked list is empty') else: temp = self.head while temp != None: if temp.next.next == None: temp.next = None temp = temp.next sl_list = simply_linked_list() sl_list.head = node(1) node2 = node(2) node3 = node(3) node4 = node(4) node5 = node(5) sl_list.head.next = node2 node2.next = node3 node3.next = node4 node4.next = node5 sl_list.printList() sl_list.search_list(20) sl_list.search_list(2) sl_list.search_list(3) print('List before deletion at start: ', end='') sl_list.printList() sl_list.delete_fist_elem() print(f'List after deletion at start: ', end='') sl_list.printList() print('List before deletion at end: ', end='') sl_list.printList() sl_list.delete_elem_end() print(f'List after deletion at end: ', end='') sl_list.printList()
TEMPLATE = """ # Related Pages Here is a list of all related documentation pages: {% for page in nodes -%} * [*{{page.title}}*]({{page.url}}) {{page.brief}} {% endfor -%} """
template = '\n# Related Pages\n\nHere is a list of all related documentation pages:\n\n{% for page in nodes -%}\n* [*{{page.title}}*]({{page.url}}) {{page.brief}}\n{% endfor -%}\n'
''' URL: https://leetcode.com/problems/reverse-words-in-a-string-iii/ Difficulty: Easy Description: Reverse Words in a String III Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Note: In the string, each word is separated by single space and there will not be any extra space in the string. ''' class Solution: def reverseWords(self, s): output = "" for word in s.split(" "): output += word[::-1] + " " return output[:-1]
""" URL: https://leetcode.com/problems/reverse-words-in-a-string-iii/ Difficulty: Easy Description: Reverse Words in a String III Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Note: In the string, each word is separated by single space and there will not be any extra space in the string. """ class Solution: def reverse_words(self, s): output = '' for word in s.split(' '): output += word[::-1] + ' ' return output[:-1]
"""Top-level package for Copernicus Marine ToolBox.""" __author__ = """E.U. Copernicus Marine Service Information""" __email__ = '[email protected]' __version__ = '0.1.17'
"""Top-level package for Copernicus Marine ToolBox.""" __author__ = 'E.U. Copernicus Marine Service Information' __email__ = '[email protected]' __version__ = '0.1.17'
# PROCURANDO UMA STRING DENTRO DA OUTRA nome = str(input('Digite seu nome: ').strip().lower()) print("silva" in nome.split()) # DESSA MANEIRA EVITA-SE QUE SILVA SEJA CONFUNDIDO DENTRO DE OUTRA STRING.
nome = str(input('Digite seu nome: ').strip().lower()) print('silva' in nome.split())
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.''' # Bitcoin Cash (BCH) qpz32c4lg7x7lnk9jg6qg7s4uavdce89myax5v5nuk # Ether (ETH) - 0x843d3DEC2A4705BD4f45F674F641cE2D0022c9FB # Litecoin (LTC) - Lfk5y4F7KZa9oRxpazETwjQnHszEPvqPvu # Bitcoin (BTC) - 34L8qWiQyKr8k4TnHDacfjbaSqQASbBtTd # contact :- [email protected] """ The nested brackets problem is a problem that determines if a sequence of brackets are properly nested. A sequence of brackets s is considered properly nested if any of the following conditions are true: - s is empty - s has the form (U) or [U] or {U} where U is a properly nested string - s has the form VW where V and W are properly nested strings For example, the string "()()[()]" is properly nested but "[(()]" is not. The function called is_balanced takes as input a string S which is a sequence of brackets and returns true if S is nested and false otherwise. """ def is_balanced(S): stack = [] open_brackets = set({"(", "[", "{"}) closed_brackets = set({")", "]", "}"}) open_to_closed = dict({"{": "}", "[": "]", "(": ")"}) for i in range(len(S)): if S[i] in open_brackets: stack.append(S[i]) elif S[i] in closed_brackets: if len(stack) == 0 or ( len(stack) > 0 and open_to_closed[stack.pop()] != S[i] ): return False return len(stack) == 0 def main(): S = input("Enter sequence of brackets: ") if is_balanced(S): print((S, "is balanced")) else: print((S, "is not balanced")) if __name__ == "__main__": main()
"""THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.""" '\nThe nested brackets problem is a problem that determines if a sequence of\nbrackets are properly nested. A sequence of brackets s is considered properly nested\nif any of the following conditions are true:\n\n\t- s is empty\n\t- s has the form (U) or [U] or {U} where U is a properly nested string\n\t- s has the form VW where V and W are properly nested strings\n\nFor example, the string "()()[()]" is properly nested but "[(()]" is not.\n\nThe function called is_balanced takes as input a string S which is a sequence of brackets and\nreturns true if S is nested and false otherwise.\n\n' def is_balanced(S): stack = [] open_brackets = set({'(', '[', '{'}) closed_brackets = set({')', ']', '}'}) open_to_closed = dict({'{': '}', '[': ']', '(': ')'}) for i in range(len(S)): if S[i] in open_brackets: stack.append(S[i]) elif S[i] in closed_brackets: if len(stack) == 0 or (len(stack) > 0 and open_to_closed[stack.pop()] != S[i]): return False return len(stack) == 0 def main(): s = input('Enter sequence of brackets: ') if is_balanced(S): print((S, 'is balanced')) else: print((S, 'is not balanced')) if __name__ == '__main__': main()
class Node: def __init__(self, ch): self.ch = ch self.children = {} self.isWordTerminal = False class Trie: def __init__(self): """ Initialize your data structure here. """ self.root = Node('\0') def insert(self, word: str) -> None: """ Inserts a word into the trie. """ current = self.root for ch in word: if ch not in current.children: current.children[ch] = Node(ch) current = current.children[ch] current.isWordTerminal = True def get_node(self, word: str): current = self.root for ch in word: if ch in current.children: current = current.children[ch] else: return None return current def search(self, word: str) -> bool: """ Returns if the word is in the trie. """ node = self.get_node(word) if node is not None: if node.isWordTerminal: return True return False def startsWith(self, prefix: str) -> bool: """ Returns if there is any word in the trie that starts with the given prefix. """ return self.get_node(prefix) is not None # Your Trie object will be instantiated and called as such: # obj = Trie() # obj.insert(word) # param_2 = obj.search(word) # param_3 = obj.startsWith(prefix)
class Node: def __init__(self, ch): self.ch = ch self.children = {} self.isWordTerminal = False class Trie: def __init__(self): """ Initialize your data structure here. """ self.root = node('\x00') def insert(self, word: str) -> None: """ Inserts a word into the trie. """ current = self.root for ch in word: if ch not in current.children: current.children[ch] = node(ch) current = current.children[ch] current.isWordTerminal = True def get_node(self, word: str): current = self.root for ch in word: if ch in current.children: current = current.children[ch] else: return None return current def search(self, word: str) -> bool: """ Returns if the word is in the trie. """ node = self.get_node(word) if node is not None: if node.isWordTerminal: return True return False def starts_with(self, prefix: str) -> bool: """ Returns if there is any word in the trie that starts with the given prefix. """ return self.get_node(prefix) is not None
# # PySNMP MIB module HP-ICF-CONNECTION-RATE-FILTER (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-CONNECTION-RATE-FILTER # Produced by pysmi-0.3.4 at Wed May 1 13:33:37 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint") hpSwitch, = mibBuilder.importSymbols("HP-ICF-OID", "hpSwitch") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, MibIdentifier, Gauge32, NotificationType, IpAddress, Counter32, Integer32, Counter64, Bits, ObjectIdentity, Unsigned32, iso, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "MibIdentifier", "Gauge32", "NotificationType", "IpAddress", "Counter32", "Integer32", "Counter64", "Bits", "ObjectIdentity", "Unsigned32", "iso", "ModuleIdentity") TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "DisplayString") hpicfConnectionRateFilter = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24)) hpicfConnectionRateFilter.setRevisions(('2009-05-12 01:08', '2004-09-07 01:08',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpicfConnectionRateFilter.setRevisionsDescriptions(("Added 'hpicfConnectionRateFilterSensitivity', 'hpicfConnectionRateFilterIfModeValue'.", 'Added Connection Rate Filter MIBs.',)) if mibBuilder.loadTexts: hpicfConnectionRateFilter.setLastUpdated('200905120108Z') if mibBuilder.loadTexts: hpicfConnectionRateFilter.setOrganization('HP Networking') if mibBuilder.loadTexts: hpicfConnectionRateFilter.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpicfConnectionRateFilter.setDescription('This MIB module describes objects for management of the Connection Rate Filter feature in the HP Switch product line.') hpicfConnectionRateFilterNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 0)) hpicfConnectionRateFilterNotificationControl = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 1)) hpicfConnectionRateFilterObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2)) hpicfConnectionRateFilterConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3)) hpicfConnectionRateFilterIfModeConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 4)) hpicfConnectionRateFilterNotification = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 0, 1)).setObjects(("HP-ICF-CONNECTION-RATE-FILTER", "hpicifConnectionRateFilterVlanId"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicifConnectionRateFilterInetAddress"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicifConnectionRateFilterInetAddressType"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicifConnectionRateFilterMode")) if mibBuilder.loadTexts: hpicfConnectionRateFilterNotification.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterNotification.setDescription('This Notification indicates that the host associated with the specified IP Address has been flagged by the connection rate filter and may have been throttled or blocked.') hpicifConnectionRateFilterVlanId = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpicifConnectionRateFilterVlanId.setStatus('current') if mibBuilder.loadTexts: hpicifConnectionRateFilterVlanId.setDescription('This variable uniquely identifies the vlan on which the host was flagged by the connection rate filter.') hpicifConnectionRateFilterInetAddress = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2, 2), InetAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpicifConnectionRateFilterInetAddress.setStatus('current') if mibBuilder.loadTexts: hpicifConnectionRateFilterInetAddress.setDescription('This variable uniquely identifies the IP address of the host flagged by the connection rate filter.') hpicifConnectionRateFilterInetAddressType = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2, 3), InetAddressType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpicifConnectionRateFilterInetAddressType.setStatus('current') if mibBuilder.loadTexts: hpicifConnectionRateFilterInetAddressType.setDescription('This variable uniquely identifies the type of IP address of the host flagged by the connection rate filter.') hpicifConnectionRateFilterMode = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("inform", 0), ("throttle", 1), ("block", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpicifConnectionRateFilterMode.setStatus('current') if mibBuilder.loadTexts: hpicifConnectionRateFilterMode.setDescription('This variable identifies the mode applied to the host flagged by the connection rate filter.') hpicfConnectionRateFilterIfModeConfigTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 4, 1), ) if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeConfigTable.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeConfigTable.setDescription('This table contains objects for configuring mode of the host flagged by the connection rate filter.') hpicfConnectionRateFilterIfModeConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 4, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeConfigEntry.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeConfigEntry.setDescription('An entry in the hpicfConnectionRateFilterIfModeConfigEntry contains objects for configuring mode of the host flagged by the connection rate filter.') hpicfConnectionRateFilterIfModeValue = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("none", 0), ("inform", 1), ("throttle", 2), ("block", 3))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeValue.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeValue.setDescription('This variable identifies the mode applied to the host flagged by the connection rate filter.') hpicfConnectionRateFilterNotificationControlEnable = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpicfConnectionRateFilterNotificationControlEnable.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterNotificationControlEnable.setDescription('This object controls, whether or not notifications from the agent are enabled. The value true(1) means that notifications are enabled; the value false(2) means that they are not. The default value is enabled.') hpicfConnectionRateFilterSensitivity = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 0), ("low", 1), ("medium", 2), ("high", 3), ("aggressive", 4))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpicfConnectionRateFilterSensitivity.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterSensitivity.setDescription('This variable is for setting the level of filtering required for connection-rate-filter.') hpicfConnectionRateFilterCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 1)) hpicfConnectionRateFilterGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 2)) hpicfConnectionRateFilterCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 1, 1)).setObjects(("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterNotifyGroup"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterObjectGroup"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterNotifyGroup"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterObjectGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfConnectionRateFilterCompliance = hpicfConnectionRateFilterCompliance.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterCompliance.setDescription('A compliance statement for HP Routing switches with Connection Rate Filtering capability') hpicfConnectionRateFilterCompliance1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 1, 2)).setObjects(("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterObjectGroup1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfConnectionRateFilterCompliance1 = hpicfConnectionRateFilterCompliance1.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterCompliance1.setDescription('A compliance statement for HP Routing switches with Connection Rate Filtering capability') hpicfConnectionRateFilterNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 2, 1)).setObjects(("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfConnectionRateFilterNotifyGroup = hpicfConnectionRateFilterNotifyGroup.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterNotifyGroup.setDescription('A collection of notifications used to indicate changes in Connection Rate Filter status') hpicfConnectionRateFilterObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 2, 2)).setObjects(("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterNotificationControlEnable"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterIfModeValue"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicfConnectionRateFilterSensitivity")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfConnectionRateFilterObjectGroup = hpicfConnectionRateFilterObjectGroup.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterObjectGroup.setDescription('A collection of objects for configuring the Connection Rate Filter.') hpicfConnectionRateFilterObjectGroup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 2, 3)).setObjects(("HP-ICF-CONNECTION-RATE-FILTER", "hpicifConnectionRateFilterVlanId"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicifConnectionRateFilterInetAddress"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicifConnectionRateFilterInetAddressType"), ("HP-ICF-CONNECTION-RATE-FILTER", "hpicifConnectionRateFilterMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfConnectionRateFilterObjectGroup1 = hpicfConnectionRateFilterObjectGroup1.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterObjectGroup1.setDescription('A collection of objects for configuring the Connection Rate Filter.') mibBuilder.exportSymbols("HP-ICF-CONNECTION-RATE-FILTER", hpicfConnectionRateFilterNotificationControl=hpicfConnectionRateFilterNotificationControl, hpicfConnectionRateFilterNotification=hpicfConnectionRateFilterNotification, hpicfConnectionRateFilterIfModeConfigEntry=hpicfConnectionRateFilterIfModeConfigEntry, hpicfConnectionRateFilter=hpicfConnectionRateFilter, hpicfConnectionRateFilterObjects=hpicfConnectionRateFilterObjects, PYSNMP_MODULE_ID=hpicfConnectionRateFilter, hpicfConnectionRateFilterIfModeConfig=hpicfConnectionRateFilterIfModeConfig, hpicfConnectionRateFilterNotifyGroup=hpicfConnectionRateFilterNotifyGroup, hpicifConnectionRateFilterInetAddress=hpicifConnectionRateFilterInetAddress, hpicfConnectionRateFilterObjectGroup1=hpicfConnectionRateFilterObjectGroup1, hpicfConnectionRateFilterObjectGroup=hpicfConnectionRateFilterObjectGroup, hpicfConnectionRateFilterNotificationControlEnable=hpicfConnectionRateFilterNotificationControlEnable, hpicifConnectionRateFilterMode=hpicifConnectionRateFilterMode, hpicfConnectionRateFilterCompliance1=hpicfConnectionRateFilterCompliance1, hpicfConnectionRateFilterGroups=hpicfConnectionRateFilterGroups, hpicfConnectionRateFilterConformance=hpicfConnectionRateFilterConformance, hpicfConnectionRateFilterSensitivity=hpicfConnectionRateFilterSensitivity, hpicfConnectionRateFilterCompliance=hpicfConnectionRateFilterCompliance, hpicfConnectionRateFilterIfModeValue=hpicfConnectionRateFilterIfModeValue, hpicifConnectionRateFilterInetAddressType=hpicifConnectionRateFilterInetAddressType, hpicfConnectionRateFilterCompliances=hpicfConnectionRateFilterCompliances, hpicifConnectionRateFilterVlanId=hpicifConnectionRateFilterVlanId, hpicfConnectionRateFilterIfModeConfigTable=hpicfConnectionRateFilterIfModeConfigTable, hpicfConnectionRateFilterNotifications=hpicfConnectionRateFilterNotifications)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_union, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint') (hp_switch,) = mibBuilder.importSymbols('HP-ICF-OID', 'hpSwitch') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetAddressType') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, mib_identifier, gauge32, notification_type, ip_address, counter32, integer32, counter64, bits, object_identity, unsigned32, iso, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'MibIdentifier', 'Gauge32', 'NotificationType', 'IpAddress', 'Counter32', 'Integer32', 'Counter64', 'Bits', 'ObjectIdentity', 'Unsigned32', 'iso', 'ModuleIdentity') (textual_convention, truth_value, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TruthValue', 'DisplayString') hpicf_connection_rate_filter = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24)) hpicfConnectionRateFilter.setRevisions(('2009-05-12 01:08', '2004-09-07 01:08')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpicfConnectionRateFilter.setRevisionsDescriptions(("Added 'hpicfConnectionRateFilterSensitivity', 'hpicfConnectionRateFilterIfModeValue'.", 'Added Connection Rate Filter MIBs.')) if mibBuilder.loadTexts: hpicfConnectionRateFilter.setLastUpdated('200905120108Z') if mibBuilder.loadTexts: hpicfConnectionRateFilter.setOrganization('HP Networking') if mibBuilder.loadTexts: hpicfConnectionRateFilter.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpicfConnectionRateFilter.setDescription('This MIB module describes objects for management of the Connection Rate Filter feature in the HP Switch product line.') hpicf_connection_rate_filter_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 0)) hpicf_connection_rate_filter_notification_control = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 1)) hpicf_connection_rate_filter_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2)) hpicf_connection_rate_filter_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3)) hpicf_connection_rate_filter_if_mode_config = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 4)) hpicf_connection_rate_filter_notification = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 0, 1)).setObjects(('HP-ICF-CONNECTION-RATE-FILTER', 'hpicifConnectionRateFilterVlanId'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicifConnectionRateFilterInetAddress'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicifConnectionRateFilterInetAddressType'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicifConnectionRateFilterMode')) if mibBuilder.loadTexts: hpicfConnectionRateFilterNotification.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterNotification.setDescription('This Notification indicates that the host associated with the specified IP Address has been flagged by the connection rate filter and may have been throttled or blocked.') hpicif_connection_rate_filter_vlan_id = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpicifConnectionRateFilterVlanId.setStatus('current') if mibBuilder.loadTexts: hpicifConnectionRateFilterVlanId.setDescription('This variable uniquely identifies the vlan on which the host was flagged by the connection rate filter.') hpicif_connection_rate_filter_inet_address = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2, 2), inet_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpicifConnectionRateFilterInetAddress.setStatus('current') if mibBuilder.loadTexts: hpicifConnectionRateFilterInetAddress.setDescription('This variable uniquely identifies the IP address of the host flagged by the connection rate filter.') hpicif_connection_rate_filter_inet_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2, 3), inet_address_type()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpicifConnectionRateFilterInetAddressType.setStatus('current') if mibBuilder.loadTexts: hpicifConnectionRateFilterInetAddressType.setDescription('This variable uniquely identifies the type of IP address of the host flagged by the connection rate filter.') hpicif_connection_rate_filter_mode = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('inform', 0), ('throttle', 1), ('block', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpicifConnectionRateFilterMode.setStatus('current') if mibBuilder.loadTexts: hpicifConnectionRateFilterMode.setDescription('This variable identifies the mode applied to the host flagged by the connection rate filter.') hpicf_connection_rate_filter_if_mode_config_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 4, 1)) if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeConfigTable.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeConfigTable.setDescription('This table contains objects for configuring mode of the host flagged by the connection rate filter.') hpicf_connection_rate_filter_if_mode_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 4, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeConfigEntry.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeConfigEntry.setDescription('An entry in the hpicfConnectionRateFilterIfModeConfigEntry contains objects for configuring mode of the host flagged by the connection rate filter.') hpicf_connection_rate_filter_if_mode_value = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 4, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('none', 0), ('inform', 1), ('throttle', 2), ('block', 3))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeValue.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterIfModeValue.setDescription('This variable identifies the mode applied to the host flagged by the connection rate filter.') hpicf_connection_rate_filter_notification_control_enable = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpicfConnectionRateFilterNotificationControlEnable.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterNotificationControlEnable.setDescription('This object controls, whether or not notifications from the agent are enabled. The value true(1) means that notifications are enabled; the value false(2) means that they are not. The default value is enabled.') hpicf_connection_rate_filter_sensitivity = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('none', 0), ('low', 1), ('medium', 2), ('high', 3), ('aggressive', 4))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpicfConnectionRateFilterSensitivity.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterSensitivity.setDescription('This variable is for setting the level of filtering required for connection-rate-filter.') hpicf_connection_rate_filter_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 1)) hpicf_connection_rate_filter_groups = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 2)) hpicf_connection_rate_filter_compliance = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 1, 1)).setObjects(('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterNotifyGroup'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterObjectGroup'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterNotifyGroup'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterObjectGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_connection_rate_filter_compliance = hpicfConnectionRateFilterCompliance.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterCompliance.setDescription('A compliance statement for HP Routing switches with Connection Rate Filtering capability') hpicf_connection_rate_filter_compliance1 = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 1, 2)).setObjects(('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterObjectGroup1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_connection_rate_filter_compliance1 = hpicfConnectionRateFilterCompliance1.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterCompliance1.setDescription('A compliance statement for HP Routing switches with Connection Rate Filtering capability') hpicf_connection_rate_filter_notify_group = notification_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 2, 1)).setObjects(('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterNotification')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_connection_rate_filter_notify_group = hpicfConnectionRateFilterNotifyGroup.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterNotifyGroup.setDescription('A collection of notifications used to indicate changes in Connection Rate Filter status') hpicf_connection_rate_filter_object_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 2, 2)).setObjects(('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterNotificationControlEnable'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterIfModeValue'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicfConnectionRateFilterSensitivity')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_connection_rate_filter_object_group = hpicfConnectionRateFilterObjectGroup.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterObjectGroup.setDescription('A collection of objects for configuring the Connection Rate Filter.') hpicf_connection_rate_filter_object_group1 = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 24, 3, 2, 3)).setObjects(('HP-ICF-CONNECTION-RATE-FILTER', 'hpicifConnectionRateFilterVlanId'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicifConnectionRateFilterInetAddress'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicifConnectionRateFilterInetAddressType'), ('HP-ICF-CONNECTION-RATE-FILTER', 'hpicifConnectionRateFilterMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_connection_rate_filter_object_group1 = hpicfConnectionRateFilterObjectGroup1.setStatus('current') if mibBuilder.loadTexts: hpicfConnectionRateFilterObjectGroup1.setDescription('A collection of objects for configuring the Connection Rate Filter.') mibBuilder.exportSymbols('HP-ICF-CONNECTION-RATE-FILTER', hpicfConnectionRateFilterNotificationControl=hpicfConnectionRateFilterNotificationControl, hpicfConnectionRateFilterNotification=hpicfConnectionRateFilterNotification, hpicfConnectionRateFilterIfModeConfigEntry=hpicfConnectionRateFilterIfModeConfigEntry, hpicfConnectionRateFilter=hpicfConnectionRateFilter, hpicfConnectionRateFilterObjects=hpicfConnectionRateFilterObjects, PYSNMP_MODULE_ID=hpicfConnectionRateFilter, hpicfConnectionRateFilterIfModeConfig=hpicfConnectionRateFilterIfModeConfig, hpicfConnectionRateFilterNotifyGroup=hpicfConnectionRateFilterNotifyGroup, hpicifConnectionRateFilterInetAddress=hpicifConnectionRateFilterInetAddress, hpicfConnectionRateFilterObjectGroup1=hpicfConnectionRateFilterObjectGroup1, hpicfConnectionRateFilterObjectGroup=hpicfConnectionRateFilterObjectGroup, hpicfConnectionRateFilterNotificationControlEnable=hpicfConnectionRateFilterNotificationControlEnable, hpicifConnectionRateFilterMode=hpicifConnectionRateFilterMode, hpicfConnectionRateFilterCompliance1=hpicfConnectionRateFilterCompliance1, hpicfConnectionRateFilterGroups=hpicfConnectionRateFilterGroups, hpicfConnectionRateFilterConformance=hpicfConnectionRateFilterConformance, hpicfConnectionRateFilterSensitivity=hpicfConnectionRateFilterSensitivity, hpicfConnectionRateFilterCompliance=hpicfConnectionRateFilterCompliance, hpicfConnectionRateFilterIfModeValue=hpicfConnectionRateFilterIfModeValue, hpicifConnectionRateFilterInetAddressType=hpicifConnectionRateFilterInetAddressType, hpicfConnectionRateFilterCompliances=hpicfConnectionRateFilterCompliances, hpicifConnectionRateFilterVlanId=hpicifConnectionRateFilterVlanId, hpicfConnectionRateFilterIfModeConfigTable=hpicfConnectionRateFilterIfModeConfigTable, hpicfConnectionRateFilterNotifications=hpicfConnectionRateFilterNotifications)
_base_ = [ '../_base_/datasets/togal.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py' ] # model settings norm_cfg = dict(type='BN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained=None, backbone=dict( type='Unet', encoder_name="tu-tf_efficientnetv2_b3", encoder_depth=5 ), decode_head=dict( type='FCNHead', in_channels=16, in_index=-1, channels=16, num_convs=1, concat_input=False, dropout_ratio=0.1, num_classes=2, norm_cfg=norm_cfg, align_corners=False, loss_decode=dict( type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)), # model training and testing settings train_cfg=dict(), test_cfg=dict(mode='slide', crop_size=(256, 256), stride=(170, 170)))
_base_ = ['../_base_/datasets/togal.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py'] norm_cfg = dict(type='BN', requires_grad=True) model = dict(type='EncoderDecoder', pretrained=None, backbone=dict(type='Unet', encoder_name='tu-tf_efficientnetv2_b3', encoder_depth=5), decode_head=dict(type='FCNHead', in_channels=16, in_index=-1, channels=16, num_convs=1, concat_input=False, dropout_ratio=0.1, num_classes=2, norm_cfg=norm_cfg, align_corners=False, loss_decode=dict(type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)), train_cfg=dict(), test_cfg=dict(mode='slide', crop_size=(256, 256), stride=(170, 170)))
class DimFieldModel: def __init__( self, *kwargs, field_key: str, project_id: str, name: str, control_type: str, default_value: str = None, counted_character: bool, counted_character_date_from_key: int, counted_character_time_from_key: int, counted_character_date_to_key: int, counted_character_time_to_key: int, counted_character_from_timestamp: str, counted_character_to_timestamp: str, is_sub_field: bool = False, ): self.field_key = field_key self.project_id = project_id self.name = name self.control_type = control_type self.default_value = default_value self.counted_character = counted_character self.counted_character_date_from_key = counted_character_date_from_key self.counted_character_time_from_key = counted_character_time_from_key self.counted_character_date_to_key = counted_character_date_to_key self.counted_character_time_to_key = counted_character_time_to_key self.counted_character_from_timestamp = counted_character_from_timestamp self.counted_character_to_timestamp = counted_character_to_timestamp self.is_sub_field = is_sub_field
class Dimfieldmodel: def __init__(self, *kwargs, field_key: str, project_id: str, name: str, control_type: str, default_value: str=None, counted_character: bool, counted_character_date_from_key: int, counted_character_time_from_key: int, counted_character_date_to_key: int, counted_character_time_to_key: int, counted_character_from_timestamp: str, counted_character_to_timestamp: str, is_sub_field: bool=False): self.field_key = field_key self.project_id = project_id self.name = name self.control_type = control_type self.default_value = default_value self.counted_character = counted_character self.counted_character_date_from_key = counted_character_date_from_key self.counted_character_time_from_key = counted_character_time_from_key self.counted_character_date_to_key = counted_character_date_to_key self.counted_character_time_to_key = counted_character_time_to_key self.counted_character_from_timestamp = counted_character_from_timestamp self.counted_character_to_timestamp = counted_character_to_timestamp self.is_sub_field = is_sub_field
nome = input('what is your name? ') idade = input('how old are you ' + nome + '?') peso = input('what is your weight {}?'.format(nome) + '?') print('dados: {}'.format(nome) + ' Weight:' + peso + 'Idade:' + idade)
nome = input('what is your name? ') idade = input('how old are you ' + nome + '?') peso = input('what is your weight {}?'.format(nome) + '?') print('dados: {}'.format(nome) + ' Weight:' + peso + 'Idade:' + idade)
""" All the custom exceptions types """ class PylasError(Exception): pass class UnknownExtraType(PylasError): pass class PointFormatNotSupported(PylasError): pass class FileVersionNotSupported(PylasError): pass class LazPerfNotFound(PylasError): pass class IncompatibleDataFormat(PylasError): pass
""" All the custom exceptions types """ class Pylaserror(Exception): pass class Unknownextratype(PylasError): pass class Pointformatnotsupported(PylasError): pass class Fileversionnotsupported(PylasError): pass class Lazperfnotfound(PylasError): pass class Incompatibledataformat(PylasError): pass
# common classes_file = './data/classes/voc.names' num_classes = 1 input_image_h = 448 input_image_w = 448 down_ratio = 4 max_objs = 150 ot_nodes = ['detector/hm/Sigmoid', "detector/wh/Relu", "detector/reg/Relu"] moving_ave_decay = 0.9995 # train train_data_file = './data/dataset/voc_train.txt' batch_size = 4 epochs = 80 # learning rate lr_type="exponential"# "exponential","piecewise","CosineAnnealing" lr = 1e-3 # exponential lr_decay_steps = 5000 # exponential lr_decay_rate = 0.95 # exponential lr_boundaries = [40000,60000] # piecewise lr_piecewise = [0.0001, 0.00001, 0.000001] # piecewise warm_up_epochs = 2 # CosineAnnealing init_lr= 1e-4 # CosineAnnealing end_lr = 1e-6 # CosineAnnealing pre_train = True depth = 1 # test test_data_file = './data/dataset/voc_test.txt' score_threshold = 0.3 use_nms = True nms_thresh = 0.4 weight_file = './checkpoint' write_image = True write_image_path = './eval/JPEGImages/' show_label = True
classes_file = './data/classes/voc.names' num_classes = 1 input_image_h = 448 input_image_w = 448 down_ratio = 4 max_objs = 150 ot_nodes = ['detector/hm/Sigmoid', 'detector/wh/Relu', 'detector/reg/Relu'] moving_ave_decay = 0.9995 train_data_file = './data/dataset/voc_train.txt' batch_size = 4 epochs = 80 lr_type = 'exponential' lr = 0.001 lr_decay_steps = 5000 lr_decay_rate = 0.95 lr_boundaries = [40000, 60000] lr_piecewise = [0.0001, 1e-05, 1e-06] warm_up_epochs = 2 init_lr = 0.0001 end_lr = 1e-06 pre_train = True depth = 1 test_data_file = './data/dataset/voc_test.txt' score_threshold = 0.3 use_nms = True nms_thresh = 0.4 weight_file = './checkpoint' write_image = True write_image_path = './eval/JPEGImages/' show_label = True
# _*_ coding=utf-8 _*_ class Config(): def __init__(self): self.device = '1' self.data_dir = '../data' self.logging_dir = 'log' self.samples_dir = 'samples' self.testing_dir = 'test_samples' self.checkpt_dir = 'checkpoints' self.max_srclen = 25 self.max_tgtlen = 25 self.vocab_path = '../data/vocab' #self.embed_path = '../data/vocab_embeddings' self.embed_path = None self.vocab_size = 20000 self.emb_dim = 512 self.graph_seed = 123456 self.enc_num_block = 6 self.enc_head = 8 self.dec_num_block = 6 self.dec_head = 8 self.d_model = 512 self.d_k = 64 self.d_q = 64 self.d_v = 64 self.d_ff = 2048 self.dropout = 0.1 self.lr = 1e-3 self.warmming_up = 2000 self.StepLR_size = 5 self.StepLR_gamma = 0.95 self.batch_size = 512 self.total_epoch_num = 100 self.eval_per_batch = None # set 'number' of 'None'
class Config: def __init__(self): self.device = '1' self.data_dir = '../data' self.logging_dir = 'log' self.samples_dir = 'samples' self.testing_dir = 'test_samples' self.checkpt_dir = 'checkpoints' self.max_srclen = 25 self.max_tgtlen = 25 self.vocab_path = '../data/vocab' self.embed_path = None self.vocab_size = 20000 self.emb_dim = 512 self.graph_seed = 123456 self.enc_num_block = 6 self.enc_head = 8 self.dec_num_block = 6 self.dec_head = 8 self.d_model = 512 self.d_k = 64 self.d_q = 64 self.d_v = 64 self.d_ff = 2048 self.dropout = 0.1 self.lr = 0.001 self.warmming_up = 2000 self.StepLR_size = 5 self.StepLR_gamma = 0.95 self.batch_size = 512 self.total_epoch_num = 100 self.eval_per_batch = None
t1 = ('OI', 2.0, [40, 50]) print(t1[2:]) t = 1, 4, "THiago" tupla1 = 1, 2, 3, 4, 5 tulpla2 = 6, 7, 8, 9, 10 print(tupla1 + tulpla2) # concatena
t1 = ('OI', 2.0, [40, 50]) print(t1[2:]) t = (1, 4, 'THiago') tupla1 = (1, 2, 3, 4, 5) tulpla2 = (6, 7, 8, 9, 10) print(tupla1 + tulpla2)
yformat = u"%(d1)i\xB0%(d2)02i'%(d3)02.2f''" xformat = u"%(hour)ih%(minute)02im%(second)02.2fs" def getFormatDict(tick): degree1 = int(tick) degree2 = int((tick * 100 - degree1 * 100)) degree3 = ((tick * 10000 - degree1 * 10000 - degree2 * 100)) tick = (tick + 360) % 360 totalhours = float(tick * 24.0 / 360) hours = int(totalhours) minutes = int((totalhours*60 - hours*60)) seconds = (totalhours * 3600 - hours * 3600 - minutes * 60) values = {"d1":degree1, "d2":degree2, "d3":degree3, "hour":hours, "minute":minutes, "second":seconds} return values def formatX(tick): values = getFormatDict(tick) return xformat % values def formatY(tick): values = getFormatDict(tick) return yformat % values
yformat = u"%(d1)i°%(d2)02i'%(d3)02.2f''" xformat = u'%(hour)ih%(minute)02im%(second)02.2fs' def get_format_dict(tick): degree1 = int(tick) degree2 = int(tick * 100 - degree1 * 100) degree3 = tick * 10000 - degree1 * 10000 - degree2 * 100 tick = (tick + 360) % 360 totalhours = float(tick * 24.0 / 360) hours = int(totalhours) minutes = int(totalhours * 60 - hours * 60) seconds = totalhours * 3600 - hours * 3600 - minutes * 60 values = {'d1': degree1, 'd2': degree2, 'd3': degree3, 'hour': hours, 'minute': minutes, 'second': seconds} return values def format_x(tick): values = get_format_dict(tick) return xformat % values def format_y(tick): values = get_format_dict(tick) return yformat % values
print('MyMy',end=' ') print('Popsicle') print('Balloon','Helium','Blimp',sep=' and ')
print('MyMy', end=' ') print('Popsicle') print('Balloon', 'Helium', 'Blimp', sep=' and ')
N,M=map(int,input().split()) A=[int(input()) for i in range(M)][::-1] ans=[] s=set() for a in A: if a not in s:ans.append(a) s.add(a) for i in range(1,N+1): if i not in s:ans.append(i) print(*ans,sep="\n")
(n, m) = map(int, input().split()) a = [int(input()) for i in range(M)][::-1] ans = [] s = set() for a in A: if a not in s: ans.append(a) s.add(a) for i in range(1, N + 1): if i not in s: ans.append(i) print(*ans, sep='\n')
#fix me.. but for now lets just pass the data back.. def compress(data): return data def decompress(data): return data
def compress(data): return data def decompress(data): return data
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 1 09:26:03 2022 @author: thejorabek """ '''son=10 print(son,type(son)) son=3.14 print(son,type(son)) son='Salom Foundationchilar' print(son,type(son)) son=True print(son,type(son)) son=int() print(son,type(son)) print("Assalom",123,3.14,True,sep='salom') print(1,2,3,4,5,6,7,8,9,10,sep='+',end='') print(' =',1+2+3+4+5+6+7+8+9+10) print(float(son)) print(str(son)) print(bool(son)) son=1 print(bool(son))''' '''a=int(input('a=')) b=int(input('b=')) c=a a=b b=c print("a =",a) print("b =",b)''' '''a=int(input('a=')) b=int(input('b=')) c=int(input('c=')) d=b b=a a=c c=d print('a=',a) print('b=',b) print('c=',c)''' '''a=int(input('a=')) b=int(input('b=')) c=int(input('c=')) d=a a=b b=c c=d print('a=',a) print('b=',b) print('c=',c)''' '''son=int(input("Sonni kiriting: ")) son+=1 print("son=",son,type(son)) fson=float(input("Haqiqiy sonni kiriting: ")) print("fson=",fson,type(fson)) bson=bool(input()) print("bson=",bson) text=input("Textni kiriting: ") print(text,type(text)) text='Salom bolalar' print(text) text="Salom o'rdak" print(text) text="""Salom "Salom BRO" bolalar 'O'rdak' Hello Foundation Ch\tao \nBRO""" print(text)''' '''text="Salom" print(len(text)) print(text[0],text[1],text[2],text[3],text[4]) print(text[-1],text[-2],text[-3],text[-4],text[-5],sep="") print(*text) text="Salom bolalar" print(*text[0:len(text):2],sep=',') # 0-indeksdan oxirigacha 2 ta qadamda sakrash print(*text[::-1]) # stringni teskari chiqarish print(text[:5]) # boshidan 5-indeksgacha chiqarish print(text[6:]) # 6-indeksdan oxirigacha chiqarish # [start : end : step] # start - boshlanish indeksi, end - tugash indeksi, step - oshirish yoki kamayish qadami'''
""" Created on Tue Feb 1 09:26:03 2022 @author: thejorabek """ 'son=10\nprint(son,type(son))\nson=3.14\nprint(son,type(son))\nson=\'Salom Foundationchilar\'\nprint(son,type(son))\nson=True\nprint(son,type(son))\nson=int()\nprint(son,type(son))\nprint("Assalom",123,3.14,True,sep=\'salom\')\nprint(1,2,3,4,5,6,7,8,9,10,sep=\'+\',end=\'\')\nprint(\' =\',1+2+3+4+5+6+7+8+9+10)\nprint(float(son))\nprint(str(son))\nprint(bool(son))\nson=1\nprint(bool(son))' 'a=int(input(\'a=\'))\nb=int(input(\'b=\'))\nc=a\na=b\nb=c\nprint("a =",a)\nprint("b =",b)' "a=int(input('a='))\nb=int(input('b='))\nc=int(input('c='))\nd=b\nb=a\na=c\nc=d\nprint('a=',a)\nprint('b=',b)\nprint('c=',c)" "a=int(input('a='))\nb=int(input('b='))\nc=int(input('c='))\nd=a\na=b\nb=c\nc=d\nprint('a=',a)\nprint('b=',b)\nprint('c=',c)" 'son=int(input("Sonni kiriting: "))\nson+=1\nprint("son=",son,type(son))\nfson=float(input("Haqiqiy sonni kiriting: "))\nprint("fson=",fson,type(fson))\nbson=bool(input())\nprint("bson=",bson)\ntext=input("Textni kiriting: ")\nprint(text,type(text))\n\ntext=\'Salom bolalar\'\nprint(text)\n\ntext="Salom o\'rdak"\nprint(text)\n\ntext="""Salom "Salom BRO" bolalar\n \'O\'rdak\' Hello Foundation\nCh\tao \nBRO"""\nprint(text)' 'text="Salom"\nprint(len(text))\nprint(text[0],text[1],text[2],text[3],text[4])\nprint(text[-1],text[-2],text[-3],text[-4],text[-5],sep="")\nprint(*text)\n\ntext="Salom bolalar"\nprint(*text[0:len(text):2],sep=\',\') # 0-indeksdan oxirigacha 2 ta qadamda sakrash\nprint(*text[::-1]) # stringni teskari chiqarish\nprint(text[:5]) # boshidan 5-indeksgacha chiqarish\nprint(text[6:]) # 6-indeksdan oxirigacha chiqarish\n# [start : end : step]\n# start - boshlanish indeksi, end - tugash indeksi, step - oshirish yoki kamayish qadami'
print('Hello World!!!') if True: print('FROM if') num = 1 while num <= 10: print(num) num += 1 list_ = [1, 2, 3, 4, 5] for i in range(1, 7): print(i)
print('Hello World!!!') if True: print('FROM if') num = 1 while num <= 10: print(num) num += 1 list_ = [1, 2, 3, 4, 5] for i in range(1, 7): print(i)
# -*- coding: utf-8 -*- """ Created on Fri Dec 29 10:35:53 2017 @author: User """ L = [[1,2], [35,4,78], [7,8,1,10],[2,3], [9,1,45]] #def testA(L): # aFactor = 2 # for m in L: # for ind, element in enumerate(m): # newElement = element*aFactor # m.pop(ind) # this works # m.insert(ind, newElement) # this works # return L # #print(testA(L)) # and this works as well def testA(L): for m in L: for ind, element in enumerate(m): m[ind] *= 2 return L print(testA(L))
""" Created on Fri Dec 29 10:35:53 2017 @author: User """ l = [[1, 2], [35, 4, 78], [7, 8, 1, 10], [2, 3], [9, 1, 45]] def test_a(L): for m in L: for (ind, element) in enumerate(m): m[ind] *= 2 return L print(test_a(L))
# -*- coding: utf-8 -*- # Authors: Y. Jia <[email protected]> def binary_search(arr, target, begin=None, end=None): """ :param arr: :param target: :param begin: :param end: :return: """ if begin is None: begin = 0 if end is None: end = len(arr) - 1 if end < begin or end < 0: return False, None elif end == begin: if arr[end] == target: return True, end else: return False, None mid = begin + (end - begin) / 2 if arr[mid] == target: return True, mid elif arr[mid] < target: return binary_search(arr, target, mid + 1, end) else: return binary_search(arr, target, begin, mid - 1)
def binary_search(arr, target, begin=None, end=None): """ :param arr: :param target: :param begin: :param end: :return: """ if begin is None: begin = 0 if end is None: end = len(arr) - 1 if end < begin or end < 0: return (False, None) elif end == begin: if arr[end] == target: return (True, end) else: return (False, None) mid = begin + (end - begin) / 2 if arr[mid] == target: return (True, mid) elif arr[mid] < target: return binary_search(arr, target, mid + 1, end) else: return binary_search(arr, target, begin, mid - 1)
# # PySNMP MIB module LOWPAN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LOWPAN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:58:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") Integer32, IpAddress, NotificationType, ObjectIdentity, mib_2, Counter32, ModuleIdentity, iso, Gauge32, TimeTicks, Counter64, Unsigned32, Bits, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "IpAddress", "NotificationType", "ObjectIdentity", "mib-2", "Counter32", "ModuleIdentity", "iso", "Gauge32", "TimeTicks", "Counter64", "Unsigned32", "Bits", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") lowpanMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 226)) lowpanMIB.setRevisions(('2014-10-10 00:00',)) if mibBuilder.loadTexts: lowpanMIB.setLastUpdated('201410100000Z') if mibBuilder.loadTexts: lowpanMIB.setOrganization('IETF IPv6 over Networks of Resource-constrained Nodes Working Group') lowpanNotifications = MibIdentifier((1, 3, 6, 1, 2, 1, 226, 0)) lowpanObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 226, 1)) lowpanConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 226, 2)) lowpanStats = MibIdentifier((1, 3, 6, 1, 2, 1, 226, 1, 1)) lowpanReasmTimeout = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 1), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanReasmTimeout.setStatus('current') lowpanInReceives = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInReceives.setStatus('current') lowpanInHdrErrors = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInHdrErrors.setStatus('current') lowpanInMeshReceives = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInMeshReceives.setStatus('current') lowpanInMeshForwds = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInMeshForwds.setStatus('current') lowpanInMeshDelivers = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInMeshDelivers.setStatus('current') lowpanInReasmReqds = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInReasmReqds.setStatus('current') lowpanInReasmFails = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInReasmFails.setStatus('current') lowpanInReasmOKs = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInReasmOKs.setStatus('current') lowpanInCompReqds = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInCompReqds.setStatus('current') lowpanInCompFails = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInCompFails.setStatus('current') lowpanInCompOKs = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInCompOKs.setStatus('current') lowpanInDiscards = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInDiscards.setStatus('current') lowpanInDelivers = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanInDelivers.setStatus('current') lowpanOutRequests = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutRequests.setStatus('current') lowpanOutCompReqds = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutCompReqds.setStatus('current') lowpanOutCompFails = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutCompFails.setStatus('current') lowpanOutCompOKs = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutCompOKs.setStatus('current') lowpanOutFragReqds = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutFragReqds.setStatus('current') lowpanOutFragFails = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutFragFails.setStatus('current') lowpanOutFragOKs = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutFragOKs.setStatus('current') lowpanOutFragCreates = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutFragCreates.setStatus('current') lowpanOutMeshHopLimitExceeds = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutMeshHopLimitExceeds.setStatus('current') lowpanOutMeshNoRoutes = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutMeshNoRoutes.setStatus('current') lowpanOutMeshRequests = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutMeshRequests.setStatus('current') lowpanOutMeshForwds = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutMeshForwds.setStatus('current') lowpanOutMeshTransmits = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutMeshTransmits.setStatus('current') lowpanOutDiscards = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutDiscards.setStatus('current') lowpanOutTransmits = MibScalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanOutTransmits.setStatus('current') lowpanIfStatsTable = MibTable((1, 3, 6, 1, 2, 1, 226, 1, 2), ) if mibBuilder.loadTexts: lowpanIfStatsTable.setStatus('current') lowpanIfStatsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 226, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: lowpanIfStatsEntry.setStatus('current') lowpanIfReasmTimeout = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 1), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfReasmTimeout.setStatus('current') lowpanIfInReceives = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInReceives.setStatus('current') lowpanIfInHdrErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInHdrErrors.setStatus('current') lowpanIfInMeshReceives = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInMeshReceives.setStatus('current') lowpanIfInMeshForwds = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInMeshForwds.setStatus('current') lowpanIfInMeshDelivers = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInMeshDelivers.setStatus('current') lowpanIfInReasmReqds = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInReasmReqds.setStatus('current') lowpanIfInReasmFails = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInReasmFails.setStatus('current') lowpanIfInReasmOKs = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInReasmOKs.setStatus('current') lowpanIfInCompReqds = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInCompReqds.setStatus('current') lowpanIfInCompFails = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInCompFails.setStatus('current') lowpanIfInCompOKs = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInCompOKs.setStatus('current') lowpanIfInDiscards = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInDiscards.setStatus('current') lowpanIfInDelivers = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfInDelivers.setStatus('current') lowpanIfOutRequests = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutRequests.setStatus('current') lowpanIfOutCompReqds = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutCompReqds.setStatus('current') lowpanIfOutCompFails = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutCompFails.setStatus('current') lowpanIfOutCompOKs = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutCompOKs.setStatus('current') lowpanIfOutFragReqds = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutFragReqds.setStatus('current') lowpanIfOutFragFails = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutFragFails.setStatus('current') lowpanIfOutFragOKs = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutFragOKs.setStatus('current') lowpanIfOutFragCreates = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutFragCreates.setStatus('current') lowpanIfOutMeshHopLimitExceeds = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutMeshHopLimitExceeds.setStatus('current') lowpanIfOutMeshNoRoutes = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutMeshNoRoutes.setStatus('current') lowpanIfOutMeshRequests = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutMeshRequests.setStatus('current') lowpanIfOutMeshForwds = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutMeshForwds.setStatus('current') lowpanIfOutMeshTransmits = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutMeshTransmits.setStatus('current') lowpanIfOutDiscards = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutDiscards.setStatus('current') lowpanIfOutTransmits = MibTableColumn((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lowpanIfOutTransmits.setStatus('current') lowpanGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 226, 2, 1)) lowpanCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 226, 2, 2)) lowpanCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 226, 2, 2, 1)).setObjects(("LOWPAN-MIB", "lowpanStatsGroup"), ("LOWPAN-MIB", "lowpanStatsMeshGroup"), ("LOWPAN-MIB", "lowpanIfStatsGroup"), ("LOWPAN-MIB", "lowpanIfStatsMeshGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpanCompliance = lowpanCompliance.setStatus('current') lowpanStatsGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 226, 2, 1, 1)).setObjects(("LOWPAN-MIB", "lowpanReasmTimeout"), ("LOWPAN-MIB", "lowpanInReceives"), ("LOWPAN-MIB", "lowpanInHdrErrors"), ("LOWPAN-MIB", "lowpanInMeshReceives"), ("LOWPAN-MIB", "lowpanInReasmReqds"), ("LOWPAN-MIB", "lowpanInReasmFails"), ("LOWPAN-MIB", "lowpanInReasmOKs"), ("LOWPAN-MIB", "lowpanInCompReqds"), ("LOWPAN-MIB", "lowpanInCompFails"), ("LOWPAN-MIB", "lowpanInCompOKs"), ("LOWPAN-MIB", "lowpanInDiscards"), ("LOWPAN-MIB", "lowpanInDelivers"), ("LOWPAN-MIB", "lowpanOutRequests"), ("LOWPAN-MIB", "lowpanOutCompReqds"), ("LOWPAN-MIB", "lowpanOutCompFails"), ("LOWPAN-MIB", "lowpanOutCompOKs"), ("LOWPAN-MIB", "lowpanOutFragReqds"), ("LOWPAN-MIB", "lowpanOutFragFails"), ("LOWPAN-MIB", "lowpanOutFragOKs"), ("LOWPAN-MIB", "lowpanOutFragCreates"), ("LOWPAN-MIB", "lowpanOutDiscards"), ("LOWPAN-MIB", "lowpanOutTransmits")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpanStatsGroup = lowpanStatsGroup.setStatus('current') lowpanStatsMeshGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 226, 2, 1, 2)).setObjects(("LOWPAN-MIB", "lowpanInMeshForwds"), ("LOWPAN-MIB", "lowpanInMeshDelivers"), ("LOWPAN-MIB", "lowpanOutMeshHopLimitExceeds"), ("LOWPAN-MIB", "lowpanOutMeshNoRoutes"), ("LOWPAN-MIB", "lowpanOutMeshRequests"), ("LOWPAN-MIB", "lowpanOutMeshForwds"), ("LOWPAN-MIB", "lowpanOutMeshTransmits")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpanStatsMeshGroup = lowpanStatsMeshGroup.setStatus('current') lowpanIfStatsGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 226, 2, 1, 3)).setObjects(("LOWPAN-MIB", "lowpanIfReasmTimeout"), ("LOWPAN-MIB", "lowpanIfInReceives"), ("LOWPAN-MIB", "lowpanIfInHdrErrors"), ("LOWPAN-MIB", "lowpanIfInMeshReceives"), ("LOWPAN-MIB", "lowpanIfInReasmReqds"), ("LOWPAN-MIB", "lowpanIfInReasmFails"), ("LOWPAN-MIB", "lowpanIfInReasmOKs"), ("LOWPAN-MIB", "lowpanIfInCompReqds"), ("LOWPAN-MIB", "lowpanIfInCompFails"), ("LOWPAN-MIB", "lowpanIfInCompOKs"), ("LOWPAN-MIB", "lowpanIfInDiscards"), ("LOWPAN-MIB", "lowpanIfInDelivers"), ("LOWPAN-MIB", "lowpanIfOutRequests"), ("LOWPAN-MIB", "lowpanIfOutCompReqds"), ("LOWPAN-MIB", "lowpanIfOutCompFails"), ("LOWPAN-MIB", "lowpanIfOutCompOKs"), ("LOWPAN-MIB", "lowpanIfOutFragReqds"), ("LOWPAN-MIB", "lowpanIfOutFragFails"), ("LOWPAN-MIB", "lowpanIfOutFragOKs"), ("LOWPAN-MIB", "lowpanIfOutFragCreates"), ("LOWPAN-MIB", "lowpanIfOutDiscards"), ("LOWPAN-MIB", "lowpanIfOutTransmits")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpanIfStatsGroup = lowpanIfStatsGroup.setStatus('current') lowpanIfStatsMeshGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 226, 2, 1, 4)).setObjects(("LOWPAN-MIB", "lowpanIfInMeshForwds"), ("LOWPAN-MIB", "lowpanIfInMeshDelivers"), ("LOWPAN-MIB", "lowpanIfOutMeshHopLimitExceeds"), ("LOWPAN-MIB", "lowpanIfOutMeshNoRoutes"), ("LOWPAN-MIB", "lowpanIfOutMeshRequests"), ("LOWPAN-MIB", "lowpanIfOutMeshForwds"), ("LOWPAN-MIB", "lowpanIfOutMeshTransmits")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpanIfStatsMeshGroup = lowpanIfStatsMeshGroup.setStatus('current') mibBuilder.exportSymbols("LOWPAN-MIB", lowpanIfOutFragCreates=lowpanIfOutFragCreates, lowpanIfReasmTimeout=lowpanIfReasmTimeout, lowpanOutFragCreates=lowpanOutFragCreates, lowpanOutFragReqds=lowpanOutFragReqds, lowpanReasmTimeout=lowpanReasmTimeout, lowpanOutMeshHopLimitExceeds=lowpanOutMeshHopLimitExceeds, lowpanIfStatsTable=lowpanIfStatsTable, lowpanIfInCompReqds=lowpanIfInCompReqds, lowpanOutRequests=lowpanOutRequests, lowpanIfOutTransmits=lowpanIfOutTransmits, lowpanIfInReasmOKs=lowpanIfInReasmOKs, lowpanIfOutCompReqds=lowpanIfOutCompReqds, lowpanMIB=lowpanMIB, lowpanInReasmOKs=lowpanInReasmOKs, lowpanOutMeshRequests=lowpanOutMeshRequests, lowpanOutMeshTransmits=lowpanOutMeshTransmits, lowpanInHdrErrors=lowpanInHdrErrors, lowpanIfOutDiscards=lowpanIfOutDiscards, PYSNMP_MODULE_ID=lowpanMIB, lowpanNotifications=lowpanNotifications, lowpanInMeshReceives=lowpanInMeshReceives, lowpanOutMeshForwds=lowpanOutMeshForwds, lowpanIfOutFragReqds=lowpanIfOutFragReqds, lowpanInReasmFails=lowpanInReasmFails, lowpanIfOutRequests=lowpanIfOutRequests, lowpanInReceives=lowpanInReceives, lowpanIfStatsGroup=lowpanIfStatsGroup, lowpanInCompReqds=lowpanInCompReqds, lowpanInReasmReqds=lowpanInReasmReqds, lowpanOutDiscards=lowpanOutDiscards, lowpanInCompFails=lowpanInCompFails, lowpanIfInMeshDelivers=lowpanIfInMeshDelivers, lowpanCompliance=lowpanCompliance, lowpanInMeshDelivers=lowpanInMeshDelivers, lowpanIfStatsEntry=lowpanIfStatsEntry, lowpanOutCompReqds=lowpanOutCompReqds, lowpanIfOutFragFails=lowpanIfOutFragFails, lowpanObjects=lowpanObjects, lowpanStats=lowpanStats, lowpanOutFragFails=lowpanOutFragFails, lowpanIfInReasmReqds=lowpanIfInReasmReqds, lowpanInMeshForwds=lowpanInMeshForwds, lowpanIfOutCompFails=lowpanIfOutCompFails, lowpanIfOutCompOKs=lowpanIfOutCompOKs, lowpanConformance=lowpanConformance, lowpanIfInReceives=lowpanIfInReceives, lowpanOutFragOKs=lowpanOutFragOKs, lowpanOutCompFails=lowpanOutCompFails, lowpanIfInCompOKs=lowpanIfInCompOKs, lowpanIfInReasmFails=lowpanIfInReasmFails, lowpanStatsGroup=lowpanStatsGroup, lowpanIfOutMeshTransmits=lowpanIfOutMeshTransmits, lowpanStatsMeshGroup=lowpanStatsMeshGroup, lowpanIfInCompFails=lowpanIfInCompFails, lowpanIfOutMeshHopLimitExceeds=lowpanIfOutMeshHopLimitExceeds, lowpanGroups=lowpanGroups, lowpanIfOutFragOKs=lowpanIfOutFragOKs, lowpanInCompOKs=lowpanInCompOKs, lowpanOutCompOKs=lowpanOutCompOKs, lowpanIfInMeshForwds=lowpanIfInMeshForwds, lowpanIfInDelivers=lowpanIfInDelivers, lowpanCompliances=lowpanCompliances, lowpanIfOutMeshNoRoutes=lowpanIfOutMeshNoRoutes, lowpanInDiscards=lowpanInDiscards, lowpanIfOutMeshForwds=lowpanIfOutMeshForwds, lowpanIfInHdrErrors=lowpanIfInHdrErrors, lowpanInDelivers=lowpanInDelivers, lowpanIfInDiscards=lowpanIfInDiscards, lowpanOutMeshNoRoutes=lowpanOutMeshNoRoutes, lowpanOutTransmits=lowpanOutTransmits, lowpanIfOutMeshRequests=lowpanIfOutMeshRequests, lowpanIfStatsMeshGroup=lowpanIfStatsMeshGroup, lowpanIfInMeshReceives=lowpanIfInMeshReceives)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, constraints_union, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (integer32, ip_address, notification_type, object_identity, mib_2, counter32, module_identity, iso, gauge32, time_ticks, counter64, unsigned32, bits, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'IpAddress', 'NotificationType', 'ObjectIdentity', 'mib-2', 'Counter32', 'ModuleIdentity', 'iso', 'Gauge32', 'TimeTicks', 'Counter64', 'Unsigned32', 'Bits', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') lowpan_mib = module_identity((1, 3, 6, 1, 2, 1, 226)) lowpanMIB.setRevisions(('2014-10-10 00:00',)) if mibBuilder.loadTexts: lowpanMIB.setLastUpdated('201410100000Z') if mibBuilder.loadTexts: lowpanMIB.setOrganization('IETF IPv6 over Networks of Resource-constrained Nodes Working Group') lowpan_notifications = mib_identifier((1, 3, 6, 1, 2, 1, 226, 0)) lowpan_objects = mib_identifier((1, 3, 6, 1, 2, 1, 226, 1)) lowpan_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 226, 2)) lowpan_stats = mib_identifier((1, 3, 6, 1, 2, 1, 226, 1, 1)) lowpan_reasm_timeout = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 1), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanReasmTimeout.setStatus('current') lowpan_in_receives = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInReceives.setStatus('current') lowpan_in_hdr_errors = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInHdrErrors.setStatus('current') lowpan_in_mesh_receives = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInMeshReceives.setStatus('current') lowpan_in_mesh_forwds = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInMeshForwds.setStatus('current') lowpan_in_mesh_delivers = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInMeshDelivers.setStatus('current') lowpan_in_reasm_reqds = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInReasmReqds.setStatus('current') lowpan_in_reasm_fails = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInReasmFails.setStatus('current') lowpan_in_reasm_o_ks = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInReasmOKs.setStatus('current') lowpan_in_comp_reqds = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInCompReqds.setStatus('current') lowpan_in_comp_fails = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInCompFails.setStatus('current') lowpan_in_comp_o_ks = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInCompOKs.setStatus('current') lowpan_in_discards = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInDiscards.setStatus('current') lowpan_in_delivers = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanInDelivers.setStatus('current') lowpan_out_requests = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutRequests.setStatus('current') lowpan_out_comp_reqds = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutCompReqds.setStatus('current') lowpan_out_comp_fails = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutCompFails.setStatus('current') lowpan_out_comp_o_ks = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutCompOKs.setStatus('current') lowpan_out_frag_reqds = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutFragReqds.setStatus('current') lowpan_out_frag_fails = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutFragFails.setStatus('current') lowpan_out_frag_o_ks = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutFragOKs.setStatus('current') lowpan_out_frag_creates = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutFragCreates.setStatus('current') lowpan_out_mesh_hop_limit_exceeds = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutMeshHopLimitExceeds.setStatus('current') lowpan_out_mesh_no_routes = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutMeshNoRoutes.setStatus('current') lowpan_out_mesh_requests = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutMeshRequests.setStatus('current') lowpan_out_mesh_forwds = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutMeshForwds.setStatus('current') lowpan_out_mesh_transmits = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutMeshTransmits.setStatus('current') lowpan_out_discards = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutDiscards.setStatus('current') lowpan_out_transmits = mib_scalar((1, 3, 6, 1, 2, 1, 226, 1, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanOutTransmits.setStatus('current') lowpan_if_stats_table = mib_table((1, 3, 6, 1, 2, 1, 226, 1, 2)) if mibBuilder.loadTexts: lowpanIfStatsTable.setStatus('current') lowpan_if_stats_entry = mib_table_row((1, 3, 6, 1, 2, 1, 226, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: lowpanIfStatsEntry.setStatus('current') lowpan_if_reasm_timeout = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 1), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfReasmTimeout.setStatus('current') lowpan_if_in_receives = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInReceives.setStatus('current') lowpan_if_in_hdr_errors = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInHdrErrors.setStatus('current') lowpan_if_in_mesh_receives = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInMeshReceives.setStatus('current') lowpan_if_in_mesh_forwds = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInMeshForwds.setStatus('current') lowpan_if_in_mesh_delivers = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInMeshDelivers.setStatus('current') lowpan_if_in_reasm_reqds = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInReasmReqds.setStatus('current') lowpan_if_in_reasm_fails = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInReasmFails.setStatus('current') lowpan_if_in_reasm_o_ks = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInReasmOKs.setStatus('current') lowpan_if_in_comp_reqds = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInCompReqds.setStatus('current') lowpan_if_in_comp_fails = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInCompFails.setStatus('current') lowpan_if_in_comp_o_ks = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInCompOKs.setStatus('current') lowpan_if_in_discards = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInDiscards.setStatus('current') lowpan_if_in_delivers = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfInDelivers.setStatus('current') lowpan_if_out_requests = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutRequests.setStatus('current') lowpan_if_out_comp_reqds = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutCompReqds.setStatus('current') lowpan_if_out_comp_fails = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutCompFails.setStatus('current') lowpan_if_out_comp_o_ks = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutCompOKs.setStatus('current') lowpan_if_out_frag_reqds = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutFragReqds.setStatus('current') lowpan_if_out_frag_fails = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutFragFails.setStatus('current') lowpan_if_out_frag_o_ks = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutFragOKs.setStatus('current') lowpan_if_out_frag_creates = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutFragCreates.setStatus('current') lowpan_if_out_mesh_hop_limit_exceeds = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutMeshHopLimitExceeds.setStatus('current') lowpan_if_out_mesh_no_routes = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutMeshNoRoutes.setStatus('current') lowpan_if_out_mesh_requests = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutMeshRequests.setStatus('current') lowpan_if_out_mesh_forwds = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutMeshForwds.setStatus('current') lowpan_if_out_mesh_transmits = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutMeshTransmits.setStatus('current') lowpan_if_out_discards = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutDiscards.setStatus('current') lowpan_if_out_transmits = mib_table_column((1, 3, 6, 1, 2, 1, 226, 1, 2, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lowpanIfOutTransmits.setStatus('current') lowpan_groups = mib_identifier((1, 3, 6, 1, 2, 1, 226, 2, 1)) lowpan_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 226, 2, 2)) lowpan_compliance = module_compliance((1, 3, 6, 1, 2, 1, 226, 2, 2, 1)).setObjects(('LOWPAN-MIB', 'lowpanStatsGroup'), ('LOWPAN-MIB', 'lowpanStatsMeshGroup'), ('LOWPAN-MIB', 'lowpanIfStatsGroup'), ('LOWPAN-MIB', 'lowpanIfStatsMeshGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpan_compliance = lowpanCompliance.setStatus('current') lowpan_stats_group = object_group((1, 3, 6, 1, 2, 1, 226, 2, 1, 1)).setObjects(('LOWPAN-MIB', 'lowpanReasmTimeout'), ('LOWPAN-MIB', 'lowpanInReceives'), ('LOWPAN-MIB', 'lowpanInHdrErrors'), ('LOWPAN-MIB', 'lowpanInMeshReceives'), ('LOWPAN-MIB', 'lowpanInReasmReqds'), ('LOWPAN-MIB', 'lowpanInReasmFails'), ('LOWPAN-MIB', 'lowpanInReasmOKs'), ('LOWPAN-MIB', 'lowpanInCompReqds'), ('LOWPAN-MIB', 'lowpanInCompFails'), ('LOWPAN-MIB', 'lowpanInCompOKs'), ('LOWPAN-MIB', 'lowpanInDiscards'), ('LOWPAN-MIB', 'lowpanInDelivers'), ('LOWPAN-MIB', 'lowpanOutRequests'), ('LOWPAN-MIB', 'lowpanOutCompReqds'), ('LOWPAN-MIB', 'lowpanOutCompFails'), ('LOWPAN-MIB', 'lowpanOutCompOKs'), ('LOWPAN-MIB', 'lowpanOutFragReqds'), ('LOWPAN-MIB', 'lowpanOutFragFails'), ('LOWPAN-MIB', 'lowpanOutFragOKs'), ('LOWPAN-MIB', 'lowpanOutFragCreates'), ('LOWPAN-MIB', 'lowpanOutDiscards'), ('LOWPAN-MIB', 'lowpanOutTransmits')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpan_stats_group = lowpanStatsGroup.setStatus('current') lowpan_stats_mesh_group = object_group((1, 3, 6, 1, 2, 1, 226, 2, 1, 2)).setObjects(('LOWPAN-MIB', 'lowpanInMeshForwds'), ('LOWPAN-MIB', 'lowpanInMeshDelivers'), ('LOWPAN-MIB', 'lowpanOutMeshHopLimitExceeds'), ('LOWPAN-MIB', 'lowpanOutMeshNoRoutes'), ('LOWPAN-MIB', 'lowpanOutMeshRequests'), ('LOWPAN-MIB', 'lowpanOutMeshForwds'), ('LOWPAN-MIB', 'lowpanOutMeshTransmits')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpan_stats_mesh_group = lowpanStatsMeshGroup.setStatus('current') lowpan_if_stats_group = object_group((1, 3, 6, 1, 2, 1, 226, 2, 1, 3)).setObjects(('LOWPAN-MIB', 'lowpanIfReasmTimeout'), ('LOWPAN-MIB', 'lowpanIfInReceives'), ('LOWPAN-MIB', 'lowpanIfInHdrErrors'), ('LOWPAN-MIB', 'lowpanIfInMeshReceives'), ('LOWPAN-MIB', 'lowpanIfInReasmReqds'), ('LOWPAN-MIB', 'lowpanIfInReasmFails'), ('LOWPAN-MIB', 'lowpanIfInReasmOKs'), ('LOWPAN-MIB', 'lowpanIfInCompReqds'), ('LOWPAN-MIB', 'lowpanIfInCompFails'), ('LOWPAN-MIB', 'lowpanIfInCompOKs'), ('LOWPAN-MIB', 'lowpanIfInDiscards'), ('LOWPAN-MIB', 'lowpanIfInDelivers'), ('LOWPAN-MIB', 'lowpanIfOutRequests'), ('LOWPAN-MIB', 'lowpanIfOutCompReqds'), ('LOWPAN-MIB', 'lowpanIfOutCompFails'), ('LOWPAN-MIB', 'lowpanIfOutCompOKs'), ('LOWPAN-MIB', 'lowpanIfOutFragReqds'), ('LOWPAN-MIB', 'lowpanIfOutFragFails'), ('LOWPAN-MIB', 'lowpanIfOutFragOKs'), ('LOWPAN-MIB', 'lowpanIfOutFragCreates'), ('LOWPAN-MIB', 'lowpanIfOutDiscards'), ('LOWPAN-MIB', 'lowpanIfOutTransmits')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpan_if_stats_group = lowpanIfStatsGroup.setStatus('current') lowpan_if_stats_mesh_group = object_group((1, 3, 6, 1, 2, 1, 226, 2, 1, 4)).setObjects(('LOWPAN-MIB', 'lowpanIfInMeshForwds'), ('LOWPAN-MIB', 'lowpanIfInMeshDelivers'), ('LOWPAN-MIB', 'lowpanIfOutMeshHopLimitExceeds'), ('LOWPAN-MIB', 'lowpanIfOutMeshNoRoutes'), ('LOWPAN-MIB', 'lowpanIfOutMeshRequests'), ('LOWPAN-MIB', 'lowpanIfOutMeshForwds'), ('LOWPAN-MIB', 'lowpanIfOutMeshTransmits')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): lowpan_if_stats_mesh_group = lowpanIfStatsMeshGroup.setStatus('current') mibBuilder.exportSymbols('LOWPAN-MIB', lowpanIfOutFragCreates=lowpanIfOutFragCreates, lowpanIfReasmTimeout=lowpanIfReasmTimeout, lowpanOutFragCreates=lowpanOutFragCreates, lowpanOutFragReqds=lowpanOutFragReqds, lowpanReasmTimeout=lowpanReasmTimeout, lowpanOutMeshHopLimitExceeds=lowpanOutMeshHopLimitExceeds, lowpanIfStatsTable=lowpanIfStatsTable, lowpanIfInCompReqds=lowpanIfInCompReqds, lowpanOutRequests=lowpanOutRequests, lowpanIfOutTransmits=lowpanIfOutTransmits, lowpanIfInReasmOKs=lowpanIfInReasmOKs, lowpanIfOutCompReqds=lowpanIfOutCompReqds, lowpanMIB=lowpanMIB, lowpanInReasmOKs=lowpanInReasmOKs, lowpanOutMeshRequests=lowpanOutMeshRequests, lowpanOutMeshTransmits=lowpanOutMeshTransmits, lowpanInHdrErrors=lowpanInHdrErrors, lowpanIfOutDiscards=lowpanIfOutDiscards, PYSNMP_MODULE_ID=lowpanMIB, lowpanNotifications=lowpanNotifications, lowpanInMeshReceives=lowpanInMeshReceives, lowpanOutMeshForwds=lowpanOutMeshForwds, lowpanIfOutFragReqds=lowpanIfOutFragReqds, lowpanInReasmFails=lowpanInReasmFails, lowpanIfOutRequests=lowpanIfOutRequests, lowpanInReceives=lowpanInReceives, lowpanIfStatsGroup=lowpanIfStatsGroup, lowpanInCompReqds=lowpanInCompReqds, lowpanInReasmReqds=lowpanInReasmReqds, lowpanOutDiscards=lowpanOutDiscards, lowpanInCompFails=lowpanInCompFails, lowpanIfInMeshDelivers=lowpanIfInMeshDelivers, lowpanCompliance=lowpanCompliance, lowpanInMeshDelivers=lowpanInMeshDelivers, lowpanIfStatsEntry=lowpanIfStatsEntry, lowpanOutCompReqds=lowpanOutCompReqds, lowpanIfOutFragFails=lowpanIfOutFragFails, lowpanObjects=lowpanObjects, lowpanStats=lowpanStats, lowpanOutFragFails=lowpanOutFragFails, lowpanIfInReasmReqds=lowpanIfInReasmReqds, lowpanInMeshForwds=lowpanInMeshForwds, lowpanIfOutCompFails=lowpanIfOutCompFails, lowpanIfOutCompOKs=lowpanIfOutCompOKs, lowpanConformance=lowpanConformance, lowpanIfInReceives=lowpanIfInReceives, lowpanOutFragOKs=lowpanOutFragOKs, lowpanOutCompFails=lowpanOutCompFails, lowpanIfInCompOKs=lowpanIfInCompOKs, lowpanIfInReasmFails=lowpanIfInReasmFails, lowpanStatsGroup=lowpanStatsGroup, lowpanIfOutMeshTransmits=lowpanIfOutMeshTransmits, lowpanStatsMeshGroup=lowpanStatsMeshGroup, lowpanIfInCompFails=lowpanIfInCompFails, lowpanIfOutMeshHopLimitExceeds=lowpanIfOutMeshHopLimitExceeds, lowpanGroups=lowpanGroups, lowpanIfOutFragOKs=lowpanIfOutFragOKs, lowpanInCompOKs=lowpanInCompOKs, lowpanOutCompOKs=lowpanOutCompOKs, lowpanIfInMeshForwds=lowpanIfInMeshForwds, lowpanIfInDelivers=lowpanIfInDelivers, lowpanCompliances=lowpanCompliances, lowpanIfOutMeshNoRoutes=lowpanIfOutMeshNoRoutes, lowpanInDiscards=lowpanInDiscards, lowpanIfOutMeshForwds=lowpanIfOutMeshForwds, lowpanIfInHdrErrors=lowpanIfInHdrErrors, lowpanInDelivers=lowpanInDelivers, lowpanIfInDiscards=lowpanIfInDiscards, lowpanOutMeshNoRoutes=lowpanOutMeshNoRoutes, lowpanOutTransmits=lowpanOutTransmits, lowpanIfOutMeshRequests=lowpanIfOutMeshRequests, lowpanIfStatsMeshGroup=lowpanIfStatsMeshGroup, lowpanIfInMeshReceives=lowpanIfInMeshReceives)
def split_targets(targets, target_sizes): results = [] offset = 0 for size in target_sizes: results.append(targets[offset:offset + size]) offset += size return results
def split_targets(targets, target_sizes): results = [] offset = 0 for size in target_sizes: results.append(targets[offset:offset + size]) offset += size return results
class Aggrraidtype(basestring): """ raid_dp|raid4 Possible values: <ul> <li> "raid_dp" , <li> "raid4" , <li> "raid0" , <li> "mixed_raid_type" </ul> """ @staticmethod def get_api_name(): return "aggrraidtype"
class Aggrraidtype(basestring): """ raid_dp|raid4 Possible values: <ul> <li> "raid_dp" , <li> "raid4" , <li> "raid0" , <li> "mixed_raid_type" </ul> """ @staticmethod def get_api_name(): return 'aggrraidtype'
""" interploation search # interploation and binary are both require a SORTED list let said you have the follow phone number prefix array, and you are looking for 1144 0011, 0022, 0033, 1144, 1166, 1188, 3322, 3344, 3399 instead of using binary search in the middle, or linear search from the left. we only want to search the subset with same prefix, like inside [1144, 1166, 1188] to calculate the mid mid = low + ((high - low) / (A[high] - A[low])) * (x - A[low]) # x is the value we are seeking """ data = list(range(1_000_001)) search_value = 999_999 def linear_search(search_value, data): for index, value in enumerate(data): if value == search_value: print(f"Element is found after {index} attempts") def binary_search(search_value, data): left = 0 right = len(data) - 1 attempts = 1 founded = False while not founded: mid = ((right - left) // 2) + left # print(f"left {left}") # print(f'right {right}') # print(f"mid {mid}") if data[mid] == search_value: print(f"Element is found after {attempts} attempts") founded = True if search_value < data[mid]: right = mid - 1 else: left = mid + 1 attempts += 1 def interploation_search(search_value, data): left = 0 right = len(data) - 1 attempts = 1 founded = False while not founded: mid = int( left + ((right - left) / data[right] - data[left]) * (search_value - data[left]) ) # print(f"left {left}") # print(f"right {right}") # print(f"mid {mid}") if data[mid] == search_value: print(f"Element is found after {attempts} attempts") founded = True if search_value < data[mid]: right = mid - 1 else: left = mid + 1 attempts += 1 linear_search(search_value, data) binary_search(search_value, data) interploation_search(search_value, data)
""" interploation search # interploation and binary are both require a SORTED list let said you have the follow phone number prefix array, and you are looking for 1144 0011, 0022, 0033, 1144, 1166, 1188, 3322, 3344, 3399 instead of using binary search in the middle, or linear search from the left. we only want to search the subset with same prefix, like inside [1144, 1166, 1188] to calculate the mid mid = low + ((high - low) / (A[high] - A[low])) * (x - A[low]) # x is the value we are seeking """ data = list(range(1000001)) search_value = 999999 def linear_search(search_value, data): for (index, value) in enumerate(data): if value == search_value: print(f'Element is found after {index} attempts') def binary_search(search_value, data): left = 0 right = len(data) - 1 attempts = 1 founded = False while not founded: mid = (right - left) // 2 + left if data[mid] == search_value: print(f'Element is found after {attempts} attempts') founded = True if search_value < data[mid]: right = mid - 1 else: left = mid + 1 attempts += 1 def interploation_search(search_value, data): left = 0 right = len(data) - 1 attempts = 1 founded = False while not founded: mid = int(left + ((right - left) / data[right] - data[left]) * (search_value - data[left])) if data[mid] == search_value: print(f'Element is found after {attempts} attempts') founded = True if search_value < data[mid]: right = mid - 1 else: left = mid + 1 attempts += 1 linear_search(search_value, data) binary_search(search_value, data) interploation_search(search_value, data)
# This sample tests the case where a finally clause contains some conditional # logic that narrows the type of an expression. This narrowed type should # persist after the finally clause. def func1(): file = None try: file = open("test.txt") except Exception: return None finally: if file: file.close() reveal_type(file, expected_text="TextIOWrapper") def func2(): file = None try: file = open("test.txt") except Exception: pass finally: if file: file.close() reveal_type(file, expected_text="TextIOWrapper | None") def func3(): file = None try: file = open("test.txt") finally: pass reveal_type(file, expected_text="TextIOWrapper")
def func1(): file = None try: file = open('test.txt') except Exception: return None finally: if file: file.close() reveal_type(file, expected_text='TextIOWrapper') def func2(): file = None try: file = open('test.txt') except Exception: pass finally: if file: file.close() reveal_type(file, expected_text='TextIOWrapper | None') def func3(): file = None try: file = open('test.txt') finally: pass reveal_type(file, expected_text='TextIOWrapper')
def remove_passwords(instances): clean_instances = [] for instance in instances: clean_instance = {} for k in instance.keys(): if k != 'password': clean_instance[k] = instance[k] clean_instances.append(clean_instance) return clean_instances
def remove_passwords(instances): clean_instances = [] for instance in instances: clean_instance = {} for k in instance.keys(): if k != 'password': clean_instance[k] = instance[k] clean_instances.append(clean_instance) return clean_instances
class cURL: def __init__(self, url_='.'): self.url = url_ def replace(self, replaceURL_, start_, end_): ''' example: 'https://www.google.com/search' https:// -> -1 www.google.com -> 0 search -> 1 ''' if start_ == -1: start_ = 0 else: start_ +=2 end_ += 2 urllist = self.url.split('/') wrongURL = '/'.join(urllist[start_:end_]) newURL= self.url.replace(wrongURL,replaceURL_) return newURL
class Curl: def __init__(self, url_='.'): self.url = url_ def replace(self, replaceURL_, start_, end_): """ example: 'https://www.google.com/search' https:// -> -1 www.google.com -> 0 search -> 1 """ if start_ == -1: start_ = 0 else: start_ += 2 end_ += 2 urllist = self.url.split('/') wrong_url = '/'.join(urllist[start_:end_]) new_url = self.url.replace(wrongURL, replaceURL_) return newURL
def get_primes(n): # Based on Eratosthenes Sieve # Initially all numbers are prime until proven otherwise # False = Prime number, True = Compose number nonprimes = n * [False] count = 0 nonprimes[0] = nonprimes[1] = True prime_numbers = [] for i in range(2, n): if not nonprimes[i]: prime_numbers.append(i) count += 1 for j in range(2*i, n, i): nonprimes[j] = True return prime_numbers
def get_primes(n): nonprimes = n * [False] count = 0 nonprimes[0] = nonprimes[1] = True prime_numbers = [] for i in range(2, n): if not nonprimes[i]: prime_numbers.append(i) count += 1 for j in range(2 * i, n, i): nonprimes[j] = True return prime_numbers
'''DATALOADERS''' def LoadModel(name): # print(name) # classes = [] # D = 0 # H = 0 # W = 0 # Height = 0 # Width = 0 # Bands = 0 # samples = 0 if name == 'PaviaU': classes = [] #Size of 3D images D = 610 H = 340 W = 103 #Size of patches Height = 27 Width = 21 Bands = 103 samples = 2400 patch = 300000 elif name == 'IndianPines': classes = ["Undefined", "Alfalfa", "Corn-notill", "Corn-mintill", "Corn", "Grass-pasture", "Grass-trees", "Grass-pasture-mowed", "Hay-windrowed", "Oats", "Soybean-notill", "Soybean-mintill", "Soybean-clean", "Wheat", "Woods", "Buildings-Grass-Trees-Drives", "Stone-Steel-Towers"] #Size of 3D images D = 145 H = 145 W = 200 #Size of patches # Height = 17 # Width = 17 Height = 19 Width = 17 Bands = 200 samples = 4000 patch = 300000 elif name == 'Botswana': classes = ["Undefined", "Water", "Hippo grass", "Floodplain grasses 1", "Floodplain grasses 2", "Reeds", "Riparian", "Firescar", "Island interior", "Acacia woodlands", "Acacia shrublands", "Acacia grasslands", "Short mopane", "Mixed mopane", "Exposed soils"] #Size of 3D images D = 1476 H = 256 W = 145 #Size of patches Height = 31 Width = 21 Bands = 145 samples = 1500 patch = 30000 elif name == 'KSC': classes = ["Undefined", "Scrub", "Willow swamp", "Cabbage palm hammock", "Cabbage palm/oak hammock", "Slash pine", "Oak/broadleaf hammock", "Hardwood swamp", "Graminoid marsh", "Spartina marsh", "Cattail marsh", "Salt marsh", "Mud flats", "Wate"] #Size of 3D images D = 512 H = 614 W = 176 #Size of patches Height = 31 Width = 27 Bands = 176 samples = 2400 patch = 30000 elif name == 'Salinas': classes = [] #Size of 3D images D = 512 H = 217 W = 204 #Size of patches Height = 21 Width = 17 Bands = 204 samples = 2600 patch = 300000 elif name == 'SalinasA': classes = [] #Size of 3D images D = 83 H = 86 W = 204 #Size of patches Height = 15 Width = 11 Bands = 204 samples = 2400 patch = 300000 elif name == 'Samson': classes = [] #Size of 3D images D = 95 H = 95 W = 156 #Size of patches Height = 10 Width = 10 Bands = 156 samples = 1200 patch = 30000 return Width, Height, Bands, samples, D, H, W, classes, patch
"""DATALOADERS""" def load_model(name): if name == 'PaviaU': classes = [] d = 610 h = 340 w = 103 height = 27 width = 21 bands = 103 samples = 2400 patch = 300000 elif name == 'IndianPines': classes = ['Undefined', 'Alfalfa', 'Corn-notill', 'Corn-mintill', 'Corn', 'Grass-pasture', 'Grass-trees', 'Grass-pasture-mowed', 'Hay-windrowed', 'Oats', 'Soybean-notill', 'Soybean-mintill', 'Soybean-clean', 'Wheat', 'Woods', 'Buildings-Grass-Trees-Drives', 'Stone-Steel-Towers'] d = 145 h = 145 w = 200 height = 19 width = 17 bands = 200 samples = 4000 patch = 300000 elif name == 'Botswana': classes = ['Undefined', 'Water', 'Hippo grass', 'Floodplain grasses 1', 'Floodplain grasses 2', 'Reeds', 'Riparian', 'Firescar', 'Island interior', 'Acacia woodlands', 'Acacia shrublands', 'Acacia grasslands', 'Short mopane', 'Mixed mopane', 'Exposed soils'] d = 1476 h = 256 w = 145 height = 31 width = 21 bands = 145 samples = 1500 patch = 30000 elif name == 'KSC': classes = ['Undefined', 'Scrub', 'Willow swamp', 'Cabbage palm hammock', 'Cabbage palm/oak hammock', 'Slash pine', 'Oak/broadleaf hammock', 'Hardwood swamp', 'Graminoid marsh', 'Spartina marsh', 'Cattail marsh', 'Salt marsh', 'Mud flats', 'Wate'] d = 512 h = 614 w = 176 height = 31 width = 27 bands = 176 samples = 2400 patch = 30000 elif name == 'Salinas': classes = [] d = 512 h = 217 w = 204 height = 21 width = 17 bands = 204 samples = 2600 patch = 300000 elif name == 'SalinasA': classes = [] d = 83 h = 86 w = 204 height = 15 width = 11 bands = 204 samples = 2400 patch = 300000 elif name == 'Samson': classes = [] d = 95 h = 95 w = 156 height = 10 width = 10 bands = 156 samples = 1200 patch = 30000 return (Width, Height, Bands, samples, D, H, W, classes, patch)
parallel = dict( data=1, pipeline=1, tensor=dict(size=4, mode='2d'), )
parallel = dict(data=1, pipeline=1, tensor=dict(size=4, mode='2d'))
# -*- coding: utf-8 -*- project = "thumbtack-client" copyright = "2019, The MITRE Corporation" author = "The MITRE Corporation" version = "0.3.0" release = "0.3.0" extensions = [ "sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx.ext.viewcode", ] templates_path = ["_templates"] source_suffix = ".rst" master_doc = "index" language = None exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] pygments_style = "sphinx" html_theme = "sphinx_rtd_theme" html_theme_options = { # 'canonical_url': '', # 'analytics_id': '', # 'logo_only': False, "display_version": True, "prev_next_buttons_location": "bottom", # 'style_external_links': False, # 'vcs_pageview_mode': '', # Toc options "collapse_navigation": False, "sticky_navigation": True, "navigation_depth": 2, # 'includehidden': True, # 'titles_only': False } htmlhelp_basename = "thumbtack-clientdoc" latex_elements = {} latex_documents = [ ( master_doc, "thumbtack-client.tex", "thumbtack-client Documentation", "The MITRE Corporation", "manual", ), ] man_pages = [ (master_doc, "thumbtack-client", "thumbtack-client Documentation", [author], 1) ] texinfo_documents = [ ( master_doc, "thumbtack-client", "thumbtack-client Documentation", author, "thumbtack-client", "One line description of project.", "Miscellaneous", ), ]
project = 'thumbtack-client' copyright = '2019, The MITRE Corporation' author = 'The MITRE Corporation' version = '0.3.0' release = '0.3.0' extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.viewcode'] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' language = None exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] pygments_style = 'sphinx' html_theme = 'sphinx_rtd_theme' html_theme_options = {'display_version': True, 'prev_next_buttons_location': 'bottom', 'collapse_navigation': False, 'sticky_navigation': True, 'navigation_depth': 2} htmlhelp_basename = 'thumbtack-clientdoc' latex_elements = {} latex_documents = [(master_doc, 'thumbtack-client.tex', 'thumbtack-client Documentation', 'The MITRE Corporation', 'manual')] man_pages = [(master_doc, 'thumbtack-client', 'thumbtack-client Documentation', [author], 1)] texinfo_documents = [(master_doc, 'thumbtack-client', 'thumbtack-client Documentation', author, 'thumbtack-client', 'One line description of project.', 'Miscellaneous')]
def main(): result = 0 with open("input.txt") as input_file: for x in input_file: x = int(x) while True: x = x // 3 - 2 if x < 0: break result += x print(result) if __name__ == "__main__": main()
def main(): result = 0 with open('input.txt') as input_file: for x in input_file: x = int(x) while True: x = x // 3 - 2 if x < 0: break result += x print(result) if __name__ == '__main__': main()
DATAMART_AUGMENT_PROCESS = 'DATAMART_AUGMENT_PROCESS' # ---------------------------------------------- # Related to the "Add User Dataset" process # ---------------------------------------------- ADD_USER_DATASET_PROCESS = 'ADD_USER_DATASET_PROCESS' ADD_USER_DATASET_PROCESS_NO_WORKSPACE = 'ADD_USER_DATASET_PROCESS_NO_WORKSPACE' NEW_DATASET_DOC_PATH = 'new_dataset_doc_path' DATASET_NAME_FROM_UI = 'name' # from dataset.js DATASET_NAME = 'dataset_name' # from dataset.js SKIP_CREATE_NEW_CONFIG = 'SKIP_CREATE_NEW_CONFIG' # ---------------------------------------------- # Extensions # ---------------------------------------------- EXT_CSV = '.csv' EXT_TAB = '.tab' EXT_TSV = '.tsv' EXT_XLS = '.xls' EXT_XLSX = '.xlsx' VALID_EXTENSIONS = (EXT_CSV, EXT_TAB, EXT_TSV, EXT_XLS, EXT_XLSX) # ---------------------------------------------- # For creating a datasetDoc # ---------------------------------------------- DATASET_SCHEMA_VERSION = '4.0.0' # create a datasetDoc PROBLEM_SCHEMA_VERSION = '4.0.0' # Map Pandas types to the types used in the datasetDoc # mapping from: https://pbpython.com/pandas_dtypes.html # -> https://gitlab.datadrivendiscovery.org/MIT-LL/d3m_data_supply/blob/shared/schemas/datasetSchema.json DTYPES = { 'int64': 'integer', 'float64': 'real', 'bool': 'boolean', 'object': 'string', 'datetime64': 'dateTime', 'category': 'categorical' }
datamart_augment_process = 'DATAMART_AUGMENT_PROCESS' add_user_dataset_process = 'ADD_USER_DATASET_PROCESS' add_user_dataset_process_no_workspace = 'ADD_USER_DATASET_PROCESS_NO_WORKSPACE' new_dataset_doc_path = 'new_dataset_doc_path' dataset_name_from_ui = 'name' dataset_name = 'dataset_name' skip_create_new_config = 'SKIP_CREATE_NEW_CONFIG' ext_csv = '.csv' ext_tab = '.tab' ext_tsv = '.tsv' ext_xls = '.xls' ext_xlsx = '.xlsx' valid_extensions = (EXT_CSV, EXT_TAB, EXT_TSV, EXT_XLS, EXT_XLSX) dataset_schema_version = '4.0.0' problem_schema_version = '4.0.0' dtypes = {'int64': 'integer', 'float64': 'real', 'bool': 'boolean', 'object': 'string', 'datetime64': 'dateTime', 'category': 'categorical'}
alpha_num_dict = { 'a':1, 'b':2, 'c':3 } alpha_num_dict['a'] = 10 print(alpha_num_dict['a'])
alpha_num_dict = {'a': 1, 'b': 2, 'c': 3} alpha_num_dict['a'] = 10 print(alpha_num_dict['a'])
""" Time: Best: O(n) Average: O(n^2) Worst: O(n^2) Space: O(1) Stable: Yes Worst Case Scenario: Reverse Sorted Array Algorithm Overview: This algorithm works like how a person would normally sort a hand of cards from left to right. You take the second card and compare with all the cards to the left, shifting over each card which is larger than the card you are trying to sort. The algorithm starts at the second element, and persists the element's index in a pointer. It then iterates over all the items to the left by moving the pointer back until either the index pointer is at 0 or it finds an element on the left hand side which is less than the current item. It then persists the element before that item. """ def insertion_sort(arr): # Assume that the first element in the list is sorted, begin iteration at second element, index 1 for current_index in range(1, len(arr)): # current item is the not sorted item we want to put in the correct place in the sorted array # Everything to the left of this item is sorted, and this item and everything to the right is not sorted current_item = arr[current_index] # pointer to the index where the above item should go, initialized at the current item's current position insert_index = current_index # while your previous index does not go beyond the min index (0) # and the current item is smaller than the previous item while insert_index > 0 and current_item < arr[insert_index - 1]: # Copy the larger item before the current item to the current item's place arr[insert_index] = arr[insert_index - 1] # push your insert pointer back insert_index -= 1 # Either your previous pointer will now be 0 in which case you have reached the start of the array # or you reached an item smaller than the current item # This exists the loop # Now you can move the current item to the empty space created by moving the other items forward # and begin the next pass of the sorting algorithm arr[insert_index] = current_item if __name__ == '__main__': arr = [8, 3, 1, 2] insertion_sort(arr) print(arr)
""" Time: Best: O(n) Average: O(n^2) Worst: O(n^2) Space: O(1) Stable: Yes Worst Case Scenario: Reverse Sorted Array Algorithm Overview: This algorithm works like how a person would normally sort a hand of cards from left to right. You take the second card and compare with all the cards to the left, shifting over each card which is larger than the card you are trying to sort. The algorithm starts at the second element, and persists the element's index in a pointer. It then iterates over all the items to the left by moving the pointer back until either the index pointer is at 0 or it finds an element on the left hand side which is less than the current item. It then persists the element before that item. """ def insertion_sort(arr): for current_index in range(1, len(arr)): current_item = arr[current_index] insert_index = current_index while insert_index > 0 and current_item < arr[insert_index - 1]: arr[insert_index] = arr[insert_index - 1] insert_index -= 1 arr[insert_index] = current_item if __name__ == '__main__': arr = [8, 3, 1, 2] insertion_sort(arr) print(arr)
# https://leetcode.com/problems/minimum-size-subarray-sum/ class Solution: def minSubArrayLen(self, target: int, nums: list[int]) -> int: min_len = float('inf') curr_sum = 0 nums_added = 0 for idx in range(len(nums)): num = nums[idx] if num >= target: return 1 curr_sum += num nums_added += 1 while nums_added > 1 and ( curr_sum - nums[idx - nums_added + 1] >= target): curr_sum -= nums[idx - nums_added + 1] nums_added -= 1 if curr_sum >= target: min_len = min(min_len, nums_added) return 0 if min_len == float('inf') else min_len
class Solution: def min_sub_array_len(self, target: int, nums: list[int]) -> int: min_len = float('inf') curr_sum = 0 nums_added = 0 for idx in range(len(nums)): num = nums[idx] if num >= target: return 1 curr_sum += num nums_added += 1 while nums_added > 1 and curr_sum - nums[idx - nums_added + 1] >= target: curr_sum -= nums[idx - nums_added + 1] nums_added -= 1 if curr_sum >= target: min_len = min(min_len, nums_added) return 0 if min_len == float('inf') else min_len
#!/usr/bin/env python # encoding: utf-8 class Dynamic(str): """Wrapper for the strings that need to be dynamically interpreted by the generated Python files.""" pass
class Dynamic(str): """Wrapper for the strings that need to be dynamically interpreted by the generated Python files.""" pass
#!/usr/bin/env python # -*- coding: utf-8 -*- """View module for Find Convex Hull program Notes ----- Comments are omitted because code is self-explanatory. """ colors = [ 'aquamarine', 'azure', 'blue', 'brown', 'chartreuse', 'chocolate', 'coral', 'crimson', 'cyan', 'darkblue', 'darkgreen', 'fuchsia', 'gold', 'green', 'grey', 'indigo', 'khaki', 'lavender', 'lightblue', 'lightgreen', 'lime', 'magenta', 'maroon', 'navy', 'olive', 'orange', 'orangered', 'orchid', 'pink', 'plum', 'purple', 'red', 'salmon', 'sienna', 'tan', 'teal', 'tomato', 'turquoise', 'violet', 'wheat', 'yellow', 'yellowgreen', ] colors = list(map(lambda x: f"xkcd:{x}", colors)) def displayHeader(title: str) -> None: n = (60 - len(title) - 4) // 2 if n > 0: header = f"\n {'=' * n} {title} {'=' * n}\n" else: header = f"\n {title}\n" print(header) def displayList(lst: list, key = None) -> None: maxSpace = len(str(len(lst))) for i in range(len(lst)): x = lst[i][key] if key else lst[i] spacing = maxSpace - len(str(i + 1)) + 4 print(f"{' ' * spacing}{i + 1}. {x}") print('') def toTitle(label: str) -> str: return label.replace('_', ' ').title() def inputInt(prompt: str, minval: int = None, maxval: int = None, exclude: list = None) -> int: while True: try: inp = int(input(prompt + " ")) if (minval is not None and inp < minval) or (maxval is not None and inp > maxval): print(f"Number must be between {minval} and {maxval}.") raise Exception if exclude is not None and inp in exclude: print(f"Number cannot be {inp}.") raise Exception return inp except ValueError: print("Invalid number.") except Exception: pass
"""View module for Find Convex Hull program Notes ----- Comments are omitted because code is self-explanatory. """ colors = ['aquamarine', 'azure', 'blue', 'brown', 'chartreuse', 'chocolate', 'coral', 'crimson', 'cyan', 'darkblue', 'darkgreen', 'fuchsia', 'gold', 'green', 'grey', 'indigo', 'khaki', 'lavender', 'lightblue', 'lightgreen', 'lime', 'magenta', 'maroon', 'navy', 'olive', 'orange', 'orangered', 'orchid', 'pink', 'plum', 'purple', 'red', 'salmon', 'sienna', 'tan', 'teal', 'tomato', 'turquoise', 'violet', 'wheat', 'yellow', 'yellowgreen'] colors = list(map(lambda x: f'xkcd:{x}', colors)) def display_header(title: str) -> None: n = (60 - len(title) - 4) // 2 if n > 0: header = f"\n {'=' * n} {title} {'=' * n}\n" else: header = f'\n {title}\n' print(header) def display_list(lst: list, key=None) -> None: max_space = len(str(len(lst))) for i in range(len(lst)): x = lst[i][key] if key else lst[i] spacing = maxSpace - len(str(i + 1)) + 4 print(f"{' ' * spacing}{i + 1}. {x}") print('') def to_title(label: str) -> str: return label.replace('_', ' ').title() def input_int(prompt: str, minval: int=None, maxval: int=None, exclude: list=None) -> int: while True: try: inp = int(input(prompt + ' ')) if minval is not None and inp < minval or (maxval is not None and inp > maxval): print(f'Number must be between {minval} and {maxval}.') raise Exception if exclude is not None and inp in exclude: print(f'Number cannot be {inp}.') raise Exception return inp except ValueError: print('Invalid number.') except Exception: pass
class DataGridSelectionUnit(Enum,IComparable,IFormattable,IConvertible): """ Defines constants that specify whether cells,rows,or both,are used for selection in a System.Windows.Controls.DataGrid control. enum DataGridSelectionUnit,values: Cell (0),CellOrRowHeader (2),FullRow (1) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self,*args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self,*args): pass def __gt__(self,*args): pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self,*args): pass def __lt__(self,*args): pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass def __str__(self,*args): pass Cell=None CellOrRowHeader=None FullRow=None value__=None
class Datagridselectionunit(Enum, IComparable, IFormattable, IConvertible): """ Defines constants that specify whether cells,rows,or both,are used for selection in a System.Windows.Controls.DataGrid control. enum DataGridSelectionUnit,values: Cell (0),CellOrRowHeader (2),FullRow (1) """ def __eq__(self, *args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self, *args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self, *args): pass def __gt__(self, *args): pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self, *args): pass def __lt__(self, *args): pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass cell = None cell_or_row_header = None full_row = None value__ = None
class Solution: def sortArrayByParity(self, A: List[int]) -> List[int]: l = 0 r = len(A) - 1 while l < r: if A[l] % 2 == 1 and A[r] % 2 == 0: A[l], A[r] = A[r], A[l] if A[l] % 2 == 0: l += 1 if A[r] % 2 == 1: r -= 1 return A
class Solution: def sort_array_by_parity(self, A: List[int]) -> List[int]: l = 0 r = len(A) - 1 while l < r: if A[l] % 2 == 1 and A[r] % 2 == 0: (A[l], A[r]) = (A[r], A[l]) if A[l] % 2 == 0: l += 1 if A[r] % 2 == 1: r -= 1 return A
peso = float(input('Peso em Kilogramas: ')) altura = float(input('Altura em Centimetros: ')) imc = peso / ((altura / 100) ** 2) print('O IMC esta em {:.2f}'.format(imc)) if imc < 18.5: print('Abaixo do Peso!') elif imc <= 25: print('Peso Ideal') elif imc <= 30: print('Sobrepeso') elif imc <= 40: print('Obesidade') elif imc > 40: print('Obesidade Morbida')
peso = float(input('Peso em Kilogramas: ')) altura = float(input('Altura em Centimetros: ')) imc = peso / (altura / 100) ** 2 print('O IMC esta em {:.2f}'.format(imc)) if imc < 18.5: print('Abaixo do Peso!') elif imc <= 25: print('Peso Ideal') elif imc <= 30: print('Sobrepeso') elif imc <= 40: print('Obesidade') elif imc > 40: print('Obesidade Morbida')
""" Place class. Part of the StoryTechnologies project. August 17, 2019 Brett Alistair Kromkamp ([email protected]) """ class TimeInterval: def __init__(self, from_time_point: str, to_time_point: str) -> None: self.from_time_point = from_time_point self.to_time_point = to_time_point
""" Place class. Part of the StoryTechnologies project. August 17, 2019 Brett Alistair Kromkamp ([email protected]) """ class Timeinterval: def __init__(self, from_time_point: str, to_time_point: str) -> None: self.from_time_point = from_time_point self.to_time_point = to_time_point
class Menu(object): def __init__(self): gameList = None; def _populateGameList(self): pass def chooseGame(self): pass def start(self): pass
class Menu(object): def __init__(self): game_list = None def _populate_game_list(self): pass def choose_game(self): pass def start(self): pass
class Solution: # @param {integer[]} candidates # @param {integer} target # @return {integer[][]} def combinationSum2(self, candidates, target): self.results = [] candidates.sort() self.combination(candidates, target, 0, []) return self.results def combination(self,candidates, target, start, result): if target == 0 : self.results.append(result[:]) elif target > 0: for i in range(start, len(candidates)): if i > start and candidates[i] == candidates[i-1]: continue result.append(candidates[i]) self.combination(candidates, target-candidates[i], i + 1, result) result.pop()
class Solution: def combination_sum2(self, candidates, target): self.results = [] candidates.sort() self.combination(candidates, target, 0, []) return self.results def combination(self, candidates, target, start, result): if target == 0: self.results.append(result[:]) elif target > 0: for i in range(start, len(candidates)): if i > start and candidates[i] == candidates[i - 1]: continue result.append(candidates[i]) self.combination(candidates, target - candidates[i], i + 1, result) result.pop()
# -*- coding: utf-8 -*- """ file_utils module to hold simple bioinformatics course text file parsing class """ INPUT_STRING = 'Input' OUTPUT_STRING = 'Output' class FileUtil(object): """ Holds I/O values parsed from course text files for example problems Initialized with a text file, parses 'Input' and 'Output' values to object attributes. Args: filename (str): filename pointing to supplied text file Attributes: inputs (list): inputs from supplied text file outputs (list): expected outputs from supplied text file """ def __init__(self, filename): self.parse_file(filename) def parse_file(self, filename): """ Helper function parses course text files and returns the list of inputs and, if provided, the list of expected outputs If no input string is found all items before output string are returned to inputs, if neither input string nor output string is found then all items are returned to input string. Space delimited strings are separated. Args: filename (str): filename pointing to supplied text file Returns: inputs (list): inputs from supplied text file outputs (list): expected outputs from supplied text file """ with open(filename, 'r') as f: raw_text = f.read() raw_args = [s for i in raw_text.splitlines() for s in i.split(' ')] try: input_index = raw_args.index(INPUT_STRING) except ValueError: input_index = -1 try: output_index = raw_args.index(OUTPUT_STRING) except ValueError: output_index = len(raw_args) self.inputs = raw_args[input_index+1:output_index] self.outputs = raw_args[output_index+1:]
""" file_utils module to hold simple bioinformatics course text file parsing class """ input_string = 'Input' output_string = 'Output' class Fileutil(object): """ Holds I/O values parsed from course text files for example problems Initialized with a text file, parses 'Input' and 'Output' values to object attributes. Args: filename (str): filename pointing to supplied text file Attributes: inputs (list): inputs from supplied text file outputs (list): expected outputs from supplied text file """ def __init__(self, filename): self.parse_file(filename) def parse_file(self, filename): """ Helper function parses course text files and returns the list of inputs and, if provided, the list of expected outputs If no input string is found all items before output string are returned to inputs, if neither input string nor output string is found then all items are returned to input string. Space delimited strings are separated. Args: filename (str): filename pointing to supplied text file Returns: inputs (list): inputs from supplied text file outputs (list): expected outputs from supplied text file """ with open(filename, 'r') as f: raw_text = f.read() raw_args = [s for i in raw_text.splitlines() for s in i.split(' ')] try: input_index = raw_args.index(INPUT_STRING) except ValueError: input_index = -1 try: output_index = raw_args.index(OUTPUT_STRING) except ValueError: output_index = len(raw_args) self.inputs = raw_args[input_index + 1:output_index] self.outputs = raw_args[output_index + 1:]
t = int(input()) def solve(): candy = 0 x = input() r, c = map(int, input().split()) a = [] for _ in range(r): a.append(input()) for i in range(r): for j in range(c - 2): if a[i][j] == '>' and a[i][j + 1] == 'o' and a[i][j + 2] == '<': candy += 1 for i in range(r - 2): for j in range(c): if a[i][j] == 'v' and a[i + 1][j] == 'o' and a[i + 2][j] == '^': candy += 1 print(candy) for _ in range(t): solve()
t = int(input()) def solve(): candy = 0 x = input() (r, c) = map(int, input().split()) a = [] for _ in range(r): a.append(input()) for i in range(r): for j in range(c - 2): if a[i][j] == '>' and a[i][j + 1] == 'o' and (a[i][j + 2] == '<'): candy += 1 for i in range(r - 2): for j in range(c): if a[i][j] == 'v' and a[i + 1][j] == 'o' and (a[i + 2][j] == '^'): candy += 1 print(candy) for _ in range(t): solve()
# Write_a_function # Created by JKChang # 14/08/2018, 10:58 # Tag: # Description: https://www.hackerrank.com/challenges/write-a-function/problem # In the Gregorian calendar three criteria must be taken into account to identify leap years: # The year can be evenly divided by 4, is a leap year, unless: # The year can be evenly divided by 100, it is NOT a leap year, unless: # The year is also evenly divisible by 400. Then it is a leap year. def is_leap(year): leap = False if year % 4 == 0 and year % 100 != 0 or year % 400 == 0: leap = True return leap year = int(input()) print(is_leap(year))
def is_leap(year): leap = False if year % 4 == 0 and year % 100 != 0 or year % 400 == 0: leap = True return leap year = int(input()) print(is_leap(year))
class NorthInDTO(object): def __init__(self): self.platformIp = None self.platformPort = None def getPlatformIp(self): return self.platformIp def setPlatformIp(self, platformIp): self.platformIp = platformIp def getPlatformPort(self): return self.platformPort def setPlatformPort(self, platformPort): self.platformPort = platformPort
class Northindto(object): def __init__(self): self.platformIp = None self.platformPort = None def get_platform_ip(self): return self.platformIp def set_platform_ip(self, platformIp): self.platformIp = platformIp def get_platform_port(self): return self.platformPort def set_platform_port(self, platformPort): self.platformPort = platformPort
h, m = map(int, input().split()) if h - 1 < 0: h = 23 m += 15 print(h,m) elif m - 45 < 0: h -= 1 m += 15 print(h, m) else: m -= 45 print(h, m)
(h, m) = map(int, input().split()) if h - 1 < 0: h = 23 m += 15 print(h, m) elif m - 45 < 0: h -= 1 m += 15 print(h, m) else: m -= 45 print(h, m)
class Settings(): """ This is just variables stored as properties of a class. It still needs (allthough void) .inputs(), .output() and .build() and defines whatever else is handy. (It is nice, as in this case, to separate constants from methods.) """ def inputs(self): return None def output(self): return None def build(self): pass query = 'felines'
class Settings: """ This is just variables stored as properties of a class. It still needs (allthough void) .inputs(), .output() and .build() and defines whatever else is handy. (It is nice, as in this case, to separate constants from methods.) """ def inputs(self): return None def output(self): return None def build(self): pass query = 'felines'
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Advent of Code 2020 Day 4, Part 2 """ class Passport: def __init__(self, byr=-1, iyr=-1, eyr=-1, hgt=-1, hfc=-1, ecl=-1, pid=-1, cid=-1): self.fields = { 'byr': byr, 'iyr': iyr, 'eyr': eyr, 'hgt': hgt, 'hcl': hfc, 'ecl': ecl, 'pid': pid, 'cid': cid, } def parse(line): fields = line.split() field_dict = {} for field in fields: key1, value1 = field.split(':') field_dict[key1] = value1 return field_dict def is_invalid(key, value): if key == 'byr' and (int(value) < 1920 or int(value) > 2002): return True if key == 'iyr' and (int(value) < 2010 or int(value) > 2020): return True if key == 'eyr' and (int(value) < 2020 or int(value) > 2030): return True if key == 'hgt': if value[-2:] == 'cm': if int(value[:-2]) < 150 or int(value[:-2]) > 193: return True elif value[-2:] == 'in': if int(value[:-2]) < 59 or int(value[:-2]) > 76: return True else: return True if key == 'hcl': if value[0] != '#': return True value = value[1:] if len(value) != 6: return True for c in value: if not (c.isdigit() or c in 'abcdef'): return True if key == 'ecl': if value not in ('amb', 'blu', 'brn', 'grn', 'gry', 'hzl', 'oth'): return True if key == 'pid': if len(value) != 9: return True return False def main(): with open('in.txt') as f: lines = f.readlines() counter = 0 total_passports = 0 passport = Passport() for line in lines: line = line.strip() if len(line) == 0: for key, value in passport.fields.items(): if key != 'cid' and value == -1 or is_invalid(key, value): counter += 1 break total_passports += 1 passport = Passport() d = parse(line) for key, value in d.items(): passport.fields[key] = value print(total_passports - counter) if __name__ == '__main__': main()
""" Advent of Code 2020 Day 4, Part 2 """ class Passport: def __init__(self, byr=-1, iyr=-1, eyr=-1, hgt=-1, hfc=-1, ecl=-1, pid=-1, cid=-1): self.fields = {'byr': byr, 'iyr': iyr, 'eyr': eyr, 'hgt': hgt, 'hcl': hfc, 'ecl': ecl, 'pid': pid, 'cid': cid} def parse(line): fields = line.split() field_dict = {} for field in fields: (key1, value1) = field.split(':') field_dict[key1] = value1 return field_dict def is_invalid(key, value): if key == 'byr' and (int(value) < 1920 or int(value) > 2002): return True if key == 'iyr' and (int(value) < 2010 or int(value) > 2020): return True if key == 'eyr' and (int(value) < 2020 or int(value) > 2030): return True if key == 'hgt': if value[-2:] == 'cm': if int(value[:-2]) < 150 or int(value[:-2]) > 193: return True elif value[-2:] == 'in': if int(value[:-2]) < 59 or int(value[:-2]) > 76: return True else: return True if key == 'hcl': if value[0] != '#': return True value = value[1:] if len(value) != 6: return True for c in value: if not (c.isdigit() or c in 'abcdef'): return True if key == 'ecl': if value not in ('amb', 'blu', 'brn', 'grn', 'gry', 'hzl', 'oth'): return True if key == 'pid': if len(value) != 9: return True return False def main(): with open('in.txt') as f: lines = f.readlines() counter = 0 total_passports = 0 passport = passport() for line in lines: line = line.strip() if len(line) == 0: for (key, value) in passport.fields.items(): if key != 'cid' and value == -1 or is_invalid(key, value): counter += 1 break total_passports += 1 passport = passport() d = parse(line) for (key, value) in d.items(): passport.fields[key] = value print(total_passports - counter) if __name__ == '__main__': main()
class Pessoa: def __init__(self, nome, email, celular): self.nome = nome self.email = email self.celular = celular def get_nome(self): return f"Caro(a) {self.nome}" def get_email(self): return(self.email) def get_celular(self): return(self.celular) def set_nome(self, nome): self.nome = nome def set_email(self, email): self.email = email def set_celular(self, celular): self.celular = celular class Aluno(Pessoa): def __init__(self, nome, email, celular, sigla, m, r, d=[]): super().__init__(nome, email, celular) self.sigla = sigla self.mensalidade = m self.ra = r self.disciplina = d def __repr__(self): return 'Aluno: %s | Curso: %s' %(self.nome,self.sigla) ###Getando os atrigutos (Devolvendo os valores deles) def get_sigla(self): return(f"{self.sigla[0]},{self.sigla[1]},{self.sigla[2]}") def get_mensalidade(self): return 'R$ %.2f' %self.mensalidade def get_ra(self): return self.ra def get_disciplina(self): return self.disciplina #### setando os atributos ( Dando valor a eles.) def set_disciplina(self, m): self.disciplina.append(m) def set_mensalidade(self, mensalidade): self.mensalidade = mensalidade def set_sigla(self, sigla): self.sigla = sigla def set_ra(self, ra): self.ra = ra class Professor(Pessoa): def __init__(self, nome, email, celular, v): super().__init__(nome, email, celular) self.valor_hora = float(v) def __repr__(self): return 'Prof: %s ' %(self.nome) def get_nome(self): return f"Mestre {self.nome}" def get_valor_hora(self): return self.valor_hora def set_valor_hora(self, valor): self.valor_hora = float(valor) aluno = Aluno("tuiu","[email protected]",11961015070,"ADS",690.00,1800648) print(aluno) print(aluno.get_nome()) aluno.set_nome("Ricardo Martins") print(aluno.get_nome()) aluno1 = Aluno("tuiu","[email protected]",11961015070,"ADS",690.00,1800648,["logica","matematica"]) print(aluno1.get_disciplina()) aluno1.set_disciplina("aleluia") print(aluno1.get_disciplina()) prof = Professor("ilana","[email protected]",156,150) print (prof) print(prof.get_nome())
class Pessoa: def __init__(self, nome, email, celular): self.nome = nome self.email = email self.celular = celular def get_nome(self): return f'Caro(a) {self.nome}' def get_email(self): return self.email def get_celular(self): return self.celular def set_nome(self, nome): self.nome = nome def set_email(self, email): self.email = email def set_celular(self, celular): self.celular = celular class Aluno(Pessoa): def __init__(self, nome, email, celular, sigla, m, r, d=[]): super().__init__(nome, email, celular) self.sigla = sigla self.mensalidade = m self.ra = r self.disciplina = d def __repr__(self): return 'Aluno: %s | Curso: %s' % (self.nome, self.sigla) def get_sigla(self): return f'{self.sigla[0]},{self.sigla[1]},{self.sigla[2]}' def get_mensalidade(self): return 'R$ %.2f' % self.mensalidade def get_ra(self): return self.ra def get_disciplina(self): return self.disciplina def set_disciplina(self, m): self.disciplina.append(m) def set_mensalidade(self, mensalidade): self.mensalidade = mensalidade def set_sigla(self, sigla): self.sigla = sigla def set_ra(self, ra): self.ra = ra class Professor(Pessoa): def __init__(self, nome, email, celular, v): super().__init__(nome, email, celular) self.valor_hora = float(v) def __repr__(self): return 'Prof: %s ' % self.nome def get_nome(self): return f'Mestre {self.nome}' def get_valor_hora(self): return self.valor_hora def set_valor_hora(self, valor): self.valor_hora = float(valor) aluno = aluno('tuiu', '[email protected]', 11961015070, 'ADS', 690.0, 1800648) print(aluno) print(aluno.get_nome()) aluno.set_nome('Ricardo Martins') print(aluno.get_nome()) aluno1 = aluno('tuiu', '[email protected]', 11961015070, 'ADS', 690.0, 1800648, ['logica', 'matematica']) print(aluno1.get_disciplina()) aluno1.set_disciplina('aleluia') print(aluno1.get_disciplina()) prof = professor('ilana', '[email protected]', 156, 150) print(prof) print(prof.get_nome())