content
stringlengths
7
1.05M
MONTHS = ["january", "february", "march", "april", "may", "june","july", "august", "september","october","november", "december"] DAYS = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"] def getDate(): alvin.speak('Today is monday jun 14') def get_date(text): text = text.lower() today = datetime.date.today() if text.count("today") > 0: return today day = -1 day_of_week = -1 month = -1 year = today.year for word in text.split(): if word in MONTHS: month = MONTHS.index(word) + 1 elif word in DAYS: day_of_week = DAYS.index(word) elif word.isdigit(): day = int(word) else: for ext in DAY_EXTENTIONS: found = word.find(ext) if found > 0: try: day = int(word[:found]) except: pass # THE NEW PART STARTS HERE if month < today.month and month != -1: # if the month mentioned is before the current month set the year to the next year = year+1 # This is slighlty different from the video but the correct version if month == -1 and day != -1: # if we didn't find a month, but we have a day if day < today.day: month = today.month + 1 else: month = today.month # if we only found a dta of the week if month == -1 and day == -1 and day_of_week != -1: current_day_of_week = today.weekday() dif = day_of_week - current_day_of_week if dif < 0: dif += 7 if text.count("next") >= 1: dif += 7 return today + datetime.timedelta(dif) if day != -1: return datetime.date(month=month, day=day, year=year)
# # Copyright 2019 XEBIALABS # # 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. # def destroyPlan( context ): if delta.operation == "DESTROY": context.addStep(steps.os_script( description = "Upload project for datical [%s]" % (previousDeployed.name), order = 40, script = "datical/datical_upload", freemarker_context = {'deployed': previousDeployed} )) # context.addStep(steps.os_script( # description = "Undeploy datical [%s]" % previousDeployed.name, # order = 43, # script = "datical/datical_undeploy", # freemarker_context={'deployed': previousDeployed} # )) context.addStep(steps.os_script( description = "Remove project [%s] from server" % previousDeployed.name, order = 44, script = "datical/datical_remove", freemarker_context={'deployed': previousDeployed} )) # Optional "Status" steps: if previousDeployed.runStatus : context.addStep(steps.os_script( description = "Status for datical project [%s]" % previousDeployed.name, order = 41, script = "datical/datical_status", freemarker_context={'deployed': previousDeployed} )) # End previousDeployed.runStatus # End if delta.operation == "DESTROY" # End def destroyPlan destroyPlan( context )
num_cases = int(input()) # Graph is small (less than 27 nodes), and we can represent the disjoint set using an array. for c in range(num_cases): forest = [-1] * 26 partition_id = 0 while True: line = input().strip() if line[0] == "*": line = input().strip().split(",") # Report here num_acorns = len(line) - sum(x > 0 for x in forest) num_trees = len(set(forest)) - 1 print("There are {} tree(s) and {} acorn(s).".format(num_trees, num_acorns)) break else: u = ord(line[1]) - ord('A') v = ord(line[3]) - ord('A') if forest[u] == -1: if forest[v] == -1: partition_id += 1 forest[u] = forest[v] = partition_id else: forest[u] = forest[v] else: if forest[v] == -1: forest[v] = forest[u] else: temp = forest[u] for i in range(len(forest)): if forest[i] == temp: forest[i] = forest[v]
# r_to_d converts from radius as an integer or float to diameter. def r_to_d ( radius ): if radius < 0: radius = -radius print ( "in function radius= ->{}<-".format(radius) ) diameter = radius * 2 print ( "in function diameter= ->{}<-".format(diameter) ) return (diameter) # Automated Test if __name__ == "__main__": n_err = 0 r = 2 print ( "in test radious={}".format(r) ) x = r_to_d ( r ) if x != 4: n_err = n_err + 1 print ( "Error: Test 1: conversion not working, expected {} got {}".format ( 4, x ) ) r = -2 x = r_to_d ( r ) if x != 4: n_err = n_err + 1 print ( "Error: Test 1: conversion not working, expected {} got {}".format ( 4, x ) ) x = r_to_d ( 0 ) if x != 0: n_err = n_err + 1 print ( "Error: Test 2: conversion not working, expected {} got {}".format ( 0, x ) ) if n_err == 0 : print ( "PASS" ) else: print ( "FAILED" )
class TransferControl: def __init__(self, req): self.req = req async def check_balance(self): """ :return: """ endpoint = 'balance' return await self.req.get(endpoint=endpoint) async def check_balance_ledger(self): """ :return: """ endpoint = 'balance/ledger' return await self.req.get(endpoint=endpoint) async def resend_otp(self, **kwargs): """ :param kwargs: :return: """ endpoint = "transfer/resend_otp" return await self.req.post(endpoint=endpoint, json=kwargs) async def disable_otp(self): """ :return: """ endpoint = "transfer/disable_otp" return await self.req.post(endpoint=endpoint) async def finalize_disable_otp(self, *, otp): """ :param otp: :return: """ endpoint = "transfer/disable_otp_finalize" return await self.req.post(endpoint=endpoint, json={'otp': otp}) async def enable_otp(self): """ :return: """ endpoint = "transfer/enable_otp" return await self.req.post(endpoint=endpoint)
set_name(0x80122CDC, "PresOnlyTestRoutine__Fv", SN_NOWARN) set_name(0x80122D04, "FeInitBuffer__Fv", SN_NOWARN) set_name(0x80122D2C, "FeAddEntry__Fii8TXT_JUSTiP7FeTableP5CFont", SN_NOWARN) set_name(0x80122D9C, "FeAddTable__FP11FeMenuTablei", SN_NOWARN) set_name(0x80122E1C, "FeDrawBuffer__Fv", SN_NOWARN) set_name(0x801232AC, "FeNewMenu__FP7FeTable", SN_NOWARN) set_name(0x80123318, "FePrevMenu__Fv", SN_NOWARN) set_name(0x80123390, "FeSelUp__Fi", SN_NOWARN) set_name(0x80123478, "FeSelDown__Fi", SN_NOWARN) set_name(0x8012355C, "FeGetCursor__Fv", SN_NOWARN) set_name(0x80123570, "FeSelect__Fv", SN_NOWARN) set_name(0x801235B4, "FeMainKeyCtrl__FP7CScreen", SN_NOWARN) set_name(0x801237A4, "InitDummyMenu__Fv", SN_NOWARN) set_name(0x801237AC, "InitFrontEnd__FP9FE_CREATE", SN_NOWARN) set_name(0x80123870, "FeInitMainMenu__Fv", SN_NOWARN) set_name(0x801238D0, "FeInitNewGameMenu__Fv", SN_NOWARN) set_name(0x8012391C, "FeNewGameMenuCtrl__Fv", SN_NOWARN) set_name(0x80123A10, "FeInitPlayer1ClassMenu__Fv", SN_NOWARN) set_name(0x80123A60, "FeInitPlayer2ClassMenu__Fv", SN_NOWARN) set_name(0x80123AB0, "FePlayerClassMenuCtrl__Fv", SN_NOWARN) set_name(0x80123AF8, "FeDrawChrClass__Fv", SN_NOWARN) set_name(0x80123F94, "FeInitNewP1NameMenu__Fv", SN_NOWARN) set_name(0x80123FE4, "FeInitNewP2NameMenu__Fv", SN_NOWARN) set_name(0x80124034, "FeNewNameMenuCtrl__Fv", SN_NOWARN) set_name(0x801244BC, "FeCopyPlayerInfoForReturn__Fv", SN_NOWARN) set_name(0x80124560, "FeEnterGame__Fv", SN_NOWARN) set_name(0x80124588, "FeInitLoadMemcardSelect__Fv", SN_NOWARN) set_name(0x801245D0, "FeInitLoadChar1Menu__Fv", SN_NOWARN) set_name(0x8012463C, "FeInitLoadChar2Menu__Fv", SN_NOWARN) set_name(0x801246A8, "FeInitDifficultyMenu__Fv", SN_NOWARN) set_name(0x801246EC, "FeDifficultyMenuCtrl__Fv", SN_NOWARN) set_name(0x801247A4, "FeInitBackgroundMenu__Fv", SN_NOWARN) set_name(0x801247EC, "FeInitBook1Menu__Fv", SN_NOWARN) set_name(0x80124838, "FeInitBook2Menu__Fv", SN_NOWARN) set_name(0x80124884, "FeBackBookMenuCtrl__Fv", SN_NOWARN) set_name(0x80124A80, "PlayDemo__Fv", SN_NOWARN) set_name(0x80124A94, "FrontEndTask__FP4TASK", SN_NOWARN) set_name(0x80124E64, "McMainCharKeyCtrl__Fv", SN_NOWARN) set_name(0x80125128, "___6Dialog", SN_NOWARN) set_name(0x80125150, "__6Dialog", SN_NOWARN) set_name(0x801251AC, "___7CScreen", SN_NOWARN) set_name(0x80125D24, "InitCredits__Fv", SN_NOWARN) set_name(0x80125D60, "PrintCredits__FPciiiii", SN_NOWARN) set_name(0x80126580, "DrawCreditsTitle__Fiiii", SN_NOWARN) set_name(0x80126650, "DrawCreditsSubTitle__Fiiii", SN_NOWARN) set_name(0x80126720, "DoCredits__Fv", SN_NOWARN) set_name(0x8012697C, "PRIM_GetPrim__FPP8POLY_FT4", SN_NOWARN) set_name(0x801269F8, "GetCharHeight__5CFontc", SN_NOWARN) set_name(0x80126A30, "GetCharWidth__5CFontc", SN_NOWARN) set_name(0x80126A88, "___7CScreen_addr_80126A88", SN_NOWARN) set_name(0x80126AA8, "GetFr__7TextDati", SN_NOWARN) set_name(0x8012B0A0, "endian_swap__FPUci", SN_NOWARN) set_name(0x8012B0D4, "to_sjis__Fc", SN_NOWARN) set_name(0x8012B154, "to_ascii__FUs", SN_NOWARN) set_name(0x8012B1D4, "ascii_to_sjis__FPcPUs", SN_NOWARN) set_name(0x8012B268, "sjis_to_ascii__FPUsPc", SN_NOWARN) set_name(0x8012B2F0, "test_hw_event__Fv", SN_NOWARN) set_name(0x8012B380, "read_card_directory__Fi", SN_NOWARN) set_name(0x8012B5B8, "test_card_format__Fi", SN_NOWARN) set_name(0x8012B648, "checksum_data__FPci", SN_NOWARN) set_name(0x8012B684, "delete_card_file__Fii", SN_NOWARN) set_name(0x8012B77C, "read_card_file__FiiiPc", SN_NOWARN) set_name(0x8012B934, "format_card__Fi", SN_NOWARN) set_name(0x8012B9E4, "write_card_file__FiiPcT2PUcPUsiT4", SN_NOWARN) set_name(0x8012BD2C, "new_card__Fi", SN_NOWARN) set_name(0x8012BDA8, "service_card__Fi", SN_NOWARN) set_name(0x801480E4, "GetFileNumber__FiPc", SN_NOWARN) set_name(0x801481A4, "DoSaveCharacter__FPc", SN_NOWARN) set_name(0x8014826C, "DoSaveGame__Fv", SN_NOWARN) set_name(0x8014832C, "DoLoadGame__Fv", SN_NOWARN) set_name(0x8014836C, "DoFrontEndLoadCharacter__FPc", SN_NOWARN) set_name(0x801483C8, "McInitLoadCard1Menu__Fv", SN_NOWARN) set_name(0x80148414, "McInitLoadCard2Menu__Fv", SN_NOWARN) set_name(0x80148460, "ChooseCardLoad__Fv", SN_NOWARN) set_name(0x801484FC, "McInitLoadCharMenu__Fv", SN_NOWARN) set_name(0x80148524, "McInitLoadGameMenu__Fv", SN_NOWARN) set_name(0x80148598, "McMainKeyCtrl__Fv", SN_NOWARN) set_name(0x80148744, "ShowAlertBox__Fv", SN_NOWARN) set_name(0x80148880, "GetLoadStatusMessage__FPc", SN_NOWARN) set_name(0x80148918, "GetSaveStatusMessage__FiPc", SN_NOWARN) set_name(0x80148A00, "SetRGB__6DialogUcUcUc", SN_NOWARN) set_name(0x80148A20, "SetBack__6Dialogi", SN_NOWARN) set_name(0x80148A28, "SetBorder__6Dialogi", SN_NOWARN) set_name(0x80148A30, "___6Dialog_addr_80148A30", SN_NOWARN) set_name(0x80148A58, "__6Dialog_addr_80148A58", SN_NOWARN) set_name(0x80148AB4, "ILoad__Fv", SN_NOWARN) set_name(0x80148B08, "LoadQuest__Fi", SN_NOWARN) set_name(0x80148BD0, "ISave__Fi", SN_NOWARN) set_name(0x80148C30, "SaveQuest__Fi", SN_NOWARN) set_name(0x80148CFC, "PSX_GM_SaveGame__FiPcT1", SN_NOWARN) set_name(0x80148F44, "PSX_GM_LoadGame__FUcii", SN_NOWARN) set_name(0x801491C0, "PSX_CH_LoadGame__Fii", SN_NOWARN) set_name(0x80149304, "PSX_CH_SaveGame__FiPcT1", SN_NOWARN) set_name(0x8012526C, "CreditsTitle", SN_NOWARN) set_name(0x80125414, "CreditsSubTitle", SN_NOWARN) set_name(0x80125888, "CreditsText", SN_NOWARN) set_name(0x80125990, "CreditsTable", SN_NOWARN) set_name(0x80126BA0, "card_dir", SN_NOWARN) set_name(0x801270A0, "card_header", SN_NOWARN) set_name(0x80126AC4, "sjis_table", SN_NOWARN) set_name(0x8012C0E4, "save_buffer", SN_NOWARN) set_name(0x8012C04C, "McLoadGameMenu", SN_NOWARN) set_name(0x8012C02C, "CharFileList", SN_NOWARN) set_name(0x8012C040, "Classes", SN_NOWARN) set_name(0x8012C068, "McLoadCharMenu", SN_NOWARN) set_name(0x8012C084, "McLoadCard1Menu", SN_NOWARN) set_name(0x8012C0A0, "McLoadCard2Menu", SN_NOWARN)
#Получение размера a = {0, 1, 2, 3} print(len(a)) #4 #Добавление элемента a = {0, 1, 2, 3} a.add(4) print(a) #{0, 1, 2, 3, 4} #Удаление элемента a = {0, 1, 2, 3} a.remove(3) print(a) #{0, 1, 2} #Полная очистка a = {0, 1, 2, 3} a.clear() print(a) #set()
cards = {} for card in input().split(): cards.setdefault(card[0], 0) cards[card[0]] += 1 print(max(cards.values()))
""" Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor g[i], which is the minimum size of a cookie that the child will be content with; and each cookie j has a size s[j]. If s[j] >= g[i], we can assign the cookie j to the child i, and the child i will be content. Your goal is to maximize the number of your content children and output the maximum number.     Example 1: Input: g = [1,2,3], s = [1,1] Output: 1 Explanation: You have 3 children and 2 cookies. The greed factors of 3 children are 1, 2, 3. And even though you have 2 cookies, since their size is both 1, you could only make the child whose greed factor is 1 content. You need to output 1. Example 2: Input: g = [1,2], s = [1,2,3] Output: 2 Explanation: You have 2 children and 3 cookies. The greed factors of 2 children are 1, 2. You have 3 cookies and their sizes are big enough to gratify all of the children, You need to output 2.   Constraints: 1 <= g.length <= 3 * 104 0 <= s.length <= 3 * 104 1 <= g[i], s[j] <= 231 - 1 """ class Solution(object): def findContentChildren(self, g, s): """ :type g: List[int] :type s: List[int] :rtype: int """ g.sort() s.sort() ls = len(s) r = 0 j = 0 for i in xrange(len(g)): while j < ls and g[i] > s[j]: j += 1 if j < ls: r += 1 j += 1 return r
def change_var(a): global x x=a return x def change_var2(b): x=b return x change_var(3) print(x)
# 3. uzdevums # my_text = input("Ievadiet savu tekstu: ") # text_1 = "nav" # text_2 = "slikts" # if my_text.find(text_1) != -1 and my_text.find(text_2) != -1: # new_text=my_text.replace(text_1, "ir" ) # new_text=new_text.replace(text_2, "labs" ) # print(new_text) # else: # print(my_text) # 3. Uzrakstīt programmu teksta pārveidošanai # text = input('Please enter your text \n ') # lower_text = text.lower() # text_bad = 'slikts' # text_bad_fem = 'slikta' # text_no = 'nav' # text_good = 'ir labs' # text_good_fem = 'ir laba' # is_no = text_no in lower_text #convert text to lover case # is_bad = text_bad in lower_text #check for male version # is_bad_fem = text_bad_fem in lower_text #check for female version # if (is_no and is_bad) or (is_no and is_bad_fem): # if is_bad_fem: # text_good = text_good_fem # text_bad = text_bad_fem # no_index = lower_text.find(text_no) # bad_index = lower_text.rfind(text_bad) + len(text_bad) # if no_index > bad_index: # nav comes after slikts # print(text) # else: # new_text = text[:no_index] + text_good + text[bad_index:] # print(new_text.capitalize()) # else: # print(text) word_string = str(input("Enter text: ")) gender = word_string.find("slikt") nav_index = word_string.find("nav") slikt_index = word_string.rfind("slikt") if nav_index < slikt_index and nav_index > 0 and slikt_index > 0: if word_string[gender+5] == "s": print(word_string[:nav_index] + "ir labs" + word_string[word_string.rfind("slikts")+6:]) elif word_string[gender+5] == "a": print(word_string[:nav_index] + "ir laba" + word_string[word_string.rfind("slikta")+6:]) else:print(word_string)
# SERASSI É PAR ?/ n = int(input('Kants que você quer? _ ')) for i in range(0, n + 1, 2): print(i, end=' ') print('\n\nJeito alternativo:') # consome mais processamento pq tem mais laços for j in range(0, n + 1): if j % 2 == 0: print(j, end=' ')
''' Örnek 3.5: İki farklı kompleks sayının toplamını hesaplayan programı kodlayalım. ''' a = 2.5 + 3j #a sayısı r = 6; i = -4 b = complex(r, i) #b sayısı print ("a=",a) print ("b=",b) print ("a+b=",a+b) #a+b değeri
FONT_NAME = "Verdana" FONT_SIZE1 = "10" FONT_SIZE2 = "11" FONT_SIZE3 = "7" FONT_SIZE4 = "8" COLORS_ABBREVIATED_AUTHOR_NAME = ("#1565C0", "#6A1B9A", "#1A237E", "#311B92", "#4527A0", "#5E35B1", "#4A148C", "#01579B", "#3949AB", "#7B1FA2", "#283593") DEFAULT_FG_COLOR = "#4E5A66" SECOND_FG_COLOR = "#FFFFFF" THRID_FG_COLOR = "#000000" COMMENT_FG_COLOR_LOADED_STATE = "#838b95" TIME_COMMENT_FG_COLOR_READ_STATE = "#808080" DEFAULT_BG_COLOR = "#FFFFFF" SECOND_BG_COLOR = "#06172A" DEFAULT_BC_HIGHLIGHT_COLOR = "#0087E0" SECOND_BC_HIGHLIGHT_COLOR = "#FFFFFF" CONTROLS_BG_COLOR = "#06172a" FILE_CONTAINER1_PADX = 40 FILE_CONTAINER1_PADY = 10 FILE_CONTAINER2_PADX = 140 FILE_CONTAINER2_PADY = 10 LABEL1_TEXT = "Enter the full path of the txt file:" LABEL4_INITIAL_TEXT = " / 00:00:00" IMAGE_PATH_BTN_OPEN_LEAVE = "UI/open_file_btn.png" IMAGE_PATH_BTN_OPEN_ENTER = "UI/open_file_btn_enter.png" IMAGE_PATH_BTN_PLAY_LEAVE = "UI/play_btn.png" IMAGE_PATH_BTN_PLAY_ENTER = "UI/play_btn_enter.png" IMAGE_PATH_BTN_PAUSE_LEAVE = "UI/pause_btn.png" IMAGE_PATH_BTN_PAUSE_ENTER = "UI/pause_btn_enter.png" IMAGE_PATH_CONTROLS_BAR = "UI/controls_bar.png" IMAGE_PATH_TIME_BAR = "UI/time_bar.png" IMAGE_PATH_CURRENT_TIME_BAR = "UI/current_time_bar.png" OPTION_MENU1_VALUES = ("2x", "1.75x", "1.5x", "1.25x", "1x", "0.5x") DEFAULT_OPTION_MENU1_VALUE = "1x" IMAGE_PATH_TIME_BAR_SIZE_MIN = (302, 6) IMAGE_PATH_TIME_BAR_SIZE_MAX = (302, 11) ETR_CURRENT_TIME_NAME = "etrCurrentTime" ETR_CURRENT_TIME_SEPARATOR = ":" ETR_CURRENT_TIME_WARNING_TITLE_MSG = "Current Time Attention" ETR_CURRENT_TIME_WARNING_TEXT_MSG = "Current time is not correct. Expected format: hh:mm:ss." STATUS_BAR_CLOSE_PROGRAM = "Saindo..." MSG_BOX_CLOSE_PROGRAM_TITLE = "Quit" MSG_BOX_CLOSE_PROGRAM_TEXT = "Do you really want to quit?"
class Config(object): DEBUG = False TESTING = False SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/<YOUR-DEVELOPMENT-DATABASE>' SQLALCHEMY_TRACK_MODIFICATIONS = True class DevelopmentConfig(Config): DEBUG = True class TestingConfig(Config): TESTING = True SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/<YOUR-TEST-DATABASE>'
# This script changes the maximum metal layer to use during PnR def replace_line_at_pattern(filename, pattern, text_insert): read_file = open(filename, 'r').readlines() with open(filename,'w') as write_file: for line in read_file: if pattern in line: write_file.write(text_insert + "\n") else: write_file.write(line) adk_file = "./view-standard/adk.tcl" # replace ADK_MAX_ROUTING_LAYER_DC replace_line_at_pattern(adk_file, "set ADK_MAX_ROUTING_LAYER_DC", "set ADK_MAX_ROUTING_LAYER_DC met4") # replace ADK_MAX_ROUTING_LAYER_INNOVUS replace_line_at_pattern(adk_file, "set ADK_MAX_ROUTING_LAYER_INNOVUS", "set ADK_MAX_ROUTING_LAYER_INNOVUS 5") # replace ADK_POWER_MESH_BOT_LAYER replace_line_at_pattern(adk_file, "set ADK_POWER_MESH_BOT_LAYER", "set ADK_POWER_MESH_BOT_LAYER 4") # replace ADK_POWER_MESH_TOP_LAYER replace_line_at_pattern(adk_file, "set ADK_POWER_MESH_TOP_LAYER", "set ADK_POWER_MESH_TOP_LAYER 5")
def LSB(n): return n & -n class FenwickTree: def __init__(self, array): self.len = len(array)+1 self.arr = [0] * self.len for i in range(0, self.len - 1): self.update(i, array[i]) def update(self, index, val): j = index+1 while j < self.len: self.arr[j] += val j += LSB(j) def get_sum(self, index): sum = 0 index += 1 while index > 0: sum += self.arr[index] index -= LSB(index) return sum def get_sum_range(self, start, end): return self.get_sum(end) - self.get_sum(start-1) if __name__ == '__main__': arr = [1, 2, 3, 4, 5, 6, 7, 8] fw = FenwickTree(arr) print(fw.get_sum(3)) print(fw.get_sum(5)) print(fw.get_sum_range(1, 7))
mylist=[1,2,3,4,5] for i in range(len(mylist)): print(i,len(mylist),range(len(mylist))) mylist.pop()
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = '' __author__ = 'fancyears' __mtime__ = '2020/2/7' # code is far away from bugs with the god animal protecting ┏┓ ┏┓ ┏┛┻━━━┛┻┓ ┃ ☃ ┃ ┃ ┳┛ ┗┳ ┃ ┃ ┻ ┃ ┗━┓ ┏━┛ ┃ ┗━━━┓ ┃ 神兽保佑 ┣┓ ┃ 永无BUG! ┏┛ ┗┓┓┏━┳┓┏┛ ┃┫┫ ┃┫┫ ┗┻┛ ┗┻┛ """ # & 按位与运算符:参与运算的两个值,如果两个相应位都为1,则该位的结果为1,否则为0 (a & b) 输出结果 12 ,二进制解释: 0000 1100 # | 按位或运算符:只要对应的二个二进位有一个为1时,结果位就为1。 (a | b) 输出结果 61 ,二进制解释: 0011 1101 # ^ 按位异或运算符:当两对应的二进位相异时,结果为1 (a ^ b) 输出结果 49 ,二进制解释: 0011 0001 # ~ 按位取反运算符:对数据的每个二进制位取反,即把1变为0,把0变为1 。~x 类似于 -x-1 (~a ) 输出结果 -61 ,二进制解释: 1100 0011,在一个有符号二进制数的补码形式。 # << 左移动运算符:运算数的各二进位全部左移若干位,由 << 右边的数字指定了移动的位数,高位丢弃,低位补0。 a << 2 输出结果 240 ,二进制解释: 1111 0000 # >> 右移动运算符:把">>"左边的运算数的各二进位全部右移若干位,>> 右边的数字指定了移动的位数 a >> 2 输出结果 15 ,二进制解释: 0000 1111 # python没有无符号右移 def byteoperate(): a = 60 # 60 = 0011 1100 b = 13 # 13 = 0000 1101 c = 0 c = a & b; # 12 = 0000 1100 print("1 - c 的值为:", c) c = a | b; # 61 = 0011 1101 print("2 - c 的值为:", c) c = a ^ b; # 49 = 0011 0001 print("3 - c 的值为:", c) c = ~a; # -61 = 1100 0011 print("4 - c 的值为:", c) c = a << 2; # 240 = 1111 0000 print("5 - c 的值为:", c) c = a >> 2; # 15 = 0000 1111 print("6 - c 的值为:", c) byteoperate();
''' This is literally ONLY a few functions, but a great example of a file that I might want to fill up with function definitons and import to use at some point. I don't want to run it as a script, I am just going to keep some functions that do things I need...thee is NO main() either and no need to check to see if __name__ == '__main__' ''' def howdy(): '''This is my function that greets the user!''' print('Howdy!') def later(): '''This is my function that tells the user I am outta here!''' print('Later!') ## ## End of file...
def mode(nums): """Return most-common number in list. For this function, there will always be a single-most-common value; you do not need to worry about handling cases where more than one item occurs the same number of times. >>> mode([1, 2, 1]) 1 >>> mode([2, 2, 3, 3, 2]) 2 """ return max(set(nums), key=nums.count) print(F"mode.py: mode([1, 2, 1]) = 1 = {mode([1, 2, 1])}") print(F"mode.py: mode([2, 2, 3, 3, 2]) = 2 = {mode([2, 2, 3, 3, 2])}")
# 2.5.1, Woche 2, Block 5, Aufgabe 1 # Liste schloss = ["rot","grün"] # Elemente hinzufügen schloss += ["gelb"] # Elemente ausgeben for i in range(len(schloss)): print(schloss[i])
#!/usr/bin/env python3 # -*- coding: utf-8 -*- a = """73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 66896648950445244523161731856403098711121722383113 62229893423380308135336276614282806444486645238749 30358907296290491560440772390713810515859307960866 70172427121883998797908792274921901699720888093776 65727333001053367881220235421809751254540594752243 52584907711670556013604839586446706324415722155397 53697817977846174064955149290862569321978468622482 83972241375657056057490261407972968652414535100474 82166370484403199890008895243450658541227588666881 16427171479924442928230863465674813919123162824586 17866458359124566529476545682848912883142607690042 24219022671055626321111109370544217506941658960408 07198403850962455444362981230987879927244284909188 84580156166097919133875499200524063689912560717606 05886116467109405077541002256983155200055935729725 71636269561882670428252483600823257530420752963450""".replace("\n", "") max_product = 0 for index, digit in enumerate(a): product = 1 for ahead in range(13): if int(a[index + ahead]) == 0: break product *= int(a[index + ahead]) if product > max_product: max_product = product print(max_product)
print('Vou somar todos os números que forem pares pra você :)\nSe você digitar um número ímpar irei desconsiderá-lo') s = 0 for c in range(0, 6): n = int(input('Digite um número: ')) if n % 2 == 0: s = n + s print('A soma total é de {}'.format(s))
# Uses python3 memo = {} def calc_fib(n): if n <= 1: return n if n in memo: return memo[n] else: f = calc_fib(n - 1) + calc_fib(n - 2) memo[n] = f return f n = int(input()) print(calc_fib(n))
""" the Constant Variables. """ class ConstantSet(object): """ The class of constant number. It doesn't follow the Pascal format since its speciality. """ class ConstError(TypeError): pass class ConstCaseError(ConstError): pass def __setattr__(self, key, value): if key in self.__dict__: raise self.ConstError("Can't change const.{0}".format(key)) if not key.isupper(): raise self.ConstCaseError("Const name {0} is not all uppercase".format(key)) self.__dict__[key] = value const = ConstantSet() # the category of decision variables const.CAT_BINARY = "Binary" const.CAT_CONTINUOUS = "Continuous" const.CAT_INTEGER = "Integer" # sense for a constrain const.SENSE_LEQ = "<=" const.SENSE_EQ = "=" const.SENSE_GEQ = ">=" # sense for a model const.SENSE_MAX = "Max" const.SENSE_MIN = "Min" # the lower and upper bound type of a variable const.BOUND_TWO_OPEN = 0 const.BOUND_LEFT_OPEN = 1 const.BOUND_RIGHT_OPEN = 2 const.BOUND_TWO_CLOSED = 3 # the status of the model const.STATUS_UNSOLVED = "Unsolved" const.STATUS_OPTIMAL = "Optimal" const.STATUS_NO_SOLUTION = "No feasible solution" const.STATUS_UNBOUNDED = "Unbounded"
def main(_, rooms, single, multiple): for room in rooms: single.add(room) if room not in single else multiple.add(room) return single.difference(multiple).pop() if __name__ == "__main__": k, rooms, single, multiple = input(), input().split(), set(), set() print(main(k, rooms, single, multiple))
def to_tweets(filename): with open(filename, 'r') as raw_file: with open(filename.split('.')[0]+'_tweets.txt', 'w') as output: is_title = False char_count = 0 # Max = 140 current_tweet = [] for line in raw_file.readlines(): line = line.strip() # Handle Titles if is_title: is_title = False output.write(line + '\n') continue # Handle the rest if line == '': continue elif line == '---TITLE---': output.write(' '.join(current_tweet) + '\n') is_title = True continue else: curr_line_len = len(line) if char_count + curr_line_len + len(current_tweet) < 140: current_tweet.append(line) char_count += curr_line_len else: # Separate on period to finish the tweet dot_split = line.split('. ', maxsplit=1) if (len(dot_split) > 1 and len(dot_split[0]) + char_count + len(current_tweet) < 140): current_tweet.append(dot_split[0] + '.') # Write the current tweet output.write(' '.join(current_tweet) + '\n') # Continue where we left off current_tweet = [dot_split[1]] char_count = len(current_tweet[0]) else: # Period too far, use comma to finish comma_split = line.split(', ', maxsplit=1) if (len(comma_split) > 1 and len(comma_split[0]) + char_count + len(current_tweet) < 140): current_tweet.append(comma_split[0] + ',') # Write the current tweet output.write(' '.join(current_tweet) + '\n') # Continue where we left off current_tweet = [comma_split[1]] char_count = len(current_tweet[0]) else: # Split on words word_split = line.split() rest = [] rest_count = 0 for word in word_split: if (char_count + len(word) + len(current_tweet) < 140): current_tweet.append(word) char_count += len(word) else: rest.append(word) rest_count += len(word) output.write(' '.join(current_tweet) + '\n') current_tweet = rest char_count = rest_count
class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: val = dict() for i in range(len(nums)): if (target-nums[i]) in val.keys(): return [val[target-nums[i]],i] val[nums[i]] = i
class ChapterError(Exception): pass class VerseError(Exception): pass
def fibWord(n): Sn_1 = "0" Sn = "01" tmp = "" for i in range(2, n + 1): tmp = Sn Sn += Sn_1 Sn_1 = tmp return Sn # driver program n = 6 print (fibWord(n))
""" The functionality of bio_embeddings is split into 5 different modules .. autosummary:: :toctree: modules bio_embeddings.embed bio_embeddings.extract bio_embeddings.project bio_embeddings.utilities bio_embeddings.visualize """
code_word = "priya" guess="" guess_count = 0 guess_limit = 3 out_of_guess = False while guess !=code_word and not out_of_guess : if guess_count < guess_limit : guess=input("enter your guess : ") guess_count += 1 else : out_of_guess = True if out_of_guess: print("out of guess YOU LOSE !") else: print("Congorats YOU WIN !")
""" Named projection classes that can be created or parsed. """ def find(projname, crstype, strict=False): """ Search for a projection name located in this module. Arguments: - **projname**: The projection name to search for. - **crstype**: Which CRS naming convention to search (different CRS formats have different names for the same projection). - **strict** (optional): If False, ignores minor name mismatches such as underscore or character casing, otherwise must be exact match (defaults to False). """ if not strict: projname = projname.lower().replace(" ","_") for itemname,item in globals().items(): if itemname.startswith("_"): continue try: if hasattr(item.name, crstype): itemname = getattr(item.name, crstype) if not strict: itemname = itemname.lower().replace(" ","_") if projname == itemname: return item except: pass else: return None ##+proj Projection name (see `proj -l`) class Projection: proj4 = "+proj" ogc_wkt = "PROJECTION" esri_wkt = "PROJECTION" name = None def __init__(self, **kwargs): """ A generic container for the specific projection used. Args: - **name**: A pycrs.projections.ProjName instance with the name given by each supported format. """ self.name = kwargs.get('name', self.name) def to_proj4(self): return "+proj=%s" %self.name.proj4 def to_ogc_wkt(self): return 'PROJECTION["%s"]' %self.name.ogc_wkt def to_esri_wkt(self): return 'PROJECTION["%s"]' %self.name.esri_wkt class ProjName: def __init__(self, proj4="", ogc_wkt="", esri_wkt=""): self.proj4 = proj4 self.ogc_wkt = ogc_wkt self.esri_wkt = esri_wkt # Specific predefined ellipsoid classes class Robinson(Projection): name = ProjName( proj4 = "robin", ogc_wkt = "Robinson", esri_wkt = "Robinson", ) class UTM(Projection): name = ProjName( proj4 = "utm", ogc_wkt = "Transverse_Mercator", esri_wkt = "Transverse_Mercator", ) class ObliqueMercator(Projection): name = ProjName( proj4 = "omerc", ogc_wkt = "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", #"Hotine_Oblique_Mercator" esri_wkt = "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", #"Hotine_Oblique_Mercator_Azimuth_Natural_Origin" ) class AlbersEqualArea(Projection): name = ProjName( proj4 = "aea", ogc_wkt = "Albers_Conic_Equal_Area", esri_wkt = "Albers", ) class CylindricalEqualArea(Projection): name = ProjName( proj4 = "cea", ogc_wkt = "Cylindrical_Equal_Area", esri_wkt = "Cylindrical_Equal_Area", ) class EquiDistantConic(Projection): name = ProjName( proj4 = "eqdc", ogc_wkt = "Equidistant_Conic", esri_wkt = "Equidistant_Conic", ) class EquiDistantCylindrical(Projection): # same as equirectangular...? name = ProjName( proj4 = "eqc", ogc_wkt = "Equidistant_Cylindrical", esri_wkt = "Equidistant_Cylindrical", ) class EquiRectangular(Projection): # same as equidistant cylindrical name = ProjName( proj4 = "eqc", ogc_wkt = "Equirectangular", esri_wkt = "Equirectangular", ) class TransverseMercator(Projection): name = ProjName( proj4 = "tmerc", ogc_wkt = "Transverse_Mercator", esri_wkt = "Transverse_Mercator", ) class GallStereographic(Projection): name = ProjName( proj4 = "gall", ogc_wkt = "Gall_Stereographic", esri_wkt = "Gall_Stereographic", ) class Gnomonic(Projection): name = ProjName( proj4 = "gnom", ogc_wkt = "Gnomonic", esri_wkt = "Gnomonic", ) class LambertAzimuthalEqualArea(Projection): name = ProjName( proj4 = "laea", ogc_wkt = "Lambert_Azimuthal_Equal_Area", esri_wkt = "Lambert_Azimuthal_Equal_Area", ) class MillerCylindrical(Projection): name = ProjName( proj4 = "mill", ogc_wkt = "Miller_Cylindrical", esri_wkt = "Miller_Cylindrical", ) class Mollweide(Projection): name = ProjName( proj4 = "moll", ogc_wkt = "Mollweide", esri_wkt = "Mollweide", ) class ObliqueStereographic(Projection): name = ProjName( proj4 = "sterea", ogc_wkt = "Oblique_Stereographic", esri_wkt = "Oblique Stereographic", #"Stereographic_North_Pole" ) class Orthographic(Projection): name = ProjName( proj4 = "ortho", ogc_wkt = "Orthographic", esri_wkt = "Orthographic", ) class Stereographic(Projection): name = ProjName( proj4 = "stere", ogc_wkt = "Stereographic", esri_wkt = "Stereographic", ) class PolarStereographic(Projection): name = ProjName( proj4 = "stere", ogc_wkt = "Polar_Stereographic", # could also be just stereographic esri_wkt = "Stereographic", # but also spelled with additional _South/North_Pole, for the same projection and diff params (maybe just for humans)?... ) class Sinusoidal(Projection): name = ProjName( proj4 = "sinu", ogc_wkt = "Sinusoidal", esri_wkt = "Sinusoidal", ) class VanDerGrinten(Projection): name = ProjName( proj4 = "vandg", ogc_wkt = "VanDerGrinten", esri_wkt = "Van_der_Grinten_I", ) class LambertConformalConic(Projection): name = ProjName( proj4 = "lcc", ogc_wkt = "Lambert_Conformal_Conic", # possible has some variants esri_wkt = "Lambert_Conformal_Conic", ) class Krovak(Projection): name = ProjName( proj4 = "krovak", ogc_wkt = "Krovak", esri_wkt = "Krovak", ) class NearSidedPerspective(Projection): name = ProjName( proj4 = "nsper", ogc_wkt = "Near_sided_perspective", esri_wkt = "Near_sided_perspective", # not confirmed ) class TiltedPerspective(Projection): name = ProjName( proj4 = "tsper", ogc_wkt = "Tilted_perspective", esri_wkt = "Tilted_perspective", # not confirmed ) class InteruptedGoodeHomolosine(Projection): name = ProjName( proj4 = "igh", ogc_wkt = "Interrupted_Goodes_Homolosine", esri_wkt = "Interrupted_Goodes_Homolosine", ) class Larrivee(Projection): name = ProjName( proj4 = "larr", ogc_wkt = "Larrivee", esri_wkt = "Larrivee", # not confirmed ) class LamberEqualAreaConic(Projection): name = ProjName( proj4 = "leac", ogc_wkt = "Lambert_Equal_Area_Conic", esri_wkt = "Lambert_Equal_Area_Conic", # not confirmed ) class Mercator(Projection): name = ProjName( proj4 = "merc", ogc_wkt = "Mercator", # has multiple varieties esri_wkt = "Mercator", ) class ObliqueCylindricalEqualArea(Projection): name = ProjName( proj4 = "ocea", ogc_wkt = "Oblique_Cylindrical_Equal_Area", esri_wkt = "Oblique_Cylindrical_Equal_Area", ) class Polyconic(Projection): name = ProjName( proj4 = "poly", ogc_wkt = "Polyconic", esri_wkt = "Polyconic", ) class EckertIV(Projection): name = ProjName( proj4 = "eck4", ogc_wkt = "Eckert_IV", esri_wkt = "Eckert_IV", ) class EckertVI(Projection): name = ProjName( proj4 = "eck6", ogc_wkt = "Eckert_VI", esri_wkt = "Eckert_VI", ) class AzimuthalEquidistant(Projection): name = ProjName( proj4 = "aeqd", ogc_wkt = "Azimuthal_Equidistant", esri_wkt = "Azimuthal_Equidistant", ) class GeostationarySatellite(Projection): name = ProjName( proj4 = "geos", ogc_wkt = "Geostationary_Satellite", esri_wkt = "Geostationary_Satellite", )
# # PySNMP MIB module CISCO-UNIFIED-COMPUTING-LICENSE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-UNIFIED-COMPUTING-LICENSE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:00:06 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") CiscoAlarmSeverity, Unsigned64, CiscoInetAddressMask, CiscoNetworkAddress, TimeIntervalSec = mibBuilder.importSymbols("CISCO-TC", "CiscoAlarmSeverity", "Unsigned64", "CiscoInetAddressMask", "CiscoNetworkAddress", "TimeIntervalSec") ciscoUnifiedComputingMIBObjects, CucsManagedObjectId, CucsManagedObjectDn = mibBuilder.importSymbols("CISCO-UNIFIED-COMPUTING-MIB", "ciscoUnifiedComputingMIBObjects", "CucsManagedObjectId", "CucsManagedObjectDn") CucsFsmCompletion, CucsFsmFsmStageStatus, CucsLicenseInstanceFsmCurrentFsm, CucsLicenseFeatureType, CucsLicenseInstanceFsmTaskItem, CucsPolicyPolicyOwner, CucsLicenseDownloadActivity, CucsLicenseFileFsmStageName, CucsLicenseScope, CucsLicenseState, CucsLicenseFileFsmCurrentFsm, CucsLicenseDownloaderFsmCurrentFsm, CucsLicenseDownloaderFsmStageName, CucsLicenseTransport, CucsLicenseInstanceFsmStageName, CucsLicensePeerStatus, CucsLicenseTransferState, CucsLicenseType, CucsFsmFlags, CucsConditionRemoteInvRslt, CucsLicenseFileFsmTaskItem, CucsLicenseDownloaderFsmTaskItem, CucsLicenseFileState = mibBuilder.importSymbols("CISCO-UNIFIED-COMPUTING-TC-MIB", "CucsFsmCompletion", "CucsFsmFsmStageStatus", "CucsLicenseInstanceFsmCurrentFsm", "CucsLicenseFeatureType", "CucsLicenseInstanceFsmTaskItem", "CucsPolicyPolicyOwner", "CucsLicenseDownloadActivity", "CucsLicenseFileFsmStageName", "CucsLicenseScope", "CucsLicenseState", "CucsLicenseFileFsmCurrentFsm", "CucsLicenseDownloaderFsmCurrentFsm", "CucsLicenseDownloaderFsmStageName", "CucsLicenseTransport", "CucsLicenseInstanceFsmStageName", "CucsLicensePeerStatus", "CucsLicenseTransferState", "CucsLicenseType", "CucsFsmFlags", "CucsConditionRemoteInvRslt", "CucsLicenseFileFsmTaskItem", "CucsLicenseDownloaderFsmTaskItem", "CucsLicenseFileState") InetAddressIPv6, InetAddressIPv4 = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressIPv6", "InetAddressIPv4") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") IpAddress, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Bits, Integer32, Counter64, ObjectIdentity, TimeTicks, MibIdentifier, iso, NotificationType, Gauge32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Bits", "Integer32", "Counter64", "ObjectIdentity", "TimeTicks", "MibIdentifier", "iso", "NotificationType", "Gauge32", "Counter32") TimeInterval, RowPointer, TimeStamp, TextualConvention, DisplayString, TruthValue, DateAndTime, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "TimeInterval", "RowPointer", "TimeStamp", "TextualConvention", "DisplayString", "TruthValue", "DateAndTime", "MacAddress") cucsLicenseObjects = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25)) if mibBuilder.loadTexts: cucsLicenseObjects.setLastUpdated('201601180000Z') if mibBuilder.loadTexts: cucsLicenseObjects.setOrganization('Cisco Systems Inc.') cucsLicenseContentsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1), ) if mibBuilder.loadTexts: cucsLicenseContentsTable.setStatus('current') cucsLicenseContentsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseContentsInstanceId")) if mibBuilder.loadTexts: cucsLicenseContentsEntry.setStatus('current') cucsLicenseContentsInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseContentsInstanceId.setStatus('current') cucsLicenseContentsDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseContentsDn.setStatus('current') cucsLicenseContentsRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseContentsRn.setStatus('current') cucsLicenseContentsFeatureName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseContentsFeatureName.setStatus('current') cucsLicenseContentsTotalQuant = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseContentsTotalQuant.setStatus('current') cucsLicenseContentsVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseContentsVendor.setStatus('current') cucsLicenseContentsVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 1, 1, 7), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseContentsVersion.setStatus('current') cucsLicenseDownloaderTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2), ) if mibBuilder.loadTexts: cucsLicenseDownloaderTable.setStatus('current') cucsLicenseDownloaderEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseDownloaderInstanceId")) if mibBuilder.loadTexts: cucsLicenseDownloaderEntry.setStatus('current') cucsLicenseDownloaderInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseDownloaderInstanceId.setStatus('current') cucsLicenseDownloaderDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderDn.setStatus('current') cucsLicenseDownloaderRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderRn.setStatus('current') cucsLicenseDownloaderAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 4), CucsLicenseDownloadActivity()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderAdminState.setStatus('current') cucsLicenseDownloaderFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 5), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFileName.setStatus('current') cucsLicenseDownloaderFsmDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmDescr.setStatus('current') cucsLicenseDownloaderFsmPrev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 7), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmPrev.setStatus('current') cucsLicenseDownloaderFsmProgr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmProgr.setStatus('current') cucsLicenseDownloaderFsmRmtInvErrCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmRmtInvErrCode.setStatus('current') cucsLicenseDownloaderFsmRmtInvErrDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 10), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmRmtInvErrDescr.setStatus('current') cucsLicenseDownloaderFsmRmtInvRslt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 11), CucsConditionRemoteInvRslt()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmRmtInvRslt.setStatus('current') cucsLicenseDownloaderFsmStageDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 12), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageDescr.setStatus('current') cucsLicenseDownloaderFsmStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 13), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStamp.setStatus('current') cucsLicenseDownloaderFsmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 14), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStatus.setStatus('current') cucsLicenseDownloaderFsmTry = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 15), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTry.setStatus('current') cucsLicenseDownloaderProt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 16), CucsLicenseTransport()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderProt.setStatus('current') cucsLicenseDownloaderPwd = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 17), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderPwd.setStatus('current') cucsLicenseDownloaderRemotePath = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 18), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderRemotePath.setStatus('current') cucsLicenseDownloaderServer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 19), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderServer.setStatus('current') cucsLicenseDownloaderTransferState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 20), CucsLicenseTransferState()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderTransferState.setStatus('current') cucsLicenseDownloaderUser = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 2, 1, 21), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderUser.setStatus('current') cucsLicenseDownloaderFsmTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16), ) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTable.setStatus('current') cucsLicenseDownloaderFsmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseDownloaderFsmInstanceId")) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmEntry.setStatus('current') cucsLicenseDownloaderFsmInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmInstanceId.setStatus('current') cucsLicenseDownloaderFsmDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmDn.setStatus('current') cucsLicenseDownloaderFsmRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmRn.setStatus('current') cucsLicenseDownloaderFsmCompletionTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmCompletionTime.setStatus('current') cucsLicenseDownloaderFsmCurrentFsm = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 5), CucsLicenseDownloaderFsmCurrentFsm()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmCurrentFsm.setStatus('current') cucsLicenseDownloaderFsmDescrData = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmDescrData.setStatus('current') cucsLicenseDownloaderFsmFsmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 7), CucsFsmFsmStageStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmFsmStatus.setStatus('current') cucsLicenseDownloaderFsmProgress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmProgress.setStatus('current') cucsLicenseDownloaderFsmRmtErrCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmRmtErrCode.setStatus('current') cucsLicenseDownloaderFsmRmtErrDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 10), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmRmtErrDescr.setStatus('current') cucsLicenseDownloaderFsmRmtRslt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 16, 1, 11), CucsConditionRemoteInvRslt()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmRmtRslt.setStatus('current') cucsLicenseDownloaderFsmStageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17), ) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageTable.setStatus('current') cucsLicenseDownloaderFsmStageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseDownloaderFsmStageInstanceId")) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageEntry.setStatus('current') cucsLicenseDownloaderFsmStageInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageInstanceId.setStatus('current') cucsLicenseDownloaderFsmStageDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageDn.setStatus('current') cucsLicenseDownloaderFsmStageRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageRn.setStatus('current') cucsLicenseDownloaderFsmStageDescrData = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageDescrData.setStatus('current') cucsLicenseDownloaderFsmStageLastUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 5), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageLastUpdateTime.setStatus('current') cucsLicenseDownloaderFsmStageName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 6), CucsLicenseDownloaderFsmStageName()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageName.setStatus('current') cucsLicenseDownloaderFsmStageOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageOrder.setStatus('current') cucsLicenseDownloaderFsmStageRetry = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageRetry.setStatus('current') cucsLicenseDownloaderFsmStageStageStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 17, 1, 9), CucsFsmFsmStageStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmStageStageStatus.setStatus('current') cucsLicenseDownloaderFsmTaskTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3), ) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskTable.setStatus('current') cucsLicenseDownloaderFsmTaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseDownloaderFsmTaskInstanceId")) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskEntry.setStatus('current') cucsLicenseDownloaderFsmTaskInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskInstanceId.setStatus('current') cucsLicenseDownloaderFsmTaskDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskDn.setStatus('current') cucsLicenseDownloaderFsmTaskRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskRn.setStatus('current') cucsLicenseDownloaderFsmTaskCompletion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3, 1, 4), CucsFsmCompletion()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskCompletion.setStatus('current') cucsLicenseDownloaderFsmTaskFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3, 1, 5), CucsFsmFlags()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskFlags.setStatus('current') cucsLicenseDownloaderFsmTaskItem = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3, 1, 6), CucsLicenseDownloaderFsmTaskItem()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskItem.setStatus('current') cucsLicenseDownloaderFsmTaskSeqId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 3, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseDownloaderFsmTaskSeqId.setStatus('current') cucsLicenseEpTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 4), ) if mibBuilder.loadTexts: cucsLicenseEpTable.setStatus('current') cucsLicenseEpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 4, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseEpInstanceId")) if mibBuilder.loadTexts: cucsLicenseEpEntry.setStatus('current') cucsLicenseEpInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 4, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseEpInstanceId.setStatus('current') cucsLicenseEpDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 4, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseEpDn.setStatus('current') cucsLicenseEpRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 4, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseEpRn.setStatus('current') cucsLicenseFeatureTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5), ) if mibBuilder.loadTexts: cucsLicenseFeatureTable.setStatus('current') cucsLicenseFeatureEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseFeatureInstanceId")) if mibBuilder.loadTexts: cucsLicenseFeatureEntry.setStatus('current') cucsLicenseFeatureInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseFeatureInstanceId.setStatus('current') cucsLicenseFeatureDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureDn.setStatus('current') cucsLicenseFeatureRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureRn.setStatus('current') cucsLicenseFeatureDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureDescr.setStatus('current') cucsLicenseFeatureGracePeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 5), Unsigned64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureGracePeriod.setStatus('current') cucsLicenseFeatureIntId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureIntId.setStatus('current') cucsLicenseFeatureName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 7), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureName.setStatus('current') cucsLicenseFeatureType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 8), CucsLicenseFeatureType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureType.setStatus('current') cucsLicenseFeatureVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 9), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureVendor.setStatus('current') cucsLicenseFeatureVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 10), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureVersion.setStatus('current') cucsLicenseFeaturePolicyLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 11), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeaturePolicyLevel.setStatus('current') cucsLicenseFeaturePolicyOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 5, 1, 12), CucsPolicyPolicyOwner()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeaturePolicyOwner.setStatus('current') cucsLicenseFeatureCapProviderTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6), ) if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderTable.setStatus('current') cucsLicenseFeatureCapProviderEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseFeatureCapProviderInstanceId")) if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderEntry.setStatus('current') cucsLicenseFeatureCapProviderInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderInstanceId.setStatus('current') cucsLicenseFeatureCapProviderDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderDn.setStatus('current') cucsLicenseFeatureCapProviderRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderRn.setStatus('current') cucsLicenseFeatureCapProviderDefQuant = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderDefQuant.setStatus('current') cucsLicenseFeatureCapProviderDeprecated = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderDeprecated.setStatus('current') cucsLicenseFeatureCapProviderFeatureName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderFeatureName.setStatus('current') cucsLicenseFeatureCapProviderGencount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderGencount.setStatus('current') cucsLicenseFeatureCapProviderGracePeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 8), Unsigned64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderGracePeriod.setStatus('current') cucsLicenseFeatureCapProviderLicVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 9), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderLicVendor.setStatus('current') cucsLicenseFeatureCapProviderLicVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 10), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderLicVersion.setStatus('current') cucsLicenseFeatureCapProviderMgmtPlaneVer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 11), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderMgmtPlaneVer.setStatus('current') cucsLicenseFeatureCapProviderModel = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 12), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderModel.setStatus('current') cucsLicenseFeatureCapProviderRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 13), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderRevision.setStatus('current') cucsLicenseFeatureCapProviderType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 14), CucsLicenseFeatureType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderType.setStatus('current') cucsLicenseFeatureCapProviderVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 15), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderVendor.setStatus('current') cucsLicenseFeatureCapProviderDeleted = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 16), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderDeleted.setStatus('current') cucsLicenseFeatureCapProviderSku = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 17), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderSku.setStatus('current') cucsLicenseFeatureCapProviderElementLoadFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 18), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderElementLoadFailures.setStatus('current') cucsLicenseFeatureCapProviderElementsLoaded = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 19), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderElementsLoaded.setStatus('current') cucsLicenseFeatureCapProviderLoadErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 20), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderLoadErrors.setStatus('current') cucsLicenseFeatureCapProviderLoadWarnings = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 6, 1, 21), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureCapProviderLoadWarnings.setStatus('current') cucsLicenseFeatureLineTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7), ) if mibBuilder.loadTexts: cucsLicenseFeatureLineTable.setStatus('current') cucsLicenseFeatureLineEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseFeatureLineInstanceId")) if mibBuilder.loadTexts: cucsLicenseFeatureLineEntry.setStatus('current') cucsLicenseFeatureLineInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseFeatureLineInstanceId.setStatus('current') cucsLicenseFeatureLineDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLineDn.setStatus('current') cucsLicenseFeatureLineRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLineRn.setStatus('current') cucsLicenseFeatureLineExp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLineExp.setStatus('current') cucsLicenseFeatureLineId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 5), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLineId.setStatus('current') cucsLicenseFeatureLinePak = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLinePak.setStatus('current') cucsLicenseFeatureLineQuant = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLineQuant.setStatus('current') cucsLicenseFeatureLineSig = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 8), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLineSig.setStatus('current') cucsLicenseFeatureLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 9), CucsLicenseType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLineType.setStatus('current') cucsLicenseFeatureLineSku = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 7, 1, 10), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFeatureLineSku.setStatus('current') cucsLicenseFileTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8), ) if mibBuilder.loadTexts: cucsLicenseFileTable.setStatus('current') cucsLicenseFileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseFileInstanceId")) if mibBuilder.loadTexts: cucsLicenseFileEntry.setStatus('current') cucsLicenseFileInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseFileInstanceId.setStatus('current') cucsLicenseFileDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileDn.setStatus('current') cucsLicenseFileRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileRn.setStatus('current') cucsLicenseFileAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 4), CucsLicenseFileState()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileAdminState.setStatus('current') cucsLicenseFileFsmDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 5), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmDescr.setStatus('current') cucsLicenseFileFsmPrev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmPrev.setStatus('current') cucsLicenseFileFsmProgr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmProgr.setStatus('current') cucsLicenseFileFsmRmtInvErrCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmRmtInvErrCode.setStatus('current') cucsLicenseFileFsmRmtInvErrDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 9), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmRmtInvErrDescr.setStatus('current') cucsLicenseFileFsmRmtInvRslt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 10), CucsConditionRemoteInvRslt()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmRmtInvRslt.setStatus('current') cucsLicenseFileFsmStageDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 11), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageDescr.setStatus('current') cucsLicenseFileFsmStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 12), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStamp.setStatus('current') cucsLicenseFileFsmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 13), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStatus.setStatus('current') cucsLicenseFileFsmTry = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 14), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmTry.setStatus('current') cucsLicenseFileId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 15), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileId.setStatus('current') cucsLicenseFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 16), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileName.setStatus('current') cucsLicenseFileOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 17), CucsLicenseFileState()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileOperState.setStatus('current') cucsLicenseFileOperStateDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 18), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileOperStateDescr.setStatus('current') cucsLicenseFileScope = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 19), CucsLicenseScope()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileScope.setStatus('current') cucsLicenseFileVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 8, 1, 20), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileVersion.setStatus('current') cucsLicenseFileFsmTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18), ) if mibBuilder.loadTexts: cucsLicenseFileFsmTable.setStatus('current') cucsLicenseFileFsmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseFileFsmInstanceId")) if mibBuilder.loadTexts: cucsLicenseFileFsmEntry.setStatus('current') cucsLicenseFileFsmInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseFileFsmInstanceId.setStatus('current') cucsLicenseFileFsmDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmDn.setStatus('current') cucsLicenseFileFsmRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmRn.setStatus('current') cucsLicenseFileFsmCompletionTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmCompletionTime.setStatus('current') cucsLicenseFileFsmCurrentFsm = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 5), CucsLicenseFileFsmCurrentFsm()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmCurrentFsm.setStatus('current') cucsLicenseFileFsmDescrData = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmDescrData.setStatus('current') cucsLicenseFileFsmFsmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 7), CucsFsmFsmStageStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmFsmStatus.setStatus('current') cucsLicenseFileFsmProgress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmProgress.setStatus('current') cucsLicenseFileFsmRmtErrCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmRmtErrCode.setStatus('current') cucsLicenseFileFsmRmtErrDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 10), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmRmtErrDescr.setStatus('current') cucsLicenseFileFsmRmtRslt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 18, 1, 11), CucsConditionRemoteInvRslt()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmRmtRslt.setStatus('current') cucsLicenseFileFsmStageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19), ) if mibBuilder.loadTexts: cucsLicenseFileFsmStageTable.setStatus('current') cucsLicenseFileFsmStageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseFileFsmStageInstanceId")) if mibBuilder.loadTexts: cucsLicenseFileFsmStageEntry.setStatus('current') cucsLicenseFileFsmStageInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseFileFsmStageInstanceId.setStatus('current') cucsLicenseFileFsmStageDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageDn.setStatus('current') cucsLicenseFileFsmStageRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageRn.setStatus('current') cucsLicenseFileFsmStageDescrData = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageDescrData.setStatus('current') cucsLicenseFileFsmStageLastUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 5), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageLastUpdateTime.setStatus('current') cucsLicenseFileFsmStageName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 6), CucsLicenseFileFsmStageName()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageName.setStatus('current') cucsLicenseFileFsmStageOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageOrder.setStatus('current') cucsLicenseFileFsmStageRetry = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageRetry.setStatus('current') cucsLicenseFileFsmStageStageStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 19, 1, 9), CucsFsmFsmStageStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmStageStageStatus.setStatus('current') cucsLicenseFileFsmTaskTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9), ) if mibBuilder.loadTexts: cucsLicenseFileFsmTaskTable.setStatus('current') cucsLicenseFileFsmTaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseFileFsmTaskInstanceId")) if mibBuilder.loadTexts: cucsLicenseFileFsmTaskEntry.setStatus('current') cucsLicenseFileFsmTaskInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseFileFsmTaskInstanceId.setStatus('current') cucsLicenseFileFsmTaskDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmTaskDn.setStatus('current') cucsLicenseFileFsmTaskRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmTaskRn.setStatus('current') cucsLicenseFileFsmTaskCompletion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9, 1, 4), CucsFsmCompletion()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmTaskCompletion.setStatus('current') cucsLicenseFileFsmTaskFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9, 1, 5), CucsFsmFlags()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmTaskFlags.setStatus('current') cucsLicenseFileFsmTaskItem = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9, 1, 6), CucsLicenseFileFsmTaskItem()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmTaskItem.setStatus('current') cucsLicenseFileFsmTaskSeqId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 9, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseFileFsmTaskSeqId.setStatus('current') cucsLicenseInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10), ) if mibBuilder.loadTexts: cucsLicenseInstanceTable.setStatus('current') cucsLicenseInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseInstanceInstanceId")) if mibBuilder.loadTexts: cucsLicenseInstanceEntry.setStatus('current') cucsLicenseInstanceInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseInstanceInstanceId.setStatus('current') cucsLicenseInstanceDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceDn.setStatus('current') cucsLicenseInstanceRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceRn.setStatus('current') cucsLicenseInstanceAbsQuant = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceAbsQuant.setStatus('current') cucsLicenseInstanceDefQuant = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceDefQuant.setStatus('current') cucsLicenseInstanceFeature = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFeature.setStatus('current') cucsLicenseInstanceFsmDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 7), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmDescr.setStatus('current') cucsLicenseInstanceFsmPrev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 8), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmPrev.setStatus('current') cucsLicenseInstanceFsmProgr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmProgr.setStatus('current') cucsLicenseInstanceFsmRmtInvErrCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmRmtInvErrCode.setStatus('current') cucsLicenseInstanceFsmRmtInvErrDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 11), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmRmtInvErrDescr.setStatus('current') cucsLicenseInstanceFsmRmtInvRslt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 12), CucsConditionRemoteInvRslt()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmRmtInvRslt.setStatus('current') cucsLicenseInstanceFsmStageDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 13), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageDescr.setStatus('current') cucsLicenseInstanceFsmStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 14), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStamp.setStatus('current') cucsLicenseInstanceFsmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 15), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStatus.setStatus('current') cucsLicenseInstanceFsmTry = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 16), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmTry.setStatus('current') cucsLicenseInstanceGracePeriodUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 17), Unsigned64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceGracePeriodUsed.setStatus('current') cucsLicenseInstanceOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 18), CucsLicenseState()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceOperState.setStatus('current') cucsLicenseInstancePeerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 19), CucsLicensePeerStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstancePeerStatus.setStatus('current') cucsLicenseInstanceScope = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 20), CucsLicenseScope()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceScope.setStatus('current') cucsLicenseInstanceUsedQuant = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 21), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceUsedQuant.setStatus('current') cucsLicenseInstanceIsPresent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 22), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceIsPresent.setStatus('current') cucsLicenseInstanceSku = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 23), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceSku.setStatus('current') cucsLicenseInstanceSubordinateUsedQuant = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 10, 1, 24), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceSubordinateUsedQuant.setStatus('current') cucsLicenseInstanceFsmTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20), ) if mibBuilder.loadTexts: cucsLicenseInstanceFsmTable.setStatus('current') cucsLicenseInstanceFsmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseInstanceFsmInstanceId")) if mibBuilder.loadTexts: cucsLicenseInstanceFsmEntry.setStatus('current') cucsLicenseInstanceFsmInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseInstanceFsmInstanceId.setStatus('current') cucsLicenseInstanceFsmDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmDn.setStatus('current') cucsLicenseInstanceFsmRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmRn.setStatus('current') cucsLicenseInstanceFsmCompletionTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmCompletionTime.setStatus('current') cucsLicenseInstanceFsmCurrentFsm = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 5), CucsLicenseInstanceFsmCurrentFsm()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmCurrentFsm.setStatus('current') cucsLicenseInstanceFsmDescrData = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmDescrData.setStatus('current') cucsLicenseInstanceFsmFsmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 7), CucsFsmFsmStageStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmFsmStatus.setStatus('current') cucsLicenseInstanceFsmProgress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmProgress.setStatus('current') cucsLicenseInstanceFsmRmtErrCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmRmtErrCode.setStatus('current') cucsLicenseInstanceFsmRmtErrDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 10), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmRmtErrDescr.setStatus('current') cucsLicenseInstanceFsmRmtRslt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 20, 1, 11), CucsConditionRemoteInvRslt()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmRmtRslt.setStatus('current') cucsLicenseInstanceFsmStageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21), ) if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageTable.setStatus('current') cucsLicenseInstanceFsmStageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseInstanceFsmStageInstanceId")) if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageEntry.setStatus('current') cucsLicenseInstanceFsmStageInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageInstanceId.setStatus('current') cucsLicenseInstanceFsmStageDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageDn.setStatus('current') cucsLicenseInstanceFsmStageRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageRn.setStatus('current') cucsLicenseInstanceFsmStageDescrData = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageDescrData.setStatus('current') cucsLicenseInstanceFsmStageLastUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 5), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageLastUpdateTime.setStatus('current') cucsLicenseInstanceFsmStageName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 6), CucsLicenseInstanceFsmStageName()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageName.setStatus('current') cucsLicenseInstanceFsmStageOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageOrder.setStatus('current') cucsLicenseInstanceFsmStageRetry = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageRetry.setStatus('current') cucsLicenseInstanceFsmStageStageStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 21, 1, 9), CucsFsmFsmStageStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmStageStageStatus.setStatus('current') cucsLicenseInstanceFsmTaskTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11), ) if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskTable.setStatus('current') cucsLicenseInstanceFsmTaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseInstanceFsmTaskInstanceId")) if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskEntry.setStatus('current') cucsLicenseInstanceFsmTaskInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskInstanceId.setStatus('current') cucsLicenseInstanceFsmTaskDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskDn.setStatus('current') cucsLicenseInstanceFsmTaskRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskRn.setStatus('current') cucsLicenseInstanceFsmTaskCompletion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11, 1, 4), CucsFsmCompletion()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskCompletion.setStatus('current') cucsLicenseInstanceFsmTaskFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11, 1, 5), CucsFsmFlags()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskFlags.setStatus('current') cucsLicenseInstanceFsmTaskItem = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11, 1, 6), CucsLicenseInstanceFsmTaskItem()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskItem.setStatus('current') cucsLicenseInstanceFsmTaskSeqId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 11, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseInstanceFsmTaskSeqId.setStatus('current') cucsLicensePropTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 12), ) if mibBuilder.loadTexts: cucsLicensePropTable.setStatus('current') cucsLicensePropEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 12, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicensePropInstanceId")) if mibBuilder.loadTexts: cucsLicensePropEntry.setStatus('current') cucsLicensePropInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 12, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicensePropInstanceId.setStatus('current') cucsLicensePropDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 12, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicensePropDn.setStatus('current') cucsLicensePropRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 12, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicensePropRn.setStatus('current') cucsLicensePropName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 12, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicensePropName.setStatus('current') cucsLicensePropValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 12, 1, 5), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicensePropValue.setStatus('current') cucsLicenseServerHostIdTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 13), ) if mibBuilder.loadTexts: cucsLicenseServerHostIdTable.setStatus('current') cucsLicenseServerHostIdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 13, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseServerHostIdInstanceId")) if mibBuilder.loadTexts: cucsLicenseServerHostIdEntry.setStatus('current') cucsLicenseServerHostIdInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 13, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseServerHostIdInstanceId.setStatus('current') cucsLicenseServerHostIdDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 13, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseServerHostIdDn.setStatus('current') cucsLicenseServerHostIdRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 13, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseServerHostIdRn.setStatus('current') cucsLicenseServerHostIdHostId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 13, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseServerHostIdHostId.setStatus('current') cucsLicenseServerHostIdScope = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 13, 1, 5), CucsLicenseScope()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseServerHostIdScope.setStatus('current') cucsLicenseSourceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14), ) if mibBuilder.loadTexts: cucsLicenseSourceTable.setStatus('current') cucsLicenseSourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseSourceInstanceId")) if mibBuilder.loadTexts: cucsLicenseSourceEntry.setStatus('current') cucsLicenseSourceInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseSourceInstanceId.setStatus('current') cucsLicenseSourceDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceDn.setStatus('current') cucsLicenseSourceRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceRn.setStatus('current') cucsLicenseSourceAlwaysUse = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceAlwaysUse.setStatus('current') cucsLicenseSourceHostId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1, 5), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceHostId.setStatus('current') cucsLicenseSourceHostName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceHostName.setStatus('current') cucsLicenseSourceVendorDaemonPath = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1, 7), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceVendorDaemonPath.setStatus('current') cucsLicenseSourceSku = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 14, 1, 8), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceSku.setStatus('current') cucsLicenseSourceFileTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15), ) if mibBuilder.loadTexts: cucsLicenseSourceFileTable.setStatus('current') cucsLicenseSourceFileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseSourceFileInstanceId")) if mibBuilder.loadTexts: cucsLicenseSourceFileEntry.setStatus('current') cucsLicenseSourceFileInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseSourceFileInstanceId.setStatus('current') cucsLicenseSourceFileDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileDn.setStatus('current') cucsLicenseSourceFileRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileRn.setStatus('current') cucsLicenseSourceFileExp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileExp.setStatus('current') cucsLicenseSourceFileHostId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 5), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileHostId.setStatus('current') cucsLicenseSourceFileId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 6), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileId.setStatus('current') cucsLicenseSourceFileLine = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 7), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileLine.setStatus('current') cucsLicenseSourceFilePak = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 8), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFilePak.setStatus('current') cucsLicenseSourceFileQuant = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileQuant.setStatus('current') cucsLicenseSourceFileSig = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 10), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileSig.setStatus('current') cucsLicenseSourceFileType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 15, 1, 11), CucsLicenseType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseSourceFileType.setStatus('current') cucsLicenseTargetTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22), ) if mibBuilder.loadTexts: cucsLicenseTargetTable.setStatus('current') cucsLicenseTargetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22, 1), ).setIndexNames((0, "CISCO-UNIFIED-COMPUTING-LICENSE-MIB", "cucsLicenseTargetInstanceId")) if mibBuilder.loadTexts: cucsLicenseTargetEntry.setStatus('current') cucsLicenseTargetInstanceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22, 1, 1), CucsManagedObjectId()) if mibBuilder.loadTexts: cucsLicenseTargetInstanceId.setStatus('current') cucsLicenseTargetDn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22, 1, 2), CucsManagedObjectDn()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseTargetDn.setStatus('current') cucsLicenseTargetRn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseTargetRn.setStatus('current') cucsLicenseTargetPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseTargetPortId.setStatus('current') cucsLicenseTargetSlotId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseTargetSlotId.setStatus('current') cucsLicenseTargetIsRackPresent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseTargetIsRackPresent.setStatus('current') cucsLicenseTargetAggrPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 719, 1, 25, 22, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cucsLicenseTargetAggrPortId.setStatus('current') mibBuilder.exportSymbols("CISCO-UNIFIED-COMPUTING-LICENSE-MIB", cucsLicenseInstanceFsmCompletionTime=cucsLicenseInstanceFsmCompletionTime, cucsLicenseFeatureLineTable=cucsLicenseFeatureLineTable, cucsLicenseContentsRn=cucsLicenseContentsRn, cucsLicenseInstanceFsmPrev=cucsLicenseInstanceFsmPrev, cucsLicenseFeatureCapProviderLicVersion=cucsLicenseFeatureCapProviderLicVersion, cucsLicenseFileOperState=cucsLicenseFileOperState, cucsLicenseFileFsmDn=cucsLicenseFileFsmDn, cucsLicenseInstanceFsmRmtRslt=cucsLicenseInstanceFsmRmtRslt, cucsLicenseDownloaderFsmProgr=cucsLicenseDownloaderFsmProgr, cucsLicenseDownloaderFsmStageRn=cucsLicenseDownloaderFsmStageRn, cucsLicenseInstanceFsmStageDn=cucsLicenseInstanceFsmStageDn, cucsLicenseFeatureIntId=cucsLicenseFeatureIntId, cucsLicenseSourceVendorDaemonPath=cucsLicenseSourceVendorDaemonPath, cucsLicenseFeatureLineInstanceId=cucsLicenseFeatureLineInstanceId, cucsLicenseTargetIsRackPresent=cucsLicenseTargetIsRackPresent, cucsLicenseFeatureCapProviderGracePeriod=cucsLicenseFeatureCapProviderGracePeriod, cucsLicenseDownloaderFsmRmtErrDescr=cucsLicenseDownloaderFsmRmtErrDescr, cucsLicenseInstanceFsmStatus=cucsLicenseInstanceFsmStatus, cucsLicenseInstanceFsmFsmStatus=cucsLicenseInstanceFsmFsmStatus, cucsLicenseFeatureCapProviderLicVendor=cucsLicenseFeatureCapProviderLicVendor, cucsLicenseObjects=cucsLicenseObjects, cucsLicenseFeatureLineEntry=cucsLicenseFeatureLineEntry, cucsLicenseInstancePeerStatus=cucsLicenseInstancePeerStatus, cucsLicenseDownloaderFsmStageDn=cucsLicenseDownloaderFsmStageDn, cucsLicenseInstanceAbsQuant=cucsLicenseInstanceAbsQuant, cucsLicenseEpRn=cucsLicenseEpRn, cucsLicenseSourceEntry=cucsLicenseSourceEntry, cucsLicenseContentsFeatureName=cucsLicenseContentsFeatureName, cucsLicenseFileFsmStageDescr=cucsLicenseFileFsmStageDescr, cucsLicenseDownloaderFileName=cucsLicenseDownloaderFileName, cucsLicenseDownloaderFsmTaskTable=cucsLicenseDownloaderFsmTaskTable, cucsLicenseFileFsmProgr=cucsLicenseFileFsmProgr, cucsLicenseFileFsmStageEntry=cucsLicenseFileFsmStageEntry, cucsLicenseFileEntry=cucsLicenseFileEntry, cucsLicenseDownloaderFsmDescr=cucsLicenseDownloaderFsmDescr, cucsLicenseFeatureCapProviderElementsLoaded=cucsLicenseFeatureCapProviderElementsLoaded, cucsLicenseFeaturePolicyOwner=cucsLicenseFeaturePolicyOwner, cucsLicenseInstanceScope=cucsLicenseInstanceScope, cucsLicenseInstanceFsmTaskRn=cucsLicenseInstanceFsmTaskRn, cucsLicenseEpEntry=cucsLicenseEpEntry, cucsLicenseFeatureLineExp=cucsLicenseFeatureLineExp, cucsLicenseFeatureCapProviderSku=cucsLicenseFeatureCapProviderSku, cucsLicenseFileFsmStatus=cucsLicenseFileFsmStatus, cucsLicenseFileFsmStageRn=cucsLicenseFileFsmStageRn, cucsLicenseDownloaderPwd=cucsLicenseDownloaderPwd, cucsLicenseFeatureDn=cucsLicenseFeatureDn, cucsLicenseContentsInstanceId=cucsLicenseContentsInstanceId, PYSNMP_MODULE_ID=cucsLicenseObjects, cucsLicenseServerHostIdEntry=cucsLicenseServerHostIdEntry, cucsLicenseFeatureCapProviderFeatureName=cucsLicenseFeatureCapProviderFeatureName, cucsLicenseDownloaderFsmTaskEntry=cucsLicenseDownloaderFsmTaskEntry, cucsLicenseInstanceFsmTaskSeqId=cucsLicenseInstanceFsmTaskSeqId, cucsLicenseDownloaderFsmDn=cucsLicenseDownloaderFsmDn, cucsLicenseFileVersion=cucsLicenseFileVersion, cucsLicenseInstanceFsmDn=cucsLicenseInstanceFsmDn, cucsLicenseDownloaderFsmRmtRslt=cucsLicenseDownloaderFsmRmtRslt, cucsLicenseSourceHostName=cucsLicenseSourceHostName, cucsLicenseDownloaderFsmCurrentFsm=cucsLicenseDownloaderFsmCurrentFsm, cucsLicenseSourceFilePak=cucsLicenseSourceFilePak, cucsLicenseInstanceEntry=cucsLicenseInstanceEntry, cucsLicenseDownloaderAdminState=cucsLicenseDownloaderAdminState, cucsLicenseFileTable=cucsLicenseFileTable, cucsLicenseSourceTable=cucsLicenseSourceTable, cucsLicenseSourceFileTable=cucsLicenseSourceFileTable, cucsLicenseInstanceFsmRmtInvErrDescr=cucsLicenseInstanceFsmRmtInvErrDescr, cucsLicenseFileFsmStageTable=cucsLicenseFileFsmStageTable, cucsLicenseDownloaderRn=cucsLicenseDownloaderRn, cucsLicenseFeatureCapProviderLoadWarnings=cucsLicenseFeatureCapProviderLoadWarnings, cucsLicenseFeatureLineType=cucsLicenseFeatureLineType, cucsLicenseFileFsmPrev=cucsLicenseFileFsmPrev, cucsLicenseDownloaderDn=cucsLicenseDownloaderDn, cucsLicenseServerHostIdScope=cucsLicenseServerHostIdScope, cucsLicenseInstanceOperState=cucsLicenseInstanceOperState, cucsLicenseFeatureLineDn=cucsLicenseFeatureLineDn, cucsLicenseInstanceFsmStageLastUpdateTime=cucsLicenseInstanceFsmStageLastUpdateTime, cucsLicenseDownloaderFsmRmtInvErrCode=cucsLicenseDownloaderFsmRmtInvErrCode, cucsLicenseInstanceFsmTaskCompletion=cucsLicenseInstanceFsmTaskCompletion, cucsLicenseFileFsmStageInstanceId=cucsLicenseFileFsmStageInstanceId, cucsLicenseFileDn=cucsLicenseFileDn, cucsLicenseFileFsmStageOrder=cucsLicenseFileFsmStageOrder, cucsLicenseSourceFileDn=cucsLicenseSourceFileDn, cucsLicenseFileFsmTaskEntry=cucsLicenseFileFsmTaskEntry, cucsLicenseDownloaderTransferState=cucsLicenseDownloaderTransferState, cucsLicenseServerHostIdTable=cucsLicenseServerHostIdTable, cucsLicenseInstanceSku=cucsLicenseInstanceSku, cucsLicenseDownloaderFsmRn=cucsLicenseDownloaderFsmRn, cucsLicenseDownloaderProt=cucsLicenseDownloaderProt, cucsLicenseDownloaderFsmCompletionTime=cucsLicenseDownloaderFsmCompletionTime, cucsLicenseInstanceFeature=cucsLicenseInstanceFeature, cucsLicenseSourceFileId=cucsLicenseSourceFileId, cucsLicenseDownloaderFsmTaskCompletion=cucsLicenseDownloaderFsmTaskCompletion, cucsLicenseDownloaderFsmStageDescrData=cucsLicenseDownloaderFsmStageDescrData, cucsLicenseInstanceFsmStageDescr=cucsLicenseInstanceFsmStageDescr, cucsLicenseInstanceFsmRmtErrDescr=cucsLicenseInstanceFsmRmtErrDescr, cucsLicenseInstanceFsmTable=cucsLicenseInstanceFsmTable, cucsLicenseInstanceFsmDescr=cucsLicenseInstanceFsmDescr, cucsLicenseFileFsmProgress=cucsLicenseFileFsmProgress, cucsLicenseFeatureCapProviderVendor=cucsLicenseFeatureCapProviderVendor, cucsLicenseFeatureLineSku=cucsLicenseFeatureLineSku, cucsLicensePropTable=cucsLicensePropTable, cucsLicenseTargetSlotId=cucsLicenseTargetSlotId, cucsLicenseFileOperStateDescr=cucsLicenseFileOperStateDescr, cucsLicenseInstanceFsmTaskEntry=cucsLicenseInstanceFsmTaskEntry, cucsLicenseDownloaderFsmTaskInstanceId=cucsLicenseDownloaderFsmTaskInstanceId, cucsLicenseInstanceFsmStageRetry=cucsLicenseInstanceFsmStageRetry, cucsLicenseFeatureTable=cucsLicenseFeatureTable, cucsLicenseContentsVendor=cucsLicenseContentsVendor, cucsLicenseInstanceFsmStageTable=cucsLicenseInstanceFsmStageTable, cucsLicenseTargetAggrPortId=cucsLicenseTargetAggrPortId, cucsLicenseContentsTotalQuant=cucsLicenseContentsTotalQuant, cucsLicenseFileFsmCurrentFsm=cucsLicenseFileFsmCurrentFsm, cucsLicenseInstanceFsmStageName=cucsLicenseInstanceFsmStageName, cucsLicenseFileFsmStageStageStatus=cucsLicenseFileFsmStageStageStatus, cucsLicenseFileFsmEntry=cucsLicenseFileFsmEntry, cucsLicenseEpDn=cucsLicenseEpDn, cucsLicenseInstanceGracePeriodUsed=cucsLicenseInstanceGracePeriodUsed, cucsLicenseInstanceFsmTaskDn=cucsLicenseInstanceFsmTaskDn, cucsLicenseFileFsmTaskTable=cucsLicenseFileFsmTaskTable, cucsLicensePropDn=cucsLicensePropDn, cucsLicenseFeatureRn=cucsLicenseFeatureRn, cucsLicenseInstanceFsmRmtInvRslt=cucsLicenseInstanceFsmRmtInvRslt, cucsLicenseSourceFileLine=cucsLicenseSourceFileLine, cucsLicenseFeatureLineRn=cucsLicenseFeatureLineRn, cucsLicenseInstanceFsmStageDescrData=cucsLicenseInstanceFsmStageDescrData, cucsLicenseFeatureVendor=cucsLicenseFeatureVendor, cucsLicenseFeatureCapProviderEntry=cucsLicenseFeatureCapProviderEntry, cucsLicenseInstanceDn=cucsLicenseInstanceDn, cucsLicenseDownloaderFsmTaskRn=cucsLicenseDownloaderFsmTaskRn, cucsLicenseFeatureType=cucsLicenseFeatureType, cucsLicenseDownloaderFsmStageStageStatus=cucsLicenseDownloaderFsmStageStageStatus, cucsLicenseInstanceFsmProgress=cucsLicenseInstanceFsmProgress, cucsLicenseFileName=cucsLicenseFileName, cucsLicenseInstanceFsmTaskItem=cucsLicenseInstanceFsmTaskItem, cucsLicenseInstanceFsmTaskInstanceId=cucsLicenseInstanceFsmTaskInstanceId, cucsLicenseFeatureCapProviderDeprecated=cucsLicenseFeatureCapProviderDeprecated, cucsLicenseFeatureCapProviderModel=cucsLicenseFeatureCapProviderModel, cucsLicensePropRn=cucsLicensePropRn, cucsLicenseDownloaderFsmTaskSeqId=cucsLicenseDownloaderFsmTaskSeqId, cucsLicenseSourceFileEntry=cucsLicenseSourceFileEntry, cucsLicenseSourceFileSig=cucsLicenseSourceFileSig, cucsLicenseSourceRn=cucsLicenseSourceRn, cucsLicenseInstanceFsmTaskTable=cucsLicenseInstanceFsmTaskTable, cucsLicenseFileFsmRmtErrCode=cucsLicenseFileFsmRmtErrCode, cucsLicenseInstanceTable=cucsLicenseInstanceTable, cucsLicenseFeatureLineSig=cucsLicenseFeatureLineSig, cucsLicenseDownloaderFsmStageEntry=cucsLicenseDownloaderFsmStageEntry, cucsLicenseFileFsmRmtErrDescr=cucsLicenseFileFsmRmtErrDescr, cucsLicenseFileFsmTaskDn=cucsLicenseFileFsmTaskDn, cucsLicenseInstanceInstanceId=cucsLicenseInstanceInstanceId, cucsLicenseTargetInstanceId=cucsLicenseTargetInstanceId, cucsLicenseDownloaderUser=cucsLicenseDownloaderUser, cucsLicenseContentsVersion=cucsLicenseContentsVersion, cucsLicenseFileFsmTaskItem=cucsLicenseFileFsmTaskItem, cucsLicenseInstanceFsmTry=cucsLicenseInstanceFsmTry, cucsLicenseDownloaderFsmTable=cucsLicenseDownloaderFsmTable, cucsLicenseContentsEntry=cucsLicenseContentsEntry, cucsLicenseServerHostIdRn=cucsLicenseServerHostIdRn, cucsLicenseFeatureCapProviderInstanceId=cucsLicenseFeatureCapProviderInstanceId, cucsLicenseFeatureCapProviderDefQuant=cucsLicenseFeatureCapProviderDefQuant, cucsLicenseFeatureCapProviderGencount=cucsLicenseFeatureCapProviderGencount, cucsLicenseInstanceFsmInstanceId=cucsLicenseInstanceFsmInstanceId, cucsLicenseSourceFileHostId=cucsLicenseSourceFileHostId, cucsLicenseFileFsmInstanceId=cucsLicenseFileFsmInstanceId, cucsLicenseDownloaderFsmStageName=cucsLicenseDownloaderFsmStageName, cucsLicenseTargetRn=cucsLicenseTargetRn, cucsLicenseDownloaderRemotePath=cucsLicenseDownloaderRemotePath, cucsLicenseFileFsmRn=cucsLicenseFileFsmRn, cucsLicenseInstanceFsmEntry=cucsLicenseInstanceFsmEntry, cucsLicenseDownloaderInstanceId=cucsLicenseDownloaderInstanceId, cucsLicenseFileFsmRmtRslt=cucsLicenseFileFsmRmtRslt, cucsLicensePropValue=cucsLicensePropValue, cucsLicenseFileFsmTaskSeqId=cucsLicenseFileFsmTaskSeqId, cucsLicenseDownloaderFsmStageOrder=cucsLicenseDownloaderFsmStageOrder, cucsLicenseFeatureCapProviderLoadErrors=cucsLicenseFeatureCapProviderLoadErrors, cucsLicenseFileFsmStamp=cucsLicenseFileFsmStamp, cucsLicenseSourceFileQuant=cucsLicenseSourceFileQuant, cucsLicenseFeatureCapProviderDn=cucsLicenseFeatureCapProviderDn, cucsLicenseDownloaderFsmEntry=cucsLicenseDownloaderFsmEntry, cucsLicenseSourceDn=cucsLicenseSourceDn, cucsLicenseDownloaderFsmStamp=cucsLicenseDownloaderFsmStamp, cucsLicenseFeaturePolicyLevel=cucsLicenseFeaturePolicyLevel, cucsLicenseFeatureCapProviderRn=cucsLicenseFeatureCapProviderRn, cucsLicenseEpInstanceId=cucsLicenseEpInstanceId, cucsLicensePropName=cucsLicensePropName, cucsLicenseSourceInstanceId=cucsLicenseSourceInstanceId, cucsLicenseSourceAlwaysUse=cucsLicenseSourceAlwaysUse, cucsLicenseInstanceFsmStageEntry=cucsLicenseInstanceFsmStageEntry, cucsLicenseFeatureCapProviderRevision=cucsLicenseFeatureCapProviderRevision, cucsLicenseFileId=cucsLicenseFileId, cucsLicensePropEntry=cucsLicensePropEntry, cucsLicenseInstanceSubordinateUsedQuant=cucsLicenseInstanceSubordinateUsedQuant, cucsLicenseFeatureVersion=cucsLicenseFeatureVersion, cucsLicenseContentsDn=cucsLicenseContentsDn, cucsLicenseFeatureDescr=cucsLicenseFeatureDescr, cucsLicenseDownloaderTable=cucsLicenseDownloaderTable, cucsLicenseFileFsmDescr=cucsLicenseFileFsmDescr, cucsLicenseFileFsmStageName=cucsLicenseFileFsmStageName, cucsLicenseInstanceFsmProgr=cucsLicenseInstanceFsmProgr, cucsLicenseFeatureEntry=cucsLicenseFeatureEntry, cucsLicenseFileFsmRmtInvErrDescr=cucsLicenseFileFsmRmtInvErrDescr, cucsLicenseInstanceFsmStamp=cucsLicenseInstanceFsmStamp, cucsLicenseInstanceFsmTaskFlags=cucsLicenseInstanceFsmTaskFlags, cucsLicenseDownloaderFsmStatus=cucsLicenseDownloaderFsmStatus, cucsLicenseInstanceFsmStageStageStatus=cucsLicenseInstanceFsmStageStageStatus, cucsLicenseInstanceFsmCurrentFsm=cucsLicenseInstanceFsmCurrentFsm, cucsLicenseContentsTable=cucsLicenseContentsTable, cucsLicenseFileScope=cucsLicenseFileScope, cucsLicenseDownloaderFsmRmtInvErrDescr=cucsLicenseDownloaderFsmRmtInvErrDescr, cucsLicenseInstanceFsmRmtInvErrCode=cucsLicenseInstanceFsmRmtInvErrCode, cucsLicenseFeatureLineQuant=cucsLicenseFeatureLineQuant, cucsLicenseFileFsmTable=cucsLicenseFileFsmTable, cucsLicenseDownloaderFsmStageDescr=cucsLicenseDownloaderFsmStageDescr, cucsLicenseDownloaderServer=cucsLicenseDownloaderServer, cucsLicenseFeatureInstanceId=cucsLicenseFeatureInstanceId, cucsLicenseFeatureCapProviderTable=cucsLicenseFeatureCapProviderTable, cucsLicenseDownloaderEntry=cucsLicenseDownloaderEntry, cucsLicenseDownloaderFsmTaskDn=cucsLicenseDownloaderFsmTaskDn, cucsLicenseFeatureCapProviderMgmtPlaneVer=cucsLicenseFeatureCapProviderMgmtPlaneVer, cucsLicenseInstanceIsPresent=cucsLicenseInstanceIsPresent, cucsLicenseDownloaderFsmStageRetry=cucsLicenseDownloaderFsmStageRetry, cucsLicenseDownloaderFsmStageInstanceId=cucsLicenseDownloaderFsmStageInstanceId, cucsLicenseDownloaderFsmTaskFlags=cucsLicenseDownloaderFsmTaskFlags, cucsLicenseFeatureCapProviderDeleted=cucsLicenseFeatureCapProviderDeleted, cucsLicenseFileAdminState=cucsLicenseFileAdminState, cucsLicenseFileFsmStageLastUpdateTime=cucsLicenseFileFsmStageLastUpdateTime, cucsLicenseFeatureLineId=cucsLicenseFeatureLineId, cucsLicenseDownloaderFsmRmtErrCode=cucsLicenseDownloaderFsmRmtErrCode, cucsLicenseFileRn=cucsLicenseFileRn, cucsLicenseDownloaderFsmRmtInvRslt=cucsLicenseDownloaderFsmRmtInvRslt, cucsLicenseDownloaderFsmPrev=cucsLicenseDownloaderFsmPrev, cucsLicenseDownloaderFsmFsmStatus=cucsLicenseDownloaderFsmFsmStatus, cucsLicenseFeatureCapProviderType=cucsLicenseFeatureCapProviderType, cucsLicenseFeatureCapProviderElementLoadFailures=cucsLicenseFeatureCapProviderElementLoadFailures, cucsLicenseFileFsmStageDn=cucsLicenseFileFsmStageDn, cucsLicenseInstanceUsedQuant=cucsLicenseInstanceUsedQuant, cucsLicenseSourceSku=cucsLicenseSourceSku, cucsLicenseSourceFileType=cucsLicenseSourceFileType, cucsLicenseDownloaderFsmTry=cucsLicenseDownloaderFsmTry, cucsLicenseFileFsmTaskInstanceId=cucsLicenseFileFsmTaskInstanceId, cucsLicenseTargetEntry=cucsLicenseTargetEntry, cucsLicenseInstanceFsmStageOrder=cucsLicenseInstanceFsmStageOrder, cucsLicenseFileFsmTaskRn=cucsLicenseFileFsmTaskRn, cucsLicenseDownloaderFsmStageTable=cucsLicenseDownloaderFsmStageTable, cucsLicenseSourceFileExp=cucsLicenseSourceFileExp, cucsLicenseFileInstanceId=cucsLicenseFileInstanceId, cucsLicenseFileFsmTaskCompletion=cucsLicenseFileFsmTaskCompletion, cucsLicenseInstanceFsmStageInstanceId=cucsLicenseInstanceFsmStageInstanceId, cucsLicenseInstanceRn=cucsLicenseInstanceRn, cucsLicenseFileFsmStageRetry=cucsLicenseFileFsmStageRetry, cucsLicenseInstanceFsmStageRn=cucsLicenseInstanceFsmStageRn, cucsLicenseServerHostIdHostId=cucsLicenseServerHostIdHostId, cucsLicenseTargetDn=cucsLicenseTargetDn, cucsLicenseFileFsmCompletionTime=cucsLicenseFileFsmCompletionTime, cucsLicenseFileFsmRmtInvErrCode=cucsLicenseFileFsmRmtInvErrCode) mibBuilder.exportSymbols("CISCO-UNIFIED-COMPUTING-LICENSE-MIB", cucsLicenseSourceHostId=cucsLicenseSourceHostId, cucsLicenseFileFsmStageDescrData=cucsLicenseFileFsmStageDescrData, cucsLicenseFeatureGracePeriod=cucsLicenseFeatureGracePeriod, cucsLicenseFeatureName=cucsLicenseFeatureName, cucsLicenseServerHostIdInstanceId=cucsLicenseServerHostIdInstanceId, cucsLicenseSourceFileRn=cucsLicenseSourceFileRn, cucsLicenseDownloaderFsmDescrData=cucsLicenseDownloaderFsmDescrData, cucsLicenseTargetPortId=cucsLicenseTargetPortId, cucsLicenseEpTable=cucsLicenseEpTable, cucsLicenseFileFsmRmtInvRslt=cucsLicenseFileFsmRmtInvRslt, cucsLicenseFileFsmTry=cucsLicenseFileFsmTry, cucsLicenseDownloaderFsmProgress=cucsLicenseDownloaderFsmProgress, cucsLicensePropInstanceId=cucsLicensePropInstanceId, cucsLicenseSourceFileInstanceId=cucsLicenseSourceFileInstanceId, cucsLicenseFileFsmDescrData=cucsLicenseFileFsmDescrData, cucsLicenseInstanceFsmRn=cucsLicenseInstanceFsmRn, cucsLicenseServerHostIdDn=cucsLicenseServerHostIdDn, cucsLicenseDownloaderFsmStageLastUpdateTime=cucsLicenseDownloaderFsmStageLastUpdateTime, cucsLicenseFileFsmTaskFlags=cucsLicenseFileFsmTaskFlags, cucsLicenseInstanceFsmRmtErrCode=cucsLicenseInstanceFsmRmtErrCode, cucsLicenseInstanceFsmDescrData=cucsLicenseInstanceFsmDescrData, cucsLicenseTargetTable=cucsLicenseTargetTable, cucsLicenseFileFsmFsmStatus=cucsLicenseFileFsmFsmStatus, cucsLicenseFeatureLinePak=cucsLicenseFeatureLinePak, cucsLicenseDownloaderFsmTaskItem=cucsLicenseDownloaderFsmTaskItem, cucsLicenseDownloaderFsmInstanceId=cucsLicenseDownloaderFsmInstanceId, cucsLicenseInstanceDefQuant=cucsLicenseInstanceDefQuant)
class NegativeNumberError(Exception): def __init__(self, message): super().__init__(message) def get_inverse(n): number = int(n) if number == 0: raise ZeroDivisionError('n is 0') elif number < 0: raise NegativeNumberError('n is less than 0') elif type(number) is not int: raise ValueError('n is not a number') else: return 1 / number def main(): value = input('Enter a number: ') try: returned_value = get_inverse(value) except ValueError: print('Error: The value must be a number') except ZeroDivisionError: print('Error: Cannot divide by zero') except NegativeNumberError: print('Error: The value cannot be negative') else: print('The result is: {}'.format(returned_value)) if __name__ == '__main__': main()
def add_native_methods(clazz): def initWriterIDs__java_lang_Class__java_lang_Class__(a0, a1, a2): raise NotImplementedError() def initJPEGImageWriter____(a0): raise NotImplementedError() def setDest__long__(a0, a1): raise NotImplementedError() def writeImage__long__byte____int__int__int__int____int__int__int__int__int__javax_imageio_plugins_jpeg_JPEGQTable____boolean__javax_imageio_plugins_jpeg_JPEGHuffmanTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____boolean__boolean__boolean__int__int____int____int____int____int____boolean__int__(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26): raise NotImplementedError() def writeTables__long__javax_imageio_plugins_jpeg_JPEGQTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____(a0, a1, a2, a3, a4): raise NotImplementedError() def abortWrite__long__(a0, a1): raise NotImplementedError() def resetWriter__long__(a0, a1): raise NotImplementedError() def disposeWriter__long__(a0, a1): raise NotImplementedError() clazz.initWriterIDs__java_lang_Class__java_lang_Class__ = staticmethod(initWriterIDs__java_lang_Class__java_lang_Class__) clazz.initJPEGImageWriter____ = initJPEGImageWriter____ clazz.setDest__long__ = setDest__long__ clazz.writeImage__long__byte____int__int__int__int____int__int__int__int__int__javax_imageio_plugins_jpeg_JPEGQTable____boolean__javax_imageio_plugins_jpeg_JPEGHuffmanTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____boolean__boolean__boolean__int__int____int____int____int____int____boolean__int__ = writeImage__long__byte____int__int__int__int____int__int__int__int__int__javax_imageio_plugins_jpeg_JPEGQTable____boolean__javax_imageio_plugins_jpeg_JPEGHuffmanTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____boolean__boolean__boolean__int__int____int____int____int____int____boolean__int__ clazz.writeTables__long__javax_imageio_plugins_jpeg_JPEGQTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____ = writeTables__long__javax_imageio_plugins_jpeg_JPEGQTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____javax_imageio_plugins_jpeg_JPEGHuffmanTable____ clazz.abortWrite__long__ = abortWrite__long__ clazz.resetWriter__long__ = resetWriter__long__ clazz.disposeWriter__long__ = staticmethod(disposeWriter__long__)
#!/usr/bin/env python """Tests for `beaker` package.""" def test_something(): pass
class Solution: def entityParser(self, text): ps = [[6, "&quot;", '"'], [6, "&apos;", "'"], [5, "&amp;", '&'], [4, "&gt;", '>'], [4, "&lt;", '<'], [7, "&frasl;", '/']] ans = "" idx = 0 while idx < len(text): while idx < len(text) and text[idx] != '&': ans += text[idx] idx += 1 replaced = False for p in ps: if idx + p[0] <= len(text) and text[idx:idx + p[0]] == p[1]: ans += p[2] idx += p[0] replaced = True break if not replaced and idx < len(text): ans += text[idx] idx += 1 return ans
# Fatiamento de caracteres é usado para selecionar APENAS os caracteres especificados. A sequência começa no 0, excluindo o último caracter. frase=str("Curso em vídeo") print("Curso" in frase) # Exibe se existe a palavra na frase com True/False print(frase[0]) # Exibe o primeiro caracter print(frase[:14]) # Exibe do primeiro caracter ao 14 print(frase[9:]) # Exibe do caracter 9 ao final print(frase[6:14]) # Exibe do caracter 6 ao 14 print(frase.replace("vídeo", "casa")) # Substitui os termos print(frase.lower()) # deixa tudo em minúsculo print(frase.upper()) # DEIXA TUDO EM MAIÚSCULO print(frase.title()) # Deixa Primeira Letra Em Maiúsculo print(frase.capitalize()) # Deixa primeira letra em maiúsculo print(frase.strip()) # Remove os espaços vazios digitados no início e no final do campo input print(frase.split()) # Cria uma lista das palavras com espaços entre elas print("Am" + "e" *10 + "i") # Escreve o caracter X vezes... Ameeeeeeeeeei
#!/usr/bin/python3 __author__ = "yang.dd" """ example 075 """ if __name__ == '__main__': for i in range(5): n = 0 if i != 1: n += 1 if i == 3: n += 1 if i == 4: n += 1 if i != 4: n += 1 if n == 3: print(64 + i)
vel = int(input('A qual velocidade você passou no radar? ')) valor = (vel - 80) * 7 if vel > 80: print(f'Você foi multado! \nValor da multa: R${valor}') else: print('Velocidade permitida!')
#Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos Dólares ela pode comprar # Cotação do dia 25/11/2021 $5.56. real = float(input('Informe a quantidade de dinheiro que você tem na carteira:')) conversaoDolar: float = real / 5.56 print(f'O valor de R${real:.2f} convertido em dólar é ${conversaoDolar:.2f}')
name1 = 'Fito' name2 = 'Ben' name3 = 'Ruby' name4 = 'Nish' name5 = 'Nito' name = input("Enter your name: ") if name == name1 or name == name2 or name == name3 or name == name4 or name == name5: print("I know you!") else: print("Sorry, ", name, "I don't know who you are :(")
""" Datasets should all have the same format so they can be easily used together. In particular, they should be exported from the submodule: - as a xarray DataArray or saved asnetcdf file format - with 'lon' as the longitude variable name in °E (float) - with 'lat' as the latitude variable name in °N (float) - with 'time' for time variable name in years with monthly resolution taken in the middle of each month (float) - with 'tp' for the variable name for total precipitation in mm/day (float) """
target = int(input()) now = 0 for i in range(0, target // 5 + 1): count_5k = target // 5 - i count_3k = 0 if count_5k * 5 == target: print(count_5k + count_3k) break else: if (target - count_5k * 5) % 3 == 0: count_3k = (target - count_5k * 5) // 3 print(count_5k + count_3k) break else: if count_5k == 0: print(-1)
def transmit_order_to_erp(erp_order_process): # FIXME - submit order to erp erp_order_process.erp_order_id = '1337' erp_order_process.save() def update_campaign_step(campaign_process): # FIXME get campaign participation for the organisation/person and update to target values pass def create_event_entry_for_process(process): person, organisation = process.person, process.organisation process.event_id = '12321' # FIXME we should have some kind of template / this info should come with the def create_task_for_process(process): event = process.event task.create(event=event, group=process.task_group_id) # FIXME we should have some kind of template / this info should come with the
# # _midi_file_event.py # crest-python # # Copyright (C) 2017 Rue Yokaze # Distributed under the MIT License. # class MidiFileEvent(object): def __init__(self, tick, message): self.__tick = int(tick) self.__message = message def __GetTick(self): return self.__tick def __GetMessage(self): return self.__message Tick = property(__GetTick) Message = property(__GetMessage)
def sanitize_for_shell(string): """ Return `string` with double quotes escaped for use in a Windows shell command. """ return string.replace('"', r'\"') def sanitize_username(name): """ This applies only to Windows usernames (logons). """ return name.translate(None, r'"/[]:;|=,+*?<>' + '\0') def sanitize_path(path): """ This applies only to Windows paths. """ return path.translate(None, r'<>"/|?*' + ''.join(map(chr, range(0, 31)))) def sanitize_unc_path(path): return sanitize_path(path).translate(None, ':') def sanitize_file_name(file_name): """ This applies only to Windows file names. """ return sanitize_path(file_name).translate(None, ':\\')
#!/usr/bin/env python3 # https://codeforces.com/problemset/problem/1291/A def f(s): i = len(s)-1 l = [] while i>=0 and len(l)<2: if int(s[i])%2==1: l.append(s[i]) i -= 1 if len(l)<2: return -1 l.reverse() return ''.join(l) t = int(input()) for _ in range(t): _ = input() s = input() print(f(s))
def convert_textgen_noun_json_to_utg(textgen_data, aninality): # this code used in migrations, so, it MUSTN'T be changed properties = {1: 0 if aninality else 1} if 'мр' in textgen_data['properties']: properties[3] = 0 if 'ср' in textgen_data['properties']: properties[3] = 1 if 'жр' in textgen_data['properties']: properties[3] = 2 if 'мн' in textgen_data['properties']: properties[2] = 1 utg_data = {'forms': textgen_data['forms'], 'type': 0, 'properties': properties} return utg_data
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Gender, obj[4]: Age, obj[5]: Children, obj[6]: Education, obj[7]: Occupation, obj[8]: Income, obj[9]: Bar, obj[10]: Coffeehouse, obj[11]: Restaurant20to50, obj[12]: Direction_same, obj[13]: Distance # {"feature": "Coffeehouse", "instances": 34, "metric_value": 0.99, "depth": 1} if obj[10]<=3.0: # {"feature": "Time", "instances": 30, "metric_value": 0.9481, "depth": 2} if obj[1]<=2: # {"feature": "Coupon", "instances": 19, "metric_value": 0.998, "depth": 3} if obj[2]>1: # {"feature": "Restaurant20to50", "instances": 16, "metric_value": 0.9887, "depth": 4} if obj[11]<=1.0: # {"feature": "Occupation", "instances": 13, "metric_value": 0.9957, "depth": 5} if obj[7]>1: # {"feature": "Distance", "instances": 11, "metric_value": 0.9457, "depth": 6} if obj[13]>1: # {"feature": "Passanger", "instances": 6, "metric_value": 0.65, "depth": 7} if obj[0]<=2: return 'False' elif obj[0]>2: # {"feature": "Gender", "instances": 2, "metric_value": 1.0, "depth": 8} if obj[3]<=0: return 'False' elif obj[3]>0: return 'True' else: return 'True' else: return 'False' elif obj[13]<=1: # {"feature": "Education", "instances": 5, "metric_value": 0.971, "depth": 7} if obj[6]>1: # {"feature": "Bar", "instances": 3, "metric_value": 0.9183, "depth": 8} if obj[9]<=1.0: return 'False' elif obj[9]>1.0: return 'True' else: return 'True' elif obj[6]<=1: return 'True' else: return 'True' else: return 'True' elif obj[7]<=1: return 'True' else: return 'True' elif obj[11]>1.0: return 'True' else: return 'True' elif obj[2]<=1: return 'False' else: return 'False' elif obj[1]>2: # {"feature": "Distance", "instances": 11, "metric_value": 0.4395, "depth": 3} if obj[13]>1: return 'True' elif obj[13]<=1: # {"feature": "Coupon", "instances": 2, "metric_value": 1.0, "depth": 4} if obj[2]<=3: return 'True' elif obj[2]>3: return 'False' else: return 'False' else: return 'True' else: return 'True' elif obj[10]>3.0: return 'False' else: return 'False'
def binarySearch(array, target): start = 0 end = len(array) - 1 while start <= end: midIndex = (end - start) // 2 indexValue = array[midIndex] if indexValue == target: return midIndex elif indexValue < target: start = midIndex + 1 else: end = midIndex - 1 print(midIndex, indexValue) return -1 data = [1,2,3,4,5,6,25,4324,34234,14,4234,4324] result = binarySearch(data, 34234) print(result)
class Tablero: def __init__(self): self.vida_nave = None self.puntos_nave = None def modifica_vida(self, vida): self.vida_nave = vida return self.vida_nave def modifica_puntos(self, puntos): self.puntos_nave = puntos return self.puntos_nave
# Obratenie vety # Napíšte funkciu veta_naopak, ktorá berie ako argument vetu a vráti túto vetu s všetkými slovami pospiatky. K tomu si napíšte pomocnú funkciu slovo_odzadu, ktorá berie iba jedno slovo a to vráti pospiatky. (Veľkosť písmen a interpunkciu neriešte.) # Sample Input: # veta_naopak('toto je tajná správa') # Sample Output: # otot ej ánjat avárps def veta_naopak(veta: str) -> str: pole = veta.split() dlzka_pola = len(pole) vysledok = '' for i in range(0, dlzka_pola): vysledok = slovo_odzadu(pole[dlzka_pola - i - 1]) + ' ' + vysledok return vysledok def slovo_odzadu(slovo: str) -> str: return ''.join(reversed(slovo)) # spojuje prvky pomocou '' print(veta_naopak('toto je tajná správa'))
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Module that includes classes and functions used by fuzzers.""" def FillInParameter(parameter, func, template): """Replaces occurrences of a parameter by calling a provided generator. Args: parameter: A string representing the parameter that should be replaced. func: A function that returns a string representing the value used to replace an instance of the parameter. template: A string that contains the parameter to be replaced. Returns: A string containing the value of |template| in which instances of |pameter| have been replaced by results of calling |func|. """ result = template while parameter in result: result = result.replace(parameter, func(), 1) return result
def f(n): if n==0: return 1 return n-m(f(n-1)) def m(n): if n==0: return 0 return n-f(m(n-1))
# Mad Libs Story Maker # Create a Mad Libs style game, where the program asks the user for # certain types of words, and then prints out a story with the # words that the user inputted. # The story doesn't have to be too long, but it should have some sort of story line. # Subgoals: # If the user has to put in a name, change the first letter to a capital letter. # Change the word "a" to "an" when the next word in the sentence begins with a vowel. adj1 = input("Adjective #1: ") adj2 = input("Adjective #2: ") adverb = input("Adverb: ") noun1 = input("Noun #1: ") noun2 = input("Noun #2: ") number = input("Number: ") body_part = input("Part of the Body: ") person1 = input("Person You Know #1: ") pnoun1 = input("Plural Noun #1: ") liquid = input("Type of Liquid: ") print("Dear Physical Education Teacher, \n" + "Please excuse my son/daughter from missing " + adj1 + " class yesterday. When " + person1.capitalize() + " awakened yesterday, I could" + " see that his/her nose was " + adj2 + ". He/She also complained of " + body_part + " aches and having a sore " + noun1 + " and I took him/her " + " to the family " + noun2 + ". The doctor quickly diagnosed it to be the " + str(number) + "-hour flu and suggested he/she take two " + pnoun1 + " with a glass of " + liquid + " go to bed " + adverb + "." )
class Song(object): def __init__(self, lyrics): self.lyrics = lyrics def sing_me_a_song(self): for line in self.lyrics: print(line) happy_bday = Song(["생일 축하 합니다", "고소당하기는 싫으니까", "여기서 이만 할게요"]) bulls_on_parade = Song(["조개 껍질 한가득 차고", "가장을 위한다지"]) happy_bday.sing_me_a_song() bulls_on_parade.sing_me_a_song()
"""The code template to supply to the front end. This is what the user will be asked to complete and submit for grading. Do not include any imports. This is not a REPL environment so include explicit 'print' statements for any outputs you want to be displayed back to the user. Use triple single quotes to enclose the formatted code block. """ challenge_code = '''n_bits=2 dev = qml.device("default.qubit", wires=range(n_bits)) @qml.qnode(dev) def two_distant_spins(B, time): """Circuit for evolving the state of two distant electrons in a magnetic field. Args: B (float): The strength of the field, assumed to point in the z direction. time (float): The time we evolve the electron wavefunction for. Returns: array[complex]: The quantum state after evolution. """ e = 1.6e-19 m_e = 9.1e-31 alpha = B*e/(2*m_e) ################## # YOUR CODE HERE # ################## return qml.state() '''
class Config(object): def __init__(self, db_type, ip, port, db, user, passwd): """ :param db_type: * mysql * oracle * postgresql :param ip: :param port: :param db: :param user: :param passwd: """ self.__db_type__ = db_type self.__ip__ = ip self.__port__ = port self.__db__ = db self.__user__ = user self.__passwd__ = passwd self.__url_format__ = url_format.get(db_type) def url(self): return self.__url_format__.format(self.__ip__, self.__port__, self.__db__) def properties(self): return {'user': self.__user__, 'password': self.__passwd__, 'driver': driver.get(self.__db_type__), } url_format = { 'mysql': 'jdbc:mysql://{}:{}/{}?useUnicode=true&characterEncoding=UTF-8', 'oracle': 'jdbc:oracle:thin:@{}:{}:{}', 'postgresql': 'jdbc:postgresql://{}:{}/{}?useUnicode=true&characterEncoding=UTF-8', } driver = { 'mysql': 'com.mysql.cj.jdbc.Driver', 'oracle': 'oracle.jdbc.driver.OracleDriver', 'postgresql': 'org.postgresql.Driver', }
def report_status(scheduled_time, estimated_time): '''(number, number) -> str Report status of flight(on time, early, delayed) which has to arrive at scheduled time but now will arrive at estimated time. Pre-condition: 0.0 <= scheduled_time < 24 and 0.0 <= estimated_time < 24 >>> report_status(14.0, 14.0) 'on time' >>> report_status(12.5, 12.0) 'early' >>> report_status(9.0, 11.0) 'delayed' ''' if scheduled_time == estimated_time: return 'on time' elif scheduled_time > estimated_time: return 'early' else: return 'delayed'
__import__('setuptools').setup( name="aye", version="0.0.1", author="Tony Fast", author_email="tony.fast@gmail.com", description="Interactive Notebook Modules.", license="BSD-3-Clause", setup_requires=['pytest-runner'], tests_require=['pytest', 'pytest-ipynb'], install_requires=['ipython', 'nbconvert'], include_package_data=True, packages=['aye'], )
with open("input.txt", "rt") as file: text = file.read().splitlines() size = len(text[0]) length = len(text) ones = [0 for _ in range(size)] for s in text: for i, c in enumerate(s): if c == '1': ones[i] += 1 gamma = "" epsilon = "" for i in ones: if i > (length/2): gamma += '1' epsilon += '0' else: gamma += '0' epsilon += '1' print(int(gamma, base=2)*int(epsilon, base=2))
# -*- coding: UTF-8 -*- strings = { u"P1AA01" : u"La Cabane des Robinson", u"P1AA02" : u"Indiana Jones and the Temple of Peril", u"P1AA04" : u"Pirates of the Caribbean", u"P1DA03" : u"Autopia", u"P1DA04" : u"Buzz Lightyear Laser Blast", u"P1DA06" : u"Les Mystères du Nautilus", u"P1DA07" : u"Orbitron", u"P1DA08" : u"Space Mountain: Mission 2", u"P1DA09" : u"Star Tours", u"P1DA12" : u"Captain EO", u"P1NA00" : u"Alice's Curious Labyrinth", u"P1NA01" : u"Blanche-Neige et les Sept Nains", u"P1NA02" : u"Le Carrousel de Lancelot", u"P1NA03" : u"Casey Jr. - le Petit Train du Cirque", u"P1NA05" : u"Dumbo the Flying Elephant", u"P1NA07" : u"\"it's a small world\" Celebration", u"P1NA08" : u"Mad Hatter's Tea Cups", u"P1NA09" : u"Le Pays des Contes de Fées", u"P1NA10" : u"Peter Pan's Flight", u"P1NA13" : u"Les Voyages de Pinocchio", u"P1RA00" : u"Big Thunder Mountain", u"P1RA03" : u"Phantom Manor", u"P1RA04" : u"River Rogue Keelboats", u"P2XA00" : u"Studio Tram Tour: Behind the Magic", u"P2XA01" : u"CinéMagique", u"P2XA02" : u"Cars Quatre Roues Rallye", u"P2XA03" : u"Crush's Coaster", u"P2XA05" : u"Flying Carpets Over Agrabah", u"P2XA06" : u"RC Racer", u"P2XA07" : u"Toy Soldiers Parachute Drop", u"P2XA08" : u"Slinky Dog Zigzag Spin", u"P2ZA00" : u"Armageddon : les Effets Spéciaux", u"P2ZA01" : u"Rock 'n' Roller Coaster starring Aerosmith", u"P2ZA02" : u"The Twilight Zone Tower of Terror", u"P2XA09" : u"Ratatouille : L'Aventure Totalement Toquée de Rémy" }
{ "id": "", "name": "", "symbol": "", "rank": 0, "circulating_supply": 0, "total_supply": 0, "max_supply": 0, "last_updated": None, "market_cap": 0, "market_cap_change_24h": 0, "volume": 0, "ath": 0, "ath_date": None, "ath_change_percentage": 0.0, "percent_change": { "05m": 0.0, "30m": 0.0, "0h": 0.0, "6h": 0.0, "02h": 0.0, "24h": 0.0, "7d": 0.0, "30d": 0.0, "0y": 0.0, "ath": 0.0, "market_cap_24h": 0.0 }, "price_change": { "24h": 0 }, "volume_change": { "24h": 0 }, "high_24h": 0, "low_24h": 0, "image": "", "fully_diluted_valuation": 0, "roi": 0.0, "first_data_at": None, "beta_value": 0.0 }
num = [[], []] for c in range(1,8): n = int(input(f'Digite o {c}º numero:')) if n % 2 == 0: num[1].append(n) else: num[0].append(n) num[1].sort() num[0].sort() print(f'Os valores pares digitados são {num[1]}') print(f'Os valores impares digitados são {num[0]}')
def _carp(*args,skip=1): """Warn with no backtrace""" if TRACEBACK: print(_longmess(*args, skip=skip), end='', file=sys.stderr) else: print(_shortmess(*args, skip=skip), end='', file=sys.stderr)
# -*- coding: utf-8 -*- """ Dan Scullin DAT-129 Icon Programming Goal is to create an icon of my creation, and manipulate it using functions. Rad! This is a temporary script file. """ lists = [['0', '0', '0', '0', '1', '0', '0', '0', '0', '0'], ['0', '0', '0', '0', '1', '0', '0', '0', '0', '0'], ['0', '0', '0', '0', '1', '0', '0', '0', '0', '0'], ['0', '0', '0', '0', '1', '0', '0', '0', '0', '0'], ['0', '0', '0', '0', '1', '0', '0', '0', '0', '0'], ['0', '0', '0', '1', '1', '1', '0', '0', '0', '0'], ['0', '0', '1', '1', '1', '1', '1', '0', '0', '0'], ['0', '0', '0', '1', '1', '1', '0', '0', '0', '0'], ['0', '0', '1', '1', '1', '1', '1', '0', '0', '0'], ['0', '0', '0', '1', '1', '1', '0', '0', '0', '0']] def print_lists (the_list): """ The goal of this function is to take in a list of lists, and print it using the @ and . symbols to create a 10 x 10 icon. """ for list in the_list: print("") #gives us some space for item in list: if item == "0": print(".", sep='', end='') #prints . for 0 in the list elif item == "1": print("@", sep='', end='') #prints @ for 1 in the list def print_icon_inverse (the_list): """ the goal of this function is to create an icon that prints from the list above, but prints the inverse of the icon instead """ for list in the_list: print("") for item in list: if item == "0": print("@", sep='', end ='') elif item == "1": print (".", sep='', end='') if __name__ == '__main__': (print_lists(lists)) print("") (print_icon_inverse(lists))
# # PySNMP MIB module RADLAN-BONJOUR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-BONJOUR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:36:56 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress") rnd, = mibBuilder.importSymbols("RADLAN-MIB", "rnd") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Gauge32, ObjectIdentity, Unsigned32, ModuleIdentity, TimeTicks, Bits, Integer32, MibIdentifier, iso, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Gauge32", "ObjectIdentity", "Unsigned32", "ModuleIdentity", "TimeTicks", "Bits", "Integer32", "MibIdentifier", "iso", "Counter64") RowStatus, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TextualConvention", "DisplayString") rlBonjour = ModuleIdentity((1, 3, 6, 1, 4, 1, 89, 114)) rlBonjour.setRevisions(('2009-04-23 00:00', '2015-05-12 00:00',)) if mibBuilder.loadTexts: rlBonjour.setLastUpdated('201505120000Z') if mibBuilder.loadTexts: rlBonjour.setOrganization('Marvell Computer Communications Ltd.') rlBonjourPublish = MibScalar((1, 3, 6, 1, 4, 1, 89, 114, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlBonjourPublish.setStatus('current') class RlBonjourServiceState(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("rlBonjourNotPublished", 0), ("rlBonjourInactive", 1), ("rlBonjourRegistering", 2), ("rlBonjourRunning", 3)) class RlBonjourOperationState(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("up", 1), ("down", 2)) class RlBonjourOperationReason(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)) namedValues = NamedValues(("notExclude", 0), ("include", 1), ("notInclude", 2), ("exclude", 3), ("bonjourDisabled", 4), ("serviceDisabled", 5), ("noIPaddress", 6), ("l2InterfaceDown", 7), ("notPresent", 8), ("unknown", 9)) rlBonjourStatusTable = MibTable((1, 3, 6, 1, 4, 1, 89, 114, 2), ) if mibBuilder.loadTexts: rlBonjourStatusTable.setStatus('current') rlBonjourStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 114, 2, 1), ).setIndexNames((0, "RADLAN-BONJOUR-MIB", "rlBonjourStatusServiceName"), (0, "RADLAN-BONJOUR-MIB", "rlBonjourStatusIPInterfaceType"), (0, "RADLAN-BONJOUR-MIB", "rlBonjourStatusIPInterfaceAddr")) if mibBuilder.loadTexts: rlBonjourStatusEntry.setStatus('current') rlBonjourStatusServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 2, 1, 1), DisplayString()) if mibBuilder.loadTexts: rlBonjourStatusServiceName.setStatus('current') rlBonjourStatusIPInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 2, 1, 2), InetAddressType()) if mibBuilder.loadTexts: rlBonjourStatusIPInterfaceType.setStatus('current') rlBonjourStatusIPInterfaceAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 2, 1, 3), InetAddress()) if mibBuilder.loadTexts: rlBonjourStatusIPInterfaceAddr.setStatus('current') rlBonjourStatusState = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 2, 1, 4), RlBonjourServiceState()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlBonjourStatusState.setStatus('current') rlBonjourStateTable = MibTable((1, 3, 6, 1, 4, 1, 89, 114, 3), ) if mibBuilder.loadTexts: rlBonjourStateTable.setStatus('current') rlBonjourStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 114, 3, 1), ).setIndexNames((0, "RADLAN-BONJOUR-MIB", "rlBonjourStateServiceName"), (0, "RADLAN-BONJOUR-MIB", "rlBonjourStateL2Interface")) if mibBuilder.loadTexts: rlBonjourStateEntry.setStatus('current') rlBonjourStateServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 3, 1, 1), DisplayString()) if mibBuilder.loadTexts: rlBonjourStateServiceName.setStatus('current') rlBonjourStateL2Interface = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 3, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: rlBonjourStateL2Interface.setStatus('current') rlBonjourStateOperationMode = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 3, 1, 3), RlBonjourOperationState()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlBonjourStateOperationMode.setStatus('current') rlBonjourStateOperationReason = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 3, 1, 4), RlBonjourOperationReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlBonjourStateOperationReason.setStatus('current') rlBonjourStateIPv6OperationMode = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 3, 1, 5), RlBonjourOperationState()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlBonjourStateIPv6OperationMode.setStatus('current') rlBonjourStateIPv6OperationReason = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 3, 1, 6), RlBonjourOperationReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlBonjourStateIPv6OperationReason.setStatus('current') rlBonjourL2Table = MibTable((1, 3, 6, 1, 4, 1, 89, 114, 4), ) if mibBuilder.loadTexts: rlBonjourL2Table.setStatus('current') rlBonjourL2Entry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 114, 4, 1), ).setIndexNames((0, "RADLAN-BONJOUR-MIB", "rlBonjourL2Ifindex")) if mibBuilder.loadTexts: rlBonjourL2Entry.setStatus('current') rlBonjourL2Ifindex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 4, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: rlBonjourL2Ifindex.setStatus('current') rlBonjourL2RowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 114, 4, 1, 2), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlBonjourL2RowStatus.setStatus('current') rlBonjourL2Mode = MibScalar((1, 3, 6, 1, 4, 1, 89, 114, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("include", 1), ("exclude", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlBonjourL2Mode.setStatus('current') rlBonjourInstanceName = MibScalar((1, 3, 6, 1, 4, 1, 89, 114, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlBonjourInstanceName.setStatus('current') rlBonjourHostName = MibScalar((1, 3, 6, 1, 4, 1, 89, 114, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlBonjourHostName.setStatus('current') mibBuilder.exportSymbols("RADLAN-BONJOUR-MIB", rlBonjourStateIPv6OperationReason=rlBonjourStateIPv6OperationReason, rlBonjourStatusTable=rlBonjourStatusTable, rlBonjourInstanceName=rlBonjourInstanceName, RlBonjourOperationState=RlBonjourOperationState, RlBonjourServiceState=RlBonjourServiceState, rlBonjourStateOperationMode=rlBonjourStateOperationMode, rlBonjourStatusState=rlBonjourStatusState, rlBonjourL2RowStatus=rlBonjourL2RowStatus, rlBonjourStateEntry=rlBonjourStateEntry, rlBonjourStateOperationReason=rlBonjourStateOperationReason, rlBonjourPublish=rlBonjourPublish, rlBonjourL2Table=rlBonjourL2Table, rlBonjourStateServiceName=rlBonjourStateServiceName, rlBonjourL2Ifindex=rlBonjourL2Ifindex, rlBonjourStatusServiceName=rlBonjourStatusServiceName, PYSNMP_MODULE_ID=rlBonjour, rlBonjourStateL2Interface=rlBonjourStateL2Interface, rlBonjourL2Mode=rlBonjourL2Mode, rlBonjourHostName=rlBonjourHostName, rlBonjourStatusIPInterfaceType=rlBonjourStatusIPInterfaceType, rlBonjourStateTable=rlBonjourStateTable, RlBonjourOperationReason=RlBonjourOperationReason, rlBonjour=rlBonjour, rlBonjourL2Entry=rlBonjourL2Entry, rlBonjourStateIPv6OperationMode=rlBonjourStateIPv6OperationMode, rlBonjourStatusIPInterfaceAddr=rlBonjourStatusIPInterfaceAddr, rlBonjourStatusEntry=rlBonjourStatusEntry)
# `!(A || B) || ( (A || C) && !(B || !C) )` def truthy(a, b, c): answer = ((not (a or b)) or ((a or c) and not(b or not c))) return answer def truthTable(): print( # A B C truthy(0, 0, 0), # 0 0 0 truthy(0, 0, 1), # 0 0 1 truthy(0, 1, 0), # 0 1 0 truthy(0, 1, 1), # 0 1 1 truthy(1, 0, 0), # 1 0 0 truthy(1, 0, 1), # 1 0 1 truthy(1, 1, 0), # 1 1 0 truthy(1, 1, 1), # 1 1 1 ) truthTable()
""" Write a program to find the node at which the intersection of two singly linked lists begins. Example 1: Input: intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB = 3 Output: Reference of the node with value = 8 Input Explanation: The intersected node's value is 8 (note that this must not be 0 if the two lists intersect). From the head of A, it reads as [4,1,8,4,5]. From the head of B, it reads as [5,0,1,8,4,5]. There are 2 nodes before the intersected node in A; There are 3 nodes before the intersected node in B. Example 2: Input: intersectVal = 2, listA = [0,9,1,2,4], listB = [3,2,4], skipA = 3, skipB = 1 Output: Reference of the node with value = 2 Input Explanation: The intersected node's value is 2 (note that this must not be 0 if the two lists intersect). From the head of A, it reads as [0,9,1,2,4]. From the head of B, it reads as [3,2,4]. There are 3 nodes before the intersected node in A; There are 1 node before the intersected node in B. Example 3: Input: intersectVal = 0, listA = [2,6,4], listB = [1,5], skipA = 3, skipB = 2 Output: null Input Explanation: From the head of A, it reads as [2,6,4]. From the head of B, it reads as [1,5]. Since the two lists do not intersect, intersectVal must be 0, while skipA and skipB can be arbitrary values. Explanation: The two lists do not intersect, so return null. Notes: If the two linked lists have no intersection at all, return null. The linked lists must retain their original structure after the function returns. You may assume there are no cycles anywhere in the entire linked structure. Your code should preferably run in O(n) time and use only O(1) memory. """ # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def getIntersectionNode(self, headA, headB): """Hashtable""" d = {} while headA: d[headA] = 1 headA = headA.next while headB: if headB in d: return headB else: headB = headB.next def getIntersectionNode2(self, headA, headB): """ Two Pointers: Let len(headA) -> m, len(headB) -> n. To ensure the compared lists have the same length, we concatenate them, l_1.e. comparing l_1 = headA + headB with l_2 = headB + headA. Then intersection between l_1 and l_2 equals to intersection between headB and headA. """ if (not headA) or (not headB): return None l_1 = headA l_2 = headB while l_1 or l_2: if not l_1: l_1 = headB if not l_2: l_2 = headA if l_1 == l_2: return l_1 l_1 = l_1.next l_2 = l_2.next
def solve(arr): prefix = [0] * len(arr) for i in range(1, len(arr)): prefix[i] = arr[i - 1] + prefix[i - 1] suffix = [0] * len(arr) for i in range(len(arr) - 2, -1, -1): suffix[i] = suffix[i + 1] + arr[i + 1] for i in range(len(arr)): if suffix[i] == prefix[i]: return i return -1 A = [1, 7, 3, 6, 5, 6] print(solve(A))
class Solution: def minSwaps(self, data: List[int]) -> int: countOnes = 0 for num in data: if num == 1: countOnes += 1 if countOnes == 0: return 0 start = 0 countZ = 0 minCount = 99999999 for end, num in enumerate(data): if num == 0: countZ += 1 if(end-start+1) == countOnes: minCount = min(minCount, countZ) if data[start] == 0: countZ -= 1 start += 1 return minCount
expected_output = { "cdp": { "index": { 1: { "capability": "R", "device_id": "device2", "hold_time": 152, "local_interface": "Ethernet0", "platform": "AS5200", "port_id": "Ethernet0", }, 2: { "capability": "R", "device_id": "device3", "hold_time": 144, "local_interface": "Ethernet0", "platform": "3640", "port_id": "Ethernet0/0", }, 3: { "capability": "", "device_id": "device4", "hold_time": 141, "local_interface": "Ethernet0", "platform": "RP1", "port_id": "Ethernet0/0", }, } } }
numero = int(input('Digite um número para calcular seu fatorial: ')) fatorial = 1 item = numero while item > 0: fatorial = fatorial * item item += -1 print('O valor da fatorial {}! é {}.'.format(numero, fatorial))
Frameworks = [ "MobileWiFi.framework", "IMTranscoding.framework", "CarPlaySupport.framework", "Spotlight.framework", "TeaCharts.framework", "SafariCore.framework", "AppSSOKerberos.framework", "RemindersUI.framework", "AirTrafficDevice.framework", "InertiaCam.framework", "ConfigurationEngineModel.framework", "CoreMaterial.framework", "AudioServerDriver.framework", "ActionKit.framework", "DifferentialPrivacy.framework", "ContactsAssistantServices.framework", "CloudPhotoServices.framework", "ScreenTimeSettingsUI.framework", "WebInspector.framework", "OSAServicesClient.framework", "TelephonyPreferences.framework", "CrashReporterSupport.framework", "iAdCore.framework", "SensingProtocols.framework", "ITMLKit.framework", "InputContext.framework", "TextureIO.framework", "AssetCacheServices.framework", "FMNetworking.framework", "LoginUILogViewer.framework", "NewDeviceOutreachUI.framework", "EmailCore.framework", "WiFiKitUI.framework", "AMPCoreUI.framework", "WebCore.framework", "CoverSheet.framework", "SiriAudioSupport.framework", "TextToSpeech.framework", "JetEngine.framework", "HSAAuthentication.framework", "USDKit.framework", "Preferences.framework", "UIFoundation.framework", "AnnotationKit.framework", "NanoPhotosUICompanion.framework", "NanoLeash.framework", "NanoRegistry.framework", "EmbeddedDataReset.framework", "CoreUtilsUI.framework", "ScreenReaderBrailleDriver.framework", "CarKit.framework", "CoreParsec.framework", "EmojiFoundation.framework", "CoreKnowledge.framework", "BaseBoardUI.framework", "ApplePushService.framework", "CoreRE.framework", "FMFUI.framework", "PBBridgeSupport.framework", "ExchangeSyncExpress.framework", "SiriGeo.framework", "GraphVisualizer.framework", "FTClientServices.framework", "HealthRecordServices.framework", "iCloudQuota.framework", "MediaControls.framework", "AdAnalytics.framework", "WebUI.framework", "ClassroomKit.framework", "ContentIndex.framework", "IDSHashPersistence.framework", "AppServerSupport.framework", "NewsServices.framework", "HealthAlgorithms.framework", "WebContentAnalysis.framework", "NewsUI2.framework", "BluetoothManager.framework", "Categories.framework", "HealthOntology.framework", "SpotlightUIInternal.framework", "CoreMediaStream.framework", "TrackingAvoidance.framework", "HealthRecordsUI.framework", "HomeAI.framework", "AppleCVA.framework", "DiagnosticsSupport.framework", "AppAnalytics.framework", "WelcomeKitCore.framework", "ButtonResolver.framework", "MobileMailUI.framework", "CameraKit.framework", "RemoteXPC.framework", "CloudKitCodeProtobuf.framework", "AirPlayReceiver.framework", "iOSScreenSharing.framework", "SiriUIActivation.framework", "BiometricKitUI.framework", "AuthKitUI.framework", "MediaMiningKit.framework", "SoftwareUpdateSettingsUI.framework", "NetworkStatistics.framework", "CameraEditKit.framework", "ContactsAutocompleteUI.framework", "FindMyDeviceUI.framework", "CalendarDaemon.framework", "EmergencyAlerts.framework", "AACCore.framework", "CoreFollowUp.framework", "C2.framework", "CacheDelete.framework", "ReminderMigration.framework", "HDRProcessing.framework", "Radio.framework", "CalendarFoundation.framework", "HealthVisualization.framework", "CoreIndoor.framework", "TSReading.framework", "iTunesCloud.framework", "NewsArticles.framework", "CloudDocsUI.framework", "NLPLearner.framework", "GameKitServices.framework", "DataDetectorsUI.framework", "DocumentManagerUICore.framework", "SampleAnalysis.framework", "AdCore.framework", "VoiceShortcuts.framework", "AppSupport.framework", "PlatterKit.framework", "CoreDAV.framework", "CoreSpeech.framework", "RunningBoardServices.framework", "AOSKit.framework", "ContactsAutocomplete.framework", "AVConference.framework", "WirelessProximity.framework", "LegacyGameKit.framework", "LinguisticData.framework", "TSUtility.framework", "KnowledgeGraphKit.framework", "FMIPCore.framework", "AccessoryAssistiveTouch.framework", "CoreUtilsSwift.framework", "FindMyDevice.framework", "MMCS.framework", "WeatherUI.framework", "PhotosFormats.framework", "ContinuousDialogManagerService.framework", "NanoSystemSettings.framework", "CorePDF.framework", "SettingsCellularUI.framework", "UIKitServices.framework", "MobileSystemServices.framework", "PreferencesUI.framework", "FusionPluginServices.framework", "CoreUI.framework", "AvatarKit.framework", "SPShared.framework", "GeoServices.framework", "ProtocolBuffer.framework", "CallHistory.framework", "CommonUtilities.framework", "DataDetectorsCore.framework", "MetadataUtilities.framework", "ControlCenterUIKit.framework", "ManagedConfiguration.framework", "Cornobble.framework", "HealthMenstrualCyclesUI.framework", "WirelessCoexManager.framework", "DistributedEvaluation.framework", "DictionaryUI.framework", "MessageSecurity.framework", "RemoteServiceDiscovery.framework", "BatteryCenter.framework", "PhotoVision.framework", "AssistantCardServiceSupport.framework", "DuetActivityScheduler.framework", "ControlCenterUI.framework", "UIKitCore.framework", "AccountSettings.framework", "RenderBox.framework", "MobileTimerUI.framework", "SIMToolkitUI.framework", "CoreHAP.framework", "EAFirmwareUpdater.framework", "Proximity.framework", "OTSVG.framework", "DataAccess.framework", "Widgets.framework", "OSASyncProxyClient.framework", "WiFiCloudSyncEngine.framework", "DataDetectorsNaturalLanguage.framework", "PairedUnlock.framework", "AccessoryNavigation.framework", "PlugInKit.framework", "SignpostMetrics.framework", "BiometricKit.framework", "NeutrinoCore.framework", "DiagnosticExtensionsDaemon.framework", "CorePrediction.framework", "WPDaemon.framework", "AOPHaptics.framework", "WiFiKit.framework", "Celestial.framework", "HealthMenstrualCycles.framework", "TeaDB.framework", "MediaControlSender.framework", "IconServices.framework", "WallpaperKit.framework", "RapportUI.framework", "MFAAuthentication.framework", "CourseKit.framework", "AirPlayRoutePrediction.framework", "PhotoAnalysis.framework", "EmojiKit.framework", "AccessibilityPlatformTranslation.framework", "MailSupport.framework", "ProactiveWidgetTracker.framework", "FrontBoardServices.framework", "CPAnalytics.framework", "Home.framework", "CardServices.framework", "MaterialKit.framework", "PersonaKit.framework", "PhotosGraph.framework", "AppleServiceToolkit.framework", "AppSSO.framework", "IntentsServices.framework", "DeviceIdentity.framework", "Calculate.framework", "MessageLegacy.framework", "WatchReplies.framework", "CloudServices.framework", "FlowFrameKit.framework", "StudyLog.framework", "SpeechRecognitionCommandServices.framework", "NewsFeed.framework", "SearchAds.framework", "SetupAssistantUI.framework", "VoiceShortcutsUI.framework", "PersonalizationPortraitInternals.framework", "iMessageApps.framework", "ReminderKit.framework", "MobileStoreDemoKit.framework", "StoreBookkeeper.framework", "TrialProto.framework", "ScreenTimeCore.framework", "SilexWeb.framework", "PairedSync.framework", "PrintKit.framework", "SiriAppResolution.framework", "AudioToolboxCore.framework", "VideoProcessing.framework", "BaseBoard.framework", "AssetViewer.framework", "RemoteMediaServices.framework", "ToneKit.framework", "MobileStorage.framework", "CoreRepairKit.framework", "PassKitUI.framework", "MediaConversionService.framework", "RemoteConfiguration.framework", "CoreLocationProtobuf.framework", "LoginKit.framework", "DiagnosticExtensions.framework", "SiriClientFlow.framework", "StorageSettings.framework", "AppLaunchStats.framework", "ResponseKit.framework", "SearchUI.framework", "HealthToolbox.framework", "NanoMediaBridgeUI.framework", "MailServices.framework", "CalendarDatabase.framework", "PencilPairingUI.framework", "AppleCVAPhoto.framework", "Weather.framework", "CoreSuggestionsInternals.framework", "SafariSafeBrowsing.framework", "SoundBoardServices.framework", "iWorkImport.framework", "BookCoverUtility.framework", "AccessoryiAP2Shim.framework", "CertInfo.framework", "DocumentCamera.framework", "HealthDiagnosticExtensionCore.framework", "DuetExpertCenter.framework", "AccessoryNowPlaying.framework", "SettingsFoundation.framework", "GPURawCounter.framework", "SMBClientProvider.framework", "ABMHelper.framework", "SPFinder.framework", "WebKitLegacy.framework", "RTTUI.framework", "Transparency.framework", "AppPreferenceClient.framework", "DeviceCheckInternal.framework", "LocalAuthenticationPrivateUI.framework", "LiveFSFPHelper.framework", "BookDataStore.framework", "OfficeImport.framework", "HardwareSupport.framework", "CheckerBoardServices.framework", "AskPermission.framework", "SpotlightServices.framework", "NewDeviceOutreach.framework", "AirPlaySender.framework", "Sentry.framework", "UserFS.framework", "XCTTargetBootstrap.framework", "SpringBoardFoundation.framework", "PeopleSuggester.framework", "HomeKitBackingStore.framework", "ContactsDonationFeedback.framework", "ConstantClasses.framework", "ProactiveExperimentsInternals.framework", "ClockKit.framework", "PowerLog.framework", "HID.framework", "CoreThemeDefinition.framework", "AggregateDictionaryHistory.framework", "HealthEducationUI.framework", "SharingUI.framework", "CoreWiFi.framework", "KeyboardArbiter.framework", "MobileIcons.framework", "SoftwareUpdateBridge.framework", "ProactiveSupportStubs.framework", "SensorKit.framework", "TVLatency.framework", "AssetsLibraryServices.framework", "IMDMessageServices.framework", "IOAccelerator.framework", "ATFoundation.framework", "PlacesKit.framework", "CDDataAccessExpress.framework", "TVMLKit.framework", "SiriOntologyProtobuf.framework", "iAdServices.framework", "SMBClientEngine.framework", "TVRemoteUI.framework", "WeatherAnalytics.framework", "ProgressUI.framework", "AppleLDAP.framework", "AirPlaySupport.framework", "TeaUI.framework", "AssistantUI.framework", "NanoTimeKitCompanion.framework", "PhotosImagingFoundation.framework", "CompassUI.framework", "SilexVideo.framework", "PowerlogDatabaseReader.framework", "CoreUtils.framework", "DigitalAccess.framework", "NanoMediaRemote.framework", "RelevanceEngineUI.framework", "VisualVoicemail.framework", "CoreCDPUI.framework", "CoreFollowUpUI.framework", "AdPlatforms.framework", "UsageTracking.framework", "DataAccessExpress.framework", "MessageProtection.framework", "FamilyNotification.framework", "MediaPlaybackCore.framework", "AuthKit.framework", "ShortcutUIKit.framework", "NanoAppRegistry.framework", "IMTransferAgent.framework", "NLP.framework", "CoreAccessories.framework", "SidecarCore.framework", "MetricsKit.framework", "SpotlightReceiver.framework", "NetAppsUtilities.framework", "IMCore.framework", "SpotlightDaemon.framework", "DAAPKit.framework", "DataDeliveryServices.framework", "AppStoreDaemon.framework", "AccessoryCommunications.framework", "OSAnalyticsPrivate.framework", "VoiceServices.framework", "AXMediaUtilities.framework", "ProactiveEventTracker.framework", "HealthUI.framework", "NetworkRelay.framework", "PhotoFoundation.framework", "Rapport.framework", "WirelessDiagnostics.framework", "ShareSheet.framework", "AXRuntime.framework", "PASampling.framework", "MobileActivation.framework", "MobileAssetUpdater.framework", "SpotlightUI.framework", "SplashBoard.framework", "NewsToday.framework", "HeroAppPredictionClient.framework", "DeviceManagement.framework", "RevealCore.framework", "ProactiveExperiments.framework", "VoiceMemos.framework", "Email.framework", "AppStoreUI.framework", "iOSDiagnostics.framework", "IOAccelMemoryInfo.framework", "IOAccessoryManager.framework", "HomeUI.framework", "LocationSupport.framework", "IMTranscoderAgent.framework", "PersonaUI.framework", "AppStoreFoundation.framework", "iAdDeveloper.framework", "ShazamKitUI.framework", "NewsAnalytics.framework", "CalendarNotification.framework", "ActionKitUI.framework", "DigitalTouchShared.framework", "OSAnalytics.framework", "CoreDuet.framework", "DoNotDisturb.framework", "BusinessChatService.framework", "TVPlayback.framework", "MapsSupport.framework", "ProactiveSupport.framework", "TextInput.framework", "IMAssistantCore.framework", "NewsCore.framework", "HealthPluginHost.framework", "WiFiLogCapture.framework", "FMCore.framework", "CoreAnalytics.framework", "IDS.framework", "Osprey.framework", "SiriUI.framework", "UserNotificationsUIKit.framework", "DoNotDisturbKit.framework", "AccessibilitySharedSupport.framework", "PodcastsUI.framework", "TVRemoteKit.framework", "HealthDaemon.framework", "BookUtility.framework", "Search.framework", "CoreNameParser.framework", "TextRecognition.framework", "WorkflowUI.framework", "CARDNDUI.framework", "ContactsUICore.framework", "SymptomDiagnosticReporter.framework", "TelephonyUtilities.framework", "AccountsDaemon.framework", "UserNotificationsSettings.framework", "ASEProcessing.framework", "Futhark.framework", "CDDataAccess.framework", "SignpostSupport.framework", "NotesShared.framework", "KeyboardServices.framework", "DrawingKit.framework", "WebBookmarks.framework", "InstallCoordination.framework", "FusionPluginKit.framework", "ControlCenterServices.framework", "FeatureFlagsSupport.framework", "HeartRhythmUI.framework", "Symbolication.framework", "MusicStoreUI.framework", "AppleHIDTransportSupport.framework", "MOVStreamIO.framework", "SocialServices.framework", "HomeSharing.framework", "IAP.framework", "NeutrinoKit.framework", "SiriTape.framework", "Montreal.framework", "VectorKit.framework", "WiFiAnalytics.framework", "CloudDocs.framework", "CommunicationsFilter.framework", "FamilyCircleUI.framework", "QLCharts.framework", "CoreDuetStatistics.framework", "BulletinBoard.framework", "iTunesStoreUI.framework", "ReminderKitUI.framework", "MarkupUI.framework", "ParsecModel.framework", "UIAccessibility.framework", "VoiceTrigger.framework", "AppSSOCore.framework", "InfoKit.framework", "PrototypeToolsUI.framework", "SMBSearch.framework", "InAppMessages.framework", "FontServices.framework", "PhotoImaging.framework", "AppleAccount.framework", "SOS.framework", "DataMigration.framework", "Memories.framework", "CoreIDV.framework", "GameCenterFoundation.framework", "MusicCarDisplayUI.framework", "FamilyCircle.framework", "FoundInAppsPlugins.framework", "SpringBoard.framework", "AppleIDAuthSupport.framework", "AdID.framework", "BarcodeSupport.framework", "ClockKitUI.framework", "SoftwareUpdateCoreSupport.framework", "Tips.framework", "TestFlightCore.framework", "MMCSServices.framework", "SEService.framework", "DialogEngine.framework", "ActivitySharingUI.framework", "CoreCDPInternal.framework", "DCIMServices.framework", "ProofReader.framework", "PipelineKit.framework", "ActivityAchievements.framework", "TelephonyRPC.framework", "FMFCore.framework", "SafariFoundation.framework", "CoreRecents.framework", "NanoResourceGrabber.framework", "SetupAssistant.framework", "UserActivity.framework", "HIDAnalytics.framework", "AppleIDSSOAuthentication.framework", "NetworkServiceProxy.framework", "UserManagement.framework", "EmailDaemon.framework", "MIME.framework", "EditScript.framework", "SettingsCellular.framework", "ScreenshotServices.framework", "MediaRemote.framework", "PersistentConnection.framework", "iCalendar.framework", "NotesUI.framework", "SignpostCollection.framework", "SiriActivation.framework", "CoreRecognition.framework", "HearingUtilities.framework", "SearchUICardKitProviderSupport.framework", "UserNotificationsServer.framework", "IMDaemonCore.framework", "BulletinDistributorCompanion.framework", "BehaviorMiner.framework", "MediaSafetyNet.framework", "ManagedConfigurationUI.framework", "AppNotificationsLoggingClient.framework", "FMCoreLite.framework", "PowerUI.framework", "MediaServices.framework", "ProactiveMagicalMoments.framework", "MapsSuggestions.framework", "CPMLBestShim.framework", "Fitness.framework", "CoreSuggestionsML.framework", "SpringBoardHome.framework", "PrototypeTools.framework", "CalendarUIKit.framework", "MetalTools.framework", "DataAccessUI.framework", "IntlPreferences.framework", "AppleMediaServicesUI.framework", "ACTFramework.framework", "SpeechRecognitionCommandAndControl.framework", "CompanionCamera.framework", "AppleDepth.framework", "AppStoreKit.framework", "IntentsUICardKitProviderSupport.framework", "PhotoLibrary.framework", "SiriKitFlow.framework", "AccessoryMediaLibrary.framework", "AXCoreUtilities.framework", "URLFormatting.framework", "AudioDataAnalysis.framework", "ProactiveML.framework", "OSASubmissionClient.framework", "UITriggerVC.framework", "KeychainCircle.framework", "SoftwareUpdateCore.framework", "DocumentManager.framework", "TextInputUI.framework", "MeasureFoundation.framework", "StoreBookkeeperClient.framework", "SiriCore.framework", "SetupAssistantSupport.framework", "HIDDisplay.framework", "Pasteboard.framework", "Notes.framework", "CoreSuggestions.framework", "SearchFoundation.framework", "EmailAddressing.framework", "FMIPSiriActions.framework", "CPMS.framework", "AdPlatformsInternal.framework", "SecurityFoundation.framework", "ActivityRingsUI.framework", "ToneLibrary.framework", "PointerUIServices.framework", "CoreDuetDataModel.framework", "PhotosPlayer.framework", "NewsAnalyticsUpload.framework", "QuickLookSupport.framework", "NanoMailKitServer.framework", "VisualPairing.framework", "AccessoryAudio.framework", "AppPredictionUI.framework", "HealthExperienceUI.framework", "SoundAutoConfig.framework", "VoiceTriggerUI.framework", "Message.framework", "AppleCV3DMOVKit.framework", "TimeSync.framework", "PassKitCore.framework", "CoreSuggestionsUI.framework", "RelevanceEngine.framework", "MetricKitSource.framework", "LiveFS.framework", "MetricMeasurement.framework", "EAP8021X.framework", "CommunicationsSetupUI.framework", "AudioPasscode.framework", "TrialServer.framework", "AppleMediaServicesUIDynamic.framework", "MediaPlayerUI.framework", "ShazamKit.framework", "ClockComplications.framework", "AppleAccountUI.framework", "DAEASOAuthFramework.framework", "MobileAsset.framework", "IMTransferServices.framework", "ChatKit.framework", "HealthProfile.framework", "ActivityAchievementsDaemon.framework", "NetAppsUtilitiesUI.framework", "ActionPredictionHeuristicsInternal.framework", "FMF.framework", "TeaTemplate.framework", "CarPlayServices.framework", "NanoComplicationSettings.framework", "BoardServices.framework", "iCloudQuotaDaemon.framework", "VisualAlert.framework", "IntentsFoundation.framework", "CloudKitDaemon.framework", "TeaFoundation.framework", "NearField.framework", "SAML.framework", "IdleTimerServices.framework", "AddressBookLegacy.framework", "AssistantServices.framework", "NanoPassKit.framework", "MobileSoftwareUpdate.framework", "SensorKitUI.framework", "ClassKitUI.framework", "Espresso.framework", "AccessibilityUtilities.framework", "IMSharedUI.framework", "JetUI.framework", "IMFoundation.framework", "TeaSettings.framework", "JasperDepth.framework", "CertUI.framework", "NewsFeedLayout.framework", "IDSFoundation.framework", "CryptoKitPrivate.framework", "TrustedPeers.framework", "NanoMusicSync.framework", "AccountNotification.framework", "CoreHandwriting.framework", "CloudPhotoLibrary.framework", "Coherence.framework", "SharedWebCredentials.framework", "Cards.framework", "NewsTransport.framework", "EmailFoundation.framework", "JITAppKit.framework", "CoreBrightness.framework", "CTCarrierSpace.framework", "TVRemoteCore.framework", "CTCarrierSpaceUI.framework", "Catalyst.framework", "ContactsDonation.framework", "AvatarUI.framework", "CellularBridgeUI.framework", "AppPredictionWidget.framework", "HardwareDiagnostics.framework", "MobileInstallation.framework", "AirPortAssistant.framework", "PhotoBoothEffects.framework", "SiriTasks.framework", "RemoteCoreML.framework", "EnhancedLoggingState.framework", "AssetCacheServicesExtensions.framework", "AccessoryOOBBTPairing.framework", "ProximityUI.framework", "Haptics.framework", "AssertionServices.framework", "HelpKit.framework", "UserNotificationsKit.framework", "ScreenReaderOutput.framework", "BrailleTranslation.framework", "perfdata.framework", "WebApp.framework", "CalDAV.framework", "AppConduit.framework", "HealthExperience.framework", "ScreenTimeUI.framework", "WiFiVelocity.framework", "CoreDuetContext.framework", "AutoLoop.framework", "vCard.framework", "VideoSubscriberAccountUI.framework", "Stocks.framework", "MetricKitCore.framework", "AppSupportUI.framework", "FTServices.framework", "FrontBoard.framework", "CompanionSync.framework", "MDM.framework", "SystemStatus.framework", "OAuth.framework", "iCloudQuotaUI.framework", "SlideshowKit.framework", "WiFiPolicy.framework", "CoreRoutine.framework", "NewsUI.framework", "PairingProximity.framework", "MobileContainerManager.framework", "CloudDocsDaemon.framework", "PrivateFederatedLearning.framework", "ExchangeSync.framework", "SpringBoardServices.framework", "PLSnapshot.framework", "InternationalSupport.framework", "NewsFoundation.framework", "GameCenterUI.framework", "MailWebProcessSupport.framework", "ContextKit.framework", "AppleNeuralEngine.framework", "TouchRemote.framework", "FriendKit.framework", "CellularPlanManager.framework", "CompanionHealthDaemon.framework", "CoreCDP.framework", "RemoteManagement.framework", "CameraUI.framework", "iTunesStore.framework", "SiriInstrumentation.framework", "CoreGPSTest.framework", "MetricKitServices.framework", "CoreCDPUIInternal.framework", "PhotoLibraryServices.framework", "NanoPhonePerfTesting.framework", "SiriUICardKitProviderSupport.framework", "PhotosUICore.framework", "SoftwareUpdateServicesUI.framework", "AccessoryHID.framework", "ActivitySharing.framework", "SoftwareUpdateSettings.framework", "SidecarUI.framework", "ProtectedCloudStorage.framework", "FitnessUI.framework", "NanoBackup.framework", "ConversationKit.framework", "EmbeddedAcousticRecognition.framework", "RTCReporting.framework", "StoreKitUI.framework", "PersonalizationPortrait.framework", "SAObjects.framework", "VideosUICore.framework", "WatchListKit.framework", "AppleMediaServices.framework", "AirTraffic.framework", "LoginPerformanceKit.framework", "IncomingCallFilter.framework", "IMAVCore.framework", "NLFoundInAppsPlugin.framework", "VoiceShortcutClient.framework", "GenerationalStorage.framework", "StoreServices.framework", "DuetRecommendation.framework", "NanoWeatherComplicationsCompanion.framework", "NCLaunchStats.framework", "SyncedDefaults.framework", "ActivityAchievementsUI.framework", "NewsSubscription.framework", "AssistantSettingsSupport.framework", "BookLibrary.framework", "SecureChannel.framework", "IMSharedUtilities.framework", "BiometricSupport.framework", "MediaExperience.framework", "AccessibilityPhysicalInteraction.framework", "AppPredictionInternal.framework", "AppPredictionClient.framework", "MobileLookup.framework", "CoreDuetSync.framework", "BridgePreferences.framework", "ContactsFoundation.framework", "FMCoreUI.framework", "AccessoryVoiceOver.framework", "CarPlayUIServices.framework", "NanoAudioControl.framework", "SafariShared.framework", "CardKit.framework", "MobileBackup.framework", "SpringBoardUI.framework", "NanoUniverse.framework", "MobileTimer.framework", "HMFoundation.framework", "APTransport.framework", "FileProviderDaemon.framework", "SuggestionsSpotlightMetrics.framework", "LockoutUI.framework", "EasyConfig.framework", "DocumentManagerExecutables.framework", "DiagnosticsKit.framework", "iCloudNotification.framework", "OnBoardingKit.framework", "IOUSBHost.framework", "IDSKVStore.framework", "HearingCore.framework", "RemoteTextInput.framework", "DASActivitySchedulerUI.framework", "SpringBoardUIServices.framework", "CoreServicesStore.framework", "TVUIKit.framework", "MobileKeyBag.framework", "TATest.framework", "CoreDuetDebugLogging.framework", "Sharing.framework", "RunningBoard.framework", "SiriUICore.framework", "SPOwner.framework", "ContentKit.framework", "TextInputCore.framework", "DoNotDisturbServer.framework", "CameraEffectsKit.framework", "AppSSOUI.framework", "RemoteStateDumpKit.framework", "LoggingSupport.framework", "WelcomeKitUI.framework", "Engram.framework", "AttentionAwareness.framework", "PassKitUIFoundation.framework", "RTTUtilities.framework", "IMDPersistence.framework", "PhysicsKit.framework", "SiriAudioInternal.framework", "IntentsCore.framework", "NanoPreferencesSync.framework", "SoftwareUpdateServices.framework", "CryptoKitCBridging.framework", "ActionPredictionHeuristics.framework", "TextInputChinese.framework", "CloudKitCode.framework", "SafariSharedUI.framework", "StreamingZip.framework", "HealthMenstrualCyclesDaemon.framework", "AudioServerApplication.framework", "MediaStream.framework", "FMClient.framework", "UpNextWidget.framework", "WeatherFoundation.framework", "VideosUI.framework", "RemoteUI.framework", "TouchML.framework", "PodcastsFoundation.framework", "SiriOntology.framework", "Navigation.framework", "BackBoardServices.framework", "FaceCore.framework", "Silex.framework", "BluetoothAudio.framework", "HearingUI.framework", "DASDaemon.framework", "ScreenReaderCore.framework", "DocumentManagerCore.framework", "TemplateKit.framework", "MobileAccessoryUpdater.framework", "SystemStatusServer.framework", "PodcastsKit.framework", "LimitAdTracking.framework", "AccessoryBLEPairing.framework", "HangTracer.framework", "Pegasus.framework", "SIMSetupSupport.framework", "MusicLibrary.framework", "ParsecSubscriptionServiceSupport.framework", "FlightUtilities.framework", "TransparencyDetailsView.framework", "CoreSDB.framework", "HomeKitDaemon.framework", "CoreDuetDaemonProtocol.framework", "WelcomeKit.framework", "ProVideo.framework", "WorkflowKit.framework", "KnowledgeMonitor.framework", "AssetExplorer.framework", "TinCanShared.framework", "Trial.framework", "TelephonyUI.framework", "NewsDaemon.framework", "AccountsUI.framework", "NewsServicesInternal.framework", "MPUFoundation.framework" ]
valores = [] continuar = '' numeros_digitados = 0 verificador_cinco = 0 while True: n = int(input('DIGITE UM NUMERO: ')) if n == 5: verificador_cinco += 1 valores.append(n) numeros_digitados += 1 print('VALOR ADICIONADO') continuar = input('QUER CONTINUAR [S] [N] ').upper() if continuar == 'N': break print(valores) print(f'FORAM DIGITADOS {numeros_digitados} NUMEROS') valores.sort(reverse=True) print(f"OS VALORES DIGITADOS EM ORDEM DECRECENTE FORAM {valores}") if verificador_cinco >1: print(f'SIM HÁ O NUMERO 5 NA LISTA E FOI DIGITADO {verificador_cinco} VEZES') if verificador_cinco == 0: print('NÃO FOI DIGITADO O NUMERO 5')
# -*- coding: utf-8 -*- """ Transliterating Thai text with ISO 11940 :See Also: * `Wikipedia \ <https://en.wikipedia.org/wiki/ISO_11940>`_ """ _consonants = { "ก": "k", "ข": "k̄h", "ฃ": "ḳ̄h", "ค": "kh", "ฅ": "k̛h", "ฆ": "ḳh", "ง": "ng", "จ": "c", "ฉ": "c̄h", "ช": "ch", "ซ": "s", "ฌ": "c̣h", "ญ": "ỵ", "ฎ": "ḍ", "ฏ": "ṭ", "ฐ": "ṭ̄h", "ฑ": "ṯh", "ฒ": "t̛h", "ณ": "ṇ", "ด": "d", "ต": "t", "ถ": "t̄h", "ท": "th", "ธ": "ṭh", "น": "n", "บ": "b", "ป": "p", "ผ": "p̄h", "ฝ": "f̄", "พ": "ph", "ฟ": "f", "ภ": "p̣h", "ม": "m", "ย": "y", "ร": "r", "ฤ": "v", "ล": "l", "ฦ": "ł", "ว": "w", "ศ": "ṣ̄", "ษ": "s̛̄", "ส": "s̄", "ห": "h̄", "ฬ": "ḷ", "อ": "x", "ฮ": "ḥ" } _vowels = { "ะ": "a", "ั": "ạ", "า": "ā", "ำ": "å", "ิ": "i", "ี": "ī", "ึ": "ụ", "ื": "ụ̄", "ุ": "u", "ู": "ū", "เ": "e", "แ": "æ", "โ": "o", "ใ": "ı", "ไ": "ị", "ฤ": "v", "ฤๅ": "vɨ", "ฦ": "ł", "ฦๅ": "łɨ", "ย": "y", "ว": "w", "อ": "x" } _tone_marks = { "่": "–̀".replace("–", ""), "้": "–̂".replace("–", ""), "๊": "–́".replace("–", ""), "๋": "–̌".replace("–", ""), "็": "–̆".replace("–", ""), "์": "–̒".replace("–", ""), "–๎".replace("–", ""): "~", "–ํ".replace("–", ""): "–̊".replace("–", ""), "–ฺ".replace("–", ""): "–̥".replace("–", "") } _punctuation_and_digits = { "ๆ": "«", "ฯ": "ǂ", "๏": "§", "ฯ": "ǀ", "๚": "ǁ", "๛": "»", "๐": "0", "๑": "1", "๒": "2", "๓": "3", "๔": "4", "๕": "5", "๖": "6", "๗": "7", "๘": "8", "๙": "9" } _all_dict = { **_consonants, **_vowels, **_tone_marks, **_punctuation_and_digits } _list_k = _all_dict.keys() def transliterate(word: str) -> str: """ Use ISO 11940 for transliteration :param str text: Thai text to be transliterated. :return: A string of IPA indicating how the text should be pronounced. """ _new = "" for i in word: if i in _list_k: _new += _all_dict[i] else: _new += i return _new
def convert_number(value): # função que irá converter um número try: # 1º tenta converter para um tipo inteiro value = int(value) # Se bem sucedido retorna o valor convertido return value # se não: except ValueError: try: # 2º tenta converter para tipo flutuante value = float(value) # se bem sucedido retorna o valor convertido return value except ValueError: pass while True: value = convert_number(input('Enter a number: ')) # se o valor for None: if value is None: # print o erro: print("It isn't number.") # se não: else: # print o valor: print(f'The value is {value}.')
listanum = [] maior = 0 men = 0 for c in range(0, 5): listanum.append(int(input(f'Digite um numero para a posição {c}: '))) if c== 0: mai = men = listanum[c] else: if listanum[c] > mai: mai = listanum[c] if listanum[c] < men: men = listanum[c] print('=-' * 30) print(f'Você digitou os valores {listanum}') print(f'O maior valor digitado foi: {mai} nas posições', end='') for i, v in enumerate(listanum): if listanum[i] == mai: if v == mai: print(f' {i}...',end='') print() print(f'O menor valor digitado foi: {men} nas posiçoes', end='') for i, v in enumerate(listanum): if v == men: print(f' {i}...', end='') print()
def test(): # Here we can either check objects created in the solution code, or the # string value of the solution, available as __solution__. A helper for # printing formatted messages is available as __msg__. See the testTemplate # in the meta.json for details. # If an assertion fails, the message will be displayed assert "hockey_shape = hockey_players.shape" in __solution__, "There seems to be a problem with the dimension of the datset" assert hockey_shape == (22, 10), "You may not have the correct dataset" __msg__.good("Nice work, well done!")
def f(x): x = str(x) x = list(map(int, x)) return sum(x) a, b = map(int, input().split()) print(max(f(a), f(b)))
with open("../inputs/day2.txt","r") as f: data=f.read() data=data.split("\n") data.pop() while data !=[]: word1=data.pop() for word2 in data: different=0 matching='' for i in range(word1.__len__()): if word1[i] != word2[i]: different+=1 else: matching+=word2[i] if different==2: break if different==1: print(matching) break
class Solution: def toHex(self, num: int) -> str: if num == 0: return '0' temp = [] a = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'] count = 0 while num and count < 8: cc = a[num & 0xf] temp.append(cc) count += 1 num >>= 4 temp = temp[::-1] return ''.join(temp)
def split_name(name): if '.' in name: return tuple(name.split('.')) else: return (name,) def get_via_name_list(src, name_parts): """ Util to get name sequence from a dict. For instance, `("location","query")` would return src["location"]["query"]. """ if len(name_parts) > 1: for part in name_parts[:-1]: if part not in src: return None src = src[part] return src.get(name_parts[-1]) def save_to_name_list(dest, name_parts, value): """ Util to save some name sequence to a dict. For instance, `("location","query")` would save to dest["location"]["query"]. """ if len(name_parts) > 1: for part in name_parts[:-1]: if part not in dest: dest[part] = {} dest = dest[part] dest[name_parts[-1]] = value
g=(x*x for x in range(10)) print(list(range(10))) next(g) next(g) for n in g: print(n) # 求斐波那契数列 def fib(num): n,a,b=0,0,1 while n<num: print(b,end=" ") a,b=b,a+b n=n+1 return 'done' print(fib(6)) # 使用生成器(generator)求斐波那契数列 def fib_g(num): n,a,b=0,0,1 while n<num: yield b a,b=b,a+b n=n+1 return 'done' fib_g(6) for n in fib_g(6): print(n,end=" ")
v = float(input('Qual o comprimento da parede em metro?')) c = v*100 m = v*1000 print('O comprimento da parede em cm é {} e em mm é {}'.format(c,m))
# Welcome. # # In this kata you are required to, given a string, replace every letter with its position in the alphabet. # # If anything in the text isn't a letter, ignore it and don't return it. # # "a" = 1, "b" = 2, etc. # # Example # alphabet_position("The sunset sets at twelve o' clock.") # Should return "20 8 5 19 21 14 19 5 20 19 5 20 19 1 20 20 23 5 12 22 5 15 3 12 15 3 11" (as a string) def alphabet_position(text): output_string = "" for x in text: if x.isalpha(): if x.islower(): output_string = output_string + str(ord(x) - 96) + " " else: output_string = output_string + str(ord(x) - 64) + " " output_string = output_string.rstrip() return output_string
"""Response data for the GetProductExportUpdate request.""" GET_PRODUCT_EXPORT_UPDATE_RESPONSE = { "pseudoExports": [ { "ID": 20217, "Channel": "All Channels", "CopyImages": False, "ProductCount": 2, "ProductsExported": 0, "Status": "Complete", "Error": "", "FileName": "PseudoStockExport_636607906782497012", "DateRequested": "01/05/2018 16:57", "DateStarted": "01/05/2018 16:57", "DateCompleted": "01/05/2018 16:57", "spreadSheet": { "found": True, "size": "3Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, } ], "productExports": [ { "ID": 3056, "Channel": "Not Selected", "CopyImages": False, "ProductCount": 31, "ProductsExported": 31, "Status": "Complete", "Error": "", "FileName": "ProductsExport_636111775182718600", "DateRequested": "04/10/2016 11:31", "DateStarted": "04/10/2016 11:31", "DateCompleted": "04/10/2016 11:31", "spreadSheet": { "found": True, "size": "11Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, }, { "ID": 3058, "Channel": "Not Selected", "CopyImages": False, "ProductCount": 31, "ProductsExported": 31, "Status": "Complete", "Error": "", "FileName": "ProductsExport_636111779723366901", "DateRequested": "04/10/2016 11:39", "DateStarted": "04/10/2016 11:39", "DateCompleted": "04/10/2016 11:39", "spreadSheet": { "found": True, "size": "11Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, }, { "ID": 3750, "Channel": "Not Selected", "CopyImages": False, "ProductCount": 31, "ProductsExported": 31, "Status": "Complete", "Error": "", "FileName": "ProductsExport_636160256341883237", "DateRequested": "29/11/2016 14:13", "DateStarted": "29/11/2016 14:13", "DateCompleted": "29/11/2016 14:13", "spreadSheet": { "found": True, "size": "11Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, }, { "ID": 3751, "Channel": "Not Selected", "CopyImages": False, "ProductCount": 31, "ProductsExported": 31, "Status": "Complete", "Error": "", "FileName": "ProductsExport_636160256472683094", "DateRequested": "29/11/2016 14:14", "DateStarted": "29/11/2016 14:14", "DateCompleted": "29/11/2016 14:14", "spreadSheet": { "found": True, "size": "11Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, }, { "ID": 10570, "Channel": "Not Selected", "CopyImages": False, "ProductCount": 5, "ProductsExported": 5, "Status": "Complete", "Error": "", "FileName": "ProductsExport_636410739360708296", "DateRequested": "15/09/2017 11:54", "DateStarted": "15/09/2017 12:05", "DateCompleted": "15/09/2017 12:05", "spreadSheet": { "found": True, "size": "4Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, }, { "ID": 12109, "Channel": "Not Selected", "CopyImages": False, "ProductCount": 5, "ProductsExported": 5, "Status": "Complete", "Error": "", "FileName": "ProductsExport_636456461223387722", "DateRequested": "07/11/2017 10:05", "DateStarted": "07/11/2017 10:08", "DateCompleted": "07/11/2017 10:08", "spreadSheet": { "found": True, "size": "4Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, }, { "ID": 13846, "Channel": "Not Selected", "CopyImages": False, "ProductCount": 5, "ProductsExported": 5, "Status": "Complete", "Error": "", "FileName": "ProductsExport_636504993118418403", "DateRequested": "02/01/2018 14:15", "DateStarted": "02/01/2018 14:15", "DateCompleted": "02/01/2018 14:15", "spreadSheet": { "found": True, "size": "4Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, }, { "ID": 20218, "Channel": "Not Selected", "CopyImages": False, "ProductCount": 5, "ProductsExported": 5, "Status": "Complete", "Error": "", "FileName": "ProductsExport_636607907105155479", "DateRequested": "01/05/2018 16:58", "DateStarted": "01/05/2018 16:58", "DateCompleted": "01/05/2018 16:58", "spreadSheet": { "found": True, "size": "4Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, }, ], "supplierExports": [ { "ID": 12583, "Channel": "All Channels", "CopyImages": False, "ProductCount": 1, "ProductsExported": 1, "Status": "Complete", "Error": "", "FileName": "SuppliersExport_636467663849987565", "DateRequested": "20/11/2017 09:19", "DateStarted": "20/11/2017 09:19", "DateCompleted": "20/11/2017 09:19", "spreadSheet": { "found": True, "size": "2Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, } ], "supplierSKUExports": [], "multipackExports": [ { "ID": 12045, "Channel": "All Channels", "CopyImages": False, "ProductCount": 0, "ProductsExported": 0, "Status": "Complete", "Error": "", "FileName": "MultipackItems_636453008811291174", "DateRequested": "03/11/2017 10:14", "DateStarted": "03/11/2017 10:14", "DateCompleted": "03/11/2017 10:14", "spreadSheet": { "found": True, "size": "2Kb", "rows": "0", "cols": "0", "error": "", }, "zipFile": { "found": False, "size": "???", "rows": "???", "cols": "???", "error": "", }, } ], "channelPricesExports": [], }
class Solution: # @param {character[][]} board # @param {string[]} words # @return {string[]} def findWords(self, board, words): trie = {} for word in words: t = trie for c in word: if c not in t: t[c] = {} t = t[c] t['#'] = '#' res = [] nr = len(board) nc = len(board[0]) isVisited = [[False for j in xrange(nc)] for i in xrange(nr)] def dfs(i,j,s,trie,res): if '#' in trie and s not in res: res.append(s) if i >=nr or i < 0 or j >=nc or j < 0: return if isVisited[i][j] or board[i][j] not in trie: return s += board[i][j] isVisited[i][j] = True dfs(i-1,j,s,trie[board[i][j]],res) dfs(i+1,j,s,trie[board[i][j]],res) dfs(i,j-1,s,trie[board[i][j]],res) dfs(i,j+1,s,trie[board[i][j]],res) isVisited[i][j] = False for i in xrange(nr): for j in xrange(nc): dfs(i,j,'',trie,res) return res
class Options: def __init__(self, cfg): self.cutting_speed = cfg['cutting_speed'] self.travel_speed = cfg['travel_speed'] self.travel_height = cfg['travel_height'] self.first_cutting_height = cfg['first_cutting_height'] self.cutting_layer_size = cfg['cutting_layer_size'] self.cutting_passes = cfg['cutting_passes'] self.start_gcode = cfg['start_gcode'] self.end_gcode = cfg['end_gcode'] self.bezier_interpolation_steps = cfg['bezier_interpolation_steps'] self.arc_interpolation_steps = cfg['arc_interpolation_steps'] self.working_area = cfg['working_area'] self.invert_axis = cfg['invert_axis'] self.manual_inspection = cfg['manual_inspection'] self.reverse_paths_order = cfg['reverse_paths_order']
''' https://leetcode.com/contest/weekly-contest-152/problems/can-make-palindrome-from-substring/ ''' class Solution: def canMakePaliQueries(self, s: str, queries: List[List[int]]) -> List[bool]: n = len(s) s = [ord(c) - ord('a') for c in s] cs = [] for i, c in enumerate(s): a = [0] * 26 a[c] += 1 if i > 0: for j in range(26): a[j] += cs[-1][j] cs.append(a) results = [] for q in queries: l, r, k = q diff = 0 if l > 0: for i in range(26): diff += (cs[r][i] - cs[l - 1][i]) % 2 else: for d in cs[r]: diff += d % 2 results.append(diff // 2 <= k) return results
class Solution(object): def medianSlidingWindow(self, nums, k): medians, window = [], [] for i in xrange(len(nums)): # Find position where outgoing element should be removed from if i >= k: # window.remove(nums[i-k]) # this works too window.pop(bisect.bisect(window, nums[i - k]) - 1) # Maintain the sorted invariant while inserting incoming element bisect.insort(window, nums[i]) # Find the medians if i >= k - 1: medians.append(float((window[k / 2] if k & 1 > 0 else(window[k / 2 - 1] + window[k / 2]) * 0.5))) return medians
def foo(x, y, z): if x: return x + 2 elif y: return y + 2 else: if z: return z + 2 else: return 2 def bar(): a = 1 b = 2 c = 3 if a: result = a + 2 elif b: result = b + 2 else: if c: result = c + 2 else: result = 2 res = result
class Solution: def majorityElement(self, nums: List[int]) -> int: res = nums[0] count = 1 for i in nums[1:]: if res == i: count += 1 else: count -= 1 if count == 0: res = i count = 1 return res
''' Custom email validation => A valid email address meets the following criteria: It's composed of a username, domain name, and extension assembled in this format: username@domain.extension The username starts with an English alphabetical character, and any subsequent characters consist of one or more of the following: alphanumeric characters, -,., and _. The domain and extension contain only English alphabetical characters. ''' for _ in range(int(input())): a=input().split() name=a[0] mail=a[1][1:len(a[1])-1] pass_char=[".","-","_"] st=False if(mail.find("@")!=-1 and mail[0].isalpha()): temp_name=mail[0:mail.find("@")] if (temp_name.lower().find(name.lower())!=-1): st=True for i in temp_name: if(i.isalnum() or i in pass_char): st=True else: st=False break if(st): domain = mail[(mail.find("@"))+1:] domain_name = domain[:domain.find(".")] if(domain_name.isalpha()): st=True else: st=False if(st): extn = domain[len(domain_name)+1:] if(extn.isalpha() and (1<=len(extn)<=3)): st=True else: st=False if(st): print("{} <{}>".format(name,mail)) # input = anku <anku_123@gmail.com.com> # output = anku <anku_123@gmail.com.com> # input = anku <1anku@anku.com> # output =""
# create variable cars to contain integer 100 cars = 100 # create variable space_in_a_car to contain float 4.0 space_in_a_car = 4.0 # create variable drivers to contain int 30 drivers = 30 # create variable passengers to contain int 90 passengers = 90 # subtract drivers from cars to set int variable cars_not_driven cars_not_driven = cars - drivers # set cars_driven variable to int value contained in drivers cars_driven = drivers # set carpool_capacity float variable to cars_driven # multiplied by space_in_a_car carpool_capacity = cars_driven * space_in_a_car # set average_passengers_per_car to int value of passengers # divided by cars_driven average_passengers_per_car = passengers / cars_driven print("There are", cars, "cars available.") print("There are only", drivers, "drivers available.") print("There will be", cars_not_driven, "empty cars today.") print("We can transport", carpool_capacity, "people today.") print("We have", passengers, "to carpool today.") print("We need to put about", average_passengers_per_car, "in each car.")
SHORT_NAME = 'myscreen' FULL_NAME = 'My Screen' default_app_config = 'addons.{}.apps.AddonAppConfig'.format(SHORT_NAME)
""" # Definition for a Node. class Node: def __init__(self, val=None, next=None): self.val = val self.next = next """ class Node: def __init__(self, val=None, next=None): self.val = val self.next = next class Solution: def insert(self, head: 'Node', insertVal: int) -> 'Node': if not head or head.next == None: head = Node(val=insertVal) head.next = head return head init_val = None node = head while not (node.val == init_val and node == head): if init_val == None: init_val = node.val cur_node = node next_node = node.next if cur_node.next == next_node.next: new_node = Node(val=insertVal, next=next_node) cur_node.next = new_node return head # [3, 4, 1] 2 if cur_node.val <= insertVal and next_node.val > insertVal: new_node = Node(val=insertVal, next=next_node) cur_node.next = new_node return head # [3,5,1] 0 -> [3,5,0,1] if cur_node.val > insertVal and next_node.val > insertVal and cur_node.val > next_node.val: new_node = Node(val=insertVal, next=next_node) cur_node.next = new_node return head # [3,5,1] 6 # [3,5,1] 5 -> [3,5,5,1] if cur_node.val <= insertVal and next_node.val < insertVal and cur_node.val > next_node.val: new_node = Node(val=insertVal, next=next_node) cur_node.next = new_node return head if next_node == head: new_node = Node(val=insertVal, next=next_node) cur_node.next = new_node return head node = next_node return head