content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
pre = None
i = 0
while i < len(nums):
if pre is None:
pre = nums[0]
i += 1
elif nums[i] == pre:
pre = nums[i]
nums.pop(i)
else:
pre = nums[i]
i += 1
return len(nums)
nums = [1, 1, 2]
s = Solution()
print(s.removeDuplicates(nums))
| class Solution(object):
def remove_duplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
pre = None
i = 0
while i < len(nums):
if pre is None:
pre = nums[0]
i += 1
elif nums[i] == pre:
pre = nums[i]
nums.pop(i)
else:
pre = nums[i]
i += 1
return len(nums)
nums = [1, 1, 2]
s = solution()
print(s.removeDuplicates(nums)) |
"""[0 - ally ranks, 1 - enemy ranks, 2 - stun skill chance or blight damage, 3 - move distance]"""
AttackSkills = {
# highwayman
'wicked_slice': [[1, 2, 3], [1, 2]],
'opened_vein': [[1, 2, 3], [1, 2]],
'pistol_shot': [[2, 3, 4], [2, 3, 4]],
'duelist_advance': [[2, 3, 4], [1, 2, 3], None, 1],
'point_blank_shot': [[1], [1], None, -1],
# crusader
'smite': [[1, 2], [1, 2]],
'stunning_blow': [[1, 2], [1, 2], [100, 110, 120, 130, 140]],
'holy_lance': [[3, 4], [2, 3, 4], None, 1],
'inspiring_cry': [[1, 2, 3, 4], [1, 2, 3, 4]],
# plague_doctor
'noxious_blast': [[2, 3, 4], [1, 2], [5, 5, 6, 6, 7]],
'plague_grenade': [[3, 4], [3, 4], [4, 4, 5, 5, 6]],
'blinding_gas': [[3, 4], [3, 4], [100, 110, 120, 130, 140]],
'incision': [[1, 2, 3], [1, 2]],
'battlefield_medicine': [[3, 4], [1, 2, 3, 4]],
'emboldening_vapors': [[3, 4], [1, 2, 3, 4]],
'disorienting_blast': [[2, 3, 4], [2, 3, 4], [100, 110, 120, 130, 140]],
# vestal
'judgement': [[3, 4], [1, 2, 3, 4]],
'dazzling_light': [[2, 3, 4], [1, 2, 3], [100, 110, 120, 130, 140]],
'divine_grace': [[3, 4], [1, 2, 3, 4]],
'gods_comfort': [[2, 3, 4], [0]], # divine comfort
'gods_hand': [[1, 2], [1, 2, 3]], # hand of light
'gods_illumination': [[1, 2, 3], [1, 2, 3, 4]], # illumination
# hellion
'wicked_hack': [[1, 2], [1, 2]],
'iron_swan': [[1], [4]],
'barbaric_yawp': [[1, 2], [1, 2], [110, 120, 130, 140, 150]], # yawp
'if_it_bleeds': [[1, 2, 3], [2, 3]],
# houndmaster
'hounds_rush': [[2, 3, 4], [1, 2, 3, 4]],
'howl': [[3, 4], [0]], # cry_havoc
'guard_dog': [[1, 2, 3, 4], [1, 2, 3, 4]],
'lick_wounds': [[2, 3, 4], [0]],
'hounds_harry': [[1, 2, 3, 4], [0]],
'blackjack': [[1, 2], [1, 2, 3], [110, 120, 130, 140, 150]],
# jester
'dirk_stab': [[1, 2, 3, 4], [1, 2, 3], None, 1],
'harvest': [[2, 3], [2, 3]],
'slice_off': [[2, 3], [2, 3]],
'battle_ballad': [[3, 4], [0]],
'inspiring_tune': [[3, 4], [1, 2, 3, 4]],
# man-at-arms
'crush': [[1, 2], [1, 2, 3]],
'rampart': [[1, 2, 3], [1, 2], [100, 110, 120, 130, 140], 1],
'defender': [[1, 2, 3, 4], [1, 2, 3, 4]],
'retribution': [[1, 2, 3], [1, 2, 3]],
'command': [[1, 2, 3, 4], [1, 2, 3, 4]],
'bolster': [[1, 2, 3, 4], [0]],
# occultist
'bloodlet': [[1, 2, 3], [1, 2, 3]], # sacrificial_stab
'abyssal_artillery': [[3, 4], [3, 4]],
'weakening_curse': [[1, 2, 3, 4], [1, 2, 3, 4]],
'wyrd_reconstruction': [[1, 2, 3, 4], [1, 2, 3, 4]],
'vulnerability_hex': [[1, 2, 3, 4], [1, 2, 3, 4]],
'hands_from_abyss': [[1, 2], [1, 2, 3], [110, 120, 130, 140, 150]], # hands_from_the_abyss
'daemons_pull': [[2, 3, 4], [3, 4]],
# shieldbreaker
'pierce': [[1, 2, 3], [1, 2, 3, 4], None, 1],
'break_guard': [[1, 2, 3, 4], [1, 2, 3, 4], None, 1], # puncture
'adders_kiss': [[1], [1, 2], None, -1],
'impale': [[1], [0], None, -1],
'expose': [[1, 2, 3], [1, 2, 3], None, -1],
'single_out': [[2, 3], [2, 3]], # captivate
'serpent_sway': [[1, 2, 3], [0], None, 1],
}
| """[0 - ally ranks, 1 - enemy ranks, 2 - stun skill chance or blight damage, 3 - move distance]"""
attack_skills = {'wicked_slice': [[1, 2, 3], [1, 2]], 'opened_vein': [[1, 2, 3], [1, 2]], 'pistol_shot': [[2, 3, 4], [2, 3, 4]], 'duelist_advance': [[2, 3, 4], [1, 2, 3], None, 1], 'point_blank_shot': [[1], [1], None, -1], 'smite': [[1, 2], [1, 2]], 'stunning_blow': [[1, 2], [1, 2], [100, 110, 120, 130, 140]], 'holy_lance': [[3, 4], [2, 3, 4], None, 1], 'inspiring_cry': [[1, 2, 3, 4], [1, 2, 3, 4]], 'noxious_blast': [[2, 3, 4], [1, 2], [5, 5, 6, 6, 7]], 'plague_grenade': [[3, 4], [3, 4], [4, 4, 5, 5, 6]], 'blinding_gas': [[3, 4], [3, 4], [100, 110, 120, 130, 140]], 'incision': [[1, 2, 3], [1, 2]], 'battlefield_medicine': [[3, 4], [1, 2, 3, 4]], 'emboldening_vapors': [[3, 4], [1, 2, 3, 4]], 'disorienting_blast': [[2, 3, 4], [2, 3, 4], [100, 110, 120, 130, 140]], 'judgement': [[3, 4], [1, 2, 3, 4]], 'dazzling_light': [[2, 3, 4], [1, 2, 3], [100, 110, 120, 130, 140]], 'divine_grace': [[3, 4], [1, 2, 3, 4]], 'gods_comfort': [[2, 3, 4], [0]], 'gods_hand': [[1, 2], [1, 2, 3]], 'gods_illumination': [[1, 2, 3], [1, 2, 3, 4]], 'wicked_hack': [[1, 2], [1, 2]], 'iron_swan': [[1], [4]], 'barbaric_yawp': [[1, 2], [1, 2], [110, 120, 130, 140, 150]], 'if_it_bleeds': [[1, 2, 3], [2, 3]], 'hounds_rush': [[2, 3, 4], [1, 2, 3, 4]], 'howl': [[3, 4], [0]], 'guard_dog': [[1, 2, 3, 4], [1, 2, 3, 4]], 'lick_wounds': [[2, 3, 4], [0]], 'hounds_harry': [[1, 2, 3, 4], [0]], 'blackjack': [[1, 2], [1, 2, 3], [110, 120, 130, 140, 150]], 'dirk_stab': [[1, 2, 3, 4], [1, 2, 3], None, 1], 'harvest': [[2, 3], [2, 3]], 'slice_off': [[2, 3], [2, 3]], 'battle_ballad': [[3, 4], [0]], 'inspiring_tune': [[3, 4], [1, 2, 3, 4]], 'crush': [[1, 2], [1, 2, 3]], 'rampart': [[1, 2, 3], [1, 2], [100, 110, 120, 130, 140], 1], 'defender': [[1, 2, 3, 4], [1, 2, 3, 4]], 'retribution': [[1, 2, 3], [1, 2, 3]], 'command': [[1, 2, 3, 4], [1, 2, 3, 4]], 'bolster': [[1, 2, 3, 4], [0]], 'bloodlet': [[1, 2, 3], [1, 2, 3]], 'abyssal_artillery': [[3, 4], [3, 4]], 'weakening_curse': [[1, 2, 3, 4], [1, 2, 3, 4]], 'wyrd_reconstruction': [[1, 2, 3, 4], [1, 2, 3, 4]], 'vulnerability_hex': [[1, 2, 3, 4], [1, 2, 3, 4]], 'hands_from_abyss': [[1, 2], [1, 2, 3], [110, 120, 130, 140, 150]], 'daemons_pull': [[2, 3, 4], [3, 4]], 'pierce': [[1, 2, 3], [1, 2, 3, 4], None, 1], 'break_guard': [[1, 2, 3, 4], [1, 2, 3, 4], None, 1], 'adders_kiss': [[1], [1, 2], None, -1], 'impale': [[1], [0], None, -1], 'expose': [[1, 2, 3], [1, 2, 3], None, -1], 'single_out': [[2, 3], [2, 3]], 'serpent_sway': [[1, 2, 3], [0], None, 1]} |
class AbstractCredentialValidator(object):
"""An abstract CredentialValidator, when inherited it must validate self.user credentials
agains self.action"""
def __init__(self, action, user):
self.action = action
self.user = user
def updatePDUWithUserDefaults(self, PDU):
"""Must update PDU.params from User credential defaults whenever a
PDU.params item is None"""
raise NotImplementedError()
def validate(self):
"Must validate requests through Authorizations and ValueFilters credential check"
raise NotImplementedError()
| class Abstractcredentialvalidator(object):
"""An abstract CredentialValidator, when inherited it must validate self.user credentials
agains self.action"""
def __init__(self, action, user):
self.action = action
self.user = user
def update_pdu_with_user_defaults(self, PDU):
"""Must update PDU.params from User credential defaults whenever a
PDU.params item is None"""
raise not_implemented_error()
def validate(self):
"""Must validate requests through Authorizations and ValueFilters credential check"""
raise not_implemented_error() |
def add_elem(lst,ele):
lst.append(ele)
my_lst=[1,2,3]
print(my_lst)
add_elem(my_lst,5)
print(my_lst)
| def add_elem(lst, ele):
lst.append(ele)
my_lst = [1, 2, 3]
print(my_lst)
add_elem(my_lst, 5)
print(my_lst) |
print("Welcome to the GPA calculator")
print("Please enter all your letter grades, one per line.")
print("Enter a blank line to designate the end.")
# map from letter grade to point value
points = {
'A+': 4.0,
'A': 3.8,
'A-': 3.67,
'B+': 3.33,
'B': 3.0,
'B-': 2.67,
'C+': 2.33,
'C': 2.0,
'C-': 1.67,
'D': 1.0,
'F': 0.0,
}
num_courses = 0
total_points = 0
done = False
while not done:
# readline from user input
grade = input()
if grade == '': # empty line was entered
done = True
elif grade not in points:
print("Unknow grade '{0}' being ignored".format(grade))
else:
num_courses += 1
total_points += points[grade]
if num_courses > 0: # avoid division by
print("Your GPA is {0:.3}".format(total_points / num_courses)) | print('Welcome to the GPA calculator')
print('Please enter all your letter grades, one per line.')
print('Enter a blank line to designate the end.')
points = {'A+': 4.0, 'A': 3.8, 'A-': 3.67, 'B+': 3.33, 'B': 3.0, 'B-': 2.67, 'C+': 2.33, 'C': 2.0, 'C-': 1.67, 'D': 1.0, 'F': 0.0}
num_courses = 0
total_points = 0
done = False
while not done:
grade = input()
if grade == '':
done = True
elif grade not in points:
print("Unknow grade '{0}' being ignored".format(grade))
else:
num_courses += 1
total_points += points[grade]
if num_courses > 0:
print('Your GPA is {0:.3}'.format(total_points / num_courses)) |
class Logger(object):
def log(self, str):
print("Log: {}".format(str))
def error(self, str):
print("Error: {}".format(str))
def message(self, str):
print("Message: {}".format(str))
| class Logger(object):
def log(self, str):
print('Log: {}'.format(str))
def error(self, str):
print('Error: {}'.format(str))
def message(self, str):
print('Message: {}'.format(str)) |
FAIL_ON_ANY = 'any'
FAIL_ON_NEW = 'new'
# Identifies that a comment came from Lintly. This is used to aid in automatically
# deleting old PR comments/reviews. This is valid Markdown that is hidden from
# users in GitHub and GitLab.
LINTLY_IDENTIFIER = '<!-- Automatically posted by Lintly -->'
| fail_on_any = 'any'
fail_on_new = 'new'
lintly_identifier = '<!-- Automatically posted by Lintly -->' |
#
# PySNMP MIB module ADSL-LINE-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADSL-LINE-EXT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:13:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
adslLineConfProfileEntry, adslAturPerfDataEntry, adslLineAlarmConfProfileEntry, adslLineEntry, adslAturIntervalEntry, adslAtucPerfDataEntry, adslAtucIntervalEntry, adslMIB = mibBuilder.importSymbols("ADSL-LINE-MIB", "adslLineConfProfileEntry", "adslAturPerfDataEntry", "adslLineAlarmConfProfileEntry", "adslLineEntry", "adslAturIntervalEntry", "adslAtucPerfDataEntry", "adslAtucIntervalEntry", "adslMIB")
AdslPerfPrevDayCount, AdslPerfCurrDayCount = mibBuilder.importSymbols("ADSL-TC-MIB", "AdslPerfPrevDayCount", "AdslPerfCurrDayCount")
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint")
PerfCurrentCount, PerfIntervalCount = mibBuilder.importSymbols("PerfHist-TC-MIB", "PerfCurrentCount", "PerfIntervalCount")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
Counter32, Bits, MibIdentifier, TimeTicks, ModuleIdentity, Integer32, IpAddress, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, iso, NotificationType, Counter64, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Bits", "MibIdentifier", "TimeTicks", "ModuleIdentity", "Integer32", "IpAddress", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "iso", "NotificationType", "Counter64", "Gauge32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
adslExtMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 10, 94, 3))
adslExtMIB.setRevisions(('2002-12-10 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: adslExtMIB.setRevisionsDescriptions(('Initial Version, published as RFC 3440. This MIB module supplements the ADSL-LINE-MIB [RFC2662].',))
if mibBuilder.loadTexts: adslExtMIB.setLastUpdated('200212100000Z')
if mibBuilder.loadTexts: adslExtMIB.setOrganization('IETF ADSL MIB Working Group')
if mibBuilder.loadTexts: adslExtMIB.setContactInfo(' Faye Ly Pedestal Networks 6503 Dumbarton Circle, Fremont, CA 94555 Tel: +1 510-578-0158 Fax: +1 510-744-5152 E-Mail: faye@pedestalnetworks.com Gregory Bathrick Nokia Networks 2235 Mercury Way, Fax: +1 707-535-7300 E-Mail: greg.bathrick@nokia.com General Discussion:adslmib@ietf.org To Subscribe: https://www1.ietf.org/mailman/listinfo/adslmib Archive: https://www1.ietf.org/mailman/listinfo/adslmib ')
if mibBuilder.loadTexts: adslExtMIB.setDescription('Copyright (C) The Internet Society (2002). This version of this MIB module is part of RFC 3440; see the RFC itself for full legal notices. This MIB Module is a supplement to the ADSL-LINE-MIB [RFC2662].')
adslExtMibObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1))
class AdslTransmissionModeType(TextualConvention, Bits):
description = 'A set of ADSL line transmission modes, with one bit per mode. The notes (F) and (L) denote Full-Rate and G.Lite respectively: Bit 00 : Regional Std. (ANSI T1.413) (F) Bit 01 : Regional Std. (ETSI DTS/TM06006) (F) Bit 02 : G.992.1 POTS non-overlapped (F) Bit 03 : G.992.1 POTS overlapped (F) Bit 04 : G.992.1 ISDN non-overlapped (F) Bit 05 : G.992.1 ISDN overlapped (F) Bit 06 : G.992.1 TCM-ISDN non-overlapped (F) Bit 07 : G.992.1 TCM-ISDN overlapped (F) Bit 08 : G.992.2 POTS non-overlapped (L) Bit 09 : G.992.2 POTS overlapped (L) Bit 10 : G.992.2 with TCM-ISDN non-overlapped (L) Bit 11 : G.992.2 with TCM-ISDN overlapped (L) Bit 12 : G.992.1 TCM-ISDN symmetric (F) '
status = 'current'
namedValues = NamedValues(("ansit1413", 0), ("etsi", 1), ("q9921PotsNonOverlapped", 2), ("q9921PotsOverlapped", 3), ("q9921IsdnNonOverlapped", 4), ("q9921isdnOverlapped", 5), ("q9921tcmIsdnNonOverlapped", 6), ("q9921tcmIsdnOverlapped", 7), ("q9922potsNonOverlapeed", 8), ("q9922potsOverlapped", 9), ("q9922tcmIsdnNonOverlapped", 10), ("q9922tcmIsdnOverlapped", 11), ("q9921tcmIsdnSymmetric", 12))
adslLineExtTable = MibTable((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17), )
if mibBuilder.loadTexts: adslLineExtTable.setStatus('current')
if mibBuilder.loadTexts: adslLineExtTable.setDescription("This table is an extension of RFC 2662. It contains ADSL line configuration and monitoring information. This includes the ADSL line's capabilities and actual ADSL transmission system.")
adslLineExtEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1), )
adslLineEntry.registerAugmentions(("ADSL-LINE-EXT-MIB", "adslLineExtEntry"))
adslLineExtEntry.setIndexNames(*adslLineEntry.getIndexNames())
if mibBuilder.loadTexts: adslLineExtEntry.setStatus('current')
if mibBuilder.loadTexts: adslLineExtEntry.setDescription('An entry extends the adslLineEntry defined in [RFC2662]. Each entry corresponds to an ADSL line.')
adslLineTransAtucCap = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 1), AdslTransmissionModeType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adslLineTransAtucCap.setReference('Section 7.3.2 ITU G.997.1')
if mibBuilder.loadTexts: adslLineTransAtucCap.setStatus('current')
if mibBuilder.loadTexts: adslLineTransAtucCap.setDescription('The transmission modes, represented by a bitmask that the ATU-C is capable of supporting. The modes available are limited by the design of the equipment.')
adslLineTransAtucConfig = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 2), AdslTransmissionModeType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: adslLineTransAtucConfig.setReference('Section 7.3.2 ITU G.997.1')
if mibBuilder.loadTexts: adslLineTransAtucConfig.setStatus('current')
if mibBuilder.loadTexts: adslLineTransAtucConfig.setDescription("The transmission modes, represented by a bitmask, currently enabled by the ATU-C. The manager can only set those modes that are supported by the ATU-C. An ATU-C's supported modes are provided by AdslLineTransAtucCap.")
adslLineTransAtucActual = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 3), AdslTransmissionModeType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adslLineTransAtucActual.setReference('Section 7.3.2 ITU G.997.1 ')
if mibBuilder.loadTexts: adslLineTransAtucActual.setStatus('current')
if mibBuilder.loadTexts: adslLineTransAtucActual.setDescription("The actual transmission mode of the ATU-C. During ADSL line initialization, the ADSL Transceiver Unit - Remote terminal end (ATU-R) will determine the mode used for the link. This value will be limited a single transmission mode that is a subset of those modes enabled by the ATU-C and denoted by adslLineTransAtucConfig. After an initialization has occurred, its mode is saved as the 'Current' mode and is persistence should the link go down. This object returns 0 (i.e. BITS with no mode bit set) if the mode is not known.")
adslLineGlitePowerState = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("l0", 2), ("l1", 3), ("l3", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adslLineGlitePowerState.setStatus('current')
if mibBuilder.loadTexts: adslLineGlitePowerState.setDescription('The value of this object specifies the power state of this interface. L0 is power on, L1 is power on but reduced and L3 is power off. Power state cannot be configured by an operator but it can be viewed via the ifOperStatus object for the managed ADSL interface. The value of the object ifOperStatus is set to down(2) if the ADSL interface is in power state L3 and is set to up(1) if the ADSL line interface is in power state L0 or L1. If the object adslLineTransAtucActual is set to a G.992.2 (G.Lite)-type transmission mode, the value of this object will be one of the valid power states: L0(2), L1(3), or L3(4). Otherwise, its value will be none(1).')
adslLineConfProfileDualLite = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 5), SnmpAdminString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: adslLineConfProfileDualLite.setReference('Section 5.4 Profiles, RFC 2662')
if mibBuilder.loadTexts: adslLineConfProfileDualLite.setStatus('current')
if mibBuilder.loadTexts: adslLineConfProfileDualLite.setDescription("This object extends the definition an ADSL line and associated channels (when applicable) for cases when it is configured in dual mode, and operating in a G.Lite-type mode as denoted by adslLineTransAtucActual. Dual mode exists when the object, adslLineTransAtucConfig, is configured with one or more full-rate modes and one or more G.Lite modes simultaneously. When 'dynamic' profiles are implemented, the value of object is equal to the index of the applicable row in the ADSL Line Configuration Profile Table, AdslLineConfProfileTable defined in ADSL-MIB [RFC2662]. In the case when dual-mode has not been enabled, the value of the object will be equal to the value of the object adslLineConfProfile [RFC2662]. When `static' profiles are implemented, in much like the case of the object, adslLineConfProfileName [RFC2662], this object's value will need to algorithmically represent the characteristics of the line. In this case, the value of the line's ifIndex plus a value indicating the line mode type (e.g., G.Lite, Full-rate) will be used. Therefore, the profile's name is a string concatenating the ifIndex and one of the follow values: Full or Lite. This string will be fixed-length (i.e., 14) with leading zero(s). For example, the profile name for ifIndex that equals '15' and is a full rate line, it will be '0000000015Full'.")
adslAtucPerfDataExtTable = MibTable((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18), )
if mibBuilder.loadTexts: adslAtucPerfDataExtTable.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfDataExtTable.setDescription('This table extends adslAtucPerfDataTable [RFC2662] with additional ADSL physical line counter information such as unavailable seconds-line and severely errored seconds-line.')
adslAtucPerfDataExtEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1), )
adslAtucPerfDataEntry.registerAugmentions(("ADSL-LINE-EXT-MIB", "adslAtucPerfDataExtEntry"))
adslAtucPerfDataExtEntry.setIndexNames(*adslAtucPerfDataEntry.getIndexNames())
if mibBuilder.loadTexts: adslAtucPerfDataExtEntry.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfDataExtEntry.setDescription('An entry extends the adslAtucPerfDataEntry defined in [RFC2662]. Each entry corresponds to an ADSL line.')
adslAtucPerfStatFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 1), Counter32()).setUnits('line retrains').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfStatFastR.setReference('ITU G.997.1 Section 7.4.15.1 ')
if mibBuilder.loadTexts: adslAtucPerfStatFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfStatFastR.setDescription('The value of this object reports the count of the number of fast line bs since last agent reset.')
adslAtucPerfStatFailedFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 2), Counter32()).setUnits('line retrains').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfStatFailedFastR.setReference('ITU G.997.1 Section 7.4.15.2 ')
if mibBuilder.loadTexts: adslAtucPerfStatFailedFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfStatFailedFastR.setDescription('The value of this object reports the count of the number of failed fast line retrains since last agent reset.')
adslAtucPerfStatSesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 3), Counter32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfStatSesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts: adslAtucPerfStatSesL.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfStatSesL.setDescription('The value of this object reports the count of the number of severely errored seconds-line since last agent reset.')
adslAtucPerfStatUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 4), Counter32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfStatUasL.setReference('ITU G.997.1 Section 7.2.1.1.9 ')
if mibBuilder.loadTexts: adslAtucPerfStatUasL.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfStatUasL.setDescription('The value of this object reports the count of the number of unavailable seconds-line since last agent reset.')
adslAtucPerfCurr15MinFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 5), PerfCurrentCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfCurr15MinFastR.setReference('ITU G.997.1 Section 7.4.15.1 ')
if mibBuilder.loadTexts: adslAtucPerfCurr15MinFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfCurr15MinFastR.setDescription('For the current 15-minute interval, adslAtucPerfCurr15MinFastR reports the current number of seconds during which there have been fast retrains.')
adslAtucPerfCurr15MinFailedFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 6), PerfCurrentCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfCurr15MinFailedFastR.setReference('ITU G.997.1 Section 7.4.15.2 ')
if mibBuilder.loadTexts: adslAtucPerfCurr15MinFailedFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfCurr15MinFailedFastR.setDescription('For the current 15-minute interval, adslAtucPerfCurr15MinFailedFastR reports the current number of seconds during which there have been failed fast retrains.')
adslAtucPerfCurr15MinSesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 7), PerfCurrentCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfCurr15MinSesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts: adslAtucPerfCurr15MinSesL.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfCurr15MinSesL.setDescription('For the current 15-minute interval, adslAtucPerfCurr15MinSesL reports the current number of seconds during which there have been severely errored seconds-line.')
adslAtucPerfCurr15MinUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 8), PerfCurrentCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfCurr15MinUasL.setReference('ITU G.997.1 Section 7.2.1.1.9 ')
if mibBuilder.loadTexts: adslAtucPerfCurr15MinUasL.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfCurr15MinUasL.setDescription('For the current 15-minute interval, adslAtucPerfCurr15MinUasL reports the current number of seconds during which there have been unavailable seconds-line.')
adslAtucPerfCurr1DayFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 9), AdslPerfCurrDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfCurr1DayFastR.setReference('ITU G.997.1 Section 7.4.15.1 ')
if mibBuilder.loadTexts: adslAtucPerfCurr1DayFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfCurr1DayFastR.setDescription('For the current day as measured by adslAtucPerfCurr1DayTimeElapsed [RFC2662], adslAtucPerfCurr1DayFastR reports the number of seconds during which there have been fast retrains.')
adslAtucPerfCurr1DayFailedFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 10), AdslPerfCurrDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfCurr1DayFailedFastR.setReference('ITU G.997.1 Section 7.4.15.2 ')
if mibBuilder.loadTexts: adslAtucPerfCurr1DayFailedFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfCurr1DayFailedFastR.setDescription('For the current day as measured by adslAtucPerfCurr1DayTimeElapsed [RFC2662], adslAtucPerfCurr1DayFailedFastR reports the number of seconds during which there have been failed fast retrains.')
adslAtucPerfCurr1DaySesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 11), AdslPerfCurrDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfCurr1DaySesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts: adslAtucPerfCurr1DaySesL.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfCurr1DaySesL.setDescription('For the current day as measured by adslAtucPerfCurr1DayTimeElapsed [RFC2662], adslAtucPerfCurr1DaySesL reports the number of seconds during which there have been severely errored seconds-line.')
adslAtucPerfCurr1DayUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 12), AdslPerfCurrDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfCurr1DayUasL.setReference('ITU G.997.1 Section 7.2.1.1.9 ')
if mibBuilder.loadTexts: adslAtucPerfCurr1DayUasL.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfCurr1DayUasL.setDescription('For the current day as measured by adslAtucPerfCurr1DayTimeElapsed [RFC2662], adslAtucPerfCurr1DayUasL reports the number of seconds during which there have been unavailable seconds-line.')
adslAtucPerfPrev1DayFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 13), AdslPerfPrevDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfPrev1DayFastR.setReference('ITU G.997.1 Section 7.4.15.1 ')
if mibBuilder.loadTexts: adslAtucPerfPrev1DayFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfPrev1DayFastR.setDescription('For the previous day, adslAtucPerfPrev1DayFastR reports the number of seconds during which there were fast retrains.')
adslAtucPerfPrev1DayFailedFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 14), AdslPerfPrevDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfPrev1DayFailedFastR.setReference('ITU G.997.1 Section 7.4.15.2 ')
if mibBuilder.loadTexts: adslAtucPerfPrev1DayFailedFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfPrev1DayFailedFastR.setDescription('For the previous day, adslAtucPerfPrev1DayFailedFastR reports the number of seconds during which there were failed fast retrains.')
adslAtucPerfPrev1DaySesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 15), AdslPerfPrevDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfPrev1DaySesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts: adslAtucPerfPrev1DaySesL.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfPrev1DaySesL.setDescription('For the previous day, adslAtucPerfPrev1DaySesL reports the number of seconds during which there were severely errored seconds-line.')
adslAtucPerfPrev1DayUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 16), AdslPerfPrevDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucPerfPrev1DayUasL.setReference('ITU G.997.1 Section 7.2.1.1.9 ')
if mibBuilder.loadTexts: adslAtucPerfPrev1DayUasL.setStatus('current')
if mibBuilder.loadTexts: adslAtucPerfPrev1DayUasL.setDescription('For the previous day, adslAtucPerfPrev1DayUasL reports the number of seconds during which there were unavailable seconds-line.')
adslAtucIntervalExtTable = MibTable((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19), )
if mibBuilder.loadTexts: adslAtucIntervalExtTable.setStatus('current')
if mibBuilder.loadTexts: adslAtucIntervalExtTable.setDescription("This table provides one row for each ATU-C performance data collection interval for ADSL physical interfaces whose IfEntries' ifType is equal to adsl(94).")
adslAtucIntervalExtEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1), )
adslAtucIntervalEntry.registerAugmentions(("ADSL-LINE-EXT-MIB", "adslAtucIntervalExtEntry"))
adslAtucIntervalExtEntry.setIndexNames(*adslAtucIntervalEntry.getIndexNames())
if mibBuilder.loadTexts: adslAtucIntervalExtEntry.setStatus('current')
if mibBuilder.loadTexts: adslAtucIntervalExtEntry.setDescription('An entry in the adslAtucIntervalExtTable.')
adslAtucIntervalFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1, 1), PerfIntervalCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucIntervalFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucIntervalFastR.setDescription('For the current interval, adslAtucIntervalFastR reports the current number of seconds during which there have been fast retrains.')
adslAtucIntervalFailedFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1, 2), PerfIntervalCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucIntervalFailedFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucIntervalFailedFastR.setDescription('For the each interval, adslAtucIntervalFailedFastR reports the number of seconds during which there have been failed fast retrains.')
adslAtucIntervalSesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1, 3), PerfIntervalCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucIntervalSesL.setStatus('current')
if mibBuilder.loadTexts: adslAtucIntervalSesL.setDescription('For the each interval, adslAtucIntervalSesL reports the number of seconds during which there have been severely errored seconds-line.')
adslAtucIntervalUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1, 4), PerfIntervalCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAtucIntervalUasL.setStatus('current')
if mibBuilder.loadTexts: adslAtucIntervalUasL.setDescription('For the each interval, adslAtucIntervalUasL reports the number of seconds during which there have been unavailable seconds-line.')
adslAturPerfDataExtTable = MibTable((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20), )
if mibBuilder.loadTexts: adslAturPerfDataExtTable.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfDataExtTable.setDescription('This table contains ADSL physical line counters not defined in the adslAturPerfDataTable from the ADSL-LINE-MIB [RFC2662].')
adslAturPerfDataExtEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1), )
adslAturPerfDataEntry.registerAugmentions(("ADSL-LINE-EXT-MIB", "adslAturPerfDataExtEntry"))
adslAturPerfDataExtEntry.setIndexNames(*adslAturPerfDataEntry.getIndexNames())
if mibBuilder.loadTexts: adslAturPerfDataExtEntry.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfDataExtEntry.setDescription('An entry extends the adslAturPerfDataEntry defined in [RFC2662]. Each entry corresponds to an ADSL line.')
adslAturPerfStatSesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 1), Counter32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturPerfStatSesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts: adslAturPerfStatSesL.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfStatSesL.setDescription('The value of this object reports the count of severely errored second-line since the last agent reset.')
adslAturPerfStatUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 2), Counter32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturPerfStatUasL.setReference('ITU G.997.1 Section 7.2.1.2.9 ')
if mibBuilder.loadTexts: adslAturPerfStatUasL.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfStatUasL.setDescription('The value of this object reports the count of unavailable seconds-line since the last agent reset.')
adslAturPerfCurr15MinSesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 3), PerfCurrentCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturPerfCurr15MinSesL.setReference('ITU G.997.1 Section 7.2.1.2.7 ')
if mibBuilder.loadTexts: adslAturPerfCurr15MinSesL.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfCurr15MinSesL.setDescription('For the current 15-minute interval, adslAturPerfCurr15MinSesL reports the current number of seconds during which there have been severely errored seconds-line.')
adslAturPerfCurr15MinUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 4), PerfCurrentCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturPerfCurr15MinUasL.setReference('ITU G.997.1 Section 7.2.1.2.9 ')
if mibBuilder.loadTexts: adslAturPerfCurr15MinUasL.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfCurr15MinUasL.setDescription('For the current 15-minute interval, adslAturPerfCurr15MinUasL reports the current number of seconds during which there have been available seconds-line.')
adslAturPerfCurr1DaySesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 5), AdslPerfCurrDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturPerfCurr1DaySesL.setReference('ITU G.997.1 Section 7.2.1.2.7 ')
if mibBuilder.loadTexts: adslAturPerfCurr1DaySesL.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfCurr1DaySesL.setDescription('For the current day as measured by adslAturPerfCurr1DayTimeElapsed [RFC2662], adslAturPerfCurr1DaySesL reports the number of seconds during which there have been severely errored seconds-line.')
adslAturPerfCurr1DayUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 6), AdslPerfCurrDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturPerfCurr1DayUasL.setReference('ITU G.997.1 Section 7.2.1.2.9 ')
if mibBuilder.loadTexts: adslAturPerfCurr1DayUasL.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfCurr1DayUasL.setDescription('For the current day as measured by adslAturPerfCurr1DayTimeElapsed [RFC2662], adslAturPerfCurr1DayUasL reports the number of seconds during which there have been unavailable seconds-line.')
adslAturPerfPrev1DaySesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 7), AdslPerfPrevDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturPerfPrev1DaySesL.setReference('ITU G.997.1 Section 7.2.1.2.7 ')
if mibBuilder.loadTexts: adslAturPerfPrev1DaySesL.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfPrev1DaySesL.setDescription('For the previous day, adslAturPerfPrev1DaySesL reports the number of seconds during which there were severely errored seconds-line.')
adslAturPerfPrev1DayUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 8), AdslPerfPrevDayCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturPerfPrev1DayUasL.setReference('ITU G.997.1 Section 7.2.1.2.9 ')
if mibBuilder.loadTexts: adslAturPerfPrev1DayUasL.setStatus('current')
if mibBuilder.loadTexts: adslAturPerfPrev1DayUasL.setDescription('For the previous day, adslAturPerfPrev1DayUasL reports the number of seconds during which there were severely errored seconds-line.')
adslAturIntervalExtTable = MibTable((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 21), )
if mibBuilder.loadTexts: adslAturIntervalExtTable.setStatus('current')
if mibBuilder.loadTexts: adslAturIntervalExtTable.setDescription("This table provides one row for each ATU-R performance data collection interval for ADSL physical interfaces whose IfEntries' ifType is equal to adsl(94).")
adslAturIntervalExtEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 21, 1), )
adslAturIntervalEntry.registerAugmentions(("ADSL-LINE-EXT-MIB", "adslAturIntervalExtEntry"))
adslAturIntervalExtEntry.setIndexNames(*adslAturIntervalEntry.getIndexNames())
if mibBuilder.loadTexts: adslAturIntervalExtEntry.setStatus('current')
if mibBuilder.loadTexts: adslAturIntervalExtEntry.setDescription('An entry in the adslAturIntervalExtTable.')
adslAturIntervalSesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 21, 1, 1), PerfIntervalCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturIntervalSesL.setStatus('current')
if mibBuilder.loadTexts: adslAturIntervalSesL.setDescription('For the each interval, adslAturIntervalSesL reports the number of seconds during which there have been severely errored seconds-line.')
adslAturIntervalUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 21, 1, 2), PerfIntervalCount()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: adslAturIntervalUasL.setStatus('current')
if mibBuilder.loadTexts: adslAturIntervalUasL.setDescription('For the each interval, adslAturIntervalUasL reports the number of seconds during which there have been unavailable seconds-line.')
adslConfProfileExtTable = MibTable((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 22), )
if mibBuilder.loadTexts: adslConfProfileExtTable.setStatus('current')
if mibBuilder.loadTexts: adslConfProfileExtTable.setDescription('The adslConfProfileExtTable extends the ADSL line profile configuration information in the adslLineConfProfileTable from the ADSL-LINE-MIB [RFC2662] by adding the ability to configure the ADSL physical line mode.')
adslConfProfileExtEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 22, 1), )
adslLineConfProfileEntry.registerAugmentions(("ADSL-LINE-EXT-MIB", "adslConfProfileExtEntry"))
adslConfProfileExtEntry.setIndexNames(*adslLineConfProfileEntry.getIndexNames())
if mibBuilder.loadTexts: adslConfProfileExtEntry.setStatus('current')
if mibBuilder.loadTexts: adslConfProfileExtEntry.setDescription('An entry extends the adslLineConfProfileEntry defined in [RFC2662]. Each entry corresponds to an ADSL line profile.')
adslConfProfileLineType = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 22, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("noChannel", 1), ("fastOnly", 2), ("interleavedOnly", 3), ("fastOrInterleaved", 4), ("fastAndInterleaved", 5))).clone('fastOnly')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: adslConfProfileLineType.setStatus('current')
if mibBuilder.loadTexts: adslConfProfileLineType.setDescription('This object is used to configure the ADSL physical line mode. It has following valid values: noChannel(1), when no channels exist. fastOnly(2), when only fast channel exists. interleavedOnly(3), when only interleaved channel exist. fastOrInterleaved(4), when either fast or interleaved channels can exist, but only one at any time. fastAndInterleaved(5), when both the fast channel and the interleaved channel exist. In the case when no value has been set, the default Value is noChannel(1). ')
adslAlarmConfProfileExtTable = MibTable((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23), )
if mibBuilder.loadTexts: adslAlarmConfProfileExtTable.setStatus('current')
if mibBuilder.loadTexts: adslAlarmConfProfileExtTable.setDescription('This table extends the adslLineAlarmConfProfileTable and provides threshold parameters for all the counters defined in this MIB module.')
adslAlarmConfProfileExtEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1), )
adslLineAlarmConfProfileEntry.registerAugmentions(("ADSL-LINE-EXT-MIB", "adslAlarmConfProfileExtEntry"))
adslAlarmConfProfileExtEntry.setIndexNames(*adslLineAlarmConfProfileEntry.getIndexNames())
if mibBuilder.loadTexts: adslAlarmConfProfileExtEntry.setStatus('current')
if mibBuilder.loadTexts: adslAlarmConfProfileExtEntry.setDescription('An entry extends the adslLineAlarmConfProfileTable defined in [RFC2662]. Each entry corresponds to an ADSL alarm profile.')
adslAtucThreshold15MinFailedFastR = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 900))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: adslAtucThreshold15MinFailedFastR.setStatus('current')
if mibBuilder.loadTexts: adslAtucThreshold15MinFailedFastR.setDescription("The first time the value of the corresponding instance of adslAtucPerfCurr15MinFailedFastR reaches or exceeds this value within a given 15-minute performance data collection period, an adslAtucFailedFastRThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adslAtucThreshold15MinSesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 900))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: adslAtucThreshold15MinSesL.setStatus('current')
if mibBuilder.loadTexts: adslAtucThreshold15MinSesL.setDescription("The first time the value of the corresponding instance of adslAtucPerf15MinSesL reaches or exceeds this value within a given 15-minute performance data collection period, an adslAtucSesLThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adslAtucThreshold15MinUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 900))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: adslAtucThreshold15MinUasL.setStatus('current')
if mibBuilder.loadTexts: adslAtucThreshold15MinUasL.setDescription("The first time the value of the corresponding instance of adslAtucPerf15MinUasL reaches or exceeds this value within a given 15-minute performance data collection period, an adslAtucUasLThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adslAturThreshold15MinSesL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 900))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: adslAturThreshold15MinSesL.setStatus('current')
if mibBuilder.loadTexts: adslAturThreshold15MinSesL.setDescription("The first time the value of the corresponding instance of adslAturPerf15MinSesL reaches or exceeds this value within a given 15-minute performance data collection period, an adslAturSesLThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adslAturThreshold15MinUasL = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 900))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: adslAturThreshold15MinUasL.setStatus('current')
if mibBuilder.loadTexts: adslAturThreshold15MinUasL.setDescription("The first time the value of the corresponding instance of adslAturPerf15MinUasL reaches or exceeds this value within a given 15-minute performance data collection period, an adslAturUasLThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adslExtTraps = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24))
adslExtAtucTraps = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1))
adslExtAtucTrapsPrefix = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1, 0))
adslAtucFailedFastRThreshTrap = NotificationType((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1, 0, 1)).setObjects(("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr15MinFailedFastR"))
if mibBuilder.loadTexts: adslAtucFailedFastRThreshTrap.setStatus('current')
if mibBuilder.loadTexts: adslAtucFailedFastRThreshTrap.setDescription('Failed Fast Retrains 15-minute threshold reached.')
adslAtucSesLThreshTrap = NotificationType((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1, 0, 2)).setObjects(("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr15MinSesL"))
if mibBuilder.loadTexts: adslAtucSesLThreshTrap.setStatus('current')
if mibBuilder.loadTexts: adslAtucSesLThreshTrap.setDescription('Severely errored seconds-line 15-minute threshold reached.')
adslAtucUasLThreshTrap = NotificationType((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1, 0, 3)).setObjects(("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr15MinUasL"))
if mibBuilder.loadTexts: adslAtucUasLThreshTrap.setStatus('current')
if mibBuilder.loadTexts: adslAtucUasLThreshTrap.setDescription('Unavailable seconds-line 15-minute threshold reached.')
adslExtAturTraps = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 2))
adslExtAturTrapsPrefix = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 2, 0))
adslAturSesLThreshTrap = NotificationType((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 2, 0, 1)).setObjects(("ADSL-LINE-EXT-MIB", "adslAturPerfCurr15MinSesL"))
if mibBuilder.loadTexts: adslAturSesLThreshTrap.setStatus('current')
if mibBuilder.loadTexts: adslAturSesLThreshTrap.setDescription('Severely errored seconds-line 15-minute threshold reached.')
adslAturUasLThreshTrap = NotificationType((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 2, 0, 2)).setObjects(("ADSL-LINE-EXT-MIB", "adslAturPerfCurr15MinUasL"))
if mibBuilder.loadTexts: adslAturUasLThreshTrap.setStatus('current')
if mibBuilder.loadTexts: adslAturUasLThreshTrap.setDescription('Unavailable seconds-line 15-minute threshold reached.')
adslExtConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 2))
adslExtGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1))
adslExtCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 2))
adslExtLineMibAtucCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 2, 1)).setObjects(("ADSL-LINE-EXT-MIB", "adslExtLineGroup"), ("ADSL-LINE-EXT-MIB", "adslExtLineConfProfileControlGroup"), ("ADSL-LINE-EXT-MIB", "adslExtLineAlarmConfProfileGroup"), ("ADSL-LINE-EXT-MIB", "adslExtAtucPhysPerfCounterGroup"), ("ADSL-LINE-EXT-MIB", "adslExtAturPhysPerfCounterGroup"), ("ADSL-LINE-EXT-MIB", "adslExtNotificationsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adslExtLineMibAtucCompliance = adslExtLineMibAtucCompliance.setStatus('current')
if mibBuilder.loadTexts: adslExtLineMibAtucCompliance.setDescription('The compliance statement for SNMP entities which represent ADSL ATU-C interfaces.')
adslExtLineGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 1)).setObjects(("ADSL-LINE-EXT-MIB", "adslLineConfProfileDualLite"), ("ADSL-LINE-EXT-MIB", "adslLineTransAtucCap"), ("ADSL-LINE-EXT-MIB", "adslLineTransAtucConfig"), ("ADSL-LINE-EXT-MIB", "adslLineTransAtucActual"), ("ADSL-LINE-EXT-MIB", "adslLineGlitePowerState"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adslExtLineGroup = adslExtLineGroup.setStatus('current')
if mibBuilder.loadTexts: adslExtLineGroup.setDescription('A collection of objects providing extended configuration information about an ADSL Line.')
adslExtAtucPhysPerfCounterGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 2)).setObjects(("ADSL-LINE-EXT-MIB", "adslAtucPerfStatFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfStatFailedFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr15MinFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr15MinFailedFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr1DayFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr1DayFailedFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfPrev1DayFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfPrev1DayFailedFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfStatSesL"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfStatUasL"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr15MinSesL"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr15MinUasL"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr1DaySesL"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfCurr1DayUasL"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfPrev1DaySesL"), ("ADSL-LINE-EXT-MIB", "adslAtucPerfPrev1DayUasL"), ("ADSL-LINE-EXT-MIB", "adslAtucIntervalFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucIntervalFailedFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucIntervalSesL"), ("ADSL-LINE-EXT-MIB", "adslAtucIntervalUasL"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adslExtAtucPhysPerfCounterGroup = adslExtAtucPhysPerfCounterGroup.setStatus('current')
if mibBuilder.loadTexts: adslExtAtucPhysPerfCounterGroup.setDescription('A collection of objects providing raw performance counts on an ADSL Line (ATU-C end).')
adslExtAturPhysPerfCounterGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 3)).setObjects(("ADSL-LINE-EXT-MIB", "adslAturPerfStatSesL"), ("ADSL-LINE-EXT-MIB", "adslAturPerfStatUasL"), ("ADSL-LINE-EXT-MIB", "adslAturPerfCurr15MinSesL"), ("ADSL-LINE-EXT-MIB", "adslAturPerfCurr15MinUasL"), ("ADSL-LINE-EXT-MIB", "adslAturPerfCurr1DaySesL"), ("ADSL-LINE-EXT-MIB", "adslAturPerfCurr1DayUasL"), ("ADSL-LINE-EXT-MIB", "adslAturPerfPrev1DaySesL"), ("ADSL-LINE-EXT-MIB", "adslAturPerfPrev1DayUasL"), ("ADSL-LINE-EXT-MIB", "adslAturIntervalSesL"), ("ADSL-LINE-EXT-MIB", "adslAturIntervalUasL"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adslExtAturPhysPerfCounterGroup = adslExtAturPhysPerfCounterGroup.setStatus('current')
if mibBuilder.loadTexts: adslExtAturPhysPerfCounterGroup.setDescription('A collection of objects providing raw performance counts on an ADSL Line (ATU-C end).')
adslExtLineConfProfileControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 4)).setObjects(("ADSL-LINE-EXT-MIB", "adslConfProfileLineType"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adslExtLineConfProfileControlGroup = adslExtLineConfProfileControlGroup.setStatus('current')
if mibBuilder.loadTexts: adslExtLineConfProfileControlGroup.setDescription('A collection of objects providing profile control for the ADSL system.')
adslExtLineAlarmConfProfileGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 5)).setObjects(("ADSL-LINE-EXT-MIB", "adslAtucThreshold15MinFailedFastR"), ("ADSL-LINE-EXT-MIB", "adslAtucThreshold15MinSesL"), ("ADSL-LINE-EXT-MIB", "adslAtucThreshold15MinUasL"), ("ADSL-LINE-EXT-MIB", "adslAturThreshold15MinSesL"), ("ADSL-LINE-EXT-MIB", "adslAturThreshold15MinUasL"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adslExtLineAlarmConfProfileGroup = adslExtLineAlarmConfProfileGroup.setStatus('current')
if mibBuilder.loadTexts: adslExtLineAlarmConfProfileGroup.setDescription('A collection of objects providing alarm profile control for the ADSL system.')
adslExtNotificationsGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 6)).setObjects(("ADSL-LINE-EXT-MIB", "adslAtucFailedFastRThreshTrap"), ("ADSL-LINE-EXT-MIB", "adslAtucSesLThreshTrap"), ("ADSL-LINE-EXT-MIB", "adslAtucUasLThreshTrap"), ("ADSL-LINE-EXT-MIB", "adslAturSesLThreshTrap"), ("ADSL-LINE-EXT-MIB", "adslAturUasLThreshTrap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adslExtNotificationsGroup = adslExtNotificationsGroup.setStatus('current')
if mibBuilder.loadTexts: adslExtNotificationsGroup.setDescription('The collection of ADSL extension notifications.')
mibBuilder.exportSymbols("ADSL-LINE-EXT-MIB", adslAturPerfDataExtTable=adslAturPerfDataExtTable, adslExtAturTraps=adslExtAturTraps, AdslTransmissionModeType=AdslTransmissionModeType, adslAturIntervalExtTable=adslAturIntervalExtTable, adslAtucIntervalSesL=adslAtucIntervalSesL, adslAturPerfStatUasL=adslAturPerfStatUasL, adslAturThreshold15MinSesL=adslAturThreshold15MinSesL, adslAtucPerfPrev1DayFastR=adslAtucPerfPrev1DayFastR, adslAtucFailedFastRThreshTrap=adslAtucFailedFastRThreshTrap, adslExtLineConfProfileControlGroup=adslExtLineConfProfileControlGroup, adslAtucPerfPrev1DayUasL=adslAtucPerfPrev1DayUasL, adslAturPerfCurr15MinSesL=adslAturPerfCurr15MinSesL, adslExtAtucTrapsPrefix=adslExtAtucTrapsPrefix, adslAtucPerfStatFastR=adslAtucPerfStatFastR, adslAturUasLThreshTrap=adslAturUasLThreshTrap, adslAtucPerfPrev1DaySesL=adslAtucPerfPrev1DaySesL, adslAtucPerfDataExtTable=adslAtucPerfDataExtTable, adslAturSesLThreshTrap=adslAturSesLThreshTrap, adslExtMibObjects=adslExtMibObjects, adslAtucPerfStatFailedFastR=adslAtucPerfStatFailedFastR, adslAturPerfPrev1DaySesL=adslAturPerfPrev1DaySesL, adslExtAturPhysPerfCounterGroup=adslExtAturPhysPerfCounterGroup, PYSNMP_MODULE_ID=adslExtMIB, adslLineConfProfileDualLite=adslLineConfProfileDualLite, adslConfProfileExtEntry=adslConfProfileExtEntry, adslConfProfileLineType=adslConfProfileLineType, adslExtTraps=adslExtTraps, adslLineTransAtucConfig=adslLineTransAtucConfig, adslAtucIntervalFastR=adslAtucIntervalFastR, adslExtNotificationsGroup=adslExtNotificationsGroup, adslExtLineGroup=adslExtLineGroup, adslLineExtTable=adslLineExtTable, adslAtucPerfCurr1DayFailedFastR=adslAtucPerfCurr1DayFailedFastR, adslAtucPerfCurr15MinSesL=adslAtucPerfCurr15MinSesL, adslAturThreshold15MinUasL=adslAturThreshold15MinUasL, adslAtucIntervalExtTable=adslAtucIntervalExtTable, adslLineExtEntry=adslLineExtEntry, adslAtucPerfCurr1DaySesL=adslAtucPerfCurr1DaySesL, adslExtMIB=adslExtMIB, adslLineTransAtucActual=adslLineTransAtucActual, adslExtConformance=adslExtConformance, adslLineTransAtucCap=adslLineTransAtucCap, adslAturPerfPrev1DayUasL=adslAturPerfPrev1DayUasL, adslExtAtucTraps=adslExtAtucTraps, adslAturPerfDataExtEntry=adslAturPerfDataExtEntry, adslAlarmConfProfileExtEntry=adslAlarmConfProfileExtEntry, adslAturPerfCurr15MinUasL=adslAturPerfCurr15MinUasL, adslAtucPerfStatSesL=adslAtucPerfStatSesL, adslLineGlitePowerState=adslLineGlitePowerState, adslAtucIntervalUasL=adslAtucIntervalUasL, adslAtucThreshold15MinUasL=adslAtucThreshold15MinUasL, adslAtucIntervalExtEntry=adslAtucIntervalExtEntry, adslExtAtucPhysPerfCounterGroup=adslExtAtucPhysPerfCounterGroup, adslAtucPerfCurr15MinUasL=adslAtucPerfCurr15MinUasL, adslAlarmConfProfileExtTable=adslAlarmConfProfileExtTable, adslAtucThreshold15MinSesL=adslAtucThreshold15MinSesL, adslAturPerfCurr1DayUasL=adslAturPerfCurr1DayUasL, adslExtLineMibAtucCompliance=adslExtLineMibAtucCompliance, adslExtGroups=adslExtGroups, adslAtucIntervalFailedFastR=adslAtucIntervalFailedFastR, adslAturIntervalExtEntry=adslAturIntervalExtEntry, adslAtucThreshold15MinFailedFastR=adslAtucThreshold15MinFailedFastR, adslAtucPerfCurr1DayUasL=adslAtucPerfCurr1DayUasL, adslAtucPerfCurr15MinFastR=adslAtucPerfCurr15MinFastR, adslAtucUasLThreshTrap=adslAtucUasLThreshTrap, adslAturPerfStatSesL=adslAturPerfStatSesL, adslExtAturTrapsPrefix=adslExtAturTrapsPrefix, adslAtucPerfPrev1DayFailedFastR=adslAtucPerfPrev1DayFailedFastR, adslAturIntervalUasL=adslAturIntervalUasL, adslConfProfileExtTable=adslConfProfileExtTable, adslAturIntervalSesL=adslAturIntervalSesL, adslAtucPerfDataExtEntry=adslAtucPerfDataExtEntry, adslAtucPerfStatUasL=adslAtucPerfStatUasL, adslAturPerfCurr1DaySesL=adslAturPerfCurr1DaySesL, adslAtucPerfCurr1DayFastR=adslAtucPerfCurr1DayFastR, adslAtucSesLThreshTrap=adslAtucSesLThreshTrap, adslExtLineAlarmConfProfileGroup=adslExtLineAlarmConfProfileGroup, adslExtCompliances=adslExtCompliances, adslAtucPerfCurr15MinFailedFastR=adslAtucPerfCurr15MinFailedFastR)
| (adsl_line_conf_profile_entry, adsl_atur_perf_data_entry, adsl_line_alarm_conf_profile_entry, adsl_line_entry, adsl_atur_interval_entry, adsl_atuc_perf_data_entry, adsl_atuc_interval_entry, adsl_mib) = mibBuilder.importSymbols('ADSL-LINE-MIB', 'adslLineConfProfileEntry', 'adslAturPerfDataEntry', 'adslLineAlarmConfProfileEntry', 'adslLineEntry', 'adslAturIntervalEntry', 'adslAtucPerfDataEntry', 'adslAtucIntervalEntry', 'adslMIB')
(adsl_perf_prev_day_count, adsl_perf_curr_day_count) = mibBuilder.importSymbols('ADSL-TC-MIB', 'AdslPerfPrevDayCount', 'AdslPerfCurrDayCount')
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_range_constraint, single_value_constraint, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint')
(perf_current_count, perf_interval_count) = mibBuilder.importSymbols('PerfHist-TC-MIB', 'PerfCurrentCount', 'PerfIntervalCount')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup')
(counter32, bits, mib_identifier, time_ticks, module_identity, integer32, ip_address, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, iso, notification_type, counter64, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'Bits', 'MibIdentifier', 'TimeTicks', 'ModuleIdentity', 'Integer32', 'IpAddress', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'iso', 'NotificationType', 'Counter64', 'Gauge32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
adsl_ext_mib = module_identity((1, 3, 6, 1, 2, 1, 10, 94, 3))
adslExtMIB.setRevisions(('2002-12-10 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
adslExtMIB.setRevisionsDescriptions(('Initial Version, published as RFC 3440. This MIB module supplements the ADSL-LINE-MIB [RFC2662].',))
if mibBuilder.loadTexts:
adslExtMIB.setLastUpdated('200212100000Z')
if mibBuilder.loadTexts:
adslExtMIB.setOrganization('IETF ADSL MIB Working Group')
if mibBuilder.loadTexts:
adslExtMIB.setContactInfo(' Faye Ly Pedestal Networks 6503 Dumbarton Circle, Fremont, CA 94555 Tel: +1 510-578-0158 Fax: +1 510-744-5152 E-Mail: faye@pedestalnetworks.com Gregory Bathrick Nokia Networks 2235 Mercury Way, Fax: +1 707-535-7300 E-Mail: greg.bathrick@nokia.com General Discussion:adslmib@ietf.org To Subscribe: https://www1.ietf.org/mailman/listinfo/adslmib Archive: https://www1.ietf.org/mailman/listinfo/adslmib ')
if mibBuilder.loadTexts:
adslExtMIB.setDescription('Copyright (C) The Internet Society (2002). This version of this MIB module is part of RFC 3440; see the RFC itself for full legal notices. This MIB Module is a supplement to the ADSL-LINE-MIB [RFC2662].')
adsl_ext_mib_objects = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1))
class Adsltransmissionmodetype(TextualConvention, Bits):
description = 'A set of ADSL line transmission modes, with one bit per mode. The notes (F) and (L) denote Full-Rate and G.Lite respectively: Bit 00 : Regional Std. (ANSI T1.413) (F) Bit 01 : Regional Std. (ETSI DTS/TM06006) (F) Bit 02 : G.992.1 POTS non-overlapped (F) Bit 03 : G.992.1 POTS overlapped (F) Bit 04 : G.992.1 ISDN non-overlapped (F) Bit 05 : G.992.1 ISDN overlapped (F) Bit 06 : G.992.1 TCM-ISDN non-overlapped (F) Bit 07 : G.992.1 TCM-ISDN overlapped (F) Bit 08 : G.992.2 POTS non-overlapped (L) Bit 09 : G.992.2 POTS overlapped (L) Bit 10 : G.992.2 with TCM-ISDN non-overlapped (L) Bit 11 : G.992.2 with TCM-ISDN overlapped (L) Bit 12 : G.992.1 TCM-ISDN symmetric (F) '
status = 'current'
named_values = named_values(('ansit1413', 0), ('etsi', 1), ('q9921PotsNonOverlapped', 2), ('q9921PotsOverlapped', 3), ('q9921IsdnNonOverlapped', 4), ('q9921isdnOverlapped', 5), ('q9921tcmIsdnNonOverlapped', 6), ('q9921tcmIsdnOverlapped', 7), ('q9922potsNonOverlapeed', 8), ('q9922potsOverlapped', 9), ('q9922tcmIsdnNonOverlapped', 10), ('q9922tcmIsdnOverlapped', 11), ('q9921tcmIsdnSymmetric', 12))
adsl_line_ext_table = mib_table((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17))
if mibBuilder.loadTexts:
adslLineExtTable.setStatus('current')
if mibBuilder.loadTexts:
adslLineExtTable.setDescription("This table is an extension of RFC 2662. It contains ADSL line configuration and monitoring information. This includes the ADSL line's capabilities and actual ADSL transmission system.")
adsl_line_ext_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1))
adslLineEntry.registerAugmentions(('ADSL-LINE-EXT-MIB', 'adslLineExtEntry'))
adslLineExtEntry.setIndexNames(*adslLineEntry.getIndexNames())
if mibBuilder.loadTexts:
adslLineExtEntry.setStatus('current')
if mibBuilder.loadTexts:
adslLineExtEntry.setDescription('An entry extends the adslLineEntry defined in [RFC2662]. Each entry corresponds to an ADSL line.')
adsl_line_trans_atuc_cap = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 1), adsl_transmission_mode_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslLineTransAtucCap.setReference('Section 7.3.2 ITU G.997.1')
if mibBuilder.loadTexts:
adslLineTransAtucCap.setStatus('current')
if mibBuilder.loadTexts:
adslLineTransAtucCap.setDescription('The transmission modes, represented by a bitmask that the ATU-C is capable of supporting. The modes available are limited by the design of the equipment.')
adsl_line_trans_atuc_config = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 2), adsl_transmission_mode_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
adslLineTransAtucConfig.setReference('Section 7.3.2 ITU G.997.1')
if mibBuilder.loadTexts:
adslLineTransAtucConfig.setStatus('current')
if mibBuilder.loadTexts:
adslLineTransAtucConfig.setDescription("The transmission modes, represented by a bitmask, currently enabled by the ATU-C. The manager can only set those modes that are supported by the ATU-C. An ATU-C's supported modes are provided by AdslLineTransAtucCap.")
adsl_line_trans_atuc_actual = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 3), adsl_transmission_mode_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslLineTransAtucActual.setReference('Section 7.3.2 ITU G.997.1 ')
if mibBuilder.loadTexts:
adslLineTransAtucActual.setStatus('current')
if mibBuilder.loadTexts:
adslLineTransAtucActual.setDescription("The actual transmission mode of the ATU-C. During ADSL line initialization, the ADSL Transceiver Unit - Remote terminal end (ATU-R) will determine the mode used for the link. This value will be limited a single transmission mode that is a subset of those modes enabled by the ATU-C and denoted by adslLineTransAtucConfig. After an initialization has occurred, its mode is saved as the 'Current' mode and is persistence should the link go down. This object returns 0 (i.e. BITS with no mode bit set) if the mode is not known.")
adsl_line_glite_power_state = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('l0', 2), ('l1', 3), ('l3', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslLineGlitePowerState.setStatus('current')
if mibBuilder.loadTexts:
adslLineGlitePowerState.setDescription('The value of this object specifies the power state of this interface. L0 is power on, L1 is power on but reduced and L3 is power off. Power state cannot be configured by an operator but it can be viewed via the ifOperStatus object for the managed ADSL interface. The value of the object ifOperStatus is set to down(2) if the ADSL interface is in power state L3 and is set to up(1) if the ADSL line interface is in power state L0 or L1. If the object adslLineTransAtucActual is set to a G.992.2 (G.Lite)-type transmission mode, the value of this object will be one of the valid power states: L0(2), L1(3), or L3(4). Otherwise, its value will be none(1).')
adsl_line_conf_profile_dual_lite = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 17, 1, 5), snmp_admin_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
adslLineConfProfileDualLite.setReference('Section 5.4 Profiles, RFC 2662')
if mibBuilder.loadTexts:
adslLineConfProfileDualLite.setStatus('current')
if mibBuilder.loadTexts:
adslLineConfProfileDualLite.setDescription("This object extends the definition an ADSL line and associated channels (when applicable) for cases when it is configured in dual mode, and operating in a G.Lite-type mode as denoted by adslLineTransAtucActual. Dual mode exists when the object, adslLineTransAtucConfig, is configured with one or more full-rate modes and one or more G.Lite modes simultaneously. When 'dynamic' profiles are implemented, the value of object is equal to the index of the applicable row in the ADSL Line Configuration Profile Table, AdslLineConfProfileTable defined in ADSL-MIB [RFC2662]. In the case when dual-mode has not been enabled, the value of the object will be equal to the value of the object adslLineConfProfile [RFC2662]. When `static' profiles are implemented, in much like the case of the object, adslLineConfProfileName [RFC2662], this object's value will need to algorithmically represent the characteristics of the line. In this case, the value of the line's ifIndex plus a value indicating the line mode type (e.g., G.Lite, Full-rate) will be used. Therefore, the profile's name is a string concatenating the ifIndex and one of the follow values: Full or Lite. This string will be fixed-length (i.e., 14) with leading zero(s). For example, the profile name for ifIndex that equals '15' and is a full rate line, it will be '0000000015Full'.")
adsl_atuc_perf_data_ext_table = mib_table((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18))
if mibBuilder.loadTexts:
adslAtucPerfDataExtTable.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfDataExtTable.setDescription('This table extends adslAtucPerfDataTable [RFC2662] with additional ADSL physical line counter information such as unavailable seconds-line and severely errored seconds-line.')
adsl_atuc_perf_data_ext_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1))
adslAtucPerfDataEntry.registerAugmentions(('ADSL-LINE-EXT-MIB', 'adslAtucPerfDataExtEntry'))
adslAtucPerfDataExtEntry.setIndexNames(*adslAtucPerfDataEntry.getIndexNames())
if mibBuilder.loadTexts:
adslAtucPerfDataExtEntry.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfDataExtEntry.setDescription('An entry extends the adslAtucPerfDataEntry defined in [RFC2662]. Each entry corresponds to an ADSL line.')
adsl_atuc_perf_stat_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 1), counter32()).setUnits('line retrains').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfStatFastR.setReference('ITU G.997.1 Section 7.4.15.1 ')
if mibBuilder.loadTexts:
adslAtucPerfStatFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfStatFastR.setDescription('The value of this object reports the count of the number of fast line bs since last agent reset.')
adsl_atuc_perf_stat_failed_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 2), counter32()).setUnits('line retrains').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfStatFailedFastR.setReference('ITU G.997.1 Section 7.4.15.2 ')
if mibBuilder.loadTexts:
adslAtucPerfStatFailedFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfStatFailedFastR.setDescription('The value of this object reports the count of the number of failed fast line retrains since last agent reset.')
adsl_atuc_perf_stat_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 3), counter32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfStatSesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts:
adslAtucPerfStatSesL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfStatSesL.setDescription('The value of this object reports the count of the number of severely errored seconds-line since last agent reset.')
adsl_atuc_perf_stat_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 4), counter32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfStatUasL.setReference('ITU G.997.1 Section 7.2.1.1.9 ')
if mibBuilder.loadTexts:
adslAtucPerfStatUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfStatUasL.setDescription('The value of this object reports the count of the number of unavailable seconds-line since last agent reset.')
adsl_atuc_perf_curr15_min_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 5), perf_current_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinFastR.setReference('ITU G.997.1 Section 7.4.15.1 ')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinFastR.setDescription('For the current 15-minute interval, adslAtucPerfCurr15MinFastR reports the current number of seconds during which there have been fast retrains.')
adsl_atuc_perf_curr15_min_failed_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 6), perf_current_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinFailedFastR.setReference('ITU G.997.1 Section 7.4.15.2 ')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinFailedFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinFailedFastR.setDescription('For the current 15-minute interval, adslAtucPerfCurr15MinFailedFastR reports the current number of seconds during which there have been failed fast retrains.')
adsl_atuc_perf_curr15_min_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 7), perf_current_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinSesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinSesL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinSesL.setDescription('For the current 15-minute interval, adslAtucPerfCurr15MinSesL reports the current number of seconds during which there have been severely errored seconds-line.')
adsl_atuc_perf_curr15_min_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 8), perf_current_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinUasL.setReference('ITU G.997.1 Section 7.2.1.1.9 ')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfCurr15MinUasL.setDescription('For the current 15-minute interval, adslAtucPerfCurr15MinUasL reports the current number of seconds during which there have been unavailable seconds-line.')
adsl_atuc_perf_curr1_day_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 9), adsl_perf_curr_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayFastR.setReference('ITU G.997.1 Section 7.4.15.1 ')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayFastR.setDescription('For the current day as measured by adslAtucPerfCurr1DayTimeElapsed [RFC2662], adslAtucPerfCurr1DayFastR reports the number of seconds during which there have been fast retrains.')
adsl_atuc_perf_curr1_day_failed_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 10), adsl_perf_curr_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayFailedFastR.setReference('ITU G.997.1 Section 7.4.15.2 ')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayFailedFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayFailedFastR.setDescription('For the current day as measured by adslAtucPerfCurr1DayTimeElapsed [RFC2662], adslAtucPerfCurr1DayFailedFastR reports the number of seconds during which there have been failed fast retrains.')
adsl_atuc_perf_curr1_day_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 11), adsl_perf_curr_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DaySesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DaySesL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DaySesL.setDescription('For the current day as measured by adslAtucPerfCurr1DayTimeElapsed [RFC2662], adslAtucPerfCurr1DaySesL reports the number of seconds during which there have been severely errored seconds-line.')
adsl_atuc_perf_curr1_day_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 12), adsl_perf_curr_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayUasL.setReference('ITU G.997.1 Section 7.2.1.1.9 ')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfCurr1DayUasL.setDescription('For the current day as measured by adslAtucPerfCurr1DayTimeElapsed [RFC2662], adslAtucPerfCurr1DayUasL reports the number of seconds during which there have been unavailable seconds-line.')
adsl_atuc_perf_prev1_day_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 13), adsl_perf_prev_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayFastR.setReference('ITU G.997.1 Section 7.4.15.1 ')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayFastR.setDescription('For the previous day, adslAtucPerfPrev1DayFastR reports the number of seconds during which there were fast retrains.')
adsl_atuc_perf_prev1_day_failed_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 14), adsl_perf_prev_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayFailedFastR.setReference('ITU G.997.1 Section 7.4.15.2 ')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayFailedFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayFailedFastR.setDescription('For the previous day, adslAtucPerfPrev1DayFailedFastR reports the number of seconds during which there were failed fast retrains.')
adsl_atuc_perf_prev1_day_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 15), adsl_perf_prev_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DaySesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DaySesL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DaySesL.setDescription('For the previous day, adslAtucPerfPrev1DaySesL reports the number of seconds during which there were severely errored seconds-line.')
adsl_atuc_perf_prev1_day_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 18, 1, 16), adsl_perf_prev_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayUasL.setReference('ITU G.997.1 Section 7.2.1.1.9 ')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucPerfPrev1DayUasL.setDescription('For the previous day, adslAtucPerfPrev1DayUasL reports the number of seconds during which there were unavailable seconds-line.')
adsl_atuc_interval_ext_table = mib_table((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19))
if mibBuilder.loadTexts:
adslAtucIntervalExtTable.setStatus('current')
if mibBuilder.loadTexts:
adslAtucIntervalExtTable.setDescription("This table provides one row for each ATU-C performance data collection interval for ADSL physical interfaces whose IfEntries' ifType is equal to adsl(94).")
adsl_atuc_interval_ext_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1))
adslAtucIntervalEntry.registerAugmentions(('ADSL-LINE-EXT-MIB', 'adslAtucIntervalExtEntry'))
adslAtucIntervalExtEntry.setIndexNames(*adslAtucIntervalEntry.getIndexNames())
if mibBuilder.loadTexts:
adslAtucIntervalExtEntry.setStatus('current')
if mibBuilder.loadTexts:
adslAtucIntervalExtEntry.setDescription('An entry in the adslAtucIntervalExtTable.')
adsl_atuc_interval_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1, 1), perf_interval_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucIntervalFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucIntervalFastR.setDescription('For the current interval, adslAtucIntervalFastR reports the current number of seconds during which there have been fast retrains.')
adsl_atuc_interval_failed_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1, 2), perf_interval_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucIntervalFailedFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucIntervalFailedFastR.setDescription('For the each interval, adslAtucIntervalFailedFastR reports the number of seconds during which there have been failed fast retrains.')
adsl_atuc_interval_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1, 3), perf_interval_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucIntervalSesL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucIntervalSesL.setDescription('For the each interval, adslAtucIntervalSesL reports the number of seconds during which there have been severely errored seconds-line.')
adsl_atuc_interval_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 19, 1, 4), perf_interval_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAtucIntervalUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucIntervalUasL.setDescription('For the each interval, adslAtucIntervalUasL reports the number of seconds during which there have been unavailable seconds-line.')
adsl_atur_perf_data_ext_table = mib_table((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20))
if mibBuilder.loadTexts:
adslAturPerfDataExtTable.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfDataExtTable.setDescription('This table contains ADSL physical line counters not defined in the adslAturPerfDataTable from the ADSL-LINE-MIB [RFC2662].')
adsl_atur_perf_data_ext_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1))
adslAturPerfDataEntry.registerAugmentions(('ADSL-LINE-EXT-MIB', 'adslAturPerfDataExtEntry'))
adslAturPerfDataExtEntry.setIndexNames(*adslAturPerfDataEntry.getIndexNames())
if mibBuilder.loadTexts:
adslAturPerfDataExtEntry.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfDataExtEntry.setDescription('An entry extends the adslAturPerfDataEntry defined in [RFC2662]. Each entry corresponds to an ADSL line.')
adsl_atur_perf_stat_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 1), counter32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturPerfStatSesL.setReference('ITU G.997.1 Section 7.2.1.1.7 ')
if mibBuilder.loadTexts:
adslAturPerfStatSesL.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfStatSesL.setDescription('The value of this object reports the count of severely errored second-line since the last agent reset.')
adsl_atur_perf_stat_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 2), counter32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturPerfStatUasL.setReference('ITU G.997.1 Section 7.2.1.2.9 ')
if mibBuilder.loadTexts:
adslAturPerfStatUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfStatUasL.setDescription('The value of this object reports the count of unavailable seconds-line since the last agent reset.')
adsl_atur_perf_curr15_min_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 3), perf_current_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturPerfCurr15MinSesL.setReference('ITU G.997.1 Section 7.2.1.2.7 ')
if mibBuilder.loadTexts:
adslAturPerfCurr15MinSesL.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfCurr15MinSesL.setDescription('For the current 15-minute interval, adslAturPerfCurr15MinSesL reports the current number of seconds during which there have been severely errored seconds-line.')
adsl_atur_perf_curr15_min_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 4), perf_current_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturPerfCurr15MinUasL.setReference('ITU G.997.1 Section 7.2.1.2.9 ')
if mibBuilder.loadTexts:
adslAturPerfCurr15MinUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfCurr15MinUasL.setDescription('For the current 15-minute interval, adslAturPerfCurr15MinUasL reports the current number of seconds during which there have been available seconds-line.')
adsl_atur_perf_curr1_day_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 5), adsl_perf_curr_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturPerfCurr1DaySesL.setReference('ITU G.997.1 Section 7.2.1.2.7 ')
if mibBuilder.loadTexts:
adslAturPerfCurr1DaySesL.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfCurr1DaySesL.setDescription('For the current day as measured by adslAturPerfCurr1DayTimeElapsed [RFC2662], adslAturPerfCurr1DaySesL reports the number of seconds during which there have been severely errored seconds-line.')
adsl_atur_perf_curr1_day_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 6), adsl_perf_curr_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturPerfCurr1DayUasL.setReference('ITU G.997.1 Section 7.2.1.2.9 ')
if mibBuilder.loadTexts:
adslAturPerfCurr1DayUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfCurr1DayUasL.setDescription('For the current day as measured by adslAturPerfCurr1DayTimeElapsed [RFC2662], adslAturPerfCurr1DayUasL reports the number of seconds during which there have been unavailable seconds-line.')
adsl_atur_perf_prev1_day_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 7), adsl_perf_prev_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturPerfPrev1DaySesL.setReference('ITU G.997.1 Section 7.2.1.2.7 ')
if mibBuilder.loadTexts:
adslAturPerfPrev1DaySesL.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfPrev1DaySesL.setDescription('For the previous day, adslAturPerfPrev1DaySesL reports the number of seconds during which there were severely errored seconds-line.')
adsl_atur_perf_prev1_day_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 20, 1, 8), adsl_perf_prev_day_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturPerfPrev1DayUasL.setReference('ITU G.997.1 Section 7.2.1.2.9 ')
if mibBuilder.loadTexts:
adslAturPerfPrev1DayUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAturPerfPrev1DayUasL.setDescription('For the previous day, adslAturPerfPrev1DayUasL reports the number of seconds during which there were severely errored seconds-line.')
adsl_atur_interval_ext_table = mib_table((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 21))
if mibBuilder.loadTexts:
adslAturIntervalExtTable.setStatus('current')
if mibBuilder.loadTexts:
adslAturIntervalExtTable.setDescription("This table provides one row for each ATU-R performance data collection interval for ADSL physical interfaces whose IfEntries' ifType is equal to adsl(94).")
adsl_atur_interval_ext_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 21, 1))
adslAturIntervalEntry.registerAugmentions(('ADSL-LINE-EXT-MIB', 'adslAturIntervalExtEntry'))
adslAturIntervalExtEntry.setIndexNames(*adslAturIntervalEntry.getIndexNames())
if mibBuilder.loadTexts:
adslAturIntervalExtEntry.setStatus('current')
if mibBuilder.loadTexts:
adslAturIntervalExtEntry.setDescription('An entry in the adslAturIntervalExtTable.')
adsl_atur_interval_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 21, 1, 1), perf_interval_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturIntervalSesL.setStatus('current')
if mibBuilder.loadTexts:
adslAturIntervalSesL.setDescription('For the each interval, adslAturIntervalSesL reports the number of seconds during which there have been severely errored seconds-line.')
adsl_atur_interval_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 21, 1, 2), perf_interval_count()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
adslAturIntervalUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAturIntervalUasL.setDescription('For the each interval, adslAturIntervalUasL reports the number of seconds during which there have been unavailable seconds-line.')
adsl_conf_profile_ext_table = mib_table((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 22))
if mibBuilder.loadTexts:
adslConfProfileExtTable.setStatus('current')
if mibBuilder.loadTexts:
adslConfProfileExtTable.setDescription('The adslConfProfileExtTable extends the ADSL line profile configuration information in the adslLineConfProfileTable from the ADSL-LINE-MIB [RFC2662] by adding the ability to configure the ADSL physical line mode.')
adsl_conf_profile_ext_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 22, 1))
adslLineConfProfileEntry.registerAugmentions(('ADSL-LINE-EXT-MIB', 'adslConfProfileExtEntry'))
adslConfProfileExtEntry.setIndexNames(*adslLineConfProfileEntry.getIndexNames())
if mibBuilder.loadTexts:
adslConfProfileExtEntry.setStatus('current')
if mibBuilder.loadTexts:
adslConfProfileExtEntry.setDescription('An entry extends the adslLineConfProfileEntry defined in [RFC2662]. Each entry corresponds to an ADSL line profile.')
adsl_conf_profile_line_type = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 22, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('noChannel', 1), ('fastOnly', 2), ('interleavedOnly', 3), ('fastOrInterleaved', 4), ('fastAndInterleaved', 5))).clone('fastOnly')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
adslConfProfileLineType.setStatus('current')
if mibBuilder.loadTexts:
adslConfProfileLineType.setDescription('This object is used to configure the ADSL physical line mode. It has following valid values: noChannel(1), when no channels exist. fastOnly(2), when only fast channel exists. interleavedOnly(3), when only interleaved channel exist. fastOrInterleaved(4), when either fast or interleaved channels can exist, but only one at any time. fastAndInterleaved(5), when both the fast channel and the interleaved channel exist. In the case when no value has been set, the default Value is noChannel(1). ')
adsl_alarm_conf_profile_ext_table = mib_table((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23))
if mibBuilder.loadTexts:
adslAlarmConfProfileExtTable.setStatus('current')
if mibBuilder.loadTexts:
adslAlarmConfProfileExtTable.setDescription('This table extends the adslLineAlarmConfProfileTable and provides threshold parameters for all the counters defined in this MIB module.')
adsl_alarm_conf_profile_ext_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1))
adslLineAlarmConfProfileEntry.registerAugmentions(('ADSL-LINE-EXT-MIB', 'adslAlarmConfProfileExtEntry'))
adslAlarmConfProfileExtEntry.setIndexNames(*adslLineAlarmConfProfileEntry.getIndexNames())
if mibBuilder.loadTexts:
adslAlarmConfProfileExtEntry.setStatus('current')
if mibBuilder.loadTexts:
adslAlarmConfProfileExtEntry.setDescription('An entry extends the adslLineAlarmConfProfileTable defined in [RFC2662]. Each entry corresponds to an ADSL alarm profile.')
adsl_atuc_threshold15_min_failed_fast_r = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 900))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
adslAtucThreshold15MinFailedFastR.setStatus('current')
if mibBuilder.loadTexts:
adslAtucThreshold15MinFailedFastR.setDescription("The first time the value of the corresponding instance of adslAtucPerfCurr15MinFailedFastR reaches or exceeds this value within a given 15-minute performance data collection period, an adslAtucFailedFastRThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adsl_atuc_threshold15_min_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 900))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
adslAtucThreshold15MinSesL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucThreshold15MinSesL.setDescription("The first time the value of the corresponding instance of adslAtucPerf15MinSesL reaches or exceeds this value within a given 15-minute performance data collection period, an adslAtucSesLThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adsl_atuc_threshold15_min_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 900))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
adslAtucThreshold15MinUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAtucThreshold15MinUasL.setDescription("The first time the value of the corresponding instance of adslAtucPerf15MinUasL reaches or exceeds this value within a given 15-minute performance data collection period, an adslAtucUasLThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adsl_atur_threshold15_min_ses_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 900))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
adslAturThreshold15MinSesL.setStatus('current')
if mibBuilder.loadTexts:
adslAturThreshold15MinSesL.setDescription("The first time the value of the corresponding instance of adslAturPerf15MinSesL reaches or exceeds this value within a given 15-minute performance data collection period, an adslAturSesLThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adsl_atur_threshold15_min_uas_l = mib_table_column((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 23, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 900))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
adslAturThreshold15MinUasL.setStatus('current')
if mibBuilder.loadTexts:
adslAturThreshold15MinUasL.setDescription("The first time the value of the corresponding instance of adslAturPerf15MinUasL reaches or exceeds this value within a given 15-minute performance data collection period, an adslAturUasLThreshTrap notification will be generated. The value '0' will disable the notification. The default value of this object is '0'.")
adsl_ext_traps = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24))
adsl_ext_atuc_traps = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1))
adsl_ext_atuc_traps_prefix = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1, 0))
adsl_atuc_failed_fast_r_thresh_trap = notification_type((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1, 0, 1)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr15MinFailedFastR'))
if mibBuilder.loadTexts:
adslAtucFailedFastRThreshTrap.setStatus('current')
if mibBuilder.loadTexts:
adslAtucFailedFastRThreshTrap.setDescription('Failed Fast Retrains 15-minute threshold reached.')
adsl_atuc_ses_l_thresh_trap = notification_type((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1, 0, 2)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr15MinSesL'))
if mibBuilder.loadTexts:
adslAtucSesLThreshTrap.setStatus('current')
if mibBuilder.loadTexts:
adslAtucSesLThreshTrap.setDescription('Severely errored seconds-line 15-minute threshold reached.')
adsl_atuc_uas_l_thresh_trap = notification_type((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 1, 0, 3)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr15MinUasL'))
if mibBuilder.loadTexts:
adslAtucUasLThreshTrap.setStatus('current')
if mibBuilder.loadTexts:
adslAtucUasLThreshTrap.setDescription('Unavailable seconds-line 15-minute threshold reached.')
adsl_ext_atur_traps = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 2))
adsl_ext_atur_traps_prefix = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 2, 0))
adsl_atur_ses_l_thresh_trap = notification_type((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 2, 0, 1)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAturPerfCurr15MinSesL'))
if mibBuilder.loadTexts:
adslAturSesLThreshTrap.setStatus('current')
if mibBuilder.loadTexts:
adslAturSesLThreshTrap.setDescription('Severely errored seconds-line 15-minute threshold reached.')
adsl_atur_uas_l_thresh_trap = notification_type((1, 3, 6, 1, 2, 1, 10, 94, 3, 1, 24, 2, 0, 2)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAturPerfCurr15MinUasL'))
if mibBuilder.loadTexts:
adslAturUasLThreshTrap.setStatus('current')
if mibBuilder.loadTexts:
adslAturUasLThreshTrap.setDescription('Unavailable seconds-line 15-minute threshold reached.')
adsl_ext_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 2))
adsl_ext_groups = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1))
adsl_ext_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 2))
adsl_ext_line_mib_atuc_compliance = module_compliance((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 2, 1)).setObjects(('ADSL-LINE-EXT-MIB', 'adslExtLineGroup'), ('ADSL-LINE-EXT-MIB', 'adslExtLineConfProfileControlGroup'), ('ADSL-LINE-EXT-MIB', 'adslExtLineAlarmConfProfileGroup'), ('ADSL-LINE-EXT-MIB', 'adslExtAtucPhysPerfCounterGroup'), ('ADSL-LINE-EXT-MIB', 'adslExtAturPhysPerfCounterGroup'), ('ADSL-LINE-EXT-MIB', 'adslExtNotificationsGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adsl_ext_line_mib_atuc_compliance = adslExtLineMibAtucCompliance.setStatus('current')
if mibBuilder.loadTexts:
adslExtLineMibAtucCompliance.setDescription('The compliance statement for SNMP entities which represent ADSL ATU-C interfaces.')
adsl_ext_line_group = object_group((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 1)).setObjects(('ADSL-LINE-EXT-MIB', 'adslLineConfProfileDualLite'), ('ADSL-LINE-EXT-MIB', 'adslLineTransAtucCap'), ('ADSL-LINE-EXT-MIB', 'adslLineTransAtucConfig'), ('ADSL-LINE-EXT-MIB', 'adslLineTransAtucActual'), ('ADSL-LINE-EXT-MIB', 'adslLineGlitePowerState'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adsl_ext_line_group = adslExtLineGroup.setStatus('current')
if mibBuilder.loadTexts:
adslExtLineGroup.setDescription('A collection of objects providing extended configuration information about an ADSL Line.')
adsl_ext_atuc_phys_perf_counter_group = object_group((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 2)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAtucPerfStatFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfStatFailedFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr15MinFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr15MinFailedFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr1DayFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr1DayFailedFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfPrev1DayFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfPrev1DayFailedFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfStatSesL'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfStatUasL'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr15MinSesL'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr15MinUasL'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr1DaySesL'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfCurr1DayUasL'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfPrev1DaySesL'), ('ADSL-LINE-EXT-MIB', 'adslAtucPerfPrev1DayUasL'), ('ADSL-LINE-EXT-MIB', 'adslAtucIntervalFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucIntervalFailedFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucIntervalSesL'), ('ADSL-LINE-EXT-MIB', 'adslAtucIntervalUasL'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adsl_ext_atuc_phys_perf_counter_group = adslExtAtucPhysPerfCounterGroup.setStatus('current')
if mibBuilder.loadTexts:
adslExtAtucPhysPerfCounterGroup.setDescription('A collection of objects providing raw performance counts on an ADSL Line (ATU-C end).')
adsl_ext_atur_phys_perf_counter_group = object_group((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 3)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAturPerfStatSesL'), ('ADSL-LINE-EXT-MIB', 'adslAturPerfStatUasL'), ('ADSL-LINE-EXT-MIB', 'adslAturPerfCurr15MinSesL'), ('ADSL-LINE-EXT-MIB', 'adslAturPerfCurr15MinUasL'), ('ADSL-LINE-EXT-MIB', 'adslAturPerfCurr1DaySesL'), ('ADSL-LINE-EXT-MIB', 'adslAturPerfCurr1DayUasL'), ('ADSL-LINE-EXT-MIB', 'adslAturPerfPrev1DaySesL'), ('ADSL-LINE-EXT-MIB', 'adslAturPerfPrev1DayUasL'), ('ADSL-LINE-EXT-MIB', 'adslAturIntervalSesL'), ('ADSL-LINE-EXT-MIB', 'adslAturIntervalUasL'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adsl_ext_atur_phys_perf_counter_group = adslExtAturPhysPerfCounterGroup.setStatus('current')
if mibBuilder.loadTexts:
adslExtAturPhysPerfCounterGroup.setDescription('A collection of objects providing raw performance counts on an ADSL Line (ATU-C end).')
adsl_ext_line_conf_profile_control_group = object_group((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 4)).setObjects(('ADSL-LINE-EXT-MIB', 'adslConfProfileLineType'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adsl_ext_line_conf_profile_control_group = adslExtLineConfProfileControlGroup.setStatus('current')
if mibBuilder.loadTexts:
adslExtLineConfProfileControlGroup.setDescription('A collection of objects providing profile control for the ADSL system.')
adsl_ext_line_alarm_conf_profile_group = object_group((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 5)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAtucThreshold15MinFailedFastR'), ('ADSL-LINE-EXT-MIB', 'adslAtucThreshold15MinSesL'), ('ADSL-LINE-EXT-MIB', 'adslAtucThreshold15MinUasL'), ('ADSL-LINE-EXT-MIB', 'adslAturThreshold15MinSesL'), ('ADSL-LINE-EXT-MIB', 'adslAturThreshold15MinUasL'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adsl_ext_line_alarm_conf_profile_group = adslExtLineAlarmConfProfileGroup.setStatus('current')
if mibBuilder.loadTexts:
adslExtLineAlarmConfProfileGroup.setDescription('A collection of objects providing alarm profile control for the ADSL system.')
adsl_ext_notifications_group = notification_group((1, 3, 6, 1, 2, 1, 10, 94, 3, 2, 1, 6)).setObjects(('ADSL-LINE-EXT-MIB', 'adslAtucFailedFastRThreshTrap'), ('ADSL-LINE-EXT-MIB', 'adslAtucSesLThreshTrap'), ('ADSL-LINE-EXT-MIB', 'adslAtucUasLThreshTrap'), ('ADSL-LINE-EXT-MIB', 'adslAturSesLThreshTrap'), ('ADSL-LINE-EXT-MIB', 'adslAturUasLThreshTrap'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adsl_ext_notifications_group = adslExtNotificationsGroup.setStatus('current')
if mibBuilder.loadTexts:
adslExtNotificationsGroup.setDescription('The collection of ADSL extension notifications.')
mibBuilder.exportSymbols('ADSL-LINE-EXT-MIB', adslAturPerfDataExtTable=adslAturPerfDataExtTable, adslExtAturTraps=adslExtAturTraps, AdslTransmissionModeType=AdslTransmissionModeType, adslAturIntervalExtTable=adslAturIntervalExtTable, adslAtucIntervalSesL=adslAtucIntervalSesL, adslAturPerfStatUasL=adslAturPerfStatUasL, adslAturThreshold15MinSesL=adslAturThreshold15MinSesL, adslAtucPerfPrev1DayFastR=adslAtucPerfPrev1DayFastR, adslAtucFailedFastRThreshTrap=adslAtucFailedFastRThreshTrap, adslExtLineConfProfileControlGroup=adslExtLineConfProfileControlGroup, adslAtucPerfPrev1DayUasL=adslAtucPerfPrev1DayUasL, adslAturPerfCurr15MinSesL=adslAturPerfCurr15MinSesL, adslExtAtucTrapsPrefix=adslExtAtucTrapsPrefix, adslAtucPerfStatFastR=adslAtucPerfStatFastR, adslAturUasLThreshTrap=adslAturUasLThreshTrap, adslAtucPerfPrev1DaySesL=adslAtucPerfPrev1DaySesL, adslAtucPerfDataExtTable=adslAtucPerfDataExtTable, adslAturSesLThreshTrap=adslAturSesLThreshTrap, adslExtMibObjects=adslExtMibObjects, adslAtucPerfStatFailedFastR=adslAtucPerfStatFailedFastR, adslAturPerfPrev1DaySesL=adslAturPerfPrev1DaySesL, adslExtAturPhysPerfCounterGroup=adslExtAturPhysPerfCounterGroup, PYSNMP_MODULE_ID=adslExtMIB, adslLineConfProfileDualLite=adslLineConfProfileDualLite, adslConfProfileExtEntry=adslConfProfileExtEntry, adslConfProfileLineType=adslConfProfileLineType, adslExtTraps=adslExtTraps, adslLineTransAtucConfig=adslLineTransAtucConfig, adslAtucIntervalFastR=adslAtucIntervalFastR, adslExtNotificationsGroup=adslExtNotificationsGroup, adslExtLineGroup=adslExtLineGroup, adslLineExtTable=adslLineExtTable, adslAtucPerfCurr1DayFailedFastR=adslAtucPerfCurr1DayFailedFastR, adslAtucPerfCurr15MinSesL=adslAtucPerfCurr15MinSesL, adslAturThreshold15MinUasL=adslAturThreshold15MinUasL, adslAtucIntervalExtTable=adslAtucIntervalExtTable, adslLineExtEntry=adslLineExtEntry, adslAtucPerfCurr1DaySesL=adslAtucPerfCurr1DaySesL, adslExtMIB=adslExtMIB, adslLineTransAtucActual=adslLineTransAtucActual, adslExtConformance=adslExtConformance, adslLineTransAtucCap=adslLineTransAtucCap, adslAturPerfPrev1DayUasL=adslAturPerfPrev1DayUasL, adslExtAtucTraps=adslExtAtucTraps, adslAturPerfDataExtEntry=adslAturPerfDataExtEntry, adslAlarmConfProfileExtEntry=adslAlarmConfProfileExtEntry, adslAturPerfCurr15MinUasL=adslAturPerfCurr15MinUasL, adslAtucPerfStatSesL=adslAtucPerfStatSesL, adslLineGlitePowerState=adslLineGlitePowerState, adslAtucIntervalUasL=adslAtucIntervalUasL, adslAtucThreshold15MinUasL=adslAtucThreshold15MinUasL, adslAtucIntervalExtEntry=adslAtucIntervalExtEntry, adslExtAtucPhysPerfCounterGroup=adslExtAtucPhysPerfCounterGroup, adslAtucPerfCurr15MinUasL=adslAtucPerfCurr15MinUasL, adslAlarmConfProfileExtTable=adslAlarmConfProfileExtTable, adslAtucThreshold15MinSesL=adslAtucThreshold15MinSesL, adslAturPerfCurr1DayUasL=adslAturPerfCurr1DayUasL, adslExtLineMibAtucCompliance=adslExtLineMibAtucCompliance, adslExtGroups=adslExtGroups, adslAtucIntervalFailedFastR=adslAtucIntervalFailedFastR, adslAturIntervalExtEntry=adslAturIntervalExtEntry, adslAtucThreshold15MinFailedFastR=adslAtucThreshold15MinFailedFastR, adslAtucPerfCurr1DayUasL=adslAtucPerfCurr1DayUasL, adslAtucPerfCurr15MinFastR=adslAtucPerfCurr15MinFastR, adslAtucUasLThreshTrap=adslAtucUasLThreshTrap, adslAturPerfStatSesL=adslAturPerfStatSesL, adslExtAturTrapsPrefix=adslExtAturTrapsPrefix, adslAtucPerfPrev1DayFailedFastR=adslAtucPerfPrev1DayFailedFastR, adslAturIntervalUasL=adslAturIntervalUasL, adslConfProfileExtTable=adslConfProfileExtTable, adslAturIntervalSesL=adslAturIntervalSesL, adslAtucPerfDataExtEntry=adslAtucPerfDataExtEntry, adslAtucPerfStatUasL=adslAtucPerfStatUasL, adslAturPerfCurr1DaySesL=adslAturPerfCurr1DaySesL, adslAtucPerfCurr1DayFastR=adslAtucPerfCurr1DayFastR, adslAtucSesLThreshTrap=adslAtucSesLThreshTrap, adslExtLineAlarmConfProfileGroup=adslExtLineAlarmConfProfileGroup, adslExtCompliances=adslExtCompliances, adslAtucPerfCurr15MinFailedFastR=adslAtucPerfCurr15MinFailedFastR) |
errors_find = {
'ServerError': {
'response': "Some thing went wrong. Please try after some time.",
'status': 500,
},
'BadRequest': {
'response': "Request must be valid",
'status': 400
},
}
#Code to store error types based on status code. | errors_find = {'ServerError': {'response': 'Some thing went wrong. Please try after some time.', 'status': 500}, 'BadRequest': {'response': 'Request must be valid', 'status': 400}} |
# fml_parsetab.py
# This file is automatically generated. Do not edit.
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'bofx eofx newline tab interpolant lce rce string\n\tstart \t: \tbofx\n\t\t\t|\tstart eofx\n\t\t\t|\tstart code\n\t\n\tcode \t: \tnewline \n\t\n\tcode \t: \ttab\n\t\n\tcode \t: \tstring\n\t\n\tcode \t: \tlce\n\t\n\tcode \t: \trce\n\t\n\tcode \t: \tinterpolant\n\t'
_lr_action_items = {'bofx':([0,],[1,]),'$end':([1,2,3,4,5,6,7,8,9,10,],[-1,0,-9,-6,-2,-7,-3,-8,-5,-4,]),'interpolant':([1,2,3,4,5,6,7,8,9,10,],[-1,3,-9,-6,-2,-7,-3,-8,-5,-4,]),'tab':([1,2,3,4,5,6,7,8,9,10,],[-1,9,-9,-6,-2,-7,-3,-8,-5,-4,]),'lce':([1,2,3,4,5,6,7,8,9,10,],[-1,6,-9,-6,-2,-7,-3,-8,-5,-4,]),'string':([1,2,3,4,5,6,7,8,9,10,],[-1,4,-9,-6,-2,-7,-3,-8,-5,-4,]),'rce':([1,2,3,4,5,6,7,8,9,10,],[-1,8,-9,-6,-2,-7,-3,-8,-5,-4,]),'eofx':([1,2,3,4,5,6,7,8,9,10,],[-1,5,-9,-6,-2,-7,-3,-8,-5,-4,]),'newline':([1,2,3,4,5,6,7,8,9,10,],[-1,10,-9,-6,-2,-7,-3,-8,-5,-4,]),}
_lr_action = {}
for _k, _v in _lr_action_items.items():
for _x,_y in zip(_v[0],_v[1]):
if not _x in _lr_action: _lr_action[_x] = {}
_lr_action[_x][_k] = _y
del _lr_action_items
_lr_goto_items = {'start':([0,],[2,]),'code':([2,],[7,]),}
_lr_goto = {}
for _k, _v in _lr_goto_items.items():
for _x, _y in zip(_v[0], _v[1]):
if not _x in _lr_goto: _lr_goto[_x] = {}
_lr_goto[_x][_k] = _y
del _lr_goto_items
_lr_productions = [
("S' -> start","S'",1,None,None,None),
('start -> bofx','start',1,'p_bofx','fml_yacc.py',7),
('start -> start eofx','start',2,'p_bofx','fml_yacc.py',8),
('start -> start code','start',2,'p_bofx','fml_yacc.py',9),
('code -> newline','code',1,'p_newline','fml_yacc.py',15),
('code -> tab','code',1,'p_tab','fml_yacc.py',22),
('code -> string','code',1,'p_string','fml_yacc.py',29),
('code -> lce','code',1,'p_lce','fml_yacc.py',36),
('code -> rce','code',1,'p_rce','fml_yacc.py',43),
('code -> interpolant','code',1,'p_interpolant','fml_yacc.py',50),
]
| _tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'bofx eofx newline tab interpolant lce rce string\n\tstart \t: \tbofx\n\t\t\t|\tstart eofx\n\t\t\t|\tstart code\n\t\n\tcode \t: \tnewline \n\t\n\tcode \t: \ttab\n\t\n\tcode \t: \tstring\n\t\n\tcode \t: \tlce\n\t\n\tcode \t: \trce\n\t\n\tcode \t: \tinterpolant\n\t'
_lr_action_items = {'bofx': ([0], [1]), '$end': ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [-1, 0, -9, -6, -2, -7, -3, -8, -5, -4]), 'interpolant': ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [-1, 3, -9, -6, -2, -7, -3, -8, -5, -4]), 'tab': ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [-1, 9, -9, -6, -2, -7, -3, -8, -5, -4]), 'lce': ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [-1, 6, -9, -6, -2, -7, -3, -8, -5, -4]), 'string': ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [-1, 4, -9, -6, -2, -7, -3, -8, -5, -4]), 'rce': ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [-1, 8, -9, -6, -2, -7, -3, -8, -5, -4]), 'eofx': ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [-1, 5, -9, -6, -2, -7, -3, -8, -5, -4]), 'newline': ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [-1, 10, -9, -6, -2, -7, -3, -8, -5, -4])}
_lr_action = {}
for (_k, _v) in _lr_action_items.items():
for (_x, _y) in zip(_v[0], _v[1]):
if not _x in _lr_action:
_lr_action[_x] = {}
_lr_action[_x][_k] = _y
del _lr_action_items
_lr_goto_items = {'start': ([0], [2]), 'code': ([2], [7])}
_lr_goto = {}
for (_k, _v) in _lr_goto_items.items():
for (_x, _y) in zip(_v[0], _v[1]):
if not _x in _lr_goto:
_lr_goto[_x] = {}
_lr_goto[_x][_k] = _y
del _lr_goto_items
_lr_productions = [("S' -> start", "S'", 1, None, None, None), ('start -> bofx', 'start', 1, 'p_bofx', 'fml_yacc.py', 7), ('start -> start eofx', 'start', 2, 'p_bofx', 'fml_yacc.py', 8), ('start -> start code', 'start', 2, 'p_bofx', 'fml_yacc.py', 9), ('code -> newline', 'code', 1, 'p_newline', 'fml_yacc.py', 15), ('code -> tab', 'code', 1, 'p_tab', 'fml_yacc.py', 22), ('code -> string', 'code', 1, 'p_string', 'fml_yacc.py', 29), ('code -> lce', 'code', 1, 'p_lce', 'fml_yacc.py', 36), ('code -> rce', 'code', 1, 'p_rce', 'fml_yacc.py', 43), ('code -> interpolant', 'code', 1, 'p_interpolant', 'fml_yacc.py', 50)] |
RAW_SUBTOMOGRAMS = "volumes/raw"
LABELED_SUBTOMOGRAMS = "volumes/labels/"
PREDICTED_SEGMENTATION_SUBTOMOGRAMS = "volumes/predictions/"
CLUSTERING_LABELS = "volumes/cluster_labels/"
HDF_INTERNAL_PATH = "MDF/images/0/image"
| raw_subtomograms = 'volumes/raw'
labeled_subtomograms = 'volumes/labels/'
predicted_segmentation_subtomograms = 'volumes/predictions/'
clustering_labels = 'volumes/cluster_labels/'
hdf_internal_path = 'MDF/images/0/image' |
fp=open("list-11\\readme.txt","r")
sentence=fp.read()
words=sentence.split()
d = dict()
for c in words:
if c not in d:
d[c] = 1
else:
d[c] += 1
#dictionary values
a=d.values()
b=max(a)
for i in d:
if(d[i]==b):
print("frequent word:",i,";","count:",b) | fp = open('list-11\\readme.txt', 'r')
sentence = fp.read()
words = sentence.split()
d = dict()
for c in words:
if c not in d:
d[c] = 1
else:
d[c] += 1
a = d.values()
b = max(a)
for i in d:
if d[i] == b:
print('frequent word:', i, ';', 'count:', b) |
class fracao(object):
def __init__(self, num, den):
self.num = num
self.den = den
def somar_fracao(self, b):
f = fracao(self.num*b.den + b.num*self.den, self.den*b.den)
#f.num =
#f.den =
fracao.simplificar_fracao(f)
return f
def subtrair_fracao(self, b):
pass
def multiplicar_fracao(self, b):
pass
def dividir_fracao(self, b):
pass
def simplifica_fracao(self):
m = fracao.mdc(self.num, self.den)
self.num=self.num/m
self.den=self.den/m
print('Resultado: ', self.num, ' / ' , self.den)
#input()
return
@staticmethod
def simplificar_fracao(self):
m = fracao.mdc(self.num, self.den)
self.num=self.num/m
self.den=self.den/m
print('Resultado: ', self.num, ' / ' , self.den)
input()
return
def exibir_fracao(self):
print(self.num, ' / ' , self.den)
return
@staticmethod
def mdc(a,b):
if a<b:
return fracao.mdc(b,a)
else:
if b==0:
return a
else:
return fracao.mdc(b, a % b)
a = fracao(2,3)
b = fracao(3,4)
c = fracao(12,24)
c.simplifica_fracao()
a.exibir_fracao()
b.exibir_fracao()
c.exibir_fracao()
c = a.somar_fracao(b)
c.exibir_fracao()
d = a.somar_fracao(fracao(1,3))
| class Fracao(object):
def __init__(self, num, den):
self.num = num
self.den = den
def somar_fracao(self, b):
f = fracao(self.num * b.den + b.num * self.den, self.den * b.den)
fracao.simplificar_fracao(f)
return f
def subtrair_fracao(self, b):
pass
def multiplicar_fracao(self, b):
pass
def dividir_fracao(self, b):
pass
def simplifica_fracao(self):
m = fracao.mdc(self.num, self.den)
self.num = self.num / m
self.den = self.den / m
print('Resultado: ', self.num, ' / ', self.den)
return
@staticmethod
def simplificar_fracao(self):
m = fracao.mdc(self.num, self.den)
self.num = self.num / m
self.den = self.den / m
print('Resultado: ', self.num, ' / ', self.den)
input()
return
def exibir_fracao(self):
print(self.num, ' / ', self.den)
return
@staticmethod
def mdc(a, b):
if a < b:
return fracao.mdc(b, a)
elif b == 0:
return a
else:
return fracao.mdc(b, a % b)
a = fracao(2, 3)
b = fracao(3, 4)
c = fracao(12, 24)
c.simplifica_fracao()
a.exibir_fracao()
b.exibir_fracao()
c.exibir_fracao()
c = a.somar_fracao(b)
c.exibir_fracao()
d = a.somar_fracao(fracao(1, 3)) |
#!/usr/bin/python3
def inherits_from(obj, a_class):
if isinstance(obj, a_class) and type(obj) is not a_class:
return True
else:
return False
| def inherits_from(obj, a_class):
if isinstance(obj, a_class) and type(obj) is not a_class:
return True
else:
return False |
#
# A Rangoli Generator
#
# Author: Jeremy Pedersen
# Date: 2019-02-18
# License: "the unlicense" (Google it)
#
# Define letters for use in rangoli
alphabet = 'a b c d e f g h i j k l m n o p q r s t u v w x y z'.split()
# Read in rangoli size
size = int(input("Set size of rangoli: "))
# Calculate maximum linewidth (how much fill do we need per line)
maxWidth = size*2 - 1 + (size - 1)*2
# Generate rangoli
for i in list(range(size-1,0,-1)) + list(range(0,size)):
left = alphabet[1+i:size]
left.reverse()
right = alphabet[0+i:size]
center = '-'.join(left + right)
padding = '-'*((maxWidth - len(center))//2)
print(padding+center+padding)
| alphabet = 'a b c d e f g h i j k l m n o p q r s t u v w x y z'.split()
size = int(input('Set size of rangoli: '))
max_width = size * 2 - 1 + (size - 1) * 2
for i in list(range(size - 1, 0, -1)) + list(range(0, size)):
left = alphabet[1 + i:size]
left.reverse()
right = alphabet[0 + i:size]
center = '-'.join(left + right)
padding = '-' * ((maxWidth - len(center)) // 2)
print(padding + center + padding) |
calls = 0
def call():
global calls
calls += 1
def reset():
global calls
calls = 0
| calls = 0
def call():
global calls
calls += 1
def reset():
global calls
calls = 0 |
def iterPower(base,exp):
ans=1
while exp>0:
ans=ans*base
exp-=1
return ans
| def iter_power(base, exp):
ans = 1
while exp > 0:
ans = ans * base
exp -= 1
return ans |
# Requer num e tipo = {"num": int, "tipo": int}
select_atributos_criatura = lambda dados = {} : """
Select atributo1, atributo 2
FROM criaturas
WHERE Num = :num
AND tipo = :tipo ;
"""
select_all_ref_atributos = lambda dados = {} : """
SELECT Distinct ref
FROM atributos
"""
# Requer tipo e ref = {"tipo": int, "ref":int}
select_atributos_ref = lambda dados = {} : """
SELECT Atributos.nome
FROM Atributos
INNER JOIN Idiomas
ON Atributos.idioma = Idiomas.id
INNER JOIN Tipos
ON Atributos.tipo = Tipos.id
WHERE Tipos.nome = :nome_tipo
AND Idiomas.nome = :nome_idioma
AND ref = :ref_atributo
"""
# Requer tipo = {"tipo": int}
select_atributos_tipo = lambda dados = {} : """
SELECT Distinct id, Nome, Idioma, tipo, Ref
FROM atributos
WHERE tipo = :tipo
"""
| select_atributos_criatura = lambda dados={}: '\n Select atributo1, atributo 2 \n FROM criaturas \n WHERE Num = :num \n AND tipo = :tipo ;\n'
select_all_ref_atributos = lambda dados={}: '\n SELECT Distinct ref \n FROM atributos\n'
select_atributos_ref = lambda dados={}: '\n SELECT Atributos.nome \n FROM Atributos \n INNER JOIN Idiomas\n ON Atributos.idioma = Idiomas.id\n INNER JOIN Tipos\n ON Atributos.tipo = Tipos.id\n WHERE Tipos.nome = :nome_tipo\n AND Idiomas.nome = :nome_idioma\n AND ref = :ref_atributo \n'
select_atributos_tipo = lambda dados={}: '\n SELECT Distinct id, Nome, Idioma, tipo, Ref \n FROM atributos \n WHERE tipo = :tipo\n' |
"""
G2_RIGHTS.
Module to parse traffic configuration file.
"""
class TraceParser:
"""Class definition for traffic config file parsing.
Args:
path (str): Path to input traffic config file.
Attributes:
jobs (list): List of jobs obtained from traffic config file. Each job corresponds to a single flow
specified in the file, and represented as a Python dictionary.
"""
def __init__(self, path):
fileContent = None
try:
with open(path) as f:
fileContent = f.readlines()
except IOError as e:
print("TraceParser: Couldn't open file ({}).".format(e))
self.jobs = []
if fileContent:
for line in fileContent:
line = line.strip()
if line and not line.strip().startswith('#'):
tokens = line.split(',')
if len(tokens) < 7:
info("**** [G2]: traffic.conf should at least specify job id, source host, destination host, bytes to transfer, time to start the transfer, expected fair share, specified path; exiting...\n")
return
j = {
'id': int(tokens[0].strip()),
'src': tokens[1].strip(),
'dst': tokens[2].strip(),
'size': float(tokens[3].strip()),
'time': float(tokens[4].strip()),
'share': float(tokens[5].strip()),
'traversedNodes': tokens[6].strip().split(' '),
'dscp': 'N/A',
'bitrate': 'N/A',
'transport': 'TCP'
}
if len(tokens) > 7:
j['dscp'] = tokens[7].strip()
j['bitrate'] = tokens[8].strip()
j['transport'] = tokens[9].strip()
self.jobs.append(j)
# Check whether the IDs are valid.
if self.jobs:
idList = [j['id'] for j in self.jobs]
if (min(idList) != 1) or (not sorted(idList) == list(range(min(idList), max(idList)+1))):
self.jobs = []
print("TraceParser: invalid IDs in traffic configuration.")
if not self.jobs:
print("TraceParser: returned empty traffic configuration.")
| """
G2_RIGHTS.
Module to parse traffic configuration file.
"""
class Traceparser:
"""Class definition for traffic config file parsing.
Args:
path (str): Path to input traffic config file.
Attributes:
jobs (list): List of jobs obtained from traffic config file. Each job corresponds to a single flow
specified in the file, and represented as a Python dictionary.
"""
def __init__(self, path):
file_content = None
try:
with open(path) as f:
file_content = f.readlines()
except IOError as e:
print("TraceParser: Couldn't open file ({}).".format(e))
self.jobs = []
if fileContent:
for line in fileContent:
line = line.strip()
if line and (not line.strip().startswith('#')):
tokens = line.split(',')
if len(tokens) < 7:
info('**** [G2]: traffic.conf should at least specify job id, source host, destination host, bytes to transfer, time to start the transfer, expected fair share, specified path; exiting...\n')
return
j = {'id': int(tokens[0].strip()), 'src': tokens[1].strip(), 'dst': tokens[2].strip(), 'size': float(tokens[3].strip()), 'time': float(tokens[4].strip()), 'share': float(tokens[5].strip()), 'traversedNodes': tokens[6].strip().split(' '), 'dscp': 'N/A', 'bitrate': 'N/A', 'transport': 'TCP'}
if len(tokens) > 7:
j['dscp'] = tokens[7].strip()
j['bitrate'] = tokens[8].strip()
j['transport'] = tokens[9].strip()
self.jobs.append(j)
if self.jobs:
id_list = [j['id'] for j in self.jobs]
if min(idList) != 1 or not sorted(idList) == list(range(min(idList), max(idList) + 1)):
self.jobs = []
print('TraceParser: invalid IDs in traffic configuration.')
if not self.jobs:
print('TraceParser: returned empty traffic configuration.') |
#Environment related constants
ENV_PRODUCTION = 'PRODUCTION'
#Staging is used for testing by replicating the same production remote env
ENV_STAGING = 'STAGING'
#Development local env
ENV_DEVELOPMENT = 'DEV'
#Automated tests local env
ENV_TESTING = 'TEST'
ENVIRONMENT_CHOICES = [
ENV_PRODUCTION,
ENV_STAGING,
ENV_DEVELOPMENT,
ENV_TESTING,
]
PAGE_SIZE = 20
EMAIL_REGEXP = "^[a-zA-Z0-9'._-]+@[a-zA-Z0-9._-]+.[a-zA-Z]{2,6}$"
OAUTH2_SCOPES = 'https://www.googleapis.com/auth/userinfo.email ' \
'https://www.googleapis.com/auth/email.migration ' \
'https://apps-apis.google.com/a/feeds/emailsettings/2.0/ ' \
'https://www.googleapis.com/auth/drive'
MENU_ITEMS = [
('admin_index', 'Home'),
('settings','Settings')
]
IMAP_SERVER = 'imap.gmail.com'
IMAP_PORT = 993
IMAP_ALL_LABEL_ES = '[Gmail]/Todos'
IMAP_ALL_LABEL_EN = '[Gmail]/All Mail'
IMAP_TRASH_LABEL_EN = '[Gmail]/Trash'
IMAP_TRASH_LABEL_ES = '[Gmail]/Papelera'
GMAIL_TRASH_KEY = '(\\HasNoChildren \\Trash)'
GMAIL_ALL_KEY = '(\\HasNoChildren \\All)'
USER_CONNECTION_LIMIT = 7
MESSAGE_BATCH_SIZE = 500
STARTED = 'STARTED'
FINISHED = 'FINISHED'
FAILED = 'FAILED'
STATUS_CHOICES = [
STARTED,
FINISHED,
FAILED
]
DUPLICATED = 'DUPLICATED'
MIGRATED = 'MIGRATED'
CLEANING_STATUS_CHOICES = [
STARTED,
DUPLICATED,
MIGRATED,
FINISHED
]
ATTACHMENT_FOLDER = 'Adjuntos'
GMAIL_PROPERTIES = [
{'\\\\Inbox': 'isInbox'},
{'\\\\Sent': 'isSent'},
{'\\\\Starred': 'isStarred'},
{'\\\\Draft': 'isDraft'},
{'\\\\Unread': 'isUnread'}
]
GMAIL_PROPERTY_NAMES = [
'\\\\Inbox',
'\\\\Sent',
'\\\\Starred',
'\\\\Draft',
'\\\\Unread',
'\\\\Important'
]
MAX_RETRIES = 3
MAX_CLEAN_RETRIES = 1
CLEAN_LABEL = 'Migrados'
SERVICE_ACCOUNT_ID = ""
GMAIL_API_SCOPES = ""
SERVICE_ACCOUNT_KEY_PATH = "" | env_production = 'PRODUCTION'
env_staging = 'STAGING'
env_development = 'DEV'
env_testing = 'TEST'
environment_choices = [ENV_PRODUCTION, ENV_STAGING, ENV_DEVELOPMENT, ENV_TESTING]
page_size = 20
email_regexp = "^[a-zA-Z0-9'._-]+@[a-zA-Z0-9._-]+.[a-zA-Z]{2,6}$"
oauth2_scopes = 'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/email.migration https://apps-apis.google.com/a/feeds/emailsettings/2.0/ https://www.googleapis.com/auth/drive'
menu_items = [('admin_index', 'Home'), ('settings', 'Settings')]
imap_server = 'imap.gmail.com'
imap_port = 993
imap_all_label_es = '[Gmail]/Todos'
imap_all_label_en = '[Gmail]/All Mail'
imap_trash_label_en = '[Gmail]/Trash'
imap_trash_label_es = '[Gmail]/Papelera'
gmail_trash_key = '(\\HasNoChildren \\Trash)'
gmail_all_key = '(\\HasNoChildren \\All)'
user_connection_limit = 7
message_batch_size = 500
started = 'STARTED'
finished = 'FINISHED'
failed = 'FAILED'
status_choices = [STARTED, FINISHED, FAILED]
duplicated = 'DUPLICATED'
migrated = 'MIGRATED'
cleaning_status_choices = [STARTED, DUPLICATED, MIGRATED, FINISHED]
attachment_folder = 'Adjuntos'
gmail_properties = [{'\\\\Inbox': 'isInbox'}, {'\\\\Sent': 'isSent'}, {'\\\\Starred': 'isStarred'}, {'\\\\Draft': 'isDraft'}, {'\\\\Unread': 'isUnread'}]
gmail_property_names = ['\\\\Inbox', '\\\\Sent', '\\\\Starred', '\\\\Draft', '\\\\Unread', '\\\\Important']
max_retries = 3
max_clean_retries = 1
clean_label = 'Migrados'
service_account_id = ''
gmail_api_scopes = ''
service_account_key_path = '' |
"""
Given an array of integers A, return the largest integer that only occurs once.
If no integer occurs once, return -1.
Example 1:
Input: [5,7,3,9,4,9,8,3,1]
Output: 8
Explanation:
The maximum integer in the array is 9 but it is repeated. The number 8 occurs only once, so it's the answer.
Example 2:
Input: [9,9,8,8]
Output: -1
Explanation:
There is no number that occurs only once.
Solution:
Hash table.
First find all unique numbers, and then pick the max.
"""
# Hash Table
# Time: O(N), where N is the length of A
# Space: O(N), since we keep up to the whole list A
class Solution(object):
def largestUniqueNumber(self, A):
"""
:type A: List[int]
:rtype: int
"""
d = dict()
for a in A:
d[a] = d.get(a, 0) + 1
candidates = []
for k, v in d.items():
if v == 1:
candidates.append(k)
if len(candidates) == 0:
return -1
else:
return max(candidates) | """
Given an array of integers A, return the largest integer that only occurs once.
If no integer occurs once, return -1.
Example 1:
Input: [5,7,3,9,4,9,8,3,1]
Output: 8
Explanation:
The maximum integer in the array is 9 but it is repeated. The number 8 occurs only once, so it's the answer.
Example 2:
Input: [9,9,8,8]
Output: -1
Explanation:
There is no number that occurs only once.
Solution:
Hash table.
First find all unique numbers, and then pick the max.
"""
class Solution(object):
def largest_unique_number(self, A):
"""
:type A: List[int]
:rtype: int
"""
d = dict()
for a in A:
d[a] = d.get(a, 0) + 1
candidates = []
for (k, v) in d.items():
if v == 1:
candidates.append(k)
if len(candidates) == 0:
return -1
else:
return max(candidates) |
# coding: utf-8
"""
API config settings
"""
PRODUCTION = True
DATABASES = {
'docker': {
'ENGINE': 'mongodb',
'NAME': 'leadbook',
'HOST': 'leadbookdb',
'PORT': 27017,
'TABLE': 'company'
},
'local': {
'ENGINE': 'mongodb',
'NAME': 'leadbook',
'HOST': 'localhost',
'PORT': 27017,
'TABLE': 'company'
}
}
TIME_ZONE = 'Asia/Singapore'
LANGUAGE_CODE = 'en-GB'
| """
API config settings
"""
production = True
databases = {'docker': {'ENGINE': 'mongodb', 'NAME': 'leadbook', 'HOST': 'leadbookdb', 'PORT': 27017, 'TABLE': 'company'}, 'local': {'ENGINE': 'mongodb', 'NAME': 'leadbook', 'HOST': 'localhost', 'PORT': 27017, 'TABLE': 'company'}}
time_zone = 'Asia/Singapore'
language_code = 'en-GB' |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if head is None or head.next is None:
return head
cur, last = head, None
dup = False
while cur:
if dup:
nex = cur.next
if last:
last.next = nex
else:
head = nex
if nex is None:
break
if nex.val != cur.val:
dup = False
cur = nex
else:
nex = cur.next
if nex is None:
break
if nex.val == cur.val:
dup = True
if last:
last.next = nex
else:
head = nex
cur = nex
else:
last = cur
cur = nex
return head
| class Solution:
def delete_duplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if head is None or head.next is None:
return head
(cur, last) = (head, None)
dup = False
while cur:
if dup:
nex = cur.next
if last:
last.next = nex
else:
head = nex
if nex is None:
break
if nex.val != cur.val:
dup = False
cur = nex
else:
nex = cur.next
if nex is None:
break
if nex.val == cur.val:
dup = True
if last:
last.next = nex
else:
head = nex
cur = nex
else:
last = cur
cur = nex
return head |
name = input("Please enter your name:")
age = int(input("Please enter your age:"))
if type(name) == str:
if type(age) == int:
print(f"{name} you are {age} years old and you will be 100 after {100 - age} years")
else:
print("Please enter a valid number")
else:
print("please enter your name")
| name = input('Please enter your name:')
age = int(input('Please enter your age:'))
if type(name) == str:
if type(age) == int:
print(f'{name} you are {age} years old and you will be 100 after {100 - age} years')
else:
print('Please enter a valid number')
else:
print('please enter your name') |
"""
Test cases
TODO.
"""
| """
Test cases
TODO.
""" |
seq = [0, 1]
def create_sequence(n):
global seq
if n == 0:
return []
elif n == 1:
return [0]
else:
seq = [0, 1]
for i in range(2, n):
seq.append(seq[-1] + seq[-2])
return seq
def locate(x):
if x in seq:
return f"The number - {x} is at index {seq.index(x)}"
else:
return f"The number {x} is not in the sequence" | seq = [0, 1]
def create_sequence(n):
global seq
if n == 0:
return []
elif n == 1:
return [0]
else:
seq = [0, 1]
for i in range(2, n):
seq.append(seq[-1] + seq[-2])
return seq
def locate(x):
if x in seq:
return f'The number - {x} is at index {seq.index(x)}'
else:
return f'The number {x} is not in the sequence' |
d1 = dict()
print(d1) # DI1
print(type(d1))
d2 = dict({1:'a',2:'b',3:'c'})
print(d2) # DI2
d3 = dict([(1,"python"),(2,"is"),(3,"awesome")])
print(d3) # DI3
d4 = dict(((1,"python"),(2,"is"),(3,"awesome")))
print(d4) # DI4
d5 = dict({(1,"python"),(2,"is"),(3,"awesome")})
print(d5) # DI5
d6 = dict({[1,"python"],[2,"is"],[3,"awesome"]})
print(d6) # DI6 | d1 = dict()
print(d1)
print(type(d1))
d2 = dict({1: 'a', 2: 'b', 3: 'c'})
print(d2)
d3 = dict([(1, 'python'), (2, 'is'), (3, 'awesome')])
print(d3)
d4 = dict(((1, 'python'), (2, 'is'), (3, 'awesome')))
print(d4)
d5 = dict({(1, 'python'), (2, 'is'), (3, 'awesome')})
print(d5)
d6 = dict({[1, 'python'], [2, 'is'], [3, 'awesome']})
print(d6) |
def parse_array(tokenstream):
_ = tokenstream.pop_next()
assert _ == "["
result = []
while True:
token = tokenstream.pop_next()
if token == "]": break
result.append(token)
return result
def parse_varfunction(tokenstream, identifier, scene):
identifier_type = tokenstream.pop_next()[1:-1]
params = {}
while tokenstream.peek()[0] == "\"":
type_and_name = tokenstream.pop_next()[1:-1]
if tokenstream.peek() == "[":
params[type_and_name] = parse_array(tokenstream)
else:
params[type_and_name] = tokenstream.pop_next()
return [identifier,identifier_type,params]
| def parse_array(tokenstream):
_ = tokenstream.pop_next()
assert _ == '['
result = []
while True:
token = tokenstream.pop_next()
if token == ']':
break
result.append(token)
return result
def parse_varfunction(tokenstream, identifier, scene):
identifier_type = tokenstream.pop_next()[1:-1]
params = {}
while tokenstream.peek()[0] == '"':
type_and_name = tokenstream.pop_next()[1:-1]
if tokenstream.peek() == '[':
params[type_and_name] = parse_array(tokenstream)
else:
params[type_and_name] = tokenstream.pop_next()
return [identifier, identifier_type, params] |
class Solution:
def lengthoflongestsubstring(self, s):
sls = len(set(s))
slen = len(s)
if slen < 1:
return 0
else:
max_len = 1
for i in range(slen):
for j in range(i+max_len+1, i+sls+1):
curr = s[i:j]
curr_len = len(curr)
if len(set(curr)) != curr_len:
break
else:
if curr_len > max_len:
max_len = curr_len
return max_len
| class Solution:
def lengthoflongestsubstring(self, s):
sls = len(set(s))
slen = len(s)
if slen < 1:
return 0
else:
max_len = 1
for i in range(slen):
for j in range(i + max_len + 1, i + sls + 1):
curr = s[i:j]
curr_len = len(curr)
if len(set(curr)) != curr_len:
break
elif curr_len > max_len:
max_len = curr_len
return max_len |
print("Input: ",end="")
str = input()
def rev(str):
str = str.split(" ")
stack = []
for i in str:
stack.append(i)
while len(stack) > 0:
print(stack[-1], end = " ")
del stack[-1]
print("Output: ",end="")
rev(str)
| print('Input: ', end='')
str = input()
def rev(str):
str = str.split(' ')
stack = []
for i in str:
stack.append(i)
while len(stack) > 0:
print(stack[-1], end=' ')
del stack[-1]
print('Output: ', end='')
rev(str) |
class Solution(object):
def isScramble(self, s1, s2):
"""
:type s1: str
:type s2: str
:rtype: bool
"""
return True
def test_is_scramble():
s = Solution()
assert s.isScramble("great", "rgeat") is True
assert s.isScramble("abcde", "caebd") is False
| class Solution(object):
def is_scramble(self, s1, s2):
"""
:type s1: str
:type s2: str
:rtype: bool
"""
return True
def test_is_scramble():
s = solution()
assert s.isScramble('great', 'rgeat') is True
assert s.isScramble('abcde', 'caebd') is False |
def compare_reverse_number(A, B):
rev_A, rev_B = '', ''
for i in range(len(A) - 1, -1, -1):
rev_A += A[i]
for j in range(len(B) - 1, -1, -1):
rev_B += B[j]
if rev_A > rev_B:
return rev_A
else:
return rev_B
def main():
A, B = input().split()
answer = compare_reverse_number(A, B)
print(answer)
if __name__ == "__main__":
main()
| def compare_reverse_number(A, B):
(rev_a, rev_b) = ('', '')
for i in range(len(A) - 1, -1, -1):
rev_a += A[i]
for j in range(len(B) - 1, -1, -1):
rev_b += B[j]
if rev_A > rev_B:
return rev_A
else:
return rev_B
def main():
(a, b) = input().split()
answer = compare_reverse_number(A, B)
print(answer)
if __name__ == '__main__':
main() |
#!python
def linear_search(array, item):
"""return the first index of item in array or None if item is not found"""
# implement linear_search_iterative and linear_search_recursive below, then
# change this to call your implementation to verify it passes all tests
# return linear_search_iterative(array, item)
return linear_search_recursive(array, item)
def linear_search_iterative(array, item):
# loop over all array values until item is found
for index, value in enumerate(array):
if item == value:
return index # found
return None # not found
def linear_search_recursive(array, item, index=0):
# TODO: implement linear search recursively here
if array[index] == item:
return index
elif index == len(array) - 1:
return None
else:
index += 1
return linear_search_recursive(array, item, index)
# once implemented, change linear_search to call linear_search_recursive
# to verify that your recursive implementation passes all tests
def binary_search(array, item):
"""return the index of item in sorted array or None if item is not found"""
# implement binary_search_iterative and binary_search_recursive below, then
# change this to call your implementation to verify it passes all tests
# return binary_search_iterative(array, item)
return binary_search_recursive(array, item)
def binary_search_iterative(array, item):
# TODO: implement binary search iteratively here
""" Assuming array is already Sorted"""
start = 0
end = len(array) - 1
target = (len(array) - 1)//2
while True:
if target == len(array) or target < 0:
return None
temp_list = [array[target], item]
temp_list.sort()
if array[start] == item:
return start
elif array[end] == item:
return end
if array[target] == item:
return target
elif temp_list[0] == array[target]:
# Going Right
start = target
target = (target + end)//2
end -= 1
elif temp_list[0] == item:
# Going Left
end = target
target = abs((target - start)//2)
start += 1
# once implemented, change binary_search to call binary_search_iterative
# to verify that your iterative implementation passes all tests
def binary_search_recursive(array, item, start=0, endmark=0, target=0, trig=True):
# TODO: implement binary search recursively here
if trig is True:
trig = False
endmark = len(array) - 1
target = (len(array) - 1)//2
if target == len(array) or target < 0:
return None
temp_list = [array[target], item]
temp_list.sort()
if array[start] == item:
return start
elif array[endmark] == item:
return endmark
if array[target] == item:
return target
elif temp_list[0] == array[target]:
# Going Right
start = target
target = (target + endmark)//2
endmark -= 1
return binary_search_recursive(array, item, start, endmark, target, trig)
elif temp_list[0] == item:
# Going Left
endmark = target
target = abs((target - start) //2)
start += 1
return binary_search_recursive(array, item, start, endmark, target, trig)
# once implemented, change binary_search to call binary_search_recursive
# to verify that your recursive implementation passes all tests
| def linear_search(array, item):
"""return the first index of item in array or None if item is not found"""
return linear_search_recursive(array, item)
def linear_search_iterative(array, item):
for (index, value) in enumerate(array):
if item == value:
return index
return None
def linear_search_recursive(array, item, index=0):
if array[index] == item:
return index
elif index == len(array) - 1:
return None
else:
index += 1
return linear_search_recursive(array, item, index)
def binary_search(array, item):
"""return the index of item in sorted array or None if item is not found"""
return binary_search_recursive(array, item)
def binary_search_iterative(array, item):
""" Assuming array is already Sorted"""
start = 0
end = len(array) - 1
target = (len(array) - 1) // 2
while True:
if target == len(array) or target < 0:
return None
temp_list = [array[target], item]
temp_list.sort()
if array[start] == item:
return start
elif array[end] == item:
return end
if array[target] == item:
return target
elif temp_list[0] == array[target]:
start = target
target = (target + end) // 2
end -= 1
elif temp_list[0] == item:
end = target
target = abs((target - start) // 2)
start += 1
def binary_search_recursive(array, item, start=0, endmark=0, target=0, trig=True):
if trig is True:
trig = False
endmark = len(array) - 1
target = (len(array) - 1) // 2
if target == len(array) or target < 0:
return None
temp_list = [array[target], item]
temp_list.sort()
if array[start] == item:
return start
elif array[endmark] == item:
return endmark
if array[target] == item:
return target
elif temp_list[0] == array[target]:
start = target
target = (target + endmark) // 2
endmark -= 1
return binary_search_recursive(array, item, start, endmark, target, trig)
elif temp_list[0] == item:
endmark = target
target = abs((target - start) // 2)
start += 1
return binary_search_recursive(array, item, start, endmark, target, trig) |
TASK = "task"
TASK_INSTANCE = "task_instance"
X = "X"
Y = "Y"
MAHOZ = "MAHOZ"
XY = f"{X}/{Y}"
| task = 'task'
task_instance = 'task_instance'
x = 'X'
y = 'Y'
mahoz = 'MAHOZ'
xy = f'{X}/{Y}' |
class FlyweightMeta(type):
"""
Flyweight meta class as part of the Flyweight design pattern.
- External Usage Documentation: U{https://github.com/tylerlaberge/PyPattyrn#flyweight-pattern}
- External Flyweight Pattern documentation: U{https://en.wikipedia.org/wiki/Flyweight_pattern}
"""
def __new__(mcs, name, bases, attrs):
"""
Override class construction to add 'pool' attribute to classes dict.
@param name: The name of the class.
@param bases: Base classes of the class.
@param attrs: Attributes of the class.
@return: A new Class.
"""
attrs['pool'] = dict()
return super(FlyweightMeta, mcs).__new__(mcs, name, bases, attrs)
@staticmethod
def _serialize(cls, *args, **kwargs):
"""
Serialize arguments to a string representation.
"""
serialized_args = [str(arg) for arg in args]
serialized_kwargs = [str(kwargs), cls.__name__]
serialized_args.extend(serialized_kwargs)
return ''.join(serialized_args)
def __call__(cls, *args, **kwargs):
"""
Override call to use objects from a pool if identical parameters are used for object creation.
@param args: Arguments for class instantiation.
@param kwargs: Keyword arguments for class instantiation.
@return: A new instance of the class.
"""
key = FlyweightMeta._serialize(cls, *args, **kwargs)
pool = getattr(cls, 'pool', {})
instance = pool.get(key)
if not instance:
instance = super(FlyweightMeta, cls).__call__(*args, **kwargs)
pool[key] = instance
return instance
| class Flyweightmeta(type):
"""
Flyweight meta class as part of the Flyweight design pattern.
- External Usage Documentation: U{https://github.com/tylerlaberge/PyPattyrn#flyweight-pattern}
- External Flyweight Pattern documentation: U{https://en.wikipedia.org/wiki/Flyweight_pattern}
"""
def __new__(mcs, name, bases, attrs):
"""
Override class construction to add 'pool' attribute to classes dict.
@param name: The name of the class.
@param bases: Base classes of the class.
@param attrs: Attributes of the class.
@return: A new Class.
"""
attrs['pool'] = dict()
return super(FlyweightMeta, mcs).__new__(mcs, name, bases, attrs)
@staticmethod
def _serialize(cls, *args, **kwargs):
"""
Serialize arguments to a string representation.
"""
serialized_args = [str(arg) for arg in args]
serialized_kwargs = [str(kwargs), cls.__name__]
serialized_args.extend(serialized_kwargs)
return ''.join(serialized_args)
def __call__(cls, *args, **kwargs):
"""
Override call to use objects from a pool if identical parameters are used for object creation.
@param args: Arguments for class instantiation.
@param kwargs: Keyword arguments for class instantiation.
@return: A new instance of the class.
"""
key = FlyweightMeta._serialize(cls, *args, **kwargs)
pool = getattr(cls, 'pool', {})
instance = pool.get(key)
if not instance:
instance = super(FlyweightMeta, cls).__call__(*args, **kwargs)
pool[key] = instance
return instance |
#
# PySNMP MIB module RDN-CABLE-SPECTRUM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RDN-CABLE-SPECTRUM-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:54:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection")
InterfaceIndex, ifAdminStatus, ifOperStatus, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "ifAdminStatus", "ifOperStatus", "ifIndex")
riverdelta, = mibBuilder.importSymbols("RDN-MIB", "riverdelta")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
MibIdentifier, ObjectIdentity, Counter32, ModuleIdentity, Integer32, Unsigned32, Bits, IpAddress, TimeTicks, iso, Counter64, NotificationType, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "ObjectIdentity", "Counter32", "ModuleIdentity", "Integer32", "Unsigned32", "Bits", "IpAddress", "TimeTicks", "iso", "Counter64", "NotificationType", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
DateAndTime, MacAddress, TextualConvention, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "MacAddress", "TextualConvention", "RowStatus", "DisplayString")
rdnCableSpectrum = ModuleIdentity((1, 3, 6, 1, 4, 1, 4981, 6))
if mibBuilder.loadTexts: rdnCableSpectrum.setLastUpdated('200206250000Z')
if mibBuilder.loadTexts: rdnCableSpectrum.setOrganization('Motorola')
if mibBuilder.loadTexts: rdnCableSpectrum.setContactInfo(' Motorola Customer Service Postal: Motorola Three Highwood Dr east Tewksbury, MA 01876 U.S.A. Tel: ')
if mibBuilder.loadTexts: rdnCableSpectrum.setDescription('This is the MIB Module for Cable Spectrum Management for MCNS compliant Cable Modem Termination Systems (CMTS). ')
rdnCableSpectrumObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 6, 1))
rdnFlapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1))
rdnFlapCmCmtsStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1), )
if mibBuilder.loadTexts: rdnFlapCmCmtsStatusTable.setStatus('current')
if mibBuilder.loadTexts: rdnFlapCmCmtsStatusTable.setDescription('This table keeps the status of the flap modems for per CMTS.')
rdnFlapCmCmtsStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1), ).setIndexNames((0, "RDN-CABLE-SPECTRUM-MIB", "flapCmCmtsIfIndex"))
if mibBuilder.loadTexts: rdnFlapCmCmtsStatusEntry.setStatus('current')
if mibBuilder.loadTexts: rdnFlapCmCmtsStatusEntry.setDescription('List of attributes for an entry in the rdnFlapCmCmtsStatusTable.')
flapCmCmtsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)))
if mibBuilder.loadTexts: flapCmCmtsIfIndex.setStatus('current')
if mibBuilder.loadTexts: flapCmCmtsIfIndex.setDescription('The CMTS Interface Index.')
flapListMaxSize = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8191)).clone(100)).setUnits('modems').setMaxAccess("readwrite")
if mibBuilder.loadTexts: flapListMaxSize.setStatus('current')
if mibBuilder.loadTexts: flapListMaxSize.setDescription('The maximum number of flap modems. The user could configure this number according to the number of downstreams and the number of modem line cards in the CMTS. The number can range from 1 to 8191. The default value is 100. When the number of modems exceeds the max flap list size, the additional modems are ignored.')
flapListCurrentSize = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 8191))).setUnits('modems').setMaxAccess("readonly")
if mibBuilder.loadTexts: flapListCurrentSize.setStatus('current')
if mibBuilder.loadTexts: flapListCurrentSize.setDescription('The current number of modems in the flap list. Its value will be less than or equal to flapListMaxSize.')
flapAgingOutTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 86400)).clone(1440)).setUnits('minutes').setMaxAccess("readwrite")
if mibBuilder.loadTexts: flapAgingOutTime.setStatus('current')
if mibBuilder.loadTexts: flapAgingOutTime.setDescription('The age out time in minutes for modems in the flap table. The number of minutes range from 1 to 86400. The default value is 1440.')
flapInsertionTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 86400)).clone(60)).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: flapInsertionTime.setStatus('current')
if mibBuilder.loadTexts: flapInsertionTime.setDescription('The interval of time that begins when the cable modem initially ranges, reboots, and ends when it starts initial maintenance again. If the interval of time is less than what is specified in flapInsertionTime, the flapCmInsertionFails and cmFlapCounts will increment. The valid range is from 1 to 86400 seconds. The default value is 60.')
flapMissThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 12)).clone(6)).setUnits('modem').setMaxAccess("readwrite")
if mibBuilder.loadTexts: flapMissThreshold.setStatus('current')
if mibBuilder.loadTexts: flapMissThreshold.setDescription('Specifies the maximum threshold for the number of consecutive miss counts during a polling cycle. If the flap miss counts goes over this threshold, the modem will be added into the flap list. Polling is maintained between the CMTS and the cable modem every 10 seconds. The flapMissThreshold specifies the maximum number of consecutive missed counts during one station maintenance poll interval. If there are more than 16 consecutive miss counts during one polling cycle, the modem will de-insert and attempt to range again. The value ranges from 1 to 12 consecutive counts. The default value is 6.')
flapPowerAdjThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(2)).setUnits('dB').setMaxAccess("readwrite")
if mibBuilder.loadTexts: flapPowerAdjThreshold.setStatus('current')
if mibBuilder.loadTexts: flapPowerAdjThreshold.setDescription(" The power adjustment threshold for a CM to raise and lower it's transmit power during normal operation. When a modem's power adjustment goes above or below the flapPowerAdjThreshold the CM will be added into the flap list. The flapCmPowerAdjustments and cmFlapCounts will be incremented as well. flapPowerAdjThreshold values of 2 dB and below are low enough to continuously increment the flapCmPowerAdjustments under normal conditions. The values range from 1 to 10. The default is 2. ")
flapListPercentageThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)).clone(10)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: flapListPercentageThreshold.setStatus('current')
if mibBuilder.loadTexts: flapListPercentageThreshold.setDescription(' The percentage CM miss threshold. If CM miss percentage goes over this threshold and flapListTrapEnable is set, a flap list trap will be send out to notify this event ')
flapListTrapEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: flapListTrapEnable.setStatus('current')
if mibBuilder.loadTexts: flapListTrapEnable.setDescription('This object controls flap list trap. If its value is set to enabled(1), a trap will be sent out when the CM miss percentage goes over the flapListPercentageThreshold; Otherwise no flap list trap will be sent out. By default, this object has the value enabled(1). ')
rdnFlapCmTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2), )
if mibBuilder.loadTexts: rdnFlapCmTable.setStatus('current')
if mibBuilder.loadTexts: rdnFlapCmTable.setDescription('This table keeps the records of modem state changes. An entry can be deleted from the table but can not be added to the table.')
rdnFlapCmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1), ).setIndexNames((0, "RDN-CABLE-SPECTRUM-MIB", "flapCmIndex"))
if mibBuilder.loadTexts: rdnFlapCmEntry.setStatus('current')
if mibBuilder.loadTexts: rdnFlapCmEntry.setDescription('List of attributes for an entry in the rdnFlapTable.')
flapCmIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 1), InterfaceIndex())
if mibBuilder.loadTexts: flapCmIndex.setStatus('current')
if mibBuilder.loadTexts: flapCmIndex.setDescription(' Index for Cable Modem.')
cmtsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmtsIfIndex.setStatus('current')
if mibBuilder.loadTexts: cmtsIfIndex.setDescription('The CMTS Interface Index.')
flapCmMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 3), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flapCmMacAddress.setStatus('current')
if mibBuilder.loadTexts: flapCmMacAddress.setDescription("MAC address of the Cable Modem's Cable interface. Identifies a flap-list entry for a flapping Cable Modem.")
flapCmUpstreamIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 4), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flapCmUpstreamIfIndex.setStatus('current')
if mibBuilder.loadTexts: flapCmUpstreamIfIndex.setDescription('The ifIndex of the Cable upstream interface whose ifType is docsCableUpstream(129). The CMTS detects a flapping Cable Modem from its Cable upstream interface.')
flapCmDownstreamIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 5), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flapCmDownstreamIfIndex.setStatus('current')
if mibBuilder.loadTexts: flapCmDownstreamIfIndex.setDescription('The ifIndex of the Cable downstream interface whose ifType is docsCableDownstream(128).')
flapCmInsertionFails = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flapCmInsertionFails.setReference('Data over Cable Radio Frequency Interface specification, Section 7.2.')
if mibBuilder.loadTexts: flapCmInsertionFails.setStatus('current')
if mibBuilder.loadTexts: flapCmInsertionFails.setDescription('When the Cable Modem initially ranges, reboots and initially ranges again within the specified insertion time, this counter will increment. The cmFlapCounts increment along with this counter.')
flapCmHits = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flapCmHits.setStatus('current')
if mibBuilder.loadTexts: flapCmHits.setDescription('The number of times the CMTS receives the Ranging request from the Cable Modem.')
flapCmMisses = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flapCmMisses.setStatus('current')
if mibBuilder.loadTexts: flapCmMisses.setDescription('The number of times the CMTS misses the Ranging request from the Cable Modem. The CMTS can check up to 16 consecutive times for a ranging request message during one polling cycle. Misses are not desirable since this is usually an indication of a return path problem; however, having a small number of misses is normal. Ideally, the Hit should be much greater than the Miss counts.')
flapCmPowerAdjustments = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: flapCmPowerAdjustments.setReference('Data over Cable Radio Frequency Interface specification, Section 7.2.')
if mibBuilder.loadTexts: flapCmPowerAdjustments.setStatus('current')
if mibBuilder.loadTexts: flapCmPowerAdjustments.setDescription(' When the power adjustment changed above or below the power adjustment threshold this counter will increment. The Flap Count (cmFlapCounts) will increment when this counter increments.')
cmFlapCounts = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmFlapCounts.setReference('Data over Cable Radio Frequency Interface specification, Appendix B.')
if mibBuilder.loadTexts: cmFlapCounts.setStatus('current')
if mibBuilder.loadTexts: cmFlapCounts.setDescription('The total number of times a CM flaps Under following three situations, this counter will increase: (1) When flapCmInsertionFails is increased the flap counts will increase. (2) When the CMTS receives the number of consecutive misses specified in the flapMissThreshold, the flap counts will increase. (3) When flapPowerAdjustments is increased the flap counts will increase.')
cmLastFlapTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 11), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmLastFlapTime.setStatus('current')
if mibBuilder.loadTexts: cmLastFlapTime.setDescription('The last time stamp cm flaps')
cmFlapCreateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 12), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmFlapCreateTime.setStatus('current')
if mibBuilder.loadTexts: cmFlapCreateTime.setDescription('The time stamp when new flap CM is added to the table. ')
cmFlapRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 13), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmFlapRowStatus.setStatus('current')
if mibBuilder.loadTexts: cmFlapRowStatus.setDescription('Controls and reflects the status of rows in this table. When a new flap cable modem is detected, and does not exist in flap list and flapListCurrentSize is less than flapListMaxSize, an entry will be created in this table. The instance of this object will be set to active(1). All flapping modems have the status of active(1). Active entries are removed from the table if they are aged out. The age out time is defined in flapAgingOutTime When a row is set to destroy(6), it will remove the entry immediately. To prevent an entry from being aged out, the entry should be set to notInService(2). The entry will remain in the table until this instance is set to destroy. The user is allowed set an entry from active to notInService or from notInService to destroy A user is not allowed to change a notInService entry to active. createAndGo(4) and createAndWait(5) are not supported.')
flapListTrap = NotificationType((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 3)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifAdminStatus"), ("IF-MIB", "ifOperStatus"))
if mibBuilder.loadTexts: flapListTrap.setStatus('current')
if mibBuilder.loadTexts: flapListTrap.setDescription('a flap list trap signifies that SNMPv2 entity, acting in an agent role, has detected that the percentage of flap cm for one of the cmts board has gone over the flapListPercentageThreshold ')
flapTrapType = MibScalar((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("power", 1), ("ranging", 2), ("insertion", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: flapTrapType.setStatus('current')
if mibBuilder.loadTexts: flapTrapType.setDescription('Reason for flapping power - The power threshold was exceeded. ranging - Missing ranging requests went beyond threshold insertion - Modem re-ranged within insertion time threshold. This is a place holder for the reason parameter for the modem to go into flap list. This should return ZERO when read. This just allows us to include a flapping reason in the modem flap trap varbind. ')
flapModemTrap = NotificationType((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 5)).setObjects(("RDN-CABLE-SPECTRUM-MIB", "flapCmMacAddress"), ("RDN-CABLE-SPECTRUM-MIB", "flapTrapType"))
if mibBuilder.loadTexts: flapModemTrap.setStatus('current')
if mibBuilder.loadTexts: flapModemTrap.setDescription("This Trap will be sent whenever the modem goes into the flapping list for some reason. 'flapCmMacAddress' gives the Mac Address of the modem. 'flapTrapType' gives the cause for the modem to go into the flap list. ")
rdnCableSpectrumNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 6, 2))
cableSpectrumMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 6, 2, 0))
rdnCableSpectrumConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 6, 3))
rdnCableSpectrumCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 6, 3, 1))
rdnCableSpectrumGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 6, 3, 2))
compliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4981, 6, 3, 1, 1)).setObjects(("RDN-CABLE-SPECTRUM-MIB", "flapGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
compliance = compliance.setStatus('current')
if mibBuilder.loadTexts: compliance.setDescription('The compliance statement for devices that implement MCNS compliant Radio Frequency Interfaces and Spectrum Management features.')
rdnFlapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4981, 6, 3, 2, 1)).setObjects(("RDN-CABLE-SPECTRUM-MIB", "flapListMaxSize"), ("RDN-CABLE-SPECTRUM-MIB", "flapListCurrentSize"), ("RDN-CABLE-SPECTRUM-MIB", "flapAgingOutTime"), ("RDN-CABLE-SPECTRUM-MIB", "flapInsertionTime"), ("RDN-CABLE-SPECTRUM-MIB", "flapMissThreshold"), ("RDN-CABLE-SPECTRUM-MIB", "flapPowerAdjThreshold"), ("RDN-CABLE-SPECTRUM-MIB", "cmtsIfIndex"), ("RDN-CABLE-SPECTRUM-MIB", "flapCmMacAddress"), ("RDN-CABLE-SPECTRUM-MIB", "flapCmUpstreamIfIndex"), ("RDN-CABLE-SPECTRUM-MIB", "flapCmDownstreamIfIndex"), ("RDN-CABLE-SPECTRUM-MIB", "flapCmInsertionFails"), ("RDN-CABLE-SPECTRUM-MIB", "flapCmHits"), ("RDN-CABLE-SPECTRUM-MIB", "flapCmMisses"), ("RDN-CABLE-SPECTRUM-MIB", "flapCmPowerAdjustments"), ("RDN-CABLE-SPECTRUM-MIB", "cmFlapCounts"), ("RDN-CABLE-SPECTRUM-MIB", "cmLastFlapTime"), ("RDN-CABLE-SPECTRUM-MIB", "cmFlapCreateTime"), ("RDN-CABLE-SPECTRUM-MIB", "cmFlapRowStatus"), ("RDN-CABLE-SPECTRUM-MIB", "flapListPercentageThreshold"), ("RDN-CABLE-SPECTRUM-MIB", "flapListTrapEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdnFlapGroup = rdnFlapGroup.setStatus('current')
if mibBuilder.loadTexts: rdnFlapGroup.setDescription('Group of objects implemented in Cable Modem Termination Systems providing Flap List information.')
mibBuilder.exportSymbols("RDN-CABLE-SPECTRUM-MIB", flapListMaxSize=flapListMaxSize, cmLastFlapTime=cmLastFlapTime, flapListCurrentSize=flapListCurrentSize, flapCmUpstreamIfIndex=flapCmUpstreamIfIndex, flapCmMisses=flapCmMisses, compliance=compliance, rdnFlapCmEntry=rdnFlapCmEntry, flapMissThreshold=flapMissThreshold, rdnCableSpectrumConformance=rdnCableSpectrumConformance, rdnFlapCmTable=rdnFlapCmTable, rdnFlapObjects=rdnFlapObjects, PYSNMP_MODULE_ID=rdnCableSpectrum, rdnCableSpectrumGroups=rdnCableSpectrumGroups, cmFlapRowStatus=cmFlapRowStatus, flapCmDownstreamIfIndex=flapCmDownstreamIfIndex, rdnCableSpectrumObjects=rdnCableSpectrumObjects, flapPowerAdjThreshold=flapPowerAdjThreshold, flapListTrapEnable=flapListTrapEnable, rdnCableSpectrumCompliances=rdnCableSpectrumCompliances, flapCmIndex=flapCmIndex, flapModemTrap=flapModemTrap, flapInsertionTime=flapInsertionTime, rdnCableSpectrumNotificationPrefix=rdnCableSpectrumNotificationPrefix, flapCmCmtsIfIndex=flapCmCmtsIfIndex, rdnFlapCmCmtsStatusEntry=rdnFlapCmCmtsStatusEntry, flapAgingOutTime=flapAgingOutTime, cmFlapCreateTime=cmFlapCreateTime, flapCmHits=flapCmHits, rdnFlapCmCmtsStatusTable=rdnFlapCmCmtsStatusTable, cmtsIfIndex=cmtsIfIndex, flapListTrap=flapListTrap, flapTrapType=flapTrapType, rdnFlapGroup=rdnFlapGroup, cmFlapCounts=cmFlapCounts, flapListPercentageThreshold=flapListPercentageThreshold, rdnCableSpectrum=rdnCableSpectrum, flapCmMacAddress=flapCmMacAddress, flapCmInsertionFails=flapCmInsertionFails, cableSpectrumMIBNotifications=cableSpectrumMIBNotifications, flapCmPowerAdjustments=flapCmPowerAdjustments)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, single_value_constraint, value_size_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection')
(interface_index, if_admin_status, if_oper_status, if_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'ifAdminStatus', 'ifOperStatus', 'ifIndex')
(riverdelta,) = mibBuilder.importSymbols('RDN-MIB', 'riverdelta')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(mib_identifier, object_identity, counter32, module_identity, integer32, unsigned32, bits, ip_address, time_ticks, iso, counter64, notification_type, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'ObjectIdentity', 'Counter32', 'ModuleIdentity', 'Integer32', 'Unsigned32', 'Bits', 'IpAddress', 'TimeTicks', 'iso', 'Counter64', 'NotificationType', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(date_and_time, mac_address, textual_convention, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'DateAndTime', 'MacAddress', 'TextualConvention', 'RowStatus', 'DisplayString')
rdn_cable_spectrum = module_identity((1, 3, 6, 1, 4, 1, 4981, 6))
if mibBuilder.loadTexts:
rdnCableSpectrum.setLastUpdated('200206250000Z')
if mibBuilder.loadTexts:
rdnCableSpectrum.setOrganization('Motorola')
if mibBuilder.loadTexts:
rdnCableSpectrum.setContactInfo(' Motorola Customer Service Postal: Motorola Three Highwood Dr east Tewksbury, MA 01876 U.S.A. Tel: ')
if mibBuilder.loadTexts:
rdnCableSpectrum.setDescription('This is the MIB Module for Cable Spectrum Management for MCNS compliant Cable Modem Termination Systems (CMTS). ')
rdn_cable_spectrum_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 6, 1))
rdn_flap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1))
rdn_flap_cm_cmts_status_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1))
if mibBuilder.loadTexts:
rdnFlapCmCmtsStatusTable.setStatus('current')
if mibBuilder.loadTexts:
rdnFlapCmCmtsStatusTable.setDescription('This table keeps the status of the flap modems for per CMTS.')
rdn_flap_cm_cmts_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1)).setIndexNames((0, 'RDN-CABLE-SPECTRUM-MIB', 'flapCmCmtsIfIndex'))
if mibBuilder.loadTexts:
rdnFlapCmCmtsStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
rdnFlapCmCmtsStatusEntry.setDescription('List of attributes for an entry in the rdnFlapCmCmtsStatusTable.')
flap_cm_cmts_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)))
if mibBuilder.loadTexts:
flapCmCmtsIfIndex.setStatus('current')
if mibBuilder.loadTexts:
flapCmCmtsIfIndex.setDescription('The CMTS Interface Index.')
flap_list_max_size = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 8191)).clone(100)).setUnits('modems').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
flapListMaxSize.setStatus('current')
if mibBuilder.loadTexts:
flapListMaxSize.setDescription('The maximum number of flap modems. The user could configure this number according to the number of downstreams and the number of modem line cards in the CMTS. The number can range from 1 to 8191. The default value is 100. When the number of modems exceeds the max flap list size, the additional modems are ignored.')
flap_list_current_size = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 3), gauge32().subtype(subtypeSpec=value_range_constraint(0, 8191))).setUnits('modems').setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapListCurrentSize.setStatus('current')
if mibBuilder.loadTexts:
flapListCurrentSize.setDescription('The current number of modems in the flap list. Its value will be less than or equal to flapListMaxSize.')
flap_aging_out_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 86400)).clone(1440)).setUnits('minutes').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
flapAgingOutTime.setStatus('current')
if mibBuilder.loadTexts:
flapAgingOutTime.setDescription('The age out time in minutes for modems in the flap table. The number of minutes range from 1 to 86400. The default value is 1440.')
flap_insertion_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 86400)).clone(60)).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
flapInsertionTime.setStatus('current')
if mibBuilder.loadTexts:
flapInsertionTime.setDescription('The interval of time that begins when the cable modem initially ranges, reboots, and ends when it starts initial maintenance again. If the interval of time is less than what is specified in flapInsertionTime, the flapCmInsertionFails and cmFlapCounts will increment. The valid range is from 1 to 86400 seconds. The default value is 60.')
flap_miss_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 12)).clone(6)).setUnits('modem').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
flapMissThreshold.setStatus('current')
if mibBuilder.loadTexts:
flapMissThreshold.setDescription('Specifies the maximum threshold for the number of consecutive miss counts during a polling cycle. If the flap miss counts goes over this threshold, the modem will be added into the flap list. Polling is maintained between the CMTS and the cable modem every 10 seconds. The flapMissThreshold specifies the maximum number of consecutive missed counts during one station maintenance poll interval. If there are more than 16 consecutive miss counts during one polling cycle, the modem will de-insert and attempt to range again. The value ranges from 1 to 12 consecutive counts. The default value is 6.')
flap_power_adj_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(2)).setUnits('dB').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
flapPowerAdjThreshold.setStatus('current')
if mibBuilder.loadTexts:
flapPowerAdjThreshold.setDescription(" The power adjustment threshold for a CM to raise and lower it's transmit power during normal operation. When a modem's power adjustment goes above or below the flapPowerAdjThreshold the CM will be added into the flap list. The flapCmPowerAdjustments and cmFlapCounts will be incremented as well. flapPowerAdjThreshold values of 2 dB and below are low enough to continuously increment the flapCmPowerAdjustments under normal conditions. The values range from 1 to 10. The default is 2. ")
flap_list_percentage_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 100)).clone(10)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
flapListPercentageThreshold.setStatus('current')
if mibBuilder.loadTexts:
flapListPercentageThreshold.setDescription(' The percentage CM miss threshold. If CM miss percentage goes over this threshold and flapListTrapEnable is set, a flap list trap will be send out to notify this event ')
flap_list_trap_enable = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
flapListTrapEnable.setStatus('current')
if mibBuilder.loadTexts:
flapListTrapEnable.setDescription('This object controls flap list trap. If its value is set to enabled(1), a trap will be sent out when the CM miss percentage goes over the flapListPercentageThreshold; Otherwise no flap list trap will be sent out. By default, this object has the value enabled(1). ')
rdn_flap_cm_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2))
if mibBuilder.loadTexts:
rdnFlapCmTable.setStatus('current')
if mibBuilder.loadTexts:
rdnFlapCmTable.setDescription('This table keeps the records of modem state changes. An entry can be deleted from the table but can not be added to the table.')
rdn_flap_cm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1)).setIndexNames((0, 'RDN-CABLE-SPECTRUM-MIB', 'flapCmIndex'))
if mibBuilder.loadTexts:
rdnFlapCmEntry.setStatus('current')
if mibBuilder.loadTexts:
rdnFlapCmEntry.setDescription('List of attributes for an entry in the rdnFlapTable.')
flap_cm_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 1), interface_index())
if mibBuilder.loadTexts:
flapCmIndex.setStatus('current')
if mibBuilder.loadTexts:
flapCmIndex.setDescription(' Index for Cable Modem.')
cmts_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cmtsIfIndex.setStatus('current')
if mibBuilder.loadTexts:
cmtsIfIndex.setDescription('The CMTS Interface Index.')
flap_cm_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 3), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapCmMacAddress.setStatus('current')
if mibBuilder.loadTexts:
flapCmMacAddress.setDescription("MAC address of the Cable Modem's Cable interface. Identifies a flap-list entry for a flapping Cable Modem.")
flap_cm_upstream_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 4), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapCmUpstreamIfIndex.setStatus('current')
if mibBuilder.loadTexts:
flapCmUpstreamIfIndex.setDescription('The ifIndex of the Cable upstream interface whose ifType is docsCableUpstream(129). The CMTS detects a flapping Cable Modem from its Cable upstream interface.')
flap_cm_downstream_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 5), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapCmDownstreamIfIndex.setStatus('current')
if mibBuilder.loadTexts:
flapCmDownstreamIfIndex.setDescription('The ifIndex of the Cable downstream interface whose ifType is docsCableDownstream(128).')
flap_cm_insertion_fails = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapCmInsertionFails.setReference('Data over Cable Radio Frequency Interface specification, Section 7.2.')
if mibBuilder.loadTexts:
flapCmInsertionFails.setStatus('current')
if mibBuilder.loadTexts:
flapCmInsertionFails.setDescription('When the Cable Modem initially ranges, reboots and initially ranges again within the specified insertion time, this counter will increment. The cmFlapCounts increment along with this counter.')
flap_cm_hits = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapCmHits.setStatus('current')
if mibBuilder.loadTexts:
flapCmHits.setDescription('The number of times the CMTS receives the Ranging request from the Cable Modem.')
flap_cm_misses = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapCmMisses.setStatus('current')
if mibBuilder.loadTexts:
flapCmMisses.setDescription('The number of times the CMTS misses the Ranging request from the Cable Modem. The CMTS can check up to 16 consecutive times for a ranging request message during one polling cycle. Misses are not desirable since this is usually an indication of a return path problem; however, having a small number of misses is normal. Ideally, the Hit should be much greater than the Miss counts.')
flap_cm_power_adjustments = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapCmPowerAdjustments.setReference('Data over Cable Radio Frequency Interface specification, Section 7.2.')
if mibBuilder.loadTexts:
flapCmPowerAdjustments.setStatus('current')
if mibBuilder.loadTexts:
flapCmPowerAdjustments.setDescription(' When the power adjustment changed above or below the power adjustment threshold this counter will increment. The Flap Count (cmFlapCounts) will increment when this counter increments.')
cm_flap_counts = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cmFlapCounts.setReference('Data over Cable Radio Frequency Interface specification, Appendix B.')
if mibBuilder.loadTexts:
cmFlapCounts.setStatus('current')
if mibBuilder.loadTexts:
cmFlapCounts.setDescription('The total number of times a CM flaps Under following three situations, this counter will increase: (1) When flapCmInsertionFails is increased the flap counts will increase. (2) When the CMTS receives the number of consecutive misses specified in the flapMissThreshold, the flap counts will increase. (3) When flapPowerAdjustments is increased the flap counts will increase.')
cm_last_flap_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 11), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cmLastFlapTime.setStatus('current')
if mibBuilder.loadTexts:
cmLastFlapTime.setDescription('The last time stamp cm flaps')
cm_flap_create_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 12), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cmFlapCreateTime.setStatus('current')
if mibBuilder.loadTexts:
cmFlapCreateTime.setDescription('The time stamp when new flap CM is added to the table. ')
cm_flap_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 2, 1, 13), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cmFlapRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cmFlapRowStatus.setDescription('Controls and reflects the status of rows in this table. When a new flap cable modem is detected, and does not exist in flap list and flapListCurrentSize is less than flapListMaxSize, an entry will be created in this table. The instance of this object will be set to active(1). All flapping modems have the status of active(1). Active entries are removed from the table if they are aged out. The age out time is defined in flapAgingOutTime When a row is set to destroy(6), it will remove the entry immediately. To prevent an entry from being aged out, the entry should be set to notInService(2). The entry will remain in the table until this instance is set to destroy. The user is allowed set an entry from active to notInService or from notInService to destroy A user is not allowed to change a notInService entry to active. createAndGo(4) and createAndWait(5) are not supported.')
flap_list_trap = notification_type((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 3)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifAdminStatus'), ('IF-MIB', 'ifOperStatus'))
if mibBuilder.loadTexts:
flapListTrap.setStatus('current')
if mibBuilder.loadTexts:
flapListTrap.setDescription('a flap list trap signifies that SNMPv2 entity, acting in an agent role, has detected that the percentage of flap cm for one of the cmts board has gone over the flapListPercentageThreshold ')
flap_trap_type = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('power', 1), ('ranging', 2), ('insertion', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
flapTrapType.setStatus('current')
if mibBuilder.loadTexts:
flapTrapType.setDescription('Reason for flapping power - The power threshold was exceeded. ranging - Missing ranging requests went beyond threshold insertion - Modem re-ranged within insertion time threshold. This is a place holder for the reason parameter for the modem to go into flap list. This should return ZERO when read. This just allows us to include a flapping reason in the modem flap trap varbind. ')
flap_modem_trap = notification_type((1, 3, 6, 1, 4, 1, 4981, 6, 1, 1, 5)).setObjects(('RDN-CABLE-SPECTRUM-MIB', 'flapCmMacAddress'), ('RDN-CABLE-SPECTRUM-MIB', 'flapTrapType'))
if mibBuilder.loadTexts:
flapModemTrap.setStatus('current')
if mibBuilder.loadTexts:
flapModemTrap.setDescription("This Trap will be sent whenever the modem goes into the flapping list for some reason. 'flapCmMacAddress' gives the Mac Address of the modem. 'flapTrapType' gives the cause for the modem to go into the flap list. ")
rdn_cable_spectrum_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 6, 2))
cable_spectrum_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 6, 2, 0))
rdn_cable_spectrum_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 6, 3))
rdn_cable_spectrum_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 6, 3, 1))
rdn_cable_spectrum_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 6, 3, 2))
compliance = module_compliance((1, 3, 6, 1, 4, 1, 4981, 6, 3, 1, 1)).setObjects(('RDN-CABLE-SPECTRUM-MIB', 'flapGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
compliance = compliance.setStatus('current')
if mibBuilder.loadTexts:
compliance.setDescription('The compliance statement for devices that implement MCNS compliant Radio Frequency Interfaces and Spectrum Management features.')
rdn_flap_group = object_group((1, 3, 6, 1, 4, 1, 4981, 6, 3, 2, 1)).setObjects(('RDN-CABLE-SPECTRUM-MIB', 'flapListMaxSize'), ('RDN-CABLE-SPECTRUM-MIB', 'flapListCurrentSize'), ('RDN-CABLE-SPECTRUM-MIB', 'flapAgingOutTime'), ('RDN-CABLE-SPECTRUM-MIB', 'flapInsertionTime'), ('RDN-CABLE-SPECTRUM-MIB', 'flapMissThreshold'), ('RDN-CABLE-SPECTRUM-MIB', 'flapPowerAdjThreshold'), ('RDN-CABLE-SPECTRUM-MIB', 'cmtsIfIndex'), ('RDN-CABLE-SPECTRUM-MIB', 'flapCmMacAddress'), ('RDN-CABLE-SPECTRUM-MIB', 'flapCmUpstreamIfIndex'), ('RDN-CABLE-SPECTRUM-MIB', 'flapCmDownstreamIfIndex'), ('RDN-CABLE-SPECTRUM-MIB', 'flapCmInsertionFails'), ('RDN-CABLE-SPECTRUM-MIB', 'flapCmHits'), ('RDN-CABLE-SPECTRUM-MIB', 'flapCmMisses'), ('RDN-CABLE-SPECTRUM-MIB', 'flapCmPowerAdjustments'), ('RDN-CABLE-SPECTRUM-MIB', 'cmFlapCounts'), ('RDN-CABLE-SPECTRUM-MIB', 'cmLastFlapTime'), ('RDN-CABLE-SPECTRUM-MIB', 'cmFlapCreateTime'), ('RDN-CABLE-SPECTRUM-MIB', 'cmFlapRowStatus'), ('RDN-CABLE-SPECTRUM-MIB', 'flapListPercentageThreshold'), ('RDN-CABLE-SPECTRUM-MIB', 'flapListTrapEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdn_flap_group = rdnFlapGroup.setStatus('current')
if mibBuilder.loadTexts:
rdnFlapGroup.setDescription('Group of objects implemented in Cable Modem Termination Systems providing Flap List information.')
mibBuilder.exportSymbols('RDN-CABLE-SPECTRUM-MIB', flapListMaxSize=flapListMaxSize, cmLastFlapTime=cmLastFlapTime, flapListCurrentSize=flapListCurrentSize, flapCmUpstreamIfIndex=flapCmUpstreamIfIndex, flapCmMisses=flapCmMisses, compliance=compliance, rdnFlapCmEntry=rdnFlapCmEntry, flapMissThreshold=flapMissThreshold, rdnCableSpectrumConformance=rdnCableSpectrumConformance, rdnFlapCmTable=rdnFlapCmTable, rdnFlapObjects=rdnFlapObjects, PYSNMP_MODULE_ID=rdnCableSpectrum, rdnCableSpectrumGroups=rdnCableSpectrumGroups, cmFlapRowStatus=cmFlapRowStatus, flapCmDownstreamIfIndex=flapCmDownstreamIfIndex, rdnCableSpectrumObjects=rdnCableSpectrumObjects, flapPowerAdjThreshold=flapPowerAdjThreshold, flapListTrapEnable=flapListTrapEnable, rdnCableSpectrumCompliances=rdnCableSpectrumCompliances, flapCmIndex=flapCmIndex, flapModemTrap=flapModemTrap, flapInsertionTime=flapInsertionTime, rdnCableSpectrumNotificationPrefix=rdnCableSpectrumNotificationPrefix, flapCmCmtsIfIndex=flapCmCmtsIfIndex, rdnFlapCmCmtsStatusEntry=rdnFlapCmCmtsStatusEntry, flapAgingOutTime=flapAgingOutTime, cmFlapCreateTime=cmFlapCreateTime, flapCmHits=flapCmHits, rdnFlapCmCmtsStatusTable=rdnFlapCmCmtsStatusTable, cmtsIfIndex=cmtsIfIndex, flapListTrap=flapListTrap, flapTrapType=flapTrapType, rdnFlapGroup=rdnFlapGroup, cmFlapCounts=cmFlapCounts, flapListPercentageThreshold=flapListPercentageThreshold, rdnCableSpectrum=rdnCableSpectrum, flapCmMacAddress=flapCmMacAddress, flapCmInsertionFails=flapCmInsertionFails, cableSpectrumMIBNotifications=cableSpectrumMIBNotifications, flapCmPowerAdjustments=flapCmPowerAdjustments) |
t=int(input(""))
for i in range(0,t):
a,b=tuple(map(int,input("").split(" ")))
d=abs(a-b)
print((int(d/10))if(d%10==0)else(int((d+9)/10))) | t = int(input(''))
for i in range(0, t):
(a, b) = tuple(map(int, input('').split(' ')))
d = abs(a - b)
print(int(d / 10) if d % 10 == 0 else int((d + 9) / 10)) |
def repeat(n):
def decorator(func):
def wrapper(*args, **kwargs):
for _ in range(n):
func(*args, **kwargs)
return wrapper
return decorator
@repeat(4)
def say_hi():
print("Hello")
say_hi() | def repeat(n):
def decorator(func):
def wrapper(*args, **kwargs):
for _ in range(n):
func(*args, **kwargs)
return wrapper
return decorator
@repeat(4)
def say_hi():
print('Hello')
say_hi() |
if __name__ == "__main__":
my_tuple = (1, 2, 3)
print('my_tuple:', my_tuple)
a, b, c = my_tuple
print('a', a)
print('b', b)
print('c', c)
print('my_tuple[0]:', my_tuple[0])
print('my_tuple[1]:', my_tuple[1])
print('my_tuple[1:3]:', my_tuple[1:3])
# my_tuple[0] = 1 # error , tuple read only
| if __name__ == '__main__':
my_tuple = (1, 2, 3)
print('my_tuple:', my_tuple)
(a, b, c) = my_tuple
print('a', a)
print('b', b)
print('c', c)
print('my_tuple[0]:', my_tuple[0])
print('my_tuple[1]:', my_tuple[1])
print('my_tuple[1:3]:', my_tuple[1:3]) |
"""
Datos de entrada
valor_normal-->van-->int
Datos de salida
valor_final-->vaf-->float
"""
#Entrada
van=int(input("digite el valor normal de la compra: "))
#Caja negra
vaf=((van-(van*0.15)))
#Salidas
print("El valor final de la compra es: ", vaf) | """
Datos de entrada
valor_normal-->van-->int
Datos de salida
valor_final-->vaf-->float
"""
van = int(input('digite el valor normal de la compra: '))
vaf = van - van * 0.15
print('El valor final de la compra es: ', vaf) |
#Bitonic sequence Dynamic programming
# Java code https://github.com/mission-peace/interview/blob/master/src/com/interview/dynamic/BitonicSequence.java
def bitonic_sequence( input ):
lis = [1]*len(input)
lds = [1]*len(input)
for i in range(1, len(input)):
for j in range(0, i):
if input[i] > input[j]:
lis[i] = max(lis[i], lis[j] + 1)
for i in range(len(input)-2,-1,-1):
for j in range(len(input)-1,i,-1):
if input[i] > input[j]:
lds[i] = max(lds[i], lds[j] + 1)
maxVal = 0
for i in range(len(input)):
if lis[i] + lds[i] - 1 > maxVal:
maxVal = lis[i] + lds[i] -1;
return maxVal;
maxVal= bitonic_sequence([1,4,3,7,2,1,8,11,13,0])
print("Max bitonic sequence", maxVal)
| def bitonic_sequence(input):
lis = [1] * len(input)
lds = [1] * len(input)
for i in range(1, len(input)):
for j in range(0, i):
if input[i] > input[j]:
lis[i] = max(lis[i], lis[j] + 1)
for i in range(len(input) - 2, -1, -1):
for j in range(len(input) - 1, i, -1):
if input[i] > input[j]:
lds[i] = max(lds[i], lds[j] + 1)
max_val = 0
for i in range(len(input)):
if lis[i] + lds[i] - 1 > maxVal:
max_val = lis[i] + lds[i] - 1
return maxVal
max_val = bitonic_sequence([1, 4, 3, 7, 2, 1, 8, 11, 13, 0])
print('Max bitonic sequence', maxVal) |
class API_Slack_Dialog():
def __init__(self):
self.title = ""
self.callback_id = ""
self.submit_label = "Submit"
self.state = "#3AA3E3"
self.elements = []
self.notify_on_cancel = True
# def add_button(self, name, text, value, style = 'default'):
# self.actions.append({
# "name" : name ,
# "text" : text ,
# "type" : "button" ,
# "value" : value ,
# "style" : style })
# return self
#
# def set_callback_id(self, callback_id):
# self.callback_id = callback_id
# return self
#
# def set_text(self, text):
# self.text = text
# return self
def add_element_text(self, label, name, value = None, optional = False, hint = None, placeholder = None):
element = {
"type" : "text" ,
"label" : label ,
"name" : name ,
"value" : value ,
"optional" : optional ,
"hint" : hint ,
"placeholder" : placeholder
}
self.elements.append(element)
def add_element_textarea(self, label, name, value = None, optional = False, hint = None, placeholder = None):
element = {
"type" : "textarea" ,
"label" : label ,
"name" : name ,
"value" : value ,
"optional" : optional ,
"hint" : hint ,
"placeholder" : placeholder
}
self.elements.append(element)
def add_element_select(self, label, name, options, value = None):
element = {
"type" : "select" ,
"label" : label ,
"name" : name ,
"value" : value ,
"options" : []
}
for item in options:
element['options'].append({"label": item[0], "value": item[1]})
self.elements.append(element)
def add_element_select_external(self, label, name, placeholder = None, optional = False):
element = {
"type" : "select" ,
"label" : label ,
"name" : name ,
"data_source" : "external" ,
"placeholder" : placeholder ,
"optional" : optional ,
"options" : []
#"min_query_length" : 3 ,
}
self.elements.append(element)
def test_render(self):
self.callback_id = 'issue-suggestion'
self.title = 'This is a test'
self.add_element_text ("label 1", "name_1", "value 1", "hint 1", "placeholder 1")
#self.add_element_text ("label 2", "name-2", "value 2", "hint 2", "placeholder 2")
self.add_element_text ("label 3", "name-3",)
self.add_element_textarea ("label 4", "name-4", "value 4", "hint 4", "placeholder 4")
self.add_element_select ("label 5", "name-5" ,[("label-1", "value-1"), ("label-2", "value-2")], "value-2")
self.add_element_select_external("label 6", "name-6")
return self.render()
def render(self):
return {
"callback_id" : self.callback_id ,
"title" : self.title ,
"submit_label" : self.submit_label ,
"notify_on_cancel" : self.notify_on_cancel,
"elements" : self.elements } | class Api_Slack_Dialog:
def __init__(self):
self.title = ''
self.callback_id = ''
self.submit_label = 'Submit'
self.state = '#3AA3E3'
self.elements = []
self.notify_on_cancel = True
def add_element_text(self, label, name, value=None, optional=False, hint=None, placeholder=None):
element = {'type': 'text', 'label': label, 'name': name, 'value': value, 'optional': optional, 'hint': hint, 'placeholder': placeholder}
self.elements.append(element)
def add_element_textarea(self, label, name, value=None, optional=False, hint=None, placeholder=None):
element = {'type': 'textarea', 'label': label, 'name': name, 'value': value, 'optional': optional, 'hint': hint, 'placeholder': placeholder}
self.elements.append(element)
def add_element_select(self, label, name, options, value=None):
element = {'type': 'select', 'label': label, 'name': name, 'value': value, 'options': []}
for item in options:
element['options'].append({'label': item[0], 'value': item[1]})
self.elements.append(element)
def add_element_select_external(self, label, name, placeholder=None, optional=False):
element = {'type': 'select', 'label': label, 'name': name, 'data_source': 'external', 'placeholder': placeholder, 'optional': optional, 'options': []}
self.elements.append(element)
def test_render(self):
self.callback_id = 'issue-suggestion'
self.title = 'This is a test'
self.add_element_text('label 1', 'name_1', 'value 1', 'hint 1', 'placeholder 1')
self.add_element_text('label 3', 'name-3')
self.add_element_textarea('label 4', 'name-4', 'value 4', 'hint 4', 'placeholder 4')
self.add_element_select('label 5', 'name-5', [('label-1', 'value-1'), ('label-2', 'value-2')], 'value-2')
self.add_element_select_external('label 6', 'name-6')
return self.render()
def render(self):
return {'callback_id': self.callback_id, 'title': self.title, 'submit_label': self.submit_label, 'notify_on_cancel': self.notify_on_cancel, 'elements': self.elements} |
class Solution:
def coinChange(self, coins: List[int], amount: int) -> int:
# Space complexity O(amount)
# Time complexity O(amount * the number of coins)
# Using Dynamic programinig with bottom-up strategy
# First, allocate the storage
dp = [amount + 1] * (amount + 1)
# Initialize the 0th dp to 0
dp[0] = 0
# Second. trace each number in the range of amount
for num in range(amount+1):
for coin in coins:
# if this number can combine other coins and get the minimum value, replace to the dp[num]
if num - coin >= 0:
dp[num] = min(dp[num], dp[num-coin]+1)
# means didn't match any coins
if dp[amount] == amount + 1:
return -1
return dp[amount] | class Solution:
def coin_change(self, coins: List[int], amount: int) -> int:
dp = [amount + 1] * (amount + 1)
dp[0] = 0
for num in range(amount + 1):
for coin in coins:
if num - coin >= 0:
dp[num] = min(dp[num], dp[num - coin] + 1)
if dp[amount] == amount + 1:
return -1
return dp[amount] |
class Solution:
def myPow(self, x: float, n: int) -> float:
return self.binary_exp_recursive(x, n)
def binary_exp_recursive(self, x: float, n: int) -> float:
exp = abs(n)
ans = self.recurse(x, exp)
return ans if n > 0 else 1 / ans
def recurse(self, x: float, n: int) -> float:
if n == 0:
return 1
ans = self.recurse(x, n // 2)
if n & 1:
return x * ans * ans
else:
return ans * ans
"""
Runtime: O(logn)
Space: O(1)
Runtime: 28 ms, faster than 67.64% of Python3 online submissions for Pow(x, n).
Memory Usage: 12.7 MB, less than 100.00% of Python3 online submissions for Pow(x, n).
"""
| class Solution:
def my_pow(self, x: float, n: int) -> float:
return self.binary_exp_recursive(x, n)
def binary_exp_recursive(self, x: float, n: int) -> float:
exp = abs(n)
ans = self.recurse(x, exp)
return ans if n > 0 else 1 / ans
def recurse(self, x: float, n: int) -> float:
if n == 0:
return 1
ans = self.recurse(x, n // 2)
if n & 1:
return x * ans * ans
else:
return ans * ans
'\nRuntime: O(logn)\nSpace: O(1)\n\nRuntime: 28 ms, faster than 67.64% of Python3 online submissions for Pow(x, n).\nMemory Usage: 12.7 MB, less than 100.00% of Python3 online submissions for Pow(x, n).\n' |
"""
Problem: https://www.hackerrank.com/challenges/any-or-all/problem
Max Score: 20
Difficulty: Easy
Author: Ric
Date: Nov 14, 2019
"""
# Enter your code here. Read input from STDIN. Print output to STDOUT
num_of_int = int(input())
list_of_int = list(map(int, input().split(" ")))
print(all(i > 0 for i in list_of_int) and any(str(i) == str(i)[::-1] for i in list_of_int)) | """
Problem: https://www.hackerrank.com/challenges/any-or-all/problem
Max Score: 20
Difficulty: Easy
Author: Ric
Date: Nov 14, 2019
"""
num_of_int = int(input())
list_of_int = list(map(int, input().split(' ')))
print(all((i > 0 for i in list_of_int)) and any((str(i) == str(i)[::-1] for i in list_of_int))) |
lis = [1, 3, 15, 26, 30, 37, 45, 56, ]
divisibles = list(filter(lambda x: (x % 15 == 0), lis))
print(divisibles)
| lis = [1, 3, 15, 26, 30, 37, 45, 56]
divisibles = list(filter(lambda x: x % 15 == 0, lis))
print(divisibles) |
# A single line comment
""" A multiline comment can be
written by using three quotes
in sequence, and then by ending
with the same.
""" | """ A multiline comment can be
written by using three quotes
in sequence, and then by ending
with the same.
""" |
# 2. Number Definer
# Write a program that reads a floating-point number and prints "zero" if the number is zero.
# Otherwise, print "positive" or "negative". Add "small" if the absolute value of the number is less than 1,
# or "large" if it exceeds 1 000 000.
number = float(input())
if number == 0:
print('zero')
if number > 0:
if number > 1000000:
print('large positive')
elif number < 1:
print('small positive')
else:
print('positive')
if number < 0:
if abs(number) > 1000000:
print('large negative')
elif abs(number) < 1:
print('small negative')
else:
print('negative')
| number = float(input())
if number == 0:
print('zero')
if number > 0:
if number > 1000000:
print('large positive')
elif number < 1:
print('small positive')
else:
print('positive')
if number < 0:
if abs(number) > 1000000:
print('large negative')
elif abs(number) < 1:
print('small negative')
else:
print('negative') |
# -*- coding: utf-8 -*-
DATE = 'Data'
TEMPERATURE = 'Temperatura do Ar Media (degC)'
MAX_TEMP = 'Temperatura do Ar Maxima (degC)'
MIN_TEMP = 'Temperatura do Ar Minima (degC)'
VARIATION_TEMP = 'Variacao da Temperatura do Ar (degC)'
HUMIDITY = 'Umidade relativa Media (%)'
MAX_HUMIDITY = 'Umidade relativa Maxima (%)'
MIN_HUMIDITY = 'Umidade relativa Minima (%)'
VARIATION_HUMIDITY = 'Variacao da Umidade relativa (%)'
PRESSURE = 'Pressao (hPa)'
MAX_PRESSURE = 'Pressao Maxima (hPa)'
MIN_PRESSURE = 'Pressao Minima (hPa)'
VARIATION_PRESSURE = 'Variacao da Pressao (hPa)'
YEAR = 'Ano'
MONTH = 'Mes'
DAY = 'Dia'
DAY_OF_YEAR = 'Dia Juliano'
SEASON = 'Estacao Metereologica do Ano'
QUANTILE_MAX_TEMP_FIFTEEN_DAYS = 'Percentil Temperatura Max (15 dias)'
QUANTILE_MIN_TEMP_FIFTEEN_DAYS = 'Percentil Temperatura Min (15 dias)'
UNNAMED = 'Unnamed'
JULIAN_DAY = 'Dia Juliano'
HOUR_MINUTE = 'Hora - minuto'
CODE = 'Cod'
WIND_DIRECTION = 'Direcao do Vento no instante da aquisicao (deg)'
| date = 'Data'
temperature = 'Temperatura do Ar Media (degC)'
max_temp = 'Temperatura do Ar Maxima (degC)'
min_temp = 'Temperatura do Ar Minima (degC)'
variation_temp = 'Variacao da Temperatura do Ar (degC)'
humidity = 'Umidade relativa Media (%)'
max_humidity = 'Umidade relativa Maxima (%)'
min_humidity = 'Umidade relativa Minima (%)'
variation_humidity = 'Variacao da Umidade relativa (%)'
pressure = 'Pressao (hPa)'
max_pressure = 'Pressao Maxima (hPa)'
min_pressure = 'Pressao Minima (hPa)'
variation_pressure = 'Variacao da Pressao (hPa)'
year = 'Ano'
month = 'Mes'
day = 'Dia'
day_of_year = 'Dia Juliano'
season = 'Estacao Metereologica do Ano'
quantile_max_temp_fifteen_days = 'Percentil Temperatura Max (15 dias)'
quantile_min_temp_fifteen_days = 'Percentil Temperatura Min (15 dias)'
unnamed = 'Unnamed'
julian_day = 'Dia Juliano'
hour_minute = 'Hora - minuto'
code = 'Cod'
wind_direction = 'Direcao do Vento no instante da aquisicao (deg)' |
def swap(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
def selectionSort(A):
for i in range(len(A) - 1):
min = i
for j in range(i + 1, len(A)):
if A[j] < A[min]:
min = j
swap(A, min, i)
if __name__ == '__main__':
A = [3, 5, 8, 4, 1, 9, -2]
selectionSort(A)
print(A) | def swap(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
def selection_sort(A):
for i in range(len(A) - 1):
min = i
for j in range(i + 1, len(A)):
if A[j] < A[min]:
min = j
swap(A, min, i)
if __name__ == '__main__':
a = [3, 5, 8, 4, 1, 9, -2]
selection_sort(A)
print(A) |
# should_error
# skip-if: '-x' in EXTRA_JIT_ARGS
# Syntax error to have a continue outside a loop.
def foo():
try: continue
finally: pass
| def foo():
try:
continue
finally:
pass |
"""Advanced example of a complex flow.
TODO: copy our ETL example that we're currently using, simplify a bit.
"""
| """Advanced example of a complex flow.
TODO: copy our ETL example that we're currently using, simplify a bit.
""" |
TWOUVO_SEQ = 'ERCGEQGSNMECPNNLCCSQYGYCGMGGDYCGKGCQNGACWTSKRCGSQAGGATCTNNQCCSQYGYCGFGAEYCGAGCQGGPCRADIKCGSQAGGKLCPNNLCCSQWGFCGLGSEFCGGGCQSGACSTDKPCGKDAGGRVCTNNYCCSKWGSCGIGPGYCGAGCQSGGCDG'
FIVEHXG_SEQ = 'MRYFFMAEPIRAMEGDLLGVEIITHFASSPARPLHPEFVISSWDNSQKRRFLLDLLRTIAAKHGWFLRHGLFCIVNIDRGMAQLVLQDKDIRALLHAMLFVELQVAEHFSCQDNVLVDPLIHALHKQPNPLWLGDLGVGNATAAPLVCGCFSGVKLDRSFFVSQIEKMTFPLLVKHIRHYCDKIVVGGQENARYLPALKTAGIWATQGTLFPSVALEEIETLLLGSRMNTLRESNMGTMHTSELLKHIYDINLSYLLLAQRLIVQDKASAMFRLGINEEMANTLGALSLPQMVKLAETNQLVCHFRFDDHQTITRLTQDSRVDDLQQIHTGIMLSTRLLNEVDDTARKKRA'
PHMMER_LOG_TXT = """# phmmer :: search a protein sequence against a protein database
# HMMER 3.1b1 (May 2013); http://hmmer.org/
# Copyright (C) 2013 Howard Hughes Medical Institute.
# Freely distributed under the GNU General Public License (GPLv3).
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# query sequence file: ../data/2uvoA.fasta
# target sequence database: /opt/ccp4/ccp4-7.0/share/mrbump/data/pdb95.txt
# MSA of hits saved to file: phmmerAlignment.log
# per-seq hits tabular output: phmmerTblout.log
# per-dom hits tabular output: phmmerDomTblout.log
# max ASCII text line length: unlimited
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Query: 2UVO:A|PDBID|CHAIN|SEQUENCE [L=171]
Scores for complete sequences (score includes all domains):
--- full sequence --- --- best 1 domain --- -#dom-
E-value score bias E-value score bias exp N Sequence Description
------- ------ ----- ------- ------ ----- ---- -- -------- -----------
6.8e-105 351.3 93.4 7.6e-105 351.2 93.4 1.0 1 2x3t_C
2.1e-26 94.8 53.8 5.2e-26 93.5 53.8 1.5 1 1ulk_B
1.2e-18 69.4 33.2 1.3e-18 69.3 33.2 1.0 1 1ulm_B
7.1e-12 47.3 10.8 7.1e-12 47.3 10.8 1.0 1 4wp4_A
1.3e-11 46.4 37.0 1.5e-11 46.2 37.0 1.1 1 1eis_A
5.6e-11 44.4 36.1 6.3e-11 44.2 36.1 1.1 1 1iqb_B
7e-09 37.5 16.2 7.4e-09 37.4 16.2 1.0 1 4mpi_A
4.9e-08 34.7 13.5 5e-08 34.7 13.5 1.0 1 5wuz_A
1.1e-07 33.6 17.2 1.1e-07 33.6 17.2 1.0 1 5xdi_A
1.8e-06 29.7 20.9 1.8e-06 29.6 20.9 1.0 1 2lb7_A
6.5e-06 27.8 7.2 6.5e-06 27.8 7.2 1.0 1 1zuv_A
2.3e-05 26.0 8.1 2.3e-05 26.0 8.1 1.0 1 1mmc_A
0.0022 19.5 12.6 0.003 19.1 12.6 1.3 1 2kus_A
0.0039 18.7 11.7 0.0039 18.7 11.7 1.1 1 2n1s_A
------ inclusion threshold ------
0.023 16.2 18.7 0.023 16.2 18.7 1.1 1 1p9z_A
Domain annotation for each sequence (and alignments):
>> 2x3t_C
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 351.2 93.4 2.4e-108 7.6e-105 2 170 .. 1 166 [] 1 166 [] 1.00
Alignments for each domain:
== domain 1 score: 351.2 bits; conditional E-value: 2.4e-108
2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgycgagcqsggcd 170
rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgyc cqsggcd
2x3t_C 1 RCGEQGSNMECPNNLCCSQYGYCGMGGDYCGKGCQNGACWTSKRCGSQAGGATCTNNQCCSQYGYCGFGAEYCGAGCQGGPCRADIKCGSQAGGKLCPNNLCCSQWGFCGLGSEFCGGGCQSGACSTDKPCGKDAGGRVCTNNYCCSKWGSCGIGPGYC---CQSGGCD 166
8**************************************************************************************************************************************************************...******9 PP
>> 1ulk_B
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 93.5 53.8 1.6e-29 5.2e-26 46 166 .. 4 120 .. 1 124 [. 0.54
Alignments for each domain:
== domain 1 score: 93.5 bits; conditional E-value: 1.6e-29
2UVO:A|PDBID|CHAIN|SEQUENCE 46 cgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgycgagcqs 166
cg +a+g c + ccsq+gycg eycg gcq+ c + +cg + ggk c + lccsq+g+cg + cg gcqs cs cgkd ggr+ct + ccs++g cg+ +c gcqs
1ulk_B 4 CGVRASGRVCPDGYCCSQWGYCGTTEEYCGKGCQS-QCDYN-RCGKEFGGKECHDELCCSQYGWCGNSDGHCGEGCQS-QCSYW-RCGKDFGGRLCTEDMCCSQYGWCGLTDDHCEDGCQS 120
55556666666666666666666666666666654.34432.566666666666666666666666555566666655.35443.366666666666666666666666666666666655 PP
>> 1ulm_B
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 69.3 33.2 4.1e-22 1.3e-18 88 169 .. 3 81 .. 1 82 [] 0.88
Alignments for each domain:
== domain 1 score: 69.3 bits; conditional E-value: 4.1e-22
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgycgagcqsggc 169
+cg +a+gk cpn ccsqwg+cg +cg gcqs c cg+d ggr+c + ccsk+g cg + +c gcqs c
1ulm_B 3 ECGERASGKRCPNGKCCSQWGYCGTTDNYCGQGCQSQ-CDY-WRCGRDFGGRLCEEDMCCSKYGWCGYSDDHCEDGCQSQ-C 81
6999999999999999999999999999999999985.765.46999999999999999999999999999999999984.5 PP
>> 4wp4_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 47.3 10.8 2.2e-15 7.1e-12 88 124 .. 2 40 .. 1 43 [] 0.87
Alignments for each domain:
== domain 1 score: 47.3 bits; conditional E-value: 2.2e-15
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgg..gcqsg 124
+cg qaggklcpnnlccsqwg+cg e+c+ +cqs+
4wp4_A 2 QCGRQAGGKLCPNNLCCSQWGWCGSTDEYCSPdhNCQSN 40
6*****************************852268875 PP
>> 1eis_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 46.2 37.0 4.7e-15 1.5e-11 2 79 .. 1 82 [. 1 85 [] 0.76
Alignments for each domain:
== domain 1 score: 46.2 bits; conditional E-value: 4.7e-15
2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtsk....rcgsqaggatctnnqccsqygycgfgaeycgag.cq 79
rcg qg cp ccs +g+cg + ycg+ c+n cw+ + rcg+ g+ c ++ccs +g+cg g +yc+ g cq
1eis_A 1 RCGSQGGGSTCPGLRCCSIWGWCGDSEPYCGRTCEN-KCWSGErsdhRCGAAVGNPPCGQDRCCSVHGWCGGGNDYCSGGnCQ 82
788888888888888888888888888888888887.5887542223688888888888888888888888888888554255 PP
>> 1iqb_B
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 44.2 36.1 2e-14 6.3e-11 2 79 .. 1 82 [. 1 88 [] 0.82
Alignments for each domain:
== domain 1 score: 44.2 bits; conditional E-value: 2e-14
2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtsk....rcgsqaggatctnnqccsqygycgfgaeyc.gagcq 79
rcg qg cp ccs +g+cg + ycg+ c+n cw+ + rcg+ g+ c ++ccs +g+cg g +yc g+ cq
1iqb_B 1 RCGSQGGGGTCPALWCCSIWGWCGDSEPYCGRTCEN-KCWSGErsdhRCGAAVGNPPCGQDRCCSVHGWCGGGNDYCsGSKCQ 82
899999999999999999999999999999999998.6997652223799999999999999999999999999999445566 PP
>> 4mpi_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 37.4 16.2 2.3e-12 7.4e-09 88 124 .. 3 39 .. 1 43 [. 0.79
Alignments for each domain:
== domain 1 score: 37.4 bits; conditional E-value: 2.3e-12
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsg 124
+cg qagg lcp lccsq+g+c+ e+cg+gcqs
4mpi_A 3 QCGRQAGGALCPGGLCCSQYGWCANTPEYCGSGCQSQ 39
5888888888888888888888888888888888874 PP
>> 5wuz_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 34.7 13.5 1.6e-11 5e-08 88 124 .. 2 40 .. 1 43 [] 0.70
Alignments for each domain:
== domain 1 score: 34.7 bits; conditional E-value: 1.6e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcg..ggcqsg 124
cg qag++ c n lccsq+gfcg se+c+ +gcqs+
5wuz_A 2 NCGRQAGNRACANQLCCSQYGFCGSTSEYCSraNGCQSN 40
478888888888888888888888888888533577775 PP
>> 5xdi_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 33.6 17.2 3.5e-11 1.1e-07 45 79 .. 2 37 .. 1 40 [] 0.88
Alignments for each domain:
== domain 1 score: 33.6 bits; conditional E-value: 3.5e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 45 rcgsqaggatctnnqccsqygycgfgaeycgag.cq 79
+cg qagga c+n ccsq+gycg ycgag cq
5xdi_A 2 QCGRQAGGARCSNGLCCSQFGYCGSTPPYCGAGqCQ 37
69*****************************99555 PP
>> 2lb7_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 29.6 20.9 5.6e-10 1.8e-06 44 84 .. 2 42 .. 1 44 [] 0.64
Alignments for each domain:
== domain 1 score: 29.6 bits; conditional E-value: 5.6e-10
2UVO:A|PDBID|CHAIN|SEQUENCE 44 krcgsqaggatctnnqccsqygycgfgaeycgagcqggpcr 84
+rcg qa ga c n cc +yg+cg g ycgag + cr
2lb7_A 2 QRCGDQARGAKCPNCLCCGKYGFCGSGDAYCGAGSCQSQCR 42
56777777777777777777777777777777765445565 PP
>> 1zuv_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 27.8 7.2 2.1e-09 6.5e-06 97 118 .. 8 29 .. 1 30 [] 0.60
Alignments for each domain:
== domain 1 score: 27.8 bits; conditional E-value: 2.1e-09
2UVO:A|PDBID|CHAIN|SEQUENCE 97 lcpnnlccsqwgfcglgsefcg 118
cp+ +ccsqwg+cg g ++cg
1zuv_A 8 RCPSGMCCSQWGYCGKGPKYCG 29
3666666666666666666665 PP
>> 1mmc_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 26.0 8.1 7.3e-09 2.3e-05 11 33 .. 8 30 .] 2 30 .] 0.85
Alignments for each domain:
== domain 1 score: 26.0 bits; conditional E-value: 7.3e-09
2UVO:A|PDBID|CHAIN|SEQUENCE 11 ecpnnlccsqygycgmggdycgk 33
cp+ +ccsq+gycg g ycg+
1mmc_A 8 RCPSGMCCSQFGYCGKGPKYCGR 30
69999999999999999999996 PP
>> 2kus_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 19.1 12.6 9.4e-07 0.003 45 75 .. 6 34 .. 2 35 .] 0.70
Alignments for each domain:
== domain 1 score: 19.1 bits; conditional E-value: 9.4e-07
2UVO:A|PDBID|CHAIN|SEQUENCE 45 rcgsqaggatctnnqccsqygycgfgaeycg 75
+cg gg c ccsqygycg g +yc+
2kus_A 6 QCGPGWGG--CRGGLCCSQYGYCGSGPKYCA 34
56654444..778888888888888888884 PP
>> 2n1s_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 18.7 11.7 1.2e-06 0.0039 11 32 .. 9 30 .] 1 30 [] 0.50
Alignments for each domain:
== domain 1 score: 18.7 bits; conditional E-value: 1.2e-06
2UVO:A|PDBID|CHAIN|SEQUENCE 11 ecpnnlccsqygycgmggdycg 32
c lccs+ygycg g ycg
2n1s_A 9 RCSGGLCCSKYGYCGSGPAYCG 30
3555555555555555555554 PP
>> 1p9z_A
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ? 16.2 18.7 7.1e-06 0.023 53 84 .. 8 39 .. 1 40 [] 0.74
Alignments for each domain:
== domain 1 score: 16.2 bits; conditional E-value: 7.1e-06
2UVO:A|PDBID|CHAIN|SEQUENCE 53 atctnnqccsqygycgfgaeycgagcqggpcr 84
c ccs ygycg ga ycgag cr
1p9z_A 8 RPCNAGLCCSIYGYCGSGAAYCGAGNCRCQCR 39
46888999999999999999999985555555 PP
Internal pipeline statistics summary:
-------------------------------------
Query model(s): 1 (171 nodes)
Target sequences: 47841 (11034331 residues searched)
Passed MSV filter: 1970 (0.0411781); expected 956.8 (0.02)
Passed bias filter: 641 (0.0133985); expected 956.8 (0.02)
Passed Vit filter: 51 (0.00106603); expected 47.8 (0.001)
Passed Fwd filter: 15 (0.000313539); expected 0.5 (1e-05)
Initial search space (Z): 47841 [actual number of targets]
Domain search space (domZ): 15 [number of targets reported over threshold]
# CPU time: 0.33u 0.02s 00:00:00.35 Elapsed: 00:00:00.14
# Mc/sec: 13477.65
//
# Alignment of 14 hits satisfying inclusion thresholds saved to: phmmerAlignment.log
[ok]
"""
PHMMER_AF_LOG_TXT = """# phmmer :: search a protein sequence against a protein database
# HMMER 3.2 (June 2018); http://hmmer.org/
# Copyright (C) 2018 Howard Hughes Medical Institute.
# Freely distributed under the BSD open source license.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# query sequence file: /Users/adamsimpkin/dev/mrparse_fresh/data/2uvoA.fasta
# target sequence database: /Users/adamsimpkin/opt/clean/ccp4-7.1/share/mrbump/data/seqAFDB.fasta
# MSA of hits saved to file: phmmerAlignment_af2.log
# per-seq hits tabular output: phmmerTblout_af2.log
# per-dom hits tabular output: phmmerDomTblout_af2.log
# max ASCII text line length: unlimited
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Query: 2UVO:A|PDBID|CHAIN|SEQUENCE [L=171]
Scores for complete sequences (score includes all domains):
--- full sequence --- --- best 1 domain --- -#dom-
E-value score bias E-value score bias exp N Sequence Description
------- ------ ----- ------- ------ ----- ---- -- -------- -----------
5.5e-74 253.2 98.2 7.1e-74 252.8 98.2 1.1 1 AF-Q0JF21-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 18552 : 87298 ] wmpLDDT: 85.88
2.8e-11 48.2 10.0 2.8e-11 48.2 10.0 2.2 2 AF-Q7Y1Z1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 31625 : 87298 ] wmpLDDT: 85.53
3.9e-10 44.5 16.7 3.9e-10 44.5 16.7 2.8 1 AF-A0A1D6LMS5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 6798 : 78598 ] wmpLDDT: 86.46
1.1e-09 43.0 15.2 1.1e-09 43.0 15.2 2.4 2 AF-Q7DNA1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 5638 : 87298 ] wmpLDDT: 89.91
3.5e-09 41.4 10.5 3.5e-09 41.4 10.5 3.0 3 AF-Q9SDY6-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27683 : 111598 ] wmpLDDT: 90.55
1.1e-08 39.8 8.0 1.1e-08 39.8 8.0 1.7 2 AF-C6T7J9-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 21501 : 111598 ] wmpLDDT: 88.34
2e-08 38.9 10.9 2e-08 38.9 10.9 2.7 2 AF-I1MMY2-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 14149 : 111598 ] wmpLDDT: 90.21
3.1e-08 38.3 8.5 3.1e-08 38.3 8.5 2.3 2 AF-Q6K8R2-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 2537 : 87298 ] wmpLDDT: 90.96
1.3e-07 36.3 15.4 1.3e-07 36.3 15.4 1.9 1 AF-B6TR38-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 271 : 78598 ] wmpLDDT: 90.07
1.5e-07 36.0 10.1 1.5e-07 36.0 10.1 2.2 2 AF-B6TT00-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 9220 : 78598 ] wmpLDDT: 91.82
1.7e-07 35.9 22.6 1.7e-07 35.9 22.6 2.7 2 AF-Q42993-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 13417 : 87298 ] wmpLDDT: 90.79
2e-07 35.7 21.9 2e-07 35.7 21.9 2.8 1 AF-P25765-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27511 : 87298 ] wmpLDDT: 89.12
2.8e-07 35.2 9.6 2.8e-07 35.2 9.6 2.6 3 AF-O24603-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 20429 : 54868 ] wmpLDDT: 89.88
3e-07 35.1 14.9 3e-07 35.1 14.9 2.0 2 AF-P43082-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 17725 : 54868 ] wmpLDDT: 84.90
4.6e-07 34.5 19.1 4.6e-07 34.5 19.1 2.5 1 AF-A0A1D6LMS1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 11432 : 78598 ] wmpLDDT: 90.27
4.9e-07 34.4 17.6 4.9e-07 34.4 17.6 2.4 2 AF-A0A1D6GWN3-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 28572 : 78598 ] wmpLDDT: 80.40
5.1e-07 34.3 12.1 5.1e-07 34.3 12.1 2.0 2 AF-O24598-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 5613 : 54868 ] wmpLDDT: 90.40
5.4e-07 34.2 8.6 5.4e-07 34.2 8.6 1.9 2 AF-Q9M2U5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 20516 : 54868 ] wmpLDDT: 90.20
6.9e-07 33.9 11.4 6.9e-07 33.9 11.4 1.9 2 AF-I1M587-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 50466 : 111598 ] wmpLDDT: 89.46
2e-06 32.4 10.9 2e-06 32.4 10.9 2.0 2 AF-O22841-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 17814 : 54868 ] wmpLDDT: 89.08
2.3e-06 32.2 13.0 2.3e-06 32.2 13.0 1.9 1 AF-O22842-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 23646 : 54868 ] wmpLDDT: 88.79
3.6e-06 31.5 11.0 3.6e-06 31.5 11.0 2.4 2 AF-A0A1D6GWN1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 38497 : 78598 ] wmpLDDT: 88.44
5e-06 31.1 27.6 5e-06 31.1 27.6 2.7 1 AF-P24626-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 23336 : 87298 ] wmpLDDT: 90.83
6.3e-06 30.8 14.1 6.3e-06 30.8 14.1 2.9 3 AF-O24658-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3457 : 54868 ] wmpLDDT: 89.68
7.8e-06 30.4 17.6 9.7e-06 30.1 17.6 1.2 1 AF-Q0JC38-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 10185 : 87298 ] wmpLDDT: 71.85
8.1e-06 30.4 12.2 8.1e-06 30.4 12.2 2.6 2 AF-P19171-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 1685 : 54868 ] wmpLDDT: 89.30
1.1e-05 29.9 21.2 2.5e-05 28.8 21.2 1.5 1 AF-A0A1X7YIJ7-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27631 : 78598 ] wmpLDDT: 86.49
1.7e-05 29.4 15.2 1.7e-05 29.4 15.2 2.3 2 AF-O04138-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3513 : 87298 ] wmpLDDT: 86.78
5.8e-05 27.6 25.6 5.8e-05 27.6 25.6 2.1 2 AF-P29023-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 9277 : 78598 ] wmpLDDT: 88.81
0.00012 26.5 24.9 0.00012 26.5 24.9 2.2 3 AF-C0P451-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 32177 : 78598 ] wmpLDDT: 88.36
0.00036 25.0 27.8 0.00036 25.0 27.8 1.9 2 AF-I1NCA0-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3766 : 111598 ] wmpLDDT: 85.61
0.0013 23.2 0.3 0.0013 23.2 0.3 1.0 1 AF-A0A0P0Y930-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 31777 : 87298 ] wmpLDDT: 74.91
0.0014 23.0 7.4 0.0014 23.0 7.4 2.1 2 AF-O24654-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3955 : 54868 ] wmpLDDT: 89.85
0.0015 23.0 6.8 0.0015 23.0 6.8 2.2 2 AF-A0A1P8AME8-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 18391 : 54868 ] wmpLDDT: 84.04
0.0023 22.4 33.5 0.0023 22.4 33.5 2.5 2 AF-Q688M5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 37002 : 87298 ] wmpLDDT: 88.47
0.0023 22.4 25.4 0.0023 22.4 25.4 1.9 2 AF-I1NCA1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 26281 : 111598 ] wmpLDDT: 88.99
Domain annotation for each sequence (and alignments):
>> AF-Q0JF21-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 18552 : 87298 ] wmpLDDT: 85.88
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 252.8 98.2 7e-78 7.1e-74 2 169 .. 30 197 .. 29 201 .. 0.99
Alignments for each domain:
== domain 1 score: 252.8 bits; conditional E-value: 7e-78
2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgycgagcqsggc 169
cg+q+ m cp+nlccsq+gycg+g dycg gcq+gac +s+rcgsq ggatc+nnqccsqygycgfg+eycg+gcq+gpcradikcg a+g+lcpnn+ccsqwg+cglgsefcg+gcqsgac +k cgk agg c nn+ccs g cg+g +ycg+gcqsggc
AF-Q0JF21-F1-model_v1 30 TCGKQNDGMICPHNLCCSQFGYCGLGRDYCGTGCQSGACCSSQRCGSQGGGATCSNNQCCSQYGYCGFGSEYCGSGCQNGPCRADIKCGRNANGELCPNNMCCSQWGYCGLGSEFCGNGCQSGACCPEKRCGKQAGGDKCPNNFCCSAGGYCGLGGNYCGSGCQSGGC 197
6*********************************************************************************************************************************************************************** PP
>> AF-Q7Y1Z1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 31625 : 87298 ] wmpLDDT: 85.53
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 48.2 10.0 2.8e-15 2.8e-11 83 136 .. 30 81 .. 20 97 .. 0.86
2 ? -2.2 1.0 7.6 7.7e+04 34 53 .. 179 198 .. 159 230 .. 0.48
Alignments for each domain:
== domain 1 score: 48.2 bits; conditional E-value: 2.8e-15
2UVO:A|PDBID|CHAIN|SEQUENCE 83 cradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkda 136
+ra+ +cg qagg cpn lccs+wg+cgl ++c ggcqs c + g d
AF-Q7Y1Z1-F1-model_v1 30 ARAE-QCGRQAGGARCPNRLCCSRWGWCGLTDDYCKGGCQS-QCRVSRDGGDDD 81
5555.8**********************************8.588888777764 PP
== domain 2 score: -2.2 bits; conditional E-value: 7.6
2UVO:A|PDBID|CHAIN|SEQUENCE 34 gcqngacwtskrcgsqagga 53
g+ + c + r g a
AF-Q7Y1Z1-F1-model_v1 179 GATSDFCVPNARWPCAPGKA 198
33333333333333333333 PP
>> AF-A0A1D6LMS5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 6798 : 78598 ] wmpLDDT: 86.46
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 44.5 16.7 3.9e-14 3.9e-10 82 127 .. 20 67 .. 12 82 .. 0.80
Alignments for each domain:
== domain 1 score: 44.5 bits; conditional E-value: 3.9e-14
2UVO:A|PDBID|CHAIN|SEQUENCE 82 pcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqs...gacs 127
p+ra+ +cgsqagg lcpn lccsq+g+cg s++cg+gcqs g+c
AF-A0A1D6LMS5-F1-model_v1 20 PARAE-QCGSQAGGALCPNCLCCSQFGWCGSTSDYCGSGCQSqcsGSCG 67
88887.8**********************************72225553 PP
>> AF-Q7DNA1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 5638 : 87298 ] wmpLDDT: 89.91
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 43.0 15.2 1.1e-13 1.1e-09 84 128 .. 31 73 .. 20 91 .. 0.85
2 ? -1.4 1.3 4.1 4.2e+04 52 78 .. 288 314 .. 269 331 .. 0.66
Alignments for each domain:
== domain 1 score: 43.0 bits; conditional E-value: 1.1e-13
2UVO:A|PDBID|CHAIN|SEQUENCE 84 radikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacst 128
ra+ +cg+qagg cpn lccs+wg+cg s+fcg gcqs cs
AF-Q7DNA1-F1-model_v1 31 RAE-QCGAQAGGARCPNCLCCSRWGWCGTTSDFCGDGCQSQ-CSG 73
555.8**********************************85.543 PP
== domain 2 score: -1.4 bits; conditional E-value: 4.1
2UVO:A|PDBID|CHAIN|SEQUENCE 52 gatctnnqccsqygycgfgaeycgagc 78
g c + + gf ycga
AF-Q7DNA1-F1-model_v1 288 GLECGHGPDDRVANRIGFYQRYCGAFG 314
444544444444555667777777643 PP
>> AF-Q9SDY6-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27683 : 111598 ] wmpLDDT: 90.55
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 41.4 10.5 3.4e-13 3.5e-09 88 129 .. 25 65 .. 19 87 .. 0.75
2 ? -2.2 5.4 7.3 7.4e+04 49 86 .. 159 185 .. 121 211 .. 0.61
3 ? -2.3 0.2 8.2 8.3e+04 51 58 .. 277 284 .. 251 315 .. 0.61
Alignments for each domain:
== domain 1 score: 41.4 bits; conditional E-value: 3.4e-13
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstd 129
+cg+qagg lcpn lccs++g+cg +cg gcqs s
AF-Q9SDY6-F1-model_v1 25 QCGTQAGGALCPNRLCCSKFGWCGDTDSYCGEGCQSQCKS-A 65
7999999999999999999999999999999999985322.2 PP
== domain 2 score: -2.2 bits; conditional E-value: 7.3
2UVO:A|PDBID|CHAIN|SEQUENCE 49 qaggatctnnqccsqygycgfgaeycgagcqgg..pcrad 86
a +gyc ++ + + c gg pc a
AF-Q9SDY6-F1-model_v1 159 YA-------------WGYCFINEQNQATYCDGGnwPCAAG 185
33.............3444444444444444433334333 PP
== domain 3 score: -2.3 bits; conditional E-value: 8.2
2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnn 58
gg c +
AF-Q9SDY6-F1-model_v1 277 GGLECGHG 284
33333333 PP
>> AF-C6T7J9-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 21501 : 111598 ] wmpLDDT: 88.34
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 39.8 8.0 1.1e-12 1.1e-08 7 44 .. 34 71 .. 29 88 .. 0.87
2 ? -2.0 0.3 6.3 6.4e+04 29 42 .. 159 172 .. 146 194 .. 0.59
Alignments for each domain:
== domain 1 score: 39.8 bits; conditional E-value: 1.1e-12
2UVO:A|PDBID|CHAIN|SEQUENCE 7 gsnmecpnnlccsqygycgmggdycgkgcqngacwtsk 44
+ n c lccs+ygycg g dycgkgc+ g c+ +
AF-C6T7J9-F1-model_v1 34 AQNCGCEAELCCSKYGYCGSGDDYCGKGCKEGPCYGTA 71
57899*****************************9764 PP
== domain 2 score: -2.0 bits; conditional E-value: 6.3
2UVO:A|PDBID|CHAIN|SEQUENCE 29 dycgkgcqngacwt 42
dyc k ++ c
AF-C6T7J9-F1-model_v1 159 DYCDKTNRHYPCAH 172
44444333333322 PP
>> AF-I1MMY2-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 14149 : 111598 ] wmpLDDT: 90.21
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 38.9 10.9 2e-12 2e-08 87 138 .. 24 75 .. 18 89 .. 0.76
2 ? 0.7 1.0 0.94 9.5e+03 107 127 .. 158 178 .. 117 204 .. 0.67
Alignments for each domain:
== domain 1 score: 38.9 bits; conditional E-value: 2e-12
2UVO:A|PDBID|CHAIN|SEQUENCE 87 ikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdagg 138
cg+q gg +cpn lccsq+g+cg cg gcqs p +g
AF-I1MMY2-F1-model_v1 24 QNCGTQVGGVICPNGLCCSQYGWCGNTEAHCGRGCQSQCTPGSTPTPTTPSG 75
47************************999*******9866555555443333 PP
== domain 2 score: 0.7 bits; conditional E-value: 0.94
2UVO:A|PDBID|CHAIN|SEQUENCE 107 wgfcglgsefcgggcqsgacs 127
wg+c ++ + c sg
AF-I1MMY2-F1-model_v1 158 WGYCFINERNQADYCTSGTRW 178
555555555444555544322 PP
>> AF-Q6K8R2-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 2537 : 87298 ] wmpLDDT: 90.96
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 38.3 8.5 3e-12 3.1e-08 51 85 .. 26 60 .. 15 78 .. 0.73
2 ? -0.0 0.5 1.6 1.6e+04 144 163 .. 148 169 .. 140 194 .. 0.73
Alignments for each domain:
== domain 1 score: 38.3 bits; conditional E-value: 3e-12
2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnnqccsqygycgfgaeycgagcqggpcra 85
+ c ++qccs++g+cg g++ycg gcq+gpc
AF-Q6K8R2-F1-model_v1 26 QSCGCASDQCCSKWGFCGTGSDYCGTGCQAGPCDV 60
34557888888888888888888888888888854 PP
== domain 2 score: -0.0 bits; conditional E-value: 1.6
2UVO:A|PDBID|CHAIN|SEQUENCE 144 nyc..cskwgscgigpgycgag 163
nyc s c g gy g g
AF-Q6K8R2-F1-model_v1 148 NYCdeTSTQWPCMAGKGYYGRG 169
6663322333577788887776 PP
>> AF-B6TR38-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 271 : 78598 ] wmpLDDT: 90.07
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 36.3 15.4 1.2e-11 1.3e-07 43 84 .. 31 71 .. 23 89 .. 0.80
Alignments for each domain:
== domain 1 score: 36.3 bits; conditional E-value: 1.2e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 43 skrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcr 84
++cg qaggatc + ccs++g+cg +eycgagcq+ c
AF-B6TR38-F1-model_v1 31 GQQCGQQAGGATCRDCLCCSRFGFCGDTSEYCGAGCQS-QCT 71
57899999999999999999999999999999999996.343 PP
>> AF-B6TT00-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 9220 : 78598 ] wmpLDDT: 91.82
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 36.0 10.1 1.5e-11 1.5e-07 51 84 .. 26 59 .. 19 74 .. 0.64
2 ? 0.3 0.3 1.3 1.3e+04 143 163 .. 147 169 .. 99 192 .. 0.81
Alignments for each domain:
== domain 1 score: 36.0 bits; conditional E-value: 1.5e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnnqccsqygycgfgaeycgagcqggpcr 84
+ c + ccs++gycg g +ycgagcq+gpc
AF-B6TT00-F1-model_v1 26 QNCGCASGLCCSRFGYCGTGEDYCGAGCQSGPCD 59
3445666666666666666666666666666664 PP
== domain 2 score: 0.3 bits; conditional E-value: 1.3
2UVO:A|PDBID|CHAIN|SEQUENCE 143 nnycc...skwgscgigpgycgag 163
nyc ++w c g gy g g
AF-B6TT00-F1-model_v1 147 KNYCDrnnTQW-PCQAGKGYYGRG 169
45554211344.577777777766 PP
>> AF-Q42993-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 13417 : 87298 ] wmpLDDT: 90.79
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 35.9 22.6 1.7e-11 1.7e-07 88 138 .. 22 75 .. 16 83 .. 0.82
2 ? 0.8 1.3 0.88 9e+03 143 158 .. 173 189 .. 142 221 .. 0.57
Alignments for each domain:
== domain 1 score: 35.9 bits; conditional E-value: 1.7e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqs...gacstdkpcgkdagg 138
+cgsqagg lcpn lccsq+g+cg s +cg+gcqs g+c p gg
AF-Q42993-F1-model_v1 22 QCGSQAGGALCPNCLCCSQYGWCGSTSAYCGSGCQSqcsGSCGGGGPTPPSGGG 75
7*********************************96333777777666655555 PP
== domain 2 score: 0.8 bits; conditional E-value: 0.88
2UVO:A|PDBID|CHAIN|SEQUENCE 143 nnycc..skwgscgigpg 158
++yc s+w c+ g
AF-Q42993-F1-model_v1 173 SDYCVqsSQW-PCAAGKK 189
2222111112.2223333 PP
>> AF-P25765-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27511 : 87298 ] wmpLDDT: 89.12
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 35.7 21.9 2e-11 2e-07 88 133 .. 23 66 .. 15 82 .. 0.59
Alignments for each domain:
== domain 1 score: 35.7 bits; conditional E-value: 2e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcg 133
+cgsqagg +cpn lccsq+g+cg s++cg+gcqs cs cg
AF-P25765-F1-model_v1 23 QCGSQAGGAVCPNCLCCSQFGWCGSTSDYCGAGCQSQ-CSA-AGCG 66
4666666666666666666666666666666666653.333.1233 PP
>> AF-O24603-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 20429 : 54868 ] wmpLDDT: 89.88
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 35.2 9.6 2.7e-11 2.8e-07 47 91 .. 30 72 .. 23 112 .. 0.78
2 ? -0.1 1.0 1.7 1.7e+04 143 164 .. 155 178 .. 137 196 .. 0.60
3 ? -2.1 0.1 6.9 7e+04 145 145 .. 259 259 .. 227 273 .. 0.50
Alignments for each domain:
== domain 1 score: 35.2 bits; conditional E-value: 2.7e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 47 gsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgs 91
+sq c ++ ccs+ygycg e+cg gcq+gpcr+ g
AF-O24603-F1-model_v1 30 ASQN--CGCASDFCCSKYGYCGTTDEFCGEGCQAGPCRSSGGGGD 72
5554..458999999999999999999999999999998765554 PP
== domain 2 score: -0.1 bits; conditional E-value: 1.7
2UVO:A|PDBID|CHAIN|SEQUENCE 143 nnyccskw..gscgigpgycgagc 164
yc ++ c+ g gy g g+
AF-O24603-F1-model_v1 155 GEYCDTEKpeFPCAQGKGYYGRGA 178
444433320123555555555543 PP
== domain 3 score: -2.1 bits; conditional E-value: 6.9
2UVO:A|PDBID|CHAIN|SEQUENCE 145 y 145
y
AF-O24603-F1-model_v1 259 Y 259
1 PP
>> AF-P43082-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 17725 : 54868 ] wmpLDDT: 84.90
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 35.1 14.9 2.9e-11 3e-07 2 48 .. 23 70 .. 22 88 .. 0.80
2 ? -2.5 2.7 9.2 9.4e+04 23 51 .. 120 146 .. 105 207 .. 0.61
Alignments for each domain:
== domain 1 score: 35.1 bits; conditional E-value: 2.9e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycg..kgcqngacwtskrcgs 48
+cg qg cp n+ccsqygycg +dyc+ +cq+ cw s g
AF-P43082-F1-model_v1 23 QCGRQGGGRTCPGNICCSQYGYCGTTADYCSptNNCQS-NCWGSGPSGP 70
8*****************************83357987.59*9876654 PP
== domain 2 score: -2.5 bits; conditional E-value: 9.2
2UVO:A|PDBID|CHAIN|SEQUENCE 23 ycgmggdycgkgcqngacwtskrcgsqag 51
+cg +g +c g c k+ + a+
AF-P43082-F1-model_v1 120 FCGPAGPRGQASC--GKCLRVKNTRTNAA 146
2333333222222..45555555444444 PP
>> AF-A0A1D6LMS1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 11432 : 78598 ] wmpLDDT: 90.27
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 34.5 19.1 4.5e-11 4.6e-07 88 135 .. 27 72 .. 20 81 .. 0.83
Alignments for each domain:
== domain 1 score: 34.5 bits; conditional E-value: 4.5e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkd 135
+cg+qagg lcp+ lccsqwg+cg ++c gcqs cg
AF-A0A1D6LMS1-F1-model_v1 27 QCGTQAGGALCPDCLCCSQWGYCGSTPDYCTDGCQSQCFG--SGCGGG 72
7**********************************97544..457754 PP
>> AF-A0A1D6GWN3-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 28572 : 78598 ] wmpLDDT: 80.40
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 34.4 17.6 4.8e-11 4.9e-07 87 124 .. 22 59 .. 12 69 .. 0.88
2 ? -0.8 1.5 2.8 2.9e+04 22 37 .. 171 186 .. 136 199 .. 0.57
Alignments for each domain:
== domain 1 score: 34.4 bits; conditional E-value: 4.8e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 87 ikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsg 124
+cg a gklcp+ lccs+wg+cg s++cg gcqs
AF-A0A1D6GWN3-F1-model_v1 22 AQCGDGADGKLCPDCLCCSKWGYCGSTSDYCGDGCQSQ 59
58**********************************95 PP
== domain 2 score: -0.8 bits; conditional E-value: 2.8
2UVO:A|PDBID|CHAIN|SEQUENCE 22 gycgmggdycgkgcqn 37
yc m g+y+ c
AF-A0A1D6GWN3-F1-model_v1 171 DYCDMTGEYAQWPCVA 186
3444444444333333 PP
>> AF-O24598-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 5613 : 54868 ] wmpLDDT: 90.40
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 34.3 12.1 5e-11 5.1e-07 9 90 .. 26 61 .. 20 98 .. 0.53
2 ? -1.8 0.2 5.6 5.7e+04 25 33 .. 246 254 .. 225 264 .. 0.51
Alignments for each domain:
== domain 1 score: 34.3 bits; conditional E-value: 5e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 9 nmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcg 90
n + c n ccsq+gycg a+ycg+ cq+gpcr g
AF-O24598-F1-model_v1 26 NCD-------------------------------------------CAPNLCCSQFGYCGTTADYCGSTCQSGPCRVG---G 61
444...........................................55555555555555555555555555555542...2 PP
== domain 2 score: -1.8 bits; conditional E-value: 5.6
2UVO:A|PDBID|CHAIN|SEQUENCE 25 gmggdycgk 33
g dycg+
AF-O24598-F1-model_v1 246 GYYRDYCGQ 254
333344443 PP
>> AF-Q9M2U5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 20516 : 54868 ] wmpLDDT: 90.20
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 34.2 8.6 5.3e-11 5.4e-07 8 43 .. 29 64 .. 24 103 .. 0.70
2 ? -1.7 0.4 5.4 5.5e+04 34 83 .. 157 163 .. 137 193 .. 0.59
Alignments for each domain:
== domain 1 score: 34.2 bits; conditional E-value: 5.3e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 8 snmecpnnlccsqygycgmggdycgkgcqngacwts 43
n c + lccsq+g+cg +dycg gcq g c+
AF-Q9M2U5-F1-model_v1 29 QNCGCSSELCCSQFGFCGNTSDYCGVGCQQGPCFAP 64
455666666666666666666666666666666654 PP
== domain 2 score: -1.7 bits; conditional E-value: 5.4
2UVO:A|PDBID|CHAIN|SEQUENCE 34 gcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpc 83
++ pc
AF-Q9M2U5-F1-model_v1 157 NA-------------------------------------------TQYPC 163
22...........................................22222 PP
>> AF-I1M587-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 50466 : 111598 ] wmpLDDT: 89.46
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 33.9 11.4 6.8e-11 6.9e-07 8 46 .. 28 66 .. 23 94 .. 0.77
2 ? -1.4 0.3 4.3 4.4e+04 57 70 .. 161 174 .. 137 195 .. 0.67
Alignments for each domain:
== domain 1 score: 33.9 bits; conditional E-value: 6.8e-11
2UVO:A|PDBID|CHAIN|SEQUENCE 8 snmecpnnlccsqygycgmggdycgkgcqngacwtskrc 46
n c lccsq+gycg g +ycg gc+ g c++s
AF-I1M587-F1-model_v1 28 QNCGCAEGLCCSQHGYCGNGEEYCGTGCKQGPCYSSTPS 66
577788888888888888888888888888888887655 PP
== domain 2 score: -1.4 bits; conditional E-value: 4.3
2UVO:A|PDBID|CHAIN|SEQUENCE 57 nnqccsqygycgfg 70
c s gy g g
AF-I1M587-F1-model_v1 161 QYPCLSNRGYYGRG 174
33444445554444 PP
>> AF-O22841-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 17814 : 54868 ] wmpLDDT: 89.08
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 32.4 10.9 2e-10 2e-06 48 86 .. 29 67 .. 21 86 .. 0.76
2 ? -2.0 0.8 6.4 6.5e+04 20 34 .. 169 184 .. 152 198 .. 0.66
Alignments for each domain:
== domain 1 score: 32.4 bits; conditional E-value: 2e-10
2UVO:A|PDBID|CHAIN|SEQUENCE 48 sqaggatctnnqccsqygycgfgaeycgagcqggpcrad 86
q g c n ccs+ygycg ycg gc++gpc +
AF-O22841-F1-model_v1 29 QQCGTTGCAANLCCSRYGYCGTTDAYCGTGCRSGPCSSS 67
345556688888888888888888888888888888754 PP
== domain 2 score: -2.0 bits; conditional E-value: 6.4
2UVO:A|PDBID|CHAIN|SEQUENCE 20 qygy.cgmggdycgkg 34
+y c g dy g+g
AF-O22841-F1-model_v1 169 STAYpCTPGKDYYGRG 184
3333366666777666 PP
>> AF-O22842-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 23646 : 54868 ] wmpLDDT: 88.79
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 32.2 13.0 2.3e-10 2.3e-06 93 128 .. 31 66 .. 21 90 .. 0.59
Alignments for each domain:
== domain 1 score: 32.2 bits; conditional E-value: 2.3e-10
2UVO:A|PDBID|CHAIN|SEQUENCE 93 aggklcpnnlccsqwgfcglgsefcgggcqsgacst 128
g c n+ccs+wg+cg +cg gcqsg c++
AF-O22842-F1-model_v1 31 CGTNGCKGNMCCSRWGYCGTTKAYCGTGCQSGPCNS 66
333445555555555555555555555555555543 PP
>> AF-A0A1D6GWN1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 38497 : 78598 ] wmpLDDT: 88.44
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 31.5 11.0 3.6e-10 3.6e-06 87 124 .. 27 64 .. 15 74 .. 0.87
2 ? -1.1 0.3 3.4 3.4e+04 129 168 .. 225 236 .. 202 271 .. 0.69
Alignments for each domain:
== domain 1 score: 31.5 bits; conditional E-value: 3.6e-10
2UVO:A|PDBID|CHAIN|SEQUENCE 87 ikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsg 124
+cg+ + lcp lccs+wgfcg +cg+gcqs
AF-A0A1D6GWN1-F1-model_v1 27 PQCGANSTTALCPYCLCCSKWGFCGSTEAYCGNGCQSQ 64
47**********************************95 PP
== domain 2 score: -1.1 bits; conditional E-value: 3.4
2UVO:A|PDBID|CHAIN|SEQUENCE 129 dkpcgkdaggrvctnnyccskwgscgigpgycgagcqsgg 168
d c g g +gg
AF-A0A1D6GWN1-F1-model_v1 225 DAEC----------------------------GRGPDAGG 236
3333............................22222222 PP
>> AF-P24626-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 23336 : 87298 ] wmpLDDT: 90.83
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 31.1 27.6 5e-10 5e-06 88 127 .. 20 62 .. 14 81 .. 0.74
Alignments for each domain:
== domain 1 score: 31.1 bits; conditional E-value: 5e-10
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqs...gacs 127
+cgsqagg lcpn lccsq+g+cg s++cg+gcqs g c
AF-P24626-F1-model_v1 20 QCGSQAGGALCPNCLCCSQYGWCGSTSDYCGAGCQSqcsGGCG 62
6999999999999999999999999999999999862224443 PP
>> AF-O24658-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3457 : 54868 ] wmpLDDT: 89.68
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 30.8 14.1 6.2e-10 6.3e-06 53 97 .. 27 68 .. 17 97 .. 0.67
2 ? 0.5 1.6 1.1 1.1e+04 141 163 .. 141 165 .. 135 183 .. 0.73
3 ? -1.0 0.6 3.1 3.1e+04 54 76 .. 231 253 .. 223 263 .. 0.52
Alignments for each domain:
== domain 1 score: 30.8 bits; conditional E-value: 6.2e-10
2UVO:A|PDBID|CHAIN|SEQUENCE 53 atctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggkl 97
c n ccsq+gycg ycg gc++gpcr g+ gg +
AF-O24658-F1-model_v1 27 CGCAPNLCCSQFGYCGTDDAYCGVGCRSGPCRGS---GTPTGGSV 68
4577888888888888888888888888888864...44444443 PP
== domain 2 score: 0.5 bits; conditional E-value: 1.1
2UVO:A|PDBID|CHAIN|SEQUENCE 141 ctnnyccsk..wgscgigpgycgag 163
+t nyc s c+ g gy g g
AF-O24658-F1-model_v1 141 ATRNYCQSSntQYPCAPGKGYFGRG 165
5778887651134688888888876 PP
== domain 3 score: -1.0 bits; conditional E-value: 3.1
2UVO:A|PDBID|CHAIN|SEQUENCE 54 tctnnqccsqygycgfgaeycga 76
c + + g+ +ycg
AF-O24658-F1-model_v1 231 ECNGGNSGAVNARIGYYRDYCGQ 253
44444444444445555555553 PP
>> AF-Q0JC38-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 10185 : 87298 ] wmpLDDT: 71.85
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 30.1 17.6 9.6e-10 9.7e-06 8 47 .. 28 65 .. 22 82 .. 0.80
Alignments for each domain:
== domain 1 score: 30.1 bits; conditional E-value: 9.6e-10
2UVO:A|PDBID|CHAIN|SEQUENCE 8 snmecpnnlccsqygycgmggdycgkgcqngacwtskrcg 47
n c + ccsq+gycg ycg+gcq+g cw s g
AF-Q0JC38-F1-model_v1 28 QNCGCQDGYCCSQWGYCGTTEAYCGQGCQSGPCWGSG--G 65
6888999999999999999999999999999999874..2 PP
>> AF-P19171-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 1685 : 54868 ] wmpLDDT: 89.30
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 30.4 12.2 8e-10 8.1e-06 88 133 .. 35 81 .. 30 96 .. 0.80
2 ? -2.6 0.7 9.6 9.7e+04 130 142 .. 286 298 .. 268 321 .. 0.58
Alignments for each domain:
== domain 1 score: 30.4 bits; conditional E-value: 8e-10
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcg.ggcqsgacstdkpcg 133
+cg qagg lcpn lccs++g+cg +c gcqs p g
AF-P19171-F1-model_v1 35 QCGRQAGGALCPNGLCCSEFGWCGNTEPYCKqPGCQSQCTPGGTPPG 81
7*****************************6369*997666666665 PP
== domain 2 score: -2.6 bits; conditional E-value: 9.6
2UVO:A|PDBID|CHAIN|SEQUENCE 130 kpcgkdaggrvct 142
cg+ grv+
AF-P19171-F1-model_v1 286 LECGRGQDGRVAD 298
3444444444443 PP
>> AF-A0A1X7YIJ7-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27631 : 78598 ] wmpLDDT: 86.49
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 28.8 21.2 2.4e-09 2.5e-05 10 80 .. 34 99 .. 28 104 .. 0.76
Alignments for each domain:
== domain 1 score: 28.8 bits; conditional E-value: 2.4e-09
2UVO:A|PDBID|CHAIN|SEQUENCE 10 mecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqg 80
c +ccs+ygycg + ycg+gc++g cw s cg gga+ ++ + g+ ++g+ c+g
AF-A0A1X7YIJ7-F1-model_v1 34 CGCQPGFCCSKYGYCGKTSAYCGEGCKSGPCWGSAGCGG--GGASVARV--VTKSFFNGIK-SHAGSWCEG 99
568899*******************************95..77776543..3333344443.456666665 PP
>> AF-O04138-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3513 : 87298 ] wmpLDDT: 86.78
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 29.4 15.2 1.6e-09 1.7e-05 8 44 .. 28 64 .. 22 88 .. 0.82
2 ? -0.6 0.4 2.4 2.5e+04 25 45 .. 160 180 .. 146 200 .. 0.70
Alignments for each domain:
== domain 1 score: 29.4 bits; conditional E-value: 1.6e-09
2UVO:A|PDBID|CHAIN|SEQUENCE 8 snmecpnnlccsqygycgmggdycgkgcqngacwtsk 44
n c + ccsq+gycg ycg+gcq+g cw s
AF-O04138-F1-model_v1 28 QNCGCQDGYCCSQWGYCGTTEAYCGQGCQSGPCWGSG 64
6888999999999999999999999999999999874 PP
== domain 2 score: -0.6 bits; conditional E-value: 2.4
2UVO:A|PDBID|CHAIN|SEQUENCE 25 gmggdycgkgcqngacwtskr 45
g + dyc k+ + c k+
AF-O04138-F1-model_v1 160 GANMDYCDKSNKQWPCQPGKK 180
555567776666666665554 PP
>> AF-P29023-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 9277 : 78598 ] wmpLDDT: 88.81
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 27.6 25.6 5.7e-09 5.8e-05 9 123 .. 22 91 .. 12 99 .. 0.50
2 ? -2.1 0.3 6.8 6.9e+04 153 163 .. 159 169 .. 143 193 .. 0.59
Alignments for each domain:
== domain 1 score: 27.6 bits; conditional E-value: 5.7e-09
2UVO:A|PDBID|CHAIN|SEQUENCE 9 nmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqs 123
n c n+ccs++gycg +ycg gcq+g c r+ g gg ++ s + f g+ ++ +g+gc+
AF-P29023-F1-model_v1 22 NCGCQPNVCCSKFGYCGTTDEYCGDGCQSGPC-------------------------------------------RSGRGGGGSGGGGANVASVVTSSF-FNGIKNQ-AGSGCEG 91
44455555555555555555555555555555...........................................555444444444444334433332.4444433.3444443 PP
== domain 2 score: -2.1 bits; conditional E-value: 6.8
2UVO:A|PDBID|CHAIN|SEQUENCE 153 cgigpgycgag 163
c+ g y g g
AF-P29023-F1-model_v1 159 CAAGQKYYGRG 169
33333333322 PP
>> AF-C0P451-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 32177 : 78598 ] wmpLDDT: 88.36
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 26.5 24.9 1.2e-08 0.00012 51 123 .. 34 103 .. 23 111 .. 0.59
2 ? -2.3 0.4 8.2 8.3e+04 153 163 .. 171 181 .. 156 204 .. 0.59
3 ? -2.4 0.3 8.8 8.9e+04 51 75 .. 245 269 .. 238 278 .. 0.64
Alignments for each domain:
== domain 1 score: 26.5 bits; conditional E-value: 1.2e-08
2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqs 123
+ c n ccs++gycg eycg gcq+gpcr+ gs gg ++ f g+ s+ +g+gc+
AF-C0P451-F1-model_v1 34 QNCGCQPNVCCSKFGYCGTTDEYCGDGCQSGPCRSGG-GGSSGGGGANVASVVTGS-FFNGIKSQ-AGSGCEG 103
3445677777777777777777777777777777654.344444443333333332.35566555.5666654 PP
== domain 2 score: -2.3 bits; conditional E-value: 8.2
2UVO:A|PDBID|CHAIN|SEQUENCE 153 cgigpgycgag 163
c+ g y g g
AF-C0P451-F1-model_v1 171 CAAGQKYYGRG 181
33333333322 PP
== domain 3 score: -2.4 bits; conditional E-value: 8.8
2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnnqccsqygycgfgaeycg 75
g+ c n + + g+ +yc
AF-C0P451-F1-model_v1 245 GALECGGNNPAQMNARVGYYRQYCR 269
4456777777777777777777774 PP
>> AF-I1NCA0-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3766 : 111598 ] wmpLDDT: 85.61
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 25.0 27.8 3.6e-08 0.00036 1 62 [. 21 83 .. 21 103 .. 0.81
2 ? -1.8 0.7 5.6 5.7e+04 27 40 .. 131 138 .. 113 163 .. 0.48
Alignments for each domain:
== domain 1 score: 25.0 bits; conditional E-value: 3.6e-08
2UVO:A|PDBID|CHAIN|SEQUENCE 1 ercgeqgsnmecpnnlccsqygycgmggdycg..kgcqngacwtskrcgsqaggatctnnqccs 62
e+cg q+ + cpnnlccsqyg+cg +yc+ k+cq++ cw g gg +n ++
AF-I1NCA0-F1-model_v1 21 EQCGRQAGGQTCPNNLCCSQYGWCGNTEEYCSpsKNCQSN-CWGGGGGGGGGGGGESASNVRAT 83
78*****************************544899975.99998888877777666664443 PP
== domain 2 score: -1.8 bits; conditional E-value: 5.6
2UVO:A|PDBID|CHAIN|SEQUENCE 27 ggdycgkgcqngac 40
g d c g c
AF-I1NCA0-F1-model_v1 131 GRDSC------GKC 138
22222......333 PP
>> AF-A0A0P0Y930-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 31777 : 87298 ] wmpLDDT: 74.91
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 23.2 0.3 1.3e-07 0.0013 65 85 .. 8 28 .. 2 45 .. 0.74
Alignments for each domain:
== domain 1 score: 23.2 bits; conditional E-value: 1.3e-07
2UVO:A|PDBID|CHAIN|SEQUENCE 65 gycgfgaeycgagcqggpcra 85
++cg g++y g gcq+gpc
AF-A0A0P0Y930-F1-model_v1 8 AFCGTGSDYYGTGCQAGPCDV 28
678888888888888888854 PP
>> AF-O24654-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3955 : 54868 ] wmpLDDT: 89.85
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 23.0 7.4 1.4e-07 0.0014 98 128 .. 30 61 .. 20 77 .. 0.76
2 ? 1.0 0.4 0.77 7.8e+03 14 42 .. 152 182 .. 145 196 .. 0.67
Alignments for each domain:
== domain 1 score: 23.0 bits; conditional E-value: 1.4e-07
2UVO:A|PDBID|CHAIN|SEQUENCE 98 cpn.nlccsqwgfcglgsefcgggcqsgacst 128
cp ccs+wgfcg e+cg c sg c+
AF-O24654-F1-model_v1 30 CPGlKECCSRWGFCGTKDEYCGFFCFSGPCNI 61
66534699999999999999999999999975 PP
== domain 2 score: 1.0 bits; conditional E-value: 0.77
2UVO:A|PDBID|CHAIN|SEQUENCE 14 nnlccsq.ygy.cgmggdycgkgcqngacwt 42
n cs+ y c g +y g+g + w
AF-O24654-F1-model_v1 152 NERYCSKsKKYpCEPGKNYYGRGLLQSITWN 182
4444443123338888888888888888886 PP
>> AF-A0A1P8AME8-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 18391 : 54868 ] wmpLDDT: 84.04
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 23.0 6.8 1.5e-07 0.0015 57 86 .. 62 91 .. 47 101 .. 0.79
2 ? -0.1 0.7 1.7 1.7e+04 16 37 .. 182 204 .. 168 217 .. 0.57
Alignments for each domain:
== domain 1 score: 23.0 bits; conditional E-value: 1.5e-07
2UVO:A|PDBID|CHAIN|SEQUENCE 57 nnqccsqygycgfgaeycgagcqggpcrad 86
n+ccs gycg + e+cg c +gpc+
AF-A0A1P8AME8-F1-model_v1 62 INECCSHTGYCGTNVEHCGFWCLSGPCQLS 91
489999999999999999999999999865 PP
== domain 2 score: -0.1 bits; conditional E-value: 1.7
2UVO:A|PDBID|CHAIN|SEQUENCE 16 lccsqygy.cgmggdycgkgcqn 37
c s y c g y g+g
AF-A0A1P8AME8-F1-model_v1 182 YCSSSKTYpCQSGKKYYGRGLLQ 204
23333333244444555555444 PP
>> AF-Q688M5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 37002 : 87298 ] wmpLDDT: 88.47
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 22.4 33.5 2.2e-07 0.0023 88 138 .. 25 71 .. 12 85 .. 0.79
2 ? -0.9 0.4 3 3.1e+04 64 86 .. 166 192 .. 142 208 .. 0.56
Alignments for each domain:
== domain 1 score: 22.4 bits; conditional E-value: 2.2e-07
2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdagg 138
+cgsqagg lcpn lccs +g+cg s++cg gcqs c cg gg
AF-Q688M5-F1-model_v1 25 QCGSQAGGALCPNCLCCSSYGWCGSTSDYCGDGCQSQ-CD---GCGGGGGG 71
7999999999999999999999999999999999985.43...24443333 PP
== domain 2 score: -0.9 bits; conditional E-value: 3
2UVO:A|PDBID|CHAIN|SEQUENCE 64 ygyc.....gfgaeycgagcqggpcrad 86
+gyc g a yc +++ pc d
AF-Q688M5-F1-model_v1 166 WGYCfkeeiGATASYCVPSAE-WPCAPD 192
333322222333444443333.344444 PP
>> AF-I1NCA1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 26281 : 111598 ] wmpLDDT: 88.99
# score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc
--- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----
1 ! 22.4 25.4 2.3e-07 0.0023 2 63 .. 23 82 .. 22 109 .. 0.76
2 ? -1.6 1.1 4.8 4.9e+04 124 139 .. 120 135 .. 85 145 .. 0.59
Alignments for each domain:
== domain 1 score: 22.4 bits; conditional E-value: 2.3e-07
2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycg..kgcqngacwtskrcgsqaggatctnnqccsq 63
+cg q+ + c nnlccsqyg+cg + d+c+ k+cq+ cw s gg +++n ++
AF-I1NCA1-F1-model_v1 23 NCGRQAGGQTCGNNLCCSQYGWCGNSEDHCSpsKNCQS-TCWGSGG--GGGGGESASN-VRATY 82
7*****************************64489996.8**9853..3345555444.33334 PP
== domain 2 score: -1.6 bits; conditional E-value: 4.8
2UVO:A|PDBID|CHAIN|SEQUENCE 124 gacstdkpcgkdaggr 139
+ c p g+da g+
AF-I1NCA1-F1-model_v1 120 AFCGPVGPRGRDACGK 135
3455555555555554 PP
Internal pipeline statistics summary:
-------------------------------------
Query model(s): 1 (171 nodes)
Target sequences: 365198 (160235650 residues searched)
Passed MSV filter: 21203 (0.0580589); expected 7304.0 (0.02)
Passed bias filter: 5935 (0.0162515); expected 7304.0 (0.02)
Passed Vit filter: 554 (0.00151699); expected 365.2 (0.001)
Passed Fwd filter: 38 (0.000104053); expected 3.7 (1e-05)
Initial search space (Z): 365198 [actual number of targets]
Domain search space (domZ): 36 [number of targets reported over threshold]
# CPU time: 2.06u 0.10s 00:00:02.16 Elapsed: 00:00:00.79
# Mc/sec: 34293.84
//
# Alignment of 36 hits satisfying inclusion thresholds saved to: phmmerAlignment_af2.log
[ok]
""" | twouvo_seq = 'ERCGEQGSNMECPNNLCCSQYGYCGMGGDYCGKGCQNGACWTSKRCGSQAGGATCTNNQCCSQYGYCGFGAEYCGAGCQGGPCRADIKCGSQAGGKLCPNNLCCSQWGFCGLGSEFCGGGCQSGACSTDKPCGKDAGGRVCTNNYCCSKWGSCGIGPGYCGAGCQSGGCDG'
fivehxg_seq = 'MRYFFMAEPIRAMEGDLLGVEIITHFASSPARPLHPEFVISSWDNSQKRRFLLDLLRTIAAKHGWFLRHGLFCIVNIDRGMAQLVLQDKDIRALLHAMLFVELQVAEHFSCQDNVLVDPLIHALHKQPNPLWLGDLGVGNATAAPLVCGCFSGVKLDRSFFVSQIEKMTFPLLVKHIRHYCDKIVVGGQENARYLPALKTAGIWATQGTLFPSVALEEIETLLLGSRMNTLRESNMGTMHTSELLKHIYDINLSYLLLAQRLIVQDKASAMFRLGINEEMANTLGALSLPQMVKLAETNQLVCHFRFDDHQTITRLTQDSRVDDLQQIHTGIMLSTRLLNEVDDTARKKRA'
phmmer_log_txt = '# phmmer :: search a protein sequence against a protein database\n# HMMER 3.1b1 (May 2013); http://hmmer.org/\n# Copyright (C) 2013 Howard Hughes Medical Institute.\n# Freely distributed under the GNU General Public License (GPLv3).\n# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n# query sequence file: ../data/2uvoA.fasta\n# target sequence database: /opt/ccp4/ccp4-7.0/share/mrbump/data/pdb95.txt\n# MSA of hits saved to file: phmmerAlignment.log\n# per-seq hits tabular output: phmmerTblout.log\n# per-dom hits tabular output: phmmerDomTblout.log\n# max ASCII text line length: unlimited\n# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\nQuery: 2UVO:A|PDBID|CHAIN|SEQUENCE [L=171]\nScores for complete sequences (score includes all domains):\n --- full sequence --- --- best 1 domain --- -#dom-\n E-value score bias E-value score bias exp N Sequence Description\n ------- ------ ----- ------- ------ ----- ---- -- -------- -----------\n 6.8e-105 351.3 93.4 7.6e-105 351.2 93.4 1.0 1 2x3t_C \n 2.1e-26 94.8 53.8 5.2e-26 93.5 53.8 1.5 1 1ulk_B \n 1.2e-18 69.4 33.2 1.3e-18 69.3 33.2 1.0 1 1ulm_B \n 7.1e-12 47.3 10.8 7.1e-12 47.3 10.8 1.0 1 4wp4_A \n 1.3e-11 46.4 37.0 1.5e-11 46.2 37.0 1.1 1 1eis_A \n 5.6e-11 44.4 36.1 6.3e-11 44.2 36.1 1.1 1 1iqb_B \n 7e-09 37.5 16.2 7.4e-09 37.4 16.2 1.0 1 4mpi_A \n 4.9e-08 34.7 13.5 5e-08 34.7 13.5 1.0 1 5wuz_A \n 1.1e-07 33.6 17.2 1.1e-07 33.6 17.2 1.0 1 5xdi_A \n 1.8e-06 29.7 20.9 1.8e-06 29.6 20.9 1.0 1 2lb7_A \n 6.5e-06 27.8 7.2 6.5e-06 27.8 7.2 1.0 1 1zuv_A \n 2.3e-05 26.0 8.1 2.3e-05 26.0 8.1 1.0 1 1mmc_A \n 0.0022 19.5 12.6 0.003 19.1 12.6 1.3 1 2kus_A \n 0.0039 18.7 11.7 0.0039 18.7 11.7 1.1 1 2n1s_A \n ------ inclusion threshold ------\n 0.023 16.2 18.7 0.023 16.2 18.7 1.1 1 1p9z_A \n\n\nDomain annotation for each sequence (and alignments):\n>> 2x3t_C \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 351.2 93.4 2.4e-108 7.6e-105 2 170 .. 1 166 [] 1 166 [] 1.00\n\n Alignments for each domain:\n == domain 1 score: 351.2 bits; conditional E-value: 2.4e-108\n 2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgycgagcqsggcd 170\n rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgyc cqsggcd\n 2x3t_C 1 RCGEQGSNMECPNNLCCSQYGYCGMGGDYCGKGCQNGACWTSKRCGSQAGGATCTNNQCCSQYGYCGFGAEYCGAGCQGGPCRADIKCGSQAGGKLCPNNLCCSQWGFCGLGSEFCGGGCQSGACSTDKPCGKDAGGRVCTNNYCCSKWGSCGIGPGYC---CQSGGCD 166\n 8**************************************************************************************************************************************************************...******9 PP\n\n>> 1ulk_B \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 93.5 53.8 1.6e-29 5.2e-26 46 166 .. 4 120 .. 1 124 [. 0.54\n\n Alignments for each domain:\n == domain 1 score: 93.5 bits; conditional E-value: 1.6e-29\n 2UVO:A|PDBID|CHAIN|SEQUENCE 46 cgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgycgagcqs 166\n cg +a+g c + ccsq+gycg eycg gcq+ c + +cg + ggk c + lccsq+g+cg + cg gcqs cs cgkd ggr+ct + ccs++g cg+ +c gcqs\n 1ulk_B 4 CGVRASGRVCPDGYCCSQWGYCGTTEEYCGKGCQS-QCDYN-RCGKEFGGKECHDELCCSQYGWCGNSDGHCGEGCQS-QCSYW-RCGKDFGGRLCTEDMCCSQYGWCGLTDDHCEDGCQS 120\n 55556666666666666666666666666666654.34432.566666666666666666666666555566666655.35443.366666666666666666666666666666666655 PP\n\n>> 1ulm_B \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 69.3 33.2 4.1e-22 1.3e-18 88 169 .. 3 81 .. 1 82 [] 0.88\n\n Alignments for each domain:\n == domain 1 score: 69.3 bits; conditional E-value: 4.1e-22\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgycgagcqsggc 169\n +cg +a+gk cpn ccsqwg+cg +cg gcqs c cg+d ggr+c + ccsk+g cg + +c gcqs c\n 1ulm_B 3 ECGERASGKRCPNGKCCSQWGYCGTTDNYCGQGCQSQ-CDY-WRCGRDFGGRLCEEDMCCSKYGWCGYSDDHCEDGCQSQ-C 81 \n 6999999999999999999999999999999999985.765.46999999999999999999999999999999999984.5 PP\n\n>> 4wp4_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 47.3 10.8 2.2e-15 7.1e-12 88 124 .. 2 40 .. 1 43 [] 0.87\n\n Alignments for each domain:\n == domain 1 score: 47.3 bits; conditional E-value: 2.2e-15\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgg..gcqsg 124\n +cg qaggklcpnnlccsqwg+cg e+c+ +cqs+\n 4wp4_A 2 QCGRQAGGKLCPNNLCCSQWGWCGSTDEYCSPdhNCQSN 40 \n 6*****************************852268875 PP\n\n>> 1eis_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 46.2 37.0 4.7e-15 1.5e-11 2 79 .. 1 82 [. 1 85 [] 0.76\n\n Alignments for each domain:\n == domain 1 score: 46.2 bits; conditional E-value: 4.7e-15\n 2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtsk....rcgsqaggatctnnqccsqygycgfgaeycgag.cq 79\n rcg qg cp ccs +g+cg + ycg+ c+n cw+ + rcg+ g+ c ++ccs +g+cg g +yc+ g cq\n 1eis_A 1 RCGSQGGGSTCPGLRCCSIWGWCGDSEPYCGRTCEN-KCWSGErsdhRCGAAVGNPPCGQDRCCSVHGWCGGGNDYCSGGnCQ 82\n 788888888888888888888888888888888887.5887542223688888888888888888888888888888554255 PP\n\n>> 1iqb_B \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 44.2 36.1 2e-14 6.3e-11 2 79 .. 1 82 [. 1 88 [] 0.82\n\n Alignments for each domain:\n == domain 1 score: 44.2 bits; conditional E-value: 2e-14\n 2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtsk....rcgsqaggatctnnqccsqygycgfgaeyc.gagcq 79\n rcg qg cp ccs +g+cg + ycg+ c+n cw+ + rcg+ g+ c ++ccs +g+cg g +yc g+ cq\n 1iqb_B 1 RCGSQGGGGTCPALWCCSIWGWCGDSEPYCGRTCEN-KCWSGErsdhRCGAAVGNPPCGQDRCCSVHGWCGGGNDYCsGSKCQ 82\n 899999999999999999999999999999999998.6997652223799999999999999999999999999999445566 PP\n\n>> 4mpi_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 37.4 16.2 2.3e-12 7.4e-09 88 124 .. 3 39 .. 1 43 [. 0.79\n\n Alignments for each domain:\n == domain 1 score: 37.4 bits; conditional E-value: 2.3e-12\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsg 124\n +cg qagg lcp lccsq+g+c+ e+cg+gcqs \n 4mpi_A 3 QCGRQAGGALCPGGLCCSQYGWCANTPEYCGSGCQSQ 39 \n 5888888888888888888888888888888888874 PP\n\n>> 5wuz_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 34.7 13.5 1.6e-11 5e-08 88 124 .. 2 40 .. 1 43 [] 0.70\n\n Alignments for each domain:\n == domain 1 score: 34.7 bits; conditional E-value: 1.6e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcg..ggcqsg 124\n cg qag++ c n lccsq+gfcg se+c+ +gcqs+\n 5wuz_A 2 NCGRQAGNRACANQLCCSQYGFCGSTSEYCSraNGCQSN 40 \n 478888888888888888888888888888533577775 PP\n\n>> 5xdi_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 33.6 17.2 3.5e-11 1.1e-07 45 79 .. 2 37 .. 1 40 [] 0.88\n\n Alignments for each domain:\n == domain 1 score: 33.6 bits; conditional E-value: 3.5e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 45 rcgsqaggatctnnqccsqygycgfgaeycgag.cq 79\n +cg qagga c+n ccsq+gycg ycgag cq\n 5xdi_A 2 QCGRQAGGARCSNGLCCSQFGYCGSTPPYCGAGqCQ 37\n 69*****************************99555 PP\n\n>> 2lb7_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 29.6 20.9 5.6e-10 1.8e-06 44 84 .. 2 42 .. 1 44 [] 0.64\n\n Alignments for each domain:\n == domain 1 score: 29.6 bits; conditional E-value: 5.6e-10\n 2UVO:A|PDBID|CHAIN|SEQUENCE 44 krcgsqaggatctnnqccsqygycgfgaeycgagcqggpcr 84\n +rcg qa ga c n cc +yg+cg g ycgag + cr\n 2lb7_A 2 QRCGDQARGAKCPNCLCCGKYGFCGSGDAYCGAGSCQSQCR 42\n 56777777777777777777777777777777765445565 PP\n\n>> 1zuv_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 27.8 7.2 2.1e-09 6.5e-06 97 118 .. 8 29 .. 1 30 [] 0.60\n\n Alignments for each domain:\n == domain 1 score: 27.8 bits; conditional E-value: 2.1e-09\n 2UVO:A|PDBID|CHAIN|SEQUENCE 97 lcpnnlccsqwgfcglgsefcg 118\n cp+ +ccsqwg+cg g ++cg\n 1zuv_A 8 RCPSGMCCSQWGYCGKGPKYCG 29 \n 3666666666666666666665 PP\n\n>> 1mmc_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 26.0 8.1 7.3e-09 2.3e-05 11 33 .. 8 30 .] 2 30 .] 0.85\n\n Alignments for each domain:\n == domain 1 score: 26.0 bits; conditional E-value: 7.3e-09\n 2UVO:A|PDBID|CHAIN|SEQUENCE 11 ecpnnlccsqygycgmggdycgk 33\n cp+ +ccsq+gycg g ycg+\n 1mmc_A 8 RCPSGMCCSQFGYCGKGPKYCGR 30\n 69999999999999999999996 PP\n\n>> 2kus_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 19.1 12.6 9.4e-07 0.003 45 75 .. 6 34 .. 2 35 .] 0.70\n\n Alignments for each domain:\n == domain 1 score: 19.1 bits; conditional E-value: 9.4e-07\n 2UVO:A|PDBID|CHAIN|SEQUENCE 45 rcgsqaggatctnnqccsqygycgfgaeycg 75\n +cg gg c ccsqygycg g +yc+\n 2kus_A 6 QCGPGWGG--CRGGLCCSQYGYCGSGPKYCA 34\n 56654444..778888888888888888884 PP\n\n>> 2n1s_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 18.7 11.7 1.2e-06 0.0039 11 32 .. 9 30 .] 1 30 [] 0.50\n\n Alignments for each domain:\n == domain 1 score: 18.7 bits; conditional E-value: 1.2e-06\n 2UVO:A|PDBID|CHAIN|SEQUENCE 11 ecpnnlccsqygycgmggdycg 32\n c lccs+ygycg g ycg\n 2n1s_A 9 RCSGGLCCSKYGYCGSGPAYCG 30\n 3555555555555555555554 PP\n\n>> 1p9z_A \n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ? 16.2 18.7 7.1e-06 0.023 53 84 .. 8 39 .. 1 40 [] 0.74\n\n Alignments for each domain:\n == domain 1 score: 16.2 bits; conditional E-value: 7.1e-06\n 2UVO:A|PDBID|CHAIN|SEQUENCE 53 atctnnqccsqygycgfgaeycgagcqggpcr 84\n c ccs ygycg ga ycgag cr\n 1p9z_A 8 RPCNAGLCCSIYGYCGSGAAYCGAGNCRCQCR 39\n 46888999999999999999999985555555 PP\n\n\n\nInternal pipeline statistics summary:\n-------------------------------------\nQuery model(s): 1 (171 nodes)\nTarget sequences: 47841 (11034331 residues searched)\nPassed MSV filter: 1970 (0.0411781); expected 956.8 (0.02)\nPassed bias filter: 641 (0.0133985); expected 956.8 (0.02)\nPassed Vit filter: 51 (0.00106603); expected 47.8 (0.001)\nPassed Fwd filter: 15 (0.000313539); expected 0.5 (1e-05)\nInitial search space (Z): 47841 [actual number of targets]\nDomain search space (domZ): 15 [number of targets reported over threshold]\n# CPU time: 0.33u 0.02s 00:00:00.35 Elapsed: 00:00:00.14\n# Mc/sec: 13477.65\n//\n# Alignment of 14 hits satisfying inclusion thresholds saved to: phmmerAlignment.log\n[ok]\n'
phmmer_af_log_txt = '# phmmer :: search a protein sequence against a protein database\n# HMMER 3.2 (June 2018); http://hmmer.org/\n# Copyright (C) 2018 Howard Hughes Medical Institute.\n# Freely distributed under the BSD open source license.\n# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n# query sequence file: /Users/adamsimpkin/dev/mrparse_fresh/data/2uvoA.fasta\n# target sequence database: /Users/adamsimpkin/opt/clean/ccp4-7.1/share/mrbump/data/seqAFDB.fasta\n# MSA of hits saved to file: phmmerAlignment_af2.log\n# per-seq hits tabular output: phmmerTblout_af2.log\n# per-dom hits tabular output: phmmerDomTblout_af2.log\n# max ASCII text line length: unlimited\n# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\nQuery: 2UVO:A|PDBID|CHAIN|SEQUENCE [L=171]\nScores for complete sequences (score includes all domains):\n --- full sequence --- --- best 1 domain --- -#dom-\n E-value score bias E-value score bias exp N Sequence Description\n ------- ------ ----- ------- ------ ----- ---- -- -------- -----------\n 5.5e-74 253.2 98.2 7.1e-74 252.8 98.2 1.1 1 AF-Q0JF21-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 18552 : 87298 ] wmpLDDT: 85.88\n 2.8e-11 48.2 10.0 2.8e-11 48.2 10.0 2.2 2 AF-Q7Y1Z1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 31625 : 87298 ] wmpLDDT: 85.53\n 3.9e-10 44.5 16.7 3.9e-10 44.5 16.7 2.8 1 AF-A0A1D6LMS5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 6798 : 78598 ] wmpLDDT: 86.46\n 1.1e-09 43.0 15.2 1.1e-09 43.0 15.2 2.4 2 AF-Q7DNA1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 5638 : 87298 ] wmpLDDT: 89.91\n 3.5e-09 41.4 10.5 3.5e-09 41.4 10.5 3.0 3 AF-Q9SDY6-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27683 : 111598 ] wmpLDDT: 90.55\n 1.1e-08 39.8 8.0 1.1e-08 39.8 8.0 1.7 2 AF-C6T7J9-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 21501 : 111598 ] wmpLDDT: 88.34\n 2e-08 38.9 10.9 2e-08 38.9 10.9 2.7 2 AF-I1MMY2-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 14149 : 111598 ] wmpLDDT: 90.21\n 3.1e-08 38.3 8.5 3.1e-08 38.3 8.5 2.3 2 AF-Q6K8R2-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 2537 : 87298 ] wmpLDDT: 90.96\n 1.3e-07 36.3 15.4 1.3e-07 36.3 15.4 1.9 1 AF-B6TR38-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 271 : 78598 ] wmpLDDT: 90.07\n 1.5e-07 36.0 10.1 1.5e-07 36.0 10.1 2.2 2 AF-B6TT00-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 9220 : 78598 ] wmpLDDT: 91.82\n 1.7e-07 35.9 22.6 1.7e-07 35.9 22.6 2.7 2 AF-Q42993-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 13417 : 87298 ] wmpLDDT: 90.79\n 2e-07 35.7 21.9 2e-07 35.7 21.9 2.8 1 AF-P25765-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27511 : 87298 ] wmpLDDT: 89.12\n 2.8e-07 35.2 9.6 2.8e-07 35.2 9.6 2.6 3 AF-O24603-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 20429 : 54868 ] wmpLDDT: 89.88\n 3e-07 35.1 14.9 3e-07 35.1 14.9 2.0 2 AF-P43082-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 17725 : 54868 ] wmpLDDT: 84.90\n 4.6e-07 34.5 19.1 4.6e-07 34.5 19.1 2.5 1 AF-A0A1D6LMS1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 11432 : 78598 ] wmpLDDT: 90.27\n 4.9e-07 34.4 17.6 4.9e-07 34.4 17.6 2.4 2 AF-A0A1D6GWN3-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 28572 : 78598 ] wmpLDDT: 80.40\n 5.1e-07 34.3 12.1 5.1e-07 34.3 12.1 2.0 2 AF-O24598-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 5613 : 54868 ] wmpLDDT: 90.40\n 5.4e-07 34.2 8.6 5.4e-07 34.2 8.6 1.9 2 AF-Q9M2U5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 20516 : 54868 ] wmpLDDT: 90.20\n 6.9e-07 33.9 11.4 6.9e-07 33.9 11.4 1.9 2 AF-I1M587-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 50466 : 111598 ] wmpLDDT: 89.46\n 2e-06 32.4 10.9 2e-06 32.4 10.9 2.0 2 AF-O22841-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 17814 : 54868 ] wmpLDDT: 89.08\n 2.3e-06 32.2 13.0 2.3e-06 32.2 13.0 1.9 1 AF-O22842-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 23646 : 54868 ] wmpLDDT: 88.79\n 3.6e-06 31.5 11.0 3.6e-06 31.5 11.0 2.4 2 AF-A0A1D6GWN1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 38497 : 78598 ] wmpLDDT: 88.44\n 5e-06 31.1 27.6 5e-06 31.1 27.6 2.7 1 AF-P24626-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 23336 : 87298 ] wmpLDDT: 90.83\n 6.3e-06 30.8 14.1 6.3e-06 30.8 14.1 2.9 3 AF-O24658-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3457 : 54868 ] wmpLDDT: 89.68\n 7.8e-06 30.4 17.6 9.7e-06 30.1 17.6 1.2 1 AF-Q0JC38-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 10185 : 87298 ] wmpLDDT: 71.85\n 8.1e-06 30.4 12.2 8.1e-06 30.4 12.2 2.6 2 AF-P19171-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 1685 : 54868 ] wmpLDDT: 89.30\n 1.1e-05 29.9 21.2 2.5e-05 28.8 21.2 1.5 1 AF-A0A1X7YIJ7-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27631 : 78598 ] wmpLDDT: 86.49\n 1.7e-05 29.4 15.2 1.7e-05 29.4 15.2 2.3 2 AF-O04138-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3513 : 87298 ] wmpLDDT: 86.78\n 5.8e-05 27.6 25.6 5.8e-05 27.6 25.6 2.1 2 AF-P29023-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 9277 : 78598 ] wmpLDDT: 88.81\n 0.00012 26.5 24.9 0.00012 26.5 24.9 2.2 3 AF-C0P451-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 32177 : 78598 ] wmpLDDT: 88.36\n 0.00036 25.0 27.8 0.00036 25.0 27.8 1.9 2 AF-I1NCA0-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3766 : 111598 ] wmpLDDT: 85.61\n 0.0013 23.2 0.3 0.0013 23.2 0.3 1.0 1 AF-A0A0P0Y930-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 31777 : 87298 ] wmpLDDT: 74.91\n 0.0014 23.0 7.4 0.0014 23.0 7.4 2.1 2 AF-O24654-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3955 : 54868 ] wmpLDDT: 89.85\n 0.0015 23.0 6.8 0.0015 23.0 6.8 2.2 2 AF-A0A1P8AME8-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 18391 : 54868 ] wmpLDDT: 84.04\n 0.0023 22.4 33.5 0.0023 22.4 33.5 2.5 2 AF-Q688M5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 37002 : 87298 ] wmpLDDT: 88.47\n 0.0023 22.4 25.4 0.0023 22.4 25.4 1.9 2 AF-I1NCA1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 26281 : 111598 ] wmpLDDT: 88.99\n\n\nDomain annotation for each sequence (and alignments):\n>> AF-Q0JF21-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 18552 : 87298 ] wmpLDDT: 85.88\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 252.8 98.2 7e-78 7.1e-74 2 169 .. 30 197 .. 29 201 .. 0.99\n\n Alignments for each domain:\n == domain 1 score: 252.8 bits; conditional E-value: 7e-78\n 2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdaggrvctnnyccskwgscgigpgycgagcqsggc 169\n cg+q+ m cp+nlccsq+gycg+g dycg gcq+gac +s+rcgsq ggatc+nnqccsqygycgfg+eycg+gcq+gpcradikcg a+g+lcpnn+ccsqwg+cglgsefcg+gcqsgac +k cgk agg c nn+ccs g cg+g +ycg+gcqsggc\n AF-Q0JF21-F1-model_v1 30 TCGKQNDGMICPHNLCCSQFGYCGLGRDYCGTGCQSGACCSSQRCGSQGGGATCSNNQCCSQYGYCGFGSEYCGSGCQNGPCRADIKCGRNANGELCPNNMCCSQWGYCGLGSEFCGNGCQSGACCPEKRCGKQAGGDKCPNNFCCSAGGYCGLGGNYCGSGCQSGGC 197\n 6*********************************************************************************************************************************************************************** PP\n\n>> AF-Q7Y1Z1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 31625 : 87298 ] wmpLDDT: 85.53\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 48.2 10.0 2.8e-15 2.8e-11 83 136 .. 30 81 .. 20 97 .. 0.86\n 2 ? -2.2 1.0 7.6 7.7e+04 34 53 .. 179 198 .. 159 230 .. 0.48\n\n Alignments for each domain:\n == domain 1 score: 48.2 bits; conditional E-value: 2.8e-15\n 2UVO:A|PDBID|CHAIN|SEQUENCE 83 cradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkda 136\n +ra+ +cg qagg cpn lccs+wg+cgl ++c ggcqs c + g d \n AF-Q7Y1Z1-F1-model_v1 30 ARAE-QCGRQAGGARCPNRLCCSRWGWCGLTDDYCKGGCQS-QCRVSRDGGDDD 81 \n 5555.8**********************************8.588888777764 PP\n\n == domain 2 score: -2.2 bits; conditional E-value: 7.6\n 2UVO:A|PDBID|CHAIN|SEQUENCE 34 gcqngacwtskrcgsqagga 53 \n g+ + c + r g a\n AF-Q7Y1Z1-F1-model_v1 179 GATSDFCVPNARWPCAPGKA 198\n 33333333333333333333 PP\n\n>> AF-A0A1D6LMS5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 6798 : 78598 ] wmpLDDT: 86.46\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 44.5 16.7 3.9e-14 3.9e-10 82 127 .. 20 67 .. 12 82 .. 0.80\n\n Alignments for each domain:\n == domain 1 score: 44.5 bits; conditional E-value: 3.9e-14\n 2UVO:A|PDBID|CHAIN|SEQUENCE 82 pcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqs...gacs 127\n p+ra+ +cgsqagg lcpn lccsq+g+cg s++cg+gcqs g+c \n AF-A0A1D6LMS5-F1-model_v1 20 PARAE-QCGSQAGGALCPNCLCCSQFGWCGSTSDYCGSGCQSqcsGSCG 67 \n 88887.8**********************************72225553 PP\n\n>> AF-Q7DNA1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 5638 : 87298 ] wmpLDDT: 89.91\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 43.0 15.2 1.1e-13 1.1e-09 84 128 .. 31 73 .. 20 91 .. 0.85\n 2 ? -1.4 1.3 4.1 4.2e+04 52 78 .. 288 314 .. 269 331 .. 0.66\n\n Alignments for each domain:\n == domain 1 score: 43.0 bits; conditional E-value: 1.1e-13\n 2UVO:A|PDBID|CHAIN|SEQUENCE 84 radikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacst 128\n ra+ +cg+qagg cpn lccs+wg+cg s+fcg gcqs cs \n AF-Q7DNA1-F1-model_v1 31 RAE-QCGAQAGGARCPNCLCCSRWGWCGTTSDFCGDGCQSQ-CSG 73 \n 555.8**********************************85.543 PP\n\n == domain 2 score: -1.4 bits; conditional E-value: 4.1\n 2UVO:A|PDBID|CHAIN|SEQUENCE 52 gatctnnqccsqygycgfgaeycgagc 78 \n g c + + gf ycga \n AF-Q7DNA1-F1-model_v1 288 GLECGHGPDDRVANRIGFYQRYCGAFG 314\n 444544444444555667777777643 PP\n\n>> AF-Q9SDY6-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27683 : 111598 ] wmpLDDT: 90.55\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 41.4 10.5 3.4e-13 3.5e-09 88 129 .. 25 65 .. 19 87 .. 0.75\n 2 ? -2.2 5.4 7.3 7.4e+04 49 86 .. 159 185 .. 121 211 .. 0.61\n 3 ? -2.3 0.2 8.2 8.3e+04 51 58 .. 277 284 .. 251 315 .. 0.61\n\n Alignments for each domain:\n == domain 1 score: 41.4 bits; conditional E-value: 3.4e-13\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstd 129\n +cg+qagg lcpn lccs++g+cg +cg gcqs s \n AF-Q9SDY6-F1-model_v1 25 QCGTQAGGALCPNRLCCSKFGWCGDTDSYCGEGCQSQCKS-A 65 \n 7999999999999999999999999999999999985322.2 PP\n\n == domain 2 score: -2.2 bits; conditional E-value: 7.3\n 2UVO:A|PDBID|CHAIN|SEQUENCE 49 qaggatctnnqccsqygycgfgaeycgagcqgg..pcrad 86 \n a +gyc ++ + + c gg pc a \n AF-Q9SDY6-F1-model_v1 159 YA-------------WGYCFINEQNQATYCDGGnwPCAAG 185\n 33.............3444444444444444433334333 PP\n\n == domain 3 score: -2.3 bits; conditional E-value: 8.2\n 2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnn 58 \n gg c + \n AF-Q9SDY6-F1-model_v1 277 GGLECGHG 284\n 33333333 PP\n\n>> AF-C6T7J9-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 21501 : 111598 ] wmpLDDT: 88.34\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 39.8 8.0 1.1e-12 1.1e-08 7 44 .. 34 71 .. 29 88 .. 0.87\n 2 ? -2.0 0.3 6.3 6.4e+04 29 42 .. 159 172 .. 146 194 .. 0.59\n\n Alignments for each domain:\n == domain 1 score: 39.8 bits; conditional E-value: 1.1e-12\n 2UVO:A|PDBID|CHAIN|SEQUENCE 7 gsnmecpnnlccsqygycgmggdycgkgcqngacwtsk 44\n + n c lccs+ygycg g dycgkgc+ g c+ + \n AF-C6T7J9-F1-model_v1 34 AQNCGCEAELCCSKYGYCGSGDDYCGKGCKEGPCYGTA 71\n 57899*****************************9764 PP\n\n == domain 2 score: -2.0 bits; conditional E-value: 6.3\n 2UVO:A|PDBID|CHAIN|SEQUENCE 29 dycgkgcqngacwt 42 \n dyc k ++ c \n AF-C6T7J9-F1-model_v1 159 DYCDKTNRHYPCAH 172\n 44444333333322 PP\n\n>> AF-I1MMY2-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 14149 : 111598 ] wmpLDDT: 90.21\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 38.9 10.9 2e-12 2e-08 87 138 .. 24 75 .. 18 89 .. 0.76\n 2 ? 0.7 1.0 0.94 9.5e+03 107 127 .. 158 178 .. 117 204 .. 0.67\n\n Alignments for each domain:\n == domain 1 score: 38.9 bits; conditional E-value: 2e-12\n 2UVO:A|PDBID|CHAIN|SEQUENCE 87 ikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdagg 138\n cg+q gg +cpn lccsq+g+cg cg gcqs p +g\n AF-I1MMY2-F1-model_v1 24 QNCGTQVGGVICPNGLCCSQYGWCGNTEAHCGRGCQSQCTPGSTPTPTTPSG 75 \n 47************************999*******9866555555443333 PP\n\n == domain 2 score: 0.7 bits; conditional E-value: 0.94\n 2UVO:A|PDBID|CHAIN|SEQUENCE 107 wgfcglgsefcgggcqsgacs 127\n wg+c ++ + c sg \n AF-I1MMY2-F1-model_v1 158 WGYCFINERNQADYCTSGTRW 178\n 555555555444555544322 PP\n\n>> AF-Q6K8R2-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 2537 : 87298 ] wmpLDDT: 90.96\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 38.3 8.5 3e-12 3.1e-08 51 85 .. 26 60 .. 15 78 .. 0.73\n 2 ? -0.0 0.5 1.6 1.6e+04 144 163 .. 148 169 .. 140 194 .. 0.73\n\n Alignments for each domain:\n == domain 1 score: 38.3 bits; conditional E-value: 3e-12\n 2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnnqccsqygycgfgaeycgagcqggpcra 85\n + c ++qccs++g+cg g++ycg gcq+gpc \n AF-Q6K8R2-F1-model_v1 26 QSCGCASDQCCSKWGFCGTGSDYCGTGCQAGPCDV 60\n 34557888888888888888888888888888854 PP\n\n == domain 2 score: -0.0 bits; conditional E-value: 1.6\n 2UVO:A|PDBID|CHAIN|SEQUENCE 144 nyc..cskwgscgigpgycgag 163\n nyc s c g gy g g\n AF-Q6K8R2-F1-model_v1 148 NYCdeTSTQWPCMAGKGYYGRG 169\n 6663322333577788887776 PP\n\n>> AF-B6TR38-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 271 : 78598 ] wmpLDDT: 90.07\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 36.3 15.4 1.2e-11 1.3e-07 43 84 .. 31 71 .. 23 89 .. 0.80\n\n Alignments for each domain:\n == domain 1 score: 36.3 bits; conditional E-value: 1.2e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 43 skrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcr 84\n ++cg qaggatc + ccs++g+cg +eycgagcq+ c \n AF-B6TR38-F1-model_v1 31 GQQCGQQAGGATCRDCLCCSRFGFCGDTSEYCGAGCQS-QCT 71\n 57899999999999999999999999999999999996.343 PP\n\n>> AF-B6TT00-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 9220 : 78598 ] wmpLDDT: 91.82\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 36.0 10.1 1.5e-11 1.5e-07 51 84 .. 26 59 .. 19 74 .. 0.64\n 2 ? 0.3 0.3 1.3 1.3e+04 143 163 .. 147 169 .. 99 192 .. 0.81\n\n Alignments for each domain:\n == domain 1 score: 36.0 bits; conditional E-value: 1.5e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnnqccsqygycgfgaeycgagcqggpcr 84\n + c + ccs++gycg g +ycgagcq+gpc \n AF-B6TT00-F1-model_v1 26 QNCGCASGLCCSRFGYCGTGEDYCGAGCQSGPCD 59\n 3445666666666666666666666666666664 PP\n\n == domain 2 score: 0.3 bits; conditional E-value: 1.3\n 2UVO:A|PDBID|CHAIN|SEQUENCE 143 nnycc...skwgscgigpgycgag 163\n nyc ++w c g gy g g\n AF-B6TT00-F1-model_v1 147 KNYCDrnnTQW-PCQAGKGYYGRG 169\n 45554211344.577777777766 PP\n\n>> AF-Q42993-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 13417 : 87298 ] wmpLDDT: 90.79\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 35.9 22.6 1.7e-11 1.7e-07 88 138 .. 22 75 .. 16 83 .. 0.82\n 2 ? 0.8 1.3 0.88 9e+03 143 158 .. 173 189 .. 142 221 .. 0.57\n\n Alignments for each domain:\n == domain 1 score: 35.9 bits; conditional E-value: 1.7e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqs...gacstdkpcgkdagg 138\n +cgsqagg lcpn lccsq+g+cg s +cg+gcqs g+c p gg\n AF-Q42993-F1-model_v1 22 QCGSQAGGALCPNCLCCSQYGWCGSTSAYCGSGCQSqcsGSCGGGGPTPPSGGG 75 \n 7*********************************96333777777666655555 PP\n\n == domain 2 score: 0.8 bits; conditional E-value: 0.88\n 2UVO:A|PDBID|CHAIN|SEQUENCE 143 nnycc..skwgscgigpg 158\n ++yc s+w c+ g \n AF-Q42993-F1-model_v1 173 SDYCVqsSQW-PCAAGKK 189\n 2222111112.2223333 PP\n\n>> AF-P25765-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27511 : 87298 ] wmpLDDT: 89.12\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 35.7 21.9 2e-11 2e-07 88 133 .. 23 66 .. 15 82 .. 0.59\n\n Alignments for each domain:\n == domain 1 score: 35.7 bits; conditional E-value: 2e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcg 133\n +cgsqagg +cpn lccsq+g+cg s++cg+gcqs cs cg\n AF-P25765-F1-model_v1 23 QCGSQAGGAVCPNCLCCSQFGWCGSTSDYCGAGCQSQ-CSA-AGCG 66 \n 4666666666666666666666666666666666653.333.1233 PP\n\n>> AF-O24603-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 20429 : 54868 ] wmpLDDT: 89.88\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 35.2 9.6 2.7e-11 2.8e-07 47 91 .. 30 72 .. 23 112 .. 0.78\n 2 ? -0.1 1.0 1.7 1.7e+04 143 164 .. 155 178 .. 137 196 .. 0.60\n 3 ? -2.1 0.1 6.9 7e+04 145 145 .. 259 259 .. 227 273 .. 0.50\n\n Alignments for each domain:\n == domain 1 score: 35.2 bits; conditional E-value: 2.7e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 47 gsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgs 91\n +sq c ++ ccs+ygycg e+cg gcq+gpcr+ g \n AF-O24603-F1-model_v1 30 ASQN--CGCASDFCCSKYGYCGTTDEFCGEGCQAGPCRSSGGGGD 72\n 5554..458999999999999999999999999999998765554 PP\n\n == domain 2 score: -0.1 bits; conditional E-value: 1.7\n 2UVO:A|PDBID|CHAIN|SEQUENCE 143 nnyccskw..gscgigpgycgagc 164\n yc ++ c+ g gy g g+\n AF-O24603-F1-model_v1 155 GEYCDTEKpeFPCAQGKGYYGRGA 178\n 444433320123555555555543 PP\n\n == domain 3 score: -2.1 bits; conditional E-value: 6.9\n 2UVO:A|PDBID|CHAIN|SEQUENCE 145 y 145\n y\n AF-O24603-F1-model_v1 259 Y 259\n 1 PP\n\n>> AF-P43082-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 17725 : 54868 ] wmpLDDT: 84.90\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 35.1 14.9 2.9e-11 3e-07 2 48 .. 23 70 .. 22 88 .. 0.80\n 2 ? -2.5 2.7 9.2 9.4e+04 23 51 .. 120 146 .. 105 207 .. 0.61\n\n Alignments for each domain:\n == domain 1 score: 35.1 bits; conditional E-value: 2.9e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycg..kgcqngacwtskrcgs 48\n +cg qg cp n+ccsqygycg +dyc+ +cq+ cw s g \n AF-P43082-F1-model_v1 23 QCGRQGGGRTCPGNICCSQYGYCGTTADYCSptNNCQS-NCWGSGPSGP 70\n 8*****************************83357987.59*9876654 PP\n\n == domain 2 score: -2.5 bits; conditional E-value: 9.2\n 2UVO:A|PDBID|CHAIN|SEQUENCE 23 ycgmggdycgkgcqngacwtskrcgsqag 51 \n +cg +g +c g c k+ + a+\n AF-P43082-F1-model_v1 120 FCGPAGPRGQASC--GKCLRVKNTRTNAA 146\n 2333333222222..45555555444444 PP\n\n>> AF-A0A1D6LMS1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 11432 : 78598 ] wmpLDDT: 90.27\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 34.5 19.1 4.5e-11 4.6e-07 88 135 .. 27 72 .. 20 81 .. 0.83\n\n Alignments for each domain:\n == domain 1 score: 34.5 bits; conditional E-value: 4.5e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkd 135\n +cg+qagg lcp+ lccsqwg+cg ++c gcqs cg \n AF-A0A1D6LMS1-F1-model_v1 27 QCGTQAGGALCPDCLCCSQWGYCGSTPDYCTDGCQSQCFG--SGCGGG 72 \n 7**********************************97544..457754 PP\n\n>> AF-A0A1D6GWN3-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 28572 : 78598 ] wmpLDDT: 80.40\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 34.4 17.6 4.8e-11 4.9e-07 87 124 .. 22 59 .. 12 69 .. 0.88\n 2 ? -0.8 1.5 2.8 2.9e+04 22 37 .. 171 186 .. 136 199 .. 0.57\n\n Alignments for each domain:\n == domain 1 score: 34.4 bits; conditional E-value: 4.8e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 87 ikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsg 124\n +cg a gklcp+ lccs+wg+cg s++cg gcqs \n AF-A0A1D6GWN3-F1-model_v1 22 AQCGDGADGKLCPDCLCCSKWGYCGSTSDYCGDGCQSQ 59 \n 58**********************************95 PP\n\n == domain 2 score: -0.8 bits; conditional E-value: 2.8\n 2UVO:A|PDBID|CHAIN|SEQUENCE 22 gycgmggdycgkgcqn 37 \n yc m g+y+ c \n AF-A0A1D6GWN3-F1-model_v1 171 DYCDMTGEYAQWPCVA 186\n 3444444444333333 PP\n\n>> AF-O24598-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 5613 : 54868 ] wmpLDDT: 90.40\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 34.3 12.1 5e-11 5.1e-07 9 90 .. 26 61 .. 20 98 .. 0.53\n 2 ? -1.8 0.2 5.6 5.7e+04 25 33 .. 246 254 .. 225 264 .. 0.51\n\n Alignments for each domain:\n == domain 1 score: 34.3 bits; conditional E-value: 5e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 9 nmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcg 90\n n + c n ccsq+gycg a+ycg+ cq+gpcr g\n AF-O24598-F1-model_v1 26 NCD-------------------------------------------CAPNLCCSQFGYCGTTADYCGSTCQSGPCRVG---G 61\n 444...........................................55555555555555555555555555555542...2 PP\n\n == domain 2 score: -1.8 bits; conditional E-value: 5.6\n 2UVO:A|PDBID|CHAIN|SEQUENCE 25 gmggdycgk 33 \n g dycg+\n AF-O24598-F1-model_v1 246 GYYRDYCGQ 254\n 333344443 PP\n\n>> AF-Q9M2U5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 20516 : 54868 ] wmpLDDT: 90.20\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 34.2 8.6 5.3e-11 5.4e-07 8 43 .. 29 64 .. 24 103 .. 0.70\n 2 ? -1.7 0.4 5.4 5.5e+04 34 83 .. 157 163 .. 137 193 .. 0.59\n\n Alignments for each domain:\n == domain 1 score: 34.2 bits; conditional E-value: 5.3e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 8 snmecpnnlccsqygycgmggdycgkgcqngacwts 43\n n c + lccsq+g+cg +dycg gcq g c+ \n AF-Q9M2U5-F1-model_v1 29 QNCGCSSELCCSQFGFCGNTSDYCGVGCQQGPCFAP 64\n 455666666666666666666666666666666654 PP\n\n == domain 2 score: -1.7 bits; conditional E-value: 5.4\n 2UVO:A|PDBID|CHAIN|SEQUENCE 34 gcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpc 83 \n ++ pc\n AF-Q9M2U5-F1-model_v1 157 NA-------------------------------------------TQYPC 163\n 22...........................................22222 PP\n\n>> AF-I1M587-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 50466 : 111598 ] wmpLDDT: 89.46\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 33.9 11.4 6.8e-11 6.9e-07 8 46 .. 28 66 .. 23 94 .. 0.77\n 2 ? -1.4 0.3 4.3 4.4e+04 57 70 .. 161 174 .. 137 195 .. 0.67\n\n Alignments for each domain:\n == domain 1 score: 33.9 bits; conditional E-value: 6.8e-11\n 2UVO:A|PDBID|CHAIN|SEQUENCE 8 snmecpnnlccsqygycgmggdycgkgcqngacwtskrc 46\n n c lccsq+gycg g +ycg gc+ g c++s \n AF-I1M587-F1-model_v1 28 QNCGCAEGLCCSQHGYCGNGEEYCGTGCKQGPCYSSTPS 66\n 577788888888888888888888888888888887655 PP\n\n == domain 2 score: -1.4 bits; conditional E-value: 4.3\n 2UVO:A|PDBID|CHAIN|SEQUENCE 57 nnqccsqygycgfg 70 \n c s gy g g\n AF-I1M587-F1-model_v1 161 QYPCLSNRGYYGRG 174\n 33444445554444 PP\n\n>> AF-O22841-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 17814 : 54868 ] wmpLDDT: 89.08\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 32.4 10.9 2e-10 2e-06 48 86 .. 29 67 .. 21 86 .. 0.76\n 2 ? -2.0 0.8 6.4 6.5e+04 20 34 .. 169 184 .. 152 198 .. 0.66\n\n Alignments for each domain:\n == domain 1 score: 32.4 bits; conditional E-value: 2e-10\n 2UVO:A|PDBID|CHAIN|SEQUENCE 48 sqaggatctnnqccsqygycgfgaeycgagcqggpcrad 86\n q g c n ccs+ygycg ycg gc++gpc + \n AF-O22841-F1-model_v1 29 QQCGTTGCAANLCCSRYGYCGTTDAYCGTGCRSGPCSSS 67\n 345556688888888888888888888888888888754 PP\n\n == domain 2 score: -2.0 bits; conditional E-value: 6.4\n 2UVO:A|PDBID|CHAIN|SEQUENCE 20 qygy.cgmggdycgkg 34 \n +y c g dy g+g\n AF-O22841-F1-model_v1 169 STAYpCTPGKDYYGRG 184\n 3333366666777666 PP\n\n>> AF-O22842-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 23646 : 54868 ] wmpLDDT: 88.79\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 32.2 13.0 2.3e-10 2.3e-06 93 128 .. 31 66 .. 21 90 .. 0.59\n\n Alignments for each domain:\n == domain 1 score: 32.2 bits; conditional E-value: 2.3e-10\n 2UVO:A|PDBID|CHAIN|SEQUENCE 93 aggklcpnnlccsqwgfcglgsefcgggcqsgacst 128\n g c n+ccs+wg+cg +cg gcqsg c++\n AF-O22842-F1-model_v1 31 CGTNGCKGNMCCSRWGYCGTTKAYCGTGCQSGPCNS 66 \n 333445555555555555555555555555555543 PP\n\n>> AF-A0A1D6GWN1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 38497 : 78598 ] wmpLDDT: 88.44\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 31.5 11.0 3.6e-10 3.6e-06 87 124 .. 27 64 .. 15 74 .. 0.87\n 2 ? -1.1 0.3 3.4 3.4e+04 129 168 .. 225 236 .. 202 271 .. 0.69\n\n Alignments for each domain:\n == domain 1 score: 31.5 bits; conditional E-value: 3.6e-10\n 2UVO:A|PDBID|CHAIN|SEQUENCE 87 ikcgsqaggklcpnnlccsqwgfcglgsefcgggcqsg 124\n +cg+ + lcp lccs+wgfcg +cg+gcqs \n AF-A0A1D6GWN1-F1-model_v1 27 PQCGANSTTALCPYCLCCSKWGFCGSTEAYCGNGCQSQ 64 \n 47**********************************95 PP\n\n == domain 2 score: -1.1 bits; conditional E-value: 3.4\n 2UVO:A|PDBID|CHAIN|SEQUENCE 129 dkpcgkdaggrvctnnyccskwgscgigpgycgagcqsgg 168\n d c g g +gg\n AF-A0A1D6GWN1-F1-model_v1 225 DAEC----------------------------GRGPDAGG 236\n 3333............................22222222 PP\n\n>> AF-P24626-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 23336 : 87298 ] wmpLDDT: 90.83\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 31.1 27.6 5e-10 5e-06 88 127 .. 20 62 .. 14 81 .. 0.74\n\n Alignments for each domain:\n == domain 1 score: 31.1 bits; conditional E-value: 5e-10\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqs...gacs 127\n +cgsqagg lcpn lccsq+g+cg s++cg+gcqs g c \n AF-P24626-F1-model_v1 20 QCGSQAGGALCPNCLCCSQYGWCGSTSDYCGAGCQSqcsGGCG 62 \n 6999999999999999999999999999999999862224443 PP\n\n>> AF-O24658-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3457 : 54868 ] wmpLDDT: 89.68\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 30.8 14.1 6.2e-10 6.3e-06 53 97 .. 27 68 .. 17 97 .. 0.67\n 2 ? 0.5 1.6 1.1 1.1e+04 141 163 .. 141 165 .. 135 183 .. 0.73\n 3 ? -1.0 0.6 3.1 3.1e+04 54 76 .. 231 253 .. 223 263 .. 0.52\n\n Alignments for each domain:\n == domain 1 score: 30.8 bits; conditional E-value: 6.2e-10\n 2UVO:A|PDBID|CHAIN|SEQUENCE 53 atctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggkl 97\n c n ccsq+gycg ycg gc++gpcr g+ gg +\n AF-O24658-F1-model_v1 27 CGCAPNLCCSQFGYCGTDDAYCGVGCRSGPCRGS---GTPTGGSV 68\n 4577888888888888888888888888888864...44444443 PP\n\n == domain 2 score: 0.5 bits; conditional E-value: 1.1\n 2UVO:A|PDBID|CHAIN|SEQUENCE 141 ctnnyccsk..wgscgigpgycgag 163\n +t nyc s c+ g gy g g\n AF-O24658-F1-model_v1 141 ATRNYCQSSntQYPCAPGKGYFGRG 165\n 5778887651134688888888876 PP\n\n == domain 3 score: -1.0 bits; conditional E-value: 3.1\n 2UVO:A|PDBID|CHAIN|SEQUENCE 54 tctnnqccsqygycgfgaeycga 76 \n c + + g+ +ycg \n AF-O24658-F1-model_v1 231 ECNGGNSGAVNARIGYYRDYCGQ 253\n 44444444444445555555553 PP\n\n>> AF-Q0JC38-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 10185 : 87298 ] wmpLDDT: 71.85\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 30.1 17.6 9.6e-10 9.7e-06 8 47 .. 28 65 .. 22 82 .. 0.80\n\n Alignments for each domain:\n == domain 1 score: 30.1 bits; conditional E-value: 9.6e-10\n 2UVO:A|PDBID|CHAIN|SEQUENCE 8 snmecpnnlccsqygycgmggdycgkgcqngacwtskrcg 47\n n c + ccsq+gycg ycg+gcq+g cw s g\n AF-Q0JC38-F1-model_v1 28 QNCGCQDGYCCSQWGYCGTTEAYCGQGCQSGPCWGSG--G 65\n 6888999999999999999999999999999999874..2 PP\n\n>> AF-P19171-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 1685 : 54868 ] wmpLDDT: 89.30\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 30.4 12.2 8e-10 8.1e-06 88 133 .. 35 81 .. 30 96 .. 0.80\n 2 ? -2.6 0.7 9.6 9.7e+04 130 142 .. 286 298 .. 268 321 .. 0.58\n\n Alignments for each domain:\n == domain 1 score: 30.4 bits; conditional E-value: 8e-10\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcg.ggcqsgacstdkpcg 133\n +cg qagg lcpn lccs++g+cg +c gcqs p g\n AF-P19171-F1-model_v1 35 QCGRQAGGALCPNGLCCSEFGWCGNTEPYCKqPGCQSQCTPGGTPPG 81 \n 7*****************************6369*997666666665 PP\n\n == domain 2 score: -2.6 bits; conditional E-value: 9.6\n 2UVO:A|PDBID|CHAIN|SEQUENCE 130 kpcgkdaggrvct 142\n cg+ grv+ \n AF-P19171-F1-model_v1 286 LECGRGQDGRVAD 298\n 3444444444443 PP\n\n>> AF-A0A1X7YIJ7-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 27631 : 78598 ] wmpLDDT: 86.49\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 28.8 21.2 2.4e-09 2.5e-05 10 80 .. 34 99 .. 28 104 .. 0.76\n\n Alignments for each domain:\n == domain 1 score: 28.8 bits; conditional E-value: 2.4e-09\n 2UVO:A|PDBID|CHAIN|SEQUENCE 10 mecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqg 80\n c +ccs+ygycg + ycg+gc++g cw s cg gga+ ++ + g+ ++g+ c+g\n AF-A0A1X7YIJ7-F1-model_v1 34 CGCQPGFCCSKYGYCGKTSAYCGEGCKSGPCWGSAGCGG--GGASVARV--VTKSFFNGIK-SHAGSWCEG 99\n 568899*******************************95..77776543..3333344443.456666665 PP\n\n>> AF-O04138-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3513 : 87298 ] wmpLDDT: 86.78\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 29.4 15.2 1.6e-09 1.7e-05 8 44 .. 28 64 .. 22 88 .. 0.82\n 2 ? -0.6 0.4 2.4 2.5e+04 25 45 .. 160 180 .. 146 200 .. 0.70\n\n Alignments for each domain:\n == domain 1 score: 29.4 bits; conditional E-value: 1.6e-09\n 2UVO:A|PDBID|CHAIN|SEQUENCE 8 snmecpnnlccsqygycgmggdycgkgcqngacwtsk 44\n n c + ccsq+gycg ycg+gcq+g cw s \n AF-O04138-F1-model_v1 28 QNCGCQDGYCCSQWGYCGTTEAYCGQGCQSGPCWGSG 64\n 6888999999999999999999999999999999874 PP\n\n == domain 2 score: -0.6 bits; conditional E-value: 2.4\n 2UVO:A|PDBID|CHAIN|SEQUENCE 25 gmggdycgkgcqngacwtskr 45 \n g + dyc k+ + c k+\n AF-O04138-F1-model_v1 160 GANMDYCDKSNKQWPCQPGKK 180\n 555567776666666665554 PP\n\n>> AF-P29023-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 9277 : 78598 ] wmpLDDT: 88.81\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 27.6 25.6 5.7e-09 5.8e-05 9 123 .. 22 91 .. 12 99 .. 0.50\n 2 ? -2.1 0.3 6.8 6.9e+04 153 163 .. 159 169 .. 143 193 .. 0.59\n\n Alignments for each domain:\n == domain 1 score: 27.6 bits; conditional E-value: 5.7e-09\n 2UVO:A|PDBID|CHAIN|SEQUENCE 9 nmecpnnlccsqygycgmggdycgkgcqngacwtskrcgsqaggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqs 123\n n c n+ccs++gycg +ycg gcq+g c r+ g gg ++ s + f g+ ++ +g+gc+ \n AF-P29023-F1-model_v1 22 NCGCQPNVCCSKFGYCGTTDEYCGDGCQSGPC-------------------------------------------RSGRGGGGSGGGGANVASVVTSSF-FNGIKNQ-AGSGCEG 91 \n 44455555555555555555555555555555...........................................555444444444444334433332.4444433.3444443 PP\n\n == domain 2 score: -2.1 bits; conditional E-value: 6.8\n 2UVO:A|PDBID|CHAIN|SEQUENCE 153 cgigpgycgag 163\n c+ g y g g\n AF-P29023-F1-model_v1 159 CAAGQKYYGRG 169\n 33333333322 PP\n\n>> AF-C0P451-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 32177 : 78598 ] wmpLDDT: 88.36\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 26.5 24.9 1.2e-08 0.00012 51 123 .. 34 103 .. 23 111 .. 0.59\n 2 ? -2.3 0.4 8.2 8.3e+04 153 163 .. 171 181 .. 156 204 .. 0.59\n 3 ? -2.4 0.3 8.8 8.9e+04 51 75 .. 245 269 .. 238 278 .. 0.64\n\n Alignments for each domain:\n == domain 1 score: 26.5 bits; conditional E-value: 1.2e-08\n 2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnnqccsqygycgfgaeycgagcqggpcradikcgsqaggklcpnnlccsqwgfcglgsefcgggcqs 123\n + c n ccs++gycg eycg gcq+gpcr+ gs gg ++ f g+ s+ +g+gc+ \n AF-C0P451-F1-model_v1 34 QNCGCQPNVCCSKFGYCGTTDEYCGDGCQSGPCRSGG-GGSSGGGGANVASVVTGS-FFNGIKSQ-AGSGCEG 103\n 3445677777777777777777777777777777654.344444443333333332.35566555.5666654 PP\n\n == domain 2 score: -2.3 bits; conditional E-value: 8.2\n 2UVO:A|PDBID|CHAIN|SEQUENCE 153 cgigpgycgag 163\n c+ g y g g\n AF-C0P451-F1-model_v1 171 CAAGQKYYGRG 181\n 33333333322 PP\n\n == domain 3 score: -2.4 bits; conditional E-value: 8.8\n 2UVO:A|PDBID|CHAIN|SEQUENCE 51 ggatctnnqccsqygycgfgaeycg 75 \n g+ c n + + g+ +yc \n AF-C0P451-F1-model_v1 245 GALECGGNNPAQMNARVGYYRQYCR 269\n 4456777777777777777777774 PP\n\n>> AF-I1NCA0-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3766 : 111598 ] wmpLDDT: 85.61\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 25.0 27.8 3.6e-08 0.00036 1 62 [. 21 83 .. 21 103 .. 0.81\n 2 ? -1.8 0.7 5.6 5.7e+04 27 40 .. 131 138 .. 113 163 .. 0.48\n\n Alignments for each domain:\n == domain 1 score: 25.0 bits; conditional E-value: 3.6e-08\n 2UVO:A|PDBID|CHAIN|SEQUENCE 1 ercgeqgsnmecpnnlccsqygycgmggdycg..kgcqngacwtskrcgsqaggatctnnqccs 62\n e+cg q+ + cpnnlccsqyg+cg +yc+ k+cq++ cw g gg +n ++\n AF-I1NCA0-F1-model_v1 21 EQCGRQAGGQTCPNNLCCSQYGWCGNTEEYCSpsKNCQSN-CWGGGGGGGGGGGGESASNVRAT 83\n 78*****************************544899975.99998888877777666664443 PP\n\n == domain 2 score: -1.8 bits; conditional E-value: 5.6\n 2UVO:A|PDBID|CHAIN|SEQUENCE 27 ggdycgkgcqngac 40 \n g d c g c\n AF-I1NCA0-F1-model_v1 131 GRDSC------GKC 138\n 22222......333 PP\n\n>> AF-A0A0P0Y930-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 31777 : 87298 ] wmpLDDT: 74.91\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 23.2 0.3 1.3e-07 0.0013 65 85 .. 8 28 .. 2 45 .. 0.74\n\n Alignments for each domain:\n == domain 1 score: 23.2 bits; conditional E-value: 1.3e-07\n 2UVO:A|PDBID|CHAIN|SEQUENCE 65 gycgfgaeycgagcqggpcra 85\n ++cg g++y g gcq+gpc \n AF-A0A0P0Y930-F1-model_v1 8 AFCGTGSDYYGTGCQAGPCDV 28\n 678888888888888888854 PP\n\n>> AF-O24654-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 3955 : 54868 ] wmpLDDT: 89.85\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 23.0 7.4 1.4e-07 0.0014 98 128 .. 30 61 .. 20 77 .. 0.76\n 2 ? 1.0 0.4 0.77 7.8e+03 14 42 .. 152 182 .. 145 196 .. 0.67\n\n Alignments for each domain:\n == domain 1 score: 23.0 bits; conditional E-value: 1.4e-07\n 2UVO:A|PDBID|CHAIN|SEQUENCE 98 cpn.nlccsqwgfcglgsefcgggcqsgacst 128\n cp ccs+wgfcg e+cg c sg c+ \n AF-O24654-F1-model_v1 30 CPGlKECCSRWGFCGTKDEYCGFFCFSGPCNI 61 \n 66534699999999999999999999999975 PP\n\n == domain 2 score: 1.0 bits; conditional E-value: 0.77\n 2UVO:A|PDBID|CHAIN|SEQUENCE 14 nnlccsq.ygy.cgmggdycgkgcqngacwt 42 \n n cs+ y c g +y g+g + w \n AF-O24654-F1-model_v1 152 NERYCSKsKKYpCEPGKNYYGRGLLQSITWN 182\n 4444443123338888888888888888886 PP\n\n>> AF-A0A1P8AME8-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 18391 : 54868 ] wmpLDDT: 84.04\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 23.0 6.8 1.5e-07 0.0015 57 86 .. 62 91 .. 47 101 .. 0.79\n 2 ? -0.1 0.7 1.7 1.7e+04 16 37 .. 182 204 .. 168 217 .. 0.57\n\n Alignments for each domain:\n == domain 1 score: 23.0 bits; conditional E-value: 1.5e-07\n 2UVO:A|PDBID|CHAIN|SEQUENCE 57 nnqccsqygycgfgaeycgagcqggpcrad 86\n n+ccs gycg + e+cg c +gpc+ \n AF-A0A1P8AME8-F1-model_v1 62 INECCSHTGYCGTNVEHCGFWCLSGPCQLS 91\n 489999999999999999999999999865 PP\n\n == domain 2 score: -0.1 bits; conditional E-value: 1.7\n 2UVO:A|PDBID|CHAIN|SEQUENCE 16 lccsqygy.cgmggdycgkgcqn 37 \n c s y c g y g+g \n AF-A0A1P8AME8-F1-model_v1 182 YCSSSKTYpCQSGKKYYGRGLLQ 204\n 23333333244444555555444 PP\n\n>> AF-Q688M5-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 37002 : 87298 ] wmpLDDT: 88.47\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 22.4 33.5 2.2e-07 0.0023 88 138 .. 25 71 .. 12 85 .. 0.79\n 2 ? -0.9 0.4 3 3.1e+04 64 86 .. 166 192 .. 142 208 .. 0.56\n\n Alignments for each domain:\n == domain 1 score: 22.4 bits; conditional E-value: 2.2e-07\n 2UVO:A|PDBID|CHAIN|SEQUENCE 88 kcgsqaggklcpnnlccsqwgfcglgsefcgggcqsgacstdkpcgkdagg 138\n +cgsqagg lcpn lccs +g+cg s++cg gcqs c cg gg\n AF-Q688M5-F1-model_v1 25 QCGSQAGGALCPNCLCCSSYGWCGSTSDYCGDGCQSQ-CD---GCGGGGGG 71 \n 7999999999999999999999999999999999985.43...24443333 PP\n\n == domain 2 score: -0.9 bits; conditional E-value: 3\n 2UVO:A|PDBID|CHAIN|SEQUENCE 64 ygyc.....gfgaeycgagcqggpcrad 86 \n +gyc g a yc +++ pc d\n AF-Q688M5-F1-model_v1 166 WGYCfkeeiGATASYCVPSAE-WPCAPD 192\n 333322222333444443333.344444 PP\n\n>> AF-I1NCA1-F1-model_v1 resolution: 1.00 experiment: AFDB release_date: 01-JUL-21 [ 26281 : 111598 ] wmpLDDT: 88.99\n # score bias c-Evalue i-Evalue hmmfrom hmm to alifrom ali to envfrom env to acc\n --- ------ ----- --------- --------- ------- ------- ------- ------- ------- ------- ----\n 1 ! 22.4 25.4 2.3e-07 0.0023 2 63 .. 23 82 .. 22 109 .. 0.76\n 2 ? -1.6 1.1 4.8 4.9e+04 124 139 .. 120 135 .. 85 145 .. 0.59\n\n Alignments for each domain:\n == domain 1 score: 22.4 bits; conditional E-value: 2.3e-07\n 2UVO:A|PDBID|CHAIN|SEQUENCE 2 rcgeqgsnmecpnnlccsqygycgmggdycg..kgcqngacwtskrcgsqaggatctnnqccsq 63\n +cg q+ + c nnlccsqyg+cg + d+c+ k+cq+ cw s gg +++n ++ \n AF-I1NCA1-F1-model_v1 23 NCGRQAGGQTCGNNLCCSQYGWCGNSEDHCSpsKNCQS-TCWGSGG--GGGGGESASN-VRATY 82\n 7*****************************64489996.8**9853..3345555444.33334 PP\n\n == domain 2 score: -1.6 bits; conditional E-value: 4.8\n 2UVO:A|PDBID|CHAIN|SEQUENCE 124 gacstdkpcgkdaggr 139\n + c p g+da g+\n AF-I1NCA1-F1-model_v1 120 AFCGPVGPRGRDACGK 135\n 3455555555555554 PP\n\n\n\nInternal pipeline statistics summary:\n-------------------------------------\nQuery model(s): 1 (171 nodes)\nTarget sequences: 365198 (160235650 residues searched)\nPassed MSV filter: 21203 (0.0580589); expected 7304.0 (0.02)\nPassed bias filter: 5935 (0.0162515); expected 7304.0 (0.02)\nPassed Vit filter: 554 (0.00151699); expected 365.2 (0.001)\nPassed Fwd filter: 38 (0.000104053); expected 3.7 (1e-05)\nInitial search space (Z): 365198 [actual number of targets]\nDomain search space (domZ): 36 [number of targets reported over threshold]\n# CPU time: 2.06u 0.10s 00:00:02.16 Elapsed: 00:00:00.79\n# Mc/sec: 34293.84\n//\n# Alignment of 36 hits satisfying inclusion thresholds saved to: phmmerAlignment_af2.log\n[ok]\n' |
class Solution:
def fullJustify(self, words: List[str], maxWidth: int) -> List[str]:
n = len(words)
res = []
row = [words[0]]
length = len(words[0]) # length including necessary space
lenwd = len(words[0]) # length of words in this row
numwd = 1 # number of words in this row
def postprocess(row, lenwd, numwd):
res = ""
if numwd > 1:
numspace = maxWidth - lenwd
spaces = [numspace // (numwd - 1)] * (numwd - 1)
for i in range(numspace % (numwd - 1)):
spaces[i] += 1
for i in range(numwd - 1):
res += row[i] + ' ' * spaces[i]
res += row[-1]
else:
res = row[0] + ' ' * (maxWidth - lenwd)
return res
for i in range(1, n):
l = len(words[i]) + 1
if l + length > maxWidth:
res.append(postprocess(row, lenwd, numwd))
row = [words[i]]
numwd = 1
length = len(words[i])
lenwd = len(words[i])
else:
row.append(words[i])
numwd += 1
lenwd += l - 1
length += l
res.append(' '.join(row) + ' ' * (maxWidth - length)) # last row
return res
| class Solution:
def full_justify(self, words: List[str], maxWidth: int) -> List[str]:
n = len(words)
res = []
row = [words[0]]
length = len(words[0])
lenwd = len(words[0])
numwd = 1
def postprocess(row, lenwd, numwd):
res = ''
if numwd > 1:
numspace = maxWidth - lenwd
spaces = [numspace // (numwd - 1)] * (numwd - 1)
for i in range(numspace % (numwd - 1)):
spaces[i] += 1
for i in range(numwd - 1):
res += row[i] + ' ' * spaces[i]
res += row[-1]
else:
res = row[0] + ' ' * (maxWidth - lenwd)
return res
for i in range(1, n):
l = len(words[i]) + 1
if l + length > maxWidth:
res.append(postprocess(row, lenwd, numwd))
row = [words[i]]
numwd = 1
length = len(words[i])
lenwd = len(words[i])
else:
row.append(words[i])
numwd += 1
lenwd += l - 1
length += l
res.append(' '.join(row) + ' ' * (maxWidth - length))
return res |
# Dungeon problem statement
# the dungeon has a size of R x C and you start at cell 'S' and there's an exit at cell 'E'.
# a cell full of rock is indicated by a '#' and empty cells are represented by a '.'
# ------------C-------------
# | S . . # . . . |
# | . # . . . # . |
# R . # . . . . . |
# | . . # # . . . |
# | # . # E . # . |
# --------------------------
#
# for this case, use one queue for each dimension is the better approach than one queue pack/unpack coordinates.
# the thing that needs to be aware is that the queues enqueue/dequeue needs to be in sync in each dimension.
# the dungeon
m = [
['S', '.', '.', '#', '.', '.', '.'],
['.', '#', '.', '.', '.', '#', '.'],
['.', '#', '.', '.', '.', '.', '.'],
['.', '.', '#', '#', '.', '.', '.'],
['#', '.', '#', 'E', '.', '#', '.']
]
R = len(m)
C = len(m[0])
# 'S' symbol row and column
sr = 0
sc = 0
# direction vector technique
# North, south, east, west
dr = [-1, +1, 0, 0]
dc = [0, 0, +1, -1]
# row queue
rq = []
# column queue
cq = []
visited = [[False for i in range(C)] for j in range(R)]
prev = [[None for i in range(C)] for j in range(R)]
reach_end = False
# end row/column
er = -1
ec = -1
# at least 1 (current one)
nodes_left_in_layer = 1
nodes_in_next_layer = 0
move_count = 0
def explore_neighbors(r, c):
global nodes_in_next_layer, prev, visited
for i in range(4):
rr = r + dr[i]
cc = c + dc[i]
# bound check
if rr < 0 or cc < 0:
continue
if rr >= R or cc >= C:
continue
# skip visited locations or blocked cells
if visited[rr][cc]:
continue
if m[rr][cc] == '#':
continue
rq.insert(0, rr)
cq.insert(0, cc)
visited[rr][cc] = True
prev[rr][cc] = [r, c]
nodes_in_next_layer = nodes_in_next_layer + 1
def solve(sr, sc):
global nodes_left_in_layer, nodes_in_next_layer, move_count, er, ec
rq.insert(0, sr)
cq.insert(0, sc)
visited[sr][sc] = True
while len(rq) > 0: # or len(cq) > 0
r = rq.pop()
c = cq.pop()
if m[r][c] == 'E':
reach_end = True
er = r
ec = c
break
explore_neighbors(r, c)
nodes_left_in_layer = nodes_left_in_layer - 1
if nodes_left_in_layer == 0:
nodes_left_in_layer = nodes_in_next_layer
nodes_in_next_layer = 0
move_count = move_count + 1
if reach_end:
return move_count
return -1
def reconstructPath():
# Reconstruct path going backward from e
path = []
at = [er, ec]
while(prev[at[0]][at[1]] != None):
at = prev[at[0]][at[1]]
path.append(at)
path.reverse()
if len(path) > 0 and path[0] == [sr, sc]:
return path
return []
def bfs():
result_move_count = solve(sr, sc)
print('steps:' + str(result_move_count))
if result_move_count > 0:
return reconstructPath()
print(bfs())
| m = [['S', '.', '.', '#', '.', '.', '.'], ['.', '#', '.', '.', '.', '#', '.'], ['.', '#', '.', '.', '.', '.', '.'], ['.', '.', '#', '#', '.', '.', '.'], ['#', '.', '#', 'E', '.', '#', '.']]
r = len(m)
c = len(m[0])
sr = 0
sc = 0
dr = [-1, +1, 0, 0]
dc = [0, 0, +1, -1]
rq = []
cq = []
visited = [[False for i in range(C)] for j in range(R)]
prev = [[None for i in range(C)] for j in range(R)]
reach_end = False
er = -1
ec = -1
nodes_left_in_layer = 1
nodes_in_next_layer = 0
move_count = 0
def explore_neighbors(r, c):
global nodes_in_next_layer, prev, visited
for i in range(4):
rr = r + dr[i]
cc = c + dc[i]
if rr < 0 or cc < 0:
continue
if rr >= R or cc >= C:
continue
if visited[rr][cc]:
continue
if m[rr][cc] == '#':
continue
rq.insert(0, rr)
cq.insert(0, cc)
visited[rr][cc] = True
prev[rr][cc] = [r, c]
nodes_in_next_layer = nodes_in_next_layer + 1
def solve(sr, sc):
global nodes_left_in_layer, nodes_in_next_layer, move_count, er, ec
rq.insert(0, sr)
cq.insert(0, sc)
visited[sr][sc] = True
while len(rq) > 0:
r = rq.pop()
c = cq.pop()
if m[r][c] == 'E':
reach_end = True
er = r
ec = c
break
explore_neighbors(r, c)
nodes_left_in_layer = nodes_left_in_layer - 1
if nodes_left_in_layer == 0:
nodes_left_in_layer = nodes_in_next_layer
nodes_in_next_layer = 0
move_count = move_count + 1
if reach_end:
return move_count
return -1
def reconstruct_path():
path = []
at = [er, ec]
while prev[at[0]][at[1]] != None:
at = prev[at[0]][at[1]]
path.append(at)
path.reverse()
if len(path) > 0 and path[0] == [sr, sc]:
return path
return []
def bfs():
result_move_count = solve(sr, sc)
print('steps:' + str(result_move_count))
if result_move_count > 0:
return reconstruct_path()
print(bfs()) |
class Node:
def __init__(self, data):
self.data = data
self.next = None
class Stack:
def __init__(self) -> None:
self.root = None
def push(self, value) -> None:
if self.root is None:
self.root = Node(value)
else:
root_node = self.root
self.root = Node(value)
self.root.next = root_node
def pop(self):
if self.root is None:
return
pop_data = self.root.data
self.root = self.root.next
return pop_data
def top(self):
if self.root is not None:
return self.root.data
return -1
def is_empty(self) -> bool:
if self.root is None:
return True
return False
def print_stack(self) -> None:
if self.root is None:
return
return self._print_stack(self.root)
def _print_stack(self, node: Node) -> None:
if node is not None:
print(node.data, end=' ')
self._print_stack(node.next)
else:
print()
if __name__ == '__main__':
stack = Stack()
for i in range(1, 11):
stack.push(i)
print(stack.pop())
print(stack.pop())
print(stack.pop())
print(stack.pop())
print(stack.pop())
print('Stack -->')
stack.print_stack()
print('Top --> '+str(stack.top()))
print('Stack is empty --> '+str(stack.is_empty()))
| class Node:
def __init__(self, data):
self.data = data
self.next = None
class Stack:
def __init__(self) -> None:
self.root = None
def push(self, value) -> None:
if self.root is None:
self.root = node(value)
else:
root_node = self.root
self.root = node(value)
self.root.next = root_node
def pop(self):
if self.root is None:
return
pop_data = self.root.data
self.root = self.root.next
return pop_data
def top(self):
if self.root is not None:
return self.root.data
return -1
def is_empty(self) -> bool:
if self.root is None:
return True
return False
def print_stack(self) -> None:
if self.root is None:
return
return self._print_stack(self.root)
def _print_stack(self, node: Node) -> None:
if node is not None:
print(node.data, end=' ')
self._print_stack(node.next)
else:
print()
if __name__ == '__main__':
stack = stack()
for i in range(1, 11):
stack.push(i)
print(stack.pop())
print(stack.pop())
print(stack.pop())
print(stack.pop())
print(stack.pop())
print('Stack -->')
stack.print_stack()
print('Top --> ' + str(stack.top()))
print('Stack is empty --> ' + str(stack.is_empty())) |
class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
n = 0
if len(nums) == 0: return 0
for i in range(1,len(nums)):
if nums[n] < nums[i]:
n += 1
nums[n] = nums[i]
return n+1
| class Solution:
def remove_duplicates(self, nums: List[int]) -> int:
n = 0
if len(nums) == 0:
return 0
for i in range(1, len(nums)):
if nums[n] < nums[i]:
n += 1
nums[n] = nums[i]
return n + 1 |
"""
Integration tests of this component running live
on an integration server
"""
| """
Integration tests of this component running live
on an integration server
""" |
# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( str ) :
n = len ( str ) - 1
i = n
while ( i > 0 and str [ i - 1 ] <= str [ i ] ) :
i -= 1
if ( i <= 0 ) :
return False
j = i - 1
while ( j + 1 <= n and str [ j + 1 ] <= str [ i - 1 ] ) :
j += 1
str = list ( str )
temp = str [ i - 1 ]
str [ i - 1 ] = str [ j ]
str [ j ] = temp
str = ''.join ( str )
str [ : : - 1 ]
return True , str
#TOFILL
if __name__ == '__main__':
param = [
(['B', 'I', 'K', 'M', 'Q', 'Y', 'b', 'e', 'e', 't', 'x'],),
(['7', '0', '2', '5', '1', '1', '4', '4', '8', '0', '2', '6', '4', '4', '0', '6', '7', '1', '7', '9', '8', '6', '1', '8', '3', '0', '6', '4', '4', '6', '3', '1', '3', '1', '9', '9', '4', '7', '4', '4', '3', '1', '4', '2', '9', '8', '1', '2', '4'],),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1'],),
(['o', 'S', 'R', 'm', 'i', 'S', 'z', 'z', 'W', 'X', 'A', 'A', 'M', 'L', 'V', 'Q', 'F', 'i', ' ', 'i', 'G', 'D', 'T', 'a', 'm', 'S', 'N', 's', 'j', 'P', 'E', 'n', 'a', 'Q', 'm'],),
(['0', '0', '0', '0', '1', '1', '1', '1', '1', '2', '2', '2', '2', '2', '3', '3', '3', '3', '3', '3', '3', '3', '4', '4', '4', '5', '5', '5', '5', '5', '5', '5', '5', '6', '7', '7', '8', '8', '8', '9', '9', '9', '9', '9'],),
(['0', '0', '1', '0', '1', '0', '0'],),
([' ', 'B', 'D', 'D', 'E', 'E', 'G', 'J', 'J', 'K', 'L', 'L', 'L', 'M', 'N', 'N', 'P', 'Q', 'V', 'W', 'W', 'X', 'Y', 'a', 'b', 'b', 'd', 'f', 'h', 'i', 'j', 'j', 'k', 'k', 'l', 'm', 'm', 'm', 'n', 'p', 'r', 's', 'u', 'v', 'v', 'w', 'x'],),
(['5', '4', '4', '7', '5', '5', '1', '8', '6', '6', '9', '9', '6', '6', '8', '7', '4', '0', '7', '3', '6', '0', '9'],),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],),
(['q', 'a', 'U', 'N', 'V', 'v', 'U', 'R', 'x', 'i', 'S', 'N', 'V', 'V', 'j', 'r', 'e', 'N', 'M'],)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold(str):
n = len(str) - 1
i = n
while i > 0 and str[i - 1] <= str[i]:
i -= 1
if i <= 0:
return False
j = i - 1
while j + 1 <= n and str[j + 1] <= str[i - 1]:
j += 1
str = list(str)
temp = str[i - 1]
str[i - 1] = str[j]
str[j] = temp
str = ''.join(str)
str[::-1]
return (True, str)
if __name__ == '__main__':
param = [(['B', 'I', 'K', 'M', 'Q', 'Y', 'b', 'e', 'e', 't', 'x'],), (['7', '0', '2', '5', '1', '1', '4', '4', '8', '0', '2', '6', '4', '4', '0', '6', '7', '1', '7', '9', '8', '6', '1', '8', '3', '0', '6', '4', '4', '6', '3', '1', '3', '1', '9', '9', '4', '7', '4', '4', '3', '1', '4', '2', '9', '8', '1', '2', '4'],), (['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1'],), (['o', 'S', 'R', 'm', 'i', 'S', 'z', 'z', 'W', 'X', 'A', 'A', 'M', 'L', 'V', 'Q', 'F', 'i', ' ', 'i', 'G', 'D', 'T', 'a', 'm', 'S', 'N', 's', 'j', 'P', 'E', 'n', 'a', 'Q', 'm'],), (['0', '0', '0', '0', '1', '1', '1', '1', '1', '2', '2', '2', '2', '2', '3', '3', '3', '3', '3', '3', '3', '3', '4', '4', '4', '5', '5', '5', '5', '5', '5', '5', '5', '6', '7', '7', '8', '8', '8', '9', '9', '9', '9', '9'],), (['0', '0', '1', '0', '1', '0', '0'],), ([' ', 'B', 'D', 'D', 'E', 'E', 'G', 'J', 'J', 'K', 'L', 'L', 'L', 'M', 'N', 'N', 'P', 'Q', 'V', 'W', 'W', 'X', 'Y', 'a', 'b', 'b', 'd', 'f', 'h', 'i', 'j', 'j', 'k', 'k', 'l', 'm', 'm', 'm', 'n', 'p', 'r', 's', 'u', 'v', 'v', 'w', 'x'],), (['5', '4', '4', '7', '5', '5', '1', '8', '6', '6', '9', '9', '6', '6', '8', '7', '4', '0', '7', '3', '6', '0', '9'],), (['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],), (['q', 'a', 'U', 'N', 'V', 'v', 'U', 'R', 'x', 'i', 'S', 'N', 'V', 'V', 'j', 'r', 'e', 'N', 'M'],)]
n_success = 0
for (i, parameters_set) in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print('#Results: %i, %i' % (n_success, len(param))) |
class CaseChangingStream():
def __init__(self, stream, upper):
self._stream = stream
self._upper = upper
def __getattr__(self, name):
return self._stream.__getattribute__(name)
def LA(self, offset):
c = self._stream.LA(offset)
if c <= 0:
return c
return ord(chr(c).upper() if self._upper else chr(c).lower())
def getText(self, start, stop):
text = self._stream.getText(start, stop)
return text.upper() if self._upper else text.lower()
| class Casechangingstream:
def __init__(self, stream, upper):
self._stream = stream
self._upper = upper
def __getattr__(self, name):
return self._stream.__getattribute__(name)
def la(self, offset):
c = self._stream.LA(offset)
if c <= 0:
return c
return ord(chr(c).upper() if self._upper else chr(c).lower())
def get_text(self, start, stop):
text = self._stream.getText(start, stop)
return text.upper() if self._upper else text.lower() |
fp = open("1.in", "r")
drift = 0
for line in iter(fp.readline, ''):
drift += int(line)
print(drift)
def findDup():
drift = 0
seen = set([0])
for _ in range(1000):
fp = open("input1.txt", "r")
for line in iter(fp.readline, ''):
drift += int(line)
if drift in seen:
return drift
seen.add(drift)
fp = None
return "No Duplicate Found"
print(findDup())
| fp = open('1.in', 'r')
drift = 0
for line in iter(fp.readline, ''):
drift += int(line)
print(drift)
def find_dup():
drift = 0
seen = set([0])
for _ in range(1000):
fp = open('input1.txt', 'r')
for line in iter(fp.readline, ''):
drift += int(line)
if drift in seen:
return drift
seen.add(drift)
fp = None
return 'No Duplicate Found'
print(find_dup()) |
class CryptoNews:
"""
class that represents a single piece of crypto news
"""
def __init__(
self,
url="",
title="",
text="",
html="",
year=0,
author="",
source="",
):
self.url = url
self.title = title
self.text = text
self.html = html
self.year = year
self.author = author
self.source = source
def __str__(self):
return f"{self.url}, {self.title}, {self.year}, {self.author}, {self.source}"
def __repr__(self):
return self.__str__()
def print_text(self):
return f"{self.text}"
| class Cryptonews:
"""
class that represents a single piece of crypto news
"""
def __init__(self, url='', title='', text='', html='', year=0, author='', source=''):
self.url = url
self.title = title
self.text = text
self.html = html
self.year = year
self.author = author
self.source = source
def __str__(self):
return f'{self.url}, {self.title}, {self.year}, {self.author}, {self.source}'
def __repr__(self):
return self.__str__()
def print_text(self):
return f'{self.text}' |
class Location:
"""
Location is an abstraction for representing a location in the World. An instance of the World can have multiple Event(s). Each event has a single Location.
Public Variables:
* x - x coordinate of the location
* y - y coordinate of the location
"""
def __init__(self, location):
"""Catch ValueError exception if incorrect number of values are passed as part of the location tuple."""
if isinstance(location, tuple) is not True:
raise TypeError
if (isinstance(location, tuple) is True) and (len(location) == 2):
self.x, self.y = location
else:
raise ValueError
| class Location:
"""
Location is an abstraction for representing a location in the World. An instance of the World can have multiple Event(s). Each event has a single Location.
Public Variables:
* x - x coordinate of the location
* y - y coordinate of the location
"""
def __init__(self, location):
"""Catch ValueError exception if incorrect number of values are passed as part of the location tuple."""
if isinstance(location, tuple) is not True:
raise TypeError
if isinstance(location, tuple) is True and len(location) == 2:
(self.x, self.y) = location
else:
raise ValueError |
l1=[]
##Input number of elements in list
n=int(input())
##Input the elements in the list
l1=list(map(int,input().split()))
## Create a new list l2 to store the index(from 1 to number of elements in list1) of elements of list 1
l2=[i for i in range(1,n+1)]
##Run a for loop from 1 till the length of list 1(l1)
for i in range(1,n+1):
##Find the Index of ith element of list (l1)
x=l1.index(i)
##print(x)
##Now find which element is located at that index in list (l2)
y=l2[x]
##Now find the index of this element (y) in list (l1)
##Finally print the element located at that index in list (l2)
print(l2[l1.index(y)])
| l1 = []
n = int(input())
l1 = list(map(int, input().split()))
l2 = [i for i in range(1, n + 1)]
for i in range(1, n + 1):
x = l1.index(i)
y = l2[x]
print(l2[l1.index(y)]) |
# Original version was a simple for loop incrementing counts. Refactored to a generic function using list comprehension.
def main(filepath):
depths = [int(x) for x in open(filepath,'r').read().split('\n')]
increases = lambda x,y: len([d for i,d in enumerate(x[1:]) if len(x[i+1:]) >= y and sum(x[i+1:i+y+1]) > sum(x[i:i+y])])
return increases(depths,1), increases(depths,3)
print(main('01.txt')) | def main(filepath):
depths = [int(x) for x in open(filepath, 'r').read().split('\n')]
increases = lambda x, y: len([d for (i, d) in enumerate(x[1:]) if len(x[i + 1:]) >= y and sum(x[i + 1:i + y + 1]) > sum(x[i:i + y])])
return (increases(depths, 1), increases(depths, 3))
print(main('01.txt')) |
class Solution:
def minRemoveToMakeValid(self, s: str) -> str:
stack, indicesToRemove, result = [], set(), []
for i, c in enumerate(s):
if c not in ['(', ')']:
continue
if c == '(':
stack.append(i)
elif not stack:
indicesToRemove.add(i)
else:
stack.pop()
indicesToRemove = indicesToRemove.union(set(stack))
for i, c in enumerate(s):
if i not in indicesToRemove:
result.append(c)
return ''.join(result) | class Solution:
def min_remove_to_make_valid(self, s: str) -> str:
(stack, indices_to_remove, result) = ([], set(), [])
for (i, c) in enumerate(s):
if c not in ['(', ')']:
continue
if c == '(':
stack.append(i)
elif not stack:
indicesToRemove.add(i)
else:
stack.pop()
indices_to_remove = indicesToRemove.union(set(stack))
for (i, c) in enumerate(s):
if i not in indicesToRemove:
result.append(c)
return ''.join(result) |
MFCSAM = {'children': 3, 'cats': 7, 'samoyeds': 2, 'pomeranians': 3, 'akitas': 0,
'vizslas': 0, 'goldfish': 5, 'trees': 3, 'cars': 2, 'perfumes': 1}
GREATER = ('cats', 'trees')
FEWER = ('pomeranians', 'goldfish')
sues = []
for row in open('input').read().splitlines():
sue_properties = {}
for info in row.split(', '):
if 'Sue' in info:
name, value = info.split(': ')[1:]
else:
name, value = info.split(': ')
sue_properties[name] = int(value)
sues.append(sue_properties)
for idx, sue in enumerate(sues):
if all(k not in sue or sue[k] == v for k, v in MFCSAM.items()):
print(f"Answer part one: {idx + 1}")
if all(
k not in sue or
k not in GREATER + FEWER and sue[k] == v or
k in GREATER and sue[k] > v or
k in FEWER and sue[k] < v
for k, v in MFCSAM.items()
):
print(f"Answer part two: {idx + 1}")
| mfcsam = {'children': 3, 'cats': 7, 'samoyeds': 2, 'pomeranians': 3, 'akitas': 0, 'vizslas': 0, 'goldfish': 5, 'trees': 3, 'cars': 2, 'perfumes': 1}
greater = ('cats', 'trees')
fewer = ('pomeranians', 'goldfish')
sues = []
for row in open('input').read().splitlines():
sue_properties = {}
for info in row.split(', '):
if 'Sue' in info:
(name, value) = info.split(': ')[1:]
else:
(name, value) = info.split(': ')
sue_properties[name] = int(value)
sues.append(sue_properties)
for (idx, sue) in enumerate(sues):
if all((k not in sue or sue[k] == v for (k, v) in MFCSAM.items())):
print(f'Answer part one: {idx + 1}')
if all((k not in sue or (k not in GREATER + FEWER and sue[k] == v) or (k in GREATER and sue[k] > v) or (k in FEWER and sue[k] < v) for (k, v) in MFCSAM.items())):
print(f'Answer part two: {idx + 1}') |
class Solution:
def minDistance(self, word1: str, word2: str) -> int:
dp = [ [0] * (len(word2)+1) for _ in range(len(word1)+1) ]
for k in range(1, len(word2)+1):
dp[0][k] = k
for k in range(1, len(word1)+1):
dp[k][0] = k
for p in range(1, len(word1)+1):
for q in range(1, len(word2)+1):
if word1[p-1] == word2[q-1]:
dp[p][q] = 1 + min(dp[p-1][q-1]-1, dp[p-1][q], dp[p][q-1])
else:
dp[p][q] = 1 + min(dp[p-1][q-1], dp[p-1][q], dp[p][q-1])
return dp[-1][-1]
| class Solution:
def min_distance(self, word1: str, word2: str) -> int:
dp = [[0] * (len(word2) + 1) for _ in range(len(word1) + 1)]
for k in range(1, len(word2) + 1):
dp[0][k] = k
for k in range(1, len(word1) + 1):
dp[k][0] = k
for p in range(1, len(word1) + 1):
for q in range(1, len(word2) + 1):
if word1[p - 1] == word2[q - 1]:
dp[p][q] = 1 + min(dp[p - 1][q - 1] - 1, dp[p - 1][q], dp[p][q - 1])
else:
dp[p][q] = 1 + min(dp[p - 1][q - 1], dp[p - 1][q], dp[p][q - 1])
return dp[-1][-1] |
def sample(a: int, b: float, c: str) -> str:
"""
This is a sample
:param a: this is a
with two lines
:param b: this is b
:param c: this is c
:return: this is a string conatining that
"""
pass
| def sample(a: int, b: float, c: str) -> str:
"""
This is a sample
:param a: this is a
with two lines
:param b: this is b
:param c: this is c
:return: this is a string conatining that
"""
pass |
class Runner:
def __init__(self, graph):
self.graph = graph
self.cache = {}
def findValues(self, inputs):
self.cache = {}
for inputIndex in range(len(inputs)):
self.cache[(inputIndex + 1, 0)] = inputs[inputIndex]
if not self.__calculateValues(self.graph.nodes[0]):
return []
outputs = []
for i in range(len(self.graph.nodes[0].function.inputs)):
outputs.append(self.cache[(0, i)])
del self.cache
return outputs
def __calculateValues(self, node):
if (node.index, 0) in self.cache:
return
# if isInstance(node, IfFunction):
# elif isInstance(node, WhileFunction):
# elif isInstance(node, ForFunction):
# else:
inputs = []
unfinished = False
for inputIndex in range(len(node.function.inputs)):
conn = self.graph.getConnectionTo(node, inputIndex)
if conn is None:
unfinished = True
continue
if self.__calculateValues(conn.outputNode):
inputs.append(
self.cache[(conn.outputNode.index, conn.outputPlug)])
else:
unfinished = True
if unfinished:
return False
if len(node.function.outputs) == 0:
outputs = inputs
else:
outputs = node.function.run(inputs)
for i in range(len(outputs)):
self.cache[(node.index, i)] = outputs[i]
return True
| class Runner:
def __init__(self, graph):
self.graph = graph
self.cache = {}
def find_values(self, inputs):
self.cache = {}
for input_index in range(len(inputs)):
self.cache[inputIndex + 1, 0] = inputs[inputIndex]
if not self.__calculateValues(self.graph.nodes[0]):
return []
outputs = []
for i in range(len(self.graph.nodes[0].function.inputs)):
outputs.append(self.cache[0, i])
del self.cache
return outputs
def __calculate_values(self, node):
if (node.index, 0) in self.cache:
return
inputs = []
unfinished = False
for input_index in range(len(node.function.inputs)):
conn = self.graph.getConnectionTo(node, inputIndex)
if conn is None:
unfinished = True
continue
if self.__calculateValues(conn.outputNode):
inputs.append(self.cache[conn.outputNode.index, conn.outputPlug])
else:
unfinished = True
if unfinished:
return False
if len(node.function.outputs) == 0:
outputs = inputs
else:
outputs = node.function.run(inputs)
for i in range(len(outputs)):
self.cache[node.index, i] = outputs[i]
return True |
# Copyright (c) Moshe Zadka
# See LICENSE for details.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',
]
master_doc = 'index'
project = 'Symplectic'
copyright = '2017, Moshe Zadka'
author = 'Moshe Zadka'
version = '17.10'
release = '17.10'
| extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon']
master_doc = 'index'
project = 'Symplectic'
copyright = '2017, Moshe Zadka'
author = 'Moshe Zadka'
version = '17.10'
release = '17.10' |
'''
Created on 20 Jul 2015
@author: njohn
'''
if __name__ == '__main__':
pass | """
Created on 20 Jul 2015
@author: njohn
"""
if __name__ == '__main__':
pass |
# coding:utf-8
class Error(Exception):
def __str__(self):
return self.message
class SessionExpiredError(Error):
def __init__(self, message="Session has expired."):
super(SessionExpiredError, self).__init__()
self.message = message
class SessionInvalidError(Error):
def __init__(self, message="Session is invalid."):
super(SessionInvalidError, self).__init__()
self.message = message
class SessionConsumedError(Error):
def __init__(self, message="Session has been consumed."):
super(SessionConsumedError, self).__init__()
self.message = message
class SessionExistsError(Error):
def __init__(self, message="Session already exists."):
super(SessionExistsError, self).__init__()
self.message = message
| class Error(Exception):
def __str__(self):
return self.message
class Sessionexpirederror(Error):
def __init__(self, message='Session has expired.'):
super(SessionExpiredError, self).__init__()
self.message = message
class Sessioninvaliderror(Error):
def __init__(self, message='Session is invalid.'):
super(SessionInvalidError, self).__init__()
self.message = message
class Sessionconsumederror(Error):
def __init__(self, message='Session has been consumed.'):
super(SessionConsumedError, self).__init__()
self.message = message
class Sessionexistserror(Error):
def __init__(self, message='Session already exists.'):
super(SessionExistsError, self).__init__()
self.message = message |
# 1. Complete the function by filling in the missing parts. The color_translator
# function receives the name of a color, then prints its hexadecimal value.
# Currently, it only supports the three addictive primary colors (red, green,
# blue), so it returns "unknown" for all other colors.
def color_translator(color):
if color == "red":
hex_color = "#ff0000"
elif color == "green":
hex_color = "#00ff00"
elif color == "blue":
hex_color = "#0000ff"
else:
hex_color = "unknown"
return hex_color
print(color_translator("blue")) # Should be #0000ff
print(color_translator("yellow")) # Should be unknown
print(color_translator("red")) # Should be #ff0000
print(color_translator("black")) # Should be unknown
print(color_translator("green")) # Should be #00ff00
print(color_translator("")) # Should be unknown
print("big" > "small")
# 4. Students in a class receive their grades as Pass/Fail. Scores of 60 or more
# (out of 100) mean that the grade is "Pass". For lower scores, the grade is
# "Fail". In addition, scores above 95 (not included) are graded as "Top Score".
# Fill in this function so that it returns the proper grade.
def exam_grade(score):
if score > 95:
grade = "Top Score"
elif score >= 60:
grade = "Pass"
else:
grade = "Fail"
return grade
print(exam_grade(65)) # Should be Pass
print(exam_grade(55)) # Should be Fail
print(exam_grade(60)) # Should be Pass
print(exam_grade(95)) # Should be Pass
print(exam_grade(100)) # Should be Top Score
print(exam_grade(0)) # Should be Fail
def format_name(first_name, last_name):
# code goes here
if first_name is not "" and last_name is not "":
string = f"Name: {last_name}, {first_name}"
elif first_name is "" and last_name is not "":
string = f"Name: {last_name}"
elif first_name is not "" and last_name is "":
string = f"Name: {first_name}"
else:
string = ""
return string
print(format_name("Ernest", "Hemingway"))
# Should return the string "Name: Hemingway, Ernest"
print(format_name("", "Madonna"))
# Should return the string "Name: Madonna"
print(format_name("Voltaire", ""))
# Should return the string "Name: Voltaire"
print(format_name("", ""))
# Should return an empty string
def longest_word(word1, word2, word3):
if len(word1) >= len(word2) and len(word1) >= len(word3):
word = word1
elif len(word2) >= len(word1) and len(word2) >= len(word3):
word = word2
else:
word = word3
return word
print(longest_word("chair", "couch", "table"))
print(longest_word("bed", "bath", "beyond"))
print(longest_word("laptop", "notebook", "desktop"))
def sum(x, y):
return x + y
print(sum(sum(1, 2), sum(3, 4)))
print((10 >= 5 * 2) and (10 <= 5 * 2))
# The fractional_part function divides the numerator by the denominator, adn
# returns just the fractional part (a number between 0 and 1). Complete the
# body of the function so that it returns the right number.
# Note: Since division by 0 produces an error, if the denominator is 0, the
# function should return 0 instead of attempting the division.
def fractional_part(numerator, denominator):
# Operate with numerator and denominator to
# keep just the fractional part of the quotient
if denominator == 0:
return 0
answer = (numerator / denominator) - (numerator // denominator)
if answer == 0.0:
return 0
return answer
print(fractional_part(5, 5)) # Should be 0
print(fractional_part(5, 4)) # Should be 0.25
print(fractional_part(5, 3)) # Should be 0.66...
print(fractional_part(5, 2)) # Should be 0.5
print(fractional_part(5, 0)) # Should be 0
print(fractional_part(0, 5)) # Should be 0
| def color_translator(color):
if color == 'red':
hex_color = '#ff0000'
elif color == 'green':
hex_color = '#00ff00'
elif color == 'blue':
hex_color = '#0000ff'
else:
hex_color = 'unknown'
return hex_color
print(color_translator('blue'))
print(color_translator('yellow'))
print(color_translator('red'))
print(color_translator('black'))
print(color_translator('green'))
print(color_translator(''))
print('big' > 'small')
def exam_grade(score):
if score > 95:
grade = 'Top Score'
elif score >= 60:
grade = 'Pass'
else:
grade = 'Fail'
return grade
print(exam_grade(65))
print(exam_grade(55))
print(exam_grade(60))
print(exam_grade(95))
print(exam_grade(100))
print(exam_grade(0))
def format_name(first_name, last_name):
if first_name is not '' and last_name is not '':
string = f'Name: {last_name}, {first_name}'
elif first_name is '' and last_name is not '':
string = f'Name: {last_name}'
elif first_name is not '' and last_name is '':
string = f'Name: {first_name}'
else:
string = ''
return string
print(format_name('Ernest', 'Hemingway'))
print(format_name('', 'Madonna'))
print(format_name('Voltaire', ''))
print(format_name('', ''))
def longest_word(word1, word2, word3):
if len(word1) >= len(word2) and len(word1) >= len(word3):
word = word1
elif len(word2) >= len(word1) and len(word2) >= len(word3):
word = word2
else:
word = word3
return word
print(longest_word('chair', 'couch', 'table'))
print(longest_word('bed', 'bath', 'beyond'))
print(longest_word('laptop', 'notebook', 'desktop'))
def sum(x, y):
return x + y
print(sum(sum(1, 2), sum(3, 4)))
print(10 >= 5 * 2 and 10 <= 5 * 2)
def fractional_part(numerator, denominator):
if denominator == 0:
return 0
answer = numerator / denominator - numerator // denominator
if answer == 0.0:
return 0
return answer
print(fractional_part(5, 5))
print(fractional_part(5, 4))
print(fractional_part(5, 3))
print(fractional_part(5, 2))
print(fractional_part(5, 0))
print(fractional_part(0, 5)) |
# Joshua Nelson Gomes (Joshua)
# CIS 41A Spring 2020
# Take-Home Assignment I
class Square:
def __init__(self, side):
self.side = side
def getArea(self):
return self.side * self.side
class Cube(Square):
def __init__(self, side):
Square.__init__(self, side)
def getVolume(self):
return self.side * self.side * self.side
def calcTotal(price, taxRate = 0.08):
return price + (price * taxRate)
def main():
s = Square(3)
print (f'{s.getArea()}')
c = Cube(4)
print (f'{c.getVolume()}')
print (f'{calcTotal(10)}')
myLists = []
for row in range(1,6,2):
newRow = []
for col in range(1,6,2):
newRow.append(row*col**2)
myLists.append(newRow)
print(myLists[0][1])
if __name__ == '__main__':
main()
'''
Execution Results:
Sorry Jimmy this is book is only for adult patrons.
Jimmy has checked out Alice in Wonderland
Jimmy has checked out The Cat in the Hat
Jimmy has the following books checked out:
Alice in Wonderland
The Cat in the Hat
Sorry Jimmy you are at your limit of 2 books
Jimmy has returned Alice in Wonderland
Jimmy has checked out Harry Potter and the Sorcerer's Stone
Jimmy has the following books checked out:
The Cat in the Hat
Harry Potter and the Sorcerer's Stone
Sophia has checked out The Da Vinci Code
Sophia has checked out The Hobbit
Sophia has the following books checked out:
The Da Vinci Code
The Hobbit
'''
| class Square:
def __init__(self, side):
self.side = side
def get_area(self):
return self.side * self.side
class Cube(Square):
def __init__(self, side):
Square.__init__(self, side)
def get_volume(self):
return self.side * self.side * self.side
def calc_total(price, taxRate=0.08):
return price + price * taxRate
def main():
s = square(3)
print(f'{s.getArea()}')
c = cube(4)
print(f'{c.getVolume()}')
print(f'{calc_total(10)}')
my_lists = []
for row in range(1, 6, 2):
new_row = []
for col in range(1, 6, 2):
newRow.append(row * col ** 2)
myLists.append(newRow)
print(myLists[0][1])
if __name__ == '__main__':
main()
"\nExecution Results:\n\nSorry Jimmy this is book is only for adult patrons.\nJimmy has checked out Alice in Wonderland\nJimmy has checked out The Cat in the Hat\nJimmy has the following books checked out:\nAlice in Wonderland\nThe Cat in the Hat\nSorry Jimmy you are at your limit of 2 books\nJimmy has returned Alice in Wonderland\nJimmy has checked out Harry Potter and the Sorcerer's Stone\nJimmy has the following books checked out:\nThe Cat in the Hat\nHarry Potter and the Sorcerer's Stone\nSophia has checked out The Da Vinci Code\nSophia has checked out The Hobbit\nSophia has the following books checked out:\nThe Da Vinci Code\nThe Hobbit\n\n" |
# The subroutine inserts the vector passed as the secondargument into row j of the matrix.
# It also inserts this vector into column j of the matrix.
# Insertion involves copying the vector into the corresponding row and column.
# If the value of j is out of range, the subroutine returns -1 and does not perform any insertion,
# otherwise, it returns 0 and performs the insertion in the corresponding row and column.
def exercise(matrix, vector, N, j):
if j < 0 or j > N:
# return -1
raise Exception('j should be greater than 0 and smaller than N')
i = 0
while i < len(matrix):
element = vector[i]
# Substitute row
matrix[j][i] = element
# Substitute column
matrix[i][j] = element
i += 1
# return 0
for row in matrix:
print(row)
if __name__ == '__main__':
matrix = [[1.1, 1.3, 1.5],
[3.5, 8.3, 2.1],
[2.3, 2.1, 5.5]]
vector = [0.5, 0.2, 0.1]
N = 3
j = 1
exercise(matrix, vector, N, j) | def exercise(matrix, vector, N, j):
if j < 0 or j > N:
raise exception('j should be greater than 0 and smaller than N')
i = 0
while i < len(matrix):
element = vector[i]
matrix[j][i] = element
matrix[i][j] = element
i += 1
for row in matrix:
print(row)
if __name__ == '__main__':
matrix = [[1.1, 1.3, 1.5], [3.5, 8.3, 2.1], [2.3, 2.1, 5.5]]
vector = [0.5, 0.2, 0.1]
n = 3
j = 1
exercise(matrix, vector, N, j) |
class HooksIter:
def __init__(self, items=None):
self.hooks = {}
if items:
for item in items:
self.hooks[item] = item.hooks
def __iter__(self):
for hooks in self.hooks.values():
for event in hooks:
for hook in event:
yield hook
def __getitem__(self, *args):
results = self.hooks
for arg in args:
if results.get(arg):
results = results.get(arg)
else:
results = None
return results
def __setitem__(self, item, hooks):
self.hooks[item] = hooks
def get(self, item):
return self.hooks.get(item)
| class Hooksiter:
def __init__(self, items=None):
self.hooks = {}
if items:
for item in items:
self.hooks[item] = item.hooks
def __iter__(self):
for hooks in self.hooks.values():
for event in hooks:
for hook in event:
yield hook
def __getitem__(self, *args):
results = self.hooks
for arg in args:
if results.get(arg):
results = results.get(arg)
else:
results = None
return results
def __setitem__(self, item, hooks):
self.hooks[item] = hooks
def get(self, item):
return self.hooks.get(item) |
#
# Copyright (C) 2010-2017 Samuel Abels
# The MIT License (MIT)
#
# 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.
"""
Formatting logs into human readable reports.
"""
def _underline(text, line='-'):
return [text, line * len(text)]
def status(logger):
"""
Creates a one-line summary on the actions that were logged by the given
Logger.
:type logger: Logger
:param logger: The logger that recorded what happened in the queue.
:rtype: string
:return: A string summarizing the status.
"""
aborted = logger.get_aborted_actions()
succeeded = logger.get_succeeded_actions()
total = aborted + succeeded
if total == 0:
return 'No actions done'
elif total == 1 and succeeded == 1:
return 'One action done (succeeded)'
elif total == 1 and succeeded == 0:
return 'One action done (failed)'
elif total == succeeded:
return '%d actions total (all succeeded)' % total
elif succeeded == 0:
return '%d actions total (all failed)' % total
else:
msg = '%d actions total (%d failed, %d succeeded)'
return msg % (total, aborted, succeeded)
def summarize(logger):
"""
Creates a short summary on the actions that were logged by the given
Logger.
:type logger: Logger
:param logger: The logger that recorded what happened in the queue.
:rtype: string
:return: A string summarizing the status of every performed task.
"""
summary = []
for log in logger.get_logs():
thestatus = log.has_error() and log.get_error(False) or 'ok'
name = log.get_name()
summary.append(name + ': ' + thestatus)
return '\n'.join(summary)
def format(logger,
show_successful=True,
show_errors=True,
show_traceback=True):
"""
Prints a report of the actions that were logged by the given Logger.
The report contains a list of successful actions, as well as the full
error message on failed actions.
:type logger: Logger
:param logger: The logger that recorded what happened in the queue.
:rtype: string
:return: A string summarizing the status of every performed task.
"""
output = []
# Print failed actions.
errors = logger.get_aborted_actions()
if show_errors and errors:
output += _underline('Failed actions:')
for log in logger.get_aborted_logs():
if show_traceback:
output.append(log.get_name() + ':')
output.append(log.get_error())
else:
output.append(log.get_name() + ': ' + log.get_error(False))
output.append('')
# Print successful actions.
if show_successful:
output += _underline('Successful actions:')
for log in logger.get_succeeded_logs():
output.append(log.get_name())
output.append('')
return '\n'.join(output).strip()
| """
Formatting logs into human readable reports.
"""
def _underline(text, line='-'):
return [text, line * len(text)]
def status(logger):
"""
Creates a one-line summary on the actions that were logged by the given
Logger.
:type logger: Logger
:param logger: The logger that recorded what happened in the queue.
:rtype: string
:return: A string summarizing the status.
"""
aborted = logger.get_aborted_actions()
succeeded = logger.get_succeeded_actions()
total = aborted + succeeded
if total == 0:
return 'No actions done'
elif total == 1 and succeeded == 1:
return 'One action done (succeeded)'
elif total == 1 and succeeded == 0:
return 'One action done (failed)'
elif total == succeeded:
return '%d actions total (all succeeded)' % total
elif succeeded == 0:
return '%d actions total (all failed)' % total
else:
msg = '%d actions total (%d failed, %d succeeded)'
return msg % (total, aborted, succeeded)
def summarize(logger):
"""
Creates a short summary on the actions that were logged by the given
Logger.
:type logger: Logger
:param logger: The logger that recorded what happened in the queue.
:rtype: string
:return: A string summarizing the status of every performed task.
"""
summary = []
for log in logger.get_logs():
thestatus = log.has_error() and log.get_error(False) or 'ok'
name = log.get_name()
summary.append(name + ': ' + thestatus)
return '\n'.join(summary)
def format(logger, show_successful=True, show_errors=True, show_traceback=True):
"""
Prints a report of the actions that were logged by the given Logger.
The report contains a list of successful actions, as well as the full
error message on failed actions.
:type logger: Logger
:param logger: The logger that recorded what happened in the queue.
:rtype: string
:return: A string summarizing the status of every performed task.
"""
output = []
errors = logger.get_aborted_actions()
if show_errors and errors:
output += _underline('Failed actions:')
for log in logger.get_aborted_logs():
if show_traceback:
output.append(log.get_name() + ':')
output.append(log.get_error())
else:
output.append(log.get_name() + ': ' + log.get_error(False))
output.append('')
if show_successful:
output += _underline('Successful actions:')
for log in logger.get_succeeded_logs():
output.append(log.get_name())
output.append('')
return '\n'.join(output).strip() |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2019, Micah Hunsberger (@mhunsber)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r'''
---
module: win_file_compression
short_description: Alters the compression of files and directories on NTFS partitions.
description:
- This module sets the compressed attribute for files and directories on a filesystem that supports it like NTFS.
- NTFS compression can be used to save disk space.
options:
path:
description:
- The full path of the file or directory to modify.
- The path must exist on file system that supports compression like NTFS.
required: yes
type: path
state:
description:
- Set to C(present) to ensure the I(path) is compressed.
- Set to C(absent) to ensure the I(path) is not compressed.
type: str
choices:
- absent
- present
default: present
recurse:
description:
- Whether to recursively apply changes to all subdirectories and files.
- This option only has an effect when I(path) is a directory.
- When set to C(false), only applies changes to I(path).
- When set to C(true), applies changes to I(path) and all subdirectories and files.
type: bool
default: false
force:
description:
- This option only has an effect when I(recurse) is C(true)
- If C(true), will check the compressed state of all subdirectories and files
and make a change if any are different from I(compressed).
- If C(false), will only make a change if the compressed state of I(path) is different from I(compressed).
- If the folder structure is complex or contains a lot of files, it is recommended to set this
option to C(false) so that not every file has to be checked.
type: bool
default: true
author:
- Micah Hunsberger (@mhunsber)
notes:
- M(community.windows.win_file_compression) sets the file system's compression state, it does not create a zip
archive file.
- For more about NTFS Compression, see U(http://www.ntfs.com/ntfs-compressed.htm)
'''
EXAMPLES = r'''
- name: Compress log files directory
community.windows.win_file_compression:
path: C:\Logs
state: present
- name: Decompress log files directory
community.windows.win_file_compression:
path: C:\Logs
state: absent
- name: Compress reports directory and all subdirectories
community.windows.win_file_compression:
path: C:\business\reports
state: present
recurse: yes
# This will only check C:\business\reports for the compressed state
# If C:\business\reports is compressed, it will not make a change
# even if one of the child items is uncompressed
- name: Compress reports directory and all subdirectories (quick)
community.windows.win_file_compression:
path: C:\business\reports
compressed: yes
recurse: yes
force: no
'''
RETURN = r'''
rc:
description:
- The return code of the compress/uncompress operation.
- If no changes are made or the operation is successful, rc is 0.
returned: always
sample: 0
type: int
'''
| documentation = "\n---\nmodule: win_file_compression\nshort_description: Alters the compression of files and directories on NTFS partitions.\ndescription:\n - This module sets the compressed attribute for files and directories on a filesystem that supports it like NTFS.\n - NTFS compression can be used to save disk space.\noptions:\n path:\n description:\n - The full path of the file or directory to modify.\n - The path must exist on file system that supports compression like NTFS.\n required: yes\n type: path\n state:\n description:\n - Set to C(present) to ensure the I(path) is compressed.\n - Set to C(absent) to ensure the I(path) is not compressed.\n type: str\n choices:\n - absent\n - present\n default: present\n recurse:\n description:\n - Whether to recursively apply changes to all subdirectories and files.\n - This option only has an effect when I(path) is a directory.\n - When set to C(false), only applies changes to I(path).\n - When set to C(true), applies changes to I(path) and all subdirectories and files.\n type: bool\n default: false\n force:\n description:\n - This option only has an effect when I(recurse) is C(true)\n - If C(true), will check the compressed state of all subdirectories and files\n and make a change if any are different from I(compressed).\n - If C(false), will only make a change if the compressed state of I(path) is different from I(compressed).\n - If the folder structure is complex or contains a lot of files, it is recommended to set this\n option to C(false) so that not every file has to be checked.\n type: bool\n default: true\nauthor:\n - Micah Hunsberger (@mhunsber)\nnotes:\n - M(community.windows.win_file_compression) sets the file system's compression state, it does not create a zip\n archive file.\n - For more about NTFS Compression, see U(http://www.ntfs.com/ntfs-compressed.htm)\n"
examples = '\n- name: Compress log files directory\n community.windows.win_file_compression:\n path: C:\\Logs\n state: present\n\n- name: Decompress log files directory\n community.windows.win_file_compression:\n path: C:\\Logs\n state: absent\n\n- name: Compress reports directory and all subdirectories\n community.windows.win_file_compression:\n path: C:\\business\\reports\n state: present\n recurse: yes\n\n# This will only check C:\\business\\reports for the compressed state\n# If C:\\business\\reports is compressed, it will not make a change\n# even if one of the child items is uncompressed\n\n- name: Compress reports directory and all subdirectories (quick)\n community.windows.win_file_compression:\n path: C:\\business\\reports\n compressed: yes\n recurse: yes\n force: no\n'
return = '\nrc:\n description:\n - The return code of the compress/uncompress operation.\n - If no changes are made or the operation is successful, rc is 0.\n returned: always\n sample: 0\n type: int\n' |
class PopulationIsNotEvaluatedException(RuntimeError):
pass
class StopEvolution(Exception):
pass
| class Populationisnotevaluatedexception(RuntimeError):
pass
class Stopevolution(Exception):
pass |
class Rule:
"""Represents a single production rule of a grammar.
Rules are usually written using some sort of BNF-like notation,
for example, 'list ::= list item' would be a valid rule. A rule
always has a single non-terminal symbol on the left and a list
(possibly empty) of arbitrary symbols on the right. The above rule
would be constructed as follows.
>>> r = Rule('list', ('list', 'item'))
>>> print(r)
'list' = 'list', 'item';
The symbols can be arbitrary objects, not just strings. They must,
however, be hashable. (Hashability is not enforced by the Rule class
directly.)
>>> print(Rule(0, (1, 2)))
0 = 1, 2;
Occasionaly, you must pass a one-tuple.
>>> print(Rule('root', ('list',)))
'root' = 'list';
Note that terminal and non-terminal symbols are written
using the same syntax -- the differentiation only occurs
at the grammar level. The symbols standing on the left side of some rule
are considered non-terminal.
A rule can have no symbols on the right, such rules produce empty strings.
>>> print(Rule('e', ()))
'e' = ;
The left and right symbols can be accessed via 'left' and 'right' members.
>>> r.left, r.right
('list', ('list', 'item'))
A rule can have an associated semantic action. The action is not interpreted in any
way, but can be used to carry additional information in the rule. The default is None.
>>> repr(r.action)
'None'
A custom semantic action is associated in constructor.
>>> def concat_list(self, list, item):
... list.append(item)
... return list
>>> r = Rule('list', ('list', 'item'), action=concat_list)
>>> r.action(None, [], 1)
[1]
"""
def __init__(self, left, right, action=None):
"""
Constructs a rule from the left symbol, an iterable of right symbols
and an associated semantic action.
"""
self.left = left
self.right = tuple(right)
self.action = action
def __eq__(self, other):
return (self.left, self.right, self.action) == (other.left, other.right, other.action)
def __hash__(self):
return hash((self.left, self.right, self.action))
def __str__(self):
"""
>>> print(Rule('a', ('b', 'c')))
'a' = 'b', 'c';
>>> print(Rule('a', ()))
'a' = ;
>>> def _custom_action(ctx): pass
>>> print(Rule('a', (), _custom_action))
'a' = ; {_custom_action}
>>> print(Rule('a', (), lambda x: x))
'a' = ; {<lambda>}
"""
r = [repr(self.left), ' = ', ', '.join(repr(symbol) for symbol in self.right), ';']
if self.action is not None:
r.extend((' {', getattr(self.action, '__name__', ''), '}'))
return ''.join(r)
def __repr__(self):
"""
>>> print(repr(Rule('a', ('b', 'c'))))
Rule('a', ('b', 'c'))
>>> print(repr(Rule('a', ())))
Rule('a', ())
>>> def _my_action(ctx): return None
>>> print(repr(Rule('a', (), action=_my_action))) # doctest: +ELLIPSIS
Rule('a', (), <function _my_action...>)
>>> print(repr(Rule('a', (), action=lambda x: x))) # doctest: +ELLIPSIS
Rule('a', (), <function <lambda>...>)
"""
if self.action is not None:
args = (self.left, self.right, self.action)
else:
args = (self.left, self.right)
return 'Rule(%s)' % ', '.join((repr(arg) for arg in args))
| class Rule:
"""Represents a single production rule of a grammar.
Rules are usually written using some sort of BNF-like notation,
for example, 'list ::= list item' would be a valid rule. A rule
always has a single non-terminal symbol on the left and a list
(possibly empty) of arbitrary symbols on the right. The above rule
would be constructed as follows.
>>> r = Rule('list', ('list', 'item'))
>>> print(r)
'list' = 'list', 'item';
The symbols can be arbitrary objects, not just strings. They must,
however, be hashable. (Hashability is not enforced by the Rule class
directly.)
>>> print(Rule(0, (1, 2)))
0 = 1, 2;
Occasionaly, you must pass a one-tuple.
>>> print(Rule('root', ('list',)))
'root' = 'list';
Note that terminal and non-terminal symbols are written
using the same syntax -- the differentiation only occurs
at the grammar level. The symbols standing on the left side of some rule
are considered non-terminal.
A rule can have no symbols on the right, such rules produce empty strings.
>>> print(Rule('e', ()))
'e' = ;
The left and right symbols can be accessed via 'left' and 'right' members.
>>> r.left, r.right
('list', ('list', 'item'))
A rule can have an associated semantic action. The action is not interpreted in any
way, but can be used to carry additional information in the rule. The default is None.
>>> repr(r.action)
'None'
A custom semantic action is associated in constructor.
>>> def concat_list(self, list, item):
... list.append(item)
... return list
>>> r = Rule('list', ('list', 'item'), action=concat_list)
>>> r.action(None, [], 1)
[1]
"""
def __init__(self, left, right, action=None):
"""
Constructs a rule from the left symbol, an iterable of right symbols
and an associated semantic action.
"""
self.left = left
self.right = tuple(right)
self.action = action
def __eq__(self, other):
return (self.left, self.right, self.action) == (other.left, other.right, other.action)
def __hash__(self):
return hash((self.left, self.right, self.action))
def __str__(self):
"""
>>> print(Rule('a', ('b', 'c')))
'a' = 'b', 'c';
>>> print(Rule('a', ()))
'a' = ;
>>> def _custom_action(ctx): pass
>>> print(Rule('a', (), _custom_action))
'a' = ; {_custom_action}
>>> print(Rule('a', (), lambda x: x))
'a' = ; {<lambda>}
"""
r = [repr(self.left), ' = ', ', '.join((repr(symbol) for symbol in self.right)), ';']
if self.action is not None:
r.extend((' {', getattr(self.action, '__name__', ''), '}'))
return ''.join(r)
def __repr__(self):
"""
>>> print(repr(Rule('a', ('b', 'c'))))
Rule('a', ('b', 'c'))
>>> print(repr(Rule('a', ())))
Rule('a', ())
>>> def _my_action(ctx): return None
>>> print(repr(Rule('a', (), action=_my_action))) # doctest: +ELLIPSIS
Rule('a', (), <function _my_action...>)
>>> print(repr(Rule('a', (), action=lambda x: x))) # doctest: +ELLIPSIS
Rule('a', (), <function <lambda>...>)
"""
if self.action is not None:
args = (self.left, self.right, self.action)
else:
args = (self.left, self.right)
return 'Rule(%s)' % ', '.join((repr(arg) for arg in args)) |
#121
# Time: O(n)
# Space: O(1)
# Say you have an array for which the ith element is
# the price of a given stock on day i.
# If you were only permitted to complete at most one transaction
# (ie, buy one and sell one share of the stock),
# design an algorithm to find the maximum profit.
#
# Example 1:
# Input: [7, 1, 5, 3, 6, 4]
# Output: 5
# max. difference = 6-1 = 5
# (not 7-1 = 6, as selling price needs to be larger than buying price)
#
# Example 2:
# Input: [7, 6, 4, 3, 1]
# Output: 0
# In this case, no transaction is done, i.e. max profit = 0.
class arraySol():
def bestTimeSellBuyI(self,prices):
min_price,max_profit=float('Inf'),0
for price in prices:
min_price=min(min_price,price)
max_profit=max(max_profit,price-min_price)
return max_profit
| class Arraysol:
def best_time_sell_buy_i(self, prices):
(min_price, max_profit) = (float('Inf'), 0)
for price in prices:
min_price = min(min_price, price)
max_profit = max(max_profit, price - min_price)
return max_profit |
def partition(nums, low, high):
pivot = nums[(low + high) // 2]
i = low - 1
j = high + 1
while True:
i += 1
while nums[i] < pivot:
i += 1
j -= 1
while nums[j] > pivot:
j -= 1
if i >= j:
return j
nums[i], nums[j] = nums[j], nums[i]
def quick_sort(nums):
def _quick_sort(items, low, high):
if low < high:
split_index = partition(items, low, high)
_quick_sort(items, low, split_index)
_quick_sort(items, split_index + 1, high)
_quick_sort(nums, 0, len(nums) - 1)
random_list_of_nums = [25, 10, 34, 16, 99]
quick_sort(random_list_of_nums)
print(random_list_of_nums)
| def partition(nums, low, high):
pivot = nums[(low + high) // 2]
i = low - 1
j = high + 1
while True:
i += 1
while nums[i] < pivot:
i += 1
j -= 1
while nums[j] > pivot:
j -= 1
if i >= j:
return j
(nums[i], nums[j]) = (nums[j], nums[i])
def quick_sort(nums):
def _quick_sort(items, low, high):
if low < high:
split_index = partition(items, low, high)
_quick_sort(items, low, split_index)
_quick_sort(items, split_index + 1, high)
_quick_sort(nums, 0, len(nums) - 1)
random_list_of_nums = [25, 10, 34, 16, 99]
quick_sort(random_list_of_nums)
print(random_list_of_nums) |
h, w = map(int, input().split())
ans = 0
if h == 1 or w == 1:
ans = 1
else:
if w % 2 == 0:
ans += (w//2)*h
else:
if h % 2 == 0:
ans += (h//2)*(w//2*2+1)
else:
ans += (h//2)*(w//2*2+1)+(w//2+1)
print(max(1, ans))
| (h, w) = map(int, input().split())
ans = 0
if h == 1 or w == 1:
ans = 1
elif w % 2 == 0:
ans += w // 2 * h
elif h % 2 == 0:
ans += h // 2 * (w // 2 * 2 + 1)
else:
ans += h // 2 * (w // 2 * 2 + 1) + (w // 2 + 1)
print(max(1, ans)) |
class User:
""" Contains additional user data """
def __init__(self, sid: str, nickname: str):
self._sid = sid
self._nickname = nickname
self._rooms = []
def get_sid(self) -> str:
""" Returns the user's unique SID """
return self._sid
@property
def nickname(self) -> str:
""" Returns the user's nickname """
return self._nickname
@nickname.setter
def nickname(self, newnick: str):
""" Changes the user's nickname """
self._nickname = newnick
def join_room(self, roomname: str):
""" Adds a joined room to the user """
self._rooms.append(roomname)
def leave_room(self, roomname: str):
""" Removes a previously joined room from the user """
self._rooms.remove(roomname)
def get_rooms(self) -> []:
""" Returns all rooms a user is in """
return list(self._rooms)
def is_in_room(self, roomname: str) -> bool:
""" Returns whether a user is in a given room """
return roomname in self._rooms
def get_object(self) -> dict:
""" Returns the JSON-able object for this user """
return {'sid': self._sid, 'nickname': self._nickname, 'rooms': self._rooms}
| class User:
""" Contains additional user data """
def __init__(self, sid: str, nickname: str):
self._sid = sid
self._nickname = nickname
self._rooms = []
def get_sid(self) -> str:
""" Returns the user's unique SID """
return self._sid
@property
def nickname(self) -> str:
""" Returns the user's nickname """
return self._nickname
@nickname.setter
def nickname(self, newnick: str):
""" Changes the user's nickname """
self._nickname = newnick
def join_room(self, roomname: str):
""" Adds a joined room to the user """
self._rooms.append(roomname)
def leave_room(self, roomname: str):
""" Removes a previously joined room from the user """
self._rooms.remove(roomname)
def get_rooms(self) -> []:
""" Returns all rooms a user is in """
return list(self._rooms)
def is_in_room(self, roomname: str) -> bool:
""" Returns whether a user is in a given room """
return roomname in self._rooms
def get_object(self) -> dict:
""" Returns the JSON-able object for this user """
return {'sid': self._sid, 'nickname': self._nickname, 'rooms': self._rooms} |
### test examples for the rast_client.py file
def test_somefunction():
pass
| def test_somefunction():
pass |
include("common.py")
beta_decarboxylation = ruleGMLString("""rule [
ruleID "Beta Decarboxylation"
labelType "term"
left [
edge [ source 4 target 7 label "-" ]
edge [ source 7 target 9 label "-" ]
edge [ source 9 target 10 label "-" ]
]
context [
node [ id 1 label "*" ]
edge [ source 1 target 2 label "-" ]
node [ id 2 label "C" ]
edge [ source 2 target 3 label "=" ]
node [ id 3 label "O" ]
edge [ source 2 target 4 label "-" ]
node [ id 4 label "C" ]
edge [ source 4 target 5 label "-" ]
node [ id 5 label "*" ]
edge [ source 4 target 6 label "-" ]
node [ id 6 label "H" ]
node [ id 7 label "C" ]
edge [ source 7 target 8 label "=" ]
node [ id 8 label "O" ]
node [ id 9 label "O" ]
node [ id 10 label "H" ]
]
right [
edge [ source 7 target 9 label "=" ]
edge [ source 4 target 10 label "-" ]
]
]
""")
'''def betaDecarboxylation2Gen():
r = RuleGen("Beta-decarboxylation 2")
r.label = "term"
r.left.extend([
'edge [ source 0 target 3 label "-" ]',
'edge [ source 3 target 5 label "-" ]',
'edge [ source 5 target 6 label "-" ]',
])
r.context.extend([
'node [ id 0 label "C" ]',
'node [ id 1 label "*" ]',
'node [ id 2 label "*" ]',
'edge [ source 0 target 1 label "-" ]',
'edge [ source 0 target 2 label "-" ]',
'node [ id 3 label "C" ]',
'node [ id 4 label "O" ]',
'edge [ source 3 target 4 label "=" ]',
'node [ id 5 label "O" ]',
'node [ id 6 label "H" ]',
'# Variation part',
'node [ id 10 label "C" ]',
'edge [ source 0 target 10 label "-" ]',
])
r.right.extend([
'edge [ source 3 target 5 label "=" ]',
'edge [ source 0 target 6 label "-" ]',
])
# CN
r1 = r.clone()
r1.name += " CN"
r1.context.extend([
'node [ id 11 label "N" ]',
'edge [ source 10 target 11 label "#" ]',
])
yield r1.loadRule()
# CO*
r.name += " CO"
r.context.extend([
'node [ id 11 label "O" ]',
'edge [ source 10 target 11 label "=" ]',
'node [ id 13 label "H" ]',
'edge [ source 10 target 12 label "-" ]',
'edge [ source 12 target 13 label "-" ]',
])
# COOH
r1 = r.clone()
r1.name += "OH"
r1.context.extend([
'node [ id 12 label "O" ]',
])
yield r1.loadRule()
# CONH2
r1 = r.clone()
r1.name += "NH2"
r1.context.extend([
'node [ id 12 label "N" ]',
'node [ id 14 label "H" ]',
'edge [ source 12 target 14 label "-" ]',
])
yield r1.loadRule()
# COSH
r1 = r.clone()
r1.name += "SH"
r1.context.extend([
'node [ id 12 label "S" ]',
])
yield r1.loadRule()
betaDecatboxylation2 = [a for a in betaDecarboxylation2Gen()]''' | include('common.py')
beta_decarboxylation = rule_gml_string('rule [\n\truleID "Beta Decarboxylation"\n\tlabelType "term"\n\tleft [\n\t\tedge [ source 4 target 7 label "-" ]\n\t\tedge [ source 7 target 9 label "-" ]\n\t\tedge [ source 9 target 10 label "-" ]\n\t]\n\tcontext [\n\t\tnode [ id 1 label "*" ]\n\t\tedge [ source 1 target 2 label "-" ]\n\t\tnode [ id 2 label "C" ]\n\t\tedge [ source 2 target 3 label "=" ]\n\t\tnode [ id 3 label "O" ]\n\t\tedge [ source 2 target 4 label "-" ]\n\t\tnode [ id 4 label "C" ]\n\t\tedge [ source 4 target 5 label "-" ]\n\t\tnode [ id 5 label "*" ]\n\t\tedge [ source 4 target 6 label "-" ]\n\t\tnode [ id 6 label "H" ]\n\t\tnode [ id 7 label "C" ]\n\t\tedge [ source 7 target 8 label "=" ]\n\t\tnode [ id 8 label "O" ]\n\t\tnode [ id 9 label "O" ]\n\t\tnode [ id 10 label "H" ]\n\t]\n\tright [\n\t\tedge [ source 7 target 9 label "=" ]\n\t\tedge [ source 4 target 10 label "-" ]\n\t]\n]\n')
'def betaDecarboxylation2Gen():\n\tr = RuleGen("Beta-decarboxylation 2")\n\tr.label = "term"\n\tr.left.extend([\n\t\t\'edge [ source 0 target 3 label "-" ]\',\n\t\t\'edge [ source 3 target 5 label "-" ]\',\n\t\t\'edge [ source 5 target 6 label "-" ]\',\n\t])\n\tr.context.extend([\n\t\t\'node [ id 0 label "C" ]\',\n\t\t\'node [ id 1 label "*" ]\',\n\t\t\'node [ id 2 label "*" ]\',\n\t\t\'edge [ source 0 target 1 label "-" ]\',\n\t\t\'edge [ source 0 target 2 label "-" ]\',\n\t\t\'node [ id 3 label "C" ]\',\n\t\t\'node [ id 4 label "O" ]\',\n\t\t\'edge [ source 3 target 4 label "=" ]\',\n\t\t\'node [ id 5 label "O" ]\',\n\t\t\'node [ id 6 label "H" ]\',\n\t\t\'# Variation part\',\n\t\t\'node [ id 10 label "C" ]\',\n\t\t\'edge [ source 0 target 10 label "-" ]\',\n\t])\n\tr.right.extend([\n\t\t\'edge [ source 3 target 5 label "=" ]\',\n\t\t\'edge [ source 0 target 6 label "-" ]\',\n\t])\n\t# CN\n\tr1 = r.clone()\n\tr1.name += " CN"\n\tr1.context.extend([\n\t\t\'node [ id 11 label "N" ]\',\n\t\t\'edge [ source 10 target 11 label "#" ]\',\n\t])\n\tyield r1.loadRule()\n\t# CO*\n\tr.name += " CO"\n\tr.context.extend([\n\t\t\'node [ id 11 label "O" ]\',\n\t\t\'edge [ source 10 target 11 label "=" ]\',\n\t\t\'node [ id 13 label "H" ]\',\n\t\t\'edge [ source 10 target 12 label "-" ]\',\n\t\t\'edge [ source 12 target 13 label "-" ]\',\n\t])\n\t# COOH\n\tr1 = r.clone()\n\tr1.name += "OH"\n\tr1.context.extend([\n\t\t\'node [ id 12 label "O" ]\',\n\t])\n\tyield r1.loadRule()\n\t# CONH2\n\tr1 = r.clone()\n\tr1.name += "NH2"\n\tr1.context.extend([\n\t\t\'node [ id 12 label "N" ]\',\n\t\t\'node [ id 14 label "H" ]\',\n\t\t\'edge [ source 12 target 14 label "-" ]\',\n\t])\n\tyield r1.loadRule()\n\t# COSH\n\tr1 = r.clone()\n\tr1.name += "SH"\n\tr1.context.extend([\n\t\t\'node [ id 12 label "S" ]\',\n\t])\n\tyield r1.loadRule()\n\t\nbetaDecatboxylation2 = [a for a in betaDecarboxylation2Gen()]' |
def main():
#with open(filename, (open for reading 'r', #writing 'w' or reading and writing 'rw'))
word = input("What's your word? Enter it here: ")
print("Scrabble score: " + (str)(scrabble_value(word)));
#everything past here the file is closed
# scrabble_value("potato")
#three options:
# 1) write a program to compute the "scrabble score" or a word (assuming no tile modifiers).
#I'll provide tile values for each tile
# 2) Write a program to determine if a given "scrabble rack" of seven letters can be formed into a valid srabble word using the provided scrabble_dictionary.txt
# valid_word("cearr") --> return a list of words from the dictionary that you can make with these letters; if no words ossible, return emoty list
# 3) A small game: "GHOST"
# a loop with text input (use input() function we talked about)
#4) "GHOST BOT" same as above but one player, and then the computer makes guesses that make life hard for the player
#def scrabble_value(word):
# do some work
# return the value
def scrabble_value(word):
score = 0
scrabble_dict = {
"a": 1,
"b": 3,
"c": 3,
"d": 2,
"e": 1,
"f": 4,
"g": 2,
"h": 4,
"i": 1,
"j": 8,
"k": 5,
"l": 1,
"m": 3,
"n": 1,
"o": 1,
"p": 3,
"q": 10,
"r": 1,
"s": 1,
"t": 1,
"u": 1,
"v": 4,
"w": 4,
"x": 8,
"y": 4,
"z": 10
}
for i in word:
score = score + scrabble_dict[i]
return score
if __name__ == '__main__':
main()
| def main():
word = input("What's your word? Enter it here: ")
print('Scrabble score: ' + str(scrabble_value(word)))
def scrabble_value(word):
score = 0
scrabble_dict = {'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10}
for i in word:
score = score + scrabble_dict[i]
return score
if __name__ == '__main__':
main() |
ALL_DRIVERS = ['chromedriver', 'geckodriver']
DEFAULT_DRIVERS = ['chromedriver', 'geckodriver']
CHROMEDRIVER_STORAGE_URL = 'https://chromedriver.storage.googleapis.com'
CHROMEDRIVER_LATEST_FILE = 'https://chromedriver.storage.googleapis.com/LATEST_RELEASE'
GECKODRIVER_LASTEST_URL = 'https://api.github.com/repos/mozilla/geckodriver/releases/latest'
GECKODRIVER_URL_BASE = 'https://github.com/mozilla/geckodriver/releases/download' | all_drivers = ['chromedriver', 'geckodriver']
default_drivers = ['chromedriver', 'geckodriver']
chromedriver_storage_url = 'https://chromedriver.storage.googleapis.com'
chromedriver_latest_file = 'https://chromedriver.storage.googleapis.com/LATEST_RELEASE'
geckodriver_lastest_url = 'https://api.github.com/repos/mozilla/geckodriver/releases/latest'
geckodriver_url_base = 'https://github.com/mozilla/geckodriver/releases/download' |
"""State testing.
TODO: Create more comprehensive testing
"""
# from cadcad.space import Space
def test_class_creation() -> None:
"""Test class creation."""
| """State testing.
TODO: Create more comprehensive testing
"""
def test_class_creation() -> None:
"""Test class creation.""" |
#!/usr/local/bin/python3
"""This program takes a user's input on Name and Breed of a dog, then prints a list of the dogs."""
class Dog:
def __init__(self,name,breed):
self.name = name
self.breed = breed
def __str__(self):
return "{0}:{1}".format(self.name, self.breed)
if __name__ == "__main__":
dogs = []
while True:
name = input('Name: ')
if not name:
print("Goodbye!")
break
breed = input('Breed: ')
dogs.append(Dog(name, breed))
print("DOGS")
for i in range(len(dogs)):
print("{0}. {1}".format(i,dogs[i]))
print("*" * 20) | """This program takes a user's input on Name and Breed of a dog, then prints a list of the dogs."""
class Dog:
def __init__(self, name, breed):
self.name = name
self.breed = breed
def __str__(self):
return '{0}:{1}'.format(self.name, self.breed)
if __name__ == '__main__':
dogs = []
while True:
name = input('Name: ')
if not name:
print('Goodbye!')
break
breed = input('Breed: ')
dogs.append(dog(name, breed))
print('DOGS')
for i in range(len(dogs)):
print('{0}. {1}'.format(i, dogs[i]))
print('*' * 20) |
class restaurant:
def __init__(self,restaurant_name,cuisine_type):
"""initialize restaurant name and cusine"""
self.restaurant_name = restaurant_name
self.cuisine_type = cuisine_type
self.number_served = 0 #setting default value for an attribute
def describe_restaurant(self):
print(self.restaurant_name.title())
print('cusine = ',self. cuisine_type)
def open_restaurant(self):
print(self.restaurant_name.title() + " is open now. Thank You!")
class IceCreamStand(restaurant):
def __init__(self,restaurant_name,cuisine_type,flavor):
super().__init__(restaurant_name,cuisine_type)
self.flavor = flavor
def DispalyFLavor(self):
for i in flavor:
print("Flavours are : ",self.flavor)
list = []
if __name__ == '__main__':
res = restaurant('the arch',8)
res.describe_restaurant()
res.open_restaurant()
icecream = IceCreamStand('the velvat',5)
list.append = IceCreamStand('vanilla')
list.append = IceCreamStand('chocolate')
list.append = IceCreamStand('strawberry')
icecream.DispalyFLavor()
| class Restaurant:
def __init__(self, restaurant_name, cuisine_type):
"""initialize restaurant name and cusine"""
self.restaurant_name = restaurant_name
self.cuisine_type = cuisine_type
self.number_served = 0
def describe_restaurant(self):
print(self.restaurant_name.title())
print('cusine = ', self.cuisine_type)
def open_restaurant(self):
print(self.restaurant_name.title() + ' is open now. Thank You!')
class Icecreamstand(restaurant):
def __init__(self, restaurant_name, cuisine_type, flavor):
super().__init__(restaurant_name, cuisine_type)
self.flavor = flavor
def dispaly_f_lavor(self):
for i in flavor:
print('Flavours are : ', self.flavor)
list = []
if __name__ == '__main__':
res = restaurant('the arch', 8)
res.describe_restaurant()
res.open_restaurant()
icecream = ice_cream_stand('the velvat', 5)
list.append = ice_cream_stand('vanilla')
list.append = ice_cream_stand('chocolate')
list.append = ice_cream_stand('strawberry')
icecream.DispalyFLavor() |
# Ordering
# Create a program that allows entry of 10 numbers and then sorts them into ascending or descending order, based on user input.
def main():
isNumber = input('Do you want to enter numbers or a string: [N/S] ').upper()
if isNumber == 'N':
nums = [int(input('Enter a number: ')) for _ in range(10)]
order = input('Do you want to order in ascending or descending order [A/D]: ').upper()
if order == 'A':
nums.sort()
elif order == 'D':
nums.sort(reverse=True)
print(nums)
elif isNumber == 'S':
string = [i for i in input('Enter a string: ')]
order = input('Do you want to order in ascending or descending order [A/D]: ').upper()
if order == 'A':
string.sort()
elif order == 'D':
string.sort(reverse=True)
print(''.join(string))
if __name__ == '__main__':
main() | def main():
is_number = input('Do you want to enter numbers or a string: [N/S] ').upper()
if isNumber == 'N':
nums = [int(input('Enter a number: ')) for _ in range(10)]
order = input('Do you want to order in ascending or descending order [A/D]: ').upper()
if order == 'A':
nums.sort()
elif order == 'D':
nums.sort(reverse=True)
print(nums)
elif isNumber == 'S':
string = [i for i in input('Enter a string: ')]
order = input('Do you want to order in ascending or descending order [A/D]: ').upper()
if order == 'A':
string.sort()
elif order == 'D':
string.sort(reverse=True)
print(''.join(string))
if __name__ == '__main__':
main() |
# This problem was recently asked by Twitter:
# Implement a class for a stack that supports all the regular functions (push, pop) and
# an additional function of max() which returns the maximum element in the stack (return None if the stack is empty)
# Each method should run in constant time.
class MaxStack:
def __init__(self):
# Fill this in.
self.items = []
def push(self, val):
# Fill this in.
self.items.append(val)
def pop(self):
# Fill this in.
return self.items.pop()
def max(self):
# Fill this in.
maxN = 0
if len(self.items) == 0:
return None
for i in self.items:
if i >= maxN:
maxN = i
return maxN
s = MaxStack()
s.push(1)
s.push(2)
s.push(3)
s.push(2)
print (s.max())
# 3
s.pop()
s.pop()
print (s.max())
# 2 | class Maxstack:
def __init__(self):
self.items = []
def push(self, val):
self.items.append(val)
def pop(self):
return self.items.pop()
def max(self):
max_n = 0
if len(self.items) == 0:
return None
for i in self.items:
if i >= maxN:
max_n = i
return maxN
s = max_stack()
s.push(1)
s.push(2)
s.push(3)
s.push(2)
print(s.max())
s.pop()
s.pop()
print(s.max()) |
coins = {
"Khan's Concentrated Magic": 80000,
"Luminous Cobalt Ingot": 800,
"Bright Reef Piece": 140,
"Great Ocean Dark Iron": 160,
"Cobalt Ingot": 150,
"Brilliant Rock Salt Ingot": 1600,
"Seaweed Stalk": 600,
"Enhanced Island Tree Coated Plywood": 80,
"Pure Pearl Crystal": 550,
"Cox Pirates' Artifact (Parley Beginner)": 150,
"Cox Pirates' Artifact (Parley Expert)": 800,
"Cox Pirates' Artifact (Combat)": 800,
"Deep Sea Memory Filled Glue": 140,
"Brilliant Pearl Shard": 1600,
"Ruddy Manganese Nodule": 1500,
"Tear of the Ocean": 3900,
"Khan's Tendon": 6000,
"Khan's Scale": 1600,
"Frosted Black Stone": 20,
"Tide-Dyed Standardized Timber Square": 350,
"Deep Tide-Dyed Standardized Timber Square": 1000,
"Moon Vein Flax Fabric": 600,
"Moon Scale Plywood": 160,
"Fiery Black Stone": 10,
"Mandragora Essence": 100,
} | coins = {"Khan's Concentrated Magic": 80000, 'Luminous Cobalt Ingot': 800, 'Bright Reef Piece': 140, 'Great Ocean Dark Iron': 160, 'Cobalt Ingot': 150, 'Brilliant Rock Salt Ingot': 1600, 'Seaweed Stalk': 600, 'Enhanced Island Tree Coated Plywood': 80, 'Pure Pearl Crystal': 550, "Cox Pirates' Artifact (Parley Beginner)": 150, "Cox Pirates' Artifact (Parley Expert)": 800, "Cox Pirates' Artifact (Combat)": 800, 'Deep Sea Memory Filled Glue': 140, 'Brilliant Pearl Shard': 1600, 'Ruddy Manganese Nodule': 1500, 'Tear of the Ocean': 3900, "Khan's Tendon": 6000, "Khan's Scale": 1600, 'Frosted Black Stone': 20, 'Tide-Dyed Standardized Timber Square': 350, 'Deep Tide-Dyed Standardized Timber Square': 1000, 'Moon Vein Flax Fabric': 600, 'Moon Scale Plywood': 160, 'Fiery Black Stone': 10, 'Mandragora Essence': 100} |
class Command:
def execute(self):
raise NotImplementedError
| class Command:
def execute(self):
raise NotImplementedError |
# Use a Q to keep recent timestamps. Whenever ping is called, add t to Q and remove all the expired ones. Return len(Q)
class RecentCounter:
def __init__(self):
self.Q = []
def ping(self, t: int) -> int:
self.Q.append(t)
while self.Q[0]<t-3000:
self.Q.pop(0)
return len(self.Q)
# Your RecentCounter object will be instantiated and called as such:
# obj = RecentCounter()
# param_1 = obj.ping(t) | class Recentcounter:
def __init__(self):
self.Q = []
def ping(self, t: int) -> int:
self.Q.append(t)
while self.Q[0] < t - 3000:
self.Q.pop(0)
return len(self.Q) |
class Html_Maker:
@classmethod
def read_text_file(cls, path: str):
ret = ''
with open(path, 'r') as f:
while True:
line = f.readline()
if not line:
break
line = line.replace(
'\t', '<span style="white-space:pre">\t</span>')
line = '<br>' if line == '\n' else line
ret += '<div>'+line+'</div>\n'
return ret
@classmethod
def hyper_link(cls, href: str, display: str):
return '<a href="{}">'.format(href) + display + '</a>'
@classmethod
def image(cls, scr: str, width: int = None, height: int = None):
info = []
info.append('src="{}"'.format(scr))
if width:
width = 'width="{}px"'.format(width)
info.append(width)
if height:
height = 'height="{}px"'.format(height)
info.append(height)
return '<img '+' '.join(info) + ' />'
@classmethod
def paragraph(cls, text: str):
if text:
return '<div>'+text+'</div>'
else:
return '<br>'
| class Html_Maker:
@classmethod
def read_text_file(cls, path: str):
ret = ''
with open(path, 'r') as f:
while True:
line = f.readline()
if not line:
break
line = line.replace('\t', '<span style="white-space:pre">\t</span>')
line = '<br>' if line == '\n' else line
ret += '<div>' + line + '</div>\n'
return ret
@classmethod
def hyper_link(cls, href: str, display: str):
return '<a href="{}">'.format(href) + display + '</a>'
@classmethod
def image(cls, scr: str, width: int=None, height: int=None):
info = []
info.append('src="{}"'.format(scr))
if width:
width = 'width="{}px"'.format(width)
info.append(width)
if height:
height = 'height="{}px"'.format(height)
info.append(height)
return '<img ' + ' '.join(info) + ' />'
@classmethod
def paragraph(cls, text: str):
if text:
return '<div>' + text + '</div>'
else:
return '<br>' |
a = list(range(10))
print(a)
b = list("Pablo Fajardo")
print(b)
empty = []
print(empty)
nine = [0,1,2,3,4,5,6,7,8,9]
print(nine)
mixed = ['a',1,'b',2,'c',3,"Pablo",empty,True]
print(mixed)
#Add a single item to a list
mixed.append("Fajardo")
print(mixed)
#Add item with index
mixed.insert(2,"PALABRA")
print(mixed)
#New List
pies = ['cherry','cream','apple']
print(pies)
#Another List
desserts = ['cookies','lemon']
print(desserts)
#Add a list with another list
pies.extend(desserts)
print(pies)
#Remove a item with the index
pies.pop(2)
print(pies)
#Remove the last item
#pies.pop()
#print(pies)
pies.remove('lemon')
print(pies)
pies.remove('cookies')
print(pies)
| a = list(range(10))
print(a)
b = list('Pablo Fajardo')
print(b)
empty = []
print(empty)
nine = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
print(nine)
mixed = ['a', 1, 'b', 2, 'c', 3, 'Pablo', empty, True]
print(mixed)
mixed.append('Fajardo')
print(mixed)
mixed.insert(2, 'PALABRA')
print(mixed)
pies = ['cherry', 'cream', 'apple']
print(pies)
desserts = ['cookies', 'lemon']
print(desserts)
pies.extend(desserts)
print(pies)
pies.pop(2)
print(pies)
pies.remove('lemon')
print(pies)
pies.remove('cookies')
print(pies) |
# This is a useful data structure for implementing
# a counter that counts the time.
class DFSTimeCounter:
def __init__(self):
self.count = 0
def reset(self):
self.count = 0
def increment(self):
self.count = self.count + 1
def get(self):
return self.count
class UndirectedGraph:
# n is the number of vertices
# we will label the vertices from 0 to self.n -1
# Initialize to an empty adjacency list
# We will store the outgoing edges using a set data structure
def __init__(self, n):
self.n = n
self.adj_list = [set() for i in range(self.n)]
def add_edge(self, i, j):
assert 0 <= i < self.n
assert 0 <= j < self.n
assert i != j
# Make sure to add edge from i to j
self.adj_list[i].add(j)
# Also add edge from j to i
self.adj_list[j].add(i)
# get a set of all vertices that
# are neighbors of the
# vertex i
def get_neighboring_vertices(self, i):
assert 0 <= i < self.n
return self.adj_list[i]
# Function: dfs_visit
# Program a DFS visit of a graph.
# We maintain a list of discovery times and finish times.
# Initially all discovery times and finish times are set to None.
# When a vertex is first visited, we will set discovery time
# When DFS visit has processed all the neighbors then
# set the finish time.
# DFS visit should update the list of discovery and finish times in-place
# Arguments
# i --> id of the vertex being visited.
# dfs_timer --> An instance of DFSTimeCounter structure provided for you.
# discovery --> discovery time of each vertex -- a list of size self.n
# None if the vertex is yet to be visited.
# finish --> finish time of each vertex -- a list of size self.n
# None if the vertex is yet to be finished.
# dfs_tree_parent --> the parent for for each node
# if we visited node j from node i, then j's parent is i.
# Do not forget to set tree_parent when you call dfs_visit
# on node j from node i.
# dfs_back_edges --> a list of back edges.
# a back edge is an edge from i to j wherein
# DFS has already discovered j when i is discovered
# but not finished j
def dfs_visit(self, i, dfs_timer, discovery_times, finish_times,
dfs_tree_parent, dfs_back_edges):
assert 0 <= i < self.n
assert discovery_times[i] is None
assert finish_times[i] is None
discovery_times[i] = dfs_timer.get()
dfs_timer.increment()
for v in self.get_neighboring_vertices(i):
if discovery_times[v] is not None and finish_times[v] is None:
dfs_back_edges.append((i, v))
if discovery_times[v] is None:
dfs_tree_parent[v] = i
self.dfs_visit(v, dfs_timer, discovery_times, finish_times,
dfs_tree_parent, dfs_back_edges)
finish_times[i] = dfs_timer.get()
dfs_timer.increment()
# Function: dfs_traverse_graph
# Traverse the entire graph.
def dfs_traverse_graph(self):
dfs_timer = DFSTimeCounter()
discovery_times = [None] * self.n
finish_times = [None] * self.n
dfs_tree_parents = [None] * self.n
dfs_back_edges = []
for i in range(self.n):
if discovery_times[i] is None:
self.dfs_visit(i, dfs_timer, discovery_times, finish_times,
dfs_tree_parents, dfs_back_edges)
# Clean up the back edges so that if (i,j) is a back edge then j cannot
# be i's parent.
non_trivial_back_edges = [(i, j) for (i, j) in dfs_back_edges if dfs_tree_parents[i] != j]
return dfs_tree_parents, non_trivial_back_edges, discovery_times, finish_times
def num_connected_components(g): # g is an UndirectedGraph class
# your code here
mscc = get_mscc(g)
return len(mscc)
def dfs_for_transposed_nodes(transposed_g, g_ordered_stack):
timer = DFSTimeCounter()
discovery_times = [None] * transposed_g.n
finish_times = [None] * transposed_g.n
dfs_tree_parents = [None] * transposed_g.n
dfs_back_edges = []
dont_visit = []
mscc = []
for node in g_ordered_stack:
scc = []
if node not in dont_visit:
transposed_g.dfs_visit(node, timer, discovery_times, finish_times,
dfs_tree_parents, dfs_back_edges)
for i in range(len(finish_times)):
if finish_times[i] is not None and i not in dont_visit:
dont_visit.append(i)
scc.append(i)
dont_visit.append(node)
if scc:
mscc.append(scc)
non_trivial_back_edges = [(i, j) for (i, j) in dfs_back_edges if dfs_tree_parents[i] != j]
return mscc
def transpose_g(g: UndirectedGraph) -> UndirectedGraph:
transposed_g = UndirectedGraph(g.n)
for node in range(len(g.adj_list)):
for edge in g.adj_list[node]:
transposed_g.add_edge(edge, node)
return transposed_g
def create_stack_from_finish_times(finish_times: list) -> list:
stack = []
for i in range(0, len(finish_times)):
max = 0
location = 0
for j in range(len(finish_times)):
if finish_times[j] > max and j not in stack:
max = finish_times[j]
location = j
stack.append(location)
return stack
def find_all_nodes_in_cycle(g): # g is an UndirectedGraph class
# todo
# your code here
dfs_tree_parents, non_trivial_back_edges, discovery_times, finish_times = g.dfs_traverse_graph()
python_set = set()
for thing in non_trivial_back_edges:
for item in thing:
python_set.add(item)
ret_set = set()
for node in python_set:
neighbors = g.get_neighboring_vertices(node)
if len(neighbors) > 1:
ret_set.add(node)
for neighbor in neighbors:
neighbor_neighbors = g.get_neighboring_vertices(neighbor)
if len(neighbor_neighbors) > 1:
ret_set.add(neighbor)
return ret_set
def get_mscc(g):
dfs_tree_parents, non_trivial_back_edges, discovery_times, finish_times = g.dfs_traverse_graph()
print(finish_times)
first_stack = create_stack_from_finish_times(finish_times)
# transpose
transposed_g = transpose_g(g)
# dfs of transposed
mscc = dfs_for_transposed_nodes(transposed_g, first_stack)
return mscc
| class Dfstimecounter:
def __init__(self):
self.count = 0
def reset(self):
self.count = 0
def increment(self):
self.count = self.count + 1
def get(self):
return self.count
class Undirectedgraph:
def __init__(self, n):
self.n = n
self.adj_list = [set() for i in range(self.n)]
def add_edge(self, i, j):
assert 0 <= i < self.n
assert 0 <= j < self.n
assert i != j
self.adj_list[i].add(j)
self.adj_list[j].add(i)
def get_neighboring_vertices(self, i):
assert 0 <= i < self.n
return self.adj_list[i]
def dfs_visit(self, i, dfs_timer, discovery_times, finish_times, dfs_tree_parent, dfs_back_edges):
assert 0 <= i < self.n
assert discovery_times[i] is None
assert finish_times[i] is None
discovery_times[i] = dfs_timer.get()
dfs_timer.increment()
for v in self.get_neighboring_vertices(i):
if discovery_times[v] is not None and finish_times[v] is None:
dfs_back_edges.append((i, v))
if discovery_times[v] is None:
dfs_tree_parent[v] = i
self.dfs_visit(v, dfs_timer, discovery_times, finish_times, dfs_tree_parent, dfs_back_edges)
finish_times[i] = dfs_timer.get()
dfs_timer.increment()
def dfs_traverse_graph(self):
dfs_timer = dfs_time_counter()
discovery_times = [None] * self.n
finish_times = [None] * self.n
dfs_tree_parents = [None] * self.n
dfs_back_edges = []
for i in range(self.n):
if discovery_times[i] is None:
self.dfs_visit(i, dfs_timer, discovery_times, finish_times, dfs_tree_parents, dfs_back_edges)
non_trivial_back_edges = [(i, j) for (i, j) in dfs_back_edges if dfs_tree_parents[i] != j]
return (dfs_tree_parents, non_trivial_back_edges, discovery_times, finish_times)
def num_connected_components(g):
mscc = get_mscc(g)
return len(mscc)
def dfs_for_transposed_nodes(transposed_g, g_ordered_stack):
timer = dfs_time_counter()
discovery_times = [None] * transposed_g.n
finish_times = [None] * transposed_g.n
dfs_tree_parents = [None] * transposed_g.n
dfs_back_edges = []
dont_visit = []
mscc = []
for node in g_ordered_stack:
scc = []
if node not in dont_visit:
transposed_g.dfs_visit(node, timer, discovery_times, finish_times, dfs_tree_parents, dfs_back_edges)
for i in range(len(finish_times)):
if finish_times[i] is not None and i not in dont_visit:
dont_visit.append(i)
scc.append(i)
dont_visit.append(node)
if scc:
mscc.append(scc)
non_trivial_back_edges = [(i, j) for (i, j) in dfs_back_edges if dfs_tree_parents[i] != j]
return mscc
def transpose_g(g: UndirectedGraph) -> UndirectedGraph:
transposed_g = undirected_graph(g.n)
for node in range(len(g.adj_list)):
for edge in g.adj_list[node]:
transposed_g.add_edge(edge, node)
return transposed_g
def create_stack_from_finish_times(finish_times: list) -> list:
stack = []
for i in range(0, len(finish_times)):
max = 0
location = 0
for j in range(len(finish_times)):
if finish_times[j] > max and j not in stack:
max = finish_times[j]
location = j
stack.append(location)
return stack
def find_all_nodes_in_cycle(g):
(dfs_tree_parents, non_trivial_back_edges, discovery_times, finish_times) = g.dfs_traverse_graph()
python_set = set()
for thing in non_trivial_back_edges:
for item in thing:
python_set.add(item)
ret_set = set()
for node in python_set:
neighbors = g.get_neighboring_vertices(node)
if len(neighbors) > 1:
ret_set.add(node)
for neighbor in neighbors:
neighbor_neighbors = g.get_neighboring_vertices(neighbor)
if len(neighbor_neighbors) > 1:
ret_set.add(neighbor)
return ret_set
def get_mscc(g):
(dfs_tree_parents, non_trivial_back_edges, discovery_times, finish_times) = g.dfs_traverse_graph()
print(finish_times)
first_stack = create_stack_from_finish_times(finish_times)
transposed_g = transpose_g(g)
mscc = dfs_for_transposed_nodes(transposed_g, first_stack)
return mscc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.