content
stringlengths
7
1.05M
# -*- coding: utf-8 -*- arabic_to_english_numbers = {u"٠":"0",u"١":"1",u"٢":"2",u"٣":"3",u"٤":"4",u"٥":"5",u"٦":"6",u"٧":"7",u"٨":"8",u"٩":"9"} english_to_arabic_numbers = dict((v,k) for k,v in arabic_to_english_numbers.iteritems()) def get_number_in_arabic(number): strNum = str(number) val = "" for char in strNum: val = val + english_to_arabic_numbers[char] return val if __name__ == '__main__': for i in range(1, 500): print(get_number_in_arabic(i))
# To use this bot you need to set up the bot in here, # You need to decide the prefix you want to use, # and you need your Token and Application ID from # the discord page where you manage your apps and bots. # You need your User ID which you can get from the # context menu on your name in discord under Copy ID. # if you want to make more than 30 requests per hour to # data.gov apis like nasa you will need to get an api key to # replace "DEMO_KEY" below. The openweathermap (!wx), # wolframalpha (!ask) and exchangerate-api.com apis need a # free key from their websites to function. # Add QRZ username and password for callsign lookup function BOT_PREFIX = ("YOUR_BOT_PREFIX_HERE") TOKEN = "YOUR_TOKEN_HERE" APPLICATION_ID = "YOUR_APPLICATION_ID" OWNERS = [123456789, 987654321] DATA_GOV_API_KEY = "DEMO_KEY" OPENWEATHER_API_KEY = "YOUR_API_KEY_HERE" WOLFRAMALPHA_API_KEY = "YOUR_API_KEY_HERE" EXCHANGERATE_API_KEY = "YOUR_API_KEY_HERE" #QRZ_USERNAME = "YOUR_QRZ_USERNAME" #only used if using direct qrz access instead of qrmbot qrz #QRZ_PASSWORD = "YOUR_QRZ_PASSWORD" GOOGLEGEO_API_KEY = "YOUR_API_KEY_HERE" WEBHOOK_URL = "https://webhookurl.here/" APRS_FI_API_KEY = "YOUR_API_KEY_HERE" APRS_FI_HTTP_AGENT = "lidbot/current (+https://github.com/vk3dan/sturdy-lidbot)" BLACKLIST = [] # Default cogs that I use in the bot at the moment STARTUP_COGS = [ "cogs.general", "cogs.help", "cogs.owner", "cogs.ham", "cogs.gonkphone" ]
# Constants VERSION = '2.0' STATUS_GREY = 'lair-grey' STATUS_BLUE = 'lair-blue' STATUS_GREEN = 'lair-greeen' STATUS_ORANGE = 'lair-orange' STATUS_RED = 'lair-red' STATUS_MAP = [STATUS_GREY, STATUS_BLUE, STATUS_GREEN, STATUS_ORANGE, STATUS_RED] PROTOCOL_TCP = 'tcp' PROTOCOL_UDP = 'udp' PROTOCOL_ICMP = 'icmp' PRODUCT_UNKNOWN = 'unknown' SERVICE_UNKNOWN = 'unknown' RATING_HIGH = 'high' RATING_MEDIUM = 'medium' RATING_LOW = 'low' # Main dictionary used to relate all data project = { '_id': '', 'name': '', 'industry': '', 'createdAt': '', 'description': '', 'owner': '', 'contributors': [], # List of strings 'commands': [], # List of 'command' items 'notes': [], # List of 'note' items 'droneLog': [], # List of strings 'tool': '', 'hosts': [], # List of 'host' items 'issues': [], # List of 'issue' items 'authInterfaces': [], # List of 'auth_interface' items 'netblocks': [], # List of 'netblock' items 'people': [], # List of 'person' items 'credentials': [] # List of 'credential' items } # Represents a single host host = { '_id': '', 'projectId': '', 'longIpv4Addr': 0, # Integer version of IP address 'ipv4': '', 'mac': '', 'hostnames': [], # List of strings 'os': dict(), # 'os' item 'notes': [], # List of 'note' items 'statusMessage': '', # Used to label host in Lair, can be arbitrary 'tags': [], # List of strings 'status': '', # See the STATUS_* constants for allowable strings 'lastModifiedBy': '', 'isFlagged': False, 'files': [], # List of 'file' items 'webDirectories': [], # List of 'web_directory' items 'services': [] # List of 'service' items } # Represents a single service/port service = { '_id': '', 'projectId': '', 'hostId': '', 'port': 0, 'protocol': PROTOCOL_TCP, # See the PROTOCOL_* constants for allowable strings 'service': '', 'product': '', 'status': '', # See the STATUS_* constants for allowable strings 'isFlagged': False, 'lastModifiedBy': '', 'notes': [], # List of 'note' items 'files': [], # List of 'file' items } # Represents a single issue issue = { '_id': '', 'projectId': '', 'title': '', 'cvss': 0.0, 'rating': '', # See the RATING_* constants for allowable strings 'isConfirmed': False, 'description': '', 'evidence': '', 'solution': '', 'hosts': [], # List of 'issue_host' items 'pluginIds': [], # List of 'plugin_id' items 'cves': [], # List of strings 'references': [], # List of 'issue_reference' items 'identifiedBy': dict(), # 'identified_by' object 'isFlagged': False, 'status': '', # See the STATUS_* constants for allowable strings 'lastModifiedBy': '', 'notes': [], # List of 'note' items 'files': [] # List of 'file' items } # Represents an authentication interface auth_interface = { '_id': '', 'projectId': '', 'isMultifactor': False, 'kind': '', # What type of interface (e.g. Cisco, Juniper) 'url': '', 'description': '' } # Represents a single netblock netblock = { '_id': '', 'projectId': '', 'asn': '', 'asnCountryCode': '', 'asnCidr': '', 'asnDate': '', 'asnRegistry': '', 'cidr': '', 'abuseEmails': '', 'miscEmails': '', 'techEmails': '', 'name': '', 'address': '', 'city': '', 'state': '', 'country': '', 'postalCode': '', 'created': '', 'updated': '', 'description': '', 'handle': '' } # Represents a single person person = { '_id': '', 'projectId': '', 'principalName': '', 'samAccountName': '', 'distinguishedName': '', 'firstName': '', 'middleName': '', 'lastName': '', 'displayName': '', 'department': '', 'description': '', 'address': '', 'emails': [], # List of strings 'phones': [], # List of strings 'references': [], # List of 'person_reference' items 'groups': [], # List of strings 'lastLogon': '', 'lastLogoff': '', 'loggedIn': [] # List of strings } # Represents a single credentials credential = { '_id': '', 'projectId': '', 'username': '', 'password': '', 'format': '', 'hash': '', 'host': '', # Free-form value of host 'service': '' # Free-form value of service } # Represents an operating system os = { 'tool': '', 'weight': 0, # Confidence level between 0-100 'fingerprint': 'unknown' } # Represents a web directory web_directory = { '_id': '', 'projectId': '', 'hostId': '', 'path': '', 'port': 0, 'responseCode': '404', # String version of HTTP response code. 'lastModifiedBy': '', 'isFlagged': False } # Dictionary used to represent a specific command run by a tool command = { 'tool': '', 'command': '' } # Dictionariy used to represent a note. note = { 'title': '', 'content': '', 'lastModifiedBy': '' } # Represents a file object file = { 'fileName': '', 'url': '' } # Represents a reference to a host. Used for correlating an issue # to a specific host. issue_host = { 'ipv4': '', 'port': 0, 'protocol': PROTOCOL_TCP # See PROTOCOL_* constants for allowable values } # Represents a plugin (a unique identifier for a specific tool) plugin_id = { 'tool': '', 'id': '' } # Represents a reference to a 3rd party site that contains issue details issue_reference = { 'link': '', # Target URL 'name': '' # Link display } # Represents the tool that identified a specific issue identified_by = { 'tool': '' } # Represents a reference from a person to a third party site person_reference = { 'description': '', 'username': '', 'link': '' # Target URL }
#!/usr/bin/env python3 # https://codeforces.com/problemset/problem/996/A total = int(input()) bills = [100,20,10,5,1] nob = 0 for b in bills: nob += total//b total = total%b if total == 0: break print(nob)
# -*- coding: utf-8 -*- """ Created on Fri Oct 2 11:25:48 2020 @author: Tarun Jaiswal """ ''' a=int(input("A= ")) b=int(input("B= ")) c=int(input("C= ")) d=int(input("D= ")) max=a variablename="a= " if b>max: variablename="b= " max=b if c>max: variablename="c= " max=c if d>max: variablename="d= " max=d print(variablename, max) ''' a=int(input("A= ")) b=int(input("B= ")) c=int(input("C= ")) d=int(input("D= ")) e=int(input("E= ")) max=a Variablename="a= " if b>max: Variablename="b= " max=b if c>max: variablename="c= " max=c if d>max: Variablename="d= " max=d if e>max: variablename="e= " max=e print(variablename, max)
# Copyright (c) 2020 Anastasiia Birillo class VkCity: def __init__(self, data: dict) -> None: self.id = data['id'] self.title = data.get('title') def __str__(self): return f"[{', '.join(map(lambda key: f'{key}={self.__dict__[key]}', self.__dict__))}]" class VkUser: def __init__(self, data: dict) -> None: self.id = data['id'] self.first_name = data.get('first_name') self.last_name = data.get('last_name') self.sex = data.get('sex') self.domain = data.get('domain') self.city = data.get('about') self.city = VkCity(data.get('city')) if data.get('city') is not None else None def __str__(self): return f"[{', '.join(map(lambda key: f'{key}={self.__dict__[key]}', self.__dict__))}]"
GENDER_VALUES = (('M', 'Male'), ('F', 'Female'), ('TG', 'Transgender')) MARITAL_STATUS_VALUES = (('M', 'Married'), ('S', 'Single'), ('U', 'Unknown')) CATEGORY_VALUES = (('BR', 'Bramhachari'), ('FTT', 'Full Time Teacher'), ('PTT', 'Part Time Teacher'), ('FTV', 'Full Time Volunteer'), ('VOL', 'Volunteer'), ('STAFF', 'Staff'), ('SEV', 'Sevadhar')) STATUS_VALUES = (('ACTV', 'Active'), ('INACTV', 'Inactive'), ('EXPD', 'Deceased')) ID_PROOF_VALUES = (('DL', 'Driving License'), ('PP', 'Passport'), ('RC', 'Ration Card'), ('VC', 'Voters ID'), ('AA', 'Aadhaar'), ('PC', 'PAN Card'), ('OT', 'Other Government Issued')) ROLE_LEVEL_CHOICES = (('ZO', 'Zone'), ('SC', 'Sector'), ('CE', 'Center'),) NOTE_TYPE_VALUES = (('IN', 'Information Note'), ('SC', 'Status Change'), ('CN', 'Critical Note'), ('MN', 'Medical Note'), ) ADDRESS_TYPE_VALUES = (('WO', 'Work'), ('HO', 'Home')) CENTER_CATEGORY_VALUES = (('A', 'A Center'), ('B', 'B Center'), ('C', 'C Center'),)
"""Brain Games. This is my Python course level 1 project. Nothing special, it's just a bundle of mini-games with common CLI. """
input = """ 8 2 2 3 0 0 1 4 2 1 3 2 1 4 2 2 2 3 6 0 1 0 4 3 0 4 c 3 b 2 a 0 B+ 0 B- 1 0 1 """ output = """ COST 0@1 """
# Every non-negative integer N has a binary representation. # For example, 5 can be represented as "101" in binary, 11 as "1011" in binary, and so on. # Note that except for N = 0, there are no leading zeroes in any binary representation. # The complement of a binary representation is the number in binary you get w # hen changing every 1 to a 0 and 0 to a 1. For example, the complement of "101" in binary is "010" in binary. # For a given number N in base-10, return the complement of it's binary representation as a base-10 integer. # Example 1: # Input: 5 # Output: 2 # Explanation: 5 is "101" in binary, with complement "010" in binary, which is 2 in base-10. # Example 2: # Input: 7 # Output: 0 # Explanation: 7 is "111" in binary, with complement "000" in binary, which is 0 in base-10. # Example 3: # Input: 10 # Output: 5 # Explanation: 10 is "1010" in binary, with complement "0101" in binary, which is 5 in base-10. # Note: # 0 <= N < 10^9 # Hints: # A binary number plus its complement will equal 111....111 in binary. Also, N = 0 is a corner case. class Solution(object): def bitwiseComplement(self, N): """ :type N: int :rtype: int """ # M1. 进制转化 O(logn) # 把N转化为二进制,取反再转化回来,需要特别考虑N为0的情况。 if N == 0: return 1 temp = [] while N > 0: temp.append(N % 2) N = N // 2 res = 0 for i in range(len(temp), -1, -1): if temp[i] == 0: res = res * 2 + 1 else: res = res * 2 return res
""" LeetCode Problem: 215. Kth Largest Element in an Array Link: https://leetcode.com/problems/kth-largest-element-in-an-array/ Language: Python Written by: Mostofa Adib Shakib """ class Solution(object): def findKthLargest(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ nums.sort(reverse=True) count = 0 for i in range(k): count = nums[i] return count
def solution(S): # write your code in Python 3.6 if not S: return 1 stack = [] for s in S: if s == '(': stack.append(s) else: if not stack: return 0 else: stack.pop() if stack: return 0 return 1
class DistributionDiscriminator: def __init__(self, dataset=None, extractor=None, criterion=None, **kwargs): super().__init__(**kwargs) self.dataset = dataset self.extractor = extractor self.criterion = criterion def judge(self, samples): return self.extractor.extract(samples) def compare(self, features, dataset): raise NotImplementedError
############################################################################## # Parte do livro Introdução à Programação com Python # Autor: Nilo Ney Coutinho Menezes # Editora Novatec (c) 2010-2017 # Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8 # Primeira reimpressão - Outubro/2011 # Segunda reimpressão - Novembro/2012 # Terceira reimpressão - Agosto/2013 # Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3 # Primeira reimpressão - Segunda edição - Maio/2015 # Segunda reimpressão - Segunda edição - Janeiro/2016 # Terceira reimpressão - Segunda edição - Junho/2016 # Quarta reimpressão - Segunda edição - Março/2017 # # Site: http://python.nilo.pro.br/ # # Arquivo: exercicios\capitulo 06\exercicio-06-11.py ############################################################################## L = [] while True: n = int(input("Digite um número (0 sai):")) if n == 0: break L.append(n) for e in L: print(e) # O primeiro while não pôde ser convertido em for porque # o número de repetições é desconhecido no início.
class Solution: def stack(self, s: str) -> list: st = [] for x in s: if x == '#': if len(st) != 0: st.pop() continue st.append(x) return st def backspaceCompare(self, S: str, T: str) -> bool: s = self.stack(S) t = self.stack(T) if len(s) != len(t): return False for i, c in enumerate(s): if c != t[i]: return False return True
connections = {} connections["Joj"] = [] connections["Emily"] = ["Joj","Jeph","Jeff"] connections["Jeph"] = ["Joj","Geoff"] connections["Jeff"] = ["Joj","Judge"] connections["Geoff"] = ["Joj","Jebb"] connections["Jebb"] = ["Joj","Emily"] connections["Judge"] = ["Joj","Judy"] connections["Jodge"] = ["Joj","Jebb","Stephan","Judy"] connections["Judy"] = ["Joj","Judge"] connections["Stephan"] = ["Joj","Jodge"] names = ["Emily","Jeph","Jeff","Geoff","Jebb","Judge","Jodge","Judy", "Joj","Stephan"] candidate = names[0] for i in range(1, len(names)): if names[i] in connections[candidate]: candidate = names[i] print("Our best candidate is {0}".format(candidate)) for name in names: if name != candidate and name in connections[candidate]: print("The candidate is a lie!") exit() elif name != candidate and candidate not in connections[name]: print("The candidate is a lie, they are not known by somebody!") exit() print("We made it to the end, the celebrity is the real deal.")
class Constants: def __init__(self): pass SIMPLE_CONFIG_DIR = "/etc/simple_grid" GIT_PKG_NAME = "git" DOCKER_PKG_NAME = "docker" BOLT_PKG_NAME = "bolt"
class Solution: def longestPrefix(self, s: str) -> str: pi = [0]*len(s) for i in range(1, len(s)): k = pi[i-1] while k > 0 and s[i] != s[k]: k = pi[k-1] if s[i] == s[k]: k += 1 pi[i] = k print('pi is: ', pi) return s[len(s)-pi[-1]:] # i, j = 1, 0 # table = [0] # while i < len(s): # while j and s[i] != s[j]: # j = table[j-1] # if s[i] == s[j]: # j += 1 # table.append(j+1) # else: # table.append(0) # j = 0 # i += 1 # print('table: ', table) # return s[len(s) - table[-1]]
def _update_doc_distribution( X, exp_topic_word_distr, doc_topic_prior, max_doc_update_iter, mean_change_tol, cal_sstats, random_state, ): is_sparse_x = sp.issparse(X) n_samples, n_features = X.shape n_topics = exp_topic_word_distr.shape[0] if random_state: doc_topic_distr = random_state.gamma(100.0, 0.01, (n_samples, n_topics)) else: doc_topic_distr = np.ones((n_samples, n_topics)) # In the literature, this is `exp(E[log(theta)])` exp_doc_topic = np.exp(_dirichlet_expectation_2d(doc_topic_distr)) # diff on `component_` (only calculate it when `cal_diff` is True) suff_stats = np.zeros(exp_topic_word_distr.shape) if cal_sstats else None if is_sparse_x: X_data = X.data X_indices = X.indices X_indptr = X.indptr for idx_d in range(n_samples): if is_sparse_x: ids = X_indices[X_indptr[idx_d] : X_indptr[idx_d + 1]] cnts = X_data[X_indptr[idx_d] : X_indptr[idx_d + 1]] else: ids = np.nonzero(X[idx_d, :])[0] cnts = X[idx_d, ids] doc_topic_d = doc_topic_distr[idx_d, :] # The next one is a copy, since the inner loop overwrites it. exp_doc_topic_d = exp_doc_topic[idx_d, :].copy() exp_topic_word_d = exp_topic_word_distr[:, ids] # Iterate between `doc_topic_d` and `norm_phi` until convergence for _ in range(0, max_doc_update_iter): last_d = doc_topic_d # The optimal phi_{dwk} is proportional to # exp(E[log(theta_{dk})]) * exp(E[log(beta_{dw})]). norm_phi = np.dot(exp_doc_topic_d, exp_topic_word_d) + EPS doc_topic_d = exp_doc_topic_d * np.dot(cnts / norm_phi, exp_topic_word_d.T) # Note: adds doc_topic_prior to doc_topic_d, in-place. _dirichlet_expectation_1d(doc_topic_d, doc_topic_prior, exp_doc_topic_d) if mean_change(last_d, doc_topic_d) < mean_change_tol: break doc_topic_distr[idx_d, :] = doc_topic_d # Contribution of document d to the expected sufficient # statistics for the M step. if cal_sstats: norm_phi = np.dot(exp_doc_topic_d, exp_topic_word_d) + EPS suff_stats[:, ids] += np.outer(exp_doc_topic_d, cnts / norm_phi)
''' Almost everyone in the world knows about the ancient game Chess and has at least a basic understanding of its rules. It has various units with a wide range of movement patterns allowing for a huge number of possible different game positions (for example Number of possible chess games at the end of the n-th plies. ) For this mission, we will examine the movements and behavior of chess pawns. Chess is a two-player strategy game played on a checkered game board laid out in eight rows (called ranks and denoted with numbers 1 to 8) and eight columns (called files and denoted with letters a to h) of squares. Each square of the chessboard is identified by a unique coordinate pair — a letter and a number (ex, "a1", "h8", "d6"). For this mission we only need to concern ourselves with pawns. A pawn may capture an opponent's piece on a square diagonally in front of it on an adjacent file, by moving to that square. For white pawns the front squares are squares with greater row number than the square they currently occupy. A pawn is generally a weak unit, but we have 8 of them which we can use to build a pawn defense wall. With this strategy, one pawn defends the others. A pawn is safe if another pawn can capture a unit on that square. We have several white pawns on the chess board and only white pawns. You should design your code to find how many pawns are safe. pawns You are given a set of square coordinates where we have placed white pawns. You should count how many pawns are safe. Input: Placed pawns coordinates as a set of strings. Output: The number of safe pawns as a integer. Example: 1 safe_pawns({"b4", "d4", "f4", "c3", "e3", "g5", "d2"}) == 6 2 safe_pawns({"b4", "c4", "d4", "e4", "f4", "g4", "e5"}) == 1 How it is used: For a game AI one of the important tasks is the ability to estimate game state. This concept will show how you can do this on the simple chess figures positions. Precondition: 0 < pawns ≤ 8 ----------- ----------- Casi todo el mundo conoce el antiguo juego del ajedrez y tiene al menos un conocimiento básico de sus reglas. En tiene varias unidades con una amplia gama de patrones de movimiento que permiten un enorme número de posibles posiciones de juego diferentes (por ejemplo, el número de partidas de ajedrez posibles al final de las n-ésimas. ) Para esta misión, examinaremos los movimientos y el comportamiento de los peones de ajedrez. El ajedrez es un juego de estrategia para dos jugadores que se juega en un tablero de ajedrez distribuido en ocho filas (llamadas filas y denotadas con números del 1 al 8) y ocho columnas (llamadas filas y denotadas con letras de la a a la h) de casillas. Cada casilla del tablero de ajedrez se identifica con un único par de coordenadas: una letra y un número (por ejemplo, "a1", "h8", "d6"). Para esta misión sólo tenemos que preocuparnos de los peones. Un peón puede capturar una pieza del adversario en una casilla en diagonal delante de él en una fila adyacente. de él en una fila adyacente, moviéndose a esa casilla. Para los peones blancos las casillas delanteras son casillas con mayor número de fila que la casilla que ocupan actualmente. Un peón es generalmente una unidad débil, pero tenemos 8 de ellos que podemos utilizar para construir un muro de defensa de peones. Con esta estrategia, un peón defiende a los demás. Un peón está a salvo si otro peón puede capturar una unidad en esa casilla. Tenemos varios peones blancos en el tablero de ajedrez y sólo peones blancos. Debes diseñar tu código para encontrar cuántos peones son seguros. peones Se te da un conjunto de coordenadas de casillas donde hemos colocado peones blancos. Debes contar cuántos peones son seguros. Entrada: Coordenadas de los peones colocados como un conjunto de cadenas. Salida: El número de peones seguros como un entero. Ejemplo: 1 peones_seguros({"b4", "d4", "f4", "c3", "e3", "g5", "d2"}) == 6 2 safe_pawns({"b4", "c4", "d4", "e4", "f4", "g4", "e5"}) == 1 Cómo se utiliza: Para una IA de juego una de las tareas importantes es la capacidad de estimar el estado de la partida. Este concepto mostrará cómo se puede hacer esto en las posiciones de figuras de ajedrez simples. Condición previa: 0 < peones ≤ 8 ''' def safe_pawns(pawns): if 0 < len(pawns) <= 8: cont = 0 for elem in pawns: for pos, item in enumerate(elem): if pos == 0: l1 = chr(ord(item) - 1) l2 = chr(ord(item) + 1) else: num = chr(ord(item) - 1) u1 = l1+num in pawns u2 = l2+num in pawns if u1 or u2 is True: cont += 1 return cont else: return print("Invalid sequence to Run the program, try again") if __name__ == '__main__': #These "asserts" using only for self-checking and not necessary for auto-testing assert safe_pawns({"b4", "d4", "f4", "c3", "e3", "g5", "d2"}) == 6 assert safe_pawns({"b4", "c4", "d4", "e4", "f4", "g4", "e5"}) == 1
def read_convert(input: str) -> list: dict_list = [] input = input.split("__::__") for lines in input: line_dict = {} line = lines.split("__$$__") for l in line: dict_value = l.split("__=__") key = dict_value[0] if len(dict_value) == 1: value = "" else: value = dict_value[1] line_dict[key] = value dict_list.append(line_dict) return dict_list def write_convert(input: list) -> str: output_str = "" for dicts in input: for key, value in dicts.items(): output_str = output_str + key + "__=__" + value output_str = output_str + "__$$__" output_str = output_str[:len(output_str) - 6] output_str = output_str + "__::__" output_str = output_str[:len(output_str) - 6] return output_str if __name__ == "__main__": loans = "Processor__=____$$__Loan_Number__=__2501507794__$$__Underwriter__=____$$__Borrower__=__CREDCO,BARRY__$$__Purpose__=__Construction/Perm__$$__Loan_Type__=__Conventional-Conf__$$__Est_Closing_Date__=__2020-09-25 00:00:00__$$__Program__=__One Close Construction Conf__$$__processor_manager__=__No contact selected__$$__underwriter_manager__=__No contact selected__$$__e_consent__=____$$__processor_note__=____$$__investor_category__=__PPB__$$__risk_level__=__3__$$__sample_status__=____$$__rush_status__=____$$__type__=__New__$$__sampled_date__=__2021-03-25 12:21:58.0__$$__update_date__=__2021-03-25 12:21:58.0__$$____::__Processor__=__Carmen Medrano__$$__Loan_Number__=__2501666460__$$__Underwriter__=__Erica Lopes__$$__Borrower__=__Credco,Barry__$$__Purpose__=__Purchase__$$__Loan_Type__=__Conventional-Conf__$$__Est_Closing_Date__=__2021-03-29 00:00:00__$$__Program__=__Conf__$$__processor_manager__=__No contact selected__$$__underwriter_manager__=__Joy Swift-Greiff__$$__e_consent__=____$$__processor_note__=____$$__investor_category__=__PCB__$$__risk_level__=__1__$$__sample_status__=____$$__rush_status__=____$$__type__=__New__$$__sampled_date__=__2021-03-25 12:21:58.0__$$__update_date__=__2021-03-25 12:21:58.0__::__Processor__=____$$__Loan_Number__=__2501679729__$$__Underwriter__=____$$__Borrower__=__Credco,Barry__$$__Purpose__=__Refinance__$$__Loan_Type__=__Conventional-Conf__$$__Est_Closing_Date__=__2021-04-24 00:00:00__$$__Program__=__BMO Harris ReadyLine Conf__$$__processor_manager__=__No contact selected__$$__underwriter_manager__=__No contact selected__$$__e_consent__=____$$__processor_note__=____$$__investor_category__=__SMU__$$__risk_level__=__1__$$__sample_status__=____$$__rush_status__=____$$__type__=__New__$$__sampled_date__=__2021-03-25 12:21:58.0__$$__update_date__=__2021-03-25 12:21:58.0__::__Processor__=____$$__Loan_Number__=__2501682907__$$__Underwriter__=____$$__Borrower__=__Firstimer,Alice__$$__Purpose__=__Purchase__$$__Loan_Type__=__Conventional-Conf__$$__Est_Closing_Date__=__2021-05-01 00:00:00__$$__Program__=__BMO Harris ReadyLine Conf__$$__processor_manager__=__No contact selected__$$__underwriter_manager__=__No contact selected__$$__e_consent__=____$$__processor_note__=____$$__investor_category__=__PCB__$$__risk_level__=__1__$$__sample_status__=____$$__rush_status__=____$$__type__=__New__$$__sampled_date__=__2021-03-25 12:21:58.0__$$__update_date__=__2021-03-25 12:21:58.0__::__Processor__=__Carmen Medrano__$$__Loan_Number__=__2501682635__$$__Underwriter__=____$$__Borrower__=__Credco,Barry__$$__Purpose__=__Purchase__$$__Loan_Type__=__Conventional-Conf__$$__Est_Closing_Date__=__2021-04-30 00:00:00__$$__Program__=__Conf__$$__processor_manager__=__No contact selected__$$__underwriter_manager__=__No contact selected__$$__e_consent__=____$$__processor_note__=____$$__investor_category__=__SMU__$$__risk_level__=__1__$$__sample_status__=____$$__rush_status__=____$$__type__=__New__$$__sampled_date__=__2021-03-25 12:21:58.0__$$__update_date__=__2021-03-25 12:21:58.0" dicts = read_convert(loans) outputstr = write_convert(dicts) converted = read_convert(outputstr) print(dicts == converted)
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param {TreeNode} root # @return {integer[]} def preorderTraversal(self, root): self.preorder = [] self.traverse(root) return self.preorder def traverse(self, root): if root: self.preorder.append(root.val) self.traverse(root.left) self.traverse(root.right)
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"websites_url": "01-training-data.ipynb", "m": "01-training-data.ipynb", "piece_dirs": "01-training-data.ipynb", "assert_coord": "01-training-data.ipynb", "Board": "01-training-data.ipynb", "Boards": "01-training-data.ipynb", "boards": "01-training-data.ipynb", "PieceSet": "01-training-data.ipynb", "PieceSets": "01-training-data.ipynb", "pieces": "01-training-data.ipynb", "FEN": "01-training-data.ipynb", "FENs": "01-training-data.ipynb", "fens": "01-training-data.ipynb", "pgn_url": "01-training-data.ipynb", "pgn": "01-training-data.ipynb", "small": "01-training-data.ipynb", "GameBoard": "01-training-data.ipynb", "sites": "01-training-data.ipynb", "FileNamer": "01-training-data.ipynb", "Render": "01-training-data.ipynb", "NoLabelBBoxLabeler": "03-learner.ipynb", "BBoxTruth": "03-learner.ipynb", "iou": "03-learner.ipynb", "NoLabelBBoxBlock": "03-learner.ipynb", "Coord": "95-piece-classifier.ipynb", "CropBox": "95-piece-classifier.ipynb", "Color": "95-piece-classifier.ipynb", "Piece": "95-piece-classifier.ipynb", "BoardImage": "95-piece-classifier.ipynb", "get_coord": "95-piece-classifier.ipynb", "Hough": "96_hough.py.ipynb", "URLs.chess_small": "99_preprocess.ipynb", "URLs.website": "99_preprocess.ipynb", "toPIL": "99_preprocess.ipynb", "color_to_gray": "99_preprocess.ipynb", "gray_to_bw": "99_preprocess.ipynb", "is_bw": "99_preprocess.ipynb", "contourFilter": "99_preprocess.ipynb", "drawContour": "99_preprocess.ipynb", "bw_to_contours": "99_preprocess.ipynb", "draw_hough_lines": "99_preprocess.ipynb", "draw_hough_linesp": "99_preprocess.ipynb", "contour_to_hough": "99_preprocess.ipynb", "color_to_contours": "99_preprocess.ipynb", "Lines": "99_preprocess.ipynb"} modules = ["training.py", "learner.py", "classifier.py", "hough.py", "preprocess.py"] doc_url = "https://idrisr.github.io/chessocr/" git_url = "https://github.com/idrisr/chessocr/tree/master/" def custom_doc_links(name): return None
n = int(input()) i = 5 while i > 0: root = 1 while root ** i < n: root = root + 1 if root ** i == n: print(root, i) i = i - 1
# -*- coding: utf-8 -*- # Authors: Y. Jia <[email protected]> """ Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. https://leetcode.com/problems/maximal-square/description/ """ class Solution(object): def maximalSquare(self, matrix): """ :type matrix: List[List[str]] :rtype: int """ max_side_length = 0 if matrix is None: return max_side_length n_row = len(matrix) if n_row == 0: return max_side_length n_col = len(matrix[0]) dp = list() for r in range(n_row): dp.append(list()) for c in range(n_col): dp[r].append(0) for r in range(n_row): dp[r][0] = int(matrix[r][0]) max_side_length = max(dp[r][0], max_side_length) for c in range(n_col): dp[0][c] = int(matrix[0][c]) max_side_length = max(dp[0][c], max_side_length) for r in range(1, n_row): for c in range(1, n_col): if matrix[r][c] == '1': dp[r][c] = min(dp[r - 1][c - 1], dp[r - 1][c], dp[r][c - 1]) + 1 max_side_length = max(dp[r][c], max_side_length) else: dp[r][c] = 0 return max_side_length * max_side_length
a = [1, 2, 3, 4, 5] print(a[0] + 1) #length of list x = len(a) print(x) print(a[-1]) #splicing print(a[0:3]) print(a[0:]) b = "test" print(b[0:1])
def extgcd(a, b): """solve ax + by = gcd(a, b) return x, y, gcd(a, b) used in NTL1E(AOJ) """ g = a if b == 0: x, y = 1, 0 else: x, y, g = extgcd(b, a % b) x, y = y, x - a // b * y return x, y, g
class Solution(object): def toGoatLatin(self, sentence): """ :type sentence: str :rtype: str """ count = 0 res = [] for w in sentence.split(): count += 1 if w[0].lower() in ['a', 'e', 'i', 'o', 'u']: res.append(w+"ma"+'a'*count) else: res.append(w[1:]+w[0]+"ma"+'a'*count) return " ".join(res)
class Solution: def subarraySum(self, nums: List[int], k: int) -> int: count = 0 prefix_sum = 0 dic = {0: 1} for i in range(len(nums)): prefix_sum += nums[i] if prefix_sum - k in dic: count += dic[prefix_sum - k] if prefix_sum in dic: dic[prefix_sum] += 1 else: dic[prefix_sum] = 1 return count
""" https://leetcode.com/problems/detect-capital/ Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of the following cases holds: All letters in this word are capitals, like "USA". All letters in this word are not capitals, like "leetcode". Only the first letter in this word is capital, like "Google". Otherwise, we define that this word doesn't use capitals in a right way. Example 1: Input: "USA" Output: True Example 2: Input: "FlaG" Output: False Note: The input will be a non-empty word consisting of uppercase and lowercase latin letters. """ # time complexity: O(n), space complexity: O(1) class Solution: def detectCapitalUse(self, word: str) -> bool: if len(word) == 1: return True if len(word) == 2: if ord('A') <= ord(word[0]) <= ord('Z'): return True elif ord('a') <= ord(word[1]) <= ord('z'): return True else: return False # len == 3 if ord('A') <= ord(word[0]) <= ord('Z'): i = 1 while i < len(word): if ord('A') <= ord(word[i]) <= ord('Z') and ord('A') <= ord(word[1]) <= ord('Z') or ord('a') <= ord( word[i]) <= ord('z') and ord('a') <= ord(word[1]) <= ord('z'): i += 1 else: return False if i == len(word): return True else: i = 1 while i < len(word): if ord('a') <= ord(word[i]) <= ord('z'): i += 1 else: return False if i == len(word): return True
n = int(input()) a = list(map(int,input().split())) q,w=0,0 for i in a: if i ==25:q+=1 elif i==50:q-=1;w+=1 else: if w>0:w-=1;q-=1 else:q-=3 if q<0 or w<0:n=0;break if n==0:print("NO") else:print("YES")
datas = { 'style' : 'boost', 'prefix' : ['boost','simd'], 'has_submodules' : True, }
# This script was crated to calculate my net worth across all my accounts, including crypto wallets. I track my fiat # currency using Mint. The majority of my crypto wallets are not able to sync with Mint. With this script, I answer a # few questions regarding wallet balances, then my change in net worth (annual and daily) are printed. All mentioned # wallets are ones I personally use. # COIN App coin_balance = float(input('How much COIN do you have? ')) denominator = coin_balance / 1000 numerator = float(input('How much XYO do you get from 1000 COIN? ')) COIN_to_xyo = round((numerator * denominator), 3) XYO_CoinGecko_plug = float(input(f'Enter USD from CoinGecko for {COIN_to_xyo} XYO. ')) # Metamask Ethereum Chain print() print('Open MetaMask Ethereum Main Network.') metamask_ethereum_balance = float(input('What is the balance on your MetaMask Ethereum wallet? ')) # MetaMask Ethereum matic_staked_balance = float(input('How much Matic do you have staked? ')) # MetaMask Ethereum matic_rewards_balance = float(input('How much Matic have you earned? ')) # MetaMask Ethereum # Metamask Smart Chain print() print('Open MetaMask Binance Smart Chain Mainnet.') metamask_smartchain_balance = float(input('What is the balance in your MetaMask Binance Smart Chain Mainnet? ')) # Metamask MultiVAC Mainnet print() print('Open MetaMask MultiVAC Mainnet.') print('Stake any accumulated MTV now.') mtv_staked = float(input('How much MTV (in USD) do you have staked? ')) # Price using CoinGecko. # Metamask Avalanche Network print() print('Open Metamask Avalanche Network.') metamask_avalanche_balance = float(input('What is the balance in your MetaMask Avalanche Network? ')) # traderjoexyz.com print() print('Open traderjoexyz.com') print() print('Click the Lend tab.') traderjoexyz_lending_supply = float(input('How much is your Supply Balance? ')) joe_balance = float(input('What is the value of your JOE Rewards? ')) joe_price = float(input('What is the current price of JOE according to CoinMarketCap? ')) joe_rewards = joe_balance * joe_price print(f'You have ${joe_rewards} worth of JOE rewards.') print() avax_balance = float(input('What is the value of your AVAX Rewards? ')) avax_price = float(input('What is the current price of AVAX according to CoinMarketCap? ')) avax_rewards = avax_balance * avax_price print(f'You have ${avax_rewards} worth of avax rewards.') print() print('CLick the Farm tab.') melt_avax_balance = float(input('How much MELT/AVAX do you have staked? ')) melt_avax_pending_rewards = float(input('How much Pending Rewards do you have? ')) melt_avax_bonus_rewards = float(input('How much Bonus Rewards do you have? ')) # Wonderland print() print('Open Wonderland.') memo_balance = float(input('How much MEMO do you have? ')) time_value = float(input('What is the USD value of TIME according to CoinMarketCap? ')) memo_value = memo_balance * time_value print(f'You have ${memo_value} worth of MEMO.') # Crypto.com App print() crypto_dot_com_balance = float(input("What's the balance of your Crypto.com account? ")) # Mint print() mint_net_worth = float(input('How much does Mint say your annual net worth changed? ')) # KuCoin print() KuCoin_balance = float(input('What is the balance of your KuCoin account? ')) # Algorand App print() algorand_app_balance = float(input('What is the balance of your Algorand account? ')) # Helium App print() helium_balance = float(input('What is the balance of your Helium account? ')) # Coinbase Wallet App, NOT Coinbase App print() coinbase_wallet_balance = float(input('What is the balance of your Coinbase Wallet? ')) # Trust Wallet print() trust_wallet_balance = float(input('What is the balance of your Trust Wallet? ')) # Pancake Swap print() print('Go to PancakeSwap.') # Farm print('Click the Farms tab under Earn.') cake_earned = float(input('How much CAKE have you earned? ')) kart_bnb_staked = float(input('How much KART-BNB is staked? ')) # Pool print() print('Switch to the Pools tab.') PancakeSwap_kart_balance = float(input('How much KART have you earned? ')) PancakeSwap_KART_pooled_amount = float(input('How much USD do you have staked in the KART pool? ')) # Liquidity print() print('Click the Liquidity tab under Trade.') mcrt_bnb_lp = float(input('How much BNB is in your MCRT-BNB LP paid? ')) mcrt_bnb_value = 2 * mcrt_bnb_lp mcrt_bnb_usd = float(input(f'Plug {mcrt_bnb_value} BNB into Coingecko. How much USD is that? ')) print(f'You have ${mcrt_bnb_usd} in your MCRT-BNB LP.') print() annual_change = round(float( XYO_CoinGecko_plug + matic_staked_balance + matic_rewards_balance + crypto_dot_com_balance + mint_net_worth + metamask_ethereum_balance + metamask_smartchain_balance + KuCoin_balance + algorand_app_balance + helium_balance + mtv_staked + coinbase_wallet_balance + trust_wallet_balance + PancakeSwap_kart_balance + PancakeSwap_KART_pooled_amount + cake_earned + kart_bnb_staked + metamask_avalanche_balance + traderjoexyz_lending_supply + joe_rewards + avax_rewards + melt_avax_bonus_rewards + melt_avax_pending_rewards + melt_avax_balance + memo_value + mcrt_bnb_usd), 2) daily_change = round(float(annual_change / 365), 2) print(f'Your net worth changed by ${annual_change} this year.') print(f'Your net worth changed by about ${daily_change} daily.')
# # PySNMP MIB module CISCO-ITP-GSP2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ITP-GSP2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:46:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion") cgspInstNetwork, = mibBuilder.importSymbols("CISCO-ITP-GSP-MIB", "cgspInstNetwork") CItpTcXuaName, CItpTcPointCode, CItpTcLinksetId, CItpTcNetworkName, CItpTcAclId, CItpTcLinkSLC = mibBuilder.importSymbols("CISCO-ITP-TC-MIB", "CItpTcXuaName", "CItpTcPointCode", "CItpTcLinksetId", "CItpTcNetworkName", "CItpTcAclId", "CItpTcLinkSLC") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") InetPortNumber, InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetPortNumber", "InetAddress", "InetAddressType") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") ObjectIdentity, ModuleIdentity, TimeTicks, Gauge32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Counter32, Counter64, IpAddress, Integer32, iso, Bits, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "ModuleIdentity", "TimeTicks", "Gauge32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Counter32", "Counter64", "IpAddress", "Integer32", "iso", "Bits", "Unsigned32") TextualConvention, RowStatus, DisplayString, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString", "TimeStamp") ciscoGsp2MIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 332)) ciscoGsp2MIB.setRevisions(('2008-07-09 00:00', '2007-12-18 00:00', '2004-05-26 00:00', '2003-08-07 00:00', '2003-03-03 00:00',)) if mibBuilder.loadTexts: ciscoGsp2MIB.setLastUpdated('200807090000Z') if mibBuilder.loadTexts: ciscoGsp2MIB.setOrganization('Cisco Systems, Inc.') ciscoGsp2MIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 0)) ciscoGsp2MIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 1)) ciscoGsp2MIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 2)) cgsp2Events = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1)) cgsp2Qos = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2)) cgsp2LocalPeer = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3)) cgsp2Mtp3Errors = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 4)) cgsp2Operation = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 5)) cgsp2Context = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6)) class Cgsp2TcQosClass(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 7) class Cgsp2EventIndex(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 2147483647) class CItpTcContextId(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 4294967295) class CItpTcContextType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 6)) namedValues = NamedValues(("unknown", 0), ("cs7link", 1), ("asp", 6)) cgsp2EventTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 1), ) if mibBuilder.loadTexts: cgsp2EventTable.setStatus('current') cgsp2EventTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-ITP-GSP-MIB", "cgspInstNetwork"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2EventType")) if mibBuilder.loadTexts: cgsp2EventTableEntry.setStatus('current') cgsp2EventType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("as", 1), ("asp", 2), ("mtp3", 3), ("pc", 4)))) if mibBuilder.loadTexts: cgsp2EventType.setStatus('current') cgsp2EventLoggedEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventLoggedEvents.setStatus('current') cgsp2EventDroppedEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventDroppedEvents.setStatus('current') cgsp2EventMaxEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 1, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cgsp2EventMaxEntries.setStatus('current') cgsp2EventMaxEntriesAllowed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventMaxEntriesAllowed.setStatus('current') cgsp2EventAsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 2), ) if mibBuilder.loadTexts: cgsp2EventAsTable.setStatus('current') cgsp2EventAsTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-ITP-GSP-MIB", "cgspInstNetwork"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2EventAsName"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2EventAsIndex")) if mibBuilder.loadTexts: cgsp2EventAsTableEntry.setStatus('current') cgsp2EventAsName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 2, 1, 1), CItpTcXuaName()) if mibBuilder.loadTexts: cgsp2EventAsName.setStatus('current') cgsp2EventAsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 2, 1, 2), Cgsp2EventIndex()) if mibBuilder.loadTexts: cgsp2EventAsIndex.setStatus('current') cgsp2EventAsText = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 2, 1, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventAsText.setStatus('current') cgsp2EventAsTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 2, 1, 4), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventAsTimestamp.setStatus('current') cgsp2EventAspTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 3), ) if mibBuilder.loadTexts: cgsp2EventAspTable.setStatus('current') cgsp2EventAspTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 3, 1), ).setIndexNames((0, "CISCO-ITP-GSP-MIB", "cgspInstNetwork"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2EventAspName"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2EventAspIndex")) if mibBuilder.loadTexts: cgsp2EventAspTableEntry.setStatus('current') cgsp2EventAspName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 3, 1, 1), CItpTcXuaName()) if mibBuilder.loadTexts: cgsp2EventAspName.setStatus('current') cgsp2EventAspIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 3, 1, 2), Cgsp2EventIndex()) if mibBuilder.loadTexts: cgsp2EventAspIndex.setStatus('current') cgsp2EventAspText = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 3, 1, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventAspText.setStatus('current') cgsp2EventAspTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 3, 1, 4), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventAspTimestamp.setStatus('current') cgsp2EventMtp3Table = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 4), ) if mibBuilder.loadTexts: cgsp2EventMtp3Table.setStatus('current') cgsp2EventMtp3TableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 4, 1), ).setIndexNames((0, "CISCO-ITP-GSP-MIB", "cgspInstNetwork"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2EventMtp3Index")) if mibBuilder.loadTexts: cgsp2EventMtp3TableEntry.setStatus('current') cgsp2EventMtp3Index = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 4, 1, 1), Cgsp2EventIndex()) if mibBuilder.loadTexts: cgsp2EventMtp3Index.setStatus('current') cgsp2EventMtp3Text = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 4, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventMtp3Text.setStatus('current') cgsp2EventMtp3Timestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 4, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventMtp3Timestamp.setStatus('current') cgsp2EventPcTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 5), ) if mibBuilder.loadTexts: cgsp2EventPcTable.setStatus('current') cgsp2EventPcTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 5, 1), ).setIndexNames((0, "CISCO-ITP-GSP-MIB", "cgspInstNetwork"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2EventPc"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2EventPcIndex")) if mibBuilder.loadTexts: cgsp2EventPcTableEntry.setStatus('current') cgsp2EventPc = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 5, 1, 1), CItpTcPointCode()) if mibBuilder.loadTexts: cgsp2EventPc.setStatus('current') cgsp2EventPcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 5, 1, 2), Cgsp2EventIndex()) if mibBuilder.loadTexts: cgsp2EventPcIndex.setStatus('current') cgsp2EventPcText = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 5, 1, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventPcText.setStatus('current') cgsp2EventPcTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 1, 5, 1, 4), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2EventPcTimestamp.setStatus('current') cgsp2QosTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2, 1), ) if mibBuilder.loadTexts: cgsp2QosTable.setStatus('current') cgsp2QosTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-ITP-GSP-MIB", "cgspInstNetwork"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2QosClass")) if mibBuilder.loadTexts: cgsp2QosTableEntry.setStatus('current') cgsp2QosClass = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2, 1, 1, 1), Cgsp2TcQosClass()) if mibBuilder.loadTexts: cgsp2QosClass.setStatus('current') cgsp2QosType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ipPrecedence", 1), ("ipDscp", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2QosType.setStatus('current') cgsp2QosPrecedenceValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2QosPrecedenceValue.setStatus('current') cgsp2QosIpDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 63))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2QosIpDscp.setStatus('current') cgsp2QosAclId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2, 1, 1, 5), CItpTcAclId()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2QosAclId.setStatus('current') cgsp2QosRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 2, 1, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2QosRowStatus.setStatus('current') cgsp2LocalPeerTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 1), ) if mibBuilder.loadTexts: cgsp2LocalPeerTable.setStatus('current') cgsp2LocalPeerTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-ITP-GSP2-MIB", "cgsp2LocalPeerPort")) if mibBuilder.loadTexts: cgsp2LocalPeerTableEntry.setStatus('current') cgsp2LocalPeerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 1, 1, 1), InetPortNumber()) if mibBuilder.loadTexts: cgsp2LocalPeerPort.setStatus('current') cgsp2LocalPeerSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 32767)).clone(-1)).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2LocalPeerSlotNumber.setStatus('current') cgsp2LocalPeerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2LocalPeerRowStatus.setStatus('current') cgsp2LocalPeerProcessorNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2LocalPeerProcessorNumber.setStatus('current') cgsp2LpIpAddrTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 2), ) if mibBuilder.loadTexts: cgsp2LpIpAddrTable.setStatus('current') cgsp2LpIpAddrTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 2, 1), ).setIndexNames((0, "CISCO-ITP-GSP2-MIB", "cgsp2LocalPeerPort"), (0, "CISCO-ITP-GSP2-MIB", "cgsp2LpIpAddressNumber")) if mibBuilder.loadTexts: cgsp2LpIpAddrTableEntry.setStatus('current') cgsp2LpIpAddressNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: cgsp2LpIpAddressNumber.setStatus('current') cgsp2LpIpAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 2, 1, 2), InetAddressType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2LpIpAddressType.setStatus('current') cgsp2LpIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 2, 1, 3), InetAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2LpIpAddress.setStatus('current') cgsp2LpIpAddressRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 3, 2, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgsp2LpIpAddressRowStatus.setStatus('current') cgsp2Mtp3ErrorsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 4, 1), ) if mibBuilder.loadTexts: cgsp2Mtp3ErrorsTable.setStatus('current') cgsp2Mtp3ErrorsTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 4, 1, 1), ).setIndexNames((0, "CISCO-ITP-GSP2-MIB", "cgsp2Mtp3ErrorsType")) if mibBuilder.loadTexts: cgsp2Mtp3ErrorsTableEntry.setStatus('current') cgsp2Mtp3ErrorsType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 4, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: cgsp2Mtp3ErrorsType.setStatus('current') cgsp2Mtp3ErrorsDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 4, 1, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2Mtp3ErrorsDescription.setStatus('current') cgsp2Mtp3ErrorsCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 4, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2Mtp3ErrorsCount.setStatus('current') cgsp2ContextTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1), ) if mibBuilder.loadTexts: cgsp2ContextTable.setStatus('current') cgsp2ContextEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1, 1), ).setIndexNames((0, "CISCO-ITP-GSP2-MIB", "cgsp2ContextIdentifier")) if mibBuilder.loadTexts: cgsp2ContextEntry.setStatus('current') cgsp2ContextIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1, 1, 1), CItpTcContextId()) if mibBuilder.loadTexts: cgsp2ContextIdentifier.setStatus('current') cgsp2ContextType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1, 1, 2), CItpTcContextType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2ContextType.setStatus('current') cgsp2ContextLinksetName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1, 1, 3), CItpTcLinksetId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2ContextLinksetName.setStatus('current') cgsp2ContextSlc = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1, 1, 4), CItpTcLinkSLC()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2ContextSlc.setStatus('current') cgsp2ContextAsName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1, 1, 5), CItpTcXuaName()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2ContextAsName.setStatus('current') cgsp2ContextAspName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1, 1, 6), CItpTcXuaName()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2ContextAspName.setStatus('current') cgsp2ContextNetworkName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 6, 1, 1, 7), CItpTcNetworkName()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2ContextNetworkName.setStatus('current') cgsp2OperMtp3Offload = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("main", 1), ("offload", 2))).clone('main')).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2OperMtp3Offload.setStatus('current') cgsp2OperRedundancy = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 332, 1, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("local", 2), ("distributed", 3))).clone('none')).setMaxAccess("readonly") if mibBuilder.loadTexts: cgsp2OperRedundancy.setStatus('current') ciscoGsp2MIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 1)) ciscoGsp2MIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 2)) ciscoGsp2MIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 1, 1)).setObjects(("CISCO-ITP-GSP2-MIB", "ciscoGsp2EventsGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2QosGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2LocalPeerGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2MIBCompliance = ciscoGsp2MIBCompliance.setStatus('deprecated') ciscoGsp2MIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 1, 2)).setObjects(("CISCO-ITP-GSP2-MIB", "ciscoGsp2EventsGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2QosGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2LocalPeerGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2Mtp3ErrorsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2MIBComplianceRev1 = ciscoGsp2MIBComplianceRev1.setStatus('deprecated') ciscoGsp2MIBComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 1, 3)).setObjects(("CISCO-ITP-GSP2-MIB", "ciscoGsp2EventsGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2QosGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2LocalPeerGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2Mtp3ErrorsGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2OperationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2MIBComplianceRev2 = ciscoGsp2MIBComplianceRev2.setStatus('deprecated') ciscoGsp2MIBComplianceRev3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 1, 4)).setObjects(("CISCO-ITP-GSP2-MIB", "ciscoGsp2EventsGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2QosGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2Mtp3ErrorsGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2OperationGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2LocalPeerGroupSup1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2MIBComplianceRev3 = ciscoGsp2MIBComplianceRev3.setStatus('deprecated') ciscoGsp2MIBComplianceRev4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 1, 5)).setObjects(("CISCO-ITP-GSP2-MIB", "ciscoGsp2EventsGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2QosGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2LocalPeerGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2Mtp3ErrorsGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2OperationGroup"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2LocalPeerGroupSup1"), ("CISCO-ITP-GSP2-MIB", "ciscoGsp2ContextGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2MIBComplianceRev4 = ciscoGsp2MIBComplianceRev4.setStatus('current') ciscoGsp2EventsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 2, 1)).setObjects(("CISCO-ITP-GSP2-MIB", "cgsp2EventLoggedEvents"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventDroppedEvents"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventMaxEntries"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventMaxEntriesAllowed"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventMtp3Text"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventMtp3Timestamp"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventAsText"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventAsTimestamp"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventAspText"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventAspTimestamp"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventPcText"), ("CISCO-ITP-GSP2-MIB", "cgsp2EventPcTimestamp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2EventsGroup = ciscoGsp2EventsGroup.setStatus('current') ciscoGsp2QosGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 2, 2)).setObjects(("CISCO-ITP-GSP2-MIB", "cgsp2QosType"), ("CISCO-ITP-GSP2-MIB", "cgsp2QosPrecedenceValue"), ("CISCO-ITP-GSP2-MIB", "cgsp2QosIpDscp"), ("CISCO-ITP-GSP2-MIB", "cgsp2QosAclId"), ("CISCO-ITP-GSP2-MIB", "cgsp2QosRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2QosGroup = ciscoGsp2QosGroup.setStatus('current') ciscoGsp2LocalPeerGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 2, 3)).setObjects(("CISCO-ITP-GSP2-MIB", "cgsp2LocalPeerSlotNumber"), ("CISCO-ITP-GSP2-MIB", "cgsp2LocalPeerRowStatus"), ("CISCO-ITP-GSP2-MIB", "cgsp2LpIpAddressType"), ("CISCO-ITP-GSP2-MIB", "cgsp2LpIpAddress"), ("CISCO-ITP-GSP2-MIB", "cgsp2LpIpAddressRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2LocalPeerGroup = ciscoGsp2LocalPeerGroup.setStatus('current') ciscoGsp2Mtp3ErrorsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 2, 4)).setObjects(("CISCO-ITP-GSP2-MIB", "cgsp2Mtp3ErrorsDescription"), ("CISCO-ITP-GSP2-MIB", "cgsp2Mtp3ErrorsCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2Mtp3ErrorsGroup = ciscoGsp2Mtp3ErrorsGroup.setStatus('current') ciscoGsp2OperationGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 2, 5)).setObjects(("CISCO-ITP-GSP2-MIB", "cgsp2OperMtp3Offload"), ("CISCO-ITP-GSP2-MIB", "cgsp2OperRedundancy")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2OperationGroup = ciscoGsp2OperationGroup.setStatus('current') ciscoGsp2LocalPeerGroupSup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 2, 6)).setObjects(("CISCO-ITP-GSP2-MIB", "cgsp2LocalPeerProcessorNumber")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2LocalPeerGroupSup1 = ciscoGsp2LocalPeerGroupSup1.setStatus('current') ciscoGsp2ContextGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 332, 2, 2, 7)).setObjects(("CISCO-ITP-GSP2-MIB", "cgsp2ContextType"), ("CISCO-ITP-GSP2-MIB", "cgsp2ContextLinksetName"), ("CISCO-ITP-GSP2-MIB", "cgsp2ContextSlc"), ("CISCO-ITP-GSP2-MIB", "cgsp2ContextAsName"), ("CISCO-ITP-GSP2-MIB", "cgsp2ContextAspName"), ("CISCO-ITP-GSP2-MIB", "cgsp2ContextNetworkName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoGsp2ContextGroup = ciscoGsp2ContextGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-ITP-GSP2-MIB", cgsp2QosIpDscp=cgsp2QosIpDscp, cgsp2Mtp3Errors=cgsp2Mtp3Errors, cgsp2EventType=cgsp2EventType, cgsp2ContextEntry=cgsp2ContextEntry, ciscoGsp2MIBComplianceRev1=ciscoGsp2MIBComplianceRev1, cgsp2EventAsTableEntry=cgsp2EventAsTableEntry, cgsp2EventAspTableEntry=cgsp2EventAspTableEntry, cgsp2QosType=cgsp2QosType, ciscoGsp2MIBCompliance=ciscoGsp2MIBCompliance, cgsp2EventAsTimestamp=cgsp2EventAsTimestamp, cgsp2LocalPeerTable=cgsp2LocalPeerTable, cgsp2Mtp3ErrorsCount=cgsp2Mtp3ErrorsCount, cgsp2QosAclId=cgsp2QosAclId, cgsp2ContextNetworkName=cgsp2ContextNetworkName, PYSNMP_MODULE_ID=ciscoGsp2MIB, cgsp2QosTable=cgsp2QosTable, cgsp2QosPrecedenceValue=cgsp2QosPrecedenceValue, cgsp2QosClass=cgsp2QosClass, cgsp2EventLoggedEvents=cgsp2EventLoggedEvents, cgsp2EventPcTableEntry=cgsp2EventPcTableEntry, cgsp2EventMtp3Table=cgsp2EventMtp3Table, cgsp2ContextSlc=cgsp2ContextSlc, cgsp2Operation=cgsp2Operation, cgsp2EventMaxEntriesAllowed=cgsp2EventMaxEntriesAllowed, cgsp2EventPcText=cgsp2EventPcText, cgsp2QosRowStatus=cgsp2QosRowStatus, cgsp2LocalPeerRowStatus=cgsp2LocalPeerRowStatus, ciscoGsp2MIBNotifs=ciscoGsp2MIBNotifs, cgsp2Mtp3ErrorsDescription=cgsp2Mtp3ErrorsDescription, cgsp2LpIpAddress=cgsp2LpIpAddress, cgsp2EventAspName=cgsp2EventAspName, cgsp2Mtp3ErrorsTable=cgsp2Mtp3ErrorsTable, cgsp2OperMtp3Offload=cgsp2OperMtp3Offload, cgsp2Mtp3ErrorsType=cgsp2Mtp3ErrorsType, ciscoGsp2QosGroup=ciscoGsp2QosGroup, cgsp2LpIpAddrTable=cgsp2LpIpAddrTable, cgsp2EventAsTable=cgsp2EventAsTable, cgsp2EventMtp3Text=cgsp2EventMtp3Text, ciscoGsp2MIBComplianceRev2=ciscoGsp2MIBComplianceRev2, cgsp2LocalPeerPort=cgsp2LocalPeerPort, cgsp2LocalPeerSlotNumber=cgsp2LocalPeerSlotNumber, ciscoGsp2MIBObjects=ciscoGsp2MIBObjects, cgsp2Context=cgsp2Context, cgsp2EventMaxEntries=cgsp2EventMaxEntries, ciscoGsp2LocalPeerGroup=ciscoGsp2LocalPeerGroup, cgsp2Qos=cgsp2Qos, ciscoGsp2EventsGroup=ciscoGsp2EventsGroup, ciscoGsp2MIBConform=ciscoGsp2MIBConform, cgsp2QosTableEntry=cgsp2QosTableEntry, cgsp2LpIpAddressNumber=cgsp2LpIpAddressNumber, cgsp2ContextLinksetName=cgsp2ContextLinksetName, cgsp2LpIpAddressType=cgsp2LpIpAddressType, cgsp2ContextIdentifier=cgsp2ContextIdentifier, cgsp2EventAspTimestamp=cgsp2EventAspTimestamp, cgsp2OperRedundancy=cgsp2OperRedundancy, cgsp2EventAsName=cgsp2EventAsName, ciscoGsp2ContextGroup=ciscoGsp2ContextGroup, ciscoGsp2MIBCompliances=ciscoGsp2MIBCompliances, cgsp2EventAspText=cgsp2EventAspText, ciscoGsp2LocalPeerGroupSup1=ciscoGsp2LocalPeerGroupSup1, cgsp2EventTableEntry=cgsp2EventTableEntry, cgsp2Mtp3ErrorsTableEntry=cgsp2Mtp3ErrorsTableEntry, CItpTcContextType=CItpTcContextType, cgsp2EventAspIndex=cgsp2EventAspIndex, cgsp2LpIpAddressRowStatus=cgsp2LpIpAddressRowStatus, cgsp2ContextType=cgsp2ContextType, cgsp2EventPcTimestamp=cgsp2EventPcTimestamp, cgsp2EventPc=cgsp2EventPc, Cgsp2EventIndex=Cgsp2EventIndex, cgsp2EventMtp3Timestamp=cgsp2EventMtp3Timestamp, cgsp2EventPcTable=cgsp2EventPcTable, cgsp2EventAsText=cgsp2EventAsText, ciscoGsp2MIBGroups=ciscoGsp2MIBGroups, cgsp2EventAspTable=cgsp2EventAspTable, cgsp2EventDroppedEvents=cgsp2EventDroppedEvents, ciscoGsp2MIBComplianceRev3=ciscoGsp2MIBComplianceRev3, cgsp2EventTable=cgsp2EventTable, cgsp2ContextAspName=cgsp2ContextAspName, CItpTcContextId=CItpTcContextId, cgsp2EventAsIndex=cgsp2EventAsIndex, cgsp2EventMtp3Index=cgsp2EventMtp3Index, ciscoGsp2OperationGroup=ciscoGsp2OperationGroup, cgsp2LpIpAddrTableEntry=cgsp2LpIpAddrTableEntry, cgsp2LocalPeerProcessorNumber=cgsp2LocalPeerProcessorNumber, ciscoGsp2MIB=ciscoGsp2MIB, cgsp2ContextAsName=cgsp2ContextAsName, ciscoGsp2Mtp3ErrorsGroup=ciscoGsp2Mtp3ErrorsGroup, cgsp2EventPcIndex=cgsp2EventPcIndex, cgsp2EventMtp3TableEntry=cgsp2EventMtp3TableEntry, cgsp2ContextTable=cgsp2ContextTable, Cgsp2TcQosClass=Cgsp2TcQosClass, cgsp2LocalPeerTableEntry=cgsp2LocalPeerTableEntry, cgsp2Events=cgsp2Events, ciscoGsp2MIBComplianceRev4=ciscoGsp2MIBComplianceRev4, cgsp2LocalPeer=cgsp2LocalPeer)
""" datos de entrada presupuesto-->p-->float datos de salida presupuesto ginecologia-->pg-->float presupuesto traumatologia-->pt-->float presupuesto pediatria-->pp-->foat """ #entradas p=float(input("digite el presupuesto total:")) #caja negra pg=p*0.4 pt=p*0.3 pp=p*0.3 #salidas print("el presupuesto de ginecologia:",pg) print("el presupuesto de traumatologia:",pt) print("el presupuesto de pediatria:",pp)
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 26 15:46:21 2020 @author: bezbakri """ """ |-------------------------------------------| | Problem 6: Write a program to find the | | factorial of a number | |-------------------------------------------| | Approach: | | First, we take in a number using the | | input() function. Then, we check if the | | number is a positive integer or not. Is it| | is, then we use a for loop to keep | | multiplying all integers upto that number | |-------------------------------------------| """ num = int(input("Enter a number: ")) factorial_num = 1 if num == 0: print(f"Factorial is {factorial_num}") elif num < 0: print("No factorials for negative numbers") else: for i in range (1, num+1): factorial_num *=i print(f"Factorial is {factorial_num}")
entries = [] def parse(line): return list(map(lambda x: tuple(x.strip().split(' ')), line.strip().split('|'))) with open("input") as file: entries = list(map(parse, file)) count = 0 total = 0 for segments, outputs in entries: dict = {} for segment in segments: length = len(segment) if length == 2: dict[1] = segment elif length == 4: dict[4] = segment elif length == 3: dict[7] = segment elif length == 7: dict[8] = segment num = '' for output in outputs: length = len(output) if length == 2: num += '1' count += 1 elif length == 4: num += '4' count += 1 elif length == 3: num += '7' count += 1 elif length == 7: num += '8' count += 1 elif length == 5: if len(set(output).intersection(dict[1])) == 2: num += '3' elif len(set(output).intersection(dict[4])) == 2: num += '2' else: num += '5' elif length == 6: if len(set(output).intersection(dict[1])) == 1: num += '6' elif len(set(output).intersection(dict[4])) == 4: num += '9' else: num += '0' total += int(num) print('part 1') print(count) print("part 2") print(total)
#! /usr/bin/env python2.7 """ * Copyright (c) 2016 by Cisco Systems, Inc. * All rights reserved. Pathman init file Niklas Montin, 20141209, [email protected] odl_ip - ip address of odl controller odl_port - port for odl rest on controller log_file - file to write log to - level INFO default log_size - max size of logfile before it rotates log_count - number of backup version of the log log_level - controls the the logging depth, chnage to 'DEBUG' for more detail odl_user - username for odl controller restconf access odl_password - password for odl controller restconf access """ #odl_ip = '127.0.0.1' odl_ip = '<%= props.odl_ip %>' odl_port = '<%= props.odl_port %>' log_file = '/tmp/pathman.log' log_size = 2000000 log_count = 3 log_level = 'INFO' odl_user = '<%= props.odl_user %>' odl_password = '<%= props.odl_password %>'
# # Exercício Python 084: Faça um programa que leia nome e peso de várias pessoas,guardando tudo em uma lista. No final, mostre: # A) Quantas pessoas foram cadastradas. # B) Uma listagem com as pessoas mais pesadas. # C) Uma listagem com as pessoas mais leves. dado = [] registro = [] totalpesado = 0 totalleve = 0 for i in range(0,5): dado.append(str(input('Nome: '))) dado.append(int(input('Peso: '))) registro.append(dado[:]) dado.clear() for i in registro: if i[1] >= 90: print(f'{i[0]} é pesado e possui {i[1]} kgs') totalpesado+=1 elif i[1] < 90: print(f'{i[0]} é leve e possui {i[1]} kgs ') totalleve+=1 print(f'Temos um total de {totalpesado} pessoas pesadas e um total de {totalleve} de pessoas leves.')
# Paso 1: Código para introducir valores en la lista lista = [] contenido = 0 num = 0 while contenido != "": contenido = input("Introduce palabras en la lista, de lo contrario pulsa Enter: ") if contenido != "": lista.append(str(contenido)) print (lista[:]) #paso 2: crear una funcion para el menu def PedirLetra(): cierto=False letra=0 while(not cierto): try: letra = str(input("Introduce una letra: ")) cierto=True except ValueError: print("Error, introduce una letra del menu, por favor: ") return letra salir = False opcion = 0 #Paso 3: introducir un menu para el usuario while not salir: print("Elige una de estas opciones:") print("[C] Contar") print("[M] Modificar") print("[E] Eliminar") print("[S] Mostrar") print("[T] Terminar") opcion = PedirLetra() if opcion == 'c': contar=str(input("Introduce una palabra que quieres buscar: ")) num= lista.count(contar) print("la palabra " ,contar, " aparece" ,num, " veces") elif opcion == 'm': print ("modificar") elif opcion == 'e': print ("eliminar") elif opcion == 's': print (lista[:]) elif opcion == 't': #print ("terminar") salir = True else: print ("Introduce solo las letras que estan en el menu") print ("Fin del porgrama :)")
a = [1, 2, 3, 4, 5] print(a) a.clear() print(a)
#!/usr/bin/python n = int(input()) for i in range(0, n): row = input().strip() for j in range(0, n): if row[j] == 'm': robot_x = j robot_y = i if row[j] == 'p': princess_x = j princess_y = i for i in range(0, abs(robot_x - princess_x)): if princess_x > robot_x: print("RIGHT") else: print("LEFT") for i in range(0, abs(robot_y - princess_y)): if princess_y > robot_y: print("DOWN") else: print("UP")
class Solution: def reverseVowels(self, s: str) -> str: vows = [ch for ch in s[::-1] if ch.lower() in "aeiou"] chars = list(s) x = 0 for i, ch in enumerate(chars): if ch.lower() in "aeiou": chars[i] = vows[x] x += 1 return "".join(chars) if __name__ == '__main__': s = input("Input: ") print(f"Output: {Solution().reverseVowels(s)}")
## 合并两个有序链表 # 迭代法 时间:O(n) 空间:O(1) class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: preHead = ListNode(-1) prev = preHead while l1 and l2: if l1.val < l2.val: prev.next = l1 l1 = l1.next else: prev.next = l2 l2 = l2.next prev = prev.next prev.next = l1 if l1 is not None else l2 return preHead.next
def defaultParamSet(): class P(): def __init__(self): # MAP-Elites Parameters self.nChildren = 2**7 self.mutSigma = 0.1 self.nGens = 2**8 # Infill Parameters self.nInitialSamples = 50 self.nAdditionalSamples = 10 self.nTotalSamples = 500 self.trainingMod = 2 # Display Parameters self.display_figs = False self.display_gifs = False self.display_illu = False self.display_illuMod = self.nGens # Data Gathering Parameters self.data_outSave = True self.data_outMod = 50 self.data_mapEval = False self.data_mapEvalMod = self.nTotalSamples self.data_outPath = '' return P()
valor = float(input("Qual o valor do produto?")) print(" ") print(''' -=-=-=-=-=-= FORMAS DE PAGAMENTO =-=-=-=-=-=- 1 - À vista no dinheiro/cheque: desconto 10% 2 - À vista no cartão: desconto 5% 3 - Em até 2x no cartão: preço valor_normal 4 - 3 x ou mais no cartão: juros 20%''') print("-"*45) print(" ") condicao_pagamento = int(input("Qual a condição de pagamento?")) if condicao_pagamento == 1: total = valor - (valor * 0.10) print("O valor total deu {} reais.".format(total)) elif condicao_pagamento == 2: total = valor - (valor * 0.05) print("O valor total deu {} reais.".format(total)) elif condicao_pagamento == 3: total = valor parcelas = total / 2 print("Serão 2 prestações no valor de {} reais.".format(parcelas)) print("O valor total deu {} reais.".format(total)) elif condicao_pagamento == 4: total = valor + (valor * 0.20) totparc = int(input("Quantas parcelas? ")) parcelas = total / totparc print("Sua compra será parcelada em {}X de R${:.2f} reais, com juros de 20%".format(totparc, parcelas )) print("O valor total no final dará, R${} reais.".format(total)) else: print("Por favor escolha uma das opções disponiveis")
def LCS_solution(X, Y, L): """Return the longest substring of X and Y, given LCS table L""" solution = [] j,k = lne(X), len(Y) while L[j][k] > 0: # common characters remain if X[j-1] == Y[k-1]: solution.append(X[j-1]) j -= 1 k -= 1 elif L[j-1][k] >= l[j][k-1]: j -= 1 else: k -= 1 return "".join(reversed(solution)) # return left-to-right version
class JSIError(Exception): """JSIError wraps the message in html comments to be placed safely into the webpage. """ def __init__(self, message, data={}): # Wrap the message in an html comment. message = "<!-- [JSInclude Error] %s %s -->" % ( message, data.items() ) Exception.__init__(self, message)
def fatorial(n): f = 1 for i in range(n, 0, -1): f *= i return f def dobro(n): return n*2 def triplo(n): return n*3
class Solution: # @return a list of integers def getRow(self, rowIndex): tri = [1] for i in range(rowIndex): for j in range(len(tri) - 2, -1, -1): tri[j + 1] = tri[j] + tri[j + 1] tri.append(1) return tri
# # PySNMP MIB module WWP-LEOS-LLDP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WWP-LEOS-LLDP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:31:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint") AddressFamilyNumbers, = mibBuilder.importSymbols("IANA-ADDRESS-FAMILY-NUMBERS-MIB", "AddressFamilyNumbers") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") Integer32, TimeTicks, MibIdentifier, ModuleIdentity, Counter64, ObjectIdentity, Unsigned32, Gauge32, IpAddress, Bits, Counter32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "MibIdentifier", "ModuleIdentity", "Counter64", "ObjectIdentity", "Unsigned32", "Gauge32", "IpAddress", "Bits", "Counter32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso") DisplayString, TimeStamp, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "TextualConvention", "TruthValue") wwpModules, wwpModulesLeos = mibBuilder.importSymbols("WWP-SMI", "wwpModules", "wwpModulesLeos") wwpLeosLldpMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26)) wwpLeosLldpMIB.setRevisions(('2004-04-18 00:00', '2003-04-23 00:00',)) if mibBuilder.loadTexts: wwpLeosLldpMIB.setLastUpdated('200404180000Z') if mibBuilder.loadTexts: wwpLeosLldpMIB.setOrganization('IEEE 802.1AB Workgroup') wwpLeosLldpMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1)) wwpLeosLldpConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1)) wwpLeosLldpStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2)) wwpLeosLldpLocalSystemData = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3)) wwpLeosLldpRemoteSystemsData = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4)) wwpLeosLldpExtentions = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 5)) wwpLeosLldpGlobalAtts = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 6)) wwpLeosLldpNotifMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 3)) wwpLeosLldpNotifMIBNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 3, 0)) class TimeFilter(TextualConvention, TimeTicks): status = 'deprecated' class SnmpAdminString(TextualConvention, OctetString): status = 'deprecated' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class WwpLeosLldpChassisIdType(TextualConvention, Integer32): status = 'deprecated' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("entPhysicalAlias", 1), ("ifAlias", 2), ("portEntPhysicalAlias", 3), ("backplaneEntPhysicalAlias", 4), ("macAddress", 5), ("networkAddress", 6), ("local", 7)) class WwpLeosLldpChassisId(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 255) class WwpLeosLldpPortIdType(TextualConvention, Integer32): status = 'deprecated' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("ifAlias", 1), ("portEntPhysicalAlias", 2), ("backplaneEntPhysicalAlias", 3), ("macAddress", 4), ("networkAddress", 5), ("local", 6)) class WwpLeosLldpPortId(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 255) class WwpLeosLldpManAddrIfSubtype(TextualConvention, Integer32): status = 'deprecated' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("unknown", 1), ("ifIndex", 2), ("systemPortNumber", 3)) class WwpLeosLldpManAddress(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 31) class WwpLeosLldpSystemCapabilitiesMap(TextualConvention, Bits): status = 'deprecated' namedValues = NamedValues(("repeater", 0), ("bridge", 1), ("accessPoint", 2), ("router", 3), ("telephone", 4), ("wirelessStation", 5), ("stationOnly", 6)) class WwpLeosLldpPortNumber(TextualConvention, Integer32): status = 'deprecated' displayHint = 'd' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 1024) class WwpLeosLldpPortList(TextualConvention, OctetString): reference = 'description is taken from RFC 2674, Section 5' status = 'deprecated' wwpLeosLldpMessageTxInterval = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 32768)).clone(30)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpMessageTxInterval.setStatus('deprecated') wwpLeosLldpMessageTxHoldMultiplier = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 10)).clone(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpMessageTxHoldMultiplier.setStatus('deprecated') wwpLeosLldpReinitDelay = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(1)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpReinitDelay.setStatus('deprecated') wwpLeosLldpTxDelay = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8192)).clone(8)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpTxDelay.setStatus('deprecated') wwpLeosLldpPortConfigTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 5), ) if mibBuilder.loadTexts: wwpLeosLldpPortConfigTable.setStatus('deprecated') wwpLeosLldpPortConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 5, 1), ).setIndexNames((0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpPortConfigPortNum")) if mibBuilder.loadTexts: wwpLeosLldpPortConfigEntry.setStatus('deprecated') wwpLeosLldpPortConfigPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 5, 1, 1), WwpLeosLldpPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: wwpLeosLldpPortConfigPortNum.setStatus('deprecated') wwpLeosLldpPortConfigAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("txOnly", 1), ("rxOnly", 2), ("txAndRx", 3), ("disabled", 4))).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpPortConfigAdminStatus.setStatus('deprecated') wwpLeosLldpPortConfigTLVsTxEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 5, 1, 3), Bits().clone(namedValues=NamedValues(("portDesc", 4), ("sysName", 5), ("sysDesc", 6), ("sysCap", 7))).clone(namedValues=NamedValues(("portDesc", 4), ("sysName", 5), ("sysDesc", 6), ("sysCap", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpPortConfigTLVsTxEnable.setStatus('deprecated') wwpLeosLldpPortConfigStatsClear = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 5, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpPortConfigStatsClear.setStatus('current') wwpLeosLldpPortConfigOperPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 5, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpPortConfigOperPortSpeed.setStatus('current') wwpLeosLldpPortConfigReqPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 5, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpPortConfigReqPortSpeed.setStatus('current') wwpLeosLldpConfigManAddrTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 6), ) if mibBuilder.loadTexts: wwpLeosLldpConfigManAddrTable.setStatus('deprecated') wwpLeosLldpManAddrPortsTxEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 6, 1, 1), WwpLeosLldpPortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpManAddrPortsTxEnable.setStatus('deprecated') wwpLeosLldpStatsTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1), ) if mibBuilder.loadTexts: wwpLeosLldpStatsTable.setStatus('deprecated') wwpLeosLldpStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1), ).setIndexNames((0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsPortNum")) if mibBuilder.loadTexts: wwpLeosLldpStatsEntry.setStatus('deprecated') wwpLeosLldpStatsPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 1), WwpLeosLldpPortNumber()) if mibBuilder.loadTexts: wwpLeosLldpStatsPortNum.setStatus('deprecated') wwpLeosLldpStatsFramesDiscardedTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpStatsFramesDiscardedTotal.setStatus('deprecated') wwpLeosLldpStatsFramesInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpStatsFramesInErrors.setStatus('deprecated') wwpLeosLldpStatsFramesInTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpStatsFramesInTotal.setStatus('deprecated') wwpLeosLldpStatsFramesOutTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpStatsFramesOutTotal.setStatus('deprecated') wwpLeosLldpStatsTLVsInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpStatsTLVsInErrors.setStatus('deprecated') wwpLeosLldpStatsTLVsDiscardedTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpStatsTLVsDiscardedTotal.setStatus('deprecated') wwpLeosLldpStatsTLVsUnrecognizedTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpStatsTLVsUnrecognizedTotal.setStatus('deprecated') wwpLeosLldpCounterDiscontinuityTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 2, 1, 1, 9), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpCounterDiscontinuityTime.setStatus('deprecated') wwpLeosLldpLocChassisType = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 1), WwpLeosLldpChassisIdType()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocChassisType.setStatus('deprecated') wwpLeosLldpLocChassisId = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 2), WwpLeosLldpChassisId()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocChassisId.setStatus('deprecated') wwpLeosLldpLocSysName = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocSysName.setStatus('deprecated') wwpLeosLldpLocSysDesc = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocSysDesc.setStatus('deprecated') wwpLeosLldpLocSysCapSupported = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 5), WwpLeosLldpSystemCapabilitiesMap()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocSysCapSupported.setStatus('deprecated') wwpLeosLldpLocSysCapEnabled = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 6), WwpLeosLldpSystemCapabilitiesMap()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocSysCapEnabled.setStatus('deprecated') wwpLeosLldpLocPortTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 7), ) if mibBuilder.loadTexts: wwpLeosLldpLocPortTable.setStatus('deprecated') wwpLeosLldpLocPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 7, 1), ).setIndexNames((0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocPortNum")) if mibBuilder.loadTexts: wwpLeosLldpLocPortEntry.setStatus('deprecated') wwpLeosLldpLocPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 7, 1, 1), WwpLeosLldpPortNumber()) if mibBuilder.loadTexts: wwpLeosLldpLocPortNum.setStatus('deprecated') wwpLeosLldpLocPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 7, 1, 2), WwpLeosLldpPortIdType()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocPortType.setStatus('deprecated') wwpLeosLldpLocPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 7, 1, 3), WwpLeosLldpPortId()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocPortId.setStatus('deprecated') wwpLeosLldpLocPortDesc = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 7, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocPortDesc.setStatus('deprecated') wwpLeosLldpLocManAddrTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 8), ) if mibBuilder.loadTexts: wwpLeosLldpLocManAddrTable.setStatus('deprecated') wwpLeosLldpLocManAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 8, 1), ).setIndexNames((0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocManAddrType"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocManAddr")) if mibBuilder.loadTexts: wwpLeosLldpLocManAddrEntry.setStatus('deprecated') wwpLeosLldpConfigManAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 1, 6, 1), ) wwpLeosLldpLocManAddrEntry.registerAugmentions(("WWP-LEOS-LLDP-MIB", "wwpLeosLldpConfigManAddrEntry")) wwpLeosLldpConfigManAddrEntry.setIndexNames(*wwpLeosLldpLocManAddrEntry.getIndexNames()) if mibBuilder.loadTexts: wwpLeosLldpConfigManAddrEntry.setStatus('deprecated') wwpLeosLldpLocManAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 8, 1, 1), AddressFamilyNumbers()) if mibBuilder.loadTexts: wwpLeosLldpLocManAddrType.setStatus('deprecated') wwpLeosLldpLocManAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 8, 1, 2), WwpLeosLldpManAddress()) if mibBuilder.loadTexts: wwpLeosLldpLocManAddr.setStatus('deprecated') wwpLeosLldpLocManAddrLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 8, 1, 3), Integer32()) if mibBuilder.loadTexts: wwpLeosLldpLocManAddrLen.setStatus('deprecated') wwpLeosLldpLocManAddrIfSubtype = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 8, 1, 4), WwpLeosLldpManAddrIfSubtype()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocManAddrIfSubtype.setStatus('deprecated') wwpLeosLldpLocManAddrIfId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 8, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocManAddrIfId.setStatus('deprecated') wwpLeosLldpLocManAddrOID = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 3, 8, 1, 6), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpLocManAddrOID.setStatus('deprecated') wwpLeosLldpRemTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1), ) if mibBuilder.loadTexts: wwpLeosLldpRemTable.setStatus('deprecated') wwpLeosLldpRemEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1), ).setIndexNames((0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemTimeMark"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemLocalPortNum"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemIndex")) if mibBuilder.loadTexts: wwpLeosLldpRemEntry.setStatus('deprecated') wwpLeosLldpRemTimeMark = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 1), TimeFilter()) if mibBuilder.loadTexts: wwpLeosLldpRemTimeMark.setStatus('deprecated') wwpLeosLldpRemLocalPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 2), WwpLeosLldpPortNumber()) if mibBuilder.loadTexts: wwpLeosLldpRemLocalPortNum.setStatus('deprecated') wwpLeosLldpRemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: wwpLeosLldpRemIndex.setStatus('deprecated') wwpLeosLldpRemRemoteChassisType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 4), WwpLeosLldpChassisIdType()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemRemoteChassisType.setStatus('deprecated') wwpLeosLldpRemRemoteChassis = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 5), WwpLeosLldpChassisId()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemRemoteChassis.setStatus('deprecated') wwpLeosLldpRemRemotePortType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 6), WwpLeosLldpPortIdType()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemRemotePortType.setStatus('deprecated') wwpLeosLldpRemRemotePort = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 7), WwpLeosLldpPortId()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemRemotePort.setStatus('deprecated') wwpLeosLldpRemPortDesc = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 8), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemPortDesc.setStatus('deprecated') wwpLeosLldpRemSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 9), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemSysName.setStatus('deprecated') wwpLeosLldpRemSysDesc = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 10), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemSysDesc.setStatus('deprecated') wwpLeosLldpRemSysCapSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 11), WwpLeosLldpSystemCapabilitiesMap()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemSysCapSupported.setStatus('deprecated') wwpLeosLldpRemSysCapEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 1, 1, 12), WwpLeosLldpSystemCapabilitiesMap()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemSysCapEnabled.setStatus('deprecated') wwpLeosLldpRemManAddrTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 2), ) if mibBuilder.loadTexts: wwpLeosLldpRemManAddrTable.setStatus('deprecated') wwpLeosLldpRemManAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 2, 1), ).setIndexNames((0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemTimeMark"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemLocalPortNum"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemIndex"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemManAddrType"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemManAddr")) if mibBuilder.loadTexts: wwpLeosLldpRemManAddrEntry.setStatus('deprecated') wwpLeosLldpRemManAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 2, 1, 1), AddressFamilyNumbers()) if mibBuilder.loadTexts: wwpLeosLldpRemManAddrType.setStatus('deprecated') wwpLeosLldpRemManAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 2, 1, 2), WwpLeosLldpManAddress()) if mibBuilder.loadTexts: wwpLeosLldpRemManAddr.setStatus('deprecated') wwpLeosLldpRemManAddrIfSubtype = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 2, 1, 3), WwpLeosLldpManAddrIfSubtype()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemManAddrIfSubtype.setStatus('deprecated') wwpLeosLldpRemManAddrIfId = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemManAddrIfId.setStatus('deprecated') wwpLeosLldpRemManAddrOID = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 2, 1, 5), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemManAddrOID.setStatus('deprecated') wwpLeosLldpRemUnknownTLVTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 3), ) if mibBuilder.loadTexts: wwpLeosLldpRemUnknownTLVTable.setStatus('deprecated') wwpLeosLldpRemUnknownTLVEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 3, 1), ).setIndexNames((0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemTimeMark"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemLocalPortNum"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemIndex")) if mibBuilder.loadTexts: wwpLeosLldpRemUnknownTLVEntry.setStatus('deprecated') wwpLeosLldpRemUnknownTLVType = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(9, 126))) if mibBuilder.loadTexts: wwpLeosLldpRemUnknownTLVType.setStatus('deprecated') wwpLeosLldpRemUnknownTLVInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 511))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemUnknownTLVInfo.setStatus('deprecated') wwpLeosLldpRemOrgDefInfoTable = MibTable((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 4), ) if mibBuilder.loadTexts: wwpLeosLldpRemOrgDefInfoTable.setStatus('deprecated') wwpLeosLldpRemOrgDefInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 4, 1), ).setIndexNames((0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemTimeMark"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemLocalPortNum"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemIndex"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemOrgDefInfoOUI"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemOrgDefInfoSubtype"), (0, "WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemOrgDefInfoIndex")) if mibBuilder.loadTexts: wwpLeosLldpRemOrgDefInfoEntry.setStatus('deprecated') wwpLeosLldpRemOrgDefInfoOUI = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 4, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)) if mibBuilder.loadTexts: wwpLeosLldpRemOrgDefInfoOUI.setStatus('deprecated') wwpLeosLldpRemOrgDefInfoSubtype = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))) if mibBuilder.loadTexts: wwpLeosLldpRemOrgDefInfoSubtype.setStatus('deprecated') wwpLeosLldpRemOrgDefInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: wwpLeosLldpRemOrgDefInfoIndex.setStatus('deprecated') wwpLeosLldpRemOrgDefInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 4, 4, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 507))).setMaxAccess("readonly") if mibBuilder.loadTexts: wwpLeosLldpRemOrgDefInfo.setStatus('deprecated') wwpLeosLldpStatsClear = MibScalar((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 1, 6, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wwpLeosLldpStatsClear.setStatus('current') wwpLeosLldpConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2)) wwpLeosLldpCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2, 1)) wwpLeosLldpGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2, 2)) wwpLeosLldpCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2, 1, 1)).setObjects(("WWP-LEOS-LLDP-MIB", "wwpLeosLldpConfigGroup"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsGroup"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocSysGroup"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemSysGroup"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpOptLocSysGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): wwpLeosLldpCompliance = wwpLeosLldpCompliance.setStatus('deprecated') wwpLeosLldpConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2, 2, 1)).setObjects(("WWP-LEOS-LLDP-MIB", "wwpLeosLldpMessageTxInterval"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpMessageTxHoldMultiplier"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpReinitDelay"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpTxDelay"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpPortConfigAdminStatus"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpPortConfigTLVsTxEnable"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpManAddrPortsTxEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): wwpLeosLldpConfigGroup = wwpLeosLldpConfigGroup.setStatus('deprecated') wwpLeosLldpStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2, 2, 2)).setObjects(("WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsFramesDiscardedTotal"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsFramesInErrors"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsFramesInTotal"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsFramesOutTotal"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsTLVsInErrors"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsTLVsDiscardedTotal"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpStatsTLVsUnrecognizedTotal"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpCounterDiscontinuityTime")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): wwpLeosLldpStatsGroup = wwpLeosLldpStatsGroup.setStatus('deprecated') wwpLeosLldpLocSysGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2, 2, 3)).setObjects(("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocChassisType"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocChassisId"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocPortType"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocPortId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): wwpLeosLldpLocSysGroup = wwpLeosLldpLocSysGroup.setStatus('deprecated') wwpLeosLldpOptLocSysGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2, 2, 4)).setObjects(("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocPortDesc"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocSysDesc"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocSysName"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocSysCapSupported"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocSysCapEnabled"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocManAddrIfSubtype"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocManAddrIfId"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpLocManAddrOID")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): wwpLeosLldpOptLocSysGroup = wwpLeosLldpOptLocSysGroup.setStatus('deprecated') wwpLeosLldpRemSysGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 2, 2, 5)).setObjects(("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemRemoteChassisType"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemRemoteChassis"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemRemotePortType"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemRemotePort"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemPortDesc"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemSysName"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemSysDesc"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemSysCapSupported"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemSysCapEnabled"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemManAddrIfSubtype"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemManAddrIfId"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemManAddrOID"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemUnknownTLVInfo"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpRemOrgDefInfo")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): wwpLeosLldpRemSysGroup = wwpLeosLldpRemSysGroup.setStatus('deprecated') wwpLeosLldpPortSpeedChangeTrap = NotificationType((1, 3, 6, 1, 4, 1, 6141, 2, 60, 26, 3, 0, 1)).setObjects(("WWP-LEOS-LLDP-MIB", "wwpLeosLldpPortConfigPortNum"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpPortConfigOperPortSpeed"), ("WWP-LEOS-LLDP-MIB", "wwpLeosLldpPortConfigReqPortSpeed")) if mibBuilder.loadTexts: wwpLeosLldpPortSpeedChangeTrap.setStatus('current') mibBuilder.exportSymbols("WWP-LEOS-LLDP-MIB", WwpLeosLldpPortNumber=WwpLeosLldpPortNumber, wwpLeosLldpLocManAddrLen=wwpLeosLldpLocManAddrLen, wwpLeosLldpRemOrgDefInfoOUI=wwpLeosLldpRemOrgDefInfoOUI, wwpLeosLldpLocPortEntry=wwpLeosLldpLocPortEntry, WwpLeosLldpManAddrIfSubtype=WwpLeosLldpManAddrIfSubtype, wwpLeosLldpStatsFramesOutTotal=wwpLeosLldpStatsFramesOutTotal, wwpLeosLldpRemManAddrIfSubtype=wwpLeosLldpRemManAddrIfSubtype, wwpLeosLldpMIB=wwpLeosLldpMIB, wwpLeosLldpLocPortTable=wwpLeosLldpLocPortTable, wwpLeosLldpRemUnknownTLVEntry=wwpLeosLldpRemUnknownTLVEntry, wwpLeosLldpRemSysCapEnabled=wwpLeosLldpRemSysCapEnabled, wwpLeosLldpRemOrgDefInfoSubtype=wwpLeosLldpRemOrgDefInfoSubtype, wwpLeosLldpRemRemoteChassis=wwpLeosLldpRemRemoteChassis, wwpLeosLldpRemSysName=wwpLeosLldpRemSysName, wwpLeosLldpRemUnknownTLVInfo=wwpLeosLldpRemUnknownTLVInfo, wwpLeosLldpRemManAddrEntry=wwpLeosLldpRemManAddrEntry, wwpLeosLldpPortConfigPortNum=wwpLeosLldpPortConfigPortNum, wwpLeosLldpStatsFramesInErrors=wwpLeosLldpStatsFramesInErrors, wwpLeosLldpLocManAddrOID=wwpLeosLldpLocManAddrOID, wwpLeosLldpPortConfigReqPortSpeed=wwpLeosLldpPortConfigReqPortSpeed, wwpLeosLldpReinitDelay=wwpLeosLldpReinitDelay, wwpLeosLldpPortConfigTable=wwpLeosLldpPortConfigTable, wwpLeosLldpConfigGroup=wwpLeosLldpConfigGroup, wwpLeosLldpStatsEntry=wwpLeosLldpStatsEntry, wwpLeosLldpStatsTLVsUnrecognizedTotal=wwpLeosLldpStatsTLVsUnrecognizedTotal, wwpLeosLldpLocalSystemData=wwpLeosLldpLocalSystemData, wwpLeosLldpLocSysCapEnabled=wwpLeosLldpLocSysCapEnabled, wwpLeosLldpRemUnknownTLVTable=wwpLeosLldpRemUnknownTLVTable, wwpLeosLldpStatsFramesDiscardedTotal=wwpLeosLldpStatsFramesDiscardedTotal, wwpLeosLldpPortConfigEntry=wwpLeosLldpPortConfigEntry, wwpLeosLldpCompliances=wwpLeosLldpCompliances, wwpLeosLldpRemRemotePortType=wwpLeosLldpRemRemotePortType, wwpLeosLldpGroups=wwpLeosLldpGroups, wwpLeosLldpOptLocSysGroup=wwpLeosLldpOptLocSysGroup, wwpLeosLldpPortConfigTLVsTxEnable=wwpLeosLldpPortConfigTLVsTxEnable, wwpLeosLldpStatsPortNum=wwpLeosLldpStatsPortNum, wwpLeosLldpRemSysDesc=wwpLeosLldpRemSysDesc, wwpLeosLldpLocPortType=wwpLeosLldpLocPortType, wwpLeosLldpLocSysName=wwpLeosLldpLocSysName, wwpLeosLldpRemRemoteChassisType=wwpLeosLldpRemRemoteChassisType, wwpLeosLldpStatsClear=wwpLeosLldpStatsClear, wwpLeosLldpExtentions=wwpLeosLldpExtentions, wwpLeosLldpMessageTxHoldMultiplier=wwpLeosLldpMessageTxHoldMultiplier, wwpLeosLldpLocManAddrType=wwpLeosLldpLocManAddrType, wwpLeosLldpRemUnknownTLVType=wwpLeosLldpRemUnknownTLVType, wwpLeosLldpStatsTLVsInErrors=wwpLeosLldpStatsTLVsInErrors, wwpLeosLldpPortConfigStatsClear=wwpLeosLldpPortConfigStatsClear, wwpLeosLldpLocManAddrEntry=wwpLeosLldpLocManAddrEntry, wwpLeosLldpRemIndex=wwpLeosLldpRemIndex, WwpLeosLldpPortIdType=WwpLeosLldpPortIdType, wwpLeosLldpConfigManAddrEntry=wwpLeosLldpConfigManAddrEntry, wwpLeosLldpRemTable=wwpLeosLldpRemTable, wwpLeosLldpLocManAddrIfSubtype=wwpLeosLldpLocManAddrIfSubtype, wwpLeosLldpLocPortId=wwpLeosLldpLocPortId, wwpLeosLldpLocPortDesc=wwpLeosLldpLocPortDesc, wwpLeosLldpRemoteSystemsData=wwpLeosLldpRemoteSystemsData, WwpLeosLldpPortId=WwpLeosLldpPortId, WwpLeosLldpChassisId=WwpLeosLldpChassisId, wwpLeosLldpRemTimeMark=wwpLeosLldpRemTimeMark, wwpLeosLldpManAddrPortsTxEnable=wwpLeosLldpManAddrPortsTxEnable, wwpLeosLldpLocPortNum=wwpLeosLldpLocPortNum, wwpLeosLldpRemOrgDefInfo=wwpLeosLldpRemOrgDefInfo, wwpLeosLldpLocSysGroup=wwpLeosLldpLocSysGroup, wwpLeosLldpRemSysGroup=wwpLeosLldpRemSysGroup, SnmpAdminString=SnmpAdminString, wwpLeosLldpLocManAddr=wwpLeosLldpLocManAddr, wwpLeosLldpCompliance=wwpLeosLldpCompliance, WwpLeosLldpChassisIdType=WwpLeosLldpChassisIdType, wwpLeosLldpConfiguration=wwpLeosLldpConfiguration, TimeFilter=TimeFilter, wwpLeosLldpPortConfigAdminStatus=wwpLeosLldpPortConfigAdminStatus, WwpLeosLldpPortList=WwpLeosLldpPortList, wwpLeosLldpRemSysCapSupported=wwpLeosLldpRemSysCapSupported, wwpLeosLldpStatsTable=wwpLeosLldpStatsTable, wwpLeosLldpTxDelay=wwpLeosLldpTxDelay, wwpLeosLldpRemManAddrOID=wwpLeosLldpRemManAddrOID, wwpLeosLldpConformance=wwpLeosLldpConformance, wwpLeosLldpLocSysDesc=wwpLeosLldpLocSysDesc, wwpLeosLldpRemLocalPortNum=wwpLeosLldpRemLocalPortNum, wwpLeosLldpRemPortDesc=wwpLeosLldpRemPortDesc, wwpLeosLldpGlobalAtts=wwpLeosLldpGlobalAtts, wwpLeosLldpRemManAddrIfId=wwpLeosLldpRemManAddrIfId, wwpLeosLldpPortSpeedChangeTrap=wwpLeosLldpPortSpeedChangeTrap, wwpLeosLldpLocChassisType=wwpLeosLldpLocChassisType, PYSNMP_MODULE_ID=wwpLeosLldpMIB, wwpLeosLldpLocChassisId=wwpLeosLldpLocChassisId, wwpLeosLldpRemOrgDefInfoIndex=wwpLeosLldpRemOrgDefInfoIndex, wwpLeosLldpRemManAddrType=wwpLeosLldpRemManAddrType, wwpLeosLldpStatsFramesInTotal=wwpLeosLldpStatsFramesInTotal, wwpLeosLldpLocSysCapSupported=wwpLeosLldpLocSysCapSupported, wwpLeosLldpCounterDiscontinuityTime=wwpLeosLldpCounterDiscontinuityTime, wwpLeosLldpMessageTxInterval=wwpLeosLldpMessageTxInterval, wwpLeosLldpRemManAddrTable=wwpLeosLldpRemManAddrTable, wwpLeosLldpLocManAddrIfId=wwpLeosLldpLocManAddrIfId, wwpLeosLldpRemOrgDefInfoTable=wwpLeosLldpRemOrgDefInfoTable, wwpLeosLldpRemEntry=wwpLeosLldpRemEntry, wwpLeosLldpNotifMIBNotification=wwpLeosLldpNotifMIBNotification, WwpLeosLldpSystemCapabilitiesMap=WwpLeosLldpSystemCapabilitiesMap, wwpLeosLldpStatsGroup=wwpLeosLldpStatsGroup, WwpLeosLldpManAddress=WwpLeosLldpManAddress, wwpLeosLldpStatistics=wwpLeosLldpStatistics, wwpLeosLldpLocManAddrTable=wwpLeosLldpLocManAddrTable, wwpLeosLldpMIBObjects=wwpLeosLldpMIBObjects, wwpLeosLldpConfigManAddrTable=wwpLeosLldpConfigManAddrTable, wwpLeosLldpStatsTLVsDiscardedTotal=wwpLeosLldpStatsTLVsDiscardedTotal, wwpLeosLldpPortConfigOperPortSpeed=wwpLeosLldpPortConfigOperPortSpeed, wwpLeosLldpRemRemotePort=wwpLeosLldpRemRemotePort, wwpLeosLldpNotifMIBNotificationPrefix=wwpLeosLldpNotifMIBNotificationPrefix, wwpLeosLldpRemManAddr=wwpLeosLldpRemManAddr, wwpLeosLldpRemOrgDefInfoEntry=wwpLeosLldpRemOrgDefInfoEntry)
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'CYX' configs = { 'server': { 'host': '0.0.0.0', 'port': 9090 }, 'qshield': { 'jars': '/home/hadoop/qshield/opaque-ext/target/scala-2.11/opaque-ext_2.11-0.1.jar,/home/hadoop/qshield/data-owner/target/scala-2.11/data-owner_2.11-0.1.jar', 'master': 'spark://SGX:7077' } }
# # PySNMP MIB module VLAN (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/VLAN # Produced by pysmi-0.3.4 at Mon Apr 29 21:27:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint") interface, = mibBuilder.importSymbols("ExaltComProducts", "interface") VlanGroupT, VlanStatusT = mibBuilder.importSymbols("ExaltComm", "VlanGroupT", "VlanStatusT") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") IpAddress, Integer32, Counter64, ModuleIdentity, Bits, Counter32, NotificationType, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, TimeTicks, Gauge32, iso, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Integer32", "Counter64", "ModuleIdentity", "Bits", "Counter32", "NotificationType", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "TimeTicks", "Gauge32", "iso", "MibIdentifier") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") vlan = ObjectIdentity((1, 3, 6, 1, 4, 1, 25651, 1, 2, 3, 2, 3)) if mibBuilder.loadTexts: vlan.setStatus('current') vlanStatus = MibScalar((1, 3, 6, 1, 4, 1, 25651, 1, 2, 3, 2, 3, 1), VlanStatusT()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vlanStatus.setStatus('current') vlanDefaultMgmtId = MibScalar((1, 3, 6, 1, 4, 1, 25651, 1, 2, 3, 2, 3, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vlanDefaultMgmtId.setStatus('current') vlanInterfaces = MibTable((1, 3, 6, 1, 4, 1, 25651, 1, 2, 3, 2, 3, 6), ) if mibBuilder.loadTexts: vlanInterfaces.setStatus('current') vlanInterfacesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25651, 1, 2, 3, 2, 3, 6, 1), ).setIndexNames((0, "VLAN", "vlanDefaultId")) if mibBuilder.loadTexts: vlanInterfacesEntry.setStatus('current') vlanDefaultId = MibTableColumn((1, 3, 6, 1, 4, 1, 25651, 1, 2, 3, 2, 3, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vlanDefaultId.setStatus('current') vlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 25651, 1, 2, 3, 2, 3, 6, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 1024))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vlanID.setStatus('current') commitVlanSettings = MibScalar((1, 3, 6, 1, 4, 1, 25651, 1, 2, 3, 2, 3, 1000), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(4, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: commitVlanSettings.setStatus('current') mibBuilder.exportSymbols("VLAN", vlanInterfaces=vlanInterfaces, vlanDefaultMgmtId=vlanDefaultMgmtId, vlan=vlan, vlanDefaultId=vlanDefaultId, vlanStatus=vlanStatus, vlanID=vlanID, commitVlanSettings=commitVlanSettings, vlanInterfacesEntry=vlanInterfacesEntry)
def solution(A, B): tmp = '{0:b}'.format(A * B) return list(tmp).count('1')
""" Add the scientific notation to the axes label Adapted from: https://peytondmurray.github.io/coding/fixing-matplotlibs-scientific-notation/# """ def label_offset(ax, axis=None): if axis == "y" or not axis: fmt = ax.yaxis.get_major_formatter() ax.yaxis.offsetText.set_visible(False) set_label = ax.set_ylabel label = ax.get_ylabel() elif axis == "x" or not axis: fmt = ax.xaxis.get_major_formatter() ax.xaxis.offsetText.set_visible(False) set_label = ax.set_xlabel label = ax.get_xlabel() def update_label(event_axes): offset = fmt.get_offset() if offset == '': set_label("{}".format(label)) else: set_label("{} {}".format(label, offset)) return ax.callbacks.connect("ylim_changed", update_label) ax.callbacks.connect("xlim_changed", update_label) ax.figure.canvas.draw() update_label(None) return
class Action: """ This is the Action class. It is already in the test cases, so please don't put it in your solution. """ def __init__(self, object_, transaction, is_write): self.object_ = object_ self.transaction = transaction self.is_write = is_write def __str__(self): return f"Action({self.object_}, {self.transaction}, {self.is_write})" def detect_conflict(action_a, action_b): if action_a.transaction == action_b.transaction: return True if action_a.is_write == action_b.is_write == False: return False elif action_a.object_ != action_b.object_: return False else: return True
class WebPermissionAttribute(CodeAccessSecurityAttribute, _Attribute): """ Specifies permission to access Internet resources. This class cannot be inherited. WebPermissionAttribute(action: SecurityAction) """ def CreatePermission(self): """ CreatePermission(self: WebPermissionAttribute) -> IPermission Creates and returns a new instance of the System.Net.WebPermission class. Returns: A System.Net.WebPermission corresponding to the security declaration. """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass @staticmethod def __new__(self, action): """ __new__(cls: type,action: SecurityAction) """ pass def __reduce_ex__(self, *args): pass Accept = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the URI string accepted by the current System.Net.WebPermissionAttribute. Get: Accept(self: WebPermissionAttribute) -> str Set: Accept(self: WebPermissionAttribute)=value """ AcceptPattern = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a regular expression pattern that describes the URI accepted by the current System.Net.WebPermissionAttribute. Get: AcceptPattern(self: WebPermissionAttribute) -> str Set: AcceptPattern(self: WebPermissionAttribute)=value """ Connect = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the URI connection string controlled by the current System.Net.WebPermissionAttribute. Get: Connect(self: WebPermissionAttribute) -> str Set: Connect(self: WebPermissionAttribute)=value """ ConnectPattern = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a regular expression pattern that describes the URI connection controlled by the current System.Net.WebPermissionAttribute. Get: ConnectPattern(self: WebPermissionAttribute) -> str Set: ConnectPattern(self: WebPermissionAttribute)=value """
class Pares(list): # <- estou passando pra minha classe as funções do objeto list como na aluma de Django quando usasva model def append(self, inteiro): # <- SobreEscrevendo o método append para que funciona da minha maneira! if not isinstance(inteiro,int): # <- Declarando minha variavél e deterninando que é deve ser inteira raise TypeError('Só inteiro arrombado') if inteiro % 2: # <- so aceita numeros para "uma maneira lega de declarar a condição onde so passa a conta! raise ValueError('Somente Pares') super().append(inteiro) sp = Pares() sp.append('f')
class Pagination: def __init__(self, offset, limit): self._offset = offset self._limit = limit def clean_offset(self): return self._offset >= 0 def clean_limit(self): return self._limit > 0 def clean(self): return self.clean_offset() and self.clean_limit() @property def offset(self): return self._offset @property def limit(self): return self._limit class Filter: def __init__(self, name, *values): self.name = name self.values = values
# Copyright (c) 2018-2021 Kaiyang Zhou # SPDX-License-Identifier: MIT # # Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # __version__ = '1.2.3'
# # PySNMP MIB module E7-Fault-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/E7-Fault-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:58:57 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection") e7Modules, e7 = mibBuilder.importSymbols("CALIX-PRODUCT-MIB", "e7Modules", "e7") E7ObjectClass, E7AlarmType = mibBuilder.importSymbols("E7-TC", "E7ObjectClass", "E7AlarmType") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, Bits, MibIdentifier, Gauge32, ObjectIdentity, ModuleIdentity, iso, NotificationType, TimeTicks, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, IpAddress, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Bits", "MibIdentifier", "Gauge32", "ObjectIdentity", "ModuleIdentity", "iso", "NotificationType", "TimeTicks", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "IpAddress", "Counter32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") e7FaultModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 1, 2)) if mibBuilder.loadTexts: e7FaultModule.setLastUpdated('200912100000Z') if mibBuilder.loadTexts: e7FaultModule.setOrganization('Calix') if mibBuilder.loadTexts: e7FaultModule.setContactInfo('Calix') if mibBuilder.loadTexts: e7FaultModule.setDescription('Describes all the alarm retrieval related to Calix E7, E5-400, and E5-312 products.') e7Fault = MibIdentifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3)) e7Alarms = MibIdentifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1)) e7AlarmCount = MibIdentifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 2)) e7AlarmTable = MibTable((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1), ) if mibBuilder.loadTexts: e7AlarmTable.setStatus('current') if mibBuilder.loadTexts: e7AlarmTable.setDescription('This table holds all the active alarms') e7AlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1), ).setIndexNames((0, "E7-Fault-MIB", "e7AlarmObjectClass"), (0, "E7-Fault-MIB", "e7AlarmObjectInstance1"), (0, "E7-Fault-MIB", "e7AlarmObjectInstance2"), (0, "E7-Fault-MIB", "e7AlarmObjectInstance3"), (0, "E7-Fault-MIB", "e7AlarmObjectInstance4"), (0, "E7-Fault-MIB", "e7AlarmObjectInstance5"), (0, "E7-Fault-MIB", "e7AlarmObjectInstance6"), (0, "E7-Fault-MIB", "e7AlarmObjectInstance7"), (0, "E7-Fault-MIB", "e7AlarmObjectInstance8"), (0, "E7-Fault-MIB", "e7AlarmType")) if mibBuilder.loadTexts: e7AlarmEntry.setStatus('current') if mibBuilder.loadTexts: e7AlarmEntry.setDescription('List of attributes regarding alarm table') e7AlarmObjectClass = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 1), E7ObjectClass()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectClass.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectClass.setDescription('Object Class for an alarm') e7AlarmObjectInstance1 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectInstance1.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectInstance1.setDescription('Object instance for an alarm, level 1') e7AlarmObjectInstance2 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectInstance2.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectInstance2.setDescription('Object instance for an alarm, level 2') e7AlarmObjectInstance3 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectInstance3.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectInstance3.setDescription('Object instance for an alarm, level 3') e7AlarmObjectInstance4 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectInstance4.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectInstance4.setDescription('Object instance for an alarm, level 4') e7AlarmObjectInstance5 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectInstance5.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectInstance5.setDescription('Object instance for an alarm, level 5') e7AlarmObjectInstance6 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectInstance6.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectInstance6.setDescription('Object instance for an alarm, level 6') e7AlarmObjectInstance7 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectInstance7.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectInstance7.setDescription('Object instance for an alarm, level 7') e7AlarmObjectInstance8 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmObjectInstance8.setStatus('current') if mibBuilder.loadTexts: e7AlarmObjectInstance8.setDescription('Object instance for an alarm, level 8') e7AlarmType = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 10), E7AlarmType()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmType.setStatus('current') if mibBuilder.loadTexts: e7AlarmType.setDescription('Unique type for an alarm') e7AlarmSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("critical", 1), ("major", 2), ("minor", 3), ("warning", 4), ("unknown", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSeverity.setStatus('current') if mibBuilder.loadTexts: e7AlarmSeverity.setDescription('Severity of the alarm') e7AlarmTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 50))).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmTimeStamp.setStatus('current') if mibBuilder.loadTexts: e7AlarmTimeStamp.setDescription('Timestamp indicating the set/clear time of the alarm') e7AlarmServiceAffecting = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("yes", 1), ("no", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmServiceAffecting.setStatus('current') if mibBuilder.loadTexts: e7AlarmServiceAffecting.setDescription('Indicated the nature of the alarm i.e. service affecting or not') e7AlarmLocationInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("nearEnd", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmLocationInfo.setStatus('current') if mibBuilder.loadTexts: e7AlarmLocationInfo.setDescription('') e7AlarmText = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 15), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmText.setStatus('current') if mibBuilder.loadTexts: e7AlarmText.setDescription('Alarm description') e7AlarmTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmTime.setStatus('current') if mibBuilder.loadTexts: e7AlarmTime.setDescription('UTC time') e7AlarmCliObject = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 17), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmCliObject.setStatus('current') if mibBuilder.loadTexts: e7AlarmCliObject.setDescription('The short CLI name for the object class and instance') e7AlarmSecObjectClass = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 18), E7ObjectClass()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectClass.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectClass.setDescription('Secondary Object Class for an alarm') e7AlarmSecObjectInstance1 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectInstance1.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectInstance1.setDescription('Secondary object instance for an alarm, level 1') e7AlarmSecObjectInstance2 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectInstance2.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectInstance2.setDescription('Secondary object instance for an alarm, level 2') e7AlarmSecObjectInstance3 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectInstance3.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectInstance3.setDescription('Secondary object instance for an alarm, level 3') e7AlarmSecObjectInstance4 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectInstance4.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectInstance4.setDescription('Secondary object instance for an alarm, level 4') e7AlarmSecObjectInstance5 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 23), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectInstance5.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectInstance5.setDescription('Secondary object instance for an alarm, level 5') e7AlarmSecObjectInstance6 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 24), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectInstance6.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectInstance6.setDescription('Secondary object instance for an alarm, level 6') e7AlarmSecObjectInstance7 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectInstance7.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectInstance7.setDescription('Secondary object instance for an alarm, level 7') e7AlarmSecObjectInstance8 = MibTableColumn((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 1, 1, 26), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmSecObjectInstance8.setStatus('current') if mibBuilder.loadTexts: e7AlarmSecObjectInstance8.setDescription('Secondary object instance for an alarm, level 8') e7AlarmTableEnd = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmTableEnd.setStatus('current') if mibBuilder.loadTexts: e7AlarmTableEnd.setDescription('This attribute marks the end of the e7AlarmTable') e7AlarmCountCritical = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmCountCritical.setStatus('current') if mibBuilder.loadTexts: e7AlarmCountCritical.setDescription('The count of critical alarms') e7AlarmCountMajor = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 2, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmCountMajor.setStatus('current') if mibBuilder.loadTexts: e7AlarmCountMajor.setDescription('The count of major alarms') e7AlarmCountMinor = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 2, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmCountMinor.setStatus('current') if mibBuilder.loadTexts: e7AlarmCountMinor.setDescription('The count of minor alarms') e7AlarmCountWarning = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 2, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmCountWarning.setStatus('current') if mibBuilder.loadTexts: e7AlarmCountWarning.setDescription('The count of warning alarms (reported conditions)') e7AlarmCountInfo = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 3, 2, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: e7AlarmCountInfo.setStatus('current') if mibBuilder.loadTexts: e7AlarmCountInfo.setDescription('The count of info alarms (unreported conditions)') mibBuilder.exportSymbols("E7-Fault-MIB", e7AlarmCliObject=e7AlarmCliObject, e7AlarmSecObjectClass=e7AlarmSecObjectClass, e7FaultModule=e7FaultModule, PYSNMP_MODULE_ID=e7FaultModule, e7AlarmObjectClass=e7AlarmObjectClass, e7AlarmEntry=e7AlarmEntry, e7AlarmCountMajor=e7AlarmCountMajor, e7AlarmTimeStamp=e7AlarmTimeStamp, e7AlarmObjectInstance1=e7AlarmObjectInstance1, e7AlarmCount=e7AlarmCount, e7AlarmSecObjectInstance2=e7AlarmSecObjectInstance2, e7AlarmObjectInstance6=e7AlarmObjectInstance6, e7AlarmSecObjectInstance6=e7AlarmSecObjectInstance6, e7AlarmSecObjectInstance7=e7AlarmSecObjectInstance7, e7AlarmSeverity=e7AlarmSeverity, e7AlarmText=e7AlarmText, e7AlarmTable=e7AlarmTable, e7AlarmObjectInstance7=e7AlarmObjectInstance7, e7AlarmLocationInfo=e7AlarmLocationInfo, e7AlarmTableEnd=e7AlarmTableEnd, e7AlarmObjectInstance5=e7AlarmObjectInstance5, e7AlarmCountMinor=e7AlarmCountMinor, e7Alarms=e7Alarms, e7AlarmObjectInstance2=e7AlarmObjectInstance2, e7AlarmServiceAffecting=e7AlarmServiceAffecting, e7AlarmSecObjectInstance3=e7AlarmSecObjectInstance3, e7AlarmSecObjectInstance5=e7AlarmSecObjectInstance5, e7AlarmSecObjectInstance8=e7AlarmSecObjectInstance8, e7AlarmSecObjectInstance1=e7AlarmSecObjectInstance1, e7Fault=e7Fault, e7AlarmObjectInstance3=e7AlarmObjectInstance3, e7AlarmObjectInstance4=e7AlarmObjectInstance4, e7AlarmObjectInstance8=e7AlarmObjectInstance8, e7AlarmType=e7AlarmType, e7AlarmCountCritical=e7AlarmCountCritical, e7AlarmCountWarning=e7AlarmCountWarning, e7AlarmTime=e7AlarmTime, e7AlarmSecObjectInstance4=e7AlarmSecObjectInstance4, e7AlarmCountInfo=e7AlarmCountInfo)
def steps(number:int) -> int: if number <= 0: raise ValueError("Input must be a positive integer") steps = 0 while number != 1: if number % 2 == 0: number = int(number / 2) else: number = int(number * 3) + 1 steps += 1 return steps
class Solution: def arrangeCoins(self, n: int) -> int: k = 0 while n > 0: k += 1 n -= k return k if not n else k - 1
coordinates_E0E1E1 = ((127, 91), (127, 93), (128, 92), (128, 94), (128, 142), (129, 93), (129, 95), (129, 134), (129, 135), (129, 141), (129, 142), (130, 94), (130, 133), (130, 136), (130, 140), (130, 142), (131, 95), (131, 102), (131, 133), (131, 135), (131, 138), (131, 139), (131, 142), (132, 96), (132, 98), (132, 99), (132, 100), (132, 101), (132, 103), (132, 117), (132, 119), (132, 132), (132, 134), (132, 135), (132, 136), (132, 143), (133, 97), (133, 104), (133, 115), (133, 119), (133, 131), (133, 133), (133, 134), (133, 135), (133, 136), (133, 137), (133, 140), (133, 141), (133, 144), (134, 90), (134, 99), (134, 102), (134, 103), (134, 106), (134, 107), (134, 108), (134, 114), (134, 117), (134, 118), (134, 120), (134, 131), (134, 133), (134, 134), (134, 135), (134, 136), (134, 138), (134, 143), (135, 91), (135, 101), (135, 103), (135, 104), (135, 109), (135, 110), (135, 111), (135, 112), (135, 115), (135, 116), (135, 117), (135, 118), (135, 120), (135, 130), (135, 132), (135, 133), (135, 134), (135, 135), (135, 137), (136, 92), (136, 102), (136, 104), (136, 105), (136, 106), (136, 107), (136, 108), (136, 113), (136, 114), (136, 115), (136, 116), (136, 117), (136, 118), (136, 119), (136, 121), (136, 127), (136, 128), (136, 131), (136, 132), (136, 133), (136, 134), (136, 136), (137, 92), (137, 93), (137, 102), (137, 104), (137, 105), (137, 108), (137, 109), (137, 110), (137, 111), (137, 112), (137, 113), (137, 114), (137, 115), (137, 116), (137, 117), (137, 118), (137, 119), (137, 120), (137, 123), (137, 124), (137, 125), (137, 126), (137, 130), (137, 131), (137, 132), (137, 133), (137, 134), (137, 136), (138, 92), (138, 94), (138, 102), (138, 106), (138, 107), (138, 108), (138, 113), (138, 114), (138, 115), (138, 116), (138, 117), (138, 118), (138, 119), (138, 120), (138, 121), (138, 127), (138, 128), (138, 129), (138, 130), (138, 131), (138, 132), (138, 133), (138, 134), (138, 135), (138, 136), (139, 93), (139, 102), (139, 104), (139, 105), (139, 108), (139, 109), (139, 110), (139, 111), (139, 112), (139, 115), (139, 116), (139, 117), (139, 118), (139, 119), (139, 120), (139, 121), (139, 122), (139, 123), (139, 124), (139, 125), (139, 126), (139, 127), (139, 128), (139, 129), (139, 130), (139, 131), (139, 132), (139, 133), (139, 135), (140, 101), (140, 103), (140, 113), (140, 114), (140, 117), (140, 118), (140, 119), (140, 120), (140, 121), (140, 122), (140, 123), (140, 124), (140, 125), (140, 126), (140, 127), (140, 128), (140, 129), (140, 130), (140, 131), (140, 132), (140, 133), (140, 135), (141, 100), (141, 116), (141, 117), (141, 118), (141, 119), (141, 120), (141, 121), (141, 122), (141, 123), (141, 124), (141, 125), (141, 126), (141, 127), (141, 128), (141, 129), (141, 130), (141, 131), (141, 132), (141, 133), (141, 134), (141, 135), (142, 117), (142, 119), (142, 120), (142, 121), (142, 122), (142, 123), (142, 124), (142, 125), (142, 126), (142, 127), (142, 128), (142, 129), (142, 130), (142, 131), (142, 132), (142, 134), (143, 117), (143, 119), (143, 120), (143, 121), (143, 122), (143, 123), (143, 124), (143, 125), (143, 126), (143, 127), (143, 128), (143, 129), (143, 130), (143, 131), (143, 132), (143, 134), (144, 116), (144, 118), (144, 119), (144, 120), (144, 121), (144, 122), (144, 123), (144, 124), (144, 125), (144, 126), (144, 127), (144, 128), (144, 129), (144, 130), (144, 131), (144, 132), (144, 134), (145, 115), (145, 116), (145, 117), (145, 118), (145, 119), (145, 120), (145, 121), (145, 122), (145, 123), (145, 124), (145, 125), (145, 126), (145, 127), (145, 128), (145, 129), (145, 130), (145, 131), (145, 133), (146, 115), (146, 117), (146, 118), (146, 119), (146, 120), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 129), (146, 130), (146, 131), (146, 133), (147, 109), (147, 111), (147, 112), (147, 113), (147, 116), (147, 117), (147, 118), (147, 119), (147, 120), (147, 121), (147, 122), (147, 123), (147, 124), (147, 125), (147, 126), (147, 127), (147, 128), (147, 129), (147, 130), (147, 131), (147, 132), (147, 134), (148, 108), (148, 115), (148, 116), (148, 117), (148, 118), (148, 119), (148, 120), (148, 121), (148, 122), (148, 123), (148, 124), (148, 125), (148, 126), (148, 127), (148, 128), (148, 129), (148, 130), (148, 131), (148, 132), (148, 134), (149, 104), (149, 105), (149, 106), (149, 109), (149, 110), (149, 111), (149, 112), (149, 113), (149, 114), (149, 115), (149, 116), (149, 117), (149, 118), (149, 119), (149, 120), (149, 121), (149, 122), (149, 123), (149, 124), (149, 125), (149, 126), (149, 127), (149, 128), (149, 129), (149, 130), (149, 131), (149, 132), (149, 133), (149, 135), (150, 107), (150, 109), (150, 110), (150, 111), (150, 112), (150, 113), (150, 114), (150, 115), (150, 116), (150, 117), (150, 121), (150, 122), (150, 123), (150, 124), (150, 125), (150, 126), (150, 127), (150, 128), (150, 129), (150, 130), (150, 131), (150, 132), (150, 135), (151, 108), (151, 110), (151, 111), (151, 112), (151, 113), (151, 114), (151, 115), (151, 118), (151, 119), (151, 120), (151, 122), (151, 123), (151, 124), (151, 125), (151, 126), (151, 127), (151, 128), (151, 129), (151, 130), (151, 131), (151, 133), (152, 109), (152, 112), (152, 113), (152, 114), (152, 121), (152, 123), (152, 124), (152, 125), (152, 126), (152, 127), (152, 128), (152, 129), (152, 130), (152, 132), (153, 110), (153, 113), (153, 115), (153, 122), (153, 124), (153, 125), (153, 126), (153, 127), (153, 128), (153, 129), (153, 131), (154, 112), (154, 115), (154, 123), (154, 125), (154, 126), (154, 127), (154, 128), (154, 130), (155, 113), (155, 114), (155, 123), (155, 125), (155, 126), (155, 127), (155, 130), (156, 113), (156, 114), (156, 124), (156, 128), (156, 130), (157, 112), (157, 114), (157, 124), (157, 126), (158, 112), (158, 124), (158, 125), (159, 113), ) coordinates_E1E1E1 = ((84, 135), (87, 118), (88, 119), (88, 127), (88, 130), (89, 117), (89, 120), (89, 126), (89, 129), (90, 117), (90, 119), (90, 122), (90, 123), (90, 124), (90, 125), (90, 128), (91, 111), (91, 116), (91, 118), (91, 119), (91, 126), (91, 128), (92, 103), (92, 110), (92, 112), (92, 113), (92, 114), (92, 117), (92, 118), (92, 121), (92, 122), (92, 123), (92, 124), (92, 125), (92, 126), (92, 128), (93, 102), (93, 105), (93, 109), (93, 116), (93, 117), (93, 119), (93, 122), (93, 123), (93, 124), (93, 125), (93, 126), (93, 127), (93, 129), (94, 114), (94, 116), (94, 118), (94, 121), (94, 123), (94, 124), (94, 125), (94, 126), (94, 127), (94, 128), (94, 130), (95, 115), (95, 117), (95, 121), (95, 123), (95, 124), (95, 125), (95, 126), (95, 127), (95, 128), (95, 129), (95, 131), (96, 115), (96, 117), (96, 121), (96, 123), (96, 124), (96, 125), (96, 126), (96, 127), (96, 128), (96, 129), (96, 130), (96, 133), (97, 115), (97, 117), (97, 120), (97, 122), (97, 123), (97, 124), (97, 125), (97, 126), (97, 127), (97, 128), (97, 129), (97, 130), (97, 131), (97, 133), (98, 115), (98, 117), (98, 118), (98, 121), (98, 122), (98, 123), (98, 124), (98, 125), (98, 126), (98, 127), (98, 128), (98, 129), (98, 130), (98, 132), (99, 115), (99, 117), (99, 120), (99, 121), (99, 122), (99, 123), (99, 124), (99, 125), (99, 126), (99, 127), (99, 128), (99, 129), (99, 130), (99, 132), (100, 95), (100, 114), (100, 116), (100, 117), (100, 118), (100, 119), (100, 120), (100, 121), (100, 122), (100, 123), (100, 124), (100, 125), (100, 126), (100, 127), (100, 128), (100, 129), (100, 130), (100, 132), (101, 114), (101, 116), (101, 117), (101, 118), (101, 119), (101, 120), (101, 121), (101, 122), (101, 123), (101, 124), (101, 125), (101, 126), (101, 127), (101, 128), (101, 129), (101, 130), (101, 132), (102, 114), (102, 116), (102, 117), (102, 118), (102, 119), (102, 120), (102, 121), (102, 122), (102, 123), (102, 124), (102, 125), (102, 126), (102, 127), (102, 128), (102, 129), (102, 130), (102, 131), (102, 133), (103, 101), (103, 103), (103, 105), (103, 114), (103, 116), (103, 117), (103, 118), (103, 119), (103, 120), (103, 121), (103, 122), (103, 123), (103, 124), (103, 125), (103, 126), (103, 127), (103, 128), (103, 129), (103, 130), (103, 131), (103, 132), (103, 135), (104, 100), (104, 107), (104, 113), (104, 115), (104, 116), (104, 117), (104, 118), (104, 119), (104, 120), (104, 121), (104, 122), (104, 123), (104, 124), (104, 125), (104, 126), (104, 127), (104, 128), (104, 129), (104, 130), (104, 131), (104, 132), (104, 133), (104, 137), (105, 101), (105, 103), (105, 104), (105, 105), (105, 107), (105, 113), (105, 114), (105, 115), (105, 116), (105, 117), (105, 118), (105, 119), (105, 120), (105, 121), (105, 122), (105, 123), (105, 124), (105, 125), (105, 126), (105, 127), (105, 128), (105, 129), (105, 130), (105, 131), (105, 132), (105, 133), (105, 134), (105, 135), (105, 138), (106, 101), (106, 103), (106, 104), (106, 105), (106, 106), (106, 109), (106, 110), (106, 111), (106, 113), (106, 114), (106, 115), (106, 116), (106, 117), (106, 118), (106, 119), (106, 120), (106, 121), (106, 122), (106, 123), (106, 124), (106, 125), (106, 126), (106, 127), (106, 128), (106, 129), (106, 130), (106, 131), (106, 132), (106, 133), (106, 134), (106, 135), (106, 136), (106, 137), (106, 139), (107, 101), (107, 103), (107, 104), (107, 105), (107, 106), (107, 107), (107, 112), (107, 113), (107, 114), (107, 115), (107, 116), (107, 117), (107, 118), (107, 119), (107, 120), (107, 121), (107, 122), (107, 123), (107, 128), (107, 129), (107, 130), (107, 131), (107, 132), (107, 133), (107, 134), (107, 135), (107, 136), (107, 137), (107, 138), (107, 140), (108, 100), (108, 102), (108, 103), (108, 104), (108, 105), (108, 106), (108, 107), (108, 108), (108, 109), (108, 110), (108, 111), (108, 112), (108, 113), (108, 114), (108, 115), (108, 116), (108, 117), (108, 118), (108, 119), (108, 120), (108, 121), (108, 122), (108, 123), (108, 126), (108, 127), (108, 130), (108, 136), (108, 137), (108, 138), (108, 140), (109, 96), (109, 98), (109, 99), (109, 101), (109, 102), (109, 103), (109, 104), (109, 105), (109, 106), (109, 107), (109, 113), (109, 114), (109, 115), (109, 116), (109, 117), (109, 118), (109, 119), (109, 120), (109, 121), (109, 123), (109, 129), (109, 131), (109, 132), (109, 133), (109, 134), (109, 137), (109, 138), (109, 139), (109, 141), (110, 95), (110, 108), (110, 109), (110, 110), (110, 111), (110, 114), (110, 115), (110, 116), (110, 117), (110, 118), (110, 119), (110, 120), (110, 121), (110, 122), (110, 123), (110, 130), (110, 138), (110, 139), (110, 140), (110, 142), (111, 96), (111, 97), (111, 98), (111, 99), (111, 100), (111, 101), (111, 102), (111, 103), (111, 104), (111, 105), (111, 106), (111, 113), (111, 115), (111, 116), (111, 117), (111, 119), (111, 120), (111, 122), (111, 137), (111, 139), (111, 140), (111, 142), (112, 92), (112, 94), (112, 114), (112, 115), (112, 118), (112, 122), (112, 137), (112, 139), (112, 140), (112, 142), (113, 91), (113, 114), (113, 122), (113, 138), (113, 141), (114, 90), (114, 93), (114, 114), (114, 115), (114, 121), (114, 122), (114, 139), (114, 140), (115, 89), (115, 92), (115, 122), (115, 140), (116, 122), ) coordinates_FEDAB9 = ((126, 82), (127, 81), (127, 84), (127, 89), (128, 81), (128, 85), (128, 86), (128, 87), (128, 88), (128, 90), (129, 81), (129, 83), (129, 84), (129, 91), (130, 82), (130, 84), (130, 85), (130, 86), (130, 87), (130, 88), (130, 90), (130, 92), (131, 83), (131, 85), (131, 86), (131, 87), (131, 88), (131, 93), (132, 84), (132, 86), (132, 87), (132, 90), (133, 85), (133, 87), (133, 91), (133, 94), (134, 86), (134, 88), (134, 92), (134, 95), (135, 87), (135, 89), (135, 97), (136, 88), (136, 90), (136, 95), (136, 98), (136, 100), (137, 88), (137, 90), (137, 96), (137, 100), (138, 89), (138, 90), (138, 96), (138, 98), (138, 100), (139, 89), (139, 90), (139, 96), (139, 99), (140, 89), (140, 91), (140, 94), (140, 99), (141, 88), (141, 90), (141, 91), (141, 92), (141, 93), (141, 98), (141, 105), (141, 106), (141, 107), (141, 108), (141, 109), (141, 111), (142, 88), (142, 90), (142, 91), (142, 95), (142, 103), (142, 110), (142, 111), (142, 112), (142, 114), (143, 88), (143, 90), (143, 91), (143, 92), (143, 94), (143, 99), (143, 101), (143, 108), (144, 88), (144, 90), (144, 91), (144, 93), (144, 97), (144, 101), (144, 102), (144, 103), (144, 104), (144, 106), (145, 88), (145, 90), (145, 91), (145, 92), (145, 93), (145, 96), (145, 99), (146, 88), (146, 90), (146, 91), (146, 92), (146, 93), (146, 94), (146, 95), (146, 98), (147, 89), (147, 92), (147, 93), (147, 94), (147, 96), (148, 90), (148, 95), (149, 91), (149, 94), ) coordinates_D970D6 = ((122, 86), (122, 87), (122, 89), (123, 84), (123, 91), (123, 92), (123, 93), (123, 94), (123, 95), (123, 96), (123, 97), (123, 99), (124, 84), (124, 99), (125, 84), (125, 86), (125, 87), (125, 88), (125, 89), (125, 90), (125, 91), (125, 92), (125, 93), (125, 96), (125, 98), (126, 95), (126, 98), (127, 96), (127, 98), (128, 98), (129, 97), (129, 98), (130, 98), ) coordinates_01CED1 = ((144, 111), (144, 112), (144, 114), (145, 108), (145, 109), (145, 113), (146, 101), (146, 103), (146, 104), (146, 105), (146, 106), (146, 107), (147, 100), (147, 102), (147, 103), (147, 104), (147, 106), (148, 98), (148, 100), (149, 97), (149, 100), (150, 96), (150, 98), (150, 99), (150, 100), (150, 102), (150, 113), (150, 114), (151, 96), (151, 98), (151, 101), (151, 103), (151, 105), (151, 113), (151, 114), (152, 96), (152, 98), (152, 101), (152, 113), (153, 95), (153, 97), (153, 98), (153, 101), (153, 102), (153, 103), (153, 104), (153, 105), (153, 113), (153, 118), (153, 120), (154, 95), (154, 97), (154, 98), (154, 99), (154, 100), (154, 101), (154, 102), (154, 103), (154, 104), (154, 105), (154, 106), (154, 117), (155, 97), (155, 98), (155, 99), (155, 100), (155, 101), (155, 102), (155, 103), (155, 104), (155, 105), (155, 106), (155, 107), (155, 110), (155, 119), (155, 121), (156, 95), (156, 98), (156, 99), (156, 100), (156, 101), (156, 102), (156, 103), (156, 104), (156, 105), (156, 106), (156, 107), (156, 108), (156, 116), (156, 118), (156, 119), (156, 121), (157, 97), (157, 99), (157, 100), (157, 101), (157, 102), (157, 103), (157, 104), (157, 105), (157, 106), (157, 107), (157, 108), (157, 110), (157, 116), (157, 118), (157, 119), (157, 120), (157, 122), (158, 98), (158, 101), (158, 102), (158, 103), (158, 104), (158, 105), (158, 106), (158, 107), (158, 108), (158, 110), (158, 116), (158, 118), (158, 119), (158, 120), (158, 122), (159, 99), (159, 100), (159, 103), (159, 104), (159, 105), (159, 107), (159, 108), (159, 110), (159, 116), (159, 118), (159, 119), (159, 120), (159, 121), (159, 123), (160, 101), (160, 106), (160, 109), (160, 111), (160, 115), (160, 117), (160, 118), (160, 119), (160, 120), (160, 121), (160, 122), (160, 126), (161, 103), (161, 105), (161, 110), (161, 112), (161, 115), (161, 116), (161, 117), (161, 118), (161, 119), (161, 120), (161, 121), (161, 122), (161, 123), (161, 125), (162, 108), (162, 111), (162, 115), (162, 116), (162, 117), (162, 118), (162, 120), (162, 121), (162, 122), (162, 123), (162, 125), (163, 109), (163, 115), (163, 116), (163, 117), (163, 119), (163, 125), (164, 111), (164, 113), (164, 115), (164, 116), (164, 118), (164, 121), (164, 122), (164, 124), (165, 114), (165, 117), (166, 115), (166, 116), ) coordinates_FE3E96 = ((122, 112), (122, 113), (122, 114), (122, 115), (122, 116), (122, 117), (122, 118), (122, 119), (122, 120), (122, 121), (122, 122), (122, 123), (122, 124), (122, 125), (122, 126), (122, 128), (123, 107), (123, 109), (123, 110), (123, 111), (123, 112), (123, 128), (124, 106), (124, 112), (124, 113), (124, 114), (124, 115), (124, 116), (124, 117), (124, 118), (124, 119), (124, 120), (124, 121), (124, 122), (124, 123), (124, 124), (124, 125), (124, 127), (125, 101), (125, 104), (125, 107), (125, 108), (125, 109), (125, 110), (125, 111), (125, 112), (125, 113), (125, 114), (125, 115), (125, 116), (125, 117), (125, 118), (125, 119), (125, 120), (125, 121), (125, 122), (125, 123), (125, 124), (125, 125), (125, 127), (126, 100), (126, 106), (126, 107), (126, 108), (126, 109), (126, 110), (126, 111), (126, 112), (126, 113), (126, 114), (126, 115), (126, 116), (126, 117), (126, 118), (126, 119), (126, 120), (126, 121), (126, 122), (126, 123), (126, 124), (126, 125), (126, 127), (127, 100), (127, 102), (127, 103), (127, 104), (127, 105), (127, 106), (127, 107), (127, 108), (127, 109), (127, 110), (127, 111), (127, 112), (127, 113), (127, 114), (127, 115), (127, 116), (127, 117), (127, 118), (127, 119), (127, 120), (127, 121), (127, 122), (127, 123), (127, 124), (127, 125), (127, 127), (128, 100), (128, 104), (128, 105), (128, 106), (128, 107), (128, 108), (128, 109), (128, 110), (128, 111), (128, 112), (128, 113), (128, 114), (128, 115), (128, 116), (128, 117), (128, 118), (128, 119), (128, 120), (128, 121), (128, 122), (128, 123), (128, 124), (128, 125), (128, 127), (129, 100), (129, 102), (129, 105), (129, 106), (129, 107), (129, 108), (129, 109), (129, 110), (129, 111), (129, 112), (129, 113), (129, 114), (129, 115), (129, 120), (129, 121), (129, 122), (129, 123), (129, 124), (129, 125), (129, 127), (130, 100), (130, 104), (130, 106), (130, 107), (130, 108), (130, 109), (130, 110), (130, 111), (130, 112), (130, 113), (130, 116), (130, 117), (130, 118), (130, 119), (130, 121), (130, 122), (130, 123), (130, 124), (130, 125), (130, 127), (131, 105), (131, 115), (131, 120), (131, 122), (131, 123), (131, 124), (131, 125), (131, 127), (132, 106), (132, 108), (132, 109), (132, 110), (132, 111), (132, 112), (132, 113), (132, 114), (132, 121), (132, 123), (132, 124), (132, 125), (132, 127), (133, 122), (133, 124), (133, 126), (134, 122), (134, 126), (135, 123), ) coordinates_AED8E6 = ((154, 133), (154, 135), (155, 132), (155, 136), (156, 133), (156, 137), (157, 134), (157, 138), (158, 136), (158, 139), (159, 137), (159, 141), (160, 138), (161, 140), ) coordinates_AF3060 = ((122, 141), (122, 143), (122, 146), (122, 147), (123, 140), (123, 148), (123, 150), (124, 140), (124, 142), (124, 143), (124, 144), (124, 145), (124, 146), (124, 147), (124, 150), (125, 140), (125, 144), (125, 145), (125, 146), (125, 150), (126, 139), (126, 142), (126, 143), (126, 144), (126, 145), (126, 148), (127, 139), (127, 144), (127, 146), (128, 139), (128, 140), (128, 144), (128, 145), (129, 139), ) coordinates_A62A2A = ((146, 135), (146, 136), (146, 141), (147, 136), (147, 138), (147, 139), (147, 141), (148, 137), (148, 141), (149, 137), (149, 139), (149, 141), (150, 137), (150, 139), (150, 141), (151, 137), (151, 139), (151, 141), (152, 134), (152, 138), (152, 139), (152, 141), (153, 136), (153, 139), (153, 141), (154, 138), (154, 140), (154, 141), (154, 142), (155, 139), (155, 142), (156, 140), (156, 142), (157, 141), ) coordinates_ACFF2F = ((128, 148), (128, 150), (129, 146), (129, 150), (130, 144), (130, 148), (130, 149), (130, 151), (131, 145), (131, 147), (131, 148), (131, 149), (131, 151), (132, 145), (132, 147), (132, 148), (132, 151), (133, 146), (133, 150), (134, 146), (135, 140), (135, 141), (135, 145), (135, 147), (136, 139), (136, 142), (136, 143), (136, 147), (137, 138), (137, 140), (137, 141), (137, 146), (138, 138), (138, 140), (138, 141), (138, 142), (138, 145), (139, 137), (139, 139), (139, 140), (139, 141), (139, 143), (140, 137), (140, 139), (140, 140), (140, 142), (141, 137), (141, 139), (141, 140), (141, 141), (141, 142), (142, 137), (142, 139), (142, 141), (143, 136), (143, 138), (143, 139), (143, 141), (144, 136), (144, 141), (145, 138), (145, 140), ) coordinates_FFDAB9 = ((102, 88), (102, 89), (103, 87), (103, 89), (104, 87), (104, 89), (105, 86), (105, 89), (105, 93), (105, 95), (105, 96), (105, 98), (106, 85), (106, 87), (106, 88), (106, 89), (106, 99), (107, 85), (107, 87), (107, 88), (107, 89), (107, 90), (107, 91), (107, 93), (107, 96), (107, 99), (108, 85), (108, 86), (108, 87), (108, 88), (108, 89), (108, 90), (108, 92), (108, 94), (109, 84), (109, 86), (109, 87), (109, 88), (109, 89), (109, 90), (109, 91), (109, 93), (110, 84), (110, 86), (110, 87), (110, 88), (110, 89), (110, 90), (110, 92), (111, 83), (111, 85), (111, 86), (111, 87), (111, 88), (111, 89), (111, 91), (112, 83), (112, 85), (112, 86), (112, 87), (112, 88), (112, 90), (113, 82), (113, 84), (113, 85), (113, 86), (113, 87), (113, 89), (114, 82), (114, 84), (114, 85), (114, 86), (114, 88), (115, 82), (115, 84), (115, 85), (115, 87), (116, 82), (116, 86), (117, 83), (117, 85), ) coordinates_DA70D6 = ((110, 126), (110, 127), (111, 128), (111, 132), (112, 109), (112, 111), (112, 127), (112, 130), (112, 131), (112, 133), (113, 96), (113, 98), (113, 99), (113, 100), (113, 101), (113, 102), (113, 103), (113, 104), (113, 105), (113, 106), (113, 107), (113, 109), (113, 128), (113, 133), (114, 95), (114, 107), (114, 129), (114, 131), (114, 133), (115, 95), (115, 97), (115, 98), (115, 99), (115, 100), (115, 101), (115, 102), (115, 103), (115, 105), (115, 130), (115, 133), (116, 94), (116, 96), (116, 97), (116, 98), (116, 99), (116, 100), (116, 101), (116, 102), (116, 104), (116, 133), (117, 88), (117, 90), (117, 91), (117, 92), (117, 95), (117, 96), (117, 97), (117, 98), (117, 99), (117, 100), (117, 101), (117, 103), (117, 131), (117, 133), (118, 87), (118, 94), (118, 95), (118, 96), (118, 97), (118, 103), (118, 132), (118, 133), (119, 84), (119, 98), (119, 99), (119, 100), (119, 102), (119, 133), (120, 85), (120, 88), (120, 89), (120, 90), (120, 91), (120, 92), (120, 93), (120, 94), (120, 95), (120, 97), ) coordinates_00CED1 = ((78, 123), (78, 125), (78, 126), (78, 128), (79, 122), (79, 128), (80, 121), (80, 123), (80, 124), (80, 125), (80, 127), (81, 114), (81, 116), (81, 117), (81, 118), (81, 119), (81, 120), (81, 122), (81, 123), (81, 124), (81, 125), (81, 127), (82, 114), (82, 121), (82, 122), (82, 123), (82, 124), (82, 126), (83, 108), (83, 110), (83, 115), (83, 116), (83, 117), (83, 118), (83, 119), (83, 120), (83, 121), (83, 122), (83, 123), (83, 124), (83, 126), (84, 107), (84, 111), (84, 114), (84, 115), (84, 116), (84, 119), (84, 120), (84, 121), (84, 122), (84, 123), (84, 124), (84, 126), (85, 101), (85, 102), (85, 108), (85, 109), (85, 113), (85, 114), (85, 115), (85, 116), (85, 118), (85, 120), (85, 121), (85, 122), (85, 123), (85, 125), (86, 99), (86, 103), (86, 104), (86, 105), (86, 107), (86, 108), (86, 110), (86, 111), (86, 112), (86, 113), (86, 114), (86, 116), (86, 119), (86, 125), (87, 99), (87, 101), (87, 102), (87, 103), (87, 106), (87, 108), (87, 111), (87, 112), (87, 114), (87, 116), (87, 120), (87, 121), (87, 122), (87, 123), (87, 125), (88, 98), (88, 100), (88, 101), (88, 104), (88, 105), (88, 106), (88, 108), (88, 113), (88, 115), (89, 98), (89, 100), (89, 103), (89, 105), (89, 106), (89, 107), (89, 108), (89, 109), (89, 110), (89, 111), (89, 112), (89, 115), (90, 99), (90, 100), (90, 104), (90, 106), (90, 107), (90, 109), (90, 113), (90, 114), (91, 99), (91, 100), (91, 105), (91, 108), (92, 99), (92, 100), (92, 106), (92, 107), (93, 99), (93, 100), (94, 99), (94, 100), (94, 112), (95, 98), (95, 100), (95, 101), (95, 106), (95, 107), (95, 108), (95, 109), (95, 110), (95, 113), (95, 119), (96, 92), (96, 94), (96, 95), (96, 96), (96, 97), (96, 98), (96, 99), (96, 100), (96, 103), (96, 104), (96, 105), (96, 111), (96, 113), (97, 98), (97, 99), (97, 100), (97, 101), (97, 106), (97, 107), (97, 108), (97, 109), (97, 110), (97, 111), (97, 113), (98, 92), (98, 94), (98, 95), (98, 97), (98, 98), (98, 99), (98, 100), (98, 101), (98, 102), (98, 103), (98, 104), (98, 105), (98, 106), (98, 107), (98, 108), (98, 109), (98, 110), (98, 111), (98, 113), (99, 92), (99, 96), (99, 98), (99, 99), (99, 100), (99, 101), (99, 102), (99, 103), (99, 104), (99, 105), (99, 106), (99, 107), (99, 108), (99, 109), (99, 110), (99, 112), (100, 92), (100, 97), (100, 99), (100, 103), (100, 107), (100, 108), (100, 109), (100, 110), (100, 112), (101, 91), (101, 93), (101, 97), (101, 101), (101, 102), (101, 103), (101, 104), (101, 105), (101, 108), (101, 109), (101, 110), (101, 112), (102, 92), (102, 95), (102, 107), (102, 112), (103, 93), (103, 95), (103, 96), (103, 98), (103, 108), (103, 111), (103, 112), ) coordinates_A120F0 = ((121, 132), (121, 135), (121, 136), (122, 138), (123, 130), (123, 132), (123, 133), (123, 134), (123, 135), (123, 136), (123, 138), (124, 129), (124, 132), (124, 133), (124, 134), (124, 135), (124, 137), (125, 129), (125, 131), (125, 132), (125, 133), (125, 137), (126, 129), (126, 131), (126, 132), (126, 134), (126, 137), (127, 129), (127, 131), (127, 133), (127, 137), (128, 129), (128, 132), (128, 137), (129, 129), (129, 131), (130, 129), (130, 131), (131, 129), (131, 130), (132, 129), (132, 130), (133, 129), (134, 128), ) coordinates_A52A2A = ((90, 137), (90, 138), (90, 140), (91, 136), (91, 140), (92, 131), (92, 133), (92, 134), (92, 137), (92, 138), (92, 140), (93, 131), (93, 133), (93, 136), (93, 137), (93, 138), (93, 140), (94, 134), (94, 135), (94, 136), (94, 137), (94, 138), (94, 140), (95, 136), (95, 140), (96, 136), (96, 140), (97, 135), (97, 137), (98, 135), ) coordinates_ADFF2F = ((98, 139), (99, 137), (99, 141), (100, 134), (100, 136), (100, 139), (100, 141), (101, 135), (101, 139), (101, 141), (102, 137), (102, 141), (103, 139), (103, 142), (104, 140), (104, 142), (104, 143), (105, 140), (105, 143), (106, 141), (106, 144), (107, 142), (107, 145), (108, 143), (108, 146), (109, 144), (109, 147), (110, 145), (110, 148), (111, 145), (111, 147), (111, 149), (112, 144), (112, 146), (112, 147), (112, 148), (113, 145), (113, 148), (113, 149), (113, 152), (114, 146), (114, 150), (114, 153), (115, 148), (115, 154), (116, 150), (116, 151), (116, 152), (116, 154), ) coordinates_A020F0 = ((111, 134), (112, 135), (113, 135), (113, 136), (114, 135), (114, 137), (115, 135), (116, 135), (117, 135), (117, 137), (117, 140), (118, 135), (118, 141), (119, 135), (119, 137), (119, 138), (119, 139), (119, 140), (119, 142), (120, 142), ) coordinates_B03060 = ((114, 143), (115, 142), (115, 145), (116, 142), (116, 146), (117, 143), (117, 145), (117, 148), (118, 143), (118, 145), (118, 146), (118, 149), (118, 150), (119, 144), (119, 151), (120, 145), (120, 147), (120, 148), (120, 151), (121, 149), (121, 151), ) coordinates_ACD8E6 = ((78, 130), (78, 132), (79, 130), (79, 134), (79, 136), (80, 130), (80, 132), (80, 133), (80, 138), (81, 129), (81, 131), (81, 132), (81, 133), (81, 140), (82, 129), (82, 131), (82, 132), (82, 133), (82, 134), (82, 135), (82, 136), (82, 137), (82, 138), (83, 128), (83, 130), (83, 131), (83, 133), (83, 134), (83, 137), (83, 140), (84, 128), (84, 130), (84, 131), (84, 133), (84, 137), (84, 140), (85, 128), (85, 130), (85, 133), (85, 136), (85, 138), (85, 140), (86, 128), (86, 130), (86, 133), (86, 135), (86, 137), (86, 138), (86, 140), (87, 132), (87, 133), (87, 136), (87, 140), (88, 132), (88, 137), (88, 138), (88, 140), (89, 132), (89, 134), (89, 135), (89, 136), ) coordinates_FF3E96 = ((111, 124), (112, 124), (112, 125), (113, 112), (113, 126), (114, 112), (114, 125), (115, 109), (115, 112), (115, 117), (115, 119), (115, 125), (115, 127), (116, 107), (116, 111), (116, 113), (116, 116), (116, 120), (116, 125), (116, 126), (116, 128), (117, 106), (117, 109), (117, 110), (117, 111), (117, 112), (117, 114), (117, 117), (117, 118), (117, 119), (117, 121), (117, 124), (117, 126), (117, 127), (117, 129), (118, 105), (118, 107), (118, 108), (118, 109), (118, 110), (118, 111), (118, 112), (118, 113), (118, 116), (118, 117), (118, 118), (118, 119), (118, 120), (118, 122), (118, 123), (118, 124), (118, 125), (118, 126), (118, 130), (119, 104), (119, 125), (119, 126), (119, 127), (119, 128), (119, 130), (120, 104), (120, 106), (120, 107), (120, 108), (120, 109), (120, 110), (120, 111), (120, 112), (120, 113), (120, 114), (120, 115), (120, 116), (120, 117), (120, 118), (120, 119), (120, 120), (120, 121), (120, 122), (120, 123), (120, 124), (120, 125), (120, 126), ) coordinates_7EFFD4 = ((158, 128), (159, 128), (160, 128), (161, 129), (162, 127), (162, 129), (163, 127), (163, 130), (164, 127), (164, 130), (165, 126), (165, 127), (165, 128), (165, 130), (166, 127), (166, 128), (166, 129), (166, 131), (167, 127), (167, 131), (168, 127), (168, 129), ) coordinates_B12222 = ((157, 132), (158, 130), (158, 133), (159, 131), (159, 134), (160, 131), (160, 132), (160, 135), (161, 131), (161, 132), (161, 136), (161, 137), (162, 133), (162, 136), (162, 138), (163, 132), (163, 134), (163, 137), (163, 139), (164, 132), (164, 137), (164, 139), (165, 133), (165, 138), (166, 133), (166, 135), (166, 137), )
l=[] n=int(input("enter the elements:")) for i in range(0,n): l.append(int(input())) i=0 for i in range(len(l)): for j in range(i+1,len(l)): if l[i]>l[j]: l[i],l[j]=l[j],l[i] print("sorted list is",l)
class AbstractImporter(): """ Abstract class describing a file importer """ def __init__(self, file_string, file_name=None): self.file_string = file_string self.file_name = file_name def import_data(self): raise NotImplementedError("AbstractImporter is abstract.")
# Modifying 'value_error_numbers.py' program. # Using a while loop so that the user can continue to enter numbers even if # they make a mistake by entering a non-numerical input value. print("Enter two numbers, and we will add them together.") print("Enter 'q' to quit.") while True: first_number = input("\nFirst number: ") if first_number == 'q': break second_number = input("Second number: ") try: answer = int(first_number) + int(second_number) except ValueError: print("You have entered a non-numerical input value.") else: print(answer)
# Задача 3. Вариант 50. # Напишите программу, которая выводит имя "Саид-Мурадзола Садриддин", и запрашивает его псевдоним. #Программа должна сцеплять две эти строки и выводить полученную строку, #разделяя имя и псевдоним с помощью тире. # Alekseev I.S. # 15.05.2016 name = "Саид-Мурадзола Садриддин" print("Герой нашей сегоднящней программы - " + name) alias = input("Под каким же именем мы знаем этого человека? Ваш ответ: ") #вводим Айни print("Все верно: " + name + " - " + alias) input("\n\nНажмите Enter для выхода.")
######################################### # Servo01_stop.py # categories: intro # more info @: http://myrobotlab.org/service/Intro ######################################### # uncomment for virtual hardware # Platform.setVirtual(True) # Every settings like limits / port number / controller are saved after initial use # so you can share them between differents script # servoPin01 = 4 # port = "/dev/ttyUSB0" # port = "COM15" # release a servo controller and a servo Runtime.releaseService("arduino") Runtime.releaseService("servo01") # we tell to the service what is going on # intro.isServoActivated = False ## FIXME this gives error readonly intro.broadcastState()
def anonymize(person_names, should_anonymize): """ Creates a map of person names. :param person_names: List of person names :param should_anonymize: If person names should be anonymized :return: """ person_name_dict = dict() person_counter = 1 for person_name in person_names: person_name_dict[person_name] = ("Person #" + str(person_counter)) if should_anonymize else person_name person_counter += 1 return person_name_dict
tout = np.linspace(0, 10) k_vals = 0.42, 0.17 # arbitrary in this case y0 = [1, 1, 0] yout = odeint(rhs, y0, tout, k_vals) # EXERCISE: rhs, y0, tout, k_vals
#Faça um Programa que leia três números e mostre o maior deles. valor1 = float(input("Digite o primeiro valor: ")) valor2 = float(input("Digite o segundo valor: ")) valor3 = float(input("Digite o terceiro valor: ")) valores = [valor1, valor2, valor3] print(f'O maior número é {max(valores)}')
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"Hline": "00_core.ipynb", "ImageBuffer": "00_core.ipynb", "grid_subsampling": "00_core.ipynb", "getDirctionVectorsByPCA": "00_core.ipynb", "pointsProjectAxis": "00_core.ipynb", "radiusOfCylinderByLeastSq": "00_core.ipynb", "get_start_end_line": "00_core.ipynb", "cylinderSurface": "00_core.ipynb", "extractFeathersByPointCloud": "00_core.ipynb", "pointsToRaster": "00_core.ipynb", "getCellIDByPolarCoordinates": "00_core.ipynb", "houghToRasterByCellID": "00_core.ipynb", "recordHoughLines": "00_core.ipynb", "countNumOfConsecutiveObj": "00_core.ipynb", "calRowByColViaLineEquation": "00_core.ipynb", "generateCorridorByLine": "00_core.ipynb", "generateBuffer": "00_core.ipynb", "locatePointsFromBuffer": "00_core.ipynb", "locatePointsFromBufferSlideWindow": "00_core.ipynb", "getFeaturesFromPointCloud": "00_core.ipynb", "evaluateLinesDiscontinuity": "00_core.ipynb", "constructCorridorsByHT": "00_core.ipynb", "getPointsFromSlideCorridors": "00_core.ipynb", "constructSlideCuboidsByPointCloud": "00_core.ipynb", "extractLinesFromCorridor": "00_core.ipynb", "generateSlideWindowByX": "00_core.ipynb", "extractLinesFromPointCloud": "00_core.ipynb", "secondHTandSW": "00_core.ipynb", "LPoints": "01_structure.ipynb", "generateLPByIDS": "02_functions.ipynb", "getPointsFromSource": "02_functions.ipynb", "locatePointsFromBuffer_3D": "02_functions.ipynb", "calOutlierByIQR": "02_functions.ipynb", "generateLineBordersByBuffer": "02_functions.ipynb", "extractLineFromTarget": "02_functions.ipynb", "extractLineFromTarget_dales": "02_functions.ipynb", "getVoxelKeys": "02_functions.ipynb", "filterPointsByVoxel": "02_functions.ipynb"} modules = ["core.py", "lyuds.py", "lyufunc.py"] doc_url = "https://lyuhaitao.github.io/lyutool/" git_url = "https://github.com/lyuhaitao/lyutool/tree/master/" def custom_doc_links(name): return None
#coding:utf-8 # 题目:请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续判断第二个字母。 Monday Tuesday Wednesday Thursday Friday Saturday Sunday
""" 给定一个正整数 n,将其拆分为至少两个正整数的和,并使这些整数的乘积最大化。 返回你可以获得的最大乘积。 示例 1: 输入: 2 输出: 1 解释: 2 = 1 + 1, 1 × 1 = 1。 示例 2: 输入: 10 输出: 36 解释: 10 = 3 + 3 + 4, 3 × 3 × 4 = 36。 说明: 你可以假设 n 不小于 2 且不大于 58。 """ class Solution(object): def integerBreak(self, n): """ :type n: int :rtype: int """ # 贪婪算法 if n <2 : return 0 elif n == 2: return 1 elif n == 3: return 2 timesOf3 = n // 3 # 如果最后剩下1,则加个3变成4,4>1*3 if n - timesOf3 * 3 == 1: timesOf3 -= 1 timesOf2 = (n - timesOf3*3) // 2 return pow(3, timesOf3) * pow(2, timesOf2)
# coding=utf-8 class Ranker(object): """ Сортировка ключевых слов. Можно указать свою функцию для вычисления веса ключевого слова. """ def __call__(self, terms, weight=None): if weight is None: # По умолчанию ключевые слова упорядочиваются по количеству употреблений, затем - по количеству слов. weight = lambda term: (term.count, term.word_count, term.normalized) return sorted(terms, key=weight, reverse=True)
# faça um mini-sistema que otilize o interactive help. O usuário vai digitar a fução/lib e o manual vai aparecer. Acaba quando digitar 'fim'. Utilize cores # não tive paciência pra ficar colorindo 🥱😴 def ajuda(metodo): help(metodo) print('~'*10) print(f'{"PyHelp":^10}') print('~'*10) while True: metodo = str(input('\nQual função/lib quer ver? ["stop" para sair] ')) if metodo.lower() == 'stop': break elif metodo != '': ajuda(metodo)
# Single Line Comment print('this is code') # another comment print('another piece of code') """ Multiple Line Comments this is avery big function it retrieves data it is very important REPL Repeat Evaluate Print Loop """
class Verse: """A class used to represent a verse from the bible.""" def __init__(self, text: str, number: int): """ Initialize a `Verse` object. :Parameters: - `text`: sting containing the text of the verse. - `number`: integer with the number of the verse. """ self.__text = text.strip() self.__number = number def __len__(self): return len(self.text) def __repr__(self): return f'Verse(\"{self.text}\", {self.number})' def __str__(self): return self.text @property def text(self): """String with the text of the verse.""" return self.__text @property def number(self): """Integer with the verse's number.""" return self.__number
# Enter your code here. Read input from STDIN. Print output to STDOUT a = list(map(int, input().split())) happy = 0 n = a[0] m = a[1] b = list(map(int, input().split())) b = b[0:n] c = list(map(int, input().split())) c = c[0:m] d = list(map(int, input().split())) d = d[0:m] for i in c: if b.count(i)!= 0: happy = happy + 1 for i in d: if b.count(i)!= 0: happy = happy - 1 print(happy)
# Small alphabet w using fucntion def for_w(): """ *'s printed in the shape of w """ for row in range(5): for col in range(9): if col% 8 ==0 or row+col ==4 or col -row ==4: print('*',end=' ') else: print(' ',end=' ') print() def while_w(): """ *'s printed in the Shape of Small w """ row =0 while row <5: col =0 while col <9: if col% 8 ==0 or row+col ==4 or col -row ==4: print('*',end=' ') else: print(' ',end=' ') col+=1 print() row +=1 while_w()
#!/usr/bin/python # -*- coding: utf-8 -*- # === About ============================================================================================================ """ readEnteredText.py Copyright © 2017 Yuto Mizutani. This software is released under the MIT License. Version: 1.0.0 TranslateAuthors: Yuto Mizutani E-mail: [email protected] Website: http://operantroom.com Created: 2017/12/07 Device: MacBook Pro (Retina, 13-inch, Mid 2015) OS: macOS Serria version 10.12.6 IDE: PyCharm Community Edition 2017.2.4 Python: 3.6.1 """ # --- References --- # --- notes --- # --- Information --- # --- Circumstances --- # === import =========================================================================================================== """ Standard library """ """ Third party library """ """ Local library """ # === CONSTANTS ======================================================================================================== # === User Parameters ================================================================================================== # === variables ======================================================================================================== # ====================================================================================================================== class ReadEnteredTextImpl: """ If user display_input, drop filesPath then return files, exit then return None """ # -- constants -- EXIT_TEXTS = ['e', '-e', 'exit', 'exit()', 'Exit', 'Exit()'] # -- variables -- __display_input_instructions = 'Enter the characters...' __display_input_text = '> ' __display_output_text = '>> Read: ' def __init__(self, display_input_instructions=None, display_input_text=None, display_output_text=None): # None:Default text, (Any text):Change text, False:No display_output if display_input_instructions is not None: self.__display_input_instructions = display_input_instructions if display_input_text is not None: self.__display_input_text = display_input_text if display_output_text is not None: self.__display_output_text = display_output_text def read(self)->str or None: """ If user display_input, drop filesPath then return files, exit then return None """ if self.__display_input_instructions is not False: print(self.__display_input_instructions) if self.__display_input_text is False: self.__display_input_text = '' entered_str = input(self.__display_input_text) if self.__decision_exit(entered_str): # if user display_inputs exit meaning then exit return None else: if self.__display_output_text is not False: print('{0}{1}'.format(self.__display_output_text, entered_str)) return entered_str def __decision_exit(self, text)->bool: # decision match strings argument and EXIT_TEXTS for exit_text in self.EXIT_TEXTS: if text == exit_text: return True return False # ====================================================================================================================== if __name__ == '__main__': print('-STAND ALONE MODE- readEnteredText.py') print() main = ReadEnteredTextImpl() while True: text = main.read() if text is None: # exit break
#Embedded file name: ACEStream\Video\defs.pyo PLAYBACKMODE_INTERNAL = 0 PLAYBACKMODE_EXTERNAL_DEFAULT = 1 PLAYBACKMODE_EXTERNAL_MIME = 2 OTHERTORRENTS_STOP_RESTART = 0 OTHERTORRENTS_STOP = 1 OTHERTORRENTS_CONTINUE = 2 MEDIASTATE_PLAYING = 1 MEDIASTATE_PAUSED = 2 MEDIASTATE_STOPPED = 3 BGP_STATE_IDLE = 0 BGP_STATE_PREBUFFERING = 1 BGP_STATE_DOWNLOADING = 2 BGP_STATE_BUFFERING = 3 BGP_STATE_COMPLETED = 4 BGP_STATE_HASHCHECKING = 5 BGP_STATE_ERROR = 6
src = Split(''' starterkitgui.c ''') component = aos_component('starterkitgui', src) component.add_comp_deps('kernel/yloop', 'tools/cli') component.add_global_macros('AOS_NO_WIFI')
""" Program for Print Number series without using any loop Problem – Givens Two number N and K, our task is to subtract a number K from N until number(N) is greater than zero, once the N becomes negative or zero then we start adding K until that number become the original number(N). Note : Not allow to use any loop. Examples : Input : N = 15 K = 5 Output : 15 10 5 0 1 5 10 15 Explanation – We can do it using recursion idea is that we call the function again and again until N is greater than zero (in every function call we subtract N by K). Once the number becomes negative or zero we start adding K in every function call until the number becomes the original number. Here we use a single function for both addition and subtraction but to switch between addition or subtraction function we used a Boolean flag. """ def PrintNumber(N, Original, K, flag): print(N, end = " ") if (N <= 0): if(flag==0): flag = 1 else: flag = 0 # base condition for if (N == Original and (not(flag))): return # if flag is true if (flag == True): PrintNumber(N - K, Original, K, flag) return # second case (Addition ) if (not(flag)): PrintNumber(N + K, Original, K, flag) return N = 20 K = 6 PrintNumber(N, N, K, True)
def saludar(): return "Hola mundo" saludar() print(saludar()) print('----------') m = saludar() print(m) print('------------') def saludo(nombre, mensaje='hola '): print(mensaje, nombre) saludo('roberto')
# Not finished rows = int(input()) array = [[0 for x in range(3)] for y in range(rows)] for i in range(rows): line = [float(i) for i in input().split()] for j in range(3): array[i][j] = int(line[j]) totalcount = 0 for k in range(rows): counter=array[k][0] +array[k][1] +array[k][2] if(counter >= 2): totalcount += 1 print(str(totalcount)) #bur
""" Escreva um programa que leia a velocidade de um carro. se ele ultrapassar 80km/h, mostre uma mensagem dizendo que ele foi multado A multa vai custar R$7,00 por km acima do limite """ ve = int(input('Informe a velocidade que passou pelo radar: ')) if ve > 80: multa = (ve - 80) * 7 print(f'Você será multado em R${multa:.2f}') else: print(f'Parabéns você respeitou a velocidade.')
def find_ranges(nums): if not nums: return [] first = last = nums[0] ranges = [] def append_range(first, last): ranges.append('{}->{}'.format(first, last)) for num in nums: if abs(num - last) > 1: append_range(first, last) first = num last = num # Remaining append_range(first, last) return ranges
''' def find(lf_link,l1,l2): lf = [lf_link,[]] l1_title = l1[1] l2_title = l2[1] #将lf_link中的链接按照索引寻找到对应的标题和文本,如果在l1_title与l2_title冲突,则选择字数多者,并输出[链接,标题] for i in lf_link: if i in l1_title: lf[1].append([i,l1_title[l1_title.index(i)]]) elif i in l2_title: lf[1].append([i,l2_title[l2_title.index(i)]]) else: lf[1].append([i,None]) return lf ''' def inone(l1,l2): l1_link = l1[0] l2_link = l2[0] #将l1_link和l2_link去重 l1_link = list(set(l1_link)) l2_link = list(set(l2_link)) #将l1_link和l2_link用字典存储从1开始的索引 l1_link_dict = {} l2_link_dict = {} for i in range(len(l1_link)): l1_link_dict[l1_link[i]] = i+1 for i in range(len(l2_link)): l2_link_dict[l2_link[i]] = i+1 #将l1_link和l2_link的键合并至lf_link一个字典,如果键有重复,则取两个索引的平均值作为索引,否则将索引乘以1.5作为索引 lf_link = {} for i in l1_link: if i in l2_link: lf_link[i] = (l1_link_dict[i]+l2_link_dict[i])/2 else: lf_link[i] = l1_link_dict[i]*1.5 for i in l2_link: if i in l1_link: continue else: lf_link[i] = l2_link_dict[i]*1.5 #将lf_link按照索引排序,从小到大,如果有相同则按l1_link_dict中顺序排序,如果l1_link_dict没有相同则按l2_link_dict中顺序排序 lf_link = sorted(lf_link.items(),key=lambda x:x[1]) lf_link = [i[0] for i in lf_link] #return find(lf_link,l1,l2) return [lf_link] ''' #测试上面的程序 l1 = [['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'],['aaa','bbb','ccc','ddd','eee','fff','ggg','hhh','iii','jjj','kkk','l','m','bbb','ccc','ddd','eee','fff','ggg','hhh','iii','jjj','kkk','l']]] #乱序的l1 l2 = [['a','d','e','f','u','c','k','y','o','u','m','a','n'],[['1','2','3','4','5','6','7','8','9','10','11','12','13'],['aaa','bbb','ccc','ddd','eee','fff','ggg','hhh','iii','jjj','kkk','l','m']]] print(inone(l1,l2)) ''' def debuglist(list): # list[0]和list[1]的项目数中如果不相同,将数量多的列表从后面删除到相同项目数 list_link = list[0] list_title = list[1] if len(list_link) != len(list_title): if len(list_link) > len(list_title): list_link = list_link[:len(list_title)] else: list_title = list_title[:len(list_link)] return [list_link,list_title]
# 77. Combinations # Time: k*nCk (Review: nCk combinations each of length k) # Space: k*nCk class Solution: def combine(self, n: int, k: int) -> List[List[int]]: if n==0: return [] if k==0: return [[]] if k==1: return [[i] for i in range(1,n+1)] without_n = self.combine(n-1, k) with_n = self.combine(n-1, k-1) for index in range(len(with_n)): with_n[index] = [n]+with_n[index] return without_n + with_n
""" PASSENGERS """ numPassengers = 3190 passenger_arriving = ( (5, 7, 2, 5, 1, 0, 5, 10, 5, 3, 2, 0), # 0 (6, 14, 4, 3, 1, 0, 3, 11, 5, 4, 2, 0), # 1 (3, 6, 6, 4, 3, 0, 7, 7, 5, 3, 1, 0), # 2 (2, 1, 6, 3, 1, 0, 7, 8, 10, 3, 2, 0), # 3 (4, 4, 6, 2, 1, 0, 4, 6, 7, 2, 2, 0), # 4 (5, 12, 7, 4, 1, 0, 12, 7, 2, 3, 1, 0), # 5 (4, 7, 4, 2, 4, 0, 6, 3, 3, 3, 7, 0), # 6 (3, 10, 8, 3, 1, 0, 10, 9, 4, 4, 2, 0), # 7 (4, 6, 10, 4, 3, 0, 8, 6, 3, 8, 2, 0), # 8 (8, 9, 8, 3, 1, 0, 5, 8, 3, 7, 5, 0), # 9 (7, 12, 8, 6, 1, 0, 7, 4, 9, 6, 0, 0), # 10 (2, 9, 9, 5, 1, 0, 5, 12, 4, 4, 4, 0), # 11 (3, 15, 13, 2, 2, 0, 7, 6, 5, 4, 1, 0), # 12 (2, 8, 5, 3, 0, 0, 7, 12, 6, 4, 3, 0), # 13 (2, 11, 5, 4, 3, 0, 7, 8, 5, 1, 0, 0), # 14 (3, 9, 2, 6, 3, 0, 7, 5, 9, 9, 7, 0), # 15 (3, 8, 7, 3, 2, 0, 4, 12, 7, 6, 1, 0), # 16 (3, 5, 5, 5, 0, 0, 6, 5, 6, 5, 4, 0), # 17 (6, 6, 4, 4, 2, 0, 7, 5, 3, 5, 0, 0), # 18 (4, 9, 10, 7, 2, 0, 7, 11, 3, 6, 6, 0), # 19 (5, 9, 8, 2, 1, 0, 7, 7, 6, 3, 3, 0), # 20 (2, 9, 8, 4, 2, 0, 9, 7, 10, 2, 0, 0), # 21 (2, 12, 5, 2, 3, 0, 4, 9, 7, 6, 2, 0), # 22 (6, 13, 11, 3, 2, 0, 6, 4, 5, 6, 4, 0), # 23 (3, 12, 6, 4, 1, 0, 8, 9, 8, 6, 7, 0), # 24 (8, 11, 5, 4, 0, 0, 9, 9, 9, 2, 4, 0), # 25 (6, 8, 3, 1, 4, 0, 2, 10, 5, 5, 2, 0), # 26 (2, 10, 4, 3, 1, 0, 10, 11, 4, 6, 2, 0), # 27 (2, 16, 13, 1, 1, 0, 0, 5, 5, 3, 3, 0), # 28 (6, 9, 10, 5, 1, 0, 8, 11, 6, 4, 2, 0), # 29 (4, 15, 9, 5, 1, 0, 10, 9, 6, 2, 0, 0), # 30 (3, 9, 3, 3, 2, 0, 4, 7, 5, 11, 4, 0), # 31 (1, 7, 11, 3, 2, 0, 4, 12, 5, 2, 3, 0), # 32 (10, 4, 6, 1, 2, 0, 9, 11, 7, 5, 1, 0), # 33 (5, 7, 6, 6, 3, 0, 4, 12, 9, 7, 0, 0), # 34 (5, 8, 8, 3, 2, 0, 4, 10, 8, 6, 1, 0), # 35 (3, 3, 8, 3, 1, 0, 5, 8, 4, 2, 2, 0), # 36 (2, 17, 10, 6, 1, 0, 10, 9, 4, 4, 2, 0), # 37 (5, 10, 5, 1, 2, 0, 7, 8, 11, 8, 3, 0), # 38 (6, 13, 10, 3, 2, 0, 5, 10, 5, 2, 3, 0), # 39 (3, 6, 9, 5, 1, 0, 8, 12, 9, 2, 1, 0), # 40 (8, 11, 4, 4, 4, 0, 3, 12, 5, 4, 1, 0), # 41 (2, 6, 4, 2, 3, 0, 11, 8, 8, 5, 2, 0), # 42 (2, 9, 12, 2, 5, 0, 3, 6, 7, 9, 4, 0), # 43 (4, 13, 8, 3, 1, 0, 4, 8, 5, 3, 2, 0), # 44 (1, 11, 8, 1, 1, 0, 5, 13, 3, 1, 2, 0), # 45 (9, 14, 7, 3, 3, 0, 6, 5, 6, 10, 1, 0), # 46 (5, 10, 12, 4, 3, 0, 4, 6, 5, 7, 2, 0), # 47 (5, 9, 10, 2, 3, 0, 8, 13, 5, 4, 2, 0), # 48 (3, 11, 7, 5, 1, 0, 4, 14, 5, 9, 2, 0), # 49 (7, 13, 14, 3, 1, 0, 13, 11, 4, 5, 0, 0), # 50 (12, 9, 7, 4, 3, 0, 7, 8, 10, 5, 2, 0), # 51 (4, 9, 4, 6, 2, 0, 3, 4, 12, 6, 2, 0), # 52 (5, 9, 6, 6, 1, 0, 4, 6, 9, 7, 1, 0), # 53 (4, 6, 10, 7, 4, 0, 1, 7, 4, 2, 0, 0), # 54 (4, 8, 6, 2, 1, 0, 9, 5, 6, 2, 1, 0), # 55 (5, 11, 12, 5, 4, 0, 4, 6, 5, 3, 0, 0), # 56 (3, 13, 5, 3, 2, 0, 10, 14, 5, 8, 2, 0), # 57 (3, 8, 2, 4, 4, 0, 4, 9, 7, 6, 2, 0), # 58 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), # 59 ) station_arriving_intensity = ( (3.7095121817383676, 9.515044981060607, 11.19193043059126, 8.87078804347826, 10.000240384615385, 6.659510869565219), # 0 (3.7443308140669203, 9.620858238197952, 11.252381752534994, 8.920190141908213, 10.075193108974359, 6.657240994867151), # 1 (3.7787518681104277, 9.725101964085297, 11.31139817195087, 8.968504830917876, 10.148564102564103, 6.654901690821256), # 2 (3.8127461259877085, 9.827663671875001, 11.368936576156813, 9.01569089673913, 10.22028605769231, 6.652493274456523), # 3 (3.8462843698175795, 9.928430874719417, 11.424953852470724, 9.061707125603865, 10.290291666666668, 6.6500160628019325), # 4 (3.879337381718857, 10.027291085770905, 11.479406888210512, 9.106512303743962, 10.358513621794872, 6.647470372886473), # 5 (3.9118759438103607, 10.12413181818182, 11.53225257069409, 9.150065217391306, 10.424884615384617, 6.644856521739131), # 6 (3.943870838210907, 10.218840585104518, 11.58344778723936, 9.19232465277778, 10.489337339743592, 6.64217482638889), # 7 (3.975292847039314, 10.311304899691358, 11.632949425164242, 9.233249396135266, 10.551804487179488, 6.639425603864735), # 8 (4.006112752414399, 10.401412275094698, 11.680714371786634, 9.272798233695653, 10.61221875, 6.636609171195653), # 9 (4.03630133645498, 10.489050224466892, 11.72669951442445, 9.310929951690824, 10.670512820512823, 6.633725845410628), # 10 (4.065829381279876, 10.5741062609603, 11.7708617403956, 9.347603336352659, 10.726619391025642, 6.630775943538648), # 11 (4.094667669007903, 10.656467897727273, 11.813157937017996, 9.382777173913043, 10.780471153846154, 6.627759782608695), # 12 (4.122786981757876, 10.736022647920176, 11.85354499160954, 9.416410250603866, 10.832000801282053, 6.624677679649759), # 13 (4.15015810164862, 10.81265802469136, 11.891979791488144, 9.448461352657004, 10.881141025641025, 6.621529951690821), # 14 (4.1767518107989465, 10.886261541193182, 11.928419223971721, 9.478889266304348, 10.92782451923077, 6.618316915760871), # 15 (4.202538891327675, 10.956720710578002, 11.96282017637818, 9.507652777777778, 10.971983974358976, 6.61503888888889), # 16 (4.227490125353625, 11.023923045998176, 11.995139536025421, 9.53471067330918, 11.013552083333336, 6.611696188103866), # 17 (4.25157629499561, 11.087756060606061, 12.025334190231364, 9.560021739130436, 11.052461538461543, 6.608289130434783), # 18 (4.274768182372451, 11.148107267554012, 12.053361026313912, 9.58354476147343, 11.088645032051284, 6.604818032910629), # 19 (4.297036569602966, 11.204864179994388, 12.079176931590974, 9.60523852657005, 11.122035256410259, 6.601283212560387), # 20 (4.318352238805971, 11.257914311079544, 12.102738793380466, 9.625061820652174, 11.152564903846153, 6.597684986413044), # 21 (4.338685972100283, 11.307145173961842, 12.124003499000287, 9.642973429951692, 11.180166666666667, 6.5940236714975855), # 22 (4.358008551604722, 11.352444281793632, 12.142927935768354, 9.658932140700484, 11.204773237179488, 6.590299584842997), # 23 (4.3762907594381035, 11.393699147727272, 12.159468991002571, 9.672896739130437, 11.226317307692307, 6.586513043478261), # 24 (4.393503377719247, 11.430797284915124, 12.173583552020853, 9.684826011473431, 11.244731570512819, 6.582664364432368), # 25 (4.409617188566969, 11.46362620650954, 12.185228506141103, 9.694678743961353, 11.259948717948719, 6.5787538647343), # 26 (4.424602974100088, 11.492073425662877, 12.194360740681233, 9.702413722826089, 11.271901442307694, 6.574781861413045), # 27 (4.438431516437421, 11.516026455527497, 12.200937142959157, 9.707989734299519, 11.280522435897437, 6.570748671497586), # 28 (4.4510735976977855, 11.535372809255753, 12.204914600292774, 9.711365564613528, 11.285744391025641, 6.566654612016909), # 29 (4.4625, 11.55, 12.20625, 9.7125, 11.287500000000001, 6.562500000000001), # 30 (4.47319183983376, 11.56215031960227, 12.205248928140096, 9.712295118464054, 11.286861125886526, 6.556726763701484), # 31 (4.4836528452685425, 11.574140056818184, 12.202274033816424, 9.711684477124184, 11.28495815602837, 6.547834661835751), # 32 (4.493887715792838, 11.585967720170455, 12.197367798913046, 9.710674080882354, 11.281811569148937, 6.535910757121439), # 33 (4.503901150895141, 11.597631818181819, 12.19057270531401, 9.709269934640524, 11.277441843971632, 6.521042112277196), # 34 (4.513697850063939, 11.609130859374998, 12.181931234903383, 9.707478043300654, 11.27186945921986, 6.503315790021656), # 35 (4.523282512787724, 11.62046335227273, 12.171485869565219, 9.705304411764708, 11.265114893617023, 6.482818853073463), # 36 (4.532659838554988, 11.631627805397729, 12.159279091183576, 9.70275504493464, 11.257198625886524, 6.4596383641512585), # 37 (4.5418345268542195, 11.642622727272729, 12.145353381642513, 9.699835947712419, 11.248141134751775, 6.433861385973679), # 38 (4.5508112771739135, 11.653446626420456, 12.129751222826087, 9.696553125000001, 11.23796289893617, 6.40557498125937), # 39 (4.559594789002558, 11.664098011363638, 12.11251509661836, 9.692912581699348, 11.22668439716312, 6.37486621272697), # 40 (4.568189761828645, 11.674575390625, 12.093687484903382, 9.68892032271242, 11.214326108156028, 6.34182214309512), # 41 (4.576600895140665, 11.684877272727276, 12.07331086956522, 9.684582352941177, 11.2009085106383, 6.3065298350824595), # 42 (4.584832888427111, 11.69500216619318, 12.051427732487923, 9.679904677287583, 11.186452083333334, 6.26907635140763), # 43 (4.592890441176471, 11.704948579545455, 12.028080555555556, 9.674893300653595, 11.17097730496454, 6.229548754789272), # 44 (4.600778252877237, 11.714715021306818, 12.003311820652177, 9.669554227941177, 11.15450465425532, 6.188034107946028), # 45 (4.6085010230179035, 11.724300000000003, 11.97716400966184, 9.663893464052288, 11.137054609929079, 6.144619473596536), # 46 (4.616063451086957, 11.733702024147728, 11.9496796044686, 9.65791701388889, 11.118647650709221, 6.099391914459438), # 47 (4.623470236572891, 11.742919602272728, 11.920901086956523, 9.651630882352942, 11.099304255319149, 6.052438493253375), # 48 (4.630726078964194, 11.751951242897727, 11.890870939009663, 9.645041074346407, 11.079044902482272, 6.003846272696985), # 49 (4.6378356777493615, 11.760795454545454, 11.85963164251208, 9.638153594771243, 11.057890070921987, 5.953702315508913), # 50 (4.6448037324168805, 11.769450745738636, 11.827225679347826, 9.630974448529413, 11.035860239361703, 5.902093684407797), # 51 (4.651634942455243, 11.777915625, 11.793695531400965, 9.623509640522876, 11.012975886524824, 5.849107442112278), # 52 (4.658334007352941, 11.786188600852274, 11.759083680555555, 9.615765175653596, 10.989257491134753, 5.794830651340996), # 53 (4.6649056265984665, 11.79426818181818, 11.723432608695653, 9.60774705882353, 10.964725531914894, 5.739350374812594), # 54 (4.671354499680307, 11.802152876420456, 11.686784797705313, 9.599461294934642, 10.939400487588653, 5.682753675245711), # 55 (4.677685326086957, 11.809841193181818, 11.649182729468599, 9.59091388888889, 10.913302836879433, 5.625127615358988), # 56 (4.683902805306906, 11.817331640625003, 11.610668885869565, 9.582110845588236, 10.886453058510638, 5.566559257871065), # 57 (4.690011636828645, 11.824622727272727, 11.57128574879227, 9.573058169934642, 10.858871631205675, 5.507135665500583), # 58 (0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 59 ) passenger_arriving_acc = ( (5, 7, 2, 5, 1, 0, 5, 10, 5, 3, 2, 0), # 0 (11, 21, 6, 8, 2, 0, 8, 21, 10, 7, 4, 0), # 1 (14, 27, 12, 12, 5, 0, 15, 28, 15, 10, 5, 0), # 2 (16, 28, 18, 15, 6, 0, 22, 36, 25, 13, 7, 0), # 3 (20, 32, 24, 17, 7, 0, 26, 42, 32, 15, 9, 0), # 4 (25, 44, 31, 21, 8, 0, 38, 49, 34, 18, 10, 0), # 5 (29, 51, 35, 23, 12, 0, 44, 52, 37, 21, 17, 0), # 6 (32, 61, 43, 26, 13, 0, 54, 61, 41, 25, 19, 0), # 7 (36, 67, 53, 30, 16, 0, 62, 67, 44, 33, 21, 0), # 8 (44, 76, 61, 33, 17, 0, 67, 75, 47, 40, 26, 0), # 9 (51, 88, 69, 39, 18, 0, 74, 79, 56, 46, 26, 0), # 10 (53, 97, 78, 44, 19, 0, 79, 91, 60, 50, 30, 0), # 11 (56, 112, 91, 46, 21, 0, 86, 97, 65, 54, 31, 0), # 12 (58, 120, 96, 49, 21, 0, 93, 109, 71, 58, 34, 0), # 13 (60, 131, 101, 53, 24, 0, 100, 117, 76, 59, 34, 0), # 14 (63, 140, 103, 59, 27, 0, 107, 122, 85, 68, 41, 0), # 15 (66, 148, 110, 62, 29, 0, 111, 134, 92, 74, 42, 0), # 16 (69, 153, 115, 67, 29, 0, 117, 139, 98, 79, 46, 0), # 17 (75, 159, 119, 71, 31, 0, 124, 144, 101, 84, 46, 0), # 18 (79, 168, 129, 78, 33, 0, 131, 155, 104, 90, 52, 0), # 19 (84, 177, 137, 80, 34, 0, 138, 162, 110, 93, 55, 0), # 20 (86, 186, 145, 84, 36, 0, 147, 169, 120, 95, 55, 0), # 21 (88, 198, 150, 86, 39, 0, 151, 178, 127, 101, 57, 0), # 22 (94, 211, 161, 89, 41, 0, 157, 182, 132, 107, 61, 0), # 23 (97, 223, 167, 93, 42, 0, 165, 191, 140, 113, 68, 0), # 24 (105, 234, 172, 97, 42, 0, 174, 200, 149, 115, 72, 0), # 25 (111, 242, 175, 98, 46, 0, 176, 210, 154, 120, 74, 0), # 26 (113, 252, 179, 101, 47, 0, 186, 221, 158, 126, 76, 0), # 27 (115, 268, 192, 102, 48, 0, 186, 226, 163, 129, 79, 0), # 28 (121, 277, 202, 107, 49, 0, 194, 237, 169, 133, 81, 0), # 29 (125, 292, 211, 112, 50, 0, 204, 246, 175, 135, 81, 0), # 30 (128, 301, 214, 115, 52, 0, 208, 253, 180, 146, 85, 0), # 31 (129, 308, 225, 118, 54, 0, 212, 265, 185, 148, 88, 0), # 32 (139, 312, 231, 119, 56, 0, 221, 276, 192, 153, 89, 0), # 33 (144, 319, 237, 125, 59, 0, 225, 288, 201, 160, 89, 0), # 34 (149, 327, 245, 128, 61, 0, 229, 298, 209, 166, 90, 0), # 35 (152, 330, 253, 131, 62, 0, 234, 306, 213, 168, 92, 0), # 36 (154, 347, 263, 137, 63, 0, 244, 315, 217, 172, 94, 0), # 37 (159, 357, 268, 138, 65, 0, 251, 323, 228, 180, 97, 0), # 38 (165, 370, 278, 141, 67, 0, 256, 333, 233, 182, 100, 0), # 39 (168, 376, 287, 146, 68, 0, 264, 345, 242, 184, 101, 0), # 40 (176, 387, 291, 150, 72, 0, 267, 357, 247, 188, 102, 0), # 41 (178, 393, 295, 152, 75, 0, 278, 365, 255, 193, 104, 0), # 42 (180, 402, 307, 154, 80, 0, 281, 371, 262, 202, 108, 0), # 43 (184, 415, 315, 157, 81, 0, 285, 379, 267, 205, 110, 0), # 44 (185, 426, 323, 158, 82, 0, 290, 392, 270, 206, 112, 0), # 45 (194, 440, 330, 161, 85, 0, 296, 397, 276, 216, 113, 0), # 46 (199, 450, 342, 165, 88, 0, 300, 403, 281, 223, 115, 0), # 47 (204, 459, 352, 167, 91, 0, 308, 416, 286, 227, 117, 0), # 48 (207, 470, 359, 172, 92, 0, 312, 430, 291, 236, 119, 0), # 49 (214, 483, 373, 175, 93, 0, 325, 441, 295, 241, 119, 0), # 50 (226, 492, 380, 179, 96, 0, 332, 449, 305, 246, 121, 0), # 51 (230, 501, 384, 185, 98, 0, 335, 453, 317, 252, 123, 0), # 52 (235, 510, 390, 191, 99, 0, 339, 459, 326, 259, 124, 0), # 53 (239, 516, 400, 198, 103, 0, 340, 466, 330, 261, 124, 0), # 54 (243, 524, 406, 200, 104, 0, 349, 471, 336, 263, 125, 0), # 55 (248, 535, 418, 205, 108, 0, 353, 477, 341, 266, 125, 0), # 56 (251, 548, 423, 208, 110, 0, 363, 491, 346, 274, 127, 0), # 57 (254, 556, 425, 212, 114, 0, 367, 500, 353, 280, 129, 0), # 58 (254, 556, 425, 212, 114, 0, 367, 500, 353, 280, 129, 0), # 59 ) passenger_arriving_rate = ( (3.7095121817383676, 7.612035984848484, 6.715158258354756, 3.5483152173913037, 2.000048076923077, 0.0, 6.659510869565219, 8.000192307692307, 5.322472826086956, 4.476772172236504, 1.903008996212121, 0.0), # 0 (3.7443308140669203, 7.696686590558361, 6.751429051520996, 3.5680760567632848, 2.0150386217948717, 0.0, 6.657240994867151, 8.060154487179487, 5.352114085144928, 4.500952701013997, 1.9241716476395903, 0.0), # 1 (3.7787518681104277, 7.780081571268237, 6.786838903170522, 3.58740193236715, 2.0297128205128203, 0.0, 6.654901690821256, 8.118851282051281, 5.381102898550726, 4.524559268780347, 1.9450203928170593, 0.0), # 2 (3.8127461259877085, 7.8621309375, 6.821361945694087, 3.6062763586956517, 2.044057211538462, 0.0, 6.652493274456523, 8.176228846153847, 5.409414538043478, 4.547574630462725, 1.965532734375, 0.0), # 3 (3.8462843698175795, 7.942744699775533, 6.854972311482434, 3.624682850241546, 2.0580583333333333, 0.0, 6.6500160628019325, 8.232233333333333, 5.437024275362319, 4.569981540988289, 1.9856861749438832, 0.0), # 4 (3.879337381718857, 8.021832868616723, 6.887644132926307, 3.6426049214975844, 2.0717027243589743, 0.0, 6.647470372886473, 8.286810897435897, 5.463907382246377, 4.591762755284204, 2.005458217154181, 0.0), # 5 (3.9118759438103607, 8.099305454545455, 6.919351542416455, 3.660026086956522, 2.084976923076923, 0.0, 6.644856521739131, 8.339907692307692, 5.490039130434783, 4.612901028277636, 2.0248263636363637, 0.0), # 6 (3.943870838210907, 8.175072468083613, 6.950068672343615, 3.6769298611111116, 2.0978674679487184, 0.0, 6.64217482638889, 8.391469871794873, 5.515394791666668, 4.633379114895743, 2.043768117020903, 0.0), # 7 (3.975292847039314, 8.249043919753085, 6.979769655098544, 3.693299758454106, 2.1103608974358976, 0.0, 6.639425603864735, 8.44144358974359, 5.5399496376811594, 4.653179770065696, 2.062260979938271, 0.0), # 8 (4.006112752414399, 8.321129820075758, 7.00842862307198, 3.709119293478261, 2.12244375, 0.0, 6.636609171195653, 8.489775, 5.563678940217391, 4.672285748714653, 2.0802824550189394, 0.0), # 9 (4.03630133645498, 8.391240179573513, 7.03601970865467, 3.724371980676329, 2.134102564102564, 0.0, 6.633725845410628, 8.536410256410257, 5.586557971014494, 4.690679805769779, 2.0978100448933783, 0.0), # 10 (4.065829381279876, 8.459285008768239, 7.06251704423736, 3.739041334541063, 2.145323878205128, 0.0, 6.630775943538648, 8.581295512820512, 5.608562001811595, 4.70834469615824, 2.1148212521920597, 0.0), # 11 (4.094667669007903, 8.525174318181818, 7.087894762210797, 3.7531108695652167, 2.156094230769231, 0.0, 6.627759782608695, 8.624376923076923, 5.6296663043478254, 4.725263174807198, 2.1312935795454546, 0.0), # 12 (4.122786981757876, 8.58881811833614, 7.112126994965724, 3.766564100241546, 2.1664001602564102, 0.0, 6.624677679649759, 8.665600641025641, 5.649846150362319, 4.741417996643816, 2.147204529584035, 0.0), # 13 (4.15015810164862, 8.650126419753088, 7.135187874892886, 3.779384541062801, 2.1762282051282047, 0.0, 6.621529951690821, 8.704912820512819, 5.669076811594202, 4.756791916595257, 2.162531604938272, 0.0), # 14 (4.1767518107989465, 8.709009232954545, 7.157051534383032, 3.7915557065217387, 2.1855649038461538, 0.0, 6.618316915760871, 8.742259615384615, 5.6873335597826085, 4.771367689588688, 2.177252308238636, 0.0), # 15 (4.202538891327675, 8.7653765684624, 7.177692105826908, 3.803061111111111, 2.194396794871795, 0.0, 6.61503888888889, 8.77758717948718, 5.7045916666666665, 4.785128070551272, 2.1913441421156, 0.0), # 16 (4.227490125353625, 8.81913843679854, 7.197083721615253, 3.8138842693236716, 2.202710416666667, 0.0, 6.611696188103866, 8.810841666666668, 5.720826403985508, 4.798055814410168, 2.204784609199635, 0.0), # 17 (4.25157629499561, 8.870204848484848, 7.215200514138818, 3.824008695652174, 2.2104923076923084, 0.0, 6.608289130434783, 8.841969230769234, 5.736013043478262, 4.810133676092545, 2.217551212121212, 0.0), # 18 (4.274768182372451, 8.918485814043208, 7.232016615788346, 3.8334179045893717, 2.2177290064102566, 0.0, 6.604818032910629, 8.870916025641026, 5.750126856884058, 4.8213444105255645, 2.229621453510802, 0.0), # 19 (4.297036569602966, 8.96389134399551, 7.247506158954584, 3.8420954106280196, 2.2244070512820517, 0.0, 6.601283212560387, 8.897628205128207, 5.76314311594203, 4.831670772636389, 2.2409728359988774, 0.0), # 20 (4.318352238805971, 9.006331448863634, 7.261643276028279, 3.8500247282608693, 2.2305129807692303, 0.0, 6.597684986413044, 8.922051923076921, 5.775037092391305, 4.841095517352186, 2.2515828622159084, 0.0), # 21 (4.338685972100283, 9.045716139169473, 7.274402099400172, 3.8571893719806765, 2.2360333333333333, 0.0, 6.5940236714975855, 8.944133333333333, 5.785784057971015, 4.849601399600115, 2.2614290347923682, 0.0), # 22 (4.358008551604722, 9.081955425434906, 7.285756761461012, 3.8635728562801934, 2.2409546474358972, 0.0, 6.590299584842997, 8.963818589743589, 5.79535928442029, 4.857171174307341, 2.2704888563587264, 0.0), # 23 (4.3762907594381035, 9.114959318181818, 7.295681394601543, 3.869158695652174, 2.2452634615384612, 0.0, 6.586513043478261, 8.981053846153845, 5.803738043478262, 4.863787596401028, 2.2787398295454544, 0.0), # 24 (4.393503377719247, 9.1446378279321, 7.304150131212511, 3.8739304045893723, 2.2489463141025636, 0.0, 6.582664364432368, 8.995785256410255, 5.810895606884059, 4.869433420808341, 2.286159456983025, 0.0), # 25 (4.409617188566969, 9.17090096520763, 7.311137103684661, 3.8778714975845405, 2.2519897435897436, 0.0, 6.5787538647343, 9.007958974358974, 5.816807246376811, 4.874091402456441, 2.2927252413019077, 0.0), # 26 (4.424602974100088, 9.193658740530301, 7.31661644440874, 3.880965489130435, 2.2543802884615385, 0.0, 6.574781861413045, 9.017521153846154, 5.821448233695653, 4.877744296272493, 2.2984146851325753, 0.0), # 27 (4.438431516437421, 9.212821164421996, 7.320562285775494, 3.8831958937198072, 2.256104487179487, 0.0, 6.570748671497586, 9.024417948717948, 5.824793840579711, 4.8803748571836625, 2.303205291105499, 0.0), # 28 (4.4510735976977855, 9.228298247404602, 7.322948760175664, 3.884546225845411, 2.257148878205128, 0.0, 6.566654612016909, 9.028595512820512, 5.826819338768117, 4.881965840117109, 2.3070745618511506, 0.0), # 29 (4.4625, 9.24, 7.32375, 3.885, 2.2575000000000003, 0.0, 6.562500000000001, 9.030000000000001, 5.8275, 4.8825, 2.31, 0.0), # 30 (4.47319183983376, 9.249720255681815, 7.323149356884057, 3.884918047385621, 2.257372225177305, 0.0, 6.556726763701484, 9.02948890070922, 5.827377071078432, 4.882099571256038, 2.312430063920454, 0.0), # 31 (4.4836528452685425, 9.259312045454546, 7.3213644202898545, 3.884673790849673, 2.2569916312056737, 0.0, 6.547834661835751, 9.027966524822695, 5.82701068627451, 4.880909613526569, 2.3148280113636366, 0.0), # 32 (4.493887715792838, 9.268774176136363, 7.3184206793478275, 3.8842696323529413, 2.2563623138297872, 0.0, 6.535910757121439, 9.025449255319149, 5.826404448529412, 4.878947119565218, 2.3171935440340907, 0.0), # 33 (4.503901150895141, 9.278105454545454, 7.314343623188405, 3.8837079738562093, 2.2554883687943263, 0.0, 6.521042112277196, 9.021953475177305, 5.825561960784314, 4.876229082125604, 2.3195263636363634, 0.0), # 34 (4.513697850063939, 9.287304687499997, 7.3091587409420296, 3.882991217320261, 2.2543738918439717, 0.0, 6.503315790021656, 9.017495567375887, 5.824486825980392, 4.872772493961353, 2.3218261718749993, 0.0), # 35 (4.523282512787724, 9.296370681818182, 7.302891521739131, 3.8821217647058828, 2.253022978723404, 0.0, 6.482818853073463, 9.012091914893617, 5.823182647058824, 4.868594347826087, 2.3240926704545455, 0.0), # 36 (4.532659838554988, 9.305302244318183, 7.295567454710145, 3.881102017973856, 2.2514397251773044, 0.0, 6.4596383641512585, 9.005758900709218, 5.821653026960784, 4.86371163647343, 2.3263255610795457, 0.0), # 37 (4.5418345268542195, 9.314098181818181, 7.287212028985508, 3.8799343790849674, 2.249628226950355, 0.0, 6.433861385973679, 8.99851290780142, 5.819901568627452, 4.858141352657005, 2.3285245454545453, 0.0), # 38 (4.5508112771739135, 9.322757301136363, 7.277850733695652, 3.87862125, 2.247592579787234, 0.0, 6.40557498125937, 8.990370319148935, 5.817931875, 4.8519004891304345, 2.330689325284091, 0.0), # 39 (4.559594789002558, 9.33127840909091, 7.267509057971015, 3.8771650326797387, 2.245336879432624, 0.0, 6.37486621272697, 8.981347517730496, 5.815747549019608, 4.845006038647344, 2.3328196022727274, 0.0), # 40 (4.568189761828645, 9.3396603125, 7.256212490942029, 3.8755681290849675, 2.2428652216312055, 0.0, 6.34182214309512, 8.971460886524822, 5.813352193627452, 4.837474993961353, 2.334915078125, 0.0), # 41 (4.576600895140665, 9.34790181818182, 7.2439865217391315, 3.8738329411764707, 2.2401817021276598, 0.0, 6.3065298350824595, 8.960726808510639, 5.810749411764706, 4.829324347826088, 2.336975454545455, 0.0), # 42 (4.584832888427111, 9.356001732954544, 7.230856639492753, 3.8719618709150327, 2.2372904166666667, 0.0, 6.26907635140763, 8.949161666666667, 5.80794280637255, 4.820571092995169, 2.339000433238636, 0.0), # 43 (4.592890441176471, 9.363958863636363, 7.216848333333333, 3.8699573202614377, 2.2341954609929076, 0.0, 6.229548754789272, 8.93678184397163, 5.804935980392157, 4.811232222222222, 2.3409897159090907, 0.0), # 44 (4.600778252877237, 9.371772017045453, 7.201987092391306, 3.8678216911764705, 2.230900930851064, 0.0, 6.188034107946028, 8.923603723404256, 5.801732536764706, 4.80132472826087, 2.3429430042613633, 0.0), # 45 (4.6085010230179035, 9.379440000000002, 7.186298405797103, 3.8655573856209147, 2.2274109219858156, 0.0, 6.144619473596536, 8.909643687943262, 5.798336078431372, 4.790865603864735, 2.3448600000000006, 0.0), # 46 (4.616063451086957, 9.386961619318182, 7.16980776268116, 3.8631668055555552, 2.223729530141844, 0.0, 6.099391914459438, 8.894918120567375, 5.794750208333333, 4.77987184178744, 2.3467404048295455, 0.0), # 47 (4.623470236572891, 9.394335681818182, 7.152540652173913, 3.8606523529411763, 2.21986085106383, 0.0, 6.052438493253375, 8.87944340425532, 5.790978529411765, 4.7683604347826085, 2.3485839204545456, 0.0), # 48 (4.630726078964194, 9.401560994318181, 7.134522563405797, 3.8580164297385626, 2.2158089804964543, 0.0, 6.003846272696985, 8.863235921985817, 5.787024644607844, 4.7563483756038645, 2.3503902485795454, 0.0), # 49 (4.6378356777493615, 9.408636363636361, 7.115778985507247, 3.8552614379084966, 2.211578014184397, 0.0, 5.953702315508913, 8.846312056737588, 5.782892156862745, 4.743852657004831, 2.3521590909090904, 0.0), # 50 (4.6448037324168805, 9.415560596590907, 7.096335407608696, 3.852389779411765, 2.2071720478723407, 0.0, 5.902093684407797, 8.828688191489363, 5.778584669117648, 4.73089027173913, 2.353890149147727, 0.0), # 51 (4.651634942455243, 9.4223325, 7.0762173188405795, 3.84940385620915, 2.2025951773049646, 0.0, 5.849107442112278, 8.810380709219858, 5.774105784313726, 4.717478212560386, 2.355583125, 0.0), # 52 (4.658334007352941, 9.428950880681818, 7.055450208333333, 3.8463060702614382, 2.1978514982269504, 0.0, 5.794830651340996, 8.791405992907801, 5.769459105392158, 4.703633472222222, 2.3572377201704544, 0.0), # 53 (4.6649056265984665, 9.435414545454544, 7.034059565217391, 3.843098823529412, 2.192945106382979, 0.0, 5.739350374812594, 8.771780425531915, 5.764648235294119, 4.689373043478261, 2.358853636363636, 0.0), # 54 (4.671354499680307, 9.441722301136364, 7.012070878623187, 3.8397845179738566, 2.1878800975177306, 0.0, 5.682753675245711, 8.751520390070922, 5.759676776960785, 4.674713919082125, 2.360430575284091, 0.0), # 55 (4.677685326086957, 9.447872954545453, 6.989509637681159, 3.8363655555555556, 2.1826605673758865, 0.0, 5.625127615358988, 8.730642269503546, 5.754548333333334, 4.65967309178744, 2.361968238636363, 0.0), # 56 (4.683902805306906, 9.453865312500001, 6.966401331521738, 3.832844338235294, 2.1772906117021273, 0.0, 5.566559257871065, 8.70916244680851, 5.749266507352941, 4.644267554347826, 2.3634663281250003, 0.0), # 57 (4.690011636828645, 9.459698181818181, 6.942771449275362, 3.8292232679738563, 2.1717743262411346, 0.0, 5.507135665500583, 8.687097304964539, 5.743834901960785, 4.628514299516908, 2.3649245454545453, 0.0), # 58 (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 59 ) passenger_allighting_rate = ( (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 0 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 1 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 2 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 3 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 4 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 5 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 6 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 7 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 8 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 9 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 10 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 11 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 12 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 13 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 14 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 15 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 16 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 17 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 18 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 19 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 20 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 21 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 22 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 23 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 24 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 25 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 26 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 27 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 28 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 29 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 30 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 31 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 32 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 33 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 34 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 35 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 36 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 37 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 38 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 39 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 40 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 41 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 42 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 43 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 44 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 45 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 46 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 47 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 48 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 49 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 50 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 51 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 52 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 53 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 54 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 55 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 56 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 57 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 58 (0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1, 0, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 0.16666666666666666, 1), # 59 ) """ parameters for reproducibiliy. More information: https://numpy.org/doc/stable/reference/random/parallel.html """ #initial entropy entropy = 258194110137029475889902652135037600173 #index for seed sequence child child_seed_index = ( 1, # 0 11, # 1 )
class Animation: def __init__(self, anim_type): self.anim_type = anim_type self.frames = [] self.point = 0 self.forward = True self.speed = 0 self.dt = 0 def add_frame(self, frame): self.frames.append(frame) def get_frame(self, dt): if self.anim_type == "loop": self.loop(dt) elif self.anim_type == "once": self.move_once(dt) elif self.anim_type == "ping": self.reverse_ping(dt) elif self.anim_type == "static": self.point = 0 return self.frames[self.point] def next_frame(self, dt): self.dt += dt if self.dt >= (1.0 / self.speed): if self.forward: self.point += 1 else: self.point -= 1 self.dt = 0 def loop(self, dt): """ When we want an animation to loop we'll use this method """ self.next_frame(dt) if self.forward: if self.point == len(self.frames): self.point = 0 else: if self.point == -1: self.point = len(self.frames) - 1 def move_once(self, dt): """ This type of animation only goes through the list once, then stops. """ self.next_frame(dt) if self.forward: if self.point == len(self.frames): self.point = len(self.frames) - 1 else: if self.point == -1: self.point = 0 def reverse_ping(self, dt): """ This is a different type of looping animation, except when we reach the end of the animation we reverse the animation so it goes backwards. When it reaches the start of the animation again then we set it to go forward again """ self.next_frame(dt) if self.point == len(self.frames): self.forward = False self.point -= 2 elif self.point < 0: self.forward = True self.point = 1
""" 面试题 59(二):队列的最大值 题目:请定义一个队列并实现函数 max 得到队列的最大值, 要求函数 max,push_back pop_front 的时间复杂度都是 O(1) """ class QueueMax: def __init__(self): self.data = [] self.maxes = [] def push_back(self, x): while self.maxes and x > self.maxes[-1]: self.maxes.pop() self.data.append(x) self.maxes.append(x) def pop_front(self): if not self.data: return None # x = self.data.pop(0) # if x == self.maxes[0]: # self.maxes.pop(0) x = self.data[0] self.data = self.data[1:] if x == self.maxes[0]: self.maxes = self.maxes[1:] return x @property def max(self): if not self.maxes: return None return self.maxes[0] if __name__ == '__main__': # lst = [2, 3, 4, 2, 6, 2, 5, 1] # qm = QueueMax() # for i in lst: # qm.push_back(i) # print(qm.data) # print(qm.maxes) # print(qm.max) # print("="*10) # print("="*50) # for i in range(len(lst)): # x = qm.pop_front() # print(x) # print(qm.data) # print(qm.maxes) # print(qm.max) # print("="*10) qm = QueueMax() qm.push_back(4) qm.push_back(3) qm.push_back(2) qm.push_back(8) print(qm.data) print(qm.maxes) print(qm.max) print("="*10) qm.pop_front() qm.pop_front() qm.pop_front() print(qm.data) print(qm.maxes) print(qm.max) print("="*10) qm.push_back(6) qm.push_back(2) qm.push_back(5) print(qm.data) print(qm.maxes) print(qm.max) print("="*10) qm.pop_front() qm.pop_front() qm.pop_front() print(qm.data) print(qm.maxes) print(qm.max) print("="*10) qm.push_back(1) print(qm.data) print(qm.maxes) print(qm.max) print("="*10)
class DataGridView( Control, IComponent, IDisposable, IOleControl, IOleObject, IOleInPlaceObject, IOleInPlaceActiveObject, IOleWindow, IViewObject, IViewObject2, IPersist, IPersistStreamInit, IPersistPropertyBag, IPersistStorage, IQuickActivate, ISupportOleDropSource, IDropTarget, ISynchronizeInvoke, IWin32Window, IArrangedElement, IBindableComponent, ISupportInitialize, ): """ Displays data in a customizable grid. DataGridView() """ def AccessibilityNotifyClients(self, *args): """ AccessibilityNotifyClients(self: Control,accEvent: AccessibleEvents,objectID: int,childID: int) Notifies the accessibility client applications of the specified System.Windows.Forms.AccessibleEvents for the specified child control . accEvent: The System.Windows.Forms.AccessibleEvents to notify the accessibility client applications of. objectID: The identifier of the System.Windows.Forms.AccessibleObject. childID: The child System.Windows.Forms.Control to notify of the accessible event. AccessibilityNotifyClients(self: Control,accEvent: AccessibleEvents,childID: int) Notifies the accessibility client applications of the specified System.Windows.Forms.AccessibleEvents for the specified child control. accEvent: The System.Windows.Forms.AccessibleEvents to notify the accessibility client applications of. childID: The child System.Windows.Forms.Control to notify of the accessible event. """ pass def AccessibilityNotifyCurrentCellChanged(self, *args): """ AccessibilityNotifyCurrentCellChanged(self: DataGridView,cellAddress: Point) Notifies the accessible client applications when a new cell becomes the current cell. cellAddress: A System.Drawing.Point indicating the row and column indexes of the new current cell. """ pass def AdjustColumnHeaderBorderStyle( self, dataGridViewAdvancedBorderStyleInput, dataGridViewAdvancedBorderStylePlaceholder, isFirstDisplayedColumn, isLastVisibleColumn, ): """ AdjustColumnHeaderBorderStyle(self: DataGridView,dataGridViewAdvancedBorderStyleInput: DataGridViewAdvancedBorderStyle,dataGridViewAdvancedBorderStylePlaceholder: DataGridViewAdvancedBorderStyle,isFirstDisplayedColumn: bool,isLastVisibleColumn: bool) -> DataGridViewAdvancedBorderStyle Adjusts the System.Windows.Forms.DataGridViewAdvancedBorderStyle for a column header cell of a System.Windows.Forms.DataGridView that is currently being painted. dataGridViewAdvancedBorderStyleInput: A System.Windows.Forms.DataGridViewAdvancedBorderStyle that that represents the column header border style to modify. dataGridViewAdvancedBorderStylePlaceholder: A System.Windows.Forms.DataGridViewAdvancedBorderStyle that is used to store intermediate changes to the column header border style. isFirstDisplayedColumn: true to indicate that the System.Windows.Forms.DataGridViewCell that is currently being painted is in the first column displayed on the System.Windows.Forms.DataGridView; otherwise,false. isLastVisibleColumn: true to indicate that the System.Windows.Forms.DataGridViewCell that is currently being painted is in the last column in the System.Windows.Forms.DataGridView that has the System.Windows.Forms.DataGridViewColumn.Visible property set to true; otherwise,false. Returns: A System.Windows.Forms.DataGridViewAdvancedBorderStyle that represents the border style for the current column header. """ pass def AreAllCellsSelected(self, includeInvisibleCells): """ AreAllCellsSelected(self: DataGridView,includeInvisibleCells: bool) -> bool Returns a value indicating whether all the System.Windows.Forms.DataGridView cells are currently selected. includeInvisibleCells: true to include the rows and columns with System.Windows.Forms.DataGridViewBand.Visible property values of false; otherwise,false. Returns: true if all cells (or all visible cells) are selected or if there are no cells (or no visible cells); otherwise,false. """ pass def AutoResizeColumn(self, columnIndex, autoSizeColumnMode=None): """ AutoResizeColumn(self: DataGridView,columnIndex: int,autoSizeColumnMode: DataGridViewAutoSizeColumnMode) Adjusts the width of the specified column using the specified size mode. columnIndex: The index of the column to resize. autoSizeColumnMode: One of the System.Windows.Forms.DataGridViewAutoSizeColumnMode values. AutoResizeColumn(self: DataGridView,columnIndex: int) Adjusts the width of the specified column to fit the contents of all its cells,including the header cell. columnIndex: The index of the column to resize. """ pass def AutoResizeColumnHeadersHeight(self, columnIndex=None): """ AutoResizeColumnHeadersHeight(self: DataGridView,columnIndex: int) Adjusts the height of the column headers based on changes to the contents of the header in the specified column. columnIndex: The index of the column containing the header with the changed content. AutoResizeColumnHeadersHeight(self: DataGridView) Adjusts the height of the column headers to fit the contents of the largest column header. """ pass def AutoResizeColumns(self, autoSizeColumnsMode=None): """ AutoResizeColumns(self: DataGridView,autoSizeColumnsMode: DataGridViewAutoSizeColumnsMode) Adjusts the width of all columns using the specified size mode. autoSizeColumnsMode: One of the System.Windows.Forms.DataGridViewAutoSizeColumnsMode values. AutoResizeColumns(self: DataGridView) Adjusts the width of all columns to fit the contents of all their cells,including the header cells. """ pass def AutoResizeRow(self, rowIndex, autoSizeRowMode=None): """ AutoResizeRow(self: DataGridView,rowIndex: int,autoSizeRowMode: DataGridViewAutoSizeRowMode) Adjusts the height of the specified row using the specified size mode. rowIndex: The index of the row to resize. autoSizeRowMode: One of the System.Windows.Forms.DataGridViewAutoSizeRowMode values. AutoResizeRow(self: DataGridView,rowIndex: int) Adjusts the height of the specified row to fit the contents of all its cells including the header cell. rowIndex: The index of the row to resize. """ pass def AutoResizeRowHeadersWidth(self, *__args): """ AutoResizeRowHeadersWidth(self: DataGridView,rowIndex: int,rowHeadersWidthSizeMode: DataGridViewRowHeadersWidthSizeMode) Adjusts the width of the row headers based on changes to the contents of the header in the specified row and using the specified size mode. rowIndex: The index of the row header with the changed content. rowHeadersWidthSizeMode: One of the System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode values. AutoResizeRowHeadersWidth(self: DataGridView,rowHeadersWidthSizeMode: DataGridViewRowHeadersWidthSizeMode) Adjusts the width of the row headers using the specified size mode. rowHeadersWidthSizeMode: One of the System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode values. """ pass def AutoResizeRows(self, autoSizeRowsMode=None): """ AutoResizeRows(self: DataGridView,autoSizeRowsMode: DataGridViewAutoSizeRowsMode) Adjusts the heights of the rows using the specified size mode value. autoSizeRowsMode: One of the System.Windows.Forms.DataGridViewAutoSizeRowsMode values. AutoResizeRows(self: DataGridView) Adjusts the heights of all rows to fit the contents of all their cells,including the header cells. """ pass def BeginEdit(self, selectAll): """ BeginEdit(self: DataGridView,selectAll: bool) -> bool Puts the current cell in edit mode. selectAll: true to select all the cell's contents; false to not select any contents. Returns: true if the current cell is already in edit mode or successfully enters edit mode; otherwise, false. """ pass def CancelEdit(self): """ CancelEdit(self: DataGridView) -> bool Cancels edit mode for the currently selected cell and discards any changes. Returns: true if the cancel was successful; otherwise,false. """ pass def ClearSelection(self): """ ClearSelection(self: DataGridView) Clears the current selection by unselecting all selected cells. """ pass def CommitEdit(self, context): """ CommitEdit(self: DataGridView,context: DataGridViewDataErrorContexts) -> bool Commits changes in the current cell to the data cache without ending edit mode. context: A bitwise combination of System.Windows.Forms.DataGridViewDataErrorContexts values that specifies the context in which an error can occur. Returns: true if the changes were committed; otherwise false. """ pass def CreateAccessibilityInstance(self, *args): """ CreateAccessibilityInstance(self: DataGridView) -> AccessibleObject Creates a new accessible object for the System.Windows.Forms.DataGridView. Returns: A new System.Windows.Forms.DataGridView.DataGridViewAccessibleObject for the System.Windows.Forms.DataGridView. """ pass def CreateColumnsInstance(self, *args): """ CreateColumnsInstance(self: DataGridView) -> DataGridViewColumnCollection Creates and returns a new System.Windows.Forms.DataGridViewColumnCollection. Returns: An empty System.Windows.Forms.DataGridViewColumnCollection. """ pass def CreateControlsInstance(self, *args): """ CreateControlsInstance(self: DataGridView) -> ControlCollection Creates and returns a new System.Windows.Forms.Control.ControlCollection that can be cast to type System.Windows.Forms.DataGridView.DataGridViewControlCollection. Returns: An empty System.Windows.Forms.Control.ControlCollection. """ pass def CreateHandle(self, *args): """ CreateHandle(self: Control) Creates a handle for the control. """ pass def CreateRowsInstance(self, *args): """ CreateRowsInstance(self: DataGridView) -> DataGridViewRowCollection Creates and returns a new System.Windows.Forms.DataGridViewRowCollection. Returns: An empty System.Windows.Forms.DataGridViewRowCollection. """ pass def DefWndProc(self, *args): """ DefWndProc(self: Control,m: Message) -> Message Sends the specified message to the default window procedure. m: The Windows System.Windows.Forms.Message to process. """ pass def DestroyHandle(self, *args): """ DestroyHandle(self: Control) Destroys the handle associated with the control. """ pass def DisplayedColumnCount(self, includePartialColumns): """ DisplayedColumnCount(self: DataGridView,includePartialColumns: bool) -> int Returns the number of columns displayed to the user. includePartialColumns: true to include partial columns in the displayed column count; otherwise,false. Returns: The number of columns displayed to the user. """ pass def DisplayedRowCount(self, includePartialRow): """ DisplayedRowCount(self: DataGridView,includePartialRow: bool) -> int Returns the number of rows displayed to the user. includePartialRow: true to include partial rows in the displayed row count; otherwise,false. Returns: The number of rows displayed to the user. """ pass def Dispose(self): """ Dispose(self: DataGridView,disposing: bool) disposing: true to release both managed and unmanaged resources; false to release only unmanaged resources. """ pass def EndEdit(self, context=None): """ EndEdit(self: DataGridView,context: DataGridViewDataErrorContexts) -> bool Commits and ends the edit operation on the current cell using the specified error context. context: A bitwise combination of System.Windows.Forms.DataGridViewDataErrorContexts values that specifies the context in which an error can occur. Returns: true if the edit operation is committed and ended; otherwise,false. EndEdit(self: DataGridView) -> bool Commits and ends the edit operation on the current cell using the default error context. Returns: true if the edit operation is committed and ended; otherwise,false. """ pass def GetAccessibilityObjectById(self, *args): """ GetAccessibilityObjectById(self: DataGridView,objectId: int) -> AccessibleObject objectId: An Int32 that identifies the System.Windows.Forms.AccessibleObject to retrieve. Returns: An System.Windows.Forms.AccessibleObject. """ pass def GetAutoSizeMode(self, *args): """ GetAutoSizeMode(self: Control) -> AutoSizeMode Retrieves a value indicating how a control will behave when its System.Windows.Forms.Control.AutoSize property is enabled. Returns: One of the System.Windows.Forms.AutoSizeMode values. """ pass def GetCellCount(self, includeFilter): """ GetCellCount(self: DataGridView,includeFilter: DataGridViewElementStates) -> int Gets the number of cells that satisfy the provided filter. includeFilter: A bitwise combination of the System.Windows.Forms.DataGridViewElementStates values specifying the cells to count. Returns: The number of cells that match the includeFilter parameter. """ pass def GetCellDisplayRectangle(self, columnIndex, rowIndex, cutOverflow): """ GetCellDisplayRectangle(self: DataGridView,columnIndex: int,rowIndex: int,cutOverflow: bool) -> Rectangle Returns the rectangle that represents the display area for a cell. columnIndex: The column index for the desired cell. rowIndex: The row index for the desired cell. cutOverflow: true to return the displayed portion of the cell only; false to return the entire cell bounds. Returns: The System.Drawing.Rectangle that represents the display rectangle of the cell. """ pass def GetClipboardContent(self): """ GetClipboardContent(self: DataGridView) -> DataObject Retrieves the formatted values that represent the contents of the selected cells for copying to the System.Windows.Forms.Clipboard. Returns: A System.Windows.Forms.DataObject that represents the contents of the selected cells. """ pass def GetColumnDisplayRectangle(self, columnIndex, cutOverflow): """ GetColumnDisplayRectangle(self: DataGridView,columnIndex: int,cutOverflow: bool) -> Rectangle Returns the rectangle that represents the display area for a column,as determined by the column index. columnIndex: The column index for the desired cell. cutOverflow: true to return the column rectangle visible in the System.Windows.Forms.DataGridView bounds; false to return the entire column rectangle. Returns: The System.Drawing.Rectangle that represents the display rectangle of the column. """ pass def GetRowDisplayRectangle(self, rowIndex, cutOverflow): """ GetRowDisplayRectangle(self: DataGridView,rowIndex: int,cutOverflow: bool) -> Rectangle Returns the rectangle that represents the display area for a row,as determined by the row index. rowIndex: The row index for the desired cell. cutOverflow: true to return the row rectangle visible in the System.Windows.Forms.DataGridView bounds; false to return the entire row rectangle. Returns: The System.Drawing.Rectangle that represents the display rectangle of the row. """ pass def GetScaledBounds(self, *args): """ GetScaledBounds(self: Control,bounds: Rectangle,factor: SizeF,specified: BoundsSpecified) -> Rectangle Retrieves the bounds within which the control is scaled. bounds: A System.Drawing.Rectangle that specifies the area for which to retrieve the display bounds. factor: The height and width of the control's bounds. specified: One of the values of System.Windows.Forms.BoundsSpecified that specifies the bounds of the control to use when defining its size and position. Returns: A System.Drawing.Rectangle representing the bounds within which the control is scaled. """ pass def GetService(self, *args): """ GetService(self: Component,service: Type) -> object Returns an object that represents a service provided by the System.ComponentModel.Component or by its System.ComponentModel.Container. service: A service provided by the System.ComponentModel.Component. Returns: An System.Object that represents a service provided by the System.ComponentModel.Component,or null if the System.ComponentModel.Component does not provide the specified service. """ pass def GetStyle(self, *args): """ GetStyle(self: Control,flag: ControlStyles) -> bool Retrieves the value of the specified control style bit for the control. flag: The System.Windows.Forms.ControlStyles bit to return the value from. Returns: true if the specified control style bit is set to true; otherwise,false. """ pass def GetTopLevel(self, *args): """ GetTopLevel(self: Control) -> bool Determines if the control is a top-level control. Returns: true if the control is a top-level control; otherwise,false. """ pass def HitTest(self, x, y): """ HitTest(self: DataGridView,x: int,y: int) -> HitTestInfo Returns location information,such as row and column indices,given x- and y-coordinates. x: The x-coordinate. y: The y-coordinate. Returns: A System.Windows.Forms.DataGridView.HitTestInfo that contains the location information. """ pass def InitLayout(self, *args): """ InitLayout(self: Control) Called after the control has been added to another container. """ pass def InvalidateCell(self, *__args): """ InvalidateCell(self: DataGridView,columnIndex: int,rowIndex: int) Invalidates the cell with the specified row and column indexes,forcing it to be repainted. columnIndex: The column index of the cell to invalidate. rowIndex: The row index of the cell to invalidate. InvalidateCell(self: DataGridView,dataGridViewCell: DataGridViewCell) Invalidates the specified cell of the System.Windows.Forms.DataGridView,forcing it to be repainted. dataGridViewCell: The System.Windows.Forms.DataGridViewCell to invalidate. """ pass def InvalidateColumn(self, columnIndex): """ InvalidateColumn(self: DataGridView,columnIndex: int) Invalidates the specified column of the System.Windows.Forms.DataGridView,forcing it to be repainted. columnIndex: The index of the column to invalidate. """ pass def InvalidateRow(self, rowIndex): """ InvalidateRow(self: DataGridView,rowIndex: int) Invalidates the specified row of the System.Windows.Forms.DataGridView,forcing it to be repainted. rowIndex: The index of the row to invalidate. """ pass def InvokeGotFocus(self, *args): """ InvokeGotFocus(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.GotFocus event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the event to. e: An System.EventArgs that contains the event data. """ pass def InvokeLostFocus(self, *args): """ InvokeLostFocus(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.LostFocus event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the event to. e: An System.EventArgs that contains the event data. """ pass def InvokeOnClick(self, *args): """ InvokeOnClick(self: Control,toInvoke: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Click event for the specified control. toInvoke: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Click event to. e: An System.EventArgs that contains the event data. """ pass def InvokePaint(self, *args): """ InvokePaint(self: Control,c: Control,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event for the specified control. c: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Paint event to. e: An System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def InvokePaintBackground(self, *args): """ InvokePaintBackground(self: Control,c: Control,e: PaintEventArgs) Raises the PaintBackground event for the specified control. c: The System.Windows.Forms.Control to assign the System.Windows.Forms.Control.Paint event to. e: An System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def IsInputChar(self, *args): """ IsInputChar(self: DataGridView,charCode: Char) -> bool Determines whether a character is an input character that the System.Windows.Forms.DataGridView recognizes. charCode: The character to test. Returns: true if the character is recognized as an input character; otherwise,false. """ pass def IsInputKey(self, *args): """ IsInputKey(self: DataGridView,keyData: Keys) -> bool keyData: One of the System.Windows.Forms.Keys values. Returns: true if the specified key is a regular input key; otherwise,false. """ pass def MemberwiseClone(self, *args): """ MemberwiseClone(self: MarshalByRefObject,cloneIdentity: bool) -> MarshalByRefObject Creates a shallow copy of the current System.MarshalByRefObject object. cloneIdentity: false to delete the current System.MarshalByRefObject object's identity,which will cause the object to be assigned a new identity when it is marshaled across a remoting boundary. A value of false is usually appropriate. true to copy the current System.MarshalByRefObject object's identity to its clone,which will cause remoting client calls to be routed to the remote server object. Returns: A shallow copy of the current System.MarshalByRefObject object. MemberwiseClone(self: object) -> object Creates a shallow copy of the current System.Object. Returns: A shallow copy of the current System.Object. """ pass def NotifyCurrentCellDirty(self, dirty): """ NotifyCurrentCellDirty(self: DataGridView,dirty: bool) Notifies the System.Windows.Forms.DataGridView that the current cell has uncommitted changes. dirty: true to indicate the cell has uncommitted changes; otherwise,false. """ pass def NotifyInvalidate(self, *args): """ NotifyInvalidate(self: Control,invalidatedArea: Rectangle) Raises the System.Windows.Forms.Control.Invalidated event with a specified region of the control to invalidate. invalidatedArea: A System.Drawing.Rectangle representing the area to invalidate. """ pass def OnAllowUserToAddRowsChanged(self, *args): """ OnAllowUserToAddRowsChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.AllowUserToAddRowsChanged event. e: An System.EventArgs that contains the event data. """ pass def OnAllowUserToDeleteRowsChanged(self, *args): """ OnAllowUserToDeleteRowsChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.AllowUserToDeleteRowsChanged event. e: An System.EventArgs that contains the event data. """ pass def OnAllowUserToOrderColumnsChanged(self, *args): """ OnAllowUserToOrderColumnsChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.AllowUserToOrderColumnsChanged event. e: A System.EventArgs that contains the event data. """ pass def OnAllowUserToResizeColumnsChanged(self, *args): """ OnAllowUserToResizeColumnsChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.AllowUserToResizeColumnsChanged event. e: An System.EventArgs that contains the event data. """ pass def OnAllowUserToResizeRowsChanged(self, *args): """ OnAllowUserToResizeRowsChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.AllowUserToResizeRowsChanged event. e: An System.EventArgs that contains the event data. """ pass def OnAlternatingRowsDefaultCellStyleChanged(self, *args): """ OnAlternatingRowsDefaultCellStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.AlternatingRowsDefaultCellStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnAutoGenerateColumnsChanged(self, *args): """ OnAutoGenerateColumnsChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.AutoGenerateColumnsChanged event. e: An System.EventArgs that contains the event data. """ pass def OnAutoSizeChanged(self, *args): """ OnAutoSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.AutoSizeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnAutoSizeColumnModeChanged(self, *args): """ OnAutoSizeColumnModeChanged(self: DataGridView,e: DataGridViewAutoSizeColumnModeEventArgs) Raises the System.Windows.Forms.DataGridView.AutoSizeColumnModeChanged event. e: A System.Windows.Forms.DataGridViewAutoSizeColumnModeEventArgs that contains the event data. """ pass def OnAutoSizeColumnsModeChanged(self, *args): """ OnAutoSizeColumnsModeChanged(self: DataGridView,e: DataGridViewAutoSizeColumnsModeEventArgs) Raises the System.Windows.Forms.DataGridView.AutoSizeColumnsModeChanged event. e: A System.Windows.Forms.DataGridViewAutoSizeColumnsModeEventArgs that contains the event data. """ pass def OnAutoSizeRowsModeChanged(self, *args): """ OnAutoSizeRowsModeChanged(self: DataGridView,e: DataGridViewAutoSizeModeEventArgs) Raises the System.Windows.Forms.DataGridView.AutoSizeRowsModeChanged event. e: A System.Windows.Forms.DataGridViewAutoSizeModeEventArgs that contains the event data. """ pass def OnBackColorChanged(self, *args): """ OnBackColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackColorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBackgroundColorChanged(self, *args): """ OnBackgroundColorChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.BackgroundColorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBackgroundImageChanged(self, *args): """ OnBackgroundImageChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBackgroundImageLayoutChanged(self, *args): """ OnBackgroundImageLayoutChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageLayoutChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBindingContextChanged(self, *args): """ OnBindingContextChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.Control.BindingContextChanged event. e: An System.EventArgs that contains the event data. """ pass def OnBorderStyleChanged(self, *args): """ OnBorderStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.BorderStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnCancelRowEdit(self, *args): """ OnCancelRowEdit(self: DataGridView,e: QuestionEventArgs) Raises the System.Windows.Forms.DataGridView.CancelRowEdit event. e: A System.Windows.Forms.QuestionEventArgs that contains the event data. """ pass def OnCausesValidationChanged(self, *args): """ OnCausesValidationChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.CausesValidationChanged event. e: An System.EventArgs that contains the event data. """ pass def OnCellBeginEdit(self, *args): """ OnCellBeginEdit(self: DataGridView,e: DataGridViewCellCancelEventArgs) Raises the System.Windows.Forms.DataGridView.CellBeginEdit event. e: A System.Windows.Forms.DataGridViewCellCancelEventArgs that contains the event data. """ pass def OnCellBorderStyleChanged(self, *args): """ OnCellBorderStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.CellBorderStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnCellClick(self, *args): """ OnCellClick(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellClick event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellContentClick(self, *args): """ OnCellContentClick(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellContentClick event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains information regarding the cell whose content was clicked. """ pass def OnCellContentDoubleClick(self, *args): """ OnCellContentDoubleClick(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellContentDoubleClick event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellContextMenuStripChanged(self, *args): """ OnCellContextMenuStripChanged(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellContextMenuStripChanged event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellContextMenuStripNeeded(self, *args): """ OnCellContextMenuStripNeeded(self: DataGridView,e: DataGridViewCellContextMenuStripNeededEventArgs) Raises the System.Windows.Forms.DataGridView.CellContextMenuStripNeeded event. e: A System.Windows.Forms.DataGridViewCellContextMenuStripNeededEventArgs that contains the event data. """ pass def OnCellDoubleClick(self, *args): """ OnCellDoubleClick(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellDoubleClick event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellEndEdit(self, *args): """ OnCellEndEdit(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellEndEdit event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellEnter(self, *args): """ OnCellEnter(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellEnter event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellErrorTextChanged(self, *args): """ OnCellErrorTextChanged(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellErrorTextChanged event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellErrorTextNeeded(self, *args): """ OnCellErrorTextNeeded(self: DataGridView,e: DataGridViewCellErrorTextNeededEventArgs) Raises the System.Windows.Forms.DataGridView.CellErrorTextNeeded event. e: A System.Windows.Forms.DataGridViewCellErrorTextNeededEventArgs that contains the event data. """ pass def OnCellFormatting(self, *args): """ OnCellFormatting(self: DataGridView,e: DataGridViewCellFormattingEventArgs) Raises the System.Windows.Forms.DataGridView.CellFormatting event. e: A System.Windows.Forms.DataGridViewCellFormattingEventArgs that contains the event data. """ pass def OnCellLeave(self, *args): """ OnCellLeave(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellLeave event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellMouseClick(self, *args): """ OnCellMouseClick(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.CellMouseClick event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains the event data. """ pass def OnCellMouseDoubleClick(self, *args): """ OnCellMouseDoubleClick(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.CellMouseDoubleClick event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains the event data. """ pass def OnCellMouseDown(self, *args): """ OnCellMouseDown(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.CellMouseDown event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains the event data. """ pass def OnCellMouseEnter(self, *args): """ OnCellMouseEnter(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellMouseEnter event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellMouseLeave(self, *args): """ OnCellMouseLeave(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellMouseLeave event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellMouseMove(self, *args): """ OnCellMouseMove(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.CellMouseMove event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains the event data. """ pass def OnCellMouseUp(self, *args): """ OnCellMouseUp(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.CellMouseUp event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains the event data. """ pass def OnCellPainting(self, *args): """ OnCellPainting(self: DataGridView,e: DataGridViewCellPaintingEventArgs) Raises the System.Windows.Forms.DataGridView.CellPainting event. e: A System.Windows.Forms.DataGridViewCellPaintingEventArgs that contains the event data. """ pass def OnCellParsing(self, *args): """ OnCellParsing(self: DataGridView,e: DataGridViewCellParsingEventArgs) Raises the System.Windows.Forms.DataGridView.CellParsing event. e: A System.Windows.Forms.DataGridViewCellParsingEventArgs that contains the event data. """ pass def OnCellStateChanged(self, *args): """ OnCellStateChanged(self: DataGridView,e: DataGridViewCellStateChangedEventArgs) Raises the System.Windows.Forms.DataGridView.CellStateChanged event. e: A System.Windows.Forms.DataGridViewCellStateChangedEventArgs that contains the event data. """ pass def OnCellStyleChanged(self, *args): """ OnCellStyleChanged(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellStyleChanged event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellStyleContentChanged(self, *args): """ OnCellStyleContentChanged(self: DataGridView,e: DataGridViewCellStyleContentChangedEventArgs) Raises the System.Windows.Forms.DataGridView.CellStyleContentChanged event. e: A System.Windows.Forms.DataGridViewCellStyleContentChangedEventArgs that contains the event data. """ pass def OnCellToolTipTextChanged(self, *args): """ OnCellToolTipTextChanged(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellToolTipTextChanged event. e: An System.Windows.Forms.DataGridViewCellEventArgs that contains information about the cell. """ pass def OnCellToolTipTextNeeded(self, *args): """ OnCellToolTipTextNeeded(self: DataGridView,e: DataGridViewCellToolTipTextNeededEventArgs) Raises the System.Windows.Forms.DataGridView.CellToolTipTextNeeded event. e: A System.Windows.Forms.DataGridViewCellToolTipTextNeededEventArgs that contains the event data. """ pass def OnCellValidated(self, *args): """ OnCellValidated(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellValidated event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellValidating(self, *args): """ OnCellValidating(self: DataGridView,e: DataGridViewCellValidatingEventArgs) Raises the System.Windows.Forms.DataGridView.CellValidating event. e: A System.Windows.Forms.DataGridViewCellValidatingEventArgs that contains the event data. """ pass def OnCellValueChanged(self, *args): """ OnCellValueChanged(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.CellValueChanged event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnCellValueNeeded(self, *args): """ OnCellValueNeeded(self: DataGridView,e: DataGridViewCellValueEventArgs) Raises the System.Windows.Forms.DataGridView.CellValueNeeded event. e: A System.Windows.Forms.DataGridViewCellValueEventArgs that contains the event data. """ pass def OnCellValuePushed(self, *args): """ OnCellValuePushed(self: DataGridView,e: DataGridViewCellValueEventArgs) Raises the System.Windows.Forms.DataGridView.CellValuePushed event. e: A System.Windows.Forms.DataGridViewCellValueEventArgs that contains the event data. """ pass def OnChangeUICues(self, *args): """ OnChangeUICues(self: Control,e: UICuesEventArgs) Raises the System.Windows.Forms.Control.ChangeUICues event. e: A System.Windows.Forms.UICuesEventArgs that contains the event data. """ pass def OnClick(self, *args): """ OnClick(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Click event. e: An System.EventArgs that contains the event data. """ pass def OnClientSizeChanged(self, *args): """ OnClientSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ClientSizeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnColumnAdded(self, *args): """ OnColumnAdded(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnAdded event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnContextMenuStripChanged(self, *args): """ OnColumnContextMenuStripChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnContextMenuStripChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnDataPropertyNameChanged(self, *args): """ OnColumnDataPropertyNameChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnDataPropertyNameChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnDefaultCellStyleChanged(self, *args): """ OnColumnDefaultCellStyleChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnDefaultCellStyleChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnDisplayIndexChanged(self, *args): """ OnColumnDisplayIndexChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnDisplayIndexChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnDividerDoubleClick(self, *args): """ OnColumnDividerDoubleClick(self: DataGridView,e: DataGridViewColumnDividerDoubleClickEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnDividerDoubleClick event. e: A System.Windows.Forms.DataGridViewColumnDividerDoubleClickEventArgs that contains the event data. """ pass def OnColumnDividerWidthChanged(self, *args): """ OnColumnDividerWidthChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnDividerWidthChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnHeaderCellChanged(self, *args): """ OnColumnHeaderCellChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnHeaderCellChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnHeaderMouseClick(self, *args): """ OnColumnHeaderMouseClick(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnHeaderMouseClick event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains the event data. """ pass def OnColumnHeaderMouseDoubleClick(self, *args): """ OnColumnHeaderMouseDoubleClick(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnHeaderMouseDoubleClick event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains information about the cell and the position of the mouse pointer. """ pass def OnColumnHeadersBorderStyleChanged(self, *args): """ OnColumnHeadersBorderStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.ColumnHeadersBorderStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnColumnHeadersDefaultCellStyleChanged(self, *args): """ OnColumnHeadersDefaultCellStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.ColumnHeadersDefaultCellStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnColumnHeadersHeightChanged(self, *args): """ OnColumnHeadersHeightChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.ColumnHeadersHeightChanged event. e: An System.EventArgs that contains the event data. """ pass def OnColumnHeadersHeightSizeModeChanged(self, *args): """ OnColumnHeadersHeightSizeModeChanged(self: DataGridView,e: DataGridViewAutoSizeModeEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnHeadersHeightSizeModeChanged event. e: A System.Windows.Forms.DataGridViewAutoSizeModeEventArgs that contains the event data. """ pass def OnColumnMinimumWidthChanged(self, *args): """ OnColumnMinimumWidthChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnMinimumWidthChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnNameChanged(self, *args): """ OnColumnNameChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnNameChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnRemoved(self, *args): """ OnColumnRemoved(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnRemoved event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnSortModeChanged(self, *args): """ OnColumnSortModeChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnSortModeChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnColumnStateChanged(self, *args): """ OnColumnStateChanged(self: DataGridView,e: DataGridViewColumnStateChangedEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnStateChanged event. e: A System.Windows.Forms.DataGridViewColumnStateChangedEventArgs that contains the event data. """ pass def OnColumnToolTipTextChanged(self, *args): """ OnColumnToolTipTextChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnToolTipTextChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains information about the column. """ pass def OnColumnWidthChanged(self, *args): """ OnColumnWidthChanged(self: DataGridView,e: DataGridViewColumnEventArgs) Raises the System.Windows.Forms.DataGridView.ColumnWidthChanged event. e: A System.Windows.Forms.DataGridViewColumnEventArgs that contains the event data. """ pass def OnContextMenuChanged(self, *args): """ OnContextMenuChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ContextMenuChanged event. e: An System.EventArgs that contains the event data. """ pass def OnContextMenuStripChanged(self, *args): """ OnContextMenuStripChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ContextMenuStripChanged event. e: An System.EventArgs that contains the event data. """ pass def OnControlAdded(self, *args): """ OnControlAdded(self: Control,e: ControlEventArgs) Raises the System.Windows.Forms.Control.ControlAdded event. e: A System.Windows.Forms.ControlEventArgs that contains the event data. """ pass def OnControlRemoved(self, *args): """ OnControlRemoved(self: Control,e: ControlEventArgs) Raises the System.Windows.Forms.Control.ControlRemoved event. e: A System.Windows.Forms.ControlEventArgs that contains the event data. """ pass def OnCreateControl(self, *args): """ OnCreateControl(self: Control) Raises the System.Windows.Forms.Control.CreateControl method. """ pass def OnCurrentCellChanged(self, *args): """ OnCurrentCellChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.CurrentCellChanged event. e: An System.EventArgs that contains the event data. """ pass def OnCurrentCellDirtyStateChanged(self, *args): """ OnCurrentCellDirtyStateChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.CurrentCellDirtyStateChanged event. e: An System.EventArgs that contains the event data. """ pass def OnCursorChanged(self, *args): """ OnCursorChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.Control.CursorChanged event and updates the System.Windows.Forms.DataGridView.UserSetCursor property if the cursor was changed in user code. e: An System.EventArgs that contains the event data. """ pass def OnDataBindingComplete(self, *args): """ OnDataBindingComplete(self: DataGridView,e: DataGridViewBindingCompleteEventArgs) Raises the System.Windows.Forms.DataGridView.DataBindingComplete event. e: A System.Windows.Forms.DataGridViewBindingCompleteEventArgs that contains the event data. """ pass def OnDataError(self, *args): """ OnDataError(self: DataGridView,displayErrorDialogIfNoHandler: bool,e: DataGridViewDataErrorEventArgs) Raises the System.Windows.Forms.DataGridView.DataError event. displayErrorDialogIfNoHandler: true to display an error dialog box if there is no handler for the System.Windows.Forms.DataGridView.DataError event. e: A System.Windows.Forms.DataGridViewDataErrorEventArgs that contains the event data. """ pass def OnDataMemberChanged(self, *args): """ OnDataMemberChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.DataMemberChanged event. e: An System.EventArgs that contains the event data. """ pass def OnDataSourceChanged(self, *args): """ OnDataSourceChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.DataSourceChanged event. e: An System.EventArgs that contains the event data. """ pass def OnDefaultCellStyleChanged(self, *args): """ OnDefaultCellStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.DefaultCellStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnDefaultValuesNeeded(self, *args): """ OnDefaultValuesNeeded(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.DefaultValuesNeeded event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnDockChanged(self, *args): """ OnDockChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.DockChanged event. e: An System.EventArgs that contains the event data. """ pass def OnDoubleClick(self, *args): """ OnDoubleClick(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.Control.DoubleClick event. e: An System.EventArgs that contains the event data. """ pass def OnDpiChangedAfterParent(self, *args): """ OnDpiChangedAfterParent(self: Control,e: EventArgs) """ pass def OnDpiChangedBeforeParent(self, *args): """ OnDpiChangedBeforeParent(self: Control,e: EventArgs) """ pass def OnDragDrop(self, *args): """ OnDragDrop(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragDrop event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def OnDragEnter(self, *args): """ OnDragEnter(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragEnter event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def OnDragLeave(self, *args): """ OnDragLeave(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.DragLeave event. e: An System.EventArgs that contains the event data. """ pass def OnDragOver(self, *args): """ OnDragOver(self: Control,drgevent: DragEventArgs) Raises the System.Windows.Forms.Control.DragOver event. drgevent: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def OnEditingControlShowing(self, *args): """ OnEditingControlShowing(self: DataGridView,e: DataGridViewEditingControlShowingEventArgs) Raises the System.Windows.Forms.DataGridView.EditingControlShowing event. e: A System.Windows.Forms.DataGridViewEditingControlShowingEventArgs that contains information about the editing control. """ pass def OnEditModeChanged(self, *args): """ OnEditModeChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.EditModeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnEnabledChanged(self, *args): """ OnEnabledChanged(self: DataGridView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnEnter(self, *args): """ OnEnter(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.Control.Enter event. e: An System.EventArgs that contains the event data. """ pass def OnFontChanged(self, *args): """ OnFontChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.FontChanged event. e: An System.EventArgs that contains the event data. """ pass def OnForeColorChanged(self, *args): """ OnForeColorChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.ForeColorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnGiveFeedback(self, *args): """ OnGiveFeedback(self: Control,gfbevent: GiveFeedbackEventArgs) Raises the System.Windows.Forms.Control.GiveFeedback event. gfbevent: A System.Windows.Forms.GiveFeedbackEventArgs that contains the event data. """ pass def OnGotFocus(self, *args): """ OnGotFocus(self: DataGridView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnGridColorChanged(self, *args): """ OnGridColorChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.GridColorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnHandleCreated(self, *args): """ OnHandleCreated(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.Control.HandleCreated event. e: An System.EventArgs that contains the event data. """ pass def OnHandleDestroyed(self, *args): """ OnHandleDestroyed(self: DataGridView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnHelpRequested(self, *args): """ OnHelpRequested(self: Control,hevent: HelpEventArgs) Raises the System.Windows.Forms.Control.HelpRequested event. hevent: A System.Windows.Forms.HelpEventArgs that contains the event data. """ pass def OnImeModeChanged(self, *args): """ OnImeModeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ImeModeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnInvalidated(self, *args): """ OnInvalidated(self: Control,e: InvalidateEventArgs) Raises the System.Windows.Forms.Control.Invalidated event. e: An System.Windows.Forms.InvalidateEventArgs that contains the event data. """ pass def OnKeyDown(self, *args): """ OnKeyDown(self: DataGridView,e: KeyEventArgs) Raises the System.Windows.Forms.Control.KeyDown event. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def OnKeyPress(self, *args): """ OnKeyPress(self: DataGridView,e: KeyPressEventArgs) Raises the System.Windows.Forms.Control.KeyPress event. e: A System.Windows.Forms.KeyPressEventArgs that contains the event data. """ pass def OnKeyUp(self, *args): """ OnKeyUp(self: DataGridView,e: KeyEventArgs) Raises the System.Windows.Forms.Control.KeyUp event. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def OnLayout(self, *args): """ OnLayout(self: DataGridView,e: LayoutEventArgs) Raises the System.Windows.Forms.Control.Layout event. e: A System.Windows.Forms.LayoutEventArgs that contains the event data. """ pass def OnLeave(self, *args): """ OnLeave(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.Control.Leave event. e: An System.EventArgs that contains the event data. """ pass def OnLocationChanged(self, *args): """ OnLocationChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.LocationChanged event. e: An System.EventArgs that contains the event data. """ pass def OnLostFocus(self, *args): """ OnLostFocus(self: DataGridView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnMarginChanged(self, *args): """ OnMarginChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MarginChanged event. e: A System.EventArgs that contains the event data. """ pass def OnMouseCaptureChanged(self, *args): """ OnMouseCaptureChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MouseCaptureChanged event. e: An System.EventArgs that contains the event data. """ pass def OnMouseClick(self, *args): """ OnMouseClick(self: DataGridView,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseClick event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseDoubleClick(self, *args): """ OnMouseDoubleClick(self: DataGridView,e: MouseEventArgs) e: An System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseDown(self, *args): """ OnMouseDown(self: DataGridView,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseDown event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseEnter(self, *args): """ OnMouseEnter(self: DataGridView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnMouseHover(self, *args): """ OnMouseHover(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.MouseHover event. e: An System.EventArgs that contains the event data. """ pass def OnMouseLeave(self, *args): """ OnMouseLeave(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.Control.MouseLeave event. e: An System.EventArgs that contains the event data. """ pass def OnMouseMove(self, *args): """ OnMouseMove(self: DataGridView,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseMove event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseUp(self, *args): """ OnMouseUp(self: DataGridView,e: MouseEventArgs) Raises the System.Windows.Forms.Control.MouseUp event. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMouseWheel(self, *args): """ OnMouseWheel(self: DataGridView,e: MouseEventArgs) e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def OnMove(self, *args): """ OnMove(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Move event. e: An System.EventArgs that contains the event data. """ pass def OnMultiSelectChanged(self, *args): """ OnMultiSelectChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.MultiSelectChanged event. e: An System.EventArgs that contains the event data. """ pass def OnNewRowNeeded(self, *args): """ OnNewRowNeeded(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.NewRowNeeded event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnNotifyMessage(self, *args): """ OnNotifyMessage(self: Control,m: Message) Notifies the control of Windows messages. m: A System.Windows.Forms.Message that represents the Windows message. """ pass def OnPaddingChanged(self, *args): """ OnPaddingChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.PaddingChanged event. e: A System.EventArgs that contains the event data. """ pass def OnPaint(self, *args): """ OnPaint(self: DataGridView,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def OnPaintBackground(self, *args): """ OnPaintBackground(self: Control,pevent: PaintEventArgs) Paints the background of the control. pevent: A System.Windows.Forms.PaintEventArgs that contains information about the control to paint. """ pass def OnParentBackColorChanged(self, *args): """ OnParentBackColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackColorChanged event when the System.Windows.Forms.Control.BackColor property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentBackgroundImageChanged(self, *args): """ OnParentBackgroundImageChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BackgroundImageChanged event when the System.Windows.Forms.Control.BackgroundImage property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentBindingContextChanged(self, *args): """ OnParentBindingContextChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.BindingContextChanged event when the System.Windows.Forms.Control.BindingContext property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentChanged(self, *args): """ OnParentChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ParentChanged event. e: An System.EventArgs that contains the event data. """ pass def OnParentCursorChanged(self, *args): """ OnParentCursorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.CursorChanged event. e: An System.EventArgs that contains the event data. """ pass def OnParentEnabledChanged(self, *args): """ OnParentEnabledChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.EnabledChanged event when the System.Windows.Forms.Control.Enabled property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentFontChanged(self, *args): """ OnParentFontChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.FontChanged event when the System.Windows.Forms.Control.Font property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentForeColorChanged(self, *args): """ OnParentForeColorChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.ForeColorChanged event when the System.Windows.Forms.Control.ForeColor property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentRightToLeftChanged(self, *args): """ OnParentRightToLeftChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.RightToLeftChanged event when the System.Windows.Forms.Control.RightToLeft property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnParentVisibleChanged(self, *args): """ OnParentVisibleChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.VisibleChanged event when the System.Windows.Forms.Control.Visible property value of the control's container changes. e: An System.EventArgs that contains the event data. """ pass def OnPreviewKeyDown(self, *args): """ OnPreviewKeyDown(self: Control,e: PreviewKeyDownEventArgs) Raises the System.Windows.Forms.Control.PreviewKeyDown event. e: A System.Windows.Forms.PreviewKeyDownEventArgs that contains the event data. """ pass def OnPrint(self, *args): """ OnPrint(self: Control,e: PaintEventArgs) Raises the System.Windows.Forms.Control.Paint event. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def OnQueryContinueDrag(self, *args): """ OnQueryContinueDrag(self: Control,qcdevent: QueryContinueDragEventArgs) Raises the System.Windows.Forms.Control.QueryContinueDrag event. qcdevent: A System.Windows.Forms.QueryContinueDragEventArgs that contains the event data. """ pass def OnReadOnlyChanged(self, *args): """ OnReadOnlyChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.ReadOnlyChanged event. e: An System.EventArgs that contains the event data. """ pass def OnRegionChanged(self, *args): """ OnRegionChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.RegionChanged event. e: An System.EventArgs that contains the event data. """ pass def OnResize(self, *args): """ OnResize(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.Control.Resize event. e: An System.EventArgs that contains the event data. """ pass def OnRightToLeftChanged(self, *args): """ OnRightToLeftChanged(self: DataGridView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def OnRowContextMenuStripChanged(self, *args): """ OnRowContextMenuStripChanged(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.RowContextMenuStripChanged event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnRowContextMenuStripNeeded(self, *args): """ OnRowContextMenuStripNeeded(self: DataGridView,e: DataGridViewRowContextMenuStripNeededEventArgs) Raises the System.Windows.Forms.DataGridView.RowContextMenuStripNeeded event. e: A System.Windows.Forms.DataGridViewRowContextMenuStripNeededEventArgs that contains the event data. """ pass def OnRowDefaultCellStyleChanged(self, *args): """ OnRowDefaultCellStyleChanged(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.RowDefaultCellStyleChanged event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnRowDirtyStateNeeded(self, *args): """ OnRowDirtyStateNeeded(self: DataGridView,e: QuestionEventArgs) Raises the System.Windows.Forms.DataGridView.RowDirtyStateNeeded event. e: A System.Windows.Forms.QuestionEventArgs that contains the event data. """ pass def OnRowDividerDoubleClick(self, *args): """ OnRowDividerDoubleClick(self: DataGridView,e: DataGridViewRowDividerDoubleClickEventArgs) Raises the System.Windows.Forms.DataGridView.RowDividerDoubleClick event. e: A System.Windows.Forms.DataGridViewRowDividerDoubleClickEventArgs that contains the event data. """ pass def OnRowDividerHeightChanged(self, *args): """ OnRowDividerHeightChanged(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.RowDividerHeightChanged event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnRowEnter(self, *args): """ OnRowEnter(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.RowEnter event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnRowErrorTextChanged(self, *args): """ OnRowErrorTextChanged(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.RowErrorTextChanged event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnRowErrorTextNeeded(self, *args): """ OnRowErrorTextNeeded(self: DataGridView,e: DataGridViewRowErrorTextNeededEventArgs) Raises the System.Windows.Forms.DataGridView.RowErrorTextNeeded event. e: A System.Windows.Forms.DataGridViewRowErrorTextNeededEventArgs that contains the event data. """ pass def OnRowHeaderCellChanged(self, *args): """ OnRowHeaderCellChanged(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.RowHeaderCellChanged event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnRowHeaderMouseClick(self, *args): """ OnRowHeaderMouseClick(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.RowHeaderMouseClick event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains information about the mouse and the header cell that was clicked. """ pass def OnRowHeaderMouseDoubleClick(self, *args): """ OnRowHeaderMouseDoubleClick(self: DataGridView,e: DataGridViewCellMouseEventArgs) Raises the System.Windows.Forms.DataGridView.RowHeaderMouseDoubleClick event. e: A System.Windows.Forms.DataGridViewCellMouseEventArgs that contains information about the mouse and the header cell that was double-clicked. """ pass def OnRowHeadersBorderStyleChanged(self, *args): """ OnRowHeadersBorderStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.RowHeadersBorderStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnRowHeadersDefaultCellStyleChanged(self, *args): """ OnRowHeadersDefaultCellStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.RowHeadersDefaultCellStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnRowHeadersWidthChanged(self, *args): """ OnRowHeadersWidthChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.RowHeadersWidthChanged event. e: An System.EventArgs that contains the event data. """ pass def OnRowHeadersWidthSizeModeChanged(self, *args): """ OnRowHeadersWidthSizeModeChanged(self: DataGridView,e: DataGridViewAutoSizeModeEventArgs) Raises the System.Windows.Forms.DataGridView.RowHeadersWidthSizeModeChanged event. e: A System.Windows.Forms.DataGridViewAutoSizeModeEventArgs that contains the event data. """ pass def OnRowHeightChanged(self, *args): """ OnRowHeightChanged(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.RowHeightChanged event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnRowHeightInfoNeeded(self, *args): """ OnRowHeightInfoNeeded(self: DataGridView,e: DataGridViewRowHeightInfoNeededEventArgs) Raises the System.Windows.Forms.DataGridView.RowHeightInfoNeeded event. e: A System.Windows.Forms.DataGridViewRowHeightInfoNeededEventArgs that contains the event data. """ pass def OnRowHeightInfoPushed(self, *args): """ OnRowHeightInfoPushed(self: DataGridView,e: DataGridViewRowHeightInfoPushedEventArgs) Raises the System.Windows.Forms.DataGridView.RowHeightInfoPushed event. e: A System.Windows.Forms.DataGridViewRowHeightInfoPushedEventArgs that contains the event data. """ pass def OnRowLeave(self, *args): """ OnRowLeave(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.RowLeave event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnRowMinimumHeightChanged(self, *args): """ OnRowMinimumHeightChanged(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.RowMinimumHeightChanged event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnRowPostPaint(self, *args): """ OnRowPostPaint(self: DataGridView,e: DataGridViewRowPostPaintEventArgs) Raises the System.Windows.Forms.DataGridView.RowPostPaint event. e: A System.Windows.Forms.DataGridViewRowPostPaintEventArgs that contains the event data. """ pass def OnRowPrePaint(self, *args): """ OnRowPrePaint(self: DataGridView,e: DataGridViewRowPrePaintEventArgs) Raises the System.Windows.Forms.DataGridView.RowPrePaint event. e: A System.Windows.Forms.DataGridViewRowPrePaintEventArgs that contains the event data. """ pass def OnRowsAdded(self, *args): """ OnRowsAdded(self: DataGridView,e: DataGridViewRowsAddedEventArgs) Raises the System.Windows.Forms.DataGridView.RowsAdded event. e: A System.Windows.Forms.DataGridViewRowsAddedEventArgs that contains information about the added rows. """ pass def OnRowsDefaultCellStyleChanged(self, *args): """ OnRowsDefaultCellStyleChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.RowsDefaultCellStyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnRowsRemoved(self, *args): """ OnRowsRemoved(self: DataGridView,e: DataGridViewRowsRemovedEventArgs) Raises the System.Windows.Forms.DataGridView.RowsRemoved event. e: A System.Windows.Forms.DataGridViewRowsRemovedEventArgs that contains information about the deleted rows. """ pass def OnRowStateChanged(self, *args): """ OnRowStateChanged(self: DataGridView,rowIndex: int,e: DataGridViewRowStateChangedEventArgs) Raises the System.Windows.Forms.DataGridView.RowStateChanged event. rowIndex: The index of the row that is changing state. e: A System.Windows.Forms.DataGridViewRowStateChangedEventArgs that contains the event data. """ pass def OnRowUnshared(self, *args): """ OnRowUnshared(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.RowUnshared event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnRowValidated(self, *args): """ OnRowValidated(self: DataGridView,e: DataGridViewCellEventArgs) Raises the System.Windows.Forms.DataGridView.RowValidated event. e: A System.Windows.Forms.DataGridViewCellEventArgs that contains the event data. """ pass def OnRowValidating(self, *args): """ OnRowValidating(self: DataGridView,e: DataGridViewCellCancelEventArgs) Raises the System.Windows.Forms.DataGridView.RowValidating event. e: A System.Windows.Forms.DataGridViewCellCancelEventArgs that contains the event data. """ pass def OnScroll(self, *args): """ OnScroll(self: DataGridView,e: ScrollEventArgs) Raises the System.Windows.Forms.DataGridView.Scroll event. e: A System.Windows.Forms.ScrollEventArgs that contains the event data. """ pass def OnSelectionChanged(self, *args): """ OnSelectionChanged(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.SelectionChanged event. e: An System.EventArgs that contains information about the event. """ pass def OnSizeChanged(self, *args): """ OnSizeChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.SizeChanged event. e: An System.EventArgs that contains the event data. """ pass def OnSortCompare(self, *args): """ OnSortCompare(self: DataGridView,e: DataGridViewSortCompareEventArgs) Raises the System.Windows.Forms.DataGridView.SortCompare event. e: A System.Windows.Forms.DataGridViewSortCompareEventArgs that contains the event data. """ pass def OnSorted(self, *args): """ OnSorted(self: DataGridView,e: EventArgs) Raises the System.Windows.Forms.DataGridView.Sorted event. e: An System.EventArgs that contains the event data. """ pass def OnStyleChanged(self, *args): """ OnStyleChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.StyleChanged event. e: An System.EventArgs that contains the event data. """ pass def OnSystemColorsChanged(self, *args): """ OnSystemColorsChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.SystemColorsChanged event. e: An System.EventArgs that contains the event data. """ pass def OnTabIndexChanged(self, *args): """ OnTabIndexChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TabIndexChanged event. e: An System.EventArgs that contains the event data. """ pass def OnTabStopChanged(self, *args): """ OnTabStopChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TabStopChanged event. e: An System.EventArgs that contains the event data. """ pass def OnTextChanged(self, *args): """ OnTextChanged(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.TextChanged event. e: An System.EventArgs that contains the event data. """ pass def OnUserAddedRow(self, *args): """ OnUserAddedRow(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.UserAddedRow event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnUserDeletedRow(self, *args): """ OnUserDeletedRow(self: DataGridView,e: DataGridViewRowEventArgs) Raises the System.Windows.Forms.DataGridView.UserDeletedRow event. e: A System.Windows.Forms.DataGridViewRowEventArgs that contains the event data. """ pass def OnUserDeletingRow(self, *args): """ OnUserDeletingRow(self: DataGridView,e: DataGridViewRowCancelEventArgs) Raises the System.Windows.Forms.DataGridView.UserDeletingRow event. e: A System.Windows.Forms.DataGridViewRowCancelEventArgs that contains the event data. """ pass def OnValidated(self, *args): """ OnValidated(self: Control,e: EventArgs) Raises the System.Windows.Forms.Control.Validated event. e: An System.EventArgs that contains the event data. """ pass def OnValidating(self, *args): """ OnValidating(self: DataGridView,e: CancelEventArgs) Raises the System.Windows.Forms.Control.Validating event. e: A System.ComponentModel.CancelEventArgs that contains the event data. """ pass def OnVisibleChanged(self, *args): """ OnVisibleChanged(self: DataGridView,e: EventArgs) e: An System.EventArgs that contains the event data. """ pass def PaintBackground(self, *args): """ PaintBackground(self: DataGridView,graphics: Graphics,clipBounds: Rectangle,gridBounds: Rectangle) Paints the background of the System.Windows.Forms.DataGridView. graphics: The System.Drawing.Graphics used to paint the background. clipBounds: A System.Drawing.Rectangle that represents the area of the System.Windows.Forms.DataGridView that needs to be painted. gridBounds: A System.Drawing.Rectangle that represents the area in which cells are drawn. """ pass def ProcessAKey(self, *args): """ ProcessAKey(self: DataGridView,keyData: Keys) -> bool Processes the A key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessCmdKey(self, *args): """ ProcessCmdKey(self: Control,msg: Message,keyData: Keys) -> (bool,Message) Processes a command key. msg: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. keyData: One of the System.Windows.Forms.Keys values that represents the key to process. Returns: true if the character was processed by the control; otherwise,false. """ pass def ProcessDataGridViewKey(self, *args): """ ProcessDataGridViewKey(self: DataGridView,e: KeyEventArgs) -> bool Processes keys used for navigating in the System.Windows.Forms.DataGridView. e: Contains information about the key that was pressed. Returns: true if the key was processed; otherwise,false. """ pass def ProcessDeleteKey(self, *args): """ ProcessDeleteKey(self: DataGridView,keyData: Keys) -> bool Processes the DELETE key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessDialogChar(self, *args): """ ProcessDialogChar(self: Control,charCode: Char) -> bool Processes a dialog character. charCode: The character to process. Returns: true if the character was processed by the control; otherwise,false. """ pass def ProcessDialogKey(self, *args): """ ProcessDialogKey(self: DataGridView,keyData: Keys) -> bool Processes keys,such as the TAB,ESCAPE,ENTER,and ARROW keys,used to control dialog boxes. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessDownKey(self, *args): """ ProcessDownKey(self: DataGridView,keyData: Keys) -> bool Processes the DOWN ARROW key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessEndKey(self, *args): """ ProcessEndKey(self: DataGridView,keyData: Keys) -> bool Processes the END key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessEnterKey(self, *args): """ ProcessEnterKey(self: DataGridView,keyData: Keys) -> bool Processes the ENTER key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessEscapeKey(self, *args): """ ProcessEscapeKey(self: DataGridView,keyData: Keys) -> bool Processes the ESC key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessF2Key(self, *args): """ ProcessF2Key(self: DataGridView,keyData: Keys) -> bool Processes the F2 key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessHomeKey(self, *args): """ ProcessHomeKey(self: DataGridView,keyData: Keys) -> bool Processes the HOME key. keyData: The key that was pressed. Returns: true if the key was processed; otherwise,false. """ pass def ProcessInsertKey(self, *args): """ ProcessInsertKey(self: DataGridView,keyData: Keys) -> bool Processes the INSERT key. keyData: One of the System.Windows.Forms.Keys values that represents the key to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessKeyEventArgs(self, *args): """ ProcessKeyEventArgs(self: DataGridView,m: Message) -> (bool,Message) Processes a key message and generates the appropriate control events. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed; otherwise,false. """ pass def ProcessKeyMessage(self, *args): """ ProcessKeyMessage(self: Control,m: Message) -> (bool,Message) Processes a keyboard message. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed by the control; otherwise,false. """ pass def ProcessKeyPreview(self, *args): """ ProcessKeyPreview(self: DataGridView,m: Message) -> (bool,Message) Previews a keyboard message. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. Returns: true if the message was processed; otherwise,false. """ pass def ProcessLeftKey(self, *args): """ ProcessLeftKey(self: DataGridView,keyData: Keys) -> bool Processes the LEFT ARROW key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessMnemonic(self, *args): """ ProcessMnemonic(self: Control,charCode: Char) -> bool Processes a mnemonic character. charCode: The character to process. Returns: true if the character was processed as a mnemonic by the control; otherwise,false. """ pass def ProcessNextKey(self, *args): """ ProcessNextKey(self: DataGridView,keyData: Keys) -> bool Processes the PAGE DOWN key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessPriorKey(self, *args): """ ProcessPriorKey(self: DataGridView,keyData: Keys) -> bool Processes the PAGE UP key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessRightKey(self, *args): """ ProcessRightKey(self: DataGridView,keyData: Keys) -> bool Processes the RIGHT ARROW key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessSpaceKey(self, *args): """ ProcessSpaceKey(self: DataGridView,keyData: Keys) -> bool Processes the SPACEBAR. keyData: One of the System.Windows.Forms.Keys values that represents the key to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessTabKey(self, *args): """ ProcessTabKey(self: DataGridView,keyData: Keys) -> bool Processes the TAB key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessUpKey(self, *args): """ ProcessUpKey(self: DataGridView,keyData: Keys) -> bool Processes the UP ARROW key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def ProcessZeroKey(self, *args): """ ProcessZeroKey(self: DataGridView,keyData: Keys) -> bool Processes the 0 key. keyData: A bitwise combination of System.Windows.Forms.Keys values that represents the key or keys to process. Returns: true if the key was processed; otherwise,false. """ pass def RaiseDragEvent(self, *args): """ RaiseDragEvent(self: Control,key: object,e: DragEventArgs) Raises the appropriate drag event. key: The event to raise. e: A System.Windows.Forms.DragEventArgs that contains the event data. """ pass def RaiseKeyEvent(self, *args): """ RaiseKeyEvent(self: Control,key: object,e: KeyEventArgs) Raises the appropriate key event. key: The event to raise. e: A System.Windows.Forms.KeyEventArgs that contains the event data. """ pass def RaiseMouseEvent(self, *args): """ RaiseMouseEvent(self: Control,key: object,e: MouseEventArgs) Raises the appropriate mouse event. key: The event to raise. e: A System.Windows.Forms.MouseEventArgs that contains the event data. """ pass def RaisePaintEvent(self, *args): """ RaisePaintEvent(self: Control,key: object,e: PaintEventArgs) Raises the appropriate paint event. key: The event to raise. e: A System.Windows.Forms.PaintEventArgs that contains the event data. """ pass def RecreateHandle(self, *args): """ RecreateHandle(self: Control) Forces the re-creation of the handle for the control. """ pass def RefreshEdit(self): """ RefreshEdit(self: DataGridView) -> bool Refreshes the value of the current cell with the underlying cell value when the cell is in edit mode,discarding any previous value. Returns: true if successful; false if a System.Windows.Forms.DataGridView.DataError event occurred. """ pass def RescaleConstantsForDpi(self, *args): """ RescaleConstantsForDpi(self: Control,deviceDpiOld: int,deviceDpiNew: int) """ pass def ResetMouseEventArgs(self, *args): """ ResetMouseEventArgs(self: Control) Resets the control to handle the System.Windows.Forms.Control.MouseLeave event. """ pass def ResetText(self): """ ResetText(self: DataGridView) Resets the System.Windows.Forms.DataGridView.Text property to its default value. """ pass def RtlTranslateAlignment(self, *args): """ RtlTranslateAlignment(self: Control,align: ContentAlignment) -> ContentAlignment Converts the specified System.Drawing.ContentAlignment to the appropriate System.Drawing.ContentAlignment to support right-to-left text. align: One of the System.Drawing.ContentAlignment values. Returns: One of the System.Drawing.ContentAlignment values. RtlTranslateAlignment(self: Control,align: LeftRightAlignment) -> LeftRightAlignment Converts the specified System.Windows.Forms.LeftRightAlignment to the appropriate System.Windows.Forms.LeftRightAlignment to support right-to-left text. align: One of the System.Windows.Forms.LeftRightAlignment values. Returns: One of the System.Windows.Forms.LeftRightAlignment values. RtlTranslateAlignment(self: Control,align: HorizontalAlignment) -> HorizontalAlignment Converts the specified System.Windows.Forms.HorizontalAlignment to the appropriate System.Windows.Forms.HorizontalAlignment to support right-to-left text. align: One of the System.Windows.Forms.HorizontalAlignment values. Returns: One of the System.Windows.Forms.HorizontalAlignment values. """ pass def RtlTranslateContent(self, *args): """ RtlTranslateContent(self: Control,align: ContentAlignment) -> ContentAlignment Converts the specified System.Drawing.ContentAlignment to the appropriate System.Drawing.ContentAlignment to support right-to-left text. align: One of the System.Drawing.ContentAlignment values. Returns: One of the System.Drawing.ContentAlignment values. """ pass def RtlTranslateHorizontal(self, *args): """ RtlTranslateHorizontal(self: Control,align: HorizontalAlignment) -> HorizontalAlignment Converts the specified System.Windows.Forms.HorizontalAlignment to the appropriate System.Windows.Forms.HorizontalAlignment to support right-to-left text. align: One of the System.Windows.Forms.HorizontalAlignment values. Returns: One of the System.Windows.Forms.HorizontalAlignment values. """ pass def RtlTranslateLeftRight(self, *args): """ RtlTranslateLeftRight(self: Control,align: LeftRightAlignment) -> LeftRightAlignment Converts the specified System.Windows.Forms.LeftRightAlignment to the appropriate System.Windows.Forms.LeftRightAlignment to support right-to-left text. align: One of the System.Windows.Forms.LeftRightAlignment values. Returns: One of the System.Windows.Forms.LeftRightAlignment values. """ pass def ScaleControl(self, *args): """ ScaleControl(self: Control,factor: SizeF,specified: BoundsSpecified) Scales a control's location,size,padding and margin. factor: The factor by which the height and width of the control will be scaled. specified: A System.Windows.Forms.BoundsSpecified value that specifies the bounds of the control to use when defining its size and position. """ pass def ScaleCore(self, *args): """ ScaleCore(self: Control,dx: Single,dy: Single) This method is not relevant for this class. dx: The horizontal scaling factor. dy: The vertical scaling factor. """ pass def Select(self): """ Select(self: Control,directed: bool,forward: bool) Activates a child control. Optionally specifies the direction in the tab order to select the control from. directed: true to specify the direction of the control to select; otherwise,false. forward: true to move forward in the tab order; false to move backward in the tab order. """ pass def SelectAll(self): """ SelectAll(self: DataGridView) Selects all the cells in the System.Windows.Forms.DataGridView. """ pass def SetAutoSizeMode(self, *args): """ SetAutoSizeMode(self: Control,mode: AutoSizeMode) Sets a value indicating how a control will behave when its System.Windows.Forms.Control.AutoSize property is enabled. mode: One of the System.Windows.Forms.AutoSizeMode values. """ pass def SetBoundsCore(self, *args): """ SetBoundsCore(self: DataGridView,x: int,y: int,width: int,height: int,specified: BoundsSpecified) This member overrides System.Windows.Forms.Control.SetBoundsCore(System.Int32,System.Int32,System.Int32,System.Int32,Sy stem.Windows.Forms.BoundsSpecified). x: The new System.Windows.Forms.Control.Left property value of the control. y: The new System.Windows.Forms.Control.Top property value of the control. width: The new System.Windows.Forms.Control.Width property value of the control. height: The new System.Windows.Forms.Control.Height property value of the control. specified: A bitwise combination of the System.Windows.Forms.BoundsSpecified values. """ pass def SetClientSizeCore(self, *args): """ SetClientSizeCore(self: Control,x: int,y: int) Sets the size of the client area of the control. x: The client area width,in pixels. y: The client area height,in pixels. """ pass def SetCurrentCellAddressCore(self, *args): """ SetCurrentCellAddressCore(self: DataGridView,columnIndex: int,rowIndex: int,setAnchorCellAddress: bool,validateCurrentCell: bool,throughMouseClick: bool) -> bool Sets the currently active cell. columnIndex: The index of the column containing the cell. rowIndex: The index of the row containing the cell. setAnchorCellAddress: true to make the new current cell the anchor cell for a subsequent multicell selection using the SHIFT key; otherwise,false. validateCurrentCell: true to validate the value in the old current cell and cancel the change if validation fails; otherwise,false. throughMouseClick: true if the current cell is being set as a result of a mouse click; otherwise,false. Returns: true if the current cell was successfully set; otherwise,false. """ pass def SetSelectedCellCore(self, *args): """ SetSelectedCellCore(self: DataGridView,columnIndex: int,rowIndex: int,selected: bool) Changes the selection state of the cell with the specified row and column indexes. columnIndex: The index of the column containing the cell. rowIndex: The index of the row containing the cell. selected: true to select the cell; false to cancel the selection of the cell. """ pass def SetSelectedColumnCore(self, *args): """ SetSelectedColumnCore(self: DataGridView,columnIndex: int,selected: bool) Changes the selection state of the column with the specified index. columnIndex: The index of the column. selected: true to select the column; false to cancel the selection of the column. """ pass def SetSelectedRowCore(self, *args): """ SetSelectedRowCore(self: DataGridView,rowIndex: int,selected: bool) Changes the selection state of the row with the specified index. rowIndex: The index of the row. selected: true to select the row; false to cancel the selection of the row. """ pass def SetStyle(self, *args): """ SetStyle(self: Control,flag: ControlStyles,value: bool) Sets a specified System.Windows.Forms.ControlStyles flag to either true or false. flag: The System.Windows.Forms.ControlStyles bit to set. value: true to apply the specified style to the control; otherwise,false. """ pass def SetTopLevel(self, *args): """ SetTopLevel(self: Control,value: bool) Sets the control as the top-level control. value: true to set the control as the top-level control; otherwise,false. """ pass def SetVisibleCore(self, *args): """ SetVisibleCore(self: Control,value: bool) Sets the control to the specified visible state. value: true to make the control visible; otherwise,false. """ pass def SizeFromClientSize(self, *args): """ SizeFromClientSize(self: Control,clientSize: Size) -> Size Determines the size of the entire control from the height and width of its client area. clientSize: A System.Drawing.Size value representing the height and width of the control's client area. Returns: A System.Drawing.Size value representing the height and width of the entire control. """ pass def Sort(self, *__args): """ Sort(self: DataGridView,comparer: IComparer) Sorts the contents of the System.Windows.Forms.DataGridView control using an implementation of the System.Collections.IComparer interface. comparer: An implementation of System.Collections.IComparer that performs the custom sorting operation. Sort(self: DataGridView,dataGridViewColumn: DataGridViewColumn,direction: ListSortDirection) Sorts the contents of the System.Windows.Forms.DataGridView control in ascending or descending order based on the contents of the specified column. dataGridViewColumn: The column by which to sort the contents of the System.Windows.Forms.DataGridView. direction: One of the System.ComponentModel.ListSortDirection values. """ pass def UpdateBounds(self, *args): """ UpdateBounds(self: Control,x: int,y: int,width: int,height: int,clientWidth: int,clientHeight: int) Updates the bounds of the control with the specified size,location,and client size. x: The System.Drawing.Point.X coordinate of the control. y: The System.Drawing.Point.Y coordinate of the control. width: The System.Drawing.Size.Width of the control. height: The System.Drawing.Size.Height of the control. clientWidth: The client System.Drawing.Size.Width of the control. clientHeight: The client System.Drawing.Size.Height of the control. UpdateBounds(self: Control,x: int,y: int,width: int,height: int) Updates the bounds of the control with the specified size and location. x: The System.Drawing.Point.X coordinate of the control. y: The System.Drawing.Point.Y coordinate of the control. width: The System.Drawing.Size.Width of the control. height: The System.Drawing.Size.Height of the control. UpdateBounds(self: Control) Updates the bounds of the control with the current size and location. """ pass def UpdateCellErrorText(self, columnIndex, rowIndex): """ UpdateCellErrorText(self: DataGridView,columnIndex: int,rowIndex: int) Forces the cell at the specified location to update its error text. columnIndex: The column index of the cell to update,or -1 to indicate a row header cell. rowIndex: The row index of the cell to update,or -1 to indicate a column header cell. """ pass def UpdateCellValue(self, columnIndex, rowIndex): """ UpdateCellValue(self: DataGridView,columnIndex: int,rowIndex: int) Forces the control to update its display of the cell at the specified location based on its new value,applying any automatic sizing modes currently in effect. columnIndex: The zero-based column index of the cell with the new value. rowIndex: The zero-based row index of the cell with the new value. """ pass def UpdateRowErrorText(self, *__args): """ UpdateRowErrorText(self: DataGridView,rowIndexStart: int,rowIndexEnd: int) Forces the rows in the given range to update their error text. rowIndexStart: The zero-based index of the first row in the set of rows to update. rowIndexEnd: The zero-based index of the last row in the set of rows to update. UpdateRowErrorText(self: DataGridView,rowIndex: int) Forces the row at the given row index to update its error text. rowIndex: The zero-based index of the row to update. """ pass def UpdateRowHeightInfo(self, rowIndex, updateToEnd): """ UpdateRowHeightInfo(self: DataGridView,rowIndex: int,updateToEnd: bool) Forces the specified row or rows to update their height information. rowIndex: The zero-based index of the first row to update. updateToEnd: true to update the specified row and all subsequent rows. """ pass def UpdateStyles(self, *args): """ UpdateStyles(self: Control) Forces the assigned styles to be reapplied to the control. """ pass def UpdateZOrder(self, *args): """ UpdateZOrder(self: Control) Updates the control in its parent's z-order. """ pass def WndProc(self, *args): """ WndProc(self: DataGridView,m: Message) -> Message Processes window messages. m: A System.Windows.Forms.Message,passed by reference,that represents the window message to process. """ pass def __enter__(self, *args): """ __enter__(self: IDisposable) -> object Provides the implementation of __enter__ for objects which implement IDisposable. """ pass def __exit__(self, *args): """ __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) Provides the implementation of __exit__ for objects which implement IDisposable. """ pass def __getitem__(self, *args): """ x.__getitem__(y) <==> x[y]x.__getitem__(y) <==> x[y] """ pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __setitem__(self, *args): """ x.__setitem__(i,y) <==> x[i]=x.__setitem__(i,y) <==> x[i]= """ pass def __str__(self, *args): pass AdjustedTopLeftHeaderBorderStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the border style for the upper-left cell in the System.Windows.Forms.DataGridView. Get: AdjustedTopLeftHeaderBorderStyle(self: DataGridView) -> DataGridViewAdvancedBorderStyle """ AdvancedCellBorderStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the border style of the cells in the System.Windows.Forms.DataGridView. Get: AdvancedCellBorderStyle(self: DataGridView) -> DataGridViewAdvancedBorderStyle """ AdvancedColumnHeadersBorderStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the border style of the column header cells in the System.Windows.Forms.DataGridView. Get: AdvancedColumnHeadersBorderStyle(self: DataGridView) -> DataGridViewAdvancedBorderStyle """ AdvancedRowHeadersBorderStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the border style of the row header cells in the System.Windows.Forms.DataGridView. Get: AdvancedRowHeadersBorderStyle(self: DataGridView) -> DataGridViewAdvancedBorderStyle """ AllowUserToAddRows = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the option to add rows is displayed to the user. Get: AllowUserToAddRows(self: DataGridView) -> bool Set: AllowUserToAddRows(self: DataGridView)=value """ AllowUserToDeleteRows = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the user is allowed to delete rows from the System.Windows.Forms.DataGridView. Get: AllowUserToDeleteRows(self: DataGridView) -> bool Set: AllowUserToDeleteRows(self: DataGridView)=value """ AllowUserToOrderColumns = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether manual column repositioning is enabled. Get: AllowUserToOrderColumns(self: DataGridView) -> bool Set: AllowUserToOrderColumns(self: DataGridView)=value """ AllowUserToResizeColumns = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether users can resize columns. Get: AllowUserToResizeColumns(self: DataGridView) -> bool Set: AllowUserToResizeColumns(self: DataGridView)=value """ AllowUserToResizeRows = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether users can resize rows. Get: AllowUserToResizeRows(self: DataGridView) -> bool Set: AllowUserToResizeRows(self: DataGridView)=value """ AlternatingRowsDefaultCellStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the default cell style applied to odd-numbered rows of the System.Windows.Forms.DataGridView. Get: AlternatingRowsDefaultCellStyle(self: DataGridView) -> DataGridViewCellStyle Set: AlternatingRowsDefaultCellStyle(self: DataGridView)=value """ AutoGenerateColumns = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether columns are created automatically when the System.Windows.Forms.DataGridView.DataSource or System.Windows.Forms.DataGridView.DataMember properties are set. Get: AutoGenerateColumns(self: DataGridView) -> bool Set: AutoGenerateColumns(self: DataGridView)=value """ AutoSize = property(lambda self: object(), lambda self, v: None, lambda self: None) """Get: AutoSize(self: DataGridView) -> bool Set: AutoSize(self: DataGridView)=value """ AutoSizeColumnsMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating how column widths are determined. Get: AutoSizeColumnsMode(self: DataGridView) -> DataGridViewAutoSizeColumnsMode Set: AutoSizeColumnsMode(self: DataGridView)=value """ AutoSizeRowsMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating how row heights are determined. Get: AutoSizeRowsMode(self: DataGridView) -> DataGridViewAutoSizeRowsMode Set: AutoSizeRowsMode(self: DataGridView)=value """ BackColor = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the background color for the control. Get: BackColor(self: DataGridView) -> Color Set: BackColor(self: DataGridView)=value """ BackgroundColor = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the background color of the System.Windows.Forms.DataGridView. Get: BackgroundColor(self: DataGridView) -> Color Set: BackgroundColor(self: DataGridView)=value """ BackgroundImage = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the background image displayed in the control. Get: BackgroundImage(self: DataGridView) -> Image Set: BackgroundImage(self: DataGridView)=value """ BackgroundImageLayout = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the background image layout as defined in the System.Windows.Forms.ImageLayout enumeration. Get: BackgroundImageLayout(self: DataGridView) -> ImageLayout Set: BackgroundImageLayout(self: DataGridView)=value """ BorderStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the border style for the System.Windows.Forms.DataGridView. Get: BorderStyle(self: DataGridView) -> BorderStyle Set: BorderStyle(self: DataGridView)=value """ CanEnableIme = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value indicating whether the System.Windows.Forms.Control.ImeMode property can be set to an active value,to enable IME support. """ CanRaiseEvents = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Determines if events can be raised on the control. """ CellBorderStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the cell border style for the System.Windows.Forms.DataGridView. Get: CellBorderStyle(self: DataGridView) -> DataGridViewCellBorderStyle Set: CellBorderStyle(self: DataGridView)=value """ ClipboardCopyMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value that indicates whether users can copy cell text values to the System.Windows.Forms.Clipboard and whether row and column header text is included. Get: ClipboardCopyMode(self: DataGridView) -> DataGridViewClipboardCopyMode Set: ClipboardCopyMode(self: DataGridView)=value """ ColumnCount = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the number of columns displayed in the System.Windows.Forms.DataGridView. Get: ColumnCount(self: DataGridView) -> int Set: ColumnCount(self: DataGridView)=value """ ColumnHeadersBorderStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the border style applied to the column headers. Get: ColumnHeadersBorderStyle(self: DataGridView) -> DataGridViewHeaderBorderStyle Set: ColumnHeadersBorderStyle(self: DataGridView)=value """ ColumnHeadersDefaultCellStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the default column header style. Get: ColumnHeadersDefaultCellStyle(self: DataGridView) -> DataGridViewCellStyle Set: ColumnHeadersDefaultCellStyle(self: DataGridView)=value """ ColumnHeadersHeight = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the height,in pixels,of the column headers row Get: ColumnHeadersHeight(self: DataGridView) -> int Set: ColumnHeadersHeight(self: DataGridView)=value """ ColumnHeadersHeightSizeMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the height of the column headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers. Get: ColumnHeadersHeightSizeMode(self: DataGridView) -> DataGridViewColumnHeadersHeightSizeMode Set: ColumnHeadersHeightSizeMode(self: DataGridView)=value """ ColumnHeadersVisible = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the column header row is displayed. Get: ColumnHeadersVisible(self: DataGridView) -> bool Set: ColumnHeadersVisible(self: DataGridView)=value """ Columns = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets a collection that contains all the columns in the control. Get: Columns(self: DataGridView) -> DataGridViewColumnCollection """ CreateParams = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the required creation parameters when the control handle is created. """ CurrentCell = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the currently active cell. Get: CurrentCell(self: DataGridView) -> DataGridViewCell Set: CurrentCell(self: DataGridView)=value """ CurrentCellAddress = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the row and column indexes of the currently active cell. Get: CurrentCellAddress(self: DataGridView) -> Point """ CurrentRow = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the row containing the current cell. Get: CurrentRow(self: DataGridView) -> DataGridViewRow """ DataMember = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the name of the list or table in the data source for which the System.Windows.Forms.DataGridView is displaying data. Get: DataMember(self: DataGridView) -> str Set: DataMember(self: DataGridView)=value """ DataSource = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the data source that the System.Windows.Forms.DataGridView is displaying data for. Get: DataSource(self: DataGridView) -> object Set: DataSource(self: DataGridView)=value """ DefaultCellStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the default cell style to be applied to the cells in the System.Windows.Forms.DataGridView if no other cell style properties are set. Get: DefaultCellStyle(self: DataGridView) -> DataGridViewCellStyle Set: DefaultCellStyle(self: DataGridView)=value """ DefaultCursor = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the default cursor for the control. """ DefaultImeMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the default Input Method Editor (IME) mode supported by the control. """ DefaultMargin = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the space,in pixels,that is specified by default between controls. """ DefaultMaximumSize = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the length and height,in pixels,that is specified as the default maximum size of a control. """ DefaultMinimumSize = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the length and height,in pixels,that is specified as the default minimum size of a control. """ DefaultPadding = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the internal spacing,in pixels,of the contents of a control. """ DefaultSize = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the default initial size of the control. """ DesignMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value that indicates whether the System.ComponentModel.Component is currently in design mode. """ DisplayRectangle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the rectangle that represents the display area of the control. Get: DisplayRectangle(self: DataGridView) -> Rectangle """ DoubleBuffered = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker. """ EditingControl = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the control hosted by the current cell,if a cell with an editing control is in edit mode. Get: EditingControl(self: DataGridView) -> Control """ EditingPanel = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the panel that contains the System.Windows.Forms.DataGridView.EditingControl. Get: EditingPanel(self: DataGridView) -> Panel """ EditMode = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets a value indicating how to begin editing a cell. Get: EditMode(self: DataGridView) -> DataGridViewEditMode Set: EditMode(self: DataGridView)=value """ EnableHeadersVisualStyles = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether row and column headers use the visual styles of the user's current theme if visual styles are enabled for the application. Get: EnableHeadersVisualStyles(self: DataGridView) -> bool Set: EnableHeadersVisualStyles(self: DataGridView)=value """ Events = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets the list of event handlers that are attached to this System.ComponentModel.Component. """ FirstDisplayedCell = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the first cell currently displayed in the System.Windows.Forms.DataGridView; typically,this cell is in the upper left corner. Get: FirstDisplayedCell(self: DataGridView) -> DataGridViewCell Set: FirstDisplayedCell(self: DataGridView)=value """ FirstDisplayedScrollingColumnHiddenWidth = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the width of the portion of the column that is currently scrolled out of view.. Get: FirstDisplayedScrollingColumnHiddenWidth(self: DataGridView) -> int """ FirstDisplayedScrollingColumnIndex = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the index of the column that is the first column displayed on the System.Windows.Forms.DataGridView. Get: FirstDisplayedScrollingColumnIndex(self: DataGridView) -> int Set: FirstDisplayedScrollingColumnIndex(self: DataGridView)=value """ FirstDisplayedScrollingRowIndex = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the index of the row that is the first row displayed on the System.Windows.Forms.DataGridView. Get: FirstDisplayedScrollingRowIndex(self: DataGridView) -> int Set: FirstDisplayedScrollingRowIndex(self: DataGridView)=value """ Font = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the font of the text displayed by the System.Windows.Forms.DataGridView. Get: Font(self: DataGridView) -> Font Set: Font(self: DataGridView)=value """ FontHeight = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the height of the font of the control. """ ForeColor = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the foreground color of the System.Windows.Forms.DataGridView. Get: ForeColor(self: DataGridView) -> Color Set: ForeColor(self: DataGridView)=value """ GridColor = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the color of the grid lines separating the cells of the System.Windows.Forms.DataGridView. Get: GridColor(self: DataGridView) -> Color Set: GridColor(self: DataGridView)=value """ HorizontalScrollBar = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the horizontal scroll bar of the control. """ HorizontalScrollingOffset = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the number of pixels by which the control is scrolled horizontally. Get: HorizontalScrollingOffset(self: DataGridView) -> int Set: HorizontalScrollingOffset(self: DataGridView)=value """ ImeModeBase = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the IME mode of a control. """ IsCurrentCellDirty = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value indicating whether the current cell has uncommitted changes. Get: IsCurrentCellDirty(self: DataGridView) -> bool """ IsCurrentCellInEditMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value indicating whether the currently active cell is being edited. Get: IsCurrentCellInEditMode(self: DataGridView) -> bool """ IsCurrentRowDirty = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value indicating whether the current row has uncommitted changes. Get: IsCurrentRowDirty(self: DataGridView) -> bool """ MultiSelect = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the user is allowed to select more than one cell,row,or column of the System.Windows.Forms.DataGridView at a time. Get: MultiSelect(self: DataGridView) -> bool Set: MultiSelect(self: DataGridView)=value """ NewRowIndex = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the index of the row for new records. Get: NewRowIndex(self: DataGridView) -> int """ Padding = property(lambda self: object(), lambda self, v: None, lambda self: None) """This property is not relevant for this control. Get: Padding(self: DataGridView) -> Padding Set: Padding(self: DataGridView)=value """ ReadOnly = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets a value indicating whether the user can edit the cells of the System.Windows.Forms.DataGridView control. Get: ReadOnly(self: DataGridView) -> bool Set: ReadOnly(self: DataGridView)=value """ RenderRightToLeft = property( lambda self: object(), lambda self, v: None, lambda self: None ) """This property is now obsolete. """ ResizeRedraw = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the control redraws itself when resized. """ RowCount = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the number of rows displayed in the System.Windows.Forms.DataGridView. Get: RowCount(self: DataGridView) -> int Set: RowCount(self: DataGridView)=value """ RowHeadersBorderStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the border style of the row header cells. Get: RowHeadersBorderStyle(self: DataGridView) -> DataGridViewHeaderBorderStyle Set: RowHeadersBorderStyle(self: DataGridView)=value """ RowHeadersDefaultCellStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the default style applied to the row header cells. Get: RowHeadersDefaultCellStyle(self: DataGridView) -> DataGridViewCellStyle Set: RowHeadersDefaultCellStyle(self: DataGridView)=value """ RowHeadersVisible = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the column that contains row headers is displayed. Get: RowHeadersVisible(self: DataGridView) -> bool Set: RowHeadersVisible(self: DataGridView)=value """ RowHeadersWidth = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the width,in pixels,of the column that contains the row headers. Get: RowHeadersWidth(self: DataGridView) -> int Set: RowHeadersWidth(self: DataGridView)=value """ RowHeadersWidthSizeMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the width of the row headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers. Get: RowHeadersWidthSizeMode(self: DataGridView) -> DataGridViewRowHeadersWidthSizeMode Set: RowHeadersWidthSizeMode(self: DataGridView)=value """ Rows = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets a collection that contains all the rows in the System.Windows.Forms.DataGridView control. Get: Rows(self: DataGridView) -> DataGridViewRowCollection """ RowsDefaultCellStyle = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the default style applied to the row cells of the System.Windows.Forms.DataGridView. Get: RowsDefaultCellStyle(self: DataGridView) -> DataGridViewCellStyle Set: RowsDefaultCellStyle(self: DataGridView)=value """ RowTemplate = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the row that represents the template for all the rows in the control. Get: RowTemplate(self: DataGridView) -> DataGridViewRow Set: RowTemplate(self: DataGridView)=value """ ScaleChildren = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value that determines the scaling of child controls. """ ScrollBars = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the type of scroll bars to display for the System.Windows.Forms.DataGridView control. Get: ScrollBars(self: DataGridView) -> ScrollBars Set: ScrollBars(self: DataGridView)=value """ SelectedCells = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the collection of cells selected by the user. Get: SelectedCells(self: DataGridView) -> DataGridViewSelectedCellCollection """ SelectedColumns = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the collection of columns selected by the user. Get: SelectedColumns(self: DataGridView) -> DataGridViewSelectedColumnCollection """ SelectedRows = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the collection of rows selected by the user. Get: SelectedRows(self: DataGridView) -> DataGridViewSelectedRowCollection """ SelectionMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating how the cells of the System.Windows.Forms.DataGridView can be selected. Get: SelectionMode(self: DataGridView) -> DataGridViewSelectionMode Set: SelectionMode(self: DataGridView)=value """ ShowCellErrors = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether to show cell errors. Get: ShowCellErrors(self: DataGridView) -> bool Set: ShowCellErrors(self: DataGridView)=value """ ShowCellToolTips = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether or not ToolTips will show when the mouse pointer pauses on a cell. Get: ShowCellToolTips(self: DataGridView) -> bool Set: ShowCellToolTips(self: DataGridView)=value """ ShowEditingIcon = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether or not the editing glyph is visible in the row header of the cell being edited. Get: ShowEditingIcon(self: DataGridView) -> bool Set: ShowEditingIcon(self: DataGridView)=value """ ShowFocusCues = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value indicating whether the control should display focus rectangles. """ ShowKeyboardCues = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators. """ ShowRowErrors = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether row headers will display error glyphs for each row that contains a data entry error. Get: ShowRowErrors(self: DataGridView) -> bool Set: ShowRowErrors(self: DataGridView)=value """ SortedColumn = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the column by which the System.Windows.Forms.DataGridView contents are currently sorted. Get: SortedColumn(self: DataGridView) -> DataGridViewColumn """ SortOrder = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets a value indicating whether the items in the System.Windows.Forms.DataGridView control are sorted in ascending or descending order,or are not sorted. Get: SortOrder(self: DataGridView) -> SortOrder """ StandardTab = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether the TAB key moves the focus to the next control in the tab order rather than moving focus to the next cell in the control. Get: StandardTab(self: DataGridView) -> bool Set: StandardTab(self: DataGridView)=value """ Text = property(lambda self: object(), lambda self, v: None, lambda self: None) """Gets or sets the text associated with the control. Get: Text(self: DataGridView) -> str Set: Text(self: DataGridView)=value """ TopLeftHeaderCell = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets the header cell located in the upper left corner of the System.Windows.Forms.DataGridView control. Get: TopLeftHeaderCell(self: DataGridView) -> DataGridViewHeaderCell Set: TopLeftHeaderCell(self: DataGridView)=value """ UserSetCursor = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the default or user-specified value of the System.Windows.Forms.Control.Cursor property. Get: UserSetCursor(self: DataGridView) -> Cursor """ VerticalScrollBar = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the vertical scroll bar of the control. """ VerticalScrollingOffset = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets the number of pixels by which the control is scrolled vertically. Get: VerticalScrollingOffset(self: DataGridView) -> int """ VirtualMode = property( lambda self: object(), lambda self, v: None, lambda self: None ) """Gets or sets a value indicating whether you have provided your own data-management operations for the System.Windows.Forms.DataGridView control. Get: VirtualMode(self: DataGridView) -> bool Set: VirtualMode(self: DataGridView)=value """ AllowUserToAddRowsChanged = None AllowUserToDeleteRowsChanged = None AllowUserToOrderColumnsChanged = None AllowUserToResizeColumnsChanged = None AllowUserToResizeRowsChanged = None AlternatingRowsDefaultCellStyleChanged = None AutoGenerateColumnsChanged = None AutoSizeColumnModeChanged = None AutoSizeColumnsModeChanged = None AutoSizeRowsModeChanged = None BackColorChanged = None BackgroundColorChanged = None BackgroundImageChanged = None BackgroundImageLayoutChanged = None BorderStyleChanged = None CancelRowEdit = None CellBeginEdit = None CellBorderStyleChanged = None CellClick = None CellContentClick = None CellContentDoubleClick = None CellContextMenuStripChanged = None CellContextMenuStripNeeded = None CellDoubleClick = None CellEndEdit = None CellEnter = None CellErrorTextChanged = None CellErrorTextNeeded = None CellFormatting = None CellLeave = None CellMouseClick = None CellMouseDoubleClick = None CellMouseDown = None CellMouseEnter = None CellMouseLeave = None CellMouseMove = None CellMouseUp = None CellPainting = None CellParsing = None CellStateChanged = None CellStyleChanged = None CellStyleContentChanged = None CellToolTipTextChanged = None CellToolTipTextNeeded = None CellValidated = None CellValidating = None CellValueChanged = None CellValueNeeded = None CellValuePushed = None ColumnAdded = None ColumnContextMenuStripChanged = None ColumnDataPropertyNameChanged = None ColumnDefaultCellStyleChanged = None ColumnDisplayIndexChanged = None ColumnDividerDoubleClick = None ColumnDividerWidthChanged = None ColumnHeaderCellChanged = None ColumnHeaderMouseClick = None ColumnHeaderMouseDoubleClick = None ColumnHeadersBorderStyleChanged = None ColumnHeadersDefaultCellStyleChanged = None ColumnHeadersHeightChanged = None ColumnHeadersHeightSizeModeChanged = None ColumnMinimumWidthChanged = None ColumnNameChanged = None ColumnRemoved = None ColumnSortModeChanged = None ColumnStateChanged = None ColumnToolTipTextChanged = None ColumnWidthChanged = None CurrentCellChanged = None CurrentCellDirtyStateChanged = None DataBindingComplete = None DataError = None DataGridViewAccessibleObject = None DataGridViewControlCollection = None DataGridViewTopRowAccessibleObject = None DataMemberChanged = None DataSourceChanged = None DefaultCellStyleChanged = None DefaultValuesNeeded = None EditingControlShowing = None EditModeChanged = None FontChanged = None ForeColorChanged = None GridColorChanged = None HitTestInfo = None MultiSelectChanged = None NewRowNeeded = None PaddingChanged = None ReadOnlyChanged = None RowContextMenuStripChanged = None RowContextMenuStripNeeded = None RowDefaultCellStyleChanged = None RowDirtyStateNeeded = None RowDividerDoubleClick = None RowDividerHeightChanged = None RowEnter = None RowErrorTextChanged = None RowErrorTextNeeded = None RowHeaderCellChanged = None RowHeaderMouseClick = None RowHeaderMouseDoubleClick = None RowHeadersBorderStyleChanged = None RowHeadersDefaultCellStyleChanged = None RowHeadersWidthChanged = None RowHeadersWidthSizeModeChanged = None RowHeightChanged = None RowHeightInfoNeeded = None RowHeightInfoPushed = None RowLeave = None RowMinimumHeightChanged = None RowPostPaint = None RowPrePaint = None RowsAdded = None RowsDefaultCellStyleChanged = None RowsRemoved = None RowStateChanged = None RowUnshared = None RowValidated = None RowValidating = None Scroll = None SelectionChanged = None SortCompare = None Sorted = None StyleChanged = None TextChanged = None UserAddedRow = None UserDeletedRow = None UserDeletingRow = None
# return masked string def maskify(cc): if len(cc) < 5: return cc return '#' * int(len(cc)-4) + cc[-4:]
""" Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1: Input: "bbbab" Output: 4 One possible longest palindromic subsequence is "bbbb". Example 2: Input: "cbbd" Output: 2 One possible longest palindromic subsequence is "bb". Solution: 1. Recursion 2. Recursion + Memo 3. 2D DP dp[i][j]: the length of LPS in s[i:j+1] dp[i][j] = 1, if i == j = dp[i+1][j-1] + 2, if s[i] == s[j] and i < j - 1 = max(dp[i-1][j], dp[i][j-1]) , if s[i] != s[j] and i < j - 1 """ # Recursion # TLE # Time: O(2^n) class Solution: def longestPalindromeSubseq(self, s: str) -> int: return self.lps(0, len(s)-1, s) def lps(self, l, r, s): if l == r: return 1 elif l > r: return 0 else: if s[l] == s[r]: return 2 + self.lps(l+1, r-1, s) else: return max(self.lps(l+1, r, s), self.lps(l, r-1, s)) # Recursion + Memo # store the intermediate result in the process of DFS, each lps[i][j] only computed once # Time: O(n^2) # Space: O(n^2) class Solution: def longestPalindromeSubseq(self, s: str) -> int: self.memo = [[0 for _ in range(len(s))] for _ in range(len(s))] return self.lps(0, len(s)-1, s) def lps(self, l, r, s): if l == r: return 1 if l > r: return 0 if self.memo[l][r] != 0: return self.memo[l][r] else: if s[l] == s[r]: self.memo[l][r] = 2 + self.lps(l+1, r-1, s) else: self.memo[l][r] = max(self.lps(l+1, r, s), self.lps(l, r-1, s)) return self.memo[l][r] # 2D DP # Time: O(n^2) # Space: O(n^2) class Solution: def longestPalindromeSubseq(self, s: str) -> int: l = len(s) dp = [[1 for _ in range(l)] for _ in range(l)] # len = 2 for i in range(l-1): if s[i] == s[i+1]: dp[i][i+1] = 2 # len starts at 3 for ll in range(2, l): for i in range(l-ll): j = i + ll if s[i] == s[j]: dp[i][j] = dp[i+1][j-1] + 2 else: # 2 chars at both sides cannot contibute to lps at the same time dp[i][j] = max(dp[i+1][j], dp[i][j-1]) return dp[0][l-1] # 1D DP # In #3, the current row is computed from the previous 2 rows only. So we don't need to keep all the rows. class Solution: def longestPalindromeSubseq(self, s: str) -> int: l = len(s) # 1D DP, cur row only depends on the previous 2 rows. first, second, third = [1 for _ in range(l)], [1 for _ in range(l)], [1 for _ in range(l)] # len = 2 for i in range(l-1): if s[i] == s[i+1]: second[i] = 2 # len starts at 3 for ll in range(2, l): for i in range(l-ll): j = i + ll if s[i] == s[j]: third[i] = first[i+1] + 2 else: # 2 chars at both sides cannot contibute to lps at the same time third[i] = max(second[i], second[i+1]) # update previous 2 rows, deepcopy first = second[:] second = third[:] if l == 0: return 0 elif l == 1: return first[0] elif l == 2: return second[0] else: return third[0]
class Solution(object): def topKFrequent(self, words, k): """ :type words: List[str] :type k: int :rtype: List[str] """ counter = collections.Counter(words) return [key for _, key in heapq.nsmallest(k, [(-cnt, key) for key, cnt in counter.items()])]
# This function gives number of notes required and remining in the database def number_of_notes(amount, c_value): global atm_amount multipal = amount // int(c_value) x = denomination[c_value] - multipal y = x + multipal updated_multi = None for i in range(multipal): if y >= 0 and denomination[c_value] > 0: denomination[c_value] = denomination[c_value] - 1 if updated_multi == None: updated_multi = 1 else: updated_multi += 1 atm_amount = atm_amount - int(c_value) updated_amount = amount - updated_multi * int(c_value) print(f""" | | | | Rs {c_value} {(4 - len(str(c_value))) * " "} | {updated_multi} {(8 - len(str(updated_multi))) * " "}| |________________________________________________|_________________|""") return updated_amount def required_amount(amount): global atm_amount if amount // 2000 != 0 and denomination['2000'] > 0: updated_amount = number_of_notes(amount, "2000") elif amount // 500 != 0 and denomination['500'] > 0: updated_amount = number_of_notes(amount, "500") elif amount // 200 != 0 and denomination['200'] > 0: updated_amount = number_of_notes(amount, "200") elif amount // 100 != 0 and denomination['100'] > 0: updated_amount = number_of_notes(amount, "100") else: print('Entered Amount Is Out Of Range') return updated_amount def home(profile): global atm_amount global atm_amount_copy while True: print(F""" ======================================================================================== __________________________________________________________________ | | | WelCome To Our ATM | |__________________________________________________________________|""") if profile == 'admin': step1 = int(input(""" __________________________________________________________________ | | | Do you want to continue | | 1) Balance Inquiry | | 2) Add Money | |__________________________________________________________________| Enter The Option Number : """)) if step1 == 1: print(f""" __________________________________________________________________ | | | Remaining Rupee Notes In ATM | |__________________________________________________________________| | | | | Rs 2000 Rupee Notes | {denomination['2000']} {(10 - len(str(denomination['2000']))) * " "} | | Rs 500 Rupee Notes | {denomination['500']} {(10 - len(str(denomination['500']))) * " "} | | Rs 200 Rupee Notes | {denomination['200']} {(10 - len(str(denomination['200']))) * " "} | | Rs 100 Rupee Notes | {denomination['100']} {(10 - len(str(denomination['100']))) * " "} | |_____________________________________________|____________________| | | | | Available Amount in the ATM | Rs {atm_amount} {(10 - len(str(atm_amount))) * " "} | |_____________________________________________|____________________|""") elif step1 == 2: print("\n") added_amount = 0 for currency_value in smallest_denomination: amount_value = int(input(f" Number of {currency_value}'s : ")) denomination[str(currency_value)] += amount_value added_amount += (amount_value * currency_value) atm_amount = (denomination['2000']*2000 + denomination['500']*500 + denomination['200']*200 + denomination['100']*100) atm_amount_copy = len(str(atm_amount)) print(f""" __________________________________________________________________ | | | | Amount Added In ATM | Rs {added_amount} {(10 - len(str(added_amount))) * " "} | |__________________________________________|_______________________|""") if profile == 'user': try : user_amount = int(input(f""" __________________________________________________________________ | | | Please Enter Amount in Multiples Of Rs 100, 200, 500, 2000 Only | |__________________________________________________________________| Enter Withdrawal Amount : Rs """)) except ValueError: user_amount = int(input(""" __________________________________________________________________ | | | Note : Please Enter Amount in Numbers Only | |__________________________________________________________________| Enter Withdrawal Amount : Rs """)) updated_amount = user_amount if user_amount % 100 == 0 and (atm_amount - user_amount + smallest_denomination[0]) >= smallest_denomination[0]: print(f""" __________________________________________________________________ | | | | Withdrawal Amount | Rs {user_amount} {(10 - len(str(user_amount))) * " "} | |__________________________________________|_______________________|""") print(""" __________________________________________________________________ | | | | Value Of Note | Number Of Notes | |________________________________________________|_________________|""") while updated_amount != 0: updated_amount = required_amount(updated_amount) elif (atm_amount - user_amount) < smallest_denomination[0] and atm_amount != 0: print(""" __________________________________________________________________ | | | Entered Amount Is More Then ATM Balance | |__________________________________________________________________| """) elif atm_amount == 0: print(""" __________________________________________________________________ | | | ATM Machine Is Empty. Please Try Again Later :) | |__________________________________________________________________|""") else : print(""" __________________________________________________________________ | | | Please Enter Amount in Multiples Of Rs 100, 200, 500, 2000 Only | |__________________________________________________________________|""") continue_msg = int(input(""" __________________________________________________________________ | | | Do you want to continue | | 1) Yes | | 2) No | |__________________________________________________________________| Enter The Option Number : """)) if continue_msg == 1 : continue else: print(""" __________________________________________________________________ | | | | | | | | | THANK YOU | | | | | | | |__________________________________________________________________|""") break ###################################################################################################### # Using pyhton dictionary for future database updation like json (NoSQL Database) denomination = { '2000': 10, # 5 notes of 2000 '500': 10, # 5 notes of 500 '200': 10, # 5 notes of 200 '100': 10 # 5 notes of 100 } atm_amount = 28000 # ATM Balence atm_amount_copy = len(str(atm_amount)) user_db = { 'admins': [{ 'id' : 1, 'name' : 'admin', 'password' : "12345" }], 'users' : [{ 'id' : 1, 'name' : 'ritik', 'password' : "67890", 'amount' : 20000 }] } smallest_denomination = [2000,500,200,100] #Taking the smallest no of denomination inside the ATM smallest_denomination.sort() updated_amount = None while True: start = int(input(""" __________________________________________________________________ | | | 1) Sign In | | 2) Exit | |__________________________________________________________________| Enter The Option Number : """)) if start == 1 : user_profile = input("\n User Profile (ex : 'Admin' or 'User') : ") if user_profile.lower() == "admin": admin_name = input("\n Admin Name : ") admin_password = input(" Password : ") if (admin_name == user_db['admins'][0]['name'] and admin_password == user_db['admins'][0]['password']): print(""" __________________________________________________________________ | | | Admin Access Granted | |__________________________________________________________________|""") home('admin') else : print(""" __________________________________________________________________ | | | Invalid Username or Password | |__________________________________________________________________|""") elif user_profile.lower() == "user": user_name = input("\n User Name : ") user_password = input(" Password : ") if (user_name == user_db['users'][0]['name'] and user_password == user_db['users'][0]['password']): print(""" __________________________________________________________________ | | | User Access Granted | |__________________________________________________________________|""") home('user') else : print("Invalid Username or Password") else : break elif start == 2: break else : break
modules = dict() def register(module_name): def decorate_action(func): if module_name in modules: modules[module_name][func.__name__] = func else: modules[module_name] = dict() modules[module_name][func.__name__] = func return func return decorate_action