content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# -*- coding: utf-8 -*- amount = int(input()) board = [] for i in range(amount): board.append(int(input())) for i in range(amount): bombs = 0 if i > 0: bombs += board[i-1] if i < (amount-1): bombs += board[i+1] bombs += board[i] print(bombs)
amount = int(input()) board = [] for i in range(amount): board.append(int(input())) for i in range(amount): bombs = 0 if i > 0: bombs += board[i - 1] if i < amount - 1: bombs += board[i + 1] bombs += board[i] print(bombs)
class Element: def __init__(self, value:int, previous = None): self.__value = value self.__previous = previous @property def value(self) -> int: return self.__value @value.setter def value(self, value:int): self.__value = value @property def previous(self): return self.__previous @previous.setter def previous(self, previous): self.__previous = previous class Stack: def __init__(self, max_length: int=4): self.__top = None self.__count_elements = 0 self.__max_length = max_length @property def top(self): return self.__top def push(self, value: int): if self.__count_elements < self.__max_length: self.__count_elements += 1 new_element = Element(value=value, previous=self.__top) self.__top = new_element else: print("stack overflow") def pop(self): if self.__count_elements > 0: self.__count_elements -= 1 poped = self.__top.value self.__top = self.__top.previous return poped else: print("empity stack") new_stack = Stack(max_length=4) print(f"top element: {new_stack.top}") new_stack.push(1) print(f"top element: {new_stack.top.value}") new_stack.push(2) print(f"top element: {new_stack.top.value}") new_stack.push(3) print(f"top element: {new_stack.top.value}") new_stack.push(4) print(f"top element: {new_stack.top.value}") new_stack.push(5) print(f"Poped element: {new_stack.pop()}") print(f"top element: {new_stack.top.value}") print(f"Poped element: {new_stack.pop()}") print(f"top element: {new_stack.top.value}") print(f"Poped element: {new_stack.pop()}") print(f"top element: {new_stack.top.value}") print(f"Poped element: {new_stack.pop()}") print(f"top element: {new_stack.top}") print(f"Poped element: {new_stack.pop()}")
class Element: def __init__(self, value: int, previous=None): self.__value = value self.__previous = previous @property def value(self) -> int: return self.__value @value.setter def value(self, value: int): self.__value = value @property def previous(self): return self.__previous @previous.setter def previous(self, previous): self.__previous = previous class Stack: def __init__(self, max_length: int=4): self.__top = None self.__count_elements = 0 self.__max_length = max_length @property def top(self): return self.__top def push(self, value: int): if self.__count_elements < self.__max_length: self.__count_elements += 1 new_element = element(value=value, previous=self.__top) self.__top = new_element else: print('stack overflow') def pop(self): if self.__count_elements > 0: self.__count_elements -= 1 poped = self.__top.value self.__top = self.__top.previous return poped else: print('empity stack') new_stack = stack(max_length=4) print(f'top element: {new_stack.top}') new_stack.push(1) print(f'top element: {new_stack.top.value}') new_stack.push(2) print(f'top element: {new_stack.top.value}') new_stack.push(3) print(f'top element: {new_stack.top.value}') new_stack.push(4) print(f'top element: {new_stack.top.value}') new_stack.push(5) print(f'Poped element: {new_stack.pop()}') print(f'top element: {new_stack.top.value}') print(f'Poped element: {new_stack.pop()}') print(f'top element: {new_stack.top.value}') print(f'Poped element: {new_stack.pop()}') print(f'top element: {new_stack.top.value}') print(f'Poped element: {new_stack.pop()}') print(f'top element: {new_stack.top}') print(f'Poped element: {new_stack.pop()}')
# If you can't sleep, just count sheep!! # Task: # Given a non-negative integer, 3 for example, return a string with a murmur: "1 sheep...2 sheep...3 sheep...". Input will always be valid, i.e. no negative integers. def count_sheep(n): output = '' for i in range(1, n+1): output+=str(i) + " sheep..." return output
def count_sheep(n): output = '' for i in range(1, n + 1): output += str(i) + ' sheep...' return output
general_questions = 'general Questions' computer_questions = 'computer Questions' python_questions = 'python Questions' questions = [general_questions, computer_questions, python_questions] quiz = {general_questions: [("Amartya Sen was awarded the Nobel prize for his contribution to Welfare Economics.", True), ("The Headquarters of the Southern Naval Command of the India Navy is located at Thiruvananthapuram.", False), ("The Captain Roop Singh stadium is named after a former Indian cricketer.", False)], computer_questions: [("Whaling / Whaling attack is a kind of phishing attacks that target senior executives and other high profile to access valuable information.", True), ("IPv6 Internet Protocol address is represented as eight groups of four Octal digits.", False), ("CPU controls only input data of computer", False)], python_questions: [("A function cannot be defined inside another function", False), ("None is a Python type whose value indicates that no value exists.", True), ("Regular expression processing is built into the Python language.", False)] } result = {"Correct": 0, "Incorrect": 0} def get_quiz_choice(): while True: try: quiz_number = int(input('Choose the quiz you like\n1 for {}\n2 for {}\n3 for {}\nYour choice:'.format(general_questions, computer_questions, python_questions))) except ValueError: print ("Not a number, please try again\n") else: if 0 >= quiz_number or quiz_number > len(quiz): print ("Invalid value, please try again\n") else: return quiz_number def get_answer(question, correct_answer): while True: try: print ("Q: {}".format(question)) answer = int(input("1 for True\n0 for False\nYour answer: ")) except ValueError: print ("Not a number, please try again\n") else: if answer is not 0 and answer is not 1: print ("Invalid value, please try again\n") elif bool(answer) is correct_answer: result["Correct"] += 1 return True else: result["Incorrect"] += 1 return False choice = get_quiz_choice() quiz_name = questions[choice - 1] print ("\nYou chose the {}\n".format(quiz_name)) quiz_questions = quiz[quiz_name] for q in (quiz_questions): print ("Your answer is: {}\n".format(str(get_answer(q[0], q[1]))))
general_questions = 'general Questions' computer_questions = 'computer Questions' python_questions = 'python Questions' questions = [general_questions, computer_questions, python_questions] quiz = {general_questions: [('Amartya Sen was awarded the Nobel prize for his contribution to Welfare Economics.', True), ('The Headquarters of the Southern Naval Command of the India Navy is located at Thiruvananthapuram.', False), ('The Captain Roop Singh stadium is named after a former Indian cricketer.', False)], computer_questions: [('Whaling / Whaling attack is a kind of phishing attacks that target senior executives and other high profile to access valuable information.', True), ('IPv6 Internet Protocol address is represented as eight groups of four Octal digits.', False), ('CPU controls only input data of computer', False)], python_questions: [('A function cannot be defined inside another function', False), ('None is a Python type whose value indicates that no value exists.', True), ('Regular expression processing is built into the Python language.', False)]} result = {'Correct': 0, 'Incorrect': 0} def get_quiz_choice(): while True: try: quiz_number = int(input('Choose the quiz you like\n1 for {}\n2 for {}\n3 for {}\nYour choice:'.format(general_questions, computer_questions, python_questions))) except ValueError: print('Not a number, please try again\n') else: if 0 >= quiz_number or quiz_number > len(quiz): print('Invalid value, please try again\n') else: return quiz_number def get_answer(question, correct_answer): while True: try: print('Q: {}'.format(question)) answer = int(input('1 for True\n0 for False\nYour answer: ')) except ValueError: print('Not a number, please try again\n') else: if answer is not 0 and answer is not 1: print('Invalid value, please try again\n') elif bool(answer) is correct_answer: result['Correct'] += 1 return True else: result['Incorrect'] += 1 return False choice = get_quiz_choice() quiz_name = questions[choice - 1] print('\nYou chose the {}\n'.format(quiz_name)) quiz_questions = quiz[quiz_name] for q in quiz_questions: print('Your answer is: {}\n'.format(str(get_answer(q[0], q[1]))))
##### # Step 3 - Make your own Python Toolbox! ##### # Task - Using the code I provide below (basically , including the parameters that I have prepared for you (note, you can # find all the Python Toolbox Parameters here: # http://desktop.arcgis.com/en/arcmap/10.3/analyze/creating-tools/defining-parameters-in-a-python-toolbox.htm) # I want you to attempt to construct a working Python Toolbox. Hint the code is the same as we used before for the # traditional toolbox, however, I have changed how the arguements are provided to the tool. # Code for parameters function params = [] input_line = arcpy.Parameter(name="input_line", displayName="Input Line", datatype="DEFeatureClass", parameterType="Required", # Required|Optional|Derived direction="Input", # Input|Output ) input_line.value = "YOUR INPUT LINE HERE" # This is a default value that can be over-ridden in the toolbox params.append(input_line) input_polygon = arcpy.Parameter(name="input_polygon", displayName="Input Polygon", datatype="DEFeatureClass", parameterType="Required", # Required|Optional|Derived direction="Input", # Input|Output ) input_polygon.value = "YOUR INPUT POLY HERE" # This is a default value that can be over-ridden in the toolbox params.append(input_polygon) output = arcpy.Parameter(name="output", displayName="Output", datatype="DEFeatureClass", parameterType="Required", # Required|Optional|Derived direction="Output", # Input|Output ) output.value = "YOUR OUTPUT DIR HERE" # This is a default value that can be over-ridden in the toolbox params.append(output) return params # Code for execution function input_line = parameters[0].valueAsText input_polygon = parameters[1].valueAsText output = parameters[2].valueAsText arcpy.Clip_analysis(in_features=input_line, clip_features=input_polygon, out_feature_class=output, cluster_tolerance="") # This code block allows you to run your code in a test-mode within PyCharm, i.e. you do not have to open the tool in # ArcMap. This works best for a "single tool" within the Toolbox. def main(): tool = NAME_OF_YOUR_TOOL() # i.e. what you have called your tool class: class Clippy(object): tool.execute(tool.getParameterInfo(), None) if __name__ == '__main__': main()
params = [] input_line = arcpy.Parameter(name='input_line', displayName='Input Line', datatype='DEFeatureClass', parameterType='Required', direction='Input') input_line.value = 'YOUR INPUT LINE HERE' params.append(input_line) input_polygon = arcpy.Parameter(name='input_polygon', displayName='Input Polygon', datatype='DEFeatureClass', parameterType='Required', direction='Input') input_polygon.value = 'YOUR INPUT POLY HERE' params.append(input_polygon) output = arcpy.Parameter(name='output', displayName='Output', datatype='DEFeatureClass', parameterType='Required', direction='Output') output.value = 'YOUR OUTPUT DIR HERE' params.append(output) return params input_line = parameters[0].valueAsText input_polygon = parameters[1].valueAsText output = parameters[2].valueAsText arcpy.Clip_analysis(in_features=input_line, clip_features=input_polygon, out_feature_class=output, cluster_tolerance='') def main(): tool = name_of_your_tool() tool.execute(tool.getParameterInfo(), None) if __name__ == '__main__': main()
class Cipher: letter_number_list = [[' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95]] def __init__(self, sentence): self.sentence = sentence def __repr__(self): return f"Variable that gets ENC/DEC is \"{self.sentence}\"" # OUT #################################################################################################################### def out_sentence(self): print(self.sentence) def out_letter_number_list(self): output = "" for letter in self.letter_number_list[0]: output = output + "\n" + f"{letter} = {self.letter_number_list[1][self.letter_number_list[0].index(letter)]}" print(output) #################################################################################################################### # CREATE #################################################################################################################### # Creates a Letter Number List def create_letter_number_list(self, letter_str_or_list): parameter_type = str(type(letter_str_or_list)) letter_number_list = [[], []] counter = 1 if parameter_type == "<class 'str'>" or parameter_type == "<class 'list'>": for letter in letter_str_or_list: letter_number_list[0].append(letter) letter_number_list[1].append(counter) counter += 1 else: raise TypeError("parameter is not str or list") Cipher.check_letter_number_list(letter_number_list) self.letter_number_list = letter_number_list return self.letter_number_list #################################################################################################################### # ENC DEC #################################################################################################################### # Uses Columns to recombine Letters def enc_columns(self, column_number): Cipher.integer_check(column_number) column_list = [] if column_number <= 0: raise ValueError("column cant be 0 or less") else: pass count = 0 while count != column_number: column_list.append([]) count += 1 count= 0 for letter in self.sentence: if count != column_number: column_list[count].append(letter) count += 1 else: count = 0 column_list[count].append(letter) count += 1 count = 0 new_sentence = "" while count != column_number: for letter in column_list[count]: new_sentence = new_sentence + letter count += 1 self.sentence = new_sentence return self.sentence def dec_columns(self, column_number): Cipher.integer_check(column_number) sentence_len = len(self.sentence) column_len = int(sentence_len / column_number) column_len_rest = int(sentence_len % column_number) number_list = [] column_list = [] count = 0 while count != column_number: column_list.append([]) number_list.append([]) count += 1 count = 0 while count != column_number: number_list[count].append(column_len) if count < column_len_rest: number_list[count][0] = number_list[count][0] + 1 count += 1 else: count += 1 counter_plus = 0 counter = 0 for number in number_list: count = 0 while count != number[0]: column_list[counter_plus].append(self.sentence[counter]) counter += 1 count += 1 counter_plus += 1 new_sentence = "" current_index = 0 while current_index != number_list[0][0]: for list in column_list: try: new_sentence = new_sentence + list[current_index] except: pass current_index += 1 self.sentence = new_sentence return self.sentence # Swaps Letter with Number and Number with Letter def enc_letter_to_number(self): Cipher.check_letter_number_list(Cipher.letter_number_list) Cipher.string_check(self.sentence) new_sentence = "" len_last_number = len(str(Cipher.letter_number_list[1][-1])) for letter in self.sentence: number = str(Cipher.letter_number_list[1][Cipher.letter_number_list[0].index(letter)]) number_len = len(number) zero_add = len_last_number - number_len new_sentence = new_sentence + ((zero_add * "0") + number) self.sentence = new_sentence return self.sentence def dec_letter_to_number(self): Cipher.check_letter_number_list(Cipher.letter_number_list) Cipher.string_check(self.sentence) new_sentence = "" number_list = [] len_last_number = len(str(Cipher.letter_number_list[1][- 1])) counter = 1 letter_single = "" for number in self.sentence: if counter <= len_last_number: letter_single = letter_single + number counter += 1 else: number_list.append(int(letter_single)) letter_single = number counter = 2 number_list.append(int(letter_single)) for number in number_list: new_sentence = new_sentence + Cipher.letter_number_list[0][Cipher.letter_number_list[1].index(int(number))] self.sentence = new_sentence return self.sentence # Caesar_Cipher shifts the letter with the shift_number def enc_caesar_cipher(self, shift_number): Cipher.integer_check(shift_number) Cipher.check_letter_number_list(Cipher.letter_number_list) Cipher.string_check(self.sentence) new_sentence = "" len_list = len(Cipher.letter_number_list[0]) for letter in self.sentence: if Cipher.letter_number_list[0].index(letter) + shift_number > len_list: high_len = Cipher.letter_number_list[0].index(letter) + shift_number multiplier = int(high_len / len_list) end_len = high_len - (multiplier * len_list) new_sentence = new_sentence + Cipher.letter_number_list[0][end_len] else: high_len = Cipher.letter_number_list[0].index(letter) + shift_number new_sentence = new_sentence + Cipher.letter_number_list[0][high_len] self.sentence = new_sentence return self.sentence def dec_caesar_cipher(self, shift_number): Cipher.integer_check(shift_number) Cipher.check_letter_number_list(Cipher.letter_number_list) Cipher.string_check(self.sentence) new_sentence = "" len_list = len(Cipher.letter_number_list[0]) for letter in self.sentence: if Cipher.letter_number_list[0].index(letter) - shift_number < 0: low_len = shift_number - Cipher.letter_number_list[0].index(letter) multiplier = int(low_len / len_list) end_len = - (low_len - (multiplier * len_list)) new_sentence = new_sentence + Cipher.letter_number_list[0][end_len] else: low_len = Cipher.letter_number_list[0].index(letter) - shift_number new_sentence = new_sentence + Cipher.letter_number_list[0][low_len] self.sentence = new_sentence return self.sentence #################################################################################################################### # CHECK #################################################################################################################### # Check letter number list @classmethod def check_letter_number_list(cls, list): if len(list[0]) == len(list[1]): pass else: raise IndexError("more letters or numbers. letters and numbers should have the same number of indexes") counter = 1 for letter in list[0]: if str(type(letter)) == "<class 'str'>": pass else: raise TypeError("letters should be from type str") if len(letter) == 1: pass else: raise ValueError("to much letters in one index. should be one letter per index") if list[0].count(letter) == 1: pass else: raise ValueError("there should be no letter duplicate") for number in list[1]: if str(type(number)) == "<class 'int'>": pass else: raise TypeError("numbers should be from type int") if number == counter: counter += 1 else: raise ValueError("numbers should start at 1 and raise everytime by 1") # Check for right input Types @classmethod def tuple_check(cls, tuple): tuple_bool = str(type(tuple)) == "<class 'tuple'>" if tuple_bool: pass else: raise TypeError(str(type(tuple)).replace("<class '", "").replace("'>", "") + "is given but tuple should be given") @classmethod def float_check(cls, float): float_bool = str(type(float)) == "<class 'float'>" if float_bool: pass else: raise TypeError(str(type(float)).replace("<class '", "").replace("'>", "") + " is given but float should be given") @classmethod def list_check(cls, list): list_bool = str(type(list)) == "<class 'list'>" if list_bool: pass else: raise TypeError(str(type(list)).replace("<class '", "").replace("'>", "") + " is given but list should be given") @classmethod def dictionary_check(cls, dictionary): dictionary_bool = str(type(dictionary)) == "<class 'dict'>" if dictionary_bool: pass else: raise TypeError( str(type(dictionary)).replace("<class '", "").replace("'>", "") + " is given but dictionary should be given") @classmethod def integer_check(cls, integer): integer_bool = str(type(integer)) == "<class 'int'>" if integer_bool: pass else: raise TypeError( str(type(integer)).replace("<class '", "").replace("'>", "") + " is given but integer should be given") @classmethod def string_check(cls, string): string_bool = str(type(string)) == "<class 'str'>" if string_bool: pass else: raise TypeError( str(type(string)).replace("<class '", "").replace("'>", "") + " is given but string should be given") ####################################################################################################################
class Cipher: letter_number_list = [[' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95]] def __init__(self, sentence): self.sentence = sentence def __repr__(self): return f'Variable that gets ENC/DEC is "{self.sentence}"' def out_sentence(self): print(self.sentence) def out_letter_number_list(self): output = '' for letter in self.letter_number_list[0]: output = output + '\n' + f'{letter} = {self.letter_number_list[1][self.letter_number_list[0].index(letter)]}' print(output) def create_letter_number_list(self, letter_str_or_list): parameter_type = str(type(letter_str_or_list)) letter_number_list = [[], []] counter = 1 if parameter_type == "<class 'str'>" or parameter_type == "<class 'list'>": for letter in letter_str_or_list: letter_number_list[0].append(letter) letter_number_list[1].append(counter) counter += 1 else: raise type_error('parameter is not str or list') Cipher.check_letter_number_list(letter_number_list) self.letter_number_list = letter_number_list return self.letter_number_list def enc_columns(self, column_number): Cipher.integer_check(column_number) column_list = [] if column_number <= 0: raise value_error('column cant be 0 or less') else: pass count = 0 while count != column_number: column_list.append([]) count += 1 count = 0 for letter in self.sentence: if count != column_number: column_list[count].append(letter) count += 1 else: count = 0 column_list[count].append(letter) count += 1 count = 0 new_sentence = '' while count != column_number: for letter in column_list[count]: new_sentence = new_sentence + letter count += 1 self.sentence = new_sentence return self.sentence def dec_columns(self, column_number): Cipher.integer_check(column_number) sentence_len = len(self.sentence) column_len = int(sentence_len / column_number) column_len_rest = int(sentence_len % column_number) number_list = [] column_list = [] count = 0 while count != column_number: column_list.append([]) number_list.append([]) count += 1 count = 0 while count != column_number: number_list[count].append(column_len) if count < column_len_rest: number_list[count][0] = number_list[count][0] + 1 count += 1 else: count += 1 counter_plus = 0 counter = 0 for number in number_list: count = 0 while count != number[0]: column_list[counter_plus].append(self.sentence[counter]) counter += 1 count += 1 counter_plus += 1 new_sentence = '' current_index = 0 while current_index != number_list[0][0]: for list in column_list: try: new_sentence = new_sentence + list[current_index] except: pass current_index += 1 self.sentence = new_sentence return self.sentence def enc_letter_to_number(self): Cipher.check_letter_number_list(Cipher.letter_number_list) Cipher.string_check(self.sentence) new_sentence = '' len_last_number = len(str(Cipher.letter_number_list[1][-1])) for letter in self.sentence: number = str(Cipher.letter_number_list[1][Cipher.letter_number_list[0].index(letter)]) number_len = len(number) zero_add = len_last_number - number_len new_sentence = new_sentence + (zero_add * '0' + number) self.sentence = new_sentence return self.sentence def dec_letter_to_number(self): Cipher.check_letter_number_list(Cipher.letter_number_list) Cipher.string_check(self.sentence) new_sentence = '' number_list = [] len_last_number = len(str(Cipher.letter_number_list[1][-1])) counter = 1 letter_single = '' for number in self.sentence: if counter <= len_last_number: letter_single = letter_single + number counter += 1 else: number_list.append(int(letter_single)) letter_single = number counter = 2 number_list.append(int(letter_single)) for number in number_list: new_sentence = new_sentence + Cipher.letter_number_list[0][Cipher.letter_number_list[1].index(int(number))] self.sentence = new_sentence return self.sentence def enc_caesar_cipher(self, shift_number): Cipher.integer_check(shift_number) Cipher.check_letter_number_list(Cipher.letter_number_list) Cipher.string_check(self.sentence) new_sentence = '' len_list = len(Cipher.letter_number_list[0]) for letter in self.sentence: if Cipher.letter_number_list[0].index(letter) + shift_number > len_list: high_len = Cipher.letter_number_list[0].index(letter) + shift_number multiplier = int(high_len / len_list) end_len = high_len - multiplier * len_list new_sentence = new_sentence + Cipher.letter_number_list[0][end_len] else: high_len = Cipher.letter_number_list[0].index(letter) + shift_number new_sentence = new_sentence + Cipher.letter_number_list[0][high_len] self.sentence = new_sentence return self.sentence def dec_caesar_cipher(self, shift_number): Cipher.integer_check(shift_number) Cipher.check_letter_number_list(Cipher.letter_number_list) Cipher.string_check(self.sentence) new_sentence = '' len_list = len(Cipher.letter_number_list[0]) for letter in self.sentence: if Cipher.letter_number_list[0].index(letter) - shift_number < 0: low_len = shift_number - Cipher.letter_number_list[0].index(letter) multiplier = int(low_len / len_list) end_len = -(low_len - multiplier * len_list) new_sentence = new_sentence + Cipher.letter_number_list[0][end_len] else: low_len = Cipher.letter_number_list[0].index(letter) - shift_number new_sentence = new_sentence + Cipher.letter_number_list[0][low_len] self.sentence = new_sentence return self.sentence @classmethod def check_letter_number_list(cls, list): if len(list[0]) == len(list[1]): pass else: raise index_error('more letters or numbers. letters and numbers should have the same number of indexes') counter = 1 for letter in list[0]: if str(type(letter)) == "<class 'str'>": pass else: raise type_error('letters should be from type str') if len(letter) == 1: pass else: raise value_error('to much letters in one index. should be one letter per index') if list[0].count(letter) == 1: pass else: raise value_error('there should be no letter duplicate') for number in list[1]: if str(type(number)) == "<class 'int'>": pass else: raise type_error('numbers should be from type int') if number == counter: counter += 1 else: raise value_error('numbers should start at 1 and raise everytime by 1') @classmethod def tuple_check(cls, tuple): tuple_bool = str(type(tuple)) == "<class 'tuple'>" if tuple_bool: pass else: raise type_error(str(type(tuple)).replace("<class '", '').replace("'>", '') + 'is given but tuple should be given') @classmethod def float_check(cls, float): float_bool = str(type(float)) == "<class 'float'>" if float_bool: pass else: raise type_error(str(type(float)).replace("<class '", '').replace("'>", '') + ' is given but float should be given') @classmethod def list_check(cls, list): list_bool = str(type(list)) == "<class 'list'>" if list_bool: pass else: raise type_error(str(type(list)).replace("<class '", '').replace("'>", '') + ' is given but list should be given') @classmethod def dictionary_check(cls, dictionary): dictionary_bool = str(type(dictionary)) == "<class 'dict'>" if dictionary_bool: pass else: raise type_error(str(type(dictionary)).replace("<class '", '').replace("'>", '') + ' is given but dictionary should be given') @classmethod def integer_check(cls, integer): integer_bool = str(type(integer)) == "<class 'int'>" if integer_bool: pass else: raise type_error(str(type(integer)).replace("<class '", '').replace("'>", '') + ' is given but integer should be given') @classmethod def string_check(cls, string): string_bool = str(type(string)) == "<class 'str'>" if string_bool: pass else: raise type_error(str(type(string)).replace("<class '", '').replace("'>", '') + ' is given but string should be given')
#: Describe the widgets to show in the toolbox, #: and anything else needed for the #: designer. The base is a list, because python dict don't preserve the order. #: The first field is the name used for Factory.<name> #: The second field represent a category name widgets = [ ('Label', 'base', {'text': 'A label'}), ('Button', 'base', {'text': 'A button'}), ('CheckBox', 'base'), ('Image', 'base'), ('Slider', 'base'), ('ProgressBar', 'base'), ('TextInput', 'base'), ('ToggleButton', 'base'), ('Switch', 'base'), ('Video', 'base'), ('ScreenManager', 'base'), ('Screen', 'base'), ('Carousel', 'base'), ('TabbedPanel', 'base'), ('GridLayout', 'layout', {'cols': 2}), ('BoxLayout', 'layout'), ('AnchorLayout', 'layout'), ('StackLayout', 'layout'), ('FileChooserListView', 'complex'), ('FileChooserIconView', 'complex'), ('Popup', 'complex'), ('Spinner', 'complex'), ('VideoPlayer', 'complex'), ('ActionButton', 'complex'), ('ActionPrevious', 'complex'), ('ScrollView', 'behavior'), # ('VKeybord', 'complex'), # ('Scatter', 'behavior'), # ('StencilView', 'behavior'), ]
widgets = [('Label', 'base', {'text': 'A label'}), ('Button', 'base', {'text': 'A button'}), ('CheckBox', 'base'), ('Image', 'base'), ('Slider', 'base'), ('ProgressBar', 'base'), ('TextInput', 'base'), ('ToggleButton', 'base'), ('Switch', 'base'), ('Video', 'base'), ('ScreenManager', 'base'), ('Screen', 'base'), ('Carousel', 'base'), ('TabbedPanel', 'base'), ('GridLayout', 'layout', {'cols': 2}), ('BoxLayout', 'layout'), ('AnchorLayout', 'layout'), ('StackLayout', 'layout'), ('FileChooserListView', 'complex'), ('FileChooserIconView', 'complex'), ('Popup', 'complex'), ('Spinner', 'complex'), ('VideoPlayer', 'complex'), ('ActionButton', 'complex'), ('ActionPrevious', 'complex'), ('ScrollView', 'behavior')]
def fib(i): count = 0 x = 0 y = 1 while count < i: count = count + 1 x, y = y, x + y return y
def fib(i): count = 0 x = 0 y = 1 while count < i: count = count + 1 (x, y) = (y, x + y) return y
#!/usr/bin/env python ''' Copyright (C) 2020, WAFW00F Developers. See the LICENSE file for copying permission. ''' NAME = 'pkSecurity IDS (pkSec)' def is_waf(self): schema1 = [ self.matchContent(r'pk.?Security.?Module'), self.matchContent(r'Security.Alert') ] schema2 = [ self.matchContent(r'As this could be a potential hack attack'), self.matchContent(r'A safety critical (call|request) was (detected|discovered) and blocked'), self.matchContent(r'maximum number of reloads per minute and prevented access') ] if any(i for i in schema2): return True if all(i for i in schema1): return True return False
""" Copyright (C) 2020, WAFW00F Developers. See the LICENSE file for copying permission. """ name = 'pkSecurity IDS (pkSec)' def is_waf(self): schema1 = [self.matchContent('pk.?Security.?Module'), self.matchContent('Security.Alert')] schema2 = [self.matchContent('As this could be a potential hack attack'), self.matchContent('A safety critical (call|request) was (detected|discovered) and blocked'), self.matchContent('maximum number of reloads per minute and prevented access')] if any((i for i in schema2)): return True if all((i for i in schema1)): return True return False
# # @lc app=leetcode id=741 lang=python3 # # [741] Cherry Pickup # # @lc code=start class Solution: def cherryPickup(self, grid: List[List[int]]) -> int: if grid[-1][-1] == -1: return 0 # set up cache self.grid = grid self.memo = {} self.N = len(grid) return max(self.dp(0, 0, 0, 0), 0) def dp(self, i1, j1, i2, j2): # already stored: return if (i1, j1, i2, j2) in self.memo: return self.memo[(i1, j1, i2, j2)] # end states: 1. out of grid 2. at the right bottom corner 3. hit a thorn N = self.N if i1 == N or j1 == N or i2 == N or j2 == N: return -1 if i1 == N-1 and j1 == N-1 and i2 == N-1 and j2 == N-1: return self.grid[-1][-1] if self.grid[i1][j1] == -1 or self.grid[i2][j2] == -1: return -1 # now can take a step in two directions at each end, which amounts to 4 combinations in total dd = self.dp(i1+1, j1, i2+1, j2) dr = self.dp(i1+1, j1, i2, j2+1) rd = self.dp(i1, j1+1, i2+1, j2) rr = self.dp(i1, j1+1, i2, j2+1) maxComb = max([dd, dr, rd, rr]) # find if there is a way to reach the end if maxComb == -1: out = -1 else: # same cell, can only count this cell once if i1 == i2 and j1 == j2: out = maxComb + self.grid[i1][j1] # different cell, can collect both else: out = maxComb + self.grid[i1][j1] + self.grid[i2][j2] # cache result self.memo[(i1, j1, i2, j2)] = out self.memo[(i2, j2, i1, j1)] = out return out # @lc code=end
class Solution: def cherry_pickup(self, grid: List[List[int]]) -> int: if grid[-1][-1] == -1: return 0 self.grid = grid self.memo = {} self.N = len(grid) return max(self.dp(0, 0, 0, 0), 0) def dp(self, i1, j1, i2, j2): if (i1, j1, i2, j2) in self.memo: return self.memo[i1, j1, i2, j2] n = self.N if i1 == N or j1 == N or i2 == N or (j2 == N): return -1 if i1 == N - 1 and j1 == N - 1 and (i2 == N - 1) and (j2 == N - 1): return self.grid[-1][-1] if self.grid[i1][j1] == -1 or self.grid[i2][j2] == -1: return -1 dd = self.dp(i1 + 1, j1, i2 + 1, j2) dr = self.dp(i1 + 1, j1, i2, j2 + 1) rd = self.dp(i1, j1 + 1, i2 + 1, j2) rr = self.dp(i1, j1 + 1, i2, j2 + 1) max_comb = max([dd, dr, rd, rr]) if maxComb == -1: out = -1 elif i1 == i2 and j1 == j2: out = maxComb + self.grid[i1][j1] else: out = maxComb + self.grid[i1][j1] + self.grid[i2][j2] self.memo[i1, j1, i2, j2] = out self.memo[i2, j2, i1, j1] = out return out
class BaseDatasetFactory: def get_dataset(self, data, postprocessors=None, **kwargs): raise NotImplementedError def get_label_mapper(self, data=None, postprocessors=None, **kwargs): raise NotImplementedError def get_scorers(self): raise NotImplementedError
class Basedatasetfactory: def get_dataset(self, data, postprocessors=None, **kwargs): raise NotImplementedError def get_label_mapper(self, data=None, postprocessors=None, **kwargs): raise NotImplementedError def get_scorers(self): raise NotImplementedError
def main(): # input N = int(input()) # compute l_0, l_1 = 2, 1 if N == 1: print(l_1) else: for _ in range(N-1): l_i = l_0 + l_1 l_0, l_1 = l_1, l_i print(l_i) # output if __name__ == '__main__': main()
def main(): n = int(input()) (l_0, l_1) = (2, 1) if N == 1: print(l_1) else: for _ in range(N - 1): l_i = l_0 + l_1 (l_0, l_1) = (l_1, l_i) print(l_i) if __name__ == '__main__': main()
{ "id": "ac256b", "title": "Some Small Useful Features of GitHub Actions", "date": "2021-05-18", "tags": ['github', 'QuTiP'], }
{'id': 'ac256b', 'title': 'Some Small Useful Features of GitHub Actions', 'date': '2021-05-18', 'tags': ['github', 'QuTiP']}
USA = [ '%b %d %Y', '%b %-d %Y', '%b %d, %Y', '%b %-d, %Y', '%B %d, %Y', '%B %-d, %Y', '%B %d %Y', '%B %-d %Y', '%m/%d/%Y', '%m/%-d/%Y', '%m/%d/%y', '%m/%-d/%y', '%o of %B, %Y', '%B %o, %Y' ] EU = [ '%b %d %Y', '%b %-d %Y', '%b %d, %Y', '%b %-d, %Y', '%B %d, %Y', '%B %-d, %Y', '%B %d %Y', '%B %-d %Y', '%d/%m/%Y', '%-d/%m/%Y', '%d/%m/%y', '%-d/%m/%y', '%o of %B, %Y', '%B %o, %Y' ]
usa = ['%b %d %Y', '%b %-d %Y', '%b %d, %Y', '%b %-d, %Y', '%B %d, %Y', '%B %-d, %Y', '%B %d %Y', '%B %-d %Y', '%m/%d/%Y', '%m/%-d/%Y', '%m/%d/%y', '%m/%-d/%y', '%o of %B, %Y', '%B %o, %Y'] eu = ['%b %d %Y', '%b %-d %Y', '%b %d, %Y', '%b %-d, %Y', '%B %d, %Y', '%B %-d, %Y', '%B %d %Y', '%B %-d %Y', '%d/%m/%Y', '%-d/%m/%Y', '%d/%m/%y', '%-d/%m/%y', '%o of %B, %Y', '%B %o, %Y']
def count_inversions(arr): start_index = 0 end_index = len(arr) - 1 output = inversion_count_func(arr, start_index, end_index) return output def inversion_count_func(arr, start_index, end_index): if start_index >= end_index: return 0 mid_index = start_index + (end_index - start_index) // 2 # find number of inversions in left-half left_answer = inversion_count_func(arr, start_index, mid_index) # find number of inversions in right-half right_answer = inversion_count_func(arr, mid_index + 1, end_index) output = left_answer + right_answer # merge two sorted halves and count inversions while merging output += merge_two_sorted_halves(arr, start_index, mid_index, mid_index + 1, end_index) return output def merge_two_sorted_halves(arr, start_one, end_one, start_two, end_two): count = 0 left_index = start_one right_index = start_two output_length = (end_two - start_two + 1) + (end_one - start_one + 1) output_list = [0 for _ in range(output_length)] index = 0 while index < output_length: # if left <= right, it's not an inversion if arr[left_index] <= arr[right_index]: output_list[index] = arr[left_index] left_index += 1 else: count = count + (end_one - left_index + 1) # left > right hence it's an inversion output_list[index] = arr[right_index] right_index += 1 index = index + 1 if left_index > end_one: for i in range(right_index, end_two + 1): output_list[index] = arr[i] index += 1 break elif right_index > end_two: for i in range(left_index, end_one + 1): output_list[index] = arr[i] index += 1 break index = start_one for i in range(output_length): arr[index] = output_list[i] index += 1 return count
def count_inversions(arr): start_index = 0 end_index = len(arr) - 1 output = inversion_count_func(arr, start_index, end_index) return output def inversion_count_func(arr, start_index, end_index): if start_index >= end_index: return 0 mid_index = start_index + (end_index - start_index) // 2 left_answer = inversion_count_func(arr, start_index, mid_index) right_answer = inversion_count_func(arr, mid_index + 1, end_index) output = left_answer + right_answer output += merge_two_sorted_halves(arr, start_index, mid_index, mid_index + 1, end_index) return output def merge_two_sorted_halves(arr, start_one, end_one, start_two, end_two): count = 0 left_index = start_one right_index = start_two output_length = end_two - start_two + 1 + (end_one - start_one + 1) output_list = [0 for _ in range(output_length)] index = 0 while index < output_length: if arr[left_index] <= arr[right_index]: output_list[index] = arr[left_index] left_index += 1 else: count = count + (end_one - left_index + 1) output_list[index] = arr[right_index] right_index += 1 index = index + 1 if left_index > end_one: for i in range(right_index, end_two + 1): output_list[index] = arr[i] index += 1 break elif right_index > end_two: for i in range(left_index, end_one + 1): output_list[index] = arr[i] index += 1 break index = start_one for i in range(output_length): arr[index] = output_list[i] index += 1 return count
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. #*** nmeta - Network Metadata - API definition file # Records of flows that have been removed by switches # (generally due to idle timeout) # Not deduplicated for multiple switches flows_removed_schema = { 'dpid': { 'type': 'integer' }, 'removal_time': { 'type': 'datetime' }, 'cookie': { 'type': 'string' }, 'priority': { 'type': 'integer' }, 'reason': { 'type': 'string' }, 'table_id': { 'type': 'integer' }, 'duration_sec': { 'type': 'string' }, 'idle_timeout': { 'type': 'string' }, 'hard_timeout': { 'type': 'string' }, 'packet_count': { 'type': 'integer' }, 'byte_count': { 'type': 'integer' }, 'eth_A': { 'type': 'string' }, 'eth_B': { 'type': 'string' }, 'eth_type': { 'type': 'string' }, 'ip_A': { 'type': 'string' }, 'ip_B': { 'type': 'string' }, 'ip_proto': { 'type': 'string' }, 'tp_A': { 'type': 'string' }, 'tp_B': { 'type': 'string' }, 'flow_hash': { 'type': 'string' }, 'direction': { 'type': 'string' } } flows_removed_settings = { 'url': 'flows_removed', 'item_title': 'Flows Removed', 'schema': flows_removed_schema, 'datasource': { 'source': 'flow_rems' } } #*** Removed flows count (does not deduplicate for multiple switches): flows_removed_stats_count_schema = { 'flows_removed_count': { 'type': 'integer' } } flows_removed_stats_count_settings = { 'url': 'flows_removed/stats/count', 'item_title': 'Count of Removed Flows', 'schema': flows_removed_stats_count_schema } #*** Removed flows bytes sent by source IP (dedup for multiple switches): flows_removed_src_bytes_sent_schema = { '_items': { '_id': 'string', 'identity': 'string', 'total_bytes_sent': 'integer' } } flows_removed_src_bytes_sent_settings = { 'url': 'flows_removed/stats/src_bytes_sent', 'item_title': 'Removed Flows Bytes Sent by Source IP', 'schema': flows_removed_src_bytes_sent_schema } #*** Removed flows bytes received by source IP (dedup for multiple switches): flows_removed_src_bytes_received_schema = { '_items': { '_id': 'string', 'identity': 'string', 'total_bytes_received': 'integer' } } flows_removed_src_bytes_received_settings = { 'url': 'flows_removed/stats/src_bytes_received', 'item_title': 'Removed Flows Bytes Received by Source IP', 'schema': flows_removed_src_bytes_received_schema } #*** Removed flows bytes sent by destination IP (dedup for multiple switches): flows_removed_dst_bytes_sent_schema = { '_items': { '_id': 'string', 'identity': 'string', 'total_bytes_sent': 'integer' } } flows_removed_dst_bytes_sent_settings = { 'url': 'flows_removed/stats/dst_bytes_sent', 'item_title': 'Removed Flows Bytes Sent by Source IP', 'schema': flows_removed_dst_bytes_sent_schema } #*** Removed flows bytes received by destination IP (dedup for multiple switches): flows_removed_dst_bytes_received_schema = { '_items': { '_id': 'string', 'identity': 'string', 'total_bytes_received': 'integer' } } flows_removed_dst_bytes_received_settings = { 'url': 'flows_removed/stats/dst_bytes_received', 'item_title': 'Removed Flows Bytes Received by Source IP', 'schema': flows_removed_dst_bytes_received_schema }
flows_removed_schema = {'dpid': {'type': 'integer'}, 'removal_time': {'type': 'datetime'}, 'cookie': {'type': 'string'}, 'priority': {'type': 'integer'}, 'reason': {'type': 'string'}, 'table_id': {'type': 'integer'}, 'duration_sec': {'type': 'string'}, 'idle_timeout': {'type': 'string'}, 'hard_timeout': {'type': 'string'}, 'packet_count': {'type': 'integer'}, 'byte_count': {'type': 'integer'}, 'eth_A': {'type': 'string'}, 'eth_B': {'type': 'string'}, 'eth_type': {'type': 'string'}, 'ip_A': {'type': 'string'}, 'ip_B': {'type': 'string'}, 'ip_proto': {'type': 'string'}, 'tp_A': {'type': 'string'}, 'tp_B': {'type': 'string'}, 'flow_hash': {'type': 'string'}, 'direction': {'type': 'string'}} flows_removed_settings = {'url': 'flows_removed', 'item_title': 'Flows Removed', 'schema': flows_removed_schema, 'datasource': {'source': 'flow_rems'}} flows_removed_stats_count_schema = {'flows_removed_count': {'type': 'integer'}} flows_removed_stats_count_settings = {'url': 'flows_removed/stats/count', 'item_title': 'Count of Removed Flows', 'schema': flows_removed_stats_count_schema} flows_removed_src_bytes_sent_schema = {'_items': {'_id': 'string', 'identity': 'string', 'total_bytes_sent': 'integer'}} flows_removed_src_bytes_sent_settings = {'url': 'flows_removed/stats/src_bytes_sent', 'item_title': 'Removed Flows Bytes Sent by Source IP', 'schema': flows_removed_src_bytes_sent_schema} flows_removed_src_bytes_received_schema = {'_items': {'_id': 'string', 'identity': 'string', 'total_bytes_received': 'integer'}} flows_removed_src_bytes_received_settings = {'url': 'flows_removed/stats/src_bytes_received', 'item_title': 'Removed Flows Bytes Received by Source IP', 'schema': flows_removed_src_bytes_received_schema} flows_removed_dst_bytes_sent_schema = {'_items': {'_id': 'string', 'identity': 'string', 'total_bytes_sent': 'integer'}} flows_removed_dst_bytes_sent_settings = {'url': 'flows_removed/stats/dst_bytes_sent', 'item_title': 'Removed Flows Bytes Sent by Source IP', 'schema': flows_removed_dst_bytes_sent_schema} flows_removed_dst_bytes_received_schema = {'_items': {'_id': 'string', 'identity': 'string', 'total_bytes_received': 'integer'}} flows_removed_dst_bytes_received_settings = {'url': 'flows_removed/stats/dst_bytes_received', 'item_title': 'Removed Flows Bytes Received by Source IP', 'schema': flows_removed_dst_bytes_received_schema}
# string = str(input()) # str1 = str(input()) # str2 = str(input()) # print(string.replace(str1,str2)) #num = int(input()) row =1;ct=1 for ctr in range(int(input())): for ctr1 in range(row): print(ct,end=' ') ct +=1 row +=1 print("\n")
row = 1 ct = 1 for ctr in range(int(input())): for ctr1 in range(row): print(ct, end=' ') ct += 1 row += 1 print('\n')
def MakeClass(impF: dict): class X: RawFunctions = impF GeneratedFunctions = dict() def __init__(self): self.x = 1 return def cc(self, name) -> callable: if name in X.GeneratedFunctions: return X.GeneratedFunctions[name] raise NotImplementedError return X def main(): def X(this): return 1 TEST = MakeClass({"Test": X}) TX = TEST() e = TX.cc("Test")() return if __name__ == "__main__": main()
def make_class(impF: dict): class X: raw_functions = impF generated_functions = dict() def __init__(self): self.x = 1 return def cc(self, name) -> callable: if name in X.GeneratedFunctions: return X.GeneratedFunctions[name] raise NotImplementedError return X def main(): def x(this): return 1 test = make_class({'Test': X}) tx = test() e = TX.cc('Test')() return if __name__ == '__main__': main()
# Auto-generated file (see get_api_items.py) def get_mapped_items(): mapped_wiki_inline_code = dict() mapped_wiki_inline_code['*emscripten_get_preloaded_image_data'] = ':c:func:`*emscripten_get_preloaded_image_data`' mapped_wiki_inline_code['*emscripten_get_preloaded_image_data()'] = ':c:func:`*emscripten_get_preloaded_image_data`' mapped_wiki_inline_code['*emscripten_get_preloaded_image_data_from_FILE'] = ':c:func:`*emscripten_get_preloaded_image_data_from_FILE`' mapped_wiki_inline_code['*emscripten_get_preloaded_image_data_from_FILE()'] = ':c:func:`*emscripten_get_preloaded_image_data_from_FILE`' mapped_wiki_inline_code['*emscripten_run_script_string'] = ':c:func:`*emscripten_run_script_string`' mapped_wiki_inline_code['*emscripten_run_script_string()'] = ':c:func:`*emscripten_run_script_string`' mapped_wiki_inline_code[':'] = ':cpp:class:`:`' mapped_wiki_inline_code['AsciiToString'] = ':js:func:`AsciiToString`' mapped_wiki_inline_code['AsciiToString()'] = ':js:func:`AsciiToString`' mapped_wiki_inline_code['DOM_DELTA_LINE'] = ':c:macro:`DOM_DELTA_LINE`' mapped_wiki_inline_code['DOM_DELTA_PAGE'] = ':c:macro:`DOM_DELTA_PAGE`' mapped_wiki_inline_code['DOM_DELTA_PIXEL'] = ':c:macro:`DOM_DELTA_PIXEL`' mapped_wiki_inline_code['DOM_KEY_LOCATION'] = ':c:macro:`DOM_KEY_LOCATION`' mapped_wiki_inline_code['EMSCRIPTEN_BINDINGS'] = ':cpp:func:`EMSCRIPTEN_BINDINGS`' mapped_wiki_inline_code['EMSCRIPTEN_BINDINGS()'] = ':cpp:func:`EMSCRIPTEN_BINDINGS`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_BATTERYCHARGINGCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_BATTERYCHARGINGCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_BEFOREUNLOAD'] = ':c:macro:`EMSCRIPTEN_EVENT_BEFOREUNLOAD`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_BLUR'] = ':c:macro:`EMSCRIPTEN_EVENT_BLUR`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_CLICK'] = ':c:macro:`EMSCRIPTEN_EVENT_CLICK`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_DEVICEMOTION'] = ':c:macro:`EMSCRIPTEN_EVENT_DEVICEMOTION`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_DEVICEORIENTATION'] = ':c:macro:`EMSCRIPTEN_EVENT_DEVICEORIENTATION`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_FULLSCREENCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_FULLSCREENCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_GAMEPADCONNECTED'] = ':c:macro:`EMSCRIPTEN_EVENT_GAMEPADCONNECTED`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_KEYPRESS'] = ':c:macro:`EMSCRIPTEN_EVENT_KEYPRESS`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_ORIENTATIONCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_ORIENTATIONCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_POINTERLOCKCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_POINTERLOCKCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_POINTERLOCKERROR'] = ':c:macro:`EMSCRIPTEN_EVENT_POINTERLOCKERROR`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_RESIZE'] = ':c:macro:`EMSCRIPTEN_EVENT_RESIZE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_TOUCHSTART'] = ':c:macro:`EMSCRIPTEN_EVENT_TOUCHSTART`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_VISIBILITYCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_VISIBILITYCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_WEBGLCONTEXTLOST'] = ':c:macro:`EMSCRIPTEN_EVENT_WEBGLCONTEXTLOST`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_WHEEL'] = ':c:macro:`EMSCRIPTEN_EVENT_WHEEL`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_HIDEF'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_HIDEF`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_FILTERING'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_FILTERING`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_FILTERING_BILINEAR'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_FILTERING_BILINEAR`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_FILTERING_DEFAULT'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_FILTERING_DEFAULT`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_FILTERING_NEAREST'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_FILTERING_NEAREST`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_SCALE'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_SCALE`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH`' mapped_wiki_inline_code['EMSCRIPTEN_KEEPALIVE'] = ':c:macro:`EMSCRIPTEN_KEEPALIVE`' mapped_wiki_inline_code['EMSCRIPTEN_ORIENTATION_LANDSCAPE_PRIMARY'] = ':c:macro:`EMSCRIPTEN_ORIENTATION_LANDSCAPE_PRIMARY`' mapped_wiki_inline_code['EMSCRIPTEN_ORIENTATION_LANDSCAPE_SECONDARY'] = ':c:macro:`EMSCRIPTEN_ORIENTATION_LANDSCAPE_SECONDARY`' mapped_wiki_inline_code['EMSCRIPTEN_ORIENTATION_PORTRAIT_PRIMARY'] = ':c:macro:`EMSCRIPTEN_ORIENTATION_PORTRAIT_PRIMARY`' mapped_wiki_inline_code['EMSCRIPTEN_ORIENTATION_PORTRAIT_SECONDARY'] = ':c:macro:`EMSCRIPTEN_ORIENTATION_PORTRAIT_SECONDARY`' mapped_wiki_inline_code['EMSCRIPTEN_RESULT'] = ':c:macro:`EMSCRIPTEN_RESULT`' mapped_wiki_inline_code['EMSCRIPTEN_VISIBILITY_HIDDEN'] = ':c:macro:`EMSCRIPTEN_VISIBILITY_HIDDEN`' mapped_wiki_inline_code['EMSCRIPTEN_VISIBILITY_PRERENDER'] = ':c:macro:`EMSCRIPTEN_VISIBILITY_PRERENDER`' mapped_wiki_inline_code['EMSCRIPTEN_VISIBILITY_UNLOADED'] = ':c:macro:`EMSCRIPTEN_VISIBILITY_UNLOADED`' mapped_wiki_inline_code['EMSCRIPTEN_VISIBILITY_VISIBLE'] = ':c:macro:`EMSCRIPTEN_VISIBILITY_VISIBLE`' mapped_wiki_inline_code['EMSCRIPTEN_WEBGL_CONTEXT_HANDLE'] = ':c:type:`EMSCRIPTEN_WEBGL_CONTEXT_HANDLE`' mapped_wiki_inline_code['EMSCRIPTEN_WRAPPER'] = ':cpp:func:`EMSCRIPTEN_WRAPPER`' mapped_wiki_inline_code['EMSCRIPTEN_WRAPPER()'] = ':cpp:func:`EMSCRIPTEN_WRAPPER`' mapped_wiki_inline_code['EM_ASM'] = ':c:macro:`EM_ASM`' mapped_wiki_inline_code['EM_ASM_INT'] = ':c:macro:`EM_ASM_INT`' mapped_wiki_inline_code['EM_BOOL'] = ':c:macro:`EM_BOOL`' mapped_wiki_inline_code['EM_JS'] = ':c:macro:`EM_JS`' mapped_wiki_inline_code['EM_LOG_CONSOLE'] = ':c:macro:`EM_LOG_CONSOLE`' mapped_wiki_inline_code['EM_LOG_C_STACK'] = ':c:macro:`EM_LOG_C_STACK`' mapped_wiki_inline_code['EM_LOG_ERROR'] = ':c:macro:`EM_LOG_ERROR`' mapped_wiki_inline_code['EM_LOG_FUNC_PARAMS'] = ':c:macro:`EM_LOG_FUNC_PARAMS`' mapped_wiki_inline_code['EM_LOG_JS_STACK'] = ':c:macro:`EM_LOG_JS_STACK`' mapped_wiki_inline_code['EM_LOG_NO_PATHS'] = ':c:macro:`EM_LOG_NO_PATHS`' mapped_wiki_inline_code['EM_LOG_WARN'] = ':c:macro:`EM_LOG_WARN`' mapped_wiki_inline_code['EM_LOG_INFO'] = ':c:macro:`EM_LOG_INFO`' mapped_wiki_inline_code['EM_LOG_DEBUG'] = ':c:macro:`EM_LOG_DEBUG`' mapped_wiki_inline_code['EM_UTF8'] = ':c:macro:`EM_UTF8`' mapped_wiki_inline_code['EmscriptenBatteryEvent'] = ':c:type:`EmscriptenBatteryEvent`' mapped_wiki_inline_code['EmscriptenDeviceMotionEvent'] = ':c:type:`EmscriptenDeviceMotionEvent`' mapped_wiki_inline_code['EmscriptenDeviceOrientationEvent'] = ':c:type:`EmscriptenDeviceOrientationEvent`' mapped_wiki_inline_code['EmscriptenFocusEvent'] = ':c:type:`EmscriptenFocusEvent`' mapped_wiki_inline_code['EmscriptenFullscreenChangeEvent'] = ':c:type:`EmscriptenFullscreenChangeEvent`' mapped_wiki_inline_code['EmscriptenFullscreenStrategy'] = ':c:type:`EmscriptenFullscreenStrategy`' mapped_wiki_inline_code['EmscriptenGamepadEvent'] = ':c:type:`EmscriptenGamepadEvent`' mapped_wiki_inline_code['EmscriptenKeyboardEvent'] = ':c:type:`EmscriptenKeyboardEvent`' mapped_wiki_inline_code['EmscriptenMouseEvent'] = ':c:type:`EmscriptenMouseEvent`' mapped_wiki_inline_code['EmscriptenOrientationChangeEvent'] = ':c:type:`EmscriptenOrientationChangeEvent`' mapped_wiki_inline_code['EmscriptenPointerlockChangeEvent'] = ':c:type:`EmscriptenPointerlockChangeEvent`' mapped_wiki_inline_code['EmscriptenTouchEvent'] = ':c:type:`EmscriptenTouchEvent`' mapped_wiki_inline_code['EmscriptenTouchPoint'] = ':c:type:`EmscriptenTouchPoint`' mapped_wiki_inline_code['EmscriptenUiEvent'] = ':c:type:`EmscriptenUiEvent`' mapped_wiki_inline_code['EmscriptenVisibilityChangeEvent'] = ':c:type:`EmscriptenVisibilityChangeEvent`' mapped_wiki_inline_code['EmscriptenWebGLContextAttributes'] = ':c:type:`EmscriptenWebGLContextAttributes`' mapped_wiki_inline_code['EmscriptenWheelEvent'] = ':c:type:`EmscriptenWheelEvent`' mapped_wiki_inline_code['FS.chmod'] = ':js:func:`FS.chmod`' mapped_wiki_inline_code['FS.chmod()'] = ':js:func:`FS.chmod`' mapped_wiki_inline_code['FS.chown'] = ':js:func:`FS.chown`' mapped_wiki_inline_code['FS.chown()'] = ':js:func:`FS.chown`' mapped_wiki_inline_code['FS.close'] = ':js:func:`FS.close`' mapped_wiki_inline_code['FS.close()'] = ':js:func:`FS.close`' mapped_wiki_inline_code['FS.createLazyFile'] = ':js:func:`FS.createLazyFile`' mapped_wiki_inline_code['FS.createLazyFile()'] = ':js:func:`FS.createLazyFile`' mapped_wiki_inline_code['FS.createPreloadedFile'] = ':js:func:`FS.createPreloadedFile`' mapped_wiki_inline_code['FS.createPreloadedFile()'] = ':js:func:`FS.createPreloadedFile`' mapped_wiki_inline_code['FS.cwd'] = ':js:func:`FS.cwd`' mapped_wiki_inline_code['FS.cwd()'] = ':js:func:`FS.cwd`' mapped_wiki_inline_code['FS.fchmod'] = ':js:func:`FS.fchmod`' mapped_wiki_inline_code['FS.fchmod()'] = ':js:func:`FS.fchmod`' mapped_wiki_inline_code['FS.fchown'] = ':js:func:`FS.fchown`' mapped_wiki_inline_code['FS.fchown()'] = ':js:func:`FS.fchown`' mapped_wiki_inline_code['FS.ftruncate'] = ':js:func:`FS.ftruncate`' mapped_wiki_inline_code['FS.ftruncate()'] = ':js:func:`FS.ftruncate`' mapped_wiki_inline_code['FS.getMode'] = ':js:func:`FS.getMode`' mapped_wiki_inline_code['FS.getMode()'] = ':js:func:`FS.getMode`' mapped_wiki_inline_code['FS.getPath'] = ':js:func:`FS.getPath`' mapped_wiki_inline_code['FS.getPath()'] = ':js:func:`FS.getPath`' mapped_wiki_inline_code['FS.init'] = ':js:func:`FS.init`' mapped_wiki_inline_code['FS.init()'] = ':js:func:`FS.init`' mapped_wiki_inline_code['FS.isBlkdev'] = ':js:func:`FS.isBlkdev`' mapped_wiki_inline_code['FS.isBlkdev()'] = ':js:func:`FS.isBlkdev`' mapped_wiki_inline_code['FS.isChrdev'] = ':js:func:`FS.isChrdev`' mapped_wiki_inline_code['FS.isChrdev()'] = ':js:func:`FS.isChrdev`' mapped_wiki_inline_code['FS.isDir'] = ':js:func:`FS.isDir`' mapped_wiki_inline_code['FS.isDir()'] = ':js:func:`FS.isDir`' mapped_wiki_inline_code['FS.isFile'] = ':js:func:`FS.isFile`' mapped_wiki_inline_code['FS.isFile()'] = ':js:func:`FS.isFile`' mapped_wiki_inline_code['FS.isLink'] = ':js:func:`FS.isLink`' mapped_wiki_inline_code['FS.isLink()'] = ':js:func:`FS.isLink`' mapped_wiki_inline_code['FS.isSocket'] = ':js:func:`FS.isSocket`' mapped_wiki_inline_code['FS.isSocket()'] = ':js:func:`FS.isSocket`' mapped_wiki_inline_code['FS.lchmod'] = ':js:func:`FS.lchmod`' mapped_wiki_inline_code['FS.lchmod()'] = ':js:func:`FS.lchmod`' mapped_wiki_inline_code['FS.lchown'] = ':js:func:`FS.lchown`' mapped_wiki_inline_code['FS.lchown()'] = ':js:func:`FS.lchown`' mapped_wiki_inline_code['FS.llseek'] = ':js:func:`FS.llseek`' mapped_wiki_inline_code['FS.llseek()'] = ':js:func:`FS.llseek`' mapped_wiki_inline_code['FS.lookupPath'] = ':js:func:`FS.lookupPath`' mapped_wiki_inline_code['FS.lookupPath()'] = ':js:func:`FS.lookupPath`' mapped_wiki_inline_code['FS.lstat'] = ':js:func:`FS.lstat`' mapped_wiki_inline_code['FS.lstat()'] = ':js:func:`FS.lstat`' mapped_wiki_inline_code['FS.makedev'] = ':js:func:`FS.makedev`' mapped_wiki_inline_code['FS.makedev()'] = ':js:func:`FS.makedev`' mapped_wiki_inline_code['FS.mkdev'] = ':js:func:`FS.mkdev`' mapped_wiki_inline_code['FS.mkdev()'] = ':js:func:`FS.mkdev`' mapped_wiki_inline_code['FS.mkdir'] = ':js:func:`FS.mkdir`' mapped_wiki_inline_code['FS.mkdir()'] = ':js:func:`FS.mkdir`' mapped_wiki_inline_code['FS.mount'] = ':js:func:`FS.mount`' mapped_wiki_inline_code['FS.mount()'] = ':js:func:`FS.mount`' mapped_wiki_inline_code['FS.open'] = ':js:func:`FS.open`' mapped_wiki_inline_code['FS.open()'] = ':js:func:`FS.open`' mapped_wiki_inline_code['FS.read'] = ':js:func:`FS.read`' mapped_wiki_inline_code['FS.read()'] = ':js:func:`FS.read`' mapped_wiki_inline_code['FS.readFile'] = ':js:func:`FS.readFile`' mapped_wiki_inline_code['FS.readFile()'] = ':js:func:`FS.readFile`' mapped_wiki_inline_code['FS.readlink'] = ':js:func:`FS.readlink`' mapped_wiki_inline_code['FS.readlink()'] = ':js:func:`FS.readlink`' mapped_wiki_inline_code['FS.registerDevice'] = ':js:func:`FS.registerDevice`' mapped_wiki_inline_code['FS.registerDevice()'] = ':js:func:`FS.registerDevice`' mapped_wiki_inline_code['FS.rename'] = ':js:func:`FS.rename`' mapped_wiki_inline_code['FS.rename()'] = ':js:func:`FS.rename`' mapped_wiki_inline_code['FS.rmdir'] = ':js:func:`FS.rmdir`' mapped_wiki_inline_code['FS.rmdir()'] = ':js:func:`FS.rmdir`' mapped_wiki_inline_code['FS.stat'] = ':js:func:`FS.stat`' mapped_wiki_inline_code['FS.stat()'] = ':js:func:`FS.stat`' mapped_wiki_inline_code['FS.symlink'] = ':js:func:`FS.symlink`' mapped_wiki_inline_code['FS.symlink()'] = ':js:func:`FS.symlink`' mapped_wiki_inline_code['FS.syncfs'] = ':js:func:`FS.syncfs`' mapped_wiki_inline_code['FS.syncfs()'] = ':js:func:`FS.syncfs`' mapped_wiki_inline_code['FS.truncate'] = ':js:func:`FS.truncate`' mapped_wiki_inline_code['FS.truncate()'] = ':js:func:`FS.truncate`' mapped_wiki_inline_code['FS.unlink'] = ':js:func:`FS.unlink`' mapped_wiki_inline_code['FS.unlink()'] = ':js:func:`FS.unlink`' mapped_wiki_inline_code['FS.unmount'] = ':js:func:`FS.unmount`' mapped_wiki_inline_code['FS.unmount()'] = ':js:func:`FS.unmount`' mapped_wiki_inline_code['FS.utime'] = ':js:func:`FS.utime`' mapped_wiki_inline_code['FS.utime()'] = ':js:func:`FS.utime`' mapped_wiki_inline_code['FS.write'] = ':js:func:`FS.write`' mapped_wiki_inline_code['FS.write()'] = ':js:func:`FS.write`' mapped_wiki_inline_code['FS.writeFile'] = ':js:func:`FS.writeFile`' mapped_wiki_inline_code['FS.writeFile()'] = ':js:func:`FS.writeFile`' mapped_wiki_inline_code['HEAP16'] = ':js:data:`HEAP16`' mapped_wiki_inline_code['HEAP32'] = ':js:data:`HEAP32`' mapped_wiki_inline_code['HEAP8'] = ':js:data:`HEAP8`' mapped_wiki_inline_code['HEAPF32'] = ':js:data:`HEAPF32`' mapped_wiki_inline_code['HEAPF64'] = ':js:data:`HEAPF64`' mapped_wiki_inline_code['HEAPU16'] = ':js:data:`HEAPU16`' mapped_wiki_inline_code['HEAPU32'] = ':js:data:`HEAPU32`' mapped_wiki_inline_code['HEAPU8'] = ':js:data:`HEAPU8`' mapped_wiki_inline_code['Module.arguments'] = ':js:attribute:`Module.arguments`' mapped_wiki_inline_code['Module.destroy'] = ':js:func:`Module.destroy`' mapped_wiki_inline_code['Module.destroy()'] = ':js:func:`Module.destroy`' mapped_wiki_inline_code['Module.getPreloadedPackage'] = ':js:func:`Module.getPreloadedPackage`' mapped_wiki_inline_code['Module.getPreloadedPackage()'] = ':js:func:`Module.getPreloadedPackage`' mapped_wiki_inline_code['Module.instantiateWasm'] = ':js:func:`Module.instantiateWasm`' mapped_wiki_inline_code['Module.instantiateWasm()'] = ':js:func:`Module.instantiateWasm`' mapped_wiki_inline_code['Module.locateFile'] = ':js:attribute:`Module.locateFile`' mapped_wiki_inline_code['Module.logReadFiles'] = ':js:attribute:`Module.logReadFiles`' mapped_wiki_inline_code['Module.noExitRuntime'] = ':js:attribute:`Module.noExitRuntime`' mapped_wiki_inline_code['Module.noInitialRun'] = ':js:attribute:`Module.noInitialRun`' mapped_wiki_inline_code['Module.onAbort'] = ':js:attribute:`Module.onAbort`' mapped_wiki_inline_code['Module.onCustomMessage'] = ':js:func:`Module.onCustomMessage`' mapped_wiki_inline_code['Module.onCustomMessage()'] = ':js:func:`Module.onCustomMessage`' mapped_wiki_inline_code['Module.onRuntimeInitialized'] = ':js:attribute:`Module.onRuntimeInitialized`' mapped_wiki_inline_code['Module.preInit'] = ':js:attribute:`Module.preInit`' mapped_wiki_inline_code['Module.preRun'] = ':js:attribute:`Module.preRun`' mapped_wiki_inline_code['Module.preinitializedWebGLContext'] = ':js:attribute:`Module.preinitializedWebGLContext`' mapped_wiki_inline_code['Module.print'] = ':js:attribute:`Module.print`' mapped_wiki_inline_code['Module.printErr'] = ':js:attribute:`Module.printErr`' mapped_wiki_inline_code['PointeeType>'] = ':cpp:type:`PointeeType>`' mapped_wiki_inline_code['UTF16ToString'] = ':js:func:`UTF16ToString`' mapped_wiki_inline_code['UTF16ToString()'] = ':js:func:`UTF16ToString`' mapped_wiki_inline_code['UTF32ToString'] = ':js:func:`UTF32ToString`' mapped_wiki_inline_code['UTF32ToString()'] = ':js:func:`UTF32ToString`' mapped_wiki_inline_code['UTF8ToString'] = ':js:func:`UTF8ToString`' mapped_wiki_inline_code['UTF8ToString()'] = ':js:func:`UTF8ToString`' mapped_wiki_inline_code['V>>'] = ':cpp:func:`V>>`' mapped_wiki_inline_code['V>>()'] = ':cpp:func:`V>>`' mapped_wiki_inline_code['VRDisplayCapabilities'] = ':c:type:`VRDisplayCapabilities`' mapped_wiki_inline_code['VREyeParameters'] = ':c:type:`VREyeParameters`' mapped_wiki_inline_code['VRFrameData'] = ':c:type:`VRFrameData`' mapped_wiki_inline_code['VRLayerInit'] = ':c:type:`VRLayerInit`' mapped_wiki_inline_code['VRPose'] = ':c:type:`VRPose`' mapped_wiki_inline_code['VRQuaternion'] = ':c:type:`VRQuaternion`' mapped_wiki_inline_code['VRVector3'] = ':c:type:`VRVector3`' mapped_wiki_inline_code['VR_EYE_LEFT'] = ':c:macro:`VR_EYE_LEFT`' mapped_wiki_inline_code['VR_LAYER_DEFAULT_LEFT_BOUNDS'] = ':c:macro:`VR_LAYER_DEFAULT_LEFT_BOUNDS`' mapped_wiki_inline_code['VR_POSE_POSITION'] = ':c:macro:`VR_POSE_POSITION`' mapped_wiki_inline_code['__getDynamicPointerType'] = ':cpp:func:`__getDynamicPointerType`' mapped_wiki_inline_code['__getDynamicPointerType()'] = ':cpp:func:`__getDynamicPointerType`' mapped_wiki_inline_code['addRunDependency'] = ':js:func:`addRunDependency`' mapped_wiki_inline_code['addRunDependency()'] = ':js:func:`addRunDependency`' mapped_wiki_inline_code['allocate'] = ':js:func:`allocate`' mapped_wiki_inline_code['allocate()'] = ':js:func:`allocate`' mapped_wiki_inline_code['allow_raw_pointer'] = ':cpp:type:`allow_raw_pointer`' mapped_wiki_inline_code['allow_raw_pointers'] = ':cpp:type:`allow_raw_pointers`' mapped_wiki_inline_code['arg'] = ':cpp:type:`arg`' mapped_wiki_inline_code['base'] = ':cpp:type:`base`' mapped_wiki_inline_code['ccall'] = ':js:func:`ccall`' mapped_wiki_inline_code['ccall()'] = ':js:func:`ccall`' mapped_wiki_inline_code['char*'] = ':c:func:`char*`' mapped_wiki_inline_code['char*()'] = ':c:func:`char*`' mapped_wiki_inline_code['class_'] = ':cpp:class:`class_`' mapped_wiki_inline_code['constant'] = ':cpp:func:`constant`' mapped_wiki_inline_code['constant()'] = ':cpp:func:`constant`' mapped_wiki_inline_code['constructor'] = ':cpp:type:`constructor`' mapped_wiki_inline_code['cwrap'] = ':js:func:`cwrap`' mapped_wiki_inline_code['cwrap()'] = ':js:func:`cwrap`' mapped_wiki_inline_code['default_smart_ptr_trait'] = ':cpp:type:`default_smart_ptr_trait`' mapped_wiki_inline_code['em_arg_callback_func'] = ':c:type:`em_arg_callback_func`' mapped_wiki_inline_code['em_async_wget2_data_onerror_func'] = ':c:type:`em_async_wget2_data_onerror_func`' mapped_wiki_inline_code['em_async_wget2_data_onload_func'] = ':c:type:`em_async_wget2_data_onload_func`' mapped_wiki_inline_code['em_async_wget2_data_onprogress_func'] = ':c:type:`em_async_wget2_data_onprogress_func`' mapped_wiki_inline_code['em_async_wget2_onload_func'] = ':c:type:`em_async_wget2_onload_func`' mapped_wiki_inline_code['em_async_wget2_onstatus_func'] = ':c:type:`em_async_wget2_onstatus_func`' mapped_wiki_inline_code['em_async_wget_onload_func'] = ':c:type:`em_async_wget_onload_func`' mapped_wiki_inline_code['em_battery_callback_func'] = ':c:type:`em_battery_callback_func`' mapped_wiki_inline_code['em_beforeunload_callback'] = ':c:type:`em_beforeunload_callback`' mapped_wiki_inline_code['em_callback_func'] = ':c:type:`em_callback_func`' mapped_wiki_inline_code['em_devicemotion_callback_func'] = ':c:type:`em_devicemotion_callback_func`' mapped_wiki_inline_code['em_deviceorientation_callback_func'] = ':c:type:`em_deviceorientation_callback_func`' mapped_wiki_inline_code['em_focus_callback_func'] = ':c:type:`em_focus_callback_func`' mapped_wiki_inline_code['em_fullscreenchange_callback_func'] = ':c:type:`em_fullscreenchange_callback_func`' mapped_wiki_inline_code['em_gamepad_callback_func'] = ':c:type:`em_gamepad_callback_func`' mapped_wiki_inline_code['em_key_callback_func'] = ':c:type:`em_key_callback_func`' mapped_wiki_inline_code['em_mouse_callback_func'] = ':c:type:`em_mouse_callback_func`' mapped_wiki_inline_code['em_orientationchange_callback_func'] = ':c:type:`em_orientationchange_callback_func`' mapped_wiki_inline_code['em_pointerlockchange_callback_func'] = ':c:type:`em_pointerlockchange_callback_func`' mapped_wiki_inline_code['em_pointerlockerror_callback_func'] = ':c:type:`em_pointerlockerror_callback_func`' mapped_wiki_inline_code['em_run_preload_plugins_data_onload_func'] = ':c:type:`em_run_preload_plugins_data_onload_func`' mapped_wiki_inline_code['em_socket_callback'] = ':c:type:`em_socket_callback`' mapped_wiki_inline_code['em_socket_error_callback'] = ':c:type:`em_socket_error_callback`' mapped_wiki_inline_code['em_str_callback_func'] = ':c:type:`em_str_callback_func`' mapped_wiki_inline_code['em_touch_callback_func'] = ':c:type:`em_touch_callback_func`' mapped_wiki_inline_code['em_ui_callback_func'] = ':c:type:`em_ui_callback_func`' mapped_wiki_inline_code['em_visibilitychange_callback_func'] = ':c:type:`em_visibilitychange_callback_func`' mapped_wiki_inline_code['em_webgl_context_callback'] = ':c:type:`em_webgl_context_callback`' mapped_wiki_inline_code['em_wheel_callback_func'] = ':c:type:`em_wheel_callback_func`' mapped_wiki_inline_code['em_worker_callback_func'] = ':c:type:`em_worker_callback_func`' mapped_wiki_inline_code['emscripten'] = ':cpp:namespace:`emscripten`' mapped_wiki_inline_code['emscripten::val'] = ':cpp:class:`emscripten::val`' mapped_wiki_inline_code['emscripten_align1_short'] = ':c:type:`emscripten_align1_short`' mapped_wiki_inline_code['emscripten_async_call'] = ':c:func:`emscripten_async_call`' mapped_wiki_inline_code['emscripten_async_call()'] = ':c:func:`emscripten_async_call`' mapped_wiki_inline_code['emscripten_async_load_script'] = ':c:func:`emscripten_async_load_script`' mapped_wiki_inline_code['emscripten_async_load_script()'] = ':c:func:`emscripten_async_load_script`' mapped_wiki_inline_code['emscripten_async_run_script'] = ':c:func:`emscripten_async_run_script`' mapped_wiki_inline_code['emscripten_async_run_script()'] = ':c:func:`emscripten_async_run_script`' mapped_wiki_inline_code['emscripten_async_wget'] = ':c:func:`emscripten_async_wget`' mapped_wiki_inline_code['emscripten_async_wget()'] = ':c:func:`emscripten_async_wget`' mapped_wiki_inline_code['emscripten_async_wget2'] = ':c:func:`emscripten_async_wget2`' mapped_wiki_inline_code['emscripten_async_wget2()'] = ':c:func:`emscripten_async_wget2`' mapped_wiki_inline_code['emscripten_async_wget2_abort'] = ':c:func:`emscripten_async_wget2_abort`' mapped_wiki_inline_code['emscripten_async_wget2_abort()'] = ':c:func:`emscripten_async_wget2_abort`' mapped_wiki_inline_code['emscripten_async_wget2_data'] = ':c:func:`emscripten_async_wget2_data`' mapped_wiki_inline_code['emscripten_async_wget2_data()'] = ':c:func:`emscripten_async_wget2_data`' mapped_wiki_inline_code['emscripten_async_wget_data'] = ':c:func:`emscripten_async_wget_data`' mapped_wiki_inline_code['emscripten_async_wget_data()'] = ':c:func:`emscripten_async_wget_data`' mapped_wiki_inline_code['emscripten_call_worker'] = ':c:func:`emscripten_call_worker`' mapped_wiki_inline_code['emscripten_call_worker()'] = ':c:func:`emscripten_call_worker`' mapped_wiki_inline_code['emscripten_cancel_animation_frame'] = ':c:func:`emscripten_cancel_animation_frame`' mapped_wiki_inline_code['emscripten_cancel_animation_frame()'] = ':c:func:`emscripten_cancel_animation_frame`' mapped_wiki_inline_code['emscripten_cancel_main_loop'] = ':c:func:`emscripten_cancel_main_loop`' mapped_wiki_inline_code['emscripten_cancel_main_loop()'] = ':c:func:`emscripten_cancel_main_loop`' mapped_wiki_inline_code['emscripten_clear_immediate'] = ':c:func:`emscripten_clear_immediate`' mapped_wiki_inline_code['emscripten_clear_immediate()'] = ':c:func:`emscripten_clear_immediate`' mapped_wiki_inline_code['emscripten_clear_interval'] = ':c:func:`emscripten_clear_interval`' mapped_wiki_inline_code['emscripten_clear_interval()'] = ':c:func:`emscripten_clear_interval`' mapped_wiki_inline_code['emscripten_clear_timeout'] = ':c:func:`emscripten_clear_timeout`' mapped_wiki_inline_code['emscripten_clear_timeout()'] = ':c:func:`emscripten_clear_timeout`' mapped_wiki_inline_code['emscripten_console_error'] = ':c:func:`emscripten_console_error`' mapped_wiki_inline_code['emscripten_console_error()'] = ':c:func:`emscripten_console_error`' mapped_wiki_inline_code['emscripten_console_log'] = ':c:func:`emscripten_console_log`' mapped_wiki_inline_code['emscripten_console_log()'] = ':c:func:`emscripten_console_log`' mapped_wiki_inline_code['emscripten_console_warn'] = ':c:func:`emscripten_console_warn`' mapped_wiki_inline_code['emscripten_console_warn()'] = ':c:func:`emscripten_console_warn`' mapped_wiki_inline_code['emscripten_coroutine'] = ':c:type:`emscripten_coroutine`' mapped_wiki_inline_code['emscripten_coroutine_create'] = ':c:func:`emscripten_coroutine_create`' mapped_wiki_inline_code['emscripten_coroutine_create()'] = ':c:func:`emscripten_coroutine_create`' mapped_wiki_inline_code['emscripten_coroutine_next'] = ':c:func:`emscripten_coroutine_next`' mapped_wiki_inline_code['emscripten_coroutine_next()'] = ':c:func:`emscripten_coroutine_next`' mapped_wiki_inline_code['emscripten_create_worker'] = ':c:func:`emscripten_create_worker`' mapped_wiki_inline_code['emscripten_create_worker()'] = ':c:func:`emscripten_create_worker`' mapped_wiki_inline_code['emscripten_date_now'] = ':c:func:`emscripten_date_now`' mapped_wiki_inline_code['emscripten_date_now()'] = ':c:func:`emscripten_date_now`' mapped_wiki_inline_code['emscripten_debugger'] = ':c:func:`emscripten_debugger`' mapped_wiki_inline_code['emscripten_debugger()'] = ':c:func:`emscripten_debugger`' mapped_wiki_inline_code['emscripten_destroy_worker'] = ':c:func:`emscripten_destroy_worker`' mapped_wiki_inline_code['emscripten_destroy_worker()'] = ':c:func:`emscripten_destroy_worker`' mapped_wiki_inline_code['emscripten_enter_soft_fullscreen'] = ':c:func:`emscripten_enter_soft_fullscreen`' mapped_wiki_inline_code['emscripten_enter_soft_fullscreen()'] = ':c:func:`emscripten_enter_soft_fullscreen`' mapped_wiki_inline_code['emscripten_exit_fullscreen'] = ':c:func:`emscripten_exit_fullscreen`' mapped_wiki_inline_code['emscripten_exit_fullscreen()'] = ':c:func:`emscripten_exit_fullscreen`' mapped_wiki_inline_code['emscripten_exit_pointerlock'] = ':c:func:`emscripten_exit_pointerlock`' mapped_wiki_inline_code['emscripten_exit_pointerlock()'] = ':c:func:`emscripten_exit_pointerlock`' mapped_wiki_inline_code['emscripten_exit_soft_fullscreen'] = ':c:func:`emscripten_exit_soft_fullscreen`' mapped_wiki_inline_code['emscripten_exit_soft_fullscreen()'] = ':c:func:`emscripten_exit_soft_fullscreen`' mapped_wiki_inline_code['emscripten_exit_with_live_runtime'] = ':c:func:`emscripten_exit_with_live_runtime`' mapped_wiki_inline_code['emscripten_exit_with_live_runtime()'] = ':c:func:`emscripten_exit_with_live_runtime`' mapped_wiki_inline_code['emscripten_force_exit'] = ':c:func:`emscripten_force_exit`' mapped_wiki_inline_code['emscripten_force_exit()'] = ':c:func:`emscripten_force_exit`' mapped_wiki_inline_code['emscripten_get_battery_status'] = ':c:func:`emscripten_get_battery_status`' mapped_wiki_inline_code['emscripten_get_battery_status()'] = ':c:func:`emscripten_get_battery_status`' mapped_wiki_inline_code['emscripten_get_callstack'] = ':c:func:`emscripten_get_callstack`' mapped_wiki_inline_code['emscripten_get_callstack()'] = ':c:func:`emscripten_get_callstack`' mapped_wiki_inline_code['emscripten_get_canvas_element_size'] = ':c:func:`emscripten_get_canvas_element_size`' mapped_wiki_inline_code['emscripten_get_canvas_element_size()'] = ':c:func:`emscripten_get_canvas_element_size`' mapped_wiki_inline_code['emscripten_get_compiler_setting'] = ':c:func:`emscripten_get_compiler_setting`' mapped_wiki_inline_code['emscripten_get_compiler_setting()'] = ':c:func:`emscripten_get_compiler_setting`' mapped_wiki_inline_code['emscripten_get_device_pixel_ratio'] = ':c:func:`emscripten_get_device_pixel_ratio`' mapped_wiki_inline_code['emscripten_get_device_pixel_ratio()'] = ':c:func:`emscripten_get_device_pixel_ratio`' mapped_wiki_inline_code['emscripten_get_devicemotion_status'] = ':c:func:`emscripten_get_devicemotion_status`' mapped_wiki_inline_code['emscripten_get_devicemotion_status()'] = ':c:func:`emscripten_get_devicemotion_status`' mapped_wiki_inline_code['emscripten_get_deviceorientation_status'] = ':c:func:`emscripten_get_deviceorientation_status`' mapped_wiki_inline_code['emscripten_get_deviceorientation_status()'] = ':c:func:`emscripten_get_deviceorientation_status`' mapped_wiki_inline_code['emscripten_get_element_css_size'] = ':c:func:`emscripten_get_element_css_size`' mapped_wiki_inline_code['emscripten_get_element_css_size()'] = ':c:func:`emscripten_get_element_css_size`' mapped_wiki_inline_code['emscripten_get_fullscreen_status'] = ':c:func:`emscripten_get_fullscreen_status`' mapped_wiki_inline_code['emscripten_get_fullscreen_status()'] = ':c:func:`emscripten_get_fullscreen_status`' mapped_wiki_inline_code['emscripten_get_gamepad_status'] = ':c:func:`emscripten_get_gamepad_status`' mapped_wiki_inline_code['emscripten_get_gamepad_status()'] = ':c:func:`emscripten_get_gamepad_status`' mapped_wiki_inline_code['emscripten_get_main_loop_timing'] = ':c:func:`emscripten_get_main_loop_timing`' mapped_wiki_inline_code['emscripten_get_main_loop_timing()'] = ':c:func:`emscripten_get_main_loop_timing`' mapped_wiki_inline_code['emscripten_get_mouse_status'] = ':c:func:`emscripten_get_mouse_status`' mapped_wiki_inline_code['emscripten_get_mouse_status()'] = ':c:func:`emscripten_get_mouse_status`' mapped_wiki_inline_code['emscripten_get_now'] = ':c:func:`emscripten_get_now`' mapped_wiki_inline_code['emscripten_get_now()'] = ':c:func:`emscripten_get_now`' mapped_wiki_inline_code['emscripten_get_num_gamepads'] = ':c:func:`emscripten_get_num_gamepads`' mapped_wiki_inline_code['emscripten_get_num_gamepads()'] = ':c:func:`emscripten_get_num_gamepads`' mapped_wiki_inline_code['emscripten_get_orientation_status'] = ':c:func:`emscripten_get_orientation_status`' mapped_wiki_inline_code['emscripten_get_orientation_status()'] = ':c:func:`emscripten_get_orientation_status`' mapped_wiki_inline_code['emscripten_get_pointerlock_status'] = ':c:func:`emscripten_get_pointerlock_status`' mapped_wiki_inline_code['emscripten_get_pointerlock_status()'] = ':c:func:`emscripten_get_pointerlock_status`' mapped_wiki_inline_code['emscripten_get_visibility_status'] = ':c:func:`emscripten_get_visibility_status`' mapped_wiki_inline_code['emscripten_get_visibility_status()'] = ':c:func:`emscripten_get_visibility_status`' mapped_wiki_inline_code['emscripten_get_worker_queue_size'] = ':c:func:`emscripten_get_worker_queue_size`' mapped_wiki_inline_code['emscripten_get_worker_queue_size()'] = ':c:func:`emscripten_get_worker_queue_size`' mapped_wiki_inline_code['emscripten_hide_mouse'] = ':c:func:`emscripten_hide_mouse`' mapped_wiki_inline_code['emscripten_hide_mouse()'] = ':c:func:`emscripten_hide_mouse`' mapped_wiki_inline_code['emscripten_idb_async_delete'] = ':c:func:`emscripten_idb_async_delete`' mapped_wiki_inline_code['emscripten_idb_async_delete()'] = ':c:func:`emscripten_idb_async_delete`' mapped_wiki_inline_code['emscripten_idb_async_exists'] = ':c:func:`emscripten_idb_async_exists`' mapped_wiki_inline_code['emscripten_idb_async_exists()'] = ':c:func:`emscripten_idb_async_exists`' mapped_wiki_inline_code['emscripten_idb_async_load'] = ':c:func:`emscripten_idb_async_load`' mapped_wiki_inline_code['emscripten_idb_async_load()'] = ':c:func:`emscripten_idb_async_load`' mapped_wiki_inline_code['emscripten_idb_async_store'] = ':c:func:`emscripten_idb_async_store`' mapped_wiki_inline_code['emscripten_idb_async_store()'] = ':c:func:`emscripten_idb_async_store`' mapped_wiki_inline_code['emscripten_idb_delete'] = ':c:func:`emscripten_idb_delete`' mapped_wiki_inline_code['emscripten_idb_delete()'] = ':c:func:`emscripten_idb_delete`' mapped_wiki_inline_code['emscripten_idb_exists'] = ':c:func:`emscripten_idb_exists`' mapped_wiki_inline_code['emscripten_idb_exists()'] = ':c:func:`emscripten_idb_exists`' mapped_wiki_inline_code['emscripten_idb_load'] = ':c:func:`emscripten_idb_load`' mapped_wiki_inline_code['emscripten_idb_load()'] = ':c:func:`emscripten_idb_load`' mapped_wiki_inline_code['emscripten_idb_store'] = ':c:func:`emscripten_idb_store`' mapped_wiki_inline_code['emscripten_idb_store()'] = ':c:func:`emscripten_idb_store`' mapped_wiki_inline_code['emscripten_is_webgl_context_lost'] = ':c:func:`emscripten_is_webgl_context_lost`' mapped_wiki_inline_code['emscripten_is_webgl_context_lost()'] = ':c:func:`emscripten_is_webgl_context_lost`' mapped_wiki_inline_code['emscripten_lock_orientation'] = ':c:func:`emscripten_lock_orientation`' mapped_wiki_inline_code['emscripten_lock_orientation()'] = ':c:func:`emscripten_lock_orientation`' mapped_wiki_inline_code['emscripten_log'] = ':c:func:`emscripten_log`' mapped_wiki_inline_code['emscripten_log()'] = ':c:func:`emscripten_log`' mapped_wiki_inline_code['emscripten_pause_main_loop'] = ':c:func:`emscripten_pause_main_loop`' mapped_wiki_inline_code['emscripten_pause_main_loop()'] = ':c:func:`emscripten_pause_main_loop`' mapped_wiki_inline_code['emscripten_performance_now'] = ':c:func:`emscripten_performance_now`' mapped_wiki_inline_code['emscripten_performance_now()'] = ':c:func:`emscripten_performance_now`' mapped_wiki_inline_code['emscripten_print_double'] = ':c:func:`emscripten_print_double`' mapped_wiki_inline_code['emscripten_print_double()'] = ':c:func:`emscripten_print_double`' mapped_wiki_inline_code['emscripten_push_main_loop_blocker'] = ':c:func:`emscripten_push_main_loop_blocker`' mapped_wiki_inline_code['emscripten_push_main_loop_blocker()'] = ':c:func:`emscripten_push_main_loop_blocker`' mapped_wiki_inline_code['emscripten_random'] = ':c:func:`emscripten_random`' mapped_wiki_inline_code['emscripten_random()'] = ':c:func:`emscripten_random`' mapped_wiki_inline_code['emscripten_request_animation_frame'] = ':c:func:`emscripten_request_animation_frame`' mapped_wiki_inline_code['emscripten_request_animation_frame()'] = ':c:func:`emscripten_request_animation_frame`' mapped_wiki_inline_code['emscripten_request_animation_frame_loop'] = ':c:func:`emscripten_request_animation_frame_loop`' mapped_wiki_inline_code['emscripten_request_animation_frame_loop()'] = ':c:func:`emscripten_request_animation_frame_loop`' mapped_wiki_inline_code['emscripten_request_fullscreen'] = ':c:func:`emscripten_request_fullscreen`' mapped_wiki_inline_code['emscripten_request_fullscreen()'] = ':c:func:`emscripten_request_fullscreen`' mapped_wiki_inline_code['emscripten_request_fullscreen_strategy'] = ':c:func:`emscripten_request_fullscreen_strategy`' mapped_wiki_inline_code['emscripten_request_fullscreen_strategy()'] = ':c:func:`emscripten_request_fullscreen_strategy`' mapped_wiki_inline_code['emscripten_request_pointerlock'] = ':c:func:`emscripten_request_pointerlock`' mapped_wiki_inline_code['emscripten_request_pointerlock()'] = ':c:func:`emscripten_request_pointerlock`' mapped_wiki_inline_code['emscripten_run_preload_plugins'] = ':c:func:`emscripten_run_preload_plugins`' mapped_wiki_inline_code['emscripten_run_preload_plugins()'] = ':c:func:`emscripten_run_preload_plugins`' mapped_wiki_inline_code['emscripten_run_preload_plugins_data'] = ':c:func:`emscripten_run_preload_plugins_data`' mapped_wiki_inline_code['emscripten_run_preload_plugins_data()'] = ':c:func:`emscripten_run_preload_plugins_data`' mapped_wiki_inline_code['emscripten_run_script'] = ':c:func:`emscripten_run_script`' mapped_wiki_inline_code['emscripten_run_script()'] = ':c:func:`emscripten_run_script`' mapped_wiki_inline_code['emscripten_run_script_int'] = ':c:func:`emscripten_run_script_int`' mapped_wiki_inline_code['emscripten_run_script_int()'] = ':c:func:`emscripten_run_script_int`' mapped_wiki_inline_code['emscripten_sample_gamepad_data'] = ':c:func:`emscripten_sample_gamepad_data`' mapped_wiki_inline_code['emscripten_sample_gamepad_data()'] = ':c:func:`emscripten_sample_gamepad_data`' mapped_wiki_inline_code['emscripten_set_batterychargingchange_callback'] = ':c:func:`emscripten_set_batterychargingchange_callback`' mapped_wiki_inline_code['emscripten_set_batterychargingchange_callback()'] = ':c:func:`emscripten_set_batterychargingchange_callback`' mapped_wiki_inline_code['emscripten_set_beforeunload_callback'] = ':c:func:`emscripten_set_beforeunload_callback`' mapped_wiki_inline_code['emscripten_set_beforeunload_callback()'] = ':c:func:`emscripten_set_beforeunload_callback`' mapped_wiki_inline_code['emscripten_set_blur_callback'] = ':c:func:`emscripten_set_blur_callback`' mapped_wiki_inline_code['emscripten_set_blur_callback()'] = ':c:func:`emscripten_set_blur_callback`' mapped_wiki_inline_code['emscripten_set_canvas_element_size'] = ':c:func:`emscripten_set_canvas_element_size`' mapped_wiki_inline_code['emscripten_set_canvas_element_size()'] = ':c:func:`emscripten_set_canvas_element_size`' mapped_wiki_inline_code['emscripten_set_click_callback'] = ':c:func:`emscripten_set_click_callback`' mapped_wiki_inline_code['emscripten_set_click_callback()'] = ':c:func:`emscripten_set_click_callback`' mapped_wiki_inline_code['emscripten_set_devicemotion_callback'] = ':c:func:`emscripten_set_devicemotion_callback`' mapped_wiki_inline_code['emscripten_set_devicemotion_callback()'] = ':c:func:`emscripten_set_devicemotion_callback`' mapped_wiki_inline_code['emscripten_set_deviceorientation_callback'] = ':c:func:`emscripten_set_deviceorientation_callback`' mapped_wiki_inline_code['emscripten_set_deviceorientation_callback()'] = ':c:func:`emscripten_set_deviceorientation_callback`' mapped_wiki_inline_code['emscripten_set_element_css_size'] = ':c:func:`emscripten_set_element_css_size`' mapped_wiki_inline_code['emscripten_set_element_css_size()'] = ':c:func:`emscripten_set_element_css_size`' mapped_wiki_inline_code['emscripten_set_fullscreenchange_callback'] = ':c:func:`emscripten_set_fullscreenchange_callback`' mapped_wiki_inline_code['emscripten_set_fullscreenchange_callback()'] = ':c:func:`emscripten_set_fullscreenchange_callback`' mapped_wiki_inline_code['emscripten_set_gamepadconnected_callback'] = ':c:func:`emscripten_set_gamepadconnected_callback`' mapped_wiki_inline_code['emscripten_set_gamepadconnected_callback()'] = ':c:func:`emscripten_set_gamepadconnected_callback`' mapped_wiki_inline_code['emscripten_set_immediate'] = ':c:func:`emscripten_set_immediate`' mapped_wiki_inline_code['emscripten_set_immediate()'] = ':c:func:`emscripten_set_immediate`' mapped_wiki_inline_code['emscripten_set_immediate_loop'] = ':c:func:`emscripten_set_immediate_loop`' mapped_wiki_inline_code['emscripten_set_immediate_loop()'] = ':c:func:`emscripten_set_immediate_loop`' mapped_wiki_inline_code['emscripten_set_interval'] = ':c:func:`emscripten_set_interval`' mapped_wiki_inline_code['emscripten_set_interval()'] = ':c:func:`emscripten_set_interval`' mapped_wiki_inline_code['emscripten_set_keypress_callback'] = ':c:func:`emscripten_set_keypress_callback`' mapped_wiki_inline_code['emscripten_set_keypress_callback()'] = ':c:func:`emscripten_set_keypress_callback`' mapped_wiki_inline_code['emscripten_set_main_loop'] = ':c:func:`emscripten_set_main_loop`' mapped_wiki_inline_code['emscripten_set_main_loop()'] = ':c:func:`emscripten_set_main_loop`' mapped_wiki_inline_code['emscripten_set_main_loop_arg'] = ':c:func:`emscripten_set_main_loop_arg`' mapped_wiki_inline_code['emscripten_set_main_loop_arg()'] = ':c:func:`emscripten_set_main_loop_arg`' mapped_wiki_inline_code['emscripten_set_main_loop_expected_blockers'] = ':c:func:`emscripten_set_main_loop_expected_blockers`' mapped_wiki_inline_code['emscripten_set_main_loop_expected_blockers()'] = ':c:func:`emscripten_set_main_loop_expected_blockers`' mapped_wiki_inline_code['emscripten_set_main_loop_timing'] = ':c:func:`emscripten_set_main_loop_timing`' mapped_wiki_inline_code['emscripten_set_main_loop_timing()'] = ':c:func:`emscripten_set_main_loop_timing`' mapped_wiki_inline_code['emscripten_set_orientationchange_callback'] = ':c:func:`emscripten_set_orientationchange_callback`' mapped_wiki_inline_code['emscripten_set_orientationchange_callback()'] = ':c:func:`emscripten_set_orientationchange_callback`' mapped_wiki_inline_code['emscripten_set_pointerlockchange_callback'] = ':c:func:`emscripten_set_pointerlockchange_callback`' mapped_wiki_inline_code['emscripten_set_pointerlockchange_callback()'] = ':c:func:`emscripten_set_pointerlockchange_callback`' mapped_wiki_inline_code['emscripten_set_pointerlockerror_callback'] = ':c:func:`emscripten_set_pointerlockerror_callback`' mapped_wiki_inline_code['emscripten_set_pointerlockerror_callback()'] = ':c:func:`emscripten_set_pointerlockerror_callback`' mapped_wiki_inline_code['emscripten_set_resize_callback'] = ':c:func:`emscripten_set_resize_callback`' mapped_wiki_inline_code['emscripten_set_resize_callback()'] = ':c:func:`emscripten_set_resize_callback`' mapped_wiki_inline_code['emscripten_set_socket_close_callback'] = ':c:func:`emscripten_set_socket_close_callback`' mapped_wiki_inline_code['emscripten_set_socket_close_callback()'] = ':c:func:`emscripten_set_socket_close_callback`' mapped_wiki_inline_code['emscripten_set_socket_connection_callback'] = ':c:func:`emscripten_set_socket_connection_callback`' mapped_wiki_inline_code['emscripten_set_socket_connection_callback()'] = ':c:func:`emscripten_set_socket_connection_callback`' mapped_wiki_inline_code['emscripten_set_socket_error_callback'] = ':c:func:`emscripten_set_socket_error_callback`' mapped_wiki_inline_code['emscripten_set_socket_error_callback()'] = ':c:func:`emscripten_set_socket_error_callback`' mapped_wiki_inline_code['emscripten_set_socket_listen_callback'] = ':c:func:`emscripten_set_socket_listen_callback`' mapped_wiki_inline_code['emscripten_set_socket_listen_callback()'] = ':c:func:`emscripten_set_socket_listen_callback`' mapped_wiki_inline_code['emscripten_set_socket_message_callback'] = ':c:func:`emscripten_set_socket_message_callback`' mapped_wiki_inline_code['emscripten_set_socket_message_callback()'] = ':c:func:`emscripten_set_socket_message_callback`' mapped_wiki_inline_code['emscripten_set_socket_open_callback'] = ':c:func:`emscripten_set_socket_open_callback`' mapped_wiki_inline_code['emscripten_set_socket_open_callback()'] = ':c:func:`emscripten_set_socket_open_callback`' mapped_wiki_inline_code['emscripten_set_timeout'] = ':c:func:`emscripten_set_timeout`' mapped_wiki_inline_code['emscripten_set_timeout()'] = ':c:func:`emscripten_set_timeout`' mapped_wiki_inline_code['emscripten_set_timeout_loop'] = ':c:func:`emscripten_set_timeout_loop`' mapped_wiki_inline_code['emscripten_set_timeout_loop()'] = ':c:func:`emscripten_set_timeout_loop`' mapped_wiki_inline_code['emscripten_set_touchstart_callback'] = ':c:func:`emscripten_set_touchstart_callback`' mapped_wiki_inline_code['emscripten_set_touchstart_callback()'] = ':c:func:`emscripten_set_touchstart_callback`' mapped_wiki_inline_code['emscripten_set_visibilitychange_callback'] = ':c:func:`emscripten_set_visibilitychange_callback`' mapped_wiki_inline_code['emscripten_set_visibilitychange_callback()'] = ':c:func:`emscripten_set_visibilitychange_callback`' mapped_wiki_inline_code['emscripten_set_webglcontextlost_callback'] = ':c:func:`emscripten_set_webglcontextlost_callback`' mapped_wiki_inline_code['emscripten_set_webglcontextlost_callback()'] = ':c:func:`emscripten_set_webglcontextlost_callback`' mapped_wiki_inline_code['emscripten_set_wheel_callback'] = ':c:func:`emscripten_set_wheel_callback`' mapped_wiki_inline_code['emscripten_set_wheel_callback()'] = ':c:func:`emscripten_set_wheel_callback`' mapped_wiki_inline_code['emscripten_sleep'] = ':c:func:`emscripten_sleep`' mapped_wiki_inline_code['emscripten_sleep()'] = ':c:func:`emscripten_sleep`' mapped_wiki_inline_code['emscripten_sleep_with_yield'] = ':c:func:`emscripten_sleep_with_yield`' mapped_wiki_inline_code['emscripten_sleep_with_yield()'] = ':c:func:`emscripten_sleep_with_yield`' mapped_wiki_inline_code['emscripten_throw_number'] = ':c:func:`emscripten_throw_number`' mapped_wiki_inline_code['emscripten_throw_number()'] = ':c:func:`emscripten_throw_number`' mapped_wiki_inline_code['emscripten_throw_string'] = ':c:func:`emscripten_throw_string`' mapped_wiki_inline_code['emscripten_throw_string()'] = ':c:func:`emscripten_throw_string`' mapped_wiki_inline_code['emscripten_trace_annotate_address_type'] = ':c:func:`emscripten_trace_annotate_address_type`' mapped_wiki_inline_code['emscripten_trace_annotate_address_type()'] = ':c:func:`emscripten_trace_annotate_address_type`' mapped_wiki_inline_code['emscripten_trace_associate_storage_size'] = ':c:func:`emscripten_trace_associate_storage_size`' mapped_wiki_inline_code['emscripten_trace_associate_storage_size()'] = ':c:func:`emscripten_trace_associate_storage_size`' mapped_wiki_inline_code['emscripten_trace_close'] = ':c:func:`emscripten_trace_close`' mapped_wiki_inline_code['emscripten_trace_close()'] = ':c:func:`emscripten_trace_close`' mapped_wiki_inline_code['emscripten_trace_configure'] = ':c:func:`emscripten_trace_configure`' mapped_wiki_inline_code['emscripten_trace_configure()'] = ':c:func:`emscripten_trace_configure`' mapped_wiki_inline_code['emscripten_trace_configure_for_google_wtf'] = ':c:func:`emscripten_trace_configure_for_google_wtf`' mapped_wiki_inline_code['emscripten_trace_configure_for_google_wtf()'] = ':c:func:`emscripten_trace_configure_for_google_wtf`' mapped_wiki_inline_code['emscripten_trace_enter_context'] = ':c:func:`emscripten_trace_enter_context`' mapped_wiki_inline_code['emscripten_trace_enter_context()'] = ':c:func:`emscripten_trace_enter_context`' mapped_wiki_inline_code['emscripten_trace_exit_context'] = ':c:func:`emscripten_trace_exit_context`' mapped_wiki_inline_code['emscripten_trace_exit_context()'] = ':c:func:`emscripten_trace_exit_context`' mapped_wiki_inline_code['emscripten_trace_log_message'] = ':c:func:`emscripten_trace_log_message`' mapped_wiki_inline_code['emscripten_trace_log_message()'] = ':c:func:`emscripten_trace_log_message`' mapped_wiki_inline_code['emscripten_trace_mark'] = ':c:func:`emscripten_trace_mark`' mapped_wiki_inline_code['emscripten_trace_mark()'] = ':c:func:`emscripten_trace_mark`' mapped_wiki_inline_code['emscripten_trace_record_allocation'] = ':c:func:`emscripten_trace_record_allocation`' mapped_wiki_inline_code['emscripten_trace_record_allocation()'] = ':c:func:`emscripten_trace_record_allocation`' mapped_wiki_inline_code['emscripten_trace_record_frame_end'] = ':c:func:`emscripten_trace_record_frame_end`' mapped_wiki_inline_code['emscripten_trace_record_frame_end()'] = ':c:func:`emscripten_trace_record_frame_end`' mapped_wiki_inline_code['emscripten_trace_record_frame_start'] = ':c:func:`emscripten_trace_record_frame_start`' mapped_wiki_inline_code['emscripten_trace_record_frame_start()'] = ':c:func:`emscripten_trace_record_frame_start`' mapped_wiki_inline_code['emscripten_trace_record_free'] = ':c:func:`emscripten_trace_record_free`' mapped_wiki_inline_code['emscripten_trace_record_free()'] = ':c:func:`emscripten_trace_record_free`' mapped_wiki_inline_code['emscripten_trace_record_reallocation'] = ':c:func:`emscripten_trace_record_reallocation`' mapped_wiki_inline_code['emscripten_trace_record_reallocation()'] = ':c:func:`emscripten_trace_record_reallocation`' mapped_wiki_inline_code['emscripten_trace_report_error'] = ':c:func:`emscripten_trace_report_error`' mapped_wiki_inline_code['emscripten_trace_report_error()'] = ':c:func:`emscripten_trace_report_error`' mapped_wiki_inline_code['emscripten_trace_report_memory_layout'] = ':c:func:`emscripten_trace_report_memory_layout`' mapped_wiki_inline_code['emscripten_trace_report_memory_layout()'] = ':c:func:`emscripten_trace_report_memory_layout`' mapped_wiki_inline_code['emscripten_trace_report_off_heap_data'] = ':c:func:`emscripten_trace_report_off_heap_data`' mapped_wiki_inline_code['emscripten_trace_report_off_heap_data()'] = ':c:func:`emscripten_trace_report_off_heap_data`' mapped_wiki_inline_code['emscripten_trace_set_enabled'] = ':c:func:`emscripten_trace_set_enabled`' mapped_wiki_inline_code['emscripten_trace_set_enabled()'] = ':c:func:`emscripten_trace_set_enabled`' mapped_wiki_inline_code['emscripten_trace_set_session_username'] = ':c:func:`emscripten_trace_set_session_username`' mapped_wiki_inline_code['emscripten_trace_set_session_username()'] = ':c:func:`emscripten_trace_set_session_username`' mapped_wiki_inline_code['emscripten_trace_task_associate_data'] = ':c:func:`emscripten_trace_task_associate_data`' mapped_wiki_inline_code['emscripten_trace_task_associate_data()'] = ':c:func:`emscripten_trace_task_associate_data`' mapped_wiki_inline_code['emscripten_trace_task_end'] = ':c:func:`emscripten_trace_task_end`' mapped_wiki_inline_code['emscripten_trace_task_end()'] = ':c:func:`emscripten_trace_task_end`' mapped_wiki_inline_code['emscripten_trace_task_resume'] = ':c:func:`emscripten_trace_task_resume`' mapped_wiki_inline_code['emscripten_trace_task_resume()'] = ':c:func:`emscripten_trace_task_resume`' mapped_wiki_inline_code['emscripten_trace_task_start'] = ':c:func:`emscripten_trace_task_start`' mapped_wiki_inline_code['emscripten_trace_task_start()'] = ':c:func:`emscripten_trace_task_start`' mapped_wiki_inline_code['emscripten_trace_task_suspend'] = ':c:func:`emscripten_trace_task_suspend`' mapped_wiki_inline_code['emscripten_trace_task_suspend()'] = ':c:func:`emscripten_trace_task_suspend`' mapped_wiki_inline_code['emscripten_unlock_orientation'] = ':c:func:`emscripten_unlock_orientation`' mapped_wiki_inline_code['emscripten_unlock_orientation()'] = ':c:func:`emscripten_unlock_orientation`' mapped_wiki_inline_code['emscripten_vibrate'] = ':c:func:`emscripten_vibrate`' mapped_wiki_inline_code['emscripten_vibrate()'] = ':c:func:`emscripten_vibrate`' mapped_wiki_inline_code['emscripten_vibrate_pattern'] = ':c:func:`emscripten_vibrate_pattern`' mapped_wiki_inline_code['emscripten_vibrate_pattern()'] = ':c:func:`emscripten_vibrate_pattern`' mapped_wiki_inline_code['emscripten_vr_cancel_display_render_loop'] = ':c:func:`emscripten_vr_cancel_display_render_loop`' mapped_wiki_inline_code['emscripten_vr_cancel_display_render_loop()'] = ':c:func:`emscripten_vr_cancel_display_render_loop`' mapped_wiki_inline_code['emscripten_vr_count_displays'] = ':c:func:`emscripten_vr_count_displays`' mapped_wiki_inline_code['emscripten_vr_count_displays()'] = ':c:func:`emscripten_vr_count_displays`' mapped_wiki_inline_code['emscripten_vr_deinit'] = ':c:func:`emscripten_vr_deinit`' mapped_wiki_inline_code['emscripten_vr_deinit()'] = ':c:func:`emscripten_vr_deinit`' mapped_wiki_inline_code['emscripten_vr_display_connected'] = ':c:func:`emscripten_vr_display_connected`' mapped_wiki_inline_code['emscripten_vr_display_connected()'] = ':c:func:`emscripten_vr_display_connected`' mapped_wiki_inline_code['emscripten_vr_display_presenting'] = ':c:func:`emscripten_vr_display_presenting`' mapped_wiki_inline_code['emscripten_vr_display_presenting()'] = ':c:func:`emscripten_vr_display_presenting`' mapped_wiki_inline_code['emscripten_vr_exit_present'] = ':c:func:`emscripten_vr_exit_present`' mapped_wiki_inline_code['emscripten_vr_exit_present()'] = ':c:func:`emscripten_vr_exit_present`' mapped_wiki_inline_code['emscripten_vr_get_display_capabilities'] = ':c:func:`emscripten_vr_get_display_capabilities`' mapped_wiki_inline_code['emscripten_vr_get_display_capabilities()'] = ':c:func:`emscripten_vr_get_display_capabilities`' mapped_wiki_inline_code['emscripten_vr_get_display_handle'] = ':c:func:`emscripten_vr_get_display_handle`' mapped_wiki_inline_code['emscripten_vr_get_display_handle()'] = ':c:func:`emscripten_vr_get_display_handle`' mapped_wiki_inline_code['emscripten_vr_get_eye_parameters'] = ':c:func:`emscripten_vr_get_eye_parameters`' mapped_wiki_inline_code['emscripten_vr_get_eye_parameters()'] = ':c:func:`emscripten_vr_get_eye_parameters`' mapped_wiki_inline_code['emscripten_vr_get_frame_data'] = ':c:func:`emscripten_vr_get_frame_data`' mapped_wiki_inline_code['emscripten_vr_get_frame_data()'] = ':c:func:`emscripten_vr_get_frame_data`' mapped_wiki_inline_code['emscripten_vr_init'] = ':c:func:`emscripten_vr_init`' mapped_wiki_inline_code['emscripten_vr_init()'] = ':c:func:`emscripten_vr_init`' mapped_wiki_inline_code['emscripten_vr_ready'] = ':c:func:`emscripten_vr_ready`' mapped_wiki_inline_code['emscripten_vr_ready()'] = ':c:func:`emscripten_vr_ready`' mapped_wiki_inline_code['emscripten_vr_request_present'] = ':c:func:`emscripten_vr_request_present`' mapped_wiki_inline_code['emscripten_vr_request_present()'] = ':c:func:`emscripten_vr_request_present`' mapped_wiki_inline_code['emscripten_vr_set_display_render_loop'] = ':c:func:`emscripten_vr_set_display_render_loop`' mapped_wiki_inline_code['emscripten_vr_set_display_render_loop()'] = ':c:func:`emscripten_vr_set_display_render_loop`' mapped_wiki_inline_code['emscripten_vr_set_display_render_loop_arg'] = ':c:func:`emscripten_vr_set_display_render_loop_arg`' mapped_wiki_inline_code['emscripten_vr_set_display_render_loop_arg()'] = ':c:func:`emscripten_vr_set_display_render_loop_arg`' mapped_wiki_inline_code['emscripten_vr_submit_frame'] = ':c:func:`emscripten_vr_submit_frame`' mapped_wiki_inline_code['emscripten_vr_submit_frame()'] = ':c:func:`emscripten_vr_submit_frame`' mapped_wiki_inline_code['emscripten_vr_version_major'] = ':c:func:`emscripten_vr_version_major`' mapped_wiki_inline_code['emscripten_vr_version_major()'] = ':c:func:`emscripten_vr_version_major`' mapped_wiki_inline_code['emscripten_vr_version_minor'] = ':c:func:`emscripten_vr_version_minor`' mapped_wiki_inline_code['emscripten_vr_version_minor()'] = ':c:func:`emscripten_vr_version_minor`' mapped_wiki_inline_code['emscripten_webgl_commit_frame'] = ':c:func:`emscripten_webgl_commit_frame`' mapped_wiki_inline_code['emscripten_webgl_commit_frame()'] = ':c:func:`emscripten_webgl_commit_frame`' mapped_wiki_inline_code['emscripten_webgl_create_context'] = ':c:func:`emscripten_webgl_create_context`' mapped_wiki_inline_code['emscripten_webgl_create_context()'] = ':c:func:`emscripten_webgl_create_context`' mapped_wiki_inline_code['emscripten_webgl_destroy_context'] = ':c:func:`emscripten_webgl_destroy_context`' mapped_wiki_inline_code['emscripten_webgl_destroy_context()'] = ':c:func:`emscripten_webgl_destroy_context`' mapped_wiki_inline_code['emscripten_webgl_enable_extension'] = ':c:func:`emscripten_webgl_enable_extension`' mapped_wiki_inline_code['emscripten_webgl_enable_extension()'] = ':c:func:`emscripten_webgl_enable_extension`' mapped_wiki_inline_code['emscripten_webgl_get_context_attributes'] = ':c:func:`emscripten_webgl_get_context_attributes`' mapped_wiki_inline_code['emscripten_webgl_get_context_attributes()'] = ':c:func:`emscripten_webgl_get_context_attributes`' mapped_wiki_inline_code['emscripten_webgl_get_current_context'] = ':c:func:`emscripten_webgl_get_current_context`' mapped_wiki_inline_code['emscripten_webgl_get_current_context()'] = ':c:func:`emscripten_webgl_get_current_context`' mapped_wiki_inline_code['emscripten_webgl_get_drawing_buffer_size'] = ':c:func:`emscripten_webgl_get_drawing_buffer_size`' mapped_wiki_inline_code['emscripten_webgl_get_drawing_buffer_size()'] = ':c:func:`emscripten_webgl_get_drawing_buffer_size`' mapped_wiki_inline_code['emscripten_webgl_init_context_attributes'] = ':c:func:`emscripten_webgl_init_context_attributes`' mapped_wiki_inline_code['emscripten_webgl_init_context_attributes()'] = ':c:func:`emscripten_webgl_init_context_attributes`' mapped_wiki_inline_code['emscripten_webgl_make_context_current'] = ':c:func:`emscripten_webgl_make_context_current`' mapped_wiki_inline_code['emscripten_webgl_make_context_current()'] = ':c:func:`emscripten_webgl_make_context_current`' mapped_wiki_inline_code['emscripten_wget'] = ':c:func:`emscripten_wget`' mapped_wiki_inline_code['emscripten_wget()'] = ':c:func:`emscripten_wget`' mapped_wiki_inline_code['emscripten_wget_data'] = ':c:func:`emscripten_wget_data`' mapped_wiki_inline_code['emscripten_wget_data()'] = ':c:func:`emscripten_wget_data`' mapped_wiki_inline_code['emscripten_worker_respond'] = ':c:func:`emscripten_worker_respond`' mapped_wiki_inline_code['emscripten_worker_respond()'] = ':c:func:`emscripten_worker_respond`' mapped_wiki_inline_code['emscripten_yield'] = ':c:func:`emscripten_yield`' mapped_wiki_inline_code['emscripten_yield()'] = ':c:func:`emscripten_yield`' mapped_wiki_inline_code['enum_'] = ':cpp:class:`enum_`' mapped_wiki_inline_code['function'] = ':cpp:func:`function`' mapped_wiki_inline_code['function()'] = ':cpp:func:`function`' mapped_wiki_inline_code['getValue'] = ':js:func:`getValue`' mapped_wiki_inline_code['getValue()'] = ':js:func:`getValue`' mapped_wiki_inline_code['intArrayFromString'] = ':js:func:`intArrayFromString`' mapped_wiki_inline_code['intArrayFromString()'] = ':js:func:`intArrayFromString`' mapped_wiki_inline_code['intArrayToString'] = ':js:func:`intArrayToString`' mapped_wiki_inline_code['intArrayToString()'] = ':js:func:`intArrayToString`' mapped_wiki_inline_code['internal::CalculateLambdaSignature<LambdaType>::type'] = ':cpp:func:`internal::CalculateLambdaSignature<LambdaType>::type`' mapped_wiki_inline_code['internal::CalculateLambdaSignature<LambdaType>::type()'] = ':cpp:func:`internal::CalculateLambdaSignature<LambdaType>::type`' mapped_wiki_inline_code['internal::MemberFunctionType<ClassType,'] = ':cpp:func:`internal::MemberFunctionType<ClassType,`' mapped_wiki_inline_code['internal::MemberFunctionType<ClassType,()'] = ':cpp:func:`internal::MemberFunctionType<ClassType,`' mapped_wiki_inline_code['pure_virtual'] = ':cpp:type:`pure_virtual`' mapped_wiki_inline_code['register_vector'] = ':cpp:func:`register_vector`' mapped_wiki_inline_code['register_vector()'] = ':cpp:func:`register_vector`' mapped_wiki_inline_code['removeRunDependency'] = ':js:func:`removeRunDependency`' mapped_wiki_inline_code['removeRunDependency()'] = ':js:func:`removeRunDependency`' mapped_wiki_inline_code['ret_val'] = ':cpp:type:`ret_val`' mapped_wiki_inline_code['select_const'] = ':cpp:func:`select_const`' mapped_wiki_inline_code['select_const()'] = ':cpp:func:`select_const`' mapped_wiki_inline_code['setValue'] = ':js:func:`setValue`' mapped_wiki_inline_code['setValue()'] = ':js:func:`setValue`' mapped_wiki_inline_code['sharing_policy'] = ':cpp:type:`sharing_policy`' mapped_wiki_inline_code['smart_ptr_trait'] = ':cpp:type:`smart_ptr_trait`' mapped_wiki_inline_code['stackTrace'] = ':js:func:`stackTrace`' mapped_wiki_inline_code['stackTrace()'] = ':js:func:`stackTrace`' mapped_wiki_inline_code['std::add_pointer<Signature>::type'] = ':cpp:func:`std::add_pointer<Signature>::type`' mapped_wiki_inline_code['std::add_pointer<Signature>::type()'] = ':cpp:func:`std::add_pointer<Signature>::type`' mapped_wiki_inline_code['stringToUTF16'] = ':js:func:`stringToUTF16`' mapped_wiki_inline_code['stringToUTF16()'] = ':js:func:`stringToUTF16`' mapped_wiki_inline_code['stringToUTF32'] = ':js:func:`stringToUTF32`' mapped_wiki_inline_code['stringToUTF32()'] = ':js:func:`stringToUTF32`' mapped_wiki_inline_code['stringToUTF8'] = ':js:func:`stringToUTF8`' mapped_wiki_inline_code['stringToUTF8()'] = ':js:func:`stringToUTF8`' mapped_wiki_inline_code['worker_handle'] = ':c:var:`worker_handle`' mapped_wiki_inline_code['writeArrayToMemory'] = ':js:func:`writeArrayToMemory`' mapped_wiki_inline_code['writeArrayToMemory()'] = ':js:func:`writeArrayToMemory`' mapped_wiki_inline_code['writeAsciiToMemory'] = ':js:func:`writeAsciiToMemory`' mapped_wiki_inline_code['writeAsciiToMemory()'] = ':js:func:`writeAsciiToMemory`' mapped_wiki_inline_code['writeStringToMemory'] = ':js:func:`writeStringToMemory`' mapped_wiki_inline_code['writeStringToMemory()'] = ':js:func:`writeStringToMemory`' return mapped_wiki_inline_code
def get_mapped_items(): mapped_wiki_inline_code = dict() mapped_wiki_inline_code['*emscripten_get_preloaded_image_data'] = ':c:func:`*emscripten_get_preloaded_image_data`' mapped_wiki_inline_code['*emscripten_get_preloaded_image_data()'] = ':c:func:`*emscripten_get_preloaded_image_data`' mapped_wiki_inline_code['*emscripten_get_preloaded_image_data_from_FILE'] = ':c:func:`*emscripten_get_preloaded_image_data_from_FILE`' mapped_wiki_inline_code['*emscripten_get_preloaded_image_data_from_FILE()'] = ':c:func:`*emscripten_get_preloaded_image_data_from_FILE`' mapped_wiki_inline_code['*emscripten_run_script_string'] = ':c:func:`*emscripten_run_script_string`' mapped_wiki_inline_code['*emscripten_run_script_string()'] = ':c:func:`*emscripten_run_script_string`' mapped_wiki_inline_code[':'] = ':cpp:class:`:`' mapped_wiki_inline_code['AsciiToString'] = ':js:func:`AsciiToString`' mapped_wiki_inline_code['AsciiToString()'] = ':js:func:`AsciiToString`' mapped_wiki_inline_code['DOM_DELTA_LINE'] = ':c:macro:`DOM_DELTA_LINE`' mapped_wiki_inline_code['DOM_DELTA_PAGE'] = ':c:macro:`DOM_DELTA_PAGE`' mapped_wiki_inline_code['DOM_DELTA_PIXEL'] = ':c:macro:`DOM_DELTA_PIXEL`' mapped_wiki_inline_code['DOM_KEY_LOCATION'] = ':c:macro:`DOM_KEY_LOCATION`' mapped_wiki_inline_code['EMSCRIPTEN_BINDINGS'] = ':cpp:func:`EMSCRIPTEN_BINDINGS`' mapped_wiki_inline_code['EMSCRIPTEN_BINDINGS()'] = ':cpp:func:`EMSCRIPTEN_BINDINGS`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_BATTERYCHARGINGCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_BATTERYCHARGINGCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_BEFOREUNLOAD'] = ':c:macro:`EMSCRIPTEN_EVENT_BEFOREUNLOAD`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_BLUR'] = ':c:macro:`EMSCRIPTEN_EVENT_BLUR`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_CLICK'] = ':c:macro:`EMSCRIPTEN_EVENT_CLICK`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_DEVICEMOTION'] = ':c:macro:`EMSCRIPTEN_EVENT_DEVICEMOTION`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_DEVICEORIENTATION'] = ':c:macro:`EMSCRIPTEN_EVENT_DEVICEORIENTATION`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_FULLSCREENCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_FULLSCREENCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_GAMEPADCONNECTED'] = ':c:macro:`EMSCRIPTEN_EVENT_GAMEPADCONNECTED`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_KEYPRESS'] = ':c:macro:`EMSCRIPTEN_EVENT_KEYPRESS`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_ORIENTATIONCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_ORIENTATIONCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_POINTERLOCKCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_POINTERLOCKCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_POINTERLOCKERROR'] = ':c:macro:`EMSCRIPTEN_EVENT_POINTERLOCKERROR`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_RESIZE'] = ':c:macro:`EMSCRIPTEN_EVENT_RESIZE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_TOUCHSTART'] = ':c:macro:`EMSCRIPTEN_EVENT_TOUCHSTART`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_VISIBILITYCHANGE'] = ':c:macro:`EMSCRIPTEN_EVENT_VISIBILITYCHANGE`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_WEBGLCONTEXTLOST'] = ':c:macro:`EMSCRIPTEN_EVENT_WEBGLCONTEXTLOST`' mapped_wiki_inline_code['EMSCRIPTEN_EVENT_WHEEL'] = ':c:macro:`EMSCRIPTEN_EVENT_WHEEL`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_HIDEF'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_HIDEF`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_FILTERING'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_FILTERING`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_FILTERING_BILINEAR'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_FILTERING_BILINEAR`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_FILTERING_DEFAULT'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_FILTERING_DEFAULT`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_FILTERING_NEAREST'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_FILTERING_NEAREST`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_SCALE'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_SCALE`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT`' mapped_wiki_inline_code['EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH'] = ':c:macro:`EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH`' mapped_wiki_inline_code['EMSCRIPTEN_KEEPALIVE'] = ':c:macro:`EMSCRIPTEN_KEEPALIVE`' mapped_wiki_inline_code['EMSCRIPTEN_ORIENTATION_LANDSCAPE_PRIMARY'] = ':c:macro:`EMSCRIPTEN_ORIENTATION_LANDSCAPE_PRIMARY`' mapped_wiki_inline_code['EMSCRIPTEN_ORIENTATION_LANDSCAPE_SECONDARY'] = ':c:macro:`EMSCRIPTEN_ORIENTATION_LANDSCAPE_SECONDARY`' mapped_wiki_inline_code['EMSCRIPTEN_ORIENTATION_PORTRAIT_PRIMARY'] = ':c:macro:`EMSCRIPTEN_ORIENTATION_PORTRAIT_PRIMARY`' mapped_wiki_inline_code['EMSCRIPTEN_ORIENTATION_PORTRAIT_SECONDARY'] = ':c:macro:`EMSCRIPTEN_ORIENTATION_PORTRAIT_SECONDARY`' mapped_wiki_inline_code['EMSCRIPTEN_RESULT'] = ':c:macro:`EMSCRIPTEN_RESULT`' mapped_wiki_inline_code['EMSCRIPTEN_VISIBILITY_HIDDEN'] = ':c:macro:`EMSCRIPTEN_VISIBILITY_HIDDEN`' mapped_wiki_inline_code['EMSCRIPTEN_VISIBILITY_PRERENDER'] = ':c:macro:`EMSCRIPTEN_VISIBILITY_PRERENDER`' mapped_wiki_inline_code['EMSCRIPTEN_VISIBILITY_UNLOADED'] = ':c:macro:`EMSCRIPTEN_VISIBILITY_UNLOADED`' mapped_wiki_inline_code['EMSCRIPTEN_VISIBILITY_VISIBLE'] = ':c:macro:`EMSCRIPTEN_VISIBILITY_VISIBLE`' mapped_wiki_inline_code['EMSCRIPTEN_WEBGL_CONTEXT_HANDLE'] = ':c:type:`EMSCRIPTEN_WEBGL_CONTEXT_HANDLE`' mapped_wiki_inline_code['EMSCRIPTEN_WRAPPER'] = ':cpp:func:`EMSCRIPTEN_WRAPPER`' mapped_wiki_inline_code['EMSCRIPTEN_WRAPPER()'] = ':cpp:func:`EMSCRIPTEN_WRAPPER`' mapped_wiki_inline_code['EM_ASM'] = ':c:macro:`EM_ASM`' mapped_wiki_inline_code['EM_ASM_INT'] = ':c:macro:`EM_ASM_INT`' mapped_wiki_inline_code['EM_BOOL'] = ':c:macro:`EM_BOOL`' mapped_wiki_inline_code['EM_JS'] = ':c:macro:`EM_JS`' mapped_wiki_inline_code['EM_LOG_CONSOLE'] = ':c:macro:`EM_LOG_CONSOLE`' mapped_wiki_inline_code['EM_LOG_C_STACK'] = ':c:macro:`EM_LOG_C_STACK`' mapped_wiki_inline_code['EM_LOG_ERROR'] = ':c:macro:`EM_LOG_ERROR`' mapped_wiki_inline_code['EM_LOG_FUNC_PARAMS'] = ':c:macro:`EM_LOG_FUNC_PARAMS`' mapped_wiki_inline_code['EM_LOG_JS_STACK'] = ':c:macro:`EM_LOG_JS_STACK`' mapped_wiki_inline_code['EM_LOG_NO_PATHS'] = ':c:macro:`EM_LOG_NO_PATHS`' mapped_wiki_inline_code['EM_LOG_WARN'] = ':c:macro:`EM_LOG_WARN`' mapped_wiki_inline_code['EM_LOG_INFO'] = ':c:macro:`EM_LOG_INFO`' mapped_wiki_inline_code['EM_LOG_DEBUG'] = ':c:macro:`EM_LOG_DEBUG`' mapped_wiki_inline_code['EM_UTF8'] = ':c:macro:`EM_UTF8`' mapped_wiki_inline_code['EmscriptenBatteryEvent'] = ':c:type:`EmscriptenBatteryEvent`' mapped_wiki_inline_code['EmscriptenDeviceMotionEvent'] = ':c:type:`EmscriptenDeviceMotionEvent`' mapped_wiki_inline_code['EmscriptenDeviceOrientationEvent'] = ':c:type:`EmscriptenDeviceOrientationEvent`' mapped_wiki_inline_code['EmscriptenFocusEvent'] = ':c:type:`EmscriptenFocusEvent`' mapped_wiki_inline_code['EmscriptenFullscreenChangeEvent'] = ':c:type:`EmscriptenFullscreenChangeEvent`' mapped_wiki_inline_code['EmscriptenFullscreenStrategy'] = ':c:type:`EmscriptenFullscreenStrategy`' mapped_wiki_inline_code['EmscriptenGamepadEvent'] = ':c:type:`EmscriptenGamepadEvent`' mapped_wiki_inline_code['EmscriptenKeyboardEvent'] = ':c:type:`EmscriptenKeyboardEvent`' mapped_wiki_inline_code['EmscriptenMouseEvent'] = ':c:type:`EmscriptenMouseEvent`' mapped_wiki_inline_code['EmscriptenOrientationChangeEvent'] = ':c:type:`EmscriptenOrientationChangeEvent`' mapped_wiki_inline_code['EmscriptenPointerlockChangeEvent'] = ':c:type:`EmscriptenPointerlockChangeEvent`' mapped_wiki_inline_code['EmscriptenTouchEvent'] = ':c:type:`EmscriptenTouchEvent`' mapped_wiki_inline_code['EmscriptenTouchPoint'] = ':c:type:`EmscriptenTouchPoint`' mapped_wiki_inline_code['EmscriptenUiEvent'] = ':c:type:`EmscriptenUiEvent`' mapped_wiki_inline_code['EmscriptenVisibilityChangeEvent'] = ':c:type:`EmscriptenVisibilityChangeEvent`' mapped_wiki_inline_code['EmscriptenWebGLContextAttributes'] = ':c:type:`EmscriptenWebGLContextAttributes`' mapped_wiki_inline_code['EmscriptenWheelEvent'] = ':c:type:`EmscriptenWheelEvent`' mapped_wiki_inline_code['FS.chmod'] = ':js:func:`FS.chmod`' mapped_wiki_inline_code['FS.chmod()'] = ':js:func:`FS.chmod`' mapped_wiki_inline_code['FS.chown'] = ':js:func:`FS.chown`' mapped_wiki_inline_code['FS.chown()'] = ':js:func:`FS.chown`' mapped_wiki_inline_code['FS.close'] = ':js:func:`FS.close`' mapped_wiki_inline_code['FS.close()'] = ':js:func:`FS.close`' mapped_wiki_inline_code['FS.createLazyFile'] = ':js:func:`FS.createLazyFile`' mapped_wiki_inline_code['FS.createLazyFile()'] = ':js:func:`FS.createLazyFile`' mapped_wiki_inline_code['FS.createPreloadedFile'] = ':js:func:`FS.createPreloadedFile`' mapped_wiki_inline_code['FS.createPreloadedFile()'] = ':js:func:`FS.createPreloadedFile`' mapped_wiki_inline_code['FS.cwd'] = ':js:func:`FS.cwd`' mapped_wiki_inline_code['FS.cwd()'] = ':js:func:`FS.cwd`' mapped_wiki_inline_code['FS.fchmod'] = ':js:func:`FS.fchmod`' mapped_wiki_inline_code['FS.fchmod()'] = ':js:func:`FS.fchmod`' mapped_wiki_inline_code['FS.fchown'] = ':js:func:`FS.fchown`' mapped_wiki_inline_code['FS.fchown()'] = ':js:func:`FS.fchown`' mapped_wiki_inline_code['FS.ftruncate'] = ':js:func:`FS.ftruncate`' mapped_wiki_inline_code['FS.ftruncate()'] = ':js:func:`FS.ftruncate`' mapped_wiki_inline_code['FS.getMode'] = ':js:func:`FS.getMode`' mapped_wiki_inline_code['FS.getMode()'] = ':js:func:`FS.getMode`' mapped_wiki_inline_code['FS.getPath'] = ':js:func:`FS.getPath`' mapped_wiki_inline_code['FS.getPath()'] = ':js:func:`FS.getPath`' mapped_wiki_inline_code['FS.init'] = ':js:func:`FS.init`' mapped_wiki_inline_code['FS.init()'] = ':js:func:`FS.init`' mapped_wiki_inline_code['FS.isBlkdev'] = ':js:func:`FS.isBlkdev`' mapped_wiki_inline_code['FS.isBlkdev()'] = ':js:func:`FS.isBlkdev`' mapped_wiki_inline_code['FS.isChrdev'] = ':js:func:`FS.isChrdev`' mapped_wiki_inline_code['FS.isChrdev()'] = ':js:func:`FS.isChrdev`' mapped_wiki_inline_code['FS.isDir'] = ':js:func:`FS.isDir`' mapped_wiki_inline_code['FS.isDir()'] = ':js:func:`FS.isDir`' mapped_wiki_inline_code['FS.isFile'] = ':js:func:`FS.isFile`' mapped_wiki_inline_code['FS.isFile()'] = ':js:func:`FS.isFile`' mapped_wiki_inline_code['FS.isLink'] = ':js:func:`FS.isLink`' mapped_wiki_inline_code['FS.isLink()'] = ':js:func:`FS.isLink`' mapped_wiki_inline_code['FS.isSocket'] = ':js:func:`FS.isSocket`' mapped_wiki_inline_code['FS.isSocket()'] = ':js:func:`FS.isSocket`' mapped_wiki_inline_code['FS.lchmod'] = ':js:func:`FS.lchmod`' mapped_wiki_inline_code['FS.lchmod()'] = ':js:func:`FS.lchmod`' mapped_wiki_inline_code['FS.lchown'] = ':js:func:`FS.lchown`' mapped_wiki_inline_code['FS.lchown()'] = ':js:func:`FS.lchown`' mapped_wiki_inline_code['FS.llseek'] = ':js:func:`FS.llseek`' mapped_wiki_inline_code['FS.llseek()'] = ':js:func:`FS.llseek`' mapped_wiki_inline_code['FS.lookupPath'] = ':js:func:`FS.lookupPath`' mapped_wiki_inline_code['FS.lookupPath()'] = ':js:func:`FS.lookupPath`' mapped_wiki_inline_code['FS.lstat'] = ':js:func:`FS.lstat`' mapped_wiki_inline_code['FS.lstat()'] = ':js:func:`FS.lstat`' mapped_wiki_inline_code['FS.makedev'] = ':js:func:`FS.makedev`' mapped_wiki_inline_code['FS.makedev()'] = ':js:func:`FS.makedev`' mapped_wiki_inline_code['FS.mkdev'] = ':js:func:`FS.mkdev`' mapped_wiki_inline_code['FS.mkdev()'] = ':js:func:`FS.mkdev`' mapped_wiki_inline_code['FS.mkdir'] = ':js:func:`FS.mkdir`' mapped_wiki_inline_code['FS.mkdir()'] = ':js:func:`FS.mkdir`' mapped_wiki_inline_code['FS.mount'] = ':js:func:`FS.mount`' mapped_wiki_inline_code['FS.mount()'] = ':js:func:`FS.mount`' mapped_wiki_inline_code['FS.open'] = ':js:func:`FS.open`' mapped_wiki_inline_code['FS.open()'] = ':js:func:`FS.open`' mapped_wiki_inline_code['FS.read'] = ':js:func:`FS.read`' mapped_wiki_inline_code['FS.read()'] = ':js:func:`FS.read`' mapped_wiki_inline_code['FS.readFile'] = ':js:func:`FS.readFile`' mapped_wiki_inline_code['FS.readFile()'] = ':js:func:`FS.readFile`' mapped_wiki_inline_code['FS.readlink'] = ':js:func:`FS.readlink`' mapped_wiki_inline_code['FS.readlink()'] = ':js:func:`FS.readlink`' mapped_wiki_inline_code['FS.registerDevice'] = ':js:func:`FS.registerDevice`' mapped_wiki_inline_code['FS.registerDevice()'] = ':js:func:`FS.registerDevice`' mapped_wiki_inline_code['FS.rename'] = ':js:func:`FS.rename`' mapped_wiki_inline_code['FS.rename()'] = ':js:func:`FS.rename`' mapped_wiki_inline_code['FS.rmdir'] = ':js:func:`FS.rmdir`' mapped_wiki_inline_code['FS.rmdir()'] = ':js:func:`FS.rmdir`' mapped_wiki_inline_code['FS.stat'] = ':js:func:`FS.stat`' mapped_wiki_inline_code['FS.stat()'] = ':js:func:`FS.stat`' mapped_wiki_inline_code['FS.symlink'] = ':js:func:`FS.symlink`' mapped_wiki_inline_code['FS.symlink()'] = ':js:func:`FS.symlink`' mapped_wiki_inline_code['FS.syncfs'] = ':js:func:`FS.syncfs`' mapped_wiki_inline_code['FS.syncfs()'] = ':js:func:`FS.syncfs`' mapped_wiki_inline_code['FS.truncate'] = ':js:func:`FS.truncate`' mapped_wiki_inline_code['FS.truncate()'] = ':js:func:`FS.truncate`' mapped_wiki_inline_code['FS.unlink'] = ':js:func:`FS.unlink`' mapped_wiki_inline_code['FS.unlink()'] = ':js:func:`FS.unlink`' mapped_wiki_inline_code['FS.unmount'] = ':js:func:`FS.unmount`' mapped_wiki_inline_code['FS.unmount()'] = ':js:func:`FS.unmount`' mapped_wiki_inline_code['FS.utime'] = ':js:func:`FS.utime`' mapped_wiki_inline_code['FS.utime()'] = ':js:func:`FS.utime`' mapped_wiki_inline_code['FS.write'] = ':js:func:`FS.write`' mapped_wiki_inline_code['FS.write()'] = ':js:func:`FS.write`' mapped_wiki_inline_code['FS.writeFile'] = ':js:func:`FS.writeFile`' mapped_wiki_inline_code['FS.writeFile()'] = ':js:func:`FS.writeFile`' mapped_wiki_inline_code['HEAP16'] = ':js:data:`HEAP16`' mapped_wiki_inline_code['HEAP32'] = ':js:data:`HEAP32`' mapped_wiki_inline_code['HEAP8'] = ':js:data:`HEAP8`' mapped_wiki_inline_code['HEAPF32'] = ':js:data:`HEAPF32`' mapped_wiki_inline_code['HEAPF64'] = ':js:data:`HEAPF64`' mapped_wiki_inline_code['HEAPU16'] = ':js:data:`HEAPU16`' mapped_wiki_inline_code['HEAPU32'] = ':js:data:`HEAPU32`' mapped_wiki_inline_code['HEAPU8'] = ':js:data:`HEAPU8`' mapped_wiki_inline_code['Module.arguments'] = ':js:attribute:`Module.arguments`' mapped_wiki_inline_code['Module.destroy'] = ':js:func:`Module.destroy`' mapped_wiki_inline_code['Module.destroy()'] = ':js:func:`Module.destroy`' mapped_wiki_inline_code['Module.getPreloadedPackage'] = ':js:func:`Module.getPreloadedPackage`' mapped_wiki_inline_code['Module.getPreloadedPackage()'] = ':js:func:`Module.getPreloadedPackage`' mapped_wiki_inline_code['Module.instantiateWasm'] = ':js:func:`Module.instantiateWasm`' mapped_wiki_inline_code['Module.instantiateWasm()'] = ':js:func:`Module.instantiateWasm`' mapped_wiki_inline_code['Module.locateFile'] = ':js:attribute:`Module.locateFile`' mapped_wiki_inline_code['Module.logReadFiles'] = ':js:attribute:`Module.logReadFiles`' mapped_wiki_inline_code['Module.noExitRuntime'] = ':js:attribute:`Module.noExitRuntime`' mapped_wiki_inline_code['Module.noInitialRun'] = ':js:attribute:`Module.noInitialRun`' mapped_wiki_inline_code['Module.onAbort'] = ':js:attribute:`Module.onAbort`' mapped_wiki_inline_code['Module.onCustomMessage'] = ':js:func:`Module.onCustomMessage`' mapped_wiki_inline_code['Module.onCustomMessage()'] = ':js:func:`Module.onCustomMessage`' mapped_wiki_inline_code['Module.onRuntimeInitialized'] = ':js:attribute:`Module.onRuntimeInitialized`' mapped_wiki_inline_code['Module.preInit'] = ':js:attribute:`Module.preInit`' mapped_wiki_inline_code['Module.preRun'] = ':js:attribute:`Module.preRun`' mapped_wiki_inline_code['Module.preinitializedWebGLContext'] = ':js:attribute:`Module.preinitializedWebGLContext`' mapped_wiki_inline_code['Module.print'] = ':js:attribute:`Module.print`' mapped_wiki_inline_code['Module.printErr'] = ':js:attribute:`Module.printErr`' mapped_wiki_inline_code['PointeeType>'] = ':cpp:type:`PointeeType>`' mapped_wiki_inline_code['UTF16ToString'] = ':js:func:`UTF16ToString`' mapped_wiki_inline_code['UTF16ToString()'] = ':js:func:`UTF16ToString`' mapped_wiki_inline_code['UTF32ToString'] = ':js:func:`UTF32ToString`' mapped_wiki_inline_code['UTF32ToString()'] = ':js:func:`UTF32ToString`' mapped_wiki_inline_code['UTF8ToString'] = ':js:func:`UTF8ToString`' mapped_wiki_inline_code['UTF8ToString()'] = ':js:func:`UTF8ToString`' mapped_wiki_inline_code['V>>'] = ':cpp:func:`V>>`' mapped_wiki_inline_code['V>>()'] = ':cpp:func:`V>>`' mapped_wiki_inline_code['VRDisplayCapabilities'] = ':c:type:`VRDisplayCapabilities`' mapped_wiki_inline_code['VREyeParameters'] = ':c:type:`VREyeParameters`' mapped_wiki_inline_code['VRFrameData'] = ':c:type:`VRFrameData`' mapped_wiki_inline_code['VRLayerInit'] = ':c:type:`VRLayerInit`' mapped_wiki_inline_code['VRPose'] = ':c:type:`VRPose`' mapped_wiki_inline_code['VRQuaternion'] = ':c:type:`VRQuaternion`' mapped_wiki_inline_code['VRVector3'] = ':c:type:`VRVector3`' mapped_wiki_inline_code['VR_EYE_LEFT'] = ':c:macro:`VR_EYE_LEFT`' mapped_wiki_inline_code['VR_LAYER_DEFAULT_LEFT_BOUNDS'] = ':c:macro:`VR_LAYER_DEFAULT_LEFT_BOUNDS`' mapped_wiki_inline_code['VR_POSE_POSITION'] = ':c:macro:`VR_POSE_POSITION`' mapped_wiki_inline_code['__getDynamicPointerType'] = ':cpp:func:`__getDynamicPointerType`' mapped_wiki_inline_code['__getDynamicPointerType()'] = ':cpp:func:`__getDynamicPointerType`' mapped_wiki_inline_code['addRunDependency'] = ':js:func:`addRunDependency`' mapped_wiki_inline_code['addRunDependency()'] = ':js:func:`addRunDependency`' mapped_wiki_inline_code['allocate'] = ':js:func:`allocate`' mapped_wiki_inline_code['allocate()'] = ':js:func:`allocate`' mapped_wiki_inline_code['allow_raw_pointer'] = ':cpp:type:`allow_raw_pointer`' mapped_wiki_inline_code['allow_raw_pointers'] = ':cpp:type:`allow_raw_pointers`' mapped_wiki_inline_code['arg'] = ':cpp:type:`arg`' mapped_wiki_inline_code['base'] = ':cpp:type:`base`' mapped_wiki_inline_code['ccall'] = ':js:func:`ccall`' mapped_wiki_inline_code['ccall()'] = ':js:func:`ccall`' mapped_wiki_inline_code['char*'] = ':c:func:`char*`' mapped_wiki_inline_code['char*()'] = ':c:func:`char*`' mapped_wiki_inline_code['class_'] = ':cpp:class:`class_`' mapped_wiki_inline_code['constant'] = ':cpp:func:`constant`' mapped_wiki_inline_code['constant()'] = ':cpp:func:`constant`' mapped_wiki_inline_code['constructor'] = ':cpp:type:`constructor`' mapped_wiki_inline_code['cwrap'] = ':js:func:`cwrap`' mapped_wiki_inline_code['cwrap()'] = ':js:func:`cwrap`' mapped_wiki_inline_code['default_smart_ptr_trait'] = ':cpp:type:`default_smart_ptr_trait`' mapped_wiki_inline_code['em_arg_callback_func'] = ':c:type:`em_arg_callback_func`' mapped_wiki_inline_code['em_async_wget2_data_onerror_func'] = ':c:type:`em_async_wget2_data_onerror_func`' mapped_wiki_inline_code['em_async_wget2_data_onload_func'] = ':c:type:`em_async_wget2_data_onload_func`' mapped_wiki_inline_code['em_async_wget2_data_onprogress_func'] = ':c:type:`em_async_wget2_data_onprogress_func`' mapped_wiki_inline_code['em_async_wget2_onload_func'] = ':c:type:`em_async_wget2_onload_func`' mapped_wiki_inline_code['em_async_wget2_onstatus_func'] = ':c:type:`em_async_wget2_onstatus_func`' mapped_wiki_inline_code['em_async_wget_onload_func'] = ':c:type:`em_async_wget_onload_func`' mapped_wiki_inline_code['em_battery_callback_func'] = ':c:type:`em_battery_callback_func`' mapped_wiki_inline_code['em_beforeunload_callback'] = ':c:type:`em_beforeunload_callback`' mapped_wiki_inline_code['em_callback_func'] = ':c:type:`em_callback_func`' mapped_wiki_inline_code['em_devicemotion_callback_func'] = ':c:type:`em_devicemotion_callback_func`' mapped_wiki_inline_code['em_deviceorientation_callback_func'] = ':c:type:`em_deviceorientation_callback_func`' mapped_wiki_inline_code['em_focus_callback_func'] = ':c:type:`em_focus_callback_func`' mapped_wiki_inline_code['em_fullscreenchange_callback_func'] = ':c:type:`em_fullscreenchange_callback_func`' mapped_wiki_inline_code['em_gamepad_callback_func'] = ':c:type:`em_gamepad_callback_func`' mapped_wiki_inline_code['em_key_callback_func'] = ':c:type:`em_key_callback_func`' mapped_wiki_inline_code['em_mouse_callback_func'] = ':c:type:`em_mouse_callback_func`' mapped_wiki_inline_code['em_orientationchange_callback_func'] = ':c:type:`em_orientationchange_callback_func`' mapped_wiki_inline_code['em_pointerlockchange_callback_func'] = ':c:type:`em_pointerlockchange_callback_func`' mapped_wiki_inline_code['em_pointerlockerror_callback_func'] = ':c:type:`em_pointerlockerror_callback_func`' mapped_wiki_inline_code['em_run_preload_plugins_data_onload_func'] = ':c:type:`em_run_preload_plugins_data_onload_func`' mapped_wiki_inline_code['em_socket_callback'] = ':c:type:`em_socket_callback`' mapped_wiki_inline_code['em_socket_error_callback'] = ':c:type:`em_socket_error_callback`' mapped_wiki_inline_code['em_str_callback_func'] = ':c:type:`em_str_callback_func`' mapped_wiki_inline_code['em_touch_callback_func'] = ':c:type:`em_touch_callback_func`' mapped_wiki_inline_code['em_ui_callback_func'] = ':c:type:`em_ui_callback_func`' mapped_wiki_inline_code['em_visibilitychange_callback_func'] = ':c:type:`em_visibilitychange_callback_func`' mapped_wiki_inline_code['em_webgl_context_callback'] = ':c:type:`em_webgl_context_callback`' mapped_wiki_inline_code['em_wheel_callback_func'] = ':c:type:`em_wheel_callback_func`' mapped_wiki_inline_code['em_worker_callback_func'] = ':c:type:`em_worker_callback_func`' mapped_wiki_inline_code['emscripten'] = ':cpp:namespace:`emscripten`' mapped_wiki_inline_code['emscripten::val'] = ':cpp:class:`emscripten::val`' mapped_wiki_inline_code['emscripten_align1_short'] = ':c:type:`emscripten_align1_short`' mapped_wiki_inline_code['emscripten_async_call'] = ':c:func:`emscripten_async_call`' mapped_wiki_inline_code['emscripten_async_call()'] = ':c:func:`emscripten_async_call`' mapped_wiki_inline_code['emscripten_async_load_script'] = ':c:func:`emscripten_async_load_script`' mapped_wiki_inline_code['emscripten_async_load_script()'] = ':c:func:`emscripten_async_load_script`' mapped_wiki_inline_code['emscripten_async_run_script'] = ':c:func:`emscripten_async_run_script`' mapped_wiki_inline_code['emscripten_async_run_script()'] = ':c:func:`emscripten_async_run_script`' mapped_wiki_inline_code['emscripten_async_wget'] = ':c:func:`emscripten_async_wget`' mapped_wiki_inline_code['emscripten_async_wget()'] = ':c:func:`emscripten_async_wget`' mapped_wiki_inline_code['emscripten_async_wget2'] = ':c:func:`emscripten_async_wget2`' mapped_wiki_inline_code['emscripten_async_wget2()'] = ':c:func:`emscripten_async_wget2`' mapped_wiki_inline_code['emscripten_async_wget2_abort'] = ':c:func:`emscripten_async_wget2_abort`' mapped_wiki_inline_code['emscripten_async_wget2_abort()'] = ':c:func:`emscripten_async_wget2_abort`' mapped_wiki_inline_code['emscripten_async_wget2_data'] = ':c:func:`emscripten_async_wget2_data`' mapped_wiki_inline_code['emscripten_async_wget2_data()'] = ':c:func:`emscripten_async_wget2_data`' mapped_wiki_inline_code['emscripten_async_wget_data'] = ':c:func:`emscripten_async_wget_data`' mapped_wiki_inline_code['emscripten_async_wget_data()'] = ':c:func:`emscripten_async_wget_data`' mapped_wiki_inline_code['emscripten_call_worker'] = ':c:func:`emscripten_call_worker`' mapped_wiki_inline_code['emscripten_call_worker()'] = ':c:func:`emscripten_call_worker`' mapped_wiki_inline_code['emscripten_cancel_animation_frame'] = ':c:func:`emscripten_cancel_animation_frame`' mapped_wiki_inline_code['emscripten_cancel_animation_frame()'] = ':c:func:`emscripten_cancel_animation_frame`' mapped_wiki_inline_code['emscripten_cancel_main_loop'] = ':c:func:`emscripten_cancel_main_loop`' mapped_wiki_inline_code['emscripten_cancel_main_loop()'] = ':c:func:`emscripten_cancel_main_loop`' mapped_wiki_inline_code['emscripten_clear_immediate'] = ':c:func:`emscripten_clear_immediate`' mapped_wiki_inline_code['emscripten_clear_immediate()'] = ':c:func:`emscripten_clear_immediate`' mapped_wiki_inline_code['emscripten_clear_interval'] = ':c:func:`emscripten_clear_interval`' mapped_wiki_inline_code['emscripten_clear_interval()'] = ':c:func:`emscripten_clear_interval`' mapped_wiki_inline_code['emscripten_clear_timeout'] = ':c:func:`emscripten_clear_timeout`' mapped_wiki_inline_code['emscripten_clear_timeout()'] = ':c:func:`emscripten_clear_timeout`' mapped_wiki_inline_code['emscripten_console_error'] = ':c:func:`emscripten_console_error`' mapped_wiki_inline_code['emscripten_console_error()'] = ':c:func:`emscripten_console_error`' mapped_wiki_inline_code['emscripten_console_log'] = ':c:func:`emscripten_console_log`' mapped_wiki_inline_code['emscripten_console_log()'] = ':c:func:`emscripten_console_log`' mapped_wiki_inline_code['emscripten_console_warn'] = ':c:func:`emscripten_console_warn`' mapped_wiki_inline_code['emscripten_console_warn()'] = ':c:func:`emscripten_console_warn`' mapped_wiki_inline_code['emscripten_coroutine'] = ':c:type:`emscripten_coroutine`' mapped_wiki_inline_code['emscripten_coroutine_create'] = ':c:func:`emscripten_coroutine_create`' mapped_wiki_inline_code['emscripten_coroutine_create()'] = ':c:func:`emscripten_coroutine_create`' mapped_wiki_inline_code['emscripten_coroutine_next'] = ':c:func:`emscripten_coroutine_next`' mapped_wiki_inline_code['emscripten_coroutine_next()'] = ':c:func:`emscripten_coroutine_next`' mapped_wiki_inline_code['emscripten_create_worker'] = ':c:func:`emscripten_create_worker`' mapped_wiki_inline_code['emscripten_create_worker()'] = ':c:func:`emscripten_create_worker`' mapped_wiki_inline_code['emscripten_date_now'] = ':c:func:`emscripten_date_now`' mapped_wiki_inline_code['emscripten_date_now()'] = ':c:func:`emscripten_date_now`' mapped_wiki_inline_code['emscripten_debugger'] = ':c:func:`emscripten_debugger`' mapped_wiki_inline_code['emscripten_debugger()'] = ':c:func:`emscripten_debugger`' mapped_wiki_inline_code['emscripten_destroy_worker'] = ':c:func:`emscripten_destroy_worker`' mapped_wiki_inline_code['emscripten_destroy_worker()'] = ':c:func:`emscripten_destroy_worker`' mapped_wiki_inline_code['emscripten_enter_soft_fullscreen'] = ':c:func:`emscripten_enter_soft_fullscreen`' mapped_wiki_inline_code['emscripten_enter_soft_fullscreen()'] = ':c:func:`emscripten_enter_soft_fullscreen`' mapped_wiki_inline_code['emscripten_exit_fullscreen'] = ':c:func:`emscripten_exit_fullscreen`' mapped_wiki_inline_code['emscripten_exit_fullscreen()'] = ':c:func:`emscripten_exit_fullscreen`' mapped_wiki_inline_code['emscripten_exit_pointerlock'] = ':c:func:`emscripten_exit_pointerlock`' mapped_wiki_inline_code['emscripten_exit_pointerlock()'] = ':c:func:`emscripten_exit_pointerlock`' mapped_wiki_inline_code['emscripten_exit_soft_fullscreen'] = ':c:func:`emscripten_exit_soft_fullscreen`' mapped_wiki_inline_code['emscripten_exit_soft_fullscreen()'] = ':c:func:`emscripten_exit_soft_fullscreen`' mapped_wiki_inline_code['emscripten_exit_with_live_runtime'] = ':c:func:`emscripten_exit_with_live_runtime`' mapped_wiki_inline_code['emscripten_exit_with_live_runtime()'] = ':c:func:`emscripten_exit_with_live_runtime`' mapped_wiki_inline_code['emscripten_force_exit'] = ':c:func:`emscripten_force_exit`' mapped_wiki_inline_code['emscripten_force_exit()'] = ':c:func:`emscripten_force_exit`' mapped_wiki_inline_code['emscripten_get_battery_status'] = ':c:func:`emscripten_get_battery_status`' mapped_wiki_inline_code['emscripten_get_battery_status()'] = ':c:func:`emscripten_get_battery_status`' mapped_wiki_inline_code['emscripten_get_callstack'] = ':c:func:`emscripten_get_callstack`' mapped_wiki_inline_code['emscripten_get_callstack()'] = ':c:func:`emscripten_get_callstack`' mapped_wiki_inline_code['emscripten_get_canvas_element_size'] = ':c:func:`emscripten_get_canvas_element_size`' mapped_wiki_inline_code['emscripten_get_canvas_element_size()'] = ':c:func:`emscripten_get_canvas_element_size`' mapped_wiki_inline_code['emscripten_get_compiler_setting'] = ':c:func:`emscripten_get_compiler_setting`' mapped_wiki_inline_code['emscripten_get_compiler_setting()'] = ':c:func:`emscripten_get_compiler_setting`' mapped_wiki_inline_code['emscripten_get_device_pixel_ratio'] = ':c:func:`emscripten_get_device_pixel_ratio`' mapped_wiki_inline_code['emscripten_get_device_pixel_ratio()'] = ':c:func:`emscripten_get_device_pixel_ratio`' mapped_wiki_inline_code['emscripten_get_devicemotion_status'] = ':c:func:`emscripten_get_devicemotion_status`' mapped_wiki_inline_code['emscripten_get_devicemotion_status()'] = ':c:func:`emscripten_get_devicemotion_status`' mapped_wiki_inline_code['emscripten_get_deviceorientation_status'] = ':c:func:`emscripten_get_deviceorientation_status`' mapped_wiki_inline_code['emscripten_get_deviceorientation_status()'] = ':c:func:`emscripten_get_deviceorientation_status`' mapped_wiki_inline_code['emscripten_get_element_css_size'] = ':c:func:`emscripten_get_element_css_size`' mapped_wiki_inline_code['emscripten_get_element_css_size()'] = ':c:func:`emscripten_get_element_css_size`' mapped_wiki_inline_code['emscripten_get_fullscreen_status'] = ':c:func:`emscripten_get_fullscreen_status`' mapped_wiki_inline_code['emscripten_get_fullscreen_status()'] = ':c:func:`emscripten_get_fullscreen_status`' mapped_wiki_inline_code['emscripten_get_gamepad_status'] = ':c:func:`emscripten_get_gamepad_status`' mapped_wiki_inline_code['emscripten_get_gamepad_status()'] = ':c:func:`emscripten_get_gamepad_status`' mapped_wiki_inline_code['emscripten_get_main_loop_timing'] = ':c:func:`emscripten_get_main_loop_timing`' mapped_wiki_inline_code['emscripten_get_main_loop_timing()'] = ':c:func:`emscripten_get_main_loop_timing`' mapped_wiki_inline_code['emscripten_get_mouse_status'] = ':c:func:`emscripten_get_mouse_status`' mapped_wiki_inline_code['emscripten_get_mouse_status()'] = ':c:func:`emscripten_get_mouse_status`' mapped_wiki_inline_code['emscripten_get_now'] = ':c:func:`emscripten_get_now`' mapped_wiki_inline_code['emscripten_get_now()'] = ':c:func:`emscripten_get_now`' mapped_wiki_inline_code['emscripten_get_num_gamepads'] = ':c:func:`emscripten_get_num_gamepads`' mapped_wiki_inline_code['emscripten_get_num_gamepads()'] = ':c:func:`emscripten_get_num_gamepads`' mapped_wiki_inline_code['emscripten_get_orientation_status'] = ':c:func:`emscripten_get_orientation_status`' mapped_wiki_inline_code['emscripten_get_orientation_status()'] = ':c:func:`emscripten_get_orientation_status`' mapped_wiki_inline_code['emscripten_get_pointerlock_status'] = ':c:func:`emscripten_get_pointerlock_status`' mapped_wiki_inline_code['emscripten_get_pointerlock_status()'] = ':c:func:`emscripten_get_pointerlock_status`' mapped_wiki_inline_code['emscripten_get_visibility_status'] = ':c:func:`emscripten_get_visibility_status`' mapped_wiki_inline_code['emscripten_get_visibility_status()'] = ':c:func:`emscripten_get_visibility_status`' mapped_wiki_inline_code['emscripten_get_worker_queue_size'] = ':c:func:`emscripten_get_worker_queue_size`' mapped_wiki_inline_code['emscripten_get_worker_queue_size()'] = ':c:func:`emscripten_get_worker_queue_size`' mapped_wiki_inline_code['emscripten_hide_mouse'] = ':c:func:`emscripten_hide_mouse`' mapped_wiki_inline_code['emscripten_hide_mouse()'] = ':c:func:`emscripten_hide_mouse`' mapped_wiki_inline_code['emscripten_idb_async_delete'] = ':c:func:`emscripten_idb_async_delete`' mapped_wiki_inline_code['emscripten_idb_async_delete()'] = ':c:func:`emscripten_idb_async_delete`' mapped_wiki_inline_code['emscripten_idb_async_exists'] = ':c:func:`emscripten_idb_async_exists`' mapped_wiki_inline_code['emscripten_idb_async_exists()'] = ':c:func:`emscripten_idb_async_exists`' mapped_wiki_inline_code['emscripten_idb_async_load'] = ':c:func:`emscripten_idb_async_load`' mapped_wiki_inline_code['emscripten_idb_async_load()'] = ':c:func:`emscripten_idb_async_load`' mapped_wiki_inline_code['emscripten_idb_async_store'] = ':c:func:`emscripten_idb_async_store`' mapped_wiki_inline_code['emscripten_idb_async_store()'] = ':c:func:`emscripten_idb_async_store`' mapped_wiki_inline_code['emscripten_idb_delete'] = ':c:func:`emscripten_idb_delete`' mapped_wiki_inline_code['emscripten_idb_delete()'] = ':c:func:`emscripten_idb_delete`' mapped_wiki_inline_code['emscripten_idb_exists'] = ':c:func:`emscripten_idb_exists`' mapped_wiki_inline_code['emscripten_idb_exists()'] = ':c:func:`emscripten_idb_exists`' mapped_wiki_inline_code['emscripten_idb_load'] = ':c:func:`emscripten_idb_load`' mapped_wiki_inline_code['emscripten_idb_load()'] = ':c:func:`emscripten_idb_load`' mapped_wiki_inline_code['emscripten_idb_store'] = ':c:func:`emscripten_idb_store`' mapped_wiki_inline_code['emscripten_idb_store()'] = ':c:func:`emscripten_idb_store`' mapped_wiki_inline_code['emscripten_is_webgl_context_lost'] = ':c:func:`emscripten_is_webgl_context_lost`' mapped_wiki_inline_code['emscripten_is_webgl_context_lost()'] = ':c:func:`emscripten_is_webgl_context_lost`' mapped_wiki_inline_code['emscripten_lock_orientation'] = ':c:func:`emscripten_lock_orientation`' mapped_wiki_inline_code['emscripten_lock_orientation()'] = ':c:func:`emscripten_lock_orientation`' mapped_wiki_inline_code['emscripten_log'] = ':c:func:`emscripten_log`' mapped_wiki_inline_code['emscripten_log()'] = ':c:func:`emscripten_log`' mapped_wiki_inline_code['emscripten_pause_main_loop'] = ':c:func:`emscripten_pause_main_loop`' mapped_wiki_inline_code['emscripten_pause_main_loop()'] = ':c:func:`emscripten_pause_main_loop`' mapped_wiki_inline_code['emscripten_performance_now'] = ':c:func:`emscripten_performance_now`' mapped_wiki_inline_code['emscripten_performance_now()'] = ':c:func:`emscripten_performance_now`' mapped_wiki_inline_code['emscripten_print_double'] = ':c:func:`emscripten_print_double`' mapped_wiki_inline_code['emscripten_print_double()'] = ':c:func:`emscripten_print_double`' mapped_wiki_inline_code['emscripten_push_main_loop_blocker'] = ':c:func:`emscripten_push_main_loop_blocker`' mapped_wiki_inline_code['emscripten_push_main_loop_blocker()'] = ':c:func:`emscripten_push_main_loop_blocker`' mapped_wiki_inline_code['emscripten_random'] = ':c:func:`emscripten_random`' mapped_wiki_inline_code['emscripten_random()'] = ':c:func:`emscripten_random`' mapped_wiki_inline_code['emscripten_request_animation_frame'] = ':c:func:`emscripten_request_animation_frame`' mapped_wiki_inline_code['emscripten_request_animation_frame()'] = ':c:func:`emscripten_request_animation_frame`' mapped_wiki_inline_code['emscripten_request_animation_frame_loop'] = ':c:func:`emscripten_request_animation_frame_loop`' mapped_wiki_inline_code['emscripten_request_animation_frame_loop()'] = ':c:func:`emscripten_request_animation_frame_loop`' mapped_wiki_inline_code['emscripten_request_fullscreen'] = ':c:func:`emscripten_request_fullscreen`' mapped_wiki_inline_code['emscripten_request_fullscreen()'] = ':c:func:`emscripten_request_fullscreen`' mapped_wiki_inline_code['emscripten_request_fullscreen_strategy'] = ':c:func:`emscripten_request_fullscreen_strategy`' mapped_wiki_inline_code['emscripten_request_fullscreen_strategy()'] = ':c:func:`emscripten_request_fullscreen_strategy`' mapped_wiki_inline_code['emscripten_request_pointerlock'] = ':c:func:`emscripten_request_pointerlock`' mapped_wiki_inline_code['emscripten_request_pointerlock()'] = ':c:func:`emscripten_request_pointerlock`' mapped_wiki_inline_code['emscripten_run_preload_plugins'] = ':c:func:`emscripten_run_preload_plugins`' mapped_wiki_inline_code['emscripten_run_preload_plugins()'] = ':c:func:`emscripten_run_preload_plugins`' mapped_wiki_inline_code['emscripten_run_preload_plugins_data'] = ':c:func:`emscripten_run_preload_plugins_data`' mapped_wiki_inline_code['emscripten_run_preload_plugins_data()'] = ':c:func:`emscripten_run_preload_plugins_data`' mapped_wiki_inline_code['emscripten_run_script'] = ':c:func:`emscripten_run_script`' mapped_wiki_inline_code['emscripten_run_script()'] = ':c:func:`emscripten_run_script`' mapped_wiki_inline_code['emscripten_run_script_int'] = ':c:func:`emscripten_run_script_int`' mapped_wiki_inline_code['emscripten_run_script_int()'] = ':c:func:`emscripten_run_script_int`' mapped_wiki_inline_code['emscripten_sample_gamepad_data'] = ':c:func:`emscripten_sample_gamepad_data`' mapped_wiki_inline_code['emscripten_sample_gamepad_data()'] = ':c:func:`emscripten_sample_gamepad_data`' mapped_wiki_inline_code['emscripten_set_batterychargingchange_callback'] = ':c:func:`emscripten_set_batterychargingchange_callback`' mapped_wiki_inline_code['emscripten_set_batterychargingchange_callback()'] = ':c:func:`emscripten_set_batterychargingchange_callback`' mapped_wiki_inline_code['emscripten_set_beforeunload_callback'] = ':c:func:`emscripten_set_beforeunload_callback`' mapped_wiki_inline_code['emscripten_set_beforeunload_callback()'] = ':c:func:`emscripten_set_beforeunload_callback`' mapped_wiki_inline_code['emscripten_set_blur_callback'] = ':c:func:`emscripten_set_blur_callback`' mapped_wiki_inline_code['emscripten_set_blur_callback()'] = ':c:func:`emscripten_set_blur_callback`' mapped_wiki_inline_code['emscripten_set_canvas_element_size'] = ':c:func:`emscripten_set_canvas_element_size`' mapped_wiki_inline_code['emscripten_set_canvas_element_size()'] = ':c:func:`emscripten_set_canvas_element_size`' mapped_wiki_inline_code['emscripten_set_click_callback'] = ':c:func:`emscripten_set_click_callback`' mapped_wiki_inline_code['emscripten_set_click_callback()'] = ':c:func:`emscripten_set_click_callback`' mapped_wiki_inline_code['emscripten_set_devicemotion_callback'] = ':c:func:`emscripten_set_devicemotion_callback`' mapped_wiki_inline_code['emscripten_set_devicemotion_callback()'] = ':c:func:`emscripten_set_devicemotion_callback`' mapped_wiki_inline_code['emscripten_set_deviceorientation_callback'] = ':c:func:`emscripten_set_deviceorientation_callback`' mapped_wiki_inline_code['emscripten_set_deviceorientation_callback()'] = ':c:func:`emscripten_set_deviceorientation_callback`' mapped_wiki_inline_code['emscripten_set_element_css_size'] = ':c:func:`emscripten_set_element_css_size`' mapped_wiki_inline_code['emscripten_set_element_css_size()'] = ':c:func:`emscripten_set_element_css_size`' mapped_wiki_inline_code['emscripten_set_fullscreenchange_callback'] = ':c:func:`emscripten_set_fullscreenchange_callback`' mapped_wiki_inline_code['emscripten_set_fullscreenchange_callback()'] = ':c:func:`emscripten_set_fullscreenchange_callback`' mapped_wiki_inline_code['emscripten_set_gamepadconnected_callback'] = ':c:func:`emscripten_set_gamepadconnected_callback`' mapped_wiki_inline_code['emscripten_set_gamepadconnected_callback()'] = ':c:func:`emscripten_set_gamepadconnected_callback`' mapped_wiki_inline_code['emscripten_set_immediate'] = ':c:func:`emscripten_set_immediate`' mapped_wiki_inline_code['emscripten_set_immediate()'] = ':c:func:`emscripten_set_immediate`' mapped_wiki_inline_code['emscripten_set_immediate_loop'] = ':c:func:`emscripten_set_immediate_loop`' mapped_wiki_inline_code['emscripten_set_immediate_loop()'] = ':c:func:`emscripten_set_immediate_loop`' mapped_wiki_inline_code['emscripten_set_interval'] = ':c:func:`emscripten_set_interval`' mapped_wiki_inline_code['emscripten_set_interval()'] = ':c:func:`emscripten_set_interval`' mapped_wiki_inline_code['emscripten_set_keypress_callback'] = ':c:func:`emscripten_set_keypress_callback`' mapped_wiki_inline_code['emscripten_set_keypress_callback()'] = ':c:func:`emscripten_set_keypress_callback`' mapped_wiki_inline_code['emscripten_set_main_loop'] = ':c:func:`emscripten_set_main_loop`' mapped_wiki_inline_code['emscripten_set_main_loop()'] = ':c:func:`emscripten_set_main_loop`' mapped_wiki_inline_code['emscripten_set_main_loop_arg'] = ':c:func:`emscripten_set_main_loop_arg`' mapped_wiki_inline_code['emscripten_set_main_loop_arg()'] = ':c:func:`emscripten_set_main_loop_arg`' mapped_wiki_inline_code['emscripten_set_main_loop_expected_blockers'] = ':c:func:`emscripten_set_main_loop_expected_blockers`' mapped_wiki_inline_code['emscripten_set_main_loop_expected_blockers()'] = ':c:func:`emscripten_set_main_loop_expected_blockers`' mapped_wiki_inline_code['emscripten_set_main_loop_timing'] = ':c:func:`emscripten_set_main_loop_timing`' mapped_wiki_inline_code['emscripten_set_main_loop_timing()'] = ':c:func:`emscripten_set_main_loop_timing`' mapped_wiki_inline_code['emscripten_set_orientationchange_callback'] = ':c:func:`emscripten_set_orientationchange_callback`' mapped_wiki_inline_code['emscripten_set_orientationchange_callback()'] = ':c:func:`emscripten_set_orientationchange_callback`' mapped_wiki_inline_code['emscripten_set_pointerlockchange_callback'] = ':c:func:`emscripten_set_pointerlockchange_callback`' mapped_wiki_inline_code['emscripten_set_pointerlockchange_callback()'] = ':c:func:`emscripten_set_pointerlockchange_callback`' mapped_wiki_inline_code['emscripten_set_pointerlockerror_callback'] = ':c:func:`emscripten_set_pointerlockerror_callback`' mapped_wiki_inline_code['emscripten_set_pointerlockerror_callback()'] = ':c:func:`emscripten_set_pointerlockerror_callback`' mapped_wiki_inline_code['emscripten_set_resize_callback'] = ':c:func:`emscripten_set_resize_callback`' mapped_wiki_inline_code['emscripten_set_resize_callback()'] = ':c:func:`emscripten_set_resize_callback`' mapped_wiki_inline_code['emscripten_set_socket_close_callback'] = ':c:func:`emscripten_set_socket_close_callback`' mapped_wiki_inline_code['emscripten_set_socket_close_callback()'] = ':c:func:`emscripten_set_socket_close_callback`' mapped_wiki_inline_code['emscripten_set_socket_connection_callback'] = ':c:func:`emscripten_set_socket_connection_callback`' mapped_wiki_inline_code['emscripten_set_socket_connection_callback()'] = ':c:func:`emscripten_set_socket_connection_callback`' mapped_wiki_inline_code['emscripten_set_socket_error_callback'] = ':c:func:`emscripten_set_socket_error_callback`' mapped_wiki_inline_code['emscripten_set_socket_error_callback()'] = ':c:func:`emscripten_set_socket_error_callback`' mapped_wiki_inline_code['emscripten_set_socket_listen_callback'] = ':c:func:`emscripten_set_socket_listen_callback`' mapped_wiki_inline_code['emscripten_set_socket_listen_callback()'] = ':c:func:`emscripten_set_socket_listen_callback`' mapped_wiki_inline_code['emscripten_set_socket_message_callback'] = ':c:func:`emscripten_set_socket_message_callback`' mapped_wiki_inline_code['emscripten_set_socket_message_callback()'] = ':c:func:`emscripten_set_socket_message_callback`' mapped_wiki_inline_code['emscripten_set_socket_open_callback'] = ':c:func:`emscripten_set_socket_open_callback`' mapped_wiki_inline_code['emscripten_set_socket_open_callback()'] = ':c:func:`emscripten_set_socket_open_callback`' mapped_wiki_inline_code['emscripten_set_timeout'] = ':c:func:`emscripten_set_timeout`' mapped_wiki_inline_code['emscripten_set_timeout()'] = ':c:func:`emscripten_set_timeout`' mapped_wiki_inline_code['emscripten_set_timeout_loop'] = ':c:func:`emscripten_set_timeout_loop`' mapped_wiki_inline_code['emscripten_set_timeout_loop()'] = ':c:func:`emscripten_set_timeout_loop`' mapped_wiki_inline_code['emscripten_set_touchstart_callback'] = ':c:func:`emscripten_set_touchstart_callback`' mapped_wiki_inline_code['emscripten_set_touchstart_callback()'] = ':c:func:`emscripten_set_touchstart_callback`' mapped_wiki_inline_code['emscripten_set_visibilitychange_callback'] = ':c:func:`emscripten_set_visibilitychange_callback`' mapped_wiki_inline_code['emscripten_set_visibilitychange_callback()'] = ':c:func:`emscripten_set_visibilitychange_callback`' mapped_wiki_inline_code['emscripten_set_webglcontextlost_callback'] = ':c:func:`emscripten_set_webglcontextlost_callback`' mapped_wiki_inline_code['emscripten_set_webglcontextlost_callback()'] = ':c:func:`emscripten_set_webglcontextlost_callback`' mapped_wiki_inline_code['emscripten_set_wheel_callback'] = ':c:func:`emscripten_set_wheel_callback`' mapped_wiki_inline_code['emscripten_set_wheel_callback()'] = ':c:func:`emscripten_set_wheel_callback`' mapped_wiki_inline_code['emscripten_sleep'] = ':c:func:`emscripten_sleep`' mapped_wiki_inline_code['emscripten_sleep()'] = ':c:func:`emscripten_sleep`' mapped_wiki_inline_code['emscripten_sleep_with_yield'] = ':c:func:`emscripten_sleep_with_yield`' mapped_wiki_inline_code['emscripten_sleep_with_yield()'] = ':c:func:`emscripten_sleep_with_yield`' mapped_wiki_inline_code['emscripten_throw_number'] = ':c:func:`emscripten_throw_number`' mapped_wiki_inline_code['emscripten_throw_number()'] = ':c:func:`emscripten_throw_number`' mapped_wiki_inline_code['emscripten_throw_string'] = ':c:func:`emscripten_throw_string`' mapped_wiki_inline_code['emscripten_throw_string()'] = ':c:func:`emscripten_throw_string`' mapped_wiki_inline_code['emscripten_trace_annotate_address_type'] = ':c:func:`emscripten_trace_annotate_address_type`' mapped_wiki_inline_code['emscripten_trace_annotate_address_type()'] = ':c:func:`emscripten_trace_annotate_address_type`' mapped_wiki_inline_code['emscripten_trace_associate_storage_size'] = ':c:func:`emscripten_trace_associate_storage_size`' mapped_wiki_inline_code['emscripten_trace_associate_storage_size()'] = ':c:func:`emscripten_trace_associate_storage_size`' mapped_wiki_inline_code['emscripten_trace_close'] = ':c:func:`emscripten_trace_close`' mapped_wiki_inline_code['emscripten_trace_close()'] = ':c:func:`emscripten_trace_close`' mapped_wiki_inline_code['emscripten_trace_configure'] = ':c:func:`emscripten_trace_configure`' mapped_wiki_inline_code['emscripten_trace_configure()'] = ':c:func:`emscripten_trace_configure`' mapped_wiki_inline_code['emscripten_trace_configure_for_google_wtf'] = ':c:func:`emscripten_trace_configure_for_google_wtf`' mapped_wiki_inline_code['emscripten_trace_configure_for_google_wtf()'] = ':c:func:`emscripten_trace_configure_for_google_wtf`' mapped_wiki_inline_code['emscripten_trace_enter_context'] = ':c:func:`emscripten_trace_enter_context`' mapped_wiki_inline_code['emscripten_trace_enter_context()'] = ':c:func:`emscripten_trace_enter_context`' mapped_wiki_inline_code['emscripten_trace_exit_context'] = ':c:func:`emscripten_trace_exit_context`' mapped_wiki_inline_code['emscripten_trace_exit_context()'] = ':c:func:`emscripten_trace_exit_context`' mapped_wiki_inline_code['emscripten_trace_log_message'] = ':c:func:`emscripten_trace_log_message`' mapped_wiki_inline_code['emscripten_trace_log_message()'] = ':c:func:`emscripten_trace_log_message`' mapped_wiki_inline_code['emscripten_trace_mark'] = ':c:func:`emscripten_trace_mark`' mapped_wiki_inline_code['emscripten_trace_mark()'] = ':c:func:`emscripten_trace_mark`' mapped_wiki_inline_code['emscripten_trace_record_allocation'] = ':c:func:`emscripten_trace_record_allocation`' mapped_wiki_inline_code['emscripten_trace_record_allocation()'] = ':c:func:`emscripten_trace_record_allocation`' mapped_wiki_inline_code['emscripten_trace_record_frame_end'] = ':c:func:`emscripten_trace_record_frame_end`' mapped_wiki_inline_code['emscripten_trace_record_frame_end()'] = ':c:func:`emscripten_trace_record_frame_end`' mapped_wiki_inline_code['emscripten_trace_record_frame_start'] = ':c:func:`emscripten_trace_record_frame_start`' mapped_wiki_inline_code['emscripten_trace_record_frame_start()'] = ':c:func:`emscripten_trace_record_frame_start`' mapped_wiki_inline_code['emscripten_trace_record_free'] = ':c:func:`emscripten_trace_record_free`' mapped_wiki_inline_code['emscripten_trace_record_free()'] = ':c:func:`emscripten_trace_record_free`' mapped_wiki_inline_code['emscripten_trace_record_reallocation'] = ':c:func:`emscripten_trace_record_reallocation`' mapped_wiki_inline_code['emscripten_trace_record_reallocation()'] = ':c:func:`emscripten_trace_record_reallocation`' mapped_wiki_inline_code['emscripten_trace_report_error'] = ':c:func:`emscripten_trace_report_error`' mapped_wiki_inline_code['emscripten_trace_report_error()'] = ':c:func:`emscripten_trace_report_error`' mapped_wiki_inline_code['emscripten_trace_report_memory_layout'] = ':c:func:`emscripten_trace_report_memory_layout`' mapped_wiki_inline_code['emscripten_trace_report_memory_layout()'] = ':c:func:`emscripten_trace_report_memory_layout`' mapped_wiki_inline_code['emscripten_trace_report_off_heap_data'] = ':c:func:`emscripten_trace_report_off_heap_data`' mapped_wiki_inline_code['emscripten_trace_report_off_heap_data()'] = ':c:func:`emscripten_trace_report_off_heap_data`' mapped_wiki_inline_code['emscripten_trace_set_enabled'] = ':c:func:`emscripten_trace_set_enabled`' mapped_wiki_inline_code['emscripten_trace_set_enabled()'] = ':c:func:`emscripten_trace_set_enabled`' mapped_wiki_inline_code['emscripten_trace_set_session_username'] = ':c:func:`emscripten_trace_set_session_username`' mapped_wiki_inline_code['emscripten_trace_set_session_username()'] = ':c:func:`emscripten_trace_set_session_username`' mapped_wiki_inline_code['emscripten_trace_task_associate_data'] = ':c:func:`emscripten_trace_task_associate_data`' mapped_wiki_inline_code['emscripten_trace_task_associate_data()'] = ':c:func:`emscripten_trace_task_associate_data`' mapped_wiki_inline_code['emscripten_trace_task_end'] = ':c:func:`emscripten_trace_task_end`' mapped_wiki_inline_code['emscripten_trace_task_end()'] = ':c:func:`emscripten_trace_task_end`' mapped_wiki_inline_code['emscripten_trace_task_resume'] = ':c:func:`emscripten_trace_task_resume`' mapped_wiki_inline_code['emscripten_trace_task_resume()'] = ':c:func:`emscripten_trace_task_resume`' mapped_wiki_inline_code['emscripten_trace_task_start'] = ':c:func:`emscripten_trace_task_start`' mapped_wiki_inline_code['emscripten_trace_task_start()'] = ':c:func:`emscripten_trace_task_start`' mapped_wiki_inline_code['emscripten_trace_task_suspend'] = ':c:func:`emscripten_trace_task_suspend`' mapped_wiki_inline_code['emscripten_trace_task_suspend()'] = ':c:func:`emscripten_trace_task_suspend`' mapped_wiki_inline_code['emscripten_unlock_orientation'] = ':c:func:`emscripten_unlock_orientation`' mapped_wiki_inline_code['emscripten_unlock_orientation()'] = ':c:func:`emscripten_unlock_orientation`' mapped_wiki_inline_code['emscripten_vibrate'] = ':c:func:`emscripten_vibrate`' mapped_wiki_inline_code['emscripten_vibrate()'] = ':c:func:`emscripten_vibrate`' mapped_wiki_inline_code['emscripten_vibrate_pattern'] = ':c:func:`emscripten_vibrate_pattern`' mapped_wiki_inline_code['emscripten_vibrate_pattern()'] = ':c:func:`emscripten_vibrate_pattern`' mapped_wiki_inline_code['emscripten_vr_cancel_display_render_loop'] = ':c:func:`emscripten_vr_cancel_display_render_loop`' mapped_wiki_inline_code['emscripten_vr_cancel_display_render_loop()'] = ':c:func:`emscripten_vr_cancel_display_render_loop`' mapped_wiki_inline_code['emscripten_vr_count_displays'] = ':c:func:`emscripten_vr_count_displays`' mapped_wiki_inline_code['emscripten_vr_count_displays()'] = ':c:func:`emscripten_vr_count_displays`' mapped_wiki_inline_code['emscripten_vr_deinit'] = ':c:func:`emscripten_vr_deinit`' mapped_wiki_inline_code['emscripten_vr_deinit()'] = ':c:func:`emscripten_vr_deinit`' mapped_wiki_inline_code['emscripten_vr_display_connected'] = ':c:func:`emscripten_vr_display_connected`' mapped_wiki_inline_code['emscripten_vr_display_connected()'] = ':c:func:`emscripten_vr_display_connected`' mapped_wiki_inline_code['emscripten_vr_display_presenting'] = ':c:func:`emscripten_vr_display_presenting`' mapped_wiki_inline_code['emscripten_vr_display_presenting()'] = ':c:func:`emscripten_vr_display_presenting`' mapped_wiki_inline_code['emscripten_vr_exit_present'] = ':c:func:`emscripten_vr_exit_present`' mapped_wiki_inline_code['emscripten_vr_exit_present()'] = ':c:func:`emscripten_vr_exit_present`' mapped_wiki_inline_code['emscripten_vr_get_display_capabilities'] = ':c:func:`emscripten_vr_get_display_capabilities`' mapped_wiki_inline_code['emscripten_vr_get_display_capabilities()'] = ':c:func:`emscripten_vr_get_display_capabilities`' mapped_wiki_inline_code['emscripten_vr_get_display_handle'] = ':c:func:`emscripten_vr_get_display_handle`' mapped_wiki_inline_code['emscripten_vr_get_display_handle()'] = ':c:func:`emscripten_vr_get_display_handle`' mapped_wiki_inline_code['emscripten_vr_get_eye_parameters'] = ':c:func:`emscripten_vr_get_eye_parameters`' mapped_wiki_inline_code['emscripten_vr_get_eye_parameters()'] = ':c:func:`emscripten_vr_get_eye_parameters`' mapped_wiki_inline_code['emscripten_vr_get_frame_data'] = ':c:func:`emscripten_vr_get_frame_data`' mapped_wiki_inline_code['emscripten_vr_get_frame_data()'] = ':c:func:`emscripten_vr_get_frame_data`' mapped_wiki_inline_code['emscripten_vr_init'] = ':c:func:`emscripten_vr_init`' mapped_wiki_inline_code['emscripten_vr_init()'] = ':c:func:`emscripten_vr_init`' mapped_wiki_inline_code['emscripten_vr_ready'] = ':c:func:`emscripten_vr_ready`' mapped_wiki_inline_code['emscripten_vr_ready()'] = ':c:func:`emscripten_vr_ready`' mapped_wiki_inline_code['emscripten_vr_request_present'] = ':c:func:`emscripten_vr_request_present`' mapped_wiki_inline_code['emscripten_vr_request_present()'] = ':c:func:`emscripten_vr_request_present`' mapped_wiki_inline_code['emscripten_vr_set_display_render_loop'] = ':c:func:`emscripten_vr_set_display_render_loop`' mapped_wiki_inline_code['emscripten_vr_set_display_render_loop()'] = ':c:func:`emscripten_vr_set_display_render_loop`' mapped_wiki_inline_code['emscripten_vr_set_display_render_loop_arg'] = ':c:func:`emscripten_vr_set_display_render_loop_arg`' mapped_wiki_inline_code['emscripten_vr_set_display_render_loop_arg()'] = ':c:func:`emscripten_vr_set_display_render_loop_arg`' mapped_wiki_inline_code['emscripten_vr_submit_frame'] = ':c:func:`emscripten_vr_submit_frame`' mapped_wiki_inline_code['emscripten_vr_submit_frame()'] = ':c:func:`emscripten_vr_submit_frame`' mapped_wiki_inline_code['emscripten_vr_version_major'] = ':c:func:`emscripten_vr_version_major`' mapped_wiki_inline_code['emscripten_vr_version_major()'] = ':c:func:`emscripten_vr_version_major`' mapped_wiki_inline_code['emscripten_vr_version_minor'] = ':c:func:`emscripten_vr_version_minor`' mapped_wiki_inline_code['emscripten_vr_version_minor()'] = ':c:func:`emscripten_vr_version_minor`' mapped_wiki_inline_code['emscripten_webgl_commit_frame'] = ':c:func:`emscripten_webgl_commit_frame`' mapped_wiki_inline_code['emscripten_webgl_commit_frame()'] = ':c:func:`emscripten_webgl_commit_frame`' mapped_wiki_inline_code['emscripten_webgl_create_context'] = ':c:func:`emscripten_webgl_create_context`' mapped_wiki_inline_code['emscripten_webgl_create_context()'] = ':c:func:`emscripten_webgl_create_context`' mapped_wiki_inline_code['emscripten_webgl_destroy_context'] = ':c:func:`emscripten_webgl_destroy_context`' mapped_wiki_inline_code['emscripten_webgl_destroy_context()'] = ':c:func:`emscripten_webgl_destroy_context`' mapped_wiki_inline_code['emscripten_webgl_enable_extension'] = ':c:func:`emscripten_webgl_enable_extension`' mapped_wiki_inline_code['emscripten_webgl_enable_extension()'] = ':c:func:`emscripten_webgl_enable_extension`' mapped_wiki_inline_code['emscripten_webgl_get_context_attributes'] = ':c:func:`emscripten_webgl_get_context_attributes`' mapped_wiki_inline_code['emscripten_webgl_get_context_attributes()'] = ':c:func:`emscripten_webgl_get_context_attributes`' mapped_wiki_inline_code['emscripten_webgl_get_current_context'] = ':c:func:`emscripten_webgl_get_current_context`' mapped_wiki_inline_code['emscripten_webgl_get_current_context()'] = ':c:func:`emscripten_webgl_get_current_context`' mapped_wiki_inline_code['emscripten_webgl_get_drawing_buffer_size'] = ':c:func:`emscripten_webgl_get_drawing_buffer_size`' mapped_wiki_inline_code['emscripten_webgl_get_drawing_buffer_size()'] = ':c:func:`emscripten_webgl_get_drawing_buffer_size`' mapped_wiki_inline_code['emscripten_webgl_init_context_attributes'] = ':c:func:`emscripten_webgl_init_context_attributes`' mapped_wiki_inline_code['emscripten_webgl_init_context_attributes()'] = ':c:func:`emscripten_webgl_init_context_attributes`' mapped_wiki_inline_code['emscripten_webgl_make_context_current'] = ':c:func:`emscripten_webgl_make_context_current`' mapped_wiki_inline_code['emscripten_webgl_make_context_current()'] = ':c:func:`emscripten_webgl_make_context_current`' mapped_wiki_inline_code['emscripten_wget'] = ':c:func:`emscripten_wget`' mapped_wiki_inline_code['emscripten_wget()'] = ':c:func:`emscripten_wget`' mapped_wiki_inline_code['emscripten_wget_data'] = ':c:func:`emscripten_wget_data`' mapped_wiki_inline_code['emscripten_wget_data()'] = ':c:func:`emscripten_wget_data`' mapped_wiki_inline_code['emscripten_worker_respond'] = ':c:func:`emscripten_worker_respond`' mapped_wiki_inline_code['emscripten_worker_respond()'] = ':c:func:`emscripten_worker_respond`' mapped_wiki_inline_code['emscripten_yield'] = ':c:func:`emscripten_yield`' mapped_wiki_inline_code['emscripten_yield()'] = ':c:func:`emscripten_yield`' mapped_wiki_inline_code['enum_'] = ':cpp:class:`enum_`' mapped_wiki_inline_code['function'] = ':cpp:func:`function`' mapped_wiki_inline_code['function()'] = ':cpp:func:`function`' mapped_wiki_inline_code['getValue'] = ':js:func:`getValue`' mapped_wiki_inline_code['getValue()'] = ':js:func:`getValue`' mapped_wiki_inline_code['intArrayFromString'] = ':js:func:`intArrayFromString`' mapped_wiki_inline_code['intArrayFromString()'] = ':js:func:`intArrayFromString`' mapped_wiki_inline_code['intArrayToString'] = ':js:func:`intArrayToString`' mapped_wiki_inline_code['intArrayToString()'] = ':js:func:`intArrayToString`' mapped_wiki_inline_code['internal::CalculateLambdaSignature<LambdaType>::type'] = ':cpp:func:`internal::CalculateLambdaSignature<LambdaType>::type`' mapped_wiki_inline_code['internal::CalculateLambdaSignature<LambdaType>::type()'] = ':cpp:func:`internal::CalculateLambdaSignature<LambdaType>::type`' mapped_wiki_inline_code['internal::MemberFunctionType<ClassType,'] = ':cpp:func:`internal::MemberFunctionType<ClassType,`' mapped_wiki_inline_code['internal::MemberFunctionType<ClassType,()'] = ':cpp:func:`internal::MemberFunctionType<ClassType,`' mapped_wiki_inline_code['pure_virtual'] = ':cpp:type:`pure_virtual`' mapped_wiki_inline_code['register_vector'] = ':cpp:func:`register_vector`' mapped_wiki_inline_code['register_vector()'] = ':cpp:func:`register_vector`' mapped_wiki_inline_code['removeRunDependency'] = ':js:func:`removeRunDependency`' mapped_wiki_inline_code['removeRunDependency()'] = ':js:func:`removeRunDependency`' mapped_wiki_inline_code['ret_val'] = ':cpp:type:`ret_val`' mapped_wiki_inline_code['select_const'] = ':cpp:func:`select_const`' mapped_wiki_inline_code['select_const()'] = ':cpp:func:`select_const`' mapped_wiki_inline_code['setValue'] = ':js:func:`setValue`' mapped_wiki_inline_code['setValue()'] = ':js:func:`setValue`' mapped_wiki_inline_code['sharing_policy'] = ':cpp:type:`sharing_policy`' mapped_wiki_inline_code['smart_ptr_trait'] = ':cpp:type:`smart_ptr_trait`' mapped_wiki_inline_code['stackTrace'] = ':js:func:`stackTrace`' mapped_wiki_inline_code['stackTrace()'] = ':js:func:`stackTrace`' mapped_wiki_inline_code['std::add_pointer<Signature>::type'] = ':cpp:func:`std::add_pointer<Signature>::type`' mapped_wiki_inline_code['std::add_pointer<Signature>::type()'] = ':cpp:func:`std::add_pointer<Signature>::type`' mapped_wiki_inline_code['stringToUTF16'] = ':js:func:`stringToUTF16`' mapped_wiki_inline_code['stringToUTF16()'] = ':js:func:`stringToUTF16`' mapped_wiki_inline_code['stringToUTF32'] = ':js:func:`stringToUTF32`' mapped_wiki_inline_code['stringToUTF32()'] = ':js:func:`stringToUTF32`' mapped_wiki_inline_code['stringToUTF8'] = ':js:func:`stringToUTF8`' mapped_wiki_inline_code['stringToUTF8()'] = ':js:func:`stringToUTF8`' mapped_wiki_inline_code['worker_handle'] = ':c:var:`worker_handle`' mapped_wiki_inline_code['writeArrayToMemory'] = ':js:func:`writeArrayToMemory`' mapped_wiki_inline_code['writeArrayToMemory()'] = ':js:func:`writeArrayToMemory`' mapped_wiki_inline_code['writeAsciiToMemory'] = ':js:func:`writeAsciiToMemory`' mapped_wiki_inline_code['writeAsciiToMemory()'] = ':js:func:`writeAsciiToMemory`' mapped_wiki_inline_code['writeStringToMemory'] = ':js:func:`writeStringToMemory`' mapped_wiki_inline_code['writeStringToMemory()'] = ':js:func:`writeStringToMemory`' return mapped_wiki_inline_code
# strings message = 'hi, how are you?' # integer # number = 776765757 # print(number) # print(type(number)) a = 'hello' # print(type(a)) # print(a) # floating pi = 3.14 e = 2.71828 a = 10.0 # print(type(a)) # print(a) # boolean (1/0 True/False) isBooked = False has_passed_exam = True print(has_passed_exam) print(type(has_passed_exam))
message = 'hi, how are you?' a = 'hello' pi = 3.14 e = 2.71828 a = 10.0 is_booked = False has_passed_exam = True print(has_passed_exam) print(type(has_passed_exam))
class my_Pow_Three: def __init__(self, mymax = 0): self.mymax = mymax def __iter__(self): self.num = 0 return self def __next__(self): if self.num > self.mymax: raise StopIteration myresult = 3 ** self.num self.num += 1 return myresult num1 = my_Pow_Three(5) for loop in num1: print(loop)
class My_Pow_Three: def __init__(self, mymax=0): self.mymax = mymax def __iter__(self): self.num = 0 return self def __next__(self): if self.num > self.mymax: raise StopIteration myresult = 3 ** self.num self.num += 1 return myresult num1 = my__pow__three(5) for loop in num1: print(loop)
x,y=map(int,input().split()) a=[];r='' for _ in range(x): a.append(list(input())) for k in range(y): for _ in range(x): for i in range(x-1): t=a[i][k];z=a[i+1][k] if t=='o' and z=='.': a[i][k]=z a[i+1][k]=t for i in range(x): for j in range(y): r+=a[i][j] r+='\n' print(r,end="")
(x, y) = map(int, input().split()) a = [] r = '' for _ in range(x): a.append(list(input())) for k in range(y): for _ in range(x): for i in range(x - 1): t = a[i][k] z = a[i + 1][k] if t == 'o' and z == '.': a[i][k] = z a[i + 1][k] = t for i in range(x): for j in range(y): r += a[i][j] r += '\n' print(r, end='')
EXTERNAL_DATA_FILE = "../data/external/basketball.sqlite" RAW_DATA_OUTPUT = "../data/raw/" RAW_DATA_FILE = "../data/raw/plays_total.csv" INTERIM_DATA_OUTPUT = "../data/interim/" PROCESSED_DATA_OUTPUT = "../data/processed/" TRAINING_FILE = "../data/processed/train_proc_labeled_folds.csv" TESTING_FILE = "../data/processed/test_proc.csv" MODEL_OUTPUT = "../models/" MODEL_IN_USE = "../models/log_res.bin"
external_data_file = '../data/external/basketball.sqlite' raw_data_output = '../data/raw/' raw_data_file = '../data/raw/plays_total.csv' interim_data_output = '../data/interim/' processed_data_output = '../data/processed/' training_file = '../data/processed/train_proc_labeled_folds.csv' testing_file = '../data/processed/test_proc.csv' model_output = '../models/' model_in_use = '../models/log_res.bin'
gb = GearsBuilder("StreamReader") gb.foreach( lambda x: execute("HMSET", x["id"], *sum([[k, v] for k, v in x.items()], [])) ) # write to Redis Hash gb.register("mystream")
gb = gears_builder('StreamReader') gb.foreach(lambda x: execute('HMSET', x['id'], *sum([[k, v] for (k, v) in x.items()], []))) gb.register('mystream')
device = "cpu" teacher_forcing_ratio = 1.0 clip = 50.0 learning_rate = 0.0001 decoder_learning_ratio = 5.0 n_iteration = 5000 print_every = 1 save_every = 500 model_name = 'cb_model' hidden_size = 500 encoder_n_layers = 2 decoder_n_layers = 2 dropout = 0.1 batch_size = 64
device = 'cpu' teacher_forcing_ratio = 1.0 clip = 50.0 learning_rate = 0.0001 decoder_learning_ratio = 5.0 n_iteration = 5000 print_every = 1 save_every = 500 model_name = 'cb_model' hidden_size = 500 encoder_n_layers = 2 decoder_n_layers = 2 dropout = 0.1 batch_size = 64
# print(1) # print(2) # print(3) # print(4) # print(5) # contador = 1 # print(contador) # while contador < 1000: # contador = contador + 1 # contador += 1 # con esta linea estamos diciendo que contador es igual a contador + 1, igual a la linea que tenemos arriba # print(contador) # a = list(range(1000)) # print(a) # for contador in range(1, 1001): #para el contador que va del rango del 0 al 1000 la variable contador en el ciclo va ir tomando los valores del rango # print(contador) #aqui vamos a imprimir el valor del contador en cada vuelta del ciclo for i in range(10): print(11 * i)
for i in range(10): print(11 * i)
# Question 7 # Level 2 # # Question: # Write a program which takes 2 digits, X,Y as input and generates a 2-dimensional array. The element value in the i-th row and j-th column of the array should be i*j. # Example # Suppose the following inputs are given to the program: # 3,5 # Then, the output of the program should be: # [[0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, 4, 6, 8]] # # Hints: # Note: In case of input data being supplied to the question, it should be assumed to be a console input in a comma-separated form. l = input("Write dimensions of array: ") l = l.split(",") l = list(map(int, l)) arr = [] for i in range(l[0]): arr.append([]) for j in range(l[1]): arr[i].append(i*j) print(arr)
l = input('Write dimensions of array: ') l = l.split(',') l = list(map(int, l)) arr = [] for i in range(l[0]): arr.append([]) for j in range(l[1]): arr[i].append(i * j) print(arr)
''' Basic operation with Python Pierre Baudin 2018-10-16 ''' # define list student_names = ['James', 'Kat', 'Jess', 'Mark', 'Bort', 'Frank Grimes', 'Max Power', 'Homer'] for name in student_names: if name == 'Bort': print("Found him!\n" + name) break print("Currently testing " + name) # Dictionary example student = { "name": "Mark", "student_id": 15163, "feedback": None } student["last_name"] = "Kowalski" # exception handling try: last_name = student["last_name"] numbered_last_name = 3 + last_name except KeyError: print("Error finding last_name") except TypeError as error: print("I cannot add these two together!") print(error) print("This code executes!")
""" Basic operation with Python Pierre Baudin 2018-10-16 """ student_names = ['James', 'Kat', 'Jess', 'Mark', 'Bort', 'Frank Grimes', 'Max Power', 'Homer'] for name in student_names: if name == 'Bort': print('Found him!\n' + name) break print('Currently testing ' + name) student = {'name': 'Mark', 'student_id': 15163, 'feedback': None} student['last_name'] = 'Kowalski' try: last_name = student['last_name'] numbered_last_name = 3 + last_name except KeyError: print('Error finding last_name') except TypeError as error: print('I cannot add these two together!') print(error) print('This code executes!')
name = "br_loterias" __version__ = "0.0.1"
name = 'br_loterias' __version__ = '0.0.1'
''' Probem Task : This program will find volume of inner sphere Problem Link : https://edabit.com/challenge/iBqJcagS56wmDpe4x ''' def vol_shell(r1, r2): # function for finding volume pi = 3.1415926536 if r1 < r2: # Checking is r1 is greater than r2, if r1 is less than r2, if case works r1, r2 = r2, r1 volume = 4 / 3 * pi * (int(r1) ** 3 - int(r2) ** 3) # main formulae print(round(volume, 3)) # Printing the value, # round is Used for rounding the digits of volume to 3 digits from decimal point else: # if r1 is greater than r2, this case executes volume = 4 / 3 * pi * (int(r1) ** 3 - int(r2) ** 3) # main formulae print(round(volume, 3)) # Printing the value, # round is Used for rounding the digits of volume to 3 digits from decimal point if __name__ == '__main__': # Main Function r1 = input("Input Inner/Outer radius of the sphere: ") r2 = input("Input Inner/Outer radius of the sphere: ") vol_shell(r1, r2)
""" Probem Task : This program will find volume of inner sphere Problem Link : https://edabit.com/challenge/iBqJcagS56wmDpe4x """ def vol_shell(r1, r2): pi = 3.1415926536 if r1 < r2: (r1, r2) = (r2, r1) volume = 4 / 3 * pi * (int(r1) ** 3 - int(r2) ** 3) print(round(volume, 3)) else: volume = 4 / 3 * pi * (int(r1) ** 3 - int(r2) ** 3) print(round(volume, 3)) if __name__ == '__main__': r1 = input('Input Inner/Outer radius of the sphere: ') r2 = input('Input Inner/Outer radius of the sphere: ') vol_shell(r1, r2)
''' Created on 17 Jul 2015 @author: philipkershaw ''' def keyword_parser(obj, prefix='', **kw): '''Parse config items delimited by dots into corresponding objects and members variables ''' for param_name, val in list(kw.items()): if prefix: _param_name = param_name.rsplit(prefix)[-1] else: _param_name = param_name if '.' in _param_name: # Further nesting found - split and access corresponding object obj_name, obj_attr_name = _param_name.split('.', 1) child_obj = getattr(obj, obj_name) keyword_parser(child_obj, **{obj_attr_name: val}) else: # Reached the end of nested items - set value and return setattr(obj, _param_name, val) return
""" Created on 17 Jul 2015 @author: philipkershaw """ def keyword_parser(obj, prefix='', **kw): """Parse config items delimited by dots into corresponding objects and members variables """ for (param_name, val) in list(kw.items()): if prefix: _param_name = param_name.rsplit(prefix)[-1] else: _param_name = param_name if '.' in _param_name: (obj_name, obj_attr_name) = _param_name.split('.', 1) child_obj = getattr(obj, obj_name) keyword_parser(child_obj, **{obj_attr_name: val}) else: setattr(obj, _param_name, val) return
T = int(input()) for t in range(T): skipBlank = input() N = int(input()) sum = 0 for n in range(N): sum+= int(input()) if (sum % N == 0): print("YES") else: print("NO")
t = int(input()) for t in range(T): skip_blank = input() n = int(input()) sum = 0 for n in range(N): sum += int(input()) if sum % N == 0: print('YES') else: print('NO')
class StatisticsCollector: def __init__(self, collectors: list, report_interval): self.collectors = collectors self.report_interval = report_interval def add_result(self, server_time, client_time, bytes_received): for collector in self.collectors: collector.add_result(server_time, client_time, bytes_received)
class Statisticscollector: def __init__(self, collectors: list, report_interval): self.collectors = collectors self.report_interval = report_interval def add_result(self, server_time, client_time, bytes_received): for collector in self.collectors: collector.add_result(server_time, client_time, bytes_received)
n = int(input()) for i in range(n): print('+___', end=' ') print() for i in range(n): print(f'|{i + 1} /', end=' ') print() for i in range(n): print('|__\\', end=' ') print() for i in range(n): print('| ', end=' ') print()
n = int(input()) for i in range(n): print('+___', end=' ') print() for i in range(n): print(f'|{i + 1} /', end=' ') print() for i in range(n): print('|__\\', end=' ') print() for i in range(n): print('| ', end=' ') print()
# write your solution here sentence = input("Write text: ") check_list = [] with open("wordlist.txt") as new_file: for line in new_file: line = line.replace("\n", "") check_list.append(line) text = "" word_list = sentence.split() #print(word_list) for word in word_list: lcs_word = word.lower() if lcs_word in check_list: text += f" {word}" else: text += f" *{word}*" print(text)
sentence = input('Write text: ') check_list = [] with open('wordlist.txt') as new_file: for line in new_file: line = line.replace('\n', '') check_list.append(line) text = '' word_list = sentence.split() for word in word_list: lcs_word = word.lower() if lcs_word in check_list: text += f' {word}' else: text += f' *{word}*' print(text)
def convert(base_10_number, new_base): convert_string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" if base_10_number < new_base: return convert_string[base_10_number] else: return convert(base_10_number // new_base, new_base) + convert_string[base_10_number % new_base] print(convert(100, 10)) print(convert(100, 2)) print(convert(100, 36)) # print(unconvert("100", 10)) # print(unconvert("1100100", 2)) # print(unconvert("2S", 36))
def convert(base_10_number, new_base): convert_string = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' if base_10_number < new_base: return convert_string[base_10_number] else: return convert(base_10_number // new_base, new_base) + convert_string[base_10_number % new_base] print(convert(100, 10)) print(convert(100, 2)) print(convert(100, 36))
x = 10 > 15 y = 15 > 10 print(x and y) print(x or y) print(not (x and y))
x = 10 > 15 y = 15 > 10 print(x and y) print(x or y) print(not (x and y))
############################################################################ # # Copyright (c) Mamba Developers. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ############################################################################ class Empty: pass
class Empty: pass
''' Description: Given a balanced parentheses string S, compute the score of the string based on the following rule: () has score 1 AB has score A + B, where A and B are balanced parentheses strings. (A) has score 2 * A, where A is a balanced parentheses string. Example 1: Input: "()" Output: 1 Example 2: Input: "(())" Output: 2 Example 3: Input: "()()" Output: 2 Example 4: Input: "(()(()))" Output: 6 Note: S is a balanced parentheses string, containing only ( and ). 2 <= S.length <= 50 ''' class Solution: def scoreOfParentheses(self, S: str) -> int: score_stack = [] # record previous character prev = '' for ch in S: if ch == '(': # push 0 as occurrence of '(' score_stack.append( 0 ) else: if prev == ')': # contiguous of ')', double the score summation = 0 while score_stack[-1] != 0: summation += score_stack.pop() # pop latest 0 also known as lastest left brace ( score_stack.pop() score_stack.append( 2*summation ) else: # single pair of (), add score by 1 # pop latest 0 also known as lastest left brace ( score_stack.pop() score_stack.append(1) # update previous character prev = ch # summation of all the scores in stack return sum(score_stack) # n : the length of input string, S. ## Time Complexity: O( n ) # # The overhead in time is the for loop iterating on ch, which is of O( n ), ## Space Complexity: O( n ) # # The overhead in space is the storage for score_stack, which is of O( n ). def test_bench(): test_data = [ '()', '(())', '()()', '(()(()))' ] # expected output: ''' 1 2 2 6 ''' for test_case in test_data: print( Solution().scoreOfParentheses(test_case) ) return if __name__ == '__main__': test_bench()
""" Description: Given a balanced parentheses string S, compute the score of the string based on the following rule: () has score 1 AB has score A + B, where A and B are balanced parentheses strings. (A) has score 2 * A, where A is a balanced parentheses string. Example 1: Input: "()" Output: 1 Example 2: Input: "(())" Output: 2 Example 3: Input: "()()" Output: 2 Example 4: Input: "(()(()))" Output: 6 Note: S is a balanced parentheses string, containing only ( and ). 2 <= S.length <= 50 """ class Solution: def score_of_parentheses(self, S: str) -> int: score_stack = [] prev = '' for ch in S: if ch == '(': score_stack.append(0) elif prev == ')': summation = 0 while score_stack[-1] != 0: summation += score_stack.pop() score_stack.pop() score_stack.append(2 * summation) else: score_stack.pop() score_stack.append(1) prev = ch return sum(score_stack) def test_bench(): test_data = ['()', '(())', '()()', '(()(()))'] '\n 1\n 2\n 2\n 6 \n ' for test_case in test_data: print(solution().scoreOfParentheses(test_case)) return if __name__ == '__main__': test_bench()
''' Extracted from ZED-F9P - Interface Description, section 3 ''' UBX_CLASS = { b"\x01": "NAV", # Navigation solution messages b"\x02": "RXM", # Status from the receiver manager b"\x27": "SEC", # Security features of the receiver }
""" Extracted from ZED-F9P - Interface Description, section 3 """ ubx_class = {b'\x01': 'NAV', b'\x02': 'RXM', b"'": 'SEC'}
# 3.13 Convert the following code to an if-elif-else statement: number = 4 if number == 1: print('One') else: if number == 2: print('Two') else: if number == 3: print('Three') else: print('Unkown') # ANSWER if number == 1: print('One') elif number == 2: print('Two') elif number == 3: print('Three') else: print('Unkown')
number = 4 if number == 1: print('One') elif number == 2: print('Two') elif number == 3: print('Three') else: print('Unkown') if number == 1: print('One') elif number == 2: print('Two') elif number == 3: print('Three') else: print('Unkown')
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:idp_bandit] # language: python # name: conda-env-idp_bandit-py # --- # %% # Parameters dprst_depth_avg = 57.9203 dprst_frac = 0.051539 dprst_frac_init = 0.093112 dprst_frac_open = 1.0 hru_area = 149514.25399 hru_percent_imperv = 0.000018 op_flow_thres = 0.9264 va_open_exp = 0.001 va_clos_exp = 0.001 soil_moist_init = 1.0 soil_moist_init_frac = 0.370547 soil_moist_max = 2.904892 soil_rechr_init = 0.5 soil_rechr_init_frac = 0.371024 soil_rechr_max_frac = 0.994335 # The variables... imperv_frac_flag = 1 dprst_frac_flag = 1 dprst_depth_flag = 1 check_imperv = False check_dprst_frac = False dprst_flag = 1 dprst_clos_flag = True dprst_open_flag = True soil_moist = soil_moist_init_frac * soil_moist_max soil_rechr = soil_rechr_max_frac * soil_moist_max soil_moist_tmp = 0.0 soil_rechr_tmp = 0.0 dprst_area_max = 7705.81513639 dprst_vol_clos = 0.0 dprst_vol_open = 41558.0387633 hru_area_imperv = 2.69125657182 hru_area_perv = 141805.747597 hru_frac_perv = 0.948443 imperv_stor = 0.1 hru_area_perv_NEW = 0.0 hru_percent_imperv_new = 0.000017 dprst_frac_NEW = 0.06 dprst_area_max_tmp = 0.0 # %% [markdown] # ### Deal with hru_percent_imperv first # %% hru_area_imperv = hru_percent_imperv * hru_area # NOTE: dprst_area_max is not handled yet hru_area_perv = hru_area - hru_area_imperv hru_frac_perv = hru_area_perv / hru_area # NOTE: need to deal with lakes # %% # Some scratch junk hru_percent_imperv_OLD = 0.000018 hru_percent_imperv_NEW = 0.0 hru_percent_imperv_CHG = 0.0 if hru_percent_imperv_NEW > 0.0: hru_percent_imperv_CHG = hru_percent_imperv_OLD / hru_percent_imperv_NEW hru_percent_imperv_EXIST_CHG = hru_percent_imperv_OLD / hru_frac_perv if hru_percent_imperv_NEW > 0.999: print('ERROR') elif imperv_stor > 0.0: if hru_percent_imperv_NEW > 0.0: imperv_stor *= hru_percent_imperv_CHG else: print('WARNING') tmp_stor = imperv_stor * hru_percent_imperv_EXIST_CHG print('tmp_stor = {}'.format(tmp_stor)) print('imperv_stor = {}'.format(imperv_stor)) print('_OLD = {}'.format(hru_percent_imperv_OLD)) print('_NEW = {}'.format(hru_percent_imperv_NEW)) print('_CHG = {}'.format(hru_percent_imperv_CHG)) print('_EXI = {}'.format(hru_percent_imperv_EXIST_CHG)) # %% [markdown] # ### Handle changes to imperv_stor_max # %% # Read in imperv_stor_max updates for current timestep # %% [markdown] # ### Handle changes to dprst_depth_avg and dprst_frac # %% dprst_area_max = dprst_frac * hru_area hru_area_perv -= dprst_area_max hru_frac_perv = hru_area_perv / hru_area # where active and dprst_area_max > 0 dprst_area_open_max = dprst_area_max * dprst_frac_open dprst_area_clos_max = dprst_area_max - dprst_area_open_max dprst_frac_clos = 1.0 - dprst_frac_open if hru_percent_imperv + dprst_frac > 0.999: print('ERROR: impervious plus depression fraction > 0.999') # Dynread is wrong has_closed_dprst = dprst_area_clos_max > 0.0 has_open_dprst = dprst_area_open_max > 0.0 # For all the active HRUs... if has_closed_dprst and dprst_area_max > 0.0: dprst_vol_clos_max = dprst_area_clos_max * dprst_depth_avg if has_open_dprst and dprst_area_max > 0.0: dprst_vol_open_max = dprst_area_open_max * dprst_depth_avg if has_closed_dprst and dprst_area_max > 0.0: dprst_vol_clos = dprst_frac_init * dprst_vol_clos_max if has_open_dprst and dprst_area_max > 0.0: dprst_vol_open = dprst_frac_init * dprst_vol_open_max if dprst_area_max > 0.0: dprst_vol_thres_open = op_flow_thres * dprst_vol_open_max if dprst_vol_open > 0.0 and dprst_area_max > 0.0: pass # dprst_area_open = depression_surface_area(dprst_vol_open, dprst_vol_open_max, dprst_area_open_max, va_open_exp) if dprst_vol_clos > 0.0 and dprst_area_max > 0.0: pass # dprst_area_clos = depression_surface_area(dprst_vol_clos, dprst_vol_clos_max, dprst_area_clos_max, va_clos_exp) if dprst_vol_clos_max > 0.0: dprst_vol_clos_frac = dprst_vol_clos / dprst_vol_clos_max if dprst_vol_open_max > 0.0: dprst_vol_open_frac = dprst_vol_open / dprst_vol_open_max if dprst_area_max > 0.0: dprst_vol_frac = (dprst_vol_open + dprst_vol_clos) / (dprst_vol_open_max + dprst_vol_clos_max) dprst_stor_hru = (dprst_vol_open + dprst_vol_clos) / hru_area # %% # %% # %% # %% soil_moist_tmp = soil_moist soil_rechr_tmp = soil_rechr print('------- BEFORE --------') print('dprst_area_max = {}'.format(dprst_area_max)) print('soil_moist = {}'.format(soil_moist)) print('soil_rechr = {}'.format(soil_rechr)) print('hru_area_imperv = {}'.format(hru_area_imperv)) print('hru_area_perv = {}'.format(hru_area_perv)) print('hru_frac_perv = {}'.format(hru_frac_perv)) print('hru_percent_imperv = {}'.format(hru_percent_imperv)) print('imperv_stor = {}'. format(imperv_stor)) dprst_frac_flag = 1 check_imperv = True if dprst_frac_flag == 1: # ??? Why is this done? We already have dprst_area_max from the prior timestep. dprst_area_max = dprst_frac * hru_area print('UPDATE: dprst_area_max = {}'.format(dprst_area_max)) if check_imperv: # frac_imperv could be a new or updated value frac_imperv = hru_percent_imperv_new print('frac_imperv = {}'.format(frac_imperv)) if frac_imperv > 0.999: print('ERROR: Dynamic value of the hru_percent_imperv > 0.999') elif imperv_stor > 0.0: if frac_imperv > 0.0: imperv_stor *= hru_percent_imperv / frac_imperv else: print('WARNING: Dynamic impervious changed to 0 when impervious storage > 0') tmp = imperv_stor * hru_percent_imperv / hru_frac_perv soil_moist_tmp += tmp soil_rechr_tmp += tmp imperv_stor = 0.0 hru_percent_imperv = frac_imperv hru_area_imperv = hru_area * frac_imperv print('------- AFTER --------') print('dprst_area_max = {}'.format(dprst_area_max)) print('soil_moist = {}'.format(soil_moist)) print('soil_rechr = {}'.format(soil_rechr)) print('soil_moist_tmp = {}'.format(soil_moist_tmp)) print('soil_rechr_tmp = {}'.format(soil_rechr_tmp)) print('hru_area_imperv = {}'.format(hru_area_imperv)) print('hru_area_perv = {}'.format(hru_area_perv)) print('hru_frac_perv = {}'.format(hru_frac_perv)) print('hru_percent_imperv = {}'.format(hru_percent_imperv)) print('imperv_stor = {}'. format(imperv_stor)) # %% check_dprst_frac = False if dprst_frac_flag == 1: dprst_area_max_tmp = dprst_area_max if check_dprst_frac: dprst_area_max_tmp = dprst_frac_NEW * hru_area if dprst_area_max_tmp > 0.0: if hru_percent_imperv + dprst_area_max_tmp > 0.999: if 0.999 - hru_percent_imperv < 0.001: print('ERROR: Fraction impervious + fraction dprst > 0.999 for HRU') tmp = dprst_vol_open + dprst_vol_clos if dprst_area_max_tmp == 0.0 and tmp > 0.0: print('WARNING: dprst_area reduced to 0 with storage > 0') new_storage = tmp / dprst_area_max_tmp / hru_frac_perv soil_moist_tmp += new_storage soil_rechr_tmp += new_storage dprst_vol_open = 0.0 dprst_vol_clos = 0.0 print('UPDATE: soil_moist_tmp = {}'.format(soil_moist_tmp)) print('UPDATE: soil_rechr_tmp = {}'.format(soil_rechr_tmp)) print('UPDATE: dprst_vol_clos = {}'.format(dprst_vol_clos)) print('UPDATE: dprst_vol_open = {}'.format(dprst_vol_open)) print(' OLD: dprst_area_max = {}'. format(dprst_area_max)) dprst_area_open_max = dprst_area_max_tmp * dprst_frac_open dprst_area_clos_max = dprst_area_max_tmp - dprst_area_open_max dprst_area_max = dprst_area_max_tmp print('UPDATE: dprst_area_open_max = {}'.format(dprst_area_open_max)) print('UPDATE: dprst_area_clos_max = {}'.format(dprst_area_clos_max)) print('UPDATE: dprst_area_max = {}'. format(dprst_area_max)) if dprst_area_clos_max > 0.0: dprst_clos_flag = False if dprst_area_open_max > 0.0: dprst_open_flag = False print(' OLD: dprst_frac = {}'.format(dprst_frac)) dprst_frac = dprst_area_max / hru_area dprst_vol_clos_max = dprst_area_clos_max * dprst_depth_avg dprst_vol_open_max = dprst_area_open_max * dprst_depth_avg dprst_vol_thres_open = dprst_vol_open_max * op_flow_thres print('UPDATE: dprst_frac = {}'.format(dprst_frac)) print('UPDATE: dprst_vol_clos_max = {}'.format(dprst_vol_clos_max)) print('UPDATE: dprst_vol_open_max = {}'.format(dprst_vol_open_max)) print('UPDATE: dprst_vol_thres_open = {}'.format(dprst_vol_thres_open)) if check_imperv or dprst_frac_flag == 1: hru_area_perv_NEW = hru_area - hru_area_imperv print('UPDATE: hru_area_perv_NEW = {}'.format(hru_area_perv_NEW)) if dprst_flag == 1: hru_area_perv_NEW -= dprst_area_max print('UPDATE: hru_area_perv_NEW = {}'.format(hru_area_perv_NEW)) if dprst_area_max + hru_area_imperv > 0.999 * hru_area: print('ERROR: Impervious + depression area > 0.99 * hru_area') if hru_area_perv != hru_area_perv_NEW: print('========= hru_area_perv != hru_area_perv_NEW =============') if hru_area_perv_NEW < 0.0000001: print('ERROR: Pervious area error for dynamic parameter') tmp = hru_area_perv / hru_area_perv_NEW print(' TEMP: tmp = {}'.format(tmp)) soil_moist_tmp *= tmp soil_rechr_tmp *= tmp print('UPDATE: soil_moist_tmp = {}'.format(soil_moist_tmp)) print('UPDATE: soil_rechr_tmp = {}'.format(soil_rechr_tmp)) print(' OLD: hru_area_perv = {}'.format(hru_area_perv)) print(' OLD: hru_frac_perv = {}'.format(hru_frac_perv)) hru_area_perv = hru_area_perv_NEW hru_frac_perv = hru_area_perv / hru_area print('UPDATE: hru_area_perv = {}'.format(hru_area_perv)) print('UPDATE: hru_frac_perv = {}'.format(hru_frac_perv)) # %% if dprst_depth_flag == 1: # Update dprst_depth_avg with any new values for timestep if dprst_area_max > 0.0: dprst_vol_clos_max = dprst_area_clos_max * dprst_depth_avg dprst_vol_open_max = dprst_area_open_max * dprst_depth_avg if dprst_vol_open_max > 0.0: dprst_vol_open_frac = dprst_vol_open / dprst_vol_open_max if dprst_vol_clos_max > 0.0: dprst_vol_clos_frac =dprst_vol_clos / dprst_vol_clos_max dprst_vol_frac = (dprst_vol_open + dprst_vol_clos) / (dprst_vol_open_max + dprst_vol_clos_max) # %% soil_moist = 566.0 soil_adj1 = soil_moist soil_adj2 = 1.0 imperv_stor = 0.1 hru_area = 149514.25399 hru_percent_imperv = 0.000018 hru_area_imperv = hru_percent_imperv * hru_area hru_area_perv = hru_area - hru_area_imperv hru_frac_perv = 1.0 - hru_percent_imperv hru_percent_imperv_OLD = 0.000017 hru_area_imperv_OLD = hru_percent_imperv_OLD * hru_area hru_area_perv_OLD = hru_area - hru_area_imperv_OLD hru_frac_perv_OLD = 1.0 - hru_percent_imperv_OLD adj = imperv_stor * hru_percent_imperv_OLD / hru_frac_perv_OLD print(adj) print('soil_adj1 = {}'.format(soil_adj1)) print('soil_adj2 = {}'.format(soil_adj2)) soil_adj1 += adj soil_adj2 += adj print('UPDATE: soil_adj1 = {}'.format(soil_adj1)) print('UPDATE: soil_adj2 = {}'.format(soil_adj2)) # adj = this%imperv_stor(chru) * hru_percent_imperv_old(chru) / hru_frac_perv_old(chru) # soil_moist_chg(chru) = soil_moist_chg(chru) + adj # soil_rechr_chg(chru) = soil_rechr_chg(chru) + adj # %% adj2 = hru_area_perv_OLD / hru_area_perv print(adj2) soil_adj1 *= adj2 soil_adj2 *= adj2 print('UPDATE: soil_adj1 = {}'.format(soil_adj1)) print('UPDATE: soil_adj2 = {}'.format(soil_adj2)) # adj = hru_area_perv_old(chru) / this%hru_area_perv(chru) # soil_moist_chg(chru) = soil_moist_chg(chru) * adj # soil_rechr_chg(chru) = soil_rechr_chg(chru) * adj # %% dprst_depth_avg = 57.9203 dprst_frac = 0.051539 # dprst_frac = 0.0 dprst_frac_init = 0.093112 dprst_frac_open = 0.9 dprst_area_max = dprst_frac * hru_area dprst_area_open_max = dprst_area_max * dprst_frac_open dprst_area_clos_max = dprst_area_max - dprst_area_open_max dprst_vol_clos_max = dprst_area_clos_max * dprst_depth_avg dprst_vol_open_max = dprst_area_open_max * dprst_depth_avg dprst_vol_clos = dprst_frac_init * dprst_vol_clos_max dprst_vol_open = dprst_frac_init * dprst_vol_open_max tmp = dprst_vol_open + dprst_vol_clos print(hru_frac_perv_OLD) adj3 = tmp / hru_frac_perv_OLD print(adj3) soil_adj1 += adj3 soil_adj2 += adj3 print('UPDATE: soil_adj1 = {}'.format(soil_adj1)) print('UPDATE: soil_adj2 = {}'.format(soil_adj2)) # tmp = this%dprst_vol_open(chru) + this%dprst_vol_clos(chru) # if (tmp > 0.0) then # write(output_unit, *) 'WARNING: dprst_area_max reduced to 0 with storage > 0' # write(output_unit, *) ' Storage was added to soil_moist and soil_rechr' # adj = tmp / hru_frac_perv_old(chru) # soil_moist_chg(chru) = soil_moist_chg(chru) + adj # soil_rechr_chg(chru) = soil_rechr_chg(chru) + adj # %% soil_moist + soil_adj2 # %%
dprst_depth_avg = 57.9203 dprst_frac = 0.051539 dprst_frac_init = 0.093112 dprst_frac_open = 1.0 hru_area = 149514.25399 hru_percent_imperv = 1.8e-05 op_flow_thres = 0.9264 va_open_exp = 0.001 va_clos_exp = 0.001 soil_moist_init = 1.0 soil_moist_init_frac = 0.370547 soil_moist_max = 2.904892 soil_rechr_init = 0.5 soil_rechr_init_frac = 0.371024 soil_rechr_max_frac = 0.994335 imperv_frac_flag = 1 dprst_frac_flag = 1 dprst_depth_flag = 1 check_imperv = False check_dprst_frac = False dprst_flag = 1 dprst_clos_flag = True dprst_open_flag = True soil_moist = soil_moist_init_frac * soil_moist_max soil_rechr = soil_rechr_max_frac * soil_moist_max soil_moist_tmp = 0.0 soil_rechr_tmp = 0.0 dprst_area_max = 7705.81513639 dprst_vol_clos = 0.0 dprst_vol_open = 41558.0387633 hru_area_imperv = 2.69125657182 hru_area_perv = 141805.747597 hru_frac_perv = 0.948443 imperv_stor = 0.1 hru_area_perv_new = 0.0 hru_percent_imperv_new = 1.7e-05 dprst_frac_new = 0.06 dprst_area_max_tmp = 0.0 hru_area_imperv = hru_percent_imperv * hru_area hru_area_perv = hru_area - hru_area_imperv hru_frac_perv = hru_area_perv / hru_area hru_percent_imperv_old = 1.8e-05 hru_percent_imperv_new = 0.0 hru_percent_imperv_chg = 0.0 if hru_percent_imperv_NEW > 0.0: hru_percent_imperv_chg = hru_percent_imperv_OLD / hru_percent_imperv_NEW hru_percent_imperv_exist_chg = hru_percent_imperv_OLD / hru_frac_perv if hru_percent_imperv_NEW > 0.999: print('ERROR') elif imperv_stor > 0.0: if hru_percent_imperv_NEW > 0.0: imperv_stor *= hru_percent_imperv_CHG else: print('WARNING') tmp_stor = imperv_stor * hru_percent_imperv_EXIST_CHG print('tmp_stor = {}'.format(tmp_stor)) print('imperv_stor = {}'.format(imperv_stor)) print('_OLD = {}'.format(hru_percent_imperv_OLD)) print('_NEW = {}'.format(hru_percent_imperv_NEW)) print('_CHG = {}'.format(hru_percent_imperv_CHG)) print('_EXI = {}'.format(hru_percent_imperv_EXIST_CHG)) dprst_area_max = dprst_frac * hru_area hru_area_perv -= dprst_area_max hru_frac_perv = hru_area_perv / hru_area dprst_area_open_max = dprst_area_max * dprst_frac_open dprst_area_clos_max = dprst_area_max - dprst_area_open_max dprst_frac_clos = 1.0 - dprst_frac_open if hru_percent_imperv + dprst_frac > 0.999: print('ERROR: impervious plus depression fraction > 0.999') has_closed_dprst = dprst_area_clos_max > 0.0 has_open_dprst = dprst_area_open_max > 0.0 if has_closed_dprst and dprst_area_max > 0.0: dprst_vol_clos_max = dprst_area_clos_max * dprst_depth_avg if has_open_dprst and dprst_area_max > 0.0: dprst_vol_open_max = dprst_area_open_max * dprst_depth_avg if has_closed_dprst and dprst_area_max > 0.0: dprst_vol_clos = dprst_frac_init * dprst_vol_clos_max if has_open_dprst and dprst_area_max > 0.0: dprst_vol_open = dprst_frac_init * dprst_vol_open_max if dprst_area_max > 0.0: dprst_vol_thres_open = op_flow_thres * dprst_vol_open_max if dprst_vol_open > 0.0 and dprst_area_max > 0.0: pass if dprst_vol_clos > 0.0 and dprst_area_max > 0.0: pass if dprst_vol_clos_max > 0.0: dprst_vol_clos_frac = dprst_vol_clos / dprst_vol_clos_max if dprst_vol_open_max > 0.0: dprst_vol_open_frac = dprst_vol_open / dprst_vol_open_max if dprst_area_max > 0.0: dprst_vol_frac = (dprst_vol_open + dprst_vol_clos) / (dprst_vol_open_max + dprst_vol_clos_max) dprst_stor_hru = (dprst_vol_open + dprst_vol_clos) / hru_area soil_moist_tmp = soil_moist soil_rechr_tmp = soil_rechr print('------- BEFORE --------') print('dprst_area_max = {}'.format(dprst_area_max)) print('soil_moist = {}'.format(soil_moist)) print('soil_rechr = {}'.format(soil_rechr)) print('hru_area_imperv = {}'.format(hru_area_imperv)) print('hru_area_perv = {}'.format(hru_area_perv)) print('hru_frac_perv = {}'.format(hru_frac_perv)) print('hru_percent_imperv = {}'.format(hru_percent_imperv)) print('imperv_stor = {}'.format(imperv_stor)) dprst_frac_flag = 1 check_imperv = True if dprst_frac_flag == 1: dprst_area_max = dprst_frac * hru_area print('UPDATE: dprst_area_max = {}'.format(dprst_area_max)) if check_imperv: frac_imperv = hru_percent_imperv_new print('frac_imperv = {}'.format(frac_imperv)) if frac_imperv > 0.999: print('ERROR: Dynamic value of the hru_percent_imperv > 0.999') elif imperv_stor > 0.0: if frac_imperv > 0.0: imperv_stor *= hru_percent_imperv / frac_imperv else: print('WARNING: Dynamic impervious changed to 0 when impervious storage > 0') tmp = imperv_stor * hru_percent_imperv / hru_frac_perv soil_moist_tmp += tmp soil_rechr_tmp += tmp imperv_stor = 0.0 hru_percent_imperv = frac_imperv hru_area_imperv = hru_area * frac_imperv print('------- AFTER --------') print('dprst_area_max = {}'.format(dprst_area_max)) print('soil_moist = {}'.format(soil_moist)) print('soil_rechr = {}'.format(soil_rechr)) print('soil_moist_tmp = {}'.format(soil_moist_tmp)) print('soil_rechr_tmp = {}'.format(soil_rechr_tmp)) print('hru_area_imperv = {}'.format(hru_area_imperv)) print('hru_area_perv = {}'.format(hru_area_perv)) print('hru_frac_perv = {}'.format(hru_frac_perv)) print('hru_percent_imperv = {}'.format(hru_percent_imperv)) print('imperv_stor = {}'.format(imperv_stor)) check_dprst_frac = False if dprst_frac_flag == 1: dprst_area_max_tmp = dprst_area_max if check_dprst_frac: dprst_area_max_tmp = dprst_frac_NEW * hru_area if dprst_area_max_tmp > 0.0: if hru_percent_imperv + dprst_area_max_tmp > 0.999: if 0.999 - hru_percent_imperv < 0.001: print('ERROR: Fraction impervious + fraction dprst > 0.999 for HRU') tmp = dprst_vol_open + dprst_vol_clos if dprst_area_max_tmp == 0.0 and tmp > 0.0: print('WARNING: dprst_area reduced to 0 with storage > 0') new_storage = tmp / dprst_area_max_tmp / hru_frac_perv soil_moist_tmp += new_storage soil_rechr_tmp += new_storage dprst_vol_open = 0.0 dprst_vol_clos = 0.0 print('UPDATE: soil_moist_tmp = {}'.format(soil_moist_tmp)) print('UPDATE: soil_rechr_tmp = {}'.format(soil_rechr_tmp)) print('UPDATE: dprst_vol_clos = {}'.format(dprst_vol_clos)) print('UPDATE: dprst_vol_open = {}'.format(dprst_vol_open)) print(' OLD: dprst_area_max = {}'.format(dprst_area_max)) dprst_area_open_max = dprst_area_max_tmp * dprst_frac_open dprst_area_clos_max = dprst_area_max_tmp - dprst_area_open_max dprst_area_max = dprst_area_max_tmp print('UPDATE: dprst_area_open_max = {}'.format(dprst_area_open_max)) print('UPDATE: dprst_area_clos_max = {}'.format(dprst_area_clos_max)) print('UPDATE: dprst_area_max = {}'.format(dprst_area_max)) if dprst_area_clos_max > 0.0: dprst_clos_flag = False if dprst_area_open_max > 0.0: dprst_open_flag = False print(' OLD: dprst_frac = {}'.format(dprst_frac)) dprst_frac = dprst_area_max / hru_area dprst_vol_clos_max = dprst_area_clos_max * dprst_depth_avg dprst_vol_open_max = dprst_area_open_max * dprst_depth_avg dprst_vol_thres_open = dprst_vol_open_max * op_flow_thres print('UPDATE: dprst_frac = {}'.format(dprst_frac)) print('UPDATE: dprst_vol_clos_max = {}'.format(dprst_vol_clos_max)) print('UPDATE: dprst_vol_open_max = {}'.format(dprst_vol_open_max)) print('UPDATE: dprst_vol_thres_open = {}'.format(dprst_vol_thres_open)) if check_imperv or dprst_frac_flag == 1: hru_area_perv_new = hru_area - hru_area_imperv print('UPDATE: hru_area_perv_NEW = {}'.format(hru_area_perv_NEW)) if dprst_flag == 1: hru_area_perv_new -= dprst_area_max print('UPDATE: hru_area_perv_NEW = {}'.format(hru_area_perv_NEW)) if dprst_area_max + hru_area_imperv > 0.999 * hru_area: print('ERROR: Impervious + depression area > 0.99 * hru_area') if hru_area_perv != hru_area_perv_NEW: print('========= hru_area_perv != hru_area_perv_NEW =============') if hru_area_perv_NEW < 1e-07: print('ERROR: Pervious area error for dynamic parameter') tmp = hru_area_perv / hru_area_perv_NEW print(' TEMP: tmp = {}'.format(tmp)) soil_moist_tmp *= tmp soil_rechr_tmp *= tmp print('UPDATE: soil_moist_tmp = {}'.format(soil_moist_tmp)) print('UPDATE: soil_rechr_tmp = {}'.format(soil_rechr_tmp)) print(' OLD: hru_area_perv = {}'.format(hru_area_perv)) print(' OLD: hru_frac_perv = {}'.format(hru_frac_perv)) hru_area_perv = hru_area_perv_NEW hru_frac_perv = hru_area_perv / hru_area print('UPDATE: hru_area_perv = {}'.format(hru_area_perv)) print('UPDATE: hru_frac_perv = {}'.format(hru_frac_perv)) if dprst_depth_flag == 1: if dprst_area_max > 0.0: dprst_vol_clos_max = dprst_area_clos_max * dprst_depth_avg dprst_vol_open_max = dprst_area_open_max * dprst_depth_avg if dprst_vol_open_max > 0.0: dprst_vol_open_frac = dprst_vol_open / dprst_vol_open_max if dprst_vol_clos_max > 0.0: dprst_vol_clos_frac = dprst_vol_clos / dprst_vol_clos_max dprst_vol_frac = (dprst_vol_open + dprst_vol_clos) / (dprst_vol_open_max + dprst_vol_clos_max) soil_moist = 566.0 soil_adj1 = soil_moist soil_adj2 = 1.0 imperv_stor = 0.1 hru_area = 149514.25399 hru_percent_imperv = 1.8e-05 hru_area_imperv = hru_percent_imperv * hru_area hru_area_perv = hru_area - hru_area_imperv hru_frac_perv = 1.0 - hru_percent_imperv hru_percent_imperv_old = 1.7e-05 hru_area_imperv_old = hru_percent_imperv_OLD * hru_area hru_area_perv_old = hru_area - hru_area_imperv_OLD hru_frac_perv_old = 1.0 - hru_percent_imperv_OLD adj = imperv_stor * hru_percent_imperv_OLD / hru_frac_perv_OLD print(adj) print('soil_adj1 = {}'.format(soil_adj1)) print('soil_adj2 = {}'.format(soil_adj2)) soil_adj1 += adj soil_adj2 += adj print('UPDATE: soil_adj1 = {}'.format(soil_adj1)) print('UPDATE: soil_adj2 = {}'.format(soil_adj2)) adj2 = hru_area_perv_OLD / hru_area_perv print(adj2) soil_adj1 *= adj2 soil_adj2 *= adj2 print('UPDATE: soil_adj1 = {}'.format(soil_adj1)) print('UPDATE: soil_adj2 = {}'.format(soil_adj2)) dprst_depth_avg = 57.9203 dprst_frac = 0.051539 dprst_frac_init = 0.093112 dprst_frac_open = 0.9 dprst_area_max = dprst_frac * hru_area dprst_area_open_max = dprst_area_max * dprst_frac_open dprst_area_clos_max = dprst_area_max - dprst_area_open_max dprst_vol_clos_max = dprst_area_clos_max * dprst_depth_avg dprst_vol_open_max = dprst_area_open_max * dprst_depth_avg dprst_vol_clos = dprst_frac_init * dprst_vol_clos_max dprst_vol_open = dprst_frac_init * dprst_vol_open_max tmp = dprst_vol_open + dprst_vol_clos print(hru_frac_perv_OLD) adj3 = tmp / hru_frac_perv_OLD print(adj3) soil_adj1 += adj3 soil_adj2 += adj3 print('UPDATE: soil_adj1 = {}'.format(soil_adj1)) print('UPDATE: soil_adj2 = {}'.format(soil_adj2)) soil_moist + soil_adj2
seller_name = str(input()) salary = float(input()) sales_made = float(input()) bonus = sales_made * 15 / 100 total_salary = salary + bonus print("TOTAL = R$ {:.2f}".format(total_salary))
seller_name = str(input()) salary = float(input()) sales_made = float(input()) bonus = sales_made * 15 / 100 total_salary = salary + bonus print('TOTAL = R$ {:.2f}'.format(total_salary))
class Solution: def reverse(self, x: int) -> int: MAX = 2 ** 31 - 1 MIN = -(2 ** 31) rev = 0 abs_x = abs(x) while abs_x != 0: pop = abs_x % 10 abs_x //= 10 if rev > MAX / 10 or rev < MIN / 10: return 0 rev = rev * 10 + pop return rev if x > 0 else -rev if __name__ == '__main__': print(Solution().reverse(-123)) print(Solution().reverse(123)) print(Solution().reverse(-0)) print(Solution().reverse(1563847412))
class Solution: def reverse(self, x: int) -> int: max = 2 ** 31 - 1 min = -2 ** 31 rev = 0 abs_x = abs(x) while abs_x != 0: pop = abs_x % 10 abs_x //= 10 if rev > MAX / 10 or rev < MIN / 10: return 0 rev = rev * 10 + pop return rev if x > 0 else -rev if __name__ == '__main__': print(solution().reverse(-123)) print(solution().reverse(123)) print(solution().reverse(-0)) print(solution().reverse(1563847412))
# Copyright 2019 Erik Maciejewski # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. load("@debian_buster_amd64//debs:deb_packages.bzl", "debian_buster_amd64") load("@debian_buster_arm64//debs:deb_packages.bzl", "debian_buster_arm64") load("@debian_buster_armhf//debs:deb_packages.bzl", "debian_buster_armhf") load("@debian_buster_noarch//debs:deb_packages.bzl", "debian_buster_noarch") load("@debian_buster_security_amd64//debs:deb_packages.bzl", "debian_buster_security_amd64") load("@debian_buster_security_arm64//debs:deb_packages.bzl", "debian_buster_security_arm64") load("@debian_buster_security_armhf//debs:deb_packages.bzl", "debian_buster_security_armhf") load("@debian_buster_security_noarch//debs:deb_packages.bzl", "debian_buster_security_noarch") debian_buster = { "amd64": debian_buster_amd64, "arm64": debian_buster_arm64, "arm": debian_buster_armhf, "noarch": debian_buster_noarch, } debian_buster_security = { "amd64": debian_buster_security_amd64, "arm64": debian_buster_security_arm64, "arm": debian_buster_security_armhf, "noarch": debian_buster_security_noarch, }
load('@debian_buster_amd64//debs:deb_packages.bzl', 'debian_buster_amd64') load('@debian_buster_arm64//debs:deb_packages.bzl', 'debian_buster_arm64') load('@debian_buster_armhf//debs:deb_packages.bzl', 'debian_buster_armhf') load('@debian_buster_noarch//debs:deb_packages.bzl', 'debian_buster_noarch') load('@debian_buster_security_amd64//debs:deb_packages.bzl', 'debian_buster_security_amd64') load('@debian_buster_security_arm64//debs:deb_packages.bzl', 'debian_buster_security_arm64') load('@debian_buster_security_armhf//debs:deb_packages.bzl', 'debian_buster_security_armhf') load('@debian_buster_security_noarch//debs:deb_packages.bzl', 'debian_buster_security_noarch') debian_buster = {'amd64': debian_buster_amd64, 'arm64': debian_buster_arm64, 'arm': debian_buster_armhf, 'noarch': debian_buster_noarch} debian_buster_security = {'amd64': debian_buster_security_amd64, 'arm64': debian_buster_security_arm64, 'arm': debian_buster_security_armhf, 'noarch': debian_buster_security_noarch}
def getProtocol(url): ret = url.split("://") return ret[0] def getDomain(url): ret = url.split("://") ret2 = ret[1].split("/") full_domain = ret2[0] sub_domain = getSubD(url) if sub_domain is None: return full_domain else: return full_domain.replace(sub_domain + ".", "") def getSubD(url): ret = url.split("://") ret2 = ret[1].split(".") if len(ret2) == 3 and ret2[-1] == "br/algumacoisa": return None elif len(ret2) > 2: return ret2[0] else: return None # ret = url.split("://") # ret2 = ret[1].split(".") # ret3 = ret2[1].split("/") # return ret3[0] def parserUrl(url): return {"protocol": getProtocol(url), "domain": getDomain(url)} def main(): return True
def get_protocol(url): ret = url.split('://') return ret[0] def get_domain(url): ret = url.split('://') ret2 = ret[1].split('/') full_domain = ret2[0] sub_domain = get_sub_d(url) if sub_domain is None: return full_domain else: return full_domain.replace(sub_domain + '.', '') def get_sub_d(url): ret = url.split('://') ret2 = ret[1].split('.') if len(ret2) == 3 and ret2[-1] == 'br/algumacoisa': return None elif len(ret2) > 2: return ret2[0] else: return None def parser_url(url): return {'protocol': get_protocol(url), 'domain': get_domain(url)} def main(): return True
D = DiGraph({ 0: [1, 10, 19], 1: [8, 2], 2: [3, 6], 3: [19, 4], 4: [17, 5], 5: [6, 15], 6: [7], 7: [8, 14], 8: [9], 9: [10, 13], 10: [11], 11: [12, 18], 12: [16, 13], 13: [14], 14: [15], 15: [16], 16: [17], 17: [18], 18: [19], 19: []}) for u, v, l in D.edges(): D.set_edge_label(u, v, f'({u},{v})') sphinx_plot(D.graphplot(edge_labels=True, layout='circular'))
d = di_graph({0: [1, 10, 19], 1: [8, 2], 2: [3, 6], 3: [19, 4], 4: [17, 5], 5: [6, 15], 6: [7], 7: [8, 14], 8: [9], 9: [10, 13], 10: [11], 11: [12, 18], 12: [16, 13], 13: [14], 14: [15], 15: [16], 16: [17], 17: [18], 18: [19], 19: []}) for (u, v, l) in D.edges(): D.set_edge_label(u, v, f'({u},{v})') sphinx_plot(D.graphplot(edge_labels=True, layout='circular'))
URL = 'https://dogsearch.moag.gov.il/#/pages/pets' ELEMENT_LIST = ['name', 'gender', 'breed', 'birthDate', 'owner', 'address', 'city', 'phone1', 'phone2', 'neutering', 'rabies-vaccine', 'rabies-vaccine-date', 'vet', 'viewReport', 'license', 'license-date-start', 'domain', 'license-latest-update', 'status'] OUTPUT_FILE = 'outputs/dogs.csv' DELAY_SEC = 5
url = 'https://dogsearch.moag.gov.il/#/pages/pets' element_list = ['name', 'gender', 'breed', 'birthDate', 'owner', 'address', 'city', 'phone1', 'phone2', 'neutering', 'rabies-vaccine', 'rabies-vaccine-date', 'vet', 'viewReport', 'license', 'license-date-start', 'domain', 'license-latest-update', 'status'] output_file = 'outputs/dogs.csv' delay_sec = 5
''' Creating A function to group the sample based on the accession split the sample name based on '-' and store it into variable called 'accession_group' ''' def string_split (dataframe) : column_name = list(dataframe) sample_ID = column_name[0] accession_group = [] for word in dataframe[sample_ID] : split = word.split('-') accession_group.append(split[0]) return accession_group
""" Creating A function to group the sample based on the accession split the sample name based on '-' and store it into variable called 'accession_group' """ def string_split(dataframe): column_name = list(dataframe) sample_id = column_name[0] accession_group = [] for word in dataframe[sample_ID]: split = word.split('-') accession_group.append(split[0]) return accession_group
def solution(X, Y, A): N = len(A) result = -1 v = 0 k = 0 nX = 0 nY = 0 for i in range(N): if A[i] == X: nX += 1 if A[i] == Y: nY += 1 #if nX == nY > 1: #result = i if nX == nY : #v += 1 k = i #return result print(k) print(solution(1, 50, [3, 2, 1, 50]))
def solution(X, Y, A): n = len(A) result = -1 v = 0 k = 0 n_x = 0 n_y = 0 for i in range(N): if A[i] == X: n_x += 1 if A[i] == Y: n_y += 1 if nX == nY: k = i print(k) print(solution(1, 50, [3, 2, 1, 50]))
class Solution: def isHappy(self, n: 'int') -> 'bool': happies = set() def powers(n): result = 0 while n: result += (n % 10) ** 2 n //= 10 return result power = n while True: power = powers(power) if power // 10 == 0 and power % 10 == 1: return True if power in happies: return False happies.add(power)
class Solution: def is_happy(self, n: 'int') -> 'bool': happies = set() def powers(n): result = 0 while n: result += (n % 10) ** 2 n //= 10 return result power = n while True: power = powers(power) if power // 10 == 0 and power % 10 == 1: return True if power in happies: return False happies.add(power)
megabytesMonthly = int(input()) megabyteCount = 0 months = int(input()) monthlyUsage = [] for every in range(months): megabyteCount += megabytesMonthly megabyteCount -= int(input()) print(megabyteCount + megabytesMonthly)
megabytes_monthly = int(input()) megabyte_count = 0 months = int(input()) monthly_usage = [] for every in range(months): megabyte_count += megabytesMonthly megabyte_count -= int(input()) print(megabyteCount + megabytesMonthly)
def safedivide( numerator: float, denominator: float, valueonfailure: float = float("nan") ) -> float: try: return numerator / denominator except ZeroDivisionError: return valueonfailure
def safedivide(numerator: float, denominator: float, valueonfailure: float=float('nan')) -> float: try: return numerator / denominator except ZeroDivisionError: return valueonfailure
number = int(input("Enter number: ")) for num in range(1111, 9999 + 1): is_special = True for digit in str(num): digit = int(digit) if (digit == 0) or (number % digit !=0): is_special = False break if is_special: print(num)
number = int(input('Enter number: ')) for num in range(1111, 9999 + 1): is_special = True for digit in str(num): digit = int(digit) if digit == 0 or number % digit != 0: is_special = False break if is_special: print(num)
#!/usr/bin/python3 def shift(text): return text[1:] + text[0] t = input() s = input() found = False for i in range(len(s)): if t.find(s) != -1: found = True break s = shift(s) if found == True: print("yes") else: print("no")
def shift(text): return text[1:] + text[0] t = input() s = input() found = False for i in range(len(s)): if t.find(s) != -1: found = True break s = shift(s) if found == True: print('yes') else: print('no')
def grep(pattern): print("Start coroutine") try: while True: line = yield if pattern in line: print(line) except GeneratorExit: print("Stop coroutine") def grep_python(): g = grep("Python") yield from g g = grep_python() # generator next(g) g.send("Is Go better?") g.send("Python is not simple")
def grep(pattern): print('Start coroutine') try: while True: line = (yield) if pattern in line: print(line) except GeneratorExit: print('Stop coroutine') def grep_python(): g = grep('Python') yield from g g = grep_python() next(g) g.send('Is Go better?') g.send('Python is not simple')
class A: def foo(self): pass async def bar(self): pass
class A: def foo(self): pass async def bar(self): pass
def clamp(floatnum, floatmin, floatmax): if floatnum < floatmin: floatnum = floatmin if floatnum > floatmax: floatnum = floatmax return floatnum def smootherstep(edge0, edge1, x): # Scale, bias and saturate x to 0..1 range x = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0) # Evaluate polynomial # Standard smoothstep version if needed: x * x * (3 - 2 - x) return x * x * x * (x * (x * 6 - 15) + 10)
def clamp(floatnum, floatmin, floatmax): if floatnum < floatmin: floatnum = floatmin if floatnum > floatmax: floatnum = floatmax return floatnum def smootherstep(edge0, edge1, x): x = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0) return x * x * x * (x * (x * 6 - 15) + 10)
ar = [float(i) for i in input().split()] ar_sq = [] for i in range(len(ar)): ar_sq.append(ar[i]**2) ar_sq = sorted(ar_sq) print(ar_sq[0], end = ' ') for i in range(1, len(ar_sq)): if ar_sq[i] != ar_sq[i-1]: print(ar_sq[i], end = ' ')
ar = [float(i) for i in input().split()] ar_sq = [] for i in range(len(ar)): ar_sq.append(ar[i] ** 2) ar_sq = sorted(ar_sq) print(ar_sq[0], end=' ') for i in range(1, len(ar_sq)): if ar_sq[i] != ar_sq[i - 1]: print(ar_sq[i], end=' ')
# # PySNMP MIB module DISMAN-EXPRESSION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DISMAN-EXPRESSION-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:47:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") sysUpTime, = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime") MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Unsigned32, mib_2, zeroDotZero, IpAddress, NotificationType, MibIdentifier, ModuleIdentity, Gauge32, Bits, Counter32, TimeTicks, iso, Counter64, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Unsigned32", "mib-2", "zeroDotZero", "IpAddress", "NotificationType", "MibIdentifier", "ModuleIdentity", "Gauge32", "Bits", "Counter32", "TimeTicks", "iso", "Counter64", "ObjectIdentity") DisplayString, TruthValue, RowStatus, TextualConvention, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "RowStatus", "TextualConvention", "TimeStamp") dismanExpressionMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 90)) dismanExpressionMIB.setRevisions(('2000-10-16 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: dismanExpressionMIB.setRevisionsDescriptions(('This is the initial version of this MIB. Published as RFC 2982',)) if mibBuilder.loadTexts: dismanExpressionMIB.setLastUpdated('200010160000Z') if mibBuilder.loadTexts: dismanExpressionMIB.setOrganization('IETF Distributed Management Working Group') if mibBuilder.loadTexts: dismanExpressionMIB.setContactInfo('Ramanathan Kavasseri Cisco Systems, Inc. 170 West Tasman Drive, San Jose CA 95134-1706. Phone: +1 408 527 2446 Email: ramk@cisco.com') if mibBuilder.loadTexts: dismanExpressionMIB.setDescription('The MIB module for defining expressions of MIB objects for management purposes.') dismanExpressionMIBObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1)) expResource = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 1)) expDefine = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 2)) expValue = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 3)) expResourceDeltaMinimum = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(1, 600), ))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: expResourceDeltaMinimum.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaMinimum.setDescription("The minimum expExpressionDeltaInterval this system will accept. A system may use the larger values of this minimum to lessen the impact of constantly computing deltas. For larger delta sampling intervals the system samples less often and suffers less overhead. This object provides a way to enforce such lower overhead for all expressions created after it is set. The value -1 indicates that expResourceDeltaMinimum is irrelevant as the system will not accept 'deltaValue' as a value for expObjectSampleType. Unless explicitly resource limited, a system's value for this object should be 1, allowing as small as a 1 second interval for ongoing delta sampling. Changing this value will not invalidate an existing setting of expObjectSampleType.") expResourceDeltaWildcardInstanceMaximum = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 2), Unsigned32()).setUnits('instances').setMaxAccess("readwrite") if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceMaximum.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceMaximum.setDescription("For every instance of a deltaValue object, one dynamic instance entry is needed for holding the instance value from the previous sample, i.e. to maintain state. This object limits maximum number of dynamic instance entries this system will support for wildcarded delta objects in expressions. For a given delta expression, the number of dynamic instances is the number of values that meet all criteria to exist times the number of delta values in the expression. A value of 0 indicates no preset limit, that is, the limit is dynamic based on system operation and resources. Unless explicitly resource limited, a system's value for this object should be 0. Changing this value will not eliminate or inhibit existing delta wildcard instance objects but will prevent the creation of more such objects. An attempt to allocate beyond the limit results in expErrorCode being tooManyWildcardValues for that evaluation attempt.") expResourceDeltaWildcardInstances = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 3), Gauge32()).setUnits('instances').setMaxAccess("readonly") if mibBuilder.loadTexts: expResourceDeltaWildcardInstances.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaWildcardInstances.setDescription('The number of currently active instance entries as defined for expResourceDeltaWildcardInstanceMaximum.') expResourceDeltaWildcardInstancesHigh = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 4), Gauge32()).setUnits('instances').setMaxAccess("readonly") if mibBuilder.loadTexts: expResourceDeltaWildcardInstancesHigh.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaWildcardInstancesHigh.setDescription('The highest value of expResourceDeltaWildcardInstances that has occurred since initialization of the managed system.') expResourceDeltaWildcardInstanceResourceLacks = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 5), Counter32()).setUnits('instances').setMaxAccess("readonly") if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceResourceLacks.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceResourceLacks.setDescription('The number of times this system could not evaluate an expression because that would have created a value instance in excess of expResourceDeltaWildcardInstanceMaximum.') expExpressionTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 1), ) if mibBuilder.loadTexts: expExpressionTable.setStatus('current') if mibBuilder.loadTexts: expExpressionTable.setDescription('A table of expression definitions.') expExpressionEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName")) if mibBuilder.loadTexts: expExpressionEntry.setStatus('current') if mibBuilder.loadTexts: expExpressionEntry.setDescription("Information about a single expression. New expressions can be created using expExpressionRowStatus. To create an expression first create the named entry in this table. Then use expExpressionName to populate expObjectTable. For expression evaluation to succeed all related entries in expExpressionTable and expObjectTable must be 'active'. If these conditions are not met the corresponding values in expValue simply are not instantiated. Deleting an entry deletes all related entries in expObjectTable and expErrorTable. Because of the relationships among the multiple tables for an expression (expExpressionTable, expObjectTable, and expValueTable) and the SNMP rules for independence in setting object values, it is necessary to do final error checking when an expression is evaluated, that is, when one of its instances in expValueTable is read or a delta interval expires. Earlier checking need not be done and an implementation may not impose any ordering on the creation of objects related to an expression. To maintain security of MIB information, when creating a new row in this table, the managed system must record the security credentials of the requester. These security credentials are the parameters necessary as inputs to isAccessAllowed from the Architecture for Describing SNMP Management Frameworks. When obtaining the objects that make up the expression, the system must (conceptually) use isAccessAllowed to ensure that it does not violate security. The evaluation of the expression takes place under the security credentials of the creator of its expExpressionEntry. Values of read-write objects in this table may be changed at any time.") expExpressionOwner = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))) if mibBuilder.loadTexts: expExpressionOwner.setStatus('current') if mibBuilder.loadTexts: expExpressionOwner.setDescription('The owner of this entry. The exact semantics of this string are subject to the security policy defined by the security administrator.') expExpressionName = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))) if mibBuilder.loadTexts: expExpressionName.setStatus('current') if mibBuilder.loadTexts: expExpressionName.setDescription('The name of the expression. This is locally unique, within the scope of an expExpressionOwner.') expExpression = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1024))).setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpression.setStatus('current') if mibBuilder.loadTexts: expExpression.setDescription("The expression to be evaluated. This object is the same as a DisplayString (RFC 1903) except for its maximum length. Except for the variable names the expression is in ANSI C syntax. Only the subset of ANSI C operators and functions listed here is allowed. Variables are expressed as a dollar sign ('$') and an integer that corresponds to an expObjectIndex. An example of a valid expression is: ($1-$5)*100 Expressions must not be recursive, that is although an expression may use the results of another expression, it must not contain any variable that is directly or indirectly a result of its own evaluation. The managed system must check for recursive expressions. The only allowed operators are: ( ) - (unary) + - * / % & | ^ << >> ~ ! && || == != > >= < <= Note the parentheses are included for parenthesizing the expression, not for casting data types. The only constant types defined are: int (32-bit signed) long (64-bit signed) unsigned int unsigned long hexadecimal character string oid The default type for a positive integer is int unless it is too large in which case it is long. All but oid are as defined for ANSI C. Note that a hexadecimal constant may end up as a scalar or an array of 8-bit integers. A string constant is enclosed in double quotes and may contain back-slashed individual characters as in ANSI C. An oid constant comprises 32-bit, unsigned integers and at least one period, for example: 0. .0 1.3.6.1 No additional leading or trailing subidentifiers are automatically added to an OID constant. The constant is taken as expressed. Integer-typed objects are treated as 32- or 64-bit, signed or unsigned integers, as appropriate. The results of mixing them are as for ANSI C, including the type of the result. Note that a 32-bit value is thus promoted to 64 bits only in an operation with a 64-bit value. There is no provision for larger values to handle overflow. Relative to SNMP data types, a resulting value becomes unsigned when calculating it uses any unsigned value, including a counter. To force the final value to be of data type counter the expression must explicitly use the counter32() or counter64() function (defined below). OCTET STRINGS and OBJECT IDENTIFIERs are treated as one-dimensioned arrays of unsigned 8-bit integers and unsigned 32-bit integers, respectively. IpAddresses are treated as 32-bit, unsigned integers in network byte order, that is, the hex version of 255.0.0.0 is 0xff000000. Conditional expressions result in a 32-bit, unsigned integer of value 0 for false or 1 for true. When an arbitrary value is used as a boolean 0 is false and non-zero is true. Rules for the resulting data type from an operation, based on the operator: For << and >> the result is the same as the left hand operand. For &&, ||, ==, !=, <, <=, >, and >= the result is always Unsigned32. For unary - the result is always Integer32. For +, -, *, /, %, &, |, and ^ the result is promoted according to the following rules, in order from most to least preferred: If left hand and right hand operands are the same type, use that. If either side is Counter64, use that. If either side is IpAddress, use that. If either side is TimeTicks, use that. If either side is Counter32, use that. Otherwise use Unsigned32. The following rules say what operators apply with what data types. Any combination not explicitly defined does not work. For all operators any of the following can be the left hand or right hand operand: Integer32, Counter32, Unsigned32, Counter64. The operators +, -, *, /, %, <, <=, >, and >= work with TimeTicks. The operators &, |, and ^ work with IpAddress. The operators << and >> work with IpAddress but only as the left hand operand. The + operator performs a concatenation of two OCTET STRINGs or two OBJECT IDENTIFIERs. The operators &, | perform bitwise operations on OCTET STRINGs. If the OCTET STRING happens to be a DisplayString the results may be meaningless, but the agent system does not check this as some such systems do not have this information. The operators << and >> perform bitwise operations on OCTET STRINGs appearing as the left hand operand. The only functions defined are: counter32 counter64 arraySection stringBegins stringEnds stringContains oidBegins oidEnds oidContains average maximum minimum sum exists The following function definitions indicate their parameters by naming the data type of the parameter in the parameter's position in the parameter list. The parameter must be of the type indicated and generally may be a constant, a MIB object, a function, or an expression. counter32(integer) - wrapped around an integer value counter32 forces Counter32 as a data type. counter64(integer) - similar to counter32 except that the resulting data type is 'counter64'. arraySection(array, integer, integer) - selects a piece of an array (i.e. part of an OCTET STRING or OBJECT IDENTIFIER). The integer arguments are in the range 0 to 4,294,967,295. The first is an initial array index (one-dimensioned) and the second is an ending array index. A value of 0 indicates first or last element, respectively. If the first element is larger than the array length the result is 0 length. If the second integer is less than or equal to the first, the result is 0 length. If the second is larger than the array length it indicates last element. stringBegins/Ends/Contains(octetString, octetString) - looks for the second string (which can be a string constant) in the first and returns the one-dimensioned arrayindex where the match began. A return value of 0 indicates no match (i.e. boolean false). oidBegins/Ends/Contains(oid, oid) - looks for the second OID (which can be an OID constant) in the first and returns the the one-dimensioned index where the match began. A return value of 0 indicates no match (i.e. boolean false). average/maximum/minimum(integer) - calculates the average, minimum, or maximum value of the integer valued object over multiple sample times. If the object disappears for any sample period, the accumulation and the resulting value object cease to exist until the object reappears at which point the calculation starts over. sum(integerObject*) - sums all available values of the wildcarded integer object, resulting in an integer scalar. Must be used with caution as it wraps on overflow with no notification. exists(anyTypeObject) - verifies the object instance exists. A return value of 0 indicates NoSuchInstance (i.e. boolean false).") expExpressionValueType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("counter32", 1), ("unsigned32", 2), ("timeTicks", 3), ("integer32", 4), ("ipAddress", 5), ("octetString", 6), ("objectId", 7), ("counter64", 8))).clone('counter32')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpressionValueType.setStatus('current') if mibBuilder.loadTexts: expExpressionValueType.setDescription('The type of the expression value. One and only one of the value objects in expValueTable will be instantiated to match this type. If the result of the expression can not be made into this type, an invalidOperandType error will occur.') expExpressionComment = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 5), SnmpAdminString().clone(hexValue="")).setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpressionComment.setStatus('current') if mibBuilder.loadTexts: expExpressionComment.setDescription('A comment to explain the use or meaning of the expression.') expExpressionDeltaInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 86400))).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpressionDeltaInterval.setStatus('current') if mibBuilder.loadTexts: expExpressionDeltaInterval.setDescription("Sampling interval for objects in this expression with expObjectSampleType 'deltaValue'. This object has no effect if the the expression has no deltaValue objects. A value of 0 indicates no automated sampling. In this case the delta is the difference from the last time the expression was evaluated. Note that this is subject to unpredictable delta times in the face of retries or multiple managers. A value greater than zero is the number of seconds between automated samples. Until the delta interval has expired once the delta for the object is effectively not instantiated and evaluating the expression has results as if the object itself were not instantiated. Note that delta values potentially consume large amounts of system CPU and memory. Delta state and processing must continue constantly even if the expression is not being used. That is, the expression is being evaluated every delta interval, even if no application is reading those values. For wildcarded objects this can be substantial overhead. Note that delta intervals, external expression value sampling intervals and delta intervals for expressions within other expressions can have unusual interactions as they are impossible to synchronize accurately. In general one interval embedded below another must be enough shorter that the higher sample sees relatively smooth, predictable behavior. So, for example, to avoid the higher level getting the same sample twice, the lower level should sample at least twice as fast as the higher level does.") expExpressionPrefix = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 7), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: expExpressionPrefix.setStatus('current') if mibBuilder.loadTexts: expExpressionPrefix.setDescription('An object prefix to assist an application in determining the instance indexing to use in expValueTable, relieving the application of the need to scan the expObjectTable to determine such a prefix. See expObjectTable for information on wildcarded objects. If the expValueInstance portion of the value OID may be treated as a scalar (that is, normally, 0) the value of expExpressionPrefix is zero length, that is, no OID at all. Note that zero length implies a null OID, not the OID 0.0. Otherwise, the value of expExpressionPrefix is the expObjectID value of any one of the wildcarded objects for the expression. This is sufficient, as the remainder, that is, the instance fragment relevant to instancing the values, must be the same for all wildcarded objects in the expression.') expExpressionErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expExpressionErrors.setStatus('current') if mibBuilder.loadTexts: expExpressionErrors.setDescription('The number of errors encountered while evaluating this expression. Note that an object in the expression not being accessible, is not considered an error. An example of an inaccessible object is when the object is excluded from the view of the user whose security credentials are used in the expression evaluation. In such cases, it is a legitimate condition that causes the corresponding expression value not to be instantiated.') expExpressionEntryStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 9), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: expExpressionEntryStatus.setStatus('current') if mibBuilder.loadTexts: expExpressionEntryStatus.setDescription('The control that allows creation and deletion of entries.') expErrorTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 2), ) if mibBuilder.loadTexts: expErrorTable.setStatus('current') if mibBuilder.loadTexts: expErrorTable.setDescription('A table of expression errors.') expErrorEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName")) if mibBuilder.loadTexts: expErrorEntry.setStatus('current') if mibBuilder.loadTexts: expErrorEntry.setDescription('Information about errors in processing an expression. Entries appear in this table only when there is a matching expExpressionEntry and then only when there has been an error for that expression as reflected by the error codes defined for expErrorCode.') expErrorTime = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 1), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: expErrorTime.setStatus('current') if mibBuilder.loadTexts: expErrorTime.setDescription('The value of sysUpTime the last time an error caused a failure to evaluate this expression.') expErrorIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expErrorIndex.setStatus('current') if mibBuilder.loadTexts: expErrorIndex.setDescription('The one-dimensioned character array index into expExpression for where the error occurred. The value zero indicates irrelevance.') expErrorCode = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("invalidSyntax", 1), ("undefinedObjectIndex", 2), ("unrecognizedOperator", 3), ("unrecognizedFunction", 4), ("invalidOperandType", 5), ("unmatchedParenthesis", 6), ("tooManyWildcardValues", 7), ("recursion", 8), ("deltaTooShort", 9), ("resourceUnavailable", 10), ("divideByZero", 11)))).setMaxAccess("readonly") if mibBuilder.loadTexts: expErrorCode.setStatus('current') if mibBuilder.loadTexts: expErrorCode.setDescription("The error that occurred. In the following explanations the expected timing of the error is in parentheses. 'S' means the error occurs on a Set request. 'E' means the error occurs on the attempt to evaluate the expression either due to Get from expValueTable or in ongoing delta processing. invalidSyntax the value sent for expExpression is not valid Expression MIB expression syntax (S) undefinedObjectIndex an object reference ($n) in expExpression does not have a matching instance in expObjectTable (E) unrecognizedOperator the value sent for expExpression held an unrecognized operator (S) unrecognizedFunction the value sent for expExpression held an unrecognized function name (S) invalidOperandType an operand in expExpression is not the right type for the associated operator or result (SE) unmatchedParenthesis the value sent for expExpression is not correctly parenthesized (S) tooManyWildcardValues evaluating the expression exceeded the limit set by expResourceDeltaWildcardInstanceMaximum (E) recursion through some chain of embedded expressions the expression invokes itself (E) deltaTooShort the delta for the next evaluation passed before the system could evaluate the present sample (E) resourceUnavailable some resource, typically dynamic memory, was unavailable (SE) divideByZero an attempt to divide by zero occurred (E) For the errors that occur when the attempt is made to set expExpression Set request fails with the SNMP error code 'wrongValue'. Such failures refer to the most recent failure to Set expExpression, not to the present value of expExpression which must be either unset or syntactically correct. Errors that occur during evaluation for a Get* operation return the SNMP error code 'genErr' except for 'tooManyWildcardValues' and 'resourceUnavailable' which return the SNMP error code 'resourceUnavailable'.") expErrorInstance = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 4), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: expErrorInstance.setStatus('current') if mibBuilder.loadTexts: expErrorInstance.setDescription('The expValueInstance being evaluated when the error occurred. A zero-length indicates irrelevance.') expObjectTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 3), ) if mibBuilder.loadTexts: expObjectTable.setStatus('current') if mibBuilder.loadTexts: expObjectTable.setDescription('A table of object definitions for each expExpression. Wildcarding instance IDs: It is legal to omit all or part of the instance portion for some or all of the objects in an expression. (See the DESCRIPTION of expObjectID for details. However, note that if more than one object in the same expression is wildcarded in this way, they all must be objects where that portion of the instance is the same. In other words, all objects may be in the same SEQUENCE or in different SEQUENCEs but with the same semantic index value (e.g., a value of ifIndex) for the wildcarded portion.') expObjectEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName"), (0, "DISMAN-EXPRESSION-MIB", "expObjectIndex")) if mibBuilder.loadTexts: expObjectEntry.setStatus('current') if mibBuilder.loadTexts: expObjectEntry.setDescription('Information about an object. An application uses expObjectEntryStatus to create entries in this table while in the process of defining an expression. Values of read-create objects in this table may be changed at any time.') expObjectIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))) if mibBuilder.loadTexts: expObjectIndex.setStatus('current') if mibBuilder.loadTexts: expObjectIndex.setDescription("Within an expression, a unique, numeric identification for an object. Prefixed with a dollar sign ('$') this is used to reference the object in the corresponding expExpression.") expObjectID = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 2), ObjectIdentifier()).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectID.setStatus('current') if mibBuilder.loadTexts: expObjectID.setDescription('The OBJECT IDENTIFIER (OID) of this object. The OID may be fully qualified, meaning it includes a complete instance identifier part (e.g., ifInOctets.1 or sysUpTime.0), or it may not be fully qualified, meaning it may lack all or part of the instance identifier. If the expObjectID is not fully qualified, then expObjectWildcard must be set to true(1). The value of the expression will be multiple values, as if done for a GetNext sweep of the object. An object here may itself be the result of an expression but recursion is not allowed. NOTE: The simplest implementations of this MIB may not allow wildcards.') expObjectIDWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 3), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectIDWildcard.setStatus('current') if mibBuilder.loadTexts: expObjectIDWildcard.setDescription('A true value indicates the expObjecID of this row is a wildcard object. False indicates that expObjectID is fully instanced. If all expObjectWildcard values for a given expression are FALSE, expExpressionPrefix will reflect a scalar object (i.e. will be 0.0). NOTE: The simplest implementations of this MIB may not allow wildcards.') expObjectSampleType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("absoluteValue", 1), ("deltaValue", 2), ("changedValue", 3))).clone('absoluteValue')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectSampleType.setStatus('current') if mibBuilder.loadTexts: expObjectSampleType.setDescription("The method of sampling the selected variable. An 'absoluteValue' is simply the present value of the object. A 'deltaValue' is the present value minus the previous value, which was sampled expExpressionDeltaInterval seconds ago. This is intended primarily for use with SNMP counters, which are meaningless as an 'absoluteValue', but may be used with any integer-based value. A 'changedValue' is a boolean for whether the present value is different from the previous value. It is applicable to any data type and results in an Unsigned32 with value 1 if the object's value is changed and 0 if not. In all other respects it is as a 'deltaValue' and all statements and operation regarding delta values apply to changed values. When an expression contains both delta and absolute values the absolute values are obtained at the end of the delta period.") sysUpTimeInstance = MibIdentifier((1, 3, 6, 1, 2, 1, 1, 3, 0)) expObjectDeltaDiscontinuityID = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 5), ObjectIdentifier().clone((1, 3, 6, 1, 2, 1, 1, 3, 0))).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectDeltaDiscontinuityID.setStatus('current') if mibBuilder.loadTexts: expObjectDeltaDiscontinuityID.setDescription("The OBJECT IDENTIFIER (OID) of a TimeTicks, TimeStamp, or DateAndTime object that indicates a discontinuity in the value at expObjectID. This object is instantiated only if expObjectSampleType is 'deltaValue' or 'changedValue'. The OID may be for a leaf object (e.g. sysUpTime.0) or may be wildcarded to match expObjectID. This object supports normal checking for a discontinuity in a counter. Note that if this object does not point to sysUpTime discontinuity checking must still check sysUpTime for an overall discontinuity. If the object identified is not accessible no discontinuity check will be made.") expObjectDiscontinuityIDWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 6), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectDiscontinuityIDWildcard.setStatus('current') if mibBuilder.loadTexts: expObjectDiscontinuityIDWildcard.setDescription("A true value indicates the expObjectDeltaDiscontinuityID of this row is a wildcard object. False indicates that expObjectDeltaDiscontinuityID is fully instanced. This object is instantiated only if expObjectSampleType is 'deltaValue' or 'changedValue'. NOTE: The simplest implementations of this MIB may not allow wildcards.") expObjectDiscontinuityIDType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("timeTicks", 1), ("timeStamp", 2), ("dateAndTime", 3))).clone('timeTicks')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectDiscontinuityIDType.setStatus('current') if mibBuilder.loadTexts: expObjectDiscontinuityIDType.setDescription("The value 'timeTicks' indicates the expObjectDeltaDiscontinuityID of this row is of syntax TimeTicks. The value 'timeStamp' indicates syntax TimeStamp. The value 'dateAndTime indicates syntax DateAndTime. This object is instantiated only if expObjectSampleType is 'deltaValue' or 'changedValue'.") expObjectConditional = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 8), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectConditional.setStatus('current') if mibBuilder.loadTexts: expObjectConditional.setDescription('The OBJECT IDENTIFIER (OID) of an object that overrides whether the instance of expObjectID is to be considered usable. If the value of the object at expObjectConditional is 0 or not instantiated, the object at expObjectID is treated as if it is not instantiated. In other words, expObjectConditional is a filter that controls whether or not to use the value at expObjectID. The OID may be for a leaf object (e.g. sysObjectID.0) or may be wildcarded to match expObjectID. If expObject is wildcarded and expObjectID in the same row is not, the wild portion of expObjectConditional must match the wildcarding of the rest of the expression. If no object in the expression is wildcarded but expObjectConditional is, use the lexically first instance (if any) of expObjectConditional. If the value of expObjectConditional is 0.0 operation is as if the value pointed to by expObjectConditional is a non-zero (true) value. Note that expObjectConditional can not trivially use an object of syntax TruthValue, since the underlying value is not 0 or 1.') expObjectConditionalWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 9), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectConditionalWildcard.setStatus('current') if mibBuilder.loadTexts: expObjectConditionalWildcard.setDescription('A true value indicates the expObjectConditional of this row is a wildcard object. False indicates that expObjectConditional is fully instanced. NOTE: The simplest implementations of this MIB may not allow wildcards.') expObjectEntryStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 10), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: expObjectEntryStatus.setStatus('current') if mibBuilder.loadTexts: expObjectEntryStatus.setDescription('The control that allows creation/deletion of entries. Objects in this table may be changed while expObjectEntryStatus is in any state.') expValueTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 3, 1), ) if mibBuilder.loadTexts: expValueTable.setStatus('current') if mibBuilder.loadTexts: expValueTable.setDescription('A table of values from evaluated expressions.') expValueEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName"), (1, "DISMAN-EXPRESSION-MIB", "expValueInstance")) if mibBuilder.loadTexts: expValueEntry.setStatus('current') if mibBuilder.loadTexts: expValueEntry.setDescription("A single value from an evaluated expression. For a given instance, only one 'Val' object in the conceptual row will be instantiated, that is, the one with the appropriate type for the value. For values that contain no objects of expObjectSampleType 'deltaValue' or 'changedValue', reading a value from the table causes the evaluation of the expression for that value. For those that contain a 'deltaValue' or 'changedValue' the value read is as of the last sampling interval. If in the attempt to evaluate the expression one or more of the necessary objects is not available, the corresponding entry in this table is effectively not instantiated. To maintain security of MIB information, when creating a new row in this table, the managed system must record the security credentials of the requester. These security credentials are the parameters necessary as inputs to isAccessAllowed from [RFC2571]. When obtaining the objects that make up the expression, the system must (conceptually) use isAccessAllowed to ensure that it does not violate security. The evaluation of that expression takes place under the security credentials of the creator of its expExpressionEntry. To maintain security of MIB information, expression evaluation must take place using security credentials for the implied Gets of the objects in the expression as inputs (conceptually) to isAccessAllowed from the Architecture for Describing SNMP Management Frameworks. These are the security credentials of the creator of the corresponding expExpressionEntry.") expValueInstance = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 1), ObjectIdentifier()) if mibBuilder.loadTexts: expValueInstance.setStatus('current') if mibBuilder.loadTexts: expValueInstance.setDescription("The final instance portion of a value's OID according to the wildcarding in instances of expObjectID for the expression. The prefix of this OID fragment is 0.0, leading to the following behavior. If there is no wildcarding, the value is 0.0.0. In other words, there is one value which standing alone would have been a scalar with a 0 at the end of its OID. If there is wildcarding, the value is 0.0 followed by a value that the wildcard can take, thus defining one value instance for each real, possible value of the wildcard. So, for example, if the wildcard worked out to be an ifIndex, there is an expValueInstance for each applicable ifIndex.") expValueCounter32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueCounter32Val.setStatus('current') if mibBuilder.loadTexts: expValueCounter32Val.setDescription("The value when expExpressionValueType is 'counter32'.") expValueUnsigned32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueUnsigned32Val.setStatus('current') if mibBuilder.loadTexts: expValueUnsigned32Val.setDescription("The value when expExpressionValueType is 'unsigned32'.") expValueTimeTicksVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 4), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueTimeTicksVal.setStatus('current') if mibBuilder.loadTexts: expValueTimeTicksVal.setDescription("The value when expExpressionValueType is 'timeTicks'.") expValueInteger32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueInteger32Val.setStatus('current') if mibBuilder.loadTexts: expValueInteger32Val.setDescription("The value when expExpressionValueType is 'integer32'.") expValueIpAddressVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 6), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueIpAddressVal.setStatus('current') if mibBuilder.loadTexts: expValueIpAddressVal.setDescription("The value when expExpressionValueType is 'ipAddress'.") expValueOctetStringVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 65536))).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueOctetStringVal.setStatus('current') if mibBuilder.loadTexts: expValueOctetStringVal.setDescription("The value when expExpressionValueType is 'octetString'.") expValueOidVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 8), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueOidVal.setStatus('current') if mibBuilder.loadTexts: expValueOidVal.setDescription("The value when expExpressionValueType is 'objectId'.") expValueCounter64Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: expValueCounter64Val.setStatus('current') if mibBuilder.loadTexts: expValueCounter64Val.setDescription("The value when expExpressionValueType is 'counter64'.") dismanExpressionMIBConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3)) dismanExpressionMIBCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3, 1)) dismanExpressionMIBGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3, 2)) dismanExpressionMIBCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 90, 3, 1, 1)).setObjects(("DISMAN-EXPRESSION-MIB", "dismanExpressionResourceGroup"), ("DISMAN-EXPRESSION-MIB", "dismanExpressionDefinitionGroup"), ("DISMAN-EXPRESSION-MIB", "dismanExpressionValueGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): dismanExpressionMIBCompliance = dismanExpressionMIBCompliance.setStatus('current') if mibBuilder.loadTexts: dismanExpressionMIBCompliance.setDescription('The compliance statement for entities which implement the Expression MIB.') dismanExpressionResourceGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 1)).setObjects(("DISMAN-EXPRESSION-MIB", "expResourceDeltaMinimum"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstanceMaximum"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstances"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstancesHigh"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstanceResourceLacks")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): dismanExpressionResourceGroup = dismanExpressionResourceGroup.setStatus('current') if mibBuilder.loadTexts: dismanExpressionResourceGroup.setDescription('Expression definition resource management.') dismanExpressionDefinitionGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 2)).setObjects(("DISMAN-EXPRESSION-MIB", "expExpression"), ("DISMAN-EXPRESSION-MIB", "expExpressionValueType"), ("DISMAN-EXPRESSION-MIB", "expExpressionComment"), ("DISMAN-EXPRESSION-MIB", "expExpressionDeltaInterval"), ("DISMAN-EXPRESSION-MIB", "expExpressionPrefix"), ("DISMAN-EXPRESSION-MIB", "expExpressionErrors"), ("DISMAN-EXPRESSION-MIB", "expExpressionEntryStatus"), ("DISMAN-EXPRESSION-MIB", "expErrorTime"), ("DISMAN-EXPRESSION-MIB", "expErrorIndex"), ("DISMAN-EXPRESSION-MIB", "expErrorCode"), ("DISMAN-EXPRESSION-MIB", "expErrorInstance"), ("DISMAN-EXPRESSION-MIB", "expObjectID"), ("DISMAN-EXPRESSION-MIB", "expObjectIDWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectSampleType"), ("DISMAN-EXPRESSION-MIB", "expObjectDeltaDiscontinuityID"), ("DISMAN-EXPRESSION-MIB", "expObjectDiscontinuityIDWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectDiscontinuityIDType"), ("DISMAN-EXPRESSION-MIB", "expObjectConditional"), ("DISMAN-EXPRESSION-MIB", "expObjectConditionalWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectEntryStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): dismanExpressionDefinitionGroup = dismanExpressionDefinitionGroup.setStatus('current') if mibBuilder.loadTexts: dismanExpressionDefinitionGroup.setDescription('Expression definition.') dismanExpressionValueGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 3)).setObjects(("DISMAN-EXPRESSION-MIB", "expValueCounter32Val"), ("DISMAN-EXPRESSION-MIB", "expValueUnsigned32Val"), ("DISMAN-EXPRESSION-MIB", "expValueTimeTicksVal"), ("DISMAN-EXPRESSION-MIB", "expValueInteger32Val"), ("DISMAN-EXPRESSION-MIB", "expValueIpAddressVal"), ("DISMAN-EXPRESSION-MIB", "expValueOctetStringVal"), ("DISMAN-EXPRESSION-MIB", "expValueOidVal"), ("DISMAN-EXPRESSION-MIB", "expValueCounter64Val")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): dismanExpressionValueGroup = dismanExpressionValueGroup.setStatus('current') if mibBuilder.loadTexts: dismanExpressionValueGroup.setDescription('Expression value.') mibBuilder.exportSymbols("DISMAN-EXPRESSION-MIB", expErrorTime=expErrorTime, expObjectConditional=expObjectConditional, expValueIpAddressVal=expValueIpAddressVal, expExpressionValueType=expExpressionValueType, expValueOctetStringVal=expValueOctetStringVal, expExpression=expExpression, expValueInteger32Val=expValueInteger32Val, expObjectSampleType=expObjectSampleType, expObjectConditionalWildcard=expObjectConditionalWildcard, expExpressionTable=expExpressionTable, expObjectTable=expObjectTable, expErrorTable=expErrorTable, expObjectID=expObjectID, expObjectDiscontinuityIDWildcard=expObjectDiscontinuityIDWildcard, dismanExpressionDefinitionGroup=dismanExpressionDefinitionGroup, expValue=expValue, expExpressionEntry=expExpressionEntry, expValueTimeTicksVal=expValueTimeTicksVal, expValueEntry=expValueEntry, dismanExpressionResourceGroup=dismanExpressionResourceGroup, dismanExpressionMIBGroups=dismanExpressionMIBGroups, expErrorInstance=expErrorInstance, expValueOidVal=expValueOidVal, expExpressionErrors=expExpressionErrors, expResourceDeltaWildcardInstanceResourceLacks=expResourceDeltaWildcardInstanceResourceLacks, expObjectDiscontinuityIDType=expObjectDiscontinuityIDType, expObjectEntryStatus=expObjectEntryStatus, expErrorIndex=expErrorIndex, expObjectIndex=expObjectIndex, dismanExpressionValueGroup=dismanExpressionValueGroup, dismanExpressionMIBObjects=dismanExpressionMIBObjects, expDefine=expDefine, expObjectDeltaDiscontinuityID=expObjectDeltaDiscontinuityID, expValueInstance=expValueInstance, PYSNMP_MODULE_ID=dismanExpressionMIB, expResource=expResource, expExpressionOwner=expExpressionOwner, expErrorEntry=expErrorEntry, expValueCounter64Val=expValueCounter64Val, expResourceDeltaWildcardInstanceMaximum=expResourceDeltaWildcardInstanceMaximum, expResourceDeltaMinimum=expResourceDeltaMinimum, expExpressionName=expExpressionName, expErrorCode=expErrorCode, expObjectIDWildcard=expObjectIDWildcard, expValueUnsigned32Val=expValueUnsigned32Val, dismanExpressionMIBCompliance=dismanExpressionMIBCompliance, expValueCounter32Val=expValueCounter32Val, dismanExpressionMIB=dismanExpressionMIB, expResourceDeltaWildcardInstancesHigh=expResourceDeltaWildcardInstancesHigh, dismanExpressionMIBCompliances=dismanExpressionMIBCompliances, sysUpTimeInstance=sysUpTimeInstance, expExpressionComment=expExpressionComment, expExpressionEntryStatus=expExpressionEntryStatus, expExpressionPrefix=expExpressionPrefix, expResourceDeltaWildcardInstances=expResourceDeltaWildcardInstances, expExpressionDeltaInterval=expExpressionDeltaInterval, dismanExpressionMIBConformance=dismanExpressionMIBConformance, expObjectEntry=expObjectEntry, expValueTable=expValueTable)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, value_range_constraint, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance') (sys_up_time,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysUpTime') (mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, unsigned32, mib_2, zero_dot_zero, ip_address, notification_type, mib_identifier, module_identity, gauge32, bits, counter32, time_ticks, iso, counter64, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Unsigned32', 'mib-2', 'zeroDotZero', 'IpAddress', 'NotificationType', 'MibIdentifier', 'ModuleIdentity', 'Gauge32', 'Bits', 'Counter32', 'TimeTicks', 'iso', 'Counter64', 'ObjectIdentity') (display_string, truth_value, row_status, textual_convention, time_stamp) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TruthValue', 'RowStatus', 'TextualConvention', 'TimeStamp') disman_expression_mib = module_identity((1, 3, 6, 1, 2, 1, 90)) dismanExpressionMIB.setRevisions(('2000-10-16 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: dismanExpressionMIB.setRevisionsDescriptions(('This is the initial version of this MIB. Published as RFC 2982',)) if mibBuilder.loadTexts: dismanExpressionMIB.setLastUpdated('200010160000Z') if mibBuilder.loadTexts: dismanExpressionMIB.setOrganization('IETF Distributed Management Working Group') if mibBuilder.loadTexts: dismanExpressionMIB.setContactInfo('Ramanathan Kavasseri Cisco Systems, Inc. 170 West Tasman Drive, San Jose CA 95134-1706. Phone: +1 408 527 2446 Email: ramk@cisco.com') if mibBuilder.loadTexts: dismanExpressionMIB.setDescription('The MIB module for defining expressions of MIB objects for management purposes.') disman_expression_mib_objects = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1)) exp_resource = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 1)) exp_define = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 2)) exp_value = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 3)) exp_resource_delta_minimum = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(1, 600)))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: expResourceDeltaMinimum.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaMinimum.setDescription("The minimum expExpressionDeltaInterval this system will accept. A system may use the larger values of this minimum to lessen the impact of constantly computing deltas. For larger delta sampling intervals the system samples less often and suffers less overhead. This object provides a way to enforce such lower overhead for all expressions created after it is set. The value -1 indicates that expResourceDeltaMinimum is irrelevant as the system will not accept 'deltaValue' as a value for expObjectSampleType. Unless explicitly resource limited, a system's value for this object should be 1, allowing as small as a 1 second interval for ongoing delta sampling. Changing this value will not invalidate an existing setting of expObjectSampleType.") exp_resource_delta_wildcard_instance_maximum = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 2), unsigned32()).setUnits('instances').setMaxAccess('readwrite') if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceMaximum.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceMaximum.setDescription("For every instance of a deltaValue object, one dynamic instance entry is needed for holding the instance value from the previous sample, i.e. to maintain state. This object limits maximum number of dynamic instance entries this system will support for wildcarded delta objects in expressions. For a given delta expression, the number of dynamic instances is the number of values that meet all criteria to exist times the number of delta values in the expression. A value of 0 indicates no preset limit, that is, the limit is dynamic based on system operation and resources. Unless explicitly resource limited, a system's value for this object should be 0. Changing this value will not eliminate or inhibit existing delta wildcard instance objects but will prevent the creation of more such objects. An attempt to allocate beyond the limit results in expErrorCode being tooManyWildcardValues for that evaluation attempt.") exp_resource_delta_wildcard_instances = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 3), gauge32()).setUnits('instances').setMaxAccess('readonly') if mibBuilder.loadTexts: expResourceDeltaWildcardInstances.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaWildcardInstances.setDescription('The number of currently active instance entries as defined for expResourceDeltaWildcardInstanceMaximum.') exp_resource_delta_wildcard_instances_high = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 4), gauge32()).setUnits('instances').setMaxAccess('readonly') if mibBuilder.loadTexts: expResourceDeltaWildcardInstancesHigh.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaWildcardInstancesHigh.setDescription('The highest value of expResourceDeltaWildcardInstances that has occurred since initialization of the managed system.') exp_resource_delta_wildcard_instance_resource_lacks = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 5), counter32()).setUnits('instances').setMaxAccess('readonly') if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceResourceLacks.setStatus('current') if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceResourceLacks.setDescription('The number of times this system could not evaluate an expression because that would have created a value instance in excess of expResourceDeltaWildcardInstanceMaximum.') exp_expression_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 1)) if mibBuilder.loadTexts: expExpressionTable.setStatus('current') if mibBuilder.loadTexts: expExpressionTable.setDescription('A table of expression definitions.') exp_expression_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName')) if mibBuilder.loadTexts: expExpressionEntry.setStatus('current') if mibBuilder.loadTexts: expExpressionEntry.setDescription("Information about a single expression. New expressions can be created using expExpressionRowStatus. To create an expression first create the named entry in this table. Then use expExpressionName to populate expObjectTable. For expression evaluation to succeed all related entries in expExpressionTable and expObjectTable must be 'active'. If these conditions are not met the corresponding values in expValue simply are not instantiated. Deleting an entry deletes all related entries in expObjectTable and expErrorTable. Because of the relationships among the multiple tables for an expression (expExpressionTable, expObjectTable, and expValueTable) and the SNMP rules for independence in setting object values, it is necessary to do final error checking when an expression is evaluated, that is, when one of its instances in expValueTable is read or a delta interval expires. Earlier checking need not be done and an implementation may not impose any ordering on the creation of objects related to an expression. To maintain security of MIB information, when creating a new row in this table, the managed system must record the security credentials of the requester. These security credentials are the parameters necessary as inputs to isAccessAllowed from the Architecture for Describing SNMP Management Frameworks. When obtaining the objects that make up the expression, the system must (conceptually) use isAccessAllowed to ensure that it does not violate security. The evaluation of the expression takes place under the security credentials of the creator of its expExpressionEntry. Values of read-write objects in this table may be changed at any time.") exp_expression_owner = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: expExpressionOwner.setStatus('current') if mibBuilder.loadTexts: expExpressionOwner.setDescription('The owner of this entry. The exact semantics of this string are subject to the security policy defined by the security administrator.') exp_expression_name = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 32))) if mibBuilder.loadTexts: expExpressionName.setStatus('current') if mibBuilder.loadTexts: expExpressionName.setDescription('The name of the expression. This is locally unique, within the scope of an expExpressionOwner.') exp_expression = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1024))).setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpression.setStatus('current') if mibBuilder.loadTexts: expExpression.setDescription("The expression to be evaluated. This object is the same as a DisplayString (RFC 1903) except for its maximum length. Except for the variable names the expression is in ANSI C syntax. Only the subset of ANSI C operators and functions listed here is allowed. Variables are expressed as a dollar sign ('$') and an integer that corresponds to an expObjectIndex. An example of a valid expression is: ($1-$5)*100 Expressions must not be recursive, that is although an expression may use the results of another expression, it must not contain any variable that is directly or indirectly a result of its own evaluation. The managed system must check for recursive expressions. The only allowed operators are: ( ) - (unary) + - * / % & | ^ << >> ~ ! && || == != > >= < <= Note the parentheses are included for parenthesizing the expression, not for casting data types. The only constant types defined are: int (32-bit signed) long (64-bit signed) unsigned int unsigned long hexadecimal character string oid The default type for a positive integer is int unless it is too large in which case it is long. All but oid are as defined for ANSI C. Note that a hexadecimal constant may end up as a scalar or an array of 8-bit integers. A string constant is enclosed in double quotes and may contain back-slashed individual characters as in ANSI C. An oid constant comprises 32-bit, unsigned integers and at least one period, for example: 0. .0 1.3.6.1 No additional leading or trailing subidentifiers are automatically added to an OID constant. The constant is taken as expressed. Integer-typed objects are treated as 32- or 64-bit, signed or unsigned integers, as appropriate. The results of mixing them are as for ANSI C, including the type of the result. Note that a 32-bit value is thus promoted to 64 bits only in an operation with a 64-bit value. There is no provision for larger values to handle overflow. Relative to SNMP data types, a resulting value becomes unsigned when calculating it uses any unsigned value, including a counter. To force the final value to be of data type counter the expression must explicitly use the counter32() or counter64() function (defined below). OCTET STRINGS and OBJECT IDENTIFIERs are treated as one-dimensioned arrays of unsigned 8-bit integers and unsigned 32-bit integers, respectively. IpAddresses are treated as 32-bit, unsigned integers in network byte order, that is, the hex version of 255.0.0.0 is 0xff000000. Conditional expressions result in a 32-bit, unsigned integer of value 0 for false or 1 for true. When an arbitrary value is used as a boolean 0 is false and non-zero is true. Rules for the resulting data type from an operation, based on the operator: For << and >> the result is the same as the left hand operand. For &&, ||, ==, !=, <, <=, >, and >= the result is always Unsigned32. For unary - the result is always Integer32. For +, -, *, /, %, &, |, and ^ the result is promoted according to the following rules, in order from most to least preferred: If left hand and right hand operands are the same type, use that. If either side is Counter64, use that. If either side is IpAddress, use that. If either side is TimeTicks, use that. If either side is Counter32, use that. Otherwise use Unsigned32. The following rules say what operators apply with what data types. Any combination not explicitly defined does not work. For all operators any of the following can be the left hand or right hand operand: Integer32, Counter32, Unsigned32, Counter64. The operators +, -, *, /, %, <, <=, >, and >= work with TimeTicks. The operators &, |, and ^ work with IpAddress. The operators << and >> work with IpAddress but only as the left hand operand. The + operator performs a concatenation of two OCTET STRINGs or two OBJECT IDENTIFIERs. The operators &, | perform bitwise operations on OCTET STRINGs. If the OCTET STRING happens to be a DisplayString the results may be meaningless, but the agent system does not check this as some such systems do not have this information. The operators << and >> perform bitwise operations on OCTET STRINGs appearing as the left hand operand. The only functions defined are: counter32 counter64 arraySection stringBegins stringEnds stringContains oidBegins oidEnds oidContains average maximum minimum sum exists The following function definitions indicate their parameters by naming the data type of the parameter in the parameter's position in the parameter list. The parameter must be of the type indicated and generally may be a constant, a MIB object, a function, or an expression. counter32(integer) - wrapped around an integer value counter32 forces Counter32 as a data type. counter64(integer) - similar to counter32 except that the resulting data type is 'counter64'. arraySection(array, integer, integer) - selects a piece of an array (i.e. part of an OCTET STRING or OBJECT IDENTIFIER). The integer arguments are in the range 0 to 4,294,967,295. The first is an initial array index (one-dimensioned) and the second is an ending array index. A value of 0 indicates first or last element, respectively. If the first element is larger than the array length the result is 0 length. If the second integer is less than or equal to the first, the result is 0 length. If the second is larger than the array length it indicates last element. stringBegins/Ends/Contains(octetString, octetString) - looks for the second string (which can be a string constant) in the first and returns the one-dimensioned arrayindex where the match began. A return value of 0 indicates no match (i.e. boolean false). oidBegins/Ends/Contains(oid, oid) - looks for the second OID (which can be an OID constant) in the first and returns the the one-dimensioned index where the match began. A return value of 0 indicates no match (i.e. boolean false). average/maximum/minimum(integer) - calculates the average, minimum, or maximum value of the integer valued object over multiple sample times. If the object disappears for any sample period, the accumulation and the resulting value object cease to exist until the object reappears at which point the calculation starts over. sum(integerObject*) - sums all available values of the wildcarded integer object, resulting in an integer scalar. Must be used with caution as it wraps on overflow with no notification. exists(anyTypeObject) - verifies the object instance exists. A return value of 0 indicates NoSuchInstance (i.e. boolean false).") exp_expression_value_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('counter32', 1), ('unsigned32', 2), ('timeTicks', 3), ('integer32', 4), ('ipAddress', 5), ('octetString', 6), ('objectId', 7), ('counter64', 8))).clone('counter32')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpressionValueType.setStatus('current') if mibBuilder.loadTexts: expExpressionValueType.setDescription('The type of the expression value. One and only one of the value objects in expValueTable will be instantiated to match this type. If the result of the expression can not be made into this type, an invalidOperandType error will occur.') exp_expression_comment = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 5), snmp_admin_string().clone(hexValue='')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpressionComment.setStatus('current') if mibBuilder.loadTexts: expExpressionComment.setDescription('A comment to explain the use or meaning of the expression.') exp_expression_delta_interval = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpressionDeltaInterval.setStatus('current') if mibBuilder.loadTexts: expExpressionDeltaInterval.setDescription("Sampling interval for objects in this expression with expObjectSampleType 'deltaValue'. This object has no effect if the the expression has no deltaValue objects. A value of 0 indicates no automated sampling. In this case the delta is the difference from the last time the expression was evaluated. Note that this is subject to unpredictable delta times in the face of retries or multiple managers. A value greater than zero is the number of seconds between automated samples. Until the delta interval has expired once the delta for the object is effectively not instantiated and evaluating the expression has results as if the object itself were not instantiated. Note that delta values potentially consume large amounts of system CPU and memory. Delta state and processing must continue constantly even if the expression is not being used. That is, the expression is being evaluated every delta interval, even if no application is reading those values. For wildcarded objects this can be substantial overhead. Note that delta intervals, external expression value sampling intervals and delta intervals for expressions within other expressions can have unusual interactions as they are impossible to synchronize accurately. In general one interval embedded below another must be enough shorter that the higher sample sees relatively smooth, predictable behavior. So, for example, to avoid the higher level getting the same sample twice, the lower level should sample at least twice as fast as the higher level does.") exp_expression_prefix = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 7), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: expExpressionPrefix.setStatus('current') if mibBuilder.loadTexts: expExpressionPrefix.setDescription('An object prefix to assist an application in determining the instance indexing to use in expValueTable, relieving the application of the need to scan the expObjectTable to determine such a prefix. See expObjectTable for information on wildcarded objects. If the expValueInstance portion of the value OID may be treated as a scalar (that is, normally, 0) the value of expExpressionPrefix is zero length, that is, no OID at all. Note that zero length implies a null OID, not the OID 0.0. Otherwise, the value of expExpressionPrefix is the expObjectID value of any one of the wildcarded objects for the expression. This is sufficient, as the remainder, that is, the instance fragment relevant to instancing the values, must be the same for all wildcarded objects in the expression.') exp_expression_errors = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expExpressionErrors.setStatus('current') if mibBuilder.loadTexts: expExpressionErrors.setDescription('The number of errors encountered while evaluating this expression. Note that an object in the expression not being accessible, is not considered an error. An example of an inaccessible object is when the object is excluded from the view of the user whose security credentials are used in the expression evaluation. In such cases, it is a legitimate condition that causes the corresponding expression value not to be instantiated.') exp_expression_entry_status = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 9), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: expExpressionEntryStatus.setStatus('current') if mibBuilder.loadTexts: expExpressionEntryStatus.setDescription('The control that allows creation and deletion of entries.') exp_error_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 2)) if mibBuilder.loadTexts: expErrorTable.setStatus('current') if mibBuilder.loadTexts: expErrorTable.setDescription('A table of expression errors.') exp_error_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName')) if mibBuilder.loadTexts: expErrorEntry.setStatus('current') if mibBuilder.loadTexts: expErrorEntry.setDescription('Information about errors in processing an expression. Entries appear in this table only when there is a matching expExpressionEntry and then only when there has been an error for that expression as reflected by the error codes defined for expErrorCode.') exp_error_time = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 1), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: expErrorTime.setStatus('current') if mibBuilder.loadTexts: expErrorTime.setDescription('The value of sysUpTime the last time an error caused a failure to evaluate this expression.') exp_error_index = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expErrorIndex.setStatus('current') if mibBuilder.loadTexts: expErrorIndex.setDescription('The one-dimensioned character array index into expExpression for where the error occurred. The value zero indicates irrelevance.') exp_error_code = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('invalidSyntax', 1), ('undefinedObjectIndex', 2), ('unrecognizedOperator', 3), ('unrecognizedFunction', 4), ('invalidOperandType', 5), ('unmatchedParenthesis', 6), ('tooManyWildcardValues', 7), ('recursion', 8), ('deltaTooShort', 9), ('resourceUnavailable', 10), ('divideByZero', 11)))).setMaxAccess('readonly') if mibBuilder.loadTexts: expErrorCode.setStatus('current') if mibBuilder.loadTexts: expErrorCode.setDescription("The error that occurred. In the following explanations the expected timing of the error is in parentheses. 'S' means the error occurs on a Set request. 'E' means the error occurs on the attempt to evaluate the expression either due to Get from expValueTable or in ongoing delta processing. invalidSyntax the value sent for expExpression is not valid Expression MIB expression syntax (S) undefinedObjectIndex an object reference ($n) in expExpression does not have a matching instance in expObjectTable (E) unrecognizedOperator the value sent for expExpression held an unrecognized operator (S) unrecognizedFunction the value sent for expExpression held an unrecognized function name (S) invalidOperandType an operand in expExpression is not the right type for the associated operator or result (SE) unmatchedParenthesis the value sent for expExpression is not correctly parenthesized (S) tooManyWildcardValues evaluating the expression exceeded the limit set by expResourceDeltaWildcardInstanceMaximum (E) recursion through some chain of embedded expressions the expression invokes itself (E) deltaTooShort the delta for the next evaluation passed before the system could evaluate the present sample (E) resourceUnavailable some resource, typically dynamic memory, was unavailable (SE) divideByZero an attempt to divide by zero occurred (E) For the errors that occur when the attempt is made to set expExpression Set request fails with the SNMP error code 'wrongValue'. Such failures refer to the most recent failure to Set expExpression, not to the present value of expExpression which must be either unset or syntactically correct. Errors that occur during evaluation for a Get* operation return the SNMP error code 'genErr' except for 'tooManyWildcardValues' and 'resourceUnavailable' which return the SNMP error code 'resourceUnavailable'.") exp_error_instance = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 4), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: expErrorInstance.setStatus('current') if mibBuilder.loadTexts: expErrorInstance.setDescription('The expValueInstance being evaluated when the error occurred. A zero-length indicates irrelevance.') exp_object_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 3)) if mibBuilder.loadTexts: expObjectTable.setStatus('current') if mibBuilder.loadTexts: expObjectTable.setDescription('A table of object definitions for each expExpression. Wildcarding instance IDs: It is legal to omit all or part of the instance portion for some or all of the objects in an expression. (See the DESCRIPTION of expObjectID for details. However, note that if more than one object in the same expression is wildcarded in this way, they all must be objects where that portion of the instance is the same. In other words, all objects may be in the same SEQUENCE or in different SEQUENCEs but with the same semantic index value (e.g., a value of ifIndex) for the wildcarded portion.') exp_object_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName'), (0, 'DISMAN-EXPRESSION-MIB', 'expObjectIndex')) if mibBuilder.loadTexts: expObjectEntry.setStatus('current') if mibBuilder.loadTexts: expObjectEntry.setDescription('Information about an object. An application uses expObjectEntryStatus to create entries in this table while in the process of defining an expression. Values of read-create objects in this table may be changed at any time.') exp_object_index = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: expObjectIndex.setStatus('current') if mibBuilder.loadTexts: expObjectIndex.setDescription("Within an expression, a unique, numeric identification for an object. Prefixed with a dollar sign ('$') this is used to reference the object in the corresponding expExpression.") exp_object_id = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 2), object_identifier()).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectID.setStatus('current') if mibBuilder.loadTexts: expObjectID.setDescription('The OBJECT IDENTIFIER (OID) of this object. The OID may be fully qualified, meaning it includes a complete instance identifier part (e.g., ifInOctets.1 or sysUpTime.0), or it may not be fully qualified, meaning it may lack all or part of the instance identifier. If the expObjectID is not fully qualified, then expObjectWildcard must be set to true(1). The value of the expression will be multiple values, as if done for a GetNext sweep of the object. An object here may itself be the result of an expression but recursion is not allowed. NOTE: The simplest implementations of this MIB may not allow wildcards.') exp_object_id_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 3), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectIDWildcard.setStatus('current') if mibBuilder.loadTexts: expObjectIDWildcard.setDescription('A true value indicates the expObjecID of this row is a wildcard object. False indicates that expObjectID is fully instanced. If all expObjectWildcard values for a given expression are FALSE, expExpressionPrefix will reflect a scalar object (i.e. will be 0.0). NOTE: The simplest implementations of this MIB may not allow wildcards.') exp_object_sample_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('absoluteValue', 1), ('deltaValue', 2), ('changedValue', 3))).clone('absoluteValue')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectSampleType.setStatus('current') if mibBuilder.loadTexts: expObjectSampleType.setDescription("The method of sampling the selected variable. An 'absoluteValue' is simply the present value of the object. A 'deltaValue' is the present value minus the previous value, which was sampled expExpressionDeltaInterval seconds ago. This is intended primarily for use with SNMP counters, which are meaningless as an 'absoluteValue', but may be used with any integer-based value. A 'changedValue' is a boolean for whether the present value is different from the previous value. It is applicable to any data type and results in an Unsigned32 with value 1 if the object's value is changed and 0 if not. In all other respects it is as a 'deltaValue' and all statements and operation regarding delta values apply to changed values. When an expression contains both delta and absolute values the absolute values are obtained at the end of the delta period.") sys_up_time_instance = mib_identifier((1, 3, 6, 1, 2, 1, 1, 3, 0)) exp_object_delta_discontinuity_id = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 5), object_identifier().clone((1, 3, 6, 1, 2, 1, 1, 3, 0))).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectDeltaDiscontinuityID.setStatus('current') if mibBuilder.loadTexts: expObjectDeltaDiscontinuityID.setDescription("The OBJECT IDENTIFIER (OID) of a TimeTicks, TimeStamp, or DateAndTime object that indicates a discontinuity in the value at expObjectID. This object is instantiated only if expObjectSampleType is 'deltaValue' or 'changedValue'. The OID may be for a leaf object (e.g. sysUpTime.0) or may be wildcarded to match expObjectID. This object supports normal checking for a discontinuity in a counter. Note that if this object does not point to sysUpTime discontinuity checking must still check sysUpTime for an overall discontinuity. If the object identified is not accessible no discontinuity check will be made.") exp_object_discontinuity_id_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 6), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectDiscontinuityIDWildcard.setStatus('current') if mibBuilder.loadTexts: expObjectDiscontinuityIDWildcard.setDescription("A true value indicates the expObjectDeltaDiscontinuityID of this row is a wildcard object. False indicates that expObjectDeltaDiscontinuityID is fully instanced. This object is instantiated only if expObjectSampleType is 'deltaValue' or 'changedValue'. NOTE: The simplest implementations of this MIB may not allow wildcards.") exp_object_discontinuity_id_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('timeTicks', 1), ('timeStamp', 2), ('dateAndTime', 3))).clone('timeTicks')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectDiscontinuityIDType.setStatus('current') if mibBuilder.loadTexts: expObjectDiscontinuityIDType.setDescription("The value 'timeTicks' indicates the expObjectDeltaDiscontinuityID of this row is of syntax TimeTicks. The value 'timeStamp' indicates syntax TimeStamp. The value 'dateAndTime indicates syntax DateAndTime. This object is instantiated only if expObjectSampleType is 'deltaValue' or 'changedValue'.") exp_object_conditional = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 8), object_identifier().clone((0, 0))).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectConditional.setStatus('current') if mibBuilder.loadTexts: expObjectConditional.setDescription('The OBJECT IDENTIFIER (OID) of an object that overrides whether the instance of expObjectID is to be considered usable. If the value of the object at expObjectConditional is 0 or not instantiated, the object at expObjectID is treated as if it is not instantiated. In other words, expObjectConditional is a filter that controls whether or not to use the value at expObjectID. The OID may be for a leaf object (e.g. sysObjectID.0) or may be wildcarded to match expObjectID. If expObject is wildcarded and expObjectID in the same row is not, the wild portion of expObjectConditional must match the wildcarding of the rest of the expression. If no object in the expression is wildcarded but expObjectConditional is, use the lexically first instance (if any) of expObjectConditional. If the value of expObjectConditional is 0.0 operation is as if the value pointed to by expObjectConditional is a non-zero (true) value. Note that expObjectConditional can not trivially use an object of syntax TruthValue, since the underlying value is not 0 or 1.') exp_object_conditional_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 9), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectConditionalWildcard.setStatus('current') if mibBuilder.loadTexts: expObjectConditionalWildcard.setDescription('A true value indicates the expObjectConditional of this row is a wildcard object. False indicates that expObjectConditional is fully instanced. NOTE: The simplest implementations of this MIB may not allow wildcards.') exp_object_entry_status = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 10), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: expObjectEntryStatus.setStatus('current') if mibBuilder.loadTexts: expObjectEntryStatus.setDescription('The control that allows creation/deletion of entries. Objects in this table may be changed while expObjectEntryStatus is in any state.') exp_value_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 3, 1)) if mibBuilder.loadTexts: expValueTable.setStatus('current') if mibBuilder.loadTexts: expValueTable.setDescription('A table of values from evaluated expressions.') exp_value_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName'), (1, 'DISMAN-EXPRESSION-MIB', 'expValueInstance')) if mibBuilder.loadTexts: expValueEntry.setStatus('current') if mibBuilder.loadTexts: expValueEntry.setDescription("A single value from an evaluated expression. For a given instance, only one 'Val' object in the conceptual row will be instantiated, that is, the one with the appropriate type for the value. For values that contain no objects of expObjectSampleType 'deltaValue' or 'changedValue', reading a value from the table causes the evaluation of the expression for that value. For those that contain a 'deltaValue' or 'changedValue' the value read is as of the last sampling interval. If in the attempt to evaluate the expression one or more of the necessary objects is not available, the corresponding entry in this table is effectively not instantiated. To maintain security of MIB information, when creating a new row in this table, the managed system must record the security credentials of the requester. These security credentials are the parameters necessary as inputs to isAccessAllowed from [RFC2571]. When obtaining the objects that make up the expression, the system must (conceptually) use isAccessAllowed to ensure that it does not violate security. The evaluation of that expression takes place under the security credentials of the creator of its expExpressionEntry. To maintain security of MIB information, expression evaluation must take place using security credentials for the implied Gets of the objects in the expression as inputs (conceptually) to isAccessAllowed from the Architecture for Describing SNMP Management Frameworks. These are the security credentials of the creator of the corresponding expExpressionEntry.") exp_value_instance = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 1), object_identifier()) if mibBuilder.loadTexts: expValueInstance.setStatus('current') if mibBuilder.loadTexts: expValueInstance.setDescription("The final instance portion of a value's OID according to the wildcarding in instances of expObjectID for the expression. The prefix of this OID fragment is 0.0, leading to the following behavior. If there is no wildcarding, the value is 0.0.0. In other words, there is one value which standing alone would have been a scalar with a 0 at the end of its OID. If there is wildcarding, the value is 0.0 followed by a value that the wildcard can take, thus defining one value instance for each real, possible value of the wildcard. So, for example, if the wildcard worked out to be an ifIndex, there is an expValueInstance for each applicable ifIndex.") exp_value_counter32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueCounter32Val.setStatus('current') if mibBuilder.loadTexts: expValueCounter32Val.setDescription("The value when expExpressionValueType is 'counter32'.") exp_value_unsigned32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueUnsigned32Val.setStatus('current') if mibBuilder.loadTexts: expValueUnsigned32Val.setDescription("The value when expExpressionValueType is 'unsigned32'.") exp_value_time_ticks_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 4), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueTimeTicksVal.setStatus('current') if mibBuilder.loadTexts: expValueTimeTicksVal.setDescription("The value when expExpressionValueType is 'timeTicks'.") exp_value_integer32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueInteger32Val.setStatus('current') if mibBuilder.loadTexts: expValueInteger32Val.setDescription("The value when expExpressionValueType is 'integer32'.") exp_value_ip_address_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 6), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueIpAddressVal.setStatus('current') if mibBuilder.loadTexts: expValueIpAddressVal.setDescription("The value when expExpressionValueType is 'ipAddress'.") exp_value_octet_string_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 65536))).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueOctetStringVal.setStatus('current') if mibBuilder.loadTexts: expValueOctetStringVal.setDescription("The value when expExpressionValueType is 'octetString'.") exp_value_oid_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 8), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueOidVal.setStatus('current') if mibBuilder.loadTexts: expValueOidVal.setDescription("The value when expExpressionValueType is 'objectId'.") exp_value_counter64_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: expValueCounter64Val.setStatus('current') if mibBuilder.loadTexts: expValueCounter64Val.setDescription("The value when expExpressionValueType is 'counter64'.") disman_expression_mib_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3)) disman_expression_mib_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3, 1)) disman_expression_mib_groups = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3, 2)) disman_expression_mib_compliance = module_compliance((1, 3, 6, 1, 2, 1, 90, 3, 1, 1)).setObjects(('DISMAN-EXPRESSION-MIB', 'dismanExpressionResourceGroup'), ('DISMAN-EXPRESSION-MIB', 'dismanExpressionDefinitionGroup'), ('DISMAN-EXPRESSION-MIB', 'dismanExpressionValueGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): disman_expression_mib_compliance = dismanExpressionMIBCompliance.setStatus('current') if mibBuilder.loadTexts: dismanExpressionMIBCompliance.setDescription('The compliance statement for entities which implement the Expression MIB.') disman_expression_resource_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 1)).setObjects(('DISMAN-EXPRESSION-MIB', 'expResourceDeltaMinimum'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstanceMaximum'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstances'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstancesHigh'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstanceResourceLacks')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): disman_expression_resource_group = dismanExpressionResourceGroup.setStatus('current') if mibBuilder.loadTexts: dismanExpressionResourceGroup.setDescription('Expression definition resource management.') disman_expression_definition_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 2)).setObjects(('DISMAN-EXPRESSION-MIB', 'expExpression'), ('DISMAN-EXPRESSION-MIB', 'expExpressionValueType'), ('DISMAN-EXPRESSION-MIB', 'expExpressionComment'), ('DISMAN-EXPRESSION-MIB', 'expExpressionDeltaInterval'), ('DISMAN-EXPRESSION-MIB', 'expExpressionPrefix'), ('DISMAN-EXPRESSION-MIB', 'expExpressionErrors'), ('DISMAN-EXPRESSION-MIB', 'expExpressionEntryStatus'), ('DISMAN-EXPRESSION-MIB', 'expErrorTime'), ('DISMAN-EXPRESSION-MIB', 'expErrorIndex'), ('DISMAN-EXPRESSION-MIB', 'expErrorCode'), ('DISMAN-EXPRESSION-MIB', 'expErrorInstance'), ('DISMAN-EXPRESSION-MIB', 'expObjectID'), ('DISMAN-EXPRESSION-MIB', 'expObjectIDWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectSampleType'), ('DISMAN-EXPRESSION-MIB', 'expObjectDeltaDiscontinuityID'), ('DISMAN-EXPRESSION-MIB', 'expObjectDiscontinuityIDWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectDiscontinuityIDType'), ('DISMAN-EXPRESSION-MIB', 'expObjectConditional'), ('DISMAN-EXPRESSION-MIB', 'expObjectConditionalWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectEntryStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): disman_expression_definition_group = dismanExpressionDefinitionGroup.setStatus('current') if mibBuilder.loadTexts: dismanExpressionDefinitionGroup.setDescription('Expression definition.') disman_expression_value_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 3)).setObjects(('DISMAN-EXPRESSION-MIB', 'expValueCounter32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueUnsigned32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueTimeTicksVal'), ('DISMAN-EXPRESSION-MIB', 'expValueInteger32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueIpAddressVal'), ('DISMAN-EXPRESSION-MIB', 'expValueOctetStringVal'), ('DISMAN-EXPRESSION-MIB', 'expValueOidVal'), ('DISMAN-EXPRESSION-MIB', 'expValueCounter64Val')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): disman_expression_value_group = dismanExpressionValueGroup.setStatus('current') if mibBuilder.loadTexts: dismanExpressionValueGroup.setDescription('Expression value.') mibBuilder.exportSymbols('DISMAN-EXPRESSION-MIB', expErrorTime=expErrorTime, expObjectConditional=expObjectConditional, expValueIpAddressVal=expValueIpAddressVal, expExpressionValueType=expExpressionValueType, expValueOctetStringVal=expValueOctetStringVal, expExpression=expExpression, expValueInteger32Val=expValueInteger32Val, expObjectSampleType=expObjectSampleType, expObjectConditionalWildcard=expObjectConditionalWildcard, expExpressionTable=expExpressionTable, expObjectTable=expObjectTable, expErrorTable=expErrorTable, expObjectID=expObjectID, expObjectDiscontinuityIDWildcard=expObjectDiscontinuityIDWildcard, dismanExpressionDefinitionGroup=dismanExpressionDefinitionGroup, expValue=expValue, expExpressionEntry=expExpressionEntry, expValueTimeTicksVal=expValueTimeTicksVal, expValueEntry=expValueEntry, dismanExpressionResourceGroup=dismanExpressionResourceGroup, dismanExpressionMIBGroups=dismanExpressionMIBGroups, expErrorInstance=expErrorInstance, expValueOidVal=expValueOidVal, expExpressionErrors=expExpressionErrors, expResourceDeltaWildcardInstanceResourceLacks=expResourceDeltaWildcardInstanceResourceLacks, expObjectDiscontinuityIDType=expObjectDiscontinuityIDType, expObjectEntryStatus=expObjectEntryStatus, expErrorIndex=expErrorIndex, expObjectIndex=expObjectIndex, dismanExpressionValueGroup=dismanExpressionValueGroup, dismanExpressionMIBObjects=dismanExpressionMIBObjects, expDefine=expDefine, expObjectDeltaDiscontinuityID=expObjectDeltaDiscontinuityID, expValueInstance=expValueInstance, PYSNMP_MODULE_ID=dismanExpressionMIB, expResource=expResource, expExpressionOwner=expExpressionOwner, expErrorEntry=expErrorEntry, expValueCounter64Val=expValueCounter64Val, expResourceDeltaWildcardInstanceMaximum=expResourceDeltaWildcardInstanceMaximum, expResourceDeltaMinimum=expResourceDeltaMinimum, expExpressionName=expExpressionName, expErrorCode=expErrorCode, expObjectIDWildcard=expObjectIDWildcard, expValueUnsigned32Val=expValueUnsigned32Val, dismanExpressionMIBCompliance=dismanExpressionMIBCompliance, expValueCounter32Val=expValueCounter32Val, dismanExpressionMIB=dismanExpressionMIB, expResourceDeltaWildcardInstancesHigh=expResourceDeltaWildcardInstancesHigh, dismanExpressionMIBCompliances=dismanExpressionMIBCompliances, sysUpTimeInstance=sysUpTimeInstance, expExpressionComment=expExpressionComment, expExpressionEntryStatus=expExpressionEntryStatus, expExpressionPrefix=expExpressionPrefix, expResourceDeltaWildcardInstances=expResourceDeltaWildcardInstances, expExpressionDeltaInterval=expExpressionDeltaInterval, dismanExpressionMIBConformance=dismanExpressionMIBConformance, expObjectEntry=expObjectEntry, expValueTable=expValueTable)
def floatToBin(valor): f = str(valor) inteira, deci = f.split(".") print(inteira, deci) bint = bin(int(inteira)) deci = list(deci) deci.insert(0,'.') print(bint) print(deci) # inteira print('parte inteira') if inteira.startswith("-"): print('negativo') if not len(bint) == 3: bint = list(bint[3:]) else: bint = list('0') bint.insert(0, "1") bint = ''.join(bint) else: print('positivo') if not len(bint) == 2: # obs: decimais negativos sao considerados positivos bint = list(bint[2:]) else: bint = list('0') bint.insert(0, "0") bint = ''.join(bint) bint = list (bint) print(bint, type(bint)) # decimal print('parte decimal') multiplicacao = 0 deci_aux = float(''.join(deci)) bdeci = [] while not multiplicacao == 1: multiplicacao = (deci_aux * 2) a, b = str(multiplicacao).split(".") bdeci.append(a) # ajuste para decimal b = list(b) b.insert(0, '.') b = str(''.join(b)) b = float(b) deci_aux = b print(bdeci, type(bdeci)) b = bint + bdeci print('binario final: ', b) return b, [bint, bdeci] valor = 2.78125 floatToBin(valor)
def float_to_bin(valor): f = str(valor) (inteira, deci) = f.split('.') print(inteira, deci) bint = bin(int(inteira)) deci = list(deci) deci.insert(0, '.') print(bint) print(deci) print('parte inteira') if inteira.startswith('-'): print('negativo') if not len(bint) == 3: bint = list(bint[3:]) else: bint = list('0') bint.insert(0, '1') bint = ''.join(bint) else: print('positivo') if not len(bint) == 2: bint = list(bint[2:]) else: bint = list('0') bint.insert(0, '0') bint = ''.join(bint) bint = list(bint) print(bint, type(bint)) print('parte decimal') multiplicacao = 0 deci_aux = float(''.join(deci)) bdeci = [] while not multiplicacao == 1: multiplicacao = deci_aux * 2 (a, b) = str(multiplicacao).split('.') bdeci.append(a) b = list(b) b.insert(0, '.') b = str(''.join(b)) b = float(b) deci_aux = b print(bdeci, type(bdeci)) b = bint + bdeci print('binario final: ', b) return (b, [bint, bdeci]) valor = 2.78125 float_to_bin(valor)
times_dict = { "A": 51, "B": 23, "C": 67, "D": 83, "E": 77, } directions = { 0: "north", 1: "west", 2: "south", 3: "east", } for name in times_dict: times = times_dict[name] circles = times // 4 direction_index = times % 4 direction = directions[direction_index] print('%s faces %s, turns %s circles.'%(name, direction, circles))
times_dict = {'A': 51, 'B': 23, 'C': 67, 'D': 83, 'E': 77} directions = {0: 'north', 1: 'west', 2: 'south', 3: 'east'} for name in times_dict: times = times_dict[name] circles = times // 4 direction_index = times % 4 direction = directions[direction_index] print('%s faces %s, turns %s circles.' % (name, direction, circles))
def bstutil(root,min_v,max_v): if root is None: return True if root.data>=min_v and root.data<max_v and bstutil(root.left,min_v,root.data) and bstutil(root.right,root.data,max_v): return True return False def isBST(root): return bstutil(root,-float("inf"),float("inf"))
def bstutil(root, min_v, max_v): if root is None: return True if root.data >= min_v and root.data < max_v and bstutil(root.left, min_v, root.data) and bstutil(root.right, root.data, max_v): return True return False def is_bst(root): return bstutil(root, -float('inf'), float('inf'))
class Scene(object): MAIN = None setup = False destroyed = False handles = [] handleFunc = {} def __init__(self, MainObj): self.MAIN = MainObj self.createHandleFunctions() def createHandleFunctions(self): pass def setUp(self): self.setup = True def mainLoop(self): pass def destroy(self): self.destroyed = True def isSetUp(self): return self.setup def isDestroyed(self): return self.destroyed def handlesCall(self, call): return call in self.handles def handleCall(self, call, args): return self.handleFunc[call](*args) def canChangeChar(self): return False def canLeaveGame(self): return False
class Scene(object): main = None setup = False destroyed = False handles = [] handle_func = {} def __init__(self, MainObj): self.MAIN = MainObj self.createHandleFunctions() def create_handle_functions(self): pass def set_up(self): self.setup = True def main_loop(self): pass def destroy(self): self.destroyed = True def is_set_up(self): return self.setup def is_destroyed(self): return self.destroyed def handles_call(self, call): return call in self.handles def handle_call(self, call, args): return self.handleFunc[call](*args) def can_change_char(self): return False def can_leave_game(self): return False
class Solution: def checkNeedle(self, h: str, n: str) -> bool: if len(h) < len(n): return False for idx, hc in enumerate(h): if hc != n[idx]: return False else: if len(n) == idx + 1: return True return True def strStr(self, haystack: str, needle: str) -> int: if len(needle) == 0: return 0 if len(haystack) == 0: return -1 if len(haystack) < len(needle): return -1 needle_idx = 0 for idx, c in enumerate(haystack): if c == needle[needle_idx]: if len(needle) == 1 or self.checkNeedle(haystack[idx + 1:], needle[1:]): return idx return -1
class Solution: def check_needle(self, h: str, n: str) -> bool: if len(h) < len(n): return False for (idx, hc) in enumerate(h): if hc != n[idx]: return False elif len(n) == idx + 1: return True return True def str_str(self, haystack: str, needle: str) -> int: if len(needle) == 0: return 0 if len(haystack) == 0: return -1 if len(haystack) < len(needle): return -1 needle_idx = 0 for (idx, c) in enumerate(haystack): if c == needle[needle_idx]: if len(needle) == 1 or self.checkNeedle(haystack[idx + 1:], needle[1:]): return idx return -1
__author__ = 'Michel Llorens' __email__ = "mllorens@dcc.uchile.cl" class Stack: def __init__(self, delta): self.stack = list() self.DELTA = delta return def push(self, face): self.stack.append(face) return def pop(self): if not self.empty(): return self.stack.pop() else: return False def multi_pop(self, point): faces = list() for face in self.stack: if point in face: faces.append(face) for face in faces: self.stack.remove(face) return faces def empty(self): if len(self.stack) == 0: return True return False def get_all_points(self): all_points = list() for face in self.stack: all_points.extend(face.get_points()) return self.delete_duplicated_points(all_points) def delete_duplicated_points(self, points): final_points = list() while len(points) != 0: p = points.pop() to_delete = list() duplicated = False for pp in points: if (p[0] <= pp[0]+self.DELTA) & (p[0] >= pp[0]-self.DELTA): if (p[1] <= pp[1]+self.DELTA) & (p[1] >= pp[1]-self.DELTA): if (p[2] <= pp[2]+self.DELTA) & (p[1] >= pp[1]-self.DELTA): duplicated = True to_delete.append(pp) final_points.append(p) if duplicated: for ptd in to_delete: if ptd in points: points.remove(ptd) return final_points def __str__(self): string = "Stack:\n" for f in self.stack: string = string + str(f) + "\n" string = string + "End Stack\n" return string def size(self): return len(self.stack)
__author__ = 'Michel Llorens' __email__ = 'mllorens@dcc.uchile.cl' class Stack: def __init__(self, delta): self.stack = list() self.DELTA = delta return def push(self, face): self.stack.append(face) return def pop(self): if not self.empty(): return self.stack.pop() else: return False def multi_pop(self, point): faces = list() for face in self.stack: if point in face: faces.append(face) for face in faces: self.stack.remove(face) return faces def empty(self): if len(self.stack) == 0: return True return False def get_all_points(self): all_points = list() for face in self.stack: all_points.extend(face.get_points()) return self.delete_duplicated_points(all_points) def delete_duplicated_points(self, points): final_points = list() while len(points) != 0: p = points.pop() to_delete = list() duplicated = False for pp in points: if (p[0] <= pp[0] + self.DELTA) & (p[0] >= pp[0] - self.DELTA): if (p[1] <= pp[1] + self.DELTA) & (p[1] >= pp[1] - self.DELTA): if (p[2] <= pp[2] + self.DELTA) & (p[1] >= pp[1] - self.DELTA): duplicated = True to_delete.append(pp) final_points.append(p) if duplicated: for ptd in to_delete: if ptd in points: points.remove(ptd) return final_points def __str__(self): string = 'Stack:\n' for f in self.stack: string = string + str(f) + '\n' string = string + 'End Stack\n' return string def size(self): return len(self.stack)
def build_chrome_options(): chrome_options = webdriver.ChromeOptions() chrome_options.accept_untrusted_certs = True chrome_options.assume_untrusted_cert_issuer = True # chrome configuration # More: https://github.com/SeleniumHQ/docker-selenium/issues/89 # And: https://github.com/SeleniumHQ/docker-selenium/issues/87 chrome_options.add_argument("--no-sandbox") chrome_options.add_argument("--disable-impl-side-painting") chrome_options.add_argument("--disable-setuid-sandbox") chrome_options.add_argument("--disable-seccomp-filter-sandbox") chrome_options.add_argument("--disable-breakpad") chrome_options.add_argument("--disable-client-side-phishing-detection") chrome_options.add_argument("--disable-cast") chrome_options.add_argument("--disable-cast-streaming-hw-encoding") chrome_options.add_argument("--disable-cloud-import") chrome_options.add_argument("--disable-popup-blocking") chrome_options.add_argument("--ignore-certificate-errors") chrome_options.add_argument("--disable-session-crashed-bubble") chrome_options.add_argument("--disable-ipv6") chrome_options.add_argument("--allow-http-screen-capture") chrome_options.add_argument("--start-maximized") chrome_options.add_argument( '--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36') return chrome_options
def build_chrome_options(): chrome_options = webdriver.ChromeOptions() chrome_options.accept_untrusted_certs = True chrome_options.assume_untrusted_cert_issuer = True chrome_options.add_argument('--no-sandbox') chrome_options.add_argument('--disable-impl-side-painting') chrome_options.add_argument('--disable-setuid-sandbox') chrome_options.add_argument('--disable-seccomp-filter-sandbox') chrome_options.add_argument('--disable-breakpad') chrome_options.add_argument('--disable-client-side-phishing-detection') chrome_options.add_argument('--disable-cast') chrome_options.add_argument('--disable-cast-streaming-hw-encoding') chrome_options.add_argument('--disable-cloud-import') chrome_options.add_argument('--disable-popup-blocking') chrome_options.add_argument('--ignore-certificate-errors') chrome_options.add_argument('--disable-session-crashed-bubble') chrome_options.add_argument('--disable-ipv6') chrome_options.add_argument('--allow-http-screen-capture') chrome_options.add_argument('--start-maximized') chrome_options.add_argument('--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36') return chrome_options
myset = {1,2,3,4,5,6} print(myset) myset = {1,1,1,2,3,4,5,5} print(myset) myset = set([1,2,3,4,5,5]) myset2 = set('hello') print(myset) print(myset2) myset = {} myset2 = set() print(type(myset)) print(type(myset2)) myset2.add(1) print(myset2) myset2.add(1) print(myset2) myset2.add(2) print(myset2) myset2.add(3) myset2.add(4) print(myset2) myset2.remove(2) print(myset2) myset2 = {1,2,3,4,5,6} # myset2.remove(8) # print(myset2) myset2.discard(8) print(myset2) print(myset2.pop()) print(myset2) for x in myset2: print(x) if 1 in myset2: print('yes') else: print('no') # union & intersection odds = {1,3,5,7} evens = {0,2,4,6,8} primes = {2,3,5,7} u = odds.union(evens) print(u) i = odds.intersection(evens) print(i) j = odds.intersection(primes) print(odds) print(j) h = evens.intersection(primes) print(evens) print(h) setA = {1,2,3,4,5,6,7,8,9,10} setB = {1,2,3,11,12,13} diff = setA.difference(setB) print(diff) diff = setB.difference(setA) print(diff) diff = setB.symmetric_difference(setA) print(diff) diff = setA.symmetric_difference(setB) print(diff) setA.update(setB) print(setA) setA = {1,2,3,4,5,6,7,8,9,10} setB = {1,2,3,11,12,13} setA.intersection_update(setB) print(setA) setA = {1,2,3,4,5,6,7,8,9,10} setB = {1,2,3,11,12,13} setA.difference_update(setB) print(setA) setA = {1,2,3,4,5,6,7,8,9,10} setB = {1,2,3,11,12,13} setA.symmetric_difference_update(setB) print(setA) setA = {1,2,3,4,5,6} setB = {1,2,3} setC = {7,8} print(setA.issubset(setB)) print(setA.issuperset(setB)) print(setA.isdisjoint(setB)) print(setA.isdisjoint(setC)) myset = {1,2,3,4,5} myset.add(6) myset2 = myset print(myset) print(myset2) myset = {1,2,3,4,5} myset.add(6) myset2 = myset.copy() print(myset) print(myset2) myset = {1,2,3,4,5} myset.add(6) myset2 = set(myset) print(myset) print(myset2) a = frozenset([1,2,3,4]) ## not work # a.add() # a.remove()
myset = {1, 2, 3, 4, 5, 6} print(myset) myset = {1, 1, 1, 2, 3, 4, 5, 5} print(myset) myset = set([1, 2, 3, 4, 5, 5]) myset2 = set('hello') print(myset) print(myset2) myset = {} myset2 = set() print(type(myset)) print(type(myset2)) myset2.add(1) print(myset2) myset2.add(1) print(myset2) myset2.add(2) print(myset2) myset2.add(3) myset2.add(4) print(myset2) myset2.remove(2) print(myset2) myset2 = {1, 2, 3, 4, 5, 6} myset2.discard(8) print(myset2) print(myset2.pop()) print(myset2) for x in myset2: print(x) if 1 in myset2: print('yes') else: print('no') odds = {1, 3, 5, 7} evens = {0, 2, 4, 6, 8} primes = {2, 3, 5, 7} u = odds.union(evens) print(u) i = odds.intersection(evens) print(i) j = odds.intersection(primes) print(odds) print(j) h = evens.intersection(primes) print(evens) print(h) set_a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} set_b = {1, 2, 3, 11, 12, 13} diff = setA.difference(setB) print(diff) diff = setB.difference(setA) print(diff) diff = setB.symmetric_difference(setA) print(diff) diff = setA.symmetric_difference(setB) print(diff) setA.update(setB) print(setA) set_a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} set_b = {1, 2, 3, 11, 12, 13} setA.intersection_update(setB) print(setA) set_a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} set_b = {1, 2, 3, 11, 12, 13} setA.difference_update(setB) print(setA) set_a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} set_b = {1, 2, 3, 11, 12, 13} setA.symmetric_difference_update(setB) print(setA) set_a = {1, 2, 3, 4, 5, 6} set_b = {1, 2, 3} set_c = {7, 8} print(setA.issubset(setB)) print(setA.issuperset(setB)) print(setA.isdisjoint(setB)) print(setA.isdisjoint(setC)) myset = {1, 2, 3, 4, 5} myset.add(6) myset2 = myset print(myset) print(myset2) myset = {1, 2, 3, 4, 5} myset.add(6) myset2 = myset.copy() print(myset) print(myset2) myset = {1, 2, 3, 4, 5} myset.add(6) myset2 = set(myset) print(myset) print(myset2) a = frozenset([1, 2, 3, 4])
# Reading files # Example 1 - Open and closing files. nerd_file = open("nerd_names.txt") nerd_file.close() # Example 2 - Is the file readable? nerd_file = open("nerd_names.txt") print(nerd_file.readable()) nerd_file.close() # Example 3 - Read the file, with readlines() nerd_file = open("nerd_names.txt") print(nerd_file.readlines()) nerd_file.close() # Example 4 - Read the first line of a file nerd_file = open("nerd_names.txt") print(nerd_file.readline()) nerd_file.close() # Example 5 - Read the first two lines nerd_file = open("nerd_names.txt") print(nerd_file.readline()) print(nerd_file.readline()) nerd_file.close() # Example 6 - Read and print out hte 3rd line or item in the file nerd_file = open("nerd_names.txt") print(nerd_file.readlines()[2]) nerd_file.close() # Example 7 - As is, read nerd_file = open("nerd_names.txt") print(nerd_file.read()) nerd_file.close() nerd_file = open("nerd_names.txt") # Example 8 - Read vs Readlines # With Readlines nerd_file = open("nerd_names.txt") nerds = nerd_file.readlines() nerd_file.close() print("Example 8 - with readlines()") print(f'Data type is: {type(nerds)}') print(nerds) for name in nerds: name = name.rstrip() + " is a Nerd." print(name) print("----Readlines() Example Done----") # With Read nerd_file_read = open("nerd_names.txt") nerds_read = nerd_file_read.read() nerd_file_read.close() print("Example 8 - with read()") print(f'Data type is: {type(nerds_read)}') print(nerds_read) for name in nerds_read: name = name.rstrip() + " is a Nerd." print(name) print("----read() Example Done----")
nerd_file = open('nerd_names.txt') nerd_file.close() nerd_file = open('nerd_names.txt') print(nerd_file.readable()) nerd_file.close() nerd_file = open('nerd_names.txt') print(nerd_file.readlines()) nerd_file.close() nerd_file = open('nerd_names.txt') print(nerd_file.readline()) nerd_file.close() nerd_file = open('nerd_names.txt') print(nerd_file.readline()) print(nerd_file.readline()) nerd_file.close() nerd_file = open('nerd_names.txt') print(nerd_file.readlines()[2]) nerd_file.close() nerd_file = open('nerd_names.txt') print(nerd_file.read()) nerd_file.close() nerd_file = open('nerd_names.txt') nerd_file = open('nerd_names.txt') nerds = nerd_file.readlines() nerd_file.close() print('Example 8 - with readlines()') print(f'Data type is: {type(nerds)}') print(nerds) for name in nerds: name = name.rstrip() + ' is a Nerd.' print(name) print('----Readlines() Example Done----') nerd_file_read = open('nerd_names.txt') nerds_read = nerd_file_read.read() nerd_file_read.close() print('Example 8 - with read()') print(f'Data type is: {type(nerds_read)}') print(nerds_read) for name in nerds_read: name = name.rstrip() + ' is a Nerd.' print(name) print('----read() Example Done----')
# creates or updates a file with the given text def write_file(file_path,text_to_write): with open(file_path,'w') as f: f.write(text_to_write) return
def write_file(file_path, text_to_write): with open(file_path, 'w') as f: f.write(text_to_write) return
# To Find The Total Number Of Digits In A Number N = int(input("Enter The number")) count = 0 while(N!=0): N = (N-N%10)/10 count+=1 print(count)
n = int(input('Enter The number')) count = 0 while N != 0: n = (N - N % 10) / 10 count += 1 print(count)
class DummyObject: # When we try to access any attribute of the # dummy object, it will return himself. def __getattr__(self, item): return self # And if dummy object is called, nothing is being done, # and error created if the function did not exist. def __call__(self, *args, **kwargs): pass dummy_object = DummyObject()
class Dummyobject: def __getattr__(self, item): return self def __call__(self, *args, **kwargs): pass dummy_object = dummy_object()
#Calculate Value of PI using the Neelkantha method to nth digit using upto 50 trailing digits j = 3.0 k=1 for i in range(2, 4000000, 2): #Change the Desired End Step to get a better nth value k = k+1 if k % 2 ==0: j = j+ 4/(i*(i+1)*(i+2)) else: j = j- 4/(i*(i+1)*(i+2)) kaggle = input('Enter value of n upto which you want to display the value of PI:') a = '%.'+kaggle+'f' print (a%(j))
j = 3.0 k = 1 for i in range(2, 4000000, 2): k = k + 1 if k % 2 == 0: j = j + 4 / (i * (i + 1) * (i + 2)) else: j = j - 4 / (i * (i + 1) * (i + 2)) kaggle = input('Enter value of n upto which you want to display the value of PI:') a = '%.' + kaggle + 'f' print(a % j)
class Solution: # bottom up def minimumTotal(self, triangle: 'List[List[int]]') -> 'int': if not triangle: return rst = triangle[-1] for level in range(len(triangle)-2,-1,-1): for i in range(0,len(triangle[level]),1): rst[i] = triangle[level][i] + min(rst[i], rst[i+1]) return rst[0]
class Solution: def minimum_total(self, triangle: 'List[List[int]]') -> 'int': if not triangle: return rst = triangle[-1] for level in range(len(triangle) - 2, -1, -1): for i in range(0, len(triangle[level]), 1): rst[i] = triangle[level][i] + min(rst[i], rst[i + 1]) return rst[0]
def digit_sum(): a=int(input('Enter an integer ')) sum=0 for i in range(1,a+1): sum+=i if(i!=a): print(i,end='+') else: print(a,'=',sum) digit_sum()
def digit_sum(): a = int(input('Enter an integer ')) sum = 0 for i in range(1, a + 1): sum += i if i != a: print(i, end='+') else: print(a, '=', sum) digit_sum()
# commaCode script # Chapter 4 - Lists def func(arg): text = "" for i in range(len(arg)): text = text + arg[i] + ". " if i == len(arg) - 2: text += "and " return text spam = ['apples', 'bananas', 'tofu', 'cats'] print(func(spam))
def func(arg): text = '' for i in range(len(arg)): text = text + arg[i] + '. ' if i == len(arg) - 2: text += 'and ' return text spam = ['apples', 'bananas', 'tofu', 'cats'] print(func(spam))
# https://leetcode.com/problems/is-subsequence/ class Solution: def isSubsequence(self, s: str, t: str) -> bool: if not s: return True if len(t) < len(s): return False s_idx = 0 for t_idx in range(len(t)): if s[s_idx] == t[t_idx]: s_idx += 1 if s_idx == len(s): return True return False
class Solution: def is_subsequence(self, s: str, t: str) -> bool: if not s: return True if len(t) < len(s): return False s_idx = 0 for t_idx in range(len(t)): if s[s_idx] == t[t_idx]: s_idx += 1 if s_idx == len(s): return True return False
class Validator(object): def __init__(self): self.isValid = False def validate(self, number): try: if number is None: return self.isValid if isinstance(number, str) and number.find(' ') >= 0: number = number.replace(' ', '') self.isValid = number.isdigit() and len(number) == 10 if self.isValid: multiplier = 10 n = 0 numArray = list(number) for value in numArray: if multiplier == 1: break n = n + (int(value) * multiplier) multiplier = multiplier - 1 n = 11 - (n % 11) if n == 11: n = 0 if n == 10: self.isValid = False return self.isValid self.isValid = int(numArray[9]) == n return self.isValid except Exception: self.isValid = False return self.isValid
class Validator(object): def __init__(self): self.isValid = False def validate(self, number): try: if number is None: return self.isValid if isinstance(number, str) and number.find(' ') >= 0: number = number.replace(' ', '') self.isValid = number.isdigit() and len(number) == 10 if self.isValid: multiplier = 10 n = 0 num_array = list(number) for value in numArray: if multiplier == 1: break n = n + int(value) * multiplier multiplier = multiplier - 1 n = 11 - n % 11 if n == 11: n = 0 if n == 10: self.isValid = False return self.isValid self.isValid = int(numArray[9]) == n return self.isValid except Exception: self.isValid = False return self.isValid
message = input().split() for word in message: number = "" letters = "" for char in word: if char.isdigit(): number += char else: letters += char first_letter = chr(int(number)) current_word = first_letter + letters current_word = list(current_word) current_word[1], current_word[-1] = current_word[-1], current_word[1] current_word = "".join(current_word) print(current_word, end=" ") # data input # 72olle 103doo 100ya
message = input().split() for word in message: number = '' letters = '' for char in word: if char.isdigit(): number += char else: letters += char first_letter = chr(int(number)) current_word = first_letter + letters current_word = list(current_word) (current_word[1], current_word[-1]) = (current_word[-1], current_word[1]) current_word = ''.join(current_word) print(current_word, end=' ')
def prog(l, noun=12, verb=2): res = list(map(int, l.split(','))) res[1] = noun res[2] = verb for i in range(0, len(l), 4): if res[i] == 1: res[res[i+3]] = res[res[i+1]] + res[res[i+2]] elif res[i] == 2: res[res[i+3]] = res[res[i+1]] * res[res[i+2]] elif res[i] == 99: return res else: raise ValueError(i) input = '1,0,0,3,1,1,2,3,1,3,4,3,1,5,0,3,2,1,10,19,2,6,19,23,1,23,5,27,1,27,13,31,2,6,31,35,1,5,35,39,1,39,10,43,2,6,43,47,1,47,5,51,1,51,9,55,2,55,6,59,1,59,10,63,2,63,9,67,1,67,5,71,1,71,5,75,2,75,6,79,1,5,79,83,1,10,83,87,2,13,87,91,1,10,91,95,2,13,95,99,1,99,9,103,1,5,103,107,1,107,10,111,1,111,5,115,1,115,6,119,1,119,10,123,1,123,10,127,2,127,13,131,1,13,131,135,1,135,10,139,2,139,6,143,1,143,9,147,2,147,6,151,1,5,151,155,1,9,155,159,2,159,6,163,1,163,2,167,1,10,167,0,99,2,14,0,0' if __name__ == '__main__': print(prog(input)[0])
def prog(l, noun=12, verb=2): res = list(map(int, l.split(','))) res[1] = noun res[2] = verb for i in range(0, len(l), 4): if res[i] == 1: res[res[i + 3]] = res[res[i + 1]] + res[res[i + 2]] elif res[i] == 2: res[res[i + 3]] = res[res[i + 1]] * res[res[i + 2]] elif res[i] == 99: return res else: raise value_error(i) input = '1,0,0,3,1,1,2,3,1,3,4,3,1,5,0,3,2,1,10,19,2,6,19,23,1,23,5,27,1,27,13,31,2,6,31,35,1,5,35,39,1,39,10,43,2,6,43,47,1,47,5,51,1,51,9,55,2,55,6,59,1,59,10,63,2,63,9,67,1,67,5,71,1,71,5,75,2,75,6,79,1,5,79,83,1,10,83,87,2,13,87,91,1,10,91,95,2,13,95,99,1,99,9,103,1,5,103,107,1,107,10,111,1,111,5,115,1,115,6,119,1,119,10,123,1,123,10,127,2,127,13,131,1,13,131,135,1,135,10,139,2,139,6,143,1,143,9,147,2,147,6,151,1,5,151,155,1,9,155,159,2,159,6,163,1,163,2,167,1,10,167,0,99,2,14,0,0' if __name__ == '__main__': print(prog(input)[0])
# # PySNMP MIB module CISCO-LWAPP-AAA-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-AAA-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:47:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint") CLSecKeyFormat, = mibBuilder.importSymbols("CISCO-LWAPP-TC-MIB", "CLSecKeyFormat") cLWlanIndex, = mibBuilder.importSymbols("CISCO-LWAPP-WLAN-MIB", "cLWlanIndex") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") InetAddressType, InetPortNumber, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetPortNumber", "InetAddress") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") Integer32, TimeTicks, iso, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Counter64, ObjectIdentity, NotificationType, IpAddress, Bits, Gauge32, ModuleIdentity, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "iso", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Counter64", "ObjectIdentity", "NotificationType", "IpAddress", "Bits", "Gauge32", "ModuleIdentity", "MibIdentifier") MacAddress, TimeInterval, DisplayString, TruthValue, RowStatus, TextualConvention, StorageType = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TimeInterval", "DisplayString", "TruthValue", "RowStatus", "TextualConvention", "StorageType") ciscoLwappAAAMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 598)) ciscoLwappAAAMIB.setRevisions(('2010-07-25 00:00', '2006-11-21 00:00',)) if mibBuilder.loadTexts: ciscoLwappAAAMIB.setLastUpdated('201007250000Z') if mibBuilder.loadTexts: ciscoLwappAAAMIB.setOrganization('Cisco Systems Inc.') ciscoLwappAAAMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 0)) ciscoLwappAAAMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 1)) ciscoLwappAAAMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 2)) claConfigObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1)) claStatusObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2)) claPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 1), ) if mibBuilder.loadTexts: claPriorityTable.setStatus('current') claPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-LWAPP-AAA-MIB", "claPriorityAuth")) if mibBuilder.loadTexts: claPriorityEntry.setStatus('current') claPriorityAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("local", 1), ("radius", 2), ("tacacsplus", 3)))) if mibBuilder.loadTexts: claPriorityAuth.setStatus('current') claPriorityOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: claPriorityOrder.setStatus('current') claTacacsServerTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2), ) if mibBuilder.loadTexts: claTacacsServerTable.setStatus('current') claTacacsServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-LWAPP-AAA-MIB", "claTacacsServerType"), (0, "CISCO-LWAPP-AAA-MIB", "claTacacsServerPriority")) if mibBuilder.loadTexts: claTacacsServerEntry.setStatus('current') claTacacsServerType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("authentication", 1), ("authorization", 2), ("accounting", 3)))) if mibBuilder.loadTexts: claTacacsServerType.setStatus('current') claTacacsServerPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 2), Unsigned32()) if mibBuilder.loadTexts: claTacacsServerPriority.setStatus('current') claTacacsServerAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 3), InetAddressType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerAddressType.setStatus('current') claTacacsServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 4), InetAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerAddress.setStatus('current') claTacacsServerPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 5), InetPortNumber()).setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerPortNum.setStatus('current') claTacacsServerEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 6), TruthValue().clone('true')).setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerEnabled.setStatus('current') claTacacsServerSecretType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 7), CLSecKeyFormat()).setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerSecretType.setStatus('current') claTacacsServerSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 8), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerSecret.setStatus('current') claTacacsServerTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(5, 30)).clone(5)).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerTimeout.setStatus('current') claTacacsServerStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 10), StorageType().clone('nonVolatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerStorageType.setStatus('current') claTacacsServerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: claTacacsServerRowStatus.setStatus('current') claWlanTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 3), ) if mibBuilder.loadTexts: claWlanTable.setStatus('current') claWlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 3, 1), ).setIndexNames((0, "CISCO-LWAPP-WLAN-MIB", "cLWlanIndex")) if mibBuilder.loadTexts: claWlanEntry.setStatus('current') claWlanAcctServerEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 3, 1, 1), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claWlanAcctServerEnabled.setStatus('current') claWlanAuthServerEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 3, 1, 2), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claWlanAuthServerEnabled.setStatus('current') claSaveUserData = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 9), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claSaveUserData.setStatus('current') claWebRadiusAuthentication = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pap", 1), ("chap", 2), ("md5-chap", 3))).clone('pap')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claWebRadiusAuthentication.setStatus('current') claRadiusFallbackMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("passive", 2), ("active", 3))).clone('off')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusFallbackMode.setStatus('current') claRadiusFallbackUsername = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 12), SnmpAdminString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusFallbackUsername.setStatus('current') claRadiusFallbackInterval = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 13), TimeInterval().subtype(subtypeSpec=ValueRangeConstraint(180, 3600)).clone(300)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusFallbackInterval.setStatus('current') claRadiusAuthMacDelimiter = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noDelimiter", 1), ("colon", 2), ("hyphen", 3), ("singleHyphen", 4))).clone('hyphen')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusAuthMacDelimiter.setStatus('current') claRadiusAcctMacDelimiter = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noDelimiter", 1), ("colon", 2), ("hyphen", 3), ("singleHyphen", 4))).clone('hyphen')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusAcctMacDelimiter.setStatus('current') claAcceptMICertificate = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 16), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claAcceptMICertificate.setStatus('current') claAcceptLSCertificate = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 17), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claAcceptLSCertificate.setStatus('current') claAllowAuthorizeLscApAgainstAAA = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 18), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claAllowAuthorizeLscApAgainstAAA.setStatus('current') claRadiusServerTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1), ) if mibBuilder.loadTexts: claRadiusServerTable.setStatus('current') claRadiusServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-LWAPP-AAA-MIB", "claRadiusReqId")) if mibBuilder.loadTexts: claRadiusServerEntry.setStatus('current') claRadiusReqId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: claRadiusReqId.setStatus('current') claRadiusAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 2), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: claRadiusAddressType.setStatus('current') claRadiusAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 3), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: claRadiusAddress.setStatus('current') claRadiusPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 4), InetPortNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: claRadiusPortNum.setStatus('current') claRadiusWlanIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 17))).setMaxAccess("readonly") if mibBuilder.loadTexts: claRadiusWlanIdx.setStatus('current') claRadiusClientMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 6), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: claRadiusClientMacAddress.setStatus('current') claRadiusUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: claRadiusUserName.setStatus('current') claDBCurrentUsedEntries = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: claDBCurrentUsedEntries.setStatus('current') claRadiusServerGlobalActivatedEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 4), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusServerGlobalActivatedEnabled.setStatus('current') claRadiusServerGlobalDeactivatedEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 5), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusServerGlobalDeactivatedEnabled.setStatus('current') claRadiusServerWlanActivatedEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusServerWlanActivatedEnabled.setStatus('current') claRadiusServerWlanDeactivatedEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 7), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusServerWlanDeactivatedEnabled.setStatus('current') claRadiusReqTimedOutEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 8), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: claRadiusReqTimedOutEnabled.setStatus('current') ciscoLwappAAARadiusServerGlobalActivated = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 1)).setObjects(("CISCO-LWAPP-AAA-MIB", "claRadiusAddressType"), ("CISCO-LWAPP-AAA-MIB", "claRadiusAddress"), ("CISCO-LWAPP-AAA-MIB", "claRadiusPortNum")) if mibBuilder.loadTexts: ciscoLwappAAARadiusServerGlobalActivated.setStatus('current') ciscoLwappAAARadiusServerGlobalDeactivated = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 2)).setObjects(("CISCO-LWAPP-AAA-MIB", "claRadiusAddressType"), ("CISCO-LWAPP-AAA-MIB", "claRadiusAddress"), ("CISCO-LWAPP-AAA-MIB", "claRadiusPortNum")) if mibBuilder.loadTexts: ciscoLwappAAARadiusServerGlobalDeactivated.setStatus('current') ciscoLwappAAARadiusServerWlanActivated = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 3)).setObjects(("CISCO-LWAPP-AAA-MIB", "claRadiusAddressType"), ("CISCO-LWAPP-AAA-MIB", "claRadiusAddress"), ("CISCO-LWAPP-AAA-MIB", "claRadiusPortNum"), ("CISCO-LWAPP-AAA-MIB", "claRadiusWlanIdx")) if mibBuilder.loadTexts: ciscoLwappAAARadiusServerWlanActivated.setStatus('current') ciscoLwappAAARadiusServerWlanDeactivated = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 4)).setObjects(("CISCO-LWAPP-AAA-MIB", "claRadiusAddressType"), ("CISCO-LWAPP-AAA-MIB", "claRadiusAddress"), ("CISCO-LWAPP-AAA-MIB", "claRadiusPortNum"), ("CISCO-LWAPP-AAA-MIB", "claRadiusWlanIdx")) if mibBuilder.loadTexts: ciscoLwappAAARadiusServerWlanDeactivated.setStatus('current') ciscoLwappAAARadiusReqTimedOut = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 5)).setObjects(("CISCO-LWAPP-AAA-MIB", "claRadiusAddressType"), ("CISCO-LWAPP-AAA-MIB", "claRadiusAddress"), ("CISCO-LWAPP-AAA-MIB", "claRadiusPortNum"), ("CISCO-LWAPP-AAA-MIB", "claRadiusClientMacAddress"), ("CISCO-LWAPP-AAA-MIB", "claRadiusUserName")) if mibBuilder.loadTexts: ciscoLwappAAARadiusReqTimedOut.setStatus('current') ciscoLwappAAAMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 1)) ciscoLwappAAAMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2)) ciscoLwappAAAMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 1, 1)).setObjects(("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBConfigGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBNotifsGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBStatusObjsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBCompliance = ciscoLwappAAAMIBCompliance.setStatus('deprecated') ciscoLwappAAAMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 1, 2)).setObjects(("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBConfigGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBSaveUserConfigGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBRadiusConfigGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBAPPolicyConfigGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBWlanAuthAccServerConfigGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBNotifsGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBStatusObjsGroup"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAAMIBDBEntriesGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBComplianceRev1 = ciscoLwappAAAMIBComplianceRev1.setStatus('current') ciscoLwappAAAMIBConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 1)).setObjects(("CISCO-LWAPP-AAA-MIB", "claPriorityOrder"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerAddressType"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerAddress"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerPortNum"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerEnabled"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerSecretType"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerSecret"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerTimeout"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerStorageType"), ("CISCO-LWAPP-AAA-MIB", "claTacacsServerRowStatus"), ("CISCO-LWAPP-AAA-MIB", "claRadiusServerGlobalActivatedEnabled"), ("CISCO-LWAPP-AAA-MIB", "claRadiusServerGlobalDeactivatedEnabled"), ("CISCO-LWAPP-AAA-MIB", "claRadiusServerWlanActivatedEnabled"), ("CISCO-LWAPP-AAA-MIB", "claRadiusServerWlanDeactivatedEnabled"), ("CISCO-LWAPP-AAA-MIB", "claRadiusReqTimedOutEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBConfigGroup = ciscoLwappAAAMIBConfigGroup.setStatus('current') ciscoLwappAAAMIBSaveUserConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 2)).setObjects(("CISCO-LWAPP-AAA-MIB", "claSaveUserData")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBSaveUserConfigGroup = ciscoLwappAAAMIBSaveUserConfigGroup.setStatus('current') ciscoLwappAAAMIBNotifsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 3)).setObjects(("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAARadiusServerGlobalActivated"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAARadiusServerGlobalDeactivated"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAARadiusServerWlanActivated"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAARadiusServerWlanDeactivated"), ("CISCO-LWAPP-AAA-MIB", "ciscoLwappAAARadiusReqTimedOut")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBNotifsGroup = ciscoLwappAAAMIBNotifsGroup.setStatus('current') ciscoLwappAAAMIBStatusObjsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 4)).setObjects(("CISCO-LWAPP-AAA-MIB", "claRadiusAddressType"), ("CISCO-LWAPP-AAA-MIB", "claRadiusAddress"), ("CISCO-LWAPP-AAA-MIB", "claRadiusPortNum"), ("CISCO-LWAPP-AAA-MIB", "claRadiusWlanIdx"), ("CISCO-LWAPP-AAA-MIB", "claRadiusClientMacAddress"), ("CISCO-LWAPP-AAA-MIB", "claRadiusUserName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBStatusObjsGroup = ciscoLwappAAAMIBStatusObjsGroup.setStatus('current') ciscoLwappAAAMIBDBEntriesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 5)).setObjects(("CISCO-LWAPP-AAA-MIB", "claDBCurrentUsedEntries")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBDBEntriesGroup = ciscoLwappAAAMIBDBEntriesGroup.setStatus('current') ciscoLwappAAAMIBRadiusConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 6)).setObjects(("CISCO-LWAPP-AAA-MIB", "claWebRadiusAuthentication"), ("CISCO-LWAPP-AAA-MIB", "claRadiusFallbackMode"), ("CISCO-LWAPP-AAA-MIB", "claRadiusFallbackUsername"), ("CISCO-LWAPP-AAA-MIB", "claRadiusFallbackInterval"), ("CISCO-LWAPP-AAA-MIB", "claRadiusAuthMacDelimiter"), ("CISCO-LWAPP-AAA-MIB", "claRadiusAcctMacDelimiter")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBRadiusConfigGroup = ciscoLwappAAAMIBRadiusConfigGroup.setStatus('current') ciscoLwappAAAMIBAPPolicyConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 7)).setObjects(("CISCO-LWAPP-AAA-MIB", "claAcceptMICertificate"), ("CISCO-LWAPP-AAA-MIB", "claAcceptLSCertificate"), ("CISCO-LWAPP-AAA-MIB", "claAllowAuthorizeLscApAgainstAAA")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBAPPolicyConfigGroup = ciscoLwappAAAMIBAPPolicyConfigGroup.setStatus('current') ciscoLwappAAAMIBWlanAuthAccServerConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 8)).setObjects(("CISCO-LWAPP-AAA-MIB", "claWlanAuthServerEnabled"), ("CISCO-LWAPP-AAA-MIB", "claWlanAcctServerEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLwappAAAMIBWlanAuthAccServerConfigGroup = ciscoLwappAAAMIBWlanAuthAccServerConfigGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-LWAPP-AAA-MIB", claRadiusReqTimedOutEnabled=claRadiusReqTimedOutEnabled, ciscoLwappAAAMIBCompliances=ciscoLwappAAAMIBCompliances, claConfigObjects=claConfigObjects, claAllowAuthorizeLscApAgainstAAA=claAllowAuthorizeLscApAgainstAAA, claRadiusUserName=claRadiusUserName, ciscoLwappAAAMIBNotifs=ciscoLwappAAAMIBNotifs, ciscoLwappAAAMIBConform=ciscoLwappAAAMIBConform, claRadiusFallbackUsername=claRadiusFallbackUsername, claStatusObjects=claStatusObjects, claTacacsServerRowStatus=claTacacsServerRowStatus, claRadiusServerEntry=claRadiusServerEntry, claSaveUserData=claSaveUserData, claWebRadiusAuthentication=claWebRadiusAuthentication, claWlanEntry=claWlanEntry, claRadiusWlanIdx=claRadiusWlanIdx, ciscoLwappAAAMIBGroups=ciscoLwappAAAMIBGroups, ciscoLwappAAAMIBCompliance=ciscoLwappAAAMIBCompliance, claTacacsServerSecretType=claTacacsServerSecretType, claRadiusFallbackMode=claRadiusFallbackMode, claRadiusAuthMacDelimiter=claRadiusAuthMacDelimiter, claRadiusServerTable=claRadiusServerTable, ciscoLwappAAAMIBSaveUserConfigGroup=ciscoLwappAAAMIBSaveUserConfigGroup, ciscoLwappAAAMIBComplianceRev1=ciscoLwappAAAMIBComplianceRev1, ciscoLwappAAAMIBStatusObjsGroup=ciscoLwappAAAMIBStatusObjsGroup, claRadiusPortNum=claRadiusPortNum, claRadiusServerGlobalDeactivatedEnabled=claRadiusServerGlobalDeactivatedEnabled, claWlanTable=claWlanTable, PYSNMP_MODULE_ID=ciscoLwappAAAMIB, ciscoLwappAAAMIB=ciscoLwappAAAMIB, claPriorityEntry=claPriorityEntry, ciscoLwappAAAMIBConfigGroup=ciscoLwappAAAMIBConfigGroup, claDBCurrentUsedEntries=claDBCurrentUsedEntries, claTacacsServerType=claTacacsServerType, claTacacsServerTimeout=claTacacsServerTimeout, claRadiusServerWlanActivatedEnabled=claRadiusServerWlanActivatedEnabled, claRadiusFallbackInterval=claRadiusFallbackInterval, ciscoLwappAAARadiusServerWlanDeactivated=ciscoLwappAAARadiusServerWlanDeactivated, claTacacsServerTable=claTacacsServerTable, claTacacsServerStorageType=claTacacsServerStorageType, claPriorityTable=claPriorityTable, claTacacsServerAddressType=claTacacsServerAddressType, ciscoLwappAAARadiusServerGlobalDeactivated=ciscoLwappAAARadiusServerGlobalDeactivated, claRadiusServerWlanDeactivatedEnabled=claRadiusServerWlanDeactivatedEnabled, claRadiusClientMacAddress=claRadiusClientMacAddress, ciscoLwappAAAMIBNotifsGroup=ciscoLwappAAAMIBNotifsGroup, claRadiusAcctMacDelimiter=claRadiusAcctMacDelimiter, claRadiusReqId=claRadiusReqId, claTacacsServerPriority=claTacacsServerPriority, claAcceptMICertificate=claAcceptMICertificate, claRadiusServerGlobalActivatedEnabled=claRadiusServerGlobalActivatedEnabled, ciscoLwappAAARadiusReqTimedOut=ciscoLwappAAARadiusReqTimedOut, ciscoLwappAAAMIBObjects=ciscoLwappAAAMIBObjects, claTacacsServerEnabled=claTacacsServerEnabled, ciscoLwappAAARadiusServerWlanActivated=ciscoLwappAAARadiusServerWlanActivated, claTacacsServerSecret=claTacacsServerSecret, claWlanAuthServerEnabled=claWlanAuthServerEnabled, claTacacsServerEntry=claTacacsServerEntry, claTacacsServerAddress=claTacacsServerAddress, claRadiusAddressType=claRadiusAddressType, claRadiusAddress=claRadiusAddress, claWlanAcctServerEnabled=claWlanAcctServerEnabled, ciscoLwappAAAMIBRadiusConfigGroup=ciscoLwappAAAMIBRadiusConfigGroup, ciscoLwappAAAMIBAPPolicyConfigGroup=ciscoLwappAAAMIBAPPolicyConfigGroup, claPriorityOrder=claPriorityOrder, ciscoLwappAAAMIBWlanAuthAccServerConfigGroup=ciscoLwappAAAMIBWlanAuthAccServerConfigGroup, ciscoLwappAAAMIBDBEntriesGroup=ciscoLwappAAAMIBDBEntriesGroup, claAcceptLSCertificate=claAcceptLSCertificate, ciscoLwappAAARadiusServerGlobalActivated=ciscoLwappAAARadiusServerGlobalActivated, claTacacsServerPortNum=claTacacsServerPortNum, claPriorityAuth=claPriorityAuth)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, constraints_intersection, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint') (cl_sec_key_format,) = mibBuilder.importSymbols('CISCO-LWAPP-TC-MIB', 'CLSecKeyFormat') (c_l_wlan_index,) = mibBuilder.importSymbols('CISCO-LWAPP-WLAN-MIB', 'cLWlanIndex') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (inet_address_type, inet_port_number, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetPortNumber', 'InetAddress') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (integer32, time_ticks, iso, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, counter64, object_identity, notification_type, ip_address, bits, gauge32, module_identity, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'TimeTicks', 'iso', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Counter64', 'ObjectIdentity', 'NotificationType', 'IpAddress', 'Bits', 'Gauge32', 'ModuleIdentity', 'MibIdentifier') (mac_address, time_interval, display_string, truth_value, row_status, textual_convention, storage_type) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'TimeInterval', 'DisplayString', 'TruthValue', 'RowStatus', 'TextualConvention', 'StorageType') cisco_lwapp_aaamib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 598)) ciscoLwappAAAMIB.setRevisions(('2010-07-25 00:00', '2006-11-21 00:00')) if mibBuilder.loadTexts: ciscoLwappAAAMIB.setLastUpdated('201007250000Z') if mibBuilder.loadTexts: ciscoLwappAAAMIB.setOrganization('Cisco Systems Inc.') cisco_lwapp_aaamib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 0)) cisco_lwapp_aaamib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 1)) cisco_lwapp_aaamib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 2)) cla_config_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1)) cla_status_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2)) cla_priority_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 1)) if mibBuilder.loadTexts: claPriorityTable.setStatus('current') cla_priority_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-LWAPP-AAA-MIB', 'claPriorityAuth')) if mibBuilder.loadTexts: claPriorityEntry.setStatus('current') cla_priority_auth = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('local', 1), ('radius', 2), ('tacacsplus', 3)))) if mibBuilder.loadTexts: claPriorityAuth.setStatus('current') cla_priority_order = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: claPriorityOrder.setStatus('current') cla_tacacs_server_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2)) if mibBuilder.loadTexts: claTacacsServerTable.setStatus('current') cla_tacacs_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1)).setIndexNames((0, 'CISCO-LWAPP-AAA-MIB', 'claTacacsServerType'), (0, 'CISCO-LWAPP-AAA-MIB', 'claTacacsServerPriority')) if mibBuilder.loadTexts: claTacacsServerEntry.setStatus('current') cla_tacacs_server_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('authentication', 1), ('authorization', 2), ('accounting', 3)))) if mibBuilder.loadTexts: claTacacsServerType.setStatus('current') cla_tacacs_server_priority = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 2), unsigned32()) if mibBuilder.loadTexts: claTacacsServerPriority.setStatus('current') cla_tacacs_server_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 3), inet_address_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerAddressType.setStatus('current') cla_tacacs_server_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 4), inet_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerAddress.setStatus('current') cla_tacacs_server_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 5), inet_port_number()).setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerPortNum.setStatus('current') cla_tacacs_server_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 6), truth_value().clone('true')).setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerEnabled.setStatus('current') cla_tacacs_server_secret_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 7), cl_sec_key_format()).setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerSecretType.setStatus('current') cla_tacacs_server_secret = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 8), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerSecret.setStatus('current') cla_tacacs_server_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(5, 30)).clone(5)).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerTimeout.setStatus('current') cla_tacacs_server_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 10), storage_type().clone('nonVolatile')).setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerStorageType.setStatus('current') cla_tacacs_server_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 2, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: claTacacsServerRowStatus.setStatus('current') cla_wlan_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 3)) if mibBuilder.loadTexts: claWlanTable.setStatus('current') cla_wlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 3, 1)).setIndexNames((0, 'CISCO-LWAPP-WLAN-MIB', 'cLWlanIndex')) if mibBuilder.loadTexts: claWlanEntry.setStatus('current') cla_wlan_acct_server_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 3, 1, 1), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claWlanAcctServerEnabled.setStatus('current') cla_wlan_auth_server_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 3, 1, 2), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claWlanAuthServerEnabled.setStatus('current') cla_save_user_data = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 9), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claSaveUserData.setStatus('current') cla_web_radius_authentication = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pap', 1), ('chap', 2), ('md5-chap', 3))).clone('pap')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claWebRadiusAuthentication.setStatus('current') cla_radius_fallback_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('passive', 2), ('active', 3))).clone('off')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusFallbackMode.setStatus('current') cla_radius_fallback_username = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 12), snmp_admin_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusFallbackUsername.setStatus('current') cla_radius_fallback_interval = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 13), time_interval().subtype(subtypeSpec=value_range_constraint(180, 3600)).clone(300)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusFallbackInterval.setStatus('current') cla_radius_auth_mac_delimiter = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('noDelimiter', 1), ('colon', 2), ('hyphen', 3), ('singleHyphen', 4))).clone('hyphen')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusAuthMacDelimiter.setStatus('current') cla_radius_acct_mac_delimiter = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('noDelimiter', 1), ('colon', 2), ('hyphen', 3), ('singleHyphen', 4))).clone('hyphen')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusAcctMacDelimiter.setStatus('current') cla_accept_mi_certificate = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 16), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claAcceptMICertificate.setStatus('current') cla_accept_ls_certificate = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 17), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claAcceptLSCertificate.setStatus('current') cla_allow_authorize_lsc_ap_against_aaa = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 18), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claAllowAuthorizeLscApAgainstAAA.setStatus('current') cla_radius_server_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1)) if mibBuilder.loadTexts: claRadiusServerTable.setStatus('current') cla_radius_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-LWAPP-AAA-MIB', 'claRadiusReqId')) if mibBuilder.loadTexts: claRadiusServerEntry.setStatus('current') cla_radius_req_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: claRadiusReqId.setStatus('current') cla_radius_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 2), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: claRadiusAddressType.setStatus('current') cla_radius_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 3), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: claRadiusAddress.setStatus('current') cla_radius_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 4), inet_port_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: claRadiusPortNum.setStatus('current') cla_radius_wlan_idx = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 17))).setMaxAccess('readonly') if mibBuilder.loadTexts: claRadiusWlanIdx.setStatus('current') cla_radius_client_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 6), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: claRadiusClientMacAddress.setStatus('current') cla_radius_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 1, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: claRadiusUserName.setStatus('current') cla_db_current_used_entries = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 2, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: claDBCurrentUsedEntries.setStatus('current') cla_radius_server_global_activated_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 4), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusServerGlobalActivatedEnabled.setStatus('current') cla_radius_server_global_deactivated_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 5), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusServerGlobalDeactivatedEnabled.setStatus('current') cla_radius_server_wlan_activated_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 6), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusServerWlanActivatedEnabled.setStatus('current') cla_radius_server_wlan_deactivated_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 7), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusServerWlanDeactivatedEnabled.setStatus('current') cla_radius_req_timed_out_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 598, 1, 1, 8), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: claRadiusReqTimedOutEnabled.setStatus('current') cisco_lwapp_aaa_radius_server_global_activated = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 1)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claRadiusAddressType'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusAddress'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusPortNum')) if mibBuilder.loadTexts: ciscoLwappAAARadiusServerGlobalActivated.setStatus('current') cisco_lwapp_aaa_radius_server_global_deactivated = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 2)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claRadiusAddressType'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusAddress'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusPortNum')) if mibBuilder.loadTexts: ciscoLwappAAARadiusServerGlobalDeactivated.setStatus('current') cisco_lwapp_aaa_radius_server_wlan_activated = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 3)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claRadiusAddressType'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusAddress'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusPortNum'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusWlanIdx')) if mibBuilder.loadTexts: ciscoLwappAAARadiusServerWlanActivated.setStatus('current') cisco_lwapp_aaa_radius_server_wlan_deactivated = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 4)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claRadiusAddressType'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusAddress'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusPortNum'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusWlanIdx')) if mibBuilder.loadTexts: ciscoLwappAAARadiusServerWlanDeactivated.setStatus('current') cisco_lwapp_aaa_radius_req_timed_out = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 598, 0, 5)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claRadiusAddressType'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusAddress'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusPortNum'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusClientMacAddress'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusUserName')) if mibBuilder.loadTexts: ciscoLwappAAARadiusReqTimedOut.setStatus('current') cisco_lwapp_aaamib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 1)) cisco_lwapp_aaamib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2)) cisco_lwapp_aaamib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 1, 1)).setObjects(('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBConfigGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBNotifsGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBStatusObjsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamib_compliance = ciscoLwappAAAMIBCompliance.setStatus('deprecated') cisco_lwapp_aaamib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 1, 2)).setObjects(('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBConfigGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBSaveUserConfigGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBRadiusConfigGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBAPPolicyConfigGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBWlanAuthAccServerConfigGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBNotifsGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBStatusObjsGroup'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAAMIBDBEntriesGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamib_compliance_rev1 = ciscoLwappAAAMIBComplianceRev1.setStatus('current') cisco_lwapp_aaamib_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 1)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claPriorityOrder'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerAddressType'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerAddress'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerPortNum'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerEnabled'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerSecretType'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerSecret'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerTimeout'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerStorageType'), ('CISCO-LWAPP-AAA-MIB', 'claTacacsServerRowStatus'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusServerGlobalActivatedEnabled'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusServerGlobalDeactivatedEnabled'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusServerWlanActivatedEnabled'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusServerWlanDeactivatedEnabled'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusReqTimedOutEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamib_config_group = ciscoLwappAAAMIBConfigGroup.setStatus('current') cisco_lwapp_aaamib_save_user_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 2)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claSaveUserData')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamib_save_user_config_group = ciscoLwappAAAMIBSaveUserConfigGroup.setStatus('current') cisco_lwapp_aaamib_notifs_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 3)).setObjects(('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAARadiusServerGlobalActivated'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAARadiusServerGlobalDeactivated'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAARadiusServerWlanActivated'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAARadiusServerWlanDeactivated'), ('CISCO-LWAPP-AAA-MIB', 'ciscoLwappAAARadiusReqTimedOut')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamib_notifs_group = ciscoLwappAAAMIBNotifsGroup.setStatus('current') cisco_lwapp_aaamib_status_objs_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 4)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claRadiusAddressType'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusAddress'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusPortNum'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusWlanIdx'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusClientMacAddress'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusUserName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamib_status_objs_group = ciscoLwappAAAMIBStatusObjsGroup.setStatus('current') cisco_lwapp_aaamibdb_entries_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 5)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claDBCurrentUsedEntries')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamibdb_entries_group = ciscoLwappAAAMIBDBEntriesGroup.setStatus('current') cisco_lwapp_aaamib_radius_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 6)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claWebRadiusAuthentication'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusFallbackMode'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusFallbackUsername'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusFallbackInterval'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusAuthMacDelimiter'), ('CISCO-LWAPP-AAA-MIB', 'claRadiusAcctMacDelimiter')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamib_radius_config_group = ciscoLwappAAAMIBRadiusConfigGroup.setStatus('current') cisco_lwapp_aaamibap_policy_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 7)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claAcceptMICertificate'), ('CISCO-LWAPP-AAA-MIB', 'claAcceptLSCertificate'), ('CISCO-LWAPP-AAA-MIB', 'claAllowAuthorizeLscApAgainstAAA')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamibap_policy_config_group = ciscoLwappAAAMIBAPPolicyConfigGroup.setStatus('current') cisco_lwapp_aaamib_wlan_auth_acc_server_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 598, 2, 2, 8)).setObjects(('CISCO-LWAPP-AAA-MIB', 'claWlanAuthServerEnabled'), ('CISCO-LWAPP-AAA-MIB', 'claWlanAcctServerEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_lwapp_aaamib_wlan_auth_acc_server_config_group = ciscoLwappAAAMIBWlanAuthAccServerConfigGroup.setStatus('current') mibBuilder.exportSymbols('CISCO-LWAPP-AAA-MIB', claRadiusReqTimedOutEnabled=claRadiusReqTimedOutEnabled, ciscoLwappAAAMIBCompliances=ciscoLwappAAAMIBCompliances, claConfigObjects=claConfigObjects, claAllowAuthorizeLscApAgainstAAA=claAllowAuthorizeLscApAgainstAAA, claRadiusUserName=claRadiusUserName, ciscoLwappAAAMIBNotifs=ciscoLwappAAAMIBNotifs, ciscoLwappAAAMIBConform=ciscoLwappAAAMIBConform, claRadiusFallbackUsername=claRadiusFallbackUsername, claStatusObjects=claStatusObjects, claTacacsServerRowStatus=claTacacsServerRowStatus, claRadiusServerEntry=claRadiusServerEntry, claSaveUserData=claSaveUserData, claWebRadiusAuthentication=claWebRadiusAuthentication, claWlanEntry=claWlanEntry, claRadiusWlanIdx=claRadiusWlanIdx, ciscoLwappAAAMIBGroups=ciscoLwappAAAMIBGroups, ciscoLwappAAAMIBCompliance=ciscoLwappAAAMIBCompliance, claTacacsServerSecretType=claTacacsServerSecretType, claRadiusFallbackMode=claRadiusFallbackMode, claRadiusAuthMacDelimiter=claRadiusAuthMacDelimiter, claRadiusServerTable=claRadiusServerTable, ciscoLwappAAAMIBSaveUserConfigGroup=ciscoLwappAAAMIBSaveUserConfigGroup, ciscoLwappAAAMIBComplianceRev1=ciscoLwappAAAMIBComplianceRev1, ciscoLwappAAAMIBStatusObjsGroup=ciscoLwappAAAMIBStatusObjsGroup, claRadiusPortNum=claRadiusPortNum, claRadiusServerGlobalDeactivatedEnabled=claRadiusServerGlobalDeactivatedEnabled, claWlanTable=claWlanTable, PYSNMP_MODULE_ID=ciscoLwappAAAMIB, ciscoLwappAAAMIB=ciscoLwappAAAMIB, claPriorityEntry=claPriorityEntry, ciscoLwappAAAMIBConfigGroup=ciscoLwappAAAMIBConfigGroup, claDBCurrentUsedEntries=claDBCurrentUsedEntries, claTacacsServerType=claTacacsServerType, claTacacsServerTimeout=claTacacsServerTimeout, claRadiusServerWlanActivatedEnabled=claRadiusServerWlanActivatedEnabled, claRadiusFallbackInterval=claRadiusFallbackInterval, ciscoLwappAAARadiusServerWlanDeactivated=ciscoLwappAAARadiusServerWlanDeactivated, claTacacsServerTable=claTacacsServerTable, claTacacsServerStorageType=claTacacsServerStorageType, claPriorityTable=claPriorityTable, claTacacsServerAddressType=claTacacsServerAddressType, ciscoLwappAAARadiusServerGlobalDeactivated=ciscoLwappAAARadiusServerGlobalDeactivated, claRadiusServerWlanDeactivatedEnabled=claRadiusServerWlanDeactivatedEnabled, claRadiusClientMacAddress=claRadiusClientMacAddress, ciscoLwappAAAMIBNotifsGroup=ciscoLwappAAAMIBNotifsGroup, claRadiusAcctMacDelimiter=claRadiusAcctMacDelimiter, claRadiusReqId=claRadiusReqId, claTacacsServerPriority=claTacacsServerPriority, claAcceptMICertificate=claAcceptMICertificate, claRadiusServerGlobalActivatedEnabled=claRadiusServerGlobalActivatedEnabled, ciscoLwappAAARadiusReqTimedOut=ciscoLwappAAARadiusReqTimedOut, ciscoLwappAAAMIBObjects=ciscoLwappAAAMIBObjects, claTacacsServerEnabled=claTacacsServerEnabled, ciscoLwappAAARadiusServerWlanActivated=ciscoLwappAAARadiusServerWlanActivated, claTacacsServerSecret=claTacacsServerSecret, claWlanAuthServerEnabled=claWlanAuthServerEnabled, claTacacsServerEntry=claTacacsServerEntry, claTacacsServerAddress=claTacacsServerAddress, claRadiusAddressType=claRadiusAddressType, claRadiusAddress=claRadiusAddress, claWlanAcctServerEnabled=claWlanAcctServerEnabled, ciscoLwappAAAMIBRadiusConfigGroup=ciscoLwappAAAMIBRadiusConfigGroup, ciscoLwappAAAMIBAPPolicyConfigGroup=ciscoLwappAAAMIBAPPolicyConfigGroup, claPriorityOrder=claPriorityOrder, ciscoLwappAAAMIBWlanAuthAccServerConfigGroup=ciscoLwappAAAMIBWlanAuthAccServerConfigGroup, ciscoLwappAAAMIBDBEntriesGroup=ciscoLwappAAAMIBDBEntriesGroup, claAcceptLSCertificate=claAcceptLSCertificate, ciscoLwappAAARadiusServerGlobalActivated=ciscoLwappAAARadiusServerGlobalActivated, claTacacsServerPortNum=claTacacsServerPortNum, claPriorityAuth=claPriorityAuth)
class Solution: def gcdOfStrings(self, str1, str2): if len(str1)<=len(str2): temp = str1 else: temp = str2 m = len(temp) x = 1 res=[""] while x<=m: if m%x==0 and temp[:x] * (len(str1)//x) == str1 and temp[:x] * (len(str2)//x) == str2: res.append(temp[:x]) x+=1 return res[-1] ob1 = Solution() print(ob1.gcdOfStrings("ABABAB","ABAB"))
class Solution: def gcd_of_strings(self, str1, str2): if len(str1) <= len(str2): temp = str1 else: temp = str2 m = len(temp) x = 1 res = [''] while x <= m: if m % x == 0 and temp[:x] * (len(str1) // x) == str1 and (temp[:x] * (len(str2) // x) == str2): res.append(temp[:x]) x += 1 return res[-1] ob1 = solution() print(ob1.gcdOfStrings('ABABAB', 'ABAB'))
# Magatia (261000000) / NLC Town Center (600000000) => Free Market sm.setReturnField() sm.setReturnPortal() sm.warp(910000000, 36)
sm.setReturnField() sm.setReturnPortal() sm.warp(910000000, 36)
class KeywordError(Exception): pass class SingletonError(Exception): pass class StepNotFoundError(Exception): pass class EmptyFeatureError(Exception): pass
class Keyworderror(Exception): pass class Singletonerror(Exception): pass class Stepnotfounderror(Exception): pass class Emptyfeatureerror(Exception): pass
# Number of motors NUM_MOTORS = 12 # Number of legs NUM_LEGS = 4 # ////// # Legs # ////// LEG_NAMES = ["FR", # Front Right "FL", # Front Left "RR", # Rear Right "RL"] # Rear Left # ////////////// # Joint Types: # ////////////// JOINT_TYPES = [0, # Hip 1, # Thigh 2] # Knee # /////////////// # JOINT_MAPPING # /////////////// # Joint names are given by concatenation of # LEG_NAME + JOINT_TYPE as in following table # # ______| Front Right | Front Left | Rear Right | Rear Left # Hip | FR_0 = 0 | FL_0 = 3 | RR_0 = 6 | RL_0 = 9 # Thigh | FR_1 = 1 | FL_1 = 4 | RR_1 = 7 | RL_1 = 10 # Knee | FR_2 = 2 | FL_2 = 5 | RR_2 = 8 | RL_2 = 11 GAINS = {0: {'P': 100, 'D': 1}, 1: {'P': 100, 'D': 2}, 2: {'P': 100, 'D': 2}} # Define the joint limits in rad LEG_JOINT_LIMITS = {0: {'MIN': -0.802, 'MAX': 0.802}, 1: {'MIN': -1.05, 'MAX': 4.19}, 2: {'MIN': -2.7, 'MAX': -0.916}} # Define torque limits in Nm LEG_TORQUE_LIMITS = {0: {'MIN': -10, 'MAX': 10}, 1: {'MIN': -10, 'MAX': 10}, 2: {'MIN': -10, 'MAX': 10}} LEG_JOINT_INITS = {0: 0, 1: 0, 2: 0} LEG_JOINT_OFFSETS = {0: 0, 1: 0, 2: 0} # TODO: Do it more concisely # stand_angles = 4*[0.0, 0.77, -1.82] # init_angles = [-0.25, 1.14, -2.72, # 0.25, 1.14, -2.72, # -0.25, 1.14, -2.72, # 0.25, 1.14, -2.72] # //////////////////////////////////////////////////////////////////////// JOINT_CONSTANTS = { 'OFFSETS': [], 'INITS': [], 'POS_LIMITS': {'MIN': [], 'MAX': []}, 'TORQUE_LIMITS': {'MIN': [], 'MAX': []}, 'GAINS': {'P': [], 'D': []}} for JOINT in range(NUM_MOTORS): JOINT_ID = JOINT % 3 JOINT_CONSTANTS['OFFSETS'].append(LEG_JOINT_INITS[JOINT_ID]) JOINT_CONSTANTS['INITS'].append(LEG_JOINT_OFFSETS[JOINT_ID]) for BOUND in {'MIN', 'MAX'}: POS_LIMIT = LEG_JOINT_LIMITS[JOINT_ID][BOUND] JOINT_CONSTANTS['TORQUE_LIMITS'][BOUND].append(POS_LIMIT) JOINT_CONSTANTS['POS_LIMITS'][BOUND].append(POS_LIMIT) for GAIN_TYPE in {'P', 'D'}: GAIN = GAINS[JOINT_ID][GAIN_TYPE] JOINT_CONSTANTS['GAINS'][GAIN_TYPE].append(GAIN) JOINT_LIMITS = JOINT_CONSTANTS['POS_LIMITS'] JOINT_LIMITS_MIN = JOINT_LIMITS['MIN'] JOINT_LIMITS_MAX = JOINT_LIMITS['MAX'] TORQUE_LIMITS = JOINT_CONSTANTS['TORQUE_LIMITS'] TORQUE_LIMITS_MIN = TORQUE_LIMITS['MIN'] TORQUE_LIMITS_MAX = TORQUE_LIMITS['MAX'] JOINT_OFFSETS = JOINT_CONSTANTS['OFFSETS'] JOINT_INITS = JOINT_CONSTANTS['INITS'] POSITION_GAINS = JOINT_CONSTANTS['GAINS']['P'] DAMPING_GAINS = JOINT_CONSTANTS['GAINS']['D'] # //////////////////////////////////////////////////////////////////////// # TODO: Add high level commands scaling factors # KINEMATIC_PARAMETERS LEG_KINEMATICS = [0.0838, 0.2, 0.2] TRUNK_LENGTH = 0.1805 * 2 TRUNK_WIDTH = 0.047 * 2 LEGS_BASES = [[TRUNK_LENGTH/2, -TRUNK_WIDTH/2], [TRUNK_LENGTH/2, TRUNK_WIDTH/2], [-TRUNK_LENGTH/2, -TRUNK_WIDTH/2], [-TRUNK_LENGTH/2, TRUNK_WIDTH/2]] # LEG_DYNAMICS = # BODY_DYNAMICS =
num_motors = 12 num_legs = 4 leg_names = ['FR', 'FL', 'RR', 'RL'] joint_types = [0, 1, 2] gains = {0: {'P': 100, 'D': 1}, 1: {'P': 100, 'D': 2}, 2: {'P': 100, 'D': 2}} leg_joint_limits = {0: {'MIN': -0.802, 'MAX': 0.802}, 1: {'MIN': -1.05, 'MAX': 4.19}, 2: {'MIN': -2.7, 'MAX': -0.916}} leg_torque_limits = {0: {'MIN': -10, 'MAX': 10}, 1: {'MIN': -10, 'MAX': 10}, 2: {'MIN': -10, 'MAX': 10}} leg_joint_inits = {0: 0, 1: 0, 2: 0} leg_joint_offsets = {0: 0, 1: 0, 2: 0} joint_constants = {'OFFSETS': [], 'INITS': [], 'POS_LIMITS': {'MIN': [], 'MAX': []}, 'TORQUE_LIMITS': {'MIN': [], 'MAX': []}, 'GAINS': {'P': [], 'D': []}} for joint in range(NUM_MOTORS): joint_id = JOINT % 3 JOINT_CONSTANTS['OFFSETS'].append(LEG_JOINT_INITS[JOINT_ID]) JOINT_CONSTANTS['INITS'].append(LEG_JOINT_OFFSETS[JOINT_ID]) for bound in {'MIN', 'MAX'}: pos_limit = LEG_JOINT_LIMITS[JOINT_ID][BOUND] JOINT_CONSTANTS['TORQUE_LIMITS'][BOUND].append(POS_LIMIT) JOINT_CONSTANTS['POS_LIMITS'][BOUND].append(POS_LIMIT) for gain_type in {'P', 'D'}: gain = GAINS[JOINT_ID][GAIN_TYPE] JOINT_CONSTANTS['GAINS'][GAIN_TYPE].append(GAIN) joint_limits = JOINT_CONSTANTS['POS_LIMITS'] joint_limits_min = JOINT_LIMITS['MIN'] joint_limits_max = JOINT_LIMITS['MAX'] torque_limits = JOINT_CONSTANTS['TORQUE_LIMITS'] torque_limits_min = TORQUE_LIMITS['MIN'] torque_limits_max = TORQUE_LIMITS['MAX'] joint_offsets = JOINT_CONSTANTS['OFFSETS'] joint_inits = JOINT_CONSTANTS['INITS'] position_gains = JOINT_CONSTANTS['GAINS']['P'] damping_gains = JOINT_CONSTANTS['GAINS']['D'] leg_kinematics = [0.0838, 0.2, 0.2] trunk_length = 0.1805 * 2 trunk_width = 0.047 * 2 legs_bases = [[TRUNK_LENGTH / 2, -TRUNK_WIDTH / 2], [TRUNK_LENGTH / 2, TRUNK_WIDTH / 2], [-TRUNK_LENGTH / 2, -TRUNK_WIDTH / 2], [-TRUNK_LENGTH / 2, TRUNK_WIDTH / 2]]
# draw a playing board def DrawBoard(rows,cols): dash = " ---" hline = "| " for i in range(0,rows): print (dash * (cols)) print (hline * (cols +1)) DrawBoard(3, 3)
def draw_board(rows, cols): dash = ' ---' hline = '| ' for i in range(0, rows): print(dash * cols) print(hline * (cols + 1)) draw_board(3, 3)
def read_file(test = True): if test: filename = '../tests/day3.txt' else: filename = '../input/day3.txt' with open(filename) as file: temp = list() for line in file: temp.append(line.strip()) return temp def puzzle1(): temp = read_file(False) houses = set() for line in temp: pos = [0,0] for move in line: if move == "^": pos[0] += 1 houses.add(tuple(pos)) elif move == 'v': pos[0] -= 1 houses.add(tuple(pos)) elif move == ">": pos[1] += 1 houses.add(tuple(pos)) elif move == '<': pos[1] -= 1 houses.add(tuple(pos)) print(len(houses)) def puzzle2(): temp = read_file(False) houses = set() pos1 = [0,0] pos2 = [0,0] houses.add(tuple(pos1)) for line in temp: pos1 = [0,0] pos2 = [0,0] for i, move in enumerate(line): if i % 2 == 0: if move == "^": pos1[0] += 1 houses.add(tuple(pos1)) elif move == 'v': pos1[0] -= 1 houses.add(tuple(pos1)) elif move == ">": pos1[1] += 1 houses.add(tuple(pos1)) elif move == '<': pos1[1] -= 1 houses.add(tuple(pos1)) else: if move == "^": pos2[0] += 1 houses.add(tuple(pos2)) elif move == 'v': pos2[0] -= 1 houses.add(tuple(pos2)) elif move == ">": pos2[1] += 1 houses.add(tuple(pos2)) elif move == '<': pos2[1] -= 1 houses.add(tuple(pos2)) print(len(houses)) puzzle1() puzzle2()
def read_file(test=True): if test: filename = '../tests/day3.txt' else: filename = '../input/day3.txt' with open(filename) as file: temp = list() for line in file: temp.append(line.strip()) return temp def puzzle1(): temp = read_file(False) houses = set() for line in temp: pos = [0, 0] for move in line: if move == '^': pos[0] += 1 houses.add(tuple(pos)) elif move == 'v': pos[0] -= 1 houses.add(tuple(pos)) elif move == '>': pos[1] += 1 houses.add(tuple(pos)) elif move == '<': pos[1] -= 1 houses.add(tuple(pos)) print(len(houses)) def puzzle2(): temp = read_file(False) houses = set() pos1 = [0, 0] pos2 = [0, 0] houses.add(tuple(pos1)) for line in temp: pos1 = [0, 0] pos2 = [0, 0] for (i, move) in enumerate(line): if i % 2 == 0: if move == '^': pos1[0] += 1 houses.add(tuple(pos1)) elif move == 'v': pos1[0] -= 1 houses.add(tuple(pos1)) elif move == '>': pos1[1] += 1 houses.add(tuple(pos1)) elif move == '<': pos1[1] -= 1 houses.add(tuple(pos1)) elif move == '^': pos2[0] += 1 houses.add(tuple(pos2)) elif move == 'v': pos2[0] -= 1 houses.add(tuple(pos2)) elif move == '>': pos2[1] += 1 houses.add(tuple(pos2)) elif move == '<': pos2[1] -= 1 houses.add(tuple(pos2)) print(len(houses)) puzzle1() puzzle2()
data = open("input.txt", "r").readlines() score_map = { ")": 3, "]": 57, "}": 1197, ">": 25137 } def get_opening_bracket(bracket): if bracket == ")": return "(" if bracket == "]": return "[" if bracket == "}": return "{" if bracket == ">": return "<" score = 0 def parse(line: str): stack = [] for bracket in line.strip(): if bracket in ["{", "(", "<", "["]: stack.append(bracket) else: last = stack.pop() expected = get_opening_bracket(bracket) if last != expected: print("corrupt expected", expected, " found ", bracket) return score_map[bracket] return 0 for line in data: score += parse(line) print(f"The answer to part 1 is ", score)
data = open('input.txt', 'r').readlines() score_map = {')': 3, ']': 57, '}': 1197, '>': 25137} def get_opening_bracket(bracket): if bracket == ')': return '(' if bracket == ']': return '[' if bracket == '}': return '{' if bracket == '>': return '<' score = 0 def parse(line: str): stack = [] for bracket in line.strip(): if bracket in ['{', '(', '<', '[']: stack.append(bracket) else: last = stack.pop() expected = get_opening_bracket(bracket) if last != expected: print('corrupt expected', expected, ' found ', bracket) return score_map[bracket] return 0 for line in data: score += parse(line) print(f'The answer to part 1 is ', score)
#write a program to check whether the given number is Disarium or not? n = int(input("Enter number:")) i= 1 sum = 0 num = n while(num!=0): rem = num%10 sum = sum*10+rem num = num//10 num = sum sum = 0 while(num!= 0): rem = num % 10 sum = sum + pow(rem,i) num = num//10 i+=1 if sum == n: print(n,"is a 'Disarium Number'.") else: print(n,"is not a 'Disarium Number'.")
n = int(input('Enter number:')) i = 1 sum = 0 num = n while num != 0: rem = num % 10 sum = sum * 10 + rem num = num // 10 num = sum sum = 0 while num != 0: rem = num % 10 sum = sum + pow(rem, i) num = num // 10 i += 1 if sum == n: print(n, "is a 'Disarium Number'.") else: print(n, "is not a 'Disarium Number'.")
''' Created by Vedant Christian Created on 18 / 08 / 2020 ''' terms = int(input("How many terms? ")) base = int(input("What is the base? ")) result = list(map(lambda x: base ** x, range(terms+1))) print("The total terms is: ", terms) print("The base is ", base) for i in range(terms+1): print(base, "raied to the power", i, "is", result[i])
""" Created by Vedant Christian Created on 18 / 08 / 2020 """ terms = int(input('How many terms? ')) base = int(input('What is the base? ')) result = list(map(lambda x: base ** x, range(terms + 1))) print('The total terms is: ', terms) print('The base is ', base) for i in range(terms + 1): print(base, 'raied to the power', i, 'is', result[i])
class TryNode(object): def __init__(self, line, start, end, handler): self.buf = "" self.exception = "" self.start = None self.end = None self.handler = None self.__parse(line, start, end, handler) def __repr__(self): return "Try: %s {%s .. %s} %s" % \ (self.exception, start.index, end.index, handler.index) def __parse(self, line, start, end, handler): self.buf = line self.start = start self.end = end end.tries.append(self) self.handler = handler segs = self.buf.split() self.exception = segs[1] def reload(self): pass
class Trynode(object): def __init__(self, line, start, end, handler): self.buf = '' self.exception = '' self.start = None self.end = None self.handler = None self.__parse(line, start, end, handler) def __repr__(self): return 'Try: %s {%s .. %s} %s' % (self.exception, start.index, end.index, handler.index) def __parse(self, line, start, end, handler): self.buf = line self.start = start self.end = end end.tries.append(self) self.handler = handler segs = self.buf.split() self.exception = segs[1] def reload(self): pass
class Solution: def maxProfit(self, prices: List[int]) -> int: first_buy, first_sell = inf, 0 second_buy, second_sell = inf, 0 for price in prices: first_buy = min(first_buy, price) first_sell = max(first_sell, price - first_buy) second_buy = min(second_buy, price - first_sell) second_sell = max(second_sell, price - second_buy) return second_sell
class Solution: def max_profit(self, prices: List[int]) -> int: (first_buy, first_sell) = (inf, 0) (second_buy, second_sell) = (inf, 0) for price in prices: first_buy = min(first_buy, price) first_sell = max(first_sell, price - first_buy) second_buy = min(second_buy, price - first_sell) second_sell = max(second_sell, price - second_buy) return second_sell
n, k = input().split(' ') n, k = int(n), int(k) c = sorted(list(map(int, input().split(' ')))) count = [0] * k count_i, min_sum = 0, 0 for i in reversed(range(n)): min_sum += (count[count_i]+1) * c[i] count[count_i] += 1 count_i += 1 if count_i >= k: count_i = 0 #print (count) print (min_sum)
(n, k) = input().split(' ') (n, k) = (int(n), int(k)) c = sorted(list(map(int, input().split(' ')))) count = [0] * k (count_i, min_sum) = (0, 0) for i in reversed(range(n)): min_sum += (count[count_i] + 1) * c[i] count[count_i] += 1 count_i += 1 if count_i >= k: count_i = 0 print(min_sum)
def split(word): return [int(char) for char in word] data = '222221202212222122222211222222222222222222222202222022222222222002221222222222220222202222202122222020222222021020220022122222222220222222202222222222222221202202222122222222222222222222222222222202222022222222222022220222222222220222212222212222222220222222221121222022022222222222222222212222222222222220202202222122222210222222222222222222222202222122222222222212222222222022222222212022212122222020222222122021221222122222222221222222222222222222222221202202222022222221222222222222222222222212222022222222222022220222222122222222202122222022222021222222220220220022222222222220222222202222222222222221202222222122222220222212222222222222222202222222222222222022222212222022220222202022202022222120222222121020222122222222222221222222202222222222222221202212222022222221222222222222222222222202222022222222222212220222202022220222202222202022222121222222020021222122022222222220222222212222222220222220212222222122222211222212222222222222222222222122222222222102222202222022222222202222202022222021222222120221220222122222222020222222212222222222222222202212222022222222222222222222222222222212222122222222222012222222202022222222212222222222222120222222122021222122222222222120222222202222222221222121202222222222222201222202222222222222222222222222222222222112221212202222222222202122212122222121222222122020221122122222222220222222212222222222222120212212222222222210222212222222222222222212222122222222222102221212202022222222212022222022222122222222221221222222022222222021222222222222222221222222222212222022222211222202222222222222222212202222222222222112221202222022220222202222202021222121222222220022220122022222222222222222212022222220222020202202222122222211222202222222202222222222222022222222222022222202222222222222202222222120222121222222222120222122122222222221222222202222222222222122202222222122222211220222222222212222022212202122222222222212222222222122222222212022212020222022222222021022221222222222222220222222202022222222222120222222222022222222222222222222202222022202202122222222222012222202212022221222202122212220222120222222222022222022222222222021222221222122222220022220212202222122222200220202222222222222022202200122222222222002221212202122221222202122212222222121222222221120222222122222222221222222212222222220222020222212222022222222220212222222202222122202221122222222222202222222222122222022222122212022222120222222222121220222022222222021222222212022222220122022212202222122222212220212222222212222122222212022222222222222220202212122220122202022212122222022222222021122221122122222222021222221202222222220122100222202122122222200221202222222202222122212201022222222222122220202122022222122212122212020222120222222120121220122222222222220222222212122222220122122222202122022222201222202222222222222022212201122222222222102220212202122222122222022222020222022222222221021222022022222222022222222222122222220222011202222122222222200221222222222212212222202220222222222222002221212022122221022222222212021222220222222122220221222022222222122222221222222222220022201222202122222222212221212222222212002022222201122222222222112222212022022221122222222202120222221222222220020222022122222222122222222212022222220222001202212122122222222222212222222212222022222222222022222222212222222212122221122212122202122222222222222222021220222122222222022222222202222222222222101212212222122222201222222222222212202122212210122122222222002222202202122220222202022212221222122212222020220221022222222222101222220202022222220122110222212122222222222220202222222202122122212202022122222222102221212022222222222202122202022222122222222020221221122022222222122222221202022222221022202202222022122222221220222222222222022222202202222221222222222222202202122220222202122222220222020212222021122220122222222222121222220222022222221122120212222122122222222221202222222202122222222211022222222222222222222102122220122202222212120222122222222122222221022122222222022222222202122222222022021222222222122222210221212222222202022122222202022222222222112222222122222222022222222212220222120202222220021221122022222222121222220202222222221022200212212222022222220221202222222212212022222221122022222222222220222022022221122212222212022222221222222122122221022222222222001222221202022222222022001222212222122222200220212222222212212022222200122220222222212221202022222221222222022222122222020222222020022222222222222222010222222202122222222222122202222022022122221222202222222212012022212200122120222222022220202102222221022212122222122222220212222220222222222022222222001222222202122222222022202222212222022222220221202222222202202222222221022222222222212222212122022222122202122222020222222222222121222222022122222222121222222212022222220222212222202222122022212222202222222212102022202221022222222022222220202002022221022202222202120222020212222220121221222122222222002222220222022222220222021222221222222022200222222222222202002022212220022222222222112221202212222222022212022212222222221212222120220221022222222222201222222221222222222122200202200222222122211221212222222222222222222220222222222122112221202112122221022212022212120222220212222121020222222122222222021222222222022222221222121212210222222122222221202222222202102012212221022022222122002220212122222221222222222202221222021202222121221220022222222222211222221221022222220022021202212022122122220220222222222212022112212220022220222222102220212122222220022222222202020222021222222020221221022222222222102222221200222222221022212202210222022122200220202222222222002222222212122222222222022220212112222220222212222202121222121212222221021222122122222222121222220211222222221222120222210022222222220220202222222212122102202202022020222022212220222002022222222202022202221222222212222121021020222022222222102222220210022222222222010202222122022222212221212222222222202122202201222120222002022220202022222221022222122222120222021222222222121122022222222222022222220211202222200022221212212120022022201220202222222222002102222212222121222102112220222102222220122202022212120222222202222121120120022022222222210222221220212222202222202212200220222222200222212222222202022022222212222221222012102220212102022222022012222212021222121222222021120120122022222222202222221222022222202022012222222122022122220221212222222212122002212220221021222002222222222002022222222202122212221222021222222120020221122022222222202222221212222222202222022212200021122222221220202222222202212202222201020120222222012222202202122221222002122112220222021212222120122021122122222222122222222200102222202022212012221022122122212222212222222012012122222212022022222122012221212002122222122112222102022222022212222222220121022022222222011222221200202222220122021002200022022022201222222222222122212002202212120022222012212222202002122222022002222212021222022202221221020022022122222222120222220212112222222222210102222120222022200220202222222102112012222221222120222002112220212112122220222202122212220222121222220020101022122222222222110222220202202222201122011122200220222222222220222222222122102202222212120120222212002221212112022222022002022002120222020222220121112221122222222222210222221200202222212022112222220022222122220221212222222112212022222222020020222012022221212112122221022202022202221222120212200220021221022222222222221222220221022222220022010222212020022222222220202222222102112102202210020221022022112222202102122222222112222012222222120212221121001020222222222222221222221211222222212122122122200220222122211221202222022002222212222000221121022122012220202122122221022122222012221222120212210221110022022222222222022222222220012222221222200212202120222122220220212222122212002202222021222122222102212121212112022222022102002102020222020212211220001022022222222222121222222222112222202022121002202121122222221220202122222002022022222110222222222222222020212222122220122002222022022222022212211020122121122022222222221222221210002222212022101122200020222122221220222122122112122002222020022222122202012021212222122222222002002122220222021212222121202122022222222222210222221211022222221122122022212220122222200222202122122022012112212112021122022112202222212022022221122222102222122222022222222020210220222122222222122222220211002222201122202022221222122022202220222122122222022222222221120020222222212121212102122222022022212122120222122222221120210122222222022222100222221210122222202122112222211222022222201222202220122102002222222111221201222101212020222122222221222022002222220222022202221120011022122022122222202222220221202222002122011122201120122022220222202021022012112102202000121201222210212020212122022221222112112112020222222222222220211110122022122222012222222202202222202022022222211122022122201220212221122002002112212221120121022000212220202102122222222112122022220222021202220220020010022122122222210222220221112222200122201012200122222122200222212122220121212222202000120110122101212220212202122220122222022022020222120222220122201112022122122222010222220220012222001222211112222022122122202220222121220110222202222001220101122100112122212002122221122122212202020222020212210022212111022022222222121222222221112222112222202102222222222122200222222120222012102122202221220102022100022120222122222220122122120102122222222212212020200201122022022222221222221220002222211022111012212221222222220221212120120112222012202120121101222101002220202120120122222222111112221222121202210221001000222122022222000222222211222222001222110202212022222222212221212221120100012102202210020211022101122021212122222022122112221102120222022212201022120111222022222222210222222211112222120122100012201020122022212221222220120200012122202200222121122101112221221211022120222122222022221222021222210120211112022122222222112222221210112222022222000212201020222222211221210221121000102102212020121120022102022120202201220220222222010012222222121202202000002222222022022222010222222202202222020222002122212122222022222221010121221212112202212111021111222022022020221000120122222202012212120222012222210012221102022222022222021222220201102222110022110002220020222122212220021222120002212202202121222200022200112021202110020221122122222122220222110222211211022111222022122222011222221210012222210022100212212222222002122220202222222102222222112110022111222020022221211110121221022112020012220222011212210220101100222122122222000222221210112222100122001222222120222202021222000120221221122102112121020210222010222122210212120122222012211102122222021212201211202220222022122222221222220201202222221222222212200220122202110222202120020122022222112010021000222210122022220011122022222222022222021220002222020011212102122122222222002222222221112222112222011002212122222112002201200022120221002102012220022000122220002222200010021121122002002122221222121202101121101012022222222222121222222200002222112022020102202122022112210200101021221100222202212021021111022120222020200110222220222122220222222220000222110211022120122222222222000222221210112222020122012202212122222002001210210120122220212202002100021220022212122121200102021021222202120122021222220202220001001221022122122222122222220212122222112022210122212121022012011201010020220222022112112211222011122212112022212022221022022002012112221221221202022022200210122222222222222222221212112222002222122102222020222102222222020220220120212112202111020212222012102122221222122121222212222212222221210022021222212101222022122222211122222201021222121002112202210220122022020221212121122110222212102222020210022122022022222102021122222212002012122200000022102111201200222122022222000122222220000222110102200012220022222122022221220220221011122102212102220002022101102222220121120022122212200102122200102022102200202122022122022222122122221222200222120222002122202022022112220211122021022111222002022120121220022122022222211211021122022122102022222220201112112112002002122122022222020222222200111220102222020122221221222202122202210221220121122022212220120011022011002121211212121022222022022212221212221102212022022101122122222222110222222220021220202202100012212221122202022220211021222012112222002100120010022022212221201121222221222212001122020200212002202110101121122022122222002022222120011222001002210112202022222002022212121121120021102012202002221120022221002022002211021120222222201020221220110012120201202111022222222222202022220212020221002022202002202020022112222221022121020221102212022121221220022121012122000101020020222212111202020210200102121101001210122022022222021122221002222222111112002012221220022102201220012122222101022212122200220021122220112120220202020020222022120002122210121002121001211222022122022222101122221211121220202022120112212021222022100201100020120112002212002001022021222121102222101001120220222212200121122210112122011211010220022022022222100122222010200222222212100222222020122022202211121020122002102222112020022200222122022222002001121120222102001001020221220222220021121202022222022222011022221120212222111222100122202222222211220210211020120212102112212021020020022112012122202110220120122102221011121211000012112201221211012122022222120222222000021222212222211012220022222102021201222022220022022222002201122100022201212022011000021000222002200100222220212022212111002222012122122222201222220020100221120022102212200120222102002201101221120001122022022010121121222220222222210202120101022122121011020020121022222102012010202122122222212022221002101222101012100222220120022202111211202221221201002202222022121110222200202022021100020010122012102011222220122022201212020200222022022222010122222021222021001122210002221120122111220221121220220110002002112001122000022012122121000212022212122212121100122122201110221211112102002122022222020022220001112221112202020102221022022022012201221120221111022212112112121111122022202221110101021122122222210111020111221200011001021020002222122222201222220202101121201112010122211122222011112201102221022200122022012121121200122010212021111022021112122122000021122210100000021000220122222022122222121122220020012222020202112122220122022122112202211220222202212202000120022200222201012022201220020200122112022010221011022120220102201222202022122222220020222201010022010122222012222022222102100212200221121221022102110021220010222201211120121120120020022212110002120220112122111220111221202022222222211121220110021020102012100102220222222211202220222021021002202212110222120012022121222121212202122220022222112020022122112121112111202212122022122222101221221001210122220202102222202220022012222210021120221211012212022222021011122012021222022110220020022112000022022200122012220212102100022122022222000121120211020120100212200012200122022112211210212122021212202022121011022000120022012221220220020121122122222120120201000121220210002210002122222220201121121101101022110122010112202021222122120222021020020001022102120202021212121210011121110021021012122012111212021121201200021010001200012122222220201021120000011020212002210222201220022220222211122022120111012022101201221220212002122120112112221001122101021212121020100202201020202020012222222222010021222201002121221201202010111012000000120021022102012211120100001100000220102221021011011002200112010111012101102112201021120220001010120200100111202002112122101210121' wide, tall = 25, 6 img = split(data) bm = wide * tall it = int(len(img) / bm) layer_zeros = {} for i in range(it): layer = img[(bm*i):(bm*(i+1))] print((bm*i),(bm*(i+1))) zeros = 0 for num in layer: if num == 0: zeros += 1 layer_zeros[i] = zeros min_layer = 0 minl = layer_zeros[0] for k, v in layer_zeros.items(): if minl > v: min_layer = k minl = v layer = img[(bm*min_layer):(bm*(min_layer+1))] num_1 = 0 num_2 = 0 for num in layer: if num == 1: num_1 += 1 elif num == 2: num_2 += 1 print(num_1 * num_2)
def split(word): return [int(char) for char in word] data = '222221202212222122222211222222222222222222222202222022222222222002221222222222220222202222202122222020222222021020220022122222222220222222202222222222222221202202222122222222222222222222222222222202222022222222222022220222222222220222212222212222222220222222221121222022022222222222222222212222222222222220202202222122222210222222222222222222222202222122222222222212222222222022222222212022212122222020222222122021221222122222222221222222222222222222222221202202222022222221222222222222222222222212222022222222222022220222222122222222202122222022222021222222220220220022222222222220222222202222222222222221202222222122222220222212222222222222222202222222222222222022222212222022220222202022202022222120222222121020222122222222222221222222202222222222222221202212222022222221222222222222222222222202222022222222222212220222202022220222202222202022222121222222020021222122022222222220222222212222222220222220212222222122222211222212222222222222222222222122222222222102222202222022222222202222202022222021222222120221220222122222222020222222212222222222222222202212222022222222222222222222222222222212222122222222222012222222202022222222212222222222222120222222122021222122222222222120222222202222222221222121202222222222222201222202222222222222222222222222222222222112221212202222222222202122212122222121222222122020221122122222222220222222212222222222222120212212222222222210222212222222222222222212222122222222222102221212202022222222212022222022222122222222221221222222022222222021222222222222222221222222222212222022222211222202222222222222222212202222222222222112221202222022220222202222202021222121222222220022220122022222222222222222212022222220222020202202222122222211222202222222202222222222222022222222222022222202222222222222202222222120222121222222222120222122122222222221222222202222222222222122202222222122222211220222222222212222022212202122222222222212222222222122222222212022212020222022222222021022221222222222222220222222202022222222222120222222222022222222222222222222202222022202202122222222222012222202212022221222202122212220222120222222222022222022222222222021222221222122222220022220212202222122222200220202222222222222022202200122222222222002221212202122221222202122212222222121222222221120222222122222222221222222212222222220222020222212222022222222220212222222202222122202221122222222222202222222222122222022222122212022222120222222222121220222022222222021222222212022222220122022212202222122222212220212222222212222122222212022222222222222220202212122220122202022212122222022222222021122221122122222222021222221202222222220122100222202122122222200221202222222202222122212201022222222222122220202122022222122212122212020222120222222120121220122222222222220222222212122222220122122222202122022222201222202222222222222022212201122222222222102220212202122222122222022222020222022222222221021222022022222222022222222222122222220222011202222122222222200221222222222212212222202220222222222222002221212022122221022222222212021222220222222122220221222022222222122222221222222222220022201222202122222222212221212222222212002022222201122222222222112222212022022221122222222202120222221222222220020222022122222222122222222212022222220222001202212122122222222222212222222212222022222222222022222222212222222212122221122212122202122222222222222222021220222122222222022222222202222222222222101212212222122222201222222222222212202122212210122122222222002222202202122220222202022212221222122212222020220221022222222222101222220202022222220122110222212122222222222220202222222202122122212202022122222222102221212022222222222202122202022222122222222020221221122022222222122222221202022222221022202202222022122222221220222222222222022222202202222221222222222222202202122220222202122222220222020212222021122220122222222222121222220222022222221122120212222122122222222221202222222202122222222211022222222222222222222102122220122202222212120222122222222122222221022122222222022222222202122222222022021222222222122222210221212222222202022122222202022222222222112222222122222222022222222212220222120202222220021221122022222222121222220202222222221022200212212222022222220221202222222212212022222221122022222222222220222022022221122212222212022222221222222122122221022222222222001222221202022222222022001222212222122222200220212222222212212022222200122220222222212221202022222221222222022222122222020222222020022222222222222222010222222202122222222222122202222022022122221222202222222212012022212200122120222222022220202102222221022212122222122222220212222220222222222022222222001222222202122222222022202222212222022222220221202222222202202222222221022222222222212222212122022222122202122222020222222222222121222222022122222222121222222212022222220222212222202222122022212222202222222212102022202221022222222022222220202002022221022202222202120222020212222220121221222122222222002222220222022222220222021222221222222022200222222222222202002022212220022222222222112221202212222222022212022212222222221212222120220221022222222222201222222221222222222122200202200222222122211221212222222222222222222220222222222122112221202112122221022212022212120222220212222121020222222122222222021222222222022222221222121212210222222122222221202222222202102012212221022022222122002220212122222221222222222202221222021202222121221220022222222222211222221221022222220022021202212022122122220220222222222212022112212220022220222222102220212122222220022222222202020222021222222020221221022222222222102222221200222222221022212202210222022122200220202222222222002222222212122222222222022220212112222220222212222202121222121212222221021222122122222222121222220211222222221222120222210022222222220220202222222212122102202202022020222022212220222002022222222202022202221222222212222121021020222022222222102222220210022222222222010202222122022222212221212222222222202122202201222120222002022220202022222221022222122222120222021222222222121122022222222222022222220211202222200022221212212120022022201220202222222222002102222212222121222102112220222102222220122202022212120222222202222121120120022022222222210222221220212222202222202212200220222222200222212222222202022022222212222221222012102220212102022222022012222212021222121222222021120120122022222222202222221222022222202022012222222122022122220221212222222212122002212220221021222002222222222002022222222202122212221222021222222120020221122022222222202222221212222222202222022212200021122222221220202222222202212202222201020120222222012222202202122221222002122112220222021212222120122021122122222222122222222200102222202022212012221022122122212222212222222012012122222212022022222122012221212002122222122112222102022222022212222222220121022022222222011222221200202222220122021002200022022022201222222222222122212002202212120022222012212222202002122222022002222212021222022202221221020022022122222222120222220212112222222222210102222120222022200220202222222102112012222221222120222002112220212112122220222202122212220222121222220020101022122222222222110222220202202222201122011122200220222222222220222222222122102202222212120120222212002221212112022222022002022002120222020222220121112221122222222222210222221200202222212022112222220022222122220221212222222112212022222222020020222012022221212112122221022202022202221222120212200220021221022222222222221222220221022222220022010222212020022222222220202222222102112102202210020221022022112222202102122222222112222012222222120212221121001020222222222222221222221211222222212122122122200220222122211221202222022002222212222000221121022122012220202122122221022122222012221222120212210221110022022222222222022222222220012222221222200212202120222122220220212222122212002202222021222122222102212121212112022222022102002102020222020212211220001022022222222222121222222222112222202022121002202121122222221220202122222002022022222110222222222222222020212222122220122002222022022222022212211020122121122022222222221222221210002222212022101122200020222122221220222122122112122002222020022222122202012021212222122222222002002122220222021212222121202122022222222222210222221211022222221122122022212220122222200222202122122022012112212112021122022112202222212022022221122222102222122222022222222020210220222122222222122222220211002222201122202022221222122022202220222122122222022222222221120020222222212121212102122222022022212122120222122222221120210122222222022222100222221210122222202122112222211222022222201222202220122102002222222111221201222101212020222122222221222022002222220222022202221120011022122022122222202222220221202222002122011122201120122022220222202021022012112102202000121201222210212020212122022221222112112112020222222222222220211110122022122222012222222202202222202022022222211122022122201220212221122002002112212221120121022000212220202102122222222112122022220222021202220220020010022122122222210222220221112222200122201012200122222122200222212122220121212222202000120110122101212220212202122220122222022022020222120222220122201112022122122222010222220220012222001222211112222022122122202220222121220110222202222001220101122100112122212002122221122122212202020222020212210022212111022022222222121222222221112222112222202102222222222122200222222120222012102122202221220102022100022120222122222220122122120102122222222212212020200201122022022222221222221220002222211022111012212221222222220221212120120112222012202120121101222101002220202120120122222222111112221222121202210221001000222122022222000222222211222222001222110202212022222222212221212221120100012102202210020211022101122021212122222022122112221102120222022212201022120111222022222222210222222211112222120122100012201020122022212221222220120200012122202200222121122101112221221211022120222122222022221222021222210120211112022122222222112222221210112222022222000212201020222222211221210221121000102102212020121120022102022120202201220220222222010012222222121202202000002222222022022222010222222202202222020222002122212122222022222221010121221212112202212111021111222022022020221000120122222202012212120222012222210012221102022222022222021222220201102222110022110002220020222122212220021222120002212202202121222200022200112021202110020221122122222122220222110222211211022111222022122222011222221210012222210022100212212222222002122220202222222102222222112110022111222020022221211110121221022112020012220222011212210220101100222122122222000222221210112222100122001222222120222202021222000120221221122102112121020210222010222122210212120122222012211102122222021212201211202220222022122222221222220201202222221222222212200220122202110222202120020122022222112010021000222210122022220011122022222222022222021220002222020011212102122122222222002222222221112222112222011002212122222112002201200022120221002102012220022000122220002222200010021121122002002122221222121202101121101012022222222222121222222200002222112022020102202122022112210200101021221100222202212021021111022120222020200110222220222122220222222220000222110211022120122222222222000222221210112222020122012202212122222002001210210120122220212202002100021220022212122121200102021021222202120122021222220202220001001221022122122222122222220212122222112022210122212121022012011201010020220222022112112211222011122212112022212022221022022002012112221221221202022022200210122222222222222222221212112222002222122102222020222102222222020220220120212112202111020212222012102122221222122121222212222212222221210022021222212101222022122222211122222201021222121002112202210220122022020221212121122110222212102222020210022122022022222102021122222212002012122200000022102111201200222122022222000122222220000222110102200012220022222122022221220220221011122102212102220002022101102222220121120022122212200102122200102022102200202122022122022222122122221222200222120222002122202022022112220211122021022111222002022120121220022122022222211211021122022122102022222220201112112112002002122122022222020222222200111220102222020122221221222202122202210221220121122022212220120011022011002121211212121022222022022212221212221102212022022101122122222222110222222220021220202202100012212221122202022220211021222012112222002100120010022022212221201121222221222212001122020200212002202110101121122022122222002022222120011222001002210112202022222002022212121121120021102012202002221120022221002022002211021120222222201020221220110012120201202111022222222222202022220212020221002022202002202020022112222221022121020221102212022121221220022121012122000101020020222212111202020210200102121101001210122022022222021122221002222222111112002012221220022102201220012122222101022212122200220021122220112120220202020020222022120002122210121002121001211222022122022222101122221211121220202022120112212021222022100201100020120112002212002001022021222121102222101001120220222212200121122210112122011211010220022022022222100122222010200222222212100222222020122022202211121020122002102222112020022200222122022222002001121120222102001001020221220222220021121202022222022222011022221120212222111222100122202222222211220210211020120212102112212021020020022112012122202110220120122102221011121211000012112201221211012122022222120222222000021222212222211012220022222102021201222022220022022222002201122100022201212022011000021000222002200100222220212022212111002222012122122222201222220020100221120022102212200120222102002201101221120001122022022010121121222220222222210202120101022122121011020020121022222102012010202122122222212022221002101222101012100222220120022202111211202221221201002202222022121110222200202022021100020010122012102011222220122022201212020200222022022222010122222021222021001122210002221120122111220221121220220110002002112001122000022012122121000212022212122212121100122122201110221211112102002122022222020022220001112221112202020102221022022022012201221120221111022212112112121111122022202221110101021122122222210111020111221200011001021020002222122222201222220202101121201112010122211122222011112201102221022200122022012121121200122010212021111022021112122122000021122210100000021000220122222022122222121122220020012222020202112122220122022122112202211220222202212202000120022200222201012022201220020200122112022010221011022120220102201222202022122222220020222201010022010122222012222022222102100212200221121221022102110021220010222201211120121120120020022212110002120220112122111220111221202022222222211121220110021020102012100102220222222211202220222021021002202212110222120012022121222121212202122220022222112020022122112121112111202212122022122222101221221001210122220202102222202220022012222210021120221211012212022222021011122012021222022110220020022112000022022200122012220212102100022122022222000121120211020120100212200012200122022112211210212122021212202022121011022000120022012221220220020121122122222120120201000121220210002210002122222220201121121101101022110122010112202021222122120222021020020001022102120202021212121210011121110021021012122012111212021121201200021010001200012122222220201021120000011020212002210222201220022220222211122022120111012022101201221220212002122120112112221001122101021212121020100202201020202020012222222222010021222201002121221201202010111012000000120021022102012211120100001100000220102221021011011002200112010111012101102112201021120220001010120200100111202002112122101210121' (wide, tall) = (25, 6) img = split(data) bm = wide * tall it = int(len(img) / bm) layer_zeros = {} for i in range(it): layer = img[bm * i:bm * (i + 1)] print(bm * i, bm * (i + 1)) zeros = 0 for num in layer: if num == 0: zeros += 1 layer_zeros[i] = zeros min_layer = 0 minl = layer_zeros[0] for (k, v) in layer_zeros.items(): if minl > v: min_layer = k minl = v layer = img[bm * min_layer:bm * (min_layer + 1)] num_1 = 0 num_2 = 0 for num in layer: if num == 1: num_1 += 1 elif num == 2: num_2 += 1 print(num_1 * num_2)
name, age = "Aromal S", 20 username = "aromalsanthosh" print ('Hello!') print("Name: {}\nAge: {}\nUsername: {}".format(name, age, username))
(name, age) = ('Aromal S', 20) username = 'aromalsanthosh' print('Hello!') print('Name: {}\nAge: {}\nUsername: {}'.format(name, age, username))
class Solution(object): # dutch partitioning problem def sortColors(self, nums): low, mid, high = 0, 0, len(nums)-1 while(mid <= high): if(nums[mid] == 0): nums[low],nums[mid] = nums[mid], nums[low] low +=1 mid += 1 elif(nums[mid] == 1): mid += 1 else: nums[mid], nums[high] = nums[high], nums[mid] high -= 1 sol = Solution() arr = [2,0,2,1,1,0] sol.sortColors(arr) print(arr)
class Solution(object): def sort_colors(self, nums): (low, mid, high) = (0, 0, len(nums) - 1) while mid <= high: if nums[mid] == 0: (nums[low], nums[mid]) = (nums[mid], nums[low]) low += 1 mid += 1 elif nums[mid] == 1: mid += 1 else: (nums[mid], nums[high]) = (nums[high], nums[mid]) high -= 1 sol = solution() arr = [2, 0, 2, 1, 1, 0] sol.sortColors(arr) print(arr)
vocales ='aeiou' while True: palabra = input("Escriba una palabra: ") letras = palabra.split() if len(letras) == 1: break else: print("Eso no es solo una palabra") pass posicion = -1 puntos_kevin = 0 puntos_stuart = 0 for letras in palabra: if vocales.__contains__(letras): if palabra.count(letras) > 1: posicion = palabra.index(letras, posicion + 1) puntos_kevin = puntos_kevin + len(palabra) - palabra.index(letras, posicion) else: puntos_kevin = puntos_kevin + len(palabra) - palabra.index(letras) else: if palabra.count(letras) > 1: posicion = palabra.index(letras, posicion + 1) puntos_stuart = puntos_stuart + len(palabra) - palabra.index(letras, posicion) else: puntos_stuart = puntos_stuart + len(palabra) - palabra.index(letras) if puntos_stuart > puntos_kevin: print("El ganador es Stuart, ha obtenido ", puntos_stuart, " puntos") elif puntos_kevin > puntos_stuart: print("El ganador es Kevin, ha obtenido ", puntos_kevin, " puntos") else: print("Draw")
vocales = 'aeiou' while True: palabra = input('Escriba una palabra: ') letras = palabra.split() if len(letras) == 1: break else: print('Eso no es solo una palabra') pass posicion = -1 puntos_kevin = 0 puntos_stuart = 0 for letras in palabra: if vocales.__contains__(letras): if palabra.count(letras) > 1: posicion = palabra.index(letras, posicion + 1) puntos_kevin = puntos_kevin + len(palabra) - palabra.index(letras, posicion) else: puntos_kevin = puntos_kevin + len(palabra) - palabra.index(letras) elif palabra.count(letras) > 1: posicion = palabra.index(letras, posicion + 1) puntos_stuart = puntos_stuart + len(palabra) - palabra.index(letras, posicion) else: puntos_stuart = puntos_stuart + len(palabra) - palabra.index(letras) if puntos_stuart > puntos_kevin: print('El ganador es Stuart, ha obtenido ', puntos_stuart, ' puntos') elif puntos_kevin > puntos_stuart: print('El ganador es Kevin, ha obtenido ', puntos_kevin, ' puntos') else: print('Draw')
kheader = ''' <head> <style> <!-- body {font-size:12px; font-family:verdana,arial,helvetica,sans-serif; background-color:#ffffff} .text {font-size:12px; font-family:verdana,arial,helvetica,sans-serif} h1 {font-size:24px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif; color:#005050} h2 {font-size:18px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif; color:#005050} h3 {font-size:16px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif} h4 {font-size:14px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif} h5 {font-size:12px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif; color:#444444} b {font-size:12px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif} th {font-size:12px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif} td {font-size:12px; font-family:verdana,arial,helvetica,sans-serif} input {font-size:12px; font-family:verdana,arial,helvetica,sans-serif} select {font-size:12px; font-family:verdana,arial,helvetica,sans-serif} pre {font-size:12px; font-family:courier,monospace} a {text-decoration:none} a:link {color:#003399} a:visited {color:#003399} a:hover {color:#33cc99} font.title3 {color: #005050; font-size:14px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif} hr.frame0 {border: 1px solid #f5e05f; color: #f5e05f} div.poplay { position: absolute; padding: 2px; background-color: #ffff99; border-top: solid 1px #c0c0c0; border-left: solid 1px #c0c0c0; border-bottom: solid 1px #808080; border-right: solid 1px #808080; visibility: hidden; } span.popup { font-weight: bold; color: #ffffff; white-space: nowrap; } form { margin: 0px; } --> </style> <script language="JavaScript"> var MSIE, Netscape, Opera, Safari, Firefox; if(window.navigator.appName.indexOf("Internet Explorer") >= 0){ MSIE = true; }else if(window.navigator.appName == "Opera"){ Opera = true; }else if(window.navigator.userAgent.indexOf("Safari") >= 0){ Safari = true; }else if(window.navigator.userAgent.indexOf("Firefox") >= 0){ Firefox = true; Netscape = true; }else{ Netscape = true; } function Component(id) { this._component = document.getElementById(id); this._opacity_change_interval = 1; var opc = this._component.style.opacity; if(opc == "") { opc = 1; } this._opacity = opc * 100; } function _Component_ID() { return this._component.id; } Component.prototype.id = _Component_ID; function _Component_FontSize(size) { if(_defined(size)) { this._component.style.fontSize = size + "px"; } else { return this._component.style.fontSize; } } Component.prototype.fontSize = _Component_FontSize; function _Component_OpacityChangeInterval(interval) { if(typeof(interval) == "undefined") { return this._opacity_change_interval; } else { this._opacity_change_interval = interval; } } Component.prototype.opacityChangeInterval = _Component_OpacityChangeInterval function _Component_HTML(html) { var component = this._component; if(typeof(html) == "undefined") { return component.innerHTML; } else { component.innerHTML = html; } } Component.prototype.HTML = _Component_HTML; function _Component_BackgroundColor(color) { this._component.style.backgroundColor = color; } Component.prototype.backgroundColor = _Component_BackgroundColor; function _Component_BorderTop(border) { if(_defined(border)){ var comp = this._component; if(MSIE) { //comp.style.borderTop = border.color(); //comp.style.border-top-style = border.style(); //comp.style.border-top-width = border.width(); } else { comp.style.borderTopColor = border.color(); comp.style.borderTopStyle = border.style(); comp.style.borderTopWidth = border.width() + "px"; } } } Component.prototype.borderTop = _Component_BorderTop; function _Component_BorderBottom(border) { if(_defined(border)){ var comp = this._component; if(MSIE) { } else { comp.style.borderBottomColor = border.color(); comp.style.borderBottomStyle = border.style(); comp.style.borderBottomWidth = border.width() + "px"; } } } Component.prototype.borderBottom = _Component_BorderBottom; function _Component_BorderLeft(border) { if(_defined(border)){ var comp = this._component; if(MSIE) { } else { comp.style.borderLeftColor = border.color(); comp.style.borderLeftStyle = border.style(); comp.style.borderLeftWidth = border.width() + "px"; } } } Component.prototype.borderLeft = _Component_BorderLeft; function _Component_BorderRight(border) { if(_defined(border)){ var comp = this._component; if(MSIE) { } else { comp.style.borderRightColor = border.color(); comp.style.borderRightStyle = border.style(); comp.style.borderRightWidth = border.width() + "px"; } } } Component.prototype.borderRight = _Component_BorderRight; function _Component_Border() { var arg = _Component_Border.arguments; if(arg.length == 1) { this.borderTop(arg[0]); this.borderBottom(arg[0]); this.borderLeft(arg[0]); this.borderRight(arg[0]); } else if(arg.length == 2) { this.borderTop(arg[0]); this.borderBottom(arg[0]); this.borderLeft(arg[1]); this.borderRight(arg[1]); }else if(arg.length == 3) { this.borderTop(arg[0]); this.borderLeft(arg[1]); this.borderRight(arg[1]); this.borderBottom(arg[2]); } else if(arg.length == 4) { this.borderTop(arg[0]); this.borderRight(arg[1]); this.borderBottom(arg[2]); this.borderLeft(arg[3]); } } Component.prototype.border = _Component_Border; function _Component_X(x) { var component = this._component; if(typeof(x) == "undefined") { var ret = (MSIE) ? component.style.pixelLeft : parseInt(component.style.left); return ret; } else { if(MSIE) { component.style.pixelLeft = x; } else if(Opera) { component.style.left = x; } else { component.style.left = x + "px"; } } } Component.prototype.x = _Component_X; function _Component_Y(y) { var component = this._component; if(typeof(y) == "undefined") { var ret = (MSIE) ? component.style.pixelTop : parseInt(component.style.top); return ret; }else { if(MSIE) { component.style.pixelTop = y; } else if(Opera) { component.style.top = y; } else { component.style.top = y + "px"; } } } Component.prototype.y = _Component_Y; function _Component_Move(x, y) { this.x(x); this.y(y); } Component.prototype.move = _Component_Move; function _Component_Width(width) { var component = this._component; if(typeof(width) == "undefined") { var ret = (MSIE) ? component.style.pixelWidth : parseInt(component.style.width); return ret; } else { if(MSIE) { component.style.pixelWidth = width; } else if(Opera) { component.style.width = width; } else { component.style.width = width + "px"; } } } Component.prototype.width = _Component_Width; function _Component_Height(height) { var component = this._component; if(typeof(height) == "undefined") { var ret = (MSIE) ? component.style.pixelWidth : parseInt(component.style.width); return ret; } else { if(MSIE) { component.style.pixelHeight = height; } else if(Opera) { component.style.height = height; } else { component.style.height = height + "px"; } } } Component.prototype.height = _Component_Height; function _Component_Size(width, height) { this.width(width); this.height(height); } Component.prototype.size = _Component_Size; function _Component_Visible(visible) { var component = this._component; if(typeof(visible) == "undefined") { return (component.style.visibility == "visible") ? true : false; } else { if(MSIE || Safari || Firefox || Opera) { if(visible) { component.style.visibility = "visible"; this._opacityStep = 10; this._opacity = 0; } else { this._opacityStep = -10; this._opacity = this.opacity(); } _addComponent(this); this.changeOpacity(); } else { component.style.visibility = (visible) ? "visible" : "hidden"; } } } Component.prototype.visible = _Component_Visible; function _Component_ChangeOpacity() { var opacity = this._opacity + this._opacityStep; this.opacity(opacity); if(opacity >= 100) { return; } else if(opacity <= 0) { this._component.style.visibility = "hidden"; return } else { var interval = this._opacity_change_interval; setTimeout("_triggerChangeOpacity('" + this.id() + "')", interval); } } Component.prototype.changeOpacity = _Component_ChangeOpacity; function _Component_Opacity(opacity) { if(typeof(opacity) == "undefined") { return this._opacity; } else { this._opacity = opacity; var component = this._component; component.style.opacity = opacity / 100; component.style.mozOpacity = opacity / 100; component.style.filter = "alpha(opacity=" + opacity + ")"; } } Component.prototype.opacity = _Component_Opacity; var _component_list = new Array(); function _addComponent(component) { var id = component.id(); _component_list[id] = component; } function _triggerChangeOpacity(id) { var component = _component_list[id]; component.changeOpacity(); } function _defined(val) { return (typeof(val) != "undefined") ? true : false; } function Border() { this._width = 1; this._style = "solid"; this._color = "#000000"; } function _Border_Color(color) { if(!_defined(color)){ return this._color; }else{ this._color = color; } } Border.prototype.color = _Border_Color; function _Border_Style(style) { if(!_defined(style)){ return this._style; }else{ this._style = style; } } Border.prototype.style = _Border_Style; function _Border_Width(width) { if(!_defined(width)){ return this._width; }else{ this._width = width; } } Border.prototype.width = _Border_Width; document.onmousemove = _documentMouseMove; var _mousePosX = 0; var _mousePosY = 0; function _documentMouseMove(evt) { _mousePosX = _getEventX(evt); _mousePosY = _getEventY(evt); } function _getEventX(evt) { var ret; if(Netscape){ ret = evt.pageX; }else if(MSIE){ ret = event.x + getPageXOffset(); }else if(Safari){ ret = event.x + getPageXOffset(); }else{ ret = evt.x; } return ret; } function _getEventY(evt) { var ret; if(Netscape){ ret = evt.pageY; }else if(MSIE){ ret = event.y + getPageYOffset(); }else if(Safari){ ret = event.y + getPageYOffset(); }else{ ret = event.y; } return ret; } function getCurrentMouseX() { return _mousePosX; } function getCurrentMouseY() { return _mousePosY } function getPageXOffset() { var ret; if(Safari || Opera){ ret = document.body.scrollLeft; }else{ if(document.body.scrollLeft > 0){ ret = document.body.scrollLeft; }else{ ret = document.documentElement.scrollLeft; } } return ret; } function getPageYOffset() { var ret; if(Safari || Opera){ ret = document.body.scrollTop; }else{ if(document.body.scrollTop > 0){ ret = document.body.scrollTop; }else{ ret = document.documentElement.scrollTop; } } return ret; } var timer = 0; var p_entry, p_title, p_bgcolor; function popupTimer(entry, title, bgcolor) { p_entry = entry; p_title = title; p_bgcolor = bgcolor; if(timer == 0){ var func = "showThumbnail()"; timer = setTimeout(func, 1200); } } function showThumbnail() { var url = ""; if(p_entry.match(/^[A-Z]+\d+$/)) { url = "http://www.genome.jp/kegg/misc/thumbnail/" + p_entry + ".gif"; } else if(p_entry.match(/(\d+)$/)) { url = "http://www.genome.jp/kegg/misc/thumbnail/map" + RegExp.$1 + ".gif"; } var html = ""; html += '<img src="' + url + '" alt="Loading...">'; var x = getCurrentMouseX(); var y = getCurrentMouseY(); var layer = new Component("poplay"); layer.backgroundColor(p_bgcolor); layer.HTML(html); layer.move(x, y+40); layer.visible(true); timer = 0; } function hideMapTn(){ var layer = new Component("poplay"); layer.visible(false); if(timer != 0){ clearTimeout(timer); timer = 0; } } </script> </head> '''
kheader = '\n<head>\n<style>\n<!--\nbody {font-size:12px; font-family:verdana,arial,helvetica,sans-serif; background-color:#ffffff}\n.text {font-size:12px; font-family:verdana,arial,helvetica,sans-serif}\nh1 {font-size:24px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif; color:#005050}\nh2 {font-size:18px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif; color:#005050}\nh3 {font-size:16px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif}\nh4 {font-size:14px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif}\nh5 {font-size:12px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif; color:#444444}\nb {font-size:12px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif}\nth {font-size:12px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif}\ntd {font-size:12px; font-family:verdana,arial,helvetica,sans-serif}\ninput {font-size:12px; font-family:verdana,arial,helvetica,sans-serif}\nselect {font-size:12px; font-family:verdana,arial,helvetica,sans-serif}\npre {font-size:12px; font-family:courier,monospace}\na {text-decoration:none}\na:link {color:#003399}\na:visited {color:#003399}\na:hover {color:#33cc99}\nfont.title3 {color: #005050; font-size:14px; font-weight:bold; font-family:verdana,arial,helvetica,sans-serif}\nhr.frame0 {border: 1px solid #f5e05f; color: #f5e05f}\ndiv.poplay {\n position: absolute;\n padding: 2px;\n background-color: #ffff99;\n border-top: solid 1px #c0c0c0;\n border-left: solid 1px #c0c0c0;\n border-bottom: solid 1px #808080;\n border-right: solid 1px #808080;\n visibility: hidden;\n}\n\nspan.popup\n{\n font-weight: bold;\n color: #ffffff;\n white-space: nowrap;\n}\n\nform {\n margin: 0px;\n}\n-->\n</style>\n<script language="JavaScript">\nvar MSIE, Netscape, Opera, Safari, Firefox;\n\nif(window.navigator.appName.indexOf("Internet Explorer") >= 0){\n MSIE = true;\n}else if(window.navigator.appName == "Opera"){\n Opera = true;\n}else if(window.navigator.userAgent.indexOf("Safari") >= 0){\n Safari = true;\n}else if(window.navigator.userAgent.indexOf("Firefox") >= 0){\n Firefox = true;\n Netscape = true;\n}else{\n Netscape = true;\n}\n\nfunction Component(id)\n{\n this._component = document.getElementById(id);\n this._opacity_change_interval = 1;\n \n var opc = this._component.style.opacity;\n if(opc == "")\n {\n opc = 1;\n }\n this._opacity = opc * 100;\n}\n\n\nfunction _Component_ID()\n{\n return this._component.id;\n}\nComponent.prototype.id = _Component_ID;\n\nfunction _Component_FontSize(size)\n{\n if(_defined(size))\n {\n this._component.style.fontSize = size + "px";\n }\n else\n {\n return this._component.style.fontSize;\n }\n}\nComponent.prototype.fontSize = _Component_FontSize;\n\nfunction _Component_OpacityChangeInterval(interval)\n{\n if(typeof(interval) == "undefined")\n {\n return this._opacity_change_interval;\n }\n else\n {\n this._opacity_change_interval = interval;\n }\n}\nComponent.prototype.opacityChangeInterval = _Component_OpacityChangeInterval\n\n\nfunction _Component_HTML(html)\n{\n var component = this._component;\n \n if(typeof(html) == "undefined")\n {\n return component.innerHTML;\n }\n else\n {\n component.innerHTML = html;\n }\n}\n\nComponent.prototype.HTML = _Component_HTML;\n\nfunction _Component_BackgroundColor(color)\n{\n this._component.style.backgroundColor = color;\n}\nComponent.prototype.backgroundColor = _Component_BackgroundColor;\n\nfunction _Component_BorderTop(border)\n{\n if(_defined(border)){\n var comp = this._component;\n if(MSIE)\n {\n //comp.style.borderTop = border.color();\n //comp.style.border-top-style = border.style();\n //comp.style.border-top-width = border.width();\n }\n else\n {\n comp.style.borderTopColor = border.color();\n comp.style.borderTopStyle = border.style();\n comp.style.borderTopWidth = border.width() + "px";\n }\n }\n}\nComponent.prototype.borderTop = _Component_BorderTop;\n\nfunction _Component_BorderBottom(border)\n{\n if(_defined(border)){\n var comp = this._component;\n if(MSIE)\n {\n }\n else\n {\n comp.style.borderBottomColor = border.color();\n comp.style.borderBottomStyle = border.style();\n comp.style.borderBottomWidth = border.width() + "px";\n }\n }\n}\nComponent.prototype.borderBottom = _Component_BorderBottom;\n\nfunction _Component_BorderLeft(border)\n{\n if(_defined(border)){\n var comp = this._component;\n if(MSIE)\n {\n }\n else\n {\n comp.style.borderLeftColor = border.color();\n comp.style.borderLeftStyle = border.style();\n comp.style.borderLeftWidth = border.width() + "px";\n }\n }\n}\nComponent.prototype.borderLeft = _Component_BorderLeft;\n\nfunction _Component_BorderRight(border)\n{\n if(_defined(border)){\n var comp = this._component;\n if(MSIE)\n {\n }\n else\n {\n comp.style.borderRightColor = border.color();\n comp.style.borderRightStyle = border.style();\n comp.style.borderRightWidth = border.width() + "px";\n }\n }\n}\nComponent.prototype.borderRight = _Component_BorderRight;\n\nfunction _Component_Border()\n{\n var arg = _Component_Border.arguments;\n \n if(arg.length == 1)\n {\n this.borderTop(arg[0]);\n this.borderBottom(arg[0]);\n this.borderLeft(arg[0]);\n this.borderRight(arg[0]);\n \n }\n else if(arg.length == 2)\n {\n this.borderTop(arg[0]);\n this.borderBottom(arg[0]);\n this.borderLeft(arg[1]);\n this.borderRight(arg[1]);\n \n }else if(arg.length == 3)\n {\n this.borderTop(arg[0]);\n this.borderLeft(arg[1]);\n this.borderRight(arg[1]);\n this.borderBottom(arg[2]);\n \n }\n else if(arg.length == 4)\n {\n this.borderTop(arg[0]);\n this.borderRight(arg[1]);\n this.borderBottom(arg[2]);\n this.borderLeft(arg[3]);\n }\n}\nComponent.prototype.border = _Component_Border;\n\nfunction _Component_X(x)\n{\n var component = this._component;\n \n if(typeof(x) == "undefined")\n {\n var ret = (MSIE) ? component.style.pixelLeft : parseInt(component.style.left);\n return ret;\n }\n else\n {\n if(MSIE)\n {\n component.style.pixelLeft = x;\n }\n else if(Opera)\n {\n component.style.left = x;\n }\n else\n {\n component.style.left = x + "px";\n }\n }\n}\nComponent.prototype.x = _Component_X;\n\nfunction _Component_Y(y)\n{\n var component = this._component;\n \n if(typeof(y) == "undefined")\n {\n var ret = (MSIE) ? component.style.pixelTop : parseInt(component.style.top);\n return ret;\n }else\n {\n if(MSIE)\n {\n component.style.pixelTop = y;\n }\n else if(Opera)\n {\n component.style.top = y;\n }\n else\n {\n component.style.top = y + "px";\n }\n }\n}\nComponent.prototype.y = _Component_Y;\n\nfunction _Component_Move(x, y)\n{\n this.x(x);\n this.y(y);\n}\nComponent.prototype.move = _Component_Move;\n\nfunction _Component_Width(width)\n{\n var component = this._component;\n \n if(typeof(width) == "undefined")\n {\n var ret = (MSIE) ? component.style.pixelWidth : parseInt(component.style.width);\n return ret;\n }\n else\n {\n if(MSIE)\n {\n component.style.pixelWidth = width;\n }\n else if(Opera)\n {\n component.style.width = width;\n }\n else\n {\n component.style.width = width + "px";\n }\n }\n}\nComponent.prototype.width = _Component_Width;\n\nfunction _Component_Height(height)\n{\n var component = this._component;\n \n if(typeof(height) == "undefined")\n {\n var ret = (MSIE) ? component.style.pixelWidth : parseInt(component.style.width);\n return ret;\n }\n else\n {\n if(MSIE)\n {\n component.style.pixelHeight = height;\n }\n else if(Opera)\n {\n component.style.height = height;\n }\n else\n {\n component.style.height = height + "px";\n }\n }\n}\nComponent.prototype.height = _Component_Height;\n\nfunction _Component_Size(width, height)\n{\n this.width(width);\n this.height(height);\n}\nComponent.prototype.size = _Component_Size;\n\nfunction _Component_Visible(visible)\n{\n var component = this._component;\n \n if(typeof(visible) == "undefined")\n {\n return (component.style.visibility == "visible") ? true : false;\n }\n else\n {\n if(MSIE || Safari || Firefox || Opera)\n {\n if(visible)\n {\n component.style.visibility = "visible";\n this._opacityStep = 10;\n this._opacity = 0;\n }\n else\n {\n this._opacityStep = -10;\n this._opacity = this.opacity();\n }\n \n _addComponent(this);\n \n this.changeOpacity();\n }\n else\n {\n component.style.visibility = (visible) ? "visible" : "hidden";\n }\n }\n}\nComponent.prototype.visible = _Component_Visible;\n\nfunction _Component_ChangeOpacity()\n{\n var opacity = this._opacity + this._opacityStep;\n \n this.opacity(opacity);\n \n if(opacity >= 100)\n {\n return;\n }\n else if(opacity <= 0)\n {\n this._component.style.visibility = "hidden";\n return\n }\n else\n {\n var interval = this._opacity_change_interval;\n setTimeout("_triggerChangeOpacity(\'" + this.id() + "\')", interval);\n }\n}\nComponent.prototype.changeOpacity = _Component_ChangeOpacity;\n\nfunction _Component_Opacity(opacity)\n{\n if(typeof(opacity) == "undefined")\n {\n return this._opacity;\n }\n else\n {\n this._opacity = opacity;\n \n var component = this._component;\n component.style.opacity = opacity / 100;\n component.style.mozOpacity = opacity / 100;\n component.style.filter = "alpha(opacity=" + opacity + ")";\n }\n}\nComponent.prototype.opacity = _Component_Opacity;\n\nvar _component_list = new Array();\n\nfunction _addComponent(component)\n{\n var id = component.id();\n _component_list[id] = component;\n}\n\nfunction _triggerChangeOpacity(id)\n{\n var component = _component_list[id];\n component.changeOpacity();\n}\n\nfunction _defined(val)\n{\n return (typeof(val) != "undefined") ? true : false;\n}\n\nfunction Border()\n{\n this._width = 1;\n this._style = "solid";\n this._color = "#000000";\n}\n\nfunction _Border_Color(color)\n{\n if(!_defined(color)){\n return this._color;\n }else{\n this._color = color;\n }\n}\nBorder.prototype.color = _Border_Color;\n\nfunction _Border_Style(style)\n{\n if(!_defined(style)){\n return this._style;\n }else{\n this._style = style;\n }\n}\nBorder.prototype.style = _Border_Style;\n\nfunction _Border_Width(width)\n{\n if(!_defined(width)){\n return this._width;\n }else{\n this._width = width;\n }\n}\nBorder.prototype.width = _Border_Width;\n\ndocument.onmousemove = _documentMouseMove;\n\nvar _mousePosX = 0;\nvar _mousePosY = 0;\n\nfunction _documentMouseMove(evt)\n{\n _mousePosX = _getEventX(evt);\n _mousePosY = _getEventY(evt);\n}\n\nfunction _getEventX(evt)\n{\n var ret;\n if(Netscape){\n ret = evt.pageX;\n }else if(MSIE){\n ret = event.x + getPageXOffset();\n }else if(Safari){\n ret = event.x + getPageXOffset();\n }else{\n ret = evt.x;\n }\n\n return ret;\n}\n\nfunction _getEventY(evt)\n{\n var ret;\n\n if(Netscape){\n ret = evt.pageY;\n }else if(MSIE){\n ret = event.y + getPageYOffset();\n }else if(Safari){\n ret = event.y + getPageYOffset();\n }else{\n ret = event.y;\n }\n\n return ret;\n}\n\nfunction getCurrentMouseX()\n{\n return _mousePosX;\n}\n\nfunction getCurrentMouseY()\n{\n return _mousePosY\n}\n\nfunction getPageXOffset()\n{\n var ret;\n if(Safari || Opera){\n ret = document.body.scrollLeft;\n }else{\n if(document.body.scrollLeft > 0){\n ret = document.body.scrollLeft;\n }else{\n ret = document.documentElement.scrollLeft;\n }\n }\n\n return ret;\n}\n\nfunction getPageYOffset()\n{\n var ret;\n if(Safari || Opera){\n ret = document.body.scrollTop;\n }else{\n if(document.body.scrollTop > 0){\n ret = document.body.scrollTop;\n }else{\n ret = document.documentElement.scrollTop;\n }\n }\n\n return ret;\n} \n \n \nvar timer = 0;\nvar p_entry, p_title, p_bgcolor;\nfunction popupTimer(entry, title, bgcolor)\n{\n p_entry = entry;\n p_title = title;\n p_bgcolor = bgcolor;\n\n if(timer == 0){\n var func = "showThumbnail()";\n timer = setTimeout(func, 1200);\n }\n}\n\n\nfunction showThumbnail()\n{\n\n var url = "";\n if(p_entry.match(/^[A-Z]+\\d+$/))\n {\n url = "http://www.genome.jp/kegg/misc/thumbnail/" + p_entry + ".gif";\n }\n else if(p_entry.match(/(\\d+)$/))\n {\n url = "http://www.genome.jp/kegg/misc/thumbnail/map" + RegExp.$1 + ".gif";\n }\n\n var html = "";\n\n html += \'<img src="\' + url + \'" alt="Loading...">\';\n\n var x = getCurrentMouseX();\n var y = getCurrentMouseY();\n\n var layer = new Component("poplay");\n layer.backgroundColor(p_bgcolor);\n layer.HTML(html);\n layer.move(x, y+40);\n layer.visible(true);\n\n timer = 0;\n}\n\n\nfunction hideMapTn(){\n var layer = new Component("poplay");\n layer.visible(false);\n\n if(timer != 0){\n clearTimeout(timer);\n timer = 0;\n }\n}\n</script>\n</head>\n'
def linear_search(list, target): result = False if not target: return "Error: target is None" if not list: return "Error: list is None" for n in list: if n == target: result = True return result return result list = [1,5,2,3,6,10,2] target = 1 print("original: " + str(list)) print("result : " + str(linear_search(list, target))) # O(N)
def linear_search(list, target): result = False if not target: return 'Error: target is None' if not list: return 'Error: list is None' for n in list: if n == target: result = True return result return result list = [1, 5, 2, 3, 6, 10, 2] target = 1 print('original: ' + str(list)) print('result : ' + str(linear_search(list, target)))
# Copyright (c) 2011 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. { 'variables': { 'chromium_code': 1, # Use higher warning level. }, 'includes': [ 'content_browser.gypi', 'content_common.gypi', 'content_gpu.gypi', 'content_plugin.gypi', 'content_ppapi_plugin.gypi', 'content_renderer.gypi', 'content_worker.gypi', ], }
{'variables': {'chromium_code': 1}, 'includes': ['content_browser.gypi', 'content_common.gypi', 'content_gpu.gypi', 'content_plugin.gypi', 'content_ppapi_plugin.gypi', 'content_renderer.gypi', 'content_worker.gypi']}