content stringlengths 7 1.05M |
|---|
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 31 19:47:34 2020
@author: Administrator
"""
"""
一个数组里,除了三个数是唯一出现的,其余的数都出现偶数次,找出这三个数中的任意一个.比如数组序列为[1,2,4,5,6,4,2],
只有1,5,6这三个数字是唯一出现的,数字2与4均出现了偶数次(2次),只需要输出数字1,5,6中的任意一个就行.
"""
def FindOneDisNum(arr):
# find the distinct number in the array that only appears once.
ele_dict = dict()
for item in arr:
if item in ele_dict:
ele_dict[item] ^= 1
else:
ele_dict[item] = 1
for key , value in ele_dict.items():
if value == 1:
print(key , end = " ")
if __name__ == "__main__":
arr = [6,3,4,5,9,4,3]
print("The numbers that only appears once are: ")
FindOneDisNum(arr) |
class UI_UL_list:
pass
|
class Solution:
def reverseList(self, head: Optional[ListNode]) -> Optional[ListNode]:
curr, pre = head, None
while curr:
temp = curr.next
curr.next = pre
pre = curr
curr = temp
return pre
|
expected_output = {
'vrf': {
'default': {
'address_family': {
'ipv6': {
'routes': {
'2001:0:10:204:0:30:0:2/128': {
'active': True,
'next_hop': {
'outgoing_interface': {
'Bundle-Ether10': {
'outgoing_interface': 'Bundle-Ether10',
'updated': '00:54:06'
}
}
},
'route': '2001:0:10:204:0:30:0:2/128',
'source_protocol': 'local',
'source_protocol_codes': 'L'
},
'2001:0:10:204:0:30::/126': {
'active': True,
'next_hop': {
'outgoing_interface': {
'Bundle-Ether10': {
'outgoing_interface': 'Bundle-Ether10',
'updated': '00:54:06'
}
}
},
'route': '2001:0:10:204:0:30::/126',
'source_protocol': 'connected',
'source_protocol_codes': 'C'
},
'2001:0:10:204:0:33::/126': {
'active': True,
'metric': 11,
'next_hop': {
'next_hop_list': {
1: {
'index': 1,
'next_hop': 'fe80::226:88ff:fe55:6f17',
'outgoing_interface': 'TenGigE0/0/0/1',
'updated': '00:53:18'
}
}
},
'route': '2001:0:10:204:0:33::/126',
'route_preference': 115,
'source_protocol': 'isis',
'source_protocol_codes': 'i '
'L2'
},
'2001:db8:1b7f:8e5c::8/128': {
'active': True,
'metric': 11,
'next_hop': {
'next_hop_list': {
1: {
'index': 1,
'next_hop': 'fe80::226:88ff:fe55:6f17',
'outgoing_interface': 'TenGigE0/0/0/1',
'updated': '00:53:18'
}
}
},
'route': '2001:db8:1b7f:8e5c::8/128',
'route_preference': 115,
'source_protocol': 'isis',
'source_protocol_codes': 'i '
'L2'
},
'2001:db8:4:4::1/128': {
'active': True,
'next_hop': {
'outgoing_interface': {
'Loopback60': {
'outgoing_interface': 'Loopback60',
'updated': '00:54:19'
}
}
},
'route': '2001:db8:4:4::1/128',
'source_protocol': 'local',
'source_protocol_codes': 'L'
},
'::/0': {
'active': True,
'metric': 11,
'next_hop': {
'next_hop_list': {
1: {
'index': 1,
'next_hop': 'fe80::226:88ff:fe55:6f17',
'outgoing_interface': 'TenGigE0/0/0/1',
'updated': '00:00:10'
}
}
},
'route': '::/0',
'route_preference': 115,
'source_protocol': 'isis',
'source_protocol_codes': 'i* '
'L2'
},
'fc00:a0:1:216::1/128': {
'active': True,
'metric': 20,
'next_hop': {
'next_hop_list': {
1: {
'index': 1,
'next_hop': 'fe80::464c:a8ff:fe96:a25f',
'outgoing_interface': 'Bundle-Ether10',
'updated': '00:53:55'
}
}
},
'route': 'fc00:a0:1:216::1/128',
'route_preference': 115,
'source_protocol': 'isis',
'source_protocol_codes': 'i '
'L2'
},
'fc00:a0:1::/64': {
'active': True,
'next_hop': {
'outgoing_interface': {
'TenGigE0/0/0/0': {
'outgoing_interface': 'TenGigE0/0/0/0',
'updated': '00:54:18'
}
}
},
'route': 'fc00:a0:1::/64',
'source_protocol': 'connected',
'source_protocol_codes': 'C'
},
'fc00:a0:1::2/128': {
'active': True,
'next_hop': {
'outgoing_interface': {
'TenGigE0/0/0/0': {
'outgoing_interface': 'TenGigE0/0/0/0',
'updated': '00:54:18'
}
}
},
'route': 'fc00:a0:1::2/128',
'source_protocol': 'local',
'source_protocol_codes': 'L'
},
'fc00:a0:2::/64': {
'active': True,
'metric': 11,
'next_hop': {
'next_hop_list': {
1: {
'index': 1,
'next_hop': 'fe80::226:88ff:fe55:6f17',
'outgoing_interface': 'TenGigE0/0/0/1',
'updated': '00:53:18'
}
}
},
'route': 'fc00:a0:2::/64',
'route_preference': 115,
'source_protocol': 'isis',
'source_protocol_codes': 'i '
'L2'
},
'fc00:a0:5::/64': {
'active': True,
'next_hop': {
'outgoing_interface': {
'TenGigE0/0/0/1': {
'outgoing_interface': 'TenGigE0/0/0/1',
'updated': '00:54:18'
}
}
},
'route': 'fc00:a0:5::/64',
'source_protocol': 'connected',
'source_protocol_codes': 'C'
},
'fc00:a0:5::2/128': {
'active': True,
'next_hop': {
'outgoing_interface': {
'TenGigE0/0/0/1': {
'outgoing_interface': 'TenGigE0/0/0/1',
'updated': '00:54:18'
}
}
},
'route': 'fc00:a0:5::2/128',
'source_protocol': 'local',
'source_protocol_codes': 'L'
}
}
}
},
'last_resort': {
'gateway': 'fe80::226:88ff:fe55:6f17',
'to_network': '::'
}
}
}
}
|
"""
Implement a function that removes all the even elements from a given list.
Name it remove_even(list).
Input:
- A list with random integers.
Output:
- A list with only odd integers
Sample Input:
- my_list = [1,2,4,5,10,6,3]
Sample Output:
- my_list = [1,5,3]
"""
def remove_even(list):
return [x for x in list if x % 2 != 0]
if __name__ == '__main__':
print(remove_even([3, 2, 41, 3, 34]))
|
# http://www.codewars.com/kata/523b66342d0c301ae400003b/
def multiply(a, b):
return a * b
|
num = int(input("\nDigite um numero inteiro para saber se é primo: "))
cont = 0
for i in range(num):
if num % (i + 1) == 0:
cont += 1
else:
cont
if cont == 2:
print("O numero é primo")
else:
print("O numero não é primo")
|
# Author: AKHILESH SANTOSHWAR
# Input: root node, key
#
# Output: predecessor node, successor node
# 1. If root is NULL
# then return
# 2. if key is found then
# a. If its left subtree is not null
# Then predecessor will be the right most
# child of left subtree or left child itself.
# b. If its right subtree is not null
# The successor will be the left most child
# of right subtree or right child itself.
# return
# 3. If key is smaller then root node
# set the successor as root
# search recursively into left subtree
# else
# set the predecessor as root
# search recursively into right subtree
# Python program to find predecessor and successor in a BST
# A BST node
class Node(object):
# Constructor to create a new node
def __init__(self, data):
self.data = data
self.left = None
self.right = None
# for finding the predecessor and successor of the node
def findPredecessorAndSuccessor(self, data):
global predecessor, successor
predecessor = None
successor = None
if self is None:
return
# if the data is in the root itself
if self.data == data:
# the maximum value in the left subtree is the predecessor
if self.left is not None:
temp = self.left
if temp.right is not None:
while(temp.right):
temp = temp.right
predecessor = temp
# the minimum of the right subtree is the successor
if self.right is not None:
temp = self.right
while(temp.left):
temp = temp.left
successor = temp
return
#if key is smaller than root, go to left subtree
if data < self.data:
print('Left')
self.left.findPredecessorAndSuccessor(data)
else:
print('Right')
self.right.findPredecessorAndSuccessor(data)
def insert(self, data):
''' For inserting the data in the Tree '''
if self.data == data:
return False # As BST cannot contain duplicate data
elif data < self.data:
''' Data less than the root data is placed to the left of the root '''
if self.left:
return self.left.insert(data)
else:
self.left = Node(data)
return True
else:
''' Data greater than the root data is placed to the right of the root '''
if self.right:
return self.right.insert(data)
else:
self.right = Node(data)
return True
if __name__ == '__main__':
root = Node(50)
root.insert(30)
root.insert(20)
root.insert(40)
root.insert(70)
root.insert(60)
root.insert(80)
# following BST is created
# 50
# / \
# 30 70
# / \ / \
# 20 40 60 80
root.findPredecessorAndSuccessor(70)
if (predecessor is not None) and (successor is not None):
print('Predecessor:', predecessor.data, 'Successor:', successor.data)
else:
print('Predecessor:', predecessor, 'Successor:', successor)
|
bmi = ''
while True:
input_numbers = input()
if ( '-1' == input_numbers ) or ( -1 == input_numbers.find(' ') ):
break
input_numbers = input_numbers.split()
weight = int(input_numbers[0])
height = int(input_numbers[1])
tmp = weight / ( height / 100 ) ** 2
bmi += str(tmp) + "\n"
print(bmi.strip())
|
print('=' * 15, '\033[1;35mAULA 17 - Listas[Testes]\033[m', '=' * 15)
valores = list()
for cont in range(0, 5):
valores.append(int(input('Digite um Valor: ')))
for c, v in enumerate(valores):
print(f'Na Posição {c} encontrei o Valor {v}!')
print('End!!!')
|
def partition(number):
answer = set()
answer.add((number, ))
for x in range(1, number):
for y in partition(number - x):
answer.add(tuple(sorted((x, ) + y)))
return answer
def euler78():
num = -1
i = 30
while True:
i += 1
print(str(i))
t = len(partition(i))
print(str(t))
if t % 1000000 == 0:
break
return i
|
n = 0
row = 5
while n < row:
n += 1
end = row * 2 - 1
right = row - n
left = row + n
l = 1
while l < row * 2:
if l > right and l < left:
print("*", end='')
# print('%')
else:
print(' ', end='')
# print('$')
l += 1
print()
#2
row = 5
for seet in range(row):
for i in range(row - seet - 1):
print(' ', end='')
for j in range(seet * 2 + 1):
print('*', end='')
print()
|
class BetweenRadiusFilterCriteria(object):
"""
Filter criteria for distance between two radius
"""
def __init__(self, radius1, radius2):
self._radius1 = radius1
self._radius2 = radius2
@property
def radius1(self):
return self._radius1
@property
def radius2(self):
return self._radius2
def satisfies(self, distance):
"""
"""
distance = distance
return self.radius1 <= distance <= self.radius2
class FilterCriteria(object):
"""
Return filter criteria based on the condition
This is required because if we have more filter criteria we can handle
that logic here and return the required filter
"""
@classmethod
def get_filter(cls, radius1, radius2):
return BetweenRadiusFilterCriteria(radius1, radius2)
|
class localStorage:
def __init__(self, driver) :
self.driver = driver
def __len__(self):
return self.driver.execute_script("return window.localStorage.length;")
def items(self) :
return self.driver.execute_script( \
"var ls = window.localStorage, items = {}; " \
"for (var i = 0, k; i < ls.length; ++i) " \
" items[k = ls.key(i)] = ls.getItem(k); " \
"return items; ")
def keys(self) :
return self.driver.execute_script( \
"var ls = window.localStorage, keys = []; " \
"for (var i = 0; i < ls.length; ++i) " \
" keys[i] = ls.key(i); " \
"return keys; ")
def get(self, key):
return self.driver.execute_script("return window.localStorage.getItem(arguments[0]);", key)
def set(self, key, value):
self.driver.execute_script("window.localStorage.setItem(arguments[0], arguments[1]);", key, value)
def has(self, key):
return key in self.keys()
def remove(self, key):
self.driver.execute_script("window.localStorage.removeItem(arguments[0]);", key)
def clear(self):
self.driver.execute_script("window.localStorage.clear();")
def __getitem__(self, key) :
value = self.get(key)
if value is None :
raise KeyError(key)
return value
def __setitem__(self, key, value):
self.set(key, value)
def __contains__(self, key):
return key in self.keys()
def __iter__(self):
return self.items().__iter__()
def __repr__(self):
return self.items().__str__() |
__________________________________________________________________________________________________
class Solution:
def twoSumLessThanK(self, A: List[int], K: int) -> int:
maxx = -float('inf')
for i in range(len(A)):
for j in range(i+1, len(A)):
if maxx < A[i] +A[j] and A[i] + A[j] < K:
maxx = A[i] + A[j]
return maxx if maxx != -float('inf') else -1
__________________________________________________________________________________________________
__________________________________________________________________________________________________
|
# coding: utf-8
# pynput
# Copyright (C) 2015-2018 Moses Palmér
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# pylint: disable=C0111,C0302
SYMBOLS = {
"0": (0x0030, u"\u0030"),
"1": (0x0031, u"\u0031"),
"2": (0x0032, u"\u0032"),
"3": (0x0033, u"\u0033"),
"4": (0x0034, u"\u0034"),
"5": (0x0035, u"\u0035"),
"6": (0x0036, u"\u0036"),
"7": (0x0037, u"\u0037"),
"8": (0x0038, u"\u0038"),
"9": (0x0039, u"\u0039"),
"A": (0x0041, u"\u0041"),
"AE": (0x00C6, u"\u00C6"),
"Aacute": (0x00C1, u"\u00C1"),
"Abelowdot": (0x1001EA0, u"\u1EA0"),
"Abreve": (0x01C3, u"\u0102"),
"Abreveacute": (0x1001EAE, u"\u1EAE"),
"Abrevebelowdot": (0x1001EB6, u"\u1EB6"),
"Abrevegrave": (0x1001EB0, u"\u1EB0"),
"Abrevehook": (0x1001EB2, u"\u1EB2"),
"Abrevetilde": (0x1001EB4, u"\u1EB4"),
"Acircumflex": (0x00C2, u"\u00C2"),
"Acircumflexacute": (0x1001EA4, u"\u1EA4"),
"Acircumflexbelowdot": (0x1001EAC, u"\u1EAC"),
"Acircumflexgrave": (0x1001EA6, u"\u1EA6"),
"Acircumflexhook": (0x1001EA8, u"\u1EA8"),
"Acircumflextilde": (0x1001EAA, u"\u1EAA"),
"Adiaeresis": (0x00C4, u"\u00C4"),
"Agrave": (0x00C0, u"\u00C0"),
"Ahook": (0x1001EA2, u"\u1EA2"),
"Amacron": (0x03C0, u"\u0100"),
"Aogonek": (0x01A1, u"\u0104"),
"Arabic_0": (0x1000660, u"\u0660"),
"Arabic_1": (0x1000661, u"\u0661"),
"Arabic_2": (0x1000662, u"\u0662"),
"Arabic_3": (0x1000663, u"\u0663"),
"Arabic_4": (0x1000664, u"\u0664"),
"Arabic_5": (0x1000665, u"\u0665"),
"Arabic_6": (0x1000666, u"\u0666"),
"Arabic_7": (0x1000667, u"\u0667"),
"Arabic_8": (0x1000668, u"\u0668"),
"Arabic_9": (0x1000669, u"\u0669"),
"Arabic_ain": (0x05D9, u"\u0639"),
"Arabic_alef": (0x05C7, u"\u0627"),
"Arabic_alefmaksura": (0x05E9, u"\u0649"),
"Arabic_beh": (0x05C8, u"\u0628"),
"Arabic_comma": (0x05AC, u"\u060C"),
"Arabic_dad": (0x05D6, u"\u0636"),
"Arabic_dal": (0x05CF, u"\u062F"),
"Arabic_damma": (0x05EF, u"\u064F"),
"Arabic_dammatan": (0x05EC, u"\u064C"),
"Arabic_ddal": (0x1000688, u"\u0688"),
"Arabic_farsi_yeh": (0x10006CC, u"\u06CC"),
"Arabic_fatha": (0x05EE, u"\u064E"),
"Arabic_fathatan": (0x05EB, u"\u064B"),
"Arabic_feh": (0x05E1, u"\u0641"),
"Arabic_fullstop": (0x10006D4, u"\u06D4"),
"Arabic_gaf": (0x10006AF, u"\u06AF"),
"Arabic_ghain": (0x05DA, u"\u063A"),
"Arabic_ha": (0x05E7, u"\u0647"),
"Arabic_hah": (0x05CD, u"\u062D"),
"Arabic_hamza": (0x05C1, u"\u0621"),
"Arabic_hamza_above": (0x1000654, u"\u0654"),
"Arabic_hamza_below": (0x1000655, u"\u0655"),
"Arabic_hamzaonalef": (0x05C3, u"\u0623"),
"Arabic_hamzaonwaw": (0x05C4, u"\u0624"),
"Arabic_hamzaonyeh": (0x05C6, u"\u0626"),
"Arabic_hamzaunderalef": (0x05C5, u"\u0625"),
"Arabic_heh_doachashmee": (0x10006BE, u"\u06BE"),
"Arabic_heh_goal": (0x10006C1, u"\u06C1"),
"Arabic_jeem": (0x05CC, u"\u062C"),
"Arabic_jeh": (0x1000698, u"\u0698"),
"Arabic_kaf": (0x05E3, u"\u0643"),
"Arabic_kasra": (0x05F0, u"\u0650"),
"Arabic_kasratan": (0x05ED, u"\u064D"),
"Arabic_keheh": (0x10006A9, u"\u06A9"),
"Arabic_khah": (0x05CE, u"\u062E"),
"Arabic_lam": (0x05E4, u"\u0644"),
"Arabic_madda_above": (0x1000653, u"\u0653"),
"Arabic_maddaonalef": (0x05C2, u"\u0622"),
"Arabic_meem": (0x05E5, u"\u0645"),
"Arabic_noon": (0x05E6, u"\u0646"),
"Arabic_noon_ghunna": (0x10006BA, u"\u06BA"),
"Arabic_peh": (0x100067E, u"\u067E"),
"Arabic_percent": (0x100066A, u"\u066A"),
"Arabic_qaf": (0x05E2, u"\u0642"),
"Arabic_question_mark": (0x05BF, u"\u061F"),
"Arabic_ra": (0x05D1, u"\u0631"),
"Arabic_rreh": (0x1000691, u"\u0691"),
"Arabic_sad": (0x05D5, u"\u0635"),
"Arabic_seen": (0x05D3, u"\u0633"),
"Arabic_semicolon": (0x05BB, u"\u061B"),
"Arabic_shadda": (0x05F1, u"\u0651"),
"Arabic_sheen": (0x05D4, u"\u0634"),
"Arabic_sukun": (0x05F2, u"\u0652"),
"Arabic_superscript_alef": (0x1000670, u"\u0670"),
"Arabic_tah": (0x05D7, u"\u0637"),
"Arabic_tatweel": (0x05E0, u"\u0640"),
"Arabic_tcheh": (0x1000686, u"\u0686"),
"Arabic_teh": (0x05CA, u"\u062A"),
"Arabic_tehmarbuta": (0x05C9, u"\u0629"),
"Arabic_thal": (0x05D0, u"\u0630"),
"Arabic_theh": (0x05CB, u"\u062B"),
"Arabic_tteh": (0x1000679, u"\u0679"),
"Arabic_veh": (0x10006A4, u"\u06A4"),
"Arabic_waw": (0x05E8, u"\u0648"),
"Arabic_yeh": (0x05EA, u"\u064A"),
"Arabic_yeh_baree": (0x10006D2, u"\u06D2"),
"Arabic_zah": (0x05D8, u"\u0638"),
"Arabic_zain": (0x05D2, u"\u0632"),
"Aring": (0x00C5, u"\u00C5"),
"Armenian_AT": (0x1000538, u"\u0538"),
"Armenian_AYB": (0x1000531, u"\u0531"),
"Armenian_BEN": (0x1000532, u"\u0532"),
"Armenian_CHA": (0x1000549, u"\u0549"),
"Armenian_DA": (0x1000534, u"\u0534"),
"Armenian_DZA": (0x1000541, u"\u0541"),
"Armenian_E": (0x1000537, u"\u0537"),
"Armenian_FE": (0x1000556, u"\u0556"),
"Armenian_GHAT": (0x1000542, u"\u0542"),
"Armenian_GIM": (0x1000533, u"\u0533"),
"Armenian_HI": (0x1000545, u"\u0545"),
"Armenian_HO": (0x1000540, u"\u0540"),
"Armenian_INI": (0x100053B, u"\u053B"),
"Armenian_JE": (0x100054B, u"\u054B"),
"Armenian_KE": (0x1000554, u"\u0554"),
"Armenian_KEN": (0x100053F, u"\u053F"),
"Armenian_KHE": (0x100053D, u"\u053D"),
"Armenian_LYUN": (0x100053C, u"\u053C"),
"Armenian_MEN": (0x1000544, u"\u0544"),
"Armenian_NU": (0x1000546, u"\u0546"),
"Armenian_O": (0x1000555, u"\u0555"),
"Armenian_PE": (0x100054A, u"\u054A"),
"Armenian_PYUR": (0x1000553, u"\u0553"),
"Armenian_RA": (0x100054C, u"\u054C"),
"Armenian_RE": (0x1000550, u"\u0550"),
"Armenian_SE": (0x100054D, u"\u054D"),
"Armenian_SHA": (0x1000547, u"\u0547"),
"Armenian_TCHE": (0x1000543, u"\u0543"),
"Armenian_TO": (0x1000539, u"\u0539"),
"Armenian_TSA": (0x100053E, u"\u053E"),
"Armenian_TSO": (0x1000551, u"\u0551"),
"Armenian_TYUN": (0x100054F, u"\u054F"),
"Armenian_VEV": (0x100054E, u"\u054E"),
"Armenian_VO": (0x1000548, u"\u0548"),
"Armenian_VYUN": (0x1000552, u"\u0552"),
"Armenian_YECH": (0x1000535, u"\u0535"),
"Armenian_ZA": (0x1000536, u"\u0536"),
"Armenian_ZHE": (0x100053A, u"\u053A"),
"Armenian_accent": (0x100055B, u"\u055B"),
"Armenian_amanak": (0x100055C, u"\u055C"),
"Armenian_apostrophe": (0x100055A, u"\u055A"),
"Armenian_at": (0x1000568, u"\u0568"),
"Armenian_ayb": (0x1000561, u"\u0561"),
"Armenian_ben": (0x1000562, u"\u0562"),
"Armenian_but": (0x100055D, u"\u055D"),
"Armenian_cha": (0x1000579, u"\u0579"),
"Armenian_da": (0x1000564, u"\u0564"),
"Armenian_dza": (0x1000571, u"\u0571"),
"Armenian_e": (0x1000567, u"\u0567"),
"Armenian_exclam": (0x100055C, u"\u055C"),
"Armenian_fe": (0x1000586, u"\u0586"),
"Armenian_full_stop": (0x1000589, u"\u0589"),
"Armenian_ghat": (0x1000572, u"\u0572"),
"Armenian_gim": (0x1000563, u"\u0563"),
"Armenian_hi": (0x1000575, u"\u0575"),
"Armenian_ho": (0x1000570, u"\u0570"),
"Armenian_hyphen": (0x100058A, u"\u058A"),
"Armenian_ini": (0x100056B, u"\u056B"),
"Armenian_je": (0x100057B, u"\u057B"),
"Armenian_ke": (0x1000584, u"\u0584"),
"Armenian_ken": (0x100056F, u"\u056F"),
"Armenian_khe": (0x100056D, u"\u056D"),
"Armenian_ligature_ew": (0x1000587, u"\u0587"),
"Armenian_lyun": (0x100056C, u"\u056C"),
"Armenian_men": (0x1000574, u"\u0574"),
"Armenian_nu": (0x1000576, u"\u0576"),
"Armenian_o": (0x1000585, u"\u0585"),
"Armenian_paruyk": (0x100055E, u"\u055E"),
"Armenian_pe": (0x100057A, u"\u057A"),
"Armenian_pyur": (0x1000583, u"\u0583"),
"Armenian_question": (0x100055E, u"\u055E"),
"Armenian_ra": (0x100057C, u"\u057C"),
"Armenian_re": (0x1000580, u"\u0580"),
"Armenian_se": (0x100057D, u"\u057D"),
"Armenian_separation_mark": (0x100055D, u"\u055D"),
"Armenian_sha": (0x1000577, u"\u0577"),
"Armenian_shesht": (0x100055B, u"\u055B"),
"Armenian_tche": (0x1000573, u"\u0573"),
"Armenian_to": (0x1000569, u"\u0569"),
"Armenian_tsa": (0x100056E, u"\u056E"),
"Armenian_tso": (0x1000581, u"\u0581"),
"Armenian_tyun": (0x100057F, u"\u057F"),
"Armenian_verjaket": (0x1000589, u"\u0589"),
"Armenian_vev": (0x100057E, u"\u057E"),
"Armenian_vo": (0x1000578, u"\u0578"),
"Armenian_vyun": (0x1000582, u"\u0582"),
"Armenian_yech": (0x1000565, u"\u0565"),
"Armenian_yentamna": (0x100058A, u"\u058A"),
"Armenian_za": (0x1000566, u"\u0566"),
"Armenian_zhe": (0x100056A, u"\u056A"),
"Atilde": (0x00C3, u"\u00C3"),
"B": (0x0042, u"\u0042"),
"Babovedot": (0x1001E02, u"\u1E02"),
"Byelorussian_SHORTU": (0x06BE, u"\u040E"),
"Byelorussian_shortu": (0x06AE, u"\u045E"),
"C": (0x0043, u"\u0043"),
"Cabovedot": (0x02C5, u"\u010A"),
"Cacute": (0x01C6, u"\u0106"),
"Ccaron": (0x01C8, u"\u010C"),
"Ccedilla": (0x00C7, u"\u00C7"),
"Ccircumflex": (0x02C6, u"\u0108"),
"ColonSign": (0x10020A1, u"\u20A1"),
"CruzeiroSign": (0x10020A2, u"\u20A2"),
"Cyrillic_A": (0x06E1, u"\u0410"),
"Cyrillic_BE": (0x06E2, u"\u0411"),
"Cyrillic_CHE": (0x06FE, u"\u0427"),
"Cyrillic_CHE_descender": (0x10004B6, u"\u04B6"),
"Cyrillic_CHE_vertstroke": (0x10004B8, u"\u04B8"),
"Cyrillic_DE": (0x06E4, u"\u0414"),
"Cyrillic_DZHE": (0x06BF, u"\u040F"),
"Cyrillic_E": (0x06FC, u"\u042D"),
"Cyrillic_EF": (0x06E6, u"\u0424"),
"Cyrillic_EL": (0x06EC, u"\u041B"),
"Cyrillic_EM": (0x06ED, u"\u041C"),
"Cyrillic_EN": (0x06EE, u"\u041D"),
"Cyrillic_EN_descender": (0x10004A2, u"\u04A2"),
"Cyrillic_ER": (0x06F2, u"\u0420"),
"Cyrillic_ES": (0x06F3, u"\u0421"),
"Cyrillic_GHE": (0x06E7, u"\u0413"),
"Cyrillic_GHE_bar": (0x1000492, u"\u0492"),
"Cyrillic_HA": (0x06E8, u"\u0425"),
"Cyrillic_HARDSIGN": (0x06FF, u"\u042A"),
"Cyrillic_HA_descender": (0x10004B2, u"\u04B2"),
"Cyrillic_I": (0x06E9, u"\u0418"),
"Cyrillic_IE": (0x06E5, u"\u0415"),
"Cyrillic_IO": (0x06B3, u"\u0401"),
"Cyrillic_I_macron": (0x10004E2, u"\u04E2"),
"Cyrillic_JE": (0x06B8, u"\u0408"),
"Cyrillic_KA": (0x06EB, u"\u041A"),
"Cyrillic_KA_descender": (0x100049A, u"\u049A"),
"Cyrillic_KA_vertstroke": (0x100049C, u"\u049C"),
"Cyrillic_LJE": (0x06B9, u"\u0409"),
"Cyrillic_NJE": (0x06BA, u"\u040A"),
"Cyrillic_O": (0x06EF, u"\u041E"),
"Cyrillic_O_bar": (0x10004E8, u"\u04E8"),
"Cyrillic_PE": (0x06F0, u"\u041F"),
"Cyrillic_SCHWA": (0x10004D8, u"\u04D8"),
"Cyrillic_SHA": (0x06FB, u"\u0428"),
"Cyrillic_SHCHA": (0x06FD, u"\u0429"),
"Cyrillic_SHHA": (0x10004BA, u"\u04BA"),
"Cyrillic_SHORTI": (0x06EA, u"\u0419"),
"Cyrillic_SOFTSIGN": (0x06F8, u"\u042C"),
"Cyrillic_TE": (0x06F4, u"\u0422"),
"Cyrillic_TSE": (0x06E3, u"\u0426"),
"Cyrillic_U": (0x06F5, u"\u0423"),
"Cyrillic_U_macron": (0x10004EE, u"\u04EE"),
"Cyrillic_U_straight": (0x10004AE, u"\u04AE"),
"Cyrillic_U_straight_bar": (0x10004B0, u"\u04B0"),
"Cyrillic_VE": (0x06F7, u"\u0412"),
"Cyrillic_YA": (0x06F1, u"\u042F"),
"Cyrillic_YERU": (0x06F9, u"\u042B"),
"Cyrillic_YU": (0x06E0, u"\u042E"),
"Cyrillic_ZE": (0x06FA, u"\u0417"),
"Cyrillic_ZHE": (0x06F6, u"\u0416"),
"Cyrillic_ZHE_descender": (0x1000496, u"\u0496"),
"Cyrillic_a": (0x06C1, u"\u0430"),
"Cyrillic_be": (0x06C2, u"\u0431"),
"Cyrillic_che": (0x06DE, u"\u0447"),
"Cyrillic_che_descender": (0x10004B7, u"\u04B7"),
"Cyrillic_che_vertstroke": (0x10004B9, u"\u04B9"),
"Cyrillic_de": (0x06C4, u"\u0434"),
"Cyrillic_dzhe": (0x06AF, u"\u045F"),
"Cyrillic_e": (0x06DC, u"\u044D"),
"Cyrillic_ef": (0x06C6, u"\u0444"),
"Cyrillic_el": (0x06CC, u"\u043B"),
"Cyrillic_em": (0x06CD, u"\u043C"),
"Cyrillic_en": (0x06CE, u"\u043D"),
"Cyrillic_en_descender": (0x10004A3, u"\u04A3"),
"Cyrillic_er": (0x06D2, u"\u0440"),
"Cyrillic_es": (0x06D3, u"\u0441"),
"Cyrillic_ghe": (0x06C7, u"\u0433"),
"Cyrillic_ghe_bar": (0x1000493, u"\u0493"),
"Cyrillic_ha": (0x06C8, u"\u0445"),
"Cyrillic_ha_descender": (0x10004B3, u"\u04B3"),
"Cyrillic_hardsign": (0x06DF, u"\u044A"),
"Cyrillic_i": (0x06C9, u"\u0438"),
"Cyrillic_i_macron": (0x10004E3, u"\u04E3"),
"Cyrillic_ie": (0x06C5, u"\u0435"),
"Cyrillic_io": (0x06A3, u"\u0451"),
"Cyrillic_je": (0x06A8, u"\u0458"),
"Cyrillic_ka": (0x06CB, u"\u043A"),
"Cyrillic_ka_descender": (0x100049B, u"\u049B"),
"Cyrillic_ka_vertstroke": (0x100049D, u"\u049D"),
"Cyrillic_lje": (0x06A9, u"\u0459"),
"Cyrillic_nje": (0x06AA, u"\u045A"),
"Cyrillic_o": (0x06CF, u"\u043E"),
"Cyrillic_o_bar": (0x10004E9, u"\u04E9"),
"Cyrillic_pe": (0x06D0, u"\u043F"),
"Cyrillic_schwa": (0x10004D9, u"\u04D9"),
"Cyrillic_sha": (0x06DB, u"\u0448"),
"Cyrillic_shcha": (0x06DD, u"\u0449"),
"Cyrillic_shha": (0x10004BB, u"\u04BB"),
"Cyrillic_shorti": (0x06CA, u"\u0439"),
"Cyrillic_softsign": (0x06D8, u"\u044C"),
"Cyrillic_te": (0x06D4, u"\u0442"),
"Cyrillic_tse": (0x06C3, u"\u0446"),
"Cyrillic_u": (0x06D5, u"\u0443"),
"Cyrillic_u_macron": (0x10004EF, u"\u04EF"),
"Cyrillic_u_straight": (0x10004AF, u"\u04AF"),
"Cyrillic_u_straight_bar": (0x10004B1, u"\u04B1"),
"Cyrillic_ve": (0x06D7, u"\u0432"),
"Cyrillic_ya": (0x06D1, u"\u044F"),
"Cyrillic_yeru": (0x06D9, u"\u044B"),
"Cyrillic_yu": (0x06C0, u"\u044E"),
"Cyrillic_ze": (0x06DA, u"\u0437"),
"Cyrillic_zhe": (0x06D6, u"\u0436"),
"Cyrillic_zhe_descender": (0x1000497, u"\u0497"),
"D": (0x0044, u"\u0044"),
"Dabovedot": (0x1001E0A, u"\u1E0A"),
"Dcaron": (0x01CF, u"\u010E"),
"DongSign": (0x10020AB, u"\u20AB"),
"Dstroke": (0x01D0, u"\u0110"),
"E": (0x0045, u"\u0045"),
"ENG": (0x03BD, u"\u014A"),
"ETH": (0x00D0, u"\u00D0"),
"EZH": (0x10001B7, u"\u01B7"),
"Eabovedot": (0x03CC, u"\u0116"),
"Eacute": (0x00C9, u"\u00C9"),
"Ebelowdot": (0x1001EB8, u"\u1EB8"),
"Ecaron": (0x01CC, u"\u011A"),
"Ecircumflex": (0x00CA, u"\u00CA"),
"Ecircumflexacute": (0x1001EBE, u"\u1EBE"),
"Ecircumflexbelowdot": (0x1001EC6, u"\u1EC6"),
"Ecircumflexgrave": (0x1001EC0, u"\u1EC0"),
"Ecircumflexhook": (0x1001EC2, u"\u1EC2"),
"Ecircumflextilde": (0x1001EC4, u"\u1EC4"),
"EcuSign": (0x10020A0, u"\u20A0"),
"Ediaeresis": (0x00CB, u"\u00CB"),
"Egrave": (0x00C8, u"\u00C8"),
"Ehook": (0x1001EBA, u"\u1EBA"),
"Emacron": (0x03AA, u"\u0112"),
"Eogonek": (0x01CA, u"\u0118"),
"Etilde": (0x1001EBC, u"\u1EBC"),
"EuroSign": (0x20AC, u"\u20AC"),
"F": (0x0046, u"\u0046"),
"FFrancSign": (0x10020A3, u"\u20A3"),
"Fabovedot": (0x1001E1E, u"\u1E1E"),
"Farsi_0": (0x10006F0, u"\u06F0"),
"Farsi_1": (0x10006F1, u"\u06F1"),
"Farsi_2": (0x10006F2, u"\u06F2"),
"Farsi_3": (0x10006F3, u"\u06F3"),
"Farsi_4": (0x10006F4, u"\u06F4"),
"Farsi_5": (0x10006F5, u"\u06F5"),
"Farsi_6": (0x10006F6, u"\u06F6"),
"Farsi_7": (0x10006F7, u"\u06F7"),
"Farsi_8": (0x10006F8, u"\u06F8"),
"Farsi_9": (0x10006F9, u"\u06F9"),
"Farsi_yeh": (0x10006CC, u"\u06CC"),
"G": (0x0047, u"\u0047"),
"Gabovedot": (0x02D5, u"\u0120"),
"Gbreve": (0x02AB, u"\u011E"),
"Gcaron": (0x10001E6, u"\u01E6"),
"Gcedilla": (0x03AB, u"\u0122"),
"Gcircumflex": (0x02D8, u"\u011C"),
"Georgian_an": (0x10010D0, u"\u10D0"),
"Georgian_ban": (0x10010D1, u"\u10D1"),
"Georgian_can": (0x10010EA, u"\u10EA"),
"Georgian_char": (0x10010ED, u"\u10ED"),
"Georgian_chin": (0x10010E9, u"\u10E9"),
"Georgian_cil": (0x10010EC, u"\u10EC"),
"Georgian_don": (0x10010D3, u"\u10D3"),
"Georgian_en": (0x10010D4, u"\u10D4"),
"Georgian_fi": (0x10010F6, u"\u10F6"),
"Georgian_gan": (0x10010D2, u"\u10D2"),
"Georgian_ghan": (0x10010E6, u"\u10E6"),
"Georgian_hae": (0x10010F0, u"\u10F0"),
"Georgian_har": (0x10010F4, u"\u10F4"),
"Georgian_he": (0x10010F1, u"\u10F1"),
"Georgian_hie": (0x10010F2, u"\u10F2"),
"Georgian_hoe": (0x10010F5, u"\u10F5"),
"Georgian_in": (0x10010D8, u"\u10D8"),
"Georgian_jhan": (0x10010EF, u"\u10EF"),
"Georgian_jil": (0x10010EB, u"\u10EB"),
"Georgian_kan": (0x10010D9, u"\u10D9"),
"Georgian_khar": (0x10010E5, u"\u10E5"),
"Georgian_las": (0x10010DA, u"\u10DA"),
"Georgian_man": (0x10010DB, u"\u10DB"),
"Georgian_nar": (0x10010DC, u"\u10DC"),
"Georgian_on": (0x10010DD, u"\u10DD"),
"Georgian_par": (0x10010DE, u"\u10DE"),
"Georgian_phar": (0x10010E4, u"\u10E4"),
"Georgian_qar": (0x10010E7, u"\u10E7"),
"Georgian_rae": (0x10010E0, u"\u10E0"),
"Georgian_san": (0x10010E1, u"\u10E1"),
"Georgian_shin": (0x10010E8, u"\u10E8"),
"Georgian_tan": (0x10010D7, u"\u10D7"),
"Georgian_tar": (0x10010E2, u"\u10E2"),
"Georgian_un": (0x10010E3, u"\u10E3"),
"Georgian_vin": (0x10010D5, u"\u10D5"),
"Georgian_we": (0x10010F3, u"\u10F3"),
"Georgian_xan": (0x10010EE, u"\u10EE"),
"Georgian_zen": (0x10010D6, u"\u10D6"),
"Georgian_zhar": (0x10010DF, u"\u10DF"),
"Greek_ALPHA": (0x07C1, u"\u0391"),
"Greek_ALPHAaccent": (0x07A1, u"\u0386"),
"Greek_BETA": (0x07C2, u"\u0392"),
"Greek_CHI": (0x07D7, u"\u03A7"),
"Greek_DELTA": (0x07C4, u"\u0394"),
"Greek_EPSILON": (0x07C5, u"\u0395"),
"Greek_EPSILONaccent": (0x07A2, u"\u0388"),
"Greek_ETA": (0x07C7, u"\u0397"),
"Greek_ETAaccent": (0x07A3, u"\u0389"),
"Greek_GAMMA": (0x07C3, u"\u0393"),
"Greek_IOTA": (0x07C9, u"\u0399"),
"Greek_IOTAaccent": (0x07A4, u"\u038A"),
"Greek_IOTAdieresis": (0x07A5, u"\u03AA"),
"Greek_KAPPA": (0x07CA, u"\u039A"),
"Greek_LAMBDA": (0x07CB, u"\u039B"),
"Greek_LAMDA": (0x07CB, u"\u039B"),
"Greek_MU": (0x07CC, u"\u039C"),
"Greek_NU": (0x07CD, u"\u039D"),
"Greek_OMEGA": (0x07D9, u"\u03A9"),
"Greek_OMEGAaccent": (0x07AB, u"\u038F"),
"Greek_OMICRON": (0x07CF, u"\u039F"),
"Greek_OMICRONaccent": (0x07A7, u"\u038C"),
"Greek_PHI": (0x07D6, u"\u03A6"),
"Greek_PI": (0x07D0, u"\u03A0"),
"Greek_PSI": (0x07D8, u"\u03A8"),
"Greek_RHO": (0x07D1, u"\u03A1"),
"Greek_SIGMA": (0x07D2, u"\u03A3"),
"Greek_TAU": (0x07D4, u"\u03A4"),
"Greek_THETA": (0x07C8, u"\u0398"),
"Greek_UPSILON": (0x07D5, u"\u03A5"),
"Greek_UPSILONaccent": (0x07A8, u"\u038E"),
"Greek_UPSILONdieresis": (0x07A9, u"\u03AB"),
"Greek_XI": (0x07CE, u"\u039E"),
"Greek_ZETA": (0x07C6, u"\u0396"),
"Greek_accentdieresis": (0x07AE, u"\u0385"),
"Greek_alpha": (0x07E1, u"\u03B1"),
"Greek_alphaaccent": (0x07B1, u"\u03AC"),
"Greek_beta": (0x07E2, u"\u03B2"),
"Greek_chi": (0x07F7, u"\u03C7"),
"Greek_delta": (0x07E4, u"\u03B4"),
"Greek_epsilon": (0x07E5, u"\u03B5"),
"Greek_epsilonaccent": (0x07B2, u"\u03AD"),
"Greek_eta": (0x07E7, u"\u03B7"),
"Greek_etaaccent": (0x07B3, u"\u03AE"),
"Greek_finalsmallsigma": (0x07F3, u"\u03C2"),
"Greek_gamma": (0x07E3, u"\u03B3"),
"Greek_horizbar": (0x07AF, u"\u2015"),
"Greek_iota": (0x07E9, u"\u03B9"),
"Greek_iotaaccent": (0x07B4, u"\u03AF"),
"Greek_iotaaccentdieresis": (0x07B6, u"\u0390"),
"Greek_iotadieresis": (0x07B5, u"\u03CA"),
"Greek_kappa": (0x07EA, u"\u03BA"),
"Greek_lambda": (0x07EB, u"\u03BB"),
"Greek_lamda": (0x07EB, u"\u03BB"),
"Greek_mu": (0x07EC, u"\u03BC"),
"Greek_nu": (0x07ED, u"\u03BD"),
"Greek_omega": (0x07F9, u"\u03C9"),
"Greek_omegaaccent": (0x07BB, u"\u03CE"),
"Greek_omicron": (0x07EF, u"\u03BF"),
"Greek_omicronaccent": (0x07B7, u"\u03CC"),
"Greek_phi": (0x07F6, u"\u03C6"),
"Greek_pi": (0x07F0, u"\u03C0"),
"Greek_psi": (0x07F8, u"\u03C8"),
"Greek_rho": (0x07F1, u"\u03C1"),
"Greek_sigma": (0x07F2, u"\u03C3"),
"Greek_tau": (0x07F4, u"\u03C4"),
"Greek_theta": (0x07E8, u"\u03B8"),
"Greek_upsilon": (0x07F5, u"\u03C5"),
"Greek_upsilonaccent": (0x07B8, u"\u03CD"),
"Greek_upsilonaccentdieresis": (0x07BA, u"\u03B0"),
"Greek_upsilondieresis": (0x07B9, u"\u03CB"),
"Greek_xi": (0x07EE, u"\u03BE"),
"Greek_zeta": (0x07E6, u"\u03B6"),
"H": (0x0048, u"\u0048"),
"Hcircumflex": (0x02A6, u"\u0124"),
"Hstroke": (0x02A1, u"\u0126"),
"I": (0x0049, u"\u0049"),
"Iabovedot": (0x02A9, u"\u0130"),
"Iacute": (0x00CD, u"\u00CD"),
"Ibelowdot": (0x1001ECA, u"\u1ECA"),
"Ibreve": (0x100012C, u"\u012C"),
"Icircumflex": (0x00CE, u"\u00CE"),
"Idiaeresis": (0x00CF, u"\u00CF"),
"Igrave": (0x00CC, u"\u00CC"),
"Ihook": (0x1001EC8, u"\u1EC8"),
"Imacron": (0x03CF, u"\u012A"),
"Iogonek": (0x03C7, u"\u012E"),
"Itilde": (0x03A5, u"\u0128"),
"J": (0x004A, u"\u004A"),
"Jcircumflex": (0x02AC, u"\u0134"),
"K": (0x004B, u"\u004B"),
"KP_0": (0xFFB0, None),
"KP_1": (0xFFB1, None),
"KP_2": (0xFFB2, None),
"KP_3": (0xFFB3, None),
"KP_4": (0xFFB4, None),
"KP_5": (0xFFB5, None),
"KP_6": (0xFFB6, None),
"KP_7": (0xFFB7, None),
"KP_8": (0xFFB8, None),
"KP_9": (0xFFB9, None),
"KP_Add": (0xFFAB, None),
"KP_Begin": (0xFF9D, None),
"KP_Decimal": (0xFFAE, None),
"KP_Delete": (0xFF9F, None),
"KP_Divide": (0xFFAF, None),
"KP_Down": (0xFF99, None),
"KP_End": (0xFF9C, None),
"KP_Enter": (0xFF8D, None),
"KP_Equal": (0xFFBD, None),
"KP_F1": (0xFF91, None),
"KP_F2": (0xFF92, None),
"KP_F3": (0xFF93, None),
"KP_F4": (0xFF94, None),
"KP_Home": (0xFF95, None),
"KP_Insert": (0xFF9E, None),
"KP_Left": (0xFF96, None),
"KP_Multiply": (0xFFAA, None),
"KP_Next": (0xFF9B, None),
"KP_Page_Down": (0xFF9B, None),
"KP_Page_Up": (0xFF9A, None),
"KP_Prior": (0xFF9A, None),
"KP_Right": (0xFF98, None),
"KP_Separator": (0xFFAC, None),
"KP_Space": (0xFF80, None),
"KP_Subtract": (0xFFAD, None),
"KP_Tab": (0xFF89, None),
"KP_Up": (0xFF97, None),
"Kcedilla": (0x03D3, u"\u0136"),
"L": (0x004C, u"\u004C"),
"Lacute": (0x01C5, u"\u0139"),
"Lbelowdot": (0x1001E36, u"\u1E36"),
"Lcaron": (0x01A5, u"\u013D"),
"Lcedilla": (0x03A6, u"\u013B"),
"LiraSign": (0x10020A4, u"\u20A4"),
"Lstroke": (0x01A3, u"\u0141"),
"M": (0x004D, u"\u004D"),
"Mabovedot": (0x1001E40, u"\u1E40"),
"Macedonia_DSE": (0x06B5, u"\u0405"),
"Macedonia_GJE": (0x06B2, u"\u0403"),
"Macedonia_KJE": (0x06BC, u"\u040C"),
"Macedonia_dse": (0x06A5, u"\u0455"),
"Macedonia_gje": (0x06A2, u"\u0453"),
"Macedonia_kje": (0x06AC, u"\u045C"),
"MillSign": (0x10020A5, u"\u20A5"),
"N": (0x004E, u"\u004E"),
"Nacute": (0x01D1, u"\u0143"),
"NairaSign": (0x10020A6, u"\u20A6"),
"Ncaron": (0x01D2, u"\u0147"),
"Ncedilla": (0x03D1, u"\u0145"),
"NewSheqelSign": (0x10020AA, u"\u20AA"),
"Ntilde": (0x00D1, u"\u00D1"),
"O": (0x004F, u"\u004F"),
"OE": (0x13BC, u"\u0152"),
"Oacute": (0x00D3, u"\u00D3"),
"Obarred": (0x100019F, u"\u019F"),
"Obelowdot": (0x1001ECC, u"\u1ECC"),
"Ocaron": (0x10001D1, u"\u01D2"),
"Ocircumflex": (0x00D4, u"\u00D4"),
"Ocircumflexacute": (0x1001ED0, u"\u1ED0"),
"Ocircumflexbelowdot": (0x1001ED8, u"\u1ED8"),
"Ocircumflexgrave": (0x1001ED2, u"\u1ED2"),
"Ocircumflexhook": (0x1001ED4, u"\u1ED4"),
"Ocircumflextilde": (0x1001ED6, u"\u1ED6"),
"Odiaeresis": (0x00D6, u"\u00D6"),
"Odoubleacute": (0x01D5, u"\u0150"),
"Ograve": (0x00D2, u"\u00D2"),
"Ohook": (0x1001ECE, u"\u1ECE"),
"Ohorn": (0x10001A0, u"\u01A0"),
"Ohornacute": (0x1001EDA, u"\u1EDA"),
"Ohornbelowdot": (0x1001EE2, u"\u1EE2"),
"Ohorngrave": (0x1001EDC, u"\u1EDC"),
"Ohornhook": (0x1001EDE, u"\u1EDE"),
"Ohorntilde": (0x1001EE0, u"\u1EE0"),
"Omacron": (0x03D2, u"\u014C"),
"Ooblique": (0x00D8, u"\u00D8"),
"Oslash": (0x00D8, u"\u00D8"),
"Otilde": (0x00D5, u"\u00D5"),
"P": (0x0050, u"\u0050"),
"Pabovedot": (0x1001E56, u"\u1E56"),
"PesetaSign": (0x10020A7, u"\u20A7"),
"Q": (0x0051, u"\u0051"),
"R": (0x0052, u"\u0052"),
"Racute": (0x01C0, u"\u0154"),
"Rcaron": (0x01D8, u"\u0158"),
"Rcedilla": (0x03A3, u"\u0156"),
"RupeeSign": (0x10020A8, u"\u20A8"),
"S": (0x0053, u"\u0053"),
"SCHWA": (0x100018F, u"\u018F"),
"Sabovedot": (0x1001E60, u"\u1E60"),
"Sacute": (0x01A6, u"\u015A"),
"Scaron": (0x01A9, u"\u0160"),
"Scedilla": (0x01AA, u"\u015E"),
"Scircumflex": (0x02DE, u"\u015C"),
"Serbian_DJE": (0x06B1, u"\u0402"),
"Serbian_TSHE": (0x06BB, u"\u040B"),
"Serbian_dje": (0x06A1, u"\u0452"),
"Serbian_tshe": (0x06AB, u"\u045B"),
"Sinh_a": (0x1000D85, u"\u0D85"),
"Sinh_aa": (0x1000D86, u"\u0D86"),
"Sinh_aa2": (0x1000DCF, u"\u0DCF"),
"Sinh_ae": (0x1000D87, u"\u0D87"),
"Sinh_ae2": (0x1000DD0, u"\u0DD0"),
"Sinh_aee": (0x1000D88, u"\u0D88"),
"Sinh_aee2": (0x1000DD1, u"\u0DD1"),
"Sinh_ai": (0x1000D93, u"\u0D93"),
"Sinh_ai2": (0x1000DDB, u"\u0DDB"),
"Sinh_al": (0x1000DCA, u"\u0DCA"),
"Sinh_au": (0x1000D96, u"\u0D96"),
"Sinh_au2": (0x1000DDE, u"\u0DDE"),
"Sinh_ba": (0x1000DB6, u"\u0DB6"),
"Sinh_bha": (0x1000DB7, u"\u0DB7"),
"Sinh_ca": (0x1000DA0, u"\u0DA0"),
"Sinh_cha": (0x1000DA1, u"\u0DA1"),
"Sinh_dda": (0x1000DA9, u"\u0DA9"),
"Sinh_ddha": (0x1000DAA, u"\u0DAA"),
"Sinh_dha": (0x1000DAF, u"\u0DAF"),
"Sinh_dhha": (0x1000DB0, u"\u0DB0"),
"Sinh_e": (0x1000D91, u"\u0D91"),
"Sinh_e2": (0x1000DD9, u"\u0DD9"),
"Sinh_ee": (0x1000D92, u"\u0D92"),
"Sinh_ee2": (0x1000DDA, u"\u0DDA"),
"Sinh_fa": (0x1000DC6, u"\u0DC6"),
"Sinh_ga": (0x1000D9C, u"\u0D9C"),
"Sinh_gha": (0x1000D9D, u"\u0D9D"),
"Sinh_h2": (0x1000D83, u"\u0D83"),
"Sinh_ha": (0x1000DC4, u"\u0DC4"),
"Sinh_i": (0x1000D89, u"\u0D89"),
"Sinh_i2": (0x1000DD2, u"\u0DD2"),
"Sinh_ii": (0x1000D8A, u"\u0D8A"),
"Sinh_ii2": (0x1000DD3, u"\u0DD3"),
"Sinh_ja": (0x1000DA2, u"\u0DA2"),
"Sinh_jha": (0x1000DA3, u"\u0DA3"),
"Sinh_jnya": (0x1000DA5, u"\u0DA5"),
"Sinh_ka": (0x1000D9A, u"\u0D9A"),
"Sinh_kha": (0x1000D9B, u"\u0D9B"),
"Sinh_kunddaliya": (0x1000DF4, u"\u0DF4"),
"Sinh_la": (0x1000DBD, u"\u0DBD"),
"Sinh_lla": (0x1000DC5, u"\u0DC5"),
"Sinh_lu": (0x1000D8F, u"\u0D8F"),
"Sinh_lu2": (0x1000DDF, u"\u0DDF"),
"Sinh_luu": (0x1000D90, u"\u0D90"),
"Sinh_luu2": (0x1000DF3, u"\u0DF3"),
"Sinh_ma": (0x1000DB8, u"\u0DB8"),
"Sinh_mba": (0x1000DB9, u"\u0DB9"),
"Sinh_na": (0x1000DB1, u"\u0DB1"),
"Sinh_ndda": (0x1000DAC, u"\u0DAC"),
"Sinh_ndha": (0x1000DB3, u"\u0DB3"),
"Sinh_ng": (0x1000D82, u"\u0D82"),
"Sinh_ng2": (0x1000D9E, u"\u0D9E"),
"Sinh_nga": (0x1000D9F, u"\u0D9F"),
"Sinh_nja": (0x1000DA6, u"\u0DA6"),
"Sinh_nna": (0x1000DAB, u"\u0DAB"),
"Sinh_nya": (0x1000DA4, u"\u0DA4"),
"Sinh_o": (0x1000D94, u"\u0D94"),
"Sinh_o2": (0x1000DDC, u"\u0DDC"),
"Sinh_oo": (0x1000D95, u"\u0D95"),
"Sinh_oo2": (0x1000DDD, u"\u0DDD"),
"Sinh_pa": (0x1000DB4, u"\u0DB4"),
"Sinh_pha": (0x1000DB5, u"\u0DB5"),
"Sinh_ra": (0x1000DBB, u"\u0DBB"),
"Sinh_ri": (0x1000D8D, u"\u0D8D"),
"Sinh_rii": (0x1000D8E, u"\u0D8E"),
"Sinh_ru2": (0x1000DD8, u"\u0DD8"),
"Sinh_ruu2": (0x1000DF2, u"\u0DF2"),
"Sinh_sa": (0x1000DC3, u"\u0DC3"),
"Sinh_sha": (0x1000DC1, u"\u0DC1"),
"Sinh_ssha": (0x1000DC2, u"\u0DC2"),
"Sinh_tha": (0x1000DAD, u"\u0DAD"),
"Sinh_thha": (0x1000DAE, u"\u0DAE"),
"Sinh_tta": (0x1000DA7, u"\u0DA7"),
"Sinh_ttha": (0x1000DA8, u"\u0DA8"),
"Sinh_u": (0x1000D8B, u"\u0D8B"),
"Sinh_u2": (0x1000DD4, u"\u0DD4"),
"Sinh_uu": (0x1000D8C, u"\u0D8C"),
"Sinh_uu2": (0x1000DD6, u"\u0DD6"),
"Sinh_va": (0x1000DC0, u"\u0DC0"),
"Sinh_ya": (0x1000DBA, u"\u0DBA"),
"T": (0x0054, u"\u0054"),
"THORN": (0x00DE, u"\u00DE"),
"Tabovedot": (0x1001E6A, u"\u1E6A"),
"Tcaron": (0x01AB, u"\u0164"),
"Tcedilla": (0x01DE, u"\u0162"),
"Thai_baht": (0x0DDF, u"\u0E3F"),
"Thai_bobaimai": (0x0DBA, u"\u0E1A"),
"Thai_chochan": (0x0DA8, u"\u0E08"),
"Thai_chochang": (0x0DAA, u"\u0E0A"),
"Thai_choching": (0x0DA9, u"\u0E09"),
"Thai_chochoe": (0x0DAC, u"\u0E0C"),
"Thai_dochada": (0x0DAE, u"\u0E0E"),
"Thai_dodek": (0x0DB4, u"\u0E14"),
"Thai_fofa": (0x0DBD, u"\u0E1D"),
"Thai_fofan": (0x0DBF, u"\u0E1F"),
"Thai_hohip": (0x0DCB, u"\u0E2B"),
"Thai_honokhuk": (0x0DCE, u"\u0E2E"),
"Thai_khokhai": (0x0DA2, u"\u0E02"),
"Thai_khokhon": (0x0DA5, u"\u0E05"),
"Thai_khokhuat": (0x0DA3, u"\u0E03"),
"Thai_khokhwai": (0x0DA4, u"\u0E04"),
"Thai_khorakhang": (0x0DA6, u"\u0E06"),
"Thai_kokai": (0x0DA1, u"\u0E01"),
"Thai_lakkhangyao": (0x0DE5, u"\u0E45"),
"Thai_lekchet": (0x0DF7, u"\u0E57"),
"Thai_lekha": (0x0DF5, u"\u0E55"),
"Thai_lekhok": (0x0DF6, u"\u0E56"),
"Thai_lekkao": (0x0DF9, u"\u0E59"),
"Thai_leknung": (0x0DF1, u"\u0E51"),
"Thai_lekpaet": (0x0DF8, u"\u0E58"),
"Thai_leksam": (0x0DF3, u"\u0E53"),
"Thai_leksi": (0x0DF4, u"\u0E54"),
"Thai_leksong": (0x0DF2, u"\u0E52"),
"Thai_leksun": (0x0DF0, u"\u0E50"),
"Thai_lochula": (0x0DCC, u"\u0E2C"),
"Thai_loling": (0x0DC5, u"\u0E25"),
"Thai_lu": (0x0DC6, u"\u0E26"),
"Thai_maichattawa": (0x0DEB, u"\u0E4B"),
"Thai_maiek": (0x0DE8, u"\u0E48"),
"Thai_maihanakat": (0x0DD1, u"\u0E31"),
"Thai_maitaikhu": (0x0DE7, u"\u0E47"),
"Thai_maitho": (0x0DE9, u"\u0E49"),
"Thai_maitri": (0x0DEA, u"\u0E4A"),
"Thai_maiyamok": (0x0DE6, u"\u0E46"),
"Thai_moma": (0x0DC1, u"\u0E21"),
"Thai_ngongu": (0x0DA7, u"\u0E07"),
"Thai_nikhahit": (0x0DED, u"\u0E4D"),
"Thai_nonen": (0x0DB3, u"\u0E13"),
"Thai_nonu": (0x0DB9, u"\u0E19"),
"Thai_oang": (0x0DCD, u"\u0E2D"),
"Thai_paiyannoi": (0x0DCF, u"\u0E2F"),
"Thai_phinthu": (0x0DDA, u"\u0E3A"),
"Thai_phophan": (0x0DBE, u"\u0E1E"),
"Thai_phophung": (0x0DBC, u"\u0E1C"),
"Thai_phosamphao": (0x0DC0, u"\u0E20"),
"Thai_popla": (0x0DBB, u"\u0E1B"),
"Thai_rorua": (0x0DC3, u"\u0E23"),
"Thai_ru": (0x0DC4, u"\u0E24"),
"Thai_saraa": (0x0DD0, u"\u0E30"),
"Thai_saraaa": (0x0DD2, u"\u0E32"),
"Thai_saraae": (0x0DE1, u"\u0E41"),
"Thai_saraaimaimalai": (0x0DE4, u"\u0E44"),
"Thai_saraaimaimuan": (0x0DE3, u"\u0E43"),
"Thai_saraam": (0x0DD3, u"\u0E33"),
"Thai_sarae": (0x0DE0, u"\u0E40"),
"Thai_sarai": (0x0DD4, u"\u0E34"),
"Thai_saraii": (0x0DD5, u"\u0E35"),
"Thai_sarao": (0x0DE2, u"\u0E42"),
"Thai_sarau": (0x0DD8, u"\u0E38"),
"Thai_saraue": (0x0DD6, u"\u0E36"),
"Thai_sarauee": (0x0DD7, u"\u0E37"),
"Thai_sarauu": (0x0DD9, u"\u0E39"),
"Thai_sorusi": (0x0DC9, u"\u0E29"),
"Thai_sosala": (0x0DC8, u"\u0E28"),
"Thai_soso": (0x0DAB, u"\u0E0B"),
"Thai_sosua": (0x0DCA, u"\u0E2A"),
"Thai_thanthakhat": (0x0DEC, u"\u0E4C"),
"Thai_thonangmontho": (0x0DB1, u"\u0E11"),
"Thai_thophuthao": (0x0DB2, u"\u0E12"),
"Thai_thothahan": (0x0DB7, u"\u0E17"),
"Thai_thothan": (0x0DB0, u"\u0E10"),
"Thai_thothong": (0x0DB8, u"\u0E18"),
"Thai_thothung": (0x0DB6, u"\u0E16"),
"Thai_topatak": (0x0DAF, u"\u0E0F"),
"Thai_totao": (0x0DB5, u"\u0E15"),
"Thai_wowaen": (0x0DC7, u"\u0E27"),
"Thai_yoyak": (0x0DC2, u"\u0E22"),
"Thai_yoying": (0x0DAD, u"\u0E0D"),
"Tslash": (0x03AC, u"\u0166"),
"U": (0x0055, u"\u0055"),
"Uacute": (0x00DA, u"\u00DA"),
"Ubelowdot": (0x1001EE4, u"\u1EE4"),
"Ubreve": (0x02DD, u"\u016C"),
"Ucircumflex": (0x00DB, u"\u00DB"),
"Udiaeresis": (0x00DC, u"\u00DC"),
"Udoubleacute": (0x01DB, u"\u0170"),
"Ugrave": (0x00D9, u"\u00D9"),
"Uhook": (0x1001EE6, u"\u1EE6"),
"Uhorn": (0x10001AF, u"\u01AF"),
"Uhornacute": (0x1001EE8, u"\u1EE8"),
"Uhornbelowdot": (0x1001EF0, u"\u1EF0"),
"Uhorngrave": (0x1001EEA, u"\u1EEA"),
"Uhornhook": (0x1001EEC, u"\u1EEC"),
"Uhorntilde": (0x1001EEE, u"\u1EEE"),
"Ukrainian_GHE_WITH_UPTURN": (0x06BD, u"\u0490"),
"Ukrainian_I": (0x06B6, u"\u0406"),
"Ukrainian_IE": (0x06B4, u"\u0404"),
"Ukrainian_YI": (0x06B7, u"\u0407"),
"Ukrainian_ghe_with_upturn": (0x06AD, u"\u0491"),
"Ukrainian_i": (0x06A6, u"\u0456"),
"Ukrainian_ie": (0x06A4, u"\u0454"),
"Ukrainian_yi": (0x06A7, u"\u0457"),
"Umacron": (0x03DE, u"\u016A"),
"Uogonek": (0x03D9, u"\u0172"),
"Uring": (0x01D9, u"\u016E"),
"Utilde": (0x03DD, u"\u0168"),
"V": (0x0056, u"\u0056"),
"W": (0x0057, u"\u0057"),
"Wacute": (0x1001E82, u"\u1E82"),
"Wcircumflex": (0x1000174, u"\u0174"),
"Wdiaeresis": (0x1001E84, u"\u1E84"),
"Wgrave": (0x1001E80, u"\u1E80"),
"WonSign": (0x10020A9, u"\u20A9"),
"X": (0x0058, u"\u0058"),
"Xabovedot": (0x1001E8A, u"\u1E8A"),
"Y": (0x0059, u"\u0059"),
"Yacute": (0x00DD, u"\u00DD"),
"Ybelowdot": (0x1001EF4, u"\u1EF4"),
"Ycircumflex": (0x1000176, u"\u0176"),
"Ydiaeresis": (0x13BE, u"\u0178"),
"Ygrave": (0x1001EF2, u"\u1EF2"),
"Yhook": (0x1001EF6, u"\u1EF6"),
"Ytilde": (0x1001EF8, u"\u1EF8"),
"Z": (0x005A, u"\u005A"),
"Zabovedot": (0x01AF, u"\u017B"),
"Zacute": (0x01AC, u"\u0179"),
"Zcaron": (0x01AE, u"\u017D"),
"Zstroke": (0x10001B5, u"\u01B5"),
"a": (0x0061, u"\u0061"),
"aacute": (0x00E1, u"\u00E1"),
"abelowdot": (0x1001EA1, u"\u1EA1"),
"abovedot": (0x01FF, u"\u02D9"),
"abreve": (0x01E3, u"\u0103"),
"abreveacute": (0x1001EAF, u"\u1EAF"),
"abrevebelowdot": (0x1001EB7, u"\u1EB7"),
"abrevegrave": (0x1001EB1, u"\u1EB1"),
"abrevehook": (0x1001EB3, u"\u1EB3"),
"abrevetilde": (0x1001EB5, u"\u1EB5"),
"acircumflex": (0x00E2, u"\u00E2"),
"acircumflexacute": (0x1001EA5, u"\u1EA5"),
"acircumflexbelowdot": (0x1001EAD, u"\u1EAD"),
"acircumflexgrave": (0x1001EA7, u"\u1EA7"),
"acircumflexhook": (0x1001EA9, u"\u1EA9"),
"acircumflextilde": (0x1001EAB, u"\u1EAB"),
"acute": (0x00B4, u"\u00B4"),
"adiaeresis": (0x00E4, u"\u00E4"),
"ae": (0x00E6, u"\u00E6"),
"agrave": (0x00E0, u"\u00E0"),
"ahook": (0x1001EA3, u"\u1EA3"),
"amacron": (0x03E0, u"\u0101"),
"ampersand": (0x0026, u"\u0026"),
"aogonek": (0x01B1, u"\u0105"),
"apostrophe": (0x0027, u"\u0027"),
"approxeq": (0x1002248, u"\u2245"),
"approximate": (0x08C8, u"\u223C"),
"aring": (0x00E5, u"\u00E5"),
"asciicircum": (0x005E, u"\u005E"),
"asciitilde": (0x007E, u"\u007E"),
"asterisk": (0x002A, u"\u002A"),
"at": (0x0040, u"\u0040"),
"atilde": (0x00E3, u"\u00E3"),
"b": (0x0062, u"\u0062"),
"babovedot": (0x1001E03, u"\u1E03"),
"backslash": (0x005C, u"\u005C"),
"ballotcross": (0x0AF4, u"\u2717"),
"bar": (0x007C, u"\u007C"),
"because": (0x1002235, u"\u2235"),
"botintegral": (0x08A5, u"\u2321"),
"botleftparens": (0x08AC, u"\u239D"),
"botleftsqbracket": (0x08A8, u"\u23A3"),
"botrightparens": (0x08AE, u"\u23A0"),
"botrightsqbracket": (0x08AA, u"\u23A6"),
"bott": (0x09F6, u"\u2534"),
"braceleft": (0x007B, u"\u007B"),
"braceright": (0x007D, u"\u007D"),
"bracketleft": (0x005B, u"\u005B"),
"bracketright": (0x005D, u"\u005D"),
"braille_blank": (0x1002800, u"\u2800"),
"braille_dots_1": (0x1002801, u"\u2801"),
"braille_dots_12": (0x1002803, u"\u2803"),
"braille_dots_123": (0x1002807, u"\u2807"),
"braille_dots_1234": (0x100280F, u"\u280f"),
"braille_dots_12345": (0x100281F, u"\u281f"),
"braille_dots_123456": (0x100283F, u"\u283f"),
"braille_dots_1234567": (0x100287F, u"\u287f"),
"braille_dots_12345678": (0x10028FF, u"\u28ff"),
"braille_dots_1234568": (0x10028BF, u"\u28bf"),
"braille_dots_123457": (0x100285F, u"\u285f"),
"braille_dots_1234578": (0x10028DF, u"\u28df"),
"braille_dots_123458": (0x100289F, u"\u289f"),
"braille_dots_12346": (0x100282F, u"\u282f"),
"braille_dots_123467": (0x100286F, u"\u286f"),
"braille_dots_1234678": (0x10028EF, u"\u28ef"),
"braille_dots_123468": (0x10028AF, u"\u28af"),
"braille_dots_12347": (0x100284F, u"\u284f"),
"braille_dots_123478": (0x10028CF, u"\u28cf"),
"braille_dots_12348": (0x100288F, u"\u288f"),
"braille_dots_1235": (0x1002817, u"\u2817"),
"braille_dots_12356": (0x1002837, u"\u2837"),
"braille_dots_123567": (0x1002877, u"\u2877"),
"braille_dots_1235678": (0x10028F7, u"\u28f7"),
"braille_dots_123568": (0x10028B7, u"\u28b7"),
"braille_dots_12357": (0x1002857, u"\u2857"),
"braille_dots_123578": (0x10028D7, u"\u28d7"),
"braille_dots_12358": (0x1002897, u"\u2897"),
"braille_dots_1236": (0x1002827, u"\u2827"),
"braille_dots_12367": (0x1002867, u"\u2867"),
"braille_dots_123678": (0x10028E7, u"\u28e7"),
"braille_dots_12368": (0x10028A7, u"\u28a7"),
"braille_dots_1237": (0x1002847, u"\u2847"),
"braille_dots_12378": (0x10028C7, u"\u28c7"),
"braille_dots_1238": (0x1002887, u"\u2887"),
"braille_dots_124": (0x100280B, u"\u280b"),
"braille_dots_1245": (0x100281B, u"\u281b"),
"braille_dots_12456": (0x100283B, u"\u283b"),
"braille_dots_124567": (0x100287B, u"\u287b"),
"braille_dots_1245678": (0x10028FB, u"\u28fb"),
"braille_dots_124568": (0x10028BB, u"\u28bb"),
"braille_dots_12457": (0x100285B, u"\u285b"),
"braille_dots_124578": (0x10028DB, u"\u28db"),
"braille_dots_12458": (0x100289B, u"\u289b"),
"braille_dots_1246": (0x100282B, u"\u282b"),
"braille_dots_12467": (0x100286B, u"\u286b"),
"braille_dots_124678": (0x10028EB, u"\u28eb"),
"braille_dots_12468": (0x10028AB, u"\u28ab"),
"braille_dots_1247": (0x100284B, u"\u284b"),
"braille_dots_12478": (0x10028CB, u"\u28cb"),
"braille_dots_1248": (0x100288B, u"\u288b"),
"braille_dots_125": (0x1002813, u"\u2813"),
"braille_dots_1256": (0x1002833, u"\u2833"),
"braille_dots_12567": (0x1002873, u"\u2873"),
"braille_dots_125678": (0x10028F3, u"\u28f3"),
"braille_dots_12568": (0x10028B3, u"\u28b3"),
"braille_dots_1257": (0x1002853, u"\u2853"),
"braille_dots_12578": (0x10028D3, u"\u28d3"),
"braille_dots_1258": (0x1002893, u"\u2893"),
"braille_dots_126": (0x1002823, u"\u2823"),
"braille_dots_1267": (0x1002863, u"\u2863"),
"braille_dots_12678": (0x10028E3, u"\u28e3"),
"braille_dots_1268": (0x10028A3, u"\u28a3"),
"braille_dots_127": (0x1002843, u"\u2843"),
"braille_dots_1278": (0x10028C3, u"\u28c3"),
"braille_dots_128": (0x1002883, u"\u2883"),
"braille_dots_13": (0x1002805, u"\u2805"),
"braille_dots_134": (0x100280D, u"\u280d"),
"braille_dots_1345": (0x100281D, u"\u281d"),
"braille_dots_13456": (0x100283D, u"\u283d"),
"braille_dots_134567": (0x100287D, u"\u287d"),
"braille_dots_1345678": (0x10028FD, u"\u28fd"),
"braille_dots_134568": (0x10028BD, u"\u28bd"),
"braille_dots_13457": (0x100285D, u"\u285d"),
"braille_dots_134578": (0x10028DD, u"\u28dd"),
"braille_dots_13458": (0x100289D, u"\u289d"),
"braille_dots_1346": (0x100282D, u"\u282d"),
"braille_dots_13467": (0x100286D, u"\u286d"),
"braille_dots_134678": (0x10028ED, u"\u28ed"),
"braille_dots_13468": (0x10028AD, u"\u28ad"),
"braille_dots_1347": (0x100284D, u"\u284d"),
"braille_dots_13478": (0x10028CD, u"\u28cd"),
"braille_dots_1348": (0x100288D, u"\u288d"),
"braille_dots_135": (0x1002815, u"\u2815"),
"braille_dots_1356": (0x1002835, u"\u2835"),
"braille_dots_13567": (0x1002875, u"\u2875"),
"braille_dots_135678": (0x10028F5, u"\u28f5"),
"braille_dots_13568": (0x10028B5, u"\u28b5"),
"braille_dots_1357": (0x1002855, u"\u2855"),
"braille_dots_13578": (0x10028D5, u"\u28d5"),
"braille_dots_1358": (0x1002895, u"\u2895"),
"braille_dots_136": (0x1002825, u"\u2825"),
"braille_dots_1367": (0x1002865, u"\u2865"),
"braille_dots_13678": (0x10028E5, u"\u28e5"),
"braille_dots_1368": (0x10028A5, u"\u28a5"),
"braille_dots_137": (0x1002845, u"\u2845"),
"braille_dots_1378": (0x10028C5, u"\u28c5"),
"braille_dots_138": (0x1002885, u"\u2885"),
"braille_dots_14": (0x1002809, u"\u2809"),
"braille_dots_145": (0x1002819, u"\u2819"),
"braille_dots_1456": (0x1002839, u"\u2839"),
"braille_dots_14567": (0x1002879, u"\u2879"),
"braille_dots_145678": (0x10028F9, u"\u28f9"),
"braille_dots_14568": (0x10028B9, u"\u28b9"),
"braille_dots_1457": (0x1002859, u"\u2859"),
"braille_dots_14578": (0x10028D9, u"\u28d9"),
"braille_dots_1458": (0x1002899, u"\u2899"),
"braille_dots_146": (0x1002829, u"\u2829"),
"braille_dots_1467": (0x1002869, u"\u2869"),
"braille_dots_14678": (0x10028E9, u"\u28e9"),
"braille_dots_1468": (0x10028A9, u"\u28a9"),
"braille_dots_147": (0x1002849, u"\u2849"),
"braille_dots_1478": (0x10028C9, u"\u28c9"),
"braille_dots_148": (0x1002889, u"\u2889"),
"braille_dots_15": (0x1002811, u"\u2811"),
"braille_dots_156": (0x1002831, u"\u2831"),
"braille_dots_1567": (0x1002871, u"\u2871"),
"braille_dots_15678": (0x10028F1, u"\u28f1"),
"braille_dots_1568": (0x10028B1, u"\u28b1"),
"braille_dots_157": (0x1002851, u"\u2851"),
"braille_dots_1578": (0x10028D1, u"\u28d1"),
"braille_dots_158": (0x1002891, u"\u2891"),
"braille_dots_16": (0x1002821, u"\u2821"),
"braille_dots_167": (0x1002861, u"\u2861"),
"braille_dots_1678": (0x10028E1, u"\u28e1"),
"braille_dots_168": (0x10028A1, u"\u28a1"),
"braille_dots_17": (0x1002841, u"\u2841"),
"braille_dots_178": (0x10028C1, u"\u28c1"),
"braille_dots_18": (0x1002881, u"\u2881"),
"braille_dots_2": (0x1002802, u"\u2802"),
"braille_dots_23": (0x1002806, u"\u2806"),
"braille_dots_234": (0x100280E, u"\u280e"),
"braille_dots_2345": (0x100281E, u"\u281e"),
"braille_dots_23456": (0x100283E, u"\u283e"),
"braille_dots_234567": (0x100287E, u"\u287e"),
"braille_dots_2345678": (0x10028FE, u"\u28fe"),
"braille_dots_234568": (0x10028BE, u"\u28be"),
"braille_dots_23457": (0x100285E, u"\u285e"),
"braille_dots_234578": (0x10028DE, u"\u28de"),
"braille_dots_23458": (0x100289E, u"\u289e"),
"braille_dots_2346": (0x100282E, u"\u282e"),
"braille_dots_23467": (0x100286E, u"\u286e"),
"braille_dots_234678": (0x10028EE, u"\u28ee"),
"braille_dots_23468": (0x10028AE, u"\u28ae"),
"braille_dots_2347": (0x100284E, u"\u284e"),
"braille_dots_23478": (0x10028CE, u"\u28ce"),
"braille_dots_2348": (0x100288E, u"\u288e"),
"braille_dots_235": (0x1002816, u"\u2816"),
"braille_dots_2356": (0x1002836, u"\u2836"),
"braille_dots_23567": (0x1002876, u"\u2876"),
"braille_dots_235678": (0x10028F6, u"\u28f6"),
"braille_dots_23568": (0x10028B6, u"\u28b6"),
"braille_dots_2357": (0x1002856, u"\u2856"),
"braille_dots_23578": (0x10028D6, u"\u28d6"),
"braille_dots_2358": (0x1002896, u"\u2896"),
"braille_dots_236": (0x1002826, u"\u2826"),
"braille_dots_2367": (0x1002866, u"\u2866"),
"braille_dots_23678": (0x10028E6, u"\u28e6"),
"braille_dots_2368": (0x10028A6, u"\u28a6"),
"braille_dots_237": (0x1002846, u"\u2846"),
"braille_dots_2378": (0x10028C6, u"\u28c6"),
"braille_dots_238": (0x1002886, u"\u2886"),
"braille_dots_24": (0x100280A, u"\u280a"),
"braille_dots_245": (0x100281A, u"\u281a"),
"braille_dots_2456": (0x100283A, u"\u283a"),
"braille_dots_24567": (0x100287A, u"\u287a"),
"braille_dots_245678": (0x10028FA, u"\u28fa"),
"braille_dots_24568": (0x10028BA, u"\u28ba"),
"braille_dots_2457": (0x100285A, u"\u285a"),
"braille_dots_24578": (0x10028DA, u"\u28da"),
"braille_dots_2458": (0x100289A, u"\u289a"),
"braille_dots_246": (0x100282A, u"\u282a"),
"braille_dots_2467": (0x100286A, u"\u286a"),
"braille_dots_24678": (0x10028EA, u"\u28ea"),
"braille_dots_2468": (0x10028AA, u"\u28aa"),
"braille_dots_247": (0x100284A, u"\u284a"),
"braille_dots_2478": (0x10028CA, u"\u28ca"),
"braille_dots_248": (0x100288A, u"\u288a"),
"braille_dots_25": (0x1002812, u"\u2812"),
"braille_dots_256": (0x1002832, u"\u2832"),
"braille_dots_2567": (0x1002872, u"\u2872"),
"braille_dots_25678": (0x10028F2, u"\u28f2"),
"braille_dots_2568": (0x10028B2, u"\u28b2"),
"braille_dots_257": (0x1002852, u"\u2852"),
"braille_dots_2578": (0x10028D2, u"\u28d2"),
"braille_dots_258": (0x1002892, u"\u2892"),
"braille_dots_26": (0x1002822, u"\u2822"),
"braille_dots_267": (0x1002862, u"\u2862"),
"braille_dots_2678": (0x10028E2, u"\u28e2"),
"braille_dots_268": (0x10028A2, u"\u28a2"),
"braille_dots_27": (0x1002842, u"\u2842"),
"braille_dots_278": (0x10028C2, u"\u28c2"),
"braille_dots_28": (0x1002882, u"\u2882"),
"braille_dots_3": (0x1002804, u"\u2804"),
"braille_dots_34": (0x100280C, u"\u280c"),
"braille_dots_345": (0x100281C, u"\u281c"),
"braille_dots_3456": (0x100283C, u"\u283c"),
"braille_dots_34567": (0x100287C, u"\u287c"),
"braille_dots_345678": (0x10028FC, u"\u28fc"),
"braille_dots_34568": (0x10028BC, u"\u28bc"),
"braille_dots_3457": (0x100285C, u"\u285c"),
"braille_dots_34578": (0x10028DC, u"\u28dc"),
"braille_dots_3458": (0x100289C, u"\u289c"),
"braille_dots_346": (0x100282C, u"\u282c"),
"braille_dots_3467": (0x100286C, u"\u286c"),
"braille_dots_34678": (0x10028EC, u"\u28ec"),
"braille_dots_3468": (0x10028AC, u"\u28ac"),
"braille_dots_347": (0x100284C, u"\u284c"),
"braille_dots_3478": (0x10028CC, u"\u28cc"),
"braille_dots_348": (0x100288C, u"\u288c"),
"braille_dots_35": (0x1002814, u"\u2814"),
"braille_dots_356": (0x1002834, u"\u2834"),
"braille_dots_3567": (0x1002874, u"\u2874"),
"braille_dots_35678": (0x10028F4, u"\u28f4"),
"braille_dots_3568": (0x10028B4, u"\u28b4"),
"braille_dots_357": (0x1002854, u"\u2854"),
"braille_dots_3578": (0x10028D4, u"\u28d4"),
"braille_dots_358": (0x1002894, u"\u2894"),
"braille_dots_36": (0x1002824, u"\u2824"),
"braille_dots_367": (0x1002864, u"\u2864"),
"braille_dots_3678": (0x10028E4, u"\u28e4"),
"braille_dots_368": (0x10028A4, u"\u28a4"),
"braille_dots_37": (0x1002844, u"\u2844"),
"braille_dots_378": (0x10028C4, u"\u28c4"),
"braille_dots_38": (0x1002884, u"\u2884"),
"braille_dots_4": (0x1002808, u"\u2808"),
"braille_dots_45": (0x1002818, u"\u2818"),
"braille_dots_456": (0x1002838, u"\u2838"),
"braille_dots_4567": (0x1002878, u"\u2878"),
"braille_dots_45678": (0x10028F8, u"\u28f8"),
"braille_dots_4568": (0x10028B8, u"\u28b8"),
"braille_dots_457": (0x1002858, u"\u2858"),
"braille_dots_4578": (0x10028D8, u"\u28d8"),
"braille_dots_458": (0x1002898, u"\u2898"),
"braille_dots_46": (0x1002828, u"\u2828"),
"braille_dots_467": (0x1002868, u"\u2868"),
"braille_dots_4678": (0x10028E8, u"\u28e8"),
"braille_dots_468": (0x10028A8, u"\u28a8"),
"braille_dots_47": (0x1002848, u"\u2848"),
"braille_dots_478": (0x10028C8, u"\u28c8"),
"braille_dots_48": (0x1002888, u"\u2888"),
"braille_dots_5": (0x1002810, u"\u2810"),
"braille_dots_56": (0x1002830, u"\u2830"),
"braille_dots_567": (0x1002870, u"\u2870"),
"braille_dots_5678": (0x10028F0, u"\u28f0"),
"braille_dots_568": (0x10028B0, u"\u28b0"),
"braille_dots_57": (0x1002850, u"\u2850"),
"braille_dots_578": (0x10028D0, u"\u28d0"),
"braille_dots_58": (0x1002890, u"\u2890"),
"braille_dots_6": (0x1002820, u"\u2820"),
"braille_dots_67": (0x1002860, u"\u2860"),
"braille_dots_678": (0x10028E0, u"\u28e0"),
"braille_dots_68": (0x10028A0, u"\u28a0"),
"braille_dots_7": (0x1002840, u"\u2840"),
"braille_dots_78": (0x10028C0, u"\u28c0"),
"braille_dots_8": (0x1002880, u"\u2880"),
"breve": (0x01A2, u"\u02D8"),
"brokenbar": (0x00A6, u"\u00A6"),
"c": (0x0063, u"\u0063"),
"cabovedot": (0x02E5, u"\u010B"),
"cacute": (0x01E6, u"\u0107"),
"careof": (0x0AB8, u"\u2105"),
"caret": (0x0AFC, u"\u2038"),
"caron": (0x01B7, u"\u02C7"),
"ccaron": (0x01E8, u"\u010D"),
"ccedilla": (0x00E7, u"\u00E7"),
"ccircumflex": (0x02E6, u"\u0109"),
"cedilla": (0x00B8, u"\u00B8"),
"cent": (0x00A2, u"\u00A2"),
"checkerboard": (0x09E1, u"\u2592"),
"checkmark": (0x0AF3, u"\u2713"),
"circle": (0x0BCF, u"\u25CB"),
"club": (0x0AEC, u"\u2663"),
"colon": (0x003A, u"\u003A"),
"comma": (0x002C, u"\u002C"),
"containsas": (0x100220B, u"\u220B"),
"copyright": (0x00A9, u"\u00A9"),
"cr": (0x09E4, u"\u240D"),
"crossinglines": (0x09EE, u"\u253C"),
"cuberoot": (0x100221B, u"\u221B"),
"currency": (0x00A4, u"\u00A4"),
"d": (0x0064, u"\u0064"),
"dabovedot": (0x1001E0B, u"\u1E0B"),
"dagger": (0x0AF1, u"\u2020"),
"dcaron": (0x01EF, u"\u010F"),
"dead_A": (0xFE81, None),
"dead_E": (0xFE83, None),
"dead_I": (0xFE85, None),
"dead_O": (0xFE87, None),
"dead_U": (0xFE89, None),
"dead_a": (0xFE80, None),
"dead_abovecomma": (0xFE64, u"\u0315"),
"dead_abovedot": (0xFE56, u"\u0307"),
"dead_abovereversedcomma": (0xFE65, u"\u0312"),
"dead_abovering": (0xFE58, u"\u030A"),
"dead_aboveverticalline": (0xFE91, u"\u030D"),
"dead_acute": (0xFE51, u"\u0301"),
"dead_belowbreve": (0xFE6B, u"\u032E"),
"dead_belowcircumflex": (0xFE69, u"\u032D"),
"dead_belowcomma": (0xFE6E, u"\u0326"),
"dead_belowdiaeresis": (0xFE6C, u"\u0324"),
"dead_belowdot": (0xFE60, u"\u0323"),
"dead_belowmacron": (0xFE68, u"\u0331"),
"dead_belowring": (0xFE67, u"\u0325"),
"dead_belowtilde": (0xFE6A, u"\u0330"),
"dead_belowverticalline": (0xFE92, u"\u0329"),
"dead_breve": (0xFE55, u"\u0306"),
"dead_capital_schwa": (0xFE8B, None),
"dead_caron": (0xFE5A, u"\u030C"),
"dead_cedilla": (0xFE5B, u"\u0327"),
"dead_circumflex": (0xFE52, u"\u0302"),
"dead_currency": (0xFE6F, None),
"dead_diaeresis": (0xFE57, u"\u0308"),
"dead_doubleacute": (0xFE59, u"\u030B"),
"dead_doublegrave": (0xFE66, u"\u030F"),
"dead_e": (0xFE82, None),
"dead_grave": (0xFE50, u"\u0300"),
"dead_greek": (0xFE8C, None),
"dead_hook": (0xFE61, u"\u0309"),
"dead_horn": (0xFE62, u"\u031B"),
"dead_i": (0xFE84, None),
"dead_invertedbreve": (0xFE6D, u"\u032F"),
"dead_iota": (0xFE5D, u"\u0345"),
"dead_longsolidusoverlay": (0xFE93, u"\u0338"),
"dead_lowline": (0xFE90, u"\u0332"),
"dead_macron": (0xFE54, u"\u0304"),
"dead_o": (0xFE86, None),
"dead_ogonek": (0xFE5C, u"\u0328"),
"dead_semivoiced_sound": (0xFE5F, None),
"dead_small_schwa": (0xFE8A, None),
"dead_stroke": (0xFE63, u"\u0335"),
"dead_tilde": (0xFE53, u"\u0303"),
"dead_u": (0xFE88, None),
"dead_voiced_sound": (0xFE5E, None),
"degree": (0x00B0, u"\u00B0"),
"diaeresis": (0x00A8, u"\u00A8"),
"diamond": (0x0AED, u"\u2666"),
"digitspace": (0x0AA5, u"\u2007"),
"dintegral": (0x100222C, u"\u222C"),
"division": (0x00F7, u"\u00F7"),
"dollar": (0x0024, u"\u0024"),
"doubbaselinedot": (0x0AAF, u"\u2025"),
"doubleacute": (0x01BD, u"\u02DD"),
"doubledagger": (0x0AF2, u"\u2021"),
"doublelowquotemark": (0x0AFE, u"\u201E"),
"downarrow": (0x08FE, u"\u2193"),
"downstile": (0x0BC4, u"\u230A"),
"downtack": (0x0BC2, u"\u22A4"),
"dstroke": (0x01F0, u"\u0111"),
"e": (0x0065, u"\u0065"),
"eabovedot": (0x03EC, u"\u0117"),
"eacute": (0x00E9, u"\u00E9"),
"ebelowdot": (0x1001EB9, u"\u1EB9"),
"ecaron": (0x01EC, u"\u011B"),
"ecircumflex": (0x00EA, u"\u00EA"),
"ecircumflexacute": (0x1001EBF, u"\u1EBF"),
"ecircumflexbelowdot": (0x1001EC7, u"\u1EC7"),
"ecircumflexgrave": (0x1001EC1, u"\u1EC1"),
"ecircumflexhook": (0x1001EC3, u"\u1EC3"),
"ecircumflextilde": (0x1001EC5, u"\u1EC5"),
"ediaeresis": (0x00EB, u"\u00EB"),
"egrave": (0x00E8, u"\u00E8"),
"ehook": (0x1001EBB, u"\u1EBB"),
"eightsubscript": (0x1002088, u"\u2088"),
"eightsuperior": (0x1002078, u"\u2078"),
"elementof": (0x1002208, u"\u2208"),
"ellipsis": (0x0AAE, u"\u2026"),
"em3space": (0x0AA3, u"\u2004"),
"em4space": (0x0AA4, u"\u2005"),
"emacron": (0x03BA, u"\u0113"),
"emdash": (0x0AA9, u"\u2014"),
"emptyset": (0x1002205, u"\u2205"),
"emspace": (0x0AA1, u"\u2003"),
"endash": (0x0AAA, u"\u2013"),
"eng": (0x03BF, u"\u014B"),
"enspace": (0x0AA2, u"\u2002"),
"eogonek": (0x01EA, u"\u0119"),
"equal": (0x003D, u"\u003D"),
"eth": (0x00F0, u"\u00F0"),
"etilde": (0x1001EBD, u"\u1EBD"),
"exclam": (0x0021, u"\u0021"),
"exclamdown": (0x00A1, u"\u00A1"),
"ezh": (0x1000292, u"\u0292"),
"f": (0x0066, u"\u0066"),
"fabovedot": (0x1001E1F, u"\u1E1F"),
"femalesymbol": (0x0AF8, u"\u2640"),
"ff": (0x09E3, u"\u240C"),
"figdash": (0x0ABB, u"\u2012"),
"fiveeighths": (0x0AC5, u"\u215D"),
"fivesixths": (0x0AB7, u"\u215A"),
"fivesubscript": (0x1002085, u"\u2085"),
"fivesuperior": (0x1002075, u"\u2075"),
"fourfifths": (0x0AB5, u"\u2158"),
"foursubscript": (0x1002084, u"\u2084"),
"foursuperior": (0x1002074, u"\u2074"),
"fourthroot": (0x100221C, u"\u221C"),
"function": (0x08F6, u"\u0192"),
"g": (0x0067, u"\u0067"),
"gabovedot": (0x02F5, u"\u0121"),
"gbreve": (0x02BB, u"\u011F"),
"gcaron": (0x10001E7, u"\u01E7"),
"gcedilla": (0x03BB, u"\u0123"),
"gcircumflex": (0x02F8, u"\u011D"),
"grave": (0x0060, u"\u0060"),
"greater": (0x003E, u"\u003E"),
"greaterthanequal": (0x08BE, u"\u2265"),
"guillemotleft": (0x00AB, u"\u00AB"),
"guillemotright": (0x00BB, u"\u00BB"),
"h": (0x0068, u"\u0068"),
"hairspace": (0x0AA8, u"\u200A"),
"hcircumflex": (0x02B6, u"\u0125"),
"heart": (0x0AEE, u"\u2665"),
"hebrew_aleph": (0x0CE0, u"\u05D0"),
"hebrew_ayin": (0x0CF2, u"\u05E2"),
"hebrew_bet": (0x0CE1, u"\u05D1"),
"hebrew_chet": (0x0CE7, u"\u05D7"),
"hebrew_dalet": (0x0CE3, u"\u05D3"),
"hebrew_doublelowline": (0x0CDF, u"\u2017"),
"hebrew_finalkaph": (0x0CEA, u"\u05DA"),
"hebrew_finalmem": (0x0CED, u"\u05DD"),
"hebrew_finalnun": (0x0CEF, u"\u05DF"),
"hebrew_finalpe": (0x0CF3, u"\u05E3"),
"hebrew_finalzade": (0x0CF5, u"\u05E5"),
"hebrew_gimel": (0x0CE2, u"\u05D2"),
"hebrew_he": (0x0CE4, u"\u05D4"),
"hebrew_kaph": (0x0CEB, u"\u05DB"),
"hebrew_lamed": (0x0CEC, u"\u05DC"),
"hebrew_mem": (0x0CEE, u"\u05DE"),
"hebrew_nun": (0x0CF0, u"\u05E0"),
"hebrew_pe": (0x0CF4, u"\u05E4"),
"hebrew_qoph": (0x0CF7, u"\u05E7"),
"hebrew_resh": (0x0CF8, u"\u05E8"),
"hebrew_samech": (0x0CF1, u"\u05E1"),
"hebrew_shin": (0x0CF9, u"\u05E9"),
"hebrew_taw": (0x0CFA, u"\u05EA"),
"hebrew_tet": (0x0CE8, u"\u05D8"),
"hebrew_waw": (0x0CE5, u"\u05D5"),
"hebrew_yod": (0x0CE9, u"\u05D9"),
"hebrew_zade": (0x0CF6, u"\u05E6"),
"hebrew_zain": (0x0CE6, u"\u05D6"),
"horizlinescan1": (0x09EF, u"\u23BA"),
"horizlinescan3": (0x09F0, u"\u23BB"),
"horizlinescan5": (0x09F1, u"\u2500"),
"horizlinescan7": (0x09F2, u"\u23BC"),
"horizlinescan9": (0x09F3, u"\u23BD"),
"hstroke": (0x02B1, u"\u0127"),
"ht": (0x09E2, u"\u2409"),
"hyphen": (0x00AD, u"\u00AD"),
"i": (0x0069, u"\u0069"),
"iacute": (0x00ED, u"\u00ED"),
"ibelowdot": (0x1001ECB, u"\u1ECB"),
"ibreve": (0x100012D, u"\u012D"),
"icircumflex": (0x00EE, u"\u00EE"),
"identical": (0x08CF, u"\u2261"),
"idiaeresis": (0x00EF, u"\u00EF"),
"idotless": (0x02B9, u"\u0131"),
"ifonlyif": (0x08CD, u"\u21D4"),
"igrave": (0x00EC, u"\u00EC"),
"ihook": (0x1001EC9, u"\u1EC9"),
"imacron": (0x03EF, u"\u012B"),
"implies": (0x08CE, u"\u21D2"),
"includedin": (0x08DA, u"\u2282"),
"includes": (0x08DB, u"\u2283"),
"infinity": (0x08C2, u"\u221E"),
"integral": (0x08BF, u"\u222B"),
"intersection": (0x08DC, u"\u2229"),
"iogonek": (0x03E7, u"\u012F"),
"itilde": (0x03B5, u"\u0129"),
"j": (0x006A, u"\u006A"),
"jcircumflex": (0x02BC, u"\u0135"),
"jot": (0x0BCA, u"\u2218"),
"k": (0x006B, u"\u006B"),
"kana_A": (0x04B1, u"\u30A2"),
"kana_CHI": (0x04C1, u"\u30C1"),
"kana_E": (0x04B4, u"\u30A8"),
"kana_FU": (0x04CC, u"\u30D5"),
"kana_HA": (0x04CA, u"\u30CF"),
"kana_HE": (0x04CD, u"\u30D8"),
"kana_HI": (0x04CB, u"\u30D2"),
"kana_HO": (0x04CE, u"\u30DB"),
"kana_I": (0x04B2, u"\u30A4"),
"kana_KA": (0x04B6, u"\u30AB"),
"kana_KE": (0x04B9, u"\u30B1"),
"kana_KI": (0x04B7, u"\u30AD"),
"kana_KO": (0x04BA, u"\u30B3"),
"kana_KU": (0x04B8, u"\u30AF"),
"kana_MA": (0x04CF, u"\u30DE"),
"kana_ME": (0x04D2, u"\u30E1"),
"kana_MI": (0x04D0, u"\u30DF"),
"kana_MO": (0x04D3, u"\u30E2"),
"kana_MU": (0x04D1, u"\u30E0"),
"kana_N": (0x04DD, u"\u30F3"),
"kana_NA": (0x04C5, u"\u30CA"),
"kana_NE": (0x04C8, u"\u30CD"),
"kana_NI": (0x04C6, u"\u30CB"),
"kana_NO": (0x04C9, u"\u30CE"),
"kana_NU": (0x04C7, u"\u30CC"),
"kana_O": (0x04B5, u"\u30AA"),
"kana_RA": (0x04D7, u"\u30E9"),
"kana_RE": (0x04DA, u"\u30EC"),
"kana_RI": (0x04D8, u"\u30EA"),
"kana_RO": (0x04DB, u"\u30ED"),
"kana_RU": (0x04D9, u"\u30EB"),
"kana_SA": (0x04BB, u"\u30B5"),
"kana_SE": (0x04BE, u"\u30BB"),
"kana_SHI": (0x04BC, u"\u30B7"),
"kana_SO": (0x04BF, u"\u30BD"),
"kana_SU": (0x04BD, u"\u30B9"),
"kana_TA": (0x04C0, u"\u30BF"),
"kana_TE": (0x04C3, u"\u30C6"),
"kana_TO": (0x04C4, u"\u30C8"),
"kana_TSU": (0x04C2, u"\u30C4"),
"kana_U": (0x04B3, u"\u30A6"),
"kana_WA": (0x04DC, u"\u30EF"),
"kana_WO": (0x04A6, u"\u30F2"),
"kana_YA": (0x04D4, u"\u30E4"),
"kana_YO": (0x04D6, u"\u30E8"),
"kana_YU": (0x04D5, u"\u30E6"),
"kana_a": (0x04A7, u"\u30A1"),
"kana_closingbracket": (0x04A3, u"\u300D"),
"kana_comma": (0x04A4, u"\u3001"),
"kana_conjunctive": (0x04A5, u"\u30FB"),
"kana_e": (0x04AA, u"\u30A7"),
"kana_fullstop": (0x04A1, u"\u3002"),
"kana_i": (0x04A8, u"\u30A3"),
"kana_o": (0x04AB, u"\u30A9"),
"kana_openingbracket": (0x04A2, u"\u300C"),
"kana_tsu": (0x04AF, u"\u30C3"),
"kana_u": (0x04A9, u"\u30A5"),
"kana_ya": (0x04AC, u"\u30E3"),
"kana_yo": (0x04AE, u"\u30E7"),
"kana_yu": (0x04AD, u"\u30E5"),
"kcedilla": (0x03F3, u"\u0137"),
"kra": (0x03A2, u"\u0138"),
"l": (0x006C, u"\u006C"),
"lacute": (0x01E5, u"\u013A"),
"latincross": (0x0AD9, u"\u271D"),
"lbelowdot": (0x1001E37, u"\u1E37"),
"lcaron": (0x01B5, u"\u013E"),
"lcedilla": (0x03B6, u"\u013C"),
"leftarrow": (0x08FB, u"\u2190"),
"leftdoublequotemark": (0x0AD2, u"\u201C"),
"leftmiddlecurlybrace": (0x08AF, u"\u23A8"),
"leftradical": (0x08A1, u"\u23B7"),
"leftsinglequotemark": (0x0AD0, u"\u2018"),
"leftt": (0x09F4, u"\u251C"),
"lefttack": (0x0BDC, u"\u22A3"),
"less": (0x003C, u"\u003C"),
"lessthanequal": (0x08BC, u"\u2264"),
"lf": (0x09E5, u"\u240A"),
"logicaland": (0x08DE, u"\u2227"),
"logicalor": (0x08DF, u"\u2228"),
"lowleftcorner": (0x09ED, u"\u2514"),
"lowrightcorner": (0x09EA, u"\u2518"),
"lstroke": (0x01B3, u"\u0142"),
"m": (0x006D, u"\u006D"),
"mabovedot": (0x1001E41, u"\u1E41"),
"macron": (0x00AF, u"\u00AF"),
"malesymbol": (0x0AF7, u"\u2642"),
"maltesecross": (0x0AF0, u"\u2720"),
"masculine": (0x00BA, u"\u00BA"),
"minus": (0x002D, u"\u002D"),
"minutes": (0x0AD6, u"\u2032"),
"mu": (0x00B5, u"\u00B5"),
"multiply": (0x00D7, u"\u00D7"),
"musicalflat": (0x0AF6, u"\u266D"),
"musicalsharp": (0x0AF5, u"\u266F"),
"n": (0x006E, u"\u006E"),
"nabla": (0x08C5, u"\u2207"),
"nacute": (0x01F1, u"\u0144"),
"ncaron": (0x01F2, u"\u0148"),
"ncedilla": (0x03F1, u"\u0146"),
"ninesubscript": (0x1002089, u"\u2089"),
"ninesuperior": (0x1002079, u"\u2079"),
"nl": (0x09E8, u"\u2424"),
"nobreakspace": (0x00A0, u"\u00A0"),
"notapproxeq": (0x1002247, u"\u2247"),
"notelementof": (0x1002209, u"\u2209"),
"notequal": (0x08BD, u"\u2260"),
"notidentical": (0x1002262, u"\u2262"),
"notsign": (0x00AC, u"\u00AC"),
"ntilde": (0x00F1, u"\u00F1"),
"numbersign": (0x0023, u"\u0023"),
"numerosign": (0x06B0, u"\u2116"),
"o": (0x006F, u"\u006F"),
"oacute": (0x00F3, u"\u00F3"),
"obarred": (0x1000275, u"\u0275"),
"obelowdot": (0x1001ECD, u"\u1ECD"),
"ocaron": (0x10001D2, u"\u01D2"),
"ocircumflex": (0x00F4, u"\u00F4"),
"ocircumflexacute": (0x1001ED1, u"\u1ED1"),
"ocircumflexbelowdot": (0x1001ED9, u"\u1ED9"),
"ocircumflexgrave": (0x1001ED3, u"\u1ED3"),
"ocircumflexhook": (0x1001ED5, u"\u1ED5"),
"ocircumflextilde": (0x1001ED7, u"\u1ED7"),
"odiaeresis": (0x00F6, u"\u00F6"),
"odoubleacute": (0x01F5, u"\u0151"),
"oe": (0x13BD, u"\u0153"),
"ogonek": (0x01B2, u"\u02DB"),
"ograve": (0x00F2, u"\u00F2"),
"ohook": (0x1001ECF, u"\u1ECF"),
"ohorn": (0x10001A1, u"\u01A1"),
"ohornacute": (0x1001EDB, u"\u1EDB"),
"ohornbelowdot": (0x1001EE3, u"\u1EE3"),
"ohorngrave": (0x1001EDD, u"\u1EDD"),
"ohornhook": (0x1001EDF, u"\u1EDF"),
"ohorntilde": (0x1001EE1, u"\u1EE1"),
"omacron": (0x03F2, u"\u014D"),
"oneeighth": (0x0AC3, u"\u215B"),
"onefifth": (0x0AB2, u"\u2155"),
"onehalf": (0x00BD, u"\u00BD"),
"onequarter": (0x00BC, u"\u00BC"),
"onesixth": (0x0AB6, u"\u2159"),
"onesubscript": (0x1002081, u"\u2081"),
"onesuperior": (0x00B9, u"\u00B9"),
"onethird": (0x0AB0, u"\u2153"),
"ooblique": (0x00F8, u"\u00F8"),
"ordfeminine": (0x00AA, u"\u00AA"),
"oslash": (0x00F8, u"\u00F8"),
"otilde": (0x00F5, u"\u00F5"),
"overline": (0x047E, u"\u203E"),
"p": (0x0070, u"\u0070"),
"pabovedot": (0x1001E57, u"\u1E57"),
"paragraph": (0x00B6, u"\u00B6"),
"parenleft": (0x0028, u"\u0028"),
"parenright": (0x0029, u"\u0029"),
"partdifferential": (0x1002202, u"\u2202"),
"partialderivative": (0x08EF, u"\u2202"),
"percent": (0x0025, u"\u0025"),
"period": (0x002E, u"\u002E"),
"periodcentered": (0x00B7, u"\u00B7"),
"permille": (0x0AD5, u"\u2030"),
"phonographcopyright": (0x0AFB, u"\u2117"),
"plus": (0x002B, u"\u002B"),
"plusminus": (0x00B1, u"\u00B1"),
"prescription": (0x0AD4, u"\u211E"),
"prolongedsound": (0x04B0, u"\u30FC"),
"punctspace": (0x0AA6, u"\u2008"),
"q": (0x0071, u"\u0071"),
"quad": (0x0BCC, u"\u2395"),
"question": (0x003F, u"\u003F"),
"questiondown": (0x00BF, u"\u00BF"),
"quotedbl": (0x0022, u"\u0022"),
"r": (0x0072, u"\u0072"),
"racute": (0x01E0, u"\u0155"),
"radical": (0x08D6, u"\u221A"),
"rcaron": (0x01F8, u"\u0159"),
"rcedilla": (0x03B3, u"\u0157"),
"registered": (0x00AE, u"\u00AE"),
"rightarrow": (0x08FD, u"\u2192"),
"rightdoublequotemark": (0x0AD3, u"\u201D"),
"rightmiddlecurlybrace": (0x08B0, u"\u23AC"),
"rightsinglequotemark": (0x0AD1, u"\u2019"),
"rightt": (0x09F5, u"\u2524"),
"righttack": (0x0BFC, u"\u22A2"),
"s": (0x0073, u"\u0073"),
"sabovedot": (0x1001E61, u"\u1E61"),
"sacute": (0x01B6, u"\u015B"),
"scaron": (0x01B9, u"\u0161"),
"scedilla": (0x01BA, u"\u015F"),
"schwa": (0x1000259, u"\u0259"),
"scircumflex": (0x02FE, u"\u015D"),
"seconds": (0x0AD7, u"\u2033"),
"section": (0x00A7, u"\u00A7"),
"semicolon": (0x003B, u"\u003B"),
"semivoicedsound": (0x04DF, u"\u309C"),
"seveneighths": (0x0AC6, u"\u215E"),
"sevensubscript": (0x1002087, u"\u2087"),
"sevensuperior": (0x1002077, u"\u2077"),
"similarequal": (0x08C9, u"\u2243"),
"singlelowquotemark": (0x0AFD, u"\u201A"),
"sixsubscript": (0x1002086, u"\u2086"),
"sixsuperior": (0x1002076, u"\u2076"),
"slash": (0x002F, u"\u002F"),
"soliddiamond": (0x09E0, u"\u25C6"),
"space": (0x0020, u"\u0020"),
"squareroot": (0x100221A, u"\u221A"),
"ssharp": (0x00DF, u"\u00DF"),
"sterling": (0x00A3, u"\u00A3"),
"stricteq": (0x1002263, u"\u2263"),
"t": (0x0074, u"\u0074"),
"tabovedot": (0x1001E6B, u"\u1E6B"),
"tcaron": (0x01BB, u"\u0165"),
"tcedilla": (0x01FE, u"\u0163"),
"telephone": (0x0AF9, u"\u260E"),
"telephonerecorder": (0x0AFA, u"\u2315"),
"therefore": (0x08C0, u"\u2234"),
"thinspace": (0x0AA7, u"\u2009"),
"thorn": (0x00FE, u"\u00FE"),
"threeeighths": (0x0AC4, u"\u215C"),
"threefifths": (0x0AB4, u"\u2157"),
"threequarters": (0x00BE, u"\u00BE"),
"threesubscript": (0x1002083, u"\u2083"),
"threesuperior": (0x00B3, u"\u00B3"),
"tintegral": (0x100222D, u"\u222D"),
"topintegral": (0x08A4, u"\u2320"),
"topleftparens": (0x08AB, u"\u239B"),
"topleftsqbracket": (0x08A7, u"\u23A1"),
"toprightparens": (0x08AD, u"\u239E"),
"toprightsqbracket": (0x08A9, u"\u23A4"),
"topt": (0x09F7, u"\u252C"),
"trademark": (0x0AC9, u"\u2122"),
"tslash": (0x03BC, u"\u0167"),
"twofifths": (0x0AB3, u"\u2156"),
"twosubscript": (0x1002082, u"\u2082"),
"twosuperior": (0x00B2, u"\u00B2"),
"twothirds": (0x0AB1, u"\u2154"),
"u": (0x0075, u"\u0075"),
"uacute": (0x00FA, u"\u00FA"),
"ubelowdot": (0x1001EE5, u"\u1EE5"),
"ubreve": (0x02FD, u"\u016D"),
"ucircumflex": (0x00FB, u"\u00FB"),
"udiaeresis": (0x00FC, u"\u00FC"),
"udoubleacute": (0x01FB, u"\u0171"),
"ugrave": (0x00F9, u"\u00F9"),
"uhook": (0x1001EE7, u"\u1EE7"),
"uhorn": (0x10001B0, u"\u01B0"),
"uhornacute": (0x1001EE9, u"\u1EE9"),
"uhornbelowdot": (0x1001EF1, u"\u1EF1"),
"uhorngrave": (0x1001EEB, u"\u1EEB"),
"uhornhook": (0x1001EED, u"\u1EED"),
"uhorntilde": (0x1001EEF, u"\u1EEF"),
"umacron": (0x03FE, u"\u016B"),
"underscore": (0x005F, u"\u005F"),
"union": (0x08DD, u"\u222A"),
"uogonek": (0x03F9, u"\u0173"),
"uparrow": (0x08FC, u"\u2191"),
"upleftcorner": (0x09EC, u"\u250C"),
"uprightcorner": (0x09EB, u"\u2510"),
"upstile": (0x0BD3, u"\u2308"),
"uptack": (0x0BCE, u"\u22A5"),
"uring": (0x01F9, u"\u016F"),
"utilde": (0x03FD, u"\u0169"),
"v": (0x0076, u"\u0076"),
"variation": (0x08C1, u"\u221D"),
"vertbar": (0x09F8, u"\u2502"),
"voicedsound": (0x04DE, u"\u309B"),
"vt": (0x09E9, u"\u240B"),
"w": (0x0077, u"\u0077"),
"wacute": (0x1001E83, u"\u1E83"),
"wcircumflex": (0x1000175, u"\u0175"),
"wdiaeresis": (0x1001E85, u"\u1E85"),
"wgrave": (0x1001E81, u"\u1E81"),
"x": (0x0078, u"\u0078"),
"xabovedot": (0x1001E8B, u"\u1E8B"),
"y": (0x0079, u"\u0079"),
"yacute": (0x00FD, u"\u00FD"),
"ybelowdot": (0x1001EF5, u"\u1EF5"),
"ycircumflex": (0x1000177, u"\u0177"),
"ydiaeresis": (0x00FF, u"\u00FF"),
"yen": (0x00A5, u"\u00A5"),
"ygrave": (0x1001EF3, u"\u1EF3"),
"yhook": (0x1001EF7, u"\u1EF7"),
"ytilde": (0x1001EF9, u"\u1EF9"),
"z": (0x007A, u"\u007A"),
"zabovedot": (0x01BF, u"\u017C"),
"zacute": (0x01BC, u"\u017A"),
"zcaron": (0x01BE, u"\u017E"),
"zerosubscript": (0x1002080, u"\u2080"),
"zerosuperior": (0x1002070, u"\u2070"),
"zstroke": (0x10001B6, u"\u01B6"),
}
DEAD_KEYS = {
u"\u0307": u"\u02D9",
u"\u030A": u"\u02DA",
u"\u0301": u"\u00B4",
u"\u0306": u"\u02D8",
u"\u030C": u"\u02C7",
u"\u0327": u"\u00B8",
u"\u0302": u"\u005E",
u"\u0308": u"\u00A8",
u"\u030B": u"\u02DD",
u"\u0300": u"\u0060",
u"\u0345": u"\u037A",
u"\u0332": u"\u005F",
u"\u0304": u"\u00AF",
u"\u0328": u"\u02DB",
u"\u0303": u"\u007E",
}
KEYPAD_KEYS = {
"KP_0": 0xFFB0,
"KP_1": 0xFFB1,
"KP_2": 0xFFB2,
"KP_3": 0xFFB3,
"KP_4": 0xFFB4,
"KP_5": 0xFFB5,
"KP_6": 0xFFB6,
"KP_7": 0xFFB7,
"KP_8": 0xFFB8,
"KP_9": 0xFFB9,
"KP_Add": 0xFFAB,
"KP_Begin": 0xFF9D,
"KP_Decimal": 0xFFAE,
"KP_Delete": 0xFF9F,
"KP_Divide": 0xFFAF,
"KP_Down": 0xFF99,
"KP_End": 0xFF9C,
"KP_Enter": 0xFF8D,
"KP_Equal": 0xFFBD,
"KP_F1": 0xFF91,
"KP_F2": 0xFF92,
"KP_F3": 0xFF93,
"KP_F4": 0xFF94,
"KP_Home": 0xFF95,
"KP_Insert": 0xFF9E,
"KP_Left": 0xFF96,
"KP_Multiply": 0xFFAA,
"KP_Next": 0xFF9B,
"KP_Page_Down": 0xFF9B,
"KP_Page_Up": 0xFF9A,
"KP_Prior": 0xFF9A,
"KP_Right": 0xFF98,
"KP_Separator": 0xFFAC,
"KP_Space": 0xFF80,
"KP_Subtract": 0xFFAD,
"KP_Tab": 0xFF89,
"KP_Up": 0xFF97,
}
CHARS = {codepoint: name for name, (keysym, codepoint) in SYMBOLS.items() if codepoint}
KEYSYMS = {keysym: name for name, (keysym, codepoint) in SYMBOLS.items() if codepoint}
|
class Command(object):
"""
This class is used to generate SQL commands. It must be the only place where
SQL commands are defined and created. If new commands must be created, it
must be added in this class.
"""
def insert(self, table: str, values: list):
"""
This method returns SQL insert commands. It avoids SQL Injection by
(1) using positional arguments when creating the INSERT command and
(2) it is used in main SQL writer by injection the main routine doesn't
have direct access to this class.
Reference: https://realpython.com/prevent-python-sql-injection/
:param table: The table name where data will be inserted
:param values: A list with tuples (column, value)
:return: The insert command to add values into database
"""
if not self.__list_validation(values):
raise AttributeError
sql_insert_cols = "("
sql_insert_cols += ", ".join(map(lambda x: str(x[0]), values))
sql_insert_cols += ")"
sql_insert_val = "("
sql_insert_val += ", ".join(map(lambda x: "\'{}\'".format(str(x[1])),
values))
sql_insert_val += ")"
return "INSERT INTO {} {} VALUES {}".format(table, sql_insert_cols,
sql_insert_val)
def __list_validation(self, values: list) -> bool:
"""
This method is used to validate the list used as input to the SQL
generator.
:param values: A list with tuples (column, value)
:return: True if the list is fine, False otherwise
"""
if len(values) == 0:
return False
for value in values:
col_name, value = value
if len(col_name) == 0 or len(value) == 0:
return False
return True
|
#!/usr/bin/env python
'''@package docstring
Just a giant list of processes and properties
'''
processes = {
'DY1JetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DY1JetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',729.726349),
'DY2JetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DY2JetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',387.472359),
'DY3JetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DY3JetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',95.033555),
'DY4JetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DY4JetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',36.698502),
'DY1JetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DY1JetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',1012.296845),
'DY2JetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DY2JetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',334.717838),
'DY3JetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DY3JetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',102.462800),
'DY4JetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DY4JetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',54.481360),
'DYJetsToLL_Zpt-0To50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8' :('DYJetsToLL_Zpt-0To50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC' ,5512.4400),
'DYJetsToLL_Pt-50To100_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8' :('DYJetsToLL_Pt-50To100_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC' , 374.6800),
'DYJetsToLL_Pt-100To250_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8':('DYJetsToLL_Pt-100To250_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC', 86.5200),
'DYJetsToLL_Pt-250To400_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8':('DYJetsToLL_Pt-250To400_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC', 3.3247),
'DYJetsToLL_Pt-400To650_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8':('DYJetsToLL_Pt-400To650_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC', 0.4491),
'DYJetsToLL_Pt-650ToInf_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8':('DYJetsToLL_Pt-650ToInf_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC', 0.0422),
'DYJetsToTauTau_ForcedMuEleDecay_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8':('DYJetsToTauTau_ForcedMuEleDecay_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC',2008.4*(0.1739+0.1782)*(0.1739+0.1782)),
'DYJetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DYJetsToLL_M-10to50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',2008.4*3*3.78),
'DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8':('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC',2008.4*3),
'DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',2008.4*3),
'DYJetsToLL_Zpt-100to200_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DYJetsToLL_Zpt-100to200_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',69.586),
'DYJetsToLL_Zpt-200toInf_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('DYJetsToLL_Zpt-200toInf_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',8.186),
'ZToMuMu_NNPDF30_13TeV-powheg_M_50_120':('ZToMuMu_NNPDF30_13TeV-powheg_M_50_120','MC',1975),
'ZToEE_NNPDF30_13TeV-powheg_M_50_120':('ZToEE_NNPDF30_13TeV-powheg_M_50_120','MC',1975),
'ZToMuMu_NNPDF30_13TeV-powheg_M_120_200':('ZToMuMu_NNPDF30_13TeV-powheg_M_120_200','MC',19.32),
'ZToEE_NNPDF30_13TeV-powheg_M_120_200':('ZToEE_NNPDF30_13TeV-powheg_M_120_200','MC',19.32),
'tZq_ll_4f_13TeV-amcatnlo-pythia8':('tZq_ll_4f_13TeV-amcatnlo-pythia8','MC',0.0758),
'tZq_nunu_4f_13TeV-amcatnlo-pythia8_TuneCUETP8M1':('tZq_nunu_4f_13TeV-amcatnlo-pythia8_TuneCUETP8M1','MC',0.1379),
'ZZTo2L2Nu_13TeV_powheg_pythia8':('ZZTo2L2Nu_13TeV_powheg_pythia8','MC',0.564),
'ZZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8':('ZZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8','MC',3.220*1.1),
'ZZTo4L_13TeV_powheg_pythia8':('ZZTo4L_13TeV_powheg_pythia8','MC',1.256),
'GluGluToContinToZZTo2e2mu_13TeV_MCFM701_pythia8':('GluGluToContinToZZTo2e2mu_13TeV_MCFM701_pythia8','MC',0.003194*2.3),
'GluGluToContinToZZTo2e2tau_13TeV_MCFM701_pythia8':('GluGluToContinToZZTo2e2tau_13TeV_MCFM701_pythia8','MC',0.003194*2.3),
'GluGluToContinToZZTo2mu2tau_13TeV_MCFM701_pythia8':('GluGluToContinToZZTo2mu2tau_13TeV_MCFM701_pythia8','MC',0.003194*2.3),
'GluGluToContinToZZTo4e_13TeV_MCFM701_pythia8':('GluGluToContinToZZTo4e_13TeV_MCFM701_pythia8','MC',0.001586*2.3),
'GluGluToContinToZZTo4mu_13TeV_MCFM701_pythia8':('GluGluToContinToZZTo4mu_13TeV_MCFM701_pythia8','MC',0.001586*2.3),
'GluGluToContinToZZTo4tau_13TeV_MCFM701_pythia8':('GluGluToContinToZZTo4tau_13TeV_MCFM701_pythia8','MC',0.001586*2.3),
'GluGluToContinToZZTo2e2nu_13TeV_MCFM701_pythia8':('GluGluToContinToZZTo2e2nu_13TeV_MCFM701_pythia8','MC',0.001720*2.3),
'GluGluToContinToZZTo2mu2nu_13TeV_MCFM701_pythia8':('GluGluToContinToZZTo2mu2nu_13TeV_MCFM701_pythia8','MC',0.001720*2.3),
'GluGluHToZZTo4L_M125_13TeV_powheg2_JHUgenV6_pythia8':('GluGluHToZZTo4L_M125_13TeV_powheg2_JHUgenV6_pythia8','MC',48.580*0.0264*0.101*0.101),
'VBF_HToZZTo4L_M125_13TeV_powheg2_JHUgenV6_pythia8':('VBF_HToZZTo4L_M125_13TeV_powheg2_JHUgenV6_pythia8','MC',3.7820*0.0264*0.101*0.101),
'GluGluHToWWTo2L2Nu_M125_13TeV_powheg_JHUgen_pythia8':('GluGluHToWWTo2L2Nu_M125_13TeV_powheg_JHUgen_pythia8','MC',48.580*0.2150*0.1086*0.1086*9),
'VBFHToWWTo2L2Nu_M125_13TeV_powheg_JHUgenv628_pythia8':('VBFHToWWTo2L2Nu_M125_13TeV_powheg_JHUgenv628_pythia8','MC',3.7820*0.2150*0.1086*0.1086*9),
'GluGluHToTauTau_M125_13TeV_powheg_pythia8':('GluGluHToTauTau_M125_13TeV_powheg_pythia8','MC',48.580*0.0632),
'VBFHToTauTau_M125_13TeV_powheg_pythia8':('VBFHToTauTau_M125_13TeV_powheg_pythia8','MC',3.7820*0.0632),
'ttHToNonbb_M125_TuneCUETP8M2_ttHtranche3_13TeV-powheg-pythia8':('ttHToNonbb_M125_TuneCUETP8M2_ttHtranche3_13TeV-powheg-pythia8','MC',0.5071*(1-0.577)),
'VHToNonbb_M125_13TeV_amcatnloFXFX_madspin_pythia8':('VHToNonbb_M125_13TeV_amcatnloFXFX_madspin_pythia8','MC',(0.8839+0.8400+0.5328)*(1-0.577)),
'WWW_4F_TuneCUETP8M1_13TeV-amcatnlo-pythia8':('WWW_4F_TuneCUETP8M1_13TeV-amcatnlo-pythia8','MC',0.2086),
'WWZ_TuneCUETP8M1_13TeV-amcatnlo-pythia8':('WWZ_TuneCUETP8M1_13TeV-amcatnlo-pythia8','MC',0.16510),
'WZZ_TuneCUETP8M1_13TeV-amcatnlo-pythia8':('WZZ_TuneCUETP8M1_13TeV-amcatnlo-pythia8','MC',0.05565),
'ZZZ_TuneCUETP8M1_13TeV-amcatnlo-pythia8':('ZZZ_TuneCUETP8M1_13TeV-amcatnlo-pythia8','MC',0.01398),
'WWG_TuneCUETP8M1_13TeV-amcatnlo-pythia8':('WWG_TuneCUETP8M1_13TeV-amcatnlo-pythia8','MC',0.2147)
,
'WZTo1L1Nu2Q_13TeV_amcatnloFXFX_madspin_pythia8':('WZTo1L1Nu2Q_13TeV_amcatnloFXFX_madspin_pythia8','MC',10.71*1.109),
'WZTo1L3Nu_13TeV_amcatnloFXFX_madspin_pythia8':('WZTo1L3Nu_13TeV_amcatnloFXFX_madspin_pythia8','MC',3.033*1.109),
'WZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8':('WZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8','MC',5.595*1.109),
'WZTo3LNu_TuneCUETP8M1_13TeV-powheg-pythia8':('WZTo3LNu_TuneCUETP8M1_13TeV-powheg-pythia8','MC',4.42965*1.109),
'WWTo2L2Nu_13TeV-powheg':('WWTo2L2Nu_13TeV-powheg','MC',(118.7-3.974)*0.1086*0.1086*9),
'WWTo2L2Nu_DoubleScattering_13TeV-pythia8':('WWTo2L2Nu_DoubleScattering_13TeV-pythia8','MC',0.1729),
'GluGluWWTo2L2Nu_MCFM_13TeV':('GluGluWWTo2L2Nu_MCFM_13TeV','MC',3.974*0.1086*0.1086*9*1.4),
'WpWpJJ_EWK-QCD_TuneCUETP8M1_13TeV-madgraph-pythia8':('WpWpJJ_EWK-QCD_TuneCUETP8M1_13TeV-madgraph-pythia8','MC',0.0538980),
'WpWpJJ_EWK_TuneCUETP8M1_13TeV-madgraph-pythia8':('WpWpJJ_EWK_TuneCUETP8M1_13TeV-madgraph-pythia8','MC',0.0269642),
'WpWpJJ_QCD_TuneCUETP8M1_13TeV-madgraph-pythia8':('WpWpJJ_QCD_TuneCUETP8M1_13TeV-madgraph-pythia8','MC',0.0261515),
'TTGJets_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8':('TTGJets_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8','MC',1.444*3.2),
'TTZToLLNuNu_M-10_TuneCUETP8M1_13TeV-amcatnlo-pythia8':('TTZToLLNuNu_M-10_TuneCUETP8M1_13TeV-amcatnlo-pythia8','MC',0.2529),
'TTZToQQ_TuneCUETP8M1_13TeV-amcatnlo-pythia8':('TTZToQQ_TuneCUETP8M1_13TeV-amcatnlo-pythia8','MC',0.5297),
'TTWJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8':('TTWJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8','MC',0.2043),
'TTWJetsToQQ_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8':('TTWJetsToQQ_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8','MC',0.4062),
'TTTo2L2Nu_TuneCUETP8M2_ttHtranche3_13TeV-powheg-pythia8':('TTTo2L2Nu_TuneCUETP8M2_ttHtranche3_13TeV-powheg-pythia8','MC',831.76*0.1086*0.1086*9),
'ST_tW_antitop_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1':('ST_tW_antitop_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1','MC',35.6),
'ST_tW_top_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1':('ST_tW_top_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1','MC',35.6),
'WGstarToLNuEE_012Jets_13TeV-madgraph':('WGstarToLNuEE_012Jets_13TeV-madgraph','MC',3.526),
'WGstarToLNuMuMu_012Jets_13TeV-madgraph':('WGstarToLNuMuMu_012Jets_13TeV-madgraph','MC',2.793),
'WGToLNuG_TuneCUETP8M1_13TeV-madgraphMLM-pythia8':('WGToLNuG_TuneCUETP8M1_13TeV-madgraphMLM-pythia8','MC',489.0),
'ZGTo2LG_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8':('ZGTo2LG_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC',123.9*1.06),
'TT_TuneCUETP8M2T4_13TeV-powheg-pythia8':('TT_TuneCUETP8M2T4_13TeV-powheg-pythia8','MC',831.76),
'WJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8':('WJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8','MC',20508.9*3),
'DarkPhoton_ZH_powheg_M-125':('DarkPhoton_ZH_powheg_M-125','MC',0.8839*0.101*0.10),
}
|
src = ['board.c']
component = aos_board_component('board_mk3060', 'moc108', src)
aos_global_config.add_ld_files('memory.ld.S')
supported_targets="helloworld linuxapp meshapp uDataapp networkapp linkkitapp"
build_types="release"
|
# # define 下定义
# def func1():
# print("hello function")
#
#
#
# func1()
#
# a = 10
# b = 10
#
# print(a + b)
#
# c = 20
# d = 20
# print(c + d)
# def sum(num1,num2):
# print(num1+num2)
#
# sum(1,2)
# sum(10,10)
def fun2():
return "hello fun2"
def sum2(a,b):
return (a+b)
b=sum2(1,1)
print(b) |
# coding=utf-8
__all__ = ["slack_username", ]
def slack_username(user_id: str) -> str:
""" Generate a slack username macro """
return "<@{}>".format(user_id)
|
#!/usr/bin/env python3
no_c = __import__('5-no_c').no_c
print(no_c("a software development program"))
print(no_c("Chicago"))
print(no_c("C is fun!"))
|
{
7 : {
"operator" : "join",
"multimatch" : False,
},
9 : {
"operator" : "selection",
"selectivity" : 0.5
},
10 : {
"operator" : "join",
"multimatch" : False,
"selectivity" : 0.04
},
12 : {
"operator" : "selection",
"selectivity" : 0.48
},
13 : {
"operator" : "join",
"multimatch" : True,
"selectivity" : 0.09
},
3 : {
"operator" : "selection",
"selectivity" : 0.5
},
14 : {
"operator" : "antijoin",
"selectivity" : 0.02,
"htSizeFactor" : 1.0,
"multimatch" : True
},
15 : {
"operator" : "semijoin",
"selectivity" : 0.02,
"htSizeFactor" : 0.5,
"multimatch" : True
}
}
|
class Solution:
# @param num, a list of integer
# @return an integer
def findPeakElement(self, num):
left = 0
right = len(num) - 1
while left <= right:
mid = (left + right) / 2
if not mid:
leftValue = num[mid] - 1
else:
leftValue = num[mid - 1]
if mid + 1 == len(num):
rightValue = num[mid] + 1
else:
rightValue = num[mid + 1]
if num[mid] > leftValue and num[mid] > rightValue:
return mid
if num[mid] > leftValue:
left = mid + 1
else:
right = mid - 1
return mid
|
class Solution(object):
def fullJustify(self, words, maxWidth):
"""
:type words: List[str]
:type maxWidth: int
:rtype: List[str]
"""
lines = []
i = 0
while i < len(words):
llen = 0
cur = i
while i < len(words):
llen += len(words[i])
if llen > maxWidth:
llen -= len(words[i])
break
llen += 1
i += 1
llen -= 1 # back one extra space
if i != len(words):
wordcnt = i - cur
extra = maxWidth - llen
if wordcnt > 1:
spaces = extra / (wordcnt - 1)
r = extra % (wordcnt - 1)
else:
spaces = extra
r = 0
else:
spaces = 0
r = 0
# print spaces, r
line = ""
for word in words[cur:i]:
line += word
line += " " * (spaces + 1)
if r > 0:
line += " "
r -= 1
line = line[:maxWidth]
if len(line) < maxWidth:
line += " " * (maxWidth - len(line))
lines.append(line)
return lines
|
# C:\gop\ch11\House.py
class House(object): # House 클래스 정의
def __init__(self, year, acreages, address, price):
self.year = year
self.acreages = acreages
self.address = address
self.price = price
def change_price(self, rate):
self.price = self.price * rate
def show_info(self):
print("This houes is built in {}, \
acreages : {}, \
address : {}, \
price : {} "
.format(self.year, self.acreages, self.address, self.price))
if __name__ == "__main__":
house_A = House(1999, 100, "seoul", 777777777) # 객체 house_A 생성
house_A.show_info() # 객체를 통한 메소드 사용
class House2(object): # House2 클래스 정의
Company = "Python Factory" # 클래스 속성
def __init__(self, year, acreages, address, price):
self.year = year
self.acreages = acreages
self.address = address
self.price = price
def show_Company(self):
print(House2.Company)
def change_price(self, rate):
self.price = self.price * rate
def show_info(self):
print("This houes was built by {} in {}, \
acreages : {}, \
address : {}, \
price : {} "
.format(House2.Company, self.year, self.acreages, self.address, self.price))
class House3(object): # House2 클래스 정의
Company = "Python Factory" # 클래스 속성
def __init__(self, year, acreages, address, price):
self.__year = year
self.__acreages = acreages
self.__address = address
self.__price = price
def show_Company(self):
print(House3.Company)
def change_price(self, rate):
self.__price = self.__price * rate
def show_info(self):
print("This houes was built by {} in {}, \
acreages : {}, \
address : {}, \
price : {} "
.format(House3.Company, self.__year, self.__acreages, self.__address, self.__price))
|
#==========================================================================
# this choice mechanism is obviously stupid, but it's here to remind us
# that this is intended as a source of platform-specific data, and so we
# should be making changes to a specific platform's section, rather than
# just adding code all willy-nilly
TARGET_PLATFORM = 'ironpython'
SOURCE_PLATFORM = 'win32'
#==========================================================================
if TARGET_PLATFORM == 'ironpython' and SOURCE_PLATFORM == 'win32':
# ictype code | actual target platform type
ICTYPE_2_MGDTYPE = {
'obj': 'object',
'ptr': 'IntPtr',
'str': 'string',
'void': 'void',
'char': 'byte',
'int': 'int',
'uint': 'uint',
'long': 'int',
'ulong': 'uint',
'llong': 'long',
'ullong': 'ulong',
'size': 'uint',
'ssize': 'int',
'double': 'double',
'cpx': 'Py_complex',
}
#==========================================================================
|
ten_things = "Apples Oranges Crows Telephone Light Sugar"
print("Wait there are not 10 things in that list. Let's fix that.")
stuff = ten_things.split(' ')
more_stuff = ["Day", "Night", "Song", "Frisbee",
"Corn", "Banana", "Girl", "Boy"]
while len(stuff) != 10:
next_one = more_stuff.pop()
print("Adding: ", next_one)
stuff.append(next_one)
print(f"There are {len(stuff)} items now.")
print("There we go: ", stuff)
print("Let's do some things with stuff.")
print(stuff[1])
print(stuff[-1]) # whoa! fancy
print(stuff.pop())
print(' '.join(stuff)) # what? cool!
print('#'.join(stuff[3:5])) # super stellar!
|
def playerIcons(poi):
if poi['id'] == 'Player':
poi['icon'] = "https://overviewer.org/avatar/%s" % poi['EntityId']
return "Last known location for %s" % poi['EntityId']
def signFilter(poi):
if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign':
if poi['Text4'] == '-- RENDER --':
return "\n".join([poi['Text1'], poi['Text2'], poi['Text3']])
worlds['minecraft'] = "/home/minecraft/server/world"
outputdir = "/home/minecraft/render/"
markers = [
dict(name="Players", filterFunction=playerIcons),
dict(name="Signs", filterFunction=signFilter)
]
renders['day'] = {
'world': 'minecraft',
'title': 'Day',
'rendermode': 'smooth_lighting',
'dimension': 'overworld',
'markers': markers
}
renders['night'] = {
'world': 'minecraft',
'title': 'Night',
'rendermode': 'smooth_night',
'dimension': 'overworld',
'markers': markers
}
renders['cave'] = {
'world': 'minecraft',
'title': 'Cave',
'rendermode': 'cave',
'dimension': 'overworld',
'markers': markers
}
renders['nether'] = {
'world': 'minecraft',
'title': 'Nether',
'rendermode': 'nether_smooth_lighting',
'dimension': 'nether',
'markers': markers
}
renders['ender'] = {
'world': 'minecraft',
'title': 'Ender',
'rendermode': 'smooth_lighting',
'dimension': 'end',
'markers': markers
}
|
# 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 mergeTrees(self, t1, t2):
"""
:type t1: TreeNode
:type t2: TreeNode
:rtype: TreeNode
"""
if t1 == None and t2 == None:
return None
if t1 == None:
return t2
if t2 == None:
return t1
newNode = TreeNode(t1.val+t2.val)
newNode.left = self.mergeTrees(t1.left,t2.left)
newNode.right = self.mergeTrees(t1.right,t2.right)
return newNode
|
"""Get data from csv file"""
data = open('Real_Final_database_02.csv') #Open file database that use
alldata = data.readlines()
listdata = []
for i in alldata:
listdata.append(i.strip().split(',')) #Add data form database file into list
|
# initial data input
infilename = "./day9.txt"
def readfile() -> list:
with open(infilename, "rt", encoding="utf-8") as file:
inlist = [line.strip() for line in file]
return inlist
def parse_input(inlist=readfile()) -> list:
return list(map(int, inlist))
# --- Part One ---
"""
Upon connection, the port outputs a series of numbers (your puzzle input).
The data appears to be encrypted with the eXchange-Masking Addition System (XMAS) which, conveniently for you, is an old cypher with an important weakness.
XMAS starts by transmitting a preamble of 25 numbers. After that, each number you receive should be the sum of any two of the 25 immediately previous numbers. The two numbers will have different values, and there might be more than one such pair.
For example, suppose your preamble consists of the numbers 1 through 25 in a random order. To be valid, the next number must be the sum of two of those numbers:
26 would be a valid next number, as it could be 1 plus 25 (or many other pairs, like 2 and 24).
49 would be a valid next number, as it is the sum of 24 and 25.
100 would not be valid; no two of the previous 25 numbers sum to 100.
50 would also not be valid; although 25 appears in the previous 25 numbers, the two numbers in the pair must be different.
Suppose the 26th number is 45, and the first number (no longer an option, as it is more than 25 numbers ago) was 20. Now, for the next number to be valid, there needs to be some pair of numbers among 1-19, 21-25, or 45 that add up to it:
26 would still be a valid next number, as 1 and 25 are still within the previous 25 numbers.
65 would not be valid, as no two of the available numbers sum to it.
64 and 66 would both be valid, as they are the result of 19+45 and 21+45 respectively.
Here is a larger example which only considers the previous 5 numbers (and has a preamble of length 5):
35
20
15
25
47
40
62
55
65
95
102
117
150
182
127
219
299
277
309
576
In this example, after the 5-number preamble, almost every number is the sum of two of the previous 5 numbers; the only number that does not follow this rule is 127.
The first step of attacking the weakness in the XMAS data is to find the first number in the list (after the preamble) which is not the sum of two of the 25 numbers before it. What is the first number that does not have this property?
"""
# part 1 test input (preamble=5):
# ==> 127
testinput1 = '''35,
20,
15,
25,
47,
40,
62,
55,
65,
95,
102,
117,
150,
182,
127,
219,
299,
277,
309,
576'''.split(',\n')
def part1(inlist: list, preamble: int = 25) -> int:
# returns first number after preamble which is not the sum of 2 numbers in preamble-size range of previous numbers
data = parse_input(inlist)
def from_pream(tnum: int, nums: list) -> bool:
for i in range(len(nums)-1):
for j in range(i+1, len(nums)):
if nums[i] + nums[j] == tnum:
return True
return False
prem_start = 0
for idx in range(preamble, len(data)):
testnum = data[idx]
if not from_pream(testnum, data[prem_start: prem_start+preamble]):
return testnum
else:
prem_start += 1
return -1
# --- Part Two ---
"""
You must find a contiguous set of at least two numbers in your list which sum to the invalid number from step 1.
Again consider the above example:
35
20
15
25
47
40
62
55
65
95
102
117
150
182
127
219
299
277
309
576
In this list, adding up all of the numbers from 15 through 40 produces the invalid number from step 1, 127. (Of course, the contiguous set of numbers in your actual list might be much longer.)
To find the encryption weakness, add together the smallest and largest number in this contiguous range; in this example, these are 15 and 47, producing 62.
What is the encryption weakness in your XMAS-encrypted list of numbers?
"""
# part 2 test input:
# ==> [15, 5, 47, 40] --> 15+47 = 62.
testinput2 = testinput1
def part2(num: int, inlist: list) -> int:
data = parse_input(inlist)
pass
for i in range(len(data)-1):
for j in range(i+1, len(data)):
summa = sum(data[i:j])
if summa == num:
# return sum of min and max int from the range
return(min(data[i:j]) + max(data[i:j]))
elif summa > num:
break
return -1
# --- MAIN ---
if __name__ == "__main__":
# if no parameter for part X - test input is used
indata = readfile()
preamble = 25
p1 = part1(indata, preamble)
print(
f"Part1. The first number in the list (after the preamble) which is not the sum of two of the {preamble} numbers before it:", p1)
# indata = testinput2
print("Part2. Encryption weakness:", part2(p1, indata))
|
"""
---> Merge Sorted Array
---> Medium
"""
class Solution:
def merge(self, nums1, m: int, nums2, n: int) -> None:
p1 = m - 1
p2 = n - 1
p = n + m - 1
while p2 >= 0:
if p1 >= 0 and nums1[p1] > nums2[p2]:
nums1[p] = nums1[p1]
p1 -= 1
p -= 1
else:
nums1[p] = nums2[p2]
p2 -= 1
p -= 1
return nums1
in_m = 3
in_n = 3
in_nums1 = [1, 2, 3, 0, 0, 0]
in_nums2 = [2, 5, 6]
a = Solution()
print(a.merge(in_nums1, in_m, in_nums2, in_n))
|
# 列表
def list_study():
arr = list()
arr2 = []
print(arr)
arr2.append("1")
arr2.append(2)
# 删除元素
del arr2[1]
print(arr2)
# 在列表末尾一次性追加另一个序列中的多个值(用新列表扩展原来的列表)
arr2.extend([2, 3])
print(arr2)
# 元组与列表类似,不同之处在于元组的元素不能修改。元组使用小括号,列表使用方括号。
def tuple_study():
t = tuple()
t2 = (1, 2, 3)
print(t)
print(t2)
print(max(t2))
# 可以使用大括号 { } 或者 set() 函数创建集合,注意:创建一个空集合必须用 set() 而不是 { },因为 { } 是用来创建一个空字典。
def set_study():
s = set()
s2 = {1, 2, 3, 3}
print(s)
# 删除元素
s2.remove(3)
# 添加元素
s2.add(5)
print(s2)
# 键必须不可变,所以可以用数字,字符串或元组充当,而用列表就不行
def dict_study():
d = dict()
d2 = {'name': 'wind'}
print(d)
d2['age'] = 18
# 合并更新
d2.update({'sex': 18})
for k, v in d2.items():
print(f"key=>{k}, val=>{v}")
print(d2.keys())
print(d2.values())
print(d2)
del d2['name'] # 删除键 'Name'
print(d2)
d2.clear() # 清空字典
print(d2)
del d2 # 删除字典
if __name__ == '__main__':
list_study()
tuple_study()
set_study()
dict_study()
|
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 28 23:39:31 2021
@author: qizhe
"""
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def buildTree(self, preorder, inorder):
"""
不是很懂,看了答案,意思是:
1、先序遍历第一个就是根节点,然后是左子树,然后是右子树
2、中序遍历先左子树,然后是根节点,然后是右子树
3、根据根节点位置,可以判断左右子树,从而完成递归
"""
def mybuildTree(preorderStart,preorderEnd, inorderStart, inorderEnd):
"""
参考答案,用位置代替列表传递
充分发挥哈希表的作用
"""
# 进行遍历
if preorderStart>=preorderEnd or inorderStart>=inorderEnd:
# print(preorderStart,preorderEnd, inorderStart, inorderEnd)
return None
rootVal = preorder[preorderStart]
# 对于这个的理解是关键,其本质上是计算左子树的宽度
aimposi = inorderDict[rootVal] - inorderStart
# print(preorderStart,preorderEnd, inorderStart, inorderEnd,aimposi,rootVal)
headNode = TreeNode(rootVal)
headNode.left = mybuildTree(preorderStart + 1,preorderStart + 1 + aimposi,inorderStart,inorderStart+aimposi)
headNode.right = mybuildTree(preorderStart + aimposi+1,preorderEnd, inorderStart+aimposi+1,inorderEnd)
return headNode
N = len(inorder)
inorderDict = {h:i for i,h in enumerate(inorder)}
return mybuildTree(0,N,0,N)
if __name__ == '__main__':
solu = Solution()
input_Str = str('{[]{}()}')
# input_list =
input_List = [90]
input_int = 200
n1 = TreeNode(15)
n2 = TreeNode(7)
n3 = TreeNode(20,n1,n2)
n4 = TreeNode(9)
# n5 = TreeNode(2, n4)
# n6 = TreeNode(5, n5, n3)
# n7 = TreeNode(11)
# n8 = TreeNode(-3, n7)
n9 = TreeNode(3, n3, n4)
preorder = [3,9,20,15,7]
inorder = [9,3,15,20,7]
result = solu.buildTree(preorder, inorder)
while result:
print(result.val)
result = result.right
# output_Str = 'result = ' + str(result)
# print(output_Str)
|
def str_to_int(s):
ctr = i = 0
for c in reversed(s):
i += (ord(c) - 48) * (10 ** ctr)
ctr += 1
return i
print()
for s in ('0', '1', '2', '3', '12', '123', '234', '456', '567'):
i = str_to_int(s)
print("s = {}, i = {} |".format(s, i), end=' ')
print()
print()
for i in range(50):
s = str(i)
j = str_to_int(s)
print("s = {}, j = {} |".format(s, j), end=' ')
|
def __logging(visited, rest=[]):
if rest:
print("visited:%s\n rest:%s\n" % (visited, rest))
else:
print("visited:%s" % (visited))
is_found = False
def dfs_rec(graph, start, end, visited=[]):
global is_found
if is_found:
return visited
if start == end:
is_found = True
visited.append(start)
__logging(visited)
return visited
visited.append(start)
__logging(visited)
for label in graph.get(start, []):
if not label in visited:
visited = dfs_rec(graph, label, end, visited)
return visited
if __name__ == '__main__':
"""
+-------------1
| |
| +-------+-----+
| | | |
| +-2-+ 6 +-8-+
| | | | | |
| 3 4 7 9 10
| | | | |
+-------5 +---+ 11
"""
graph = {1: [2, 6, 8],
2: [3, 4],
3: [],
4: [5],
5: [1],
6: [7],
7: [],
8: [9, 10],
9: [7],
10: [11],
11: [],
}
print(dfs_rec(graph, 1, 10)) |
def remover_repeticao(lista):
for i in lista:
k = 1
while k <= (lista.count(i)-1):
lista.remove(i)
k = k + 1
lista.sort()
return lista
def nova_lista():
n = int(input("digite um número inteiro: "))
lista = []
while n != 0:
lista.append(n)
n = int(input("digite um número inteiro: "))
return remover_repeticao(lista)
nova_lista() |
# animals = ["Gully", "Rhubarb", "Zephyr", "Henry"]
# for animal in enumerate(animals): # creates a list of Tuples
# print(animal) # (0, 'Gully')
# # (1, 'Rhubarb')
# # (2, 'Zephyr')
# # (3, 'Henry')
# animals = ["Gully", "Rhubarb", "Zephyr", "Henry"]
# for index, animal in enumerate(animals):
# print(animal) # Gully
# # Rhubarb
# # Zephyr
# # Henry
# animals = ["Gully", "Rhubarb", "Zephyr", "Henry"]
# for index, animal in enumerate(animals):
# print(index, animal) # 0 Gully
# # 1 Rhubarb
# # 2 Zephyr
# # 3 Henry
# animals = ["Gully", "Rhubarb", "Zephyr", "Henry"]
# for index, animal in enumerate(animals):
# if index % 2 == 0:
# continue
# print(index, animal) # 1 Rhubarb
# # 3 Henry
animals = ["Gully", "Rhubarb", "Zephyr", "Henry"]
for index, animal in enumerate(animals):
# if index % 2 == 0:
# continue
print(f"{index}.\t {animal}") # 0. Gully
# 1. Rhubarb
# 2. Zephyr
# 3. Henry
|
def lines(file):
for line in file:
yield line
yield "\n"
def blocks(file):
block = []
for line in lines(file):
if line.strip():
block.append(line)
elif block:
yield "".join(block).strip()
block = []
|
"""
Traduce texto de entrada en valores operables o texto
txt_hex = "C8"
txt_dec = "200"
txt_bin = "11001000"
mat_bin = [0,0,0,1,0,0,1,1]
"""
def hex_a_bin(txt_hex):
num_bin = bin(int(txt_hex,16))
txt_bin = num_bin.split("b")[1]
txt_bin = txt_bin.zfill(8)
txt_bin = txt_bin.upper()
return txt_bin
def bin_a_hex(txt_bin):
num_hex = hex(int(txt_bin,2))
txt_hex = num_hex.split("x")[1]
txt_hex = txt_hex.zfill(2)
txt_hex = txt_hex.upper()
return txt_hex
def op_a_bin(mat_bin):
mat_txt_bin = reversed([str(i) for i in mat_bin])
txt_bin = "".join(mat_txt_bin)
return txt_bin
def bin_a_op(txt_bin):
mat_bin = [int(txt_bin[-1-i]) for i in range(0,8)]
return mat_bin
def hex_a_op(txt_hex):
mat_bin = bin_a_op(hex_a_bin(txt_hex))
return mat_bin
def op_a_hex(mat_bin):
txt_hex = bin_a_hex(op_a_bin(mat_bin))
return txt_hex
def hex_a_dec(txt_hex):
txt_dec = str(int(txt_hex,16))
return txt_dec
def dec_a_hex(txt_dec):
txt_hex = hex(int(txt_dec))
txt_hex = txt_hex.split('x')[1]
txt_hex = txt_hex.zfill(2)
txt_hex = txt_hex.upper()
return txt_hex
def dec_a_hex4(txt_dec):
txt_hex = hex(int(txt_dec))
txt_hex = txt_hex.split('x')[1]
txt_hex = txt_hex.zfill(4)
txt_hex = txt_hex.upper()
return txt_hex
def dec_a_sig(txt_dec):
if int(txt_dec) > 127:
txt_sig = str(int(txt_dec) - 256)
else:
txt_sig = txt_dec
return txt_sig
def bin_a_dec(txt_bin):
txt_dec = str(int(txt_bin,2))
return txt_dec
def op_a_dec(mat_bin):
txt_dec = bin_a_dec(op_a_bin(mat_bin))
return txt_dec
def dec_a_op(num_dec):
mat_bin = hex_a_op(dec_a_hex(num_dec))
return mat_bin
def dec_a_op16(num_dec):
mat_bin16 = bin(num_dec)
mat_bin16 = mat_bin16.split('b')[1]
mat_bin16 = mat_bin16.zfill(16)
mat_bin16 = [int(mat_bin16[-1-i]) for i in range(0,16)]
return mat_bin16
|
# coding: utf-8
cry_names = [
'Nidoran_M',
'Nidoran_F',
'Slowpoke',
'Kangaskhan',
'Charmander',
'Grimer',
'Voltorb',
'Muk',
'Oddish',
'Raichu',
'Nidoqueen',
'Diglett',
'Seel',
'Drowzee',
'Pidgey',
'Bulbasaur',
'Spearow',
'Rhydon',
'Golem',
'Blastoise',
'Pidgeotto',
'Weedle',
'Caterpie',
'Ekans',
'Fearow',
'Clefairy',
'Venonat',
'Lapras',
'Metapod',
'Squirtle',
'Paras',
'Growlithe',
'Krabby',
'Psyduck',
'Rattata',
'Vileplume',
'Vulpix',
'Weepinbell',
'Marill',
'Spinarak',
'Togepi',
'Girafarig',
'Raikou',
'Mareep',
'Togetic',
'Hoothoot',
'Sentret',
'Slowking',
'Cyndaquil',
'Chikorita',
'Totodile',
'Gligar',
'Cleffa',
'Slugma',
'Ledyba',
'Entei',
'Wooper',
'Mantine',
'Typhlosion',
'Natu',
'Teddiursa',
'Sunflora',
'Ampharos',
'Magcargo',
'Pichu',
'Aipom',
'Dunsparce',
'Donphan',
]
|
a = []
b = []
for m in range(101):
a.append(300 - m * 100)
for n in range(101):
b.append(a[n] + 200)
c = 0
for a in b:
if a < 0:
c += 1
print(c) |
def translate_table(line, suite_pos):
fields = line.split("|")
suite_name = fields[suite_pos]
fields = suite_name.split("_")
other = []
if fields[0] == "ade":
template = "thereis"
if fields[1] == "same":
strategy = "ADE-SI"
if fields[-1] == "tisce":
other.append("sce")
if fields[-1] == "ticat":
other.append("cat")
elif fields[1] == "diff":
if fields[2] == "cat":
strategy = "ADE-DC"
else:
strategy = "ADE-SC"
if fields[-1] == "tisce":
other.append("sce")
if fields[-1] == "ticat":
other.append("cat")
if fields[1] == "tfidf" or fields[1] == "freq":
s = fields[1][0].capitalize() + fields[1][1:]
if fields[3] == "category":
strategy = s + "-Cat"
elif fields[3] == "scene":
strategy = s + "-Sce"
elif fields[3] == "obj":
strategy = s + "-Obj"
if strategy.endswith("Obj"):
if len(fields) > 4 and fields[4] == "sce":
other.append("sce")
else:
other.append("cat")
elif strategy.endswith("Sce"):
if "ticat" in suite_name:
other.append("cat")
else:
other.append("sce")
elif strategy.endswith("Cat"):
other.append("cat")
if "no_occ" in suite_name:
other.append("no-occ")
if "no-occ" in suite_name:
other.append("no-occ")
if fields[0] == "cxc":
if fields[1] == "qa":
template = "QA"
elif fields[1] == "attr":
template = "Obj-attr"
elif fields[1] == "rel":
template = "Rel-obj"
elif fields[1] == "cap":
template = "Cap-adj"
elif fields[1] == "obj":
template = "Obj-list"
if not "wide" in suite_name:
if "similar" in suite_name:
strategy = "CXC-sim"
elif "same" in suite_name:
strategy = "CXC-same"
elif "dissim" in suite_name:
strategy = "CXC-dis"
else:
if "similar" in suite_name:
strategy = "CXC-v-sim"
elif "dissim" in suite_name:
strategy = "CXC-v-dis"
if "distant_words" in suite_name:
strategy = "VS"
if fields[-1] == "cap":
other.append("+cap")
if fields[0] == "cap":
template = "cap-pair"
if not "wide" in suite_name:
if "dissim" in suite_name:
strategy = "CXC-dis"
elif "sim_img" in suite_name:
strategy = "CXC-sim"
elif "same" in suite_name:
strategy = "CXC-same"
else:
if "dissim" in suite_name:
strategy = "CXC-v-dis"
elif "sim_img" in suite_name:
strategy = "CXC-v-sim"
if "cxc_sim" in suite_name:
if "low" in suite_name:
other.append("cxc-low")
elif "high" in suite_name:
other.append("cxc-high")
elif "jacc_sim" in suite_name:
if "low" in suite_name:
other.append("jacc-low")
elif "high" in suite_name:
other.append("jacc-high")
other = " ".join(other)
return [template, strategy, other]
|
firstStep = "1-1"
print(firstStep)
row = 1
column = 1
column += 1
while True:
answer = int(input())
if column > 10:
row += 1
column = 1
response = str(row) + "-" + str(column)
column += 1
print(response)
|
class ListNode:
def __init__(self, val):
self.next = None
self.val = val
class LinkList:
def __init__(self, node=None):
self._head = node
# 头部插入
def add(self, val):
node = ListNode(val)
if not self._head:
self._head = node
return
node.next = self._head
self._head = node
# 尾部插入
def append(self, val):
node = ListNode(val)
if not self._head:
self._head = node
return
cur = self._head
while cur.next:
cur = cur.next
cur.next = node
# 指定位置插入
def insert(self, index, val):
node = ListNode(val)
if index == 0:
self.add(val)
else:
cur = self._head
for _ in range(1, index):
cur = cur.next
node.next = cur.next
cur.next = node
# prev_node = cur.next
# cur.next = node
# node.next = prev_node
# 删除节点
def remove(self, val):
if self._head.val == val:
self._head = self._head.next
return
cur = self._head
# 快慢指针,如果快指针找到目标值,就将慢指针的下一个节点指向目标节点的下一个节点
pre1 = cur
pre2 = cur.next
# while cur.next:
# if cur.next.val == val:
# prev = cur.next.next
# cur.next = prev
# return
# else:
# cur = cur.next
# if cur.next.val == val:
# cur.next = None
# return self._head
while pre2:
if pre2.val == val:
pre1.next = pre2.next
return
else:
pre2 = pre2.next
pre1 = pre1.next
return self._head
# 查找节点元素的位置
def serch_value(self, val):
cur = self._head
index = 0
while cur:
if cur.val == val:
return index
cur = cur.next
index += 1
if __name__ == '__main__':
lt = LinkList()
lt.add(1)
lt.append(1)
lt.append(4)
lt.insert(3, 88)
lt.append(5)
lt.append(6)
lt.append(7)
print(lt.serch_value(1))
|
class node:
def __init__(self, data):
self.data = data
self.next = None
class linkedList:
def __init__(self):
self.head = None
def printList(self):
temp = self.head
while (temp):
print(temp.data, end=' ')
temp = temp.next
if __name__ == '__main__':
llist = linkedList()
llist.head = node(1)
llist.head.next = node(2)
llist.head.next.next = node(3)
llist.printList() |
class Solution:
def minMoves2(self, nums: List[int]) -> int:
temp = []
nums.sort()
medile_p = len(nums) // 2
medile_num = nums[medile_p]
nums.remove(medile_num)
for i in nums:
if medile_num >= i:
step = medile_num - i
temp.append(step)
else:
step = i - medile_num
temp.append(step)
return sum(temp)
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 12 14:52:40 2017
@author: Nadiar
"""
def f(a,b):
return a + b
def union(l1,l2):
temp = []
if len(l1) > len(l2):
for l in l2:
if l in l1:
temp.append(l)
else:
for l in l1:
if l in l2:
temp.append(l)
return temp
def difference(l1,l2):
uni = union(l1,l2)
l3 = l1 + l2
temp = []
for l in l3:
if l not in uni:
temp.append(l)
# get unique
return list(set(temp))
def dict_interdiff(d1, d2):
'''
d1, d2: dicts whose keys and values are integers
Returns a tuple of dictionaries according to the instructions above
'''
dif = difference(list(d1.keys()), list(d2.keys()))
uni = union(list(d1.keys()), list(d2.keys()))
difMap = {}
uniMap = {}
for k in uni:
uniMap[k] = f(d1[k], d2[k])
for k in dif:
try:
difMap[k] = d1[k]
except KeyError:
difMap[k] = d2[k]
return (uniMap, difMap)
d1 = {1:30, 2:20, 3:30, 5:80}
d2 = {1:40, 2:50, 3:60, 4:70, 6:90}
print(dict_interdiff(d1, d2))
#({1: 70, 2: 70, 3: 90}, {4: 70, 5: 80, 6: 90})) |
"""
Sponge Knowledge Base
Used for testing a gRPC API server and clients.
"""
def onBeforeLoad():
sponge.addEventType("notification", RecordType().withFields([
StringType("source").withLabel("Source"),
IntegerType("severity").withLabel("Severity").withNullable(),
sponge.getType("Person", "person").withNullable()
]))
def onStartup():
# Enable support actions in this knowledge base.
grpcApiServer.enableSupport(sponge)
sponge.event("notification").set("source", "Sponge").set("severity", 10).set("person", {"firstName":"James", "surname":"Joyce"}).sendAfter(
Duration.ZERO, Duration.ofSeconds(1))
|
class Sms:
def __init__(self, number: str, message: str) -> None:
self.to_phone = number
self.message_body = message
def get(self) -> dict:
return {
"to_phone": self.to_phone,
"message_body": self.message_body,
}
|
# x = 2.8
# print(type(x))
#
# y=3
# print(type(y))
#
# z=2j
# print(type(z))
#
# c=3.5e-4
# print(c)
# x=input("Enter your name:")
# print("Hello," + x)
x = str("ssss www. aaa").upper()
print(x)
my_list = [124125, "tekst", True, 123.44]
my_list2 = [[1,2,3], 2, ['to jest prawda', True]]
print(my_list [0])
for element in reversed(my_list):
print(element)
print(my_list[-2])
var0=list(range(1,100))
print(var0)
var1=bool("awd")
print(var1)
var2=tuple(my_list)
print(var2)
#pod tuple nie podstawimy nic innego jak niżej
my_list[0]="coś innego"
print(my_list[0])
# print(my_list[0]) #nie da się wrócić spowrotem do tamtej wartości jak myslałem
#słownik (?)
dictionary = {
"jabłko": "fajny owoc do zjedzenia",
"tekst": "opis czegoś za pomocą ciagu znaków"
}
print(dictionary["jabłko"])
my_tuple = (2, 214)
print(my_tuple)
for i in my_tuple:
print(i)
print(my_tuple[0])
print("\n")
for key in dictionary:
print(key, dictionary[key])
#wyrzuca powtórki - unikalne dane
my_set = {12,124,125,12}
print(my_set)
print("\n")
#list comprehension
my_list_from_list_comp = [i*i for i in range(10)]
print(my_list_from_list_comp)
#drugi sposób
my_numbers = []
for i in range(10):
my_numbers.append(i*i)
print(my_numbers)
print({i*i for i in range(10)}) |
files_c=[
'C/7zBuf2.c',
'C/7zCrc.c',
'C/7zCrcOpt.c',
'C/7zStream.c',
'C/Aes.c',
'C/Alloc.c',
'C/Bcj2.c',
'C/Bcj2Enc.c',
'C/Blake2s.c',
'C/Bra.c',
'C/Bra86.c',
'C/BraIA64.c',
'C/BwtSort.c',
'C/CpuArch.c',
'C/Delta.c',
'C/HuffEnc.c',
'C/LzFind.c',
'C/LzFindMt.c',
'C/Lzma2Dec.c',
'C/Lzma2Enc.c',
'C/LzmaDec.c',
'C/LzmaEnc.c',
'C/MtCoder.c',
'C/Ppmd7.c',
'C/Ppmd7Dec.c',
'C/Ppmd7Enc.c',
'C/Ppmd8.c',
'C/Ppmd8Dec.c',
'C/Ppmd8Enc.c',
'C/Sha1.c',
'C/Sha256.c',
'C/Sort.c',
'C/Threads.c',
'C/Xz.c',
'C/XzCrc64.c',
'C/XzCrc64Opt.c',
'C/XzDec.c',
'C/XzEnc.c',
'C/XzIn.c',
]
files_cpp=[
'CPP/7zip/Archive/7z/7zCompressionMode.cpp',
'CPP/7zip/Archive/7z/7zDecode.cpp',
'CPP/7zip/Archive/7z/7zEncode.cpp',
'CPP/7zip/Archive/7z/7zExtract.cpp',
'CPP/7zip/Archive/7z/7zFolderInStream.cpp',
'CPP/7zip/Archive/7z/7zHandler.cpp',
'CPP/7zip/Archive/7z/7zHandlerOut.cpp',
'CPP/7zip/Archive/7z/7zHeader.cpp',
'CPP/7zip/Archive/7z/7zIn.cpp',
'CPP/7zip/Archive/7z/7zOut.cpp',
'CPP/7zip/Archive/7z/7zProperties.cpp',
'CPP/7zip/Archive/7z/7zRegister.cpp',
'CPP/7zip/Archive/7z/7zSpecStream.cpp',
'CPP/7zip/Archive/7z/7zUpdate.cpp',
'CPP/7zip/Archive/ApmHandler.cpp',
'CPP/7zip/Archive/ArHandler.cpp',
'CPP/7zip/Archive/ArchiveExports.cpp',
'CPP/7zip/Archive/ArjHandler.cpp',
'CPP/7zip/Archive/Bz2Handler.cpp',
'CPP/7zip/Archive/Cab/CabBlockInStream.cpp',
'CPP/7zip/Archive/Cab/CabHandler.cpp',
'CPP/7zip/Archive/Cab/CabHeader.cpp',
'CPP/7zip/Archive/Cab/CabIn.cpp',
'CPP/7zip/Archive/Cab/CabRegister.cpp',
'CPP/7zip/Archive/Chm/ChmHandler.cpp',
'CPP/7zip/Archive/Chm/ChmIn.cpp',
'CPP/7zip/Archive/ComHandler.cpp',
'CPP/7zip/Archive/Common/CoderMixer2.cpp',
'CPP/7zip/Archive/Common/DummyOutStream.cpp',
'CPP/7zip/Archive/Common/FindSignature.cpp',
'CPP/7zip/Archive/Common/HandlerOut.cpp',
'CPP/7zip/Archive/Common/InStreamWithCRC.cpp',
'CPP/7zip/Archive/Common/ItemNameUtils.cpp',
'CPP/7zip/Archive/Common/MultiStream.cpp',
'CPP/7zip/Archive/Common/OutStreamWithCRC.cpp',
'CPP/7zip/Archive/Common/OutStreamWithSha1.cpp',
'CPP/7zip/Archive/Common/ParseProperties.cpp',
'CPP/7zip/Archive/CpioHandler.cpp',
'CPP/7zip/Archive/CramfsHandler.cpp',
'CPP/7zip/Archive/DeflateProps.cpp',
'CPP/7zip/Archive/DllExports2.cpp',
'CPP/7zip/Archive/DmgHandler.cpp',
'CPP/7zip/Archive/ElfHandler.cpp',
'CPP/7zip/Archive/ExtHandler.cpp',
'CPP/7zip/Archive/FatHandler.cpp',
'CPP/7zip/Archive/FlvHandler.cpp',
'CPP/7zip/Archive/GzHandler.cpp',
'CPP/7zip/Archive/GptHandler.cpp',
'CPP/7zip/Archive/HandlerCont.cpp',
'CPP/7zip/Archive/HfsHandler.cpp',
'CPP/7zip/Archive/IhexHandler.cpp',
'CPP/7zip/Archive/Iso/IsoHandler.cpp',
'CPP/7zip/Archive/Iso/IsoHeader.cpp',
'CPP/7zip/Archive/Iso/IsoIn.cpp',
'CPP/7zip/Archive/Iso/IsoRegister.cpp',
'CPP/7zip/Archive/LzhHandler.cpp',
'CPP/7zip/Archive/LzmaHandler.cpp',
'CPP/7zip/Archive/MachoHandler.cpp',
'CPP/7zip/Archive/MbrHandler.cpp',
'CPP/7zip/Archive/MslzHandler.cpp',
'CPP/7zip/Archive/MubHandler.cpp',
'CPP/7zip/Archive/Nsis/NsisDecode.cpp',
'CPP/7zip/Archive/Nsis/NsisHandler.cpp',
'CPP/7zip/Archive/Nsis/NsisIn.cpp',
'CPP/7zip/Archive/Nsis/NsisRegister.cpp',
'CPP/7zip/Archive/NtfsHandler.cpp',
'CPP/7zip/Archive/PeHandler.cpp',
'CPP/7zip/Archive/PpmdHandler.cpp',
'CPP/7zip/Archive/QcowHandler.cpp',
'CPP/7zip/Archive/Rar/RarHandler.cpp',
'CPP/7zip/Archive/Rar/Rar5Handler.cpp',
'CPP/7zip/Archive/RpmHandler.cpp',
'CPP/7zip/Archive/SplitHandler.cpp',
'CPP/7zip/Archive/SquashfsHandler.cpp',
'CPP/7zip/Archive/SwfHandler.cpp',
'CPP/7zip/Archive/Tar/TarHandler.cpp',
'CPP/7zip/Archive/Tar/TarHandlerOut.cpp',
'CPP/7zip/Archive/Tar/TarHeader.cpp',
'CPP/7zip/Archive/Tar/TarIn.cpp',
'CPP/7zip/Archive/Tar/TarOut.cpp',
'CPP/7zip/Archive/Tar/TarRegister.cpp',
'CPP/7zip/Archive/Tar/TarUpdate.cpp',
'CPP/7zip/Archive/Udf/UdfHandler.cpp',
'CPP/7zip/Archive/Udf/UdfIn.cpp',
'CPP/7zip/Archive/UefiHandler.cpp',
'CPP/7zip/Archive/VdiHandler.cpp',
'CPP/7zip/Archive/VhdHandler.cpp',
'CPP/7zip/Archive/VmdkHandler.cpp',
'CPP/7zip/Archive/Wim/WimHandler.cpp',
'CPP/7zip/Archive/Wim/WimHandlerOut.cpp',
'CPP/7zip/Archive/Wim/WimIn.cpp',
'CPP/7zip/Archive/Wim/WimRegister.cpp',
'CPP/7zip/Archive/XarHandler.cpp',
'CPP/7zip/Archive/XzHandler.cpp',
'CPP/7zip/Archive/ZHandler.cpp',
'CPP/7zip/Archive/Zip/ZipAddCommon.cpp',
'CPP/7zip/Archive/Zip/ZipHandler.cpp',
'CPP/7zip/Archive/Zip/ZipHandlerOut.cpp',
'CPP/7zip/Archive/Zip/ZipIn.cpp',
'CPP/7zip/Archive/Zip/ZipItem.cpp',
'CPP/7zip/Archive/Zip/ZipOut.cpp',
'CPP/7zip/Archive/Zip/ZipRegister.cpp',
'CPP/7zip/Archive/Zip/ZipUpdate.cpp',
'CPP/7zip/Common/CWrappers.cpp',
'CPP/7zip/Common/CreateCoder.cpp',
'CPP/7zip/Common/FilterCoder.cpp',
'CPP/7zip/Common/InBuffer.cpp',
'CPP/7zip/Common/InOutTempBuffer.cpp',
'CPP/7zip/Common/LimitedStreams.cpp',
'CPP/7zip/Common/MemBlocks.cpp',
'CPP/7zip/Common/MethodId.cpp',
'CPP/7zip/Common/MethodProps.cpp',
'CPP/7zip/Common/OffsetStream.cpp',
'CPP/7zip/Common/OutBuffer.cpp',
'CPP/7zip/Common/OutMemStream.cpp',
'CPP/7zip/Common/ProgressMt.cpp',
'CPP/7zip/Common/ProgressUtils.cpp',
'CPP/7zip/Common/PropId.cpp',
'CPP/7zip/Common/StreamBinder.cpp',
'CPP/7zip/Common/StreamObjects.cpp',
'CPP/7zip/Common/StreamUtils.cpp',
'CPP/7zip/Common/UniqBlocks.cpp',
'CPP/7zip/Common/VirtThread.cpp',
'CPP/7zip/Compress/BZip2Crc.cpp',
'CPP/7zip/Compress/BZip2Decoder.cpp',
'CPP/7zip/Compress/BZip2Encoder.cpp',
'CPP/7zip/Compress/BZip2Register.cpp',
'CPP/7zip/Compress/Bcj2Coder.cpp',
'CPP/7zip/Compress/Bcj2Register.cpp',
'CPP/7zip/Compress/BcjCoder.cpp',
'CPP/7zip/Compress/BcjRegister.cpp',
'CPP/7zip/Compress/BitlDecoder.cpp',
'CPP/7zip/Compress/BranchMisc.cpp',
'CPP/7zip/Compress/BranchRegister.cpp',
'CPP/7zip/Compress/ByteSwap.cpp',
'CPP/7zip/Compress/CodecExports.cpp',
'CPP/7zip/Compress/CopyCoder.cpp',
'CPP/7zip/Compress/CopyRegister.cpp',
'CPP/7zip/Compress/Deflate64Register.cpp',
'CPP/7zip/Compress/DeflateDecoder.cpp',
'CPP/7zip/Compress/DeflateEncoder.cpp',
'CPP/7zip/Compress/DeflateRegister.cpp',
'CPP/7zip/Compress/DeltaFilter.cpp',
'CPP/7zip/Compress/ImplodeDecoder.cpp',
'CPP/7zip/Compress/ImplodeHuffmanDecoder.cpp',
'CPP/7zip/Compress/LzOutWindow.cpp',
'CPP/7zip/Compress/LzhDecoder.cpp',
'CPP/7zip/Compress/Lzma2Decoder.cpp',
'CPP/7zip/Compress/Lzma2Encoder.cpp',
'CPP/7zip/Compress/Lzma2Register.cpp',
'CPP/7zip/Compress/LzmaDecoder.cpp',
'CPP/7zip/Compress/LzmaEncoder.cpp',
'CPP/7zip/Compress/LzmaRegister.cpp',
'CPP/7zip/Compress/LzmsDecoder.cpp',
'CPP/7zip/Compress/LzxDecoder.cpp',
'CPP/7zip/Compress/PpmdDecoder.cpp',
'CPP/7zip/Compress/PpmdEncoder.cpp',
'CPP/7zip/Compress/PpmdRegister.cpp',
'CPP/7zip/Compress/PpmdZip.cpp',
'CPP/7zip/Compress/QuantumDecoder.cpp',
'CPP/7zip/Compress/ShrinkDecoder.cpp',
'CPP/7zip/Compress/ZDecoder.cpp',
'CPP/7zip/Compress/XpressDecoder.cpp',
'CPP/7zip/Compress/ZlibDecoder.cpp',
'CPP/7zip/Compress/ZlibEncoder.cpp',
'CPP/7zip/Crypto/7zAes.cpp',
'CPP/7zip/Crypto/7zAesRegister.cpp',
'CPP/7zip/Crypto/HmacSha1.cpp',
'CPP/7zip/Crypto/HmacSha256.cpp',
'CPP/7zip/Crypto/MyAes.cpp',
'CPP/7zip/Crypto/MyAesReg.cpp',
'CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp',
'CPP/7zip/Crypto/RandGen.cpp',
'CPP/7zip/Crypto/Rar20Crypto.cpp',
'CPP/7zip/Crypto/Rar5Aes.cpp',
'CPP/7zip/Crypto/RarAes.cpp',
'CPP/7zip/Crypto/WzAes.cpp',
'CPP/7zip/Crypto/ZipCrypto.cpp',
'CPP/7zip/Crypto/ZipStrong.cpp',
'CPP/Common/CRC.cpp',
'CPP/Common/CrcReg.cpp',
'CPP/Common/DynLimBuf.cpp',
'CPP/Common/IntToString.cpp',
'CPP/Common/MyMap.cpp',
'CPP/Common/MyString.cpp',
'CPP/Common/MyVector.cpp',
'CPP/Common/MyWindows.cpp',
'CPP/Common/MyXml.cpp',
'CPP/Common/NewHandler.cpp',
'CPP/Common/Sha1Reg.cpp',
'CPP/Common/Sha256Reg.cpp',
'CPP/Common/StringConvert.cpp',
'CPP/Common/StringToInt.cpp',
'CPP/Common/UTFConvert.cpp',
'CPP/Common/Wildcard.cpp',
'CPP/Common/XzCrc64Reg.cpp',
'CPP/Windows/FileDir.cpp',
'CPP/Windows/FileFind.cpp',
'CPP/Windows/FileIO.cpp',
'CPP/Windows/FileName.cpp',
'CPP/Windows/PropVariant.cpp',
'CPP/Windows/PropVariantUtils.cpp',
'CPP/Windows/Synchronization.cpp',
'CPP/Windows/System.cpp',
'CPP/Windows/TimeUtils.cpp',
'CPP/myWindows/wine_date_and_time.cpp',
]
|
# multiple.sequences.while.py
people = ["Conrad", "Deepak", "Heinrich", "Tom"]
ages = [29, 30, 34, 36]
position = 0
while position < len(people):
person = people[position]
age = ages[position]
print(person, age)
position += 1
|
# -*- coding: utf-8 -*-
BOT_NAME = 'tbSpider'
SPIDER_MODULES = ['tbSpider.spiders']
NEWSPIDER_MODULE = 'tbSpider.spiders'
#配置日志输出等级
LOG_LEVEL = 'ERROR'
#你懂得
ROBOTSTXT_OBEY = False
#激活自定义下载中间件
DOWNLOADER_MIDDLEWARES = {
'tbSpider.EmulateDownloaderMiddleware.Emulate': 543,
}
#激活piplines
ITEM_PIPELINES = {
'tbSpider.pipelines.MongoPipeline': 300,
}
#并发数
CONCURRENT_REQUESTS = 50
#mongo的连接
MONGO_URI = 'mongodb://192.168.68.128:27017'
MONGO_DATABASE = 'tiebaData'
#####分布式设置#######
#更换调度器,去重组件
SCHEDULER = 'scrapy_redis.scheduler.Scheduler'
DUPEFILTER_CLASS = 'scrapy_redis.dupefilter.RFPDupeFilter'
#redis连接配置
REDIS_URL = 'redis://192.168.68.128:6379'
#配置调度队列***不设置默认为优先级队列,这里默认
#SCHEDULER_QUEUE_CLASS = 'scrapy_redis.queue.PriorityQueue'
#SCHEDULER_QUEUE_CLASS = 'scrapy_redis.queue.FifoQueue'
#SCHEDULER_QUEUE_CLASS = 'scrapy_redis.queue.LifoQueue'
#配置持久化,默认为FALSE, 设置为TRUE后,爬取队列和去重指纹不会在爬取结束后自动清空,但是爬虫强制结束,是不会自动清空的
#SCHEDULER_PERSIST = False
#配置重爬, 强制中断爬虫会接着原来进度爬取,默认FALSE, 设置TRUE爬虫会重爬
# SCHEDULER_FLUSH_ON_START = True
#pipelines配置,scrapy_redis提供直接将item存储到redis的便捷,这里我们不选则
#ITEM_PIPELINES = {'scrapy_redis.piplines.RedisPIpeline':300,}
#预测api
PREDICTOR_URL = 'http://192.168.68.128:8080/AI_analysis?'
#SPIDER_MIDDLEWARES = {
# 'tbSpider.middlewares.TbspiderSpiderMiddleware': 543,
#}
# Configure maximum concurrent requests performed by Scrapy (default: 16)
# The download delay setting will honor only one of:
#CONCURRENT_REQUESTS_PER_DOMAIN = 16
#CONCURRENT_REQUESTS_PER_IP = 16
# Disable cookies (enabled by default)
#COOKIES_ENABLED = False
# Disable Telnet Console (enabled by default)
#TELNETCONSOLE_ENABLED = False
# Override the default request headers:
#DEFAULT_REQUEST_HEADERS = {
# 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
# 'Accept-Language': 'en',
#}
# Enable or disable spider middlewares
# See https://docs.scrapy.org/en/latest/topics/spider-middleware.html
# Enable or disable extensions
# See https://docs.scrapy.org/en/latest/topics/extensions.html
#EXTENSIONS = {
# 'scrapy.extensions.telnet.TelnetConsole': None,
#}
# Configure item pipelines
# See https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# Enable and configure the AutoThrottle extension (disabled by default)
# See https://docs.scrapy.org/en/latest/topics/autothrottle.html
#AUTOTHROTTLE_ENABLED = True
# The initial download delay
#AUTOTHROTTLE_START_DELAY = 5
# The maximum download delay to be set in case of high latencies
#AUTOTHROTTLE_MAX_DELAY = 60
# The average number of requests Scrapy should be sending in parallel to
# each remote server
#AUTOTHROTTLE_TARGET_CONCURRENCY = 1.0
# Enable showing throttling stats for every response received:
#AUTOTHROTTLE_DEBUG = False
# Enable and configure HTTP caching (disabled by default)
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings
#HTTPCACHE_ENABLED = True
#HTTPCACHE_EXPIRATION_SECS = 0
#HTTPCACHE_DIR = 'httpcache'
#HTTPCACHE_IGNORE_HTTP_CODES = []
#HTTPCACHE_STORAGE = 'scrapy.extensions.httpcache.FilesystemCacheStorage'
|
{
'target_defaults': {
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ]
},
'Release': {
'defines': [ 'NDEBUG' ]
}
}
},
'targets': [
{
'target_name': 'mappedbuffer',
'sources': [
'src/mappedbuffer.cc'
]
}
]
}
|
# Databricks notebook source
# MAGIC %md
# MAGIC # Project Timesheet Source Data
# COMMAND ----------
spark.conf.set(
"fs.azure.account.key.dmstore1.blob.core.windows.net",
"s8aN23JQ1EboPql5lx++0zQOyYrYC2EvT7NbgewR/8yAmQzpPfojntRWrCr4XOuonMowUUXsEzSxP11Jzd3kTg==")
# COMMAND ----------
# MAGIC %sql
# MAGIC create database if not exists samples
# COMMAND ----------
# MAGIC %sql
# MAGIC drop table if exists samples.project_timesheet;
# MAGIC create table samples.project_timesheet
# MAGIC using csv
# MAGIC options (path "wasbs://sample-data@dmstore1.blob.core.windows.net/timesheet/sample_data.csv", header "true", mode "FAILFAST", inferschema "true")
# COMMAND ----------
# MAGIC %sql
# MAGIC describe table samples.project_timesheet
# COMMAND ----------
# MAGIC %sql
# MAGIC select
# MAGIC *
# MAGIC from
# MAGIC samples.project_timesheet
# COMMAND ----------
|
# Copyright 2018 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Implementation of the `swift_binary` and `swift_test` rules."""
load(":api.bzl", "swift_common")
load(":derived_files.bzl", "derived_files")
load(":features.bzl", "SWIFT_FEATURE_BUNDLED_XCTESTS", "is_feature_enabled")
load(":linking.bzl", "register_link_action")
load(":providers.bzl", "SwiftBinaryInfo", "SwiftToolchainInfo")
load(":swift_c_module_aspect.bzl", "swift_c_module_aspect")
load(":utils.bzl", "expand_locations")
load("@bazel_skylib//lib:dicts.bzl", "dicts")
load("@bazel_skylib//lib:partial.bzl", "partial")
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain")
load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "CPP_LINK_EXECUTABLE_ACTION_NAME")
def _swift_linking_rule_impl(
ctx,
feature_configuration,
is_test,
toolchain,
linkopts = []):
"""The shared implementation function for `swift_{binary,test}`.
Args:
ctx: The rule context.
feature_configuration: A feature configuration obtained from
`swift_common.configure_features`.
is_test: A `Boolean` value indicating whether the binary is a test target.
toolchain: The `SwiftToolchainInfo` provider of the toolchain being used to build the
target.
linkopts: Additional rule-specific flags that should be passed to the linker.
Returns:
A tuple with two values: the `File` representing the binary that was linked, and a list of
providers to be propagated by the target being built.
"""
# Bazel fails the build if you try to query a fragment that hasn't been declared, even
# dynamically with `hasattr`/`getattr`. Thus, we have to use other information to determine
# whether we can access the `objc` configuration.
objc_fragment = (ctx.fragments.objc if toolchain.supports_objc_interop else None)
copts = expand_locations(ctx, ctx.attr.copts, ctx.attr.swiftc_inputs)
linkopts = list(linkopts) + expand_locations(ctx, ctx.attr.linkopts, ctx.attr.swiftc_inputs)
additional_inputs = ctx.files.swiftc_inputs
srcs = ctx.files.srcs
out_bin = derived_files.executable(ctx.actions, target_name = ctx.label.name)
objects_to_link = []
additional_output_groups = {}
compilation_providers = []
link_args = ctx.actions.args()
link_args.add("-o", out_bin)
if not srcs:
additional_inputs_to_linker = depset(direct = additional_inputs)
else:
module_name = ctx.attr.module_name
if not module_name:
module_name = swift_common.derive_module_name(ctx.label)
compile_results = swift_common.compile_as_objects(
actions = ctx.actions,
arguments = [],
compilation_mode = ctx.var["COMPILATION_MODE"],
copts = copts,
defines = ctx.attr.defines,
feature_configuration = feature_configuration,
module_name = module_name,
srcs = srcs,
swift_fragment = ctx.fragments.swift,
target_name = ctx.label.name,
toolchain = toolchain,
additional_input_depsets = [depset(direct = additional_inputs)],
configuration = ctx.configuration,
deps = ctx.attr.deps,
genfiles_dir = ctx.genfiles_dir,
objc_fragment = objc_fragment,
)
link_args.add_all(compile_results.linker_flags)
objects_to_link.extend(compile_results.output_objects)
additional_inputs_to_linker = depset(
direct = compile_results.linker_inputs,
transitive = [compile_results.compile_inputs],
)
dicts.add(additional_output_groups, compile_results.output_groups)
compilation_providers.append(
SwiftBinaryInfo(compile_options = compile_results.compile_options),
)
# TODO(b/70228246): Also support mostly-static and fully-dynamic modes, here and for the C++
# toolchain args below.
link_args.add_all(partial.call(
toolchain.linker_opts_producer,
is_static = True,
is_test = is_test,
))
# Enable LLVM coverage in CROSSTOOL if this is a coverage build. Note that we explicitly enable
# LLVM format and disable GCC format because the former is the only one that Swift supports.
if ctx.configuration.coverage_enabled:
coverage_features_to_enable = ["llvm_coverage_map_format"]
coverage_features_to_disable = ["gcc_coverage_map_format"]
else:
coverage_features_to_enable = []
coverage_features_to_disable = []
# Get additional linker flags from the C++ toolchain.
cpp_toolchain = find_cpp_toolchain(ctx)
cc_feature_configuration = cc_common.configure_features(
cc_toolchain = cpp_toolchain,
requested_features = (
swift_common.get_enabled_features(feature_configuration) +
["static_linking_mode"] +
coverage_features_to_enable
),
unsupported_features = (
swift_common.get_disabled_features(feature_configuration) +
coverage_features_to_disable
),
)
variables = cc_common.create_link_variables(
feature_configuration = cc_feature_configuration,
cc_toolchain = cpp_toolchain,
is_static_linking_mode = True,
)
link_cpp_toolchain_flags = cc_common.get_memory_inefficient_command_line(
feature_configuration = cc_feature_configuration,
action_name = CPP_LINK_EXECUTABLE_ACTION_NAME,
variables = variables,
)
link_args.add_all(link_cpp_toolchain_flags)
register_link_action(
actions = ctx.actions,
action_environment = toolchain.action_environment,
clang_executable = toolchain.clang_executable,
deps = ctx.attr.deps + toolchain.implicit_deps,
expanded_linkopts = linkopts,
inputs = additional_inputs_to_linker,
mnemonic = "SwiftLinkExecutable",
objects = objects_to_link,
outputs = [out_bin],
rule_specific_args = link_args,
toolchain = toolchain,
)
return out_bin, compilation_providers + [
OutputGroupInfo(**additional_output_groups),
]
def _create_xctest_runner(name, actions, binary, xctest_runner_template):
"""Creates a shell script that will bundle a test binary and launch the `xctest` helper tool.
Args:
name: The name of the target being built, which will be used as the basename of the bundle
(followed by the `.xctest` bundle extension).
actions: The context's actions object.
binary: The `File` representing the test binary that should be bundled and executed.
xctest_runner_template: The `File` that will be used as a template to generate the test
runner shell script.
Returns:
A `File` representing the shell script that will launch the test bundle with the `xctest`
tool.
"""
xctest_runner = derived_files.xctest_runner_script(actions, name)
actions.expand_template(
is_executable = True,
output = xctest_runner,
template = xctest_runner_template,
substitutions = {
"%binary%": binary.short_path,
},
)
return xctest_runner
def _swift_binary_impl(ctx):
toolchain = ctx.attr._toolchain[SwiftToolchainInfo]
feature_configuration = swift_common.configure_features(
toolchain = toolchain,
requested_features = ctx.features,
unsupported_features = ctx.disabled_features,
)
binary, providers = _swift_linking_rule_impl(
ctx,
feature_configuration = feature_configuration,
is_test = False,
toolchain = toolchain,
)
return providers + [
DefaultInfo(
executable = binary,
runfiles = ctx.runfiles(
collect_data = True,
collect_default = True,
files = ctx.files.data,
),
),
]
def _swift_test_impl(ctx):
toolchain = ctx.attr._toolchain[SwiftToolchainInfo]
feature_configuration = swift_common.configure_features(
toolchain = toolchain,
requested_features = ctx.features,
unsupported_features = ctx.disabled_features,
)
is_bundled = (toolchain.supports_objc_interop and
is_feature_enabled(SWIFT_FEATURE_BUNDLED_XCTESTS, feature_configuration))
# If we need to run the test in an .xctest bundle, the binary must have Mach-O type `MH_BUNDLE`
# instead of `MH_EXECUTE`.
# TODO(allevato): This should really be done in the toolchain's linker_opts_producer partial,
# but it doesn't take the feature_configuration as an argument. We should update it to do so.
linkopts = ["-Wl,-bundle"] if is_bundled else []
binary, providers = _swift_linking_rule_impl(
ctx,
feature_configuration = feature_configuration,
is_test = True,
linkopts = linkopts,
toolchain = toolchain,
)
# If the tests are to be bundled, create the test runner script as the rule's executable and
# place the binary in runfiles so that it can be copied into place. Otherwise, just use the
# binary itself as the executable to launch.
# TODO(b/65413470): Make the output of the rule _itself_ an `.xctest` bundle once some
# limitations of directory artifacts are resolved.
if is_bundled:
xctest_runner = _create_xctest_runner(
name = ctx.label.name,
actions = ctx.actions,
binary = binary,
xctest_runner_template = ctx.file._xctest_runner_template,
)
additional_test_outputs = [binary]
executable = xctest_runner
else:
additional_test_outputs = []
executable = binary
# TODO(b/79527231): Replace `instrumented_files` with a declared provider when it is available.
return struct(
instrumented_files = struct(
dependency_attributes = ["deps"],
extensions = ["swift"],
source_attributes = ["srcs"],
),
providers = providers + [
DefaultInfo(
executable = executable,
files = depset(direct = [executable] + additional_test_outputs),
runfiles = ctx.runfiles(
collect_data = True,
collect_default = True,
files = ctx.files.data + additional_test_outputs,
),
),
testing.ExecutionInfo(toolchain.execution_requirements),
],
)
swift_binary = rule(
attrs = dicts.add(
swift_common.compilation_attrs(additional_deps_aspects = [swift_c_module_aspect]),
{
"linkopts": attr.string_list(
doc = """
Additional linker options that should be passed to `clang`. These strings are subject to
`$(location ...)` expansion.
""",
mandatory = False,
),
# Do not add references; temporary attribute for C++ toolchain Skylark migration.
"_cc_toolchain": attr.label(default = Label("@bazel_tools//tools/cpp:current_cc_toolchain")),
},
),
doc = """
Compiles and links Swift code into an executable binary.
On Linux, this rule produces an executable binary for the desired target architecture.
On Apple platforms, this rule produces a _single-architecture_ binary; it does not produce fat
binaries. As such, this rule is mainly useful for creating Swift tools intended to run on the
local build machine. However, for historical reasons, the default Apple platform in Bazel is
**iOS** instead of macOS. Therefore, if you wish to build a simple single-architecture Swift
binary that can run on macOS, you must specify the correct CPU and platform on the command line as
follows:
```shell
$ bazel build //package:target --cpu=darwin_x86_64 --apple_platform_type=macos
```
If you want to create a multi-architecture binary or a bundled application, please use one of the
platform-specific application rules in [rules_apple](https://github.com/bazelbuild/rules_apple)
instead of `swift_binary`.
""",
executable = True,
fragments = [
"cpp",
"objc",
"swift",
],
implementation = _swift_binary_impl,
)
swift_test = rule(
attrs = dicts.add(
swift_common.compilation_attrs(additional_deps_aspects = [swift_c_module_aspect]),
{
"linkopts": attr.string_list(
doc = """
Additional linker options that should be passed to `clang`. These strings are subject to
`$(location ...)` expansion.
""",
mandatory = False,
),
# Do not add references; temporary attribute for C++ toolchain Skylark migration.
"_cc_toolchain": attr.label(default = Label("@bazel_tools//tools/cpp:current_cc_toolchain")),
"_xctest_runner_template": attr.label(
allow_single_file = True,
default = Label(
"@build_bazel_rules_swift//tools/xctest_runner:xctest_runner_template",
),
),
},
),
doc = """
Compiles and links Swift code into an executable test target.
The behavior of `swift_test` differs slightly for macOS targets, in order to provide seamless
integration with Apple's XCTest framework. The output of the rule is still a binary, but one whose
Mach-O type is `MH_BUNDLE` (a loadable bundle). Thus, the binary cannot be launched directly.
Instead, running `bazel test` on the target will launch a test runner script that copies it into an
`.xctest` bundle directory and then launches the `xctest` helper tool from Xcode, which uses
Objective-C runtime reflection to locate the tests.
On Linux, the output of a `swift_test` is a standard executable binary, because the implementation
of XCTest on that platform currently requires authors to explicitly list the tests that are present
and run them from their main program.
Test bundling on macOS can be disabled on a per-target basis, if desired. You may wish to do this if
you are not using XCTest, but rather a different test framework (or no framework at all) where the
pass/fail outcome is represented as a zero/non-zero exit code (as is the case with other Bazel test
rules like `cc_test`). To do so, disable the `"swift.bundled_xctests"` feature on the target:
```python
swift_test(
name = "MyTests",
srcs = [...],
features = ["-swift.bundled_xctests"],
)
```
You can also disable this feature for all the tests in a package by applying it to your BUILD file's
`package()` declaration instead of the individual targets.
""",
executable = True,
fragments = [
"cpp",
"objc",
"swift",
],
test = True,
implementation = _swift_test_impl,
)
|
class FormatSingle:
def __init__(self, singleData: dict):
self.data = singleData
def getMonthDay(self):
fullData = self.data["TimePeriod"]["Start"]
return fullData[5:]
def getAmount(self):
stringAmountData = self.data["Total"]["BlendedCost"]["Amount"]
return float(stringAmountData)
def getAmountUnit(self):
return self.data["Total"]["BlendedCost"]["Unit"]
|
"""
Minimum Domino version supported by this python-domino library
"""
MINIMUM_SUPPORTED_DOMINO_VERSION = '4.1.0'
"""
Environment variable names used by this python-domino library
"""
DOMINO_TOKEN_FILE_KEY_NAME = 'DOMINO_TOKEN_FILE'
DOMINO_USER_API_KEY_KEY_NAME = 'DOMINO_USER_API_KEY'
DOMINO_HOST_KEY_NAME = 'DOMINO_API_HOST'
|
def login_to_foxford(driver):
'''Foxford login'''
driver.get("about:blank")
driver.switch_to.window(driver.window_handles[0]) # <--- Needed in some cases when something popups
driver.get("https://foxford.ru/user/login/")
|
# https://leetcode.com/problems/coin-change/
#You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money.
#Return the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1.
#You may assume that you have an infinite number of each kind of coin.
class Solution(object):
def coinChange(self, coins, amount):
"""
:type coins: List[int]
:type amount: int
:rtype: int
"""
dp = [0] + [float("inf")] * amount
for i in range(1, amount + 1):
for coin in coins:
if i >= coin:
dp[i] = min(dp[i], dp[i - coin] + 1)
return dp[-1] if dp[-1] != float("inf") else -1 |
# -*- coding: utf-8 -*-
LOG_TYPES = {
"s": {"event": "Success Login", "level": 1}, # Info
"seacft": {"event": "Success Exchange", "level": 1}, # Info
"seccft": {"event": "Success Exchange (Client Credentials)", "level": 1}, # Info
"feacft": {"event": "Failed Exchange", "level": 3}, # Error
"feccft": {"event": "Failed Exchange (Client Credentials)", "level": 3}, # Error
"f": {"event": "Failed Login", "level": 3}, # Error
"w": {"event": "Warnings During Login", "level": 2}, # Warning
"du": {"event": "Deleted User", "level": 1}, # Info
"fu": {"event": "Failed Login (invalid email/username)", "level": 3}, # Error
"fp": {"event": "Failed Login (wrong password)", "level": 3}, # Error
"fc": {"event": "Failed by Connector", "level": 3}, # Error
"fco": {"event": "Failed by CORS", "level": 3}, # Error
"con": {"event": "Connector Online", "level": 1}, # Info
"coff": {"event": "Connector Offline", "level": 3}, # Error
"fcpro": {"event": "Failed Connector Provisioning", "level": 4}, # Critical
"ss": {"event": "Success Signup", "level": 1}, # Info
"fs": {"event": "Failed Signup", "level": 3}, # Error
"cs": {"event": "Code Sent", "level": 0}, # Debug
"cls": {"event": "Code/Link Sent", "level": 0}, # Debug
"sv": {"event": "Success Verification Email", "level": 0}, # Debug
"fv": {"event": "Failed Verification Email", "level": 0}, # Debug
"scp": {"event": "Success Change Password", "level": 1}, # Info
"fcp": {"event": "Failed Change Password", "level": 3}, # Error
"sce": {"event": "Success Change Email", "level": 1}, # Info
"fce": {"event": "Failed Change Email", "level": 3}, # Error
"scu": {"event": "Success Change Username", "level": 1}, # Info
"fcu": {"event": "Failed Change Username", "level": 3}, # Error
"scpn": {"event": "Success Change Phone Number", "level": 1}, # Info
"fcpn": {"event": "Failed Change Phone Number", "level": 3}, # Error
"svr": {"event": "Success Verification Email Request", "level": 0}, # Debug
"fvr": {"event": "Failed Verification Email Request", "level": 3}, # Error
"scpr": {"event": "Success Change Password Request", "level": 0}, # Debug
"fcpr": {"event": "Failed Change Password Request", "level": 3}, # Error
"fn": {"event": "Failed Sending Notification", "level": 3}, # Error
"sapi": {"event": "API Operation"},
"limit_wc": {"event": "Blocked Account", "level": 4}, # Critical
"limit_ui": {"event": "Too Many Calls to /userinfo", "level": 4}, # Critical
"api_limit": {"event": "Rate Limit On API", "level": 4}, # Critical
"sdu": {"event": "Successful User Deletion", "level": 1}, # Info
"fdu": {"event": "Failed User Deletion", "level": 3}, # Error
"fapi": {"event": "Failed API Operation", "level": 3}, # Error
"limit_mu": {"event": "Blocked IP Address", "level": 3}, # Error
"slo": {"event": "Success Logout", "level": 1}, # Info
"flo": {"event": "Failed Logout", "level": 3}, # Error
"sd": {"event": "Success Delegation", "level": 1}, # Info
"fd": {"event": "Failed Delegation", "level": 3}, # Error
}
|
"""
==============
Array indexing
==============
Array indexing refers to any use of the square brackets ([]) to index
array values. There are many options to indexing, which give numpy
indexing great power, but with power comes some complexity and the
potential for confusion. This section is just an overview of the
various options and issues related to indexing. Aside from single
element indexing, the details on most of these options are to be
found in related sections.
Assignment vs referencing
=========================
Most of the following examples show the use of indexing when
referencing data in an array. The examples work just as well
when assigning to an array. See the section at the end for
specific examples and explanations on how assignments work.
Single element indexing
=======================
Single element indexing for a 1-D array is what one expects. It work
exactly like that for other standard Python sequences. It is 0-based,
and accepts negative indices for indexing from the end of the array. ::
>>> x = np.arange(10)
>>> x[2]
2
>>> x[-2]
8
Unlike lists and tuples, numpy arrays support multidimensional indexing
for multidimensional arrays. That means that it is not necessary to
separate each dimension's index into its own set of square brackets. ::
>>> x.shape = (2,5) # now x is 2-dimensional
>>> x[1,3]
8
>>> x[1,-1]
9
Note that if one indexes a multidimensional array with fewer indices
than dimensions, one gets a subdimensional array. For example: ::
>>> x[0]
array([0, 1, 2, 3, 4])
That is, each index specified selects the array corresponding to the
rest of the dimensions selected. In the above example, choosing 0
means that the remaining dimension of length 5 is being left unspecified,
and that what is returned is an array of that dimensionality and size.
It must be noted that the returned array is not a copy of the original,
but points to the same values in memory as does the original array.
In this case, the 1-D array at the first position (0) is returned.
So using a single index on the returned array, results in a single
element being returned. That is: ::
>>> x[0][2]
2
So note that ``x[0,2] = x[0][2]`` though the second case is more
inefficient as a new temporary array is created after the first index
that is subsequently indexed by 2.
Note to those used to IDL or Fortran memory order as it relates to
indexing. NumPy uses C-order indexing. That means that the last
index usually represents the most rapidly changing memory location,
unlike Fortran or IDL, where the first index represents the most
rapidly changing location in memory. This difference represents a
great potential for confusion.
Other indexing options
======================
It is possible to slice and stride arrays to extract arrays of the
same number of dimensions, but of different sizes than the original.
The slicing and striding works exactly the same way it does for lists
and tuples except that they can be applied to multiple dimensions as
well. A few examples illustrates best: ::
>>> x = np.arange(10)
>>> x[2:5]
array([2, 3, 4])
>>> x[:-7]
array([0, 1, 2])
>>> x[1:7:2]
array([1, 3, 5])
>>> y = np.arange(35).reshape(5,7)
>>> y[1:5:2,::3]
array([[ 7, 10, 13],
[21, 24, 27]])
Note that slices of arrays do not copy the internal array data but
only produce new views of the original data. This is different from
list or tuple slicing and an explicit ``copy()`` is recommended if
the original data is not required anymore.
It is possible to index arrays with other arrays for the purposes of
selecting lists of values out of arrays into new arrays. There are
two different ways of accomplishing this. One uses one or more arrays
of index values. The other involves giving a boolean array of the proper
shape to indicate the values to be selected. Index arrays are a very
powerful tool that allow one to avoid looping over individual elements in
arrays and thus greatly improve performance.
It is possible to use special features to effectively increase the
number of dimensions in an array through indexing so the resulting
array acquires the shape needed for use in an expression or with a
specific function.
Index arrays
============
NumPy arrays may be indexed with other arrays (or any other sequence-
like object that can be converted to an array, such as lists, with the
exception of tuples; see the end of this document for why this is). The
use of index arrays ranges from simple, straightforward cases to
complex, hard-to-understand cases. For all cases of index arrays, what
is returned is a copy of the original data, not a view as one gets for
slices.
Index arrays must be of integer type. Each value in the array indicates
which value in the array to use in place of the index. To illustrate: ::
>>> x = np.arange(10,1,-1)
>>> x
array([10, 9, 8, 7, 6, 5, 4, 3, 2])
>>> x[np.array([3, 3, 1, 8])]
array([7, 7, 9, 2])
The index array consisting of the values 3, 3, 1 and 8 correspondingly
create an array of length 4 (same as the index array) where each index
is replaced by the value the index array has in the array being indexed.
Negative values are permitted and work as they do with single indices
or slices: ::
>>> x[np.array([3,3,-3,8])]
array([7, 7, 4, 2])
It is an error to have index values out of bounds: ::
>>> x[np.array([3, 3, 20, 8])]
<type 'exceptions.IndexError'>: index 20 out of bounds 0<=index<9
Generally speaking, what is returned when index arrays are used is
an array with the same shape as the index array, but with the type
and values of the array being indexed. As an example, we can use a
multidimensional index array instead: ::
>>> x[np.array([[1,1],[2,3]])]
array([[9, 9],
[8, 7]])
Indexing Multi-dimensional arrays
=================================
Things become more complex when multidimensional arrays are indexed,
particularly with multidimensional index arrays. These tend to be
more unusual uses, but they are permitted, and they are useful for some
problems. We'll start with the simplest multidimensional case (using
the array y from the previous examples): ::
>>> y[np.array([0,2,4]), np.array([0,1,2])]
array([ 0, 15, 30])
In this case, if the index arrays have a matching shape, and there is
an index array for each dimension of the array being indexed, the
resultant array has the same shape as the index arrays, and the values
correspond to the index set for each position in the index arrays. In
this example, the first index value is 0 for both index arrays, and
thus the first value of the resultant array is y[0,0]. The next value
is y[2,1], and the last is y[4,2].
If the index arrays do not have the same shape, there is an attempt to
broadcast them to the same shape. If they cannot be broadcast to the
same shape, an exception is raised: ::
>>> y[np.array([0,2,4]), np.array([0,1])]
<type 'exceptions.ValueError'>: shape mismatch: objects cannot be
broadcast to a single shape
The broadcasting mechanism permits index arrays to be combined with
scalars for other indices. The effect is that the scalar value is used
for all the corresponding values of the index arrays: ::
>>> y[np.array([0,2,4]), 1]
array([ 1, 15, 29])
Jumping to the next level of complexity, it is possible to only
partially index an array with index arrays. It takes a bit of thought
to understand what happens in such cases. For example if we just use
one index array with y: ::
>>> y[np.array([0,2,4])]
array([[ 0, 1, 2, 3, 4, 5, 6],
[14, 15, 16, 17, 18, 19, 20],
[28, 29, 30, 31, 32, 33, 34]])
What results is the construction of a new array where each value of
the index array selects one row from the array being indexed and the
resultant array has the resulting shape (number of index elements,
size of row).
An example of where this may be useful is for a color lookup table
where we want to map the values of an image into RGB triples for
display. The lookup table could have a shape (nlookup, 3). Indexing
such an array with an image with shape (ny, nx) with dtype=np.uint8
(or any integer type so long as values are with the bounds of the
lookup table) will result in an array of shape (ny, nx, 3) where a
triple of RGB values is associated with each pixel location.
In general, the shape of the resultant array will be the concatenation
of the shape of the index array (or the shape that all the index arrays
were broadcast to) with the shape of any unused dimensions (those not
indexed) in the array being indexed.
Boolean or "mask" index arrays
==============================
Boolean arrays used as indices are treated in a different manner
entirely than index arrays. Boolean arrays must be of the same shape
as the initial dimensions of the array being indexed. In the
most straightforward case, the boolean array has the same shape: ::
>>> b = y>20
>>> y[b]
array([21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34])
Unlike in the case of integer index arrays, in the boolean case, the
result is a 1-D array containing all the elements in the indexed array
corresponding to all the true elements in the boolean array. The
elements in the indexed array are always iterated and returned in
:term:`row-major` (C-style) order. The result is also identical to
``y[np.nonzero(b)]``. As with index arrays, what is returned is a copy
of the data, not a view as one gets with slices.
The result will be multidimensional if y has more dimensions than b.
For example: ::
>>> b[:,5] # use a 1-D boolean whose first dim agrees with the first dim of y
array([False, False, False, True, True])
>>> y[b[:,5]]
array([[21, 22, 23, 24, 25, 26, 27],
[28, 29, 30, 31, 32, 33, 34]])
Here the 4th and 5th rows are selected from the indexed array and
combined to make a 2-D array.
In general, when the boolean array has fewer dimensions than the array
being indexed, this is equivalent to y[b, ...], which means
y is indexed by b followed by as many : as are needed to fill
out the rank of y.
Thus the shape of the result is one dimension containing the number
of True elements of the boolean array, followed by the remaining
dimensions of the array being indexed.
For example, using a 2-D boolean array of shape (2,3)
with four True elements to select rows from a 3-D array of shape
(2,3,5) results in a 2-D result of shape (4,5): ::
>>> x = np.arange(30).reshape(2,3,5)
>>> x
array([[[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14]],
[[15, 16, 17, 18, 19],
[20, 21, 22, 23, 24],
[25, 26, 27, 28, 29]]])
>>> b = np.array([[True, True, False], [False, True, True]])
>>> x[b]
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[20, 21, 22, 23, 24],
[25, 26, 27, 28, 29]])
For further details, consult the numpy reference documentation on array indexing.
Combining index arrays with slices
==================================
Index arrays may be combined with slices. For example: ::
>>> y[np.array([0,2,4]),1:3]
array([[ 1, 2],
[15, 16],
[29, 30]])
In effect, the slice is converted to an index array
np.array([[1,2]]) (shape (1,2)) that is broadcast with the index array
to produce a resultant array of shape (3,2).
Likewise, slicing can be combined with broadcasted boolean indices: ::
>>> b = y > 20
>>> b
array([[False, False, False, False, False, False, False],
[False, False, False, False, False, False, False],
[False, False, False, False, False, False, False],
[ True, True, True, True, True, True, True],
[ True, True, True, True, True, True, True]])
>>> y[b[:,5],1:3]
array([[22, 23],
[29, 30]])
Structural indexing tools
=========================
To facilitate easy matching of array shapes with expressions and in
assignments, the np.newaxis object can be used within array indices
to add new dimensions with a size of 1. For example: ::
>>> y.shape
(5, 7)
>>> y[:,np.newaxis,:].shape
(5, 1, 7)
Note that there are no new elements in the array, just that the
dimensionality is increased. This can be handy to combine two
arrays in a way that otherwise would require explicitly reshaping
operations. For example: ::
>>> x = np.arange(5)
>>> x[:,np.newaxis] + x[np.newaxis,:]
array([[0, 1, 2, 3, 4],
[1, 2, 3, 4, 5],
[2, 3, 4, 5, 6],
[3, 4, 5, 6, 7],
[4, 5, 6, 7, 8]])
The ellipsis syntax maybe used to indicate selecting in full any
remaining unspecified dimensions. For example: ::
>>> z = np.arange(81).reshape(3,3,3,3)
>>> z[1,...,2]
array([[29, 32, 35],
[38, 41, 44],
[47, 50, 53]])
This is equivalent to: ::
>>> z[1,:,:,2]
array([[29, 32, 35],
[38, 41, 44],
[47, 50, 53]])
Assigning values to indexed arrays
==================================
As mentioned, one can select a subset of an array to assign to using
a single index, slices, and index and mask arrays. The value being
assigned to the indexed array must be shape consistent (the same shape
or broadcastable to the shape the index produces). For example, it is
permitted to assign a constant to a slice: ::
>>> x = np.arange(10)
>>> x[2:7] = 1
or an array of the right size: ::
>>> x[2:7] = np.arange(5)
Note that assignments may result in changes if assigning
higher types to lower types (like floats to ints) or even
exceptions (assigning complex to floats or ints): ::
>>> x[1] = 1.2
>>> x[1]
1
>>> x[1] = 1.2j
TypeError: can't convert complex to int
Unlike some of the references (such as array and mask indices)
assignments are always made to the original data in the array
(indeed, nothing else would make sense!). Note though, that some
actions may not work as one may naively expect. This particular
example is often surprising to people: ::
>>> x = np.arange(0, 50, 10)
>>> x
array([ 0, 10, 20, 30, 40])
>>> x[np.array([1, 1, 3, 1])] += 1
>>> x
array([ 0, 11, 20, 31, 40])
Where people expect that the 1st location will be incremented by 3.
In fact, it will only be incremented by 1. The reason is because
a new array is extracted from the original (as a temporary) containing
the values at 1, 1, 3, 1, then the value 1 is added to the temporary,
and then the temporary is assigned back to the original array. Thus
the value of the array at x[1]+1 is assigned to x[1] three times,
rather than being incremented 3 times.
Dealing with variable numbers of indices within programs
========================================================
The index syntax is very powerful but limiting when dealing with
a variable number of indices. For example, if you want to write
a function that can handle arguments with various numbers of
dimensions without having to write special case code for each
number of possible dimensions, how can that be done? If one
supplies to the index a tuple, the tuple will be interpreted
as a list of indices. For example (using the previous definition
for the array z): ::
>>> indices = (1,1,1,1)
>>> z[indices]
40
So one can use code to construct tuples of any number of indices
and then use these within an index.
Slices can be specified within programs by using the slice() function
in Python. For example: ::
>>> indices = (1,1,1,slice(0,2)) # same as [1,1,1,0:2]
>>> z[indices]
array([39, 40])
Likewise, ellipsis can be specified by code by using the Ellipsis
object: ::
>>> indices = (1, Ellipsis, 1) # same as [1,...,1]
>>> z[indices]
array([[28, 31, 34],
[37, 40, 43],
[46, 49, 52]])
For this reason it is possible to use the output from the np.nonzero()
function directly as an index since it always returns a tuple of index
arrays.
Because the special treatment of tuples, they are not automatically
converted to an array as a list would be. As an example: ::
>>> z[[1,1,1,1]] # produces a large array
array([[[[27, 28, 29],
[30, 31, 32], ...
>>> z[(1,1,1,1)] # returns a single value
40
"""
|
class InvalidProgramException(SystemException,ISerializable,_Exception):
"""
The exception that is thrown when a program contains invalid Microsoft intermediate language (MSIL) or metadata. Generally this indicates a bug in the compiler that generated the program.
InvalidProgramException()
InvalidProgramException(message: str)
InvalidProgramException(message: str,inner: Exception)
"""
def add_SerializeObjectState(self,*args):
""" add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """
pass
def remove_SerializeObjectState(self,*args):
""" remove_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
@staticmethod
def __new__(self,message=None,inner=None):
"""
__new__(cls: type)
__new__(cls: type,message: str)
__new__(cls: type,message: str,inner: Exception)
"""
pass
def __reduce_ex__(self,*args):
pass
def __str__(self,*args):
pass
|
# This sample tests error detection for certain cases that
# are explicitly disallowed by PEP 572 for assignment expressions
# when used in context of a list comprehension.
pairs = []
stuff = []
# These should generate an error because assignment
# expressions aren't allowed within an iterator expression
# in a "for" clause of a list comprehension.
[x for x, y in (pairs2 := pairs) if x % 2 == 0]
[x for x, y in ([1, 2, 3, pairs2 := pairs]) if x % 2 == 0]
{x: y for x, y in (pairs2 := pairs) if x % 2 == 0}
{x for x, y in (pairs2 := pairs) if x % 2 == 0}
foo = (x for x, y in ([1, 2, 3, pairs2 := pairs]) if x % 2 == 0)
# This should generate an error because 'j' is used as a
# "for target" and the target of an assignment expression.
[[(j := j) for i in range(5)] for j in range(5)]
[i := 0 for i, j in stuff]
[i+1 for i in (i := stuff)]
[False and (i := 0) for i, j in stuff]
[i for i, j in stuff if True or (j := 1)]
# These should generate an error because assignment
# expressions aren't allowed within an iterator expression
# in a "for" clause of a list comprehension.
[i+1 for i in (j := stuff)]
[i+1 for i in range(2) for j in (k := stuff)]
[i+1 for i in [j for j in (k := stuff)]]
[i+1 for i in (lambda: (j := stuff))()]
class Example:
# This should generate an error because the containing
# scope for the list comprehension is a class.
[(j := i) for i in range(5)]
# This should generate an error because 'j' is used as a
# "for target" and the target of an assignment expression.
[i for i in [1, 2] if True or (j := 1) for j in range(10)]
|
#
# Solicitud de inscripcion SCIT
#
CP = (
(u"CABA", u"RECOLETA, CABA - C1119"),
(u"22 DE MAYO", u"22 DE MAYO - S2124XAD"),
(u"4 DE FEBRERO", u"4 DE FEBRERO - S2732XAA"),
(u"AARÓN CASTELLANOS", u"AARÓN CASTELLANOS - S6106"),
(u"ABIPONES", u"ABIPONES - S3042XAA"),
(u"ACEBAL", u"ACEBAL - S2109"),
(u"ACHAVAL RODRIGUEZ", u"ACHAVAL RODRIGUEZ - S2344XAA"),
(u"ADOLFO ALSINA", u"ADOLFO ALSINA - S2311XAC"),
(u"AERO CLUB ROSARIO", u"AERO CLUB ROSARIO - S2132XAC"),
(u"AGUARÁ GRANDE", u"AGUARÁ GRANDE - S3071XAA"),
(u"ALBARELLOS", u"ALBARELLOS - S2101"),
(u"ALCORTA", u"ALCORTA - S2117"),
(u"ALDAO", u"ALDAO - S2214"),
(u"ALEJANDRA", u"ALEJANDRA - S3051"),
(u"ALLENDE", u"ALLENDE - S3550XAE"),
(u"ALTO VERDE", u"ALTO VERDE - S3001XAM"),
(u"ÁLVAREZ", u"ÁLVAREZ - S2107"),
(u"ALVEAR", u"ALVEAR - S2126"),
(u"AMBROSETTI", u"AMBROSETTI - S2352"),
(u"AMENÁBAR", u"AMENÁBAR - S6103"),
(u"ANDINO", u"ANDINO - S2214"),
(u"ANGEL GALLARDO", u"ANGEL GALLARDO - S3014"),
(u"ANGÉLICA", u"ANGÉLICA - S2303"),
(u"ANGELONI", u"ANGELONI - S3048"),
(u"ANTONIO PINI", u"ANTONIO PINI - S3061XAI"),
(u"AREQUITO", u"AREQUITO - S2183XAB"),
(u"ARIJON", u"ARIJON - S2242XAA"),
(u"ARMINDA", u"ARMINDA - S2119"),
(u"ARMSTRONG", u"ARMSTRONG - S2508"),
(u"AROCENA", u"AROCENA - S2242"),
(u"AROMOS", u"AROMOS - S3036XAB"),
(u"ARRASCAETA", u"ARRASCAETA - S3046XAK"),
(u"ARROYO AGUIAR", u"ARROYO AGUIAR - S3014"),
(u"ARROYO CEIBAL", u"ARROYO CEIBAL - S3575"),
(u"ARROYO DEL REY", u"ARROYO DEL REY - S3565XAA"),
(u"ARROYO LEYES", u"ARROYO LEYES - S3001XAP"),
(u"ARROYO SECO", u"ARROYO SECO - S2128"),
(u"ARRUFÓ", u"ARRUFÓ - S2344"),
(u"ARSENAL DE GUERRA SAN LORENZO", u"ARSENAL DE GUERRA SAN LORENZO - S2156XAB"),
(u"ARTEAGA", u"ARTEAGA - S2187"),
(u"ASCOCHINGAS", u"ASCOCHINGAS - S3014XAG"),
(u"ASUNCION MARIA", u"ASUNCION MARIA - S3040XAG"),
(u"ATALIVA", u"ATALIVA - S2307"),
(u"AURELIA", u"AURELIA - S2318"),
(u"AURELIA NORTE", u"AURELIA NORTE - S2318XAA"),
(u"AURELIA SUD", u"AURELIA SUD - S2318XAB"),
(u"AVELLANEDA", u"AVELLANEDA - S3561"),
(u"AVENA", u"AVENA - S2449XAA"),
(u"AVICHUNCHO", u"AVICHUNCHO - S3040XAC"),
(u"BAJO LAS TUNAS", u"BAJO LAS TUNAS - S3017XAA"),
(u"BARLETT", u"BARLETT - S2175XAA"),
(u"BARRANCAS", u"BARRANCAS - S2246"),
(u"BARRANQUITAS", u"BARRANQUITAS - S3000XAD"),
(u"BARRIO BELGRANO ORTIZ", u"BARRIO BELGRANO ORTIZ - S2440XAA"),
(u"BARRIO CAIMA", u"BARRIO CAIMA - S2242"),
(u"BARROS PAZOS", u"BARROS PAZOS - S3569"),
(u"BAUER Y SIGEL", u"BAUER Y SIGEL - S2403XAA"),
(u"BEALISTOCK", u"BEALISTOCK - S2326XAE"),
(u"BELLA ITALIA", u"BELLA ITALIA - S2301"),
(u"BERABEVÚ", u"BERABEVÚ - S2639"),
(u"BERNA", u"BERNA - S3569"),
(u"BERNARD", u"BERNARD - S2119XAA"),
(u"BERNARDO DE IRIGOYEN", u"BERNARDO DE IRIGOYEN - S2248"),
(u"BERRETTA", u"BERRETTA - S2501XAC"),
(u"BIGAND", u"BIGAND - S2177"),
(u"BOCA P 25", u"BOCA P 25 - S2600XAB"),
(u"BOMBAL", u"BOMBAL - S2179"),
(u"BORGHI", u"BORGHI - S2156XAC"),
(u"BOSSI", u"BOSSI - S2326"),
(u"BOUQUET", u"BOUQUET - S2523"),
(u"BUSTINZA", u"BUSTINZA - S2501"),
(u"CABAL", u"CABAL - S3036"),
(u"CABAÑA EL CISNE", u"CABAÑA EL CISNE - S2322"),
(u"CABEZA DE CHANCHO", u"CABEZA DE CHANCHO - S3061XAC"),
(u"CACIQUE ARIACAIQUÍN", u"CACIQUE ARIACAIQUÍN - S3041XAB"),
(u"CAFFERATA", u"CAFFERATA - S2643"),
(u"CALCHAQUÍ", u"CALCHAQUÍ - S3050"),
(u"CALCHINES", u"CALCHINES - S3001XAA"),
(u"CAMINERA GENERAL LÓPEZ", u"CAMINERA GENERAL LÓPEZ - S2720XAA"),
(u"CAMINO MONTE FLORES", u"CAMINO MONTE FLORES - S2126XAA"),
(u"CAMPO ANDINO", u"CAMPO ANDINO - S3021"),
(u"CAMPO BERRAZ", u"CAMPO BERRAZ - S3046XAL"),
(u"CAMPO BOTTO", u"CAMPO BOTTO - S2345XAA"),
(u"CAMPO BRARDA", u"CAMPO BRARDA - S2248XAB"),
(u"CAMPO CALVO", u"CAMPO CALVO - S2123XAA"),
(u"CAMPO CARIGNANO", u"CAMPO CARIGNANO - S2248XAC"),
(u"CAMPO CASTRO", u"CAMPO CASTRO - S2148XAB"),
(u"CAMPO CHARO", u"CAMPO CHARO - S2512XAC"),
(u"CAMPO CLUCELLAS", u"CAMPO CLUCELLAS - S2407XAA"),
(u"CAMPO COUBERT", u"CAMPO COUBERT - S3056XAA"),
(u"CAMPO CRENNA", u"CAMPO CRENNA - S2185XAA"),
(u"CAMPO CRESPO", u"CAMPO CRESPO - S3001XAQ"),
(u"CAMPO DARATTI", u"CAMPO DARATTI - S2307XAA"),
(u"CAMPO DEL MEDIO", u"CAMPO DEL MEDIO - S3001XAB"),
(u"CAMPO EL ARAZA", u"CAMPO EL ARAZA - S3569XAA"),
(u"CAMPO EL MATACO", u"CAMPO EL MATACO - S2342XAA"),
(u"CAMPO FAGGIANO", u"CAMPO FAGGIANO - S2440XAB"),
(u"CAMPO FURRER", u"CAMPO FURRER - S3569XAB"),
(u"CAMPO GALLOSO", u"CAMPO GALLOSO - S2212XAA"),
(u"CAMPO GARABATO", u"CAMPO GARABATO - S3572XAA"),
(u"CAMPO GARAY", u"CAMPO GARAY - S3066XAB"),
(u"CAMPO GARCIA", u"CAMPO GARCIA - S2240XAC"),
(u"CAMPO GENERO", u"CAMPO GENERO - S2248XAD"),
(u"CAMPO GIMBATTI", u"CAMPO GIMBATTI - S2508XAB"),
(u"CAMPO GIMENEZ", u"CAMPO GIMENEZ - S2253XAA"),
(u"CAMPO GOLA", u"CAMPO GOLA - S3516XAA"),
(u"CAMPO GRANDE", u"CAMPO GRANDE - S3575XAF"),
(u"CAMPO HORQUESCO", u"CAMPO HORQUESCO - S2144XAB"),
(u"CAMPO HUBER", u"CAMPO HUBER - S3555XAB"),
(u"CAMPO ITURRASPE", u"CAMPO ITURRASPE - S3001XAC"),
(u"CAMPO LA AMISTAD", u"CAMPO LA AMISTAD - S2508XAA"),
(u"CAMPO LA PAZ", u"CAMPO LA PAZ - S2512XAB"),
(u"CAMPO LA RIVIERE", u"CAMPO LA RIVIERE - S2505XAA"),
(u"CAMPO LEHMAN", u"CAMPO LEHMAN - S3014XAA"),
(u"CAMPO MAGNIN", u"CAMPO MAGNIN - S3011XAC"),
(u"CAMPO MEDINA", u"CAMPO MEDINA - S2142XAA"),
(u"CAMPO MONTE LA VIRUELA", u"CAMPO MONTE LA VIRUELA - S3551XAK"),
(u"CAMPO MOURE", u"CAMPO MOURE - S2240XAD"),
(u"CAMPO NUEVO", u"CAMPO NUEVO - S2639XAA"),
(u"CAMPO PALETTA", u"CAMPO PALETTA - S2206XAA"),
(u"CAMPO PESOA", u"CAMPO PESOA - S2173XAA"),
(u"CAMPO QUIÑONES", u"CAMPO QUIÑONES - S2258"),
(u"CAMPO QUIRNO", u"CAMPO QUIRNO - S2607XAA"),
(u"CAMPO RAFFO", u"CAMPO RAFFO - S2216XAA"),
(u"CAMPO RAMSEYER", u"CAMPO RAMSEYER - S3572XAE"),
(u"CAMPO REDONDO", u"CAMPO REDONDO - S3581XAF"),
(u"CAMPO RODRIGUEZ", u"CAMPO RODRIGUEZ - S2255XAA"),
(u"CAMPO ROMERO", u"CAMPO ROMERO - S2407XAB"),
(u"CAMPO RUEDA", u"CAMPO RUEDA - S2109XAA"),
(u"CAMPO SAN JOSÉ", u"CAMPO SAN JOSÉ - S3060XAF"),
(u"CAMPO SANTA ISABEL", u"CAMPO SANTA ISABEL - S2505XAB"),
(u"CAMPO SANTO DOMINGO", u"CAMPO SANTO DOMINGO - S3020XAA"),
(u"CAMPO SIETE PROVINCIAS", u"CAMPO SIETE PROVINCIAS - S3575XAG"),
(u"CAMPO TORQUINSTON", u"CAMPO TORQUINSTON - S2403XAB"),
(u"CAMPO UBAJO", u"CAMPO UBAJO - S3560XAF"),
(u"CAMPO VERGE", u"CAMPO VERGE - S3516XAC"),
(u"CAMPO YAGUARETE", u"CAMPO YAGUARETE - S3586XAC"),
(u"CAMPO ZAVALLA", u"CAMPO ZAVALLA - S3045XAA"),
(u"CAMPO ZURBRIGGEN", u"CAMPO ZURBRIGGEN - S2407XAC"),
(u"CANDELARIA SUD", u"CANDELARIA SUD - S2170XAA"),
(u"CANDIOTI", u"CANDIOTI - S3018"),
(u"CAÑADA DE GOMEZ", u"CAÑADA DE GOMEZ - S2500"),
(u"CAÑADA DEL UCLE", u"CAÑADA DEL UCLE - S2635"),
(u"CAÑADA OMBU", u"CAÑADA OMBU - S3551"),
(u"CAÑADA RICA", u"CAÑADA RICA - S2105"),
(u"CAÑADA ROSQUIN", u"CAÑADA ROSQUIN - S2454"),
(u"CAÑADITA", u"CAÑADITA - S3052"),
(u"CAPILLA GUADALUPE NORTE", u"CAPILLA GUADALUPE NORTE - S3574XAA"),
(u"CAPILLA SAN JOSÉ", u"CAPILLA SAN JOSÉ - S2301XAA"),
(u"CAPITÁN BERMÚDEZ", u"CAPITÁN BERMÚDEZ - S2154"),
(u"CAPIVARA", u"CAPIVARA - S2311XAF"),
(u"CARAGUATAY", u"CARAGUATAY - S3557XAA"),
(u"CARCARAÑA", u"CARCARAÑA - S2138"),
(u"CARCEL MODELO CORONDA", u"CARCEL MODELO CORONDA - S2240XAA"),
(u"CARLOS DOSE", u"CARLOS DOSE - S2635XAA"),
(u"CARLOS PELLEGRINI", u"CARLOS PELLEGRINI - S2453"),
(u"CARMEN", u"CARMEN - S2618"),
(u"CARMEN DEL SAUCE", u"CARMEN DEL SAUCE - S2109"),
(u"CARRERAS", u"CARRERAS - S2729"),
(u"CARRIZALES", u"CARRIZALES - S2218XAA"),
(u"CASABLANCA", u"CASABLANCA - S2317"),
(u"CASALEGNO", u"CASALEGNO - S2248XAA"),
(u"CASAS", u"CASAS - S2148"),
(u"CASILDA", u"CASILDA - S2170"),
(u"CASTELAR", u"CASTELAR - S2401"),
(u"CAVOUR", u"CAVOUR - S3081"),
(u"CAYASTÁ", u"CAYASTÁ - S3001"),
(u"CAYASTACITO", u"CAYASTACITO - S3038"),
(u"CENTENO", u"CENTENO - S2148"),
(u"CEPEDA", u"CEPEDA - S2105"),
(u"CERANA", u"CERANA - S2202XAA"),
(u"CERES", u"CERES - S2340"),
(u"CERRITO", u"CERRITO - S3550XAD"),
(u"CHABÁS", u"CHABÁS - S2173"),
(u"CHAÑAR LADEADO", u"CHAÑAR LADEADO - S2643"),
(u"CHAPUY", u"CHAPUY - S2603"),
(u"CHATEAUBRIAND", u"CHATEAUBRIAND - S2600XAC"),
(u"CHOVET", u"CHOVET - S2633"),
(u"CICARELLI", u"CICARELLI - S2500XAA"),
(u"CLARKE", u"CLARKE - S2218"),
(u"CLASON", u"CLASON - S2146"),
(u"CLUCELLAS", u"CLUCELLAS - S2407"),
(u"COLASTINÉ", u"COLASTINÉ - S3001XAN"),
(u"COLASTINÉ NORTE", u"COLASTINÉ NORTE - S3001XAO"),
(u"COLMENA", u"COLMENA - S3551XAM"),
(u"COLONIA ADOLFO ALSINA", u"COLONIA ADOLFO ALSINA - S3029XAA"),
(u"COLONIA ALDAO", u"COLONIA ALDAO - S2317XAB"),
(u"COLONIA ALTHUAUS", u"COLONIA ALTHUAUS - S3572XAB"),
(u"COLONIA ANA", u"COLONIA ANA - S2345XAB"),
(u"COLONIA BELGRANO", u"COLONIA BELGRANO - S2257"),
(u"COLONIA BELLA ITALIA", u"COLONIA BELLA ITALIA - S2300XAD"),
(u"COLONIA BERLIN", u"COLONIA BERLIN - S2313XAG"),
(u"COLONIA BICHA", u"COLONIA BICHA - S2317XAC"),
(u"COLONIA BIGAND", u"COLONIA BIGAND - S2317XAD"),
(u"COLONIA CALIFORNIA", u"COLONIA CALIFORNIA - S3005XAA"),
(u"COLONIA CAMPO BOTTO", u"COLONIA CAMPO BOTTO - S3036XAA"),
(u"COLONIA CANDELARIA", u"COLONIA CANDELARIA - S2170XAB"),
(u"COLONIA CASTELLANOS", u"COLONIA CASTELLANOS - S2301"),
(u"COLONIA CELLO", u"COLONIA CELLO - S2405XAA"),
(u"COLONIA CLARA", u"COLONIA CLARA - S3025XAD"),
(u"COLONIA CLODOMIRA", u"COLONIA CLODOMIRA - S2123XAB"),
(u"COLONIA CORONDINA", u"COLONIA CORONDINA - S2240XAB"),
(u"COLONIA DOLORES", u"COLONIA DOLORES - S3045XAE"),
(u"COLONIA DOS ROSAS Y LA LEGUA", u"COLONIA DOS ROSAS Y LA LEGUA - S2349"),
(u"COLONIA DURAN", u"COLONIA DURAN - S3553XAB"),
(u"COLONIA EL CARMEN", u"COLONIA EL CARMEN - S2138XAA"),
(u"COLONIA EL OCHENTA", u"COLONIA EL OCHENTA - S3042XAB"),
(u"COLONIA EL SIMBOL", u"COLONIA EL SIMBOL - S3074XAC"),
(u"COLONIA EL TOBA", u"COLONIA EL TOBA - S3553XAC"),
(u"COLONIA EL VEINTICINCO", u"COLONIA EL VEINTICINCO - S3560XAB"),
(u"COLONIA ELLA", u"COLONIA ELLA - S3572XAC"),
(u"COLONIA ESCRIBANO", u"COLONIA ESCRIBANO - S2103XAB"),
(u"COLONIA FERNANDEZ", u"COLONIA FERNANDEZ - S2639XAB"),
(u"COLONIA FRANCESA", u"COLONIA FRANCESA - S3005XAB"),
(u"COLONIA GOMEZ", u"COLONIA GOMEZ - S2639XAC"),
(u"COLONIA HANSEN", u"COLONIA HANSEN - S2637XAA"),
(u"COLONIA HARDY", u"COLONIA HARDY - S3592"),
(u"COLONIA INDEPENDENCIA", u"COLONIA INDEPENDENCIA - S3066XAC"),
(u"COLONIA JOSEFINA", u"COLONIA JOSEFINA - S2403"),
(u"COLONIA LA BLANCA", u"COLONIA LA BLANCA - S3052XAB"),
(u"COLONIA LA CATALANA", u"COLONIA LA CATALANA - S2637"),
(u"COLONIA LA COSTA", u"COLONIA LA COSTA - S2170XAC"),
(u"COLONIA LA MARIA", u"COLONIA LA MARIA - S3056XAC"),
(u"COLONIA LA MORA", u"COLONIA LA MORA - S3045XAB"),
(u"COLONIA LA NEGRA", u"COLONIA LA NEGRA - S3054XAF"),
(u"COLONIA LA NICOLASA", u"COLONIA LA NICOLASA - S3056XAB"),
(u"COLONIA LA NUEVA", u"COLONIA LA NUEVA - S3081XAA"),
(u"COLONIA LA PALENCIA", u"COLONIA LA PALENCIA - S2639"),
(u"COLONIA LA PELLEGRINI", u"COLONIA LA PELLEGRINI - S2639"),
(u"COLONIA LA PENCA", u"COLONIA LA PENCA - S3045XAF"),
(u"COLONIA LA YERBA", u"COLONIA LA YERBA - S2451XAB"),
(u"COLONIA LAGO DI COMO", u"COLONIA LAGO DI COMO - S2187XAA"),
(u"COLONIA LOS ZAPALLOS", u"COLONIA LOS ZAPALLOS - S3003XAA"),
(u"COLONIA MACKINLAY", u"COLONIA MACKINLAY - S2347XAA"),
(u"COLONIA MALHMAN SUD", u"COLONIA MALHMAN SUD - S2347XAB"),
(u"COLONIA MANUEL MENCHACA", u"COLONIA MANUEL MENCHACA - S3046XAM"),
(u"COLONIA MARGARITA", u"COLONIA MARGARITA - S2443XAA"),
(u"COLONIA MASCÍAS", u"COLONIA MASCÍAS - S3001XAW"),
(u"COLONIA MATILDE", u"COLONIA MATILDE - S3013XAA"),
(u"COLONIA MAUÁ", u"COLONIA MAUÁ - S2311XAA"),
(u"COLONIA MÉDICI", u"COLONIA MÉDICI - S2144XAA"),
(u"COLONIA MONTEFIORE", u"COLONIA MONTEFIORE - S2341XAA"),
(u"COLONIA MORGAN", u"COLONIA MORGAN - S2609XAA"),
(u"COLONIA NUEVA NARCISO", u"COLONIA NUEVA NARCISO - S3001XAD"),
(u"COLONIA ORTIZ", u"COLONIA ORTIZ - S2313XAB"),
(u"COLONIA PIAGGIO", u"COLONIA PIAGGIO - S2252XAA"),
(u"COLONIA PIAMONTESA", u"COLONIA PIAMONTESA - S2639XAH"),
(u"COLONIA PUJOL", u"COLONIA PUJOL - S3080XAB"),
(u"COLONIA REINA MARGARITA", u"COLONIA REINA MARGARITA - S2309XAA"),
(u"COLONIA RIPAMONTI", u"COLONIA RIPAMONTI - S2349XAA"),
(u"COLONIA ROSA", u"COLONIA ROSA - S2347"),
(u"COLONIA SAGER", u"COLONIA SAGER - S3553XAD"),
(u"COLONIA SAN ANTONIO", u"COLONIA SAN ANTONIO - S2301"),
(u"COLONIA SAN FRANCISCO", u"COLONIA SAN FRANCISCO - S2527XAA"),
(u"COLONIA SAN JOAQUÍN", u"COLONIA SAN JOAQUÍN - S3001XAE"),
(u"COLONIA SAN MANUEL", u"COLONIA SAN MANUEL - S3563XAA"),
(u"COLONIA SAN ROQUE", u"COLONIA SAN ROQUE - S3005XAI"),
(u"COLONIA SANTA ANITA", u"COLONIA SANTA ANITA - S2451XAA"),
(u"COLONIA SANTA CATALINA", u"COLONIA SANTA CATALINA - S3572XAD"),
(u"COLONIA SANTA LUCÍA", u"COLONIA SANTA LUCÍA - S2609XAB"),
(u"COLONIA SANTA NATALIA", u"COLONIA SANTA NATALIA - S2639XAI"),
(u"COLONIA SILVA", u"COLONIA SILVA - S3042XAC"),
(u"COLONIA TACURALES", u"COLONIA TACURALES - S2324XAA"),
(u"COLONIA TERESA", u"COLONIA TERESA - S3005XAC"),
(u"COLONIA TOSCANA PRIMERA", u"COLONIA TOSCANA PRIMERA - S2185XAC"),
(u"COLONIA TOSCANA SEGUNDA", u"COLONIA TOSCANA SEGUNDA - S2185XAB"),
(u"COLONIA TRES MARIAS", u"COLONIA TRES MARIAS - S2216XAB"),
(u"COLONIA TRES REYES", u"COLONIA TRES REYES - S3048XAA"),
(u"COLONIA URDÁNIZ", u"COLONIA URDÁNIZ - S3516"),
(u"COLONIA VALDEZ", u"COLONIA VALDEZ - S2115XAD"),
(u"COLONIA VALENCIA", u"COLONIA VALENCIA - S2639XAD"),
(u"COLONIA YAGUARETE", u"COLONIA YAGUARETE - S3560XAC"),
(u"CONSTANZA", u"CONSTANZA - S2311XAB"),
(u"CONSTITUYENTES", u"CONSTITUYENTES - S3014XAB"),
(u"COPACABANA", u"COPACABANA - S2919XAB"),
(u"CORA", u"CORA - S2631XAA"),
(u"CORONDA", u"CORONDA - S2240"),
(u"CORONEL AGUIRRE", u"CORONEL AGUIRRE - S2124XAB"),
(u"CORONEL ARNOLD", u"CORONEL ARNOLD - S2123"),
(u"CORONEL BOGADO", u"CORONEL BOGADO - S2103"),
(u"CORONEL DOMINGUEZ", u"CORONEL DOMINGUEZ - S2105"),
(u"CORONEL FRAGA", u"CORONEL FRAGA - S2301XAB"),
(u"CORONEL RODRÍGUEZ", u"CORONEL RODRÍGUEZ - S3013XAB"),
(u"CORONEL ROSETI", u"CORONEL ROSETI - S6106XAA"),
(u"CORREA", u"CORREA - S2506"),
(u"COSTA DEL TOBA", u"COSTA DEL TOBA - S3553"),
(u"CRESTA", u"CRESTA - S2126XAB"),
(u"CRISPI", u"CRISPI - S2441"),
(u"CRISTOLIA", u"CRISTOLIA - S2445XAA"),
(u"CUATRO CASAS", u"CUATRO CASAS - S2313XAC"),
(u"CUATRO ESQUINAS", u"CUATRO ESQUINAS - S2639XAE"),
(u"CULLEN", u"CULLEN - S2202XAB"),
(u"CULULÚ", u"CULULÚ - S3023XAE"),
(u"CURUPAYTI", u"CURUPAYTI - S2342"),
(u"DEST AERONAUTICO MILIT RECONQU", u"DEST AERONAUTICO MILIT RECONQU - S3567XAB"),
(u"DESVÍO ARIJÓN", u"DESVÍO ARIJÓN - S2242"),
(u"DESVÍO BOERO", u"DESVÍO BOERO - S2415XAA"),
(u"DESVÍO KILÓMETRO 282", u"DESVÍO KILÓMETRO 282 - S3551XAN"),
(u"DESVÍO KILÓMETRO 392", u"DESVÍO KILÓMETRO 392 - S3551XAA"),
(u"DHO", u"DHO - S3070XAC"),
(u"DÍAZ", u"DÍAZ - S2222"),
(u"DIEGO DE ALVEAR", u"DIEGO DE ALVEAR - S6036"),
(u"DISTRITO 3 ISLETAS", u"DISTRITO 3 ISLETAS - S3575XAA"),
(u"DOCE CASAS", u"DOCE CASAS - S2313XAD"),
(u"DÚRHAM", u"DÚRHAM - S2631XAB"),
(u"EGUSQUIZA", u"EGUSQUIZA - S2301"),
(u"EL 38", u"EL 38 - S3550XAG"),
(u"EL 44", u"EL 44 - S3550XAH"),
(u"EL AGUARÁ", u"EL AGUARÁ - S3070XAA"),
(u"EL ALBERDON", u"EL ALBERDON - S6106XAF"),
(u"EL AMARGO", u"EL AMARGO - S3060XAG"),
(u"EL ARAZÁ", u"EL ARAZÁ - S3563XAB"),
(u"EL BAGUAL", u"EL BAGUAL - S2723XAA"),
(u"EL BAYO", u"EL BAYO - S2300XAB"),
(u"EL BONETE", u"EL BONETE - S3550XAA"),
(u"EL CANTOR", u"EL CANTOR - S2643XAA"),
(u"EL CARAMELO", u"EL CARAMELO - S2105XAE"),
(u"EL CARMEN DE AVELLANEDA", u"EL CARMEN DE AVELLANEDA - S3561XAA"),
(u"EL CEIBALITO", u"EL CEIBALITO - S3575XAH"),
(u"EL CEIBO", u"EL CEIBO - S3005XAE"),
(u"EL CINCUENTA", u"EL CINCUENTA - S3550XAF"),
(u"EL DIECISIETE", u"EL DIECISIETE - S3553XAG"),
(u"EL GALPON", u"EL GALPON - S3021XAA"),
(u"EL GUSANO", u"EL GUSANO - S3005XAF"),
(u"EL JARDÍN", u"EL JARDÍN - S2732XAB"),
(u"EL LAUREL", u"EL LAUREL - S3001XAH"),
(u"EL MARIANO", u"EL MARIANO - S3060XAH"),
(u"EL NOCHERO", u"EL NOCHERO - S3061XAD"),
(u"EL PAJARO BLANCO", u"EL PAJARO BLANCO - S3051XAA"),
(u"EL PARA", u"EL PARA - S3005XAG"),
(u"EL POZO", u"EL POZO - S3001XAI"),
(u"EL RABÓN", u"EL RABÓN - S3592XAB"),
(u"EL REFUGIO", u"EL REFUGIO - S6103XAC"),
(u"EL RICARDITO", u"EL RICARDITO - S3572XAF"),
(u"EL SOMBRERERO", u"EL SOMBRERERO - S3046XAQ"),
(u"EL SOMBRERITO", u"EL SOMBRERITO - S3585XAE"),
(u"EL TAJAMAR", u"EL TAJAMAR - S3565XAH"),
(u"EL TAPIALITO", u"EL TAPIALITO - S3575XAI"),
(u"EL TIMBÓ", u"EL TIMBÓ - S3561XAC"),
(u"EL TRANSITO", u"EL TRANSITO - S2202XAC"),
(u"EL TRÉBOL", u"EL TRÉBOL - S2535"),
(u"EL TRIÁNGULO", u"EL TRIÁNGULO - S3060XAN"),
(u"EL TROPEZÓN", u"EL TROPEZÓN - S3009XAA"),
(u"ELISA", u"ELISA - S3029"),
(u"ELORTONDO", u"ELORTONDO - S2732"),
(u"EMILIA", u"EMILIA - S3036"),
(u"EMPALME SAN CARLOS", u"EMPALME SAN CARLOS - S3007XAB"),
(u"EMPALME VILLA CONSTITUCIÓN", u"EMPALME VILLA CONSTITUCIÓN - S2918"),
(u"ENCADENADAS", u"ENCADENADAS - S2607XAB"),
(u"ESMERALDA", u"ESMERALDA - S2456"),
(u"ESMERALDITA", u"ESMERALDITA - S2401XAA"),
(u"ESPERANZA", u"ESPERANZA - S3080"),
(u"ESPÍN", u"ESPÍN - S3056XAE"),
(u"ESQUINA GRANDE", u"ESQUINA GRANDE - S3040XAB"),
(u"ESTACION CHRISTOPHERSEN", u"ESTACION CHRISTOPHERSEN - S2611"),
(u"ESTACIÓN CLUCELLAS", u"ESTACIÓN CLUCELLAS - S2407"),
(u"ESTACIÓN ERASTO", u"ESTACIÓN ERASTO - S2119XAB"),
(u"ESTACION JOSÉFINA", u"ESTACION JOSÉFINA - S2403XAD"),
(u"ESTACIÓN MARÍA JUANA", u"ESTACIÓN MARÍA JUANA - S2445XAC"),
(u"ESTACIÓN MATILDE", u"ESTACIÓN MATILDE - S3013XAD"),
(u"ESTACION SAGUIER", u"ESTACION SAGUIER - S2315XAA"),
(u"ESTACIÓN TEODELINA", u"ESTACIÓN TEODELINA - S2600XAD"),
(u"ESTACION VILLA CONSTITUCION", u"ESTACION VILLA CONSTITUCION - S2919XAA"),
(u"ESTANCIA ACHALA", u"ESTANCIA ACHALA - S3060XAE"),
(u"ESTANCIA LA CIGUEÑA", u"ESTANCIA LA CIGUEÑA - S3060"),
(u"ESTANCIA LA CONSTANCIA", u"ESTANCIA LA CONSTANCIA - S3040XAE"),
(u"ESTANCIA LA MARÍA", u"ESTANCIA LA MARÍA - S2105XAF"),
(u"ESTANCIA LAS GAMAS", u"ESTANCIA LAS GAMAS - S3057XAC"),
(u"ESTANCIA LOS PALMARES", u"ESTANCIA LOS PALMARES - S3057XAD"),
(u"ESTANCIA PAVENHAN", u"ESTANCIA PAVENHAN - S3057XAE"),
(u"ESTANCIA PRUSIA", u"ESTANCIA PRUSIA - S3040XAF"),
(u"ESTANCIA SAN ANTONIO", u"ESTANCIA SAN ANTONIO - S2107XAA"),
(u"ESTANCIA SAN FRANCISCO", u"ESTANCIA SAN FRANCISCO - S2344XAD"),
(u"ESTEBAN RAMS", u"ESTEBAN RAMS - S3066"),
(u"ESTHER", u"ESTHER - S3036XAE"),
(u"ESTRADA", u"ESTRADA - S2409XAB"),
(u"EUSTOLIA", u"EUSTOLIA - S2407XAE"),
(u"EWALD", u"EWALD - S3561XAD"),
(u"FABRICA MILITAR SAN LORENZO", u"FABRICA MILITAR SAN LORENZO - S2156XAA"),
(u"FASSI", u"FASSI - S2300XAC"),
(u"FELICIA", u"FELICIA - S3087"),
(u"FIDELA", u"FIDELA - S2301"),
(u"FIGHIERA", u"FIGHIERA - S2126"),
(u"FIRMAT", u"FIRMAT - S2630"),
(u"FIVES LILLE", u"FIVES LILLE - S3054XAA"),
(u"FLOR DE ORO", u"FLOR DE ORO - S3575XAJ"),
(u"FLORENCIA", u"FLORENCIA - S3516"),
(u"FLORIDA", u"FLORIDA - S3565XAB"),
(u"FORTIN ALERTA", u"FORTIN ALERTA - S3066XAA"),
(u"FORTIN ALMAGRO", u"FORTIN ALMAGRO - S3046"),
(u"FORTIN ARGENTINA", u"FORTIN ARGENTINA - S3060XAA"),
(u"FORTÍN ATAHUALPA", u"FORTÍN ATAHUALPA - S3061XAA"),
(u"FORTÍN CACIQUE", u"FORTÍN CACIQUE - S3060XAB"),
(u"FORTÍN CHARRUA", u"FORTÍN CHARRUA - S3060XAP"),
(u"FORTÍN CHILCAS", u"FORTÍN CHILCAS - S3553XAH"),
(u"FORTÍN OLMOS", u"FORTÍN OLMOS - S3553"),
(u"FORTIN SEIS DE CABALLERIA", u"FORTIN SEIS DE CABALLERIA - S3061XAB"),
(u"FORTÍN TACURÚ", u"FORTÍN TACURÚ - S3060XAL"),
(u"FORTIN TOSTADO", u"FORTIN TOSTADO - S3060XAC"),
(u"FRANCISCO PAZ", u"FRANCISCO PAZ - S2111XAA"),
(u"FRANCK", u"FRANCK - S3009"),
(u"FRAY LUÍS BELTRÁN", u"FRAY LUÍS BELTRÁN - S2156"),
(u"FRONTERA", u"FRONTERA - S2438"),
(u"FUENTES", u"FUENTES - S2123"),
(u"FUNES", u"FUNES - S2132"),
(u"GABOTO", u"GABOTO - S2208"),
(u"GALISTEO", u"GALISTEO - S2307XAB"),
(u"GÁLVEZ", u"GÁLVEZ - S2252"),
(u"GARABATO", u"GARABATO - S3551XAS"),
(u"GARIBALDI", u"GARIBALDI - S2443XAB"),
(u"GATO COLORADO", u"GATO COLORADO - S3541"),
(u"GENERAL GELLY", u"GENERAL GELLY - S2701"),
(u"GENERAL LAGOS", u"GENERAL LAGOS - S2126"),
(u"GESSLER", u"GESSLER - S2253"),
(u"GOBERNADOR CRESPO", u"GOBERNADOR CRESPO - S3044"),
(u"GÖDEKEN", u"GÖDEKEN - S2639"),
(u"GODOY", u"GODOY - S2921"),
(u"GOLONDRINA", u"GOLONDRINA - S3551"),
(u"GRANADERO B BARGAS", u"GRANADERO B BARGAS - S2132XAD"),
(u"GRANADERO BAIGORRIA", u"GRANADERO BAIGORRIA - S2152"),
(u"GRANADERO BRASILIO BUSTOS", u"GRANADERO BRASILIO BUSTOS - S2257XAA"),
(u"GRANADEROS", u"GRANADEROS - S2156XAD"),
(u"GRANJA SAN MANUEL", u"GRANJA SAN MANUEL - S2501XAD"),
(u"GREGORIA PÉREZ DE DENIS", u"GREGORIA PÉREZ DE DENIS - S3061"),
(u"GRÜTLY", u"GRÜTLY - S3083"),
(u"GRÜTLY NORTE", u"GRÜTLY NORTE - S3083"),
(u"GUADALUPE NORTE", u"GUADALUPE NORTE - S3574XAB"),
(u"GUARANIES", u"GUARANIES - S3054XAC"),
(u"GUASUNCHO", u"GUASUNCHO - S3581XAA"),
(u"GUAYCURÚ", u"GUAYCURÚ - S3551XAO"),
(u"HELVECIA", u"HELVECIA - S3003"),
(u"HERSILIA", u"HERSILIA - S2352"),
(u"HIPATÍA", u"HIPATÍA - S3023"),
(u"HUANQUEROS", u"HUANQUEROS - S3076"),
(u"HUGENTOBLER", u"HUGENTOBLER - S2317XAE"),
(u"HUGENTOBLER", u"HUGENTOBLER - S2344XAB"),
(u"HUGHES", u"HUGHES - S2725"),
(u"HUMBERTO PRIMERO", u"HUMBERTO PRIMERO - S2309"),
(u"HUMBOLDT", u"HUMBOLDT - S3081"),
(u"HUMBOLDT CHICO", u"HUMBOLDT CHICO - S3081XAB"),
(u"IBARLUCEA", u"IBARLUCEA - S2142"),
(u"INDEPENDENCIA", u"INDEPENDENCIA - S3060XAD"),
(u"INGENIERO BOASI", u"INGENIERO BOASI - S3023XAD"),
(u"INGENIERO CHANOURDIE", u"INGENIERO CHANOURDIE - S3575XAB"),
(u"INGENIERO GARMENDIA", u"INGENIERO GARMENDIA - S3586XAA"),
(u"INGENIERO GERMANIA", u"INGENIERO GERMANIA - S3586XAB"),
(u"INTIYACO", u"INTIYACO - S3551"),
(u"IRIGOYEN", u"IRIGOYEN - S2248"),
(u"IRIONDO", u"IRIONDO - S3018XAA"),
(u"ISLA DEL PORTEÑO", u"ISLA DEL PORTEÑO - S3001"),
(u"ISLA TIGRE", u"ISLA TIGRE - S3583XAA"),
(u"ISLETA", u"ISLETA - S3581XAB"),
(u"ITURRASPE", u"ITURRASPE - S2521"),
(u"ITUZAINGÓ", u"ITUZAINGÓ - S2311XAE"),
(u"JACINTO L ARAUZ", u"JACINTO L ARAUZ - S3029"),
(u"JESÚS MARÍA", u"JESÚS MARÍA - S2204XAA"),
(u"JOSÉ MACIAS", u"JOSÉ MACIAS - S3041XAA"),
(u"JOSÉ MANUEL ESTRADA", u"JOSÉ MANUEL ESTRADA - S2403XAC"),
(u"JUAN B MOLINA", u"JUAN B MOLINA - S2103"),
(u"JUAN ORTÍZ", u"JUAN ORTÍZ - S2154XAA"),
(u"JUNCAL", u"JUNCAL - S2723"),
(u"KILOMETRO 113", u"KILOMETRO 113 - S2407XAD"),
(u"KILOMETRO 17", u"KILOMETRO 17 - S3565XAE"),
(u"KILÓMETRO 213", u"KILÓMETRO 213 - S3050XAA"),
(u"KILÓMETRO 23", u"KILÓMETRO 23 - S3589XAA"),
(u"KILOMETRO 235", u"KILOMETRO 235 - S3076XAC"),
(u"KILOMETRO 28", u"KILOMETRO 28 - S3014XAH"),
(u"KILOMETRO 293", u"KILOMETRO 293 - S3066XAD"),
(u"KILOMETRO 30", u"KILOMETRO 30 - S3565XAF"),
(u"KILOMETRO 302", u"KILOMETRO 302 - S3551"),
(u"KILOMETRO 319", u"KILOMETRO 319 - S2154XAB"),
(u"KILOMETRO 320", u"KILOMETRO 320 - S3551XAE"),
(u"KILOMETRO 323", u"KILOMETRO 323 - S2142XAB"),
(u"KILOMETRO 35", u"KILOMETRO 35 - S3014XAI"),
(u"KILOMETRO 389", u"KILOMETRO 389 - S3061XAE"),
(u"KILOMETRO 392", u"KILOMETRO 392 - S3551XAF"),
(u"KILOMETRO 396", u"KILOMETRO 396 - S6106XAB"),
(u"KILOMETRO 403", u"KILOMETRO 403 - S3585XAB"),
(u"KILOMETRO 408", u"KILOMETRO 408 - S3580XAB"),
(u"KILOMETRO 41", u"KILOMETRO 41 - S3581"),
(u"KILOMETRO 41", u"KILOMETRO 41 - S3020XAB"),
(u"KILOMETRO 421", u"KILOMETRO 421 - S3585XAC"),
(u"KILOMETRO 421", u"KILOMETRO 421 - S3061XAF"),
(u"KILOMETRO 443", u"KILOMETRO 443 - S2454XAA"),
(u"KILOMETRO 465", u"KILOMETRO 465 - S2456XAB"),
(u"KILOMETRO 468", u"KILOMETRO 468 - S3061XAG"),
(u"KILOMETRO 483", u"KILOMETRO 483 - S2456XAA"),
(u"KILOMETRO 49", u"KILOMETRO 49 - S2506XAA"),
(u"KILOMETRO 49", u"KILOMETRO 49 - S3023XAB"),
(u"KILOMETRO 49", u"KILOMETRO 49 - S3589XAE"),
(u"KILOMETRO 501", u"KILOMETRO 501 - S2438"),
(u"KILOMETRO 54", u"KILOMETRO 54 - S3589XAF"),
(u"KILOMETRO 67", u"KILOMETRO 67 - S3581XAC"),
(u"KILOMETRO 85", u"KILOMETRO 85 - S2303XAA"),
(u"KILÓMETRO 9", u"KILÓMETRO 9 - S3000XAE"),
(u"KILÓMETRO 95", u"KILÓMETRO 95 - S3046XAG"),
(u"LA ADELAIDA", u"LA ADELAIDA - S6103XAA"),
(u"LA ASTURIANA", u"LA ASTURIANA - S6106XAC"),
(u"LA BLANCA", u"LA BLANCA - S3551XAB"),
(u"LA BOMBILLA", u"LA BOMBILLA - S3060XAJ"),
(u"LA BRAVA", u"LA BRAVA - S3045XAC"),
(u"LA CABRAL", u"LA CABRAL - S3074"),
(u"LA CALIFORNIA", u"LA CALIFORNIA - S2520XAC"),
(u"LA CALMA", u"LA CALMA - S6106XAD"),
(u"LA CAMILA", u"LA CAMILA - S3054XAB"),
(u"LA CAPILLA", u"LA CAPILLA - S3040XAH"),
(u"LA CAROLINA", u"LA CAROLINA - S2105XAA"),
(u"LA CATALINA", u"LA CATALINA - S3572XAG"),
(u"LA CELIA", u"LA CELIA - S2115XAB"),
(u"LA CELIA", u"LA CELIA - S3569XAD"),
(u"LA CERAMICA Y CUYO", u"LA CERAMICA Y CUYO - S2000XAA"),
(u"LA CHISPA", u"LA CHISPA - S2601"),
(u"LA CIGUEÑA", u"LA CIGUEÑA - S3057"),
(u"LA CLARA", u"LA CLARA - S3025XAB"),
(u"LA CLARITA", u"LA CLARITA - S3585XAA"),
(u"LA CLORINDA", u"LA CLORINDA - S3021XAE"),
(u"LA CONSTANCIA", u"LA CONSTANCIA - S6103XAB"),
(u"LA CRIOLLA", u"LA CRIOLLA - S3052"),
(u"LA DIAMELA", u"LA DIAMELA - S3569XAE"),
(u"LA ELSA", u"LA ELSA - S2341XAB"),
(u"LA ESMERALDA", u"LA ESMERALDA - S3560XAA"),
(u"LA GALLARETA", u"LA GALLARETA - S3057"),
(u"LA GAMA", u"LA GAMA - S2615XAA"),
(u"LA GUAMPITA", u"LA GUAMPITA - S3056XAD"),
(u"LA GUARDIA", u"LA GUARDIA - S3001XAS"),
(u"LA HOSCA", u"LA HOSCA - S3050XAB"),
(u"LA INÉS", u"LA INÉS - S6100XAA"),
(u"LA INGLESITA", u"LA INGLESITA - S2601XAA"),
(u"LA JOSEFINA", u"LA JOSEFINA - S3565XAC"),
(u"LA JULIA", u"LA JULIA - S3046XAN"),
(u"LA LATA", u"LA LATA - S2126XAC"),
(u"LA LOLA", u"LA LOLA - S3567XAA"),
(u"LA LOMA", u"LA LOMA - S3555XAC"),
(u"LA LUCILA", u"LA LUCILA - S3072XAC"),
(u"LA MARINA", u"LA MARINA - S2341XAC"),
(u"LA MERCED", u"LA MERCED - S2173XAB"),
(u"LA MOROCHA", u"LA MOROCHA - S2613XAA"),
(u"LA NORIA", u"LA NORIA - S3001XAJ"),
(u"LA ORIENTAL", u"LA ORIENTAL - S3054XAG"),
(u"LA ORILLA", u"LA ORILLA - S3080XAC"),
(u"LA OTHILA", u"LA OTHILA - S2115XAA"),
(u"LA PELADA", u"LA PELADA - S3027"),
(u"LA PICASA", u"LA PICASA - S6036XAA"),
(u"LA POLVAREDA", u"LA POLVAREDA - S3074XAE"),
(u"LA POTASA", u"LA POTASA - S3563XAC"),
(u"LA RESERVA", u"LA RESERVA - S3581XAD"),
(u"LA ROSA", u"LA ROSA - S3042XAD"),
(u"LA RUBIA", u"LA RUBIA - S2342"),
(u"LA SALADA", u"LA SALADA - S2142"),
(u"LA SARITA", u"LA SARITA - S3563XAF"),
(u"LA SARNOSA", u"LA SARNOSA - S3057XAF"),
(u"LA SELVA", u"LA SELVA - S3551XAG"),
(u"LA SEMENTERA", u"LA SEMENTERA - S3038XAA"),
(u"LA VANGUARDIA", u"LA VANGUARDIA - S2105"),
(u"LA VANGUARDIA", u"LA VANGUARDIA - S3561XAE"),
(u"LA VERDE", u"LA VERDE - S3076XAA"),
(u"LA VIUDA", u"LA VIUDA - S2183XAA"),
(u"LA ZULEMA", u"LA ZULEMA - S3551XAH"),
(u"LABORDEBOY", u"LABORDEBOY - S2726"),
(u"LAGUNA PAIVA", u"LAGUNA PAIVA - S3020"),
(u"LAGUNA VERDE", u"LAGUNA VERDE - S3076XAB"),
(u"LANDETA", u"LANDETA - S2531"),
(u"LANTERI", u"LANTERI - S3575"),
(u"LARGUÍA", u"LARGUÍA - S2144XAC"),
(u"LARRECHEA", u"LARRECHEA - S2241"),
(u"LARRECHEA", u"LARRECHEA - S3080XAD"),
(u"LAS ANINTAS", u"LAS ANINTAS - S3560XAD"),
(u"LAS ARENAS", u"LAS ARENAS - S3060XAM"),
(u"LAS AVISPAS", u"LAS AVISPAS - S3074XAD"),
(u"LAS BANDURRIAS", u"LAS BANDURRIAS - S2148"),
(u"LAS CAÑAS", u"LAS CAÑAS - S3046"),
(u"LAS CATALINAS", u"LAS CATALINAS - S3560XAE"),
(u"LAS CHUÑAS", u"LAS CHUÑAS - S3061"),
(u"LAS DELICIAS", u"LAS DELICIAS - S3551XAI"),
(u"LAS DOS ANGELITAS", u"LAS DOS ANGELITAS - S6106XAG"),
(u"LAS ENCADENADAS", u"LAS ENCADENADAS - S2607XAC"),
(u"LAS GARSITAS", u"LAS GARSITAS - S3560XAH"),
(u"LAS GARZAS", u"LAS GARZAS - S3574"),
(u"LAS HIGUERITAS", u"LAS HIGUERITAS - S3013XAC"),
(u"LAS LIEBRES", u"LAS LIEBRES - S2520XAD"),
(u"LAS MERCEDES", u"LAS MERCEDES - S3516XAD"),
(u"LAS PALMAS", u"LAS PALMAS - S3555XAA"),
(u"LAS PALMERAS", u"LAS PALMERAS - S2326XAD"),
(u"LAS PAREJAS", u"LAS PAREJAS - S2505"),
(u"LAS PETACAS", u"LAS PETACAS - S2451"),
(u"LAS QUINTAS", u"LAS QUINTAS - S2200XAB"),
(u"LAS ROSAS", u"LAS ROSAS - S2520"),
(u"LAS SIETE PROVINCIAS", u"LAS SIETE PROVINCIAS - S3575XAC"),
(u"LAS TOSCAS", u"LAS TOSCAS - S3586"),
(u"LAS TRES MARÍAS", u"LAS TRES MARÍAS - S3046XAB"),
(u"LAS TROJAS", u"LAS TROJAS - S2500XAB"),
(u"LAS TUNAS", u"LAS TUNAS - S3009"),
(u"LASSAGA", u"LASSAGA - S3036XAC"),
(u"LAZZARINO", u"LAZZARINO - S6103XAD"),
(u"LEHMANN", u"LEHMANN - S2305"),
(u"LICEO AERONAUTICO MILITAR", u"LICEO AERONAUTICO MILITAR - S2132XAA"),
(u"LINKS", u"LINKS - S2132XAB"),
(u"LLAMBÍ CAMPBELL", u"LLAMBÍ CAMPBELL - S3036"),
(u"LOGROÑO", u"LOGROÑO - S3066"),
(u"LOMA ALTA", u"LOMA ALTA - S2253"),
(u"LOMA VERDE", u"LOMA VERDE - S2117XAA"),
(u"LÓPEZ", u"LÓPEZ - S2255"),
(u"LOS AMORES", u"LOS AMORES - S3551XAT"),
(u"LOS ARCOS", u"LOS ARCOS - S2720XAB"),
(u"LOS CARDENALES", u"LOS CARDENALES - S3005XAD"),
(u"LOS CARDOS", u"LOS CARDOS - S2533"),
(u"LOS CERRILLOS", u"LOS CERRILLOS - S3001XAK"),
(u"LOS CHARABONES", u"LOS CHARABONES - S3060XAK"),
(u"LOS CLAROS", u"LOS CLAROS - S3551XAC"),
(u"LOS CORRALITOS", u"LOS CORRALITOS - S3051XAB"),
(u"LOS CUERVOS", u"LOS CUERVOS - S3555XAD"),
(u"LOS GALPONES", u"LOS GALPONES - S3050XAC"),
(u"LOS HORNOS", u"LOS HORNOS - S3021XAB"),
(u"LOS LAPACHOS", u"LOS LAPACHOS - S3575XAD"),
(u"LOS LAURELES", u"LOS LAURELES - S3567"),
(u"LOS LEONES", u"LOS LEONES - S3551XAD"),
(u"LOS LEONES", u"LOS LEONES - S2146XAA"),
(u"LOS MOLINOS", u"LOS MOLINOS - S2181"),
(u"LOS MOLLES", u"LOS MOLLES - S3070XAB"),
(u"LOS MUCHACHOS", u"LOS MUCHACHOS - S2105XAB"),
(u"LOS NOGALES", u"LOS NOGALES - S2183"),
(u"LOS OLIVOS", u"LOS OLIVOS - S3046XAO"),
(u"LOS OSOS", u"LOS OSOS - S3051XAC"),
(u"LOS PALMARES", u"LOS PALMARES - S3057XAG"),
(u"LOS QUIRQUINCHOS", u"LOS QUIRQUINCHOS - S2637"),
(u"LOS SALADILLOS", u"LOS SALADILLOS - S3041XAC"),
(u"LOS SEMBRADOS", u"LOS SEMBRADOS - S2447XAA"),
(u"LOS TABANOS DESVIO KM 366", u"LOS TABANOS DESVIO KM 366 - S3551XAU"),
(u"LUCIANO LEIVA", u"LUCIANO LEIVA - S3048XAE"),
(u"LUCIO V LÓPEZ", u"LUCIO V LÓPEZ - S2142"),
(u"LUIS PALACIOS", u"LUIS PALACIOS - S2142XAC"),
(u"MACIEL", u"MACIEL - S2208"),
(u"MAGGIOLO", u"MAGGIOLO - S2622"),
(u"MAIZALES", u"MAIZALES - S2119XAC"),
(u"MALABRIGO", u"MALABRIGO - S3572"),
(u"MANGORÉ", u"MANGORÉ - S2445XAB"),
(u"MANUCHO", u"MANUCHO - S3023XAA"),
(u"MARCELINO ESCALADA", u"MARCELINO ESCALADA - S3042"),
(u"MARGARITA", u"MARGARITA - S3056"),
(u"MARÍA EUGENIA", u"MARÍA EUGENIA - S3072XAA"),
(u"MARÍA JUANA", u"MARÍA JUANA - S2445"),
(u"MARIA LUISA", u"MARIA LUISA - S3025"),
(u"MARIA LUISA CORREA", u"MARIA LUISA CORREA - S2501"),
(u"MARÍA SUSANA", u"MARÍA SUSANA - S2527"),
(u"MARÍA TERESA", u"MARÍA TERESA - S2609"),
(u"MARIANO SAAVEDRA", u"MARIANO SAAVEDRA - S3011"),
(u"MARINI", u"MARINI - S2301"),
(u"MASCIAS", u"MASCIAS - S3041XAE"),
(u"MÁXIMO PAZ", u"MÁXIMO PAZ - S2115"),
(u"MELINCUÉ", u"MELINCUÉ - S2728"),
(u"MERCEDITAS", u"MERCEDITAS - S2725XAA"),
(u"MIGUEL ESCALADA", u"MIGUEL ESCALADA - S3046XAP"),
(u"MIGUEL TORRES", u"MIGUEL TORRES - S2631"),
(u"MIRAMAR", u"MIRAMAR - S6106XAI"),
(u"MOCOVÍ", u"MOCOVÍ - S3581XAE"),
(u"MOISÉS VILLE", u"MOISÉS VILLE - S2313"),
(u"MONIGOTES", u"MONIGOTES - S2342"),
(u"MONJE", u"MONJE - S2212"),
(u"MONTE FLORES", u"MONTE FLORES - S2101XAA"),
(u"MONTE OBSCURIDAD", u"MONTE OBSCURIDAD - S2349XAB"),
(u"MONTE VERA", u"MONTE VERA - S3014"),
(u"MONTES DE OCA", u"MONTES DE OCA - S2521"),
(u"MOUSSY", u"MOUSSY - S3561XAB"),
(u"MURPHY", u"MURPHY - S2601"),
(u"MUTCHNIK", u"MUTCHNIK - S2313XAE"),
(u"NARÉ", u"NARÉ - S3046XAH"),
(u"NELSON", u"NELSON - S3032"),
(u"NICANOR E MOLINAS", u"NICANOR E MOLINAS - S3563XAD"),
(u"NUEVA ITALIA", u"NUEVA ITALIA - S3074XAA"),
(u"NUEVA POMPEYA", u"NUEVA POMPEYA - S3014XAC"),
(u"NUEVA UKRANIA", u"NUEVA UKRANIA - S3046XAI"),
(u"NUEVO TORINO", u"NUEVO TORINO - S3087"),
(u"ÑANDU", u"ÑANDU - S3553"),
(u"ÑANDUBAY", u"ÑANDUBAY - S3041"),
(u"ÑANDUCITA", u"ÑANDUCITA - S3072"),
(u"OBRAJE INDIO MUERTO", u"OBRAJE INDIO MUERTO - S3589XAB"),
(u"OBRAJE SAN JUAN", u"OBRAJE SAN JUAN - S3589XAC"),
(u"OGILVIE", u"OGILVIE - S3551"),
(u"OLIVEROS", u"OLIVEROS - S2206"),
(u"OMBU NORTE", u"OMBU NORTE - S3005XAH"),
(u"ORATORIO MORANTE", u"ORATORIO MORANTE - S2921XAB"),
(u"OROÑO", u"OROÑO - S2253"),
(u"OTTO BEMBERG", u"OTTO BEMBERG - S2605XAA"),
(u"PADRE PEDRO ITURRALDE", u"PADRE PEDRO ITURRALDE - S3061XAJ"),
(u"PAGANINI", u"PAGANINI - S2152XAA"),
(u"PAIKÍN", u"PAIKÍN - S3046XAJ"),
(u"PALACIOS", u"PALACIOS - S2326XAB"),
(u"PARAJE 29", u"PARAJE 29 - S3553"),
(u"PARAJE KILOMETRO 12", u"PARAJE KILOMETRO 12 - S3550XAB"),
(u"PARAJE TRAGNAGHI", u"PARAJE TRAGNAGHI - S3551XAP"),
(u"PASO VINAL", u"PASO VINAL - S3080XAA"),
(u"PAUL GROUSSAC", u"PAUL GROUSSAC - S3585XAD"),
(u"PAVENHAN", u"PAVENHAN - S3057XAB"),
(u"PAVÓN", u"PAVÓN - S2918"),
(u"PAVÓN ARRIBA", u"PAVÓN ARRIBA - S2109"),
(u"PEDRO GÓMEZ CELLO", u"PEDRO GÓMEZ CELLO - S3054XAD"),
(u"PEREYRA LUCENA", u"PEREYRA LUCENA - S2105XAC"),
(u"PÉREZ", u"PÉREZ - S2121"),
(u"PERICOTA", u"PERICOTA - S3025"),
(u"PETRONILA", u"PETRONILA - S3046XAD"),
(u"PEYRANO", u"PEYRANO - S2113"),
(u"PIAMONTE", u"PIAMONTE - S2529"),
(u"PILAR", u"PILAR - S3085"),
(u"PINO DE SAN LORENZO", u"PINO DE SAN LORENZO - S2200XAC"),
(u"PIÑERO", u"PIÑERO - S2119"),
(u"PIQUETE", u"PIQUETE - S3000XAA"),
(u"POMPEYA", u"POMPEYA - S3014XAD"),
(u"PORTALIS", u"PORTALIS - S3066XAE"),
(u"PORTUGALETE", u"PORTUGALETE - S3071XAB"),
(u"POTRERO GUASUNCHO", u"POTRERO GUASUNCHO - S3589XAD"),
(u"POZO BORRADO", u"POZO BORRADO - S3061"),
(u"POZO DE LOS INDIOS", u"POZO DE LOS INDIOS - S3551XAQ"),
(u"PRESIDENTE ROCA", u"PRESIDENTE ROCA - S2301XAD"),
(u"PROGRESO", u"PROGRESO - S3023"),
(u"PROVIDENCIA", u"PROVIDENCIA - S3025"),
(u"PUEBLO ABC", u"PUEBLO ABC - S3080XAE"),
(u"PUEBLO AREQUITO", u"PUEBLO AREQUITO - S2183"),
(u"PUEBLO CANDIOTI", u"PUEBLO CANDIOTI - S3000XAF"),
(u"PUEBLO ESTHER", u"PUEBLO ESTHER - S2126"),
(u"PUEBLO GOLONDRINA", u"PUEBLO GOLONDRINA - S3551XAJ"),
(u"PUEBLO KIRSTON", u"PUEBLO KIRSTON - S2202XAD"),
(u"PUEBLO MARIA JUANA", u"PUEBLO MARIA JUANA - S2445"),
(u"PUEBLO MUÑOZ", u"PUEBLO MUÑOZ - S2119"),
(u"PUEBLO NUEVO", u"PUEBLO NUEVO - S2124XAA"),
(u"PUEBLO SAN ANTONIO", u"PUEBLO SAN ANTONIO - S2301"),
(u"PUEBLO TERRAGNI", u"PUEBLO TERRAGNI - S2300XAA"),
(u"PUENTE COLASTINE", u"PUENTE COLASTINE - S2242XAB"),
(u"PUERTO ARAGÓN", u"PUERTO ARAGÓN - S2246XAA"),
(u"PUERTO DE SAN LORENZO", u"PUERTO DE SAN LORENZO - S2200XAA"),
(u"PUERTO GABOTO", u"PUERTO GABOTO - S2208XAA"),
(u"PUERTO GRAL SAN MARTIN", u"PUERTO GRAL SAN MARTIN - S2202"),
(u"PUERTO OCAMPO", u"PUERTO OCAMPO - S3580XAC"),
(u"PUERTO PIRACUÁ", u"PUERTO PIRACUÁ - S3516XAE"),
(u"PUERTO PIRACUACITO", u"PUERTO PIRACUACITO - S3592XAC"),
(u"PUERTO RECONQUISTA", u"PUERTO RECONQUISTA - S3567XAC"),
(u"PUJATO", u"PUJATO - S2123"),
(u"PUJATO NORTE", u"PUJATO NORTE - S3080XAF"),
(u"RABIOLA", u"RABIOLA - S2600XAE"),
(u"RAFAELA", u"RAFAELA - S2300"),
(u"RAMAYÓN", u"RAMAYÓN - S3042"),
(u"RAMONA", u"RAMONA - S2301"),
(u"RAQUEL", u"RAQUEL - S2322XAB"),
(u"RASTREADOR FOURNIER", u"RASTREADOR FOURNIER - S2605XAB"),
(u"RECONQUISTA", u"RECONQUISTA - S3560"),
(u"RECREO", u"RECREO - S3018"),
(u"RECREO SUR", u"RECREO SUR - S3001XAL"),
(u"REINA MARGARITA", u"REINA MARGARITA - S2309XAB"),
(u"REYNALDO CULLEN", u"REYNALDO CULLEN - S3020XAC"),
(u"RICARDONE", u"RICARDONE - S2201"),
(u"RIGBY", u"RIGBY - S2255XAB"),
(u"RINCON DE GRONDONA", u"RINCON DE GRONDONA - S2206XAB"),
(u"RINCON DE SAN ANTONIO", u"RINCON DE SAN ANTONIO - S3046XAE"),
(u"RINCON DE TACURALES", u"RINCON DE TACURALES - S2317XAA"),
(u"RINCÓN DEL PINTADO", u"RINCÓN DEL PINTADO - S3080XAG"),
(u"RINCON DEL QUEBRACHO", u"RINCON DEL QUEBRACHO - S3025XAC"),
(u"RINCON NORTE", u"RINCON NORTE - S3001XAT"),
(u"RINCON POTREROS", u"RINCON POTREROS - S3001XAU"),
(u"RINLON DE AVILA", u"RINLON DE AVILA - S3023XAC"),
(u"RÍO SALADO", u"RÍO SALADO - S3036XAD"),
(u"RIVADAVIA", u"RIVADAVIA - S3081XAC"),
(u"RODOLFO ALCORTA", u"RODOLFO ALCORTA - S2115XAC"),
(u"ROLDÁN", u"ROLDÁN - S2134"),
(u"ROMANG", u"ROMANG - S3555"),
(u"ROSARIO", u"ROSARIO - S2000"),
(u"RUEDA", u"RUEDA - S2921"),
(u"RUFINO", u"RUFINO - S6100"),
(u"RUINAS SANTA FE LA VIEJA", u"RUINAS SANTA FE LA VIEJA - S3001XAF"),
(u"RUNCIMAN", u"RUNCIMAN - S2611XAA"),
(u"SA PEREYRA", u"SA PEREYRA - S3011"),
(u"SAGUIER", u"SAGUIER - S2301"),
(u"SALADERO M CABAL", u"SALADERO M CABAL - S3001XAX"),
(u"SALTO GRANDE", u"SALTO GRANDE - S2142"),
(u"SAN AGUSTÍN", u"SAN AGUSTÍN - S3017"),
(u"SAN ALBERTO", u"SAN ALBERTO - S3565XAD"),
(u"SAN ANTONIO DE OBLIGADO", u"SAN ANTONIO DE OBLIGADO - S3587XAA"),
(u"SAN BERNARDO", u" S3061XAL' - S3048"),
(u"SAN CARLOS", u"SAN CARLOS - S6106XAH"),
(u"SAN CARLOS CENTRO", u"SAN CARLOS CENTRO - S3013"),
(u"SAN CARLOS NORTE", u"SAN CARLOS NORTE - S3009"),
(u"SAN CARLOS SUD", u"SAN CARLOS SUD - S3013"),
(u"SAN CRISTÓBAL", u"SAN CRISTÓBAL - S3070"),
(u"SAN EDUARDO", u"SAN EDUARDO - S2615"),
(u"SAN ESTANISLAO", u"SAN ESTANISLAO - S2501XAA"),
(u"SAN EUGENIO", u"SAN EUGENIO - S2253"),
(u"SAN FABIÁN", u"SAN FABIÁN - S2242"),
(u"SAN FRANCISCO DE SANTA FE", u"SAN FRANCISCO DE SANTA FE - S2601"),
(u"SAN GENARO", u"SAN GENARO - S2146"),
(u"SAN GENARO NORTE", u"SAN GENARO NORTE - S2147"),
(u"SAN GERÓNIMO", u"SAN GERÓNIMO - S2136XAA"),
(u"SAN GREGORIO", u"SAN GREGORIO - S2613"),
(u"SAN GUILLERMO", u"SAN GUILLERMO - S2512XAA"),
(u"SAN GUILLERMO", u"SAN GUILLERMO - S3020XAD"),
(u"SAN GUILLERMO", u"SAN GUILLERMO - S2347"),
(u"SAN JAVIER", u"SAN JAVIER - S3005"),
(u"SAN JERÓNIMO DEL SAUCE", u"SAN JERÓNIMO DEL SAUCE - S3009"),
(u"SAN JERÓNIMO NORTE", u"SAN JERÓNIMO NORTE - S3011"),
(u"SAN JERÓNIMO SUR", u"SAN JERÓNIMO SUR - S2136"),
(u"SAN JOAQUÍN", u"SAN JOAQUÍN - S3001XAG"),
(u"SAN JORGE", u"SAN JORGE - S2451"),
(u"SAN JOSÉ", u"SAN JOSÉ - S3016"),
(u"SAN JOSÉ DE LA ESQUINA", u"SAN JOSÉ DE LA ESQUINA - S2185"),
(u"SAN JOSÉ DEL RINCÓN", u"SAN JOSÉ DEL RINCÓN - S3001"),
(u"SAN JOSÉ FRONTERA", u"SAN JOSÉ FRONTERA - S2401XAB"),
(u"SAN JUSTO", u"SAN JUSTO - S3040"),
(u"SAN LORENZO", u"SAN LORENZO - S2200"),
(u"SAN MARCELO", u"SAN MARCELO - S6009XAA"),
(u"SAN MARCOS DE VENADO TUERTO", u"SAN MARCOS DE VENADO TUERTO - S2600XAA"),
(u"SAN MARIANO", u"SAN MARIANO - S3011XAA"),
(u"SAN MARTÍN DE LAS ESCOBAS", u"SAN MARTÍN DE LAS ESCOBAS - S2449"),
(u"SAN MARTÍN DE TOURS", u"SAN MARTÍN DE TOURS - S2255XAC"),
(u"SAN MARTÍN NORTE", u"SAN MARTÍN NORTE - S3045XAD"),
(u"SAN MIGUEL", u"SAN MIGUEL - S2309XAC"),
(u"SAN PEDRO", u"SAN PEDRO - S3021XAC"),
(u"SAN PEDRO NORTE", u"SAN PEDRO NORTE - S3021XAD"),
(u"SAN PEDRO SUR", u"SAN PEDRO SUR - S3014XAE"),
(u"SAN RICARDO", u"SAN RICARDO - S2501XAB"),
(u"SAN ROQUE", u"SAN ROQUE - S3553XAA"),
(u"SAN SEBASTIÁN", u"SAN SEBASTIÁN - S2121XAC"),
(u"SAN URBANO", u"SAN URBANO - S2728XAA"),
(u"SAN VICENTE", u"SAN VICENTE - S2447"),
(u"SAN VICENTE", u"SAN VICENTE - S3580XAA"),
(u"SANCTI SPÍRITU", u"SANCTI SPÍRITU - S2617"),
(u"SANFORD", u"SANFORD - S2173"),
(u"SANTA ANA", u"SANTA ANA - S3575XAE"),
(u"SANTA CLARA", u"SANTA CLARA - S2258XAA"),
(u"SANTA CLARA DE BUENA VISTA", u"SANTA CLARA DE BUENA VISTA - S2258"),
(u"SANTA CLARA DE SAGUIER", u"SANTA CLARA DE SAGUIER - S2405"),
(u"SANTA EMILIA", u"SANTA EMILIA - S2725XAB"),
(u"SANTA EUSEBIA", u"SANTA EUSEBIA - S2317"),
(u"SANTA FE", u"SANTA FE - S3000"),
(u"SANTA FELICIA", u"SANTA FELICIA - S3551"),
(u"SANTA ISABEL", u"SANTA ISABEL - S2605"),
(u"SANTA LUCÍA", u"SANTA LUCÍA - S3553XAF"),
(u"SANTA MARGARITA", u"SANTA MARGARITA - S3061"),
(u"SANTA MARÍA", u"SANTA MARÍA - S3011XAB"),
(u"SANTA NATALIA", u"SANTA NATALIA - S2639XAJ"),
(u"SANTA PAULA", u"SANTA PAULA - S6106XAJ"),
(u"SANTA ROSA DE CALCHINES", u"SANTA ROSA DE CALCHINES - S3001"),
(u"SANTA TERESA", u"SANTA TERESA - S2111"),
(u"SANTA TERESA", u"SANTA TERESA - S6106XAK"),
(u"SANTO DOMINGO", u"SANTO DOMINGO - S3025XAA"),
(u"SANTO TOME", u"SANTO TOME - S3016"),
(u"SANTURCE", u"SANTURCE - S3074XAF"),
(u"SARGENTO CABRAL", u"SARGENTO CABRAL - S2105"),
(u"SARMIENTO", u"SARMIENTO - S3023"),
(u"SASTRE", u"SASTRE - S2440"),
(u"SAUCE VIEJO", u"SAUCE VIEJO - S3017"),
(u"SCHIFFNER", u"SCHIFFNER - S2451XAC"),
(u"SEMINO", u"SEMINO - S2138XAB"),
(u"SERODINO", u"SERODINO - S2216"),
(u"SETUBAL", u"SETUBAL - S3014XAF"),
(u"SIERRA PEREYRA", u"SIERRA PEREYRA - S2300XAE"),
(u"SIN PEREZA", u"SIN PEREZA - S3060XAO"),
(u"SOL DE MAYO", u"SOL DE MAYO - S3048"),
(u"SOLDINI", u"SOLDINI - S2107"),
(u"SOLEDAD", u"SOLEDAD - S3025XAE"),
(u"SOUTO MAYOR", u"SOUTO MAYOR - S3025XAF"),
(u"STEPHENSON", u"STEPHENSON - S2103XAA"),
(u"SUARDI", u"SUARDI - S2349"),
(u"SUNCHALES", u"SUNCHALES - S2322"),
(u"SUSANA", u"SUSANA - S2301"),
(u"TACUARENDÍ", u"TACUARENDÍ - S3587"),
(u"TACURAL", u"TACURAL - S2324"),
(u"TAIS", u"TAIS - S2535XAA"),
(u"TALLERES", u"TALLERES - S2121XAD"),
(u"TARRAGONA", u"TARRAGONA - S6103XAE"),
(u"TARTAGAL", u"TARTAGAL - S3565XAG"),
(u"TEODELINA", u"TEODELINA - S6009"),
(u"THEOBALD", u"THEOBALD - S2918"),
(u"TIMBUES JOSÉ MARIA", u"TIMBUES JOSÉ MARIA - S2204"),
(u"TOBA", u"TOBA - S3551XAR"),
(u"TOMÁS ALVA EDISON", u"TOMÁS ALVA EDISON - S3023XAF"),
(u"TORTUGAS", u"TORTUGAS - S2512"),
(u"TOSTADO", u"TOSTADO - S3060"),
(u"TOTORAS", u"TOTORAS - S2144"),
(u"TRAILL", u"TRAILL - S2456XAC"),
(u"TRES BOCAS", u"TRES BOCAS - S3560XAG"),
(u"TRES COLONIAS", u"TRES COLONIAS - S2300XAF"),
(u"TRES ESQUINAS", u"TRES ESQUINAS - S2921XAA"),
(u"TRES POZOS", u"TRES POZOS - S3061XAK"),
(u"TTE HIPOLITO BOUCHARD", u"TTE HIPOLITO BOUCHARD - S2156XAE"),
(u"URANGA", u"URANGA - S2105"),
(u"VEINTICUATRO CASAS", u"VEINTICUATRO CASAS - S2313XAF"),
(u"VELAZQUEZ", u"VELAZQUEZ - S3550XAC"),
(u"VENADO TUERTO", u"VENADO TUERTO - S2600"),
(u"VERA", u"VERA - S3550"),
(u"VERA MUJICA", u"VERA MUJICA - S3040XAD"),
(u"VERA Y PINTADO", u"VERA Y PINTADO - S3054XAE"),
(u"VICENTE ECHEVARRIA", u"VICENTE ECHEVARRIA - S2142XAD"),
(u"VICTOR MANUEL SEGUNDO", u"VICTOR MANUEL SEGUNDO - S3563XAE"),
(u"VIDELA", u"VIDELA - S3048"),
(u"VILA", u"VILA - S2301"),
(u"VILLA ADELA", u"VILLA ADELA - S3581"),
(u"VILLA AMELIA", u"VILLA AMELIA - S2101"),
(u"VILLA AMÉRICA", u"VILLA AMÉRICA - S2121XAA"),
(u"VILLA ANA", u"VILLA ANA - S3583"),
(u"VILLA BIOTA", u"VILLA BIOTA - S2147XAA"),
(u"VILLA CAÑAS", u"VILLA CAÑAS - S2607"),
(u"VILLA CASSINI", u"VILLA CASSINI - S2154XAC"),
(u"VILLA CONSTITUCIÓN", u"VILLA CONSTITUCIÓN - S2919"),
(u"VILLA DIVISA DE MAYO", u"VILLA DIVISA DE MAYO - S2631XAC"),
(u"VILLA DON BOSCO", u"VILLA DON BOSCO - S3000XAB"),
(u"VILLA ELOÍSA", u"VILLA ELOÍSA - S2503"),
(u"VILLA ESTELA", u"VILLA ESTELA - S2726XAA"),
(u"VILLA FREDICKSON", u"VILLA FREDICKSON - S2630XAB"),
(u"VILLA GARIBALDI", u"VILLA GARIBALDI - S2156XAF"),
(u"VILLA GOBERNADOR GÁLVEZ", u"VILLA GOBERNADOR GÁLVEZ - S2124"),
(u"VILLA GUASTALLA", u"VILLA GUASTALLA - S2148XAA"),
(u"VILLA GUILLERMINA", u"VILLA GUILLERMINA - S3589"),
(u"VILLA LA RIBERA", u"VILLA LA RIBERA - S2500XAC"),
(u"VILLA LASTENIA", u"VILLA LASTENIA - S3042XAE"),
(u"VILLA LUJÁN", u"VILLA LUJÁN - S3016XAA"),
(u"VILLA LYLY TALLERES", u"VILLA LYLY TALLERES - S2121XAB"),
(u"VILLA MARGARITA", u"VILLA MARGARITA - S2156XAG"),
(u"VILLA MARIA SELVA", u"VILLA MARIA SELVA - S3000XAC"),
(u"VILLA MINETTI", u"VILLA MINETTI - S3061"),
(u"VILLA MUGUETA", u"VILLA MUGUETA - S2175"),
(u"VILLA OCAMPO", u"VILLA OCAMPO - S3580"),
(u"VILLA PORUCCI", u"VILLA PORUCCI - S2123XAC"),
(u"VILLA REGULES", u"VILLA REGULES - S2630XAA"),
(u"VILLA ROSELLO", u"VILLA ROSELLO - S6100XAB"),
(u"VILLA SAN DIEGO", u"VILLA SAN DIEGO - S2124XAC"),
(u"VILLA SAN JOSÉ", u"VILLA SAN JOSÉ - S2301"),
(u"VILLA SARALEGUI", u"VILLA SARALEGUI - S3046XAF"),
(u"VILLA TRINIDAD", u"VILLA TRINIDAD - S2345"),
(u"VILLA VIVEROS", u"VILLA VIVEROS - S3001XAV"),
(u"VILLA YAPEYU", u"VILLA YAPEYU - S3000XAH"),
(u"VILLADA", u"VILLADA - S2173"),
(u"VILLANI", u"VILLANI - S2400XAA"),
(u"VIRGINIA", u"VIRGINIA - S2311XAD"),
(u"VUELTA DEL PIRATA", u"VUELTA DEL PIRATA - S3001"),
(u"WALVELBERG", u"WALVELBERG - S2313XAA"),
(u"WHEELWRIGHT", u"WHEELWRIGHT - S2722"),
(u"WILDERMUTH", u"WILDERMUTH - S2257XAB"),
(u"YAGUARETÉ", u"YAGUARETÉ - S3586XAD"),
(u"YAMANDU", u"YAMANDU - S3014XAJ"),
(u"ZADOCKHAN", u"ZADOCKHAN - S2326XAC"),
(u"ZAMPONI", u"ZAMPONI - S2105XAD"),
(u"ZANETTI", u"ZANETTI - S2301XAF"),
(u"ZAVALLA", u"ZAVALLA - S2123"),
(u"ZENÓN PEREYRA", u"ZENÓN PEREYRA - S2409"),
)
CP_DEFAULT = u'GÁLVEZ'
CP_dict = dict(CP)
PROV = (
(u'BUENOS AIRES', u'BUENOS AIRES'),
(u'CAPITAL FEDERAL', u'CAPITAL FEDERAL'),
(u'CATAMARCA', u'CATAMARCA'),
(u'CHACO', u'CHACO'),
(u'CHUBUT', u'CHUBUT'),
(u'CÓRDOBA', u'CÓRDOBA'),
(u'CORRIENTES', u'CORRIENTES'),
(u'ENTRE RÍOS', u'ENTRE RÍOS'),
(u'FORMOSA', u'FORMOSA'),
(u'JUJUY', u'JUJUY'),
(u'LA PAMPA', u'LA PAMPA'),
(u'LA RIOJA', u'LA RIOJA'),
(u'MENDOZA', u'MENDOZA'),
(u'MISIONES', u'MISIONES'),
(u'NEUQUÉN', u'NEUQUÉN'),
(u'RÍO NEGRO', u'RÍO NEGRO'),
(u'SALTA', u'SALTA'),
(u'SAN JUAN', u'SAN JUAN'),
(u'SAN LUIS', u'SAN LUIS'),
(u'SANTA CRUZ', u'SANTA CRUZ'),
(u'SANTA FE', u'SANTA FE'),
(u'SANTIAGO', u'SANTIAGO'),
(u'TIERRA DEL FUEGO', u'TIERRA DEL FUEGO'),
(u'TUCUMÁN', u'TUCUMÁN'),
)
PROV_DEFAULT = u'SANTA FE'
CIRC = (
(u'SANTA FE', u'SANTA FE'),
(u'ROSARIO', u'ROSARIO'),
)
CIRC_DEFAULT = u'SANTA FE'
NOTA = (
(u'DECLARATORIA DE HEREDEROS', u'DECLARATORIA DE HEREDEROS'),
(u'CESIÓN DE DERECHOS', u'CESIÓN DE DERECHOS'),
(u'USUFRUCTO', u'USUFRUCTO'),
(u'ACTA DE REMATE', u'ACTA DE REMATE'),
)
#
# Visacion Comunal/Municipal
#
LUGAR = (
(0, u'GÁLVEZ'),
(1, u'AROCENA'),
(2, u'BARRANCAS'),
(3, u'BERNARDO DE IRIGOYEN'),
(4, u'CAMPO PIAGGIO'),
(5, u'CARRIZALES'),
(6, u'CASALEGNO'),
(7, u'COLONIA BELGRANO'),
(8, u'CORONDA'),
(9, u'DÍAZ'),
(10, u'GABOTO'),
(11, u'GESSLER'),
(12, u'IRIGOYEN'),
(13, u'LARRECHEA'),
(14, u'LOMA ALTA'),
(15, u'LÓPEZ'),
(16, u'MACIEL'),
(17, u'MATILDE'),
(18, u'MONJE'),
(19, u'OLIVEROS'),
(20, u'SAN CARLOS CENTRO'),
(21, u'SAN EUGENIO'),
(22, u'SAN FABIÁN'),
(23, u'SAN GENARO'),
(24, u'SAN MARIANO'),
(25, u'SAN MARTÍN DE LAS ESCOBAS'),
(26, u'SANTA CLARA DE BUENA VISTA'),
(27, u'CENTENO'),
)
Lugar_dict = {
0: (u'Sr. Secretario de Obras, Servicios Públicos y Gestión', u'MUNICIPALIDAD DE GÁLVEZ'),
1: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO AROCENA'),
2: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO BARRANCAS'),
3: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO BERNARDO DE IRIGOYEN'),
4: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO CAMPO PIAGGIO'),
5: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO CARRIZALES'),
6: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO CASALEGNO'),
7: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO COLONIA BELGRANO'),
8: (u'Sr. Secretario de Obras y Servicios Públicos', u'MUNICIPALIDAD DE CORONDA'),
9: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO ESTACIÓN DÍAZ'),
10: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO GABOTO'),
11: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO GESSLER'),
12: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO IRIGOYEN'),
13: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO LARRECHEA'),
14: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO LOMA ALTA'),
15: (u'Sr. Presidente de la Comisión Comunal de', u'PUEBLO LÓPEZ'),
16: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO MACIEL'),
17: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO MATILDE'),
18: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO MONJE'),
19: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO OLIVEROS'),
20: (u'Sr. Secretario de Obras y Servicios Públicos', u'MUNICIPALIDAD DE SAN CARLOS CENTRO'),
21: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO SAN EUGENIO'),
22: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO SAN FABIAN'),
23: (u'Sr. Intendente Municipal', u'MUNICIPALIDAD DE SAN GENARO'),
24: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO SAN MARIANO'),
25: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO SAN MARTÍN DE LAS ESCOBAS'),
26: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO SANTA CLARA DE BUENA VISTA'),
27: (u'Sr. Presidente de la Comisión Comunal', u'PUEBLO CENTENO'),
}
|
class Component:
def __init__(self, id_, name_):
self.id = id_
self.name = name_
|
class Mods:
__slots__ = ('map_changing', 'nf', 'ez', 'hd', 'hr', 'dt', 'ht', 'nc',
'fl', 'so', 'speed_changing', 'map_changing')
def __init__(self, mods_str=''):
self.nf = False
self.ez = False
self.hd = False
self.hr = False
self.dt = False
self.ht = False
self.nc = False
self.fl = False
self.so = False
self.speed_changing = False
self.map_changing = False
if mods_str:
self.from_str(mods_str)
self.update_state()
def update_state(self):
# speed changing - dt or ht or nc is used
self.speed_changing = self.dt or self.ht or self.nc
# if hr or ez or dt or ht or nc
self.map_changing = self.hr or self.ez or self.speed_changing
def __str__(self):
string = ''
if self.nf:
string += "NF"
if self.ez:
string += "EZ"
if self.hd:
string += "HD"
if self.hr:
string += "HR"
if self.dt:
string += "DT"
if self.ht:
string += "HT"
if self.nc:
string += "NC"
if self.fl:
string += "FL"
if self.so:
string += "SO"
return string
def from_str(self, mods):
if not mods:
return
# split mods string to chunks with length of two characters
mods = [mods[i:i + 2] for i in range(0, len(mods), 2)]
if "NF" in mods:
self.nf = True
if "EZ" in mods:
self.ez = True
if "HD" in mods:
self.hd = True
if "HR" in mods:
self.hr = True
if "DT" in mods:
self.dt = True
if "HT" in mods:
self.ht = True
if "NC" in mods:
self.nc = True
if "FL" in mods:
self.fl = True
if "SO" in mods:
self.so = True
self.update_state()
class HitObject:
__slots__ = ('pos', 'time', 'h_type', 'end_time', 'slider')
def __init__(self, pos, time, h_type, end_time, slider):
self.pos = pos
self.time = time
self.h_type = h_type
self.end_time = end_time
self.slider = slider
class SliderData:
__slots__ = ('s_type', 'points', 'repeats', 'length')
def __init__(self, s_type, points, repeats, length):
self.s_type = s_type
self.points = points
self.repeats = repeats
self.length = length
class TimingPoint:
__slots__ = ('time', 'ms_per_beat', 'inherited')
def __init__(self, time, ms_per_beat, inherited):
self.time = time
self.ms_per_beat = ms_per_beat
self.inherited = inherited
|
class Solution:
def maxNumOfSubstrings(self, s: str) -> List[str]:
start, end = {}, {}
for i, c in enumerate(s):
if c not in start:
start[c] = i
end[c] = i
def checkSubstring(i):
curr = i
right = end[s[curr]]
while curr <= right:
if start[s[curr]] < i:
return -1
right = max(right, end[s[curr]])
curr += 1
return right
result = []
prevRight = -1
for i, c in enumerate(s):
if i == start[c]:
right = checkSubstring(i)
if right != -1:
if i > prevRight:
result.append(s[i:right + 1])
else:
result[-1] = s[i:right + 1]
prevRight = right
return result
|
# -*- coding: utf-8 -*-
{
'name': "HR Attendance Holidays",
'summary': """""",
'category': 'Human Resources',
'description': """
Hides the attendance presence button when an employee is on leave.
""",
'version': '1.0',
'depends': ['hr_attendance', 'hr_holidays'],
'auto_install': True,
'data': [
'views/hr_employee_views.xml',
],
'license': 'LGPL-3',
}
|
# -*- coding: utf-8 -*-
"""This Module helps test private extras."""
class PrivateDict(dict):
"""A priviate dictionary."""
|
# Make a dictionary called cities. Use the names of three cities as
# keys in your dictionary. Create a dictionary of information about each city and
# include the country that the city is in, its approximate population, and one fact
# about that city. The keys for each city’s dictionary should be something like
# country, population, and fact.
cities = {
'vancouver': {
'country': 'canada',
'population': 675218,
'language': 'french/english'
},
'new york': {
'country': 'united states of america',
'population': 8623000,
'language': 'english'
},
'san francisco': {
'country': 'united states of america',
'population': 884363,
'language': 'english'
},
}
# Print the name of each city and all of the information
# you have stored about it.
for city, city_info in cities.items():
print(f"\n city: {city.title()}")
print(f"\t {city_info['country'].title()}")
print(f"\t {city_info['population']}")
print(f"\t {city_info['country'].title()}")
|
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 3 11:15:57 2020
@author: Tarun Jaiswal
"""
x=range(2,11,2)
print (x)
for item in x:
print(item,end=",")
|
'''
this code is for using PySpark to read straight from S3 bucket instead of using the default data source (AWS Glue Data Catalog).
'''
#this is the default line that we will change:
datasource0 = glueContext.create_dynamic_frame.from_catalog(database = "<DATABASE_NAME>", table_name = "<TABLE_NAME>", transformation_ctx = "datasource0")
# so replace the previous code with this:
obj_list = ['s3://<OBJECT_PATH>'] # list of all relevant objects
datasource0 = glueContext.create_dynamic_frame_from_options(connection_type = "s3",connection_options={"paths": [obj_list]}, format = "csv", format_options={"withHeader": False,"separator": ","})
# for more info: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-crawler-pyspark-extensions-glue-context.html#aws-glue-api-crawler-pyspark-extensions-glue-context-create_dynamic_frame_from_options
|
"""
New England
Buffalo
Miami
N.Y. Jets
Pittsburgh
Baltimore
Cincinnati
Cleveland
Jacksonville
Tennessee
Indianapolis
Houston
Kansas City
L.A. Chargers
Las Vegas
Denver
Philadelphia
Dallas
Washington
N.Y. Giants
Minnesota
Detroit
Green Bay
Chicago
New Orleans
Carolina
Atlanta
Tampa Bay
L.A. Rams
Seattle
Arizona
San Francisco
"""
cbs_team_names = {
"Washington": "Washington Football Team",
"Tennessee": "Tennessee Titans",
"Tampa Bay": "Tampa Bay Buccaneers",
"Seattle": "Seattle Seahawks",
"San Francisco": "San Francisco 49ers",
"L.A. Chargers": "Los Angeles Chargers",
"L.A. Rams": "Los Angeles Rams",
"Pittsburgh": "Pittsburgh Steelers",
"Philadelphia": "Philadelphia Eagles",
"Las Vegas": "Las Vegas Raiders",
"N.Y. Jets": "New York Jets",
"N.Y. Giants": "New York Giants",
"New Orleans": "New Orleans Saints",
"New England": "New England Patriots",
"Minnesota": "Minnesota Vikings",
"Miami": "Miami Dolphins",
"Kansas City": "Kansas City Chiefs",
"Jacksonville": "Jacksonville Jaguars",
"Indianapolis": "Indianapolis Colts",
"Houston": "Houston Texans",
"Green Bay": "Green Bay Packers",
"Detroit": "Detroit Lions",
"Denver": "Denver Broncos",
"Dallas": "Dallas Cowboys",
"Cleveland": "Cleveland Browns",
"Cincinnati": "Cincinnati Bengals",
"Chicago": "Chicago Bears",
"Carolina": "Carolina Panthers",
"Buffalo": "Buffalo Bills",
"Baltimore": "Baltimore Ravens",
"Atlanta": "Atlanta Falcons",
"Arizona": "Arizona Cardinals"
}
|
class Solution:
def removePalindromeSub(self, s: str) -> int:
if not s or len(s) == 0:
return 0
left, right = 0, len(s) - 1
while left < right and s[left] == s[right]:
left += 1
right -= 1
if left >= right:
return 1
else:
return 2 |
class Solution(object):
def backspaceCompare(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
def manipulateString(string):
new_string = []
for char in string:
if char != '#':
new_string.append(char)
elif new_string:
new_string.pop()
return new_string
new_s = manipulateString(s)
new_t = manipulateString(t)
if new_s == new_t:
return True
else:
return False
sol = Solution()
# Test Case1, answer should be True
s1 = "ab#c"
t1 = "ad#c"
ans1 = sol.backspaceCompare(s1, t1)
print(ans1)
# Test Case2, answer should be True
s2 = "ab##"
t2 = "c#d#"
ans2 = sol.backspaceCompare(s2, t2)
print(ans2)
# Test Case3, answer should be True
s3 = "a##c"
t3 = "#a#c"
ans3 = sol.backspaceCompare(s3, t3)
print(ans3)
# Test Case4, answer should be False
s4 = "a#c"
t4 = "b"
ans4 = sol.backspaceCompare(s4, t4)
print(ans4)
|
radious=2.5
area=3.14*radious**2
print("area of circle",area)
circum=2*3.14*radious
print("circumof",circum)
|
#
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 09/10/14 #3623 randerso Manually created, do not regenerate
#
class SiteActivationNotification(object):
def __init__(self):
self.type = None
self.status = None
self.primarySite = None
self.modifiedSite = None
self.runMode = None
self.serverName = None
self.pluginName = None
def getType(self):
return self.type
def setType(self, notificationType):
self.type = notificationType
def getStatus(self):
return self.status
def setStatus(self, status):
self.status = status
def getPrimarySite(self):
return self.primarySite
def setPrimarySite(self, primarysite):
self.primarySite = primarysite
def getModifiedSite(self):
return self.modifiedSite
def setModifiedSite(self, modifiedSite):
self.modifiedSite = modifiedSite
def getRunMode(self):
return self.runMode
def setRunMode(self, runMode):
self.runMode = runMode
def getServerName(self):
return self.serverName
def setServerName(self, serverName):
self.serverName = serverName
def getPluginName(self):
return self.pluginName
def setPluginName(self, pluginName):
self.pluginName = pluginName
def __str__(self):
return self.pluginName.upper() + ":" \
+ self.status + ":" \
+ self.type + " " \
+ self.modifiedSite.upper() + " on " \
+ self.serverName + ":" \
+ self.runMode
|
#!/usr/bin/env python3
# Change the variables and rename this file to secret.py
# add your url here (without trailing / at the end!)
url = "https://home-assistant.duckdns.org"
# get a "Long-Lived Access Token" at YOUR_URL/profile
token = "AJKSDHHASJKDHA871263291873KHGSDKAJSGD"
|
# Time: O(n)
# Space: O(1)
class Solution(object):
def largestSubarray(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
left, right, l = 0, 1, 0
while right+k-1 < len(nums) and right+l < len(nums):
if nums[left+l] == nums[right+l]:
l += 1
continue
if nums[left+l] > nums[right+l]:
right += l+1
else:
left = max(right, min(left+l+1, len(nums)-k))
right = left+1
l = 0
return nums[left:left+k]
|
# pylint: skip-file
class OadmPolicyException(Exception):
''' Registry Exception Class '''
pass
class OadmPolicyUserConfig(OpenShiftCLIConfig):
''' RegistryConfig is a DTO for the registry. '''
def __init__(self, namespace, kubeconfig, policy_options):
super(OadmPolicyUserConfig, self).__init__(policy_options['name']['value'],
namespace, kubeconfig, policy_options)
self.kind = self.get_kind()
self.namespace = namespace
def get_kind(self):
''' return the kind we are working with '''
if self.config_options['resource_kind']['value'] == 'role':
return 'rolebinding'
elif self.config_options['resource_kind']['value'] == 'cluster-role':
return 'clusterrolebinding'
elif self.config_options['resource_kind']['value'] == 'scc':
return 'scc'
return None
class OadmPolicyUser(OpenShiftCLI):
''' Class to wrap the oc command line tools '''
def __init__(self,
policy_config,
verbose=False):
''' Constructor for OadmPolicyUser '''
super(OadmPolicyUser, self).__init__(policy_config.namespace, policy_config.kubeconfig, verbose)
self.config = policy_config
self.verbose = verbose
self._rolebinding = None
self._scc = None
@property
def role_binding(self):
''' role_binding property '''
return self._rolebinding
@role_binding.setter
def role_binding(self, binding):
''' setter for role_binding property '''
self._rolebinding = binding
@property
def security_context_constraint(self):
''' security_context_constraint property '''
return self._scc
@security_context_constraint.setter
def security_context_constraint(self, scc):
''' setter for security_context_constraint property '''
self._scc = scc
def get(self):
'''fetch the desired kind'''
resource_name = self.config.config_options['name']['value']
if resource_name == 'cluster-reader':
resource_name += 's'
return self._get(self.config.kind, resource_name)
def exists_role_binding(self):
''' return whether role_binding exists '''
results = self.get()
if results['returncode'] == 0:
self.role_binding = RoleBinding(results['results'][0])
if self.role_binding.find_user_name(self.config.config_options['user']['value']) != None:
return True
return False
elif '\"%s\" not found' % self.config.config_options['name']['value'] in results['stderr']:
return False
return results
def exists_scc(self):
''' return whether scc exists '''
results = self.get()
if results['returncode'] == 0:
self.security_context_constraint = SecurityContextConstraints(results['results'][0])
if self.security_context_constraint.find_user(self.config.config_options['user']['value']):
return True
return False
return results
def exists(self):
'''does the object exist?'''
if self.config.config_options['resource_kind']['value'] == 'cluster-role':
return self.exists_role_binding()
elif self.config.config_options['resource_kind']['value'] == 'role':
return self.exists_role_binding()
elif self.config.config_options['resource_kind']['value'] == 'scc':
return self.exists_scc()
return False
def perform(self):
'''perform action on resource'''
cmd = ['-n', self.config.namespace, 'policy',
self.config.config_options['action']['value'],
self.config.config_options['name']['value'],
self.config.config_options['user']['value']]
return self.openshift_cmd(cmd, oadm=True)
|
# Stage 3/6: More interaction
# Description
# We are going to make our program more complex. As you remember,
# the conicoin rate was fixed in the previous stage. But in the real world,
# things are different. It's time to write a program that takes your
# conicoins and an up-to-date conicoin exchange rate, then counts how
# many dollars you would get, and print the result.
# Objectives
# 1. Get the number of conicoins from the user input.
# 2. Get the exchange rate from the user input.
# 3. Calculate and print hte result.
# Example
# The greater-than symbol followed by a space ( > ) represents the user
# input. Note that it's not part of the input.
# Example 1:
# Please, enter the number of conicoins you have: > 13
# Please, enter the exchange rate: > 2
# The total amount of dollars: 26
# Example 2:
# Please, enter the number of conicoins you have: > 128
# Please, enter the exchange rate: > 3.21
# The total amount of dollars: 410.88
class CurrencyConverter:
def __init__(self):
self.exchange = 0
self.dollars = 0
self.coins = 0
self.conicoin_question = "Please, enter the number of conicoins you have: "
self.exchange_question = "Please, enter the exchange rate: "
self.amount_message = "The total amount of dollars:"
def start(self):
self.converter()
def user(self, question):
return input(question)
def converter(self):
self.coins = int(self.user(self.conicoin_question))
self.exchange = float(self.user(self.exchange_question))
self.dollars = self.coins * self.exchange
print(self.amount_message, round(self.dollars) if self.dollars % 1 == 0 else round(self.dollars, 2))
def main():
cur = CurrencyConverter()
cur.start()
if __name__ == '__main__':
main() |
def test_convert_from_bool(get_contract_with_gas_estimation):
code = """
@external
def foo() -> bool:
val: bool = True and True and False
return val
@external
def bar() -> bool:
val: bool = True or True or False
return val
@external
def foobar() -> bool:
val: bool = False and True or False
return val
@external
def oof() -> bool:
val: bool = False or False or False or False or False or True
return val
@external
def rab() -> bool:
val: bool = True and True and True and True and True and False
return val
@external
def oofrab() -> bool:
val: bool = False and True or False and True or False and False or True
return val
"""
c = get_contract_with_gas_estimation(code)
assert c.foo() is False
assert c.bar() is True
assert c.foobar() is False
assert c.oof() is True
assert c.rab() is False
assert c.oofrab() is True
|
class ForkName:
Frontier = 'Frontier'
Homestead = 'Homestead'
EIP150 = 'EIP150'
EIP158 = 'EIP158'
Byzantium = 'Byzantium'
Constantinople = 'Constantinople'
Metropolis = 'Metropolis'
ConstantinopleFix = 'ConstantinopleFix'
Istanbul = 'Istanbul'
Berlin = 'Berlin'
London = 'London'
ArrowGlacier = 'ArrowGlacier'
|
class fruta:
def __init__ (self,nombre, calorias, vitamina_c, porcentaje_fibra, porcentaje_potasio):
self.nombre = nombre
self.calorias = calorias
self.vitamina_c = vitamina_c
self.porcentaje_fibra = porcentaje_fibra
self.porcentaje_potasio = porcentaje_potasio
def get_calorias(self):
return self.calorias
def set_calorias(self):
return self.calorias
def __repr__ (self):
return "Nombre: " +self.nombre+" Calorias: "+str(self.calorias)+"K " +" Vitamina C: "+str(self.vitamina_c)+ "mm/kg ""Porcentaje de fibra: "+str(self.porcentaje_fibra)+"% "+" Porcentaje de Potasio: " +str(self.porcentaje_potasio)+"% "
def engorda (self):
if self.calorias>100:
return "Verdadero"
else:
return "Falso"
def nogripe (self):
if self.vitamina_c > 0:
return "Verdadero"
else:
return "Falso"
fruta1=fruta("banana",110,28,34,60)
fruta2=fruta("manzana",80,0,40,5)
fruta3=fruta("pera",90,8,37,8)
print(fruta1)
print(fruta2)
print(fruta3)
print("")
print(fruta1.engorda())
print(fruta2.engorda())
print(fruta3.engorda())
print("")
print(fruta1.nogripe())
print(fruta2.nogripe())
print(fruta3.nogripe())
|
load("//:bouncycastle.bzl", "bouncycastle_repos")
load("//:gerrit_api_version.bzl", "gerrit_api_version")
load("//:rules_python.bzl", "rules_python_repos")
load("//tools:maven_jar.bzl", "MAVEN_LOCAL", "MAVEN_CENTRAL", "maven_jar")
"""Bazel rule for building [Gerrit Code Review](https://www.gerritcodereview.com/)
gerrit_api is rule for fetching Gerrit plugin API using Bazel.
"""
def gerrit_api(version = "3.3.0",
plugin_api_sha1 = "cef5b27d3beb894b366002657dda6e0e2ce47223",
acceptance_framework_sha1 = "e7d2c52919da966032a70d998899dad47b85ed76"):
gerrit_api_version(
name = "gerrit_api_version",
version = version,
)
bouncycastle_repos()
rules_python_repos()
local_repository = version.endswith("-SNAPSHOT")
maven_jar(
name = "gerrit_plugin_api",
artifact = "com.google.gerrit:gerrit-plugin-api:" + version,
sha1 = "" if local_repository else plugin_api_sha1,
repository = MAVEN_LOCAL if local_repository else MAVEN_CENTRAL,
)
maven_jar(
name = "gerrit_acceptance_framework",
artifact = "com.google.gerrit:gerrit-acceptance-framework:" + version,
sha1 = "" if local_repository else acceptance_framework_sha1,
repository = MAVEN_LOCAL if local_repository else MAVEN_CENTRAL,
)
native.bind(
name = "gerrit-plugin-api",
actual = "@gerrit_plugin_api//jar",
)
native.bind(
name = "gerrit-acceptance-framework",
actual = "@gerrit_acceptance_framework//jar",
)
native.bind(
name = "gerrit-plugin-api-neverlink",
actual = "@gerrit_plugin_api//jar:neverlink",
)
native.bind(
name = "gerrit-acceptance-framework-neverlink",
actual = "@gerrit_acceptance_framework//jar:neverlink",
)
|
# this is an embedded Python script it's really on GitHub
# and this is only a reference - so when it changes people
# will see the change on the webpage .. GOODTIMES !
pid = Runtime.start("pid","PID") |
def estrutura_sintatica_frase(dependencies_tags, pred_tags, dep_words, frase):
"""
Define a ordem frásica da frase em português (ex: "SVO") com base nas relações de dependência retornadas pelo SpaCy.
:param dependencies_tags: lista com as etiquetas de dependencia da frase dadas pelo SpaCy
:param pred_tags: lista com as etiquetas morfossintáticas da frase dadas pelo Freeling
:param dep_words: lista com as palavras da frase
:param frase: objeto de uma das classes Frase_pt ou Frase_input que guarda informações sobre a frase em português
:return: uma string com a estrutura frásica da frase (ex: "SVO") e os indices do verbo e sujeito na frase
"""
estrutura = []
indice_verbo = -1
indice_subj = -1
for index, item in enumerate(dependencies_tags):
if "nsubj" in item:
estrutura.append("S")
indice_subj = index
if "obj" in item:
estrutura.append("O")
if "amod" in item and pred_tags[index].startswith("V") and "ROOT" in dependencies_tags:
estrutura.append("V")
frase.set_classes_v(pred_tags[index])
frase.set_classes_antes_v(dep_words[index], pred_tags[index])
indice_verbo = index
if "ROOT" in item and "cop" not in dependencies_tags and pred_tags[index].startswith("V"):
estrutura.append("V")
indice_verbo = index
if "ROOT" in dependencies_tags and pred_tags[index].startswith("V"):
estrutura.append("V")
indice_verbo = index
if "cop" in item and "ROOT" in dependencies_tags and pred_tags[index].startswith("V"):
estrutura.append("V")
indice_verbo = index
if "ROOT" in item and "cop" in dependencies_tags:
#é o caso do predicativo do sujeito
estrutura.append("V")
estrutura = list(dict.fromkeys(estrutura))
return "".join(estrutura), indice_verbo, indice_subj
def set_elementos(dependencies_tags, pred_tags, dep_words, frase):
"""
Define as palavras que pertencem a cada elementoo frásico (sujeito, predicado e modificador de frase) da frase em português.
:param dependencies_tags: lista com as etiquetas de dependencia da frase dadas pelo SpaCy
:param pred_tags: lista com as etiquetas morfossintáticas da frase dadas pelo Freeling
:param dep_words: lista com as palavras da frase
:param frase: objeto de uma das classes Frase_pt ou Frase_input que guarda informações sobre a frase em português
:return:
"""
estrutura, indice_verbo, indice_subj = estrutura_sintatica_frase(dependencies_tags, pred_tags,dep_words, frase)
frase.set_estrutura(estrutura)
for i, d in enumerate(dependencies_tags):
if "nsubj" in d:
frase.set_classes_suj(pred_tags[i])
frase.set_classes_antes_suj(dep_words[i], pred_tags[i])
frase.set_indices_suj(i)
if "appos" in d:
frase.set_classes_suj(pred_tags[i])
frase.set_classes_antes_suj(dep_words[i], pred_tags[i])
frase.set_indices_suj(i)
if "det" in d:
frase.set_classes_suj(pred_tags[i])
frase.set_classes_antes_suj(dep_words[i], pred_tags[i])
frase.set_indices_suj(i)
if d == "csubj":
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if (d == "amod" or d=="case") and indice_verbo!= dependencies_tags.index("ROOT") and i > indice_verbo:
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if (d == "amod" or d=="case") and indice_subj==-1 and indice_verbo!= dependencies_tags.index("ROOT") and i < indice_verbo:
frase.set_classes_outros(pred_tags[i])
frase.set_classes_antes_outro(dep_words[i], pred_tags[i])
frase.set_indices_outros(i)
if d == "ROOT" and not pred_tags[i].startswith("V") and i < indice_verbo:
frase.set_classes_suj(pred_tags[i])
frase.set_classes_antes_suj(dep_words[i], pred_tags[i])
frase.set_indices_suj(i)
if d == "ROOT" and not pred_tags[i].startswith("V") and i > indice_verbo:
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if "acl" in d and pred_tags[i].startswith("V"):
frase.set_classes_v(pred_tags[i])
frase.set_classes_antes_v(dep_words[i], pred_tags[i])
frase.set_indices_verbo(i)
elif "acl" in d:
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if indice_subj!=-1:
if d == "advmod" and i < indice_verbo and i < indice_subj: # estamos perante um modificador de frase
frase.set_classes_outros(pred_tags[i])
frase.set_classes_antes_outro(dep_words[i], pred_tags[i])
frase.set_indices_outros(i)
if d == "advmod" and i < indice_verbo and i > indice_subj: # estamos perante um modificador de grupo verbal
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if d == "advmod" and i > indice_verbo and i > indice_subj: # estamos perante um modificador do grupo verbal, portanto faz parte do obj
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
else:
if d == "advmod" and i < indice_verbo: # estamos perante um modificador de frase
frase.set_classes_outros(pred_tags[i])
frase.set_classes_antes_outro(dep_words[i], pred_tags[i])
frase.set_indices_outros(i)
if d == "advmod" and i > indice_verbo: # estamos perante um modificador de grupo verbal
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if "obj" in d or "iobj" in d:
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if d == "xcomp" or d == "ccomp" or d == "advcl" or d == "conj":
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if d == "cc" and i == 0 and "advmod" in dependencies_tags: #estamos perante uma conjunção pertencente a um modificador
frase.set_classes_outros(pred_tags[i])
frase.set_classes_antes_outro(dep_words[i], pred_tags[i])
frase.set_indices_outros(i)
if d == "cc" and i == 0 and "advmod" not in dependencies_tags: #estamos perante uma conjunção pertencente a um modificador
frase.set_classes_suj(pred_tags[i])
frase.set_classes_antes_suj(dep_words[i], pred_tags[i])
frase.set_indices_suj(i)
if d == "cc" and i != 0 and i>indice_verbo: #conjunção coordenativa
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if d == "cc" and i != 0 and i<indice_verbo: #conjunção coordenativa
frase.set_classes_suj(pred_tags[i])
frase.set_classes_antes_suj(dep_words[i], pred_tags[i])
frase.set_indices_suj(i)
if "obl" in d: # estamos perante um modificador do grupo verbal ou complemento oblíquo
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
# Se verbo estiver no inicio da frase sem sujeito --> d == case
if (d == "ROOT" or d == "case") and "cop" not in dependencies_tags and pred_tags[i].startswith("V"):
print("verbooo incioooooooo " + dep_words[i])
frase.set_classes_v(pred_tags[i])
frase.set_classes_antes_v(dep_words[i], pred_tags[i])
frase.set_indices_verbo(i)
# Verbo auxiliar --> "estava a conduzir"
if d == "xcomp" and pred_tags[i].startswith("V"):
print("verbooo auxiliar " + dep_words[i] + " : " + str(i))
print(dep_words)
frase.classes_verbo.insert(len(frase.classes_verbo)-1, pred_tags[i])
print(frase.classes_verbo)
# frase.set_classes_v(pred_tags[i])
frase.classes_antes_verbo.insert(len(frase.classes_antes_verbo)-1, (dep_words[i], pred_tags[i]))
frase.indices_verbo.insert(len(frase.indices_verbo)-1, i)
# frase.set_indices_verbo(i)
if d == "amod" and "ROOT" in dependencies_tags and pred_tags[i].startswith("V"):
frase.set_indices_verbo(i)
if d == "ROOT" and "cop" in dependencies_tags and pred_tags[i].startswith("V"):
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if d == "cop" and "ROOT" in dependencies_tags:
frase.set_classes_v(pred_tags[i])
frase.set_classes_antes_v(dep_words[i], pred_tags[i])
frase.set_indices_verbo(i)
# if "aux" in d:
# frase.set_classes_v(pred_tags[i])
# frase.set_classes_antes_v(dep_words[i], pred_tags[i])
# frase.set_indices_verbo(i)
# if "mark" in d and "nsubj" in dependencies_tags:
# frase.set_classes_suj(pred_tags[i])
# frase.set_classes_antes_suj(dep_words[i], pred_tags[i])
# frase.set_indices_suj(i)
if d == "mark" and i<len(dependencies_tags) and dependencies_tags[i+1] == "nsubj":
frase.set_classes_suj(pred_tags[i])
frase.set_classes_antes_suj(dep_words[i], pred_tags[i])
frase.set_indices_suj(i)
# Quando começa a escola? adiciona o quando
elif "mark" in d:
frase.set_classes_outros(pred_tags[i])
frase.set_classes_antes_outro(dep_words[i], pred_tags[i])
frase.set_indices_outros(i)
if "flat:name" in d:
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if "nmod" in d or "mmod" in d:
frase.set_classes_obj(pred_tags[i])
frase.set_classes_antes_obj(dep_words[i], pred_tags[i])
frase.set_indices_obj(i)
if (d == "amod" or d == "case") and indice_verbo== dependencies_tags.index("ROOT"):
frase.set_classes_outros(pred_tags[i])
frase.set_classes_antes_outro(dep_words[i], pred_tags[i])
frase.set_indices_outros(i)
frase.set_classes_pred(frase.classes_verbo + frase.classes_obj)
frase.set_classes_antes_pred(frase.classes_antes_verbo + frase.classes_antes_obj)
frase.set_indices_pred(frase.indices_verbo + frase.indices_obj)
def set_elementos_extracao(dependencies_tags, pred_tags, dep_words, frase):
"""
Define as palavras que pertencem a cada elementoo frásico (sujeito, predicado e modificador de frase) da frase em português para a construção de regras.
:param dependencies_tags: lista com as etiquetas de dependencia da frase dadas pelo SpaCy
:param pred_tags: lista com as etiquetas morfossintáticas da frase dadas pelo Freeling
:param dep_words: lista com as palavras da frase
:param frase: objeto de uma das classes Frase_pt ou Frase_input que guarda informações sobre a frase em português
:return:
"""
estrutura, indice_verbo, indice_subj = estrutura_sintatica_frase(dependencies_tags, pred_tags, dep_words, frase)
for i, d in enumerate(dependencies_tags):
if d == "nsubj":
frase.append_analise_sintatica(dep_words[i], "ARG_EXT")
if indice_subj!=-1:
if d == "advmod" and i < indice_verbo and i < indice_subj: # estamos perante um modificador de frase
frase.append_analise_sintatica(dep_words[i], "")
if d == "advmod" and i < indice_verbo and i > indice_subj: # estamos perante um modificador de grupo verbal
frase.append_analise_sintatica(dep_words[i], "ARG_INT")
if d == "advmod" and i > indice_verbo and i > indice_subj: # estamos perante um modificador do grupo verbal, portanto faz parte do obj
frase.append_analise_sintatica(dep_words[i], "ARG_INT")
else:
if d == "advmod" and i < indice_verbo: # estamos perante um modificador de frase
frase.append_analise_sintatica(dep_words[i], "")
if d == "advmod" and i > indice_verbo: # estamos perante um modificador de grupo verbal
frase.append_analise_sintatica(dep_words[i], "ARG_INT")
if d == "obj" or d == "iobj":
frase.append_analise_sintatica(dep_words[i], "ARG_INT")
if d == "obl": # estamos perante um modificador do grupo verbal ou complemento oblíquo
frase.append_analise_sintatica(dep_words[i], "ARG_INT")
if d == "ROOT" and "cop" not in dependencies_tags:
frase.append_analise_sintatica(dep_words[i], "v")
if d == "ROOT" and "cop" in dependencies_tags:
frase.append_analise_sintatica(dep_words[i], "ARG_INT")
if d == "cop" and "ROOT" in dependencies_tags:
frase.append_analise_sintatica(dep_words[i], "v_cop")
return estrutura |
print("""
071) Crie um programa que simule o funcionamento de um caixa eletrônico.
No início, pergunte ao usuário qual será o valor a ser sacado (Número
inteiro) e o programa vai informar quantas cédulas de cada valor serão
entregues.
OBS.: Considere que o Caixa possui cédulas de R$ 50, R$ 20, R$ 10 e R$ 1.
""")
### Solução 0: Funcional, mas excessivamente complicada.
# valorDoSaque = []
# valorDoSaque.extend(input('Quanto quer sacar? ').strip()) # Mantido como \
# "string" para aproveitar a propriedade de iterável do objeto
# multiplicador = 1
# notas = ''
# while len(valorDoSaque) != 0:
# valor = int(valorDoSaque[-1])
# # Validação da unidade:
# if multiplicador == 1:
# if valor < 5:
# notas += str(valor) \
# + ' nota(s) de 1.\n'
# elif valor > 5:
# notas += '1 nota de 5 e ' \
# + str(valor%5) \
# + ' nota(s) de 1.\n'
# else:
# notas += '1 nota de 5.\n'
# # Validação da dezena
# if multiplicador == 10:
# if valor == 1:
# notas += '1 nota de 10.\n'
# elif 5 > valor >= 2:
# if valor%2 == 0:
# notas += str(valor//2) + \
# ' nota(s) de 20.\n'
# else:
# notas += str(valor//2) \
# + ' nota(s) de 20 e ' \
# + str(valor%2) \
# + ' nota(s) de 10\n'
# elif valor > 5:
# notas += '1 nota de 50 e '
# if valor%5 >= 2:
# if (valor%5)%2 == 0:
# notas += str((valor%5)//2) \
# + ' nota(s) de 20.\n'
# else:
# notas += str((valor%5)//2) \
# + ' nota(s) de 20 e ' \
# + str((valor%5)//2) \
# + ' nota(s) de 10\n'
# else:
# notas += '1 nota de 10.\n'
# else:
# notas += '1 nota de 50.\n'
# # Validação da cententa em diante
# if multiplicador >= 100:
# notas += str(valor*multiplicador//50) + ' notas de 50.\n'
# valorDoSaque.pop()
# multiplicador *= 10
# print(notas)
### Solução 1: Mais simples que a Solução 0, mas muito deselegante.
### Usa quatro contadores, cria muita repetição de código. Um
### desastre :)
# valorDoSaque = int(input('Quanto quer sacar? '))
# contador50 = contador20 = contador10 = contador1 = 0
# resultado = ''
# while True:
# if valorDoSaque-50 >= 0:
# cedula = 50
# contador50 += 1
# valorDoSaque -= cedula
# elif valorDoSaque-20 >= 0:
# cedula = 20
# contador20 += 1
# valorDoSaque -= cedula
# elif valorDoSaque-10 >= 0:
# cedula = 10
# contador10 += 1
# valorDoSaque -= cedula
# elif valorDoSaque-1 >=0:
# cedula = 1
# contador1 += 1
# valorDoSaque -= cedula
# else:
# if not contador50 == 0:
# resultado += f'{contador50} cédula(s) de 50\n'
# if not contador20 == 0:
# resultado += f'{contador20} cédula(s) de 20.\n'
# if not contador10 == 0:
# resultado += f'{contador10} cédula(s) de 10.\n'
# if not contador1 == 0:
# resultado += f'{contador1} cédula(s) de 1.\n'
# break
# print(resultado)
### Solução 2: A mais simples e elegante de todas.
# valorDoSaque = int(input('Quanto quer sacar? R$ '))
# cedula = 50
# contador = 0
# while True:
# ### [1] O teste só falha quando o valor do saque for menor que o valor
# ### da cédula que está sendo usada na iteração atual. Ou seja, quando
# ### a subtração der resultado negativo, significa que é preciso "trocar"
# ### para a cédula de valor imediatamente inferior, até zerar a variável
# ### "valorDoSaque", usando as cédulas de R$ 1,00.
# if valorDoSaque >= cedula:
# contador += 1
# valorDoSaque -= cedula
# else:
# ### [3] A variável "contador" indica a quantidade de cédulas de cada
# ### valor a cada iteração. Se este valor for 0, significa que não
# ### houve contabilização daquela cédula para compor o saque. Como
# ### não é preciso indicar que zero cédulas de um determinado valor
# ### serão entregues, só realizamos esta ação, caso contador > 0
# if contador > 0:
# print(f'{contador} cédula(s) de {cedula}')
#
# ### Apenas quando "valorDoSaque" for zero, a operação termina.
# if valorDoSaque == 0:
# break
#
# ### [2] Como elucidado no comentário [1], uma vez que o "else" foi
# ### alcançado, é preciso alterar o valor da cédula para aquele
# ### imediatamente inferior, segundo a definição da Regra de
# ### Negócios. O conjunto de testes a seguir atinge esse propósito.
# ### Seja qual for o valor da cédula da iteração atual, uma das
# ### estruturas de controle vai capturá-lo e alterá-lo para próximo.
# if cedula == 50:
# cedula = 20
# elif cedula == 20:
# cedula = 10
# elif cedula == 10:
# cedula = 1
#
# ### Depois de alterar o valor da cédula, o contaor precisa
# ### ser zerado, caso contrário, ele acumulará o total do
# ### grupo anterior de cédulas ao grupo da iteração atual
# contador = 0
### Solução 3: Desenvolvida pelo colega Emanoel Delfino, entrega uma lógica
### mais elegante em um código enxuto e matematicamente preciso.
### Referência: https://bit.ly/2CKLxVG
print('=' * 35)
print(f'|{"BANCO DO BRASIL":^33}|')
print('=' * 35)
valor = int(input('Qual valor deseja sacar? R$'))
print('=' * 35)
cedulas = [50, 20, 10, 1]
c = 0
while True:
if valor >= cedulas[c]:
cedula = cedulas[c]
totcedulas = valor // cedula
print(f'Total de {totcedulas:2} cédula(s) de R${cedula:.2f}')
valor %= cedula
if valor == 0:
break
c += 1
print('=' * 35)
print('Volte sempre ao BANCO DO BRASIL!\nTenha um bom dia!')
print('=' * 35)
|
def fram_write8(addr: number, val: number):
pins.digital_write_pin(DigitalPin.P16, 0)
pins.spi_write(OPCODE_WRITE)
pins.spi_write(addr >> 8)
pins.spi_write(addr & 0xff)
pins.spi_write(val)
pins.digital_write_pin(DigitalPin.P16, 1)
def on_button_pressed_a():
fram_write8(0, 10)
basic.pause(100)
serial.write_line("FRAM at 0xFF: " + ("" + str(fram_read8(0))))
input.on_button_pressed(Button.A, on_button_pressed_a)
def fram_getDeviceID():
global whoami, wh0, wh1, wh2, wh3
pins.digital_write_pin(DigitalPin.P16, 0)
whoami = pins.spi_write(OPCODE_RDID)
wh0 = pins.spi_write(255)
wh1 = pins.spi_write(255)
wh2 = pins.spi_write(255)
wh3 = pins.spi_write(255)
pins.digital_write_pin(DigitalPin.P16, 1)
serial.write_line("WHOAMI: " + ("" + str(whoami)) + " wh0:" + ("" + str(wh0)) + " wh1:" + ("" + str(wh1)) + " wh2:" + ("" + str(wh2)) + " wh3:" + ("" + str(wh3)))
if wh1 == 127:
serial.write_line("FRAM Connected")
def fram_write_enable():
global wh3
pins.digital_write_pin(DigitalPin.P16, 0)
wh3 = pins.spi_write(OPCODE_WREN)
pins.digital_write_pin(DigitalPin.P16, 1)
serial.write_line("FRAM Writes Enabled")
def fram_read8(addr: number):
global wh3
pins.digital_write_pin(DigitalPin.P16, 0)
pins.spi_write(OPCODE_READ)
pins.spi_write(addr >> 8)
pins.spi_write(addr & 0xff)
wh3 = pins.spi_write(255)
pins.digital_write_pin(DigitalPin.P16, 1)
return wh3
wh3 = 0
wh2 = 0
wh1 = 0
wh0 = 0
whoami = 0
OPCODE_WREN = 0
OPCODE_RDID = 0
OPCODE_READ = 3
OPCODE_WRITE = 2
OPCODE_RDID = 159
OPCODE_WREN = 6
pins.digital_write_pin(DigitalPin.P16, 1)
pins.spi_pins(DigitalPin.P15, DigitalPin.P14, DigitalPin.P13)
pins.spi_format(8, 0)
pins.spi_frequency(1000000)
fram_getDeviceID()
fram_write_enable() |
class HtmlDocument(object):
""" Provides top-level programmatic access to an HTML document hosted by the System.Windows.Forms.WebBrowser control. """
def AttachEventHandler(self,eventName,eventHandler):
"""
AttachEventHandler(self: HtmlDocument,eventName: str,eventHandler: EventHandler)
Adds an event handler for the named HTML DOM event.
eventName: The name of the event you want to handle.
eventHandler: The managed code that handles the event.
"""
pass
def CreateElement(self,elementTag):
"""
CreateElement(self: HtmlDocument,elementTag: str) -> HtmlElement
Creates a new HtmlElement of the specified HTML tag type.
elementTag: The name of the HTML element to create.
Returns: A new element of the specified tag type.
"""
pass
def DetachEventHandler(self,eventName,eventHandler):
"""
DetachEventHandler(self: HtmlDocument,eventName: str,eventHandler: EventHandler)
Removes an event handler from a named event on the HTML DOM.
eventName: The name of the event you want to cease handling.
eventHandler: The managed code that handles the event.
"""
pass
def Equals(self,obj):
"""
Equals(self: HtmlDocument,obj: object) -> bool
obj: The object to compare with the current object.
Returns: true if the specified System.Object is equal to the current System.Object; otherwise,false.
"""
pass
def ExecCommand(self,command,showUI,value):
"""
ExecCommand(self: HtmlDocument,command: str,showUI: bool,value: object)
Executes the specified command against the document.
command: The name of the command to execute.
showUI: Whether or not to show command-specific dialog boxes or message boxes to the user.
value: The value to assign using the command. Not applicable for all commands.
"""
pass
def Focus(self):
"""
Focus(self: HtmlDocument)
Sets user input focus on the current document.
"""
pass
def GetElementById(self,id):
"""
GetElementById(self: HtmlDocument,id: str) -> HtmlElement
Retrieves a single System.Windows.Forms.HtmlElement using the element's ID attribute as a search
key.
id: The ID attribute of the element to retrieve.
Returns: Returns the first object with the same ID attribute as the specified value,or null if the id
cannot be found.
"""
pass
def GetElementFromPoint(self,point):
"""
GetElementFromPoint(self: HtmlDocument,point: Point) -> HtmlElement
Retrieves the HTML element located at the specified client coordinates.
point: The x,y position of the element on the screen,relative to the top-left corner of the document.
Returns: The System.Windows.Forms.HtmlElement at the specified screen location in the document.
"""
pass
def GetElementsByTagName(self,tagName):
"""
GetElementsByTagName(self: HtmlDocument,tagName: str) -> HtmlElementCollection
Retrieve a collection of elements with the specified HTML tag.
tagName: The name of the HTML tag for the System.Windows.Forms.HtmlElement objects you want to retrieve.
Returns: The collection of elements who tag name is equal to the tagName argument.
"""
pass
def GetHashCode(self):
"""
GetHashCode(self: HtmlDocument) -> int
Returns: A hash code for the current System.Object.
"""
pass
def InvokeScript(self,scriptName,args=None):
"""
InvokeScript(self: HtmlDocument,scriptName: str) -> object
Executes an Active Scripting function defined in an HTML page.
scriptName: The name of the script method to invoke.
Returns: The object returned by the Active Scripting call.
InvokeScript(self: HtmlDocument,scriptName: str,args: Array[object]) -> object
Executes an Active Scripting function defined in an HTML page.
scriptName: The name of the script method to invoke.
args: The arguments to pass to the script method.
Returns: The object returned by the Active Scripting call.
"""
pass
def OpenNew(self,replaceInHistory):
"""
OpenNew(self: HtmlDocument,replaceInHistory: bool) -> HtmlDocument
Gets a new System.Windows.Forms.HtmlDocument to use with the
System.Windows.Forms.HtmlDocument.Write(System.String) method.
replaceInHistory: Whether the new window's navigation should replace the previous element in the navigation
history of the DOM.
Returns: A new document for writing.
"""
pass
def Write(self,text):
"""
Write(self: HtmlDocument,text: str)
Writes a new HTML page.
text: The HTML text to write into the document.
"""
pass
def __eq__(self,*args):
""" x.__eq__(y) <==> x==y """
pass
def __ne__(self,*args):
pass
ActiveElement=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Provides the System.Windows.Forms.HtmlElement which currently has user input focus.
Get: ActiveElement(self: HtmlDocument) -> HtmlElement
"""
ActiveLinkColor=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the System.Drawing.Color of a hyperlink when clicked by a user.
Get: ActiveLinkColor(self: HtmlDocument) -> Color
Set: ActiveLinkColor(self: HtmlDocument)=value
"""
All=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets an instance of System.Windows.Forms.HtmlElementCollection,which stores all System.Windows.Forms.HtmlElement objects for the document.
Get: All(self: HtmlDocument) -> HtmlElementCollection
"""
BackColor=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the background color of the HTML document.
Get: BackColor(self: HtmlDocument) -> Color
Set: BackColor(self: HtmlDocument)=value
"""
Body=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the System.Windows.Forms.HtmlElement for the BODY tag.
Get: Body(self: HtmlDocument) -> HtmlElement
"""
Cookie=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the HTTP cookies associated with this document.
Get: Cookie(self: HtmlDocument) -> str
Set: Cookie(self: HtmlDocument)=value
"""
DefaultEncoding=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the encoding used by default for the current document.
Get: DefaultEncoding(self: HtmlDocument) -> str
"""
Domain=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the string describing the domain of this document for security purposes.
Get: Domain(self: HtmlDocument) -> str
Set: Domain(self: HtmlDocument)=value
"""
DomDocument=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the unmanaged interface pointer for this System.Windows.Forms.HtmlDocument.
Get: DomDocument(self: HtmlDocument) -> object
"""
Encoding=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the character encoding for this document.
Get: Encoding(self: HtmlDocument) -> str
Set: Encoding(self: HtmlDocument)=value
"""
Focused=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value indicating whether the document has user input focus.
Get: Focused(self: HtmlDocument) -> bool
"""
ForeColor=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the text color for the document.
Get: ForeColor(self: HtmlDocument) -> Color
Set: ForeColor(self: HtmlDocument)=value
"""
Forms=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a collection of all of the <FORM> elements in the document.
Get: Forms(self: HtmlDocument) -> HtmlElementCollection
"""
Images=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a collection of all image tags in the document.
Get: Images(self: HtmlDocument) -> HtmlElementCollection
"""
LinkColor=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the color of hyperlinks.
Get: LinkColor(self: HtmlDocument) -> Color
Set: LinkColor(self: HtmlDocument)=value
"""
Links=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a list of all the hyperlinks within this HTML document.
Get: Links(self: HtmlDocument) -> HtmlElementCollection
"""
RightToLeft=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the direction of text in the current document.
Get: RightToLeft(self: HtmlDocument) -> bool
Set: RightToLeft(self: HtmlDocument)=value
"""
Title=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the text value of the <TITLE> tag in the current HTML document.
Get: Title(self: HtmlDocument) -> str
Set: Title(self: HtmlDocument)=value
"""
Url=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the URL describing the location of this document.
Get: Url(self: HtmlDocument) -> Uri
"""
VisitedLinkColor=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the Color of links to HTML pages that the user has already visited.
Get: VisitedLinkColor(self: HtmlDocument) -> Color
Set: VisitedLinkColor(self: HtmlDocument)=value
"""
Window=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the System.Windows.Forms.HtmlWindow associated with this document.
Get: Window(self: HtmlDocument) -> HtmlWindow
"""
Click=None
ContextMenuShowing=None
Focusing=None
LosingFocus=None
MouseDown=None
MouseLeave=None
MouseMove=None
MouseOver=None
MouseUp=None
Stop=None
|
class GumoBaseError(RuntimeError):
pass
class ConfigurationError(GumoBaseError):
pass
class ServiceAccountConfigurationError(ConfigurationError):
pass
class ObjectNotoFoundError(GumoBaseError):
pass
|
class CrudBackend(object):
def __init__(self):
pass
def create(self, key, data=None):
return NotImplementedError()
def read(self, key):
return NotImplementedError()
def update(self, key, data):
return NotImplementedError()
def delete(self, key):
return NotImplementedError()
def has_node(self, key):
return NotImplementedError()
|
class CommonInfoAdminMixin:
def get_readonly_fields(self, request, obj=None):
return super().get_readonly_fields(request, obj) + ('created_by', 'lastmodified_by', 'created_at',
'lastmodified_at')
def save_form(self, request, form, change):
if form.instance and request.user:
if not form.instance.id:
form.instance.created_by = request.user
form.instance.lastmodified_by = request.user
return super().save_form(request, form, change)
|
# In Python, the // operator performs
# integer (whole-number) floor division,
# the / operator performs floating-point division,
# and the ‘%’ (or modulo) operator calculates and returns
# the remainder from integer division:
print('5 // 3:', 5//3) # 1
print('5 / 3:', 5/3) # 1.6666666666666667
print('5 % 3:', 5%3) # 5 % 3: 2
# If num_subjects is the number of subjects taking part
# in a study, and num_per_survey is the number that can
# take part in a single survey, write an expression that
# calculates the number of surveys needed to reach everyone once.
|
'''
Problem Statement
Given a linked list with integer data, arrange the elements in such a manner that all nodes with even numbers are placed after odd numbers.
Do not create any new nodes and avoid using any other data structure. The relative order of even and odd elements must not change.
Example:
linked list = 1 2 3 4 5 6
output = 1 3 5 2 4 6
'''
class Node:
def __init__(self, data):
self.data = data
self.next = None
"""
parameter: - head of the given linked list
return: - head of the updated list with all even elements placed after odd elements
"""
#--------------------------------------------------#
'''
The Idea: Traverse the given LinkedList, and build two sub-lists: EVEN and ODD.
For this purpose, we will use four helper references, that denotes starting and
current ending of EVEN and ODD sub-list respectively.
1. For each Node in the LinkedList, check if its data is even/odd.
Change the "next" reference (pointer) of each Node, based on the following rules:
- First even valued Node will be referenced by head of EVEN sub-list
- Subsequent even valued Node will be appended to the tail of EVEN sub-list
- First odd valued Node will be referenced by head of ODD sub-list
- Subsequent odd valued Node will be appended to the tail of ODD sub-list
2. After the loop, append the EVEN sub-list to the tail of ODD sub-list.
'''
#--------------------------------------------------#
def even_after_odd(head):
if head is None:
return head
# Helper references
''' `even_head` and `even_tail` represents the starting and current ending of the "EVEN" sub-list '''
even_head = None
even_tail = None
''' `odd_head` and `odd_tail` represents the starting and current ending of the "ODD" sub-list '''
odd_head = None
odd_tail = None
# <-- "current" represents the current Node.
current = head
# Loop untill there are Nodes available in the LinkedList
while current: # <-- "current" will be updated at the end of each iteration
# <-- "next_node" represents the next Node w.r.t. the current Node
next_node = current.next
if current.data % 2 == 0: # <-- current Node is even
# Below
if even_head is None: # <-- Make the current Node as the starting Node of EVEN sub-list
even_head = current # `even_head` will now point where `current` is already pointing
even_tail = even_head
else: # <-- Append the current even node to the tail of EVEN sub-list
even_tail.next = current
even_tail = even_tail.next
else:
if odd_head is None: # <-- Make the current Node as the starting Node of ODD sub-list
odd_head = current
odd_tail = odd_head
else: # <-- Append the current odd node to the tail of ODD sub-list
odd_tail.next = current
odd_tail = odd_tail.next
current.next = None
current = next_node # <-- Update "head" Node, for next iteration
if odd_head is None: # <-- Special case, when there are no odd Nodes
return even_head
# <-- Append the EVEN sub-list to the tail of ODD sub-list
odd_tail.next = even_head
return odd_head
# helper functions for testing purpose
def create_linked_list(arr):
if len(arr) == 0:
return None
head = Node(arr[0])
tail = head
for data in arr[1:]:
tail.next = Node(data)
tail = tail.next
return head
def print_linked_list(head):
while head:
print(head.data, end=' ')
head = head.next
print()
def test_function(test_case):
head = test_case[0]
solution = test_case[1]
node_tracker = dict({})
node_tracker['nodes'] = list()
temp = head
while temp:
node_tracker['nodes'].append(temp)
temp = temp.next
head = even_after_odd(head)
temp = head
index = 0
try:
while temp:
if temp.data != solution[index] or temp not in node_tracker['nodes']:
print("Fail")
return
temp = temp.next
index += 1
print("Pass")
except Exception as e:
print("Fail")
arr = [1, 2, 3, 4, 5, 6]
solution = [1, 3, 5, 2, 4, 6]
head = create_linked_list(arr)
test_case = [head, solution]
test_function(test_case)
arr = [1, 3, 5, 7]
solution = [1, 3, 5, 7]
head = create_linked_list(arr)
test_case = [head, solution]
test_function(test_case)
arr = [2, 4, 6, 8]
solution = [2, 4, 6, 8]
head = create_linked_list(arr)
test_case = [head, solution]
test_function(test_case)
|
# krotki
k = ('a', 1, 'qqq', {1: 'x', 2: 'y'})
print(k)
print(k[0])
print(k[-1])
print(k[1:-1])
print('------operacje ----------')
# k.append('www')
# k.remove('qq')
print(k.index(1))
# print k.index('b')
print(k.count('b'))
print(len(k))
k[-1][1] = 'zzz'
print(k)
print('a' in k, 'z' in k)
# krotka jako lista
l = list(k)
print(l)
l[0] = 'x'
# i znow jako krotka
k = tuple(l)
print(k)
print(dir(tuple))
x = []
x.append(x)
l = tuple(x)
print(l)
|
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
def _assemble_versioned_impl(ctx):
if not ctx.attr.version_file:
version_file = ctx.actions.declare_file(ctx.attr.name + "__do_not_reference.version")
version = ctx.var.get('version', '0.0.0')
ctx.actions.run_shell(
inputs = [],
outputs = [version_file],
command = "echo {} > {}".format(version, version_file.path)
)
else:
version_file = ctx.file.version_file
# assemble-version.py $output $version $targets
ctx.actions.run(
inputs = ctx.files.targets + [version_file],
outputs = [ctx.outputs.archive],
executable = ctx.executable._assemble_versioned_py,
arguments = [ctx.outputs.archive.path, version_file.path] + [target.path for target in ctx.files.targets],
progress_message = "Versioning assembled distributions to {}".format(version_file.short_path)
)
return DefaultInfo(data_runfiles = ctx.runfiles(files=[ctx.outputs.archive]))
assemble_versioned = rule(
attrs = {
"targets": attr.label_list(
allow_files = [".zip", ".tar.gz"],
doc = "Archives to version and put into output archive"
),
"version_file": attr.label(
allow_single_file = True,
doc = "File containing version string"
),
"_assemble_versioned_py": attr.label(
default = "//common/assemble_versioned:assemble-versioned",
executable = True,
cfg = "host"
)
},
implementation = _assemble_versioned_impl,
outputs = {
"archive": "%{name}.zip"
},
output_to_genfiles = True,
doc = "Version multiple archives for subsequent simultaneous deployment"
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.