content
stringlengths
7
1.05M
for i in range(1,11,1): print(i) # limit=int(input('Enter the limit:')) # sum=0 # for i in range(1,limit+1,1): # print(i) # sum=sum+i # print("sum of numbers:",sum) # for i in range(11,10,1): # if(i==5): # continue # print(i) # else: # print("Hello")
""" link: https://leetcode-cn.com/problems/sliding-window-median problem: ็ป™ๆ•ฐ็ป„ๅ’ŒไธŽๆป‘ๅŠจ็ช—ๅฃ้•ฟๅบฆ k๏ผŒๆฑ‚ๆ•ฐ็ป„ไปŽๅทฆๅ‘ๅณๆฏไธช็ช—ๅฃ็š„ไธญไฝๆ•ฐ solution: ๅคง้กถๅ † + ๅฐ้กถๅ †ใ€‚ๆ€่ทฏ็ฑปไผผ 295๏ผŒ็”ฑไบŽๅคšไบ†ไธ€ไธชๅˆ ้™คๆ“ไฝœ๏ผŒๅขžๅŠ ไธ€ไธช multiset ๅšๅปถ่ฟŸๅˆ ้™คใ€‚ """ class Heap: def __init__(self): self.data = [] self.k = 1 def max_heap(self): self.k = -1 return self def top(self): return self.data[0] * self.k def pop(self): return self.k * heapq.heappop(self.data) def push(self, item): return heapq.heappush(self.data, item * self.k) def len(self): return len(self.data) def empty(self): return len(self.data) == 0 class MultiSet: def __init__(self): self.data = {} def add(self, x): if x not in self.data: self.data[x] = 0 self.data[x] += 1 def remove(self, x): self.data[x] -= 1 if self.data[x] == 0: del (self.data[x]) def contains(self, x) -> bool: return x in self.data class Solution: def medianSlidingWindow(self, nums: List[int], k: int) -> List[float]: res, m1, m2, cache, balance = [], Heap().max_heap(), Heap(), MultiSet(), 0 for i, x in enumerate(nums): if m1.empty() or x <= m1.top(): m1.push(x) balance += 1 else: m2.push(x) balance -= 1 if i >= k: cache.add(nums[i - k]) balance += -1 if nums[i - k] <= m1.top() else 1 while balance != 0 and balance != 1 or not m1.empty() and cache.contains( m1.top()) or not m2.empty() and cache.contains( m2.top()): if balance > 1: m2.push(m1.pop()) balance -= 2 if balance < 0: m1.push(m2.pop()) balance += 2 while not m1.empty() and cache.contains(m1.top()): cache.remove(m1.pop()) while not m2.empty() and cache.contains(m2.top()): cache.remove(m2.pop()) if i >= k - 1: if balance == 0: res.append((m1.top() + m2.top()) / 2) else: res.append(m1.top() if balance == 1 else m2.top()) return res
for _ in range(int(input())): n = int(input()) l = list(map(int,input().split())) l.sort() print(l[0]+l[1])
class InvalidUserId(Exception): """The userid does not meet the expected pattern.""" def __init__(self, user_id): super().__init__(f"User id '{user_id}' is not valid") class RealtimeMessageQueueError(Exception): """A message could not be sent to the realtime Rabbit queue.""" def __init__(self): super().__init__("Could not queue message")
def kvadrat(x): return x**2 + 1 def test_kvadrat(): assert kvadrat(2) == 4
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #Author:Winston.Wang print('---------------่Žทๅ–ๅฏน่ฑกไฟกๆฏ-----------------') #ๅˆคๆ–ญๅฏน่ฑก็ฑปๅž‹ type,<class 'int'> print(type(123)) print(type('hello')) #ๅˆคๆ–ญๅ‡ฝๆ•ฐ print(type(abs)) #ๅˆคๆ–ญ็ฑปๅž‹ๆ˜ฏๅฆ็›ธๅŒ if(type(123) == type(456)): print('็›ธๅŒ็ฑปๅž‹') #isinstance็ฑปๅž‹ๅˆคๆ–ญๅฏน่ฑก class Animal(object): def __init__(self): self.x = 10 #ๅˆคๆ–ญไธ€ไธชๅ˜้‡ๆ˜ฏๅฆๆ˜ฏๆŸไบ›็ฑปๅž‹ไธญ็š„ไธ€็ง if __name__ == '__main__': print(isinstance(Animal(),Animal)) print(isinstance([1,2,3,4,5],(list,tuple))) #่Žทๅ–ๅฏน่ฑก็š„ๆ‰€ๆœ‰ๅฑžๆ€งๅ’Œๆ–นๆณ• print(dir(str)) print('hello'.__len__()) #ๅˆคๆ–ญๅฑžๆ€งๆ˜ฏๅฆๅญ˜ๅœจ print(hasattr(Animal(), 'x')) #่Žทๅ–ๅฑžๆ€ง print(getattr(Animal(),'x')) #ไธบไบ†็ปŸ่ฎกๅญฆ็”Ÿไบบๆ•ฐ๏ผŒๅฏไปฅ็ป™Student็ฑปๅขžๅŠ ไธ€ไธช็ฑปๅฑžๆ€ง๏ผŒๆฏๅˆ›ๅปบไธ€ไธชๅฎžไพ‹๏ผŒ่ฏฅๅฑžๆ€ง่‡ชๅŠจๅขžๅŠ  class Student(object): count = 0 def __init__(self,name): self.name=name Student.count+=1 # ๆต‹่ฏ•: if Student.count != 0: print('ๆต‹่ฏ•ๅคฑ่ดฅ0!') else: bart = Student('Bart') if Student.count != 1: print('ๆต‹่ฏ•ๅคฑ่ดฅ1!') else: lisa = Student('Bart') if Student.count != 2: print('ๆต‹่ฏ•ๅคฑ่ดฅ2!') else: print('Students:', Student.count) print('ๆต‹่ฏ•้€š่ฟ‡!')
#!/usr/bin/env python3 # terminal input: 1 def read_value(pc, prog, mode): if mode == 0: return prog[prog[pc]] elif mode == 1: return prog[pc] else: raise Exception("unknown mode: %d" % mode) def write_value(pc, prog, mode, value): if mode != 0: raise Exception("only position mode for writes: %d" % mode) prog[prog[pc]] = value def execute(prog): pc = 0 while True: op = int(str(prog[pc])[-2:]) modes = [int(m) for m in str(prog[pc])[:-2].rjust(3, "0")] if op == 1: v1 = read_value(pc + 1, prog, modes[2]) v2 = read_value(pc + 2, prog, modes[1]) write_value(pc + 3, prog, modes[0], v1 + v2) pc += 4 elif op == 2: v1 = read_value(pc + 1, prog, modes[2]) v2 = read_value(pc + 2, prog, modes[1]) write_value(pc + 3, prog, modes[0], v1 * v2) pc += 4 elif op == 3: print(">>> ", end="") v1 = int(input()) write_value(pc + 1, prog, modes[2], v1) pc += 2 elif op == 4: v1 = read_value(pc + 1, prog, modes[2]) print(v1) pc += 2 elif op == 99: break else: raise Exception("unknown op: %d" % op) program = [int(i) for i in open("input").read().split(",")] execute(program)
fig, axs = plt.subplots(3, sharex=True, gridspec_kw={'hspace': 0}) axs[0].plot(ffp, 10*np.log10(Pxp)) axs[0].set_ylim([-80, 25]) axs[0].set_xlim([-0.2, 0.2]) axs[1].plot(ffn, 10*np.log10(Pxn)) axs[1].set_ylim([-80, 25]) axs[1].set_ylabel('Power Spectral Density (dB/Hz)') axs[2].plot(ff_out, 10*np.log10(Px_out)) axs[2].set_ylim(bottom=0) axs[2].set_xlabel('Frequency (Hz)') fig.tight_layout() fig.savefig('cpx_multiply_all.png')
class GeneralHistogramDataObject(object): def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins def get_feature_name(self): return self._feature_name def get_edges(self): """String representation of Histogram""" return self._edges def get_bins(self): return self._bins def get_edge_list(self): """ String representation of Histogram Child can override this method. """ return self.get_edges() def __str__(self): return "\nf_name: {}\nedges: {}\nbins: {}".format(str(self._feature_name), str(self._edges), str(self._bins)) class CategoricalHistogramDataObject(GeneralHistogramDataObject): """ Class is responsible for holding categorical histogram representation. """ def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins super(CategoricalHistogramDataObject, self).__init__(feature_name=feature_name, edges=edges, bins=bins) def get_feature_name(self): return self._feature_name def get_edges(self): return self._edges def get_bins(self): return self._bins class ContinuousHistogramDataObject(GeneralHistogramDataObject): """ Class is responsible for holding continuous histogram representation. """ def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins super(ContinuousHistogramDataObject, self).__init__(feature_name=feature_name, edges=edges, bins=bins) def get_feature_name(self): return self._feature_name def get_edges(self): return self._edges def get_bins(self): return self._bins def get_edge_list(self): """Integer representation of Continuous Histogram""" edge_list = [] for each_edge_tuple in self.get_edges(): edge_t = each_edge_tuple.split("to") edge_list.append(float(edge_t[0])) edge_list.append(float(self.get_edges()[len(self.get_edges()) - 1].split("to")[1])) return edge_list
# Given an encoded string, return it's decoded string. # The encoding rule is: k[encoded_string], where the encoded_string # inside the square brackets is being repeated exactly k times. # Note that k is guaranteed to be a positive integer. # You may assume that the input string is always valid; No extra white spaces, # square brackets are well-formed, etc. # Furthermore, you may assume that the original data does not contain any # digits and that digits are only for those repeat numbers, k. # For example, there won't be input like 3a or 2[4]. # Examples: # s = "3[a]2[bc]", return "aaabcbc". # s = "3[a2[c]]", return "accaccacc". # s = "2[abc]3[cd]ef", return "abcabccdcdcdef". def decode_string(s): """ :type s: str :rtype: str """ stack = []; cur_num = 0; cur_string = '' for c in s: if c == '[': stack.append((cur_string, cur_num)) cur_string = '' cur_num = 0 elif c == ']': prev_string, num = stack.pop() cur_string = prev_string + num * cur_string elif c.isdigit(): cur_num = cur_num*10 + int(c) else: cur_string += c return cur_string
#input vertices are defined here inputs = [[22, 6], [20, 11], [18, 6], [16, 5], [15, 8], [20, 13], [18, 15],\ [15, 13], [13, 8], [9, 13], [3, 9], [6, 2], [6, 5], [11, 6], [16, 1]] x_p = [] y_p = [] x = 0 y = 1 px = input("Enter point x: ") py = input("Enter point y: ") crossing = 0 ranges = range(0, len(inputs)) size = len(inputs) for i in ranges: if inputs[i][x] < inputs[(i+1)%size][x]: x1 = inputs[i][x] x2 = inputs[(i+1)%size][x] else: x1 = inputs[(i+1)%size][x] x2 = inputs[i][x] if px > x1 and px <= x2 and (py < inputs[i][y] or py <= inputs[(i+1)%size]): eps = 0.000001 dx = inputs[(i+1)%size][x] - inputs[i][x]; dy = inputs[(i+1)%size][y] - inputs[i][y]; if abs(dx) < eps: k = 10000000 else: k = dy/dx m = inputs[i][y] - k * inputs[i][x] y2 = k * px + m if py <= y2: crossing += 1 print("The point crossing "+str(crossing)+" lines\n") if crossing%2 == 1: print("Point is inside the polygon") else: print("Point is outside the polygon") # Referenced from https://sidvind.com/wiki/Point-in-polygon:_Jordan_Curve_Theorem
a,b,x=map(int,input().split()) l=0 r=10**9+1 ans=10**9 while r-l>=2: n1=l+(r-l)//2 n2=n1+1 p1=a*n1+b*len(str(n1)) p2=a*n2+b*len(str(n2)) if p1 <= x < p2: ans=n1 break elif p1 < x: l=n1 else: r=n1 if p1>x: print(0) else: print(ans)
"""2.3.3 ๊ฐ€์ค‘์น˜์™€ ํŽธํ–ฅ ๊ตฌํ˜„ํ•˜๊ธฐ""" def AND(x1, x2): x = np.array([x1, x2]) w = np.array([0.5, 0.5]) b = -0.7 tmp = np.sum(w*x) + b if tmp <= 0: return 0 else: return 1 def NAND(x1, x2): x = np.array([x1, x2]) # AND์™€ NAND๋Š” ๊ฐ€์ค‘์น˜(w์™€ b)๋งŒ ๋‹ค๋ฅด๋‹ค w = np.array([-0.5, -0.5]) b = 0.7 tmp = np.sum(w*x) + b if tmp <= 0: return 0 else: return 1 def OR(x1, x2): x = np.array([x1, x2]) w = np.array([0.5, 0.5]) b = -0.2 tmp = np.sum(w*x) + b if tmp <= 0: return 0 else: return 1
""" 18408. 3 ใคใฎๆ•ดๆ•ฐ ์ž‘์„ฑ์ž: xCrypt0r ์–ธ์–ด: Python 3 ์‚ฌ์šฉ ๋ฉ”๋ชจ๋ฆฌ: 29,380 KB ์†Œ์š” ์‹œ๊ฐ„: 64 ms ํ•ด๊ฒฐ ๋‚ ์งœ: 2020๋…„ 9์›” 14์ผ """ def main(): n = list(map(int, input().split())) print(1 if n.count(1) > n.count(2) else 2) if __name__ == '__main__': main()
''' An implementation of the `Annotation store API <http://docs.annotatorjs.org/en/v1.2.x/storage.html.>`_ for `Annotator.js <http://annotatorjs.org/>`_. '''
# GENERATED VERSION FILE # TIME: Wed Aug 26 17:17:32 2020 __version__ = '0.0.0rc0+unknown' short_version = '0.0.0rc0'
class AllResponses: def __init__(self, identifier, query_title, project_id=None, query_id=None): self.id = identifier self.scopus_abstract_retrieval = None self.unpaywall_response = None self.altmetric_response = None self.scival_data = None self.query_title = query_title if project_id is None: self.project_id = [] else: self.project_id = [project_id] if query_id is None: self.query_id = [] else: self.query_id = [query_id] self.accepted = None def add_query_id(self, query_id): self.query_id.append(query_id) def add_project_id(self, project_id): self.project_id.append(project_id) def __getstate__(self): state = self.__dict__.copy() del state['id'] return state
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # NOTE: This class is auto generated by the jdcloud code generator program. class TranscodeTemplateObject(object): def __init__(self, id=None, name=None, video=None, audio=None, encapsulation=None, outFile=None, definition=None, source=None, templateType=None, createTime=None, updateTime=None): """ :param id: (Optional) ๆจกๆฟID :param name: (Optional) ๆจกๆฟๅ็งฐใ€‚้•ฟๅบฆไธ่ถ…่ฟ‡128ไธชๅญ—็ฌฆใ€‚UTF-8็ผ–็ ใ€‚ :param video: (Optional) ่ง†้ข‘ๅ‚ๆ•ฐ้…็ฝฎ :param audio: (Optional) ้Ÿณ้ข‘ๅ‚ๆ•ฐ้…็ฝฎ :param encapsulation: (Optional) ๅฐ่ฃ…้…็ฝฎ :param outFile: (Optional) ่พ“ๅ‡บๆ–‡ไปถ้…็ฝฎ :param definition: (Optional) ๆธ…ๆ™ฐๅบฆ่ง„ๆ ผๆ ‡่ฎฐใ€‚ๅ–ๅ€ผ่Œƒๅ›ด๏ผš SD - ๆ ‡ๆธ… HD - ้ซ˜ๆธ… FHD - ่ถ…ๆธ… 2K 4K :param source: (Optional) ๆจกๆฟๆฅๆบใ€‚ๅ–ๅ€ผ่Œƒๅ›ด๏ผš system - ็ณป็ปŸ้ข„็ฝฎ custom - ็”จๆˆท่‡ชๅปบ :param templateType: (Optional) ๆจกๆฟ็ฑปๅž‹ใ€‚ๅ–ๅ€ผ่Œƒๅ›ด๏ผš jdchd - ไบฌไบซ่ถ…ๆธ… jdchs - ๆž้€Ÿ่ฝฌ็  :param createTime: (Optional) ๅˆ›ๅปบๆ—ถ้—ด :param updateTime: (Optional) ไฟฎๆ”นๆ—ถ้—ด """ self.id = id self.name = name self.video = video self.audio = audio self.encapsulation = encapsulation self.outFile = outFile self.definition = definition self.source = source self.templateType = templateType self.createTime = createTime self.updateTime = updateTime
def rotate_index(arr, k, src_ind, src_num, count=0): if count == len(arr): return des_ind = (src_ind + k) % len(arr) des_num = arr[des_ind] arr[des_ind] = src_num rotate_index(arr, k, des_ind, des_num, count + 1) def rotate_k(arr, k): if k < 1: return arr start = 0 rotate_index(arr, k, start, arr[start]) # Tests arr = [1, 2, 3, 4, 5] rotate_k(arr, 2) assert arr == [4, 5, 1, 2, 3] rotate_k(arr, 2) assert arr == [2, 3, 4, 5, 1] rotate_k(arr, 4) assert arr == [3, 4, 5, 1, 2]
rcParams = {"figdir": "figures", "usematplotlib": True, "storeresults": False, "cachedir": 'cache', "chunk": {"defaultoptions": { "echo": True, "results": 'verbatim', "chunk_type": "code", "fig": True, "multi_fig": True, "include": True, "evaluate": True, "caption": False, "term": False, "term_prompts": False, "name": None, "wrap": "output", "f_pos": "htpb", "f_size": (6, 4), "f_env": None, "dpi" : 200, "f_spines": True, "complete": True, "option_string": "", "display_data" : True, "display_stream" : True } } } class PwebProcessorGlobals(object): """A class to hold the globals used in processors""" globals = {}
# Grace Foster # ITP 100-01 # EXERCISE: 06 # ageclass.py # ---------------------------------------------------------------- print("Age Classification program") print("-----------------------------------------------") age = 1 while age > 0: age = float(input(f"Enter the age: ")) if age != 0: if age <= 1: print("This person is an Infant") elif 2 <= age <= 13: print("This person is a Child") elif 13 <= age <= 20: print("this person is a Teenager") elif age >= 20: print("This person is an Adult") print("-----------------------------------------------") print("The Program Has Ended")
class InadequateArgsCombination(Exception): pass
""" ((32+8)โˆ—(5/2))/(2+6). Take a string as an input and return True if it's parentheses are balanced or False if it is not. """ class Stack: def __init__(self): self.items = [] def size(self): return len(self.items) def push(self, item): """ Adds item to the end """ self.items.append(item) def pop(self): """ Removes and returns the last value """ if self.size() == 0: return None else: return self.items.pop() def equation_checker(equation_str): print(equation_str) """ Check equation for balanced parentheses Args: equation(string): String form of equation Returns: bool: Return if parentheses are balanced or not """ stack = Stack() for char in equation_str: if char == "(": stack.push(char) elif char == ")": if stack.pop() is None: return False if stack.size() == 0: return True else: return False def test_case_1(): actual_result = equation_checker("((32+8)โˆ—(5/2))/(2+6).") assert actual_result def test_case_2(): actual_result = equation_checker("()(()) ))))))).") assert actual_result == False def test_case_3(): actual_result = equation_checker("())((") assert actual_result == False def test(): test_case_1() test_case_2() test_case_3() test()
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # __all__ = ( "AdAssetPolicySummary", "AdImageAsset", "AdMediaBundleAsset", "AdScheduleInfo", "AdTextAsset", "AdVideoAsset", "AddressInfo", "AffiliateLocationFeedItem", "AgeRangeInfo", "AppAdInfo", "AppEngagementAdInfo", "AppFeedItem", "AppPaymentModelInfo", "AssetInteractionTarget", "BasicUserListInfo", "BidModifierSimulationPoint", "BidModifierSimulationPointList", "BookOnGoogleAsset", "BudgetCampaignAssociationStatus", "BudgetSimulationPoint", "BudgetSimulationPointList", "BusinessNameFilter", "CallAdInfo", "CallFeedItem", "CalloutAsset", "CalloutFeedItem", "CarrierInfo", "ClickLocation", "CombinedAudienceInfo", "CombinedRuleUserListInfo", "Commission", "ConceptGroup", "ContentLabelInfo", "CpcBidSimulationPoint", "CpcBidSimulationPointList", "CpvBidSimulationPoint", "CpvBidSimulationPointList", "CriterionCategoryAvailability", "CriterionCategoryChannelAvailability", "CriterionCategoryLocaleAvailability", "CrmBasedUserListInfo", "CustomAffinityInfo", "CustomAudienceInfo", "CustomIntentInfo", "CustomParameter", "CustomerMatchUserListMetadata", "DateRange", "DateSpecificRuleUserListInfo", "DeviceInfo", "DisplayCallToAction", "DisplayUploadAdInfo", "DynamicAffiliateLocationSetFilter", "DynamicLocationSetFilter", "EnhancedCpc", "ExpandedDynamicSearchAdInfo", "ExpandedTextAdInfo", "ExplorerAutoOptimizerSetting", "ExpressionRuleUserListInfo", "FinalAppUrl", "FrequencyCapEntry", "FrequencyCapKey", "GenderInfo", "GeoPointInfo", "GmailAdInfo", "GmailTeaser", "HistoricalMetricsOptions", "HotelAdInfo", "HotelAdvanceBookingWindowInfo", "HotelCalloutFeedItem", "HotelCheckInDateRangeInfo", "HotelCheckInDayInfo", "HotelCityInfo", "HotelClassInfo", "HotelCountryRegionInfo", "HotelDateSelectionTypeInfo", "HotelIdInfo", "HotelLengthOfStayInfo", "HotelStateInfo", "ImageAdInfo", "ImageAsset", "ImageDimension", "ImageFeedItem", "IncomeRangeInfo", "InteractionTypeInfo", "IpBlockInfo", "ItemAttribute", "Keyword", "KeywordAnnotations", "KeywordConcept", "KeywordInfo", "KeywordPlanAggregateMetricResults", "KeywordPlanAggregateMetrics", "KeywordPlanDeviceSearches", "KeywordPlanHistoricalMetrics", "KeywordThemeInfo", "LanguageInfo", "LeadFormAsset", "LeadFormDeliveryMethod", "LeadFormField", "LeadFormSingleChoiceAnswers", "LegacyAppInstallAdInfo", "LegacyResponsiveDisplayAdInfo", "ListingDimensionInfo", "ListingGroupInfo", "ListingScopeInfo", "LocalAdInfo", "LocationFeedItem", "LocationGroupInfo", "LocationInfo", "LogicalUserListInfo", "LogicalUserListOperandInfo", "ManualCpc", "ManualCpm", "ManualCpv", "MatchingFunction", "MaximizeConversionValue", "MaximizeConversions", "MediaBundleAsset", "Metrics", "MobileAppCategoryInfo", "MobileApplicationInfo", "MobileDeviceInfo", "Money", "MonthlySearchVolume", "OfflineUserAddressInfo", "Operand", "OperatingSystemVersionInfo", "ParentalStatusInfo", "PercentCpc", "PercentCpcBidSimulationPoint", "PercentCpcBidSimulationPointList", "PlacementInfo", "PolicyTopicConstraint", "PolicyTopicEntry", "PolicyTopicEvidence", "PolicyValidationParameter", "PolicyViolationKey", "PreferredContentInfo", "PriceFeedItem", "PriceOffer", "ProductBiddingCategoryInfo", "ProductBrandInfo", "ProductChannelExclusivityInfo", "ProductChannelInfo", "ProductConditionInfo", "ProductCustomAttributeInfo", "ProductImage", "ProductItemIdInfo", "ProductTypeInfo", "ProductVideo", "PromotionAsset", "PromotionFeedItem", "ProximityInfo", "RealTimeBiddingSetting", "ResponsiveDisplayAdControlSpec", "ResponsiveDisplayAdInfo", "ResponsiveSearchAdInfo", "RuleBasedUserListInfo", "Segments", "ShoppingComparisonListingAdInfo", "ShoppingProductAdInfo", "ShoppingSmartAdInfo", "SimilarUserListInfo", "SitelinkAsset", "SitelinkFeedItem", "SmartCampaignAdInfo", "StoreAttribute", "StoreSalesMetadata", "StoreSalesThirdPartyMetadata", "StructuredSnippetAsset", "StructuredSnippetFeedItem", "TagSnippet", "TargetCpa", "TargetCpaSimulationPoint", "TargetCpaSimulationPointList", "TargetCpm", "TargetImpressionShare", "TargetImpressionShareSimulationPoint", "TargetImpressionShareSimulationPointList", "TargetRestriction", "TargetRestrictionOperation", "TargetRoas", "TargetRoasSimulationPoint", "TargetRoasSimulationPointList", "TargetSpend", "TargetingSetting", "TextAdInfo", "TextAsset", "TextLabel", "TextMessageFeedItem", "TopicInfo", "TransactionAttribute", "UnknownListingDimensionInfo", "UrlCollection", "UserAttribute", "UserData", "UserIdentifier", "UserInterestInfo", "UserListActionInfo", "UserListDateRuleItemInfo", "UserListInfo", "UserListLogicalRuleInfo", "UserListNumberRuleItemInfo", "UserListRuleInfo", "UserListRuleItemGroupInfo", "UserListRuleItemInfo", "UserListStringRuleItemInfo", "Value", "VideoAdInfo", "VideoBumperInStreamAdInfo", "VideoNonSkippableInStreamAdInfo", "VideoOutstreamAdInfo", "VideoResponsiveAdInfo", "VideoTrueViewDiscoveryAdInfo", "VideoTrueViewInStreamAdInfo", "WebhookDelivery", "WebpageConditionInfo", "WebpageInfo", "WebpageSampleInfo", "YearMonth", "YearMonthRange", "YouTubeChannelInfo", "YouTubeVideoInfo", "YoutubeVideoAsset", )
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def levelOrderBottom(self, root: TreeNode): result, level = [], [root] while root and level: result.append([n.val for n in level]) level = [child for n in level for child in [n.left, n.right] if child] result.reverse() return result root = TreeNode(3) root.left = TreeNode(5) rightNode = TreeNode(20) rightNode.left = TreeNode(42) root.right = rightNode print(Solution().levelOrderBottom(root))
# -*- coding: utf-8 -*- # @Time : 2020/8/21 3:56 AM # @Author : Yinghao Qin # @Email : [email protected] # @File : utils6.py # @Software: PyCharm ####################################################################################### # 'utils6' is used to calculate the Levenshtein distance between the predicted results# # and ground truth. # ####################################################################################### def LevenshteinDistance(a, b): """ The Levenshtein distance is a metric for measuring the difference between two sequences. Calculates the Levenshtein distance between a and b. :param a: the first sequence, such as [1, 2, 3, 4] :param b: the second sequence :return: Levenshtein distance """ n, m = len(a), len(b) if n > m: # Make sure n <= m, to use O(min(n,m)) space a, b = b, a n, m = m, n current = range(n + 1) for i in range(1, m + 1): previous, current = current, [i] + [0] * n for j in range(1, n + 1): add, delete = previous[j] + 1, current[j - 1] + 1 change = previous[j - 1] if a[j - 1] != b[i - 1]: change = change + 1 current[j] = min(add, delete, change) if current[n]<0: return 0 else: return current[n] # x = [0, 23, 4, 5] # y = [0, 24, 4, 5, 7] # print(LevenshteinDistance(x, y))
# Demonstration of basic Python functions beginning on page 16 # # Basic addition x =44+11*4-6/11 print(x) m = 60*24*7 print("Number of minutes in a week: ", m) times = 2304811//47 #Integer division remainder = 2304811 - (times*47) print("Remainder of 2304811 divided by 47 without using modulo: ", remainder) print(2304811%47) #Inequalities print(5==4) #False print(4==4) #True print(True and not(5==4)) #True #Conditional Expressions x = -9 y = 1/2 val = 2**(y+1/2) if x*10<0 else 2**(y-1/2) #val == 2 print("val is: ", val) #Sets don't duplicate values s1 = {1+2, 3, 'a'} print(s1) # {3, 'a'} #Setd don't retain the order they were entered in s2 = {3, 2, 1} print(s2) # likely result is {1, 2, 3} #Cardinality is the length of the set acquired using len print(len(s1)) # 2 #sum a set using sum() print(sum(s2)) # 6 #sum starting at a value other than zero print(sum(s2, 10)) # 16 #Test for set membership print(2 in s2) # True print(5 not in s2) # True #Union is all elements in both sets s3 = {3, 4, 2} print(s2|s3) #Intersection is elements present in both sets print(s2 & s3) #mutating a set s4 = {1,2,3} s4.add(4) s4.remove(2) print(s4) #Set comprehensions s5 = {2*x for x in {1,2,3}} print(s5) square_set = {x**2 for x in {1,2,3,4,5}} print(square_set) power_set = {2**x for x in {0,1,2,3,4}} print(power_set) double_comp_set = {x*y for x in {1,2,3} for y in {2,3,4}} print(double_comp_set)
""" aprimore o desafio anterior, mostrando no final a - a soma de todos os valores pares digitados, b - a soma dos valores da terceira coluna. c - O maior valor da segunda linha""" matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] spar = maior = scol = 0 for linha in range(0, 3): for coluna in range(0, 3): matriz[linha][coluna] = int(input(f'Digite um valor da posiรงรฃo [{linha, coluna}]: ')) print('=' * 40) for l in range(0, 3): for c in range(0, 3): print(f'\033[96m[{matriz[l][c]:>5}]\033[m', end='') if matriz[l][c] % 2 == 0: spar += matriz[l][c] # a soma de todos os valores pares digitados: print() print(f'A soma dos nรบmeros pares รฉ \033[93m{spar}\033[m') for l in range(0, 3): scol += matriz[l][2] if l == 0: # o maior valor da segunda linha maior = matriz[1][l] else: if matriz[1][l] > maior: maior = matriz[1][l] print(f'A soma da terceira coluna รฉ: \033[94m{scol}\033[m') print(f'O maior nรบmero da segunda linha รฉ \033[95m{maior}\033[m') '''esse foi o jeito que eu tinha feito porem eu reparei que ele nรฃo era tรฃo eficaz caso minha matriz tivesse n valores somador = 0 for linha in range(0, 3): for c in range(0, 3): if matriz[linha][c] % 2 == 0: somador += matriz[linha][c] print(f'A soma dos nรบmeros pares รฉ {somador}') soma = matriz[0][2] + matriz[1][2] + matriz[2][2] # a soma dos valores da teerceira coluna: print(f'A soma de todos o nรบmeros da terceira coluna รฉ: \033[94m{soma}\033[m') maiorn = [matriz[1][0], matriz[1][1], matriz[1][2]] print(f'O maior nรบmero da segunda linha รฉ: {max(maiorn)}')'''
class Bridge: __ipaddress = None __username = None def __init__(self): pass def discover_bridges(self): pass
# # PySNMP MIB module SONUS-REDUNDANCY-SERVICES-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SONUS-REDUNDANCY-SERVICES-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:02:05 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Bits, TimeTicks, ModuleIdentity, IpAddress, NotificationType, Integer32, Counter32, Gauge32, MibIdentifier, Unsigned32, ObjectIdentity, iso = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Bits", "TimeTicks", "ModuleIdentity", "IpAddress", "NotificationType", "Integer32", "Counter32", "Gauge32", "MibIdentifier", "Unsigned32", "ObjectIdentity", "iso") RowStatus, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TextualConvention", "DisplayString") sonusSlotIndex, sonusEventDescription, sonusShelfIndex, sonusEventLevel, sonusEventClass = mibBuilder.importSymbols("SONUS-COMMON-MIB", "sonusSlotIndex", "sonusEventDescription", "sonusShelfIndex", "sonusEventLevel", "sonusEventClass") sonusServicesMIBs, = mibBuilder.importSymbols("SONUS-SMI", "sonusServicesMIBs") SonusName, ServerFunctionType, ServerTypeID = mibBuilder.importSymbols("SONUS-TC", "SonusName", "ServerFunctionType", "ServerTypeID") sonusRedundancyServicesMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8)) if mibBuilder.loadTexts: sonusRedundancyServicesMIB.setLastUpdated('200104180000Z') if mibBuilder.loadTexts: sonusRedundancyServicesMIB.setOrganization('Sonus Networks, Inc.') sonusRedundancyServicesMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1)) sonusRedundGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1)) sonusRedundGroupNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupNextIndex.setStatus('current') sonusRedundGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2), ) if mibBuilder.loadTexts: sonusRedundGroupTable.setStatus('current') sonusRedundGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1), ).setIndexNames((0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex")) if mibBuilder.loadTexts: sonusRedundGroupEntry.setStatus('current') sonusRedundGroupAdmnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupAdmnIndex.setStatus('current') sonusRedundGroupAdmnState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupAdmnState.setStatus('current') sonusRedundGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 3), SonusName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupName.setStatus('current') sonusRedundGroupShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupShelfIndex.setStatus('current') sonusRedundGroupRedundSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupRedundSlotIndex.setStatus('current') sonusRedundGroupSwitchoverCntrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("normal", 2), ("forced", 3), ("revert", 4), ("revertForced", 5))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupSwitchoverCntrl.setStatus('current') sonusRedundGroupSwitchoverClientSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupSwitchoverClientSlotIndex.setStatus('current') sonusRedundGroupFallbackCntrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2))).clone('nonrevertive')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupFallbackCntrl.setStatus('current') sonusRedundGroupWaitToRevertTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 12)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupWaitToRevertTime.setStatus('current') sonusRedundGroupAutoDetectCntrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupAutoDetectCntrl.setStatus('current') sonusRedundGroupHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 11), ServerTypeID()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupHwType.setStatus('current') sonusRedundGroupHealthcheckCntrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupHealthcheckCntrl.setStatus('current') sonusRedundGroupAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 13), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupAdmnRowStatus.setStatus('current') sonusRedundGroupSrvrFunction = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 14), ServerFunctionType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupSrvrFunction.setStatus('current') sonusRedundClient = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2)) sonusRedundClientNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientNextIndex.setStatus('current') sonusRedundClientTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2), ) if mibBuilder.loadTexts: sonusRedundClientTable.setStatus('current') sonusRedundClientEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1), ).setIndexNames((0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundClientAdmnGroupIndex"), (0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundClientAdmnSlotIndex")) if mibBuilder.loadTexts: sonusRedundClientEntry.setStatus('current') sonusRedundClientAdmnGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundClientAdmnGroupIndex.setStatus('current') sonusRedundClientAdmnSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundClientAdmnSlotIndex.setStatus('current') sonusRedundClientAdmnState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundClientAdmnState.setStatus('current') sonusRedundClientAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 4), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundClientAdmnRowStatus.setStatus('current') sonusRedundGroupStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3), ) if mibBuilder.loadTexts: sonusRedundGroupStatTable.setStatus('current') sonusRedundGroupStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1), ).setIndexNames((0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupStatIndex")) if mibBuilder.loadTexts: sonusRedundGroupStatEntry.setStatus('current') sonusRedundGroupStatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupStatIndex.setStatus('current') sonusRedundGroupRedundOpState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("standby", 1), ("activeSynced", 2), ("activeSyncing", 3), ("activeNotSynced", 4), ("absent", 5), ("reset", 6), ("failed", 7), ("unknown", 8), ("outOfService", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupRedundOpState.setStatus('current') sonusRedundGroupStandbySlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupStandbySlotIndex.setStatus('current') sonusRedundGroupRedundSonicId = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupRedundSonicId.setStatus('current') sonusRedundGroupProtectedSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupProtectedSlotIndex.setStatus('current') sonusRedundGroupNumClients = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupNumClients.setStatus('current') sonusRedundGroupNumSwitchovers = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupNumSwitchovers.setStatus('current') sonusRedundGroupLastSwitchoverReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=NamedValues(("none", 1), ("adminSwitchover", 2), ("autoReversion", 3), ("reset", 4), ("removal", 5), ("softwareFailure", 6), ("hardwareFailure", 7), ("healthCheckTimeout", 8), ("other", 9), ("softwareUpgrade", 10), ("excessiveLinkFailure", 11), ("reserved2", 12), ("unknown", 13)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupLastSwitchoverReason.setStatus('current') sonusRedundClientStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4), ) if mibBuilder.loadTexts: sonusRedundClientStatTable.setStatus('current') sonusRedundClientStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1), ).setIndexNames((0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundClientStatGroupIndex"), (0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundClientStatSlotIndex")) if mibBuilder.loadTexts: sonusRedundClientStatEntry.setStatus('current') sonusRedundClientStatGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientStatGroupIndex.setStatus('current') sonusRedundClientStatSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientStatSlotIndex.setStatus('current') sonusRedundClientSonicId = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientSonicId.setStatus('current') sonusRedundClientState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("standby", 1), ("activeSynced", 2), ("activeSyncing", 3), ("activeNotSynced", 4), ("absent", 5), ("reset", 6), ("failed", 7), ("unknown", 8), ("outOfService", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientState.setStatus('current') sonusRedundancyServicesMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2)) sonusRedundancyServicesMIBNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0)) sonusRedundancyServicesMIBNotificationsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 1)) sonusRedundPrevActiveSlotIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundPrevActiveSlotIndex.setStatus('current') sonusRedundGroupSwitchOverNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 1)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundPrevActiveSlotIndex"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupLastSwitchoverReason"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupName"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupSwitchOverNotification.setStatus('current') sonusRedundGroupNoRedundancyNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 2)).setObjects(("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupName"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupNoRedundancyNotification.setStatus('current') sonusRedundGroupFullRedundancyNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 3)).setObjects(("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupName"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupFullRedundancyNotification.setStatus('current') sonusRedundGroupProtectedClientRestored = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 4)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupName"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupProtectedClientRestored.setStatus('current') sonusRedundGroupMnsActiveNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 5)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupMnsActiveNotification.setStatus('current') mibBuilder.exportSymbols("SONUS-REDUNDANCY-SERVICES-MIB", sonusRedundancyServicesMIBObjects=sonusRedundancyServicesMIBObjects, sonusRedundClientSonicId=sonusRedundClientSonicId, sonusRedundGroupShelfIndex=sonusRedundGroupShelfIndex, sonusRedundClient=sonusRedundClient, sonusRedundGroupRedundOpState=sonusRedundGroupRedundOpState, sonusRedundGroupNumSwitchovers=sonusRedundGroupNumSwitchovers, sonusRedundGroupFallbackCntrl=sonusRedundGroupFallbackCntrl, sonusRedundGroupAdmnIndex=sonusRedundGroupAdmnIndex, sonusRedundGroupStatIndex=sonusRedundGroupStatIndex, sonusRedundGroupFullRedundancyNotification=sonusRedundGroupFullRedundancyNotification, sonusRedundGroupSwitchOverNotification=sonusRedundGroupSwitchOverNotification, sonusRedundGroupTable=sonusRedundGroupTable, sonusRedundGroupAdmnRowStatus=sonusRedundGroupAdmnRowStatus, sonusRedundGroupName=sonusRedundGroupName, sonusRedundClientStatSlotIndex=sonusRedundClientStatSlotIndex, sonusRedundPrevActiveSlotIndex=sonusRedundPrevActiveSlotIndex, sonusRedundClientNextIndex=sonusRedundClientNextIndex, sonusRedundClientAdmnState=sonusRedundClientAdmnState, sonusRedundGroupStatTable=sonusRedundGroupStatTable, sonusRedundGroupLastSwitchoverReason=sonusRedundGroupLastSwitchoverReason, sonusRedundGroupAdmnState=sonusRedundGroupAdmnState, sonusRedundGroupNumClients=sonusRedundGroupNumClients, sonusRedundGroupMnsActiveNotification=sonusRedundGroupMnsActiveNotification, sonusRedundGroupRedundSlotIndex=sonusRedundGroupRedundSlotIndex, sonusRedundClientAdmnRowStatus=sonusRedundClientAdmnRowStatus, sonusRedundGroupSrvrFunction=sonusRedundGroupSrvrFunction, sonusRedundClientAdmnGroupIndex=sonusRedundClientAdmnGroupIndex, sonusRedundGroupRedundSonicId=sonusRedundGroupRedundSonicId, sonusRedundClientStatEntry=sonusRedundClientStatEntry, sonusRedundClientTable=sonusRedundClientTable, sonusRedundClientStatTable=sonusRedundClientStatTable, sonusRedundGroupAutoDetectCntrl=sonusRedundGroupAutoDetectCntrl, sonusRedundClientAdmnSlotIndex=sonusRedundClientAdmnSlotIndex, sonusRedundGroupSwitchoverClientSlotIndex=sonusRedundGroupSwitchoverClientSlotIndex, sonusRedundClientStatGroupIndex=sonusRedundClientStatGroupIndex, sonusRedundancyServicesMIB=sonusRedundancyServicesMIB, sonusRedundancyServicesMIBNotificationsObjects=sonusRedundancyServicesMIBNotificationsObjects, sonusRedundGroupStatEntry=sonusRedundGroupStatEntry, sonusRedundGroupProtectedSlotIndex=sonusRedundGroupProtectedSlotIndex, sonusRedundGroupHealthcheckCntrl=sonusRedundGroupHealthcheckCntrl, sonusRedundancyServicesMIBNotifications=sonusRedundancyServicesMIBNotifications, sonusRedundGroupSwitchoverCntrl=sonusRedundGroupSwitchoverCntrl, sonusRedundClientEntry=sonusRedundClientEntry, sonusRedundGroup=sonusRedundGroup, sonusRedundGroupStandbySlotIndex=sonusRedundGroupStandbySlotIndex, sonusRedundGroupHwType=sonusRedundGroupHwType, PYSNMP_MODULE_ID=sonusRedundancyServicesMIB, sonusRedundGroupProtectedClientRestored=sonusRedundGroupProtectedClientRestored, sonusRedundGroupEntry=sonusRedundGroupEntry, sonusRedundGroupNoRedundancyNotification=sonusRedundGroupNoRedundancyNotification, sonusRedundGroupNextIndex=sonusRedundGroupNextIndex, sonusRedundancyServicesMIBNotificationsPrefix=sonusRedundancyServicesMIBNotificationsPrefix, sonusRedundGroupWaitToRevertTime=sonusRedundGroupWaitToRevertTime, sonusRedundClientState=sonusRedundClientState)
def TSMC_Tech_Map(depth, width) -> dict: ''' Currently returns the tech map for the single port SRAM, but we can procedurally generate different tech maps ''' ports = [] single_port = { 'data_in': 'D', 'addr': 'A', 'write_enable': 'WEB', 'cen': 'CEB', 'clk': 'CLK', 'data_out': 'Q', 'alt_sigs': { # value, width 'RTSEL': (0, 2), 'WTSEL': (0, 2) } } ports.append(single_port) tech_map = { 'name': f"TS1N16FFCLLSBLVTC{depth}X{width}M4S", 'ports': ports, 'depth': depth, 'width': width } return tech_map def SKY_Tech_Map() -> dict: ''' Currently returns the tech map for the sky130 dual port SRAM, but we can procedurally generate different tech maps NOTE - Ordering of ports matters!!! ''' ports = [] # READWRITE Port first_port = { 'data_in': 'din0', 'addr': 'addr0', 'write_enable': 'web0', 'cen': 'csb0', 'clk': 'clk0', 'data_out': 'dout0', 'alt_sigs': { # value, width 'wmask0': (2 ** 4 - 1, 4) } } # READ Port second_port = { 'data_out': 'dout1', 'read_addr': 'addr1', 'cen': 'csb1', 'clk': 'clk1', 'alt_sigs': {} } ports.append(first_port) ports.append(second_port) tech_map = { 'name': "sky130_sram_1kbyte_1rw1r_32x256_8", 'ports': ports, 'depth': 256, 'width': 32 } return tech_map def GF_Tech_Map(depth, width, dual_port=False) -> dict: ''' Currently returns the tech map for the single port SRAM or the dual port SRAM (1rw1r) mux 8 ("M08" in in the inst name) (note that dual port mux 8 supports only the 16bit width width 32 uses mux 4, width 64 uses mux 2), but we can procedurally generate different tech maps ''' ports = [] single_port = { 'data_in': 'D', 'addr': 'A', 'write_enable': 'RDWEN', 'cen': 'CEN', 'clk': 'CLK', 'data_out': 'Q', 'alt_sigs': { # value, width 'T_LOGIC': (0, 1), 'T_Q_RST': (0, 1), 'MA_SAWL1': (0, 1), 'MA_SAWL0': (0, 1), 'MA_WL1': (0, 1), 'MA_WL0': (0, 1), 'MA_WRAS1': (0, 1), 'MA_WRAS0': (0, 1), 'MA_VD1': (0, 1), 'MA_VD0': (0, 1), 'MA_WRT': (0, 1), 'MA_STABAS1': (0, 1), 'MA_STABAS0': (0, 1), } } dual_port_p0rw = { # port RW 'clk': 'CLK_A', 'cen': 'CEN_A', 'write_enable': 'RDWEN_A', 'addr': 'A_A', 'data_in': 'D_A', 'data_out': 'Q_A', 'alt_sigs': { # value, width 'T_Q_RST_A': (0, 1), 'T_LOGIC': (0, 1), 'MA_SAWL1': (0, 1), 'MA_SAWL0': (0, 1), 'MA_WL1': (0, 1), 'MA_WL0': (0, 1), 'MA_WRAS1': (0, 1), 'MA_WRAS0': (0, 1), 'MA_VD1': (0, 1), 'MA_VD0': (0, 1), 'MA_WRT': (0, 1), } } dual_port_p1r = { # port RW 'clk': 'CLK_B', 'cen': 'CEN_B', 'read_addr': 'A_B', 'data_out': 'Q_B', 'alt_sigs': { # value, width 'T_Q_RST_B': (0, 1), 'RDWEN_B': (1, 1), 'D_B': (0, width), } } if dual_port: ports.append(dual_port_p0rw) ports.append(dual_port_p1r) name = f"IN12LP_SDPB_W{depth:05}B{width:03}M08S2_H" else: ports.append(single_port) name = f"IN12LP_S1DB_W{depth:05}B{width:03}M04S2_H" tech_map = { 'name': name, 'ports': ports, 'depth': depth, 'width': width } return tech_map
def extractMayonaizeshrimpWordpressCom(item): ''' Parser for 'mayonaizeshrimp.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('Love Switch', 'Love Switch', 'translated'), ('You Think Itโ€™s Fine to Just Summon Me to Another World? Huh?', 'You Think Itโ€™s Fine to Just Summon Me to Another World? Huh?', 'translated'), ('Impregnable โ‰ชDreadnoughtโ‰ซ', 'Impregnable โ‰ชDreadnoughtโ‰ซ', 'translated'), ('No Fatigue', 'No Fatigue: 24-jikan Tatakaeru Otoko no Tenseitan', 'translated'), ('Isekai GM', 'The GM Has Logged Into A Different World', 'translated'), ('Master\'s Smile', 'Master\'s Smile', 'translated'), ('heibon', 'E? Heibon Desu yo??', 'translated'), ] for tagname, name, tl_type in tagmap: if tagname in item['tags']: return buildReleaseMessageWithType(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type) titlemap = [ ('YTIF ', 'You Think It\'s Fine to Just Summon Me to Another World? Huh?', 'translated'), ('ToK ', 'Tower of Karma', 'translated'), ('Isekai GM ', 'The GM Has Logged Into A Different World', 'translated'), ('LHA chapter ', 'The Little Hero of Alcatar', 'oel'), ] for titlecomponent, name, tl_type in titlemap: if titlecomponent.lower() in item['title'].lower(): return buildReleaseMessageWithType(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type) return False
short_sample_text = "Our booked passenger showed in a moment that it was his name. The guard, the coachman, and the " \ "two other passengers eyed him distrustfully." medium_sample_text = "It was the year of Our Lord one thousand seven hundred and seventy-five. Spiritual revelations " \ "were conceded to England at that favoured period, as at this. Mrs. Southcott had recently " \ "attained her five-and-twentieth blessed birthday, of whom a prophetic private in the Life " \ "Guards had heralded the sublime appearance by announcing that arrangements were made for the " \ "swallowing up of London and Westminster. Even the Cock-lane ghost had been laid only a round " \ "dozen of years, after rapping out its messages, as the spirits of this very year last past " \ "(supernaturally deficient in originality) rapped out theirs. Mere messages in the earthly " \ "order of events had lately come to the English Crown and People, from a congress of British " \ "subjects in America: which, strange to relate, have proved more important to the human race " \ "than any communications yet received through any of the chickens of the Cock-lane brood." large_sample_text = "There was a steaming mist in all the hollows, and it had roamed in its forlornness up the hill, " \ "like an evil spirit, seeking rest and finding none. A clammy and intensely cold mist, it made " \ "its slow way through the air in ripples that visibly followed and overspread one another, as " \ "the waves of an unwholesome sea might do. It was dense enough to shut out everything from the " \ "light of the coach-lamps but these its own workings, and a few yards of road; and the reek of " \ "the labouring horses steamed into it, as if they had made it all.\nTwo other passengers, " \ "besides the one, were plodding up the hill by the side of the mail. All three were wrapped to " \ "the cheekbones and over the ears, and wore jack-boots. Not one of the three could have said, " \ "from anything he saw, what either of the other two was like; and each was hidden under almost " \ "as many wrappers from the eyes of the mind, as from the eyes of the body, of his two " \ "companions. In those days, travellers were very shy of being confidential on a short notice, " \ "for anybody on the road might be a robber or in league with robbers. As to the latter, when " \ "every posting-house and ale-house could produce somebody in โ€œthe Captainโ€™sโ€ pay, ranging from " \ "the landlord to the lowest stable non-descript, it was the likeliest thing upon the cards. So " \ "the guard of the Dover mail thought to himself, that Friday night in November, one thousand " \ "seven hundred and seventy-five, lumbering up Shooterโ€™s Hill, as he stood on his own particular " \ "perch behind the mail, beating his feet, and keeping an eye and a hand on the arm-chest before " \ "him, where a loaded blunderbuss lay at the top of six or eight loaded horse-pistols, deposited " \ "on the passengers, the passengers suspected one another and the guard, they all suspected " \ "everybody else, and the coachman was sure of nothing but the horses; as to which cattle he " \ "could with a clear conscience have taken his oath on the two Testaments that they were not " \ "fit for the journey."
# A simple while loop example user_input = input('Hey how are you ') while user_input != 'stop copying me': print(user_input) user_input = input() else: print('UGHH Fine')
class A: pass class B(A): """ This is B class comments """ def __init__(self) -> None: super().__init__() @classmethod def get_class_name(cls): return cls.__name__ if __name__ == "__main__": def add_attr(self): print("add_attr") def add_static_attr(): print("static add_attr") print(B.__name__) print(B.__doc__) print(B.__module__) print(B.__bases__) print(B.__dict__) setattr(B, "add_attr", add_attr) setattr(B, "add_static_attr", add_static_attr) print(B.__dict__) B().add_attr() B.add_static_attr() # print(B.__annotations__) print(add_static_attr.__code__)
# # PySNMP MIB module ALCATEL-IND1-ISIS-SPB-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-ISIS-SPB-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:18:13 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) # routingIND1IsisSpb, = mibBuilder.importSymbols("ALCATEL-IND1-BASE", "routingIND1IsisSpb") ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint") VlanIdOrNone, = mibBuilder.importSymbols("IEEE8021-CFM-MIB", "VlanIdOrNone") IEEE8021PbbIngressEgress, IEEE8021BridgePortNumber, IEEE8021PbbServiceIdentifierOrUnassigned = mibBuilder.importSymbols("IEEE8021-TC-MIB", "IEEE8021PbbIngressEgress", "IEEE8021BridgePortNumber", "IEEE8021PbbServiceIdentifierOrUnassigned") InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero") VlanId, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") MibIdentifier, Unsigned32, IpAddress, Counter64, ObjectIdentity, Gauge32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Counter32, NotificationType, Integer32, TimeTicks, iso = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Unsigned32", "IpAddress", "Counter64", "ObjectIdentity", "Gauge32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Counter32", "NotificationType", "Integer32", "TimeTicks", "iso") MacAddress, TruthValue, TimeInterval, DisplayString, TimeStamp, TextualConvention, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TruthValue", "TimeInterval", "DisplayString", "TimeStamp", "TextualConvention", "RowStatus") alcatelIND1IsisSpbMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1)) alcatelIND1IsisSpbMib.setRevisions(('2007-04-03 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setRevisionsDescriptions(('The latest version of this MIB Module.',)) if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setLastUpdated('201311070000Z') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: [email protected] World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): Configuration Of Global OSPF Configuration Parameters. The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') class AlcatelIND1IsisSpbAreaAddress(TextualConvention, OctetString): reference = '12.25.1.1.2 a), 12.25.1.2.2 a), 12.25.1.3.2 a), 12.25.1.2.2 a)' description = 'This identifier is the 3 Byte IS-IS Area Address. Domain Specific part(DSP). Default is 00-00-00.' status = 'current' displayHint = '1x-' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(3, 3) fixedLength = 3 class AlcatelIND1IsisSpbSystemName(TextualConvention, OctetString): reference = 'RFC 4945 12.25.1.3.3 d), 12.25.7.1.3 f), 12.25.8.1.3 e)' description = 'This is the System Name assigned to this Bridge.' status = 'current' displayHint = '32a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 32) class AlcatelIND1IsisSpbEctAlgorithm(TextualConvention, OctetString): reference = '12.3 q)' description = 'The 4 byte Equal Cost Multiple Tree Algorithm identifier. This identifies the tree computation algorithm and tie breakers.' status = 'current' displayHint = '1x-' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(4, 4) fixedLength = 4 class AlcatelIND1IsisSpbMode(TextualConvention, Integer32): reference = '27.10' description = 'Auto allocation control for this instance of SPB. For SPBV it controls SPVIDs and for SPBM it controls SPSourceID.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("auto", 1), ("manual", 2)) class AlcatelIND1IsisSpbDigestConvention(TextualConvention, Integer32): reference = '28.4.3' description = 'The mode of the current Agreement Digest. This determines the level of loop prevention.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("off", 1), ("loopFreeBoth", 2), ("loopFreeMcastOnly", 3)) class AlcatelIND1IsisSpbLinkMetric(TextualConvention, Integer32): reference = '28.2' description = 'The 24 bit cost of an SPB link. A lower metric value means better. Value 16777215 equals Infinity.' status = 'current' displayHint = 'd' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 16777215) class AlcatelIND1IsisSpbAdjState(TextualConvention, Integer32): reference = '12.25.6.1.3 d), 12.25.6.2.3 d), 12.25.7.1.3 (e' description = 'The current state of this SPB adjacency or port. The values are up, down, and testing.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("up", 1), ("down", 2), ("testing", 3)) class AlcatelIND1IsisSpbmSPsourceId(TextualConvention, OctetString): reference = '27.15' description = 'The Shortest Path Source Identifier for this bridge. It is the high order 3 bytes for multicast DA from this bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID.' status = 'current' displayHint = '1x-' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(3, 3) fixedLength = 3 class AlcatelIND1IsisSpbBridgePriority(TextualConvention, OctetString): reference = '13.26.3' description = 'The Bridge priority is the top 2 bytes of the Bridge Identifier. Lower values represent a better priority.' status = 'current' displayHint = '1x-' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(2, 2) fixedLength = 2 class AlcatelIND1IsisSpbMTID(TextualConvention, Unsigned32): reference = '3.23, 3.24' description = 'The IS-IS Multi Topology Identifier.' status = 'current' displayHint = 'd' class AlcatelIND1IsisSpbmMulticastMode(TextualConvention, Integer32): reference = 'NONE' description = 'Multicast mode for tandem-multicast.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1)) namedValues = NamedValues(("sgmode", 0), ("gmode", 1)) class AlcatelIND1IsisSpbIfOperState(TextualConvention, Integer32): description = 'The AlcatelIND1IsisSpbIfOperState data type is an enumerated integer that describes the operational state of an interface.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("unknown", 1), ("inService", 2), ("outOfService", 3), ("transition", 4)) class AlcatelSpbServiceIdentifier(TextualConvention, Unsigned32): reference = 'NONE' description = 'The service instance identifier is used at the Customer Backbone port in SPBM to distinguish a service instance. The special value of 0xFFFFFF is used for wildcard. This range also includes the default I-SID. cf. IEEE8021SpbServiceIdentifierOrAny' status = 'current' displayHint = 'd' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(255, 16777215) class AlcatelIND1IsisSpbmIsidFlags(TextualConvention, Integer32): reference = 'NONE' description = 'Flags to indicate multicast source/sink or both. cf. IEEE8021PbbIngressEgress' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("none", 0), ("tx", 1), ("rx", 2), ("both", 3)) alcatelIND1IsisSpbMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1)) alcatelIND1IsisSpbSys = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1)) alcatelIND1IsisSpbProtocolConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2)) alcatelIND1IsisSpbSysControlBvlan = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 1), VlanId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlBvlan.setDescription('The vlan tag applied to ISIS-SPB frames.') alcatelIND1IsisSpbSysAdminState = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAdminState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAdminState.setDescription('Controls the operational state of the ISIS-SPB protocol. Default value is disable(2).') alcatelIND1IsisSpbSysAreaAddress = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 3), AlcatelIND1IsisSpbAreaAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setReference('12.25.1.3.2, 12.25.1.3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setDescription('The three byte IS-IS Area Address to join. Normally SPB will use area 00-00-00 however if SPB is being used in conjunction with IPV4/V6 it may operate using the IS-IS area address already in use. This object is persistent. cf. ieee8021SpbSysAreaAddress') alcatelIND1IsisSpbSysId = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 4), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setReference('12.25.1.3.3, 3.21') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setDescription('SYS ID used for all SPB instances on this bridge. A six byte network wide unique identifier. cf. ieee8021SpbSysId') alcatelIND1IsisSpbSysControlAddr = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 5), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setReference('12.25.1.3.3, 8.13.5.1') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setDescription('Group MAC that the ISIS control plane will use. SPB may use a number of different addresses for SPB Hello and LSP exchange. Section 27.2, 8.13.1.5 and Table 8-13 covers the different choices. The choices are as follows: 01-80-C2-00-00-14 = All Level 1 Intermediate Systems 01-80-C2-00-00-15 = All Level 2 Intermediate Systems 09-00-2B-00-00-05 = All Intermediate Systems. 01-80-xx-xx-xx-xx = All Provider Bridge Intermediate Systems. 01-80-yy-yy-yy-yy = All Customer Bridge Intermediate Systems. This object is persistent. cf. ieee8021SpbSysControlAddr') alcatelIND1IsisSpbSysName = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 6), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setReference('12.25.1.3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setDescription('Name to be used to refer to this SPB bridge. This is advertised in IS-IS and used for management. cf. ieee8021SpbSysName') alcatelIND1IsisSpbSysBridgePriority = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 7), AlcatelIND1IsisSpbBridgePriority()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setReference('12.25.1.3.3, 13.26.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setDescription('This is a 16 bit quantity which ranks this SPB Bridge relative to others when breaking ties. This priority is the high 16 bits of the Bridge Identifier. Its impact depends on the tie breaking algorithm. Recommend values 0..15 be assigned to core switches to ensure diversity of the ECT algorithms. cf. ieee8021SpbSysBridgePriority') alcatelIND1IsisSpbmSysSPSourceId = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 8), AlcatelIND1IsisSpbmSPsourceId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setReference('12.25.1.3.3, 3.17, 27.15') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setDescription('The Shortest Path Source Identifier. It is the high order 3 bytes for Group Address DA from this bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID. This object is persistent. cf. ieee8021SpbmSysSPSourceId') alcatelIND1IsisSpbvSysMode = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 9), AlcatelIND1IsisSpbMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setReference('12.25.1.3.3, 3.20') if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setDescription('Indication of supporting SPBV mode auto(=1)/manual(=2) auto => enable SPBV mode and auto allocate SPVIDs. manual => enable SPBV mode and manually assign SPVIDs. The default is auto. This object is persistent. cf. ieee8021SpbvSysMode') alcatelIND1IsisSpbmSysMode = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 10), AlcatelIND1IsisSpbMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setReference('12.25.1.3.3, 3.19') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setDescription('Indication of supporting SPBM mode auto(=1)/manual(=2) auto => enable SPBM mode and auto allocate SPsourceID. manual => enable SPBM mode and manually assign SPsourceID. The default is auto. This object is persistent. cf. ieee8021SpbmSysMode') alcatelIND1IsisSpbSysDigestConvention = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 11), AlcatelIND1IsisSpbDigestConvention()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setReference('12.25.1.3.3, 28.4.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setDescription('The Agreement Digest convention setting off(=1)/loopFreeBoth(=2)/loopFreeMcastOnly(=3) off => disable agreement digest checking in hellos loopFreeBoth => block unsafe group and individual traffic when digests disagree. loopFreeMcastOnly =>block group traffic when digests disagree. The default is loopFreeBoth. This object is persistent. cf. ieee8021SpbSysDigestConvention') alcatelIND1IsisSpbSysSetOverload = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 12), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysSetOverload.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysSetOverload.setDescription('Administratively set the overload bit. The overload bit will continue to be set if the implementation runs out of memory, independent of this variable.') alcatelIND1IsisSpbSysOverloadTimeout = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 13), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60, 1800), ))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadTimeout.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadTimeout.setDescription('The value of alcatelIND1IsisSpbSysOverloadTimeout is the amount of time, in seconds, the router operates in the overload state before attempting to reestablish normal operations. While in overload state, this IS-IS router will only be used if the destination is only reachable via this router; it is not used for other transit traffic. Operationally placing the router into the overload state is often used as a precursor to shutting down the IS-IS protocol operation. The value of 0 means the router is in overload infinitely.') alcatelIND1IsisSpbSysOverloadOnBoot = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 14), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBoot.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBoot.setDescription("The value of alcatelIND1IsisSpbSysOverloadOnBoot specifies if the router should be in overload state right after the boot up process. If the alcatelIND1IsisSpbSysOverloadOnBoot is set to 'enabled' the overload timeout is maintained by alcatelIND1IsisSpbSysOverloadOnBootTimeout.") alcatelIND1IsisSpbSysOverloadOnBootTimeout = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 15), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60, 1800), ))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBootTimeout.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBootTimeout.setDescription('The value of alcatelIND1IsisSpbSysOverloadOnBootTimeout is the amount of time, in seconds for which the router operates in the overload state before attempting to reestablish normal operations when the system comes up after a fresh boot. While in overload state, this IS-IS router will only be used if the destination is only reachable via this router; it is not used for other transit traffic. The value of 0 means the router is in overload infinitely.') alcatelIND1IsisSpbSysOverloadStatus = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notInOverload", 1), ("dynamic", 2), ("manual", 3), ("manualOnBoot", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadStatus.setDescription("Indicates whether or not this isis-spb instance is in overload state. When has the value 'notInOverload', the IS-IS level is normal state. When the value is 'dynamic', the level is in the overload state because of insufficient memeory to add additional entries to the IS-IS database for this level. When the value is 'manual', the level has been put into the overload state administratively as a result of the alcatelIND1IsisSpbSysSetOverload object having been set.") alcatelIND1IsisSpbSysLastEnabledTime = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTime.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTime.setDescription('Contains the sysUpTime value when alcatelIND1IsisSpbSysAdminState was last set to enabled (1) to run the IS-IS protocol.') alcatelIND1isisSpbSysLastSpfRun = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRun.setStatus('current') if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRun.setDescription('Contains the sysUpTime value when the last SPF run was performed for this instance of the IS-IS protocol.') alcatelIND1IsisSpbSysNumLSPs = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysNumLSPs.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysNumLSPs.setDescription('Specifies the number of LSPs in the database.') alcatelIND1IsisSpbSysLastEnabledTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 20), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTimeStamp.setDescription('Contains the sysUpTime value when alcatelIND1IsisSpbSysAdminState was last set to enabled (1) to run the IS-IS protocol.') alcatelIND1isisSpbSysLastSpfRunTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 21), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRunTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRunTimeStamp.setDescription('Contains the sysUpTime value when the last SPF run was performed for this instance of the IS-IS protocol.') alcatelIND1IsisSpbProtocolSpfMaxWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1000, 120000)).clone(1000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfMaxWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfMaxWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfMaxWait defines the Maximum interval between two consecutive spf calculations in milliseconds.') alcatelIND1IsisSpbProtocolSpfInitialWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(10, 100000)).clone(100)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfInitialWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfInitialWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfInitialWait defines the initial SPF calculation delay (in milliseconds) after a topology change.') alcatelIND1IsisSpbProtocolSpfSecondWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100000)).clone(300)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfSecondWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfSecondWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfSecondWait defines the hold time between the first and second SPF calculation (in milliseconds). Subsequent SPF runs will occur at exponentially increasing intervals of spf-second-wait i.e. if spf-second-wait is 1000, then the next SPF will run after 2000 msec, the next one at 4000 msec etc until it is capped off at spf-wait value. The SPF interval will stay at spf-wait value until there are no more SPF runs scheduled in that interval. After a full interval without any SPF runs, the SPF interval will drop back to spf-initial-wait.') alcatelIND1IsisSpbProtocolLspMaxWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1000, 120000)).clone(1000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspMaxWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspMaxWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspWait defines the maximum interval (in milliseconds) between two consecutive ocurrences of an LSP being generated.') alcatelIND1IsisSpbProtocolLspInitialWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100000))).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspInitialWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspInitialWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspInitialWait defines the initial LSP generation delay (in milliseconds).') alcatelIND1IsisSpbProtocolLspSecondWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(100, 100000)).clone(300)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspSecondWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspSecondWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspInitialWait defines the hold time between the first and second LSP generation (in milliseconds).') alcatelIND1IsisSpbProtocolGracefulRestart = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 7), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGracefulRestart.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGracefulRestart.setDescription('The value of alcatelIND1IsisSpbProtocolGracefulRestart specifies whether the graceful restart is enabled or disabled for this instance of IS-IS.') alcatelIND1IsisSpbProtocolGRHelperMode = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 8), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGRHelperMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGRHelperMode.setDescription("The value of alcatelIND1IsisSpbProtocolGRHelperMode specifies whether the graceful restart helper mode is enabled or disabled for this instance of IS-IS. alcatelIND1IsisSpbProtocolGRHelperMode is valid only if the value of alcatelIND1IsisSpbProtocolGracefulRestart is 'true'. When alcatelIND1IsisSpbProtocolGRHelperMode has a value of 'true' graceful restart helper capabilities are enabled. When it has a value of 'false' the graceful restart helper capabilities are disabled.") alcatelIND1IsisSpbAdjStaticTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setReference('12.25.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setDescription('A table containing the SPB configuration data for a neighbor. cf. ieee8021SpbAdjStaticTable') alcatelIND1IsisSpbAdjStaticTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryIfIndex")) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setReference('12.25.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setDescription('This table can be used to display the interfaces and metrics of a neighbor bridge. ') alcatelIND1IsisSpbAdjStaticEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbAdjStaticEntryIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 2), InterfaceIndexOrZero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setReference('12.25.6.1.2, 12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setDescription('The System interface/index which defines this adjacency. A value of 0 is a wildcard for any interface on which SPB Operation is supported.') alcatelIND1IsisSpbAdjStaticEntryMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 3), AlcatelIND1IsisSpbLinkMetric()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12.7') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setDescription('The alcatelIND1IsisSpb metric (incremental cost) to this peer. The contribution of this link to total path cost. Recommended values are inversely proportional to link speed. Range is (1..16777215) where 16777215 (0xFFFFFF) is infinity; infinity signifies that the adjacency is UP, but is not to be used for traffic. This object is persistent.') alcatelIND1IsisSpbAdjStaticEntryHelloInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 20000))).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloInterval.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloInterval.setDescription('Maximum period, in seconds, between IIH PDUs.') alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(2, 100)).clone(10)).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier.setDescription('This value is multiplied by the corresponding HelloInterval and the result in seconds (rounded up) is used as the holding time in transmitted hellos, to be used by receivers of hello packets from this IS') alcatelIND1IsisSpbAdjStaticEntryIfAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 6), AlcatelIND1IsisSpbAdjState()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setReference('12.25.6.1.2, 12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setDescription('The administrative state of this interface/port. Up is the default. This object is persistent.') alcatelIND1IsisSpbAdjStaticEntryRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1IsisSpbAdjStaticEntryCircuitId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryCircuitId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryCircuitId.setDescription('The local circuit id.') alcatelIND1IsisSpbAdjStaticEntryIfOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 9), AlcatelIND1IsisSpbIfOperState()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfOperState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfOperState.setDescription('The current operational state of IS-IS protocol on this interface.') alcatelIND1IsisSpbAdjStaticEntryAFDConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryAFDConfig.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryAFDConfig.setDescription('Configuration is made by admin or auto-fabric on this interface') alcatelIND1IsisSpbEctStaticTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setReference('12.25.4') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setDescription('The Equal Cost Tree (ECT) static configuration table. cf. ieee8021SpbEctStaticTable') alcatelIND1IsisSpbEctStaticTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryBaseVid")) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setReference('12.25.4') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setDescription('The Equal Cost Tree static configuration Table defines the ECT ALGORITHM for the Base VID and if SPBV is used for the SPVID. ') alcatelIND1IsisSpbEctStaticEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setReference('12.25.4.2.2, 12.25.4.2.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbEctStaticEntryBaseVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 2), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setReference('12.25.4.2.3, 3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setDescription('Base VID to use for this ECT-ALGORITHM. Traffic B-VID (SPBM) or Management VID (SPBV). A Base VID value of 4095 is a wildcard for any Base VID assigned to SPB operation.') alcatelIND1IsisSpbEctStaticEntryEctAlgorithm = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 3), AlcatelIND1IsisSpbEctAlgorithm()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setReference('12.25.4.2.3, 3.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setDescription('This identifies the tie-breaking algorithms used in Shortest Path Tree computation. Values range from 00-80-c2-01 to 00-80-c2-16 for 802.1 for each the 16 ECT behaviors. This object is persistent.') alcatelIND1IsisSpbvEctStaticEntrySpvid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 4), VlanIdOrNone()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setReference('12.25.4.2.3, 3.16') if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setDescription('If SPBV mode this is the VID originating from this bridge. Must be set = 0 if SPVID Auto-allocation is required. Otherwise in SPBM this is empty, should be set = 0. This object is persistent.') alcatelIND1IsisSpbEctStaticEntryRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setReference('12.25.4.2.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1IsisSpbEctStaticEntryMulticastMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 6), AlcatelIND1IsisSpbmMulticastMode().clone('sgmode')).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryMulticastMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryMulticastMode.setDescription('This identifies the tandem multicast-mode of this bvlan. A value of 0 indicates (S,G) mode, while a value of 1 indicates (*,G) mode.') alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 7), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName.setDescription("Name of the root bridge. This object's value has meaning only when the bvlan is in (*,G) mode (e.g. alcatelIND1IsisSpbEctStaticEntryMulticastMode is set to gmode).") alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 8), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac.setDescription("Mac address of the root bridge. This object's value has meaning only when the bvlan is in (*,G) mode (e.g. alcatelIND1IsisSpbEctStaticEntryMulticastMode is set to gmode).") alcatelIND1IsisSpbAdjDynamicTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicTable.setDescription('The Adjacency table. cf. ieee8021SpbAdjDynamicTable cf. show ip isis adjacency') alcatelIND1IsisSpbAdjDynamicEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryIfIndex"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryPeerSysId")) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntry.setDescription('This table is used to determine operational values of digests and interfaces of neighbor bridges.') alcatelIND1IsisSpbAdjDynamicEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbAdjDynamicEntryIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 2), InterfaceIndexOrZero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryIfIndex.setDescription('System interface/index which defines this adjacency A value of 0 is a wildcard for any interface on which SPB Operation is enabled.') alcatelIND1IsisSpbAdjDynamicEntryPeerSysId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 3), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysId.setDescription('The SPB System Identifier of this peer. This is used to identify a neighbor uniquely.') alcatelIND1IsisSpbAdjDynamicEntryAdjState = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 4), AlcatelIND1IsisSpbAdjState()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjState.setDescription('The state of the adjacency.') alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime.setDescription('The time when the adjacency last entered the up state.') alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining.setDescription('The remaining hold time in seconds.') alcatelIND1IsisSpbAdjDynamicEntryHoldTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldTimer.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldTimer.setDescription('The holding time in seconds for this adjacency updated from received IIH PDUs.') alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId.setDescription('The extended circuit id advertised by the peer.') alcatelIND1IsisSpbAdjDynamicEntryNeighPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNeighPriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNeighPriority.setDescription('Priority of the neighboring Intermediate System for becoming the Designated Intermediate System.') alcatelIND1IsisSpbAdjDynamicEntryPeerSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 10), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysName.setDescription('IS-IS system name of peer. This is the ASCII name assigned to the bridge to aid management.') alcatelIND1IsisSpbAdjDynamicEntryRestartStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notHelping", 1), ("restarting", 2), ("restartComplete", 3), ("helping", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartStatus.setDescription('The graceful restart status of the adjacency.') alcatelIND1IsisSpbAdjDynamicEntryRestartSupport = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 12), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSupport.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSupport.setDescription("Indicates whether adjacency supports ISIS graceful restart. If 'true', the adjacency supports graceful restart.") alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 13), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed.setDescription("Indicates if the adjacency has requested this router to suppress advertisement of the adjacency in this router's LSPs. If 'true' the adjacency has requested to suppress advertisement of the LSPs.") alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 14), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp.setDescription('The sysUpTime value when the adjacency last entered the up state.') alcatelIND1IsisSpbNodeTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTable.setDescription('The Node table. cf. show ip isis nodes') alcatelIND1IsisSpbNodeTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeSysId")) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTableEntry.setDescription('This table can be used to display information about known bridges.') alcatelIND1IsisSpbNodeTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbNodeSysId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysId.setDescription('SYS ID used for all SPB instances on the bridge. A six byte network wide unique identifier.') alcatelIND1IsisSpbNodeSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 3), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysName.setDescription('Name to be used to refer to the SPB bridge. This is advertised in IS-IS and used for management.') alcatelIND1IsisSpbNodeSPSourceId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 4), AlcatelIND1IsisSpbmSPsourceId()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSPSourceId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSPSourceId.setDescription('The Shortest Path Source Identifier. It is the high order 3 bytes for Group Address DA from the bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID.') alcatelIND1IsisSpbNodeBridgePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 5), AlcatelIND1IsisSpbBridgePriority()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeBridgePriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeBridgePriority.setDescription('This is a 16 bit quantity which ranks the SPB Bridge relative to others when breaking ties. This priority is the high 16 bits of the Bridge Identifier. Its impact depends on the tie breaking algorithm.') alcatelIND1IsisSpbUnicastTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTable.setDescription('The unicast table. cf. show ip isis unicast-table') alcatelIND1IsisSpbUnicastTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastSysMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTableEntry.setDescription('This table can be used to display information about unicast targets.') alcatelIND1IsisSpbUnicastTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbUnicastBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 2), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastBvlan.setDescription('The bvlan associated with the unicast target.') alcatelIND1IsisSpbUnicastSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 3), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysMac.setDescription('The mac address of the bridge associated with the unicast target.') alcatelIND1IsisSpbUnicastSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 4), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysName.setDescription('Name of the bridge associated with the unicast target.') alcatelIND1IsisSpbUnicastOutboundIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 5), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastOutboundIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastOutboundIfIndex.setDescription('Outbound interface used to reach the unicast target.') alcatelIND1IsisSpbMulticastTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTable.setDescription('The multicast table. cf. show ip isis multicast-table') alcatelIND1IsisSpbMulticastTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryMulticastMac"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound")) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setDescription('This table can be used to display the multicast table for SPB ') alcatelIND1IsisSpbMulticastTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbMulticastTableEntryBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 2), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setDescription('Bvlan of the multicast entry.') alcatelIND1IsisSpbMulticastTableEntryMulticastMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 3), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setDescription('Multicast destination MAC of the multicast entry.') alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 4), InterfaceIndexOrZero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setDescription('Outbound interface index of the multicast entry, zero means local node is multicast receiver') alcatelIND1IsisSpbMulticastTableEntrySrcMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 5), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setDescription('System MAC of the multicast source, all zero means any MAC.') alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 6), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setDescription('Inbound interface index of the multicast source, zero means local node is multicast source') alcatelIND1IsisSpbMulticastTableEntrySysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 7), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setDescription('System name of multicast source') alcatelIND1IsisSpbMulticastTableEntryIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 8), AlcatelSpbServiceIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setDescription('The service identifier, e.g. isid number of the multicast entry.') alcatelIND1IsisSpbLSPTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTable.setDescription('The LSP table (database). cf. show ip isis database') alcatelIND1IsisSpbLSPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPId")) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPEntry.setDescription('Each row entry in the alcatelIND1IsisSpbLSPTable represents an LSP in the LSP database.') alcatelIND1IsisSpbLSPTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbLSPId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 2), OctetString()) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPId.setDescription('The LSP Id. The format is 6 octets of ajacency system-id followed by 1 octet LanId and 1 octet LSP Number.') alcatelIND1IsisSpbLSPSeq = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSeq.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSeq.setDescription('The sequence number of an LSP. The sequence number is a four byte quantity that represents the version of an LSP. The higher the sequence number, the more up to date the information. The sequence number is always incremented by the system that originated the LSP and ensures that there is only one version of that LSP in the entire network.') alcatelIND1IsisSpbLSPChecksum = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPChecksum.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPChecksum.setDescription('The checksum of contents of LSP from the SourceID field in the LSP till the end. The checksum is computed using the Fletcher checksum algorithm. ') alcatelIND1IsisSpbLSPLifetimeRemain = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPLifetimeRemain.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPLifetimeRemain.setDescription('Remaining lifetime of this LSP. This is a decrementing counter that decrements in seconds. When the remaining lifetime becomes zero, the contents of the LSP should not be considered for SPF calculation.') alcatelIND1IsisSpbLSPVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPVersion.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPVersion.setDescription('The version of the ISIS protocol that generated the LSP.') alcatelIND1IsisSpbLSPPktType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktType.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktType.setDescription('Packet type for instance Hello PDUs, LSPs, CSNPs or PSNPs.') alcatelIND1IsisSpbLSPPktVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktVersion.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktVersion.setDescription('The version of the ISIS protocol that generated the Packet.') alcatelIND1IsisSpbLSPMaxArea = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPMaxArea.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPMaxArea.setDescription('Maximum number of areas supported by the originator of the LSP. A value of 0 indicates a default of 3 areas.') alcatelIND1IsisSpbLSPSysIdLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSysIdLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSysIdLen.setDescription('The length of the system-id as used by the originator.') alcatelIND1IsisSpbLSPAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAttributes.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAttributes.setDescription('Attributes associated with the LSP. These include the attached bit, overload bit, IS type of the system originating the LSP and the partition repair capability. The attached bit and the overload bit are of significance only when present in the LSP numbered zero and should be ignored on receipt in any other LSP.') alcatelIND1IsisSpbLSPUsedLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPUsedLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPUsedLen.setDescription('The used length for the LSP. For an LSP that is not self originated, the used length is always equal to alloc len. For self originated LSPs, the used length is less than or equal to the alloc len.') alcatelIND1IsisSpbLSPAllocLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAllocLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAllocLen.setDescription('The length allocated for the LSP to be stored.') alcatelIND1IsisSpbLSPBuff = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 14), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPBuff.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPBuff.setDescription('The LSP as it exists in the LSP database.') alcatelIND1IsisSpbMulticastSourceTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTable.setDescription('The multicast source table. cf. show ip isis multicast-sources') alcatelIND1IsisSpbMulticastSourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSysMac"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceBvlan")) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceEntry.setDescription('This table can be used to display information about multicast sources.') alcatelIND1IsisSpbMulticastSourceTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbMulticastSourceSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysMac.setDescription('The mac address of the bridge associated with the multicast source.') alcatelIND1IsisSpbMulticastSourceBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 3), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceBvlan.setDescription('The bvlan associated with the multicast source.') alcatelIND1IsisSpbMulticastSourceSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 4), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysName.setDescription('Name of the bridge associated with the multicast source.') alcatelIND1IsisSpbMulticastSourceReachable = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceReachable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceReachable.setDescription('True if we have a path to the multicast source.') alcatelIND1IsisSpbSpfTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTable.setDescription('The spf table. cf. show spb isis spf') alcatelIND1IsisSpbSpfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfSysMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setDescription('This table can be used to display reachability information about known bridges, calculated by the Spf algorithm.') alcatelIND1IsisSpbSpfBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 1), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfBvlan.setDescription('The vlan to which this entry belongs.') alcatelIND1IsisSpbSpfSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysMac.setDescription('The mac-address of the bridge identified by this entry.') alcatelIND1IsisSpbSpfSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 3), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysName.setDescription('Name of the bridge identified by this entry.') alcatelIND1IsisSpbSpfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfIfIndex.setDescription('The outgoing interface index for reaching the bridge identified by this entry.') alcatelIND1IsisSpbSpfNextHopSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 5), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysMac.setDescription('The mac-address of the next-hop for reaching the bridge identified by this entry') alcatelIND1IsisSpbSpfNextHopSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 6), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysName.setDescription('Name of the next-hop bridge for reaching the bridge identified by this entry') alcatelIND1IsisSpbSpfMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 7), AlcatelIND1IsisSpbLinkMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfMetric.setDescription('The metric/incremental cost to reach the bridge identified by this entry.') alcatelIND1IsisSpbSpfHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfHopCount.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfHopCount.setDescription('The number of hops needed to reach the bridge identified by this entry.') alcatelIND1IsisSpbMulticastSourceSpfTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTable.setDescription('The multicast source spf table. cf. show ip isis multicast-sources-spf') alcatelIND1IsisSpbMulticastSourceSpfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setDescription('This table can be used to display the spf table of multicast sources in a SPB network. ') alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac.setDescription('The mac address of the multicast source.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 3), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setDescription('The bvlan of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 4), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac.setDescription('The destination mac address of the multicast source spf entry') alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 5), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex.setDescription('The outbound ifindex of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 6), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName.setDescription('The next hop system name of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 7), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac.setDescription('The next hop system mac of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 8), AlcatelIND1IsisSpbLinkMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric.setDescription('The path metric of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount.setDescription('The hop count of the multicast source spf entry.') alcatelIND1IsisSpbIngressMacFilterTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterTable.setDescription('The ingress mac filter table. cf. show ip isis ingress-mac-filter') alcatelIND1IsisSpbIngressMacFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacSysMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setDescription('The ingress mac filter table. cf. show spb isis ingress-mac-filter') alcatelIND1IsisSpbIngressMacBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 1), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacBvlan.setDescription('The vlan to which this entry belongs.') alcatelIND1IsisSpbIngressMacSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysMac.setDescription('The mac-address that identifies this entry.') alcatelIND1IsisSpbIngressMacSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 3), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysName.setDescription('The name of the bridge identified by this entry.') alcatelIND1IsisSpbIngressMacIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacIfIndex.setDescription('The ifindex of this entry.') alcatelIND1IsisSpbServiceTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTable.setDescription('The services table. cf. show spb isis services') alcatelIND1IsisSpbServiceTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryIsid"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntrySysMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setDescription('This table can be used to display the local configured and dynamically learned services. ') alcatelIND1IsisSpbServiceTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbServiceTableEntryBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 2), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setDescription('Bvlan of the service.') alcatelIND1IsisSpbServiceTableEntryIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 3), AlcatelSpbServiceIdentifier()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setDescription('The service identifier, e.g. isid number') alcatelIND1IsisSpbServiceTableEntrySysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 4), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setDescription('System MAC of the SPB node on which the service is configured') alcatelIND1IsisSpbServiceTableEntrySysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 5), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setDescription('System name of SPB node on which the service is configured') alcatelIND1IsisSpbServiceTableEntryIsidFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 6), AlcatelIND1IsisSpbmIsidFlags()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setDescription('Service flags e.g. source or sink of multicast traffic') alcatelIND1SpbIPVPNBindTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15), ) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTable.setDescription('The table binds vrf, ISID and IP gateway together to enable route exchange between GRM and SPB-ISIS. The exchange is bidirectional. route-map only applies to VRF routes imported to ISIS from GRM. There is no filter from ISIS to GRM. cf. show spb ipvpn bind') alcatelIND1SpbIPVPNBindTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindVrfName"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindIsid"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindGateway")) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNBindTable') alcatelIND1SpbIPVPNBindTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1SpbIPVPNBindVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindVrfName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindVrfName.setDescription('The VRF for which routes are being imported from GRM to ISIS-SPB.') alcatelIND1SpbIPVPNBindIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 3), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindIsid.setDescription('The ISID to set for routes imported from GRM to ISIS-SPB.') alcatelIND1SpbIPVPNBindGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 4), IpAddress()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindGateway.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindGateway.setDescription('The IP gateway to set for routes imported from GRM to ISIS-SPB.') alcatelIND1SpbIPVPNBindImportRouteMap = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 5), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindImportRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindImportRouteMap.setDescription('The route-map name (or empty-string for all-routes) for routes imported from GRM to ISIS-SPB.') alcatelIND1SpbIPVPNBindRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1SpbIPVPNRouteTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16), ) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTable.setDescription('The IP-VPN table of routes. cf. show spb ipvpn route-table') alcatelIND1SpbIPVPNRouteTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteIsid"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRoutePrefix"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRoutePrefixLen"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteGateway")) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRouteTable') alcatelIND1SpbIPVPNRouteTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1SpbIPVPNRouteIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 2), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteIsid.setDescription('The ISID of the IP-VPN route') alcatelIND1SpbIPVPNRoutePrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 3), IpAddress()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefix.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefix.setDescription('The destination prefix of the IP-VPN route') alcatelIND1SpbIPVPNRoutePrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 4), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefixLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefixLen.setDescription('The prefix length of the IP-VPN route') alcatelIND1SpbIPVPNRouteGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 5), IpAddress()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteGateway.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteGateway.setDescription('The next-hop/gateway of the IP-VPN route') alcatelIND1SpbIPVPNRouteNodeName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 6), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteNodeName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteNodeName.setDescription('The BEB name of the node that advertised the IP-VPN route') alcatelIND1SpbIPVPNRouteMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteMetric.setDescription('The route-metric of the IP-VPN route') alcatelIND1SpbIPVPNRedistVrfTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17), ) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTable.setDescription('The IP-VPN table of configured route-redistributions where the source entity is a VRF. cf. show spb ipvpn redist') alcatelIND1SpbIPVPNRedistVrfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfSourceVrf"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfDestIsid")) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRedistVrfTable') alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1SpbIPVPNRedistVrfSourceVrf = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfSourceVrf.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfSourceVrf.setDescription('The source VRF from which routes are being redistributed.') alcatelIND1SpbIPVPNRedistVrfDestIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 3), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfDestIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfDestIsid.setDescription('The destination ISID to which routes are being redistributed.') alcatelIND1SpbIPVPNRedistVrfRouteMap = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRouteMap.setDescription('The route-map name (or empty-string for all-routes) for the filter to be applied to this route-redistribution.') alcatelIND1SpbIPVPNRedistVrfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1SpbIPVPNRedistIsidTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18), ) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTable.setDescription('The IP-VPN table of configured route-redistributions where the source entity is an ISID. cf. show spb ipvpn redist') alcatelIND1SpbIPVPNRedistIsidTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidSourceIsid"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidDestIsid")) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRedistIsidTable') alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1SpbIPVPNRedistIsidSourceIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 2), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidSourceIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidSourceIsid.setDescription('The source ISID from which routes are being redistributed.') alcatelIND1SpbIPVPNRedistIsidDestIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 3), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidDestIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidDestIsid.setDescription('The destination ISID to which routes are being redistributed.') alcatelIND1SpbIPVPNRedistIsidRouteMap = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRouteMap.setDescription('The route-map name (or empty-string for all-routes) for the filter to be applied to this route-redistribution.') alcatelIND1SpbIPVPNRedistIsidRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1IsisSpbConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2)) alcatelIND1IsisSpbGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1)) alcatelIND1IsisSpbCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 2)) alcatelIND1IsisSpbSysGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 1)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysControlBvlan"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysAdminState"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysNumLSPs"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1isisSpbSysLastSpfRun"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysLastEnabledTime"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysOverloadStatus"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysOverloadOnBootTimeout"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysOverloadOnBoot"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysOverloadTimeout"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysSetOverload"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1isisSpbSysLastSpfRunTimeStamp"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysLastEnabledTimeStamp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbSysGroupSPBM = alcatelIND1IsisSpbSysGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysGroupSPBM.setDescription('The collection of objects used to represent alcatelIND1IsisSpbSys') alcatelIND1IsisSpbProtocolConfigGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 2)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolSpfMaxWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolSpfInitialWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolSpfSecondWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolLspMaxWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolLspInitialWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolLspSecondWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolGracefulRestart"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolGRHelperMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbProtocolConfigGroupSPBM = alcatelIND1IsisSpbProtocolConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolConfigGroupSPBM.setDescription('The collection of objects used to represent alcatelIND1IsisSpbProtocol') alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 3)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryHelloInterval"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryIfAdminState"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryMetric"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryRowStatus"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryEctAlgorithm"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryRowStatus"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbvEctStaticEntrySpvid")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM = alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM.setDescription('The collection of objects used to represent Isis Spb Adjacent Static information') alcatelIND1IsisSpbSysConfigGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 4)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysAreaAddress"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysBridgePriority"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysControlAddr"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysDigestConvention"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbmSysMode"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbmSysSPSourceId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbvSysMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbSysConfigGroupSPBM = alcatelIND1IsisSpbSysConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysConfigGroupSPBM.setDescription('The collection of objects to represent Isis Spb System information') alcatelIND1IsisSpbAdjGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 5)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryAdjState"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryHoldTimer"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryNeighPriority"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryPeerSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryRestartStatus"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryRestartSupport"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryCircuitId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryIfOperState"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryMulticastMode"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryAFDConfig"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbAdjGroupSPBM = alcatelIND1IsisSpbAdjGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjGroupSPBM.setDescription('The collection of objects to represent Isis Spb Adjacent Group SPBM information') alcatelIND1IsisSpbIngressMacGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 6)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacIfIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbIngressMacGroupSPBM = alcatelIND1IsisSpbIngressMacGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacGroupSPBM.setDescription('The collection of objects to represent Isis Spb Ingress Mac Group') alcatelIND1IsisSpbLSPGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 7)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPAllocLen"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPAttributes"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPBuff"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPChecksum"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPLifetimeRemain"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPMaxArea"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPPktType"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPPktVersion"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPSeq"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPSysIdLen"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPUsedLen"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPVersion")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbLSPGroupSPBM = alcatelIND1IsisSpbLSPGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPGroupSPBM.setDescription('The collection of objects to represent Isis Spb LSP Group SPBM information') alcatelIND1IsisSpbMulticastSourceGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 8)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceReachable"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbMulticastSourceGroupSPBM = alcatelIND1IsisSpbMulticastSourceGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceGroupSPBM.setDescription('The collection of objects to represent Isis Spb Multicast Source Group SPBM information') alcatelIND1IsisSpbMulticastTableEntryGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 9)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryIsid"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntrySysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntrySrcMac")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbMulticastTableEntryGroupSPBM = alcatelIND1IsisSpbMulticastTableEntryGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryGroupSPBM.setDescription('The collection of objects to represent Isis Spb Multicast Group SPBM information') alcatelIND1IsisSpbServiceTableEntryGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 10)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryIsidFlags"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntrySysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbServiceTableEntryGroupSPBM = alcatelIND1IsisSpbServiceTableEntryGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryGroupSPBM.setDescription('The collection of objects to represent Isis Spb Service Group SPBM information') alcatelIND1IsisSpbSpfGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 11)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfHopCount"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfMetric"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfNextHopSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfNextHopSysMac"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfIfIndex"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfSysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbSpfGroupSPBM = alcatelIND1IsisSpbSpfGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfGroupSPBM.setDescription('The collection of objects to represent Isis Spb Spf Group SPBM information') alcatelIND1IsisSpbUnicastGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 12)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastOutboundIfIndex"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastSysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbUnicastGroupSPBM = alcatelIND1IsisSpbUnicastGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastGroupSPBM.setDescription('The collection of objects to represent Isis Spb Unicast Group SPBM information') alcatelIND1IsisSpbNodeGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 13)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeBridgePriority"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeSPSourceId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeSysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbNodeGroupSPBM = alcatelIND1IsisSpbNodeGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeGroupSPBM.setDescription('The collection of objects to represent Isis Spb Node Group SPBM information') alcatelIND1IsisSpbVPNBindTableGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 14)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindImportRouteMap"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbVPNBindTableGroupSPBM = alcatelIND1IsisSpbVPNBindTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNBindTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Bind Table Group SPBM information') alcatelIND1IsisSpbVPNRouteTableGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 15)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteNodeName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteMetric")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbVPNRouteTableGroupSPBM = alcatelIND1IsisSpbVPNRouteTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRouteTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Route Table Group SPBM information') alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 16)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfRouteMap"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM = alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Redist Vrf Table Group SPBM information') alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 17)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidRouteMap"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM = alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Redist Isid Table Group SPBM information') alcatelIND1IsisSpbComplianceSPBM = ModuleCompliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 2, 1)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolConfigGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbVPNBindTableGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbVPNRouteTableGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbComplianceSPBM = alcatelIND1IsisSpbComplianceSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbComplianceSPBM.setDescription('Compliance to Alcatel IND1 ISIS SPBM mode') mibBuilder.exportSymbols("ALCATEL-IND1-ISIS-SPB-MIB", alcatelIND1IsisSpbvSysMode=alcatelIND1IsisSpbvSysMode, alcatelIND1IsisSpbSysAdminState=alcatelIND1IsisSpbSysAdminState, alcatelIND1IsisSpbSpfNextHopSysName=alcatelIND1IsisSpbSpfNextHopSysName, alcatelIND1IsisSpbNodeGroupSPBM=alcatelIND1IsisSpbNodeGroupSPBM, alcatelIND1SpbIPVPNRedistVrfTableEntry=alcatelIND1SpbIPVPNRedistVrfTableEntry, alcatelIND1IsisSpbMulticastSourceSysMac=alcatelIND1IsisSpbMulticastSourceSysMac, alcatelIND1IsisSpbMib=alcatelIND1IsisSpbMib, alcatelIND1IsisSpbLSPTable=alcatelIND1IsisSpbLSPTable, alcatelIND1IsisSpbIngressMacSysName=alcatelIND1IsisSpbIngressMacSysName, alcatelIND1SpbIPVPNRedistVrfDestIsid=alcatelIND1SpbIPVPNRedistVrfDestIsid, alcatelIND1SpbIPVPNRedistIsidDestIsid=alcatelIND1SpbIPVPNRedistIsidDestIsid, alcatelIND1IsisSpbProtocolSpfInitialWait=alcatelIND1IsisSpbProtocolSpfInitialWait, alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier=alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier, alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp=alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp, alcatelIND1IsisSpbLSPAttributes=alcatelIND1IsisSpbLSPAttributes, alcatelIND1IsisSpbVPNBindTableGroupSPBM=alcatelIND1IsisSpbVPNBindTableGroupSPBM, alcatelIND1IsisSpbAdjStaticTableEntry=alcatelIND1IsisSpbAdjStaticTableEntry, alcatelIND1SpbIPVPNBindImportRouteMap=alcatelIND1SpbIPVPNBindImportRouteMap, alcatelIND1SpbIPVPNRedistIsidSourceIsid=alcatelIND1SpbIPVPNRedistIsidSourceIsid, alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM=alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM, alcatelIND1IsisSpbSysId=alcatelIND1IsisSpbSysId, alcatelIND1IsisSpbAdjDynamicEntryPeerSysName=alcatelIND1IsisSpbAdjDynamicEntryPeerSysName, alcatelIND1IsisSpbProtocolLspMaxWait=alcatelIND1IsisSpbProtocolLspMaxWait, alcatelIND1IsisSpbLSPEntry=alcatelIND1IsisSpbLSPEntry, alcatelIND1IsisSpbLSPPktType=alcatelIND1IsisSpbLSPPktType, alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName=alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName, alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx=alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx, alcatelIND1IsisSpbEctStaticEntryEctAlgorithm=alcatelIND1IsisSpbEctStaticEntryEctAlgorithm, alcatelIND1IsisSpbIngressMacBvlan=alcatelIND1IsisSpbIngressMacBvlan, alcatelIND1SpbIPVPNRedistIsidTable=alcatelIND1SpbIPVPNRedistIsidTable, alcatelIND1IsisSpbAdjStaticTable=alcatelIND1IsisSpbAdjStaticTable, alcatelIND1IsisSpbMulticastSourceGroupSPBM=alcatelIND1IsisSpbMulticastSourceGroupSPBM, alcatelIND1IsisSpbMulticastTableEntrySysName=alcatelIND1IsisSpbMulticastTableEntrySysName, alcatelIND1IsisSpbMulticastTableEntryGroupSPBM=alcatelIND1IsisSpbMulticastTableEntryGroupSPBM, alcatelIND1IsisSpbProtocolLspSecondWait=alcatelIND1IsisSpbProtocolLspSecondWait, alcatelIND1SpbIPVPNRouteNodeName=alcatelIND1SpbIPVPNRouteNodeName, alcatelIND1IsisSpbSysNumLSPs=alcatelIND1IsisSpbSysNumLSPs, alcatelIND1IsisSpbServiceTableEntryTopIx=alcatelIND1IsisSpbServiceTableEntryTopIx, alcatelIND1IsisSpbUnicastBvlan=alcatelIND1IsisSpbUnicastBvlan, alcatelIND1IsisSpbConformance=alcatelIND1IsisSpbConformance, alcatelIND1IsisSpbLSPGroupSPBM=alcatelIND1IsisSpbLSPGroupSPBM, alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac=alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac, AlcatelIND1IsisSpbBridgePriority=AlcatelIND1IsisSpbBridgePriority, alcatelIND1IsisSpbSysSetOverload=alcatelIND1IsisSpbSysSetOverload, alcatelIND1IsisSpbUnicastSysName=alcatelIND1IsisSpbUnicastSysName, alcatelIND1IsisSpbmSysMode=alcatelIND1IsisSpbmSysMode, alcatelIND1IsisSpbServiceTableEntryGroupSPBM=alcatelIND1IsisSpbServiceTableEntryGroupSPBM, alcatelIND1IsisSpbNodeSysName=alcatelIND1IsisSpbNodeSysName, alcatelIND1IsisSpbAdjDynamicEntryHoldTimer=alcatelIND1IsisSpbAdjDynamicEntryHoldTimer, alcatelIND1IsisSpbMulticastTableEntryBvlan=alcatelIND1IsisSpbMulticastTableEntryBvlan, alcatelIND1IsisSpbSysControlAddr=alcatelIND1IsisSpbSysControlAddr, alcatelIND1IsisSpbAdjDynamicEntryNeighPriority=alcatelIND1IsisSpbAdjDynamicEntryNeighPriority, AlcatelIND1IsisSpbLinkMetric=AlcatelIND1IsisSpbLinkMetric, alcatelIND1IsisSpbSysName=alcatelIND1IsisSpbSysName, alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac, alcatelIND1IsisSpbEctStaticEntryMulticastMode=alcatelIND1IsisSpbEctStaticEntryMulticastMode, alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx=alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx, alcatelIND1IsisSpbLSPBuff=alcatelIND1IsisSpbLSPBuff, alcatelIND1IsisSpbSysOverloadOnBoot=alcatelIND1IsisSpbSysOverloadOnBoot, alcatelIND1SpbIPVPNRoutePrefixLen=alcatelIND1SpbIPVPNRoutePrefixLen, alcatelIND1IsisSpbAdjDynamicEntry=alcatelIND1IsisSpbAdjDynamicEntry, alcatelIND1IsisSpbMibObjects=alcatelIND1IsisSpbMibObjects, alcatelIND1SpbIPVPNRouteGateway=alcatelIND1SpbIPVPNRouteGateway, alcatelIND1IsisSpbAdjDynamicEntryRestartStatus=alcatelIND1IsisSpbAdjDynamicEntryRestartStatus, AlcatelIND1IsisSpbMTID=AlcatelIND1IsisSpbMTID, alcatelIND1IsisSpbIngressMacSysMac=alcatelIND1IsisSpbIngressMacSysMac, alcatelIND1IsisSpbAdjDynamicEntryAdjState=alcatelIND1IsisSpbAdjDynamicEntryAdjState, alcatelIND1IsisSpbIngressMacFilterEntry=alcatelIND1IsisSpbIngressMacFilterEntry, alcatelIND1IsisSpbLSPVersion=alcatelIND1IsisSpbLSPVersion, alcatelIND1IsisSpbLSPPktVersion=alcatelIND1IsisSpbLSPPktVersion, alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime=alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime, alcatelIND1IsisSpbAdjDynamicEntryTopIx=alcatelIND1IsisSpbAdjDynamicEntryTopIx, AlcatelIND1IsisSpbMode=AlcatelIND1IsisSpbMode, alcatelIND1SpbIPVPNBindVrfName=alcatelIND1SpbIPVPNBindVrfName, AlcatelSpbServiceIdentifier=AlcatelSpbServiceIdentifier, AlcatelIND1IsisSpbIfOperState=AlcatelIND1IsisSpbIfOperState, alcatelIND1IsisSpbNodeSysId=alcatelIND1IsisSpbNodeSysId, alcatelIND1IsisSpbMulticastTableEntry=alcatelIND1IsisSpbMulticastTableEntry, alcatelIND1IsisSpbSpfSysMac=alcatelIND1IsisSpbSpfSysMac, alcatelIND1IsisSpbSysBridgePriority=alcatelIND1IsisSpbSysBridgePriority, alcatelIND1IsisSpbSys=alcatelIND1IsisSpbSys, alcatelIND1IsisSpbAdjStaticEntryMetric=alcatelIND1IsisSpbAdjStaticEntryMetric, alcatelIND1IsisSpbSpfTable=alcatelIND1IsisSpbSpfTable, alcatelIND1SpbIPVPNBindTable=alcatelIND1SpbIPVPNBindTable, alcatelIND1IsisSpbProtocolSpfSecondWait=alcatelIND1IsisSpbProtocolSpfSecondWait, alcatelIND1IsisSpbComplianceSPBM=alcatelIND1IsisSpbComplianceSPBM, AlcatelIND1IsisSpbDigestConvention=AlcatelIND1IsisSpbDigestConvention, alcatelIND1isisSpbSysLastSpfRun=alcatelIND1isisSpbSysLastSpfRun, alcatelIND1IsisSpbEctStaticEntryRowStatus=alcatelIND1IsisSpbEctStaticEntryRowStatus, alcatelIND1SpbIPVPNRedistIsidRowStatus=alcatelIND1SpbIPVPNRedistIsidRowStatus, alcatelIND1IsisSpbAdjDynamicEntryPeerSysId=alcatelIND1IsisSpbAdjDynamicEntryPeerSysId, alcatelIND1IsisSpbGroups=alcatelIND1IsisSpbGroups, alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan=alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan, alcatelIND1SpbIPVPNRedistVrfTable=alcatelIND1SpbIPVPNRedistVrfTable, alcatelIND1IsisSpbMulticastSourceTopIx=alcatelIND1IsisSpbMulticastSourceTopIx, alcatelIND1IsisSpbProtocolGracefulRestart=alcatelIND1IsisSpbProtocolGracefulRestart, alcatelIND1IsisSpbUnicastTopIx=alcatelIND1IsisSpbUnicastTopIx, alcatelIND1IsisSpbEctStaticTable=alcatelIND1IsisSpbEctStaticTable, alcatelIND1isisSpbSysLastSpfRunTimeStamp=alcatelIND1isisSpbSysLastSpfRunTimeStamp, alcatelIND1IsisSpbAdjDynamicEntryRestartSupport=alcatelIND1IsisSpbAdjDynamicEntryRestartSupport, AlcatelIND1IsisSpbSystemName=AlcatelIND1IsisSpbSystemName, alcatelIND1SpbIPVPNRouteTable=alcatelIND1SpbIPVPNRouteTable, alcatelIND1IsisSpbSysLastEnabledTime=alcatelIND1IsisSpbSysLastEnabledTime, alcatelIND1IsisSpbProtocolGRHelperMode=alcatelIND1IsisSpbProtocolGRHelperMode, alcatelIND1SpbIPVPNRouteMetric=alcatelIND1SpbIPVPNRouteMetric, alcatelIND1IsisSpbSysGroupSPBM=alcatelIND1IsisSpbSysGroupSPBM, alcatelIND1IsisSpbAdjStaticEntryAFDConfig=alcatelIND1IsisSpbAdjStaticEntryAFDConfig, alcatelIND1IsisSpbSysConfigGroupSPBM=alcatelIND1IsisSpbSysConfigGroupSPBM, AlcatelIND1IsisSpbmIsidFlags=AlcatelIND1IsisSpbmIsidFlags, alcatelIND1IsisSpbMulticastSourceTable=alcatelIND1IsisSpbMulticastSourceTable, alcatelIND1IsisSpbNodeBridgePriority=alcatelIND1IsisSpbNodeBridgePriority, alcatelIND1IsisSpbLSPTopIx=alcatelIND1IsisSpbLSPTopIx, alcatelIND1IsisSpbProtocolConfigGroupSPBM=alcatelIND1IsisSpbProtocolConfigGroupSPBM, alcatelIND1IsisSpbLSPMaxArea=alcatelIND1IsisSpbLSPMaxArea, alcatelIND1IsisSpbSysOverloadStatus=alcatelIND1IsisSpbSysOverloadStatus, alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining=alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining, AlcatelIND1IsisSpbmSPsourceId=AlcatelIND1IsisSpbmSPsourceId, alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex=alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex, alcatelIND1IsisSpbSysAreaAddress=alcatelIND1IsisSpbSysAreaAddress, alcatelIND1IsisSpbUnicastTable=alcatelIND1IsisSpbUnicastTable, alcatelIND1IsisSpbLSPId=alcatelIND1IsisSpbLSPId, alcatelIND1IsisSpbMulticastSourceSysName=alcatelIND1IsisSpbMulticastSourceSysName, alcatelIND1IsisSpbServiceTableEntrySysName=alcatelIND1IsisSpbServiceTableEntrySysName, alcatelIND1IsisSpbProtocolConfig=alcatelIND1IsisSpbProtocolConfig, alcatelIND1SpbIPVPNRedistVrfRowStatus=alcatelIND1SpbIPVPNRedistVrfRowStatus, alcatelIND1IsisSpbLSPSeq=alcatelIND1IsisSpbLSPSeq, alcatelIND1IsisSpbNodeTopIx=alcatelIND1IsisSpbNodeTopIx, alcatelIND1IsisSpbServiceTableEntryIsid=alcatelIND1IsisSpbServiceTableEntryIsid, alcatelIND1SpbIPVPNRedistVrfRouteMap=alcatelIND1SpbIPVPNRedistVrfRouteMap, alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed=alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed, alcatelIND1IsisSpbLSPChecksum=alcatelIND1IsisSpbLSPChecksum, alcatelIND1IsisSpbAdjStaticEntryRowStatus=alcatelIND1IsisSpbAdjStaticEntryRowStatus, alcatelIND1IsisSpbSpfMetric=alcatelIND1IsisSpbSpfMetric, alcatelIND1IsisSpbMulticastSourceSpfTableEntry=alcatelIND1IsisSpbMulticastSourceSpfTableEntry, alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId=alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId, alcatelIND1IsisSpbAdjStaticEntryTopIx=alcatelIND1IsisSpbAdjStaticEntryTopIx, alcatelIND1IsisSpbSpfBvlan=alcatelIND1IsisSpbSpfBvlan, alcatelIND1IsisSpbSpfTableEntry=alcatelIND1IsisSpbSpfTableEntry, alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx=alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx, alcatelIND1IsisSpbServiceTableEntryBvlan=alcatelIND1IsisSpbServiceTableEntryBvlan, AlcatelIND1IsisSpbEctAlgorithm=AlcatelIND1IsisSpbEctAlgorithm, alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric=alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric, alcatelIND1IsisSpbAdjStaticEntryIfAdminState=alcatelIND1IsisSpbAdjStaticEntryIfAdminState, alcatelIND1IsisSpbLSPAllocLen=alcatelIND1IsisSpbLSPAllocLen, alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound=alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound, alcatelIND1IsisSpbMulticastSourceSpfTable=alcatelIND1IsisSpbMulticastSourceSpfTable, alcatelIND1IsisSpbIngressMacIfIndex=alcatelIND1IsisSpbIngressMacIfIndex, alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac, alcatelIND1IsisSpbServiceTableEntryIsidFlags=alcatelIND1IsisSpbServiceTableEntryIsidFlags, alcatelIND1SpbIPVPNBindTableEntryTopIx=alcatelIND1SpbIPVPNBindTableEntryTopIx, alcatelIND1SpbIPVPNBindRowStatus=alcatelIND1SpbIPVPNBindRowStatus, alcatelIND1SpbIPVPNRoutePrefix=alcatelIND1SpbIPVPNRoutePrefix, alcatelIND1IsisSpbVPNRouteTableGroupSPBM=alcatelIND1IsisSpbVPNRouteTableGroupSPBM, alcatelIND1IsisSpbvEctStaticEntrySpvid=alcatelIND1IsisSpbvEctStaticEntrySpvid, alcatelIND1IsisSpbAdjStaticEntryHelloInterval=alcatelIND1IsisSpbAdjStaticEntryHelloInterval, alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount=alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount, alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM=alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM, alcatelIND1IsisSpbSysOverloadOnBootTimeout=alcatelIND1IsisSpbSysOverloadOnBootTimeout, alcatelIND1IsisSpbSpfHopCount=alcatelIND1IsisSpbSpfHopCount, alcatelIND1IsisSpbSysLastEnabledTimeStamp=alcatelIND1IsisSpbSysLastEnabledTimeStamp, alcatelIND1SpbIPVPNRouteIsid=alcatelIND1SpbIPVPNRouteIsid, alcatelIND1IsisSpbIngressMacGroupSPBM=alcatelIND1IsisSpbIngressMacGroupSPBM, alcatelIND1IsisSpbServiceTableEntry=alcatelIND1IsisSpbServiceTableEntry, alcatelIND1SpbIPVPNRouteTableEntry=alcatelIND1SpbIPVPNRouteTableEntry, alcatelIND1IsisSpbUnicastTableEntry=alcatelIND1IsisSpbUnicastTableEntry, alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound=alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound, alcatelIND1IsisSpbAdjDynamicEntryIfIndex=alcatelIND1IsisSpbAdjDynamicEntryIfIndex, alcatelIND1IsisSpbSpfGroupSPBM=alcatelIND1IsisSpbSpfGroupSPBM, alcatelIND1IsisSpbIngressMacFilterTable=alcatelIND1IsisSpbIngressMacFilterTable, alcatelIND1IsisSpbSpfNextHopSysMac=alcatelIND1IsisSpbSpfNextHopSysMac, alcatelIND1SpbIPVPNRedistIsidRouteMap=alcatelIND1SpbIPVPNRedistIsidRouteMap, alcatelIND1IsisSpbMulticastTableEntryMulticastMac=alcatelIND1IsisSpbMulticastTableEntryMulticastMac, alcatelIND1IsisSpbMulticastSourceReachable=alcatelIND1IsisSpbMulticastSourceReachable, alcatelIND1SpbIPVPNRedistIsidTableEntry=alcatelIND1SpbIPVPNRedistIsidTableEntry, alcatelIND1IsisSpbUnicastOutboundIfIndex=alcatelIND1IsisSpbUnicastOutboundIfIndex, alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName=alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName, alcatelIND1IsisSpbMulticastSourceEntry=alcatelIND1IsisSpbMulticastSourceEntry, alcatelIND1IsisSpbLSPLifetimeRemain=alcatelIND1IsisSpbLSPLifetimeRemain, alcatelIND1IsisSpbUnicastGroupSPBM=alcatelIND1IsisSpbUnicastGroupSPBM, alcatelIND1IsisSpbServiceTableEntrySysMac=alcatelIND1IsisSpbServiceTableEntrySysMac, alcatelIND1IsisSpbmSysSPSourceId=alcatelIND1IsisSpbmSysSPSourceId, alcatelIND1SpbIPVPNRedistVrfSourceVrf=alcatelIND1SpbIPVPNRedistVrfSourceVrf, alcatelIND1IsisSpbMulticastTableEntryIsid=alcatelIND1IsisSpbMulticastTableEntryIsid, alcatelIND1IsisSpbEctStaticEntryBaseVid=alcatelIND1IsisSpbEctStaticEntryBaseVid, alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac, alcatelIND1IsisSpbSysOverloadTimeout=alcatelIND1IsisSpbSysOverloadTimeout, alcatelIND1IsisSpbNodeTable=alcatelIND1IsisSpbNodeTable, alcatelIND1SpbIPVPNBindTableEntry=alcatelIND1SpbIPVPNBindTableEntry, alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM=alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM, alcatelIND1IsisSpbEctStaticEntryTopIx=alcatelIND1IsisSpbEctStaticEntryTopIx, alcatelIND1IsisSpbSpfIfIndex=alcatelIND1IsisSpbSpfIfIndex, alcatelIND1IsisSpbMulticastTable=alcatelIND1IsisSpbMulticastTable, alcatelIND1IsisSpbAdjStaticEntryCircuitId=alcatelIND1IsisSpbAdjStaticEntryCircuitId, alcatelIND1IsisSpbMulticastSourceBvlan=alcatelIND1IsisSpbMulticastSourceBvlan, PYSNMP_MODULE_ID=alcatelIND1IsisSpbMib, AlcatelIND1IsisSpbAdjState=AlcatelIND1IsisSpbAdjState, alcatelIND1IsisSpbAdjStaticEntryIfOperState=alcatelIND1IsisSpbAdjStaticEntryIfOperState, alcatelIND1IsisSpbLSPSysIdLen=alcatelIND1IsisSpbLSPSysIdLen, alcatelIND1IsisSpbAdjGroupSPBM=alcatelIND1IsisSpbAdjGroupSPBM, alcatelIND1IsisSpbCompliances=alcatelIND1IsisSpbCompliances, alcatelIND1IsisSpbSysDigestConvention=alcatelIND1IsisSpbSysDigestConvention, AlcatelIND1IsisSpbmMulticastMode=AlcatelIND1IsisSpbmMulticastMode, alcatelIND1IsisSpbSysControlBvlan=alcatelIND1IsisSpbSysControlBvlan, alcatelIND1SpbIPVPNRouteTableEntryTopIx=alcatelIND1SpbIPVPNRouteTableEntryTopIx, alcatelIND1IsisSpbProtocolSpfMaxWait=alcatelIND1IsisSpbProtocolSpfMaxWait, alcatelIND1IsisSpbEctStaticTableEntry=alcatelIND1IsisSpbEctStaticTableEntry, alcatelIND1IsisSpbNodeTableEntry=alcatelIND1IsisSpbNodeTableEntry, alcatelIND1IsisSpbUnicastSysMac=alcatelIND1IsisSpbUnicastSysMac, alcatelIND1IsisSpbAdjStaticEntryIfIndex=alcatelIND1IsisSpbAdjStaticEntryIfIndex, alcatelIND1IsisSpbMulticastTableEntrySrcMac=alcatelIND1IsisSpbMulticastTableEntrySrcMac, alcatelIND1SpbIPVPNBindIsid=alcatelIND1SpbIPVPNBindIsid, alcatelIND1SpbIPVPNBindGateway=alcatelIND1SpbIPVPNBindGateway, alcatelIND1IsisSpbAdjDynamicTable=alcatelIND1IsisSpbAdjDynamicTable, AlcatelIND1IsisSpbAreaAddress=AlcatelIND1IsisSpbAreaAddress, alcatelIND1IsisSpbProtocolLspInitialWait=alcatelIND1IsisSpbProtocolLspInitialWait, alcatelIND1IsisSpbNodeSPSourceId=alcatelIND1IsisSpbNodeSPSourceId, alcatelIND1IsisSpbSpfSysName=alcatelIND1IsisSpbSpfSysName, alcatelIND1IsisSpbLSPUsedLen=alcatelIND1IsisSpbLSPUsedLen, alcatelIND1IsisSpbMulticastTableEntryTopIx=alcatelIND1IsisSpbMulticastTableEntryTopIx, alcatelIND1IsisSpbServiceTable=alcatelIND1IsisSpbServiceTable)
# Marcelo Campos de Medeiros # ADS UNIFIP # Lista_2_de_exercicios # 15/03/2020 ''' 3 - Faรงa um Programa que verifique se uma letra digitada รฉ "F" ou "M". Conforme a letra escrever: F - Feminino, M - Masculino, Sexo Invรกlido. ''' #variรกveis sexo = str(input('Informe seu sexo ditando "M" para masculido e "F" para feminino: ')).strip().upper() #comparando se o sexo informado foi masculino ou feminino if sexo == 'M': print('O sexo informado foi Masculino') elif sexo == 'F': print('O sexo informado foi Feminino') else: print('O sexo informado invรกlido digite novamente')
# # @lc app=leetcode.cn id=236 lang=python3 # # [236] lowest-common-ancestor-of-a-binary-tree # None # @lc code=end
"""Quiz: What Type Do These Objects Have? 1 โ†’ What type does this object have? "12". โ†’ <class 'str'> 2 โ†’ What type does this object have? 12.3. โ†’ <class 'float'> 3 โ†’ What type does this object have? len("my_string"). โ†’ <class 'int'> 4 โ†’ What type does this object have? "hippo" *12. โ†’ <class 'str'> """ print(type('12')) print(type(12.3)) print(type(len('my_string'))) print(type('"hippo" *12')) """Quiz: Total Sales In this quiz, youโ€™ll need to change the types of the input and output data in order to get the result you want. Calculate and print the total sales for the week from the data provided. Print out a string of the form "This week's total sales: xxx", where xxx will be the actual total of all the numbers. Youโ€™ll need to change the type of the input data in order to calculate that total. """ mon_sales = "121" tues_sales = "105" wed_sales = "110" thurs_sales = "98" fri_sales = "95" #TODO: Print a string with this format: This week's total sales: xxx # You will probably need to write some lines of code before the print statement. total_sales = int(mon_sales) + int(tues_sales) + int(wed_sales) + int(thurs_sales) + int(fri_sales) total_sales = str(total_sales) print('This week\'s total sales: ' + total_sales)
#!/usr/bin/env python3 CI_CONFIG = { "build_config": [ { "compiler": "clang-13", "build_type": "", "sanitizer": "", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "alien_pkgs": True, "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "", "package_type": "performance", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "gcc-11", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "address", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "undefined", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "thread", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "memory", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "debug", "sanitizer": "", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False } ], "special_build_config": [ { "compiler": "clang-13", "build_type": "debug", "sanitizer": "", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "enable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "splitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-darwin", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-aarch64", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-freebsd", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-darwin-aarch64", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-ppc64le", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False } ], "tests_config": { "Stateful tests (address, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (thread, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (memory, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (ubsan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (debug, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "debug", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (release, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (release, DatabaseOrdinary, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (release, DatabaseReplicated, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (address, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (thread, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (memory, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (ubsan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (debug, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "debug", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (release, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (release, wide parts enabled, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (release, DatabaseOrdinary, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (release, DatabaseReplicated, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (address, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (thread, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (undefined, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (memory, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (debug, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "debug", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests (asan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests (thread, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests (release, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests (memory, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests flaky check (asan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Compatibility check (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Split build smoke test (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "binary", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "splitted", "clang_tidy": "disable", "with_coverage": False } }, "Testflows check (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (release-gcc, actions)": { "required_build_properties": { "compiler": "gcc-11", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (release-clang, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "binary", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (asan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (msan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (tsan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (ubsan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (debug, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "debug", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (ASan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (MSan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (TSan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (UBSan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Release (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests flaky check (address, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "ClickHouse Keeper Jepsen (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "binary", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } } } } def build_config_to_string(build_config): if build_config["package_type"] == "performance": return "performance" return "_".join([ build_config['compiler'], build_config['build_type'] if build_config['build_type'] else "relwithdebuginfo", build_config['sanitizer'] if build_config['sanitizer'] else "none", build_config['bundled'], build_config['splitted'], 'tidy' if 'tidy' in build_config and build_config['tidy'] == 'enable' else 'notidy', 'with_coverage' if 'with_coverage' in build_config and build_config['with_coverage'] else 'without_coverage', build_config['package_type'], ])
# import pytest class TestTime: def test___str__(self): # synced assert True def test_shift(self): # synced assert True def test_to_isoformat(self): # synced assert True def test_to_format(self): # synced assert True def test_now(self): # synced assert True def test_from_time(self): # synced assert True def test_from_isoformat(self): # synced assert True def test_from_format(self): # synced assert True def test_from_string(self): # synced assert True def test_infer(self): # synced assert True def test_TimeZone(self): # synced assert True def test_Hour(self): # synced assert True def test_Minute(self): # synced assert True def test_Second(self): # synced assert True def test_MicroSecond(self): # synced assert True
def main(): data = open("day9/input.txt", "r") data = [int(line.strip()) for line in data] answer = 0 for i in range(25, len(data)): value = data[i] found = False spliced_data = data[i - 25 : i] for num in spliced_data: num2 = value - num if num2 in spliced_data and num2 != num and num + num2 == value: found = True if found == False: answer = value break print(answer) if __name__ == "__main__": main()
# Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: # # Integers in each row are sorted from left to right. # The first integer of each row is greater than the last integer of the previous row. # For example, # # Consider the following matrix: # # [ # [1, 3, 5, 7], # [10, 11, 16, 20], # [23, 30, 34, 50] # ] # Given target = 3, return true. class Solution(object): def searchMatrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool """ height = len(matrix) if height == 0: return False width = len(matrix[0]) if width == 0: return False iy = 0 for y in range(height): if target < matrix[y][0]: if y == 0: return False else: iy = y - 1 break iy = height - 1 for x in matrix[iy]: if x == target: return True return False
# # PySNMP MIB module BSUCLK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BSUCLK-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:41:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # bsu, = mibBuilder.importSymbols("ANIROOT-MIB", "bsu") ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Unsigned32, ModuleIdentity, iso, ObjectIdentity, IpAddress, Bits, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, TimeTicks, MibIdentifier, Integer32, Gauge32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "ModuleIdentity", "iso", "ObjectIdentity", "IpAddress", "Bits", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "TimeTicks", "MibIdentifier", "Integer32", "Gauge32", "Counter64") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") aniBsuClock = ModuleIdentity((1, 3, 6, 1, 4, 1, 4325, 3, 4)) if mibBuilder.loadTexts: aniBsuClock.setLastUpdated('0105091130Z') if mibBuilder.loadTexts: aniBsuClock.setOrganization('Aperto Networks') if mibBuilder.loadTexts: aniBsuClock.setContactInfo(' Postal: Aperto Networks Inc 1637 S Main Street Milpitas, California 95035 Tel: +1 408 719 9977 ') if mibBuilder.loadTexts: aniBsuClock.setDescription('This module is used to configure the clock time on the BSU. BSUs need to obtain and set their current clock time at boot up. Sus will communicate with the BSU during their own boot up and set their own clock time to that of BSU. Time at the BSU can be set either through SNTP or manually. It is recommended to use SNTP to obtain time. ') aniBsuClkSntpTimeZone = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpTimeZone.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpTimeZone.setDescription('This is used to set the appropriate Time Zone offset from GMT. The format of data should be +Hour:Min or -Hour:Min. The valid Hour should be between -13 to +14 The valid Min should be 00,15,30 or 45 For example: +12:00 or +12:30 or -3:45 ') aniBsuClkSntpDstEnable = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpDstEnable.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstEnable.setDescription('This shows whether Daylight Saving is enabled or not. It gives user the option to incorporate Daylight Saving Time in the configuration. ') aniBsuClkSntpDstStart = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpDstStart.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstStart.setDescription("Used to specify the start of Daylight Saving Time which should be entered in the 'mmddhh' format where m - month, d - day and h - hour. Can and must be set only if aniBsuClkSntpDstEnable is enabled. ") aniBsuClkSntpDstEnd = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpDstEnd.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstEnd.setDescription("Used to specify the end of Daylight Saving Time which should be entered in the 'mmddhh' format where m - month, d - day and h - hour. Can and must be set only if aniBsuClkSntpDstEnable is enabled. ") aniBsuClkSntpEnable = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpEnable.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpEnable.setDescription('This flag is used to enable(1) or disable(2) SNTP. It is recommended to use SNTP rather than manually setting the time to avoid errors in clock times simply due to manual entry across various BSUs. ') aniBsuClkManualTime = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkManualTime.setStatus('current') if mibBuilder.loadTexts: aniBsuClkManualTime.setDescription("Used to specify the local clock time manually. It should be entered in the 'mm/dd/yyyy hh:mm:ss' format that is, month/day/year hour:minute:second. When the user sends a set request on this parameter, the aniBsuClkSntpEnable value is automatically set to disable(2), to set this manual time entry on BSU. ") aniBsuClkCurrentTime = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 17))).setMaxAccess("readonly") if mibBuilder.loadTexts: aniBsuClkCurrentTime.setStatus('current') if mibBuilder.loadTexts: aniBsuClkCurrentTime.setDescription("The Current Time in 'mm/dd/yy hh:mm:ss' format, that is, month/day/year hour:minute:second. ") mibBuilder.exportSymbols("BSUCLK-MIB", aniBsuClkCurrentTime=aniBsuClkCurrentTime, aniBsuClkSntpDstStart=aniBsuClkSntpDstStart, PYSNMP_MODULE_ID=aniBsuClock, aniBsuClkSntpDstEnable=aniBsuClkSntpDstEnable, aniBsuClock=aniBsuClock, aniBsuClkManualTime=aniBsuClkManualTime, aniBsuClkSntpEnable=aniBsuClkSntpEnable, aniBsuClkSntpTimeZone=aniBsuClkSntpTimeZone, aniBsuClkSntpDstEnd=aniBsuClkSntpDstEnd)
def descrive_pet(pet_name, animal_type='dog'): """ๆ˜พ็คบๅฎ ็‰ฉไฟกๆฏ""" print("\nI have a " + animal_type + ".") print("My " + animal_type + "'s name is " + pet_name.title() + ".") #descrive_pet('hamster', 'harry') #descrive_pet(animal_type='hamster', pet_name='harry') descrive_pet(pet_name='harry', animal_type='hamster') descrive_pet('hamster', 'harry') descrive_pet(pet_name='while') descrive_pet('while', 'fish')
""" Cut matrices by row or column and apply operations to them. """ class Cutter: """ Base class that pre-calculates cuts and can use them to apply a function to the layout. Each "cut" is a row or column, depending on the value of by_row. The entries are iterated forward or backwards, depending on the value of forward. """ def __init__(self, layout, by_row=True): self.layout = layout cuts = layout.height if by_row else layout.width cutter = self.cut_row if by_row else self.cut_column self.cuts = [cutter(i) for i in range(cuts)] def apply(self, function): """ For each row or column in cuts, read a list of its colors, apply the function to that list of colors, then write it back to the layout. """ for cut in self.cuts: value = self.read(cut) function(value) self.write(cut, value) class Slicer(Cutter): """ Implementation of Cutter that uses slices of the underlying colorlist. Does not work if the Matrix layout is serpentine or has any reflections or rotations. """ def cut_row(self, i): return slice(self.layout.width * i, self.layout.width * (i + 1)) def cut_column(self, i): return slice(i, None, self.layout.width) def read(self, cut): return self.layout.color_list[cut] def write(self, cut, value): self.layout.color_list[cut] = value class Indexer(Cutter): """ Slower implementation of Cutter that uses lists of indices and the Matrix interface. """ def cut_row(self, i): return [(column, i) for column in range(self.layout.width)] def cut_column(self, i): return [(i, row) for row in range(self.layout.height)] def read(self, cut): return [self.layout.get(*i) for i in cut] def write(self, cut, value): for i, v in zip(cut, value): self.layout.set(*i, color=v)
#!/usr/bin/env python3 """SoloLearn > Code Coach > Pig Latin""" english = input('Enter a phrase without punctuation: ').lower() piglatin = '' # NOT REQUIRED: Sanitize the string common_punctuation = ('.', '?', '!', ',', ';', ':') for punctuation in common_punctuation: english = english.replace(punctuation, '') # igpay atinlay for word in english.split(): wordlen = len(word) word = word[1:wordlen] + word[0] + 'ay' piglatin = piglatin + word + ' ' print(piglatin.strip())
# # @lc app=leetcode id=557 lang=python3 # # [557] Reverse Words in a String III # # https://leetcode.com/problems/reverse-words-in-a-string-iii/description/ # # algorithms # Easy (66.26%) # Likes: 778 # Dislikes: 80 # Total Accepted: 166.2K # Total Submissions: 248.5K # Testcase Example: `"Let's take LeetCode contest"` # # Given a string, you need to reverse the order of characters in each word # within a sentence while still preserving whitespace and initial word order. # # Example 1: # # Input: "Let's take LeetCode contest" # Output: "s'teL ekat edoCteeL tsetnoc" # # # # Note: # In the string, each word is separated by single space and there will not be # any extra space in the string. # # # @lc code=start class Solution: def reverseWords(self, s: str) -> str: lst = s.split(' ') return ' '.join([w[::-1] for w in lst]) # @lc code=end
dvs = [] for i in range(9): dvs.append(int(input())) for i in dvs: for j in dvs: if i != j and i + j == sum(dvs) - 100: dvs.remove(i) dvs.remove(j) break print(*dvs)
def put(data,location): f = open(location,"w") for i in data: f.write(i+"\n\n--------------====================--------------\n\n") f.close()
def main(): print(not 1) if __name__ == "__main__": main()
# """ # x = int(input("Enter 1st Number ")) # y = int(input("Enter 2nd Number ")) # z = int(input("Enter 3rd Number ")) # print("The sum is : " + str(x + y + z)) # """ name = "Hey There !!" print(name.replace('ey', 'ii')) print(name.count("Hey There!!")) print(name.lower()) print(name.upper()) cars = ['Lamborghini', 'Ferrari', 'BMW', 'Audi'] cars.insert(1, 'Mercedes') print(cars) cars.sort() print(cars)
# ะ”ะปั ัะฟะธัะบะฐ ั€ะตะฐะปะธะทะพะฒะฐั‚ัŒ ะพะฑะผะตะฝ ะทะฝะฐั‡ะตะฝะธะน ัะพัะตะดะฝะธั… ัะปะตะผะตะฝั‚ะพะฒ, ั‚.ะต. # ะ—ะฝะฐั‡ะตะฝะธัะผะธ ะพะฑะผะตะฝะธะฒะฐัŽั‚ัั ัะปะตะผะตะฝั‚ั‹ ั ะธะฝะดะตะบัะฐะผะธ 0 ะธ 1, 2 ะธ 3 ะธ ั‚.ะด. # ะŸั€ะธ ะฝะตั‡ะตั‚ะฝะพะผ ะบะพะปะธั‡ะตัั‚ะฒะต ัะปะตะผะตะฝั‚ะพะฒ ะฟะพัะปะตะดะฝะธะน ัะพั…ั€ะฐะฝะธั‚ัŒ ะฝะฐ ัะฒะพะตะผ ะผะตัั‚ะต. # ะ”ะปั ะทะฐะฟะพะปะฝะตะฝะธั ัะฟะธัะบะฐ ัะปะตะผะตะฝั‚ะพะฒ ะฝะตะพะฑั…ะพะดะธะผะพ ะธัะฟะพะปัŒะทะพะฒะฐั‚ัŒ ั„ัƒะฝะบั†ะธัŽ input(). my_list = ["2", "1", "4", "3", "6", "5", "7"] user_data = input("ะ’ะฒะตะดะธั‚ะต ะทะฝะฐั‡ะตะฝะธั ั‡ะตั€ะตะท ะฟั€ะพะฑะตะป: ") my_list = user_data.rstrip(" ").split(" ") # ะฟั€ะตะดะฟะพั‡ะธั‚ะฐัŽ ัะฒะฝะพ ัƒะบะฐะทะฐั‚ัŒ ะฟั€ะพะฑะตะป ะบะฐะบ ั€ะฐะทะดะตะปะธั‚ะตะปัŒ print(f"ะฒั…ะพะดะฝะพะน ัะฟะธัะพะบ \t\t{my_list}") # ะฝะฐะฒะตั€ะฝะพ ะผะพะถะฝะพ ั‡ะตั€ะตะท ะณะตะฝะตั€ะฐั‚ะพั€ ัั€ะฐะทัƒ ัะฟะธัะพะบ ัะดะตะปะฐั‚ัŒ ะธะฝะดะตะบัะพะฒ for el_num, item in enumerate(my_list): # print(f"{bool(el_num % 2 == 0)}; elnum:{el_num} ; item:{item}") if el_num % 2 != 0: tmp = my_list.pop(el_num) my_list.insert(el_num - 1, tmp) print(f"ะฒั‹ั…ะพะดะฝะพะน ัะฟะธัะพะบ \t{my_list}")
#!/usr/bin/python3 magic = [0x47, 0xCD, 0x40, 0xC6, 0x7A, 0xD9, 0x45, 0xD9, 0x45, 0xAF, 0x2F, 0xAF, 0x50, 0xC0, 0x50, 0xFC] x = 1 for i in magic: print(chr(i ^ x), end = '') x ^= 0x80
class Suit: """Representation of a standard playing card suit.""" def __init__(self, name: str, color: str) -> None: self.name = name self.color = color def __repr__(self) -> str: return f"Suit({self.name}, {self.color})" def __str__(self) -> str: return f"{self.name}"
DATA = [ '210.153.84.0/24', '210.136.161.0/24', '210.153.86.0/24', '124.146.174.0/24', '124.146.175.0/24', '202.229.176.0/24', '202.229.177.0/24', '202.229.178.0/24']
class Solution(object): def fib(self, n): """ :type n: int :rtype: int """ d = {} def fibo_r(n): if(n in d): return d[n] if(n < 2): res = n else: res = fibo_r(n-1) + fibo_r(n-2) d[n] = res return res return fibo_r(n)
a0 = int(input('Digite o primeiro termo da progressรฃo aritmรฉtica: ')) termos = int(input('Digite quantos termos deseja exibir: ')) razao = int(input('Digite qual รฉ a razรฃo da progressรฃo aritmรฉtica: ')) an = 0 print('A progressรฃo final รฉ:') for i in range(0, termos * razao, razao): an = a0 + i print(an)
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #------------------------------------------------------------------------------ class NodeVisitor(object): """ A base class for implementing node visitors. Subclasses should implement visitor methods using the naming scheme 'visit_<name>' where `<name>` is the type name of a given node. """ def __call__(self, node): """ The main entry point of the visitor class. This method should be called to execute the visitor. It will call the setup and teardown methods before and after invoking the visit method on the node. Parameter --------- node : object The toplevel node of interest. Returns ------- result : object The return value from the result() method. """ self.setup(node) self.visit(node) result = self.result(node) self.teardown(node) return result def setup(self, node): """ Perform any necessary setup before running the visitor. This method is invoked before the visitor is executed over a particular node. The default implementation does nothing. Parameters ---------- node : object The node passed to the visitor. """ pass def result(self, node): """ Get the results for the visitor. This method is invoked after the visitor is executed over a particular node and the result() method has been called. The default implementation returns None. Parameters ---------- node : object The node passed to the visitor. Returns ------- result : object The results of the visitor. """ return None def teardown(self, node): """ Perform any necessary cleanup when the visitor is finished. This method is invoked after the visitor is executed over a particular node and the result() method has been called. The default implementation does nothing. Parameters ---------- node : object The node passed to visitor. """ pass def visit(self, node): """ The main visitor dispatch method. Parameters ---------- node : object A node from the tree. """ for cls in type(node).mro(): visitor_name = 'visit_' + cls.__name__ visitor = getattr(self, visitor_name, None) if visitor is not None: visitor(node) return self.default_visit(node) def default_visit(self, node): """ The default node visitor method. This method is invoked when no named visitor method is found for a given node. This default behavior raises an exception for the missing handler. Subclasses may reimplement this method for custom default behavior. """ msg = "no visitor found for node of type `%s`" raise TypeError(msg % type(node).__name__)
''' In order to get the Learn credentials, they do not to open a case on behind the blackboard nor email [email protected]. They need to go to developer.blackboard.com and register from there to grab the Learn credentials for their application, it is also imperative to remind them that they are creating an application based on your code, so they need to register as a developer. Now, for Collaborate production they CAN and MUST create a ticket on behind the blackboard requesting their credentials. ''' credenciales = { "verify_certs" : "True", "learn_rest_fqdn" : "learn URL", "learn_rest_key" : "Learn API Key", "learn_rest_secret" : "Learn API Secret", "collab_key": "Collab Key", "collab_secret": "Collab Secret", "collab_base_url": "us.bbcollab.com/collab/api/csa" }
next = True while next == True: print("""From all the mentioned zodiac signs 1)Aries 2)Tauras 3)Gemini 4)Cancer 5)Leo 6)Virgo 7)Libra 8)Scorpio 9)Sagittarius 10)Capricorn 11)Aquarius 12)Pisces """) s = int(input("Pick your sign number and Press Enter to know your future\n")) print(s) if s==1: print("Limited capital will not prove an obstacle in putting a project on the road. Support of family members is assured in whatever you undertake.There is every likelihood of bagging a prized job for those associated with the management field. Connoisseurs of good food can come across some more gastronomic delights! You are likely to get within reach of whatever you are trying to achieve on the academic front. Prepare thoroughly for a long journey to avoid hassles. Some of you may plan to buy a house or a car soon.") elif s==2: print("A new source of income is likely to open up and promises to make you financially secure. Fitness mantra of a friend will do wonders for your health. Happy time is foreseen at work as you tackle your job efficiently. Parents or a family member is likely to breathe down your neck and may monitor your actions closely. You will fare well on the academic front and manage to remain amongst the frontrunners. You will need to fine tune youโ€™re travelling time with others to reach a venue together. Deal in property only with well-established dealers.") elif s==3: print("You will need to remain guarded, as you may be taken for a ride on the monetary front. Things that were going wrong on the work front will begin to improve. Those doing their bit to shed weight will succeed beyond their expectations! Homemakers will find time to achieve much on the domestic front. Academic aspirations of those pursuing higher studies are likely to be met. Those forced to travel frequently may do right to make the journey comfortable. You may go in for purchase of a property.") elif s==4: print("You will benefit by taking a break from your regular exercise routine. Child or sibling may make you proud by his or her achievements. It will be prudent to keep a watchful eye on a business colleague. Your financial prudence will help keep the coffers brimming. Outstanding performance can be expected by some on the academic front. You may get the chance to turn an official trip into a family vacation. Acquiring a new property is on the cards.") elif s==5: print("A bad cold or some other small ailment may trouble on and off. A family member studying out of town or abroad may become a source of worry. Impressing the interviewer will be important for the job seekers. It will be prudent to shift into the saving mode on the financial front. Achieving the impossible is in store for some on the academic front. Value of property owned by you is likely to escalate. Taking some time off for a break will act as a soothing balm to the mind.") elif s==6: print("An exciting time in a family gathering is foreseen. Avoid offending someone by your actions at work. Money well spent may give you inner satisfaction. Someone may extend a helping hand in making you learn new fitness techniques. You may take a step nearer to acquiring property. You are likely to hold your own in a competitive situation on the academic front. Arrange for someone to look after your assets, if you are planning to move out for a longer duration.") elif s==7: print("Your sympathetic touch will alleviate the problems of a family elder. Consistent performance will pave the way for promotion. Try not to overstep the budget, as it may become difficult to meet unforeseen monetary requirements. Chances of leaving an exercise regime midway cannot be ruled out for some. Those pursuing higher studies have a bright chance of getting recruited on the campus. Preparation for an overseas business trip is likely to start now. Getting a lucrative offer on property is possible.") elif s==8: print("Getting your money back from someone may require efforts, but get back, you will! Less work will enable you to take some time off for yourself. Health conscious will discover some new route to fitness. Additional domestic chores if not planned properly may leave you fatigued. Overconfidence on the academic front needs curbing, as things may not turn out the way you want them to. Young couples may enroll for an adventure trip and enjoy the thrills.") elif s==9: print("A property issue is likely to be resolved amicably. Performing well on the academic front will not pose much difficulty for you. Less work will enable you to take some time off for yourself. Donโ€™t let anyone bulldoze you into spending money on something that you donโ€™t exactly need. Condition of someone close can show rapid improvement. Steer clear of spouseโ€™s firing line, as he or she may suffer from mood swings. A good opportunity to spend some time in a tourist destination is likely to come your way.") elif s==10: print("Something that is available on the house will help you save money. Some of you will have to adopt measures to blunt the impact of a lifestyle disease. Despite calling the shots, you may be made to toe the line in a professional situation. Today, your hands may be full catering to friends or relatives. Something that you had been trying on the academic front is likely to come within reach. Getting a house constructed or renovated is possible.") elif s==11: print("Unnecessarily worrying about your health will serve no purpose. A difference of opinion with the elders may make you ponder about something in mind. Day appears to be especially favourable for those associated with banking or engineering. Raising capital for a commercial venture will not pose much difficulty. Chances of getting hoodwinked in a property deal look real. You may become indispensable for someoneโ€™s success on the academic front. Speed and comfort is foreseen for those undertaking a long journey.") elif s==12: print("Watch your step on the financial front, as someone may sweet-talk you out of money. Putting off work for some other day will just not work on the professional front. Those ailing for long can expect a miraculous recovery. Your wish is likely to get fulfilled on the academic front, provided you take timely action. Expect some good loving care from spouse today! A comfortable journey to a distant place is in the offing for some. Visiting the site of your new home is possible.") else: print("Hey You are sure about the number?") next = True if input("\nShall we do it again? (Y/N) ")=="Y" else False
#!/usr/bin/env python class Bee: def __init__(self, bee_id, tag_id, length_tracked): self.bee_id = bee_id self.tag_id = tag_id self.length_tracked = length_tracked self.last_path_id = None self.path_length = None self.last_x = None self.last_y = None self.list_speeds = [] self.list_angles = [] self.cells_visited = {} self.frame_xy = {} self.seconds_idle = 0 self.seconds_tracked = 0 def main(): pass if __name__ == "__main__": main()
good_ops = {'+': '-', '-': '+', '=<': '==', '>=': '==', '==': '=/=', '=/=': '==', '<':'>', '>': '<'} def count(ast): if ast.expr_name == "binary_operator": return 1 if ast.text in good_ops else 0 if ast.children: return sum(map(count, ast.children)) return 0 def inverse(number, ast, filename): if ast.expr_name == "binary_operator": if ast.text not in good_ops: return number if number == 0: with open(filename, 'w') as file: file.write(ast.full_text[:ast.start]) file.write(good_ops[ast.text]) file.write(ast.full_text[ast.end:]) return number - 1 if ast.children: return reduce(lambda a, x: inverse(a, x, filename), ast.children, number) return number
""" Um funcionรกrio recebe aumento anual. Em 1995 foi contratado por 2000 reais. Em 1996 recebeu aumento de 1.5%. A partir de 1997, os aumentos sempre correspondem ao dobro do ano anterior. Faรงa um programa que determine o salรกrio atual do funcionรกrio. """ anoA = int(input('Digite o ano em que estamos: ')) salario = 2000 ano = 1995 taxa = salario * 0.015 while ano < anoA: taxa = taxa * 2 ano += 1 print(taxa) print(salario + taxa)
''' The MIT License(MIT) Copyright(c) 2016 Copyleaks LTD (https://copyleaks.com) 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. ''' class Exclude: def get_quotes(self): ''' Exclude quoted text from the scan. ''' return self.quotes def set_quotes(self, value): ''' Exclude quoted text from the scan. Parameters: value: Boolean. ''' assert value self.quotes = value def get_references(self): ''' Exclude referenced text from the scan. ''' return self.references def set_references(self, value): ''' Exclude referenced text from the scan. Parameters: value: Boolean. ''' assert value self.references = value def get_table_of_content(self): ''' Exclude referenced text from the scan. ''' return self.tableOfContents def set_table_of_content(self, value): ''' Exclude referenced text from the scan. Parameters: value: Boolean. ''' assert value self.tableOfContents = value def get_titles(self): ''' Exclude titles from the scan. ''' return self.titles def set_titles(self, value): ''' Exclude titles from the scan. Parameters: value: Boolean. ''' assert value self.titles = value def get_html_template(self): ''' When the scanned document is an HTML document, exclude irrelevant text that appears across the site like the website footer or header. ''' return self.htmlTemplate def set_html_template(self, value): ''' When the scanned document is an HTML document, exclude irrelevant text that appears across the site like the website footer or header. Parameters: value: Boolean. ''' assert value self.htmlTemplate = value
""" Estimated time 5 minutes Level of difficulty Very easy Objectives Familiarize the student with: using the for loop; reflecting real-life situations in computer code. Scenario Do you know what Mississippi is? Well, it's the name of one of the states and rivers in the United States. The Mississippi River is about 2,340 miles long, which makes it the second-longest river in the United States (the longest being the Missouri River). It's so long that a single drop of water needs 90 days to travel its entire length! However, the word Mississippi is also used for a slightly different purpose: to "count mississippily". If you're not familiar with the phrase, we're here to explain to you: it's used to count seconds. The idea behind it is that adding the word Mississippi to a number when counting seconds aloud makes them sound closer to clock-time, and therefore "one Mississippi, two Mississippi, three Mississippi" will take approximately three seconds of time. It's often used by children playing hide-and-seek to make sure the seeker does an honest count. Your task is very simple here: create a for loop that counts "mississippily" to ten (make sure your output matches the expected output below; each line doesn't need to take a real second to print, you'll learn how to do this trick later in the course), and then prints to the screen the message "Ready or not, here I come!". Expected output 1 Mississippi 2 Mississippi 3 Mississippi 4 Mississippi 5 Mississippi 6 Mississippi 7 Mississippi 8 Mississippi 9 Mississippi 10 Mississippi Ready or not, here I come! """ for i in range(1,11): print(i, "Mississippi") print("Ready or not, here I come!")
#suma de dos digitos print(1+2) #multiplicacion de dos digitos print (3*4) #division de dos digitos print(3/2) #division estricta, sin decimales, de dos digitos print(81//2) #Potencia de un digito print(3**2)
# This is the main chess game engine that implements the rules of the game # and stores the state of the the chess board, including its pieces and moves class Game_state(): def __init__(self): """ The chess board is an 8 X 8 dimensional array (Matrix of 8 rows and 8 columns ) i.e a list of lists. Each element of the Matrix is a string of two characters representing the chess pieces in the order "type" + "colour" light pawn = pl dark pawn = pd light knight = nl dark knight = nd e.t.c empty board square = " " ---> double empty space """ self.board = [ ["rd", "nd", "bd", "qd", "kd", "bd", "nd", "rd"], ["pd", "pd", "pd", "pd", "pd", "pd", "pd", "pd"], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], ["pl", "pl", "pl", "pl", "pl", "pl", "pl", "pl"], ["rl", "nl", "bl", "ql", "kl", "bl", "nl", "rl"]] self.light_to_move = True # True = light's turn to play; False = dark's turn to play self.move_log = [] # keeps a log of all moves made withing a game self.en_passant = [] # flags possible en-passant moves self.castling = [] # flags possible casling moves self.move_piece = {"p": self.get_pawn_moves, "r": self.get_rook_moves, "q": self.get_queen_moves, "k": self.get_king_moves, "b": self.get_bishop_moves, "n": self.get_knight_moves} self.light_king_location = (7, 4) self.dark_king_location = (0, 4) # king is being attacked (initiated by opposing piece) self.check_mate = False # no valid moves (king cornered; initiated by king) self.stale_mate = False # light king side castle available (king and right rook not moved) self.light_king_side_castle = True # light queen side castle available (king and left rook not moved) self.light_queen_side_castle = True # dark king side castle available (king and right rook not moved) self.dark_king_side_castle = True # dark queen side castle available (king and left rook not moved) self.dark_queen_side_castle = True def get_pawn_moves(self, r, c, moves): """ Calculates all possible pawn moves for a given color (light or dark) and appends them to a list input parameter(s): r --> starting row (int) c --> starting colum (int) moves --> possible moves container (list) return parameter(s): None """ if self.light_to_move: # light pawns if r-1 >= 0 and self.board[r-1][c] == " ": # one square advance moves.append(Move((r, c), (r-1, c), self.board)) if r == 6 and self.board[r-2][c] == " ": # two square advance moves.append(Move((r, c), (r-2, c), self.board)) if c-1 >= 0: # left captures # dark piece present if r-1 >= 0 and self.board[r-1][c-1][1] == "d": moves.append(Move((r, c), (r-1, c-1), self.board)) if c+1 <= len(self.board[0]) - 1: # right captures if r-1 >= 0 and self.board[r-1][c+1][1] == "d": moves.append(Move((r, c), (r-1, c+1), self.board)) else: # dark pawns if r+1 <= 7 and self.board[r+1][c] == " ": # one square advance moves.append(Move((r, c), (r+1, c), self.board)) if r == 1 and self.board[r+2][c] == " ": # two square advance moves.append(Move((r, c), (r+2, c), self.board)) if c-1 >= 0: # left captures # light piece present if r+1 <= 7 and self.board[r+1][c-1][1] == "l": moves.append(Move((r, c), (r+1, c-1), self.board)) if c+1 <= len(self.board[0]) - 1: # right captures if r+1 <= 7 and self.board[r+1][c+1][1] == "l": moves.append(Move((r, c), (r+1, c+1), self.board)) def get_bishop_moves(self, r, c, moves): """ calculates all possible bishop moves for a given colour (light or dark) and appends them to a list input parameters: r --> starting row (int) c --> starting column (int) moves --> posiible moves container (list) return parameter(s): None """ directions = ((-1, -1), (-1, 1), (1, -1), (1, 1)) enemy_color = "d" if self.light_to_move else "l" for d in directions: for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination == " ": moves.append( Move((r, c), (end_row, end_col), self.board)) elif destination[1] == enemy_color: moves.append( Move((r, c), (end_row, end_col), self.board)) break else: # friendly piece break else: # off board break def get_knight_moves(self, r, c, moves): directions = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) enemy_color = "d" if self.light_to_move else "l" for d in directions: end_row = r + d[0] end_col = c + d[1] if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination[1] == enemy_color or destination == " ": moves.append(Move((r, c), (end_row, end_col), self.board)) def get_king_moves(self, r, c, moves): directions = ((-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)) enemy_color = "d" if self.light_to_move else "l" for d in directions: end_row = r + d[0] end_col = c + d[1] if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination[1] == enemy_color or destination == " ": moves.append(Move((r, c), (end_row, end_col), self.board)) # castling # light king side if self.light_to_move and self.light_king_side_castle: # if path is clear if self.board[7][5] == " " and self.board[7][6] == " ": # if path not under attack if (not self.is_square_attacked(7, 5)) and (not self.is_square_attacked(7, 6)): moves.append(Move((7, 4), (7, 6), self.board)) self.castling.append(Move((7, 4), (7, 6), self.board)) # light queen side if self.light_to_move and self.light_queen_side_castle: # if path is clear if self.board[7][1] == " " and self.board[7][2] == " " and self.board[7][3] == " ": # if path not under attack if (not self.is_square_attacked(7, 1)) and (not self.is_square_attacked(7, 2)) and (not self.is_square_attacked(7, 3)): moves.append(Move((7, 4), (7, 2), self.board)) self.castling.append(Move((7, 4), (7, 2), self.board)) # dark king side if not self.light_to_move and self.dark_king_side_castle: # if path is clear if self.board[0][5] == " " and self.board[0][6] == " ": # if path not under attack if (not self.is_square_attacked(0, 5)) and (not self.is_square_attacked(0, 6)): moves.append(Move((0, 4), (0, 6), self.board)) self.castling.append(Move((0, 4), (0, 6), self.board)) # dark queen side if not self.light_to_move and self.dark_queen_side_castle: # if path is clear if self.board[0][1] == " " and self.board[0][2] == " " and self.board[0][3] == " ": # if path not under attach if (not self.is_square_attacked(0, 1)) and (not self.is_square_attacked(0, 2)) and (not self.is_square_attacked(0, 3)): moves.append(Move((0, 4), (0, 2), self.board)) self.castling.append(Move((0, 4), (0, 2), self.board)) def get_rook_moves(self, r, c, moves): directions = ((-1, 0), (0, -1), (1, 0), (0, 1)) enemy_color = "d" if self.light_to_move else "l" for d in directions: for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= end_row < 8 and 0 <= end_col < 8: # on board destination = self.board[end_row][end_col] if destination == " ": # empty moves.append( Move((r, c), (end_row, end_col), self.board)) elif destination[1] == enemy_color: moves.append( Move((r, c), (end_row, end_col), self.board)) break else: # friendly piece break else: # off board break def get_queen_moves(self, r, c, moves): self.get_bishop_moves(r, c, moves) self.get_rook_moves(r, c, moves) def make_move(self, move, look_ahead_mode=False): """ moves pieces on the board input parameters: move --> move to be made (Move object) look_ahead_mode --> flag to ignore castling or not (during thinking mode) return parameter(s): None """ # if self.move_log: # print(self.move_log[-1]) self.board[move.start_row][move.start_col] = " " self.board[move.end_row][move.end_col] = move.piece_moved # if self.en_passant and not look_ahead_mode: # print(self.en_passant) # handles en-passant moves if not look_ahead_mode and move in self.en_passant: if self.light_to_move: move.en_passant_captured = self.board[move.end_row + 1][move.end_col] self.board[move.end_row+1][move.end_col] = " " else: move.en_passant_captured = self.board[move.end_row - 1][move.end_col] self.board[move.end_row-1][move.end_col] = " " self.move_log.append(move) # log move # handles castling moves if not look_ahead_mode and move in self.castling: # determine rook to be castled if move.end_col == 2: move.castling_rook = (move.start_row, 0) self.board[move.start_row][0] = " " self.board[move.end_row][3] = "r" + \ self.board[move.end_row][move.end_col][1] # castle rook elif move.end_col == 6: move.castling_rook = (move.start_row, 7) self.board[move.start_row][7] = " " self.board[move.end_row][5] = "r" + \ self.board[move.end_row][move.end_col][1] # castle rook self.light_to_move = not self.light_to_move # next player to move if not look_ahead_mode: self.castling = [] # reset castling self.en_passant = [] # reset en-passant # dark en-passant if (move.start_row == 6 and move.piece_moved == "pl" and move.start_row - move.end_row == 2): # from left of light pawn if (move.end_col - 1 >= 0 and self.board[move.end_row][move.end_col-1] == "pd"): self.en_passant.append( Move((move.end_row, move.end_col-1), (move.end_row+1, move.end_col), self.board)) # from right of light pawn elif (move.end_col + 1 <= len(self.board[0])-1 and self.board[move.end_row][move.end_col+1] == "pd"): self.en_passant.append(Move( (move.end_row, move.start_col+1), (move.end_row+1, move.end_col), self.board)) # light en-passant if (move.start_row == 1 and move.piece_moved == "pd" and move.end_row - move.start_row == 2): # from left of dark pawn if (move.end_col - 1 >= 0 and self.board[move.end_row][move.end_col-1] == "pl"): self.en_passant.append(Move( (move.end_row, move.start_col-1), (move.end_row-1, move.end_col), self.board)) # from right of dark pawn elif (move.end_col + 1 <= len(self.board[0])-1 and self.board[move.end_row][move.end_col+1] == "pl"): self.en_passant.append( Move((move.end_row, move.end_col+1), (move.end_row-1, move.end_col), self.board)) # update king's position if move.piece_moved == "kl": self.light_king_location = (move.end_row, move.end_col) if not look_ahead_mode: # non castling king move if not move.castling_rook: self.light_king_side_castle = False self.light_queen_side_castle = False # castling king moves # queen side castled elif move.castling_rook and move.end_col == 2: self.light_queen_side_castle = False # king side castled elif move.castling_rook and move.end_col == 6: self.light_king_side_castle = False elif move.piece_moved == "kd": self.dark_king_location = (move.end_row, move.end_col) if not look_ahead_mode: # non castling king move if not move.castling_rook: self.dark_king_side_castle = False self.dark_queen_side_castle = False # castling king moves # queen side castled elif move.castling_rook and move.end_col == 2: self.dark_queen_side_castle = False # king side castled elif move.castling_rook and move.end_col == 6: self.dark_king_side_castle = False # check rook moves for castling if not look_ahead_mode: # light rooks if move.start_row == 7 and move.start_col == 0: self.light_queen_side_castle = False elif move.start_row == 7 and move.start_col == 7: self.light_king_side_castle = False # dark rooks elif move.start_row == 0 and move.start_col == 0: self.dark_queen_side_castle = False elif move.start_row == 0 and move.start_col == 7: self.dark_king_side_castle = False def undo_move(self, look_ahead_mode=False): """ undoes last move input parameter(s): look_ahead_mode --> flag for thinking mode vs playing mode (false = playing mode) return parameter(s): None """ if self.move_log: last_move = self.move_log.pop() self.board[last_move.start_row][last_move.start_col] = last_move.piece_moved self.board[last_move.end_row][last_move.end_col] = last_move.piece_captured # handles enpassant self.light_to_move = not self.light_to_move if not look_ahead_mode: self.en_passant = [] if last_move.en_passant_captured: self.en_passant.append(Move((last_move.start_row, last_move.start_col), ( last_move.end_row, last_move.end_col), self.board)) # recall en-passant valid move if self.light_to_move: self.board[last_move.end_row + 1][last_move.end_col] = last_move.en_passant_captured else: self.board[last_move.end_row - 1][last_move.end_col] = last_move.en_passant_captured # handles checkmate and stalemate self.check_mate = False if self.check_mate else False self.stale_mate = False if self.stale_mate else False # update king's position if last_move.piece_moved == "kl": self.light_king_location = ( last_move.start_row, last_move.start_col) # undoing first-time non-castling light king move (for castling) if last_move.start_row == 7 and last_move.start_col == 4 and not last_move.castling_rook: # ensure no king moves in past moves (first time king move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row) and \ (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_queen_side_castle = True self.light_king_side_castle = True elif last_move.piece_moved == "kd": self.dark_king_location = ( last_move.start_row, last_move.start_col) # undoing first-time non-castling dark king move (for castling) if last_move.start_row == 0 and last_move.start_col == 4 and not last_move.castling_rook: # ensure no king moves in past moves (first time king move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row) and \ (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_queen_side_castle = True self.dark_king_side_castle = True # handles castling if last_move.castling_rook: if last_move.piece_moved == "kl" and last_move.end_col == 2: self.light_queen_side_castle = True self.board[7][3] = " " self.board[7][0] = "rl" elif last_move.piece_moved == "kl" and last_move.end_col == 6: self.light_king_side_castle = True self.board[7][5] = " " self.board[7][7] = "rl" elif last_move.piece_moved == "kd" and last_move.end_col == 2: self.dark_queen_side_castle = True self.board[0][3] = " " self.board[0][0] = "rd" elif last_move.piece_moved == "kd" and last_move.end_col == 6: self.dark_king_side_castle = True self.board[0][5] = " " self.board[0][7] = "rd" # undoing first-time rook moves (for castling) # light king side rook if last_move.piece_moved == "rl": if last_move.start_row == 7 and last_move.start_col == 7: # ensure no rook moves in past moves (first time rook move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row)\ and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_king_side_castle = True # light queen side rook elif last_move.start_row == 7 and last_move.start_col == 0: # ensure no rook moves in past moves (first time rook move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row)\ and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_queen_side_castle = True # dark king side rook elif last_move.piece_moved == "rd": if last_move.start_row == 0 and last_move.start_col == 7: # ensure no rook moves in past moves (first time rook move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row)\ and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_king_side_castle = True # dark queen side rook elif last_move.start_row == 0 and last_move.start_col == 0: # ensure no rook moves in past moves (first time rook move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row)\ and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_queen_side_castle = True # interactive if not look_ahead_mode: print("Reversing", last_move.get_chess_notation()) #last_move.piece_captured = " " else: print("All undone!") def get_valid_moves(self): """ gives the valid piece moves on the board while considering potential checks input parameter(s): None return parameter(s): moves --> list of vlid move objects turn --> char of current player turn ('l' for light, 'd' for dark) """ moves, turn = self.get_possible_moves() for move in moves[::-1]: # reverse iteration self.make_move(move, True) self.light_to_move = not self.light_to_move if self.is_in_check(): moves.remove(move) self.undo_move(True) self.light_to_move = not self.light_to_move if len(moves) == 0: if self.is_in_check(): self.check_mate = True else: self.stale_mate = True # handles undoing else: self.check_mate = False self.stale_mate = False return moves, turn def get_possible_moves(self): """ gives naive possible moves of pieces on the board without taking checks into account input parameters: None return parameter(s): moves --> list of possible move objects turn --> char of current player turn ('l' for light, 'd' for dark) """ moves = [] # if self.en_passant: for obj in self.en_passant: moves.append(obj) turn = "l" if self.light_to_move else "d" for i in range(len(self.board)): for j in range(len(self.board[i])): if self.board[i][j][1] == turn: self.move_piece[self.board[i][j][0]](i, j, moves) return moves, turn def is_in_check(self): """ determines if current player isnin check (king under attack) input parameter(s): None return parameter(s): bool of True or False """ if self.light_to_move: return self.is_square_attacked(self.light_king_location[0], self.light_king_location[1]) else: return self.is_square_attacked(self.dark_king_location[0], self.dark_king_location[1]) def is_square_attacked(self, r, c): """ determines if enemy can attack given board position input parameter(s): r --> board row (int) c --> board column (int) return parameter(s): bool of True or False """ turn = 'l' if self.light_to_move else "d" # allies turn opp_turn = "d" if self.light_to_move else "l" # opponents turn # check for all possible knight attacks checks = ((1, 2), (-1, 2), (1, -2), (-1, -2), (2, 1), (2, -1), (-2, -1), (-2, 1)) for loc in checks: end_row = r + loc[0] end_col = c + loc[1] if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == opp_turn and self.board[end_row][end_col][0] == "n": return True # check for all possible pawn attacks checks = ((-1, -1), (-1, 1)) if self.light_to_move else ((1, -1), (1, 1)) for loc in checks: end_row = r + loc[0] end_col = c + loc[1] if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == opp_turn and self.board[end_row][end_col][0] == "p": return True # check for all possible bishop or queen or king attacks checks = ((1, -1), (1, 1), (-1, -1), (-1, 1)) for loc in checks: for i in range(1, 8): end_row = loc[0]*i + r end_col = loc[1]*i + c if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == turn: break elif (i == 1) and (self.board[end_row][end_col][1] == opp_turn) and (self.board[end_row][end_col][0] == "k"): return True elif self.board[end_row][end_col][1] == opp_turn: if self.board[end_row][end_col][0] == "b" or self.board[end_row][end_col][0] == "q": return True else: break # check for all possible rook or queen or king attacks checks = ((1, 0), (-1, 0), (0, 1), (0, -1)) for loc in checks: for i in range(1, 8): end_row = loc[0]*i + r end_col = loc[1]*i + c if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == turn: break elif (i == 1) and (self.board[end_row][end_col][1] == opp_turn) and (self.board[end_row][end_col][0] == "k"): return True elif (self.board[end_row][end_col][1] == opp_turn): if self.board[end_row][end_col][0] == "r" or self.board[end_row][end_col][0] == "q": return True else: break return False class Move(): # map ranks to rows ranks_to_rows = {"1": 7, "2": 6, "3": 5, "4": 4, "5": 3, "6": 2, "7": 1, "8": 0} # map rows to ranks (revers of ranks to rows) rows_to_ranks = {row: rank for rank, row in ranks_to_rows.items()} # map files to columns files_to_cols = {"a": 0, "b": 1, "c": 2, "d": 3, "e": 4, "f": 5, "g": 6, "h": 7} # map columns to files (revers of files to columns) cols_to_files = {col: file for file, col in files_to_cols.items()} def __init__(self, start_sq, end_sq, board): """ A Move class abstracting all parameters needed for moving chess pieces on the board input parameter(s): start_sq --> (row, column) of piece to be moved (tuple) end_square --> (row, column) of move destination on the board (tuple) board --> board object referencing current state of the board (class Game_state) """ self.start_row = start_sq[0] # row location of piece to be moved self.start_col = start_sq[1] # column location of piece to be moved # intended row destination of piece to be moved self.end_row = end_sq[0] # intended column destiantion of piece to e moved self.end_col = end_sq[1] # actual piece moved self.piece_moved = board[self.start_row][self.start_col] # opponent piece if any on the destination square self.piece_captured = board[self.end_row][self.end_col] self.en_passant_captured = None # piece captured during en-passant self.castling_rook = None # rook castled during castling def get_chess_notation(self): """ creates a live commentary of pieces moved on the chess board during a game input parameter(s): None return parameter(s) commentary (string) """ if self.en_passant_captured: return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + self.get_rank_file(self.end_row, self.end_col) + \ "(" + self.en_passant_captured[0].upper() + " captured!)" elif not self.en_passant_captured and self.piece_captured != " ": return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + self.get_rank_file(self.end_row, self.end_col) + \ "(" + self.piece_captured[0].upper() + " captured!)" elif self.castling_rook: return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + self.get_rank_file(self.end_row, self.end_col) + \ "(" + "Queen side castling!)" if self.end_col == 2 else "King side castling!)" else: return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + \ self.get_rank_file(self.end_row, self.end_col) # return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + self.get_rank_file(self.end_row, self.end_col) + \ # "(" + self.piece_captured[0].upper() + " captured!)" if self.piece_captured != " " else self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + \ # self.get_rank_file(self.end_row, self.end_col) def get_rank_file(self, r, c): """ calls cols_to_file and rows_to_rank attributes input parameter(s): r --> row to be converted to rank (int) c --> column to be converted to file (int) return parameter(s): "file" + "rank" (str) """ return self.cols_to_files[c] + self.rows_to_ranks[r] def __eq__(self, other): """ operator overloading for equating two move objects """ # if first (self) and second (other) parameters are both Move objects if isinstance(other, Move): return self.start_row == other.start_row and self.start_col == other.start_col and \ self.end_row == other.end_row and self.end_col == other.end_col else: return False def __ne__(self, other): """ "not equals to" --> conventional counterpart to __eq__ """ return not self.__eq__(other) def __str__(self): """ operator overloading for printing Move objects """ return "({}, {}) ({}, {})".format(self.start_row, self.start_col, self.end_row, self.end_col)
class Player: VERSION = "fuck" def betRequest(self, game_state): return 10000000 def showdown(self, game_state): pass
# You are given N counters, initially set to 0, and you have two possible operations on them: # increase(X) โˆ’ counter X is increased by 1, # max counter โˆ’ all counters are set to the maximum value of any counter. # Write a function that, given an integer N and a non-empty array A consisting of M integers, returns a sequence of integers representing the values of the counters. # Result array should be returned as an array of integers. # For example, given: # A[0] = 3 # A[1] = 4 # A[2] = 4 # A[3] = 6 # A[4] = 1 # A[5] = 4 # A[6] = 4 # the function should return [3, 2, 2, 4, 2], as explained above. ################################## # This solution LOOKS clean but is slow due to having to recreate the counters array. # O(n*m)t | O(n)s ################################## # def solution(N, A): # counters = [0] * N # for val in A: # if (val > N): counters = [max(counters)] * N # else: counters[val - 1] += 1 # return counters ################################## # This solution is less clean, but is more efficient. We're only updating a 'maxToSet' variable that we will update the array at the very end. In this way, time complexity is kept to O(n) # O(n)t | O(n)s ################################## def maxCounters(N, A): maxCounter = maxToSet = 0 counters = [0] * N for i in range(len(A)): X = A[i] - 1 if X == N: maxToSet = maxCounter elif 0 <= X and X < N: counters[X] = max(counters[X] + 1, maxToSet + 1) maxCounter = max(counters[X], maxCounter) for val in counters: val = max(val, maxToSet) return counters print(maxCounters(6, [3, 4, 4, 6, 1, 4, 4])) # [3, 2, 2, 4, 2]
class WL(object): def __init__(self,data=None): if data: self.id = data['id'] self.title = data['title'] self.created_at = data['created_at'] def get_id(self): return self.id def get_title(self): return self.title def get_created_at(self): return self.created_at def set_title(self,title): self.title = title class List(WL): def __init__(self,data=None): super(List, self).__init__(data) def get_json(self): wlist = { 'title': self.title } return wlist class Task(WL): def __init__(self,data=None): super(Task, self).__init__(data) if data: self.list_id = data['list_id'] def get_list_id(self): return self.list_id def set_list_id(self,list_id): self.list_id = list_id def set_due_date(self,due_date): self.due_date = due_date def get_json(self): task = { 'list_id': int(self.list_id), 'title': self.title } if(self.due_date): task['due_date'] = str(self.due_date.year)+"-"+str(self.due_date.month)+"-"+str(self.due_date.day) return task
# Title: Array Partition 1 # Link: https://leetcode.com/problems/array-partition-i/ class Solution: def array_pair_sum(self, nums: list) -> int: nums = sorted(nums) s = 0 for i in range(0, len(nums), 2): s += nums[i] return s def solution(): nums = [1,4,3,2] sol = Solution() return sol.array_pair_sum(nums) def main(): print(solution()) if __name__ == '__main__': main()
# coding=utf-8 UNICODE12 = u""" ๐Ÿฅฑ Yawning Face ๐ŸคŽ Brown Heart ๐Ÿค White Heart ๐Ÿค Pinching Hand ๐Ÿฆพ Mechanical Arm ๐Ÿฆฟ Mechanical Leg ๐Ÿฆป Ear With Hearing Aid ๐Ÿง Deaf Person ๐Ÿง Person Standing ๐ŸงŽ Person Kneeling ๐Ÿฆง Orangutan ๐Ÿฆฎ Guide Dog ๐Ÿฆฅ Sloth ๐Ÿฆฆ Otter ๐Ÿฆจ Skunk ๐Ÿฆฉ Flamingo ๐Ÿง„ Garlic ๐Ÿง… Onion ๐Ÿง‡ Waffle ๐Ÿง† Falafel ๐Ÿงˆ Butter ๐Ÿฆช Oyster ๐Ÿงƒ Beverage Box ๐Ÿง‰ Mate ๐ŸงŠ Ice ๐Ÿ›• Hindu Temple ๐Ÿฆฝ Manual Wheelchair ๐Ÿฆผ Motorized Wheelchair ๐Ÿ›บ Auto Rickshaw ๐Ÿช‚ Parachute ๐Ÿช Ringed Planet ๐Ÿคฟ Diving Mask ๐Ÿช€ Yo-Yo ๐Ÿช Kite ๐Ÿฆบ Safety Vest ๐Ÿฅป Sari ๐Ÿฉฑ One-Piece Swimsuit ๐Ÿฉฒ Briefs ๐Ÿฉณ Shorts ๐Ÿฉฐ Ballet Shoes ๐Ÿช• Banjo ๐Ÿช” Diya Lamp ๐Ÿช“ Axe ๐Ÿฆฏ Probing Cane ๐Ÿฉธ Drop of Blood ๐Ÿฉน Adhesive Bandage ๐Ÿฉบ Stethoscope ๐Ÿช‘ Chair ๐Ÿช’ Razor ๐ŸŸ  Orange Circle ๐ŸŸก Yellow Circle ๐ŸŸข Green Circle ๐ŸŸฃ Purple Circle ๐ŸŸค Brown Circle ๐ŸŸฅ Red Square ๐ŸŸง Orange Square ๐ŸŸจ Yellow Square ๐ŸŸฉ Green Square ๐ŸŸฆ Blue Square ๐ŸŸช Purple Square ๐ŸŸซ Brown Square """ UNICODE11 = u""" ๐Ÿฅฐ Smiling Face With Hearts ๐Ÿฅต Hot Face ๐Ÿฅถ Cold Face ๐Ÿฅด Woozy Face ๐Ÿฅณ Partying Face ๐Ÿฅบ Pleading Face ๐Ÿฆต Leg ๐Ÿฆถ Foot ๐Ÿฆท Tooth ๐Ÿฆด Bone ๐Ÿฆธ Superhero ๐Ÿฆน Supervillain ๐Ÿฆฐ Red Hair ๐Ÿฆฑ Curly Hair ๐Ÿฆณ White Hair ๐Ÿฆฒ Bald ๐Ÿฆ Raccoon ๐Ÿฆ™ Llama ๐Ÿฆ› Hippopotamus ๐Ÿฆ˜ Kangaroo ๐Ÿฆก Badger ๐Ÿฆข Swan ๐Ÿฆš Peacock ๐Ÿฆœ Parrot ๐ŸฆŸ Mosquito ๐Ÿฆ  Microbe ๐Ÿฅญ Mango ๐Ÿฅฌ Leafy Green ๐Ÿฅฏ Bagel ๐Ÿง‚ Salt ๐Ÿฅฎ Moon Cake ๐Ÿฆž Lobster ๐Ÿง Cupcake ๐Ÿงญ Compass ๐Ÿงฑ Brick ๐Ÿ›น Skateboard ๐Ÿงณ Luggage ๐Ÿงจ Firecracker ๐Ÿงง Red Envelope ๐ŸฅŽ Softball ๐Ÿฅ Flying Disc ๐Ÿฅ Lacrosse ๐Ÿงฟ Nazar Amulet ๐Ÿงฉ Puzzle Piece ๐Ÿงธ Teddy Bear ๐Ÿงต Thread ๐Ÿงถ Yarn ๐Ÿฅฝ Goggles ๐Ÿฅผ Lab Coat ๐Ÿฅพ Hiking Boot ๐Ÿฅฟ Flat Shoe ๐Ÿงฎ Abacus ๐Ÿงพ Receipt ๐Ÿงฐ Toolbox ๐Ÿงฒ Magnet ๐Ÿงช Test Tube ๐Ÿงซ Petri Dish ๐Ÿงฌ DNA ๐Ÿงด Lotion Bottle ๐Ÿงท Safety Pin ๐Ÿงน Broom ๐Ÿงบ Basket ๐Ÿงป Roll of Paper ๐Ÿงผ Soap ๐Ÿงฝ Sponge ๐Ÿงฏ Fire Extinguisher """ UNICODE10 = u""" ๐Ÿคฉ Star-Struck ๐Ÿคช Zany Face ๐Ÿคญ Face With Hand Over Mouth ๐Ÿคซ Shushing Face ๐Ÿคจ Face With Raised Eyebrow ๐Ÿคฎ Face Vomiting ๐Ÿคฏ Exploding Head ๐Ÿง Face With Monocle ๐Ÿคฌ Face With Symbols on Mouth ๐Ÿงก Orange Heart ๐ŸคŸ Love-You Gesture ๐Ÿคฒ Palms Up Together ๐Ÿง  Brain ๐Ÿง’ Child ๐Ÿง‘ Person ๐Ÿง” Man: Beard ๐Ÿง“ Older Person ๐Ÿง• Woman With Headscarf ๐Ÿคฑ Breast-Feeding ๐Ÿง™ Mage ๐Ÿงš Fairy ๐Ÿง› Vampire ๐Ÿงœ Merperson ๐Ÿง Elf ๐Ÿงž Genie ๐ŸงŸ Zombie ๐Ÿง– Person in Steamy Room ๐Ÿง— Person Climbing ๐Ÿง˜ Person in Lotus Position ๐Ÿฆ“ Zebra ๐Ÿฆ’ Giraffe ๐Ÿฆ” Hedgehog ๐Ÿฆ• Sauropod ๐Ÿฆ– T-Rex ๐Ÿฆ— Cricket ๐Ÿฅฅ Coconut ๐Ÿฅฆ Broccoli ๐Ÿฅจ Pretzel ๐Ÿฅฉ Cut of Meat ๐Ÿฅช Sandwich ๐Ÿฅฃ Bowl With Spoon ๐Ÿฅซ Canned Food ๐ŸฅŸ Dumpling ๐Ÿฅ  Fortune Cookie ๐Ÿฅก Takeout Box ๐Ÿฅง Pie ๐Ÿฅค Cup With Straw ๐Ÿฅข Chopsticks ๐Ÿ›ธ Flying Saucer ๐Ÿ›ท Sled ๐ŸฅŒ Curling Stone ๐Ÿงฃ Scarf ๐Ÿงค Gloves ๐Ÿงฅ Coat ๐Ÿงฆ Socks ๐Ÿงข Billed Cap โ‚ฟ Bitcoin Sign """ UNICODE9 = u""" ๐Ÿคฃ Rolling on the Floor Laughing ๐Ÿคฅ Lying Face ๐Ÿคค Drooling Face ๐Ÿคข Nauseated Face ๐Ÿคง Sneezing Face ๐Ÿค  Cowboy Hat Face ๐Ÿคก Clown Face ๐Ÿ–ค Black Heart ๐Ÿคš Raised Back of Hand ๐Ÿคž Crossed Fingers ๐Ÿค™ Call Me Hand ๐Ÿค› Left-Facing Fist ๐Ÿคœ Right-Facing Fist ๐Ÿค Handshake ๐Ÿคณ Selfie ๐Ÿคฆ Person Facepalming ๐Ÿคท Person Shrugging ๐Ÿคด Prince ๐Ÿคต Man in Tuxedo ๐Ÿคฐ Pregnant Woman ๐Ÿคถ Mrs. Claus ๐Ÿ•บ Man Dancing ๐Ÿคบ Person Fencing ๐Ÿคธ Person Cartwheeling ๐Ÿคผ People Wrestling ๐Ÿคฝ Person Playing Water Polo ๐Ÿคพ Person Playing Handball ๐Ÿคน Person Juggling ๐Ÿฆ Gorilla ๐ŸฆŠ Fox ๐ŸฆŒ Deer ๐Ÿฆ Rhinoceros ๐Ÿฆ‡ Bat ๐Ÿฆ… Eagle ๐Ÿฆ† Duck ๐Ÿฆ‰ Owl ๐ŸฆŽ Lizard ๐Ÿฆˆ Shark ๐Ÿฆ‹ Butterfly ๐Ÿฅ€ Wilted Flower ๐Ÿฅ Kiwi Fruit ๐Ÿฅ‘ Avocado ๐Ÿฅ” Potato ๐Ÿฅ• Carrot ๐Ÿฅ’ Cucumber ๐Ÿฅœ Peanuts ๐Ÿฅ Croissant ๐Ÿฅ– Baguette Bread ๐Ÿฅž Pancakes ๐Ÿฅ“ Bacon ๐Ÿฅ™ Stuffed Flatbread ๐Ÿฅš Egg ๐Ÿฅ˜ Shallow Pan of Food ๐Ÿฅ— Green Salad ๐Ÿฆ Shrimp ๐Ÿฆ‘ Squid ๐Ÿฅ› Glass of Milk ๐Ÿฅ‚ Clinking Glasses ๐Ÿฅƒ Tumbler Glass ๐Ÿฅ„ Spoon ๐Ÿ›ต Motor Scooter ๐Ÿ›ด Kick Scooter ๐Ÿ›‘ Stop Sign ๐Ÿ›ถ Canoe ๐Ÿฅ‡ 1st Place Medal ๐Ÿฅˆ 2nd Place Medal ๐Ÿฅ‰ 3rd Place Medal ๐ŸฅŠ Boxing Glove ๐Ÿฅ‹ Martial Arts Uniform ๐Ÿฅ… Goal Net ๐Ÿฅ Drum ๐Ÿ›’ Shopping Cart """ UNICODE8 = u""" ๐Ÿ™ƒ Upside-Down Face ๐Ÿค‘ Money-Mouth Face ๐Ÿค— Hugging Face ๐Ÿค” Thinking Face ๐Ÿค Zipper-Mouth Face ๐Ÿ™„ Face With Rolling Eyes ๐Ÿค’ Face With Thermometer ๐Ÿค• Face With Head-Bandage ๐Ÿค“ Nerd Face ๐Ÿค– Robot ๐Ÿค˜ Sign of the Horns ๐Ÿป Light Skin Tone ๐Ÿผ Medium-Light Skin Tone ๐Ÿฝ Medium Skin Tone ๐Ÿพ Medium-Dark Skin Tone ๐Ÿฟ Dark Skin Tone ๐Ÿฆ Lion ๐Ÿฆ„ Unicorn ๐Ÿฆƒ Turkey ๐Ÿฆ‚ Scorpion ๐Ÿง€ Cheese Wedge ๐ŸŒญ Hot Dog ๐ŸŒฎ Taco ๐ŸŒฏ Burrito ๐Ÿฟ Popcorn ๐Ÿฆ€ Crab ๐Ÿพ Bottle With Popping Cork ๐Ÿบ Amphora ๐Ÿ•Œ Mosque ๐Ÿ• Synagogue ๐Ÿ•‹ Kaaba ๐Ÿ Volleyball ๐Ÿ Cricket Game ๐Ÿ‘ Field Hockey ๐Ÿ’ Ice Hockey ๐Ÿ“ Ping Pong ๐Ÿธ Badminton ๐Ÿ“ฟ Prayer Beads ๐Ÿน Bow and Arrow ๐Ÿ› Place of Worship ๐Ÿ•Ž Menorah """ UNICODE7 = u""" ๐Ÿ™‚ Slightly Smiling Face ๐Ÿ™ Slightly Frowning Face ๐Ÿ•ณ Hole ๐Ÿ—จ Left Speech Bubble ๐Ÿ—ฏ Right Anger Bubble ๐Ÿ– Hand With Fingers Splayed ๐Ÿ–– Vulcan Salute ๐Ÿ–• Middle Finger ๐Ÿ‘ Eye ๐Ÿ•ต Detective ๐Ÿ•ด Man in Suit Levitating ๐ŸŒ Person Golfing ๐Ÿ‹ Person Lifting Weights ๐Ÿ›Œ Person in Bed ๐Ÿ—ฃ Speaking Head ๐Ÿฟ Chipmunk ๐Ÿ•Š Dove ๐Ÿ•ท Spider ๐Ÿ•ธ Spider Web ๐Ÿต Rosette ๐ŸŒถ Hot Pepper ๐Ÿฝ Fork and Knife With Plate ๐Ÿ—บ World Map ๐Ÿ” Snow-Capped Mountain ๐Ÿ• Camping ๐Ÿ– Beach With Umbrella ๐Ÿœ Desert ๐Ÿ Desert Island ๐Ÿž National Park ๐ŸŸ Stadium ๐Ÿ› Classical Building ๐Ÿ— Building Construction ๐Ÿ˜ Houses ๐Ÿš Derelict House ๐Ÿ™ Cityscape ๐ŸŽ Racing Car ๐Ÿ Motorcycle ๐Ÿ›ฃ Motorway ๐Ÿ›ค Railway Track ๐Ÿ›ข Oil Drum ๐Ÿ›ณ Passenger Ship ๐Ÿ›ฅ Motor Boat ๐Ÿ›ฉ Small Airplane ๐Ÿ›ซ Airplane Departure ๐Ÿ›ฌ Airplane Arrival ๐Ÿ›ฐ Satellite ๐Ÿ›Ž Bellhop Bell ๐Ÿ•ฐ Mantelpiece Clock ๐ŸŒก Thermometer ๐ŸŒค Sun Behind Small Cloud ๐ŸŒฅ Sun Behind Large Cloud ๐ŸŒฆ Sun Behind Rain Cloud ๐ŸŒง Cloud With Rain ๐ŸŒจ Cloud With Snow ๐ŸŒฉ Cloud With Lightning ๐ŸŒช Tornado ๐ŸŒซ Fog ๐ŸŒฌ Wind Face ๐ŸŽ— Reminder Ribbon ๐ŸŽŸ Admission Tickets ๐ŸŽ– Military Medal ๐Ÿ… Sports Medal ๐Ÿ•น Joystick ๐Ÿ–ผ Framed Picture ๐Ÿ•ถ Sunglasses ๐Ÿ› Shopping Bags ๐ŸŽ™ Studio Microphone ๐ŸŽš Level Slider ๐ŸŽ› Control Knobs ๐Ÿ–ฅ Desktop Computer ๐Ÿ–จ Printer ๐Ÿ–ฑ Computer Mouse ๐Ÿ–ฒ Trackball ๐ŸŽž Film Frames ๐Ÿ“ฝ Film Projector ๐Ÿ“ธ Camera With Flash ๐Ÿ•ฏ Candle ๐Ÿ—ž Rolled-Up Newspaper ๐Ÿท Label ๐Ÿ—ณ Ballot Box With Ballot ๐Ÿ–‹ Fountain Pen ๐Ÿ–Š Pen ๐Ÿ–Œ Paintbrush ๐Ÿ– Crayon ๐Ÿ—‚ Card Index Dividers ๐Ÿ—’ Spiral Notepad ๐Ÿ—“ Spiral Calendar ๐Ÿ–‡ Linked Paperclips ๐Ÿ—ƒ Card File Box ๐Ÿ—„ File Cabinet ๐Ÿ—‘ Wastebasket ๐Ÿ— Old Key ๐Ÿ›  Hammer and Wrench ๐Ÿ—ก Dagger ๐Ÿ›ก Shield ๐Ÿ—œ Clamp ๐Ÿ› Bed ๐Ÿ›‹ Couch and Lamp ๐Ÿ•‰ Om โธ Pause Button โน Stop Button โบ Record Button ๐Ÿด Black Flag ๐Ÿณ White Flag ๐Ÿ–š Sideways Black Left Pointing Index ๐Ÿ–พ Frame with an X ๐Ÿ“พ Portable Stereo ๐Ÿ–ฃ Black Down Pointing Backhand Index ๐Ÿ›‡ Prohibited Sign ๐Ÿ–บ Document with Text and Picture ๐Ÿ—  Stock Chart ๐Ÿ—Ž Document ๐Ÿ–” Reversed Victory Hand ๐Ÿ—Š Note Pad ๐Ÿ•† White Latin Cross ๐Ÿ—ญ Right Thought Bubble ๐Ÿ–ญ Tape Cartridge ๐Ÿ— Page ๐Ÿ•‡ Heavy Latin Cross ๐Ÿ•ฌ Bullhorn with Sound Waves ๐Ÿ—” Desktop Window ๐Ÿ—ซ Three Speech Bubbles ๐Ÿ—‰ Note Page ๐Ÿ—€ Folder ๐Ÿ—™ Cancellation X ๐Ÿ—ช Two Speech Bubbles ๐Ÿ•ป Left Hand Telephone Receiver ๐Ÿ—ฌ Left Thought Bubble ๐Ÿ›† Triangle with Rounded Corners ๐Ÿ—ฒ Lightning Mood ๐Ÿ•ซ Bullhorn ๐Ÿ–ฏ One Button Mouse ๐Ÿ–Ÿ Sideways White Down Pointing Index ๐Ÿ•ช Right Speaker with Three Sound Waves ๐Ÿ–ฐ Two Button Mouse ๐ŸŒข Black Droplet ๐Ÿ—ฉ Right Speech Bubble ๐Ÿ–— White Down Pointing Left Hand Index ๐Ÿ–“ Reversed Thumbs Down Sign ๐Ÿ—‡ Empty Note Pad ๐Ÿ•จ Right Speaker ๐Ÿ—ด Ballot Script X ๐Ÿ– Turned Ok Hand Sign ๐Ÿ•ฝ Right Hand Telephone Receiver ๐Ÿ—† Empty Note Page ๐Ÿ—Ÿ Page with Circled Text ๐Ÿ—— Overlap ๐Ÿ›Š Girls Symbol ๐Ÿ—– Maximize ๐Ÿ—ฎ Left Anger Bubble ๐Ÿ–ท Fax Icon ๐Ÿ›ง Up-Pointing Airplane ๐Ÿ– Black Right Pointing Backhand Index ๐Ÿ”ฟ Upper Right Shadowed White Circle ๐Ÿ–ช Black Hard Shell Floppy Disk ๐Ÿถ Black Rosette ๐Ÿ—ฅ Three Rays Below ๐Ÿ–ฎ Wired Keyboard ๐Ÿฑ White Pennant ๐Ÿ•ฒ No Piracy ๐Ÿ—Œ Empty Page ๐Ÿ—ฐ Mood Bubble ๐Ÿ–ƒ Stamped Envelope ๐Ÿ— Open Folder ๐Ÿ–› Sideways Black Right Pointing Index ๐Ÿ–ป Document with Picture ๐Ÿ–ถ Printer Icon ๐Ÿ— Empty Pages ๐Ÿ—ค Three Rays Above ๐Ÿ–€ Telephone On Top of Modem ๐Ÿ–ˆ Black Pushpin ๐ŸŽ• Bouquet of Flowers ๐Ÿ–ต Screen ๐Ÿ—• Minimize ๐ŸŽœ Beamed Ascending Musical Notes ๐ŸŽ” Heart with Tip On the Left ๐Ÿ•… Symbol for Marks Chapter ๐Ÿ–‰ Lower Left Pencil ๐Ÿ•ˆ Celtic Cross ๐Ÿ—ถ Ballot Bold Script X ๐Ÿ—› Decrease Font Size Symbol ๐Ÿ–ง Three Networked Computers ๐Ÿ–ฝ Frame with Tiles ๐Ÿ–ข Black Up Pointing Backhand Index ๐Ÿ›ฒ Diesel Locomotive ๐Ÿ—ˆ Note ๐Ÿ–’ Reversed Thumbs Up Sign ๐Ÿ›ฆ Up-Pointing Military Airplane ๐Ÿ–ธ Optical Disc Icon ๐ŸŽ˜ Musical Keyboard with Jacks ๐Ÿ•ฟ Black Touchtone Telephone ๐Ÿ—ท Ballot Box with Bold Script X ๐Ÿ›ˆ Circled Information Source ๐Ÿ–„ Envelope with Lightning ๐Ÿ–… Flying Envelope ๐Ÿฒ Black Pennant ๐Ÿ–Ž Left Writing Hand ๐Ÿ— Pages ๐Ÿ›‰ Boys Symbol ๐ŸŽ Beamed Descending Musical Notes ๐Ÿ–† Pen Over Stamped Envelope ๐Ÿ–  Sideways Black Up Pointing Index ๐Ÿ—น Ballot Box with Bold Check ๐Ÿ—ข Lips ๐Ÿ•ญ Ringing Bell ๐Ÿ–ด Hard Disk ๐Ÿ—˜ Clockwise Right and Left Semicircle Arrows ๐Ÿ–œ Black Left Pointing Backhand Index ๐Ÿ•พ White Touchtone Telephone ๐Ÿ—‹ Empty Document ๐Ÿ–ก Sideways Black Down Pointing Index ๐Ÿ•ผ Telephone Receiver with Page ๐Ÿ–ž Sideways White Up Pointing Index ๐Ÿ•ฎ Book ๐Ÿ•ฑ Black Skull and Crossbones ๐Ÿ–ฟ Black Folder ๐Ÿ—ฑ Lightning Mood Bubble ๐Ÿ—š Increase Font Size Symbol ๐Ÿ—ต Ballot Box with Script X ๐Ÿ›ฑ Oncoming Fire Engine ๐Ÿ–™ Sideways White Right Pointing Index ๐Ÿ›จ Up-Pointing Small Airplane ๐Ÿ– Clamshell Mobile Phone ๐Ÿ”พ Lower Right Shadowed White Circle ๐Ÿ–˜ Sideways White Left Pointing Index ๐Ÿ•ฉ Right Speaker with One Sound Wave ๐Ÿ–ฌ Soft Shell Floppy Disk ๐Ÿ–ซ White Hard Shell Floppy Disk ๐Ÿ–ฉ Pocket Calculator ๐Ÿ–ณ Old Personal Computer ๐Ÿ—… Empty Note ๐Ÿ–‚ Back of Envelope ๐Ÿ–‘ Reversed Raised Hand with Fingers Splayed ๐Ÿ•„ Notched Right Semicircle with Three Dots ๐Ÿ—ธ Light Check Mark ๐Ÿ—ง Three Rays Right ๐Ÿ›ช Northeast-Pointing Airplane ๐ŸŒฃ White Sun ๐Ÿ–น Document with Text ๐Ÿ—ฆ Three Rays Left ๐Ÿ–ฆ Keyboard and Mouse """ UNICODE6_1 = u""" ๐Ÿ˜€ Grinning Face ๐Ÿ˜— Kissing Face ๐Ÿ˜™ Kissing Face With Smiling Eyes ๐Ÿ˜› Face With Tongue ๐Ÿ˜‘ Expressionless Face ๐Ÿ˜ฌ Grimacing Face ๐Ÿ˜ด Sleeping Face ๐Ÿ˜• Confused Face ๐Ÿ˜Ÿ Worried Face ๐Ÿ˜ฎ Face With Open Mouth ๐Ÿ˜ฏ Hushed Face ๐Ÿ˜ฆ Frowning Face With Open Mouth ๐Ÿ˜ง Anguished Face ๐Ÿ•ƒ Notched Left Semicircle with Three Dots ๐Ÿ•€ Circled Cross Pommee ๐Ÿ• Cross Pommee with Half-Circle Below ๐Ÿ•‚ Cross Pommee """ UNICODE6 = u""" ๐Ÿ˜ƒ Grinning Face With Big Eyes ๐Ÿ˜„ Grinning Face With Smiling Eyes ๐Ÿ˜ Beaming Face With Smiling Eyes ๐Ÿ˜† Grinning Squinting Face ๐Ÿ˜… Grinning Face With Sweat ๐Ÿ˜‚ Face With Tears of Joy ๐Ÿ˜‰ Winking Face ๐Ÿ˜Š Smiling Face With Smiling Eyes ๐Ÿ˜‡ Smiling Face With Halo ๐Ÿ˜ Smiling Face With Heart-Eyes ๐Ÿ˜˜ Face Blowing a Kiss ๐Ÿ˜š Kissing Face With Closed Eyes ๐Ÿ˜‹ Face Savoring Food ๐Ÿ˜œ Winking Face With Tongue ๐Ÿ˜ Squinting Face With Tongue ๐Ÿ˜ Neutral Face ๐Ÿ˜ถ Face Without Mouth ๐Ÿ˜ Smirking Face ๐Ÿ˜’ Unamused Face ๐Ÿ˜Œ Relieved Face ๐Ÿ˜” Pensive Face ๐Ÿ˜ช Sleepy Face ๐Ÿ˜ท Face With Medical Mask ๐Ÿ˜ต Dizzy Face ๐Ÿ˜Ž Smiling Face With Sunglasses ๐Ÿ˜ฒ Astonished Face ๐Ÿ˜ณ Flushed Face ๐Ÿ˜จ Fearful Face ๐Ÿ˜ฐ Anxious Face With Sweat ๐Ÿ˜ฅ Sad but Relieved Face ๐Ÿ˜ข Crying Face ๐Ÿ˜ญ Loudly Crying Face ๐Ÿ˜ฑ Face Screaming in Fear ๐Ÿ˜– Confounded Face ๐Ÿ˜ฃ Persevering Face ๐Ÿ˜ž Disappointed Face ๐Ÿ˜“ Downcast Face With Sweat ๐Ÿ˜ฉ Weary Face ๐Ÿ˜ซ Tired Face ๐Ÿ˜ค Face With Steam From Nose ๐Ÿ˜ก Pouting Face ๐Ÿ˜  Angry Face ๐Ÿ˜ˆ Smiling Face With Horns ๐Ÿ‘ฟ Angry Face With Horns ๐Ÿ’€ Skull ๐Ÿ’ฉ Pile of Poo ๐Ÿ‘น Ogre ๐Ÿ‘บ Goblin ๐Ÿ‘ป Ghost ๐Ÿ‘ฝ Alien ๐Ÿ‘พ Alien Monster ๐Ÿ˜บ Grinning Cat ๐Ÿ˜ธ Grinning Cat With Smiling Eyes ๐Ÿ˜น Cat With Tears of Joy ๐Ÿ˜ป Smiling Cat With Heart-Eyes ๐Ÿ˜ผ Cat With Wry Smile ๐Ÿ˜ฝ Kissing Cat ๐Ÿ™€ Weary Cat ๐Ÿ˜ฟ Crying Cat ๐Ÿ˜พ Pouting Cat ๐Ÿ™ˆ See-No-Evil Monkey ๐Ÿ™‰ Hear-No-Evil Monkey ๐Ÿ™Š Speak-No-Evil Monkey ๐Ÿ’‹ Kiss Mark ๐Ÿ’Œ Love Letter ๐Ÿ’˜ Heart With Arrow ๐Ÿ’ Heart With Ribbon ๐Ÿ’– Sparkling Heart ๐Ÿ’— Growing Heart ๐Ÿ’“ Beating Heart ๐Ÿ’ž Revolving Hearts ๐Ÿ’• Two Hearts ๐Ÿ’Ÿ Heart Decoration ๐Ÿ’” Broken Heart ๐Ÿ’› Yellow Heart ๐Ÿ’š Green Heart ๐Ÿ’™ Blue Heart ๐Ÿ’œ Purple Heart ๐Ÿ’ฏ Hundred Points ๐Ÿ’ข Anger Symbol ๐Ÿ’ฅ Collision ๐Ÿ’ซ Dizzy ๐Ÿ’ฆ Sweat Droplets ๐Ÿ’จ Dashing Away ๐Ÿ’ฃ Bomb ๐Ÿ’ฌ Speech Balloon ๐Ÿ’ญ Thought Balloon ๐Ÿ’ค Zzz ๐Ÿ‘‹ Waving Hand โœ‹ Raised Hand ๐Ÿ‘Œ OK Hand ๐Ÿ‘ˆ Backhand Index Pointing Left ๐Ÿ‘‰ Backhand Index Pointing Right ๐Ÿ‘† Backhand Index Pointing Up ๐Ÿ‘‡ Backhand Index Pointing Down ๐Ÿ‘ Thumbs Up ๐Ÿ‘Ž Thumbs Down โœŠ Raised Fist ๐Ÿ‘Š Oncoming Fist ๐Ÿ‘ Clapping Hands ๐Ÿ™Œ Raising Hands ๐Ÿ‘ Open Hands ๐Ÿ™ Folded Hands ๐Ÿ’… Nail Polish ๐Ÿ’ช Flexed Biceps ๐Ÿ‘‚ Ear ๐Ÿ‘ƒ Nose ๐Ÿ‘€ Eyes ๐Ÿ‘… Tongue ๐Ÿ‘„ Mouth ๐Ÿ‘ถ Baby ๐Ÿ‘ฆ Boy ๐Ÿ‘ง Girl ๐Ÿ‘ฑ Person: Blond Hair ๐Ÿ‘จ Man ๐Ÿ‘ฉ Woman ๐Ÿ‘ด Old Man ๐Ÿ‘ต Old Woman ๐Ÿ™ Person Frowning ๐Ÿ™Ž Person Pouting ๐Ÿ™… Person Gesturing No ๐Ÿ™† Person Gesturing OK ๐Ÿ’ Person Tipping Hand ๐Ÿ™‹ Person Raising Hand ๐Ÿ™‡ Person Bowing ๐Ÿ‘ฎ Police Officer ๐Ÿ’‚ Guard ๐Ÿ‘ท Construction Worker ๐Ÿ‘ธ Princess ๐Ÿ‘ณ Person Wearing Turban ๐Ÿ‘ฒ Man With Skullcap ๐Ÿ‘ฐ Bride With Veil ๐Ÿ‘ผ Baby Angel ๐ŸŽ… Santa Claus ๐Ÿ’† Person Getting Massage ๐Ÿ’‡ Person Getting Haircut ๐Ÿšถ Person Walking ๐Ÿƒ Person Running ๐Ÿ’ƒ Woman Dancing ๐Ÿ‘ฏ People With Bunny Ears ๐Ÿ‡ Horse Racing ๐Ÿ‚ Snowboarder ๐Ÿ„ Person Surfing ๐Ÿšฃ Person Rowing Boat ๐ŸŠ Person Swimming ๐Ÿšด Person Biking ๐Ÿšต Person Mountain Biking ๐Ÿ›€ Person Taking Bath ๐Ÿ‘ญ Women Holding Hands ๐Ÿ‘ซ Woman and Man Holding Hands ๐Ÿ‘ฌ Men Holding Hands ๐Ÿ’ Kiss ๐Ÿ’‘ Couple With Heart ๐Ÿ‘ช Family ๐Ÿ‘ค Bust in Silhouette ๐Ÿ‘ฅ Busts in Silhouette ๐Ÿ‘ฃ Footprints ๐Ÿต Monkey Face ๐Ÿ’ Monkey ๐Ÿถ Dog Face ๐Ÿ• Dog ๐Ÿฉ Poodle ๐Ÿบ Wolf ๐Ÿฑ Cat Face ๐Ÿˆ Cat ๐Ÿฏ Tiger Face ๐Ÿ… Tiger ๐Ÿ† Leopard ๐Ÿด Horse Face ๐ŸŽ Horse ๐Ÿฎ Cow Face ๐Ÿ‚ Ox ๐Ÿƒ Water Buffalo ๐Ÿ„ Cow ๐Ÿท Pig Face ๐Ÿ– Pig ๐Ÿ— Boar ๐Ÿฝ Pig Nose ๐Ÿ Ram ๐Ÿ‘ Ewe ๐Ÿ Goat ๐Ÿช Camel ๐Ÿซ Two-Hump Camel ๐Ÿ˜ Elephant ๐Ÿญ Mouse Face ๐Ÿ Mouse ๐Ÿ€ Rat ๐Ÿน Hamster ๐Ÿฐ Rabbit Face ๐Ÿ‡ Rabbit ๐Ÿป Bear ๐Ÿจ Koala ๐Ÿผ Panda ๐Ÿพ Paw Prints ๐Ÿ” Chicken ๐Ÿ“ Rooster ๐Ÿฃ Hatching Chick ๐Ÿค Baby Chick ๐Ÿฅ Front-Facing Baby Chick ๐Ÿฆ Bird ๐Ÿง Penguin ๐Ÿธ Frog ๐ŸŠ Crocodile ๐Ÿข Turtle ๐Ÿ Snake ๐Ÿฒ Dragon Face ๐Ÿ‰ Dragon ๐Ÿณ Spouting Whale ๐Ÿ‹ Whale ๐Ÿฌ Dolphin ๐ŸŸ Fish ๐Ÿ  Tropical Fish ๐Ÿก Blowfish ๐Ÿ™ Octopus ๐Ÿš Spiral Shell ๐ŸŒ Snail ๐Ÿ› Bug ๐Ÿœ Ant ๐Ÿ Honeybee ๐Ÿž Lady Beetle ๐Ÿ’ Bouquet ๐ŸŒธ Cherry Blossom ๐Ÿ’ฎ White Flower ๐ŸŒน Rose ๐ŸŒบ Hibiscus ๐ŸŒป Sunflower ๐ŸŒผ Blossom ๐ŸŒท Tulip ๐ŸŒฑ Seedling ๐ŸŒฒ Evergreen Tree ๐ŸŒณ Deciduous Tree ๐ŸŒด Palm Tree ๐ŸŒต Cactus ๐ŸŒพ Sheaf of Rice ๐ŸŒฟ Herb ๐Ÿ€ Four Leaf Clover ๐Ÿ Maple Leaf ๐Ÿ‚ Fallen Leaf ๐Ÿƒ Leaf Fluttering in Wind ๐Ÿ‡ Grapes ๐Ÿˆ Melon ๐Ÿ‰ Watermelon ๐ŸŠ Tangerine ๐Ÿ‹ Lemon ๐ŸŒ Banana ๐Ÿ Pineapple ๐ŸŽ Red Apple ๐Ÿ Green Apple ๐Ÿ Pear ๐Ÿ‘ Peach ๐Ÿ’ Cherries ๐Ÿ“ Strawberry ๐Ÿ… Tomato ๐Ÿ† Eggplant ๐ŸŒฝ Ear of Corn ๐Ÿ„ Mushroom ๐ŸŒฐ Chestnut ๐Ÿž Bread ๐Ÿ– Meat on Bone ๐Ÿ— Poultry Leg ๐Ÿ” Hamburger ๐ŸŸ French Fries ๐Ÿ• Pizza ๐Ÿณ Cooking ๐Ÿฒ Pot of Food ๐Ÿฑ Bento Box ๐Ÿ˜ Rice Cracker ๐Ÿ™ Rice Ball ๐Ÿš Cooked Rice ๐Ÿ› Curry Rice ๐Ÿœ Steaming Bowl ๐Ÿ Spaghetti ๐Ÿ  Roasted Sweet Potato ๐Ÿข Oden ๐Ÿฃ Sushi ๐Ÿค Fried Shrimp ๐Ÿฅ Fish Cake With Swirl ๐Ÿก Dango ๐Ÿฆ Soft Ice Cream ๐Ÿง Shaved Ice ๐Ÿจ Ice Cream ๐Ÿฉ Doughnut ๐Ÿช Cookie ๐ŸŽ‚ Birthday Cake ๐Ÿฐ Shortcake ๐Ÿซ Chocolate Bar ๐Ÿฌ Candy ๐Ÿญ Lollipop ๐Ÿฎ Custard ๐Ÿฏ Honey Pot ๐Ÿผ Baby Bottle ๐Ÿต Teacup Without Handle ๐Ÿถ Sake ๐Ÿท Wine Glass ๐Ÿธ Cocktail Glass ๐Ÿน Tropical Drink ๐Ÿบ Beer Mug ๐Ÿป Clinking Beer Mugs ๐Ÿด Fork and Knife ๐Ÿ”ช Kitchen Knife ๐ŸŒ Globe Showing Europe-Africa ๐ŸŒŽ Globe Showing Americas ๐ŸŒ Globe Showing Asia-Australia ๐ŸŒ Globe With Meridians ๐Ÿ—พ Map of Japan ๐ŸŒ‹ Volcano ๐Ÿ—ป Mount Fuji ๐Ÿ  House ๐Ÿก House With Garden ๐Ÿข Office Building ๐Ÿฃ Japanese Post Office ๐Ÿค Post Office ๐Ÿฅ Hospital ๐Ÿฆ Bank ๐Ÿจ Hotel ๐Ÿฉ Love Hotel ๐Ÿช Convenience Store ๐Ÿซ School ๐Ÿฌ Department Store ๐Ÿญ Factory ๐Ÿฏ Japanese Castle ๐Ÿฐ Castle ๐Ÿ’’ Wedding ๐Ÿ—ผ Tokyo Tower ๐Ÿ—ฝ Statue of Liberty ๐ŸŒ Foggy ๐ŸŒƒ Night With Stars ๐ŸŒ„ Sunrise Over Mountains ๐ŸŒ… Sunrise ๐ŸŒ† Cityscape at Dusk ๐ŸŒ‡ Sunset ๐ŸŒ‰ Bridge at Night ๐ŸŽ  Carousel Horse ๐ŸŽก Ferris Wheel ๐ŸŽข Roller Coaster ๐Ÿ’ˆ Barber Pole ๐ŸŽช Circus Tent ๐Ÿš‚ Locomotive ๐Ÿšƒ Railway Car ๐Ÿš„ High-Speed Train ๐Ÿš… Bullet Train ๐Ÿš† Train ๐Ÿš‡ Metro ๐Ÿšˆ Light Rail ๐Ÿš‰ Station ๐ŸšŠ Tram ๐Ÿš Monorail ๐Ÿšž Mountain Railway ๐Ÿš‹ Tram Car ๐ŸšŒ Bus ๐Ÿš Oncoming Bus ๐ŸšŽ Trolleybus ๐Ÿš Minibus ๐Ÿš‘ Ambulance ๐Ÿš’ Fire Engine ๐Ÿš“ Police Car ๐Ÿš” Oncoming Police Car ๐Ÿš• Taxi ๐Ÿš– Oncoming Taxi ๐Ÿš— Automobile ๐Ÿš˜ Oncoming Automobile ๐Ÿš™ Sport Utility Vehicle ๐Ÿšš Delivery Truck ๐Ÿš› Articulated Lorry ๐Ÿšœ Tractor ๐Ÿšฒ Bicycle ๐Ÿš Bus Stop ๐Ÿšจ Police Car Light ๐Ÿšฅ Horizontal Traffic Light ๐Ÿšฆ Vertical Traffic Light ๐Ÿšง Construction ๐Ÿšค Speedboat ๐Ÿšข Ship ๐Ÿ’บ Seat ๐Ÿš Helicopter ๐ŸšŸ Suspension Railway ๐Ÿš  Mountain Cableway ๐Ÿšก Aerial Tramway ๐Ÿš€ Rocket โณ Hourglass Not Done โฐ Alarm Clock โฑ Stopwatch โฒ Timer Clock ๐Ÿ•› Twelve Oโ€™Clock ๐Ÿ•ง Twelve-Thirty ๐Ÿ• One Oโ€™Clock ๐Ÿ•œ One-Thirty ๐Ÿ•‘ Two Oโ€™Clock ๐Ÿ• Two-Thirty ๐Ÿ•’ Three Oโ€™Clock ๐Ÿ•ž Three-Thirty ๐Ÿ•“ Four Oโ€™Clock ๐Ÿ•Ÿ Four-Thirty ๐Ÿ•” Five Oโ€™Clock ๐Ÿ•  Five-Thirty ๐Ÿ•• Six Oโ€™Clock ๐Ÿ•ก Six-Thirty ๐Ÿ•– Seven Oโ€™Clock ๐Ÿ•ข Seven-Thirty ๐Ÿ•— Eight Oโ€™Clock ๐Ÿ•ฃ Eight-Thirty ๐Ÿ•˜ Nine Oโ€™Clock ๐Ÿ•ค Nine-Thirty ๐Ÿ•™ Ten Oโ€™Clock ๐Ÿ•ฅ Ten-Thirty ๐Ÿ•š Eleven Oโ€™Clock ๐Ÿ•ฆ Eleven-Thirty ๐ŸŒ‘ New Moon ๐ŸŒ’ Waxing Crescent Moon ๐ŸŒ“ First Quarter Moon ๐ŸŒ” Waxing Gibbous Moon ๐ŸŒ• Full Moon ๐ŸŒ– Waning Gibbous Moon ๐ŸŒ— Last Quarter Moon ๐ŸŒ˜ Waning Crescent Moon ๐ŸŒ™ Crescent Moon ๐ŸŒš New Moon Face ๐ŸŒ› First Quarter Moon Face ๐ŸŒœ Last Quarter Moon Face ๐ŸŒ Full Moon Face ๐ŸŒž Sun With Face ๐ŸŒŸ Glowing Star ๐ŸŒ  Shooting Star ๐ŸŒŒ Milky Way ๐ŸŒ€ Cyclone ๐ŸŒˆ Rainbow ๐ŸŒ‚ Closed Umbrella ๐Ÿ”ฅ Fire ๐Ÿ’ง Droplet ๐ŸŒŠ Water Wave ๐ŸŽƒ Jack-O-Lantern ๐ŸŽ„ Christmas Tree ๐ŸŽ† Fireworks ๐ŸŽ‡ Sparkler โœจ Sparkles ๐ŸŽˆ Balloon ๐ŸŽ‰ Party Popper ๐ŸŽŠ Confetti Ball ๐ŸŽ‹ Tanabata Tree ๐ŸŽ Pine Decoration ๐ŸŽŽ Japanese Dolls ๐ŸŽ Carp Streamer ๐ŸŽ Wind Chime ๐ŸŽ‘ Moon Viewing Ceremony ๐ŸŽ€ Ribbon ๐ŸŽ Wrapped Gift ๐ŸŽซ Ticket ๐Ÿ† Trophy ๐Ÿ€ Basketball ๐Ÿˆ American Football ๐Ÿ‰ Rugby Football ๐ŸŽพ Tennis ๐ŸŽณ Bowling ๐ŸŽฃ Fishing Pole ๐ŸŽฝ Running Shirt ๐ŸŽฟ Skis ๐ŸŽฏ Direct Hit ๐ŸŽฑ Pool 8 Ball ๐Ÿ”ฎ Crystal Ball ๐ŸŽฎ Video Game ๐ŸŽฐ Slot Machine ๐ŸŽฒ Game Die ๐Ÿƒ Joker ๐ŸŽด Flower Playing Cards ๐ŸŽญ Performing Arts ๐ŸŽจ Artist Palette ๐Ÿ‘“ Glasses ๐Ÿ‘” Necktie ๐Ÿ‘• T-Shirt ๐Ÿ‘– Jeans ๐Ÿ‘— Dress ๐Ÿ‘˜ Kimono ๐Ÿ‘™ Bikini ๐Ÿ‘š Womanโ€™s Clothes ๐Ÿ‘› Purse ๐Ÿ‘œ Handbag ๐Ÿ‘ Clutch Bag ๐ŸŽ’ Backpack ๐Ÿ‘ž Manโ€™s Shoe ๐Ÿ‘Ÿ Running Shoe ๐Ÿ‘  High-Heeled Shoe ๐Ÿ‘ก Womanโ€™s Sandal ๐Ÿ‘ข Womanโ€™s Boot ๐Ÿ‘‘ Crown ๐Ÿ‘’ Womanโ€™s Hat ๐ŸŽฉ Top Hat ๐ŸŽ“ Graduation Cap ๐Ÿ’„ Lipstick ๐Ÿ’ Ring ๐Ÿ’Ž Gem Stone ๐Ÿ”‡ Muted Speaker ๐Ÿ”ˆ Speaker Low Volume ๐Ÿ”‰ Speaker Medium Volume ๐Ÿ”Š Speaker High Volume ๐Ÿ“ข Loudspeaker ๐Ÿ“ฃ Megaphone ๐Ÿ“ฏ Postal Horn ๐Ÿ”” Bell ๐Ÿ”• Bell With Slash ๐ŸŽผ Musical Score ๐ŸŽต Musical Note ๐ŸŽถ Musical Notes ๐ŸŽค Microphone ๐ŸŽง Headphone ๐Ÿ“ป Radio ๐ŸŽท Saxophone ๐ŸŽธ Guitar ๐ŸŽน Musical Keyboard ๐ŸŽบ Trumpet ๐ŸŽป Violin ๐Ÿ“ฑ Mobile Phone ๐Ÿ“ฒ Mobile Phone With Arrow ๐Ÿ“ž Telephone Receiver ๐Ÿ“Ÿ Pager ๐Ÿ“  Fax Machine ๐Ÿ”‹ Battery ๐Ÿ”Œ Electric Plug ๐Ÿ’ป Laptop ๐Ÿ’ฝ Computer Disk ๐Ÿ’พ Floppy Disk ๐Ÿ’ฟ Optical Disk ๐Ÿ“€ DVD ๐ŸŽฅ Movie Camera ๐ŸŽฌ Clapper Board ๐Ÿ“บ Television ๐Ÿ“ท Camera ๐Ÿ“น Video Camera ๐Ÿ“ผ Videocassette ๐Ÿ” Magnifying Glass Tilted Left ๐Ÿ”Ž Magnifying Glass Tilted Right ๐Ÿ’ก Light Bulb ๐Ÿ”ฆ Flashlight ๐Ÿฎ Red Paper Lantern ๐Ÿ“” Notebook With Decorative Cover ๐Ÿ“• Closed Book ๐Ÿ“– Open Book ๐Ÿ“— Green Book ๐Ÿ“˜ Blue Book ๐Ÿ“™ Orange Book ๐Ÿ“š Books ๐Ÿ““ Notebook ๐Ÿ“’ Ledger ๐Ÿ“ƒ Page With Curl ๐Ÿ“œ Scroll ๐Ÿ“„ Page Facing Up ๐Ÿ“ฐ Newspaper ๐Ÿ“‘ Bookmark Tabs ๐Ÿ”– Bookmark ๐Ÿ’ฐ Money Bag ๐Ÿ’ด Yen Banknote ๐Ÿ’ต Dollar Banknote ๐Ÿ’ถ Euro Banknote ๐Ÿ’ท Pound Banknote ๐Ÿ’ธ Money With Wings ๐Ÿ’ณ Credit Card ๐Ÿ’น Chart Increasing With Yen ๐Ÿ’ฑ Currency Exchange ๐Ÿ’ฒ Heavy Dollar Sign ๐Ÿ“ง E-Mail ๐Ÿ“จ Incoming Envelope ๐Ÿ“ฉ Envelope With Arrow ๐Ÿ“ค Outbox Tray ๐Ÿ“ฅ Inbox Tray ๐Ÿ“ฆ Package ๐Ÿ“ซ Closed Mailbox With Raised Flag ๐Ÿ“ช Closed Mailbox With Lowered Flag ๐Ÿ“ฌ Open Mailbox With Raised Flag ๐Ÿ“ญ Open Mailbox With Lowered Flag ๐Ÿ“ฎ Postbox ๐Ÿ“ Memo ๐Ÿ’ผ Briefcase ๐Ÿ“ File Folder ๐Ÿ“‚ Open File Folder ๐Ÿ“… Calendar ๐Ÿ“† Tear-Off Calendar ๐Ÿ“‡ Card Index ๐Ÿ“ˆ Chart Increasing ๐Ÿ“‰ Chart Decreasing ๐Ÿ“Š Bar Chart ๐Ÿ“‹ Clipboard ๐Ÿ“Œ Pushpin ๐Ÿ“ Round Pushpin ๐Ÿ“Ž Paperclip ๐Ÿ“ Straight Ruler ๐Ÿ“ Triangular Ruler ๐Ÿ”’ Locked ๐Ÿ”“ Unlocked ๐Ÿ” Locked With Pen ๐Ÿ” Locked With Key ๐Ÿ”‘ Key ๐Ÿ”จ Hammer ๐Ÿ”ซ Pistol ๐Ÿ”ง Wrench ๐Ÿ”ฉ Nut and Bolt ๐Ÿ”— Link ๐Ÿ”ฌ Microscope ๐Ÿ”ญ Telescope ๐Ÿ“ก Satellite Antenna ๐Ÿ’‰ Syringe ๐Ÿ’Š Pill ๐Ÿšช Door ๐Ÿšฝ Toilet ๐Ÿšฟ Shower ๐Ÿ› Bathtub ๐Ÿšฌ Cigarette ๐Ÿ—ฟ Moai ๐Ÿง ATM Sign ๐Ÿšฎ Litter in Bin Sign ๐Ÿšฐ Potable Water ๐Ÿšน Menโ€™s Room ๐Ÿšบ Womenโ€™s Room ๐Ÿšป Restroom ๐Ÿšผ Baby Symbol ๐Ÿšพ Water Closet ๐Ÿ›‚ Passport Control ๐Ÿ›ƒ Customs ๐Ÿ›„ Baggage Claim ๐Ÿ›… Left Luggage ๐Ÿšธ Children Crossing ๐Ÿšซ Prohibited ๐Ÿšณ No Bicycles ๐Ÿšญ No Smoking ๐Ÿšฏ No Littering ๐Ÿšฑ Non-Potable Water ๐Ÿšท No Pedestrians ๐Ÿ“ต No Mobile Phones ๐Ÿ”ž No One Under Eighteen ๐Ÿ”ƒ Clockwise Vertical Arrows ๐Ÿ”„ Counterclockwise Arrows Button ๐Ÿ”™ Back Arrow ๐Ÿ”š End Arrow ๐Ÿ”› On! Arrow ๐Ÿ”œ Soon Arrow ๐Ÿ” Top Arrow ๐Ÿ”ฏ Dotted Six-Pointed Star โ›Ž Ophiuchus ๐Ÿ”€ Shuffle Tracks Button ๐Ÿ” Repeat Button ๐Ÿ”‚ Repeat Single Button โฉ Fast-Forward Button โญ Next Track Button โฏ Play or Pause Button โช Fast Reverse Button โฎ Last Track Button ๐Ÿ”ผ Upwards Button โซ Fast Up Button ๐Ÿ”ฝ Downwards Button โฌ Fast Down Button ๐ŸŽฆ Cinema ๐Ÿ”… Dim Button ๐Ÿ”† Bright Button ๐Ÿ“ถ Antenna Bars ๐Ÿ“ณ Vibration Mode ๐Ÿ“ด Mobile Phone Off ๐Ÿ”ฑ Trident Emblem ๐Ÿ“› Name Badge ๐Ÿ”ฐ Japanese Symbol for Beginner โœ… Check Mark Button โŒ Cross Mark โŽ Cross Mark Button โž• Plus Sign โž– Minus Sign โž— Division Sign โžฐ Curly Loop โžฟ Double Curly Loop โ“ Question Mark โ” White Question Mark โ• White Exclamation Mark ๐Ÿ”Ÿ Keycap: 10 ๐Ÿ”  Input Latin Uppercase ๐Ÿ”ก Input Latin Lowercase ๐Ÿ”ข Input Numbers ๐Ÿ”ฃ Input Symbols ๐Ÿ”ค Input Latin Letters ๐Ÿ…ฐ A Button (Blood Type) ๐Ÿ†Ž AB Button (Blood Type) ๐Ÿ…ฑ B Button (Blood Type) ๐Ÿ†‘ CL Button ๐Ÿ†’ Cool Button ๐Ÿ†“ Free Button ๐Ÿ†” ID Button ๐Ÿ†• New Button ๐Ÿ†– NG Button ๐Ÿ…พ O Button (Blood Type) ๐Ÿ†— OK Button ๐Ÿ†˜ SOS Button ๐Ÿ†™ Up! Button ๐Ÿ†š Vs Button ๐Ÿˆ Japanese โ€œHereโ€ Button ๐Ÿˆ‚ Japanese โ€œService Chargeโ€ Button ๐Ÿˆท Japanese โ€œMonthly Amountโ€ Button ๐Ÿˆถ Japanese โ€œNot Free of Chargeโ€ Button ๐Ÿ‰ Japanese โ€œBargainโ€ Button ๐Ÿˆน Japanese โ€œDiscountโ€ Button ๐Ÿˆฒ Japanese โ€œProhibitedโ€ Button ๐Ÿ‰‘ Japanese โ€œAcceptableโ€ Button ๐Ÿˆธ Japanese โ€œApplicationโ€ Button ๐Ÿˆด Japanese โ€œPassing Gradeโ€ Button ๐Ÿˆณ Japanese โ€œVacancyโ€ Button ๐Ÿˆบ Japanese โ€œOpen for Businessโ€ Button ๐Ÿˆต Japanese โ€œNo Vacancyโ€ Button ๐Ÿ”ด Red Circle ๐Ÿ”ต Blue Circle ๐Ÿ”ถ Large Orange Diamond ๐Ÿ”ท Large Blue Diamond ๐Ÿ”ธ Small Orange Diamond ๐Ÿ”น Small Blue Diamond ๐Ÿ”บ Red Triangle Pointed Up ๐Ÿ”ป Red Triangle Pointed Down ๐Ÿ’  Diamond With a Dot ๐Ÿ”˜ Radio Button ๐Ÿ”ณ White Square Button ๐Ÿ”ฒ Black Square Button ๐Ÿ Chequered Flag ๐Ÿšฉ Triangular Flag ๐ŸŽŒ Crossed Flags ๐Ÿ‡ฆ Regional Indicator Symbol Letter A ๐Ÿ‡ง Regional Indicator Symbol Letter B ๐Ÿ‡จ Regional Indicator Symbol Letter C ๐Ÿ‡ฉ Regional Indicator Symbol Letter D ๐Ÿ‡ช Regional Indicator Symbol Letter E ๐Ÿ‡ซ Regional Indicator Symbol Letter F ๐Ÿ‡ฌ Regional Indicator Symbol Letter G ๐Ÿ‡ญ Regional Indicator Symbol Letter H ๐Ÿ‡ฎ Regional Indicator Symbol Letter I ๐Ÿ‡ฏ Regional Indicator Symbol Letter J ๐Ÿ‡ฐ Regional Indicator Symbol Letter K ๐Ÿ‡ฑ Regional Indicator Symbol Letter L ๐Ÿ‡ฒ Regional Indicator Symbol Letter M ๐Ÿ‡ณ Regional Indicator Symbol Letter N ๐Ÿ‡ด Regional Indicator Symbol Letter O ๐Ÿ‡ต Regional Indicator Symbol Letter P ๐Ÿ‡ถ Regional Indicator Symbol Letter Q ๐Ÿ‡ท Regional Indicator Symbol Letter R ๐Ÿ‡ธ Regional Indicator Symbol Letter S ๐Ÿ‡น Regional Indicator Symbol Letter T ๐Ÿ‡บ Regional Indicator Symbol Letter U ๐Ÿ‡ป Regional Indicator Symbol Letter V ๐Ÿ‡ผ Regional Indicator Symbol Letter W ๐Ÿ‡ฝ Regional Indicator Symbol Letter X ๐Ÿ‡พ Regional Indicator Symbol Letter Y ๐Ÿ‡ฟ Regional Indicator Symbol Letter Z โ›ฅ Right-Handed Interlaced Pentagram โ›ง Inverted Pentagram โ›ฆ Left-Handed Interlaced Pentagram โ›ค Pentagram โ›ข Astronomical Symbol for Uranus """ UNICODE5_2 = u""" โ›ท Skier โ›น Person Bouncing Ball โ›ฐ Mountain โ›ช Church โ›ฉ Shinto Shrine โ›ฒ Fountain โ›บ Tent โ›ฝ Fuel Pump โ›ต Sailboat โ›ด Ferry โ›… Sun Behind Cloud โ›ˆ Cloud With Lightning and Rain โ›ฑ Umbrella on Ground โ›„ Snowman Without Snow โšฝ Soccer Ball โšพ Baseball โ›ณ Flag in Hole โ›ธ Ice Skate โ›‘ Rescue Workerโ€™s Helmet โ› Pick โ›“ Chains โ›” No Entry โญ• Hollow Red Circle โ— Exclamation Mark ๐Ÿ…ฟ P Button ๐Ÿˆฏ Japanese โ€œReservedโ€ Button ๐Ÿˆš Japanese โ€œFree of Chargeโ€ Button โ›ถ Square Four Corners โ›™ White Left Lane Merge โ›ž Falling Diagonal In White Circle In Black Square โ›Œ Crossing Lanes โ›š Drive Slow Sign โ›† Rain โšฟ Squared Key โ›ผ Headstone Graveyard Symbol โ›‡ Black Snowman โ›Š Turned Black Shogi Piece โ›˜ Black Left Lane Merge โ›ญ Gear Without Hub โ›– Black Two-Way Left Way Traffic โ›› Heavy White Down-Pointing Triangle โ›ก Restricted Left Entry-2 โ›’ Circled Crossing Lanes โ›‹ White Diamond In Square โšŸ Three Lines Converging Left โšž Three Lines Converging Right โ›‰ Turned White Shogi Piece โ›จ Black Cross On Shield โ›ซ Castle โ›ฌ Historic Site โ›• Alternate One-Way Left Way Traffic โ›ฎ Gear with Handles โ›ฟ White Flag with Horizontal Middle Black Stripe โ› Squared Saltire โ›พ Cup On Black Square โ› Disabled Car โ›ฏ Map Symbol for Lighthouse โ›Ÿ Black Truck โ› Car Sliding โ›  Restricted Left Entry-1 โ›— White Two-Way Left Way Traffic โ›ฃ Heavy Circle with Stroke and Two Dots Above โ›ป Japanese Bank Symbol โ›œ Left Closed Entry """ UNICODE5_1 = u""" โญ Star ๐Ÿ€„ Mahjong Red Dragon โฌ› Black Large Square โฌœ White Large Square ๐Ÿ€Œ Mahjong Tile Six of Characters โ› White Draughts King ๐Ÿ€› Mahjong Tile Three of Circles ๐Ÿ€‘ Mahjong Tile Two of Bamboos ๐Ÿ€ซ Mahjong Tile Back ๐Ÿ€• Mahjong Tile Six of Bamboos ๐Ÿ€˜ Mahjong Tile Nine of Bamboos โšผ Sesquiquadrate ๐Ÿ€… Mahjong Tile Green Dragon ๐Ÿ€“ Mahjong Tile Four of Bamboos โšด Pallas โšน Sextile โ›ƒ Black Draughts King โšณ Ceres โšต Juno ๐Ÿ€‡ Mahjong Tile One of Characters ๐Ÿ€  Mahjong Tile Eight of Circles ๐Ÿ€™ Mahjong Tile One of Circles ๐Ÿ€ƒ Mahjong Tile North Wind ๐Ÿ€— Mahjong Tile Eight of Bamboos ๐Ÿ€” Mahjong Tile Five of Bamboos ๐Ÿ€’ Mahjong Tile Three of Bamboos ๐Ÿ€ Mahjong Tile Nine of Characters ๐Ÿ€ค Mahjong Tile Bamboo ๐Ÿ€ฃ Mahjong Tile Orchid ๐Ÿ€ˆ Mahjong Tile Two of Characters ๐Ÿ€Ž Mahjong Tile Eight of Characters ๐Ÿ€ก Mahjong Tile Nine of Circles โšท Chiron ๐Ÿ€‰ Mahjong Tile Three of Characters ๐Ÿ€Š Mahjong Tile Four of Characters โš Outlined White Star ๐Ÿ€‚ Mahjong Tile West Wind ๐Ÿ€จ Mahjong Tile Autumn โšบ Semisextile ๐Ÿ€ Mahjong Tile South Wind ๐Ÿ€‹ Mahjong Tile Five of Characters โšถ Vesta ๐Ÿ€œ Mahjong Tile Four of Circles ๐Ÿ€ Mahjong Tile One of Bamboos ๐Ÿ€ฆ Mahjong Tile Spring ๐Ÿ€Ÿ Mahjong Tile Seven of Circles ๐Ÿ€š Mahjong Tile Two of Circles ๐Ÿ€ฉ Mahjong Tile Winter ๐Ÿ€ฅ Mahjong Tile Chrysanthemum ๐Ÿ€† Mahjong Tile White Dragon ๐Ÿ€ Mahjong Tile Seven of Characters ๐Ÿ€ข Mahjong Tile Plum ๐Ÿ€ง Mahjong Tile Summer โ›‚ Black Draughts Man โšป Quincunx โšธ Black Moon Lilith โ›€ White Draughts Man ๐Ÿ€ช Mahjong Tile Joker ๐Ÿ€€ Mahjong Tile East Wind ฿ท NKo Symbol Gbakurunen ๐Ÿ€– Mahjong Tile Seven of Bamboos ๐Ÿ€ž Mahjong Tile Six of Circles ๐Ÿ€ Mahjong Tile Five of Circles """ UNICODE5 = u""" โšฒ Neuter """ UNICODE4_1 = u""" โ˜˜ Shamrock โš“ Anchor โš’ Hammer and Pick โš” Crossed Swords โš™ Gear โš– Balance Scale โš— Alembic โšฐ Coffin โšฑ Funeral Urn โ™ฟ Wheelchair Symbol โš› Atom Symbol โšง๏ธ Transgender Symbol โš• Medical Symbol โ™พ Infinity โšœ Fleur-de-lis โšซ Black Circle โšช White Circle โšฃ Doubled Male Sign โšฌ Medium Small White Circle โšฎ Divorce Symbol โšฉ Horizontal Male with Stroke Sign โš˜ Flower โšข Doubled Female Sign โšฏ Unmarried Partnership Symbol โšค Interlocked Female and Male Sign โšญ Marriage Symbol โšฆ Male with Stroke Sign โšš Staff of Hermes โšฅ Male and Female Sign โšจ Vertical Male with Stroke Sign """ UNICODE4 = u""" โ˜• Hot Beverage โ˜” Umbrella With Rain Drops โšก High Voltage โš  Warning โฌ† Up Arrow โฌ‡ Down Arrow โฌ… Left Arrow โ Eject Button โš Digram for Greater Yin โš White Flag โšŠ Monogram for Yang โšŽ Digram for Lesser Yang โš‹ Monogram for Yin โš‘ Black Flag โš Digram for Lesser Yin โšŒ Digram for Greater Yang """ UNICODE3_2 = u""" โคด Right Arrow Curving Up โคต Right Arrow Curving Down โ™ป Recycling Symbol ใ€ฝ Part Alternation Mark โ—ผ Black Medium Square โ—ป White Medium Square โ—พ Black Medium-Small Square โ—ฝ White Medium-Small Square โš‚ Die Face-3 โ™ด Recycling Symbol for Type-2 Plastics โ™ท Recycling Symbol for Type-5 Plastics โš€ Die Face-1 โ™น Recycling Symbol for Type-7 Plastics โš… Die Face-6 โ™ฒ Universal Recycling Symbol โ™ต Recycling Symbol for Type-3 Plastics โš‡ White Circle with Two Dots โ™ธ Recycling Symbol for Type-6 Plastics ๏ธ Variation Selector-16 โš‰ Black Circle with Two White Dots โš† White Circle with Dot Right โ™ณ Recycling Symbol for Type-1 Plastics โ™บ Recycling Symbol for Generic Materials โ™ฝ Partially-Recycled Paper Symbol โšˆ Black Circle with White Dot Right โšƒ Die Face-4 โ™ถ Recycling Symbol for Type-4 Plastics โ˜– White Shogi Piece โš Die Face-2 โš„ Die Face-5 โ™ผ Recycled Paper Symbol โ˜— Black Shogi Piece """ UNICODE3 = u""" #๏ธโƒฃ Keycap Number Sign *๏ธโƒฃ Keycap Asterisk 0๏ธโƒฃ Keycap Digit Zero 1๏ธโƒฃ Keycap Digit One 2๏ธโƒฃ Keycap Digit Two 3๏ธโƒฃ Keycap Digit Three 4๏ธโƒฃ Keycap Digit Four 5๏ธโƒฃ Keycap Digit Five 6๏ธโƒฃ Keycap Digit Six 7๏ธโƒฃ Keycap Digit Seven 8๏ธโƒฃ Keycap Digit Eight 9๏ธโƒฃ Keycap Digit Nine โ˜™ Reversed Rotated Floral Heart Bullet โ™ฐ West Syriac Cross โ™ฑ East Syriac Cross """ UNICODE1 = u""" โ˜บ Smiling Face โ˜น Frowning Face โ˜  Skull and Crossbones โฃ Heart Exclamation โค Red Heart โœŒ Victory Hand โ˜ Index Pointing Up โœ Writing Hand โ™จ Hot Springs โœˆ Airplane โŒ› Hourglass Done โŒš Watch โ˜€ Sun โ˜ Cloud โ˜‚ Umbrella โ„ Snowflake โ˜ƒ Snowman โ˜„ Comet โ™  Spade Suit โ™ฅ Heart Suit โ™ฆ Diamond Suit โ™ฃ Club Suit โ™Ÿ Chess Pawn โ˜Ž Telephone โŒจ Keyboard โœ‰ Envelope โœ Pencil โœ’ Black Nib โœ‚ Scissors โ˜ข Radioactive โ˜ฃ Biohazard โ†— Up-Right Arrow โžก Right Arrow โ†˜ Down-Right Arrow โ†™ Down-Left Arrow โ†– Up-Left Arrow โ†• Up-Down Arrow โ†” Left-Right Arrow โ†ฉ Right Arrow Curving Left โ†ช Left Arrow Curving Right โœก Star of David โ˜ธ Wheel of Dharma โ˜ฏ Yin Yang โœ Latin Cross โ˜ฆ Orthodox Cross โ˜ช Star and Crescent โ˜ฎ Peace Symbol โ™ˆ Aries โ™‰ Taurus โ™Š Gemini โ™‹ Cancer โ™Œ Leo โ™ Virgo โ™Ž Libra โ™ Scorpio โ™ Sagittarius โ™‘ Capricorn โ™’ Aquarius โ™“ Pisces โ–ถ Play Button โ—€ Reverse Button โ™€ Female Sign โ™‚ Male Sign โ˜‘ Check Box With Check โœ” Check Mark โœ– Multiplication Sign โœณ Eight-Spoked Asterisk โœด Eight-Pointed Star โ‡ Sparkle โ€ผ Double Exclamation Mark ใ€ฐ Wavy Dash ยฉ Copyright ยฎ Registered โ„ข Trade Mark โ“‚ Circled M ใŠ— Japanese โ€œCongratulationsโ€ Button ใŠ™ Japanese โ€œSecretโ€ Button โ–ช Black Small Square โ–ซ White Small Square โ˜“ Saltire 4 Digit Four โ™ค White Spade Suit โฅ Rotated Heavy Black Heart Bullet 9 Digit Nine 8 Digit Eight โ˜ถ Trigram for Mountain โ˜š Black Left Pointing Index โ˜Š Ascending Node โ˜ Opposition โ˜‹ Descending Node 2 Digit Two 5 Digit Five โ˜ง Chi Rho โ˜ White Telephone โ˜‡ Lightning โ™‡ Pluto โ˜ฒ Trigram for Fire โ™† Neptune โ™… Uranus โ˜ˆ Thunderstorm โ˜ก Caution Sign โ™— White Chess Bishop โ™š Black Chess King โ™ฉ Quarter Note 6 Digit Six โ™• White Chess Queen โ˜ฑ Trigram for Lake โ˜ณ Trigram for Thunder โ˜Ÿ White Down Pointing Index โ™ฏ Music Sharp Sign โ˜ฉ Cross of Jerusalem โ™ฌ Beamed Sixteenth Notes โ™ Earth โ˜ด Trigram for Wind โ˜ผ White Sun with Rays โ™ง White Club Suit โ˜œ White Left Pointing Index โ˜‰ Sun โœ Upper Right Pencil โ˜Œ Conjunction โ™˜ White Chess Knight โ˜› Black Right Pointing Index โ˜’ Ballot Box with X โ˜ต Trigram for Water โ™› Black Chess Queen โ˜ Ballot Box โ˜จ Cross of Lorraine โ˜ญ Hammer and Sickle โ™ข White Diamond Suit โ˜ท Trigram for Earth โ˜ป Black Smiling Face โ™œ Black Chess Rook โ˜… Black Star 3 Digit Three โ€ Zero Width Joiner * Asterisk โ™– White Chess Rook โ™ Black Chess Bishop โ™ƒ Jupiter โ™ฎ Music Natural Sign โœŽ Lower Right Pencil โ˜ฌ Adi Shakti โ˜ซ Farsi Symbol โ™ก White Heart Suit 0 Digit Zero โ™ช Eighth Note โ˜พ Last Quarter Moon โ˜ค Caduceus โ˜ฅ Ankh โ™„ Saturn 7 Digit Seven โ˜ž White Right Pointing Index # Number Sign โ˜ฝ First Quarter Moon 1 Digit One โ™ซ Beamed Eighth Notes โ˜ฐ Trigram for Heaven โ™™ White Chess Pawn โ™ญ Music Flat Sign โ™” White Chess King โ™ž Black Chess Knight """ def init_emoji_map(): emoji_map = {} all_unicode = [globals()[i] for i in globals().keys() if i.startswith("UNICODE")] for unicode in all_unicode: for i in unicode.split('\n'): if not i: continue emoji_map[i.split(' ', 1)[1]] = i.split(' ', 1)[0] return emoji_map EMOJI_MAP = init_emoji_map()
def get_user_response(question, valid_responses, error_message=None): """ Function to obtain input from the user. :param question: string Question to ask user :param valid_responses: list of valid responses to use in error catching :param error_message: string Message to display if an exception occurs :return: user decision """ while True: try: decision = int(input(question)) if decision not in valid_responses: raise ValueError except ValueError: if error_message: print(error_message) else: print('Sorry, please provide a valid input....') continue else: break return decision class Hand: """Superclass""" def __init__(self, cards={}, dealerflag=False, makerflag=False): self.cards = cards self.dealer = dealerflag self.maker = makerflag def set_values(self, trumpsuit=None, leadsuit=None, resetval=False, evaltrumpsuit=False, basevaluereset=False): """ Iterates through the cards and sets their round value based on the input conditions. :param trumpsuit: current suit of trumpcard :param leadsuit: suit of the card played by the other player in a trick :param resetval: 'soft' reset which doesn't affect trumpsuited cards :param evaltrumpsuit: triggers card valuation using trump suit :param basevaluereset: 'hard' reset """ for i in self.cards: self.cards[i].set_value(trumpsuit=trumpsuit, leadsuit=leadsuit, resetval=resetval, evaltrumpsuit=evaltrumpsuit, basevaluereset=basevaluereset) def set_cards(self, carddict): """ Sets the dictionary of cards :param carddict: dict of Cards """ self.cards = carddict def set_maker(self): """ Sets the maker flag to True """ self.maker = True def set_dealer(self): """ Sets the dealer flag to True """ self.dealer = True def clear_hand(self): """ Resets hand for the next round. """ self.cards = "" self.dealer = False self.maker = False def play_card(self, cardindex): """Pops and returns the card at the given index""" return self.cards.pop(cardindex) def get_cards_matching_suit(self, suit): """ Determines if any cards in hand match the played suit :param suit: string suit of played card i.e. 'Spades' :return: list of keys in hand that match the passed suit """ mustplaykeys = [] for i, j in self.cards.items(): if j.suit == suit: # TODO update this so that the left bower matches the suit mustplaykeys.append(i) return mustplaykeys def __repr__(self): """Overloads str() operator""" card_string = "" for i in self.cards: card_string = card_string + str(i) + str(self.cards[i]) return card_string class UserHand(Hand): """Controls the Player's hand""" def __init__(self, cards={}, dealerflag=False, makerflag=False): super().__init__(cards, dealerflag, makerflag) self.name = "Player" def bid_decide(self, bidcard=None, rnd=1, excludesuit=None): """ Defines user's bid phase :param bidcard: Card type for decision :param rnd: int Which round of bidding :param excludesuit: string suit of bid card which can no longer be selected :return: string User decision """ if rnd == 1: if not self.dealer: decision = get_user_response('Press (1) to Order Up or (2) to Pass: ', [1, 2]) if decision == 1: return 'order-up' elif decision == 2: return 'pass' elif self.dealer: decision = get_user_response('Press (1) to Accept or (2) to Pass: ', [1, 2]) if decision == 1: cardtodiscard = get_user_response('Which card would you like to discard?', [1, 2, 3, 4, 5]) self.cards[cardtodiscard] = bidcard return 'accept' elif decision == 2: return 'pass' elif rnd == 2: suitlist = ['Spades', 'Clubs', "Diamonds", 'Hearts'] suitlist.remove(excludesuit) suitsstring = "" option = 2 for i in suitlist: suitsstring += '(' + str(option) + '):' + str(i) + ' ' option += 1 if not self.dealer: decision = get_user_response('Input (1) to Pass, or choose a trump suit ' + suitsstring, [1, 2, 3, 4]) if decision == 1: return 'pass' else: return suitlist[decision - 2] elif self.dealer: decision = get_user_response('Choose a trump suit: ' + suitsstring, [1, 2, 3, 4]) return suitlist[decision - 2] def trick_decide(self, playedcard=None): """ Controls user's trick phase. :param playedcard: Card type Card played by other 'hand' if applicable :return: Card type Card to play """ if playedcard: mustplaykeys = self.get_cards_matching_suit(playedcard.get_suit()) else: mustplaykeys = [] if len(mustplaykeys) > 0: card_to_play = get_user_response("Which card would you like to play? ", mustplaykeys, 'Sorry, please play card with the matching suit') else: card_to_play = get_user_response("Which card would you like to play? ", self.cards.keys()) return self.play_card(card_to_play) def pickup_bidcard(self, bidcard): """ Allows user to decide whether to pick up bidcard upon acceptance :param bidcard: Card type Played card :return: None """ cardtodiscard = int(input('Select a card to replace, or press (6) to leave it.')) if cardtodiscard != 6: self.cards[cardtodiscard] = bidcard class ComputerHand(Hand): """Controls the Computer's Hand """ def __init__(self, cards={}, dealerflag=False, makerflag=False, play_mode=False): super().__init__(cards, dealerflag, makerflag) self.playMode = play_mode self.name = "Computer" # needed to make object hashable for key in dict def calc_hand_value(self, trumpsuit=None): """ Private method which provides a sum of the values of the cards in the computer's hand :param trumpsuit: string If provided, re-evaluates the card value using the trumpsuit :return: int Sum of card values """ if trumpsuit: self.set_values(trumpsuit=trumpsuit, evaltrumpsuit=True) else: self.set_values(basevaluereset=True) hand_val = 0 for i in self.cards: hand_val += self.cards[i].roundvalue return hand_val def bid_decide(self, bidcard=None, rnd=1, excludesuit=None): """ Controls Computer's bid phase. :param bidcard: Card type for decision :param rnd: int Which round of bidding :param excludesuit: string suit of bid card which can no longer be selected :return: string Computer decision """ if bidcard: hand_val = self.calc_hand_value(bidcard.get_suit()) else: hand_val = self.calc_hand_value() if rnd == 1: if not self.dealer: if hand_val >= 35: print('Computer Orders Up') return 'order-up' else: print('Computer passes') return 'pass' elif self.dealer: if hand_val >= 48: print('Computer accepts') self.set_values(trumpsuit=bidcard.suit, evaltrumpsuit=True) swap_index = self.find_lowest_card() self.cards[swap_index] = bidcard return 'accept' else: print('Computer passes') return 'pass' elif rnd == 2: suitlist = ['Spades', 'Clubs', "Diamonds", 'Hearts'] suitlist.remove(excludesuit) handvalforeachsuit = {} for i in suitlist: self.set_values(basevaluereset=True) handvalforeachsuit[i] = self.calc_hand_value(trumpsuit=i) highestsuit = max(handvalforeachsuit, key=lambda k: handvalforeachsuit[k]) if handvalforeachsuit[highestsuit] >= 65 or self.dealer: # magic number print('Computer chooses: ' + str(highestsuit)) return highestsuit else: print('Computer passes') return 'pass' def trick_decide(self, playedcard=None): """ Controls Computers's trick phase. :param playedcard: Card type Card played by other 'hand' if applicable :return: Card type Card to play """ if playedcard: # Chooses card with lowest value that still wins, or plays the card with the lowest value overall must_play_cards = self.get_cards_matching_suit(playedcard.get_suit()) min_val = 100 winner_min_val = 100 winner_index = -1 if len(must_play_cards) > 0: for i in must_play_cards: if winner_min_val > self.cards[i].roundvalue > playedcard.roundvalue: # Find lowest winning card, if available winner_index = i winner_min_val = self.cards[i].roundvalue if self.cards[i].roundvalue < min_val: # Find lowest card overall min_index = i min_val = self.cards[i].roundvalue if winner_index != -1: return self.play_card(winner_index) else: return self.play_card(min_index) else: return self.play_card(self.find_lowest_card()) else: return self.play_card(self.find_highest_card()) def find_lowest_card(self): """ Returns the index in cards of the card with the lowest value """ minval = 100 lowcardindex = None for idx, card in self.cards.items(): if card.get_value() <= minval: minval = card.get_value() lowcardindex = idx return lowcardindex def find_highest_card(self): """ Returns the index in cards of the card with the highest value """ maxval = 0 highcardindex = None for idx, card in self.cards.items(): if card.get_value() >= maxval: maxval = card.get_value() highcardindex = idx return highcardindex def pickup_bidcard(self, bidcard): """ Method for computer to decide on picking up the bidcard :param bidcard: Card type on which to perform bid phase :return: None """ self.set_values(trumpsuit=bidcard.get_suit(), evaltrumpsuit=True) bidcard.set_value(trumpsuit=bidcard.get_suit(), evaltrumpsuit=True) if self.cards[self.find_lowest_card()].roundvalue < bidcard.roundvalue: self.cards[self.find_lowest_card()] = bidcard def __repr__(self): if not self.playMode: card_string = "" for i in self.cards: card_string = card_string + str(i) + str("('*','*')") return card_string else: return super(ComputerHand, self).__repr__()
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def swapPairs(self, head: ListNode) -> ListNode: pre, pre.next = self, head while pre.next and pre.next.next: a = pre.next b = a.next pre.next,b.next, a.next = b, a, b.next pre = a return self.next
class layerClass(): """Class describing single layer of the bundle""" def __init__(self, residues): self.res = residues def __str__(self): return " ".join(["%s:%s" % (r.chain_name, r.res.id[1]) for r in self.res]) def get_layer_CA(self): return [ [res.Ca[0], res.Ca[1], res.Ca[2] ] for res in self.res ] def get_layer_axis(self): return [ [res.O[0], res.O[1], res.O[2] ] for res in self.res if res.O != None ] def get_layer_axis_temp(self): return [ type(res.O) for res in self.res ]
#!/usr/bin/env python3 passphrases = [] try: while True: passphrases.append(input()) except EOFError: pass s1 = 0 for passphrase in passphrases: words = set() for word in passphrase.split(): if word in words: break words.add(word) else: s1 += 1 s2=0 for passphrase in passphrases: words = set() for word in passphrase.split(): if any(len(word) == len(w) and all(l in w for l in word) for w in words): break words.add(word) else: s2 += 1 print(s1) print(s2)
#!/usr/bin/env python3 # coding: utf-8 def save_vtk(fn: str, vtkn: str, dtn: str, pts, seg): """ save geometry as vtk file args: fn(str) : file name vtkn (str) : vtk global name dtn(str): data name pts (list) : points seg (list) : segments """ with open(fn, 'w') as f: f.write('# vtk DataFile Version 3.0\n') f.write(f'{ vtkn }\n') f.write('ASCII\n') f.write('DATASET UNSTRUCTURED_GRID\n') # --- points count f.write(f'POINTS { len(pts) } double\n') # ---- nodes for pt in pts: f.write(f'{ pt[0] } { pt[1]} 0.0\n') # ---- cells count f.write(f'CELLS { len(seg) } { len(seg) * 3 }\n') # ---- cells for sg in seg: f.write(f'{ len(sg) }\t{ sg[0] } { sg[1] }\n') # ---- cells type f.write(f'CELL_TYPES {len(seg)}\n') # cell type header f.write('3\n'*len(seg)) # cell types # --- cells data f.write(f'CELL_DATA { len(seg) }\n') f.write(f'SCALARS { dtn } float 1\n') f.write('LOOKUP_TABLE default\n') for i in range(len(seg)): f.write(f'{i}\n')
a3 = int(input("a3=")) a2 = int(input("a2=")) a1 = int(input("a1=")) b2 = int(input("b2=")) b1 = int(input("b1=")) c3 = a3 c2 = a2 + b2 c1 = a1 + b1 print("????? ????? ?????: {0} {1} {2}. ".format(c3 , c2 , c1))
def main(filepath): #file input with open(filepath) as file: rows = [x.strip().split("contain") for x in file.readlines()] #####---start of input parsing---##### #hash = {bag: list of contained bags} #numberhash = {bag: list of cardinalities of contained bags} #numberhash maps onto hash in the expected way. numbershash = {} for i in range(len(rows)): rows[i][0] = rows[i][0].split(" bags")[0] rows[i][1] = rows[i][1].split(",") numbershash[rows[i][0]] = [] for j in range(len(rows[i][1])): if not rows[i][1][j].split(" ")[1] == "no": numbershash[rows[i][0]].append(int(rows[i][1][j].split(" ")[1])) rows[i][1][j] = rows[i][1][j].split(" ")[2]+" "+rows[i][1][j].split(" ")[3] #row[i] = [upper_bag,[inner_bag_1,inner_bag_1,...]] hash = {} for i in range(len(rows)): hash[rows[i][0]] = [] for j in range(len(rows[i][1])): hash[rows[i][0]].append(rows[i][1][j]) if hash[rows[i][0]] == ["other bags."]: hash[rows[i][0]] = [] ######---end of input parsing---##### count_a = len(countbags(hash,"shiny gold",set(),set())) count_b = countbags2(hash,"shiny gold",0,numbershash)-1 print("Part a solution: "+ str(count_a)) print("Part b solution: "+ str(count_b)) return #recursively counts unique bags starting from smallest bag def countbags(hash,target,currentset,checkedbags): for key in hash.keys(): if target in hash[key]: currentset.add(key) #currentset = all bags that contain gold checkedbags.add(target) if not currentset == checkedbags: for bag in currentset.copy(): if not bag in checkedbags: currentset = countbags(hash,bag,currentset,checkedbags) return currentset #recursively counts bags starting from largest bag def countbags2(hash,target,count,numbershash): if hash[target] == []: return 1 temp = [] for i in range(len(hash[target])): temp.append(numbershash[target][i]*countbags2(hash,hash[target][i],count,numbershash)) count += sum(temp) count = count+1 return count
class TaskException(Exception): def __init__(self, message): self.message = message class TaskDelayResource(TaskException): def __init__(self, message=None, resource=None, delay=60*60): self.message = message self.resource = resource self.delay = delay class TaskError(TaskException): pass class TaskAbort(TaskException): pass
def sum_triangular_numbers(n): sum_trian = 0 if n < 0: return 0 for i in range(n+1): sum_trian += i*(i+1) // 2 return sum_trian print(sum_triangular_numbers(4))
""" link: https://leetcode.com/problems/odd-even-linked-list problem: ็ป™้“พ่กจ๏ผŒ่ฆๆฑ‚ๆ‹†ๅˆ†ๆˆๅฅ‡ๆ•ฐ้กนๅœจๅ‰๏ผŒๅถๆ•ฐ้กนๅœจๅŽ็š„ๅฝขๅผ๏ผŒๆ—ถ้—ดO(n)๏ผŒ็ฉบ้—ดO(1) solution: ๆ‹†้“พ่กจไฟๅญ˜ๅฅ‡ๅถ้กน่กจๅคดๅ’Œ่กจๅฐพ """ # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def oddEvenList(self, head: ListNode) -> ListNode: if not head or not head.next: return head odd_head, odd_tail, even_head, even_tail, cnt = head, head, head.next, head.next, 3 t = head.next.next while t: k = t t = t.next if cnt & 1: odd_tail.next = k odd_tail = k else: even_tail.next = k even_tail = k cnt += 1 odd_tail.next = even_head even_tail.next = None return odd_head
class Cat: def __init__(self, name): self.name = name self.fed = False self.sleepy = False self.size = 0 def eat(self): if self.fed: raise Exception('Already fed.') self.fed = True self.sleepy = True self.size += 1 def sleep(self): if not self.fed: raise Exception('Cannot sleep while hungry') self.sleepy = False
#!/usr/bin/env python # -*- coding: utf-8 -*- class VolatileCookie(dict): def __reduce__(self): return (VolatileCookie.__new__, (VolatileCookie,)) def __deepcopy__(self, memo): '''Deep copy of a volatile cookie is intentionally nullified.''' return type(self)()
# -*- coding: UTF-8 -*- defaults = dict( BACKEND='django_datawatch.backends.synchronous', RUN_SIGNALS=True, SHOW_ADMIN_DEBUG=True)
"These are constants used for Toolbox testing." # 'name', 'state', 'end_user_registration_required', 'backend_version', # 'deployment_option', 'buyer_can_select_plan', # 'buyer_key_regenerate_enabled', 'buyer_plan_change_permission', # 'buyers_manage_apps', 'buyers_manage_keys', 'custom_keys_enabled','intentions_required', # 'mandatory_app_key', 'referrer_filters_required' SERVICE_CMP_ATTRS = {'created_at', 'id', 'links', 'system_name', 'support_email', 'updated_at'} # 'admin_support_email', 'backend_authentication_type', 'backend_version', # 'buyer_can_select_plan', 'buyer_key_regenerate_enabled', 'buyer_plan_change_permission', # 'buyers_manage_apps', 'buyers_manage_keys', 'credit_card_support_email', # 'custom_keys_enabled', 'default_application_plan_id', 'default_end_user_plan_id', # 'default_service_plan_id', 'deployment_option', 'description', 'display_provider_keys', # 'draft_name', 'end_user_registration_required', 'infobar', 'intentions_required', # 'kubernetes_service_link', 'logo_content_type', 'logo_file_name', 'logo_file_size', # 'mandatory_app_key', 'name', 'notification_settings', 'oneline_description', 'proxiable?', # 'referrer_filters_required', 'state', 'system_name', 'tech_support_email', # 'terms', 'txt_api', 'txt_features', 'txt_support' PROXY_CONFIG_CONTENT_CMP_ATTRS = { 'account_id', 'backend_authentication_value', 'created_at', 'id', 'proxy', 'support_email', 'tenant_id', 'updated_at'} # 'api_backend', 'api_test_path', 'api_test_success', 'apicast_configuration_driven', # 'auth_app_id', 'auth_app_key', 'auth_user_key', 'authentication_method', # 'credentials_location', 'deployed_at', 'endpoint_port', 'error_auth_failed', # 'error_auth_missing', 'error_headers_auth_failed', 'error_headers_auth_missing', # 'error_headers_limits_exceeded', 'error_headers_no_match', 'error_limits_exceeded', # 'error_no_match', 'error_status_auth_failed', 'error_status_auth_missing', # 'error_status_limits_exceeded', 'error_status_no_match', 'hostname_rewrite', # 'hostname_rewrite_for_sandbox', 'jwt_claim_with_client_id', 'jwt_claim_with_client_id_type', # 'oauth_login_url', 'oidc_issuer_endpoint', 'oidc_issuer_type', 'service_backend_version', # 'valid?' PROXY_CONFIG_CONTENT_PROXY_CMP_ATTRS = { 'backend', 'created_at', 'endpoint', 'hosts', 'id', 'lock_version', 'policy_chain', 'production_domain', 'proxy_rules', 'sandbox_endpoint', 'secret_token', 'service_id', 'staging_domain', 'tenant_id', 'updated_at'} # 'delta', 'http_method', 'last', 'owner_type', 'parameters', 'pattern', 'position', # 'querystring_parameters', 'redirect_url' PROXY_RULES_CMP_ATTRS = { 'created_at', 'id', 'metric_id', 'metric_system_name', 'owner_id', 'proxy_id', 'tenant_id', 'updated_at'} # 'api_test_path', 'auth_app_id', 'auth_app_key', 'auth_user_key', 'credentials_location', # 'deployment_option', 'error_auth_failed', 'error_auth_missing', 'error_headers_auth_failed', # 'error_headers_auth_missing', 'error_headers_limits_exceeded', 'error_headers_no_match', # 'error_limits_exceeded', 'error_no_match', 'error_status_auth_failed', # 'error_status_auth_missing', 'error_status_limits_exceeded', 'error_status_no_match', # 'lock_version', 'oidc_issuer_endpoint', 'oidc_issuer_type', 'secret_token' PROXY_CMP_ATTRS = { 'api_backend', 'created_at', 'endpoint', 'links', 'lock_version', 'policies_config', 'sandbox_endpoint', 'service_id', 'updated_at'} # name, system_name, friendly_name, unit, description METRIC_CMP_ATTRS = {'created_at', 'id', 'links', 'updated_at', 'system_name', 'parent_id'} # name, system_name, friendly_name, description METRIC_METHOD_CMP_ATTRS = {'created_at', 'id', 'links', 'parent_id', 'updated_at'} # pattern, http_method, delta MAPPING_CMP_ATTRS = {'created_at', 'id', 'last', 'links', 'metric_id', 'position', 'updated_at'} # name, system_name, description, private_endpoint BACKEND_CMP_ATTRS = {'id', 'account_id', 'created_at', 'updated_at', 'links'} # 'approval_required', 'cancellation_period', 'cost_per_month', 'custom', 'default', # 'name', 'setup_fee', 'state', 'system_name', 'trial_period_days' APP_PLANS_CMP_ATTRS = {'created_at', 'id', 'links', 'updated_at'} # 'period', 'value' LIMITS_CMP_ATTR = {'id', 'metric_id', 'plan_id', 'created_at', 'updated_at', 'links'} # 'cost_per_unit', 'min', 'max' PRICING_RULES_CMP_ATTRS = {'id', 'metric_id', 'created_at', 'updated_at', 'links'} # 'system_name', 'name', 'description', 'published', 'skip_swagger_validations', 'body' ACTIVEDOCS_CMP_ATTRS = {'id', 'service_id', 'created_at', 'updated_at'} # 'path' BACKEND_USAGES_CMP_ATTRS = {'id', 'service_id', 'backend_id', 'links'} # 'description', 'enabled', 'end_user_required', 'name', 'provider_verification_key', # 'state', 'user_key' APPLICATION_CMP_ATTRS = { 'account_id', 'created_at', 'first_daily_traffic_at', 'first_traffic_at', 'id', 'links', 'plan_id', 'provider_verification_key', 'service_id', 'updated_at'}
# coding=utf-8 books = ( { 'template_id': 0, 'template_text_file': 'When_I_met_the_Pirates.txt', 'template_dir': 'When_I_met_the_Pirates', 'title': 'When I met the Pirates', 'title_brief': 'Pirates', 'title_RO': u'Aventuri cu piraศ›ii', 'title_IT': 'Avventure coi pirati', 'sku': 'SKU #83321', 'languages': 'English, Italian, Romanian', 'issuu_id': '8025851/5449283', 'cover_image': 'When_I_met_the_Pirates.jpg', 'bookimg_girl': 'cover_pirates_girl.jpg', 'bookimg_boy': 'cover_pirates.jpg', 'sidebar_pic': 'rustic_pirate.jpg', 'prot_boy': 'prot_pirate_boy.jpg', 'prot_girl': 'prot_pirate_girl.jpg', 'sex_recomm': 'MF', 'default_sex': 'MF', 'age_recomm_min': 5, 'age_recomm_max': 12, 'price_eurocents': 499, 'author_img': 'dana.jpg', 'author_name': 'Anna Petrescu', 'author_ill': 'Noha Elhady', 'author_desc': '''Anna Petrescu is Chief Officer at FableMe, and a recognized writer of fables and novels for teenagers. She has a beautiful daughter, Diana, who is the first passionate lover of FableMe.com fables!''', 'desc_title': 'A great adventure...', 'desc_desc': '''This is a beautiful pirate story for boys and girls all over the world. The hero/heroine joins an interesting crew made of a dog pirate, a cat pirate, a parrot pirate and a rat pirate. Together they sail the seas and have a lot of fun.''', 'desc_short': '''The hero/heroine joins an interesting crew made of a dog pirate, a cat pirate, a parrot pirate and a rat pirate. Together they sail the seas and have a lot of fun....''' }, { 'template_id': 1, 'template_text_file': 'My_voyage_to_Aragon.txt', 'template_dir': 'My_voyage_to_Aragon', 'title': 'My voyage to Aragon', 'title_brief': 'Aragon', 'title_RO': u'Voiajul meu รฎn Aragon', 'title_IT': 'Il mio viaggio ad Aragon', 'sku': 'SKU #83203', 'languages': 'English, Italian, Romanian', 'issuu_id': '8868387/4252762', 'cover_image': 'My_voyage_to_Aragon.jpg', 'bookimg_girl': 'cover_voyage.jpg', 'bookimg_boy': 'cover_voyage_boy.jpg', 'sex_recomm': 'MF', 'default_sex': 'MF', 'age_recomm_min': 5, 'age_recomm_max': 12, 'price_eurocents': 499, 'sidebar_pic': 'Anna.jpg', 'prot_boy': 'prot_voyage_boy.jpg', 'prot_girl': 'prot_voyage_girl.jpg', 'author_img': 'dana.jpg', 'author_name': 'Anna Petrescu', 'author_ill': 'Noha Elhady', 'author_desc': '''Anna Petrescu is Chief Officer at FableMe, and a recognized writer of fables and novels for teenagers. She has a beautiful daughter, Diana, who is the first passionate lover of FableMe.com fables!''', 'desc_title': 'A dream comes true', 'desc_desc': """This is the story of a little prince/princess who travels to the land of Aragon and discovers that wisdom (knowledge) and wit (perception and learning) are both needed in life. It is written with a medieval feel and as a rhyming ode. The story follows the hero/heroine who is riding to school on his/her pony and becomes distracted when they meet a fox. Accompanied by the pony and the fox, a fantastic journey through the forest begins.""", 'desc_short': '''A beautiful prince/princess travels to the land of Aragon and discovers that wisdom and wit are both needed in life...''' }, { 'template_id': 2, 'template_text_file': 'The_talisman_of_the_Badia.txt', 'template_dir': 'The_talisman_of_the_Badia', 'title': 'The Amazing story of the Badia Talisman', 'title_brief': 'Badia', 'title_RO': 'Povestea talismanului din Badia', 'title_IT': 'La fantastica storia del talismano della Badia', 'sku': 'SKU #83232', 'languages': 'English, Italian, Romanian', 'issuu_id': '8868387/6765671', 'cover_image': 'The_talisman_of_the_Badia.jpg', 'bookimg_girl': 'cover_badia.jpg', 'bookimg_boy': 'cover_badia.jpg', 'sex_recomm': 'MF', 'default_sex': 'MF', 'age_recomm_min': 8, 'age_recomm_max': 16, 'price_eurocents': 499, 'sidebar_pic': 'Capture.jpg', 'prot_boy': 'prot_badia_boy.jpg', 'prot_girl': 'prot_badia_girl.jpg', 'author_img': 'alessio.jpg', 'author_name': 'Alessio Saltarin', 'author_ill': 'Teodora Reytor', 'author_desc': '''Alessio Saltarin is an italian writer of novels and short-stories. In his spare time he designs and programs videogames.''', 'desc_title': 'An old tale retold again', 'desc_desc': """In a green and flat land crossed by a river whose waters flowed impetuous and full of fish, a young princess is imprisoned in the high tower of a castle. A young prince, the so-called God-Of-The-Turks, comes out of the blue to rescue her. A classic fable for every dreamer boy or girl.""", 'desc_short': '''A young princess is imprisoned in the high tower of a castle. A young prince, the so-called God-Of-The-Turks, comes out of the blue to rescue her...''' }, { 'template_id': 3, 'template_text_file': 'Cinderella.txt', 'template_dir': 'Cinderella', 'title': 'Cinderella', 'title_brief': 'Cinderella', 'title_RO': u'CenuลŸฤƒreasa', 'title_IT': 'Cenerentola', 'sku': 'SKU #83232', 'languages': 'English, Italian, Romanian', 'issuu_id': '8868387/6765671', 'cover_image': 'cover_cinderella.jpg', 'bookimg_girl': 'cover_cinderella.jpg', 'bookimg_boy': 'cover_cinderella.jpg', 'sex_recomm': 'F', 'default_sex': 'F', 'age_recomm_min': 5, 'age_recomm_max': 12, 'price_eurocents': 199, 'sidebar_pic': 'Capture.jpg', 'prot_boy': 'prot_cinderella_boy.jpg', 'prot_girl': 'prot_cinderella_girl.jpg', 'author_img': 'GrimmBrothers.jpg', 'author_name': 'Jacob Grimm, Wilhelm Grimm', 'author_ill': 'Teodora Reytor', 'author_desc': '''The Brothers Grimm (or Die Brรผder Grimm), Jacob (1785โ€“1863) and Wilhelm Grimm (1786โ€“1859), were German academics, linguists, cultural researchers, lexicographers and authors who together specialized in collecting and publishing folklore during the 19th century. They were among the best-known storytellers of folk tales, and popularized stories such as "Cinderella" ("Aschenputtel"), "The Frog Prince" ("Der Froschkรถnig"), "Hansel and Gretel" ("Hรคnsel und Gretel"), "Rapunzel", "Rumpelstiltskin" ("Rumpelstilzchen"), and "Snow White" ("Schneewittchen"). Their first collection of folk tales, Children's and Household Tales (Kinder- und Hausmรคrchen), was published in 1812.''', 'desc_title': 'Cinderella', 'desc_desc': """In a far away, long ago kingdom, Cinderella is living happily with her mother and father until her mother dies. Cinderella's father remarries a cold, cruel woman who has two cruel daughters who turn her into a servant in her own house. Meanwhile, across town in the castle, the King invites every eligible maiden in the kingdom to a fancy ball, where his son will be able to choose his bride. Cinderella has no suitable party dress for a ball but a fairy godmother helps her. At the ball Cinderella dances with the Prince who falls in love with her. However, at the stroke of midnight Cinderella must leave the ball as her clothes will turn back to rags after 12 oโ€™clock and as she rushes out she leaves one of her shoes behind. The prince tries the shoe on lots of women throughout the land until he finds Cinderella. They get married and live happily ever after. """, 'desc_short': '''Cinderella is the story of a girl that after the death of her mother becomes a servant for her step mother and two step sisters. With the help of a fairy godmother she turns into a beautiful princess and goes to the ball at the castle where the prince falls in love with her. When the clock turns midnight she has to go and she loses her shoe. The prince searches the owner of the shoe in the entire kingdom, finds her and marries her...''' }, { 'template_id': 4, 'template_text_file': 'TomThumb.txt', 'template_dir': 'TomThumb', 'title': 'Little Thumb', 'title_brief': 'Little Thumb ', 'title_RO': u'Degeศ›el', 'title_IT': 'Pollicino', 'sku': 'SKU #83232', 'languages': 'English, Italian, Romanian', 'issuu_id': '8868387/6765671', 'cover_image': 'cover_tomthumb.jpg', 'bookimg_girl': 'cover_tomthumb.jpg', 'bookimg_boy': 'cover_tomthumb.jpg', 'sex_recomm': 'M', 'default_sex': 'M', 'age_recomm_min': 5, 'age_recomm_max': 12, 'price_eurocents': 199, 'sidebar_pic': 'Capture.jpg', 'prot_boy': 'prot_tomthumb_boy.jpg', 'prot_girl': 'prot_tomthumb_girl.jpg', 'author_img': 'GrimmBrothers.jpg', 'author_name': 'Jacob Grimm, Wilhelm Grimm', 'author_ill': 'Teodora Reytor', 'author_desc': '''The Brothers Grimm (or Die Brรผder Grimm), Jacob (1785โ€“1863) and Wilhelm Grimm (1786โ€“1859), were German academics, linguists, cultural researchers, lexicographers and authors who together specialized in collecting and publishing folklore during the 19th century. They were among the best-known storytellers of folk tales, and popularized stories such as "Cinderella" ("Aschenputtel"), "The Frog Prince" ("Der Froschkรถnig"), "Hansel and Gretel" ("Hรคnsel und Gretel"), "Rapunzel", "Rumpelstiltskin" ("Rumpelstilzchen"), and "Snow White" ("Schneewittchen"). Their first collection of folk tales, Children's and Household Tales (Kinder- und Hausmรคrchen), was published in 1812.''', 'desc_title': 'Little Thumb', 'desc_desc': """Little Thumb is a tale about a little boy who is as small as his motherโ€™s thumb. The tale begins with a farmer and his wife who are desperate for a child. The wife gets pregnant and after a while Thumb appears. The world is a dangerous place for little Thumb and the tale focuses on some of his many adventures. He is sold by his father to two strangers, is eaten by a cow, then by a wolf. Finally he goes back home to live happily ever after. The story is personalized with the childโ€™s name. """, 'desc_short': '''Little Thumb is a tale about a little boy who is as small as his motherโ€™s thumb. The world is a dangerous place for little Thumb and the tale focuses on some of his many adventures. He is sold by his father to two strangers, is eaten by a cow, then by a wolf. Finally he goes back home to live happily ever after. The story is personalized with the childโ€™s name...''' }, { 'template_id': 5, 'template_text_file': 'JackBeanstalk.txt', 'template_dir': 'JackBeanstalk', 'title': 'The magical beanstalk', 'title_brief': 'The magical beanstalk', 'title_RO': u'Vrejul de fasole fermecat', 'title_IT': 'Il fagiolo magico', 'sku': 'SKU #83232', 'languages': 'English, Italian, Romanian', 'issuu_id': '8868387/6765671', 'cover_image': 'cover_jackbeanstalck.jpg', 'bookimg_girl': 'cover_jackbeanstalck.jpg', 'bookimg_boy': 'cover_jackbeanstalck.jpg', 'sex_recomm': 'M', 'default_sex': 'M', 'age_recomm_min': 5, 'age_recomm_max': 12, 'price_eurocents': 199, 'sidebar_pic': 'Capture.jpg', 'prot_boy': 'prot_tomthumb_boy.jpg', 'prot_girl': 'prot_tomthumb_girl.jpg', 'author_img': 'JosephJacobs.jpg', 'author_name': 'Joseph Jacobs ', 'author_ill': 'Teodora Reytor', 'author_desc': ''' (29 August 1854 โ€“ 30 January 1916) was an Australian folklorist, literary critic, historian and writer of English literature who became a notable collector and publisher of English Folklore. His work went on to popularize some of the world's best known versions of English fairy tales including "Jack and the Beanstalk", "Goldilocks and the three bears", "The Three Little Pigs", "Jack the Giant Killer" and "The History of Tom Thumb". He published his English fairy tale collections: English Fairy Tales in 1890 and More English Fairytales in 1894 but also went on after and in between both books to publish fairy tales collected from continental Europe as well as Jewish, Celtic and Indian Fairytales which made him one of the most popular writers of fairytales for the English language.''', 'desc_title': 'The magical beanstalk', 'desc_desc': """A poor boy lives with his mother out of selling to the market the milk from their cow. One day the cow stops giving milk and the boy takes the cow to market to sell it. On the way he meets a strange man who gives him five magic beans in exchange for the cow. His angry mother throws the beans into the garden. Overnight the beans grow into a huge beanstalk and the boy climbs up. At the top he finds a castle where a giant and his wife live. The giant likes to eat children so the boy hides in the oven. He goes up the beanstalk three times. When the giant is sleeping, the boy steals a bag of gold, a magic hen, and a golden harp. The third time, the giant wakes up and chases him down the beanstalk. The boy and his mother cut down the beanstalk and the giant falls to his death. """, 'desc_short': '''A poor boy living with his mother takes their only cow to the market to sell it. On the way he meets a strange man who gives him five magic beans in exchange for the cow. The beans grow into a huge beanstalk on top of which a giant lives. The boy steals from the giant a bag of gold, a magic hen, and a golden harp, and lives happily and rich with his mother....''' }, { 'template_id': 6, 'template_text_file': 'SleepingBeauty.txt', 'template_dir': 'SleepingBeauty', 'title': 'Sleeping Beauty', 'title_brief': 'Sleeping Beauty', 'title_RO': u'Frumoasa din pฤƒdurea adormitฤƒ', 'title_IT': 'La bella addormentata nel bosco', 'sku': 'SKU #83232', 'languages': 'English, Italian, Romanian', 'issuu_id': '8868387/6765671', 'cover_image': 'cover_sleepingbeauty.jpg', 'bookimg_girl': 'cover_sleepingbeauty.jpg', 'bookimg_boy': 'cover_sleepingbeauty.jpg', 'sex_recomm': 'F', 'default_sex': 'F', 'age_recomm_min': 5, 'age_recomm_max': 12, 'price_eurocents': 199, 'sidebar_pic': 'Capture.jpg', 'prot_boy': 'prot_sleepingbeauty_boy.jpg', 'prot_girl': 'prot_sleepingbeauty_girl.jpg', 'author_img': 'GrimmBrothers.jpg', 'author_name': 'Jacob Grimm, Wilhelm Grimm', 'author_ill': 'Teodora Reytor', 'author_desc': '''The Brothers Grimm (or Die Brรผder Grimm), Jacob (1785โ€“1863) and Wilhelm Grimm (1786โ€“1859), were German academics, linguists, cultural researchers, lexicographers and authors who together specialized in collecting and publishing folklore during the 19th century. They were among the best-known storytellers of folk tales, and popularized stories such as "Cinderella" ("Aschenputtel"), "The Frog Prince" ("Der Froschkรถnig"), "Hansel and Gretel" ("Hรคnsel und Gretel"), "Rapunzel", "Rumpelstiltskin" ("Rumpelstilzchen"), and "Snow White" ("Schneewittchen"). Their first collection of folk tales, Children's and Household Tales (Kinder- und Hausmรคrchen), was published in 1812. ''', 'desc_title': 'Sleeping Beauty', 'desc_desc': """A king slights the oldest fairy of thirteen in the kingdom and she curses the King's newborn princess saying she will die on her fifteenth birthday by pricking her finger on a spinning wheel. The twelfth softens the curse so that the princess will only fall asleep for one hundred years. The King has every spinning wheel destroyed in the kingdom but on her fifteenth birthday, she pricks her finger, falling down in a deep sleep. One hundred years later a Prince searches for the enchanted princess and kisses her awakening the kingdom from the spell.""", 'desc_short': '''A kingโ€™s new born daughter is cursed by an evil fairy to die on her fifteenth birthday by pricking her finger on a spinning wheel. She does pricks her finger falling down in a deep sleep and one hundred years later a princess awakens her with a kiss...''' }, { 'template_id': 7, 'template_text_file': 'RedCap.txt', 'template_dir': 'RedCap', 'title': 'Red Cap', 'title_brief': 'Little Red Riding Hood', 'title_RO': u'Scufiศ›a roศ™ie', 'title_IT': 'Cappuccetto rosso', 'sku': 'SKU #83232', 'languages': 'English, Italian, Romanian', 'issuu_id': '8868387/6765671', 'cover_image': 'cover_redcap.jpg', 'bookimg_girl': 'cover_redcap.jpg', 'bookimg_boy': 'cover_redcap.jpg', 'sex_recomm': 'F', 'default_sex': 'F', 'age_recomm_min': 5, 'age_recomm_max': 12, 'price_eurocents': 199, 'sidebar_pic': 'Capture.jpg', 'prot_boy': 'prot_redcap_boy.jpg', 'prot_girl': 'prot_redcap_girl.jpg', 'author_img': 'GrimmBrothers.jpg', 'author_name': 'Jacob Grimm, Wilhelm Grimm', 'author_ill': 'Teodora Reytor', 'author_desc': '''The Brothers Grimm (or Die Brรผder Grimm), Jacob (1785โ€“1863) and Wilhelm Grimm (1786โ€“1859), were German academics, linguists, cultural researchers, lexicographers and authors who together specialized in collecting and publishing folklore during the 19th century. They were among the best-known storytellers of folk tales, and popularized stories such as "Cinderella" ("Aschenputtel"), "The Frog Prince" ("Der Froschkรถnig"), "Hansel and Gretel" ("Hรคnsel und Gretel"), "Rapunzel", "Rumpelstiltskin" ("Rumpelstilzchen"), and "Snow White" ("Schneewittchen"). Their first collection of folk tales, Children's and Household Tales (Kinder- und Hausmรคrchen), was published in 1812. ''', 'desc_title': 'Red Cap', 'desc_desc': """This is the well-known story of a little girl, Little Red Riding Hood, who is sent by her mother to take some food to her grandmother who is sick. In the woods she meets the wolf and she tells him where she is going. The wolf goes ahead of her and eats her grandmother and then waits for Little Red Riding Hood to come and eats her too. A woodcutter kills the wolf and rescues the girl and her grandmother.""", 'desc_short': '''This is the well-known story of a little girl, Little Red Riding Hood, who is sent by her mother to take some food to her grandmother who is sick. Trouble begins when in the woods she meets the wolf...''' }, { 'template_id': 8, 'template_text_file': 'Rapunzel.txt', 'template_dir': 'Rapunzel', 'title': 'Rapunzel', 'title_brief': 'Rapunzel', 'title_RO': u'Rapunzel', 'title_IT': 'Raperenzolo', 'sku': 'SKU #83232', 'languages': 'English, Italian, Romanian', 'issuu_id': '8868387/6765671', 'cover_image': 'Rapunzel.jpg', 'bookimg_girl': 'cover_rapunzel.jpg', 'bookimg_boy': 'cover_rapunzel.jpg', 'sex_recomm': 'F', 'default_sex': 'F', 'age_recomm_min': 5, 'age_recomm_max': 12, 'price_eurocents': 199, 'sidebar_pic': 'Capture.jpg', 'prot_boy': 'prot_rapunzel_boy.jpg', 'prot_girl': 'prot_rapunzel_girl.jpg', 'author_img': 'GrimmBrothers.jpg', 'author_name': 'Jacob Grimm, Wilhelm Grimm', 'author_ill': 'Teodora Reytor', 'author_desc': '''The Brothers Grimm (or Die Brรผder Grimm), Jacob (1785โ€“1863) and Wilhelm Grimm (1786โ€“1859), were German academics, linguists, cultural researchers, lexicographers and authors who together specialized in collecting and publishing folklore during the 19th century. They were among the best-known storytellers of folk tales, and popularized stories such as "Cinderella" ("Aschenputtel"), "The Frog Prince" ("Der Froschkรถnig"), "Hansel and Gretel" ("Hรคnsel und Gretel"), "Rapunzel", "Rumpelstiltskin" ("Rumpelstilzchen"), and "Snow White" ("Schneewittchen"). Their first collection of folk tales, Children's and Household Tales (Kinder- und Hausmรคrchen), was published in 1812. ''', 'desc_title': 'Rapunzel', 'desc_desc': """The story of Rapunzel begins with a husband stealing rapunzel from a sorceressโ€™s garden for his wife. He is caught in act by the angry sorceress and in return for sparing his life she demands that the husband promise her the newborn child, whom she will name Rapunzel. There follows the well-known story of a long-haired girl kept in an inaccessible tower, and a prince who finds her and wins her heart.""", 'desc_short': '''This is the well-known story of a long-haired girl kept raised by a sorceress in an inaccessible tower, and a prince who finds her and wins her heart....''' } ) class Book(object): """ Incapsulates the books dictionary into a class """ def __init__(self, book_id): self.dictionary = books[book_id] for k, v in self.dictionary.items(): setattr(self, k, v) def recommendation(self, sexonly=False): recomm = "Recommended for " age_min = self.dictionary['age_recomm_min'] age_max = self.dictionary['age_recomm_max'] sex_recomm = self.dictionary['sex_recomm'] if sex_recomm == 'M': recomm += " boys" elif sex_recomm == 'F': recomm += " girls" else: recomm += " boys and girls" if not sexonly: recomm += " aged " recomm += str(age_min) recomm += "-" recomm += str(age_max) recomm += " years" recomm += "." return recomm def get_books(starting_index, ending_index): books_collection = [] for i in range(starting_index, ending_index): books_collection.append(Book(i)) return books_collection def get_all_books(): return get_books(0, len(books)) def get_classic_books(): return get_books(3, len(books)) def get_fableme_books(): return get_books(0, 3) def get_leftright_books(tbooks): books_leftright = [] books_array = [None, None] for i in range(1, len(tbooks)+1): if i % 2 != 0: books_array[0] = tbooks[i-1] if i == len(tbooks): books_array[1] = None books_leftright.append(books_array) else: books_array[1] = tbooks[i-1] books_leftright.append(books_array) books_array = [None, None] return books_leftright def get_book_template(book_id): return books[int(book_id)]
""" 09 - Faรงa um programa que leia um nรบmero inteiro qualquer e mostre na tela a sua tabuada. """ print('=' * 10, ' TABUADA ', '=' * 10) n = int(input('Digite um nรบmero: ')) print(f'{n} x {1:2} = {n*1}') print(f'{n} x {2:2} = {n*2}') print(f'{n} x {3:2} = {n*3}') print(f'{n} x {4:2} = {n*4}') print(f'{n} x {5:2} = {n*5}') print(f'{n} x {6:2} = {n*6}') print(f'{n} x {7:2} = {n*7}') print(f'{n} x {8:2} = {n*8}') print(f'{n} x {9:2} = {n*9}') print(f'{n} x {10:2} = {n*10}')
code_to_state = { 'AK': {'name': 'ALASKA', 'fips': '02'}, 'AL': {'name': 'ALABAMA', 'fips': '01'}, 'AR': {'name': 'ARKANSAS', 'fips': '05'}, 'AS': {'name': 'AMERICAN SAMOA', 'fips': '60'}, 'AZ': {'name': 'ARIZONA', 'fips': '04'}, 'CA': {'name': 'CALIFORNIA', 'fips': '06'}, 'CO': {'name': 'COLORADO', 'fips': '08'}, 'CT': {'name': 'CONNECTICUT', 'fips': '09'}, 'DC': {'name': 'DISTRICT OF COLUMBIA', 'fips': '11'}, 'DE': {'name': 'DELAWARE', 'fips': '10'}, 'FL': {'name': 'FLORIDA', 'fips': '12'}, 'FM': {'name': 'FEDERATED STATES OF MICRONESIA', 'fips': '64'}, 'GA': {'name': 'GEORGIA', 'fips': '13'}, 'GU': {'name': 'GUAM', 'fips': '66'}, 'HI': {'name': 'HAWAII', 'fips': '15'}, 'IA': {'name': 'IOWA', 'fips': '19'}, 'ID': {'name': 'IDAHO', 'fips': '16'}, 'IL': {'name': 'ILLINOIS', 'fips': '17'}, 'IN': {'name': 'INDIANA', 'fips': '18'}, 'KS': {'name': 'KANSAS', 'fips': '20'}, 'KY': {'name': 'KENTUCKY', 'fips': '21'}, 'LA': {'name': 'LOUISIANA', 'fips': '22'}, 'MA': {'name': 'MASSACHUSETTS', 'fips': '25'}, 'MD': {'name': 'MARYLAND', 'fips': '24'}, 'ME': {'name': 'MAINE', 'fips': '23'}, 'MH': {'name': 'MARSHALL ISLANDS', 'fips': '68'}, 'MI': {'name': 'MICHIGAN', 'fips': '26'}, 'MN': {'name': 'MINNESOTA', 'fips': '27'}, 'MO': {'name': 'MISSOURI', 'fips': '29'}, 'MP': {'name': 'NORTHERN MARIANA ISLANDS', 'fips': '69'}, 'MS': {'name': 'MISSISSIPPI', 'fips': '28'}, 'MT': {'name': 'MONTANA', 'fips': '30'}, 'NC': {'name': 'NORTH CAROLINA', 'fips': '37'}, 'ND': {'name': 'NORTH DAKOTA', 'fips': '38'}, 'NE': {'name': 'NEBRASKA', 'fips': '31'}, 'NH': {'name': 'NEW HAMPSHIRE', 'fips': '33'}, 'NJ': {'name': 'NEW JERSEY', 'fips': '34'}, 'NM': {'name': 'NEW MEXICO', 'fips': '35'}, 'NV': {'name': 'NEVADA', 'fips': '32'}, 'NY': {'name': 'NEW YORK', 'fips': '36'}, 'OH': {'name': 'OHIO', 'fips': '39'}, 'OK': {'name': 'OKLAHOMA', 'fips': '40'}, 'OR': {'name': 'OREGON', 'fips': '41'}, 'PA': {'name': 'PENNSYLVANIA', 'fips': '42'}, 'PR': {'name': 'PUERTO RICO', 'fips': '72'}, 'PW': {'name': 'PALAU', 'fips': '70'}, 'RI': {'name': 'RHODE ISLAND', 'fips': '44'}, 'SC': {'name': 'SOUTH CAROLINA', 'fips': '45'}, 'SD': {'name': 'SOUTH DAKOTA', 'fips': '46'}, 'TN': {'name': 'TENNESSEE', 'fips': '47'}, 'TX': {'name': 'TEXAS', 'fips': '48'}, 'UT': {'name': 'UTAH', 'fips': '49'}, 'UM': {'name': 'U.S. MINOR OUTLYING ISLANDS', 'fips': '74'}, 'VA': {'name': 'VIRGINIA', 'fips': '51'}, 'VI': {'name': 'VIRGIN ISLANDS', 'fips': '78'}, 'VT': {'name': 'VERMONT', 'fips': '50'}, 'WA': {'name': 'WASHINGTON', 'fips': '53'}, 'WI': {'name': 'WISCONSIN', 'fips': '55'}, 'WV': {'name': 'WEST VIRGINIA', 'fips': '54'}, 'WY': {'name': 'WYOMING', 'fips': '56'} } territory_country_codes = { "ASM": "American Samoa", "GUM": "Guam", "MNP": "Northern Mariana Islands", "PRI": "Puerto Rico", "VIR": "Virgin Islands of the U.S.", "UMI": "U.S. Minor Outlying Islands", "FSM": "Federated States of Micronesia", "MHL": "Marshall Islands", "PLW": "Palau" } state_to_code = {v['name']: k for (k, v) in code_to_state.items()} fips_to_code = {fips['fips']: code for (code, fips) in code_to_state.items()} def pad_codes(location_scope, code_as_float): # Used to convert int/float back to text code: 9.0 -> '09' code_as_float = str(code_as_float).replace('.0', '') if location_scope == 'county': return code_as_float.zfill(3) else: return code_as_float.zfill(2)
class TestGames(object): def __init__(self, game_id): self.game_id = game_id @classmethod def create(self, game_id, highScoreNames=None, maxEntries=None, onlyKeepBestEntry=None, socialNetwork=None): return True @classmethod def delete(self, game_id): return True def getRankedList(self, rankStart=None, rankEnd=None, orderBy=None): return [{"playerID": "foo", "rankPosition": 1, "ScoreEntries": [], "userData": {}, "imgURL": ""}] def setPlayerScore(self, player_id, scoreEntries=None, userData=None): # scoreEntries = [{"name": .., "value": ..}, ] return True def getPlayerRank(self, player_id, orderBy=None): return {"playerID": "foo", "rankPosition": 1, "ScoreEntries": [], "userData": {}, "imgURL": ""}
""" skcom ไพ‹ๅค–ๆจก็ต„ """ class SkcomException(Exception): """ SKCOM ้€š็”จไพ‹ๅค– """ class ShellException(SkcomException): """ ๅœจ PowerShell ็’ฐๅขƒๅ…งๅŸท่กŒๅคฑๆ•— """ def __init__(self, return_code, stderr): super().__init__() self.return_code = return_code self.stderr = stderr.strip() def get_return_code(self): """ TODO """ return self.return_code def get_stderr(self): """ TODO """ return self.stderr def __str__(self): return '(%d) %s' % (self.return_code, self.stderr) class NetworkException(SkcomException): """ ๅœจ PowerShell ็’ฐๅขƒๅ…งๅŸท่กŒๅคฑๆ•— """ def __init__(self, message): super().__init__() self.message = message def get_message(self): """ TODO """ return self.message class InstallationException(SkcomException): """ ๅฅ—ไปถๅฎ‰่ฃๅคฑๆ•— """ def __init__(self, package, required_ver): super().__init__() self.message = '%s %s ๅฎ‰่ฃๅคฑๆ•—' % (package, required_ver) def __str__(self): return self.message class ConfigException(SkcomException): """ ่จญๅฎšๅ€ผ็„กๆณ•ไฝฟ็”จ """ def __init__(self, message, loaded=False): super().__init__() self.message = message self.loaded = loaded def __str__(self): return self.message
# _ __ _ ___ _ ___ _ _ # | |/ /_ _ __ _| |_ ___ __/ __| __ _| |___ _ __ ___| _ \ |_ _ __ _(_)_ _ # | ' <| '_/ _` | _/ _ (_-<__ \/ _` | / _ \ ' \/ -_) _/ | || / _` | | ' \ # |_|\_\_| \__,_|\__\___/__/___/\__,_|_\___/_|_|_\___|_| |_|\_,_\__, |_|_||_| # |___/ # License: BSD License ; see LICENSE # # Main authors: Philipp Bucher (https://github.com/philbucher) # """ This file defines the custom exceptions used in the plugin """ class UserInputError(Exception): pass
# Copyright (c) 2021 by Cisco Systems, Inc. # All rights reserved. expected_output = { 'evi': { 1: { 'bd_id': { 11: { 'eth_tag': { 0 : { 'mac_addr':{ '0050.56a9.f5af': { 'esi': '0000.0000.0000.0000.0000', 'next_hops': [ '11.11.11.2' ] }, 'b4a8.b902.32d6': { 'esi': '0000.0000.0000.0000.0000', 'next_hops': [ 'Gi1/0/3:11' ] } } } } } } } } }
class Produtos(): flag=False def __init__(self,nome: str,quantidade: int): self.__nome=nome self.__quantidade=quantidade Produtos.flag=True #talvez essa verificaรงรฃo fique no estoque agora. @property def quantidade(self): return self.__quantidade @quantidade.setter def quantidade(self,value: int): self.__quantidade=value @property def nome(self): return self.__nome @nome.setter def nome(self,value): self.__nome=value def venda_produtos(produto,qtd): quantidade = int(qtd) if produto.quantidade - quantidade >= 0: produto.quantidade = produto.quantidade - quantidade return True return False
# Copyright 2016-2022 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause # # Hooks specific to the CSCS GPU microbenchmark tests. # def set_gpu_arch(self): '''Set the compile options for the gpu microbenchmarks.''' cs = self.current_system.name cp = self.current_partition.fullname self.gpu_arch = None # Nvidia options self.gpu_build = 'cuda' if cs in {'dom', 'daint'}: self.gpu_arch = '60' if self.current_environ.name not in {'PrgEnv-nvidia'}: self.modules = ['craype-accel-nvidia60', 'cdt-cuda'] elif cs in {'arola', 'tsa'}: self.gpu_arch = '70' self.modules = ['cuda/10.1.243'] elif cs in {'ault'}: self.modules = ['cuda'] if cp in {'ault:amdv100', 'ault:intelv100'}: self.gpu_arch = '70' elif cp in {'ault:amda100'}: self.gpu_arch = '80' # AMD options if cp in {'ault:amdvega'}: self.gpu_build = 'hip' self.modules = ['rocm'] self.gpu_arch = 'gfx900,gfx906' def set_num_gpus_per_node(self): '''Set the GPUs per node for the GPU microbenchmarks.''' cs = self.current_system.name cp = self.current_partition.fullname if cs in {'dom', 'daint'}: self.num_gpus_per_node = 1 elif cs in {'arola', 'tsa'}: self.num_gpus_per_node = 8 elif cp in {'ault:amda100', 'ault:intelv100'}: self.num_gpus_per_node = 4 elif cp in {'ault:amdv100'}: self.num_gpus_per_node = 2 elif cp in {'ault:amdvega'}: self.num_gpus_per_node = 3 else: self.num_gpus_per_node = 1
HTML_VOID_TAGS = [ 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr', ] HTML_TAGS = [ 'a', 'address', 'applet', 'area', 'article', 'aside', 'b', 'base', 'basefont', 'bgsound', 'big', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'code', 'col', 'colgroup', 'command', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figure', 'font', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hr', 'html', 'i', 'iframe', 'image', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'marquee', 'menu', 'meta', 'nav', 'nobr', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 's', 'script', 'section', 'select', 'small', 'source', 'strike', 'strong', 'style', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'tt', 'u', 'ul', 'wbr', 'xmp', ]
LOCAL_TRACE = """ ContractA.methodWithoutArguments() -> 0x00..7a9c [469604 gas] โ”œโ”€โ”€ CALL: SYMBOL.<0x045856de> [461506 gas] โ”œโ”€โ”€ SYMBOL.methodB1(lolol="ice-cream", dynamo=345457847457457458457457457) โ”‚ [402067 gas] โ”‚ โ”œโ”€โ”€ ContractC.getSomeList() -> [ โ”‚ โ”‚ 3425311345134513461345134534531452345, โ”‚ โ”‚ 111344445534535353, โ”‚ โ”‚ 993453434534534534534977788884443333 โ”‚ โ”‚ ] [370103 gas] โ”‚ โ””โ”€โ”€ ContractC.methodC1( โ”‚ windows95="simpler", โ”‚ jamaica=345457847457457458457457457, โ”‚ cardinal=0xF2Df0b975c0C9eFa2f8CA0491C2d1685104d2488 โ”‚ ) [363869 gas] โ”œโ”€โ”€ SYMBOL.callMe(blue=0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C) -> โ”‚ 0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C [233432 gas] โ”œโ”€โ”€ SYMBOL.methodB2(trombone=0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C) [231951 โ”‚ gas] โ”‚ โ”œโ”€โ”€ ContractC.paperwork(0xF2Df0b975c0C9eFa2f8CA0491C2d1685104d2488) -> ( โ”‚ โ”‚ os="simpler", โ”‚ โ”‚ country=345457847457457458457457457, โ”‚ โ”‚ wings=0xF2Df0b975c0C9eFa2f8CA0491C2d1685104d2488 โ”‚ โ”‚ ) [227360 gas] โ”‚ โ”œโ”€โ”€ ContractC.methodC1( โ”‚ โ”‚ windows95="simpler", โ”‚ โ”‚ jamaica=0, โ”‚ โ”‚ cardinal=0x274b028b03A250cA03644E6c578D81f019eE1323 โ”‚ โ”‚ ) [222263 gas] โ”‚ โ”œโ”€โ”€ ContractC.methodC2() [147236 gas] โ”‚ โ””โ”€โ”€ ContractC.methodC2() [122016 gas] โ”œโ”€โ”€ ContractC.addressToValue(0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C) -> 0 โ”‚ [100305 gas] โ”œโ”€โ”€ SYMBOL.bandPractice(0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C) -> 0 [94270 โ”‚ gas] โ”œโ”€โ”€ SYMBOL.methodB1(lolol="lemondrop", dynamo=0) [92321 gas] โ”‚ โ”œโ”€โ”€ ContractC.getSomeList() -> [ โ”‚ โ”‚ 3425311345134513461345134534531452345, โ”‚ โ”‚ 111344445534535353, โ”‚ โ”‚ 993453434534534534534977788884443333 โ”‚ โ”‚ ] [86501 gas] โ”‚ โ””โ”€โ”€ ContractC.methodC1( โ”‚ windows95="simpler", โ”‚ jamaica=0, โ”‚ cardinal=0xF2Df0b975c0C9eFa2f8CA0491C2d1685104d2488 โ”‚ ) [82729 gas] โ””โ”€โ”€ SYMBOL.methodB1(lolol="snitches_get_stiches", dynamo=111) [55252 gas] โ”œโ”€โ”€ ContractC.getSomeList() -> [ โ”‚ 3425311345134513461345134534531452345, โ”‚ 111344445534535353, โ”‚ 993453434534534534534977788884443333 โ”‚ ] [52079 gas] โ””โ”€โ”€ ContractC.methodC1( windows95="simpler", jamaica=111, cardinal=0xF2Df0b975c0C9eFa2f8CA0491C2d1685104d2488 ) [48306 gas] """ MAINNET_TRACE = """ DSProxy.execute(_target=CompoundFlashLoanTaker, _data=0xf7..0000) -> '' [1070997 gas] [0.02016 value] โ””โ”€โ”€ (delegate) CompoundFlashLoanTaker.boostWithLoan( _exData=[ TetherToken, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, 22000000000, 0, 2004750000000000000000000000, 0x3Ba0319533C578527aE69BF7fA2D289F20B9B55c, Exchange, 0xa6..ac67, 2025000000000000000000000000 ], _cAddresses=['CEther', 'CErc20Delegator'], _gasCost=0 ) [1041213 gas] [0.02016 value] โ”œโ”€โ”€ GasToken2.balanceOf(owner=DSProxy) -> 0 [1303 gas] โ”œโ”€โ”€ STATICCALL: Unitroller.<0x5ec88c79> [118577 gas] โ”‚ โ””โ”€โ”€ (delegate) Comptroller.getAccountLiquidity(account=DSProxy) -> [0, 100216217422739835644076, 0] [116582 gas] โ”‚ โ”œโ”€โ”€ CEther.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ 0, โ”‚ โ”‚ 3588278641674, โ”‚ โ”‚ 0, โ”‚ โ”‚ 200289710046448107458251737 โ”‚ โ”‚ ] [7747 gas] โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CEther) -> 493495000000000000000 [2843 gas] โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [0, 0, 0, 207745199249144216861107666] [20072 gas] โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..65d2 [16646 gas] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CDaiDelegate.getAccountSnapshot(account=DSProxy) -> [0, 0, 0, 207745199249144216861107666] [13461 gas] โ”‚ โ”‚ โ”œโ”€โ”€ STATICCALL: 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7.<0x0bebac86> [1215 gas] โ”‚ โ”‚ โ””โ”€โ”€ STATICCALL: 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7.<0xc92aecc4> [1093 gas] โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1006638000000000000 [2931 gas] โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ 0, โ”‚ โ”‚ 1997736502878, โ”‚ โ”‚ 0, โ”‚ โ”‚ 201101221772832467767996110 โ”‚ โ”‚ ] [16641 gas] โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..2ece [13215 gas] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CCompLikeDelegate.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ 0, โ”‚ โ”‚ 1997736502878, โ”‚ โ”‚ 0, โ”‚ โ”‚ 201101221772832467767996110 โ”‚ โ”‚ ] [10030 gas] โ”‚ โ”‚ โ””โ”€โ”€ STATICCALL: 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984.<0x70a08231> [1497 gas] โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 3722050000000000000 [3635 gas] โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [0, 0, 166685375217, 203684337093459] [19027 gas] โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..0b53 [16924 gas] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CErc20Delegate.getAccountSnapshot(account=DSProxy) -> [0, 0, 166685375217, 203684337093459] [13739 gas] โ”‚ โ”‚ โ””โ”€โ”€ TetherToken.balanceOf(who=CErc20Delegator) -> 9409870971804 [2431 gas] โ”‚ โ””โ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1000000000000000000000000000000 [2299 gas] โ”œโ”€โ”€ STATICCALL: Unitroller.<0x7dc0d1d0> [3073 gas] โ”‚ โ””โ”€โ”€ (delegate) Comptroller.oracle() -> UniswapAnchoredView [1105 gas] โ”œโ”€โ”€ CErc20Delegator.accrueInterest() -> 0 [42845 gas] โ”‚ โ””โ”€โ”€ (delegate) CErc20Delegate.accrueInterest() -> 0 [40830 gas] โ”‚ โ”œโ”€โ”€ TetherToken.balanceOf(who=CErc20Delegator) -> 9409870971804 [2431 gas] โ”‚ โ””โ”€โ”€ JumpRateModelV2.getBorrowRate( โ”‚ cash=9409870971804, โ”‚ borrows=31969908998585, โ”‚ reserves=116282802900 โ”‚ ) -> 18425955753 [3858 gas] โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1000000000000000000000000000000 [2299 gas] โ”œโ”€โ”€ TetherToken.balanceOf(who=0x3dfd23A6c5E8BbcFc9581d2E864a68feb6a076d3) -> 7334120405865 [2431 gas] โ”œโ”€โ”€ CALL: Unitroller.<0xc2998238> [7351 gas] โ”‚ โ””โ”€โ”€ (delegate) Comptroller.enterMarkets(cTokens=['CEther', 'CErc20Delegator']) -> [0, 0] [5335 gas] โ”œโ”€โ”€ DSProxy.owner() -> tx.origin [1247 gas] โ”œโ”€โ”€ STATICCALL: Unitroller.<0x5ec88c79> [118577 gas] โ”‚ โ””โ”€โ”€ (delegate) Comptroller.getAccountLiquidity(account=DSProxy) -> [0, 100215845790739835644076, 0] [116582 gas] โ”‚ โ”œโ”€โ”€ CEther.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ 0, โ”‚ โ”‚ 3588278641674, โ”‚ โ”‚ 0, โ”‚ โ”‚ 200289710046448107458251737 โ”‚ โ”‚ ] [7747 gas] โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CEther) -> 493495000000000000000 [2843 gas] โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [0, 0, 0, 207745199249144216861107666] [20072 gas] โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..65d2 [16646 gas] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CDaiDelegate.getAccountSnapshot(account=DSProxy) -> [0, 0, 0, 207745199249144216861107666] [13461 gas] โ”‚ โ”‚ โ”œโ”€โ”€ STATICCALL: 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7.<0x0bebac86> [1215 gas] โ”‚ โ”‚ โ””โ”€โ”€ STATICCALL: 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7.<0xc92aecc4> [1093 gas] โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1006638000000000000 [2931 gas] โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ 0, โ”‚ โ”‚ 1997736502878, โ”‚ โ”‚ 0, โ”‚ โ”‚ 201101221772832467767996110 โ”‚ โ”‚ ] [16641 gas] โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..2ece [13215 gas] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CCompLikeDelegate.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ 0, โ”‚ โ”‚ 1997736502878, โ”‚ โ”‚ 0, โ”‚ โ”‚ 201101221772832467767996110 โ”‚ โ”‚ ] [10030 gas] โ”‚ โ”‚ โ””โ”€โ”€ STATICCALL: 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984.<0x70a08231> [1497 gas] โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 3722050000000000000 [3635 gas] โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [0, 0, 166685746849, 203684618567521] [19027 gas] โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..ff61 [16924 gas] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CErc20Delegate.getAccountSnapshot(account=DSProxy) -> [0, 0, 166685746849, 203684618567521] [13739 gas] โ”‚ โ”‚ โ””โ”€โ”€ TetherToken.balanceOf(who=CErc20Delegator) -> 9409870971804 [2431 gas] โ”‚ โ””โ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1000000000000000000000000000000 [2299 gas] โ”œโ”€โ”€ STATICCALL: Unitroller.<0x7dc0d1d0> [3073 gas] โ”‚ โ””โ”€โ”€ (delegate) Comptroller.oracle() -> UniswapAnchoredView [1105 gas] โ”œโ”€โ”€ CErc20Delegator.accrueInterest() -> 0 [3195 gas] โ”‚ โ””โ”€โ”€ (delegate) CErc20Delegate.accrueInterest() -> 0 [1180 gas] โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1000000000000000000000000000000 [2299 gas] โ”œโ”€โ”€ CErc20Delegator.borrow(borrowAmount=22000000000) -> 0 [274012 gas] โ”‚ โ””โ”€โ”€ (delegate) CErc20Delegate.borrow(borrowAmount=22000000000) -> 0 [271908 gas] โ”‚ โ”œโ”€โ”€ CALL: Unitroller.<0xda3d454c> [193142 gas] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) Comptroller.borrowAllowed( โ”‚ โ”‚ cToken=CErc20Delegator, โ”‚ โ”‚ borrower=DSProxy, โ”‚ โ”‚ borrowAmount=22000000000 โ”‚ โ”‚ ) -> 0 [191162 gas] โ”‚ โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1000000000000000000000000000000 [2299 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CEther.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ โ”‚ 0, โ”‚ โ”‚ โ”‚ 3588278641674, โ”‚ โ”‚ โ”‚ 0, โ”‚ โ”‚ โ”‚ 200289710046448107458251737 โ”‚ โ”‚ โ”‚ ] [7747 gas] โ”‚ โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CEther) -> 493495000000000000000 [2843 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [0, 0, 0, 207745199249144216861107666] [20072 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..65d2 [16646 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CDaiDelegate.getAccountSnapshot(account=DSProxy) -> [0, 0, 0, 207745199249144216861107666] [13461 gas] โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ STATICCALL: 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7.<0x0bebac86> [1215 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ STATICCALL: 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7.<0xc92aecc4> [1093 gas] โ”‚ โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1006638000000000000 [2931 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ โ”‚ 0, โ”‚ โ”‚ โ”‚ 1997736502878, โ”‚ โ”‚ โ”‚ 0, โ”‚ โ”‚ โ”‚ 201101221772832467767996110 โ”‚ โ”‚ โ”‚ ] [16641 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..2ece [13215 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CCompLikeDelegate.getAccountSnapshot(account=DSProxy) -> [ โ”‚ โ”‚ โ”‚ 0, โ”‚ โ”‚ โ”‚ 1997736502878, โ”‚ โ”‚ โ”‚ 0, โ”‚ โ”‚ โ”‚ 201101221772832467767996110 โ”‚ โ”‚ โ”‚ ] [10030 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ STATICCALL: 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984.<0x70a08231> [1497 gas] โ”‚ โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 3722050000000000000 [3635 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CErc20Delegator.getAccountSnapshot(account=DSProxy) -> [0, 0, 166685746849, 203684618567521] [19027 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0xc3..52dd) -> 0x00..ff61 [16924 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CErc20Delegate.getAccountSnapshot(account=DSProxy) -> [0, 0, 166685746849, 203684618567521] [13739 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ TetherToken.balanceOf(who=CErc20Delegator) -> 9409870971804 [2431 gas] โ”‚ โ”‚ โ”œโ”€โ”€ UniswapAnchoredView.getUnderlyingPrice(cToken=CErc20Delegator) -> 1000000000000000000000000000000 [2299 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CErc20Delegator.borrowIndex() -> 1045063620842360840 [1087 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CErc20Delegator.totalBorrows() -> 31969980276796 [1154 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CErc20Delegator.borrowBalanceStored(account=DSProxy) -> 166685746849 [9329 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ CErc20Delegator.delegateToImplementation(data=0x95..52dd) -> 0x00..a6a1 [7205 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ (delegate) CErc20Delegate.borrowBalanceStored(account=DSProxy) -> 166685746849 [4248 gas] โ”‚ โ”‚ โ”œโ”€โ”€ Comp.balanceOf(account=Unitroller) -> 37814309293046111340279 [1488 gas] โ”‚ โ”‚ โ””โ”€โ”€ Comp.transfer(dst=DSProxy, rawAmount=454823446030875984) -> True [19090 gas] โ”‚ โ”œโ”€โ”€ TetherToken.balanceOf(who=CErc20Delegator) -> 9409870971804 [2431 gas] โ”‚ โ”œโ”€โ”€ TetherToken.transfer(_to=DSProxy, _value=22000000000) [34601 gas] โ”‚ โ””โ”€โ”€ CALL: Unitroller.<0x5c778605> [2261 gas] โ”‚ โ””โ”€โ”€ (delegate) Comptroller.borrowVerify( โ”‚ cToken=CErc20Delegator, โ”‚ borrower=DSProxy, โ”‚ borrowAmount=22000000000 โ”‚ ) [354 gas] โ”œโ”€โ”€ CErc20Delegator.underlying() -> TetherToken [1148 gas] โ”œโ”€โ”€ BotRegistry.botList(tx.origin) -> False [1136 gas] โ”œโ”€โ”€ CErc20Delegator.underlying() -> TetherToken [1148 gas] โ”œโ”€โ”€ Discount.isCustomFeeSet(_user=tx.origin) -> False [1299 gas] โ”œโ”€โ”€ TetherToken.transfer( โ”‚ _to=0x322d58b9E75a6918f7e7849AEe0fF09369977e08, โ”‚ _value=55000000 โ”‚ ) [15401 gas] โ”œโ”€โ”€ TetherToken.approve(_spender=ERC20Proxy, _value=0) [4160 gas] โ”œโ”€โ”€ TetherToken.approve(_spender=ERC20Proxy, _value=21945000000) [24353 gas] โ”œโ”€โ”€ ZrxAllowlist.isNonPayableAddr(_addr=Exchange) -> False [1155 gas] โ”œโ”€โ”€ ZrxAllowlist.isZrxAddr(_zrxAddr=Exchange) -> True [1177 gas] โ”œโ”€โ”€ Exchange.marketSellOrdersFillOrKill( โ”‚ orders=[ โ”‚ [ โ”‚ 0x57845987C8C859D52931eE248D8d84aB10532407, โ”‚ DSProxy, โ”‚ 0x1000000000000000000000000000000000000011, โ”‚ ZERO_ADDRESS, โ”‚ 44587161153335369728, โ”‚ 22021999999, โ”‚ 0, โ”‚ 0, โ”‚ 1605676234, โ”‚ 1605676134823, โ”‚ 0xf4..6cc2, โ”‚ 0xf4..1ec7, โ”‚ '', โ”‚ '' โ”‚ ], โ”‚ [ โ”‚ 0xC47b7094F378e54347e281AaB170E8ccA69d880A, โ”‚ ZERO_ADDRESS, โ”‚ ZERO_ADDRESS, โ”‚ ZERO_ADDRESS, โ”‚ 44101517707448430621, โ”‚ 22000000000, โ”‚ 0, โ”‚ 0, โ”‚ 1605683335, โ”‚ 45887941670002145135917800926357172768151492260295357762609187565998706361158, โ”‚ 0xdc..6cc2, โ”‚ 0xf4..1ec7, โ”‚ '', โ”‚ '' โ”‚ ] โ”‚ ], โ”‚ takerAssetFillAmount=21945000000, โ”‚ signatures=['0x1c..f103', "\'\\x04\'"] โ”‚ ) -> ( โ”‚ makerAssetFilledAmount=44431261990481152968, โ”‚ takerAssetFilledAmount=21945000000, โ”‚ makerFeePaid=0, โ”‚ takerFeePaid=0, โ”‚ protocolFeePaid=6650000000000000 โ”‚ ) [172105 gas] [0.02016 value] โ”‚ โ”œโ”€โ”€ (delegate) Exchange.fillOrder( โ”‚ โ”‚ order=[ โ”‚ โ”‚ 0x57845987C8C859D52931eE248D8d84aB10532407, โ”‚ โ”‚ DSProxy, โ”‚ โ”‚ 0x1000000000000000000000000000000000000011, โ”‚ โ”‚ ZERO_ADDRESS, โ”‚ โ”‚ 44587161153335369728, โ”‚ โ”‚ 22021999999, โ”‚ โ”‚ 0, โ”‚ โ”‚ 0, โ”‚ โ”‚ 1605676234, โ”‚ โ”‚ 1605676134823, โ”‚ โ”‚ 0xf4..6cc2, โ”‚ โ”‚ 0xf4..1ec7, โ”‚ โ”‚ '', โ”‚ โ”‚ '' โ”‚ โ”‚ ], โ”‚ โ”‚ takerAssetFillAmount=21945000000, โ”‚ โ”‚ signature=0x1c..f103 โ”‚ โ”‚ ) -> ( โ”‚ โ”‚ makerAssetFilledAmount=44431261990481152968, โ”‚ โ”‚ takerAssetFilledAmount=21945000000, โ”‚ โ”‚ makerFeePaid=0, โ”‚ โ”‚ takerFeePaid=0, โ”‚ โ”‚ protocolFeePaid=6650000000000000 โ”‚ โ”‚ ) [140727 gas] [0.02016 value] โ”‚ โ”‚ โ”œโ”€โ”€ CALL: ERC20Proxy.<0xa85e59e4> [19278 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ TetherToken.transferFrom( โ”‚ โ”‚ โ”‚ _from=DSProxy, โ”‚ โ”‚ โ”‚ _to=0x57845987C8C859D52931eE248D8d84aB10532407, โ”‚ โ”‚ โ”‚ _value=21945000000 โ”‚ โ”‚ โ”‚ ) [17224 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CALL: ERC20Proxy.<0xa85e59e4> [33079 gas] โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ WETH9.transferFrom( โ”‚ โ”‚ โ”‚ src=0x57845987C8C859D52931eE248D8d84aB10532407, โ”‚ โ”‚ โ”‚ dst=DSProxy, โ”‚ โ”‚ โ”‚ wad=44431261990481152968 โ”‚ โ”‚ โ”‚ ) -> True [31025 gas] โ”‚ โ”‚ โ””โ”€โ”€ CALL: StakingProxy.<0xa3b4a327> [20145 gas] [0.00665 value] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) Staking.payProtocolFee( โ”‚ โ”‚ makerAddress=0x57845987C8C859D52931eE248D8d84aB10532407, โ”‚ โ”‚ payerAddress=DSProxy, โ”‚ โ”‚ protocolFee=6650000000000000 โ”‚ โ”‚ ) [18173 gas] [0.00665 value] โ”‚ โ””โ”€โ”€ CALL: DSProxy [40 gas] [0.01351 value] โ”œโ”€โ”€ TetherToken.balanceOf(who=DSProxy) -> 0 [2431 gas] โ”œโ”€โ”€ WETH9.balanceOf(DSProxy) -> 44431261990481152968 [1234 gas] โ”œโ”€โ”€ WETH9.withdraw(wad=44431261990481152968) [11880 gas] โ”‚ โ””โ”€โ”€ CALL: DSProxy [40 gas] [44.43126199 value] โ”œโ”€โ”€ WETH9.balanceOf(DSProxy) -> 0 [1234 gas] โ”œโ”€โ”€ CEther.mint() [128739 gas] [44.42461199 value] โ”‚ โ”œโ”€โ”€ WhitePaperInterestRateModel.getBorrowRate( โ”‚ โ”‚ cash=1167291315524828085504226, โ”‚ โ”‚ borrows=51205735075389706087574, โ”‚ โ”‚ _reserves=98073114143716073182 โ”‚ โ”‚ ) -> [0, 11511781014] [5403 gas] โ”‚ โ”œโ”€โ”€ CALL: Unitroller.<0x4ef4c3e1> [48350 gas] โ”‚ โ”‚ โ””โ”€โ”€ (delegate) Comptroller.mintAllowed( โ”‚ โ”‚ cToken=CEther, โ”‚ โ”‚ minter=DSProxy, โ”‚ โ”‚ mintAmount=44424611990481152968 โ”‚ โ”‚ ) -> 0 [46370 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CEther.totalSupply() -> 6083183091150922 [1044 gas] โ”‚ โ”‚ โ”œโ”€โ”€ CEther.balanceOf(owner=DSProxy) -> 3588278641674 [1253 gas] โ”‚ โ”‚ โ”œโ”€โ”€ Comp.balanceOf(account=Unitroller) -> 37813854469600080464295 [1488 gas] โ”‚ โ”‚ โ””โ”€โ”€ Comp.transfer(dst=DSProxy, rawAmount=39357597512189848) -> True [10690 gas] โ”‚ โ””โ”€โ”€ CALL: Unitroller.<0x41c728b9> [2316 gas] โ”‚ โ””โ”€โ”€ (delegate) Comptroller.mintVerify( โ”‚ cToken=CEther, โ”‚ minter=DSProxy, โ”‚ actualMintAmount=44424611990481152968, โ”‚ mintTokens=221801768562 โ”‚ ) [403 gas] โ”œโ”€โ”€ CALL: 0x5668EAd1eDB8E2a4d724C8fb9cB5fFEabEB422dc [0 gas] [0.02016 value] โ””โ”€โ”€ DefisaverLogger.Log( _contract=DSProxy, _caller=tx.origin, _logName="CompoundBoost", _data=0x00..1ec7 ) [5060 gas] """
class BlessError(Exception): """ Base Exception for Bless """
#!/usr/bin/env python # -*- coding: UTF-8 -*- # https://docs.python.org/3/library/functions.html#bool # https://docs.python.org/3/library/stdtypes.html#truth # class bool([x]) # Return a Boolean value, i.e. one of True or False. def test1(): print(bool(0)) print(bool(0.0)) print(bool('')) print(bool(None)) print(bool([])) print(bool({})) print(bool(())) print(bool(set())) print(bool(range(0))) print(bool(False)) def test2(): print(bool(100)) print(bool(100.99)) print(bool('huangjian')) print(bool([1, 2, 3])) print(bool({1, 2, 3})) print(bool((1, 2, 3))) print(bool({"a": 1})) print(bool(range(10))) print(bool(True)) def main(): test1() test2() if __name__ == "__main__": main()