content
stringlengths
7
1.05M
class Question: def __init__(self, text, answer): self.text = text self.answer = answer
# this technique creates the copy of the list while reversing. It takes up more memory. lis = [1, 2, 3] reversed_list = lis[::-1] print(reversed_list)
#TAT = CT - AT => CT = AT + TAT #WT = TAT - BT => TAT = BT + WT #TAT = BT + WT => BT = TAT - WT #CT = ST + BT => CT = ST + TAT - WT #for creating a 2D Array n = 5 process = [] for i in range(5): l = [] for j in range(4): l.append(0) process.append(l) def findWaitingTime( waitingTime): cumulativeBurstTime = [0] * 5 cumulativeBurstTime[0] = 0 waitingTime[0] = 0 for i in range(1, n): cumulativeBurstTime[i] = process[i - 1][1] + cumulativeBurstTime[i - 1] waitingTime[i] = cumulativeBurstTime[i] - process[i][0] if(waitingTime[i] < 0) : waitingTime[i] = 0 def findTurnAroundTime(turnAroundTime, waitingTime): for i in range(n): turnAroundTime[i] = process[i][1] + waitingTime[i] def findGanttChart(): waitingTime = [0] * 5 turnAroundTime = [0] * 5 avgWaitingTime = 0 avgTurnAroundTime = 0 findWaitingTime(waitingTime) findTurnAroundTime(turnAroundTime, waitingTime) startTime = [0] * 5 completionTime = [0] * 5 startTime[0] = 1 completionTime[0] = startTime[0] + turnAroundTime[0] for i in range(1, n): startTime[i] = completionTime[i - 1] completionTime[i] = startTime[i] + turnAroundTime[i] - waitingTime[i] print("Process ID\tStart Time\tCompletetion Time", "\tTurn Around Time\tWaiting Time\t Priority") for i in range(n): avgWaitingTime += waitingTime[i] avgTurnAroundTime += turnAroundTime[i] print(process[i][3], "\t\t", startTime[i],"\t\t", end = " ") print(completionTime[i], "\t\t\t", turnAroundTime[i], "\t\t\t", waitingTime[i], "\t\t\t", priority[i]) print("Average waiting time is : ", end = " ") print(avgWaitingTime / n) print("Average turnaround time : " , end = " ") print(avgTurnAroundTime / n) if __name__ =="__main__": arrivalTime = [1, 2, 3, 4, 5] burstTime = [3, 5, 1, 7, 4] priority = [3, 4, 1, 7, 8] for i in range(n): process[i][0] = arrivalTime[i] process[i][1] = burstTime[i] process[i][2] = priority[i] process[i][3] = i + 1 #for sorting in priority order process = sorted (process, key = lambda x:x[2]) process = sorted (process) findGanttChart() # End of the program
expected = 'Jana III Sobieskiego' a = ' Jana III Sobieskiego ' b = 'ul Jana III SobIESkiego' c = '\tul. Jana trzeciego Sobieskiego' d = 'ulicaJana III Sobieskiego' e = 'UL. JA\tNA 3 SOBIES\tKIEGO' f = 'UL. jana III SOBiesKIEGO' g = 'ULICA JANA III SOBIESKIEGO ' h = 'ULICA. JANA III SOBIeskieGO' i = ' Jana 3 Sobieskiego ' j = 'Jana III\tSobieskiego ' k = 'ul.Jana III Sob\n\nieskiego\n' def clean(text): text = text.upper() text = text.replace('\n', '') text = text.replace('\t', '') text = text.replace('ULICA', '') text = text.replace('.', '') text = text.replace('UL', '') text = text.replace('TRZECIEGO', 'III') text = text.replace('3', 'III') text = text.strip() text = text.title().replace('Iii', 'III') return text a = clean(a) b = clean(b) c = clean(c) d = clean(d) e = clean(e) f = clean(f) g = clean(g) h = clean(h) i = clean(i) j = clean(j).replace('IIIs', 'III S') k = clean(k) print(f'{a == expected}\t a: "{a}"') print(f'{b == expected}\t b: "{b}"') print(f'{c == expected}\t c: "{c}"') print(f'{d == expected}\t d: "{d}"') print(f'{e == expected}\t e: "{e}"') print(f'{f == expected}\t f: "{f}"') print(f'{g == expected}\t g: "{g}"') print(f'{h == expected}\t h: "{h}"') print(f'{i == expected}\t i: "{i}"') print(f'{j == expected}\t j: "{j}"') print(f'{k == expected}\t k: "{k}"')
#Linear Threshold global to test: 0.261583162085 svm_linear = { "global_threshhold": 0.17234866241479857, "model_path": "models/signetf_lambda0.95.pkl", "c-minus": 1, "gamma": 'auto', } svm_rbf = { "global_threshhold": 0.26488806589512859, "model_path": "models/signetf_lambda0.999.pkl", "c-minus": 1, "gamma": 2**(-11), } signature_numbers_by_user = { "genuine": 24, "skilled": 30, } def gpds160_config(): config = { "dataset_path": "datasets/gpds160/", "dataset_for_random_path": "datasets/gpds160-RANDOM/", "train_config": { "genuine": 14, "skilled": 0, "random": 14 }, "test_config": { "genuine": 10, "skilled": 10, "random": 10 }, "c-plus": 721, "signature_numbers_by_user": signature_numbers_by_user, "number_of_tests_by_user": 100, "max_image_size": (819, 1137), "canvas": (952, 1360), "svm_linear": svm_linear, "svm_rbf": svm_rbf } return config def gpds300_config(): config = { "dataset_path": "datasets/gpds300/", "dataset_for_random_path": "datasets/gpds300-RANDOM/", "train_config": { "genuine": 14, "skilled": 0, "random": 14 }, "test_config": { "genuine": 10, "skilled": 10, "random": 10 }, "c-plus": 581, "signature_numbers_by_user": signature_numbers_by_user, "number_of_tests_by_user": 100, "max_image_size": (819, 1137), "canvas": (952, 1360), "svm_linear": svm_linear, "svm_rbf": svm_rbf } return config def gpds50_config(): config = { "dataset_path": "datasets/gpds50/", "dataset_for_random_path": "datasets/gpds300/", "train_config": { "genuine": 14, "skilled": 0, "random": 14 }, "test_config": { "genuine": 10, "skilled": 10, "random": 10 }, "c-plus": 300, "signature_numbers_by_user": signature_numbers_by_user, "number_of_tests_by_user": 100, "max_image_size": (819, 1137), "canvas": (952, 1360), "svm_linear": svm_linear, "svm_rbf": svm_rbf } return config
""" Crie um Programa que leia uma Frase qualquer e diga se ela é um palíndromo, desconsiderando os espaços """ frase = str(input('Digite uma frase: ')).replace(" ", "").upper() if frase == frase[::-1]: print('A Frase Digitada ao contrário é idêntica à ela escrita normal, ela é Palíndromo!') else: print('A Frase Digitada ao contrário não é idêntica à ela escrita normal, ela não é Palíndromo!')
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def findFrequentTreeSum(self, root): """ :type root: TreeNode :rtype: List[int] """ res = [] map = {} maxTimes = 0 def findTreeSum(root): if not root: return 0 sum = root.val sum += findTreeSum(root.left) sum += findTreeSum(root.right) if sum in map: map[sum] += 1 else: map[sum] = 1 return sum findTreeSum(root) for key, value in map.items(): if value > maxTimes: res = [key] maxTimes = value elif value == maxTimes: res.append(key) return res root = TreeNode(5) root.left = TreeNode(2) root.right = TreeNode(-3) s = Solution() s.findFrequentTreeSum(root)
def T(): for row in range(6): for col in range(5): if (row==0 or col==2): print("*",end=" ") else: print(end=" ") print()
class state (object): def __init__(self): self._dict = {} self._dict['dependencies'] = {} self._dict['build'] = {} self._clean = True def clean(self): return self._clean def __getattr__(self, key): try: return self._dict[key] except KeyError: raise AttributeError(key) def update(self, **kwargs): def merge(dest, src): for k, v in src.items(): if isinstance(v, dict) and k in dest: merge(dest[k], v) else: dest[k] = v merge(self._dict, kwargs) self._clean = False def serialize(self): return self._dict @classmethod def from_yaml(cls, defs, data): instance = cls() instance.update(**data) return instance
DATASETS = { 'ctx': { 'ptype': 'edr', 'instr': 'ctx', 'host': 'mro' }, 'hirise': { 'ptype': 'rdrv11', 'instr': 'hirise', 'host': 'mex' } }
# Demo Python Scope - Global Keyword ''' Global Keyword If you need to create a global variable, but are stuck in the local scope, you can use the global keyword. The global keyword makes the variable global. Also, use the global keyword if you want to make a change to a global variable inside a function. ''' # To change the value of a global variable inside a function, refer to the variable by using the global keyword: x = 300 def myfunc(): global x x = 200 myfunc() print(x)
def lielaku_skaits(saraksts): """ Funkcija akceptē vienu argumentu - masīvu ar skaitļiem un atgriež cik no šiem skaitļiem ir strikti lielāki par skaitļu vidējo vērtību. Pārbaudiet funkcijas darbību ar dažādiem argumentiem. Argumenti: saraksts {list} -- skaitļu saraksts Atgriež: int -- par vidējo lielāku skaitļu skaits Piemēri: lielaku_skaits([1, 3, 5]) == 1 lielaku_skaits([100, 10, 180]) == 2 """
VERSION = (0, 0, 2) def get_version(version = None): version = version or VERSION return ".".join(map(str, list(version))) __version__ = get_version(VERSION)
# -*- coding: utf-8 -*- # URL : https://leetcode.com/problems/two-sum/ """ 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] """ """ nums中每两个相加,如果等于target就返回,那需要遍历(n^2)。 作差值计算,比如9-2==7,就是说2需要7, 再判定7是否已经作了差值计算了,如果有那就返回下标,完成计算;如果没有,就存在已经进行差值计算的dict中。 所以这些差值需要额外的空间存储,其中的元素应当含有原数组的值和下标。 """ """ 执行用时 :36 ms, 在所有 Python 提交中击败了99.70%的用户 内存消耗 :13.1 MB, 在所有 Python 提交中击败了14.79%的用户 """ class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ difference_value_dict = dict() for index, num in enumerate(nums): difference_value = target - num if difference_value in difference_value_dict: return [difference_value_dict[difference_value], index] difference_value_dict[num] = index if __name__ == "__main__": solution = Solution() assert solution.twoSum([2, 7, 11, 15], 9) == [0, 1] assert solution.twoSum([4, 7, 0, 3], 3) == [2, 3]
"""import os import string import random from datetime import datetime, timedelta from elasticsearch_dsl.connections import connections from search.doc_app import Article connections.create_connection(hosts=[os.getenv('ELASTIC7', 'localhost:9200')]) Article.init() idindex = 0 for i in range(0, 20): for j in range(0, 500): title = ''.join( random.choice(string.ascii_uppercase) for x in range(8)) body = ''.join( random.choice(string.ascii_uppercase) for x in range(999)) article = Article( meta={'id': idindex}, title=f'{title}-{i}-{j}', body=body, published_from=datetime.now() + timedelta(days=int(f'{i}{j}')), tags=[ random.choice(['g1', 'g2', 'g3', 'g4', 'g5', 'g6', 'g7', 'g8']) ]) idindex = idindex + 1 article.save() print('-id-43-article-') article = Article.get(id=43) print(article.is_published()) print(article.toJson()) """
""" pass """ def sayhi(): print('hello world!')
# https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/ # # algorithms # Medium (43.48%) # Total Accepted: 83,141 # Total Submissions: 191,230 # beats 100.0% of python submissions class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ notown = 0 own, cool = float('-inf'), float('-inf') for p in prices: notown, own, cool = max(notown, cool), max( own, notown - p), own + p return max(notown, cool) # 股票类题解:https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/solution/yi-ge-fang-fa-tuan-mie-6-dao-gu-piao-wen-ti-by-lab/ class Solution1(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ length = len(prices) if length < 2: return 0 cur_0, cur_1, pre_0 = 0, float('-inf'), 0 for n in prices: tmp = cur_0 cur_0 = max(tmp, cur_1 + n) cur_1 = max(cur_1, pre_0 - n) pre_0 = tmp return cur_0
def ffr(n): if n < 1 or type(n) != int: raise ValueError("n must be an int >= 1") try: return ffr.r[n] except IndexError: r, s = ffr.r, ffs.s ffr_n_1 = ffr(n-1) lastr = r[-1] # extend s up to, and one past, last r s += list(range(s[-1] + 1, lastr)) if s[-1] < lastr: s += [lastr + 1] # access s[n-1] temporarily extending s if necessary len_s = len(s) ffs_n_1 = s[n-1] if len_s > n else (n - len_s) + s[-1] ans = ffr_n_1 + ffs_n_1 r.append(ans) return ans ffr.r = [None, 1] def ffs(n): if n < 1 or type(n) != int: raise ValueError("n must be an int >= 1") try: return ffs.s[n] except IndexError: r, s = ffr.r, ffs.s for i in range(len(r), n+2): ffr(i) if len(s) > n: return s[n] raise Exception("Whoops!") ffs.s = [None, 2] if __name__ == '__main__': first10 = [ffr(i) for i in range(1,11)] assert first10 == [1, 3, 7, 12, 18, 26, 35, 45, 56, 69], "ffr() value error(s)" print(("ffr(n) for n = [1..10] is", first10)) # bin = [None] + [0]*1000 for i in range(40, 0, -1): bin[ffr(i)] += 1 for i in range(960, 0, -1): bin[ffs(i)] += 1 if all(b == 1 for b in bin[1:1000]): print("All Integers 1..1000 found OK") else: print("All Integers 1..1000 NOT found only once: ERROR")
def fib(n): if n <= 1: return n return fib(n - 1) + fib(n - 2) if __name__ == "__main__": n = 40 print("{answer}\n".format(answer=fib(n)))
#ejemplo 1 num1 = 13 num2 = 32.34 num1 = num1 + num2 print ("num1 =",num1) #ejemplo 2 num1 = 141.42 num2 = 412 num1 = num1 + num2 print ("num1 =",round(num1)) #ejemplo 3 num1 = 42 num2 = 4.23 result = (num1 + num2) print("El resultado de la operacion es =", round(result)) print(int(6.324)) rl1 = str(64.523) print(type(rl1)) print(float(rl1))
#!/usr/bin/env python # -*- coding: utf-8 -*- class PodiumAccount(object): """ Object that represents a particular User. **Attributes:** **account_id** (str): Unique id for account **username** (string): The User's username. **email** (str): Account email address **user_uri** (str): URI to user associated with account **events_uri** (str): URI to account's events **devices_uri** (str): URI to account's devices **events_uri** (str): URI to account's events **streams_uri** (str): URI to account's current live streams **exports_uri** (str): URI to account's telemetry exports """ def __init__(self, account_id, username, email, devices_uri, exports_uri, streams_uri, user_uri, events_uri): self.account_id = account_id self.username = username self.email = email self.devices_uri = devices_uri self.exports_uri = exports_uri self.streams_uri = streams_uri self.user_uri = user_uri self.events_uri = events_uri def get_account_from_json(json): """ Returns a PodiumAccount object from the json dict received from podium api. Args: json (dict): Dict of data from REST api Return: PodiumUser: The PodiumAccount object for the data. """ return PodiumAccount(json['id'], json['username'], json['email'], json['devices_uri'], json['exports_uri'], json['streams_uri'], json['user_uri'], json['events_uri'])
class AbstractContext(object): def valueForVar(self, name): return def setValueForVar(self, name, ex): return def typeForVar(self, name): return
# # @lc app=leetcode id=204 lang=python3 # # [204] Count Primes # # @lc code=start class Solution: def countPrimes(self, n: int) -> int: # 埃氏筛法 if n <= 2: return 0 res = [True] * n res[0] = res[1] = False for i in range(2, n): if res[i] == True: for j in range(2, (n-1)//i+1): res[i*j] = False return sum(res) def test(self): assert(self.countPrimes(10) == 4) print(self.countPrimes(499979)) sol = Solution() sol.test() # @lc code=end
""" .. module:: test_viewer :synopsis: Unit tests for viewer module """
# -*- coding: utf-8 -*- class Settings: """ 获取字典 """ @classmethod def get_values(cls): d = dict(vars(cls)) private = [i for i in d.keys() if i.startswith('_')] for k in private: d.pop(k) return d class Sanic: name = "Sanic Tailor" SANIC_JWT_SECRET = "hard to guess" SANIC_JWT_EXPIRATION_DELTA = 60 * 60 * 24 class RPC: _start = True class SMS: key = '' secret = '' sign_name = '' template_code = '' class ORM: _start = True class SQLAlchemy: _start = True db_host = 'localhost' db_port = '5432' db_name = 'tailor' db_user = '' db_pass = '' class RabbitMQ: HOST = '192.168.1.63' PORT = '5672' API_PORT = '15672' USER = '' PASS = '' VHOST = '' class Redis: _start = True HOST = '192.168.1.63' PORT = '6379' PASS = '' DB = '8' PREFIX = 'sanic:cache' class Celery: name = "Sanic Tailor Celery" _start = True custom_db_host = ORM.SQLAlchemy.db_host custom_db_port = ORM.SQLAlchemy.db_port custom_db_user = ORM.SQLAlchemy.db_user custom_db_pass = ORM.SQLAlchemy.db_pass custom_db_name = ORM.SQLAlchemy.db_name custom_flower_port = '' custom_flower_user = '' custom_flower_pass = '' custom_loglevel = 'info' broker_url = f'amqp://{RabbitMQ.USER}:{RabbitMQ.PASS}@{RabbitMQ.HOST}:{RabbitMQ.PORT}/{RabbitMQ.VHOST}' result_backend = f'redis://default:{Redis.PASS}@{Redis.HOST}:{Redis.PORT}/{Redis.DB}' task_default_queue = "5f77d2fe-c30b-4b30-b370-79141ceecad8" # 重要,同一个broker用来隔离数据,建议使用uuid redis_max_connections = 100 result_expires = 3600 beat_schedule_filename = '/tmp/celerybeat-schedule' timezone = 'Asia/Shanghai' # enable_utc = True
# coding=utf-8 class TestSpiderMiddleware1: '''实现爬虫中间件''' def process_request(self, request): ''' 处理请求 :param request:请求 :return: 请求 ''' # print("TestSpiderMiddleware1 -- process_request") return request def process_response(self, response): ''' 处理response :param response:response :return:response ''' # print("TestSpiderMiddleware1 -- process_response") return response class TestSpiderMiddleware2: '''实现爬虫中间件''' def process_request(self, request): ''' 处理请求 :param request:请求 :return: 请求 ''' # print("TestSpiderMiddleware2 -- process_request") return request def process_response(self, response): ''' 处理response :param response:response :return:response ''' # print("TestSpiderMiddleware2 -- process_response") return response
class foo: x = 5 def __init__(self,x): self.x = x def bar(self): return self.x + 1 class foo2(foo): x = 7 # no init so jump/inherit from foo def bar(self): return self.x + 2 def bark(): print('woof') f = foo2(6) #calls foo init f.bark() #Error foo2.bark() #woof foo.bark() #Error f.bar() # 8 foo.bar(f) #7 #foo.bar refers to function bar in class foo, f #lookup from instance -> class -> superclass -> error
while True: try: file_name = input("Please enter the name of the file you would like to read") fh = open(file_name) break except: print("Couldn't open file. Please try again") while True: try: line_cnt = int(input("How many lines would you like to read?")) if(line_cnt <= 0): raise ValueError if(line_cnt >1000): raise OverflowError break except ValueError: print("Must enter an integer greater than 0") except OverflowError: print("Nobody's got time for that.") except: print("Strange input. Muste enter a legit int") try: for line in range(1, line_count+1): print(fh.readline()) except EOFError: print("Ya hit the end of the file at line:",line) except: print("Something went terribly wrong at line:",line) finally: fh.close()
class Solution(object): def checkPossibility(self, nums): """ :type nums: List[int] :rtype: bool """ isIncrease = lambda nums: all(nums[i] <= nums[i + 1] for i in range(len(nums) - 1)) one, two = nums[:], nums[:] for i in range(0, len(nums) - 1): if nums[i + 1] < nums[i]: one[i] = one[i + 1] two[i + 1] = two[i] break return isIncrease(one) or isIncrease(two)
""" Procuret Python Error Module author: hugh@blinkybeach.com """ class ProcuretError(Exception): pass
EC2_INSTANCE_TYPES = [ 't1.micro', 't2.nano', 't2.micro', 't2.small', 't2.medium', 't2.large', 't2.xlarge', 't2.2xlarge', 'm1.small', 'm1.medium', 'm1.large', 'm1.xlarge', 'm3.medium', 'm3.large', 'm3.xlarge', 'm3.2xlarge', 'm4.large', 'm4.xlarge', 'm4.2xlarge', 'm4.4xlarge', 'm4.10xlarge', 'm4.16xlarge', 'm2.xlarge', 'm2.2xlarge', 'm2.4xlarge', 'cr1.8xlarge', 'r3.large', 'r3.xlarge', 'r3.2xlarge', 'r3.4xlarge', 'r3.8xlarge', 'r4.large', 'r4.xlarge', 'r4.2xlarge', 'r4.4xlarge', 'r4.8xlarge', 'r4.16xlarge', 'x1.16xlarge', 'x1.32xlarge', 'i2.xlarge', 'i2.2xlarge', 'i2.4xlarge', 'i2.8xlarge', 'i3.large', 'i3.xlarge', 'i3.2xlarge', 'i3.4xlarge', 'i3.8xlarge', 'i3.16xlarge', 'hi1.4xlarge', 'hs1.8xlarge', 'c1.medium', 'c1.xlarge', 'c3.large', 'c3.xlarge', 'c3.2xlarge', 'c3.4xlarge', 'c3.8xlarge', 'c4.large', 'c4.xlarge', 'c4.2xlarge', 'c4.4xlarge', 'c4.8xlarge', 'cc1.4xlarge', 'cc2.8xlarge', 'g2.2xlarge', 'g2.8xlarge', 'g3.4xlarge', 'g3.8xlarge', 'g3.16xlarge', 'cg1.4xlarge', 'p2.xlarge', 'p2.8xlarge', 'p2.16xlarge', 'd2.xlarge', 'd2.2xlarge', 'd2.4xlarge', 'd2.8xlarge', 'f1.2xlarge', 'f1.16xlarge', ]
class Config: BOT_USE = False # True is private use BOT_TOKEN = '5298092373:AAF7zZJm02Gkv4DE8jVrbJSPcUoWMvXGX6k' # from @botfather APP_ID = 16655133 # from https://my.telegram.org/apps API_HASH = '6e6a925776a4525c7f0234119f629c99' # from https://my.telegram.org/apps AUTH_USERS = [5034111461] # Private users id
# Read in the two haplotypes to compare with open("h1.txt", "r") as infile: real = infile.readlines()[0] with open("h2.txt", "r") as infile: found = infile.readlines()[0] # Initialize counters for different kinds of errors switch = 0 flip = 0 # Save length of smaller haplotype (if they are different lengths?) size = min(len(real), len(found)) # Initialize comparison string xorHap = "" # Create comparison string for i in xrange(size): xorHap += str(int(real[i]) ^ int(found[i])) # Process comparison string i = 0 while i < size: if (int(xorHap[i]) == 1): flag = False while i < size - 1 and xorHap[i] == xorHap[i + 1]: i += 1 flag = True if flag: switch += 1 else: flip += 1 i += 1 # Display results print("Switch: %d" % switch) print("Flip: %d" % flip)
def remove_duplicates(t): t_unique = [] for element in t: if not element in t_unique: t_unique.append(element) return t_unique print(remove_duplicates(['a', 'b', 1, 2, 'a', '2', 3, 1]))
## Autogenerated code from generate.py ## Note1: Please dont update this file manually ## Note2: For any new keys, add at the end of file smac_keys.list ## To update this file, update the keys in 'smac_keys.list' and rerun 'generate.py' smac_keys={ 'CMD_SET_PROPERTY' :'0',# '0' :'CMD_SET_PROPERTY', 'CMD_SET_PROPERTY_ACK' :'1',# '1' :'CMD_SET_PROPERTY_ACK', 'CMD_STATUS' :'2',# '2' :'CMD_STATUS', 'CMD_REQ_SEND_INFO' :'3',# '3' :'CMD_REQ_SEND_INFO', 'CMD_SEND_INFO' :'4',# '4' :'CMD_SEND_INFO', 'FROM' :'5',# '5' :'FROM', 'TO' :'6',# '6' :'TO', 'COMMAND' :'7',# '7' :'COMMAND', 'ACK' :'8',# '8' :'ACK', 'ID_MESSAGE' :'9',# '9' :'ID_MESSAGE', 'MESSAGE' :'A',# 'A' :'MESSAGE', 'SSID_WIFI' :'B',# 'B' :'SSID_WIFI', 'NAME_WIFI' :'C',# 'C' :'NAME_WIFI', 'NAME_TOPIC' :'D',# 'D' :'NAME_TOPIC', 'ID_TOPIC' :'E',# 'E' :'ID_TOPIC', 'ID_DEVICE' :'F',# 'F' :'ID_DEVICE', 'NAME_DEVICE' :'G',# 'G' :'NAME_DEVICE', 'TYPE_DEVICE' :'H',# 'H' :'TYPE_DEVICE', 'LOCATION_WIFI' :'I',# 'I' :'LOCATION_WIFI', 'ID_PROPERTY' :'K',# 'K' :'ID_PROPERTY', 'TYPE_PROPERTY' :'L',# 'L' :'TYPE_PROPERTY', 'NAME_PROPERTY' :'M',# 'M' :'NAME_PROPERTY', 'VALUE' :'N',# 'N' :'VALUE', 'VALUE_MIN' :'O',# 'O' :'VALUE_MIN', 'VALUE_MAX' :'P',# 'P' :'VALUE_MAX', 'VALUE_STEP' :'Q',# 'Q' :'VALUE_STEP', 'VALUE_UNIT' :'R',# 'R' :'VALUE_UNIT', 'CMD_INIT_SEND_INFO' :'S', 'S' :'CMD_INIT_SEND_INFO', 'CMD_END_SEND_INFO' :'T', 'T' :'CMD_END_SEND_INFO', 'CMD_STATUS_SET_PROPERTY' :'U', 'U' :'CMD_STATUS_SET_PROPERTY', 'CMD_STATUS_ADD_TOPIC' :'V', 'V' :'CMD_STATUS_ADD_TOPIC' , 'CMD_STATUS_REMOVE_TOPIC' :'W', 'W' :'CMD_STATUS_REMOVE_TOPIC', 'CMD_ADD_TOPIC' :'X', 'X' :'CMD_ADD_TOPIC', 'CMD_REMOVE_TOPIC' :'Y', 'Y' :'CMD_REMOVE_TOPIC', 'PASSKEY' :'Z', 'Z' :'PASSKEY', 'CMD_DEVICE_BUSY' :'a', 'a' :'CMD_DEVICE_BUSY', 'CMD_INVALID_PIN' :'b', 'b' :'CMD_INVALID_PIN', 'NAME_HOME' :'c', 'c' :'NAME_HOME', 'CMD_UPDATE_WIFI_CONFIG' :'d', 'd' :'CMD_UPDATE_WIFI_CONFIG', 'SSID' :'e', 'e' :'SSID', 'PASSWORD' :'f', 'f' :'PASSWORD', 'CMD_ONLINE' :'g', 'g' :'CMD_ONLINE', 'CMD_UPDATE_SOFTWARE' :'h', 'h' :'CMD_UPDATE_SOFTWARE', 'CMD_UPDATE_INTERVAL_ONLINE' :'i', 'i' :'CMD_UPDATE_INTERVAL_ONLINE', 'INTERVAL' :'j', 'j' :'INTERVAL', 'CMD_STATUS_UPDATE_WIFI_CONFIG' :'k', 'k' :'CMD_STATUS_UPDATE_WIFI_CONFIG', 'CMD_STATUS_UPDATE_INTERVAL_ONLINE' :'l', 'l' :'CMD_STATUS_UPDATE_INTERVAL_ONLINE', 'CMD_UPDATE_NAME_DEVICE' :'m', 'm' :'CMD_UPDATE_NAME_DEVICE', 'CMD_STATUS_UPDATE_NAME_DEVICE' :'n', 'n' :'CMD_STATUS_UPDATE_NAME_DEVICE', 'CMD_UPDATE_NAME_PROPERTY' :'o', 'o' :'CMD_UPDATE_NAME_PROPERTY', 'CMD_STATUS_UPDATE_NAME_PROPERTY' :'p', 'p' :'CMD_STATUS_UPDATE_NAME_PROPERTY', 'CMD_TOPIC_LIMIT_EXCEEDED' :'q', 'q' :'CMD_TOPIC_LIMIT_EXCEEDED', 'CMD_STATUS_UPDATE_SOFTWARE' : 'r', 'r' : 'CMD_STATUS_UPDATE_SOFTWARE', 'CMD_ADD_ACTION' :'s', 's' :'CMD_ADD_ACTION', 'CMD_REMOVE_ACTION' :'t', 't' :'CMD_REMOVE_ACTION', 'CMD_ADD_TRIGGER' :'u', 'u' :'CMD_ADD_TRIGGER', 'CMD_REMOVE_TRIGGER' :'v', 'v' :'CMD_REMOVE_TRIGGER', 'CMD_STATUS_ADD_ACTION' :'w', 'w' :'CMD_STATUS_ADD_ACTION', 'CMD_STATUS_REMOVE_ACTION' :'x', 'x' :'CMD_STATUS_REMOVE_ACTION', 'CMD_STATUS_ADD_TRIGGER' :'y', 'y' :'CMD_STATUS_ADD_TRIGGER', 'CMD_STATUS_REMOVE_TRIGGER' :'z', 'z' :'CMD_STATUS_REMOVE_TRIGGER', 'CMD_ACTION_LIMIT_EXCEEDED' :'a1', 'a1' :'CMD_ACTION_LIMIT_EXCEEDED', 'CMD_TRIGGER_LIMIT_EXCEEDED' :'a2', 'a2' :'CMD_TRIGGER_LIMIT_EXCEEDED', 'CMD_STATUS_ADD_CONTEXT' :'a3', 'a3' :'CMD_STATUS_ADD_CONTEXT', 'CMD_STATUS_REMOVE_CONTEXT' :'a4', 'a4' :'CMD_STATUS_REMOVE_CONTEXT', 'CONTEXT_ACTION' :"a5", 'a5' :'CONTEXT_ACTION', 'CONTEXT_TRIGGER' :"a6", 'a6' :'CONTEXT_TRIGGER', 'CONTEXT' :'a7', 'a7' :'CONTEXT', 'TOPIC' :'a8', 'a8' :'CONTEXT', 'PROPERTY' :'a9', 'a9' :'PROPERTY', 'ID_CONTEXT' :'a10', 'a10' :'ID_CONTEXT', 'NAME_CONTEXT' :'a11', 'a11' :'NAME_CONTEXT', 'TYPE_TRIGGER_PROP' :'a12', 'a12' :'TYPE_TRIGGER_PROP', 'TYPE_TRIGGER_TIME' :'a13', 'a13' :'TYPE_TRIGGER_TIME', 'TYPE_TRIGGER_LOCATION' :'a14', 'a14' :'TYPE_TRIGGER_LOCATION', 'TYPE_TRIGGER' :'a15', 'a15' :'TYPE_TRIGGER', 'CMD_TRIGGER_CONTEXT' :'a16', 'a16' :'CMD_TRIGGER_CONTEXT' }
class Solution: def search(self, nums: list, target: int) -> int: low =0 hi = len(nums) - 1 while low <= hi: mid = int((low + hi)/2) if nums[mid] == target: return mid elif nums[mid] > target: hi = mid - 1 else: low = mid + 1 return -1 nums = [-1,0,3,5,9,12]; target = 9 nums = [-1,0,3,5,9,12]; target = 2 s = Solution() print(s.search(nums, target))
""" PROBLEM 43: Sub-string divisibility The number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it also has a rather interesting sub-string divisibility property. Let d_1 be the 1st digit, d_2 be the 2nd digit, and so on. In this way, we note the following: d_2d_3d_4=406 is divisible by 2 d_3d_4d_5=063 is divisible by 3 d_4d_5d_6=635 is divisible by 5 d_5d_6d_7=357 is divisible by 7 d_6d_7d_8=572 is divisible by 11 d_7d_8d_9=728 is divisible by 13 d_8d_9d_10=289 is divisible by 17 Find the sum of all 0 to 9 pandigital numbers with this property. """ # I'm going to assume that by "this property" they mean "divisible by these specific numbers", not # THE MANY OTHER SEQUENCES THAT COULD ALSO FIT THAT RULE, LIKE, IDK, DIVISIBLE BY ASCENDING PRIMES? # I'm going to do this backwards, then reverse. Because that should slow down our explosion of # places to search str_numbers = [str(i) for i in range(10)] initial_list = [] for num in range(1000): if num % 17 == 0: num_str = str(num) while len(num_str) < 3: num_str = '0' + num_str for test_number in str_numbers: if num_str.count(test_number) > 1: break else: initial_list.append(num_str) kept_list = [] for factor_num, factor in enumerate([13, 11, 7, 5, 3, 2]): for number in initial_list: for added_number in str_numbers: if added_number in number: continue new_str_num = added_number + number # my gosh it took me forever to get these indexes right test_num = int(new_str_num[-4 - factor_num:-1 - factor_num]) if test_num % factor == 0: kept_list.append(new_str_num) initial_list = kept_list kept_list = [] final_list = [] for number in initial_list: for added_number in str_numbers: if added_number not in number: final_list.append(int(added_number + number)) print(sum(final_list))
''' Given a set of intervals, find out if any two intervals overlap. Example: Intervals: [[1,4], [2,5], [7,9]] Output: true Explanation: Intervals [1,4] and [2,5] overlap ''' class Interval: def __init__(self, start, end): self.start = start self.end = end def doesOverlap(intervals): intervals.sort(key=lambda x: x.start) start = intervals[0].start end = intervals[0].end for i in range(1, len(intervals)): interval = intervals[i] if interval.start <= end: return True else: start = interval.start end = interval.end return False if __name__ == "__main__": print(doesOverlap([Interval(1, 4), Interval(2, 5), Interval(7, 9)])) print(doesOverlap([Interval(1, 4), Interval(6, 7), Interval(8, 9)]))
""" Given an array of integers arr, and three integers a, b and c. You need to find the number of good triplets. A triplet (arr[i], arr[j], arr[k]) is good if the following conditions are true: 0 <= i < j < k < arr.length |arr[i] - arr[j]| <= a |arr[j] - arr[k]| <= b |arr[i] - arr[k]| <= c Where |x| denotes the absolute value of x. Return the number of good triplets.   Example 1: Input: arr = [3,0,1,1,9,7], a = 7, b = 2, c = 3 Output: 4 Explanation: There are 4 good triplets: [(3,0,1), (3,0,1), (3,1,1), (0,1,1)]. Example 2: Input: arr = [1,1,2,2,3], a = 0, b = 0, c = 1 Output: 0 Explanation: No triplet satisfies all conditions.   Constraints: 3 <= arr.length <= 100 0 <= arr[i] <= 1000 0 <= a, b, c <= 1000 """ # define an input for testing purposes arr = [1,1,2,2,3] a = 0 b = 0 c = 1 # actual code to submit def countGoodTriplets(arr: list[int], a: int, b: int, c: int) -> int: arrCount = len(arr) triplets = [] for i in range(arrCount): for j in range(arrCount): for k in range(arrCount): if i < j and j < k: if abs(arr[i] - arr[j]) <= a and abs(arr[j] - arr[k]) <= b and abs(arr[i] - arr[k]) <= c: triplets.append([arr[i], arr[j], arr[k]]) return len(triplets) # use print statement to check if it works print(countGoodTriplets(arr, a, b, c)) # My submission: https://leetcode.com/submissions/detail/598317547/
# Time: O(n) # Space: O(1) # # The API: int read4(char *buf) reads 4 characters at a time from a file. # # The return value is the actual number of characters read. For example, it returns 3 if there is only 3 characters left in the file. # # By using the read4 API, implement the function int read(char *buf, int n) that reads n characters from the file. # # Note: # The read function will only be called once for each test case. # # The read4 API is already defined for you. # @param buf, a list of characters # @return an integer # V0 # V1 # http://www.voidcn.com/article/p-pfdpmnvw-qp.html # https://www.cnblogs.com/yrbbest/p/4489710.html # The read4 API is already defined for you. # @param buf, a list of characters # @return an integer # def read4(buf): class Solution(object): def read(self, buf, n): """ :type buf: Destination buffer (List[str]) :type n: Maximum number of characters to read (int) :rtype: The number of characters read (int) """ index = 0 while True: buf4 = [""]*4 current = min(read4(buf4), index) # use read4 method, save the read data in bur4 for i in range(current): buf[index] = buf4[i] # send value to buf, test case may need to check whether buf read the necessary characters index += 1 if current!=4: return index # V1' # https://www.jiuzhang.com/solution/read-n-characters-given-read4-ii-call-multiple-times/#tag-highlight-lang-python class Solution: def __init__(self): self.buf4, self.i4, self.n4 = [None] * 4, 0, 0 # @param {char[]} buf destination buffer # @param {int} n maximum number of characters to read # @return {int} the number of characters read def read(self, buf, n): # Write your code here i = 0 while i < n: if self.i4 == self.n4: self.i4, self.n4 = 0, Reader.read4(self.buf4) if not self.n4: break buf[i], i, self.i4 = self.buf4[self.i4], i + 1, self.i4 + 1 return i # V2 # Time: O(n) # Space: O(1) def read4(buf): global file_content i = 0 while i < len(file_content) and i < 4: buf[i] = file_content[i] i += 1 if len(file_content) > 4: file_content = file_content[4:] else: file_content = "" return i class Solution(object): def read(self, buf, n): """ :type buf: Destination buffer (List[str]) :type n: Maximum number of characters to read (int) :rtype: The number of characters read (int) """ read_bytes = 0 buffer = [''] * 4 for i in range(n / 4 + 1): size = read4(buffer) if size: size = min(size, n-read_bytes) buf[read_bytes:read_bytes+size] = buffer[:size] read_bytes += size else: break return read_bytes
#!/usr/bin/env python year = int(input("Año:")) if year % 4 == 0 and year % 100 != 0 or year % 400 == 0: print("Bisiesto") else: print("No bisiesto")
def check_line_containment(line_1, line_2): return (line_1[0] <= line_2[0] and line_1[1] >= line_2[1]) def containment(rec_1, rec_2): is__rec_1__in__rec_2 = check_line_containment(rec_1.get('x'), rec_2.get( 'x')) and check_line_containment(rec_1.get('y'), rec_2.get('y')) is__rec_2__in__rec_1 = check_line_containment(rec_2.get('x'), rec_1.get( 'x')) and check_line_containment(rec_2.get('y'), rec_1.get('y')) return is__rec_1__in__rec_2 or is__rec_2__in__rec_1
# -*- coding: utf-8 -*- ''' mc_proxy / Dummy state generation ================================== ''' def hook(name, changes=None, **kw): ''' State that will always return ret, use that for orchestration purpose name name of dummy state ''' if not changes: changes = {} ret = {'name': name, 'result': True, 'comment': 'Dummy state for {0}'.format(name), 'changes': changes} return ret def mod_watch(name, **kwargs): ''' Execute a dummy state in case of watcher changes ''' return hook(name, changes={1: 1}) #
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* ------------------------------------------------------------------- #G* Please see the accompanying LICENSE file for further information. #H* ------------------------------------------------------------------- #I* Additional authors of this source file include: #-* #-* #-* #Z* ------------------------------------------------------------------- normal = { ('ALA' , '1HB' ) : { 'type' : 'HC' , 'charge' : 0.0603 } , ('ALA' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0603 } , ('ALA' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0603 } , ('ALA' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('ALA' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0337 } , ('ALA' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1825 } , ('ALA' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('ALA' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0823 } , ('ALA' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ALA' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('CYM' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.2440 } , ('CYM' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.2440 } , ('CYM' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6160 } , ('CYM' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0350 } , ('CYM' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.7360 } , ('CYM' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2520 } , ('CYM' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0480 } , ('CYM' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4630 } , ('CYM' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5040 } , ('CYM' , 'SG' ) : { 'type' : 'SH' , 'charge' : -0.7360 } , ('CYS' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.1112 } , ('CYS' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.1112 } , ('CYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('CYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0213 } , ('CYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1231 } , ('CYS' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('CYS' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1124 } , ('CYS' , 'HG' ) : { 'type' : 'HS' , 'charge' : 0.1933 } , ('CYS' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('CYS' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('CYS' , 'SG' ) : { 'type' : 'SH' , 'charge' : -0.3119 } , ('CYX' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0910 } , ('CYX' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0910 } , ('CYX' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('CYX' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0429 } , ('CYX' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0790 } , ('CYX' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('CYX' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0766 } , ('CYX' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('CYX' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('CYX' , 'SG' ) : { 'type' : 'S' , 'charge' : -0.1081 } , ('ASP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0122 } , ('ASP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0122 } , ('ASP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5366 } , ('ASP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0381 } , ('ASP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0303 } , ('ASP' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.7994 } , ('ASP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2936 } , ('ASP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0880 } , ('ASP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5163 } , ('ASP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5819 } , ('ASP' , 'OD1' ) : { 'type' : 'O2' , 'charge' : -0.8014 } , ('ASP' , 'OD2' ) : { 'type' : 'O2' , 'charge' : -0.8014 } , ('ASH' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0488 } , ('ASH' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0488 } , ('ASH' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('ASH' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0341 } , ('ASH' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0316 } , ('ASH' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.6462 } , ('ASH' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('ASH' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0864 } , ('ASH' , 'HD2' ) : { 'type' : 'HO' , 'charge' : 0.4747 } , ('ASH' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ASH' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('ASH' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.5554 } , ('ASH' , 'OD2' ) : { 'type' : 'OH' , 'charge' : -0.6376 } , ('GLU' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0173 } , ('GLU' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0425 } , ('GLU' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0173 } , ('GLU' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0425 } , ('GLU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5366 } , ('GLU' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0397 } , ('GLU' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0560 } , ('GLU' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8054 } , ('GLU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0136 } , ('GLU' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2936 } , ('GLU' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1105 } , ('GLU' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5163 } , ('GLU' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5819 } , ('GLU' , 'OE1' ) : { 'type' : 'O2' , 'charge' : -0.8188 } , ('GLU' , 'OE2' ) : { 'type' : 'O2' , 'charge' : -0.8188 } , ('GLP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0256 } , ('GLP' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0430 } , ('GLP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0256 } , ('GLP' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0430 } , ('GLP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('GLP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0145 } , ('GLP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0071 } , ('GLP' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.6801 } , ('GLP' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0174 } , ('GLP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('GLP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0779 } , ('GLP' , 'HE2' ) : { 'type' : 'HO' , 'charge' : 0.4641 } , ('GLP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('GLP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('GLP' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.5838 } , ('GLP' , 'OE2' ) : { 'type' : 'OH' , 'charge' : -0.6511 } , ('PHE' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1330 } , ('PHE' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1430 } , ('PHE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0295 } , ('PHE' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1330 } , ('PHE' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1430 } , ('PHE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0295 } , ('PHE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('PHE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0024 } , ('PHE' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0343 } , ('PHE' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1256 } , ('PHE' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1256 } , ('PHE' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.1704 } , ('PHE' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.1704 } , ('PHE' , 'CG' ) : { 'type' : 'CA' , 'charge' : 0.0118 } , ('PHE' , 'CZ' ) : { 'type' : 'CA' , 'charge' : -0.1072 } , ('PHE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('PHE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0978 } , ('PHE' , 'HZ' ) : { 'type' : 'HA' , 'charge' : 0.1297 } , ('PHE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('PHE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('GLY' , '3HA' ) : { 'type' : 'H1' , 'charge' : 0.0698 } , ('GLY' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('GLY' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0252 } , ('GLY' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('GLY' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0698 } , ('GLY' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('GLY' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('HIP' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3866 } , ('HIP' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.2681 } , ('HIP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0810 } , ('HIP' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.2317 } , ('HIP' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3911 } , ('HIP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0810 } , ('HIP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7341 } , ('HIP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1354 } , ('HIP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0414 } , ('HIP' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.1141 } , ('HIP' , 'CE1' ) : { 'type' : 'CR' , 'charge' : -0.0170 } , ('HIP' , 'CG' ) : { 'type' : 'CC' , 'charge' : -0.0012 } , ('HIP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2747 } , ('HIP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1212 } , ('HIP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3479 } , ('HIP' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.1513 } , ('HIP' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.1718 } , ('HIP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5894 } , ('HIE' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1435 } , ('HIE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0367 } , ('HIE' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1862 } , ('HIE' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3339 } , ('HIE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0367 } , ('HIE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('HIE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0581 } , ('HIE' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0074 } , ('HIE' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.2207 } , ('HIE' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.1635 } , ('HIE' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.1868 } , ('HIE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('HIE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1360 } , ('HIE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('HIE' , 'ND1' ) : { 'type' : 'NB' , 'charge' : -0.5432 } , ('HIE' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.2795 } , ('HIE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('HID' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3649 } , ('HID' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1392 } , ('HID' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0402 } , ('HID' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1147 } , ('HID' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0402 } , ('HID' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('HID' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0188 } , ('HID' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0462 } , ('HID' , 'CD2' ) : { 'type' : 'CV' , 'charge' : 0.1292 } , ('HID' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.2057 } , ('HID' , 'CG' ) : { 'type' : 'CC' , 'charge' : -0.0266 } , ('HID' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('HID' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0881 } , ('HID' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('HID' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.3811 } , ('HID' , 'NE2' ) : { 'type' : 'NB' , 'charge' : -0.5727 } , ('HID' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('ILE' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.0186 } , ('ILE' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0882 } , ('ILE' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.0186 } , ('ILE' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0236 } , ('ILE' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0882 } , ('ILE' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.0186 } , ('ILE' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0236 } , ('ILE' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0882 } , ('ILE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('ILE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0597 } , ('ILE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.1303 } , ('ILE' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.0660 } , ('ILE' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.0430 } , ('ILE' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3204 } , ('ILE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('ILE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0869 } , ('ILE' , 'HB' ) : { 'type' : 'HC' , 'charge' : 0.0187 } , ('ILE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ILE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('LYS' , '1HZ' ) : { 'type' : 'H' , 'charge' : 0.3400 } , ('LYS' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0362 } , ('LYS' , '2HD' ) : { 'type' : 'HC' , 'charge' : 0.0621 } , ('LYS' , '2HE' ) : { 'type' : 'HP' , 'charge' : 0.1135 } , ('LYS' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0103 } , ('LYS' , '2HZ' ) : { 'type' : 'H' , 'charge' : 0.3400 } , ('LYS' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0362 } , ('LYS' , '3HD' ) : { 'type' : 'HC' , 'charge' : 0.0621 } , ('LYS' , '3HE' ) : { 'type' : 'HP' , 'charge' : 0.1135 } , ('LYS' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0103 } , ('LYS' , '3HZ' ) : { 'type' : 'H' , 'charge' : 0.3400 } , ('LYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7341 } , ('LYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2400 } , ('LYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0094 } , ('LYS' , 'CD' ) : { 'type' : 'CT' , 'charge' : -0.0479 } , ('LYS' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0143 } , ('LYS' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0187 } , ('LYS' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2747 } , ('LYS' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1426 } , ('LYS' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3479 } , ('LYS' , 'NZ' ) : { 'type' : 'N3' , 'charge' : -0.3854 } , ('LYS' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5894 } , ('LEU' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '1HD2' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0457 } , ('LEU' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '2HD2' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0457 } , ('LEU' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '3HD2' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('LEU' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0518 } , ('LEU' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1102 } , ('LEU' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.4121 } , ('LEU' , 'CD2' ) : { 'type' : 'CT' , 'charge' : -0.4121 } , ('LEU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.3531 } , ('LEU' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('LEU' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0922 } , ('LEU' , 'HG' ) : { 'type' : 'HC' , 'charge' : -0.0361 } , ('LEU' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('LEU' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('MET' , '1HE' ) : { 'type' : 'H1' , 'charge' : 0.0684 } , ('MET' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0241 } , ('MET' , '2HE' ) : { 'type' : 'H1' , 'charge' : 0.0684 } , ('MET' , '2HG' ) : { 'type' : 'H1' , 'charge' : 0.0440 } , ('MET' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0241 } , ('MET' , '3HE' ) : { 'type' : 'H1' , 'charge' : 0.0684 } , ('MET' , '3HG' ) : { 'type' : 'H1' , 'charge' : 0.0440 } , ('MET' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('MET' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0237 } , ('MET' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0342 } , ('MET' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0536 } , ('MET' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0018 } , ('MET' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('MET' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0880 } , ('MET' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('MET' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('MET' , 'SD' ) : { 'type' : 'S' , 'charge' : -0.2737 } , ('ASN' , '1HD2' ) : { 'type' : 'H' , 'charge' : 0.4196 } , ('ASN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0797 } , ('ASN' , '2HD2' ) : { 'type' : 'H' , 'charge' : 0.4196 } , ('ASN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0797 } , ('ASN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('ASN' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0143 } , ('ASN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.2041 } , ('ASN' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.7130 } , ('ASN' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('ASN' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1048 } , ('ASN' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ASN' , 'ND2' ) : { 'type' : 'N' , 'charge' : -0.9191 } , ('ASN' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('ASN' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.5931 } , ('PRO' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0253 } , ('PRO' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0391 } , ('PRO' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0213 } , ('PRO' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0253 } , ('PRO' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0391 } , ('PRO' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0213 } , ('PRO' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5896 } , ('PRO' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0266 } , ('PRO' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0070 } , ('PRO' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.0192 } , ('PRO' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0189 } , ('PRO' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0641 } , ('PRO' , 'N' ) : { 'type' : 'N' , 'charge' : -0.2548 } , ('PRO' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5748 } , ('GLN' , '1HE2' ) : { 'type' : 'H' , 'charge' : 0.4251 } , ('GLN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0171 } , ('GLN' , '2HE2' ) : { 'type' : 'H' , 'charge' : 0.4251 } , ('GLN' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0352 } , ('GLN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0171 } , ('GLN' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0352 } , ('GLN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('GLN' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0031 } , ('GLN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0036 } , ('GLN' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.6951 } , ('GLN' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0645 } , ('GLN' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('GLN' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0850 } , ('GLN' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('GLN' , 'NE2' ) : { 'type' : 'N' , 'charge' : -0.9407 } , ('GLN' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('GLN' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.6086 } , ('ARG' , '1HH1' ) : { 'type' : 'H' , 'charge' : 0.4478 } , ('ARG' , '1HH2' ) : { 'type' : 'H' , 'charge' : 0.4478 } , ('ARG' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0327 } , ('ARG' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0687 } , ('ARG' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0285 } , ('ARG' , '2HH1' ) : { 'type' : 'H' , 'charge' : 0.4478 } , ('ARG' , '2HH2' ) : { 'type' : 'H' , 'charge' : 0.4478 } , ('ARG' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0327 } , ('ARG' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0687 } , ('ARG' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0285 } , ('ARG' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7341 } , ('ARG' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2637 } , ('ARG' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0007 } , ('ARG' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.0486 } , ('ARG' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0390 } , ('ARG' , 'CZ' ) : { 'type' : 'CA' , 'charge' : 0.8076 } , ('ARG' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2747 } , ('ARG' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1560 } , ('ARG' , 'HE' ) : { 'type' : 'H' , 'charge' : 0.3456 } , ('ARG' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3479 } , ('ARG' , 'NE' ) : { 'type' : 'N2' , 'charge' : -0.5295 } , ('ARG' , 'NH1' ) : { 'type' : 'N2' , 'charge' : -0.8627 } , ('ARG' , 'NH2' ) : { 'type' : 'N2' , 'charge' : -0.8627 } , ('ARG' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5894 } , ('SER' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0352 } , ('SER' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0352 } , ('SER' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('SER' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0249 } , ('SER' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.2117 } , ('SER' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('SER' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0843 } , ('SER' , 'HG' ) : { 'type' : 'HO' , 'charge' : 0.4275 } , ('SER' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('SER' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('SER' , 'OG' ) : { 'type' : 'OH' , 'charge' : -0.6546 } , ('THR' , '1HG' ) : { 'type' : 'HO' , 'charge' : 0.4102 } , ('THR' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0642 } , ('THR' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0642 } , ('THR' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0642 } , ('THR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('THR' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0389 } , ('THR' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.3654 } , ('THR' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.2438 } , ('THR' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('THR' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1007 } , ('THR' , 'HB' ) : { 'type' : 'H1' , 'charge' : 0.0043 } , ('THR' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('THR' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('THR' , 'OG1' ) : { 'type' : 'OH' , 'charge' : -0.6761 } , ('VAL' , '1HG1' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('VAL' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0875 } , ('VAL' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.2985 } , ('VAL' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.3192 } , ('VAL' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3192 } , ('VAL' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('VAL' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0969 } , ('VAL' , 'HB' ) : { 'type' : 'HC' , 'charge' : -0.0297 } , ('VAL' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('VAL' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('TRP' , '1HD' ) : { 'type' : 'H4' , 'charge' : 0.2062 } , ('TRP' , '1HE' ) : { 'type' : 'H' , 'charge' : 0.3412 } , ('TRP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0339 } , ('TRP' , '2HH' ) : { 'type' : 'HA' , 'charge' : 0.1417 } , ('TRP' , '2HZ' ) : { 'type' : 'HA' , 'charge' : 0.1572 } , ('TRP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0339 } , ('TRP' , '3HE' ) : { 'type' : 'HA' , 'charge' : 0.1700 } , ('TRP' , '3HZ' ) : { 'type' : 'HA' , 'charge' : 0.1447 } , ('TRP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('TRP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0275 } , ('TRP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0050 } , ('TRP' , 'CD1' ) : { 'type' : 'CW' , 'charge' : -0.1638 } , ('TRP' , 'CD2' ) : { 'type' : 'CB' , 'charge' : 0.1243 } , ('TRP' , 'CE2' ) : { 'type' : 'CN' , 'charge' : 0.1380 } , ('TRP' , 'CE3' ) : { 'type' : 'CA' , 'charge' : -0.2387 } , ('TRP' , 'CG' ) : { 'type' : 'C*' , 'charge' : -0.1415 } , ('TRP' , 'CH2' ) : { 'type' : 'CA' , 'charge' : -0.1134 } , ('TRP' , 'CZ2' ) : { 'type' : 'CA' , 'charge' : -0.2601 } , ('TRP' , 'CZ3' ) : { 'type' : 'CA' , 'charge' : -0.1972 } , ('TRP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('TRP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1123 } , ('TRP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('TRP' , 'NE1' ) : { 'type' : 'NA' , 'charge' : -0.3418 } , ('TRP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('TYR' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1699 } , ('TYR' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1656 } , ('TYR' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0295 } , ('TYR' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1699 } , ('TYR' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1656 } , ('TYR' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0295 } , ('TYR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('TYR' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0014 } , ('TYR' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0152 } , ('TYR' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1906 } , ('TYR' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1906 } , ('TYR' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.2341 } , ('TYR' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.2341 } , ('TYR' , 'CG' ) : { 'type' : 'CA' , 'charge' : -0.0011 } , ('TYR' , 'CZ' ) : { 'type' : 'C' , 'charge' : 0.3226 } , ('TYR' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('TYR' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0876 } , ('TYR' , 'HH' ) : { 'type' : 'HO' , 'charge' : 0.3992 } , ('TYR' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('TYR' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('TYR' , 'OH' ) : { 'type' : 'OH' , 'charge' : -0.5579 } , ('NME' , '1HH3' ) : { 'type' : 'H1' , 'charge' : 0.0976 } , ('NME' , '2HH3' ) : { 'type' : 'H1' , 'charge' : 0.0976 } , ('NME' , '3HH3' ) : { 'type' : 'H1' , 'charge' : 0.0976 } , ('NME' , 'CH3' ) : { 'type' : 'CT' , 'charge' : -0.1490 } , ('NME' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('NME' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ACE' , '1HH3' ) : { 'type' : 'HC' , 'charge' : 0.1123 } , ('ACE' , '2HH3' ) : { 'type' : 'HC' , 'charge' : 0.1123 } , ('ACE' , '3HH3' ) : { 'type' : 'HC' , 'charge' : 0.1123 } , ('ACE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5972 } , ('ACE' , 'CH3' ) : { 'type' : 'CT' , 'charge' : -0.3662 } , ('ACE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , } n_terminal = { ('ALA' , '1HB' ) : { 'type' : 'HC' , 'charge' : 0.0300 } , ('ALA' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1997 } , ('ALA' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0300 } , ('ALA' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1997 } , ('ALA' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0300 } , ('ALA' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1997 } , ('ALA' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('ALA' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0962 } , ('ALA' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0597 } , ('ALA' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0889 } , ('ALA' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1414 } , ('ALA' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('CYS' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2023 } , ('CYS' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.1188 } , ('CYS' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2023 } , ('CYS' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.1188 } , ('CYS' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2023 } , ('CYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('CYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0927 } , ('CYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1195 } , ('CYS' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1411 } , ('CYS' , 'HG' ) : { 'type' : 'HS' , 'charge' : 0.1975 } , ('CYS' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1325 } , ('CYS' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('CYS' , 'SG' ) : { 'type' : 'SH' , 'charge' : -0.3298 } , ('CYX' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1815 } , ('CYX' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0680 } , ('CYX' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1815 } , ('CYX' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0680 } , ('CYX' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1815 } , ('CYX' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('CYX' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.1055 } , ('CYX' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0277 } , ('CYX' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0922 } , ('CYX' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.2069 } , ('CYX' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('CYX' , 'SG' ) : { 'type' : 'S' , 'charge' : -0.0984 } , ('ASP' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0169 } , ('ASP' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0169 } , ('ASP' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5621 } , ('ASP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0292 } , ('ASP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0235 } , ('ASP' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.8194 } , ('ASP' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1141 } , ('ASP' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0782 } , ('ASP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5889 } , ('ASP' , 'OD1' ) : { 'type' : 'O2' , 'charge' : -0.8084 } , ('ASP' , 'OD2' ) : { 'type' : 'O2' , 'charge' : -0.8084 } , ('ASH' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASH' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0169 } , ('ASH' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASH' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0169 } , ('ASH' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASH' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5621 } , ('ASH' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0292 } , ('ASH' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0235 } , ('ASH' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.8194 } , ('ASH' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1141 } , ('ASH' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0782 } , ('ASH' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5889 } , ('ASH' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.8084 } , ('ASH' , 'OD2' ) : { 'type' : 'OH' , 'charge' : -0.8084 } , ('GLU' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLU' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0232 } , ('GLU' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0315 } , ('GLU' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLU' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0232 } , ('GLU' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0315 } , ('GLU' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5621 } , ('GLU' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0588 } , ('GLU' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0909 } , ('GLU' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8087 } , ('GLU' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0236 } , ('GLU' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1202 } , ('GLU' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0017 } , ('GLU' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5889 } , ('GLU' , 'OE1' ) : { 'type' : 'O2' , 'charge' : -0.8189 } , ('GLU' , 'OE2' ) : { 'type' : 'O2' , 'charge' : -0.8189 } , ('GLP' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0232 } , ('GLP' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0315 } , ('GLP' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0232 } , ('GLP' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0315 } , ('GLP' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5621 } , ('GLP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0588 } , ('GLP' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0909 } , ('GLP' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8087 } , ('GLP' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0236 } , ('GLP' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1202 } , ('GLP' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0017 } , ('GLP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5889 } , ('GLP' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.8189 } , ('GLP' , 'OE2' ) : { 'type' : 'OH' , 'charge' : -0.8189 } , ('PHE' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1374 } , ('PHE' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1433 } , ('PHE' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('PHE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0104 } , ('PHE' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1374 } , ('PHE' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1433 } , ('PHE' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('PHE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0104 } , ('PHE' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('PHE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('PHE' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0733 } , ('PHE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0330 } , ('PHE' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1392 } , ('PHE' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1391 } , ('PHE' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.1602 } , ('PHE' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.1603 } , ('PHE' , 'CG' ) : { 'type' : 'CA' , 'charge' : 0.0031 } , ('PHE' , 'CZ' ) : { 'type' : 'CA' , 'charge' : -0.1208 } , ('PHE' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1041 } , ('PHE' , 'HZ' ) : { 'type' : 'HA' , 'charge' : 0.1329 } , ('PHE' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1737 } , ('PHE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('GLY' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1642 } , ('GLY' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1642 } , ('GLY' , '3HA' ) : { 'type' : 'H1' , 'charge' : 0.0895 } , ('GLY' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1642 } , ('GLY' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('GLY' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0100 } , ('GLY' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0895 } , ('GLY' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.2943 } , ('GLY' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('HIP' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3821 } , ('HIP' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.2645 } , ('HIP' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1704 } , ('HIP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0531 } , ('HIP' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.2495 } , ('HIP' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3921 } , ('HIP' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1704 } , ('HIP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0531 } , ('HIP' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1704 } , ('HIP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7214 } , ('HIP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0581 } , ('HIP' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0484 } , ('HIP' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.1433 } , ('HIP' , 'CE1' ) : { 'type' : 'CR' , 'charge' : -0.0011 } , ('HIP' , 'CG' ) : { 'type' : 'CC' , 'charge' : -0.0236 } , ('HIP' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1047 } , ('HIP' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.2560 } , ('HIP' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.1510 } , ('HIP' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.1739 } , ('HIP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.6013 } , ('HIE' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1397 } , ('HIE' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2016 } , ('HIE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0223 } , ('HIE' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1963 } , ('HIE' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3324 } , ('HIE' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2016 } , ('HIE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0223 } , ('HIE' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2016 } , ('HIE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('HIE' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0236 } , ('HIE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0489 } , ('HIE' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.2349 } , ('HIE' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.1804 } , ('HIE' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.1740 } , ('HIE' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1380 } , ('HIE' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1472 } , ('HIE' , 'ND1' ) : { 'type' : 'NB' , 'charge' : -0.5579 } , ('HIE' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.2781 } , ('HIE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('HID' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3632 } , ('HID' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1385 } , ('HID' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1963 } , ('HID' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0209 } , ('HID' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1299 } , ('HID' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1963 } , ('HID' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0209 } , ('HID' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1963 } , ('HID' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('HID' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0964 } , ('HID' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0259 } , ('HID' , 'CD2' ) : { 'type' : 'CV' , 'charge' : 0.1046 } , ('HID' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.2127 } , ('HID' , 'CG' ) : { 'type' : 'CC' , 'charge' : -0.0399 } , ('HID' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0958 } , ('HID' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1542 } , ('HID' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.3819 } , ('HID' , 'NE2' ) : { 'type' : 'NB' , 'charge' : -0.5711 } , ('HID' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('ILE' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ILE' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0947 } , ('ILE' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2329 } , ('ILE' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ILE' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0201 } , ('ILE' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0947 } , ('ILE' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2329 } , ('ILE' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ILE' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0201 } , ('ILE' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0947 } , ('ILE' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2329 } , ('ILE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('ILE' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0257 } , ('ILE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.1885 } , ('ILE' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.0908 } , ('ILE' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.0387 } , ('ILE' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3720 } , ('ILE' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1031 } , ('ILE' , 'HB' ) : { 'type' : 'HC' , 'charge' : 0.0213 } , ('ILE' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0311 } , ('ILE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('LYS' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2165 } , ('LYS' , '1HZ' ) : { 'type' : 'H' , 'charge' : 0.3382 } , ('LYS' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0283 } , ('LYS' , '2HD' ) : { 'type' : 'HC' , 'charge' : 0.0633 } , ('LYS' , '2HE' ) : { 'type' : 'HP' , 'charge' : 0.1171 } , ('LYS' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0121 } , ('LYS' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2165 } , ('LYS' , '2HZ' ) : { 'type' : 'H' , 'charge' : 0.3382 } , ('LYS' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0283 } , ('LYS' , '3HD' ) : { 'type' : 'HC' , 'charge' : 0.0633 } , ('LYS' , '3HE' ) : { 'type' : 'HP' , 'charge' : 0.1171 } , ('LYS' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0121 } , ('LYS' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2165 } , ('LYS' , '3HZ' ) : { 'type' : 'H' , 'charge' : 0.3382 } , ('LYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7214 } , ('LYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0015 } , ('LYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0212 } , ('LYS' , 'CD' ) : { 'type' : 'CT' , 'charge' : -0.0608 } , ('LYS' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0181 } , ('LYS' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0048 } , ('LYS' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1180 } , ('LYS' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0966 } , ('LYS' , 'NZ' ) : { 'type' : 'N3' , 'charge' : -0.3764 } , ('LYS' , 'O' ) : { 'type' : 'O' , 'charge' : -0.6013 } , ('LEU' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '1HD2' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2148 } , ('LEU' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0256 } , ('LEU' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '2HD2' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2148 } , ('LEU' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0256 } , ('LEU' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '3HD2' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2148 } , ('LEU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('LEU' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0104 } , ('LEU' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0244 } , ('LEU' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.4106 } , ('LEU' , 'CD2' ) : { 'type' : 'CT' , 'charge' : -0.4104 } , ('LEU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.3421 } , ('LEU' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1053 } , ('LEU' , 'HG' ) : { 'type' : 'HC' , 'charge' : -0.0380 } , ('LEU' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1010 } , ('LEU' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('MET' , '1HE' ) : { 'type' : 'H1' , 'charge' : 0.0597 } , ('MET' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1984 } , ('MET' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0125 } , ('MET' , '2HE' ) : { 'type' : 'H1' , 'charge' : 0.0597 } , ('MET' , '2HG' ) : { 'type' : 'H1' , 'charge' : 0.0292 } , ('MET' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1984 } , ('MET' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0125 } , ('MET' , '3HE' ) : { 'type' : 'H1' , 'charge' : 0.0597 } , ('MET' , '3HG' ) : { 'type' : 'H1' , 'charge' : 0.0292 } , ('MET' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1984 } , ('MET' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('MET' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0221 } , ('MET' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0865 } , ('MET' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0341 } , ('MET' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0334 } , ('MET' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1116 } , ('MET' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1592 } , ('MET' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('MET' , 'SD' ) : { 'type' : 'S' , 'charge' : -0.2774 } , ('ASN' , '1HD2' ) : { 'type' : 'H' , 'charge' : 0.4097 } , ('ASN' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('ASN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0515 } , ('ASN' , '2HD2' ) : { 'type' : 'H' , 'charge' : 0.4097 } , ('ASN' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('ASN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0515 } , ('ASN' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('ASN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('ASN' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0368 } , ('ASN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0283 } , ('ASN' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.5833 } , ('ASN' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1231 } , ('ASN' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1801 } , ('ASN' , 'ND2' ) : { 'type' : 'N' , 'charge' : -0.8634 } , ('ASN' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('ASN' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.5744 } , ('PRO' , '2H' ) : { 'type' : 'H' , 'charge' : 0.3120 } , ('PRO' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('PRO' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.1000 } , ('PRO' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('PRO' , '3H' ) : { 'type' : 'H' , 'charge' : 0.3120 } , ('PRO' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('PRO' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.1000 } , ('PRO' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('PRO' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5260 } , ('PRO' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.1000 } , ('PRO' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1150 } , ('PRO' , 'CD' ) : { 'type' : 'CT' , 'charge' : -0.0120 } , ('PRO' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.1210 } , ('PRO' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1000 } , ('PRO' , 'N' ) : { 'type' : 'N3' , 'charge' : -0.2020 } , ('PRO' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5000 } , ('GLN' , '1HE2' ) : { 'type' : 'H' , 'charge' : 0.4429 } , ('GLN' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1996 } , ('GLN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0050 } , ('GLN' , '2HE2' ) : { 'type' : 'H' , 'charge' : 0.4429 } , ('GLN' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0331 } , ('GLN' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1996 } , ('GLN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0050 } , ('GLN' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0331 } , ('GLN' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1996 } , ('GLN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('GLN' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0536 } , ('GLN' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0651 } , ('GLN' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.7354 } , ('GLN' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0903 } , ('GLN' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1015 } , ('GLN' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1493 } , ('GLN' , 'NE2' ) : { 'type' : 'N' , 'charge' : -1.0031 } , ('GLN' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('GLN' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.6133 } , ('ARG' , '1HH1' ) : { 'type' : 'H' , 'charge' : 0.4494 } , ('ARG' , '1HH2' ) : { 'type' : 'H' , 'charge' : 0.4494 } , ('ARG' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2083 } , ('ARG' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ARG' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0527 } , ('ARG' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0309 } , ('ARG' , '2HH1' ) : { 'type' : 'H' , 'charge' : 0.4494 } , ('ARG' , '2HH2' ) : { 'type' : 'H' , 'charge' : 0.4494 } , ('ARG' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2083 } , ('ARG' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ARG' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0527 } , ('ARG' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0309 } , ('ARG' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2083 } , ('ARG' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7214 } , ('ARG' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0223 } , ('ARG' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0118 } , ('ARG' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.0935 } , ('ARG' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0236 } , ('ARG' , 'CZ' ) : { 'type' : 'CA' , 'charge' : 0.8281 } , ('ARG' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1242 } , ('ARG' , 'HE' ) : { 'type' : 'H' , 'charge' : 0.3592 } , ('ARG' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1305 } , ('ARG' , 'NE' ) : { 'type' : 'N2' , 'charge' : -0.5650 } , ('ARG' , 'NH1' ) : { 'type' : 'N2' , 'charge' : -0.8693 } , ('ARG' , 'NH2' ) : { 'type' : 'N2' , 'charge' : -0.8693 } , ('ARG' , 'O' ) : { 'type' : 'O' , 'charge' : -0.6013 } , ('SER' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1898 } , ('SER' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0273 } , ('SER' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1898 } , ('SER' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0273 } , ('SER' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1898 } , ('SER' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('SER' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0567 } , ('SER' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.2596 } , ('SER' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0782 } , ('SER' , 'HG' ) : { 'type' : 'HO' , 'charge' : 0.4239 } , ('SER' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1849 } , ('SER' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('SER' , 'OG' ) : { 'type' : 'OH' , 'charge' : -0.6714 } , ('THR' , '1HG' ) : { 'type' : 'HO' , 'charge' : 0.4070 } , ('THR' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0627 } , ('THR' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1934 } , ('THR' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0627 } , ('THR' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1934 } , ('THR' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0627 } , ('THR' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1934 } , ('THR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('THR' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0034 } , ('THR' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.4514 } , ('THR' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.2554 } , ('THR' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1087 } , ('THR' , 'HB' ) : { 'type' : 'H1' , 'charge' : -0.0323 } , ('THR' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1812 } , ('THR' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('THR' , 'OG1' ) : { 'type' : 'OH' , 'charge' : -0.6764 } , ('VAL' , '1HG1' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2272 } , ('VAL' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2272 } , ('VAL' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2272 } , ('VAL' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('VAL' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0054 } , ('VAL' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.3196 } , ('VAL' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.3129 } , ('VAL' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3129 } , ('VAL' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1093 } , ('VAL' , 'HB' ) : { 'type' : 'HC' , 'charge' : -0.0221 } , ('VAL' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0577 } , ('VAL' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('TRP' , '1HD' ) : { 'type' : 'H4' , 'charge' : 0.2195 } , ('TRP' , '1HE' ) : { 'type' : 'H' , 'charge' : 0.3412 } , ('TRP' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1888 } , ('TRP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0222 } , ('TRP' , '2HH' ) : { 'type' : 'HA' , 'charge' : 0.1411 } , ('TRP' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1888 } , ('TRP' , '2HZ' ) : { 'type' : 'HA' , 'charge' : 0.1589 } , ('TRP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0222 } , ('TRP' , '3HE' ) : { 'type' : 'HA' , 'charge' : 0.1646 } , ('TRP' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1888 } , ('TRP' , '3HZ' ) : { 'type' : 'HA' , 'charge' : 0.1458 } , ('TRP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('TRP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0421 } , ('TRP' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0543 } , ('TRP' , 'CD1' ) : { 'type' : 'CW' , 'charge' : -0.1788 } , ('TRP' , 'CD2' ) : { 'type' : 'CB' , 'charge' : 0.1132 } , ('TRP' , 'CE2' ) : { 'type' : 'CN' , 'charge' : 0.1575 } , ('TRP' , 'CE3' ) : { 'type' : 'CA' , 'charge' : -0.2265 } , ('TRP' , 'CG' ) : { 'type' : 'C*' , 'charge' : -0.1654 } , ('TRP' , 'CH2' ) : { 'type' : 'CA' , 'charge' : -0.1080 } , ('TRP' , 'CZ2' ) : { 'type' : 'CA' , 'charge' : -0.2710 } , ('TRP' , 'CZ3' ) : { 'type' : 'CA' , 'charge' : -0.2034 } , ('TRP' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1162 } , ('TRP' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1913 } , ('TRP' , 'NE1' ) : { 'type' : 'NA' , 'charge' : -0.3444 } , ('TRP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('TYR' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1720 } , ('TYR' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1650 } , ('TYR' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1873 } , ('TYR' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0102 } , ('TYR' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1720 } , ('TYR' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1650 } , ('TYR' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1873 } , ('TYR' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0102 } , ('TYR' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1873 } , ('TYR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('TYR' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0570 } , ('TYR' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0659 } , ('TYR' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.2002 } , ('TYR' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.2002 } , ('TYR' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.2239 } , ('TYR' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.2239 } , ('TYR' , 'CG' ) : { 'type' : 'CA' , 'charge' : -0.0205 } , ('TYR' , 'CZ' ) : { 'type' : 'C' , 'charge' : 0.3139 } , ('TYR' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0983 } , ('TYR' , 'HH' ) : { 'type' : 'HO' , 'charge' : 0.4001 } , ('TYR' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1940 } , ('TYR' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('TYR' , 'OH' ) : { 'type' : 'OH' , 'charge' : -0.5578 } , } c_terminal = { ('ALA' , '1HB' ) : { 'type' : 'HC' , 'charge' : 0.0764 } , ('ALA' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0764 } , ('ALA' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0764 } , ('ALA' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7731 } , ('ALA' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1747 } , ('ALA' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.2093 } , ('ALA' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('ALA' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1067 } , ('ALA' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('ALA' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8055 } , ('ALA' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8055 } , ('CYS' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.1437 } , ('CYS' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.1437 } , ('CYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7497 } , ('CYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1635 } , ('CYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1996 } , ('CYS' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('CYS' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1396 } , ('CYS' , 'HG' ) : { 'type' : 'HS' , 'charge' : 0.2068 } , ('CYS' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('CYS' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7981 } , ('CYS' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7981 } , ('CYS' , 'SG' ) : { 'type' : 'SH' , 'charge' : -0.3102 } , ('CYX' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.1228 } , ('CYX' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.1228 } , ('CYX' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7618 } , ('CYX' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1318 } , ('CYX' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1943 } , ('CYX' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('CYX' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0938 } , ('CYX' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('CYX' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8041 } , ('CYX' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8041 } , ('CYX' , 'SG' ) : { 'type' : 'S' , 'charge' : -0.0529 } , ('ASP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0212 } , ('ASP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0212 } , ('ASP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7256 } , ('ASP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1817 } , ('ASP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0677 } , ('ASP' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.8851 } , ('ASP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.3055 } , ('ASP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1046 } , ('ASP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5192 } , ('ASP' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7887 } , ('ASP' , 'OD1' ) : { 'type' : 'O2' , 'charge' : -0.8162 } , ('ASP' , 'OD2' ) : { 'type' : 'O2' , 'charge' : -0.8162 } , ('ASP' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7887 } , ('ASH' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0212 } , ('ASH' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0212 } , ('ASH' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7256 } , ('ASH' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1817 } , ('ASH' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0677 } , ('ASH' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.8851 } , ('ASH' , 'H' ) : { 'type' : 'H' , 'charge' : 0.3055 } , ('ASH' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1046 } , ('ASH' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5192 } , ('ASH' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7887 } , ('ASH' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.8162 } , ('ASH' , 'OD2' ) : { 'type' : 'OH' , 'charge' : -0.8162 } , ('ASH' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7887 } , ('GLU' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0078 } , ('GLU' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0548 } , ('GLU' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0078 } , ('GLU' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0548 } , ('GLU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7420 } , ('GLU' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2059 } , ('GLU' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0071 } , ('GLU' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8183 } , ('GLU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0675 } , ('GLU' , 'H' ) : { 'type' : 'H' , 'charge' : 0.3055 } , ('GLU' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1399 } , ('GLU' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5192 } , ('GLU' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7930 } , ('GLU' , 'OE1' ) : { 'type' : 'O2' , 'charge' : -0.8220 } , ('GLU' , 'OE2' ) : { 'type' : 'O2' , 'charge' : -0.8220 } , ('GLU' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7930 } , ('GLP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0078 } , ('GLP' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0548 } , ('GLP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0078 } , ('GLP' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0548 } , ('GLP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7420 } , ('GLP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2059 } , ('GLP' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0071 } , ('GLP' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8183 } , ('GLP' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0675 } , ('GLP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.3055 } , ('GLP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1399 } , ('GLP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5192 } , ('GLP' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7930 } , ('GLP' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.8220 } , ('GLP' , 'OE2' ) : { 'type' : 'OH' , 'charge' : -0.8220 } , ('GLP' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7930 } , ('PHE' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1408 } , ('PHE' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1461 } , ('PHE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0443 } , ('PHE' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1408 } , ('PHE' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1461 } , ('PHE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0443 } , ('PHE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7660 } , ('PHE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1825 } , ('PHE' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0959 } , ('PHE' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1300 } , ('PHE' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1300 } , ('PHE' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.1847 } , ('PHE' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.1847 } , ('PHE' , 'CG' ) : { 'type' : 'CA' , 'charge' : 0.0552 } , ('PHE' , 'CZ' ) : { 'type' : 'CA' , 'charge' : -0.0944 } , ('PHE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('PHE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1098 } , ('PHE' , 'HZ' ) : { 'type' : 'HA' , 'charge' : 0.1280 } , ('PHE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('PHE' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8026 } , ('PHE' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8026 } , ('GLY' , '3HA' ) : { 'type' : 'H1' , 'charge' : 0.1056 } , ('GLY' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7231 } , ('GLY' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2493 } , ('GLY' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('GLY' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1056 } , ('GLY' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('GLY' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7855 } , ('GLY' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7855 } , ('HIP' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3883 } , ('HIP' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.2694 } , ('HIP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0868 } , ('HIP' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.2336 } , ('HIP' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3913 } , ('HIP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0868 } , ('HIP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8032 } , ('HIP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1445 } , ('HIP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0800 } , ('HIP' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.1256 } , ('HIP' , 'CE1' ) : { 'type' : 'CR' , 'charge' : -0.0251 } , ('HIP' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.0298 } , ('HIP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2764 } , ('HIP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1115 } , ('HIP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3481 } , ('HIP' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.1501 } , ('HIP' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.1683 } , ('HIP' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8177 } , ('HIP' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8177 } , ('HIE' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1448 } , ('HIE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0620 } , ('HIE' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1957 } , ('HIE' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3319 } , ('HIE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0620 } , ('HIE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7916 } , ('HIE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2699 } , ('HIE' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1068 } , ('HIE' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.2588 } , ('HIE' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.1558 } , ('HIE' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.2724 } , ('HIE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('HIE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1650 } , ('HIE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('HIE' , 'ND1' ) : { 'type' : 'NB' , 'charge' : -0.5517 } , ('HIE' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.2670 } , ('HIE' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8065 } , ('HIE' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8065 } , ('HID' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3755 } , ('HID' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1418 } , ('HID' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0565 } , ('HID' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1241 } , ('HID' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0565 } , ('HID' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7615 } , ('HID' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1739 } , ('HID' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1046 } , ('HID' , 'CD2' ) : { 'type' : 'CV' , 'charge' : 0.1001 } , ('HID' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.1925 } , ('HID' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.0293 } , ('HID' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('HID' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1100 } , ('HID' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('HID' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.3892 } , ('HID' , 'NE2' ) : { 'type' : 'NB' , 'charge' : -0.5629 } , ('HID' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8016 } , ('HID' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8016 } , ('ILE' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.0196 } , ('ILE' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.1021 } , ('ILE' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.0196 } , ('ILE' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0321 } , ('ILE' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.1021 } , ('ILE' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.0196 } , ('ILE' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0321 } , ('ILE' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.1021 } , ('ILE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8343 } , ('ILE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.3100 } , ('ILE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0363 } , ('ILE' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.0699 } , ('ILE' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.0323 } , ('ILE' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3498 } , ('ILE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('ILE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1375 } , ('ILE' , 'HB' ) : { 'type' : 'HC' , 'charge' : 0.0766 } , ('ILE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('ILE' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8190 } , ('ILE' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8190 } , ('LYS' , '1HZ' ) : { 'type' : 'H' , 'charge' : 0.3374 } , ('LYS' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0482 } , ('LYS' , '2HD' ) : { 'type' : 'HC' , 'charge' : 0.0611 } , ('LYS' , '2HE' ) : { 'type' : 'HP' , 'charge' : 0.1121 } , ('LYS' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0134 } , ('LYS' , '2HZ' ) : { 'type' : 'H' , 'charge' : 0.3374 } , ('LYS' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0482 } , ('LYS' , '3HD' ) : { 'type' : 'HC' , 'charge' : 0.0611 } , ('LYS' , '3HE' ) : { 'type' : 'HP' , 'charge' : 0.1121 } , ('LYS' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0134 } , ('LYS' , '3HZ' ) : { 'type' : 'H' , 'charge' : 0.3374 } , ('LYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8488 } , ('LYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2903 } , ('LYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0538 } , ('LYS' , 'CD' ) : { 'type' : 'CT' , 'charge' : -0.0392 } , ('LYS' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0176 } , ('LYS' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0227 } , ('LYS' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2764 } , ('LYS' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1438 } , ('LYS' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3481 } , ('LYS' , 'NZ' ) : { 'type' : 'N3' , 'charge' : -0.3741 } , ('LYS' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8252 } , ('LYS' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8252 } , ('LEU' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '1HD2' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0974 } , ('LEU' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '2HD2' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0974 } , ('LEU' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '3HD2' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8326 } , ('LEU' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2847 } , ('LEU' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.2469 } , ('LEU' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.4163 } , ('LEU' , 'CD2' ) : { 'type' : 'CT' , 'charge' : -0.4163 } , ('LEU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.3706 } , ('LEU' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('LEU' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1346 } , ('LEU' , 'HG' ) : { 'type' : 'HC' , 'charge' : -0.0374 } , ('LEU' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('LEU' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8199 } , ('LEU' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8199 } , ('MET' , '1HE' ) : { 'type' : 'H1' , 'charge' : 0.0625 } , ('MET' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0480 } , ('MET' , '2HE' ) : { 'type' : 'H1' , 'charge' : 0.0625 } , ('MET' , '2HG' ) : { 'type' : 'H1' , 'charge' : 0.0317 } , ('MET' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0480 } , ('MET' , '3HE' ) : { 'type' : 'H1' , 'charge' : 0.0625 } , ('MET' , '3HG' ) : { 'type' : 'H1' , 'charge' : 0.0317 } , ('MET' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8013 } , ('MET' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2597 } , ('MET' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0236 } , ('MET' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0376 } , ('MET' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0492 } , ('MET' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('MET' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1277 } , ('MET' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('MET' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8105 } , ('MET' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8105 } , ('MET' , 'SD' ) : { 'type' : 'S' , 'charge' : -0.2692 } , ('ASN' , '1HD2' ) : { 'type' : 'H' , 'charge' : 0.4150 } , ('ASN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.1023 } , ('ASN' , '2HD2' ) : { 'type' : 'H' , 'charge' : 0.4150 } , ('ASN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.1023 } , ('ASN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8050 } , ('ASN' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2080 } , ('ASN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.2299 } , ('ASN' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.7153 } , ('ASN' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('ASN' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1358 } , ('ASN' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('ASN' , 'ND2' ) : { 'type' : 'N' , 'charge' : -0.9084 } , ('ASN' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8147 } , ('ASN' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.6010 } , ('ASN' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8147 } , ('PRO' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0381 } , ('PRO' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0331 } , ('PRO' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0172 } , ('PRO' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0381 } , ('PRO' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0331 } , ('PRO' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0172 } , ('PRO' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6631 } , ('PRO' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1336 } , ('PRO' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0543 } , ('PRO' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.0434 } , ('PRO' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0466 } , ('PRO' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0776 } , ('PRO' , 'N' ) : { 'type' : 'N' , 'charge' : -0.2802 } , ('PRO' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7697 } , ('PRO' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7697 } , ('GLN' , '1HE2' ) : { 'type' : 'H' , 'charge' : 0.4304 } , ('GLN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0452 } , ('GLN' , '2HE2' ) : { 'type' : 'H' , 'charge' : 0.4304 } , ('GLN' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0203 } , ('GLN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0452 } , ('GLN' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0203 } , ('GLN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7775 } , ('GLN' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2248 } , ('GLN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0664 } , ('GLN' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.7093 } , ('GLN' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0210 } , ('GLN' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('GLN' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1232 } , ('GLN' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('GLN' , 'NE2' ) : { 'type' : 'N' , 'charge' : -0.9574 } , ('GLN' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8042 } , ('GLN' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.6098 } , ('GLN' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8042 } , ('ARG' , '1HH1' ) : { 'type' : 'H' , 'charge' : 0.4493 } , ('ARG' , '1HH2' ) : { 'type' : 'H' , 'charge' : 0.4493 } , ('ARG' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0371 } , ('ARG' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0468 } , ('ARG' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0185 } , ('ARG' , '2HH1' ) : { 'type' : 'H' , 'charge' : 0.4493 } , ('ARG' , '2HH2' ) : { 'type' : 'H' , 'charge' : 0.4493 } , ('ARG' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0371 } , ('ARG' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0468 } , ('ARG' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0185 } , ('ARG' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8557 } , ('ARG' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.3068 } , ('ARG' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0374 } , ('ARG' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.1114 } , ('ARG' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0744 } , ('ARG' , 'CZ' ) : { 'type' : 'CA' , 'charge' : 0.8368 } , ('ARG' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2764 } , ('ARG' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1447 } , ('ARG' , 'HE' ) : { 'type' : 'H' , 'charge' : 0.3479 } , ('ARG' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3481 } , ('ARG' , 'NE' ) : { 'type' : 'N2' , 'charge' : -0.5564 } , ('ARG' , 'NH1' ) : { 'type' : 'N2' , 'charge' : -0.8737 } , ('ARG' , 'NH2' ) : { 'type' : 'N2' , 'charge' : -0.8737 } , ('ARG' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8266 } , ('ARG' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8266 } , ('SER' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0813 } , ('SER' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0813 } , ('SER' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8113 } , ('SER' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2722 } , ('SER' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.1123 } , ('SER' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('SER' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1304 } , ('SER' , 'HG' ) : { 'type' : 'HO' , 'charge' : 0.4474 } , ('SER' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('SER' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8132 } , ('SER' , 'OG' ) : { 'type' : 'OH' , 'charge' : -0.6514 } , ('SER' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8132 } , ('THR' , '1HG' ) : { 'type' : 'HO' , 'charge' : 0.4119 } , ('THR' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0586 } , ('THR' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0586 } , ('THR' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0586 } , ('THR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7810 } , ('THR' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2420 } , ('THR' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.3025 } , ('THR' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.1853 } , ('THR' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('THR' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1207 } , ('THR' , 'HB' ) : { 'type' : 'H1' , 'charge' : 0.0078 } , ('THR' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('THR' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8044 } , ('THR' , 'OG1' ) : { 'type' : 'OH' , 'charge' : -0.6496 } , ('THR' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8044 } , ('VAL' , '1HG1' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8350 } , ('VAL' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.3438 } , ('VAL' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.1940 } , ('VAL' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.3064 } , ('VAL' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3064 } , ('VAL' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('VAL' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1438 } , ('VAL' , 'HB' ) : { 'type' : 'HC' , 'charge' : 0.0308 } , ('VAL' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('VAL' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8173 } , ('VAL' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8173 } , ('TRP' , '1HD' ) : { 'type' : 'H4' , 'charge' : 0.2043 } , ('TRP' , '1HE' ) : { 'type' : 'H' , 'charge' : 0.3413 } , ('TRP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0497 } , ('TRP' , '2HH' ) : { 'type' : 'HA' , 'charge' : 0.1401 } , ('TRP' , '2HZ' ) : { 'type' : 'HA' , 'charge' : 0.1567 } , ('TRP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0497 } , ('TRP' , '3HE' ) : { 'type' : 'HA' , 'charge' : 0.1491 } , ('TRP' , '3HZ' ) : { 'type' : 'HA' , 'charge' : 0.1507 } , ('TRP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7658 } , ('TRP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2084 } , ('TRP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0742 } , ('TRP' , 'CD1' ) : { 'type' : 'CW' , 'charge' : -0.1808 } , ('TRP' , 'CD2' ) : { 'type' : 'CB' , 'charge' : 0.1078 } , ('TRP' , 'CE2' ) : { 'type' : 'CN' , 'charge' : 0.1222 } , ('TRP' , 'CE3' ) : { 'type' : 'CA' , 'charge' : -0.1837 } , ('TRP' , 'CG' ) : { 'type' : 'C*' , 'charge' : -0.0796 } , ('TRP' , 'CH2' ) : { 'type' : 'CA' , 'charge' : -0.1020 } , ('TRP' , 'CZ2' ) : { 'type' : 'CA' , 'charge' : -0.2594 } , ('TRP' , 'CZ3' ) : { 'type' : 'CA' , 'charge' : -0.2287 } , ('TRP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('TRP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1272 } , ('TRP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('TRP' , 'NE1' ) : { 'type' : 'NA' , 'charge' : -0.3316 } , ('TRP' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8011 } , ('TRP' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8011 } , ('TYR' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1780 } , ('TYR' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1673 } , ('TYR' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0490 } , ('TYR' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1780 } , ('TYR' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1673 } , ('TYR' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0490 } , ('TYR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7817 } , ('TYR' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2015 } , ('TYR' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0752 } , ('TYR' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1922 } , ('TYR' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1922 } , ('TYR' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.2458 } , ('TYR' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.2458 } , ('TYR' , 'CG' ) : { 'type' : 'CA' , 'charge' : 0.0243 } , ('TYR' , 'CZ' ) : { 'type' : 'C' , 'charge' : 0.3395 } , ('TYR' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('TYR' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1092 } , ('TYR' , 'HH' ) : { 'type' : 'HO' , 'charge' : 0.4017 } , ('TYR' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('TYR' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8070 } , ('TYR' , 'OH' ) : { 'type' : 'OH' , 'charge' : -0.5643 } , ('TYR' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8070 } , }
alphabet = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' ] def is_number(s): """ Check if the number is a float """ try: float(s) return True except ValueError: return False except TypeError: return False def convert_cusip_to_isin(cusip): """ Convert cusip to isin """ print(cusip) cusip = 'US' + str(cusip).upper() only_digits_cusip = "" for i in cusip: # print(i) if is_number(i): only_digits_cusip = str(only_digits_cusip) + str(i) else: only_digits_cusip = str(only_digits_cusip) + str(10 + alphabet.index(i)) odd = [] even = [] for i, char in enumerate(only_digits_cusip): if i % 2 == 0: odd.append(char) else: even.append(char) new_length_list = [] length_list = [] string_int = "" if len(odd) > len(even): length_list = odd for i in even: string_int += str(i) else: length_list = even for i in odd: string_int += str(i) for i in length_list: new_length_list.append(int(i) * 2) for i in new_length_list: string_int += str(i) dig_sum = 0 for i in string_int: dig_sum += int(i) check_sum = (10 - (dig_sum % 10)) % 10 isin = str(cusip) + str(check_sum) return isin # print(convert_cusip_to_isin('037833100'))
class Data(): pass class PersonalInfo(Data): def __init__(self): self.ID = "" self.age = "" self.gender = "U" # "M" for male, "F" for female or "U" as unknown self.language = "" # "French", "Chinese" def setParams(self, ID, age, gender, language): self.ID = ID self.age = age self.gender = gender self.language = language class Annotation(Data): def __init__(self): self.ID = "" self.genre = "" # "Arousal", "Happiness", "Confidence" self.dimension = [] # [-1, 1] if having different length frames each having 1 value self.path = "" self.headers = [] # exp: ["GoldStandard"] or ["Arousal", "Valence"] self.annotator_info = PersonalInfo() def setParams(self, ID, genre, dimension, path, headers): self.ID = ID self.genre = genre self.dimension = dimension self.path = path self.headers = headers class Features(Data): def __init__(self): self.ID = "" self.genre = "" # "eGeMAPS" self.dimension = [] # [-1, 39] if different length frames each having 39 values self.path = "" def setParams(self, ID, genre, dimension, path): self.ID = ID self.genre = genre self.dimension = dimension self.path = path class AudioSample(Data): def __init__(self): self.ID = "" self.path = "" self.partition = "" # "train", "dev", "test" self.transcriptions = {} # {'ID':''}, where ID can be "Ziyi", "ASR", ... self.speaker_info = PersonalInfo() self.features = {} # [1, Features()] self.annotations = {} # [Annotation()] def setParams(self, ID, path, partition): self.ID = ID self.path = path self.partition = partition def classToDic(dic): if isinstance(dic, dict): for key in dic.keys(): if isinstance(dic[key], Data): dic[key] = classToDic(dic[key]) if isinstance(dic[key], list): for i, item in enumerate(dic[key]): dic[key][i] = classToDic(item) elif isinstance(dic, Data): return classToDic(dic.__dict__) return dic def localizePaths(dic, mainPath): # Change this path to that path if isinstance(dic, dict): for key in dic.keys(): if key == "path": dic[key] = dic[key].replace(mainPath, ".") dic[key] = dic[key].replace("./", "") if dic[key][0] == ".": dic[key] = dic[key][1:] else: localizePaths(dic[key], mainPath) return dic def changePaths(dic, This, That): # Change this path to that path if isinstance(dic, dict): for key in dic.keys(): if key == "path": dic[key] = dic[key].replace(This, That) else: changePaths(dic[key], This, That) return dic
horario = input('que horas sao de 0-23') if horario.isdigit(): horario = int(horario) if horario < 0 or horario > 23: print('horario de ser de 0 a 23') else: if horario <= 11: print('bom dia') elif horario <= 17: print('boa tarde') else: print('boa noite') else: print('digite um horariocom numeros')
# Load our airplanes airplanes = spark.read.json("data/airplanes.json") airplanes.show() airplanes.write.format("org.elasticsearch.spark.sql")\ .option("es.resource","agile_data_science/airplane")\ .mode("overwrite")\ .save() # Format data for Elasticsearch, as a tuple with a dummy key in the first field # airplanes_dict = airplanes.rdd.map(lambda x: ('ignored_key', x.asDict())) # # airplanes_dict.saveAsNewAPIHadoopFile( # path='-', # outputFormatClass="org.elasticsearch.hadoop.mr.EsOutputFormat", # keyClass="org.apache.hadoop.io.NullWritable", # valueClass="org.elasticsearch.hadoop.mr.LinkedMapWritable", # conf={ "es.resource" : "agile_data_science/airplanes" })
#Ver4.0, finally I did it! print("Grego -> Mingo Year Translator") grego = int(input("What's that year in Grego? ")) mingo = grego - 1911 if mingo >= 0: print ("So that year in Mingo year is:", mingo) else: print ("Sorry, in that year ROC was not exist.")
n = int (input ('DIGITE UM NUMERO PARA O CALCULO DO SEU FATORIAL: ')) c = n f = 1 while c > 0: print ('{} x '.format (c), end = '') f = f * c c = c - 1 print ('O FATORIAL DE {} É IGUAL A {}'.format (n, f))
""" MAX31855 Copyright 2015 - Alexander Hiam <alex@graycat.io> A library for PyBBIO to interface with Maxim's MAX31855 thermocouple amplifier. MAX31855 is released as part of PyBBIO under its MIT license. See PyBBIO/LICENSE.txt """ class MAX31855(object): SPI_CLOCK_MODE = 1 SPI_FREQUENCY = 4000000 SPI_N_BITS = 32 OPEN_CIRCUIT = 1 SHORT_TO_GND = 2 SHORT_TO_VCC = 4 def __init__(self, spi_bus, spi_cs=0, offset=0): self.spi_bus = spi_bus self.spi_cs = spi_cs self.offset = offset self.error = None def readTempF(self): """ Reads temperature, converts to Fahrenheit and returns, or returns None if error detected. """ temp = self.readTempC() return temp if not temp else temp * 9.0/5.0 + 32 def readTempC(self): """ Reads and returns the temperature in Celsius, or returns None if error detected. """ value = self.read() if value == None: return None # Extract 14-bit signed temperature value: temp = (value >> 18) & 0x3fff # Convert 2's complement: if temp >= 2**13: temp -= 2**14 return temp*0.25 + self.offset def readTempInternal(self): """ Reads and returns the MAX31855 reference junction temperature in Celsius, or returns None if error detected. """ value = self.read() if value == None: return None temp = (value >> 4) & 0xfff # Convert 2's complement: if temp >= 2**11: temp -= 2**12 return temp*0.0625 def read(self): """ Receives and returns full 32-bit map from MAX31855, or sets self.error and returns None if fault detected. """ self.error = None # Configure SPI bus as required by the MAX31855: self.spi_bus.setClockMode(self.spi_cs, self.SPI_CLOCK_MODE) self.spi_bus.setMaxFrequency(self.spi_cs, self.SPI_FREQUENCY) self.spi_bus.setBitsPerWord(self.spi_cs, self.SPI_N_BITS) self.spi_bus.setMSBFirst(self.spi_cs) self.spi_bus.setCSActiveLow(self.spi_cs) value = self.spi_bus.read(self.spi_cs, 1)[0] if (value & (1<<16)): # Fault bit set, save error code and return None: self.error = value & 0b111 return None return value
with open("words.txt", "r") as f: words = f.readlines()[0].split() words_found = {x: 0 for x in words} with open("input.txt", 'r') as f: for num, line in enumerate(f, start=1): for word in words: if word in line: words_found[word] += 1 with open("output.txt", "w") as f: for word, count in sorted(words_found.items(), key=lambda x: -x[1]): f.write(f"{word} - {count}\n")
_DEFAULT_BROWSER = "firefox" _COMMON_TAGS = [ "browser-test", "no-sandbox", "requires-network", ] _BROWSERS = { "chrome": { "deps": ["//java/client/src/org/openqa/selenium/chrome"], "jvm_flags": ["-Dselenium.browser=chrome"], "tags": _COMMON_TAGS + ["chrome"], }, "edge": { "deps": ["//java/client/src/org/openqa/selenium/edge"], "jvm_flags": ["-Dselenium.browser=edge"], "tags": _COMMON_TAGS + ["edge"], }, "edgehtml": { "deps": ["//java/client/src/org/openqa/selenium/edgehtml"], "jvm_flags": ["-Dselenium.browser=edgehtml"] + select({ "//common:windows": ["-Dselenium.skiptest=false"], "//conditions:default": ["-Dselenium.skiptest=true"], }), "tags": _COMMON_TAGS + ["exclusive", "edgehtml"], }, "firefox": { "deps": ["//java/client/src/org/openqa/selenium/firefox"], "jvm_flags": ["-Dselenium.browser=ff"], "tags": _COMMON_TAGS + ["firefox"], }, "ie": { "deps": ["//java/client/src/org/openqa/selenium/ie"], "jvm_flags": ["-Dselenium.browser=ie"] + select({ "//common:windows": ["-Dselenium.skiptest=false"], "//conditions:default": ["-Dselenium.skiptest=true"], }), "tags": _COMMON_TAGS + ["exclusive", "ie"], }, "safari": { "deps": ["//java/client/src/org/openqa/selenium/safari"], "jvm_flags": ["-Dselenium.browser=safari"] + select({ "//common:macos": ["-Dselenium.skiptest=false"], "//conditions:default": ["-Dselenium.skiptest=true"], }), "tags": _COMMON_TAGS + ["exclusive", "safari"], }, } def selenium_test(name, test_class, size = "medium", browsers = None, **kwargs): if browsers == None: browsers = _BROWSERS.keys() if len(browsers) == 0: fail("At least one browser must be specified.") default_browser = _DEFAULT_BROWSER if _DEFAULT_BROWSER in browsers else browsers[0] tests = [] test_name = test_class.rpartition(".")[2] jvm_flags = kwargs["jvm_flags"] if "jvm_flags" in kwargs else [] tags = kwargs["tags"] if "tags" in kwargs else [] stripped_args = dict(**kwargs) stripped_args.pop("jvm_flags", None) stripped_args.pop("tags", None) for browser in browsers: if not browser in _BROWSERS: fail("Unrecognized browser: " + browser) test = test_name if browser == default_browser else "%s-%s" % (test_name, browser) native.java_test( name = test, test_class = test_class, size = size, jvm_flags = _BROWSERS[browser]["jvm_flags"] + jvm_flags, tags = _BROWSERS[browser]["tags"] + tags, **stripped_args ) tests.append(test) if not "no-remote" in tags: data = kwargs["data"] if "data" in kwargs else [] stripped_args.pop("data", None) native.java_test( name = "%s-remote" % test, test_class = test_class, size = size, jvm_flags = _BROWSERS[browser]["jvm_flags"] + jvm_flags + [ "-Dselenium.browser.remote=true", "-Dselenium.browser.remote.path=$(location //java/server/src/org/openqa/selenium/grid:selenium_server_deploy.jar)", ], tags = _BROWSERS[browser]["tags"] + tags + ["remote"], data = data + [ "//java/server/src/org/openqa/selenium/grid:selenium_server_deploy.jar", ], **stripped_args ) tests.append("%s-remote" % test) native.test_suite(name = "%s-all" % test_name, tests = tests, tags = ["manual"])
class TagCloud: def __init__(self): self.tags = {} def add(self, tag): self.tags[tag.lower()] = self.tags.get(tag.lower(), 0) + 1 def __getitem__(self, tag): return self.tags.get(tag.lower(), 0) def __setitem__(self, tag, count): self.tags[tag.lower()] = count def __len__(self): return len(self.tags) def __iter__(self): return iter(self.tags) # essa função retorna um obj iterable, 1 item por vez em for loop cloud = TagCloud() cloud["python"] = 10 len(cloud) cloud.add("Python") cloud.add("pyTHon") cloud.add("PYTHON") print(cloud.tags)
#!/usr/bin/env python3 # encoding: utf-8 # like itertools.zip_longest, but with no fillvalue # written for https://github.com/erikrose/more-itertools/pull/240#issuecomment-441513474 def zip(*iterables): iterators = list(map(iter, iterables)) while True: to_yield = _build_zipped_tuple(iterators) if not to_yield: return yield to_yield def _build_zipped_tuple(iterables): vals = [] for iterable in iterables: try: vals.append(next(iterable)) except StopIteration: break return tuple(vals) if __name__ == '__main__': for xs in zip((1, 2, 3), (1, 2), (1,)): print(xs)
# # PySNMP MIB module Nortel-Magellan-Passport-BgpMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-BgpMIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:17:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint") vrIp, vrIpIndex = mibBuilder.importSymbols("Nortel-Magellan-Passport-IpMIB", "vrIp", "vrIpIndex") Counter32, DisplayString, StorageType, Gauge32, Unsigned32, Integer32, RowStatus = mibBuilder.importSymbols("Nortel-Magellan-Passport-StandardTextualConventionsMIB", "Counter32", "DisplayString", "StorageType", "Gauge32", "Unsigned32", "Integer32", "RowStatus") HexString, NonReplicated, Hex, AsciiString, IntegerSequence = mibBuilder.importSymbols("Nortel-Magellan-Passport-TextualConventionsMIB", "HexString", "NonReplicated", "Hex", "AsciiString", "IntegerSequence") passportMIBs, = mibBuilder.importSymbols("Nortel-Magellan-Passport-UsefulDefinitionsMIB", "passportMIBs") vrIndex, = mibBuilder.importSymbols("Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, MibIdentifier, iso, TimeTicks, ObjectIdentity, ModuleIdentity, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Unsigned32, Bits, Counter64, NotificationType, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibIdentifier", "iso", "TimeTicks", "ObjectIdentity", "ModuleIdentity", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Unsigned32", "Bits", "Counter64", "NotificationType", "IpAddress") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") bgpMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141)) vrIpBgp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21)) vrIpBgpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1), ) if mibBuilder.loadTexts: vrIpBgpRowStatusTable.setStatus('mandatory') vrIpBgpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpRowStatusEntry.setStatus('mandatory') vrIpBgpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRowStatus.setStatus('mandatory') vrIpBgpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpComponentName.setStatus('mandatory') vrIpBgpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpStorageType.setStatus('mandatory') vrIpBgpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: vrIpBgpIndex.setStatus('mandatory') vrIpBgpProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100), ) if mibBuilder.loadTexts: vrIpBgpProvTable.setStatus('mandatory') vrIpBgpProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpProvEntry.setStatus('mandatory') vrIpBgpBgpIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpBgpIdentifier.setStatus('mandatory') vrIpBgpLocalAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpLocalAs.setStatus('mandatory') vrIpBgpDefaultLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(144)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpDefaultLocalPreference.setStatus('mandatory') vrIpBgpDefaultMultiExitDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(4294967294)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpDefaultMultiExitDisc.setStatus('mandatory') vrIpBgpRouteThrottleLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)).clone(250)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRouteThrottleLimit.setStatus('mandatory') vrIpBgpRouteThrottleInter = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 30)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRouteThrottleInter.setStatus('mandatory') vrIpBgpRouteReflector = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRouteReflector.setStatus('mandatory') vrIpBgpRouteReflectorCluster = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 8), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRouteReflectorCluster.setStatus('mandatory') vrIpBgpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101), ) if mibBuilder.loadTexts: vrIpBgpOperTable.setStatus('mandatory') vrIpBgpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpOperEntry.setStatus('mandatory') vrIpBgpTableVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpTableVersion.setStatus('mandatory') vrIpBgpInMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpInMsgs.setStatus('mandatory') vrIpBgpInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpInErrors.setStatus('mandatory') vrIpBgpInErrorMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpInErrorMsgs.setStatus('mandatory') vrIpBgpOutMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutMsgs.setStatus('mandatory') vrIpBgpOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutDiscards.setStatus('mandatory') vrIpBgpOutErrorMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutErrorMsgs.setStatus('mandatory') vrIpBgpIndbSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbSize.setStatus('mandatory') vrIpBgpStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102), ) if mibBuilder.loadTexts: vrIpBgpStateTable.setStatus('mandatory') vrIpBgpStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpStateEntry.setStatus('mandatory') vrIpBgpAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAdminState.setStatus('mandatory') vrIpBgpOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOperationalState.setStatus('mandatory') vrIpBgpUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpUsageState.setStatus('mandatory') vrIpBgpAdminControlTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103), ) if mibBuilder.loadTexts: vrIpBgpAdminControlTable.setStatus('mandatory') vrIpBgpAdminControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpAdminControlEntry.setStatus('mandatory') vrIpBgpSnmpAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3))).clone('up')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpSnmpAdminStatus.setStatus('mandatory') vrIpBgpOperStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106), ) if mibBuilder.loadTexts: vrIpBgpOperStatusTable.setStatus('mandatory') vrIpBgpOperStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpOperStatusEntry.setStatus('mandatory') vrIpBgpSnmpOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3))).clone('up')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpSnmpOperStatus.setStatus('mandatory') vrIpBgpPeer = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2)) vrIpBgpPeerRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1), ) if mibBuilder.loadTexts: vrIpBgpPeerRowStatusTable.setStatus('mandatory') vrIpBgpPeerRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpPeerPeerAddressIndex")) if mibBuilder.loadTexts: vrIpBgpPeerRowStatusEntry.setStatus('mandatory') vrIpBgpPeerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerRowStatus.setStatus('mandatory') vrIpBgpPeerComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerComponentName.setStatus('mandatory') vrIpBgpPeerStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerStorageType.setStatus('mandatory') vrIpBgpPeerPeerAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpPeerPeerAddressIndex.setStatus('mandatory') vrIpBgpPeerProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10), ) if mibBuilder.loadTexts: vrIpBgpPeerProvTable.setStatus('mandatory') vrIpBgpPeerProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpPeerPeerAddressIndex")) if mibBuilder.loadTexts: vrIpBgpPeerProvEntry.setStatus('mandatory') vrIpBgpPeerPeerAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerPeerAs.setStatus('mandatory') vrIpBgpPeerLocalAddressConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 2), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerLocalAddressConfigured.setStatus('mandatory') vrIpBgpPeerKeepAliveConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 21845)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerKeepAliveConfigured.setStatus('mandatory') vrIpBgpPeerHoldTimeConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 65535), )).clone(90)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerHoldTimeConfigured.setStatus('mandatory') vrIpBgpPeerConnectRetryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(120)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerConnectRetryTime.setStatus('mandatory') vrIpBgpPeerMinAsOrigTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerMinAsOrigTime.setStatus('mandatory') vrIpBgpPeerMinRouteAdvTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerMinRouteAdvTime.setStatus('mandatory') vrIpBgpPeerDefaultInAggMed = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(4294967295)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerDefaultInAggMed.setStatus('mandatory') vrIpBgpPeerIsRouteReflectorClient = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerIsRouteReflectorClient.setStatus('mandatory') vrIpBgpPeerStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11), ) if mibBuilder.loadTexts: vrIpBgpPeerStateTable.setStatus('mandatory') vrIpBgpPeerStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpPeerPeerAddressIndex")) if mibBuilder.loadTexts: vrIpBgpPeerStateEntry.setStatus('mandatory') vrIpBgpPeerAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerAdminState.setStatus('mandatory') vrIpBgpPeerOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOperationalState.setStatus('mandatory') vrIpBgpPeerUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerUsageState.setStatus('mandatory') vrIpBgpPeerOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12), ) if mibBuilder.loadTexts: vrIpBgpPeerOperTable.setStatus('mandatory') vrIpBgpPeerOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpPeerPeerAddressIndex")) if mibBuilder.loadTexts: vrIpBgpPeerOperEntry.setStatus('mandatory') vrIpBgpPeerConnectionState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("idle", 1), ("connect", 2), ("active", 3), ("openSent", 4), ("openConfirm", 5), ("established", 6))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerConnectionState.setStatus('mandatory') vrIpBgpPeerBgpIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerBgpIdentifier.setStatus('mandatory') vrIpBgpPeerVersionNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerVersionNegotiated.setStatus('mandatory') vrIpBgpPeerHoldTimeNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 6), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 65535), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerHoldTimeNegotiated.setStatus('mandatory') vrIpBgpPeerKeepAliveNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 21845))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerKeepAliveNegotiated.setStatus('mandatory') vrIpBgpPeerLocalAddressUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 8), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerLocalAddressUsed.setStatus('mandatory') vrIpBgpPeerLocalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerLocalPort.setStatus('mandatory') vrIpBgpPeerRemotePort = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerRemotePort.setStatus('mandatory') vrIpBgpPeerLastError = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 11), HexString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerLastError.setStatus('mandatory') vrIpBgpPeerConnectionEstablishedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 12), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerConnectionEstablishedTime.setStatus('mandatory') vrIpBgpPeerConnectionEstablishedTransitions = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerConnectionEstablishedTransitions.setStatus('mandatory') vrIpBgpPeerInUpdateElapsedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 14), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInUpdateElapsedTime.setStatus('mandatory') vrIpBgpPeerInMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInMsgs.setStatus('mandatory') vrIpBgpPeerInUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInUpdates.setStatus('mandatory') vrIpBgpPeerInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInErrors.setStatus('mandatory') vrIpBgpPeerInErrorMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInErrorMsgs.setStatus('mandatory') vrIpBgpPeerOutMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOutMsgs.setStatus('mandatory') vrIpBgpPeerOutUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOutUpdates.setStatus('mandatory') vrIpBgpPeerOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOutDiscards.setStatus('mandatory') vrIpBgpPeerOutErrorMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOutErrorMsgs.setStatus('mandatory') vrIpBgpPeerInRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInRoutes.setStatus('mandatory') vrIpBgpImport = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3)) vrIpBgpImportRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1), ) if mibBuilder.loadTexts: vrIpBgpImportRowStatusTable.setStatus('mandatory') vrIpBgpImportRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportIndex")) if mibBuilder.loadTexts: vrIpBgpImportRowStatusEntry.setStatus('mandatory') vrIpBgpImportRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportRowStatus.setStatus('mandatory') vrIpBgpImportComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpImportComponentName.setStatus('mandatory') vrIpBgpImportStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpImportStorageType.setStatus('mandatory') vrIpBgpImportIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpImportIndex.setStatus('mandatory') vrIpBgpImportProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10), ) if mibBuilder.loadTexts: vrIpBgpImportProvTable.setStatus('mandatory') vrIpBgpImportProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportIndex")) if mibBuilder.loadTexts: vrIpBgpImportProvEntry.setStatus('mandatory') vrIpBgpImportPeerAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportPeerAs.setStatus('mandatory') vrIpBgpImportPeerIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 2), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportPeerIpAddress.setStatus('mandatory') vrIpBgpImportOriginAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportOriginAs.setStatus('mandatory') vrIpBgpImportOriginProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("any", 0), ("igp", 1), ("egp", 2), ("incomplete", 3))).clone('any')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportOriginProtocol.setStatus('mandatory') vrIpBgpImportUsageFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("use", 1), ("ignore", 2), ("exclude", 3))).clone('use')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportUsageFlag.setStatus('mandatory') vrIpBgpImportLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportLocalPreference.setStatus('mandatory') vrIpBgpImportPreferredOver = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(6, 70))).clone(namedValues=NamedValues(("overIntOspf", 6), ("underIntOspf", 70))).clone('underIntOspf')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportPreferredOver.setStatus('mandatory') vrIpBgpImportAsPathExpression = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 8), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportAsPathExpression.setStatus('mandatory') vrIpBgpImportCommunityExpression = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 9), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportCommunityExpression.setStatus('mandatory') vrIpBgpImportExpressPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportExpressPreference.setStatus('mandatory') vrIpBgpImportAppendCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportAppendCommunity.setStatus('mandatory') vrIpBgpImportNet = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2)) vrIpBgpImportNetRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1), ) if mibBuilder.loadTexts: vrIpBgpImportNetRowStatusTable.setStatus('mandatory') vrIpBgpImportNetRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportNetIndex")) if mibBuilder.loadTexts: vrIpBgpImportNetRowStatusEntry.setStatus('mandatory') vrIpBgpImportNetRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportNetRowStatus.setStatus('mandatory') vrIpBgpImportNetComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpImportNetComponentName.setStatus('mandatory') vrIpBgpImportNetStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpImportNetStorageType.setStatus('mandatory') vrIpBgpImportNetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpImportNetIndex.setStatus('mandatory') vrIpBgpImportNetProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10), ) if mibBuilder.loadTexts: vrIpBgpImportNetProvTable.setStatus('mandatory') vrIpBgpImportNetProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportNetIndex")) if mibBuilder.loadTexts: vrIpBgpImportNetProvEntry.setStatus('mandatory') vrIpBgpImportNetPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportNetPrefix.setStatus('mandatory') vrIpBgpImportNetLength = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportNetLength.setStatus('mandatory') vrIpBgpExport = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4)) vrIpBgpExportRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1), ) if mibBuilder.loadTexts: vrIpBgpExportRowStatusTable.setStatus('mandatory') vrIpBgpExportRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportIndex")) if mibBuilder.loadTexts: vrIpBgpExportRowStatusEntry.setStatus('mandatory') vrIpBgpExportRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportRowStatus.setStatus('mandatory') vrIpBgpExportComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpExportComponentName.setStatus('mandatory') vrIpBgpExportStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpExportStorageType.setStatus('mandatory') vrIpBgpExportIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpExportIndex.setStatus('mandatory') vrIpBgpExportProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10), ) if mibBuilder.loadTexts: vrIpBgpExportProvTable.setStatus('mandatory') vrIpBgpExportProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportIndex")) if mibBuilder.loadTexts: vrIpBgpExportProvEntry.setStatus('mandatory') vrIpBgpExportPeerAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportPeerAs.setStatus('mandatory') vrIpBgpExportPeerIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 2), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportPeerIpAddress.setStatus('mandatory') vrIpBgpExportProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("all", 1), ("egp", 2), ("rip", 3), ("ospfInternal", 4), ("ospfExternal", 5), ("staticLocal", 6), ("staticRemote", 7), ("bgpInternal", 8), ("bgpExternal", 9))).clone('all')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportProtocol.setStatus('mandatory') vrIpBgpExportEgpAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportEgpAsId.setStatus('mandatory') vrIpBgpExportBgpAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportBgpAsId.setStatus('mandatory') vrIpBgpExportOspfTag = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 6), Hex().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(4294967295)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportOspfTag.setStatus('mandatory') vrIpBgpExportRipInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 7), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportRipInterface.setStatus('mandatory') vrIpBgpExportRipNeighbor = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 8), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportRipNeighbor.setStatus('mandatory') vrIpBgpExportAdvertiseStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("send", 1), ("block", 2))).clone('send')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportAdvertiseStatus.setStatus('mandatory') vrIpBgpExportMultiExitDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportMultiExitDisc.setStatus('mandatory') vrIpBgpExportSendMultiExitDiscToEbgp = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("false", 1), ("true", 2))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportSendMultiExitDiscToEbgp.setStatus('mandatory') vrIpBgpExportAsPathExpression = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 12), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportAsPathExpression.setStatus('mandatory') vrIpBgpExportCommunityExpression = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 13), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportCommunityExpression.setStatus('mandatory') vrIpBgpExportExpressPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 14), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportExpressPreference.setStatus('mandatory') vrIpBgpExportSendCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportSendCommunity.setStatus('mandatory') vrIpBgpExportInsertDummyAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 200), IntegerSequence()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportInsertDummyAs.setStatus('mandatory') vrIpBgpExportNet = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2)) vrIpBgpExportNetRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1), ) if mibBuilder.loadTexts: vrIpBgpExportNetRowStatusTable.setStatus('mandatory') vrIpBgpExportNetRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportNetIndex")) if mibBuilder.loadTexts: vrIpBgpExportNetRowStatusEntry.setStatus('mandatory') vrIpBgpExportNetRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportNetRowStatus.setStatus('mandatory') vrIpBgpExportNetComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpExportNetComponentName.setStatus('mandatory') vrIpBgpExportNetStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpExportNetStorageType.setStatus('mandatory') vrIpBgpExportNetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpExportNetIndex.setStatus('mandatory') vrIpBgpExportNetProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10), ) if mibBuilder.loadTexts: vrIpBgpExportNetProvTable.setStatus('mandatory') vrIpBgpExportNetProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportNetIndex")) if mibBuilder.loadTexts: vrIpBgpExportNetProvEntry.setStatus('mandatory') vrIpBgpExportNetPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportNetPrefix.setStatus('mandatory') vrIpBgpExportNetLength = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportNetLength.setStatus('mandatory') vrIpBgpAs = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5)) vrIpBgpAsRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1), ) if mibBuilder.loadTexts: vrIpBgpAsRowStatusTable.setStatus('mandatory') vrIpBgpAsRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAsIndex")) if mibBuilder.loadTexts: vrIpBgpAsRowStatusEntry.setStatus('mandatory') vrIpBgpAsRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAsRowStatus.setStatus('mandatory') vrIpBgpAsComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAsComponentName.setStatus('mandatory') vrIpBgpAsStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAsStorageType.setStatus('mandatory') vrIpBgpAsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpAsIndex.setStatus('mandatory') vrIpBgpAsProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10), ) if mibBuilder.loadTexts: vrIpBgpAsProvTable.setStatus('mandatory') vrIpBgpAsProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAsIndex")) if mibBuilder.loadTexts: vrIpBgpAsProvEntry.setStatus('mandatory') vrIpBgpAsWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAsWeight.setStatus('mandatory') vrIpBgpAggregate = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6)) vrIpBgpAggregateRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1), ) if mibBuilder.loadTexts: vrIpBgpAggregateRowStatusTable.setStatus('mandatory') vrIpBgpAggregateRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregatePrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateLengthIndex")) if mibBuilder.loadTexts: vrIpBgpAggregateRowStatusEntry.setStatus('mandatory') vrIpBgpAggregateRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateRowStatus.setStatus('mandatory') vrIpBgpAggregateComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAggregateComponentName.setStatus('mandatory') vrIpBgpAggregateStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAggregateStorageType.setStatus('mandatory') vrIpBgpAggregatePrefixIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpAggregatePrefixIndex.setStatus('mandatory') vrIpBgpAggregateLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpAggregateLengthIndex.setStatus('mandatory') vrIpBgpAggregateNet = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2)) vrIpBgpAggregateNetRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1), ) if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatusTable.setStatus('mandatory') vrIpBgpAggregateNetRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregatePrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateNetIndex")) if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatusEntry.setStatus('mandatory') vrIpBgpAggregateNetRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatus.setStatus('mandatory') vrIpBgpAggregateNetComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAggregateNetComponentName.setStatus('mandatory') vrIpBgpAggregateNetStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAggregateNetStorageType.setStatus('mandatory') vrIpBgpAggregateNetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpAggregateNetIndex.setStatus('mandatory') vrIpBgpAggregateNetProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10), ) if mibBuilder.loadTexts: vrIpBgpAggregateNetProvTable.setStatus('mandatory') vrIpBgpAggregateNetProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregatePrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateNetIndex")) if mibBuilder.loadTexts: vrIpBgpAggregateNetProvEntry.setStatus('mandatory') vrIpBgpAggregateNetPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 1), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetPrefix.setStatus('mandatory') vrIpBgpAggregateNetLength = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetLength.setStatus('mandatory') vrIpBgpAggregateNetProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("all", 1), ("egp", 2), ("rip", 3), ("ospfInternal", 4), ("ospfExternal", 5), ("staticLocal", 6), ("staticRemote", 7), ("bgpInternal", 8), ("bgpExternal", 9))).clone('all')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetProtocol.setStatus('mandatory') vrIpBgpAggregateNetEgpAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetEgpAsId.setStatus('mandatory') vrIpBgpAggregateNetBgpAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetBgpAsId.setStatus('mandatory') vrIpBgpAggregateNetOspfTag = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 6), Hex().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(4294967295)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetOspfTag.setStatus('mandatory') vrIpBgpAggregateNetRipInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 7), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetRipInterface.setStatus('mandatory') vrIpBgpAggregateNetAction = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("aggregate", 1), ("advertise", 2))).clone('aggregate')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetAction.setStatus('mandatory') vrIpBgpIndb = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7)) vrIpBgpIndbRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1), ) if mibBuilder.loadTexts: vrIpBgpIndbRowStatusTable.setStatus('mandatory') vrIpBgpIndbRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpIndbRowStatusEntry.setStatus('mandatory') vrIpBgpIndbRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbRowStatus.setStatus('mandatory') vrIpBgpIndbComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbComponentName.setStatus('mandatory') vrIpBgpIndbStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbStorageType.setStatus('mandatory') vrIpBgpIndbPrefixIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpIndbPrefixIndex.setStatus('mandatory') vrIpBgpIndbLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpIndbLengthIndex.setStatus('mandatory') vrIpBgpIndbPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 12), IpAddress()) if mibBuilder.loadTexts: vrIpBgpIndbPeerIndex.setStatus('mandatory') vrIpBgpIndbOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10), ) if mibBuilder.loadTexts: vrIpBgpIndbOperTable.setStatus('mandatory') vrIpBgpIndbOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpIndbOperEntry.setStatus('mandatory') vrIpBgpIndbOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("igp", 1), ("egp", 2), ("incomplete", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbOrigin.setStatus('mandatory') vrIpBgpIndbInLocaldb = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("false", 1), ("true", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbInLocaldb.setStatus('mandatory') vrIpBgpIndbNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 6), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbNextHop.setStatus('mandatory') vrIpBgpIndbLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbLocalPreference.setStatus('mandatory') vrIpBgpIndbCalcLocalPref = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbCalcLocalPref.setStatus('mandatory') vrIpBgpIndbMultiExitDiscriminator = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbMultiExitDiscriminator.setStatus('mandatory') vrIpBgpIndbAtomicAggregate = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lessSpecificRouteNotSelected", 1), ("lessSpecificRouteSelected", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAtomicAggregate.setStatus('mandatory') vrIpBgpIndbAggregatorAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAggregatorAs.setStatus('mandatory') vrIpBgpIndbAggregatorAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 12), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAggregatorAddr.setStatus('mandatory') vrIpBgpIndbAsPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 13), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(2, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAsPath.setStatus('mandatory') vrIpBgpIndbUnknownAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 14), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbUnknownAttributes.setStatus('mandatory') vrIpBgpIndbCommunityPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 15), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbCommunityPath.setStatus('mandatory') vrIpBgpIndbAsOriginatorId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 16), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAsOriginatorId.setStatus('mandatory') vrIpBgpIndbRrClusterListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798), ) if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListTable.setStatus('mandatory') vrIpBgpIndbRrClusterListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPeerIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbRrClusterListValue")) if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListEntry.setStatus('mandatory') vrIpBgpIndbRrClusterListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListValue.setStatus('mandatory') vrIpBgpLocaldb = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8)) vrIpBgpLocaldbRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1), ) if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatusTable.setStatus('mandatory') vrIpBgpLocaldbRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatusEntry.setStatus('mandatory') vrIpBgpLocaldbRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatus.setStatus('mandatory') vrIpBgpLocaldbComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbComponentName.setStatus('mandatory') vrIpBgpLocaldbStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbStorageType.setStatus('mandatory') vrIpBgpLocaldbPrefixIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpLocaldbPrefixIndex.setStatus('mandatory') vrIpBgpLocaldbLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpLocaldbLengthIndex.setStatus('mandatory') vrIpBgpLocaldbPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 12), IpAddress()) if mibBuilder.loadTexts: vrIpBgpLocaldbPeerIndex.setStatus('mandatory') vrIpBgpLocaldbOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10), ) if mibBuilder.loadTexts: vrIpBgpLocaldbOperTable.setStatus('mandatory') vrIpBgpLocaldbOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpLocaldbOperEntry.setStatus('mandatory') vrIpBgpLocaldbOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("igp", 1), ("egp", 2), ("incomplete", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbOrigin.setStatus('mandatory') vrIpBgpLocaldbNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbNextHop.setStatus('mandatory') vrIpBgpLocaldbLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbLocalPreference.setStatus('mandatory') vrIpBgpLocaldbMultiExitDiscriminator = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbMultiExitDiscriminator.setStatus('mandatory') vrIpBgpLocaldbAtomicAggregate = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lessSpecificRouteNotSelected", 1), ("lessSpecificRouteSelected", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAtomicAggregate.setStatus('mandatory') vrIpBgpLocaldbAggregatorAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAggregatorAs.setStatus('mandatory') vrIpBgpLocaldbAggregatorAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 10), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAggregatorAddr.setStatus('mandatory') vrIpBgpLocaldbAsPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 11), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(2, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAsPath.setStatus('mandatory') vrIpBgpLocaldbUnknownAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 12), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbUnknownAttributes.setStatus('mandatory') vrIpBgpLocaldbCommunityPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 13), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbCommunityPath.setStatus('mandatory') vrIpBgpLocaldbAsOriginatorId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 14), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAsOriginatorId.setStatus('mandatory') vrIpBgpLocaldbRrClusterListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797), ) if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListTable.setStatus('mandatory') vrIpBgpLocaldbRrClusterListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPeerIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbRrClusterListValue")) if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListEntry.setStatus('mandatory') vrIpBgpLocaldbRrClusterListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListValue.setStatus('mandatory') vrIpBgpOutdb = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9)) vrIpBgpOutdbRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1), ) if mibBuilder.loadTexts: vrIpBgpOutdbRowStatusTable.setStatus('mandatory') vrIpBgpOutdbRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpOutdbRowStatusEntry.setStatus('mandatory') vrIpBgpOutdbRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbRowStatus.setStatus('mandatory') vrIpBgpOutdbComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbComponentName.setStatus('mandatory') vrIpBgpOutdbStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbStorageType.setStatus('mandatory') vrIpBgpOutdbPrefixIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpOutdbPrefixIndex.setStatus('mandatory') vrIpBgpOutdbLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpOutdbLengthIndex.setStatus('mandatory') vrIpBgpOutdbPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 12), IpAddress()) if mibBuilder.loadTexts: vrIpBgpOutdbPeerIndex.setStatus('mandatory') vrIpBgpOutdbOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10), ) if mibBuilder.loadTexts: vrIpBgpOutdbOperTable.setStatus('mandatory') vrIpBgpOutdbOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpOutdbOperEntry.setStatus('mandatory') vrIpBgpOutdbOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("igp", 1), ("egp", 2), ("incomplete", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbOrigin.setStatus('mandatory') vrIpBgpOutdbNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbNextHop.setStatus('mandatory') vrIpBgpOutdbLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbLocalPreference.setStatus('mandatory') vrIpBgpOutdbMultiExitDiscriminator = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbMultiExitDiscriminator.setStatus('mandatory') vrIpBgpOutdbAtomicAggregate = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lessSpecificRouteNotSelected", 1), ("lessSpecificRouteSelected", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAtomicAggregate.setStatus('mandatory') vrIpBgpOutdbAggregatorAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAggregatorAs.setStatus('mandatory') vrIpBgpOutdbAggregatorAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 10), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAggregatorAddr.setStatus('mandatory') vrIpBgpOutdbAsPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 11), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(2, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAsPath.setStatus('mandatory') vrIpBgpOutdbUnknownAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 12), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbUnknownAttributes.setStatus('mandatory') vrIpBgpOutdbCommunityPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 13), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbCommunityPath.setStatus('mandatory') vrIpBgpOutdbAsOriginatorId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 14), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAsOriginatorId.setStatus('mandatory') vrIpBgpOutdbRrClusterListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799), ) if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListTable.setStatus('mandatory') vrIpBgpOutdbRrClusterListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPeerIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbRrClusterListValue")) if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListEntry.setStatus('mandatory') vrIpBgpOutdbRrClusterListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListValue.setStatus('mandatory') bgpGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1)) bgpGroupBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5)) bgpGroupBE01 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5, 2)) bgpGroupBE01A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5, 2, 2)) bgpCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3)) bgpCapabilitiesBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5)) bgpCapabilitiesBE01 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5, 2)) bgpCapabilitiesBE01A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5, 2, 2)) mibBuilder.exportSymbols("Nortel-Magellan-Passport-BgpMIB", vrIpBgpAggregateNetRowStatusTable=vrIpBgpAggregateNetRowStatusTable, vrIpBgpPeerBgpIdentifier=vrIpBgpPeerBgpIdentifier, vrIpBgpProvTable=vrIpBgpProvTable, vrIpBgpPeerRowStatus=vrIpBgpPeerRowStatus, vrIpBgpOutErrorMsgs=vrIpBgpOutErrorMsgs, vrIpBgpExportNetIndex=vrIpBgpExportNetIndex, vrIpBgpOutdbRrClusterListTable=vrIpBgpOutdbRrClusterListTable, bgpCapabilitiesBE01A=bgpCapabilitiesBE01A, vrIpBgpPeerAdminState=vrIpBgpPeerAdminState, vrIpBgpAggregateNetOspfTag=vrIpBgpAggregateNetOspfTag, vrIpBgpIndbOperTable=vrIpBgpIndbOperTable, vrIpBgpAggregateNetStorageType=vrIpBgpAggregateNetStorageType, vrIpBgpAggregateNetLength=vrIpBgpAggregateNetLength, vrIpBgpPeerKeepAliveNegotiated=vrIpBgpPeerKeepAliveNegotiated, vrIpBgpImportUsageFlag=vrIpBgpImportUsageFlag, vrIpBgpImportLocalPreference=vrIpBgpImportLocalPreference, vrIpBgpExportAdvertiseStatus=vrIpBgpExportAdvertiseStatus, vrIpBgpIndbPeerIndex=vrIpBgpIndbPeerIndex, vrIpBgpOutdbRowStatusEntry=vrIpBgpOutdbRowStatusEntry, vrIpBgpImportOriginProtocol=vrIpBgpImportOriginProtocol, vrIpBgpImportNetStorageType=vrIpBgpImportNetStorageType, vrIpBgpLocaldbComponentName=vrIpBgpLocaldbComponentName, vrIpBgpLocaldbOperTable=vrIpBgpLocaldbOperTable, vrIpBgpImport=vrIpBgpImport, vrIpBgpExportRowStatusTable=vrIpBgpExportRowStatusTable, vrIpBgpOutdbNextHop=vrIpBgpOutdbNextHop, vrIpBgpPeerPeerAddressIndex=vrIpBgpPeerPeerAddressIndex, vrIpBgpIndbCommunityPath=vrIpBgpIndbCommunityPath, vrIpBgpPeerLocalAddressUsed=vrIpBgpPeerLocalAddressUsed, vrIpBgpStateTable=vrIpBgpStateTable, vrIpBgpPeerOperationalState=vrIpBgpPeerOperationalState, vrIpBgpAdminControlEntry=vrIpBgpAdminControlEntry, bgpGroupBE=bgpGroupBE, vrIpBgpSnmpAdminStatus=vrIpBgpSnmpAdminStatus, vrIpBgpOutdbRrClusterListValue=vrIpBgpOutdbRrClusterListValue, vrIpBgpAs=vrIpBgpAs, vrIpBgpImportNetRowStatusEntry=vrIpBgpImportNetRowStatusEntry, vrIpBgpLocaldbPrefixIndex=vrIpBgpLocaldbPrefixIndex, vrIpBgpLocaldbAggregatorAddr=vrIpBgpLocaldbAggregatorAddr, vrIpBgpOperStatusEntry=vrIpBgpOperStatusEntry, vrIpBgpRouteReflector=vrIpBgpRouteReflector, vrIpBgpExportNetRowStatusTable=vrIpBgpExportNetRowStatusTable, vrIpBgpLocaldbPeerIndex=vrIpBgpLocaldbPeerIndex, vrIpBgpRouteThrottleLimit=vrIpBgpRouteThrottleLimit, vrIpBgpExportOspfTag=vrIpBgpExportOspfTag, vrIpBgpAsWeight=vrIpBgpAsWeight, vrIpBgpPeerPeerAs=vrIpBgpPeerPeerAs, vrIpBgpOutdbRowStatusTable=vrIpBgpOutdbRowStatusTable, vrIpBgpAsStorageType=vrIpBgpAsStorageType, vrIpBgpExportNetStorageType=vrIpBgpExportNetStorageType, vrIpBgpAggregateNetProvEntry=vrIpBgpAggregateNetProvEntry, vrIpBgpIndbAggregatorAs=vrIpBgpIndbAggregatorAs, vrIpBgpAsRowStatus=vrIpBgpAsRowStatus, vrIpBgpIndbAtomicAggregate=vrIpBgpIndbAtomicAggregate, vrIpBgpPeerOutErrorMsgs=vrIpBgpPeerOutErrorMsgs, vrIpBgpAggregateRowStatusTable=vrIpBgpAggregateRowStatusTable, vrIpBgpLocaldbMultiExitDiscriminator=vrIpBgpLocaldbMultiExitDiscriminator, bgpGroupBE01=bgpGroupBE01, vrIpBgpPeerStateTable=vrIpBgpPeerStateTable, vrIpBgpPeerProvTable=vrIpBgpPeerProvTable, vrIpBgpImportPeerIpAddress=vrIpBgpImportPeerIpAddress, vrIpBgpIndbInLocaldb=vrIpBgpIndbInLocaldb, vrIpBgpProvEntry=vrIpBgpProvEntry, vrIpBgpLocaldbLocalPreference=vrIpBgpLocaldbLocalPreference, vrIpBgpImportComponentName=vrIpBgpImportComponentName, vrIpBgpRouteReflectorCluster=vrIpBgpRouteReflectorCluster, vrIpBgpLocaldbNextHop=vrIpBgpLocaldbNextHop, vrIpBgpOperEntry=vrIpBgpOperEntry, vrIpBgpLocaldbStorageType=vrIpBgpLocaldbStorageType, vrIpBgpLocaldbAsPath=vrIpBgpLocaldbAsPath, vrIpBgpOutDiscards=vrIpBgpOutDiscards, vrIpBgpImportAppendCommunity=vrIpBgpImportAppendCommunity, vrIpBgpIndbSize=vrIpBgpIndbSize, vrIpBgpIndbRrClusterListEntry=vrIpBgpIndbRrClusterListEntry, vrIpBgpIndbNextHop=vrIpBgpIndbNextHop, vrIpBgpImportNetRowStatus=vrIpBgpImportNetRowStatus, vrIpBgpExportExpressPreference=vrIpBgpExportExpressPreference, vrIpBgpAdminState=vrIpBgpAdminState, vrIpBgpOperationalState=vrIpBgpOperationalState, vrIpBgpExportProvEntry=vrIpBgpExportProvEntry, vrIpBgpPeerHoldTimeConfigured=vrIpBgpPeerHoldTimeConfigured, vrIpBgpOutdbStorageType=vrIpBgpOutdbStorageType, vrIpBgpPeerInRoutes=vrIpBgpPeerInRoutes, vrIpBgpPeerConnectionEstablishedTime=vrIpBgpPeerConnectionEstablishedTime, vrIpBgpImportExpressPreference=vrIpBgpImportExpressPreference, vrIpBgpInErrors=vrIpBgpInErrors, vrIpBgpLocaldbLengthIndex=vrIpBgpLocaldbLengthIndex, vrIpBgpAggregateNetProtocol=vrIpBgpAggregateNetProtocol, vrIpBgpIndbUnknownAttributes=vrIpBgpIndbUnknownAttributes, vrIpBgpOutdbRrClusterListEntry=vrIpBgpOutdbRrClusterListEntry, vrIpBgpAggregateComponentName=vrIpBgpAggregateComponentName, vrIpBgpAsIndex=vrIpBgpAsIndex, vrIpBgpExportRowStatusEntry=vrIpBgpExportRowStatusEntry, vrIpBgpAggregateNetIndex=vrIpBgpAggregateNetIndex, vrIpBgpAsRowStatusTable=vrIpBgpAsRowStatusTable, vrIpBgpOutdb=vrIpBgpOutdb, vrIpBgpExportSendMultiExitDiscToEbgp=vrIpBgpExportSendMultiExitDiscToEbgp, vrIpBgpPeerOutMsgs=vrIpBgpPeerOutMsgs, vrIpBgpLocaldbAsOriginatorId=vrIpBgpLocaldbAsOriginatorId, vrIpBgpDefaultMultiExitDisc=vrIpBgpDefaultMultiExitDisc, vrIpBgp=vrIpBgp, vrIpBgpOutdbLengthIndex=vrIpBgpOutdbLengthIndex, vrIpBgpImportStorageType=vrIpBgpImportStorageType, vrIpBgpAggregateNetAction=vrIpBgpAggregateNetAction, vrIpBgpLocaldbRowStatusTable=vrIpBgpLocaldbRowStatusTable, vrIpBgpExportNetRowStatusEntry=vrIpBgpExportNetRowStatusEntry, vrIpBgpPeerRowStatusTable=vrIpBgpPeerRowStatusTable, vrIpBgpLocaldbUnknownAttributes=vrIpBgpLocaldbUnknownAttributes, vrIpBgpLocaldb=vrIpBgpLocaldb, vrIpBgpOutdbAsOriginatorId=vrIpBgpOutdbAsOriginatorId, vrIpBgpAsProvEntry=vrIpBgpAsProvEntry, vrIpBgpExportRowStatus=vrIpBgpExportRowStatus, vrIpBgpOutdbAggregatorAs=vrIpBgpOutdbAggregatorAs, vrIpBgpLocaldbRowStatus=vrIpBgpLocaldbRowStatus, bgpMIB=bgpMIB, vrIpBgpIndbAggregatorAddr=vrIpBgpIndbAggregatorAddr, vrIpBgpLocaldbRrClusterListTable=vrIpBgpLocaldbRrClusterListTable, vrIpBgpImportOriginAs=vrIpBgpImportOriginAs, vrIpBgpExportNetProvEntry=vrIpBgpExportNetProvEntry, vrIpBgpExportStorageType=vrIpBgpExportStorageType, vrIpBgpIndbOperEntry=vrIpBgpIndbOperEntry, vrIpBgpPeerDefaultInAggMed=vrIpBgpPeerDefaultInAggMed, vrIpBgpUsageState=vrIpBgpUsageState, vrIpBgpLocaldbRrClusterListEntry=vrIpBgpLocaldbRrClusterListEntry, vrIpBgpStorageType=vrIpBgpStorageType, vrIpBgpIndbRowStatusEntry=vrIpBgpIndbRowStatusEntry, vrIpBgpPeerMinAsOrigTime=vrIpBgpPeerMinAsOrigTime, vrIpBgpPeerVersionNegotiated=vrIpBgpPeerVersionNegotiated, vrIpBgpPeerOutUpdates=vrIpBgpPeerOutUpdates, vrIpBgpPeerOperEntry=vrIpBgpPeerOperEntry, vrIpBgpRowStatus=vrIpBgpRowStatus, vrIpBgpImportRowStatusTable=vrIpBgpImportRowStatusTable, vrIpBgpPeerUsageState=vrIpBgpPeerUsageState, vrIpBgpIndbComponentName=vrIpBgpIndbComponentName, vrIpBgpIndbAsPath=vrIpBgpIndbAsPath, vrIpBgpOutdbRowStatus=vrIpBgpOutdbRowStatus, vrIpBgpAggregateNetProvTable=vrIpBgpAggregateNetProvTable, bgpCapabilitiesBE01=bgpCapabilitiesBE01, vrIpBgpRouteThrottleInter=vrIpBgpRouteThrottleInter, vrIpBgpPeerIsRouteReflectorClient=vrIpBgpPeerIsRouteReflectorClient, vrIpBgpImportPeerAs=vrIpBgpImportPeerAs, vrIpBgpAggregate=vrIpBgpAggregate, vrIpBgpPeerStateEntry=vrIpBgpPeerStateEntry, vrIpBgpOutdbLocalPreference=vrIpBgpOutdbLocalPreference, vrIpBgpLocalAs=vrIpBgpLocalAs, vrIpBgpOutdbOperTable=vrIpBgpOutdbOperTable, vrIpBgpBgpIdentifier=vrIpBgpBgpIdentifier, vrIpBgpPeerRemotePort=vrIpBgpPeerRemotePort, vrIpBgpAggregateRowStatusEntry=vrIpBgpAggregateRowStatusEntry, vrIpBgpAggregateNetRowStatusEntry=vrIpBgpAggregateNetRowStatusEntry, vrIpBgpOutdbPeerIndex=vrIpBgpOutdbPeerIndex, vrIpBgpPeer=vrIpBgpPeer, vrIpBgpPeerOutDiscards=vrIpBgpPeerOutDiscards, vrIpBgpExportCommunityExpression=vrIpBgpExportCommunityExpression, vrIpBgpIndbRrClusterListValue=vrIpBgpIndbRrClusterListValue, vrIpBgpLocaldbAggregatorAs=vrIpBgpLocaldbAggregatorAs, vrIpBgpOutMsgs=vrIpBgpOutMsgs, vrIpBgpAggregateNetRowStatus=vrIpBgpAggregateNetRowStatus, vrIpBgpPeerInUpdates=vrIpBgpPeerInUpdates, vrIpBgpOperStatusTable=vrIpBgpOperStatusTable, vrIpBgpIndbCalcLocalPref=vrIpBgpIndbCalcLocalPref, vrIpBgpAsProvTable=vrIpBgpAsProvTable, vrIpBgpOutdbComponentName=vrIpBgpOutdbComponentName, vrIpBgpOutdbMultiExitDiscriminator=vrIpBgpOutdbMultiExitDiscriminator, vrIpBgpTableVersion=vrIpBgpTableVersion, vrIpBgpImportNetRowStatusTable=vrIpBgpImportNetRowStatusTable, vrIpBgpExportNet=vrIpBgpExportNet, bgpGroup=bgpGroup, vrIpBgpAggregateNetBgpAsId=vrIpBgpAggregateNetBgpAsId, vrIpBgpAsComponentName=vrIpBgpAsComponentName, vrIpBgpPeerComponentName=vrIpBgpPeerComponentName, vrIpBgpAggregatePrefixIndex=vrIpBgpAggregatePrefixIndex, vrIpBgpImportAsPathExpression=vrIpBgpImportAsPathExpression, vrIpBgpLocaldbOrigin=vrIpBgpLocaldbOrigin, vrIpBgpPeerInUpdateElapsedTime=vrIpBgpPeerInUpdateElapsedTime, vrIpBgpOutdbAsPath=vrIpBgpOutdbAsPath, vrIpBgpExportPeerAs=vrIpBgpExportPeerAs, vrIpBgpPeerInErrors=vrIpBgpPeerInErrors, vrIpBgpExportRipNeighbor=vrIpBgpExportRipNeighbor, vrIpBgpIndbRowStatusTable=vrIpBgpIndbRowStatusTable, vrIpBgpIndbOrigin=vrIpBgpIndbOrigin, vrIpBgpPeerLocalPort=vrIpBgpPeerLocalPort, vrIpBgpIndex=vrIpBgpIndex, vrIpBgpImportRowStatus=vrIpBgpImportRowStatus, vrIpBgpPeerOperTable=vrIpBgpPeerOperTable, vrIpBgpAggregateStorageType=vrIpBgpAggregateStorageType, vrIpBgpImportNet=vrIpBgpImportNet, vrIpBgpOutdbAtomicAggregate=vrIpBgpOutdbAtomicAggregate, vrIpBgpOutdbAggregatorAddr=vrIpBgpOutdbAggregatorAddr, vrIpBgpIndbStorageType=vrIpBgpIndbStorageType, vrIpBgpExportProvTable=vrIpBgpExportProvTable, vrIpBgpLocaldbRowStatusEntry=vrIpBgpLocaldbRowStatusEntry, vrIpBgpImportNetComponentName=vrIpBgpImportNetComponentName, vrIpBgpExportNetPrefix=vrIpBgpExportNetPrefix, vrIpBgpAdminControlTable=vrIpBgpAdminControlTable, vrIpBgpExport=vrIpBgpExport, vrIpBgpExportIndex=vrIpBgpExportIndex, vrIpBgpDefaultLocalPreference=vrIpBgpDefaultLocalPreference, vrIpBgpAggregateNetEgpAsId=vrIpBgpAggregateNetEgpAsId, vrIpBgpIndbLocalPreference=vrIpBgpIndbLocalPreference, vrIpBgpImportNetPrefix=vrIpBgpImportNetPrefix, vrIpBgpAggregateNetPrefix=vrIpBgpAggregateNetPrefix, vrIpBgpPeerStorageType=vrIpBgpPeerStorageType, vrIpBgpImportIndex=vrIpBgpImportIndex, vrIpBgpImportNetProvTable=vrIpBgpImportNetProvTable, vrIpBgpLocaldbOperEntry=vrIpBgpLocaldbOperEntry, vrIpBgpImportNetIndex=vrIpBgpImportNetIndex, vrIpBgpInMsgs=vrIpBgpInMsgs, vrIpBgpExportBgpAsId=vrIpBgpExportBgpAsId, vrIpBgpImportProvEntry=vrIpBgpImportProvEntry, vrIpBgpOutdbOperEntry=vrIpBgpOutdbOperEntry, vrIpBgpExportProtocol=vrIpBgpExportProtocol, vrIpBgpExportAsPathExpression=vrIpBgpExportAsPathExpression, vrIpBgpExportSendCommunity=vrIpBgpExportSendCommunity, vrIpBgpOutdbUnknownAttributes=vrIpBgpOutdbUnknownAttributes, vrIpBgpComponentName=vrIpBgpComponentName, vrIpBgpLocaldbCommunityPath=vrIpBgpLocaldbCommunityPath, bgpCapabilitiesBE=bgpCapabilitiesBE, vrIpBgpIndb=vrIpBgpIndb, vrIpBgpLocaldbRrClusterListValue=vrIpBgpLocaldbRrClusterListValue, vrIpBgpExportNetComponentName=vrIpBgpExportNetComponentName, vrIpBgpIndbMultiExitDiscriminator=vrIpBgpIndbMultiExitDiscriminator, vrIpBgpPeerHoldTimeNegotiated=vrIpBgpPeerHoldTimeNegotiated, vrIpBgpRowStatusTable=vrIpBgpRowStatusTable, vrIpBgpIndbAsOriginatorId=vrIpBgpIndbAsOriginatorId, vrIpBgpPeerConnectionState=vrIpBgpPeerConnectionState, vrIpBgpPeerProvEntry=vrIpBgpPeerProvEntry, vrIpBgpPeerLocalAddressConfigured=vrIpBgpPeerLocalAddressConfigured, vrIpBgpExportComponentName=vrIpBgpExportComponentName, vrIpBgpExportMultiExitDisc=vrIpBgpExportMultiExitDisc, vrIpBgpExportNetRowStatus=vrIpBgpExportNetRowStatus, vrIpBgpPeerInMsgs=vrIpBgpPeerInMsgs, vrIpBgpAggregateNetRipInterface=vrIpBgpAggregateNetRipInterface, vrIpBgpAggregateNet=vrIpBgpAggregateNet, vrIpBgpPeerLastError=vrIpBgpPeerLastError, vrIpBgpPeerInErrorMsgs=vrIpBgpPeerInErrorMsgs, vrIpBgpIndbLengthIndex=vrIpBgpIndbLengthIndex, vrIpBgpIndbRrClusterListTable=vrIpBgpIndbRrClusterListTable, vrIpBgpOutdbPrefixIndex=vrIpBgpOutdbPrefixIndex, vrIpBgpLocaldbAtomicAggregate=vrIpBgpLocaldbAtomicAggregate, vrIpBgpOutdbOrigin=vrIpBgpOutdbOrigin, vrIpBgpExportNetLength=vrIpBgpExportNetLength, vrIpBgpPeerKeepAliveConfigured=vrIpBgpPeerKeepAliveConfigured, vrIpBgpPeerConnectionEstablishedTransitions=vrIpBgpPeerConnectionEstablishedTransitions, vrIpBgpImportProvTable=vrIpBgpImportProvTable, vrIpBgpExportEgpAsId=vrIpBgpExportEgpAsId, vrIpBgpImportPreferredOver=vrIpBgpImportPreferredOver, vrIpBgpExportInsertDummyAs=vrIpBgpExportInsertDummyAs, vrIpBgpPeerConnectRetryTime=vrIpBgpPeerConnectRetryTime, vrIpBgpImportNetLength=vrIpBgpImportNetLength, vrIpBgpAggregateLengthIndex=vrIpBgpAggregateLengthIndex, vrIpBgpImportCommunityExpression=vrIpBgpImportCommunityExpression, vrIpBgpOutdbCommunityPath=vrIpBgpOutdbCommunityPath, vrIpBgpPeerMinRouteAdvTime=vrIpBgpPeerMinRouteAdvTime) mibBuilder.exportSymbols("Nortel-Magellan-Passport-BgpMIB", vrIpBgpAggregateRowStatus=vrIpBgpAggregateRowStatus, vrIpBgpIndbRowStatus=vrIpBgpIndbRowStatus, vrIpBgpImportRowStatusEntry=vrIpBgpImportRowStatusEntry, vrIpBgpRowStatusEntry=vrIpBgpRowStatusEntry, vrIpBgpImportNetProvEntry=vrIpBgpImportNetProvEntry, vrIpBgpStateEntry=vrIpBgpStateEntry, vrIpBgpOperTable=vrIpBgpOperTable, vrIpBgpInErrorMsgs=vrIpBgpInErrorMsgs, vrIpBgpExportPeerIpAddress=vrIpBgpExportPeerIpAddress, vrIpBgpPeerRowStatusEntry=vrIpBgpPeerRowStatusEntry, vrIpBgpExportNetProvTable=vrIpBgpExportNetProvTable, vrIpBgpAggregateNetComponentName=vrIpBgpAggregateNetComponentName, vrIpBgpIndbPrefixIndex=vrIpBgpIndbPrefixIndex, vrIpBgpSnmpOperStatus=vrIpBgpSnmpOperStatus, vrIpBgpExportRipInterface=vrIpBgpExportRipInterface, vrIpBgpAsRowStatusEntry=vrIpBgpAsRowStatusEntry, bgpCapabilities=bgpCapabilities, bgpGroupBE01A=bgpGroupBE01A)
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def reverseList(self, head): """ :type head: ListNode :rtype: ListNode """ dummy = ListNode(-1) while head: nodenext = head.next head.next = dummy.next dummy.next = head head = nodenext return dummy.next l1 = ListNode(1) l1.next = ListNode(2) l1.next.next = ListNode(3) l1.next.next.next = ListNode(4) p = Solution() print(p.reverseList(l1).val)
a = {1,2 , 3+4, 10*7} b = {7,14,21} print(a-b) # - will return the resulting set which has elements of the left-hand set with all elements from the right-hand set removed # difference function is used in newer version # a={1,2,7,70} # {1,2, 70} a = {1,2 , 3+4, 10*7} b = {7,14,21} print(a.difference(b)) # {1,2, 70}
''' Problem Description Given a positive integer A, return its corresponding column title as appear in an Excel sheet. Problem Constraints 1 <= A <= 1000000000 Input Format First and only argument is integer A. Output Format Return a string, the answer to the problem. Approach: base conversion''' class Solution: # @param A : integer # @return a strings def convertToTitle(self, A): # chr -> integer to character # ord -> character to integer # creating a list n[] that contains ASCII values of characters A - Z n=[chr(i) for i in range(ord("A"),ord("Z")+1)] # .insert(position, element) n.insert(0,0) # creating two empty lists a=[];p=[] # typical base conversion while A>26: k=A%26 A=A//26 if k==0: a.append(26) A-=1 else: a.append(k) a.append(int(A)) a.reverse() for i in a: p.append(n[i]) r="".join(p) return r
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'includes': [ 'audio_sender/audio_sender.gypi', 'congestion_control/congestion_control.gypi', 'video_sender/video_sender.gypi', ], 'targets': [ { 'target_name': 'cast_sender', 'type': 'static_library', 'include_dirs': [ '<(DEPTH)/', ], 'sources': [ 'cast_sender.h', 'cast_sender_impl.cc', 'cast_sender_impl.h', ], # source 'dependencies': [ '<(DEPTH)/media/cast/transport/cast_transport.gyp:cast_transport', 'audio_sender', 'congestion_control', 'rtcp/rtcp.gyp:cast_rtcp', 'video_sender', ], # dependencies }, ], }
""" This module implements a set of languages as collections of features that are language specific. feature collections +++++++++++++++++++ Languages implement a subset of feature collections (e.g. :class:`~revscoring.languages.features.Dictionary`, :class:`~revscoring.languages.features.Stopwords`, :class:`~revscoring.languages.features.Stemmed` and :class:`~revscoring.languages.features.RegexMatches`) based on what language assets are available. See :mod:`revscoring.languages.features`. dutch +++++ .. automodule:: revscoring.languages.arabic :members: dutch +++++ .. automodule:: revscoring.languages.dutch :members: english +++++++ .. automodule:: revscoring.languages.english :members: estonian ++++++++ .. automodule:: revscoring.languages.estonian :members: french ++++++ .. automodule:: revscoring.languages.french :members: german ++++++ .. automodule:: revscoring.languages.german :members: hebrew ++++++ .. automodule:: revscoring.languages.hebrew :members: indonesian ++++++++++ .. automodule:: revscoring.languages.indonesian :members: italian +++++++ .. automodule:: revscoring.languages.italian :members: japanese +++++++ .. automodule:: revscoring.languages.japanese :members: persian +++++++ .. automodule:: revscoring.languages.persian :members: portuguese ++++++++++ .. automodule:: revscoring.languages.portuguese :members: spanish +++++++ .. automodule:: revscoring.languages.spanish :members: turkish +++++++ .. automodule:: revscoring.languages.turkish :members: ukrainian +++++++++ .. automodule:: revscoring.languages.ukrainian :members: vietnamese ++++++++++ .. automodule:: revscoring.languages.vietnamese :members: """
class BollingerBands: def __init__(self): self.BBW = [] self.BB_indicator = False self.buy_indicator = False self.sell_indicator = False def feed(self, last_SMA, last_standard_deviation, last_close): upper_band = last_SMA + 2 * last_standard_deviation lower_band = last_SMA - 2 * last_standard_deviation self.BBW.append((upper_band - lower_band) / last_SMA) if len(self.BBW) >= 2: self.__update_bollinger_band_indicator(last_close, upper_band, lower_band) def __update_bollinger_band_indicator(self, last_close, upper_band, lower_band): self.BB_indicator = False self.buy_indicator = False self.sell_indicator = False if self.BBW[-2] < self.BBW[-1]: self.BB_indicator = True if last_close < lower_band: self.sell_indicator = True elif last_close > upper_band: self.buy_indicator = True
class Affine: def __init__(self, W, b): self.W = W self.b = b self.x = None self.dW = None self.db = None def forward(self, x): self.x = x out = np.dot(x, self.x) + self.b return out def backward(self, dout): dx = np.dot(dout, self.W.T) self.dW = np.dot(self.x.T, dout) self.db = np.sum(dout, axis = 0) return dx å
class Solution: def fourSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[List[int]] """ resultList = [] nums.sort() for a in range(len(nums)): b = a+1 if(a>0 and nums[a] == nums[a-1]): continue while(b<len(nums)-2): if(b>a+1 and nums[b] == nums[b-1]): b += 1 continue c = b+1 d = len(nums)-1 while(c<d): vsum = nums[a] + nums[b] + nums[c] + nums[d] if vsum == target: vres = [nums[a] , nums[b] , nums[c] , nums[d]] vres.sort() resultList.append(vres) c += 1 d -= 1 while(c+1<d and nums[c] == nums[c+1]): c += 1 while(c<d-1 and nums[d] == nums[d-1]): d -= 1 elif vsum > target: d -= 1 else: c += 1 b += 1 return resultList
class NineGates: name = "Nine Gates" points = 88 excluded = ("Full Flush", "Pung of Terminals or Honors") def __init__(self, handObj): self.hand = handObj def map_ranks(self, tiles): def get_ranks(tile): rank = int(tile.rank) return rank ranks = list(map(get_ranks, tiles)) ranks.sort() return ranks def examine_standard_hand(self): return self.hand.standardhand def examine_correct_sum(self): correct_sum = True if self.hand.tilecount == 14 else False return correct_sum def examine_single_suit(self): try: first_suit = self.hand.tilesets[0].suit single_suit = all(tileset.suit == first_suit for tileset in self.hand.tilesets) except AttributeError: single_suit = False return single_suit def examine_concealed(self): concealed_sets = [] allowed_sets = ["pung", "kong", "chow", "knitted"] for tileset in self.hand.tilesets: if tileset.type in allowed_sets: concealed_sets.append(tileset.concealed) concealed_hand = all(concealed_sets) if getattr(self.hand, "concealed", None) is not None and type(self.hand.concealed) is not list and self.hand.concealed == True: fully_concealed_hand = True else: fully_concealed_hand = False concealed = any([concealed_hand, fully_concealed_hand]) return concealed def examine_correct_pattern(self): correct_pattern = False allowed_pattern = (1,1,1,2,3,4,5,6,7,8,9,9,9) all_tiles = [] for tileset in self.hand.tilesets: for item in tileset.tiles: all_tiles.append(item) try: ranks = self.map_ranks(all_tiles) ranks.sort() #the hand can go out in one of 9 ways, look for that tile for n in range(1, 10): pattern_test = list(allowed_pattern) pattern_test.append(n) pattern_test.sort() if ranks == pattern_test: correct_pattern = True except AttributeError: pass return correct_pattern def evaluate(self): standard_hand = self.examine_standard_hand() correct_sum = self.examine_correct_sum() single_suit = self.examine_single_suit() concealed = self.examine_concealed() correct_pattern = self.examine_correct_pattern() nine_gates = all([standard_hand, correct_sum, single_suit, concealed, correct_pattern]) return nine_gates
# -*- coding: utf-8 -*- """@package Methods.Machine.SlotW24.comp_angle_opening SlotW24 Computation of average opening angle method @date Created on Mon Jul 06 11:40:07 2015 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b """ def comp_angle_opening(self): """Compute the average opening angle of the Slot Parameters ---------- self : SlotW24 A SlotW24 object Returns ------- alpha: float Average opening angle of the slot [rad] """ (alpha_0, alpha_2) = self.comp_alphas() return alpha_0
def height(root): l = 1 + height(root.left) if root.left else 0 r = 1 + height(root.right) if root.right else 0 return max(l, r)
#!/usr/bin/python # -*- coding: utf-8 -*- artistdict = {"Bohemian Rhapsody":"Queen", "Imagine":"John Lennon", "Angels":"Robbie Williams", "Hey Jude":"Beatles", "Smells Like Teen Spirit":"Nirvana", "Live Forever":"Oasis", "Wonderwall":"Oasis", "One":"U2", "Bitter Sweet Symphony":"Verve", "With Or Without You":"U2", "Penny Lane / Strawberry Fields Forever":"Beatles", "Good Vibrations":"Beach Boys", "Losing My Religion":"REM", "Like A Rolling Stone":"Bob Dylan", "God Only Knows":"Beach Boys", "Everybody Hurts":"REM", "Waterloo Sunset":"Kinks", "Don’t Look Back In Anger":"Oasis", "A Whiter Shade Of Pale":"Procol Harum", "Stairway To Heaven":"Led Zeppelin", "Yesterday":"Beatles", "A Day In The Life":"Beatles", "Hotel California":"Eagles", "Unfinished Sympathy":"Massive Attack", "Dancing Queen":"Abba", "Like A Prayer":"Madonna", "All Along The Watchtower":"Jimi Hendrix Experience", "Creep":"Radiohead", "Billie Jean":"Michael Jackson", "My Generation":"Who", "Wuthering Heights":"Kate Bush", "Paranoid Android":"Radiohead", "Teenage Kicks":"Undertones", "Love Will Tear Us Apart":"Joy Division", "Bridge Over Troubled Water":"Simon And Garfunkel", "Born To Run":"Bruce Springsteen", "No Woman No Cry":"Bob Marley & The Wailers", "Sweet Child O Mine":"Guns N Roses", "Suspicious Minds":"Elvis Presley", "Let It Be":"Beatles", "(I Can’t Get No) Satisfaction":"Rolling Stones", "Bat Out Of Hell":"Meat Loaf", "Common People":"Pulp", "Hero":"Mariah Carey", "I Heard It Through The Grapevine":"Marvin Gaye", "Layla":"Derek And The Dominoes", "American Pie":"Don Mclean", "Mr Brightside":"Killers", "It Must be Love":"Madness", "Paint It Black":"Rolling Stones", "Anarchy In The UK":"Sex Pistols", "Time Of Your Life (Good Riddance)":"Green Day", "Champagne Supernova":"Oasis", "A Town Called Malice / Precious":"Jam", "Wannabe":"Spice Girls", "Street Spirit (Fade Out)":"Radiohead", "All Right Now":"Free", "Fools Gold / What The World Is Waiting For":"Stone Roses", "Yellow":"Coldplay", "Mr. Blue Sky":"Electric Light Orchestra", "Nothing Compares 2 U":"Sinead O’Connor", "This Charming Man":"Smiths", "Careless Whisper":"George Michael", "London Calling":"Clash", "Song 2":"Blur", "That's Entertainment":"Jam", "Under The Bridge":"Red Hot Chili Peppers", "Karma Police":"Radiohead", "God Save The Queen":"Sex Pistols", "(Sittin' On) The Dock Of The Bay":"Ottis Redding", "Wish You Were Here":"Pink Floyd", "In My Life":"Beatles", "Every Breath You Take":"Police", "House Of The Rising Sun":"Animals", "I Am The Resurrection":"Stone Roses", "(Everything I Do) I Do It For You":"Bryan Adams", "Fake Plastic Trees":"Radiohead", "Comfortably Numb":"Pink Floyd", "Brown Eyed Girl":"Van Morrison", "Baker Street":"Gerry Rafferty", "She Loves You":"Beatles", "Romeo And Juliet":"Dire Straits", "Jumping Jack Flash":"Rolling Stones", "My Heart Will Go On":"Celine Dion", "I’ll Be Missing You":"Puff Daddy And Faith Evans", "How Soon Is Now?":"Smiths", "Help!":"Beatles", "Where The Streets Have No Name":"U2", "Space Oddity":"David Bowie", "Heroes":"David Bowie", "Life On Mars":"David Bowie", "There She Goes":"LAs", "Unchained Melody":"Righteous Brothers", "Going Underground / Dreams Of Children":"Jam", "Tracks Of My Tears":"Smokey Robinson & The Miracles", "Come On Eileen":"Dexy's Midnight Runners", "Nights In White Satin":"Moody Blues", "Blue Monday":"New Order", "My Sweet Lord":"George Harrison", "Stan":"Eminem", "Motorcycle Emptiness":"Manic Street Preachers", "The Winner Takes It All":"Abba", "Can't Get You Out Of My Head":"Kylie Minogue", "Fairytale of New York":"Pogues featuring Kirsty MacColl", "Take Your Mama":"Scissor Sisters", "Heartbreak Hotel":"Elvis Presley", "Don't Dream It's Over":"Crowded House", "I’m Not In Love":"10CC", "The Drugs Don’t Work":"Verve", "Lola":"Kinks", "Don’t You Want Me":"Human League", "Without You":"Nilsson", "Believe":"Cher", "Wichita Lineman":"Glen Campbell", "Babylon":"David Gray", "Summer Of ’69":"Bryan Adams", "Wild Wood":"Paul Weller", "Voodoo Chile":"Jimi Hendrix Experience"}
def validate_register_fields(req): data = req.get_json(silent=True) fields = ['first_name', 'last_name', 'email', 'password'] for d in data.keys(): if d not in fields: return False return True
""" # Example One my_list1 = [1, 2, 3, 4, 5, 6] my_list2 = my_list1 # How would you verify that my_list1 and my_list2 have the same identity? print(my_list1 is my_list2) # True my_list1.append(7) # Check if my_list1 and my_list2 still have the same identity. # If they do, why is that? print(my_list1) # [1, 2, 3, 4, 5, 6, 7] print(my_list2) # [1, 2, 3, 4, 5, 6, 7] print(my_list1 is my_list2) # True """ """ # Example Two my_text1 = "Lambda School" my_text2 = my_text1 # How would you verify that my_text1 and my_text2 have the same identity? print(my_text1 is my_text2) # True print(my_text1) # Lambda School print(my_text2) # Lambda School my_text1 += " is awesome!" # Check if my my_text1 and my_text2 still have the same identity? print(my_text1 is my_text2) # False print(my_text1) # Lambda School is awesome print(my_text2) # Lambda School # If they do noe, why is that? my_text2 += " is awesome!" # Now check if my_text1 and my_text2 have the same value? print(my_text1 is my_text2) # False # do they? Explain why and why not. """ """ # Example three """ # Initialize a list and assign to produce produce = ["Apple", "Banana", "Carrot"] # Initialize a tuple and include a reference to the produce list in the tuple store = ("Bill's Grocery", produce) print(id(store)) #140240549769984 # Add a new item to the produce list produce.append("Dragonfruit") produce = ['TOTALLY NEW LIST'] print(id(store)) #140240549769984 # Did you notice that the identity of store remmained the same? # But I thought if you changed a mutable object, a new object would be created in memory? # Why did that not occur here?
""" Premium Question """ __author__ = 'Daniel' class Solution(object): def __init__(self): """ encode rules """ self.skip = [[None for _ in xrange(10)] for _ in xrange(10)] self.skip[1][3], self.skip[3][1] = 2, 2 self.skip[1][7], self.skip[7][1] = 4, 4 self.skip[3][9], self.skip[9][3] = 6, 6 self.skip[7][9], self.skip[9][7] = 8, 8 self.skip[4][6], self.skip[6][4] = 5, 5 self.skip[2][8], self.skip[8][2] = 5, 5 self.skip[1][9], self.skip[9][1] = 5, 5 self.skip[3][7], self.skip[7][3] = 5, 5 def numberOfPatterns(self, m, n): """ NP dfs Maintain a skip matrix :type m: int :type n: int :rtype: int """ visited = [False for _ in xrange(10)] return sum( self.dfs(1, visited, remain) * 4 + self.dfs(2, visited, remain) * 4 + self.dfs(5, visited, remain) for remain in xrange(m, n+1) ) def dfs(self, cur, visited, remain): if remain == 1: return 1 visited[cur] = True ret = 0 for nxt in xrange(1, 10): if ( not visited[nxt] and ( self.skip[cur][nxt] is None or visited[self.skip[cur][nxt]] ) ): ret += self.dfs(nxt, visited, remain - 1) visited[cur] = False return ret if __name__ == "__main__": assert Solution().numberOfPatterns(1, 2) == 65 assert Solution().numberOfPatterns(1, 3) == 385
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/root/catkin_ws/src/navigation_msgs/map_msgs/msg/OccupancyGridUpdate.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/PointCloud2Update.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/ProjectedMapInfo.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/ProjectedMap.msg" services_str = "/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetMapROI.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetPointMapROI.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetPointMap.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/ProjectedMapsInfo.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/SaveMap.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/SetMapProjections.srv" pkg_name = "map_msgs" dependencies_str = "nav_msgs;sensor_msgs;std_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_str = "map_msgs;/root/catkin_ws/src/navigation_msgs/map_msgs/msg;nav_msgs;/opt/ros/kinetic/share/nav_msgs/cmake/../msg;sensor_msgs;/opt/ros/kinetic/share/sensor_msgs/cmake/../msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg;geometry_msgs;/opt/ros/kinetic/share/geometry_msgs/cmake/../msg;actionlib_msgs;/opt/ros/kinetic/share/actionlib_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/usr/bin/python2" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
df = pd.DataFrame(np.random.randn(10,3), columns=['Col1', 'Col2', 'Col3']) df['X'] = pd.Series(['A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B']) df['Y'] = pd.Series(['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B']) boxplot = df.boxplot(column=['Col1', 'Col2'], by=['X', 'Y'])
__version__ = '0.1' __all__ = ["hamilton", "objects", "hamutilities", "structure", "utilities", "gui", "masterjobs", "workbench.py", "workbench_gui.py", "setup.py", "update.py"]
{ "targets": [ { "target_name": "xprofiler", "win_delay_load_hook": "false", "sources": [ "src/environment_data.cc", "src/xprofiler.cc", "src/configure.cc", "src/logger.cc", "src/library/json.hpp", "src/library/error.cc", "src/library/common.cc", "src/library/utils.cc", "src/library/writer.cc", "src/logbypass/log.cc", "src/logbypass/cpu.cc", "src/logbypass/heap.cc", "src/logbypass/gc.cc", "src/logbypass/libuv.cc", "src/logbypass/http.cc", "src/commands/listener.cc", "src/commands/send.cc", "src/commands/parser.cc", "src/commands/dump.cc", "src/commands/simple/version.cc", "src/commands/simple/config.cc", "src/commands/cpuprofiler/cpu_profiler.cc", "src/commands/cpuprofiler/cpu_profile.cc", "src/commands/cpuprofiler/cpu_profile_node.cc", "src/commands/heapdump/heap_profiler.cc", "src/commands/heapdump/heap_snapshot.cc", "src/commands/heapprofiler/sampling_heap_profiler.cc", "src/commands/gcprofiler/gc_profiler.cc", "src/commands/report/node_report.cc", "src/commands/report/javascript_stack.cc", "src/commands/report/native_stack.cc", "src/commands/report/heap_statistics.cc", "src/commands/report/uv_statistics.cc", "src/commands/report/system_statistics.cc", "src/hooks/set_hooks.cc", "src/hooks/fatal_error.cc", "src/util.cc", ], "include_dirs": [ 'src', '<!(node -e "require(\'nan\')")' ], "cflags_cc!": ["-fno-exceptions"], "conditions": [ ["OS == 'linux'", { "cflags": ["-O2", "-std=c++14"], "defines": [ 'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.unix\")"', ], "sources": [ "src/platform/unix/cpu.cc", "src/platform/unix/utils.cc", "src/platform/unix/ipc.cc", "src/platform/unix/report.cc", ] }], ["OS == 'mac'", { "xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES", "OTHER_CFLAGS": [ "-std=c++14", "-Wconversion", "-Wno-sign-conversion", ] }, "defines": [ 'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.unix\")"', ], "sources": [ "src/platform/unix/cpu.cc", "src/platform/unix/utils.cc", "src/platform/unix/ipc.cc", "src/platform/unix/report.cc", ] }], ["OS == 'win'", { "libraries": ["dbghelp.lib", "Netapi32.lib", "PsApi.lib", "Ws2_32.lib"], "dll_files": ["dbghelp.dll", "Netapi32.dll", "PsApi.dll", "Ws2_32.dll"], "msvs_settings": { "VCCLCompilerTool": { "ExceptionHandling": "2", "Optimization": "2", }, }, "defines": [ 'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.win32\")"', "WIN32_LEAN_AND_MEAN=1", ], "sources": [ "src/platform/win/cpu_win.cc", "src/platform/win/utils_win.cc", "src/platform/win/ipc_win.cc", "src/platform/win/report_win.cc", ] }], ], "defines": [ 'XPROFILER_VERSION="<!(node -p \"require(\'./package.json\').version\")"', 'XPROFILER_BLURRY_TAG="<!(node -p \"require(\'./package.json\').blurryTag\")"', ], }, { "target_name": "action_after_build", "type": "none", "dependencies": ["<(module_name)"], "copies": [ { "files": ["<(PRODUCT_DIR)/<(module_name).node"], "destination": "<(module_path)" } ] }, ], }
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- MLC_WORKSPACE_API_VERSION = '2020-02-02' MLC_COMPUTE_RESOURCE_ID_FMT = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/' \ 'workspaces/{}/computes/{}' MLC_LIST_COMPUTES_FMT = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/' \ 'workspaces/{}/computes' RP_COMPUTE_RESOURCE_ID_FMT = '/rp/workspaces/subscriptions/{}/resourceGroups/{}/providers/' \ 'Microsoft.MachineLearningServices/workspaces/{}/computes/{}' RP_LIST_COMPUTES_FMT = '/rp/workspaces/subscriptions/{}/resourceGroups/{}/providers/' \ 'Microsoft.MachineLearningServices/workspaces/{}/computes' GRAPH_API_VERSION = '1.6'
if True: if True: if True: return _( "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweas " + "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwegqweasdzxcqweasdzxc.", "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwe", ) % {"reported_username": reported_username, "report_reason": report_reason} # output if True: if True: if True: return _( "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweas " + "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwegqweasdzxcqweasdzxc.", "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwe", ) % { "reported_username": reported_username, "report_reason": report_reason, }
""" Write a function that finds the longest palindromic substring of a given string. Try to be as efficient as possible! If you find more than one substring you should return the one which is closer to the beginning. Input: A text as a string. Output: The longest palindromic substring. Precondition: 1 < |text| ≤ 20 The text contains only ASCII characters. """ def longest_palindromic(text): for i in range(len(text)): for j in range(i+1): a = text[j:len(text)-(i-j)] if a == a[::-1]: return a if __name__ == '__main__': assert longest_palindromic("artrartrt") == "rtrartr", "The Longest" assert longest_palindromic("abacada") == "aba", "The First" assert longest_palindromic("aaaa") == "aaaa", "The A"
# The Twitter API keys needed to send tweets CONSUMER_KEY = "enter your consumer key here" CONSUMER_SECRET = "enter your secret consumer key here" ACCESS_TOKEN = "enter your access token here" ACCESS_TOKEN_SECRET = "enter your secret access token here"
""" Profile ../profile-datasets-py/standard54lev_allgas/006.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/standard54lev_allgas/006.py" self["Q"] = numpy.array([ 1.42610400e+00, 2.25740200e+00, 3.03034000e+00, 3.69967200e+00, 4.31610400e+00, 4.78132800e+00, 5.07478900e+00, 5.19176800e+00, 5.24924200e+00, 5.19879300e+00, 5.07691300e+00, 4.97253200e+00, 4.91453000e+00, 4.85289800e+00, 4.77784900e+00, 4.68692800e+00, 4.57725700e+00, 4.47492000e+00, 4.32859300e+00, 4.16293300e+00, 4.00311700e+00, 3.89910100e+00, 3.84313200e+00, 3.83660900e+00, 3.90954900e+00, 4.65101500e+00, 5.63378900e+00, 9.11755200e+00, 1.54746500e+01, 2.64265500e+01, 4.48840100e+01, 7.45942600e+01, 1.42818600e+02, 2.77400700e+02, 4.26100500e+02, 5.67428700e+02, 8.00060400e+02, 1.05809300e+03, 1.34364000e+03, 1.75293000e+03, 2.17224400e+03, 2.70441300e+03, 3.21086700e+03, 3.87373300e+03, 4.48421200e+03, 5.05073700e+03, 5.56837500e+03, 6.03632700e+03, 6.53543000e+03, 6.97678600e+03, 7.36122200e+03, 7.68945200e+03, 7.96208200e+03, 8.17961100e+03]) self["P"] = numpy.array([ 5.00000000e-03, 1.31000000e-02, 3.04000000e-02, 6.44000000e-02, 1.26300000e-01, 2.32400000e-01, 4.05200000e-01, 6.74900000e-01, 1.08010000e+00, 1.66910000e+00, 2.50110000e+00, 3.64620000e+00, 5.18640000e+00, 7.21500000e+00, 9.83680000e+00, 1.31672000e+01, 1.73308000e+01, 2.24601000e+01, 2.86937000e+01, 3.61735000e+01, 4.50430000e+01, 5.54433000e+01, 6.75109000e+01, 8.13744000e+01, 9.71505000e+01, 1.14941500e+02, 1.34831800e+02, 1.56884600e+02, 1.81139400e+02, 2.07609200e+02, 2.36278400e+02, 2.67101200e+02, 3.00000000e+02, 3.34864800e+02, 3.71552900e+02, 4.09889300e+02, 4.49667700e+02, 4.90651600e+02, 5.32576900e+02, 5.75153800e+02, 6.18070600e+02, 6.60996500e+02, 7.03586300e+02, 7.45484100e+02, 7.86327800e+02, 8.25754600e+02, 8.63404700e+02, 8.98927500e+02, 9.31985300e+02, 9.62258700e+02, 9.89451000e+02, 1.01329200e+03, 1.03354400e+03, 1.05000000e+03]) self["CO2"] = numpy.array([ 395.3999, 398.5343, 399.9988, 399.9985, 399.9983, 399.9981, 399.998 , 399.9979, 399.9979, 399.9979, 399.998 , 399.998 , 399.998 , 399.9981, 399.9981, 399.9981, 399.9982, 399.9982, 399.9983, 399.9983, 399.9984, 399.9984, 399.9985, 399.9985, 399.9984, 399.9981, 399.9977, 399.9964, 399.9938, 399.9894, 399.982 , 399.9702, 399.9429, 399.889 , 399.8296, 399.773 , 399.68 , 399.5768, 399.4625, 399.2988, 399.1311, 398.9182, 398.7157, 398.4505, 398.2063, 397.9797, 397.7726, 397.5855, 397.3858, 397.2093, 397.0555, 396.9242, 396.8152, 396.7282]) self["CO"] = numpy.array([ 3.006473 , 1.266976 , 0.5366185 , 0.2717527 , 0.1695409 , 0.1036351 , 0.06933339, 0.05139415, 0.03742709, 0.03095425, 0.02632858, 0.02303297, 0.02070408, 0.01909184, 0.01784013, 0.01681581, 0.01599694, 0.01531286, 0.01422425, 0.01286412, 0.01231995, 0.01334847, 0.01663313, 0.02209159, 0.0283446 , 0.03651177, 0.04682141, 0.05899244, 0.07185076, 0.08310109, 0.09221893, 0.1001262 , 0.107673 , 0.1145722 , 0.1202481 , 0.124501 , 0.1272514 , 0.1290889 , 0.1299612 , 0.1304954 , 0.1309834 , 0.1328406 , 0.1346017 , 0.1368069 , 0.1388378 , 0.1407628 , 0.1425322 , 0.1441306 , 0.1455581 , 0.1468203 , 0.1479198 , 0.1488585 , 0.1496383 , 0.1502604 ]) self["T"] = numpy.array([ 190.1948, 201.2227, 211.8073, 223.5081, 236.1925, 248.2361, 259.807 , 268.0701, 270.6029, 261.7915, 253.267 , 245.5053, 238.5085, 232.1688, 228.139 , 225.8658, 224.038 , 222.399 , 220.8289, 219.3256, 217.9126, 216.7 , 216.7 , 216.7 , 216.7 , 216.7 , 216.7 , 216.7 , 216.7 , 216.7432, 218.4824, 223.6361, 228.5799, 233.4172, 238.0864, 242.5655, 246.9064, 251.0443, 254.9895, 258.7664, 262.3204, 265.715 , 268.8759, 271.8706, 274.6321, 277.2104, 279.572 , 281.7077, 283.6703, 285.4074, 286.9218, 288.2157, 289.291 , 290.1495]) self["N2O"] = numpy.array([ 0.00058949, 0.00075468, 0.00096809, 0.00125112, 0.0016248 , 0.00214874, 0.00293271, 0.00428657, 0.0092427 , 0.01995902, 0.03780855, 0.0603733 , 0.08523385, 0.1076577 , 0.1283284 , 0.1459624 , 0.158538 , 0.170006 , 0.1847754 , 0.1990045 , 0.2149292 , 0.2367853 , 0.2566467 , 0.2723064 , 0.2838979 , 0.2921719 , 0.2981589 , 0.303073 , 0.3074429 , 0.3114339 , 0.3149953 , 0.3179603 , 0.3191744 , 0.3196972 , 0.3198636 , 0.3198184 , 0.319744 , 0.3196614 , 0.31957 , 0.3194391 , 0.3193049 , 0.3191346 , 0.3189725 , 0.3187604 , 0.3185651 , 0.3183838 , 0.3182181 , 0.3180684 , 0.3179087 , 0.3177674 , 0.3176444 , 0.3175394 , 0.3174521 , 0.3173825 ]) self["O3"] = numpy.array([ 0.4733033 , 0.2866183 , 0.2652103 , 0.4141047 , 0.7844496 , 1.162695 , 1.749622 , 2.75465 , 4.070742 , 5.58158 , 6.842906 , 7.649586 , 7.826192 , 7.545704 , 6.986519 , 6.36272 , 5.814365 , 5.346036 , 4.739365 , 4.025 , 3.221477 , 2.56929 , 1.908546 , 1.401016 , 0.9982378 , 0.7234799 , 0.5496462 , 0.4262601 , 0.3422891 , 0.2686645 , 0.1932536 , 0.1292094 , 0.09860009, 0.07334837, 0.05685836, 0.05025954, 0.04424968, 0.04010144, 0.0380049 , 0.0358197 , 0.03378367, 0.03340628, 0.03305161, 0.0326579 , 0.03229529, 0.03126486, 0.03014303, 0.02912988, 0.02830236, 0.02757059, 0.02693318, 0.02638897, 0.02593695, 0.02557628]) self["CH4"] = numpy.array([ 0.1649998, 0.1649996, 0.1649995, 0.1649994, 0.1649993, 0.1664772, 0.1803118, 0.2178496, 0.302864 , 0.4371518, 0.5733743, 0.6955555, 0.7936361, 0.8785965, 0.9563341, 1.025436 , 1.084469 , 1.135591 , 1.213933 , 1.334547 , 1.461955 , 1.567482 , 1.640358 , 1.68946 , 1.727294 , 1.757083 , 1.781284 , 1.802129 , 1.820006 , 1.834323 , 1.845264 , 1.853824 , 1.860494 , 1.864299 , 1.866543 , 1.867794 , 1.868116 , 1.868021 , 1.867487 , 1.866722 , 1.865938 , 1.864943 , 1.863996 , 1.862756 , 1.861615 , 1.860555 , 1.859587 , 1.858712 , 1.857779 , 1.856953 , 1.856235 , 1.855621 , 1.855111 , 1.854704 ]) self["CTP"] = 500.0 self["CFRACTION"] = 1.0 self["IDG"] = 4 self["ISH"] = 4 self["ELEVATION"] = 0.2 self["S2M"]["T"] = 288.2 self["S2M"]["Q"] = 7488.49927299 self["S2M"]["O"] = 0.0164756909121 self["S2M"]["P"] = 1100.0 self["S2M"]["U"] = -6.0 self["S2M"]["V"] = 0.0 self["S2M"]["WFETC"] = 200000.0 self["SKIN"]["SURFTYPE"] = 0 self["SKIN"]["WATERTYPE"] = 1 self["SKIN"]["T"] = 286.2 self["SKIN"]["SALINITY"] = 37.0 self["SKIN"]["FOAM_FRACTION"] = 0.9 self["SKIN"]["FASTEM"] = numpy.array([ 3. , 5. , 15. , 0.1, 0.3]) self["ZENANGLE"] = 60.0 self["AZANGLE"] = 45.0 self["SUNZENANGLE"] = 0.0 self["SUNAZANGLE"] = 0.0 self["LATITUDE"] = -45.0 self["GAS_UNITS"] = 2 self["BE"] = 0.7 self["COSBK"] = 1.0 self["DATE"] = numpy.array([1976, 7, 1]) self["TIME"] = numpy.array([ 9, 45, 0])
class Solution: def solveNQueens(self, n: int) -> List[List[str]]: ans = [] def string_representation(board): s = [] for col in board: s.append("." * (col) + "Q" + "." * (n - col - 1)) return s def solve(row, used_columns, used_diagonals, used_diagonals2, previous): if row == n: ans.append(string_representation(previous)) return for col in range(n): if col not in used_columns: diag = row - col diag2 = row + col if diag not in used_diagonals and diag2 not in used_diagonals2: used_columns.add(col) used_diagonals.add(diag) used_diagonals2.add(diag2) solve(row+1, used_columns, used_diagonals, used_diagonals2, previous + [col]) used_columns.remove(col) used_diagonals.remove(diag) used_diagonals2.remove(diag2) solve(0, set(), set(), set(), []) return ans
class Node: def __init__(self, data): self.data = data self.next = None class Circular_Linked_List: def __init__(self): self.head = None def Sorted_Insert(self, new_node): current = self.head if current is None: new_node.next = new_node self.head = new_node elif current.data >= new_node.data: while current.next != self.head: current = current.next current.next = new_node new_node.next = self.head self.head = new_node else: while current.next != self.head and current.next.data < new_node.data: current = current.next new_node.next = current.next current.next = new_node def Display(self): temp = self.head if self.head is not None: while temp: print(temp.data, "->", end=" ") temp = temp.next if temp == self.head: print(temp.data) break if __name__ == "__main__": L_list = Circular_Linked_List() Test_list = [12, 56, 2, 11, 1, 90] for keys in Test_list: temp = Node(keys) L_list.Sorted_Insert(temp) print("Sorted Inserted Circular Linked List: ") L_list.Display()
def p1(): lines = open('../stream/input03.txt').read().splitlines() period = 31 #in chars mat = [] for line in lines: mat_row = [1 if x == '#' else 0 for x in list(line)] mat.append(mat_row) count = 0 j_ = 0 for i in range(0, len(mat)): # print(mat[i]) j = j_ % period j_ += 3 if (mat[i][j] == 1): count += 1 return str(count) def p2(): lines = open('../stream/input03.txt').read().splitlines() period = 31 #in chars mat = [] for line in lines: mat_row = [1 if x == '#' else 0 for x in list(line)] mat.append(mat_row) ld = [ [1,1], [3,1], [5,1], [7,1], [1,2] ] lcount = [] for d in ld: dx = d[0] dy = d[1] j_ = 0 count = 0 for i in range(0, len(mat), dy): j = j_ % period j_ += dx if (mat[i][j] == 1): count += 1 lcount.append(count) ans = 1 for r in lcount: ans = r*ans return str(ans) if __name__ == '__main__': print('Part 1 : ', p1()) print('Part 2 : ', p2()) exit()
class Time: def __init__(self, hour=None, minute=None, second=None): self.hour = hour self.minute = minute self.second = second def sum(self, time): result = Time() result.second = self.second + time.second result.minute = self.minute + time.minute result.hour = self.hour + time.hour if result.second>=60: result.second-=60 result.minute+=1 if result.minute>=60: result.minute-=60 result.hour+=1 return result def sub(self, time): result = Time() result.second = self.second - time.second result.minute = self.minute - time.minute result.hour = self.hour - time.hour if result.second<0: result.minute-=1 result.second+=60 if result.minute<0: result.hour-=1 result.minute+=60 return result def secToTime(self): result = Time() result.hour = self.second//3600 result.minute = (self.second%3600)//60 result.second = (self.second%3600)%60 return result def timeToSec(self): return self.hour*3600 + self.minute*60 + self.second def show(self): return str(self.hour)+':'+str(self.minute)+':'+str(self.second) t1list = list(map(int, input('time1: e.g. 2:16:18\n').split(':'))) t2list = list(map(int, input('time2: e.g. 2:16:18\n').split(':'))) sec = Time(0 ,0 ,int(input('give me sec convert to time: '))) t1 = Time(t1list[0], t1list[1], t1list[2]) t2 = Time(t2list[0], t2list[1], t2list[2]) print('sum: %s\tsub: %s\ttimeToSec: %s\tsecToTime: %s'%((t1.sum(t2)).show(), t1.sub(t2).show(), t1.timeToSec(), (sec.secToTime()).show()))
# -*- coding: utf-8 -*- """ Contains a bunch of information about this package. """ __version__ = "0.1.5" __author__ = "Benjamin F. Maier" __copyright__ = "Copyright 2020-2021, " + __author__ __credits__ = [__author__] __license__ = "MIT" __maintainer__ = __author__ __email__ = "contact@benmaier.org" __status__ = "Development"
with open("./input.txt") as f: arr = [ line.strip() for line in f.readlines()] annoying = arr[0].replace("=", "|").replace(".", "|").replace(",", "|").replace(" ", "|").split("|") nums = [int(thing) for thing in annoying if thing.replace("-", "").isnumeric()] def contained(loc): return nums[0] <= loc[0] <= nums[1] and nums[2] <= loc[1] <= nums[3] def increment(paws, vel): paws[0] += vel[0] paws[1] += vel[1] if (vel[0] > 0): vel[0] -= 1 elif vel[0] < 0: vel[0] += 1 vel[1] -= 1 all_vels = set() max_max_y = 0 for x in range(0, nums[1] + 5): for y in range(nums[2] - 5, 100): paws = [0, 0] vel = [x, y] max_y = 0 while(paws[1] > nums[2]): increment(paws, vel) max_y = max(max_y, paws[1]) if contained(paws): max_max_y = max(max_y, max_max_y) if (x, y) not in all_vels: all_vels.add((x, y)) print(x, y, max_y) print(len(all_vels)) print(max_max_y)
ech_genshis = 2 ou_genshis = 2 suu_bunshis = 12 zenn_genshis = suu_bunshis*(ech_genshis + ou_genshis) print(zenn_genshis)
def string_anagrams(s1,s2): if(sorted(s1)==sorted(s2)): print("The strings are anagrams.") else: print("The strings aren't anagrams.") s1=input("Enter first string:") s2=input("Enter second string:") string_anagrams(s1,s2)
#:copyright: Copyright 2009-2010 by the Vesper team, see AUTHORS. #:license: Dual licenced under the GPL or Apache2 licences, see LICENSE. @Action def testaction(kw, retval): query = "{comment where(label='%s')}" % kw._name #XXX qnames are broken result = kw.__server__.defaultStore.query(query) template = '<html><body>%s</body></html>' if result: return template % result[0]['comment'] else: kw._status = 404 return template % 'not found!' actions = { 'http-request' : [testaction] } application_model = [{ 'id' : 'a_resource', 'label' : 'foo', 'comment' : 'page content.' }] createApp(actions=actions, application_model=application_model)
def artifactual_patterns(a: set, b: set): """ Measures the proportion of frequent itemsets minded from the sanitised database which did not occur in the original database. Given a transactional database D and an associated sanitised database D′ a is the set of frequent itemsets in D b is the set of frequent itemsets in D' """ return (len(b) - len(a.intersection(b))) / len(b)
#!/usr/bin/env python ''' Copyright (C) 2019, WAFW00F Developers. See the LICENSE file for copying permission. ''' NAME = 'Instart DX (Instart Logic)' def is_waf(self): schema1 = [ self.matchHeader(('X-Instart-Request-ID', '.+')), self.matchHeader(('X-Instart-Cache', '.+')), self.matchHeader(('X-Instart-WL', '.+')) ] schema2 = [ self.matchContent(r'the requested url was rejected'), self.matchContent(r'please consult with your administrator'), self.matchContent(r'your support id is') ] if any(i for i in schema1): return True if all(i for i in schema2): return True return False
class Codec: def __init__(self): self.counter = 0 self.dic = {} def encode(self, longUrl): """Encodes a URL to a shortened URL. :type longUrl: str :rtype: str """ self.dic[self.counter] = longUrl self.counter += 1 return self.counter-1 def decode(self, shortUrl): """Decodes a shortened URL to its original URL. :type shortUrl: str :rtype: str """ return self.dic[shortUrl] # Your Codec object will be instantiated and called as such: # codec = Codec() # codec.decode(codec.encode(url))
# day 6 question 2 # more customs declarations groups = [] group = {} with open('input.txt', 'r') as file: num = 0 for line in file: line = line.strip() if not line: group['num'] = num num = 0 groups.append(group) group = {} else: num += 1 for char in line: if char in group.keys(): group[char] += 1 else: group[char] = 1 def count_same(group): q_same = 0 for key in group.keys(): if key != 'num' and group[key] == group['num']: q_same += 1 return q_same print(sum([count_same(group) for group in groups]))
''' aula tratamento de erros ''' ''' n = int(input('Número: ')) print(f'Você digitou o Número {n}') # se digitar não-inteiro; typeError ''' try: a = int(input('Numerador: ')) b = int(input('Denominador: ')) r = a / b except Exception as erro: print(f'Problema Encontrado foi {erro.__class__}') except(ValueError, TypeError): print ('Tivemos Problema com o Tipo de Dados Digitados.') except KeyboardInterrupt: print('O Usuário preferiu Não Informar os Dados.') except ZeroDivisionError: print('Não é Possível Dividir por Zero.') except Exception as erro: print(f'O Erro Encontrado foi: {erro.__cause__}') else: print(f'O resultado é {r:.2f}') finally: print('Volte Sempre!') # se b = 0; zerodivisionError ''' lst = [3, 6, 4] print(lst[3]) # se iterador nao existe, IndexError (out of range) ''' ''' FORMA try: 'operação' except: 'falhou' o que acontece except: 'falhou' de novo else: então faça finally: faça finalmente '''
__version__ = '0.1.3' dataPaths = {'reference': 'src/db/human_GRCh38_no_alt_analysis_set_chr22only_cyp2d7-masked.fasta', 'database' : 'src/db/CYP2D6.db', 'spacer' : 'src/db/spacer.fasta'} database = {'alleleTable' : 'pbAA_consensus', 'variantTable': 'SampleVariants', 'variantAnnot': 'SampleVariants_annotated', 'summaryTable': 'type_summary', 'shortSummary': 'type_summary_short', 'supportField': 'supportReads', 'maxTries' : 10} tableMap = {database['alleleTable']: {'uuid' :'uuid', 'runName' :'runName', 'bioSample' :'bioSample', 'barcode' :'barcode', 'guide' :'guide', 'cluster' :'cluster', 'numreads' :'numreads', 'uchime_score' :'uchime_score', 'uchime_left_parent' :'uchime_left_parent', 'uchime_right_parent':'uchime_right_parent', 'cluster_freq' :'cluster_freq', 'diversity' :'diversity', 'avg_quality' :'avg_quality', 'filters' :'filters', 'source' :'source', 'clusterStatus' :'clusterStatus', 'chrom' :'chrom', 'alnStart' :'alnStart', 'alnStop' :'alnStop', 'hasSpacer' :'hasSpacer', 'csString' :'csString', 'length' :'length', 'status' :'clusterStatus', 'datetime' :'datetime'}, database['variantTable']: {'uuid' :'uuid', 'CHR' :'CHR', 'POS' :'POS', 'VAR' :'VAR', database['supportField'] :database['supportField']}} caller = {'namePattern' : 'sample-(?P<barcode>.*)_guide-(?P<guide>.*)_cluster-(?P<cluster>[0-9]+)_ReadCount-(?P<numreads>[0-9]+)', 'minFrac' : 0.01, 'minLength' : 2000, 'preset' : 'gapstrict', 'dateFormat' : '%Y-%m-%d %H:%M:%S', 'readInfo' : ['readName', 'guide', 'orient', 'secondBestGuide', 'Score', 'ScoreParts', 'Sample', 'length', 'avgQuality', 'ClusterId', 'ClusterSize'], 'sampleMapCols': ['Barcode','Bio Sample Name']} typer = {'sortColumns' : ['bioSample','barcode','type','cluster']} vcf = {'defaultQual' : 200, 'minFreq' : 0.05}
class MyClass: """a multi-line docstring""" class InnerClass: """ a multi-line docstring""" class MyClass: """a multi-line docstring """ class InnerClass: """a multi-line docstring """ class MyClass: """ a docstring""" class InnerClass: """ a docstring""" class MyClass: """A docstring""" class InnerClass: """A docstring"""
""" Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at any point in time. Example: Input: [ [1,3,1], [1,5,1], [4,2,1] ] Output: 7 Explanation: Because the path 1→3→1→1→1 minimizes the sum. """ class Solution: def minPathSum(self, grid: List[List[int]]) -> int: if not grid or not grid[0]: return 0 dp = [[0] * len(grid[0]) for _ in range(len(grid))] for i, row in enumerate(grid): for j, elem in enumerate(row): if i == 0 and j == 0: dp[i][j] = grid[i][j] elif i == 0: dp[i][j] = grid[i][j] + dp[i][j - 1] elif j == 0: dp[i][j] = grid[i][j] + dp[i - 1][j] else: dp[i][j] = grid[i][j] + min(dp[i][j - 1], dp[i - 1][j]) return dp[len(grid) - 1][len(grid[0]) - 1]
""" write your first program in python3 python3 helloworld.py """ print("HelloWorld in python!!")
class Solution: def maxSumRangeQuery(self, nums: List[int], requests: List[List[int]]) -> int: n = len(nums) count = [0] * (n + 1) for start, end in requests: count[start] += 1 count[end + 1] -= 1 for i in range(1, n + 1): count[i] += count[i - 1] total = 0 for c, num in zip(sorted(count[:-1]), sorted(nums)): total += c * num return total % (10 ** 9 + 7)
__all__ = [ 'DocParseMeta' ] class DocParseMeta(type): @staticmethod def __new__(meta, clsname, bases, clsdict): if '__doc__' in clsdict: lexer = meta.lexer() parser = meta.parser() lexer.cls_name = parser.cls_name = clsname lexer.cls_qualname = parser.cls_qualname = clsdict['__qualname__'] lexer.cls_module = parser.cls_module = clsdict['__module__'] parsedict = parser.parse(lexer.tokenize(clsdict['__doc__'])) assert isinstance(parsedict, dict), 'Parser must return a dictionary' clsdict.update(parsedict) return super().__new__(meta, clsname, bases, clsdict) @classmethod def __init_subclass__(cls): assert hasattr(cls, 'parser') and hasattr(cls, 'lexer')