content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def isIPv4Address(inputString): # Method 1 if len(inputString.split(".")) != 4: return False for x in inputString.split("."): if not x or not x.isnumeric() or (x.isnumeric() and int(x) > 255): return False return True # # Method 2 # # Same as method 1, but with Python functions # p = s.split('.') # return len(p) == 4 and all(n.isdigit() and 0 <= int(n) < 256 for n in p) # # Method 3 # import ipaddress # try: # ipaddress.ip_address(inputString) # except: # return False # return True # # Method 4 # # Using regex # if re.match('\d+\.\d+\.\d+\.\d+$', inputString): # for i in inputString.split('.'): # if not 0<=int(i)<256: # return False # return True # return False inputString = "172.16.254.1" print(isIPv4Address(inputString)) inputString = "172.316.254.1" print(isIPv4Address(inputString)) inputString = ".254.255.0" print(isIPv4Address(inputString)) inputString = "1.1.1.1a" print(isIPv4Address(inputString)) inputString = "0.254.255.0" print(isIPv4Address(inputString)) inputString = "0..1.0" print(isIPv4Address(inputString)) inputString = "1.1.1.1.1" print(isIPv4Address(inputString)) inputString = "1.256.1.1" print(isIPv4Address(inputString)) inputString = "a0.1.1.1" print(isIPv4Address(inputString)) inputString = "0.1.1.256" print(isIPv4Address(inputString)) inputString = "7283728" print(isIPv4Address(inputString))
def is_i_pv4_address(inputString): if len(inputString.split('.')) != 4: return False for x in inputString.split('.'): if not x or not x.isnumeric() or (x.isnumeric() and int(x) > 255): return False return True input_string = '172.16.254.1' print(is_i_pv4_address(inputString)) input_string = '172.316.254.1' print(is_i_pv4_address(inputString)) input_string = '.254.255.0' print(is_i_pv4_address(inputString)) input_string = '1.1.1.1a' print(is_i_pv4_address(inputString)) input_string = '0.254.255.0' print(is_i_pv4_address(inputString)) input_string = '0..1.0' print(is_i_pv4_address(inputString)) input_string = '1.1.1.1.1' print(is_i_pv4_address(inputString)) input_string = '1.256.1.1' print(is_i_pv4_address(inputString)) input_string = 'a0.1.1.1' print(is_i_pv4_address(inputString)) input_string = '0.1.1.256' print(is_i_pv4_address(inputString)) input_string = '7283728' print(is_i_pv4_address(inputString))
# Insertion Sort # Time Complexity: O(n^2) # Space Complexity: O(1) # Assume first element is sorted at beginning # and then using it to compare with next element # if this element is less than next element # then swap them def insertion_Sort(lst): for i in range(1, len(lst)): # first read from 1 to n-1 print(lst) # print sorting processes cur = lst[i] # current element used to be inserted j = i - 1 # second read to find correct index j for current while j >= 0 and cur < lst[j]: # subsequence lst[j] lst[j + 1] = lst[j] # swap the element and its front j -= 1 # read from back to head lst[j + 1] = cur # current is in the right place return lst
def insertion__sort(lst): for i in range(1, len(lst)): print(lst) cur = lst[i] j = i - 1 while j >= 0 and cur < lst[j]: lst[j + 1] = lst[j] j -= 1 lst[j + 1] = cur return lst
#Assume s is a string of lower case characters. #Write a program that prints the longest substring of s #in which the letters occur in alphabetical order. #For example, if s = 'azcbobobegghakl', then your program should print #Longest substring in alphabetical order is: beggh #In the case of ties, print the first substring. For example, #if s = 'abcbcd', then your program should print #Longest substring in alphabetical order is: abc def F(x,y): if ord(x)<=ord(y): return (True) else: return(False) s="rmfsntggmsuqemcvy" a=0 s1=str() w=bool() while a<(len(s)-1): w=F((s[a]),(s[a+1])) if w==True: s1=s1+s[a] if a==len(s)-2: s1=s1+s[a+1] a+=1 elif w==False: s1=s1+s[a]+" " a+=1 print(s1) s2=str() s3=str() for x in s1: if x!=" ": s2=s2+x if x==" ": if len(s3) < len(s2): s3=s2 s2=str() if len(s3)>=len(s2): print (s3) if len(s2)>len(s3): print (s2)
def f(x, y): if ord(x) <= ord(y): return True else: return False s = 'rmfsntggmsuqemcvy' a = 0 s1 = str() w = bool() while a < len(s) - 1: w = f(s[a], s[a + 1]) if w == True: s1 = s1 + s[a] if a == len(s) - 2: s1 = s1 + s[a + 1] a += 1 elif w == False: s1 = s1 + s[a] + ' ' a += 1 print(s1) s2 = str() s3 = str() for x in s1: if x != ' ': s2 = s2 + x if x == ' ': if len(s3) < len(s2): s3 = s2 s2 = str() if len(s3) >= len(s2): print(s3) if len(s2) > len(s3): print(s2)
def calc_fitness_value(x,y,z): fitnessvalues = [] x = generation_fitness_func(x) y = generation_fitness_func(y) z = generation_fitness_func(z) for p in range(len(x)): fitnessvalues += [(x[p]*x[p])+(y[p]*y[p])+(z[p]*z[p])] return fitnessvalues #fitness_value = x*x + y*y + z*z def generation_fitness_func(generation): fitness_values = [] for gene in range(len(generation)): fitness_values += [countOnes(generation[gene])] return fitness_values def individual_fitness_func(individual): return [countOnes(individual)] def countOnes(gene): count = 0 for x in range(len(gene)): if(gene[x]) == 1: count += 1 return count
def calc_fitness_value(x, y, z): fitnessvalues = [] x = generation_fitness_func(x) y = generation_fitness_func(y) z = generation_fitness_func(z) for p in range(len(x)): fitnessvalues += [x[p] * x[p] + y[p] * y[p] + z[p] * z[p]] return fitnessvalues def generation_fitness_func(generation): fitness_values = [] for gene in range(len(generation)): fitness_values += [count_ones(generation[gene])] return fitness_values def individual_fitness_func(individual): return [count_ones(individual)] def count_ones(gene): count = 0 for x in range(len(gene)): if gene[x] == 1: count += 1 return count
content = b'BM\xbc\x03\x00\x00\x00\x00\x00\x006\x00\x00\x00(\x00\x00\x00\x1e\x00\x00\x00\x0f\x00\x00\x00\x01\x00\x10\x00\x00\x00\x00\x00\x86\x03\x00\x00\x12\x0b\x00\x00\x12\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x7f\xff\x7f\xff\x7f\xdf{\x7fo\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xbf \xbfZ\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f?k\x1f\x14\x1f\x14\xbf=\xff\x7f\xff\x7f\xbf \x1f\x14\xbf=\xff\x7f\xff\x7f\xffE\x1f\x14\x1f\x14\xbfZ\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f?k\x1f\x14\x1f\x14\xbf=\xff\x7f\x1fc\x1f\x14\x1f\x14\x1f\x14\x9fs\xff\x7f\xbf=\x1f\x14\x1f\x14\xbfZ\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\x7fR\x1f\x14\x1f\x14\x1f\x14\x7fo\xff\x7f\xff\x7f\xff\x7f\xff\x7f?k\x1f\x14\x1f\x14\xbf=\xff\x7f\x7fR\x1f\x14\x1f\x14\x1f\x14\xbfZ\xff\x7f\xbf=\x1f\x14\x1f\x14\xbfZ\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\xbfZ\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xdf{\x1f\x14\x1f\x14\x1f-\xff\x7f\x1f-\x1f\x14\x1f\x14\x1f\x14\xffE\xff\x7f\xbf=\x1f\x14\x1f\x14\x1fc\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\x7fo\x1f\x14\x1f\x14\x1f\x14\x1fc\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x9fs\x1f\x14\x1f\x14\xbf \x1f\x14\x1f\x14\xdf{\xbf=\x1f\x14\x1f\x14?k\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\xdf^\x1f\x14\x1f\x14?J\x1f\x14\x1f\x14\xdf^\xbf=\x1f\x14\x1f\x14?k\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14?J\x1f\x14\x1f\x14\x7fo\xbf \x1f\x14\xffE\x7f5\x1f\x14\x1f\x14?k\xff\x7f\x1f\x14\x1f\x14\x1f\x14?J\xffE\xbf \x1f\x14\x1f\x14\xdf^\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x7f5\x1f\x14\x1f\x14\x1f-\x1f\x14\xbf \xff\x7f?J\x1f\x14\xbf \x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\x1fc\x1f\x14\x1f\x14\xbf \xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xbf=\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xdf^\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\xbfZ\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xbf=\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xdf^\xff\x7f\xdf{\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xbf=\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xdf{\xff\x7f\xff\x7f\xffE\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xffE\xdf{\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xbfZ\x1f\x14\x1f\x14\x1f\x14\x7f5\xff\x7f\xff\x7f\xff\x7f\xdf^\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\xff\x7f\x1fc\xbfZ\xbfZ\xbfZ\x1fc\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x7fo\xbfZ\xbfZ\xbfZ\x7fo\xff\x7f\xff\x7f\xff\x7f\xdf{\xbfZ\xbfZ\xbfZ\xbfZ\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x00\x00' print(len(content)) with open('deneme.bmp', 'wb') as f: f.write(content) # 012345678911111111112222222222333 # 01234567890123456789012 # 0123456789ABCDEF11111111111111112 # 0123456789ABCDEF0
content = b'BM\xbc\x03\x00\x00\x00\x00\x00\x006\x00\x00\x00(\x00\x00\x00\x1e\x00\x00\x00\x0f\x00\x00\x00\x01\x00\x10\x00\x00\x00\x00\x00\x86\x03\x00\x00\x12\x0b\x00\x00\x12\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x7f\xff\x7f\xff\x7f\xdf{\x7fo\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xbf \xbfZ\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f?k\x1f\x14\x1f\x14\xbf=\xff\x7f\xff\x7f\xbf \x1f\x14\xbf=\xff\x7f\xff\x7f\xffE\x1f\x14\x1f\x14\xbfZ\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f?k\x1f\x14\x1f\x14\xbf=\xff\x7f\x1fc\x1f\x14\x1f\x14\x1f\x14\x9fs\xff\x7f\xbf=\x1f\x14\x1f\x14\xbfZ\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\x7fR\x1f\x14\x1f\x14\x1f\x14\x7fo\xff\x7f\xff\x7f\xff\x7f\xff\x7f?k\x1f\x14\x1f\x14\xbf=\xff\x7f\x7fR\x1f\x14\x1f\x14\x1f\x14\xbfZ\xff\x7f\xbf=\x1f\x14\x1f\x14\xbfZ\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\xbfZ\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xdf{\x1f\x14\x1f\x14\x1f-\xff\x7f\x1f-\x1f\x14\x1f\x14\x1f\x14\xffE\xff\x7f\xbf=\x1f\x14\x1f\x14\x1fc\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\x7fo\x1f\x14\x1f\x14\x1f\x14\x1fc\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x9fs\x1f\x14\x1f\x14\xbf \x1f\x14\x1f\x14\xdf{\xbf=\x1f\x14\x1f\x14?k\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\xdf^\x1f\x14\x1f\x14?J\x1f\x14\x1f\x14\xdf^\xbf=\x1f\x14\x1f\x14?k\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14?J\x1f\x14\x1f\x14\x7fo\xbf \x1f\x14\xffE\x7f5\x1f\x14\x1f\x14?k\xff\x7f\x1f\x14\x1f\x14\x1f\x14?J\xffE\xbf \x1f\x14\x1f\x14\xdf^\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x7f5\x1f\x14\x1f\x14\x1f-\x1f\x14\xbf \xff\x7f?J\x1f\x14\xbf \x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\x1fc\x1f\x14\x1f\x14\xbf \xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xbf=\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xdf^\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14?k\xff\x7f\xbfZ\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xbf=\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xdf^\xff\x7f\xdf{\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14?J\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xbf=\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xdf{\xff\x7f\xff\x7f\xffE\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xffE\xdf{\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xbfZ\x1f\x14\x1f\x14\x1f\x14\x7f5\xff\x7f\xff\x7f\xff\x7f\xdf^\x1f\x14\x1f\x14\x1f\x14\x1f\x14\xff\x7f\xff\x7f\xff\x7f\x1fc\xbfZ\xbfZ\xbfZ\x1fc\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x7fo\xbfZ\xbfZ\xbfZ\x7fo\xff\x7f\xff\x7f\xff\x7f\xdf{\xbfZ\xbfZ\xbfZ\xbfZ\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\x00\x00' print(len(content)) with open('deneme.bmp', 'wb') as f: f.write(content)
class Baseagent(object): def __init__(self, args): self.args = args self.agent = list() # inference def choose_action_to_env(self, observation, train=True): observation_copy = observation.copy() obs = observation_copy["obs"] agent_id = observation_copy["controlled_player_index"] action_from_algo = self.agent[agent_id].choose_action(obs, train=True) action_to_env = self.action_from_algo_to_env(action_from_algo) return action_to_env # update algo def learn(self): for agent in self.agent: agent.learn() def save(self, save_path, episode): for agent in self.agent: agent.save(save_path, episode) def load(self, file): for agent in self.agent: agent.load(file)
class Baseagent(object): def __init__(self, args): self.args = args self.agent = list() def choose_action_to_env(self, observation, train=True): observation_copy = observation.copy() obs = observation_copy['obs'] agent_id = observation_copy['controlled_player_index'] action_from_algo = self.agent[agent_id].choose_action(obs, train=True) action_to_env = self.action_from_algo_to_env(action_from_algo) return action_to_env def learn(self): for agent in self.agent: agent.learn() def save(self, save_path, episode): for agent in self.agent: agent.save(save_path, episode) def load(self, file): for agent in self.agent: agent.load(file)
# Knutha Morrisa Pratt (KMP) for string matching # Complexity: O(n) # Reference used: http://code.activestate.com/recipes/117214/ def kmp(full_string, pattern): ''' It takes two arguments, the main string and the patterb which is to be searched and returns the position(s) or the starting indexes of the pattern in the main string (if exists) agrs 'full-string' is the text from where pappern has to be searched 'pattern' is the string has to be searched >>> from pydsa import kmp >>> kmp('ababbabbaab', 'abba') 2 5 ''' # allow indexing into pattern and protect against change during yield pattern = list(pattern) # build table of shift amounts no_of_shifts = [1] * (len(pattern) + 1) shift = 1 # initial shift for posi in range(len(pattern)): while (shift <= posi and pattern[posi] != pattern[posi-shift]): shift = shift + no_of_shifts[posi-shift] no_of_shifts[posi+1] = shift # do the actual search start_at = 0 pattern_match = 0 for p in full_string: while pattern_match == len(pattern) or pattern_match >= 0 and pattern[pattern_match] != p: start_at = start_at + no_of_shifts[pattern_match] pattern_match = pattern_match - no_of_shifts[pattern_match] pattern_match = pattern_match + 1 if pattern_match == len(pattern): print (start_at)
def kmp(full_string, pattern): """ It takes two arguments, the main string and the patterb which is to be searched and returns the position(s) or the starting indexes of the pattern in the main string (if exists) agrs 'full-string' is the text from where pappern has to be searched 'pattern' is the string has to be searched >>> from pydsa import kmp >>> kmp('ababbabbaab', 'abba') 2 5 """ pattern = list(pattern) no_of_shifts = [1] * (len(pattern) + 1) shift = 1 for posi in range(len(pattern)): while shift <= posi and pattern[posi] != pattern[posi - shift]: shift = shift + no_of_shifts[posi - shift] no_of_shifts[posi + 1] = shift start_at = 0 pattern_match = 0 for p in full_string: while pattern_match == len(pattern) or (pattern_match >= 0 and pattern[pattern_match] != p): start_at = start_at + no_of_shifts[pattern_match] pattern_match = pattern_match - no_of_shifts[pattern_match] pattern_match = pattern_match + 1 if pattern_match == len(pattern): print(start_at)
# Description # Keep improving your bot by developing new skills for it. # We suggest a simple guessing game that will predict the age of a user. # It's based on a simple math trick. First, take a look at this formula: # `age = (remainder3 * 70 + remainder5 * 21 + remainder7 * 15) % 105` # The `numbersremainder3`, `remainder5` and `remainder7` # are the remainders of division by 3, 5 and 7 respectively. # It turns out that for each number ranging from 0 to 104 # the calculation will result in the number itself. # This perfectly fits the ordinary age range, doesn't it? # Ask a user for the remainders and use them to guess the age! # Objective # At this stage, you will introduce yourself to the bot. # It will greet you by your name and then try to guess your age using arithmetic operations. # Your program should print the following lines: # `Hello! My name is Aid.` # `I was created in 2020.` # `Please, remind me your name.` # `What a great name you have, Max!` # `Let me guess your age.` # `Enter remainders of dividing your age by 3, 5 and 7.` # `Your age is {your_age}; that's a good time to start programming!` # Read three numbers from the standard input. # Assume that all the numbers will be given on separate lines. # Instead of {your_age}, the bot will print the age determined according to the special formula discussed above. # Example # The greater-than symbol followed by space (> ) represents the user input. # Notice that it's not the part of the input. # Example 1: a dialogue with the bot # `Hello! My name is Aid.` # `I was created in 2020.` # `Please, remind me your name.` # > Max # `What a great name you have, Max!` # `Let me guess your age.` # `Enter remainders of dividing your age by 3, 5 and 7.` # > 1 # > 2 # > 1 # `Your age is 22; that's a good time to start programming!` # Use the provided template to simplify your work. You can change the text, but not the number of printed lines. print('Hello! My name is Aid.') print('I was created in 2020.') print('Please, remind me your name.') name = input() print(f'What a great name you have, {name}!') print('Let me guess your age.') print('Enter remainders of dividing your age by 3, 5 and 7.') remainder3 = int(input()) remainder5 = int(input()) remainder7 = int(input()) age = (remainder3 * 70 + remainder5 * 21 + remainder7 * 15) % 105 print(f"Your age is {age}; that's a good time to start programming!")
print('Hello! My name is Aid.') print('I was created in 2020.') print('Please, remind me your name.') name = input() print(f'What a great name you have, {name}!') print('Let me guess your age.') print('Enter remainders of dividing your age by 3, 5 and 7.') remainder3 = int(input()) remainder5 = int(input()) remainder7 = int(input()) age = (remainder3 * 70 + remainder5 * 21 + remainder7 * 15) % 105 print(f"Your age is {age}; that's a good time to start programming!")
REQUEST_CACHE_LIMIT = 200*1024*1024 QUERY_CACHE_LIMIT = 200*1024*1024 class index: def __init__(self, name, request_cache, query_cache): self.name = name self.request_cache = request_cache self.query_cache = query_cache
request_cache_limit = 200 * 1024 * 1024 query_cache_limit = 200 * 1024 * 1024 class Index: def __init__(self, name, request_cache, query_cache): self.name = name self.request_cache = request_cache self.query_cache = query_cache
PCLASS = ''' class Parser(object): class ScanError(Exception): pass class ParseError(Exception): pass def parsefail(self, expected, found, val=None): raise Parser.ParseError("Parse Error, line {}: Expected token {}, but found token {}:{}".format(self.line, expected, found, val)) def scanfail(self): raise Parser.ScanError("Lexer Error, line {}: No matching token found. Remaining input: {} ....".format(self.line, self.remaining[:50])) def __init__(self): lex = [('whitespace', '\s+'),] + [ x for x in LEXMAP ] rules = [ (regex, self.makeHandler(tokenName)) for tokenName, regex in lex ] self.scanner = re.Scanner(rules) self.line = 1 self.log = False def parse(self, s): self.toks, self.remaining = self.scanner.scan(s) self.trim() return self._parseRoot() def makeHandler(self, token): return lambda scanner, string : (token, string) def trim(self): if self.toks: token, match = self.toks[0] if token == "whitespace": self.line += match.count('\\n') self.toks.pop(0) self.trim() def next(self): if self.toks: token,match = self.toks[0] return token elif self.remaining: self.scanfail() def consume(self, tok): if not self.toks and self.remaining: self.scanfail() token,match = self.toks.pop(0) if self.log: print("consuming {}:{}".format(tok, match)) if tok != token: self.parsefail(tok, token, match) self.trim() return match def pop(self): return self.consume(self.next()) ''' GOBJ=''' import re, sys class GrammarObj(object): def __str__(self): return self.name def __repr__(self): s = self.name + '[' for k,v in self.attrs: s += \"{}:{}, \".format(k,v) s += ']' return s def __init__(self, *args): i = 0 for k,v in args: if k == \"_\": setattr(self, \"_anon{{}}\".format(i), v) i += 1 else: setattr(self, k, v) self.attrs = args ''' MAIN=''' def main(): with open(sys.argv[1]) as f: s = f.read() p = Parser() ast = p.parse(s) print(repr(ast)) if __name__ == "__main__": main() '''
pclass = '\nclass Parser(object):\n\n class ScanError(Exception):\n pass\n class ParseError(Exception):\n pass\n def parsefail(self, expected, found, val=None):\n raise Parser.ParseError("Parse Error, line {}: Expected token {}, but found token {}:{}".format(self.line, expected, found, val))\n def scanfail(self):\n raise Parser.ScanError("Lexer Error, line {}: No matching token found. Remaining input: {} ....".format(self.line, self.remaining[:50]))\n\n\n def __init__(self):\n lex = [(\'whitespace\', \'\\s+\'),] + [ x for x in LEXMAP ]\n rules = [ (regex, self.makeHandler(tokenName)) for tokenName, regex in lex ]\n self.scanner = re.Scanner(rules)\n self.line = 1\n self.log = False\n\n def parse(self, s):\n self.toks, self.remaining = self.scanner.scan(s)\n self.trim()\n return self._parseRoot()\n\n def makeHandler(self, token):\n return lambda scanner, string : (token, string)\n\n def trim(self):\n if self.toks:\n token, match = self.toks[0]\n if token == "whitespace":\n self.line += match.count(\'\\n\')\n self.toks.pop(0)\n self.trim()\n\n def next(self):\n if self.toks:\n token,match = self.toks[0]\n return token\n elif self.remaining:\n self.scanfail()\n\n def consume(self, tok):\n if not self.toks and self.remaining:\n self.scanfail()\n token,match = self.toks.pop(0)\n if self.log:\n print("consuming {}:{}".format(tok, match))\n if tok != token:\n self.parsefail(tok, token, match)\n self.trim()\n return match\n\n def pop(self):\n return self.consume(self.next())\n\n' gobj = '\nimport re, sys\n\nclass GrammarObj(object):\n def __str__(self):\n return self.name\n def __repr__(self):\n s = self.name + \'[\'\n for k,v in self.attrs:\n s += "{}:{}, ".format(k,v)\n s += \']\'\n return s\n def __init__(self, *args):\n i = 0\n for k,v in args:\n if k == "_":\n setattr(self, "_anon{{}}".format(i), v)\n i += 1\n else:\n setattr(self, k, v)\n self.attrs = args\n\n' main = '\ndef main():\n with open(sys.argv[1]) as f:\n s = f.read()\n p = Parser()\n ast = p.parse(s)\n print(repr(ast))\n\nif __name__ == "__main__":\n main()\n'
x = int(input()) y = int(input()) numeros = [x,y] numeros_ = sorted(numeros) soma = 0 for a in range(numeros_[0]+1,numeros_[1]): if a %2 != 0: soma += a print(soma)
x = int(input()) y = int(input()) numeros = [x, y] numeros_ = sorted(numeros) soma = 0 for a in range(numeros_[0] + 1, numeros_[1]): if a % 2 != 0: soma += a print(soma)
class couponObject(object): def __init__( self, player_unique_id, code = None, start_at = None, ends_at = None, entitled_collection_ids = {}, entitled_product_ids = {}, once_per_customer = None, prerequisite_quantity_range = None, prerequisite_shipping_price_range = None, prerequisite_subtotal_range = None, prerequisite_collection_ids = {}, prerequisite_product_ids = {}, usage_limit = None, Value = None, value_type = None, cap = None ): self.player_unique_id = player_unique_id self.code = code self.start_at = start_at self.ends_at = ends_at self.entitled_collection_ids = entitled_collection_ids self.entitled_product_ids = entitled_product_ids self.once_per_customer = once_per_customer self.prerequisite_quantity_range = prerequisite_quantity_range self.prerequisite_shipping_price_range = prerequisite_shipping_price_range self.prerequisite_subtotal_range = prerequisite_subtotal_range self.prerequisite_collection_ids = prerequisite_collection_ids self.prerequisite_product_ids = prerequisite_product_ids self.usage_limit = usage_limit self.Value = Value self.value_type = value_type self.cap = cap def set_code(self, code): self.code = code def set_start_time(self, start_time): self.start_at = start_time def set_end_time(self, end_time): self.ends_at = end_time def set_usage_limit(self, usage_limit): self.usage_limit = usage_limit def set_value(self, value): self.value = value def set_value_type(self, value_type): self.value_type = value_type def set_cap(self, cap): self.cap = cap
class Couponobject(object): def __init__(self, player_unique_id, code=None, start_at=None, ends_at=None, entitled_collection_ids={}, entitled_product_ids={}, once_per_customer=None, prerequisite_quantity_range=None, prerequisite_shipping_price_range=None, prerequisite_subtotal_range=None, prerequisite_collection_ids={}, prerequisite_product_ids={}, usage_limit=None, Value=None, value_type=None, cap=None): self.player_unique_id = player_unique_id self.code = code self.start_at = start_at self.ends_at = ends_at self.entitled_collection_ids = entitled_collection_ids self.entitled_product_ids = entitled_product_ids self.once_per_customer = once_per_customer self.prerequisite_quantity_range = prerequisite_quantity_range self.prerequisite_shipping_price_range = prerequisite_shipping_price_range self.prerequisite_subtotal_range = prerequisite_subtotal_range self.prerequisite_collection_ids = prerequisite_collection_ids self.prerequisite_product_ids = prerequisite_product_ids self.usage_limit = usage_limit self.Value = Value self.value_type = value_type self.cap = cap def set_code(self, code): self.code = code def set_start_time(self, start_time): self.start_at = start_time def set_end_time(self, end_time): self.ends_at = end_time def set_usage_limit(self, usage_limit): self.usage_limit = usage_limit def set_value(self, value): self.value = value def set_value_type(self, value_type): self.value_type = value_type def set_cap(self, cap): self.cap = cap
{ 'targets': [ { 'target_name': 'vivaldi', 'type': 'none', 'dependencies': [ 'chromium/chrome/chrome.gyp:chrome', ], 'conditions': [ ['OS=="win"', { # Allow running and debugging vivaldi from the top directory of the MSVS solution view 'product_name':'vivaldi.exe', 'dependencies': [ 'chromium/third_party/crashpad/crashpad/handler/handler.gyp:crashpad_handler', ], }] ] }, ], }
{'targets': [{'target_name': 'vivaldi', 'type': 'none', 'dependencies': ['chromium/chrome/chrome.gyp:chrome'], 'conditions': [['OS=="win"', {'product_name': 'vivaldi.exe', 'dependencies': ['chromium/third_party/crashpad/crashpad/handler/handler.gyp:crashpad_handler']}]]}]}
# 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 pseudoPalindromicPaths (self, root: TreeNode) -> int: ''' T: O(n) and S: O(n) ''' def isPalindrome(path): d = {} for digit in path: d[digit] = d.get(digit, 0) + 1 evenCount = 0 for digit in d: evenCount += d[digit] % 2 if evenCount > 1: return False return True panlindromPathCount = 0 stack = [(root, [root.val])] while stack: node, path = stack.pop() if not node.left and not node.right: if isPalindrome(path): panlindromPathCount += 1 if node.left: stack.append((node.left, path + [node.left.val])) if node.right: stack.append((node.right, path + [node.right.val])) return panlindromPathCount
class Solution: def pseudo_palindromic_paths(self, root: TreeNode) -> int: """ T: O(n) and S: O(n) """ def is_palindrome(path): d = {} for digit in path: d[digit] = d.get(digit, 0) + 1 even_count = 0 for digit in d: even_count += d[digit] % 2 if evenCount > 1: return False return True panlindrom_path_count = 0 stack = [(root, [root.val])] while stack: (node, path) = stack.pop() if not node.left and (not node.right): if is_palindrome(path): panlindrom_path_count += 1 if node.left: stack.append((node.left, path + [node.left.val])) if node.right: stack.append((node.right, path + [node.right.val])) return panlindromPathCount
# # PySNMP MIB module RADLAN-RADIUSSRV (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-RADIUSSRV # Produced by pysmi-0.3.4 at Wed May 1 14:48:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint") InetAddressIPv6, InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressIPv6", "InetAddressType", "InetAddress") VlanId, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId") rnd, rlAAAEap, rlRadius = mibBuilder.importSymbols("RADLAN-MIB", "rnd", "rlAAAEap", "rlRadius") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Bits, ModuleIdentity, Integer32, TimeTicks, iso, NotificationType, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, ObjectIdentity, IpAddress, MibIdentifier, Counter64, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "ModuleIdentity", "Integer32", "TimeTicks", "iso", "NotificationType", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "ObjectIdentity", "IpAddress", "MibIdentifier", "Counter64", "Counter32") TimeStamp, RowStatus, DateAndTime, TruthValue, TextualConvention, DisplayString, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "RowStatus", "DateAndTime", "TruthValue", "TextualConvention", "DisplayString", "MacAddress") rlRadiusServ = ModuleIdentity((1, 3, 6, 1, 4, 1, 89, 226)) rlRadiusServ.setRevisions(('2015-06-21 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: rlRadiusServ.setRevisionsDescriptions(('Added this MODULE-IDENTITY clause.',)) if mibBuilder.loadTexts: rlRadiusServ.setLastUpdated('201506210000Z') if mibBuilder.loadTexts: rlRadiusServ.setOrganization('Radlan Computer Communications Ltd.') if mibBuilder.loadTexts: rlRadiusServ.setContactInfo('radlan.com') if mibBuilder.loadTexts: rlRadiusServ.setDescription('The private MIB module definition for Authentication, Authorization and Accounting in Radlan devices.') rlRadiusServEnable = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServEnable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServEnable.setDescription('Specifies whether Radius Server enabled on the switch. ') rlRadiusServAcctPort = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(1813)).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServAcctPort.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctPort.setDescription('To define the accounting UDP port used for accounting requests.') rlRadiusServAuthPort = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(1812)).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServAuthPort.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAuthPort.setDescription('To define the authentication UDP port used for authentication requests.') rlRadiusServDefaultKey = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServDefaultKey.setStatus('current') if mibBuilder.loadTexts: rlRadiusServDefaultKey.setDescription('Default Secret key to be shared with this all Radius Clients server.') rlRadiusServDefaultKeyMD5 = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServDefaultKeyMD5.setStatus('current') if mibBuilder.loadTexts: rlRadiusServDefaultKeyMD5.setDescription('Default Secret key MD5.') rlRadiusServTrapAcct = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServTrapAcct.setStatus('current') if mibBuilder.loadTexts: rlRadiusServTrapAcct.setDescription('To enable sending accounting traps.') rlRadiusServTrapAuthFailure = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServTrapAuthFailure.setStatus('current') if mibBuilder.loadTexts: rlRadiusServTrapAuthFailure.setDescription('To enable sending traps when an authentication failed and Access-Reject is sent.') rlRadiusServTrapAuthSuccess = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServTrapAuthSuccess.setStatus('current') if mibBuilder.loadTexts: rlRadiusServTrapAuthSuccess.setDescription('To enable sending traps when a user is successfully authorized.') rlRadiusServGroupTable = MibTable((1, 3, 6, 1, 4, 1, 89, 226, 9), ) if mibBuilder.loadTexts: rlRadiusServGroupTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupTable.setDescription('The (conceptual) table listing the RADIUS server group entry.') rlRadiusServGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 226, 9, 1), ).setIndexNames((0, "RADLAN-RADIUSSRV", "rlRadiusServGroupName")) if mibBuilder.loadTexts: rlRadiusServGroupEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupEntry.setDescription('The (conceptual) table listing the RADIUS server group entry.') rlRadiusServGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServGroupName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupName.setDescription('To define Radius Server Group Name') rlRadiusServGroupVLAN = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 4094), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServGroupVLAN.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupVLAN.setDescription('To define Radius Assigned VLAN') rlRadiusServGroupVLANName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServGroupVLANName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupVLANName.setDescription('To define Radius Assigned VLAN name') rlRadiusServGroupACL1 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServGroupACL1.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupACL1.setDescription('To define first Radius Assigned ACL') rlRadiusServGroupACL2 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServGroupACL2.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupACL2.setDescription('To define second Radius Assigned ACL') rlRadiusServGroupPrvLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServGroupPrvLevel.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupPrvLevel.setDescription('To define the user privilege level') rlRadiusServGroupTimeRangeName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServGroupTimeRangeName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupTimeRangeName.setDescription('To define the time user can connect') rlRadiusServGroupStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 8), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServGroupStatus.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupStatus.setDescription('') rlRadiusServUserTable = MibTable((1, 3, 6, 1, 4, 1, 89, 226, 10), ) if mibBuilder.loadTexts: rlRadiusServUserTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserTable.setDescription('The (conceptual) table listing the RADIUS server user entry.') rlRadiusServUserEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 226, 10, 1), ).setIndexNames((0, "RADLAN-RADIUSSRV", "rlRadiusServUserName")) if mibBuilder.loadTexts: rlRadiusServUserEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserEntry.setDescription('The (conceptual) table listing the RADIUS server User entry.') rlRadiusServUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServUserName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserName.setDescription('To define Radius Server User Name') rlRadiusServUserPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServUserPassword.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserPassword.setDescription('Plain text Radius Server User Password') rlRadiusServUserPasswordMD5 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServUserPasswordMD5.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserPasswordMD5.setDescription('The MD5 of the rlRadiusServUserPassword') rlRadiusServUserGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServUserGroupName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserGroupName.setDescription('Assigned Radius Server Group Name to specific user') rlRadiusServUserStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 5), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServUserStatus.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserStatus.setDescription('') rlRadiusServClientInetTable = MibTable((1, 3, 6, 1, 4, 1, 89, 226, 11), ) if mibBuilder.loadTexts: rlRadiusServClientInetTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetTable.setDescription('The (conceptual) table listing the RADIUS server group entry.') rlRadiusServClientInetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 226, 11, 1), ).setIndexNames((0, "RADLAN-RADIUSSRV", "rlRadiusServClientInetAddressType"), (0, "RADLAN-RADIUSSRV", "rlRadiusServClientInetAddress")) if mibBuilder.loadTexts: rlRadiusServClientInetEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetEntry.setDescription('The (conceptual) table listing the RADIUS Client entry.') rlRadiusServClientInetAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 1), InetAddressType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClientInetAddressType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetAddressType.setDescription('The Inet address type of RADIUS client reffered to in this table entry .IPv6Z type is not supported.') rlRadiusServClientInetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 2), InetAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClientInetAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetAddress.setDescription('The Inet address of the RADIUS client referred to in this table entry.') rlRadiusServClientInetKey = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClientInetKey.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetKey.setDescription('Secret key to be shared with this RADIUS client.') rlRadiusServClientInetKeyMD5 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServClientInetKeyMD5.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetKeyMD5.setDescription('The MD5 of the rlRadiusServClientInetKey') rlRadiusServClientInetStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 5), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClientInetStatus.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetStatus.setDescription('') rlRadiusServClearAccounting = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 12), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClearAccounting.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearAccounting.setDescription('etting this object to TRUE clears the Radius Accounting cache.') rlRadiusServClearRejectedUsers = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 13), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClearRejectedUsers.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearRejectedUsers.setDescription('etting this object to TRUE clears the Radius Rejected Users cache.') rlRadiusServClearStatistics = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 14), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClearStatistics.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearStatistics.setDescription('Setting this object to TRUE clears the Radius server counters.') rlRadiusServClearUsersOfGivenGroup = MibScalar((1, 3, 6, 1, 4, 1, 89, 226, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClearUsersOfGivenGroup.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearUsersOfGivenGroup.setDescription('Clears users of specified Group. 0 string signes to clear all users.') rlRadiusServClearClientStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 89, 226, 16), ) if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsTable.setDescription('Action MIB to clear radius server statistics per client.') rlRadiusServClearClientStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 226, 16, 1), ).setIndexNames((0, "RADLAN-RADIUSSRV", "rlRadiusServClearClientStatisticsIndex")) if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsEntry.setDescription('The row definition for this table.') rlRadiusServClearClientStatisticsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 16, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsIndex.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsIndex.setDescription('Index in the table. Already 1.') rlRadiusServClearClientStatisticsInetAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 16, 1, 2), InetAddressType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsInetAddressType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsInetAddressType.setDescription('Clear statistics Inet address type parameter.') rlRadiusServClearClientStatisticsInetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 16, 1, 3), InetAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsInetAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsInetAddress.setDescription('Clear statistics Inet address parameter.') class RlRadiusServUserType(TextualConvention, Integer32): description = 'Radius Server user service type' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2)) namedValues = NamedValues(("none", 0), ("x", 1), ("login", 2)) class RlRadiusServRejectedEventType(TextualConvention, Integer32): description = 'Rejected Users Event Type' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 2, 3, 4)) namedValues = NamedValues(("invalid", 0), ("reboot", 2), ("dateTimeChanged", 3), ("rejected", 4)) class RlRadiusServRejectedReasonType(TextualConvention, Integer32): description = 'Authentication service rejects reason' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("noError", 0), ("unknownUser", 1), ("illegalPassword", 2), ("notAllowedTime", 3)) rlRadiusServRejectedTable = MibTable((1, 3, 6, 1, 4, 1, 89, 226, 17), ) if mibBuilder.loadTexts: rlRadiusServRejectedTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedTable.setDescription('The (conceptual) table listing the RADIUS server rejected user entry.') rlRadiusServRejectedEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 226, 17, 1), ).setIndexNames((0, "RADLAN-RADIUSSRV", "rlRadiusServRejectedIndex")) if mibBuilder.loadTexts: rlRadiusServRejectedEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedEntry.setDescription('The (conceptual) table listing the RADIUS Rejected user entry.') rlRadiusServRejectedIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))) if mibBuilder.loadTexts: rlRadiusServRejectedIndex.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedIndex.setDescription('Rejected User Index') rlRadiusServRejectedUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedUserName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedUserName.setDescription('Rejected User Name. In case of dateTimeChanged and reboot event contains 0.') rlRadiusServRejectedUserType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 3), RlRadiusServUserType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedUserType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedUserType.setDescription('Contains type of service.') rlRadiusServRejectedEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 4), RlRadiusServRejectedEventType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedEvent.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedEvent.setDescription('Contains type of event.') rlRadiusServRejectedDateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedDateTime.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedDateTime.setDescription('Date of rejected event.') rlRadiusServRejectedUpdatedDateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedUpdatedDateTime.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedUpdatedDateTime.setDescription('In case of dateTimeChanged event contains New assigned Date and Time. Otherwise contains 0.') rlRadiusServRejectedNASInetAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 7), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedNASInetAddressType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedNASInetAddressType.setDescription('Rejected user NAS Inet address type. In case of dateTimeChange and reboot event contains 0.') rlRadiusServRejectedNASInetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 8), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedNASInetAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedNASInetAddress.setDescription('Rejected user NAS Inet address. In case of dateTimeChanged and reboot event contains 0.') rlRadiusServRejectedNASPort = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedNASPort.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedNASPort.setDescription('Rejected user NAS port. In case of dateTimeChanged and reboot event contains 0.') rlRadiusServRejectedUserAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedUserAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedUserAddress.setDescription('Rejected user Inet address type. In case of 1x user contains mac address string, in case of login contains inet address.') rlRadiusServRejectedReason = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 11), RlRadiusServRejectedReasonType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServRejectedReason.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedReason.setDescription('Rejected user reason.') class RlRadiusServAcctLogUserAuthType(TextualConvention, Integer32): description = 'User Authentication Type' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("none", 0), ("radius", 1), ("local", 2), ("remote", 3)) class RlRadiusServAcctLogEventType(TextualConvention, Integer32): description = 'Accounting Event Type' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 2, 3, 4, 5)) namedValues = NamedValues(("invalid", 0), ("reboot", 2), ("dateTimeChanged", 3), ("start", 4), ("stop", 5)) class RlRadiusServAcctLogTerminationReasonType(TextualConvention, Integer32): description = 'Accounting User Termination reason' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)) namedValues = NamedValues(("noError", 0), ("userRequest", 1), ("lostCarrier", 2), ("lostService", 3), ("idleTimeout", 4), ("sessionTimeout", 5), ("adminReset", 6), ("adminReboot", 7), ("portError", 8), ("nasError", 9), ("nasRequest", 10), ("nasReboot", 11), ("portUnneeded", 12), ("portPreempted", 13), ("portSuspended", 14), ("serviceUnavailable", 15), ("callback", 16), ("userError", 17), ("hostRequest", 18)) rlRadiusServAcctLogTable = MibTable((1, 3, 6, 1, 4, 1, 89, 226, 18), ) if mibBuilder.loadTexts: rlRadiusServAcctLogTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogTable.setDescription('The (conceptual) table listing the RADIUS server accounting log entry.') rlRadiusServAcctLogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 226, 18, 1), ).setIndexNames((0, "RADLAN-RADIUSSRV", "rlRadiusServAcctLogIndex")) if mibBuilder.loadTexts: rlRadiusServAcctLogEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogEntry.setDescription('The (conceptual) table listing the RADIUS server accounting log entry.') rlRadiusServAcctLogIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))) if mibBuilder.loadTexts: rlRadiusServAcctLogIndex.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogIndex.setDescription('Accounting Log Index') rlRadiusServAcctLogUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogUserName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogUserName.setDescription('Accounting Log User Name. In case of dateTimeChanged and reboot event contains 0.') rlRadiusServAcctLogUserAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 3), RlRadiusServAcctLogUserAuthType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogUserAuth.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogUserAuth.setDescription('Contains type of authenticator.') rlRadiusServAcctLogEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 4), RlRadiusServAcctLogEventType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogEvent.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogEvent.setDescription('Contains type of event.') rlRadiusServAcctLogDateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogDateTime.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogDateTime.setDescription('Date of accounting event.') rlRadiusServAcctLogUpdatedDateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogUpdatedDateTime.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogUpdatedDateTime.setDescription('In case of dateTimeChanged event contains New assigned Date and Time. Otherwise contains 0.') rlRadiusServAcctLogSessionDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogSessionDuration.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogSessionDuration.setDescription('Contains duration of user session in seconds. In case of dateTimeChanged and reboot event contains 0.') rlRadiusServAcctLogNASInetAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 8), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogNASInetAddressType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogNASInetAddressType.setDescription('Accounting log user NAS Inet address type. In case of dateTimeChanged and reboot event contains 0.') rlRadiusServAcctLogNASInetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 9), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogNASInetAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogNASInetAddress.setDescription('Accounting log user NAS Inet address. In case of dateTimeChanged and reboot event contains 0.') rlRadiusServAcctLogNASPort = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogNASPort.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogNASPort.setDescription('Accounting log user NAS port. In case of dateTimeChanged and reboot event contains 0.') rlRadiusServAcctLogUserAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogUserAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogUserAddress.setDescription('Accounting log user address. In case of 1x user contains mac address string, in case of login contains inet address.') rlRadiusServAcctLogTerminationReason = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 12), RlRadiusServAcctLogTerminationReasonType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlRadiusServAcctLogTerminationReason.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogTerminationReason.setDescription('User Session termination reason.') mibBuilder.exportSymbols("RADLAN-RADIUSSRV", rlRadiusServAcctLogTable=rlRadiusServAcctLogTable, RlRadiusServUserType=RlRadiusServUserType, rlRadiusServGroupACL2=rlRadiusServGroupACL2, rlRadiusServDefaultKeyMD5=rlRadiusServDefaultKeyMD5, rlRadiusServGroupStatus=rlRadiusServGroupStatus, rlRadiusServRejectedNASInetAddressType=rlRadiusServRejectedNASInetAddressType, rlRadiusServAcctLogDateTime=rlRadiusServAcctLogDateTime, rlRadiusServGroupName=rlRadiusServGroupName, rlRadiusServClientInetTable=rlRadiusServClientInetTable, rlRadiusServGroupVLAN=rlRadiusServGroupVLAN, rlRadiusServRejectedUserAddress=rlRadiusServRejectedUserAddress, rlRadiusServAcctLogUserName=rlRadiusServAcctLogUserName, rlRadiusServAcctLogEntry=rlRadiusServAcctLogEntry, rlRadiusServTrapAuthSuccess=rlRadiusServTrapAuthSuccess, rlRadiusServClearClientStatisticsEntry=rlRadiusServClearClientStatisticsEntry, rlRadiusServClearClientStatisticsInetAddress=rlRadiusServClearClientStatisticsInetAddress, rlRadiusServAcctLogUserAddress=rlRadiusServAcctLogUserAddress, rlRadiusServAcctLogEvent=rlRadiusServAcctLogEvent, RlRadiusServRejectedEventType=RlRadiusServRejectedEventType, rlRadiusServUserPassword=rlRadiusServUserPassword, rlRadiusServGroupTimeRangeName=rlRadiusServGroupTimeRangeName, rlRadiusServGroupACL1=rlRadiusServGroupACL1, rlRadiusServUserEntry=rlRadiusServUserEntry, rlRadiusServDefaultKey=rlRadiusServDefaultKey, rlRadiusServClientInetKey=rlRadiusServClientInetKey, rlRadiusServRejectedUserName=rlRadiusServRejectedUserName, rlRadiusServUserName=rlRadiusServUserName, rlRadiusServUserStatus=rlRadiusServUserStatus, rlRadiusServGroupVLANName=rlRadiusServGroupVLANName, rlRadiusServEnable=rlRadiusServEnable, rlRadiusServAcctLogIndex=rlRadiusServAcctLogIndex, rlRadiusServGroupEntry=rlRadiusServGroupEntry, rlRadiusServRejectedDateTime=rlRadiusServRejectedDateTime, rlRadiusServAcctLogUserAuth=rlRadiusServAcctLogUserAuth, rlRadiusServClearUsersOfGivenGroup=rlRadiusServClearUsersOfGivenGroup, rlRadiusServ=rlRadiusServ, rlRadiusServRejectedReason=rlRadiusServRejectedReason, rlRadiusServUserPasswordMD5=rlRadiusServUserPasswordMD5, rlRadiusServClientInetEntry=rlRadiusServClientInetEntry, rlRadiusServRejectedNASInetAddress=rlRadiusServRejectedNASInetAddress, rlRadiusServAcctLogNASInetAddress=rlRadiusServAcctLogNASInetAddress, rlRadiusServAuthPort=rlRadiusServAuthPort, rlRadiusServAcctLogTerminationReason=rlRadiusServAcctLogTerminationReason, rlRadiusServAcctPort=rlRadiusServAcctPort, rlRadiusServClearClientStatisticsIndex=rlRadiusServClearClientStatisticsIndex, rlRadiusServGroupPrvLevel=rlRadiusServGroupPrvLevel, rlRadiusServRejectedEvent=rlRadiusServRejectedEvent, rlRadiusServTrapAuthFailure=rlRadiusServTrapAuthFailure, rlRadiusServClearRejectedUsers=rlRadiusServClearRejectedUsers, rlRadiusServClearStatistics=rlRadiusServClearStatistics, rlRadiusServRejectedUpdatedDateTime=rlRadiusServRejectedUpdatedDateTime, RlRadiusServAcctLogUserAuthType=RlRadiusServAcctLogUserAuthType, RlRadiusServRejectedReasonType=RlRadiusServRejectedReasonType, rlRadiusServAcctLogNASInetAddressType=rlRadiusServAcctLogNASInetAddressType, RlRadiusServAcctLogEventType=RlRadiusServAcctLogEventType, rlRadiusServAcctLogNASPort=rlRadiusServAcctLogNASPort, rlRadiusServClientInetAddressType=rlRadiusServClientInetAddressType, rlRadiusServClearClientStatisticsTable=rlRadiusServClearClientStatisticsTable, rlRadiusServRejectedTable=rlRadiusServRejectedTable, rlRadiusServAcctLogUpdatedDateTime=rlRadiusServAcctLogUpdatedDateTime, PYSNMP_MODULE_ID=rlRadiusServ, rlRadiusServClientInetAddress=rlRadiusServClientInetAddress, rlRadiusServTrapAcct=rlRadiusServTrapAcct, rlRadiusServAcctLogSessionDuration=rlRadiusServAcctLogSessionDuration, RlRadiusServAcctLogTerminationReasonType=RlRadiusServAcctLogTerminationReasonType, rlRadiusServRejectedIndex=rlRadiusServRejectedIndex, rlRadiusServGroupTable=rlRadiusServGroupTable, rlRadiusServUserTable=rlRadiusServUserTable, rlRadiusServUserGroupName=rlRadiusServUserGroupName, rlRadiusServRejectedNASPort=rlRadiusServRejectedNASPort, rlRadiusServClientInetStatus=rlRadiusServClientInetStatus, rlRadiusServClearAccounting=rlRadiusServClearAccounting, rlRadiusServRejectedUserType=rlRadiusServRejectedUserType, rlRadiusServRejectedEntry=rlRadiusServRejectedEntry, rlRadiusServClientInetKeyMD5=rlRadiusServClientInetKeyMD5, rlRadiusServClearClientStatisticsInetAddressType=rlRadiusServClearClientStatisticsInetAddressType)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, value_size_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint') (inet_address_i_pv6, inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressIPv6', 'InetAddressType', 'InetAddress') (vlan_id,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanId') (rnd, rl_aaa_eap, rl_radius) = mibBuilder.importSymbols('RADLAN-MIB', 'rnd', 'rlAAAEap', 'rlRadius') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (bits, module_identity, integer32, time_ticks, iso, notification_type, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, object_identity, ip_address, mib_identifier, counter64, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'ModuleIdentity', 'Integer32', 'TimeTicks', 'iso', 'NotificationType', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'ObjectIdentity', 'IpAddress', 'MibIdentifier', 'Counter64', 'Counter32') (time_stamp, row_status, date_and_time, truth_value, textual_convention, display_string, mac_address) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'RowStatus', 'DateAndTime', 'TruthValue', 'TextualConvention', 'DisplayString', 'MacAddress') rl_radius_serv = module_identity((1, 3, 6, 1, 4, 1, 89, 226)) rlRadiusServ.setRevisions(('2015-06-21 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: rlRadiusServ.setRevisionsDescriptions(('Added this MODULE-IDENTITY clause.',)) if mibBuilder.loadTexts: rlRadiusServ.setLastUpdated('201506210000Z') if mibBuilder.loadTexts: rlRadiusServ.setOrganization('Radlan Computer Communications Ltd.') if mibBuilder.loadTexts: rlRadiusServ.setContactInfo('radlan.com') if mibBuilder.loadTexts: rlRadiusServ.setDescription('The private MIB module definition for Authentication, Authorization and Accounting in Radlan devices.') rl_radius_serv_enable = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServEnable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServEnable.setDescription('Specifies whether Radius Server enabled on the switch. ') rl_radius_serv_acct_port = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(1813)).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServAcctPort.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctPort.setDescription('To define the accounting UDP port used for accounting requests.') rl_radius_serv_auth_port = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(1812)).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServAuthPort.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAuthPort.setDescription('To define the authentication UDP port used for authentication requests.') rl_radius_serv_default_key = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServDefaultKey.setStatus('current') if mibBuilder.loadTexts: rlRadiusServDefaultKey.setDescription('Default Secret key to be shared with this all Radius Clients server.') rl_radius_serv_default_key_md5 = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServDefaultKeyMD5.setStatus('current') if mibBuilder.loadTexts: rlRadiusServDefaultKeyMD5.setDescription('Default Secret key MD5.') rl_radius_serv_trap_acct = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServTrapAcct.setStatus('current') if mibBuilder.loadTexts: rlRadiusServTrapAcct.setDescription('To enable sending accounting traps.') rl_radius_serv_trap_auth_failure = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 7), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServTrapAuthFailure.setStatus('current') if mibBuilder.loadTexts: rlRadiusServTrapAuthFailure.setDescription('To enable sending traps when an authentication failed and Access-Reject is sent.') rl_radius_serv_trap_auth_success = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServTrapAuthSuccess.setStatus('current') if mibBuilder.loadTexts: rlRadiusServTrapAuthSuccess.setDescription('To enable sending traps when a user is successfully authorized.') rl_radius_serv_group_table = mib_table((1, 3, 6, 1, 4, 1, 89, 226, 9)) if mibBuilder.loadTexts: rlRadiusServGroupTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupTable.setDescription('The (conceptual) table listing the RADIUS server group entry.') rl_radius_serv_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 226, 9, 1)).setIndexNames((0, 'RADLAN-RADIUSSRV', 'rlRadiusServGroupName')) if mibBuilder.loadTexts: rlRadiusServGroupEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupEntry.setDescription('The (conceptual) table listing the RADIUS server group entry.') rl_radius_serv_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServGroupName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupName.setDescription('To define Radius Server Group Name') rl_radius_serv_group_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 4094)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServGroupVLAN.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupVLAN.setDescription('To define Radius Assigned VLAN') rl_radius_serv_group_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServGroupVLANName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupVLANName.setDescription('To define Radius Assigned VLAN name') rl_radius_serv_group_acl1 = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServGroupACL1.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupACL1.setDescription('To define first Radius Assigned ACL') rl_radius_serv_group_acl2 = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServGroupACL2.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupACL2.setDescription('To define second Radius Assigned ACL') rl_radius_serv_group_prv_level = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServGroupPrvLevel.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupPrvLevel.setDescription('To define the user privilege level') rl_radius_serv_group_time_range_name = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServGroupTimeRangeName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupTimeRangeName.setDescription('To define the time user can connect') rl_radius_serv_group_status = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 9, 1, 8), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServGroupStatus.setStatus('current') if mibBuilder.loadTexts: rlRadiusServGroupStatus.setDescription('') rl_radius_serv_user_table = mib_table((1, 3, 6, 1, 4, 1, 89, 226, 10)) if mibBuilder.loadTexts: rlRadiusServUserTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserTable.setDescription('The (conceptual) table listing the RADIUS server user entry.') rl_radius_serv_user_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 226, 10, 1)).setIndexNames((0, 'RADLAN-RADIUSSRV', 'rlRadiusServUserName')) if mibBuilder.loadTexts: rlRadiusServUserEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserEntry.setDescription('The (conceptual) table listing the RADIUS server User entry.') rl_radius_serv_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServUserName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserName.setDescription('To define Radius Server User Name') rl_radius_serv_user_password = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServUserPassword.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserPassword.setDescription('Plain text Radius Server User Password') rl_radius_serv_user_password_md5 = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServUserPasswordMD5.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserPasswordMD5.setDescription('The MD5 of the rlRadiusServUserPassword') rl_radius_serv_user_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServUserGroupName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserGroupName.setDescription('Assigned Radius Server Group Name to specific user') rl_radius_serv_user_status = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 10, 1, 5), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServUserStatus.setStatus('current') if mibBuilder.loadTexts: rlRadiusServUserStatus.setDescription('') rl_radius_serv_client_inet_table = mib_table((1, 3, 6, 1, 4, 1, 89, 226, 11)) if mibBuilder.loadTexts: rlRadiusServClientInetTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetTable.setDescription('The (conceptual) table listing the RADIUS server group entry.') rl_radius_serv_client_inet_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 226, 11, 1)).setIndexNames((0, 'RADLAN-RADIUSSRV', 'rlRadiusServClientInetAddressType'), (0, 'RADLAN-RADIUSSRV', 'rlRadiusServClientInetAddress')) if mibBuilder.loadTexts: rlRadiusServClientInetEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetEntry.setDescription('The (conceptual) table listing the RADIUS Client entry.') rl_radius_serv_client_inet_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 1), inet_address_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClientInetAddressType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetAddressType.setDescription('The Inet address type of RADIUS client reffered to in this table entry .IPv6Z type is not supported.') rl_radius_serv_client_inet_address = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 2), inet_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClientInetAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetAddress.setDescription('The Inet address of the RADIUS client referred to in this table entry.') rl_radius_serv_client_inet_key = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClientInetKey.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetKey.setDescription('Secret key to be shared with this RADIUS client.') rl_radius_serv_client_inet_key_md5 = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServClientInetKeyMD5.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetKeyMD5.setDescription('The MD5 of the rlRadiusServClientInetKey') rl_radius_serv_client_inet_status = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 11, 1, 5), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClientInetStatus.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClientInetStatus.setDescription('') rl_radius_serv_clear_accounting = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 12), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClearAccounting.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearAccounting.setDescription('etting this object to TRUE clears the Radius Accounting cache.') rl_radius_serv_clear_rejected_users = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 13), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClearRejectedUsers.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearRejectedUsers.setDescription('etting this object to TRUE clears the Radius Rejected Users cache.') rl_radius_serv_clear_statistics = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 14), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClearStatistics.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearStatistics.setDescription('Setting this object to TRUE clears the Radius server counters.') rl_radius_serv_clear_users_of_given_group = mib_scalar((1, 3, 6, 1, 4, 1, 89, 226, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClearUsersOfGivenGroup.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearUsersOfGivenGroup.setDescription('Clears users of specified Group. 0 string signes to clear all users.') rl_radius_serv_clear_client_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 89, 226, 16)) if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsTable.setDescription('Action MIB to clear radius server statistics per client.') rl_radius_serv_clear_client_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 226, 16, 1)).setIndexNames((0, 'RADLAN-RADIUSSRV', 'rlRadiusServClearClientStatisticsIndex')) if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsEntry.setDescription('The row definition for this table.') rl_radius_serv_clear_client_statistics_index = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 16, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsIndex.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsIndex.setDescription('Index in the table. Already 1.') rl_radius_serv_clear_client_statistics_inet_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 16, 1, 2), inet_address_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsInetAddressType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsInetAddressType.setDescription('Clear statistics Inet address type parameter.') rl_radius_serv_clear_client_statistics_inet_address = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 16, 1, 3), inet_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsInetAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServClearClientStatisticsInetAddress.setDescription('Clear statistics Inet address parameter.') class Rlradiusservusertype(TextualConvention, Integer32): description = 'Radius Server user service type' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2)) named_values = named_values(('none', 0), ('x', 1), ('login', 2)) class Rlradiusservrejectedeventtype(TextualConvention, Integer32): description = 'Rejected Users Event Type' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 2, 3, 4)) named_values = named_values(('invalid', 0), ('reboot', 2), ('dateTimeChanged', 3), ('rejected', 4)) class Rlradiusservrejectedreasontype(TextualConvention, Integer32): description = 'Authentication service rejects reason' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('noError', 0), ('unknownUser', 1), ('illegalPassword', 2), ('notAllowedTime', 3)) rl_radius_serv_rejected_table = mib_table((1, 3, 6, 1, 4, 1, 89, 226, 17)) if mibBuilder.loadTexts: rlRadiusServRejectedTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedTable.setDescription('The (conceptual) table listing the RADIUS server rejected user entry.') rl_radius_serv_rejected_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 226, 17, 1)).setIndexNames((0, 'RADLAN-RADIUSSRV', 'rlRadiusServRejectedIndex')) if mibBuilder.loadTexts: rlRadiusServRejectedEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedEntry.setDescription('The (conceptual) table listing the RADIUS Rejected user entry.') rl_radius_serv_rejected_index = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: rlRadiusServRejectedIndex.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedIndex.setDescription('Rejected User Index') rl_radius_serv_rejected_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedUserName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedUserName.setDescription('Rejected User Name. In case of dateTimeChanged and reboot event contains 0.') rl_radius_serv_rejected_user_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 3), rl_radius_serv_user_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedUserType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedUserType.setDescription('Contains type of service.') rl_radius_serv_rejected_event = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 4), rl_radius_serv_rejected_event_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedEvent.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedEvent.setDescription('Contains type of event.') rl_radius_serv_rejected_date_time = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedDateTime.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedDateTime.setDescription('Date of rejected event.') rl_radius_serv_rejected_updated_date_time = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedUpdatedDateTime.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedUpdatedDateTime.setDescription('In case of dateTimeChanged event contains New assigned Date and Time. Otherwise contains 0.') rl_radius_serv_rejected_nas_inet_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 7), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedNASInetAddressType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedNASInetAddressType.setDescription('Rejected user NAS Inet address type. In case of dateTimeChange and reboot event contains 0.') rl_radius_serv_rejected_nas_inet_address = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 8), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedNASInetAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedNASInetAddress.setDescription('Rejected user NAS Inet address. In case of dateTimeChanged and reboot event contains 0.') rl_radius_serv_rejected_nas_port = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedNASPort.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedNASPort.setDescription('Rejected user NAS port. In case of dateTimeChanged and reboot event contains 0.') rl_radius_serv_rejected_user_address = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedUserAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedUserAddress.setDescription('Rejected user Inet address type. In case of 1x user contains mac address string, in case of login contains inet address.') rl_radius_serv_rejected_reason = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 17, 1, 11), rl_radius_serv_rejected_reason_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServRejectedReason.setStatus('current') if mibBuilder.loadTexts: rlRadiusServRejectedReason.setDescription('Rejected user reason.') class Rlradiusservacctloguserauthtype(TextualConvention, Integer32): description = 'User Authentication Type' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('none', 0), ('radius', 1), ('local', 2), ('remote', 3)) class Rlradiusservacctlogeventtype(TextualConvention, Integer32): description = 'Accounting Event Type' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 2, 3, 4, 5)) named_values = named_values(('invalid', 0), ('reboot', 2), ('dateTimeChanged', 3), ('start', 4), ('stop', 5)) class Rlradiusservacctlogterminationreasontype(TextualConvention, Integer32): description = 'Accounting User Termination reason' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)) named_values = named_values(('noError', 0), ('userRequest', 1), ('lostCarrier', 2), ('lostService', 3), ('idleTimeout', 4), ('sessionTimeout', 5), ('adminReset', 6), ('adminReboot', 7), ('portError', 8), ('nasError', 9), ('nasRequest', 10), ('nasReboot', 11), ('portUnneeded', 12), ('portPreempted', 13), ('portSuspended', 14), ('serviceUnavailable', 15), ('callback', 16), ('userError', 17), ('hostRequest', 18)) rl_radius_serv_acct_log_table = mib_table((1, 3, 6, 1, 4, 1, 89, 226, 18)) if mibBuilder.loadTexts: rlRadiusServAcctLogTable.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogTable.setDescription('The (conceptual) table listing the RADIUS server accounting log entry.') rl_radius_serv_acct_log_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 226, 18, 1)).setIndexNames((0, 'RADLAN-RADIUSSRV', 'rlRadiusServAcctLogIndex')) if mibBuilder.loadTexts: rlRadiusServAcctLogEntry.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogEntry.setDescription('The (conceptual) table listing the RADIUS server accounting log entry.') rl_radius_serv_acct_log_index = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: rlRadiusServAcctLogIndex.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogIndex.setDescription('Accounting Log Index') rl_radius_serv_acct_log_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogUserName.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogUserName.setDescription('Accounting Log User Name. In case of dateTimeChanged and reboot event contains 0.') rl_radius_serv_acct_log_user_auth = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 3), rl_radius_serv_acct_log_user_auth_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogUserAuth.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogUserAuth.setDescription('Contains type of authenticator.') rl_radius_serv_acct_log_event = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 4), rl_radius_serv_acct_log_event_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogEvent.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogEvent.setDescription('Contains type of event.') rl_radius_serv_acct_log_date_time = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogDateTime.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogDateTime.setDescription('Date of accounting event.') rl_radius_serv_acct_log_updated_date_time = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogUpdatedDateTime.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogUpdatedDateTime.setDescription('In case of dateTimeChanged event contains New assigned Date and Time. Otherwise contains 0.') rl_radius_serv_acct_log_session_duration = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogSessionDuration.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogSessionDuration.setDescription('Contains duration of user session in seconds. In case of dateTimeChanged and reboot event contains 0.') rl_radius_serv_acct_log_nas_inet_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 8), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogNASInetAddressType.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogNASInetAddressType.setDescription('Accounting log user NAS Inet address type. In case of dateTimeChanged and reboot event contains 0.') rl_radius_serv_acct_log_nas_inet_address = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 9), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogNASInetAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogNASInetAddress.setDescription('Accounting log user NAS Inet address. In case of dateTimeChanged and reboot event contains 0.') rl_radius_serv_acct_log_nas_port = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogNASPort.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogNASPort.setDescription('Accounting log user NAS port. In case of dateTimeChanged and reboot event contains 0.') rl_radius_serv_acct_log_user_address = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 11), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogUserAddress.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogUserAddress.setDescription('Accounting log user address. In case of 1x user contains mac address string, in case of login contains inet address.') rl_radius_serv_acct_log_termination_reason = mib_table_column((1, 3, 6, 1, 4, 1, 89, 226, 18, 1, 12), rl_radius_serv_acct_log_termination_reason_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlRadiusServAcctLogTerminationReason.setStatus('current') if mibBuilder.loadTexts: rlRadiusServAcctLogTerminationReason.setDescription('User Session termination reason.') mibBuilder.exportSymbols('RADLAN-RADIUSSRV', rlRadiusServAcctLogTable=rlRadiusServAcctLogTable, RlRadiusServUserType=RlRadiusServUserType, rlRadiusServGroupACL2=rlRadiusServGroupACL2, rlRadiusServDefaultKeyMD5=rlRadiusServDefaultKeyMD5, rlRadiusServGroupStatus=rlRadiusServGroupStatus, rlRadiusServRejectedNASInetAddressType=rlRadiusServRejectedNASInetAddressType, rlRadiusServAcctLogDateTime=rlRadiusServAcctLogDateTime, rlRadiusServGroupName=rlRadiusServGroupName, rlRadiusServClientInetTable=rlRadiusServClientInetTable, rlRadiusServGroupVLAN=rlRadiusServGroupVLAN, rlRadiusServRejectedUserAddress=rlRadiusServRejectedUserAddress, rlRadiusServAcctLogUserName=rlRadiusServAcctLogUserName, rlRadiusServAcctLogEntry=rlRadiusServAcctLogEntry, rlRadiusServTrapAuthSuccess=rlRadiusServTrapAuthSuccess, rlRadiusServClearClientStatisticsEntry=rlRadiusServClearClientStatisticsEntry, rlRadiusServClearClientStatisticsInetAddress=rlRadiusServClearClientStatisticsInetAddress, rlRadiusServAcctLogUserAddress=rlRadiusServAcctLogUserAddress, rlRadiusServAcctLogEvent=rlRadiusServAcctLogEvent, RlRadiusServRejectedEventType=RlRadiusServRejectedEventType, rlRadiusServUserPassword=rlRadiusServUserPassword, rlRadiusServGroupTimeRangeName=rlRadiusServGroupTimeRangeName, rlRadiusServGroupACL1=rlRadiusServGroupACL1, rlRadiusServUserEntry=rlRadiusServUserEntry, rlRadiusServDefaultKey=rlRadiusServDefaultKey, rlRadiusServClientInetKey=rlRadiusServClientInetKey, rlRadiusServRejectedUserName=rlRadiusServRejectedUserName, rlRadiusServUserName=rlRadiusServUserName, rlRadiusServUserStatus=rlRadiusServUserStatus, rlRadiusServGroupVLANName=rlRadiusServGroupVLANName, rlRadiusServEnable=rlRadiusServEnable, rlRadiusServAcctLogIndex=rlRadiusServAcctLogIndex, rlRadiusServGroupEntry=rlRadiusServGroupEntry, rlRadiusServRejectedDateTime=rlRadiusServRejectedDateTime, rlRadiusServAcctLogUserAuth=rlRadiusServAcctLogUserAuth, rlRadiusServClearUsersOfGivenGroup=rlRadiusServClearUsersOfGivenGroup, rlRadiusServ=rlRadiusServ, rlRadiusServRejectedReason=rlRadiusServRejectedReason, rlRadiusServUserPasswordMD5=rlRadiusServUserPasswordMD5, rlRadiusServClientInetEntry=rlRadiusServClientInetEntry, rlRadiusServRejectedNASInetAddress=rlRadiusServRejectedNASInetAddress, rlRadiusServAcctLogNASInetAddress=rlRadiusServAcctLogNASInetAddress, rlRadiusServAuthPort=rlRadiusServAuthPort, rlRadiusServAcctLogTerminationReason=rlRadiusServAcctLogTerminationReason, rlRadiusServAcctPort=rlRadiusServAcctPort, rlRadiusServClearClientStatisticsIndex=rlRadiusServClearClientStatisticsIndex, rlRadiusServGroupPrvLevel=rlRadiusServGroupPrvLevel, rlRadiusServRejectedEvent=rlRadiusServRejectedEvent, rlRadiusServTrapAuthFailure=rlRadiusServTrapAuthFailure, rlRadiusServClearRejectedUsers=rlRadiusServClearRejectedUsers, rlRadiusServClearStatistics=rlRadiusServClearStatistics, rlRadiusServRejectedUpdatedDateTime=rlRadiusServRejectedUpdatedDateTime, RlRadiusServAcctLogUserAuthType=RlRadiusServAcctLogUserAuthType, RlRadiusServRejectedReasonType=RlRadiusServRejectedReasonType, rlRadiusServAcctLogNASInetAddressType=rlRadiusServAcctLogNASInetAddressType, RlRadiusServAcctLogEventType=RlRadiusServAcctLogEventType, rlRadiusServAcctLogNASPort=rlRadiusServAcctLogNASPort, rlRadiusServClientInetAddressType=rlRadiusServClientInetAddressType, rlRadiusServClearClientStatisticsTable=rlRadiusServClearClientStatisticsTable, rlRadiusServRejectedTable=rlRadiusServRejectedTable, rlRadiusServAcctLogUpdatedDateTime=rlRadiusServAcctLogUpdatedDateTime, PYSNMP_MODULE_ID=rlRadiusServ, rlRadiusServClientInetAddress=rlRadiusServClientInetAddress, rlRadiusServTrapAcct=rlRadiusServTrapAcct, rlRadiusServAcctLogSessionDuration=rlRadiusServAcctLogSessionDuration, RlRadiusServAcctLogTerminationReasonType=RlRadiusServAcctLogTerminationReasonType, rlRadiusServRejectedIndex=rlRadiusServRejectedIndex, rlRadiusServGroupTable=rlRadiusServGroupTable, rlRadiusServUserTable=rlRadiusServUserTable, rlRadiusServUserGroupName=rlRadiusServUserGroupName, rlRadiusServRejectedNASPort=rlRadiusServRejectedNASPort, rlRadiusServClientInetStatus=rlRadiusServClientInetStatus, rlRadiusServClearAccounting=rlRadiusServClearAccounting, rlRadiusServRejectedUserType=rlRadiusServRejectedUserType, rlRadiusServRejectedEntry=rlRadiusServRejectedEntry, rlRadiusServClientInetKeyMD5=rlRadiusServClientInetKeyMD5, rlRadiusServClearClientStatisticsInetAddressType=rlRadiusServClearClientStatisticsInetAddressType)
def rom(n): if n == 1000: return 'M' if n == 900: return 'CM' if n == 500: return 'D' if n == 400: return 'CD' if n == 100: return 'C' if n == 90: return 'XC' if n == 50: return 'L' if n == 40: return 'XL' if n == 10: return 'X' if n == 9: return 'IX' if n == 5: return 'V' if n == 4: return 'IV' if n == 1: return 'I' n = int(input()) for i in 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1: while n >= i: print(rom(i), end='') n -= i print()
def rom(n): if n == 1000: return 'M' if n == 900: return 'CM' if n == 500: return 'D' if n == 400: return 'CD' if n == 100: return 'C' if n == 90: return 'XC' if n == 50: return 'L' if n == 40: return 'XL' if n == 10: return 'X' if n == 9: return 'IX' if n == 5: return 'V' if n == 4: return 'IV' if n == 1: return 'I' n = int(input()) for i in (1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1): while n >= i: print(rom(i), end='') n -= i print()
def resolve(): ''' code here ''' N = int(input()) mat = [[int(item) for item in input().split()] for _ in range(N)] dp = [[0 for _ in range(N+1)] for _ in range(N+1)] for i in reversed(range(N-2)): for j in range(i+2, N): dp[i][j] = min(dp[i][j-1] * mat[i][0]*mat[j][0]*mat[j][1], dp[i][j]) print(dp) if __name__ == "__main__": resolve()
def resolve(): """ code here """ n = int(input()) mat = [[int(item) for item in input().split()] for _ in range(N)] dp = [[0 for _ in range(N + 1)] for _ in range(N + 1)] for i in reversed(range(N - 2)): for j in range(i + 2, N): dp[i][j] = min(dp[i][j - 1] * mat[i][0] * mat[j][0] * mat[j][1], dp[i][j]) print(dp) if __name__ == '__main__': resolve()
class Classe_1: def funcao_da_classe_1(self, string): dicionario = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} valor = 0 for i in range(len(string)): if i > 0 and dicionario[string[i]] > dicionario[string[i -1]]: valor += dicionario[string[i]] -2 * dicionario[string[i -1]] else: valor += dicionario [string[i]] return valor
class Classe_1: def funcao_da_classe_1(self, string): dicionario = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} valor = 0 for i in range(len(string)): if i > 0 and dicionario[string[i]] > dicionario[string[i - 1]]: valor += dicionario[string[i]] - 2 * dicionario[string[i - 1]] else: valor += dicionario[string[i]] return valor
def partition(array, low, high): i = low - 1 pivot = array[high] for j in range(low, high): if array[j] < pivot: i += 1 array[i], array[j] = array[j], array[i] array[i + 1], array[high] = array[high], array[i + 1] return i + 1 def quick_sort(array, low, high): if low < high: temp = partition(array, low, high) quick_sort(array, low, temp - 1) quick_sort(array, temp + 1, high) array = [i for i in range(1, 20)] print(array) quick_sort(array, 0, len(array) - 1) print(array)
def partition(array, low, high): i = low - 1 pivot = array[high] for j in range(low, high): if array[j] < pivot: i += 1 (array[i], array[j]) = (array[j], array[i]) (array[i + 1], array[high]) = (array[high], array[i + 1]) return i + 1 def quick_sort(array, low, high): if low < high: temp = partition(array, low, high) quick_sort(array, low, temp - 1) quick_sort(array, temp + 1, high) array = [i for i in range(1, 20)] print(array) quick_sort(array, 0, len(array) - 1) print(array)
# -*- coding: utf-8 -*- # @Date : 2014-06-27 14:37:20 # @Author : xindervella@gamil.com SRTP_URL = 'http://10.1.30.98:8080/srtp2/USerPages/SRTP/Report3.aspx' TIME_OUT = 8
srtp_url = 'http://10.1.30.98:8080/srtp2/USerPages/SRTP/Report3.aspx' time_out = 8
i=1 for i in range(0,5): if i==2: print('bye') break print("sadique")
i = 1 for i in range(0, 5): if i == 2: print('bye') break print('sadique')
def _normalize_scratch_rotation(degree): while degree <= -180: degree += 360 while degree > 180: degree -= 360 return degree def _convert_scratch_to_pygame_rotation(degree): deg = _normalize_scratch_rotation(degree) if deg == 0: return 90 elif deg == 90: return 0 elif deg == -90: return 180 elif deg == 180: return 270 elif deg > 0 and deg < 90: return 90 - deg elif deg > 90 and deg < 180: return 360 - (deg - 90) elif deg < 0 and deg > -90: return 90 - deg elif deg < -90 and deg > -180: return 270 - (180 + deg) def _normalize_pygame_rotation(degree): while degree < 0: degree += 360 while degree >= 360: degree -= 360 return degree def _convert_pygame_to_scratch_rotation(degree): deg = _normalize_pygame_rotation(degree) if deg == 0: return 90 elif deg == 90: return 0 elif deg == 180: return -90 elif deg == 270: return 180 elif deg > 0 and deg < 90: return 90 - deg elif deg > 90 and deg < 180: return 90 - deg elif deg > 180 and deg < 270: return 90 - deg elif deg > 270 and deg < 360: return 90 + (360 - deg)
def _normalize_scratch_rotation(degree): while degree <= -180: degree += 360 while degree > 180: degree -= 360 return degree def _convert_scratch_to_pygame_rotation(degree): deg = _normalize_scratch_rotation(degree) if deg == 0: return 90 elif deg == 90: return 0 elif deg == -90: return 180 elif deg == 180: return 270 elif deg > 0 and deg < 90: return 90 - deg elif deg > 90 and deg < 180: return 360 - (deg - 90) elif deg < 0 and deg > -90: return 90 - deg elif deg < -90 and deg > -180: return 270 - (180 + deg) def _normalize_pygame_rotation(degree): while degree < 0: degree += 360 while degree >= 360: degree -= 360 return degree def _convert_pygame_to_scratch_rotation(degree): deg = _normalize_pygame_rotation(degree) if deg == 0: return 90 elif deg == 90: return 0 elif deg == 180: return -90 elif deg == 270: return 180 elif deg > 0 and deg < 90: return 90 - deg elif deg > 90 and deg < 180: return 90 - deg elif deg > 180 and deg < 270: return 90 - deg elif deg > 270 and deg < 360: return 90 + (360 - deg)
def frequencySort(self, s: str) -> str: m = {} for i in s: if i not in m: m[i] = 1 else: m[i] += 1 r = "" for i in sorted(m, key=m.get, reverse=True): r += i * m[i] return r
def frequency_sort(self, s: str) -> str: m = {} for i in s: if i not in m: m[i] = 1 else: m[i] += 1 r = '' for i in sorted(m, key=m.get, reverse=True): r += i * m[i] return r
# String Format # As we learned in the Python Variables chapter, we cannot combine strings and numbers like this: ''' age = 23 txt = "My name is Nayan, I am " + age + "Years old" print(txt) #Error ''' # But we can combine strings and numbers by using the format() method! # The format() method takes the passed arguments, formats them, and places them in the string where the placeholders {} are: age = 23 txt = "My name is Nayan, and I'm {} Years old" print(txt.format(age)) # The format() method takes unlimited number of arguments, and are placed into the respective placeholders: quantity = 5 itemno = 1001 price = 101.05 myorder = "I want {} pieces of item {} for {} Rupees" print(myorder.format(quantity, itemno, price)) # You can use index numbers {0} to be sure the arguments are placed in the correct placeholders: quantity = 5 itemno = 1001 price = 101.05 myorder = "I want to pay {2} Rupees for {0} pieces of item {1}. " print(myorder.format(quantity, itemno, price))
""" age = 23 txt = "My name is Nayan, I am " + age + "Years old" print(txt) #Error """ age = 23 txt = "My name is Nayan, and I'm {} Years old" print(txt.format(age)) quantity = 5 itemno = 1001 price = 101.05 myorder = 'I want {} pieces of item {} for {} Rupees' print(myorder.format(quantity, itemno, price)) quantity = 5 itemno = 1001 price = 101.05 myorder = 'I want to pay {2} Rupees for {0} pieces of item {1}. ' print(myorder.format(quantity, itemno, price))
#Write a Python class to reverse a string word by word. class py_solution: def reverse_words(self, s): return reversed(s) print(py_solution().reverse_words('rewangi'))
class Py_Solution: def reverse_words(self, s): return reversed(s) print(py_solution().reverse_words('rewangi'))
# Chapter 7 exercises from the book Python Crash Course: A Hands-On, Project-Based Introduction to Programming. # 7-1. Rental Car car = input('Which car do you want to rent?') print('Let me see if I can find you a '+ car + '.') # 7-2. Restaurant Seating number = input('How many people come to dinner?') number = int(number) if number > 8: print('Sorry, but there is none table available for your group right now, can you wait for a little?') else: print('Your table is ready.') # 7-3. Multiples of Ten number = input('Please type a number: ') number = int(number) if number % 10 == 0: print('Your number is a multiple of 10.') else: print('Your number is not a multiple of 10.') # 7-4. Pizza Toppings pizza_toppings = [] print('Hello! Which pizza toppings do you desire?') prompt = '\nPlease enter the topping you want:' prompt += "\n(Enter 'quit' when you have finished.)" while True: message = input(prompt) if message == 'quit': if pizza_toppings: print('Plain pizza it is then.') else: print('Your pizza toppings are:') print(pizza_toppings) break else: pizza_toppings.append(message) # 7-5. Movie Tickets prompt = '\nPlease enter your age: ' prompt += "\n(Enter 'quit' when you have finished.)" while True: age = input(prompt) if age == 'quit': break age = int(age) if age < 3: print('Your ticket is free.') elif age >=3 and age < 12: print('Your ticket is $10.') else: print('Your ticket is $15.') # 7-6. Three Exits # 7-7. Infinity #while True: # print('infinity') # 7-8. Deli sandwich_orders = ['bacon', 'pastrami', 'bagel toast', 'baloney', 'pastrami', 'barbecue', 'doner kebab', 'pastrami'] finished_sandwishes = [] while sandwich_orders: sandwich = sandwich_orders.pop() print('I made your ' + sandwich + 'sandwich.') print('I made these sandwiches:') print(set(finished_sandwishes)) # 7-9. No Pastrami sandwich_orders = ['bacon', 'pastrami', 'bagel toast', 'baloney', 'pastrami', 'barbecue', 'doner kebab', 'pastrami'] finished_sandwishes = [] print('Deli has run out of pastrami.') while 'pastrami' in sandwich_orders: sandwich_orders.remove('pastrami') while sandwich_orders: sandwich = sandwich_orders.pop() print('I made your ' + sandwich + 'sandwich.') print('I made these sandwiches:') print(set(finished_sandwishes)) # 7-10. Dream Vacation dream_vacation = {} polling_active = True while polling_active: name = input('\nWhat is your name?') response = input('If you could visit one place in the world, where would you go?') dream_vacation[name] = response repeat = input('Would you like to let another person respond? (yes/no)') if repeat == 'no': polling_active = False for name, response in dream_vacation.items(): print(name.title() + ' would you like to go to ' + response.title() + '.')
car = input('Which car do you want to rent?') print('Let me see if I can find you a ' + car + '.') number = input('How many people come to dinner?') number = int(number) if number > 8: print('Sorry, but there is none table available for your group right now, can you wait for a little?') else: print('Your table is ready.') number = input('Please type a number: ') number = int(number) if number % 10 == 0: print('Your number is a multiple of 10.') else: print('Your number is not a multiple of 10.') pizza_toppings = [] print('Hello! Which pizza toppings do you desire?') prompt = '\nPlease enter the topping you want:' prompt += "\n(Enter 'quit' when you have finished.)" while True: message = input(prompt) if message == 'quit': if pizza_toppings: print('Plain pizza it is then.') else: print('Your pizza toppings are:') print(pizza_toppings) break else: pizza_toppings.append(message) prompt = '\nPlease enter your age: ' prompt += "\n(Enter 'quit' when you have finished.)" while True: age = input(prompt) if age == 'quit': break age = int(age) if age < 3: print('Your ticket is free.') elif age >= 3 and age < 12: print('Your ticket is $10.') else: print('Your ticket is $15.') sandwich_orders = ['bacon', 'pastrami', 'bagel toast', 'baloney', 'pastrami', 'barbecue', 'doner kebab', 'pastrami'] finished_sandwishes = [] while sandwich_orders: sandwich = sandwich_orders.pop() print('I made your ' + sandwich + 'sandwich.') print('I made these sandwiches:') print(set(finished_sandwishes)) sandwich_orders = ['bacon', 'pastrami', 'bagel toast', 'baloney', 'pastrami', 'barbecue', 'doner kebab', 'pastrami'] finished_sandwishes = [] print('Deli has run out of pastrami.') while 'pastrami' in sandwich_orders: sandwich_orders.remove('pastrami') while sandwich_orders: sandwich = sandwich_orders.pop() print('I made your ' + sandwich + 'sandwich.') print('I made these sandwiches:') print(set(finished_sandwishes)) dream_vacation = {} polling_active = True while polling_active: name = input('\nWhat is your name?') response = input('If you could visit one place in the world, where would you go?') dream_vacation[name] = response repeat = input('Would you like to let another person respond? (yes/no)') if repeat == 'no': polling_active = False for (name, response) in dream_vacation.items(): print(name.title() + ' would you like to go to ' + response.title() + '.')
# follow pep-386 # Examples: # * 0.3 - released version # * 0.3a1 - alpha version # * 0.3.dev - version in developmentv __version__ = '0.7.dev' __releasedate__ = ''
__version__ = '0.7.dev' __releasedate__ = ''
class RegistrationInfo(object): def __init__(self, hook_name, expect_exists, register_kwargs=None): assert isinstance(expect_exists, bool) self.hook_name = hook_name self.expect_exists = expect_exists self.register_kwargs = register_kwargs or {}
class Registrationinfo(object): def __init__(self, hook_name, expect_exists, register_kwargs=None): assert isinstance(expect_exists, bool) self.hook_name = hook_name self.expect_exists = expect_exists self.register_kwargs = register_kwargs or {}
def includeme(config): config.add_static_view('static', 'static', cache_max_age=3600) config.add_route('home', '/') config.add_route('api', '/api') config.add_route('download', '/download') config.add_route('docs', '/docs') config.add_route('create', '/create') config.add_route('demo', '/demo')
def includeme(config): config.add_static_view('static', 'static', cache_max_age=3600) config.add_route('home', '/') config.add_route('api', '/api') config.add_route('download', '/download') config.add_route('docs', '/docs') config.add_route('create', '/create') config.add_route('demo', '/demo')
metadata = Hash() data = Hash(default_value=0) sc_contract = Variable() unit_contract = Variable() terrain_contract = Variable() random.seed() @construct def seed(): metadata['operator'] = ctx.caller #prize calclulation Parameters metadata['winner_percent'] = decimal('0.09') metadata['house_percent'] = decimal('0.01') sc_contract.set('con_silver_credits') unit_contract.set('con_battlefield_units_001') terrain_contract.set('con_battlefield_terrains_001') #units per SC token metadata['UNITS_PER_SC']={ "IN": 200, "AR": 91, "HI": 67, "CA": 48, "CP": 24, "GO": 333, "OA": 71, "OR": 100, "WO": 59, "TR": 20 } data['L Wins'] = 0 data['D Wins'] = 0 @export def update_contract(update_var: str, new_contract: str): assert ctx.caller == metadata['operator'], "Only the operator update the contracts." update_var.set(new_contract) @export def change_metadata(key: str, new_value: str, convert_to_decimal: bool=False): assert ctx.caller == metadata['operator'], "Only the operator can set metadata." if convert_to_decimal: new_value = decimal(new_value) metadata[key] = new_value @export def battle(match_id: str): if data[match_id, 'private'] == 1: playerlist = data[match_id, 'players'] assert ctx.caller in playerlist, 'You are not on the list of players for this match and cannot start the battle. Contact the match creator if you wish to join.' total_L = data[match_id,'total_L'] total_D = data[match_id,'total_D'] assert total_L == total_D and total_L == data[match_id, 'battle_size'], f'There are {total_L} SC and {total_D} SC staked. These must be equal and filled to max capacity for a battle to be initiated.' operator = metadata['operator'] calc = ForeignHash(foreign_contract=unit_contract.get(), foreign_name='param_calc') terraindata = ForeignHash(foreign_contract=terrain_contract.get(), foreign_name='metadata') terrains = terraindata['terrains'] if data[match_id, 'terrain'] == 0 : terrain_type = terrains[random.randint(1, 5)] else: terrain_type = terrains[data[match_id, 'terrain']] factor_list = calc['factor_list'] factorC = factor_list[0] factorD = factor_list[1] factorE = factor_list[2] lower = factor_list[3] upper = factor_list[4] multiplier = factor_list[5] STR_bonus = factor_list[6] IN_PARAM = calc['IN','PARAM'] #IN_MS = IN_PARAM[0] :: #IN_MD = IN_PARAM[1] :: #IN_RS = IN_PARAM[2] :: #IN_RD = IN_PARAM[3] :: #IN_MDF = IN_PARAM[4] :: #IN_RDF = IN_PARAM[5] :: #IN_count = IN_PARAM[6] AR_PARAM = calc['AR','PARAM'] HI_PARAM = calc['HI','PARAM'] CA_PARAM = calc['CA','PARAM'] CP_PARAM = calc['CP','PARAM'] GO_PARAM = calc['GO','PARAM'] OA_PARAM = calc['OA','PARAM'] OR_PARAM = calc['OR','PARAM'] WO_PARAM = calc['WO','PARAM'] TR_PARAM = calc['TR','PARAM'] L_units = data[match_id, 'L_units'] IN_PARAM[6] = L_units['IN'] #transfers all unit counts from staking tokens into the parameter list for use in the functions AR_PARAM[6] = L_units['AR'] HI_PARAM[6] = L_units['HI'] CA_PARAM[6] = L_units['CA'] CP_PARAM[6] = L_units['CP'] D_units = data[match_id, 'D_units'] GO_PARAM[6] = D_units['GO'] OA_PARAM[6] = D_units['OA'] OR_PARAM[6] = D_units['OR'] WO_PARAM[6] = D_units['WO'] TR_PARAM[6] = D_units['TR'] battle_turn = 0 terrain_ = importlib.import_module(terrain_contract.get()) battle_mult = terrain_.battle_mult_update(terrain_type=terrain_type, battle_turn=battle_turn) UNITS_TOTAL = calc_army_update(factorC, factorD, battle_mult[0], battle_mult[1], IN_PARAM, AR_PARAM, HI_PARAM, CA_PARAM, CP_PARAM, GO_PARAM, OA_PARAM, OR_PARAM, WO_PARAM, TR_PARAM) #ADD ALL OTHER PARAM LISTS HERE AS UNITS ARE ADDED while UNITS_TOTAL[0] > 0 and UNITS_TOTAL[1] > 0: battle_mult = terrain_.battle_mult_update(terrain_type=terrain_type, battle_turn=battle_turn) L_ARMY_PROPERTIES = UNITS_TOTAL[2] D_ARMY_PROPERTIES = UNITS_TOTAL[3] IN_COUNT = IN_PARAM[6] #transfers all unit counts to a separate variable so loss calcs aren't dependant on who is first in the code. AR_COUNT = AR_PARAM[6] HI_COUNT = HI_PARAM[6] CA_COUNT = CA_PARAM[6] CP_COUNT = CP_PARAM[6] GO_COUNT = GO_PARAM[6] OA_COUNT = OA_PARAM[6] OR_COUNT = OR_PARAM[6] WO_COUNT = WO_PARAM[6] TR_COUNT = TR_PARAM[6] if IN_PARAM[6] > 0: IN_PARAM[6] = calc_losses(IN_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], GO_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if AR_PARAM[6] > 0: AR_PARAM[6] = calc_losses(AR_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], OR_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if HI_PARAM[6] > 0: HI_PARAM[6] = calc_losses(HI_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], WO_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if CA_PARAM[6] > 0: CA_PARAM[6] = calc_losses(CA_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], OA_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if CP_PARAM[6] > 0: CP_PARAM[6] = calc_losses(CP_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], TR_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if GO_PARAM[6] > 0: GO_PARAM[6] = calc_losses(GO_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], HI_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) if OA_PARAM[6] > 0: OA_PARAM[6] = calc_losses(OA_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], IN_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) if OR_PARAM[6] > 0: OR_PARAM[6] = calc_losses(OR_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], CP_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) if WO_PARAM[6] > 0: WO_PARAM[6] = calc_losses(WO_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], AR_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) if TR_PARAM[6] > 0: TR_PARAM[6] = calc_losses(TR_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], CA_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) UNITS_TOTAL = calc_army_update(factorC, factorD, battle_mult[0], battle_mult[1], IN_PARAM, AR_PARAM, HI_PARAM, CA_PARAM, CP_PARAM, GO_PARAM, OA_PARAM, OR_PARAM, WO_PARAM, TR_PARAM) #ADD ALL OTHER PARAM LISTS HERE AS UNITS ARE ADDED battle_turn += 1 if UNITS_TOTAL[0] > 0 and UNITS_TOTAL[1] <= 0: winner = 'L' data['L Wins'] += 1 elif UNITS_TOTAL[1] > 0 and UNITS_TOTAL[0] <= 0: winner = 'D' data['D Wins'] += 1 else: winner = 'error' data['Battle_Results'] = f'There are {int(IN_PARAM[6])} infantry, {int(AR_PARAM[6])} archers, {int(HI_PARAM[6])} heavy infantry, {int(CA_PARAM[6])} cavalry, {int(CP_PARAM[6])} catapults remaining in the LIGHT army, and there are {int(GO_PARAM[6])} goblins, {int(OA_PARAM[6])} orc archers, {int(OR_PARAM[6])} orcs, {int(WO_PARAM[6])} wolves, {int(TR_PARAM[6])} trolls remaining in the DARK army.' disperse(operator, winner, match_id) data['total_turns'] = battle_turn #may not need long term. This is just to track the total turns a battle took. def calc_losses(unit_param, factorE, multiplier, lower, upper, STR_bonus, BATTLE_M_MULT, BATTLE_R_MULT, weakness_count, faction_unit_list, faction_other_list): unit_update = (100 - (factorE ** ((((faction_other_list[0] - faction_unit_list[1] + (STR_bonus * BATTLE_M_MULT * (unit_param[7] * weakness_count)))/faction_unit_list[1]) * \ random.randint(lower, upper) * faction_other_list[4])-unit_param[4]) + factorE ** ((((faction_other_list[2] - faction_unit_list[3] + (STR_bonus * BATTLE_R_MULT * (unit_param[8] * weakness_count))) \ / faction_unit_list[3]) * random.randint(lower, upper) * faction_other_list[5])-unit_param[5])) * multiplier) / 100 * unit_param[6] if unit_update < 0: unit_update = 0 return unit_update def calc_army_update(factorC, factorD, BATTLE_M_MULT, BATTLE_R_MULT, IN_PARAM, AR_PARAM, HI_PARAM, CA_PARAM, CP_PARAM, GO_PARAM, OA_PARAM, OR_PARAM, WO_PARAM, TR_PARAM): #ADD ALL OTHER PARAM LISTS HERE AS UNITS ARE ADDED L_UNITS_IN = IN_PARAM[6] L_UNITS_AR = AR_PARAM[6] L_UNITS_HI = HI_PARAM[6] L_UNITS_CA = CA_PARAM[6] L_UNITS_CP = CP_PARAM[6] D_UNITS_GO = GO_PARAM[6] D_UNITS_OA = OA_PARAM[6] D_UNITS_OR = OR_PARAM[6] D_UNITS_WO = WO_PARAM[6] D_UNITS_TR = TR_PARAM[6] L_UNITS_TOTAL = L_UNITS_IN + L_UNITS_AR + L_UNITS_HI + L_UNITS_CA + L_UNITS_CP #add all other L units to this variable when other units are added D_UNITS_TOTAL = D_UNITS_GO + D_UNITS_OA + D_UNITS_OR + D_UNITS_WO + D_UNITS_TR #add all other D units to this variable when other units are added if L_UNITS_TOTAL > 0: #calculate updated L army totals L_ARMY_MS = (L_UNITS_IN * IN_PARAM[0] + L_UNITS_AR * AR_PARAM[0] + L_UNITS_HI * HI_PARAM[0] + L_UNITS_CA * CA_PARAM[0] + L_UNITS_CP * CP_PARAM[0]) * BATTLE_M_MULT #add all other L unit strengths here when other units are added L_ARMY_MD = (L_UNITS_IN * IN_PARAM[1] + L_UNITS_AR * AR_PARAM[1] + L_UNITS_HI * HI_PARAM[1] + L_UNITS_CA * CA_PARAM[1] + L_UNITS_CP * CP_PARAM[1]) #add all other L unit DEFENSE here when other units are added L_ARMY_RS = (L_UNITS_IN * IN_PARAM[2] + L_UNITS_AR * AR_PARAM[2] + L_UNITS_HI * HI_PARAM[2] + L_UNITS_CA * CA_PARAM[2] + L_UNITS_CP * CP_PARAM[2]) * BATTLE_R_MULT L_ARMY_RD = (L_UNITS_IN * IN_PARAM[3] + L_UNITS_AR * AR_PARAM[3] + L_UNITS_HI * HI_PARAM[3] + L_UNITS_CA * CA_PARAM[3] + L_UNITS_CP * CP_PARAM[3]) L_ARMY_MS_FACTOR = factorC * (L_ARMY_MS / L_UNITS_TOTAL) + factorD ** (L_ARMY_MS / L_UNITS_TOTAL) L_ARMY_RS_FACTOR = factorC * (L_ARMY_RS / L_UNITS_TOTAL) + factorD ** (L_ARMY_RS / L_UNITS_TOTAL) L_ARMY_PROPERTIES = [L_ARMY_MS, L_ARMY_MD, L_ARMY_RS, L_ARMY_RD, L_ARMY_MS_FACTOR, L_ARMY_RS_FACTOR] else: L_ARMY_PROPERTIES=[0,0,0,0,0,0] if D_UNITS_TOTAL > 0: #calculate updated D army totals D_ARMY_MS = (D_UNITS_GO * GO_PARAM[0] + D_UNITS_OA * OA_PARAM[0] + D_UNITS_OR * OR_PARAM[0] + D_UNITS_WO * WO_PARAM[0] + D_UNITS_TR * TR_PARAM[0]) * BATTLE_M_MULT D_ARMY_MD = (D_UNITS_GO * GO_PARAM[1] + D_UNITS_OA * OA_PARAM[1] + D_UNITS_OR * OR_PARAM[1] + D_UNITS_WO * WO_PARAM[1] + D_UNITS_TR * TR_PARAM[1]) D_ARMY_RS = (D_UNITS_GO * GO_PARAM[2] + D_UNITS_OA * OA_PARAM[2] + D_UNITS_OR * OR_PARAM[2] + D_UNITS_WO * WO_PARAM[2] + D_UNITS_TR * TR_PARAM[2]) * BATTLE_R_MULT D_ARMY_RD = (D_UNITS_GO * GO_PARAM[3] + D_UNITS_OA * OA_PARAM[3] + D_UNITS_OR * OR_PARAM[3] + D_UNITS_WO * WO_PARAM[3] + D_UNITS_TR * TR_PARAM[3]) D_ARMY_MS_FACTOR = factorC * (D_ARMY_MS / D_UNITS_TOTAL) + factorD ** (D_ARMY_MS / D_UNITS_TOTAL) D_ARMY_RS_FACTOR = factorC * (D_ARMY_RS / D_UNITS_TOTAL) + factorD ** (D_ARMY_RS / D_UNITS_TOTAL) D_ARMY_PROPERTIES = [D_ARMY_MS, D_ARMY_MD, D_ARMY_RS, D_ARMY_RD, D_ARMY_MS_FACTOR, D_ARMY_RS_FACTOR] else: D_ARMY_PROPERTIES=[0,0,0,0,0,0] UNITS_TOTAL = [L_UNITS_TOTAL, D_UNITS_TOTAL, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES] return UNITS_TOTAL def disperse(operator, winner, match_id): #calculate winnings where winners get 1.09, loser gets 0.90 and house gets 0.01 SC = importlib.import_module(sc_contract.get()) L_staked_wallets = data[match_id, 'L_staked_wallets'] D_staked_wallets = data[match_id, 'D_staked_wallets'] winner_percent = metadata['winner_percent'] house_percent = metadata['house_percent'] loser_percent = 1 - winner_percent - house_percent if winner == 'L': #send winnings to L army stakers for key, value in dict(L_staked_wallets).items(): SC.transfer(amount=value * (1 + winner_percent) , to=key) SC.transfer(amount= (value * house_percent), to=operator) #make variable for OWNER for key, value in dict(D_staked_wallets).items(): SC.transfer(amount= (value * loser_percent), to=key) if winner == 'D': #send winnings to D army stakers stakers for key, value in dict(D_staked_wallets).items(): SC.transfer(amount=value * (1 + winner_percent), to=key) SC.transfer(amount= (value * house_percent), to=operator) for key, value in dict(L_staked_wallets).items(): SC.transfer(amount= (value * loser_percent), to=key) data[match_id, 'L_staked_wallets'] = {} #clears all staked wallets from storage so a new battle can start data[match_id, 'D_staked_wallets'] = {} data[match_id, 'total_L'] = 0 data[match_id, 'total_D'] = 0 data[match_id, 'players'] = [] data[match_id, 'match_owner'] = None data[match_id, 'terrain'] = None data[match_id, 'L_units'] = {} data[match_id, 'D_units'] = {} @export def stake_L(match_id: str, IN_L: int=0, AR_L: int=0, HI_L: int=0, CA_L: int=0, CP_L: int=0): #check to see if match is private. If public, don't check the list. If private, check to see if the player is on player list. if data[match_id, 'private'] == 1: playerlist = data[match_id, 'players'] assert ctx.caller in playerlist, 'You are not on the list of players for this match. Contact the match creator if you wish to join.' sc_amount = IN_L + AR_L + HI_L + CA_L + CP_L assert sc_amount <= data[match_id, 'max_stake_per'], f"You can only stake up to {data[match_id, 'max_stake_per']} tokens per transaction. Stake less and try again." assert data[match_id, 'total_L'] + sc_amount <= data[match_id, 'battle_size'], f"You are attempting to stake {sc_amount} which is more than the {data[match_id, 'battle_size'] - data[match_id, 'total_L']} remaining to be staked for this battle. Please try again with a smaller number." staked_wallets = data[match_id, 'L_staked_wallets'] SC = importlib.import_module(sc_contract.get()) UNITS_PER_SC = metadata['UNITS_PER_SC'] L_units = data[match_id, 'L_units'] IN_amount = UNITS_PER_SC["IN"] * IN_L AR_amount = UNITS_PER_SC["AR"] * AR_L HI_amount = UNITS_PER_SC["HI"] * HI_L CA_amount = UNITS_PER_SC["CA"] * CA_L CP_amount = UNITS_PER_SC["CP"] * CP_L SC.transfer_from(amount=sc_amount, to=ctx.this, main_account=ctx.caller) if ctx.caller not in staked_wallets: staked_wallets.update({ctx.caller: sc_amount}) else: staked_wallets[ctx.caller] += sc_amount data[match_id, 'L_staked_wallets'] = staked_wallets #adds the staker to the dict for calculating rewards for winners and losers data[match_id, 'total_L'] += sc_amount #adds total SC to storage for calculating rewards L_units['IN'] += IN_amount L_units['AR'] += AR_amount L_units['HI'] += HI_amount L_units['CA'] += CA_amount L_units['CP'] += CP_amount data[match_id, 'L_units'] = L_units @export def stake_D(match_id: str, GO_D: int=0, OA_D: int=0, OR_D: int=0, WO_D: int=0, TR_D: int=0): #check to see if match is private. If public, don't check the list. If private, check to see if the player is on player list. if data[match_id, 'private'] == 1: playerlist = data[match_id, 'players'] assert ctx.caller in playerlist, 'You are not on the list of players for this match. Contact the match creator if you wish to join.' sc_amount = GO_D + OA_D + OR_D + WO_D + TR_D assert sc_amount <= data[match_id, 'max_stake_per'], f"You can only stake up to {data[match_id, 'max_stake_per']} tokens per transaction. Stake less and try again." assert data[match_id, 'total_D'] + sc_amount <= data[match_id, 'battle_size'], f"You are attempting to stake {sc_amount} which is more than the {data[match_id, 'battle_size'] - data[match_id, 'total_D']} remaining to be staked for this battle. Please try again with a smaller number." staked_wallets = data[match_id, 'D_staked_wallets'] SC = importlib.import_module(sc_contract.get()) UNITS_PER_SC = metadata['UNITS_PER_SC'] D_units = data[match_id, 'D_units'] GO_amount = UNITS_PER_SC["GO"] * GO_D OA_amount = UNITS_PER_SC["OA"] * OA_D OR_amount = UNITS_PER_SC["OR"] * OR_D WO_amount = UNITS_PER_SC["WO"] * WO_D TR_amount = UNITS_PER_SC["TR"] * TR_D SC.transfer_from(amount=sc_amount, to=ctx.this, main_account=ctx.caller) if ctx.caller not in staked_wallets: staked_wallets.update({ctx.caller: sc_amount}) else: staked_wallets[ctx.caller] += sc_amount data[match_id, 'D_staked_wallets'] = staked_wallets #adds the staker to the dict for calculating rewards for winners and losers data[match_id, 'total_D'] += sc_amount #adds total SC to storage for calculating rewards D_units['GO'] += GO_amount D_units['OA'] += OA_amount D_units['OR'] += OR_amount D_units['WO'] += WO_amount D_units['TR'] += TR_amount data[match_id, 'D_units'] = D_units @export def new_match(match_id : str, terrain: int, private : bool, battle_size : int = 500, max_stake_per_transaction : int = 500): assert bool(data[match_id, 'match_owner']) == False, "This match has already been created, please create one with a different name." data[match_id, 'match_owner'] = ctx.caller data[match_id, 'private'] = private data[match_id, 'players'] = [ctx.caller] data[match_id, 'terrain'] = terrain data[match_id, 'max_stake_per'] = max_stake_per_transaction data[match_id, 'battle_size'] = battle_size data[match_id, 'L_staked_wallets'] = {} data[match_id, 'D_staked_wallets'] = {} data[match_id, 'L_units'] = { "IN": 0, "AR": 0, "HI": 0, "CA": 0, "CP": 0 } data[match_id, 'D_units'] = { "GO": 0, "OA": 0, "OR": 0, "WO": 0, "TR": 0 } @export def add_players(match_id : str, add1: str='', add2: str='', add3: str='', add4: str=''): assert data[match_id, 'match_owner'] == ctx.caller, 'You are not the match creator and cannot add players to this match.' assert data[match_id, 'private'] == True, 'This is a public game and individual players cannot be added.' addlist = [add1, add2, add3, add4] playerlist = data[match_id, 'players'] for x in addlist: playerlist.append(x) data[match_id, 'players'] = playerlist @export def cancel_match(match_id : str): assert data[match_id, 'match_owner'] == ctx.caller, 'You are not the match creator and cannot cancel this match.' tokens = data[match_id, 'battle_size'] assert tokens > (data[match_id, 'total_L'] + data[match_id, 'total_D']), 'The match is over half full and can no longer be cancelled.' SC = importlib.import_module(sc_contract.get()) L_staked_wallets = data[match_id, 'L_staked_wallets'] D_staked_wallets = data[match_id, 'D_staked_wallets'] for key, value in dict(L_staked_wallets).items(): SC.transfer(amount=value, to=key) for key, value in dict(D_staked_wallets).items(): SC.transfer(amount=value, to=key) data[match_id, 'L_staked_wallets'] = {} #clears all staked wallets from storage so a new battle can start data[match_id, 'D_staked_wallets'] = {} data[match_id, 'total_L'] = 0 data[match_id, 'total_D'] = 0 data[match_id, 'players'] = [] data[match_id, 'match_owner'] = None data[match_id, 'terrain'] = None data[match_id, 'L_units'] = {} data[match_id, 'D_units'] = {} #Add data to store winner for each match, and then add a reset function for only me to run, so I can check balance of factions long term and reset after I update a parameter. @export def reset_stats(): assert ctx.caller == metadata['operator'], "Only the operator can reset statistics." data['L Wins'] = 0 data['D Wins'] = 0 @export def new_conquest(conquest_id : str, grid_size : int, battles_per_day: int, private : bool, battle_size : int = 500): caller = ctx.caller data[conquest_id, 'conquest_owner'] = caller data[conquest_id, 'private'] = private data[conquest_id, 'players'] = [caller] data[conquest_id, 'battle_size'] = battle_size terraindata = ForeignHash(foreign_contract=terrain_contract.get(), foreign_name='metadata') terrains = terraindata['terrains'] grid = [] g = 0 while g < grid_size: grid.append(g) g += 1 for x in grid: y = 0 while y < grid_size: grid[x].append( zone = { 'Owner' : caller, 'Faction' : random.randint(0, 1), # 0 is L and 1 is D 'Units' : { "IN": 0, "AR": 0, "HI": 0, "CA": 0, "CP": 0, "GO": 0, "OA": 0, "OR": 0, "WO": 0, "TR": 0 }, 'Terrain' : terrains[random.randint(1, 5)], }) data[conquest_id , 'map' , x , y ] = grid[x][y] y += 1 x += 1 @export def conquest_test(conquest_id: str, row : int, column : int): zone = data[conquest_id , 'map' , row , column ] data['array_test'] = zone['Faction'] data['array_test2'] = zone['Terrain'] @export def conquest_battle(conquest_id: str, row : int, column : int): #enter row and column of zone you want to attack zone = data[conquest_id , 'map' , row , column ] assert zone['Owner'] != ctx.caller, 'You own this territory and cannot attack it.' zoneup = data[conquest_id , 'map' , row , column - 1] zonedown = data[conquest_id , 'map' , row , column + 1] zoneleft = data[conquest_id , 'map' , row , column - 1] zoneright = data[conquest_id , 'map' , row , column + 1] assert zoneup['Owner'] or zonedown['Owner'] or zoneleft['Owner'] or zoneright['Owner'] == ctx.caller, 'You cannot attack this territory since you do not own an adjacent territory.' #add check to make sure the zone you're attacking is attackable @export def emergency_return(match_id : str): assert ctx.caller == metadata['operator'], "Only the operator can initiate an emergency return of tokens." SC = importlib.import_module(sc_contract.get()) L_staked_wallets = data[match_id, 'L_staked_wallets'] D_staked_wallets = data[match_id, 'D_staked_wallets'] for key, value in dict(L_staked_wallets).items(): SC.transfer(amount=value, to=key) for key, value in dict(D_staked_wallets).items(): SC.transfer(amount=value, to=key) data[match_id, 'L_staked_wallets'] = {} #clears all staked wallets from storage so a new battle can start data[match_id, 'D_staked_wallets'] = {} data[match_id, 'total_L'] = 0 data[match_id, 'total_D'] = 0 data[match_id, 'players'] = [] data[match_id, 'match_owner'] = None data[match_id, 'terrain'] = None data[match_id, 'L_units'] = {} data[match_id, 'D_units'] = {}
metadata = hash() data = hash(default_value=0) sc_contract = variable() unit_contract = variable() terrain_contract = variable() random.seed() @construct def seed(): metadata['operator'] = ctx.caller metadata['winner_percent'] = decimal('0.09') metadata['house_percent'] = decimal('0.01') sc_contract.set('con_silver_credits') unit_contract.set('con_battlefield_units_001') terrain_contract.set('con_battlefield_terrains_001') metadata['UNITS_PER_SC'] = {'IN': 200, 'AR': 91, 'HI': 67, 'CA': 48, 'CP': 24, 'GO': 333, 'OA': 71, 'OR': 100, 'WO': 59, 'TR': 20} data['L Wins'] = 0 data['D Wins'] = 0 @export def update_contract(update_var: str, new_contract: str): assert ctx.caller == metadata['operator'], 'Only the operator update the contracts.' update_var.set(new_contract) @export def change_metadata(key: str, new_value: str, convert_to_decimal: bool=False): assert ctx.caller == metadata['operator'], 'Only the operator can set metadata.' if convert_to_decimal: new_value = decimal(new_value) metadata[key] = new_value @export def battle(match_id: str): if data[match_id, 'private'] == 1: playerlist = data[match_id, 'players'] assert ctx.caller in playerlist, 'You are not on the list of players for this match and cannot start the battle. Contact the match creator if you wish to join.' total_l = data[match_id, 'total_L'] total_d = data[match_id, 'total_D'] assert total_L == total_D and total_L == data[match_id, 'battle_size'], f'There are {total_L} SC and {total_D} SC staked. These must be equal and filled to max capacity for a battle to be initiated.' operator = metadata['operator'] calc = foreign_hash(foreign_contract=unit_contract.get(), foreign_name='param_calc') terraindata = foreign_hash(foreign_contract=terrain_contract.get(), foreign_name='metadata') terrains = terraindata['terrains'] if data[match_id, 'terrain'] == 0: terrain_type = terrains[random.randint(1, 5)] else: terrain_type = terrains[data[match_id, 'terrain']] factor_list = calc['factor_list'] factor_c = factor_list[0] factor_d = factor_list[1] factor_e = factor_list[2] lower = factor_list[3] upper = factor_list[4] multiplier = factor_list[5] str_bonus = factor_list[6] in_param = calc['IN', 'PARAM'] ar_param = calc['AR', 'PARAM'] hi_param = calc['HI', 'PARAM'] ca_param = calc['CA', 'PARAM'] cp_param = calc['CP', 'PARAM'] go_param = calc['GO', 'PARAM'] oa_param = calc['OA', 'PARAM'] or_param = calc['OR', 'PARAM'] wo_param = calc['WO', 'PARAM'] tr_param = calc['TR', 'PARAM'] l_units = data[match_id, 'L_units'] IN_PARAM[6] = L_units['IN'] AR_PARAM[6] = L_units['AR'] HI_PARAM[6] = L_units['HI'] CA_PARAM[6] = L_units['CA'] CP_PARAM[6] = L_units['CP'] d_units = data[match_id, 'D_units'] GO_PARAM[6] = D_units['GO'] OA_PARAM[6] = D_units['OA'] OR_PARAM[6] = D_units['OR'] WO_PARAM[6] = D_units['WO'] TR_PARAM[6] = D_units['TR'] battle_turn = 0 terrain_ = importlib.import_module(terrain_contract.get()) battle_mult = terrain_.battle_mult_update(terrain_type=terrain_type, battle_turn=battle_turn) units_total = calc_army_update(factorC, factorD, battle_mult[0], battle_mult[1], IN_PARAM, AR_PARAM, HI_PARAM, CA_PARAM, CP_PARAM, GO_PARAM, OA_PARAM, OR_PARAM, WO_PARAM, TR_PARAM) while UNITS_TOTAL[0] > 0 and UNITS_TOTAL[1] > 0: battle_mult = terrain_.battle_mult_update(terrain_type=terrain_type, battle_turn=battle_turn) l_army_properties = UNITS_TOTAL[2] d_army_properties = UNITS_TOTAL[3] in_count = IN_PARAM[6] ar_count = AR_PARAM[6] hi_count = HI_PARAM[6] ca_count = CA_PARAM[6] cp_count = CP_PARAM[6] go_count = GO_PARAM[6] oa_count = OA_PARAM[6] or_count = OR_PARAM[6] wo_count = WO_PARAM[6] tr_count = TR_PARAM[6] if IN_PARAM[6] > 0: IN_PARAM[6] = calc_losses(IN_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], GO_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if AR_PARAM[6] > 0: AR_PARAM[6] = calc_losses(AR_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], OR_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if HI_PARAM[6] > 0: HI_PARAM[6] = calc_losses(HI_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], WO_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if CA_PARAM[6] > 0: CA_PARAM[6] = calc_losses(CA_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], OA_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if CP_PARAM[6] > 0: CP_PARAM[6] = calc_losses(CP_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], TR_COUNT, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES) if GO_PARAM[6] > 0: GO_PARAM[6] = calc_losses(GO_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], HI_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) if OA_PARAM[6] > 0: OA_PARAM[6] = calc_losses(OA_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], IN_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) if OR_PARAM[6] > 0: OR_PARAM[6] = calc_losses(OR_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], CP_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) if WO_PARAM[6] > 0: WO_PARAM[6] = calc_losses(WO_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], AR_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) if TR_PARAM[6] > 0: TR_PARAM[6] = calc_losses(TR_PARAM, factorE, multiplier, lower, upper, STR_bonus, battle_mult[0], battle_mult[1], CA_COUNT, D_ARMY_PROPERTIES, L_ARMY_PROPERTIES) units_total = calc_army_update(factorC, factorD, battle_mult[0], battle_mult[1], IN_PARAM, AR_PARAM, HI_PARAM, CA_PARAM, CP_PARAM, GO_PARAM, OA_PARAM, OR_PARAM, WO_PARAM, TR_PARAM) battle_turn += 1 if UNITS_TOTAL[0] > 0 and UNITS_TOTAL[1] <= 0: winner = 'L' data['L Wins'] += 1 elif UNITS_TOTAL[1] > 0 and UNITS_TOTAL[0] <= 0: winner = 'D' data['D Wins'] += 1 else: winner = 'error' data['Battle_Results'] = f'There are {int(IN_PARAM[6])} infantry, {int(AR_PARAM[6])} archers, {int(HI_PARAM[6])} heavy infantry, {int(CA_PARAM[6])} cavalry, {int(CP_PARAM[6])} catapults remaining in the LIGHT army, and there are {int(GO_PARAM[6])} goblins, {int(OA_PARAM[6])} orc archers, {int(OR_PARAM[6])} orcs, {int(WO_PARAM[6])} wolves, {int(TR_PARAM[6])} trolls remaining in the DARK army.' disperse(operator, winner, match_id) data['total_turns'] = battle_turn def calc_losses(unit_param, factorE, multiplier, lower, upper, STR_bonus, BATTLE_M_MULT, BATTLE_R_MULT, weakness_count, faction_unit_list, faction_other_list): unit_update = (100 - (factorE ** ((faction_other_list[0] - faction_unit_list[1] + STR_bonus * BATTLE_M_MULT * (unit_param[7] * weakness_count)) / faction_unit_list[1] * random.randint(lower, upper) * faction_other_list[4] - unit_param[4]) + factorE ** ((faction_other_list[2] - faction_unit_list[3] + STR_bonus * BATTLE_R_MULT * (unit_param[8] * weakness_count)) / faction_unit_list[3] * random.randint(lower, upper) * faction_other_list[5] - unit_param[5])) * multiplier) / 100 * unit_param[6] if unit_update < 0: unit_update = 0 return unit_update def calc_army_update(factorC, factorD, BATTLE_M_MULT, BATTLE_R_MULT, IN_PARAM, AR_PARAM, HI_PARAM, CA_PARAM, CP_PARAM, GO_PARAM, OA_PARAM, OR_PARAM, WO_PARAM, TR_PARAM): l_units_in = IN_PARAM[6] l_units_ar = AR_PARAM[6] l_units_hi = HI_PARAM[6] l_units_ca = CA_PARAM[6] l_units_cp = CP_PARAM[6] d_units_go = GO_PARAM[6] d_units_oa = OA_PARAM[6] d_units_or = OR_PARAM[6] d_units_wo = WO_PARAM[6] d_units_tr = TR_PARAM[6] l_units_total = L_UNITS_IN + L_UNITS_AR + L_UNITS_HI + L_UNITS_CA + L_UNITS_CP d_units_total = D_UNITS_GO + D_UNITS_OA + D_UNITS_OR + D_UNITS_WO + D_UNITS_TR if L_UNITS_TOTAL > 0: l_army_ms = (L_UNITS_IN * IN_PARAM[0] + L_UNITS_AR * AR_PARAM[0] + L_UNITS_HI * HI_PARAM[0] + L_UNITS_CA * CA_PARAM[0] + L_UNITS_CP * CP_PARAM[0]) * BATTLE_M_MULT l_army_md = L_UNITS_IN * IN_PARAM[1] + L_UNITS_AR * AR_PARAM[1] + L_UNITS_HI * HI_PARAM[1] + L_UNITS_CA * CA_PARAM[1] + L_UNITS_CP * CP_PARAM[1] l_army_rs = (L_UNITS_IN * IN_PARAM[2] + L_UNITS_AR * AR_PARAM[2] + L_UNITS_HI * HI_PARAM[2] + L_UNITS_CA * CA_PARAM[2] + L_UNITS_CP * CP_PARAM[2]) * BATTLE_R_MULT l_army_rd = L_UNITS_IN * IN_PARAM[3] + L_UNITS_AR * AR_PARAM[3] + L_UNITS_HI * HI_PARAM[3] + L_UNITS_CA * CA_PARAM[3] + L_UNITS_CP * CP_PARAM[3] l_army_ms_factor = factorC * (L_ARMY_MS / L_UNITS_TOTAL) + factorD ** (L_ARMY_MS / L_UNITS_TOTAL) l_army_rs_factor = factorC * (L_ARMY_RS / L_UNITS_TOTAL) + factorD ** (L_ARMY_RS / L_UNITS_TOTAL) l_army_properties = [L_ARMY_MS, L_ARMY_MD, L_ARMY_RS, L_ARMY_RD, L_ARMY_MS_FACTOR, L_ARMY_RS_FACTOR] else: l_army_properties = [0, 0, 0, 0, 0, 0] if D_UNITS_TOTAL > 0: d_army_ms = (D_UNITS_GO * GO_PARAM[0] + D_UNITS_OA * OA_PARAM[0] + D_UNITS_OR * OR_PARAM[0] + D_UNITS_WO * WO_PARAM[0] + D_UNITS_TR * TR_PARAM[0]) * BATTLE_M_MULT d_army_md = D_UNITS_GO * GO_PARAM[1] + D_UNITS_OA * OA_PARAM[1] + D_UNITS_OR * OR_PARAM[1] + D_UNITS_WO * WO_PARAM[1] + D_UNITS_TR * TR_PARAM[1] d_army_rs = (D_UNITS_GO * GO_PARAM[2] + D_UNITS_OA * OA_PARAM[2] + D_UNITS_OR * OR_PARAM[2] + D_UNITS_WO * WO_PARAM[2] + D_UNITS_TR * TR_PARAM[2]) * BATTLE_R_MULT d_army_rd = D_UNITS_GO * GO_PARAM[3] + D_UNITS_OA * OA_PARAM[3] + D_UNITS_OR * OR_PARAM[3] + D_UNITS_WO * WO_PARAM[3] + D_UNITS_TR * TR_PARAM[3] d_army_ms_factor = factorC * (D_ARMY_MS / D_UNITS_TOTAL) + factorD ** (D_ARMY_MS / D_UNITS_TOTAL) d_army_rs_factor = factorC * (D_ARMY_RS / D_UNITS_TOTAL) + factorD ** (D_ARMY_RS / D_UNITS_TOTAL) d_army_properties = [D_ARMY_MS, D_ARMY_MD, D_ARMY_RS, D_ARMY_RD, D_ARMY_MS_FACTOR, D_ARMY_RS_FACTOR] else: d_army_properties = [0, 0, 0, 0, 0, 0] units_total = [L_UNITS_TOTAL, D_UNITS_TOTAL, L_ARMY_PROPERTIES, D_ARMY_PROPERTIES] return UNITS_TOTAL def disperse(operator, winner, match_id): sc = importlib.import_module(sc_contract.get()) l_staked_wallets = data[match_id, 'L_staked_wallets'] d_staked_wallets = data[match_id, 'D_staked_wallets'] winner_percent = metadata['winner_percent'] house_percent = metadata['house_percent'] loser_percent = 1 - winner_percent - house_percent if winner == 'L': for (key, value) in dict(L_staked_wallets).items(): SC.transfer(amount=value * (1 + winner_percent), to=key) SC.transfer(amount=value * house_percent, to=operator) for (key, value) in dict(D_staked_wallets).items(): SC.transfer(amount=value * loser_percent, to=key) if winner == 'D': for (key, value) in dict(D_staked_wallets).items(): SC.transfer(amount=value * (1 + winner_percent), to=key) SC.transfer(amount=value * house_percent, to=operator) for (key, value) in dict(L_staked_wallets).items(): SC.transfer(amount=value * loser_percent, to=key) data[match_id, 'L_staked_wallets'] = {} data[match_id, 'D_staked_wallets'] = {} data[match_id, 'total_L'] = 0 data[match_id, 'total_D'] = 0 data[match_id, 'players'] = [] data[match_id, 'match_owner'] = None data[match_id, 'terrain'] = None data[match_id, 'L_units'] = {} data[match_id, 'D_units'] = {} @export def stake_l(match_id: str, IN_L: int=0, AR_L: int=0, HI_L: int=0, CA_L: int=0, CP_L: int=0): if data[match_id, 'private'] == 1: playerlist = data[match_id, 'players'] assert ctx.caller in playerlist, 'You are not on the list of players for this match. Contact the match creator if you wish to join.' sc_amount = IN_L + AR_L + HI_L + CA_L + CP_L assert sc_amount <= data[match_id, 'max_stake_per'], f"You can only stake up to {data[match_id, 'max_stake_per']} tokens per transaction. Stake less and try again." assert data[match_id, 'total_L'] + sc_amount <= data[match_id, 'battle_size'], f"You are attempting to stake {sc_amount} which is more than the {data[match_id, 'battle_size'] - data[match_id, 'total_L']} remaining to be staked for this battle. Please try again with a smaller number." staked_wallets = data[match_id, 'L_staked_wallets'] sc = importlib.import_module(sc_contract.get()) units_per_sc = metadata['UNITS_PER_SC'] l_units = data[match_id, 'L_units'] in_amount = UNITS_PER_SC['IN'] * IN_L ar_amount = UNITS_PER_SC['AR'] * AR_L hi_amount = UNITS_PER_SC['HI'] * HI_L ca_amount = UNITS_PER_SC['CA'] * CA_L cp_amount = UNITS_PER_SC['CP'] * CP_L SC.transfer_from(amount=sc_amount, to=ctx.this, main_account=ctx.caller) if ctx.caller not in staked_wallets: staked_wallets.update({ctx.caller: sc_amount}) else: staked_wallets[ctx.caller] += sc_amount data[match_id, 'L_staked_wallets'] = staked_wallets data[match_id, 'total_L'] += sc_amount L_units['IN'] += IN_amount L_units['AR'] += AR_amount L_units['HI'] += HI_amount L_units['CA'] += CA_amount L_units['CP'] += CP_amount data[match_id, 'L_units'] = L_units @export def stake_d(match_id: str, GO_D: int=0, OA_D: int=0, OR_D: int=0, WO_D: int=0, TR_D: int=0): if data[match_id, 'private'] == 1: playerlist = data[match_id, 'players'] assert ctx.caller in playerlist, 'You are not on the list of players for this match. Contact the match creator if you wish to join.' sc_amount = GO_D + OA_D + OR_D + WO_D + TR_D assert sc_amount <= data[match_id, 'max_stake_per'], f"You can only stake up to {data[match_id, 'max_stake_per']} tokens per transaction. Stake less and try again." assert data[match_id, 'total_D'] + sc_amount <= data[match_id, 'battle_size'], f"You are attempting to stake {sc_amount} which is more than the {data[match_id, 'battle_size'] - data[match_id, 'total_D']} remaining to be staked for this battle. Please try again with a smaller number." staked_wallets = data[match_id, 'D_staked_wallets'] sc = importlib.import_module(sc_contract.get()) units_per_sc = metadata['UNITS_PER_SC'] d_units = data[match_id, 'D_units'] go_amount = UNITS_PER_SC['GO'] * GO_D oa_amount = UNITS_PER_SC['OA'] * OA_D or_amount = UNITS_PER_SC['OR'] * OR_D wo_amount = UNITS_PER_SC['WO'] * WO_D tr_amount = UNITS_PER_SC['TR'] * TR_D SC.transfer_from(amount=sc_amount, to=ctx.this, main_account=ctx.caller) if ctx.caller not in staked_wallets: staked_wallets.update({ctx.caller: sc_amount}) else: staked_wallets[ctx.caller] += sc_amount data[match_id, 'D_staked_wallets'] = staked_wallets data[match_id, 'total_D'] += sc_amount D_units['GO'] += GO_amount D_units['OA'] += OA_amount D_units['OR'] += OR_amount D_units['WO'] += WO_amount D_units['TR'] += TR_amount data[match_id, 'D_units'] = D_units @export def new_match(match_id: str, terrain: int, private: bool, battle_size: int=500, max_stake_per_transaction: int=500): assert bool(data[match_id, 'match_owner']) == False, 'This match has already been created, please create one with a different name.' data[match_id, 'match_owner'] = ctx.caller data[match_id, 'private'] = private data[match_id, 'players'] = [ctx.caller] data[match_id, 'terrain'] = terrain data[match_id, 'max_stake_per'] = max_stake_per_transaction data[match_id, 'battle_size'] = battle_size data[match_id, 'L_staked_wallets'] = {} data[match_id, 'D_staked_wallets'] = {} data[match_id, 'L_units'] = {'IN': 0, 'AR': 0, 'HI': 0, 'CA': 0, 'CP': 0} data[match_id, 'D_units'] = {'GO': 0, 'OA': 0, 'OR': 0, 'WO': 0, 'TR': 0} @export def add_players(match_id: str, add1: str='', add2: str='', add3: str='', add4: str=''): assert data[match_id, 'match_owner'] == ctx.caller, 'You are not the match creator and cannot add players to this match.' assert data[match_id, 'private'] == True, 'This is a public game and individual players cannot be added.' addlist = [add1, add2, add3, add4] playerlist = data[match_id, 'players'] for x in addlist: playerlist.append(x) data[match_id, 'players'] = playerlist @export def cancel_match(match_id: str): assert data[match_id, 'match_owner'] == ctx.caller, 'You are not the match creator and cannot cancel this match.' tokens = data[match_id, 'battle_size'] assert tokens > data[match_id, 'total_L'] + data[match_id, 'total_D'], 'The match is over half full and can no longer be cancelled.' sc = importlib.import_module(sc_contract.get()) l_staked_wallets = data[match_id, 'L_staked_wallets'] d_staked_wallets = data[match_id, 'D_staked_wallets'] for (key, value) in dict(L_staked_wallets).items(): SC.transfer(amount=value, to=key) for (key, value) in dict(D_staked_wallets).items(): SC.transfer(amount=value, to=key) data[match_id, 'L_staked_wallets'] = {} data[match_id, 'D_staked_wallets'] = {} data[match_id, 'total_L'] = 0 data[match_id, 'total_D'] = 0 data[match_id, 'players'] = [] data[match_id, 'match_owner'] = None data[match_id, 'terrain'] = None data[match_id, 'L_units'] = {} data[match_id, 'D_units'] = {} @export def reset_stats(): assert ctx.caller == metadata['operator'], 'Only the operator can reset statistics.' data['L Wins'] = 0 data['D Wins'] = 0 @export def new_conquest(conquest_id: str, grid_size: int, battles_per_day: int, private: bool, battle_size: int=500): caller = ctx.caller data[conquest_id, 'conquest_owner'] = caller data[conquest_id, 'private'] = private data[conquest_id, 'players'] = [caller] data[conquest_id, 'battle_size'] = battle_size terraindata = foreign_hash(foreign_contract=terrain_contract.get(), foreign_name='metadata') terrains = terraindata['terrains'] grid = [] g = 0 while g < grid_size: grid.append(g) g += 1 for x in grid: y = 0 while y < grid_size: grid[x].append(zone={'Owner': caller, 'Faction': random.randint(0, 1), 'Units': {'IN': 0, 'AR': 0, 'HI': 0, 'CA': 0, 'CP': 0, 'GO': 0, 'OA': 0, 'OR': 0, 'WO': 0, 'TR': 0}, 'Terrain': terrains[random.randint(1, 5)]}) data[conquest_id, 'map', x, y] = grid[x][y] y += 1 x += 1 @export def conquest_test(conquest_id: str, row: int, column: int): zone = data[conquest_id, 'map', row, column] data['array_test'] = zone['Faction'] data['array_test2'] = zone['Terrain'] @export def conquest_battle(conquest_id: str, row: int, column: int): zone = data[conquest_id, 'map', row, column] assert zone['Owner'] != ctx.caller, 'You own this territory and cannot attack it.' zoneup = data[conquest_id, 'map', row, column - 1] zonedown = data[conquest_id, 'map', row, column + 1] zoneleft = data[conquest_id, 'map', row, column - 1] zoneright = data[conquest_id, 'map', row, column + 1] assert zoneup['Owner'] or zonedown['Owner'] or zoneleft['Owner'] or (zoneright['Owner'] == ctx.caller), 'You cannot attack this territory since you do not own an adjacent territory.' @export def emergency_return(match_id: str): assert ctx.caller == metadata['operator'], 'Only the operator can initiate an emergency return of tokens.' sc = importlib.import_module(sc_contract.get()) l_staked_wallets = data[match_id, 'L_staked_wallets'] d_staked_wallets = data[match_id, 'D_staked_wallets'] for (key, value) in dict(L_staked_wallets).items(): SC.transfer(amount=value, to=key) for (key, value) in dict(D_staked_wallets).items(): SC.transfer(amount=value, to=key) data[match_id, 'L_staked_wallets'] = {} data[match_id, 'D_staked_wallets'] = {} data[match_id, 'total_L'] = 0 data[match_id, 'total_D'] = 0 data[match_id, 'players'] = [] data[match_id, 'match_owner'] = None data[match_id, 'terrain'] = None data[match_id, 'L_units'] = {} data[match_id, 'D_units'] = {}
def tic_tac_toe(): board = [1, 2, 3, 4, 5, 6, 7, 8, 9] end = False win_commbinations = ((0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)) def draw(): print(board[0], board[1], board[2]) print(board[3], board[4], board[5]) print(board[6], board[7], board[8]) print() def p1(): n = choose_number() if board[n] == "X" or board[n] == "O": print("\nYou can't go there. Try again") p1() else: board[n] = "X" def p2(): n = choose_number() if board[n] == "X" or board[n] == "O": print("\nYou can't go there. Try again") p2() else: board[n] = "O" def choose_number(): while True: while True: a = input() try: a = int(a) a -= 1 if a in range(0, 9): return a else: print("\nThat's not on the board. Try again") continue except ValueError: print("\nThat's not a number. Try again") continue def check_board(): count = 0 for a in win_commbinations: if board[a[0]] == board[a[1]] == board[a[2]] == "X": print("Player 1 Wins!\n") print("Congratulations!\n") return True if board[a[0]] == board[a[1]] == board[a[2]] == "O": print("Player 2 Wins!\n") print("Congratulations!\n") return True for a in range(9): if board[a] == "X" or board[a] == "O": count += 1 if count == 9: print("The game ends in a Tie\n") return True while not end: draw() end = check_board() if end == True: break print("Player 1 choose where to place a cross") p1() print() draw() end = check_board() if end == True: break print("Player 2 choose where to place a nought") p2() print() if input("Play again (y/n)\n") == "y": print() tic_tac_toe() tic_tac_toe()
def tic_tac_toe(): board = [1, 2, 3, 4, 5, 6, 7, 8, 9] end = False win_commbinations = ((0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)) def draw(): print(board[0], board[1], board[2]) print(board[3], board[4], board[5]) print(board[6], board[7], board[8]) print() def p1(): n = choose_number() if board[n] == 'X' or board[n] == 'O': print("\nYou can't go there. Try again") p1() else: board[n] = 'X' def p2(): n = choose_number() if board[n] == 'X' or board[n] == 'O': print("\nYou can't go there. Try again") p2() else: board[n] = 'O' def choose_number(): while True: while True: a = input() try: a = int(a) a -= 1 if a in range(0, 9): return a else: print("\nThat's not on the board. Try again") continue except ValueError: print("\nThat's not a number. Try again") continue def check_board(): count = 0 for a in win_commbinations: if board[a[0]] == board[a[1]] == board[a[2]] == 'X': print('Player 1 Wins!\n') print('Congratulations!\n') return True if board[a[0]] == board[a[1]] == board[a[2]] == 'O': print('Player 2 Wins!\n') print('Congratulations!\n') return True for a in range(9): if board[a] == 'X' or board[a] == 'O': count += 1 if count == 9: print('The game ends in a Tie\n') return True while not end: draw() end = check_board() if end == True: break print('Player 1 choose where to place a cross') p1() print() draw() end = check_board() if end == True: break print('Player 2 choose where to place a nought') p2() print() if input('Play again (y/n)\n') == 'y': print() tic_tac_toe() tic_tac_toe()
# This is the library where we store the value of the different constants # In order to use this library do: # import units_library as UL # U = UL.units() # kpc = U.kpc_cm class units: def __init__(self): self.rho_crit = 2.77536627e11 #h^2 Msun/Mpc^3 self.c_kms = 3e5 #km/s self.Mpc_cm = 3.0856e24 #cm self.kpc_cm = 3.0856e21 #cm self.Msun_g = 1.989e33 #g self.Ymass = 0.24 #helium mass fraction self.mH_g = 1.6726e-24 #proton mass in grams self.yr_s = 3.15576e7 #seconds self.km_cm = 1e5 #cm self.kB = 1.3806e-26 #gr (km/s)^2 K^{-1} self.nu0_MHz = 1420.0 #21-cm frequency in MHz
class Units: def __init__(self): self.rho_crit = 277536627000.0 self.c_kms = 300000.0 self.Mpc_cm = 3.0856e+24 self.kpc_cm = 3.0856e+21 self.Msun_g = 1.989e+33 self.Ymass = 0.24 self.mH_g = 1.6726e-24 self.yr_s = 31557600.0 self.km_cm = 100000.0 self.kB = 1.3806e-26 self.nu0_MHz = 1420.0
def get_transporter(configuration): transporter_module = configuration.get_module_transporter() transporter_configuration = configuration.get_configuration() return transporter_module.get_transporter(transporter_configuration)
def get_transporter(configuration): transporter_module = configuration.get_module_transporter() transporter_configuration = configuration.get_configuration() return transporter_module.get_transporter(transporter_configuration)
def LCSlength(X, Y, lx, ly): # Parameters are the two strings and their lengths if lx == 0 or ly == 0: return 0 if X[lx - 1] == Y[ly - 1]: return LCSlength(X, Y, lx - 1, ly - 1) + 1 return max(LCSlength(X, Y, lx - 1, ly), LCSlength(X, Y, lx, ly - 1)) print("Enter the first string : \n") X = input() print("Enter the second string: \n") Y = input() print("The length of the LCS is : {}".format(LCSlength(X, Y, len(X), len(Y)))) # This solution has a time complexity of o(2^(lx+ly)) # Also, this LCS problem has overlapping subproblems
def lc_slength(X, Y, lx, ly): if lx == 0 or ly == 0: return 0 if X[lx - 1] == Y[ly - 1]: return lc_slength(X, Y, lx - 1, ly - 1) + 1 return max(lc_slength(X, Y, lx - 1, ly), lc_slength(X, Y, lx, ly - 1)) print('Enter the first string : \n') x = input() print('Enter the second string: \n') y = input() print('The length of the LCS is : {}'.format(lc_slength(X, Y, len(X), len(Y))))
def areRotations(someString, someSubstring): tempString = 2 * someString return tempString.find(someSubstring, 0, len(tempString)) print(areRotations("AACD", "ACDA")) print(areRotations("AACD", "AADC"))
def are_rotations(someString, someSubstring): temp_string = 2 * someString return tempString.find(someSubstring, 0, len(tempString)) print(are_rotations('AACD', 'ACDA')) print(are_rotations('AACD', 'AADC'))
m= ["qzbw", "qez", ],[ "xgedfibnyuhqsrazlwtpocj", "fxgpoqijdzybletckwaunsr", "pwnqsizrfcbyljexgouatd", "ljtperqsodghnufiycxwabz", ],[ "uk", "kupacjlriv", "dku", "qunk", ],[ "yjnprofmcuhdlawt", "frmhulyncvweatodzjp", "fhadtrcyjzwlnpumo", "hrcutablndyjpfmwo", ],[ "rdclv", "lrvdc", "crldv", "dvrcl", "vrlcd", ],[ "dqrwajpb", "asrfpdjwbq", "wjdtarq", ],[ "nalkhgoi", "bmiad", "sdvpiyerma", "ami", ],[ "smg", "wlmdftcr", "mk", "my", ],[ "ebaxsun", "uaxnebs", "suxnbea", "eanxusb", "aexusnb", ],[ "zoxegrfd", "qorjv", "oqr", "vor", "roq", ],[ "jpasdnrcvhglft", "dgkstavnhjrclfx", "crtndjglfvwahq", "hjclinvdtagrkf", "gjfcdtuhlanvr", ],[ "exiopqbgrj", "undhwyfkvltis", ],[ "npsxwlyog", "udylki", ],[ "bnuwck", "nuack", ],[ "cahpwtlozkm", "ghnpzfqmoxabi", ],[ "hvwgxesraocbpnf", "ewvranqcpbghoxf", "paxfnwoegrhcvub", "qbrawpfscexngvho", "ahpxognlrvebwfc", ],[ "agqmwpvlb", "waklrnbqyp", "blquawtp", "qltabwp", ],[ "rymhgolkustipjxbzqnafe", "frzqjiuktbsxmahdepylg", ],[ "zricqdofygvtbsjmeu", "vudjctzynegboiafqmrsx", "rsbefoytcqgiuvzdjm", "zucobitsgyjrfqemvd", ],[ "y", "yc", "tg", "lavoqef", "by", ],[ "fevykin", "wxytrhqk", ],[ "pxbclzknowyq", "lybwkpcoqxn", "oknlpbxcyqw", ],[ "l", "f", "gixvd", ],[ "unogwsfavzkhi", "siohufnkzgavw", "ahitunswfvkzog", "gvhknzuaisfow", "ukasozfihnwgv", ],[ "ulhgwo", "ghluo", "ogulh", "oughl", "lphuog", ],[ "nike", "bkn", ],[ "gefzwrdjsqx", "fegzsjwxrpqh", ],[ "lfknweboxyrpajmig", "gkpafnieojybrwl", "iafesdyulrkpgnwbjo", ],[ "zjoiqtgpwxdach", "iajdhqucpxtzgl", ],[ "yhav", "vnshac", "hcav", "hvw", "cyvh", ],[ "hwz", "whz", ],[ "dhunracmzksvxopjgtbqi", "vqhpowubyzirdksmgca", ],[ "ckrhefz", "rkvexdfzcbh", "heczkrf", ],[ "rbsldt", "qgr", ],[ "a", "ea", "a", ],[ "wnadxkgehtpsv", "gwnexkavshpd", "bfkdpansvhewxg", "kvtwdnsahpxge", "xnhdpvekwgsa", ],[ "ydajvctr", "drcejtgin", ],[ "kw", "cbmj", "l", "t", "n", ],[ "gyzlnp", "zahsyu", "rek", ],[ "vjdmhsorqw", "whdjoqvrms", "rhsjqdmov", "omdsqjrzhv", ],[ "rcxsgnluhtqey", "ldejuqpykrtc", ],[ "rylcqxt", "wlgtzyrcf", "yrltc", "rclpyt", ],[ "frke", "kfe", ],[ "nchvxtqarsejld", "rkhntaexcbqljod", "qhdepzrxljtifcan", ],[ "uyfshgxzbqvrdwintjlmec", "oyrvdwtgeczsfbmluqih", "kabdlqytwgfrhmuevczpsi", ],[ "guwmkrfyex", "fxekmrygwu", "wfgremukiyx", "aywegkrmxufl", "wukygimrxfe", ],[ "m", "m", "m", "m", "m", ],[ "hbgnkqe", "khgn", ],[ "hngypzmd", "oixyanpdg", ],[ "qbdklpvhjaeif", "kzaiglyjfpmeurn", ],[ "ynsm", "smjn", "nsyum", ],[ "mpcztqkydxifv", "zdqfvxtmpcyk", "zkcmxfpqvydt", "yopktfnqrmvxdczw", "mdckxypvztqf", ],[ "va", "bvhg", ],[ "fe", "ef", ],[ "n", "hpmqn", "n", "dn", ],[ "njxazhtevsmlir", "txmsijvaezwn", "tezacmwsvinxj", ],[ "gvzpbmeijyhaukflcrdqw", "sivlhgumyzkdrjfeoxqtc", ],[ "ouq", "h", ],[ "csxewy", "kxoscmw", "ucnvwsxg", "hfocysxmiwe", "wcsmx", ],[ "retcxugsdwjnykm", "sfhudnxoqwjktyzarc", "rklvinxudpsbywtjc", ],[ "cwfizpyguatbodsqemxrjknlv", "ujikxwsmntcloyqgaebrzfdvp", "jreyubofkpdnzsimxwvgaqtlc", "nuewfvmlidsatzqbkcjgorpyx", ],[ "ycqolubpktxwshegafvm", "djnlhafsreuzgxkb", ],[ "odasxjtqcepgrzl", "jsoelxpqgtczam", "qiajrhesdzoxfplcgt", ],[ "vnthkurzf", "bnfpqutvekra", ],[ "gujxqsnitohp", "tchxqjgoiu", ],[ "hgparlm", "mjxghlqzp", "fmlpahcg", ],[ "deptkcyasiwgfonv", "ptqufxjhcyglrzdov", ],[ "awnxeshvrbcjm", "xreswnhbcmvja", "axvwnsejrmbhc", "xajcmrnevhwbs", "sjxhcbearmwnv", ],[ "woystmzcbgrljqhxdiukn", "mzhlbgcwjusnortdqky", "tunrjlzmqosygbwhkcd", ],[ "agh", "ahg", "agh", "hga", "hag", ],[ "cmzkthbquilgwypreno", "tsmezpqlwkhrcginuo", "gmniotwlpzyqceukrh", "wztuikrglhqocnpme", "ekqchwogpliumrtzn", ],[ "jqadntioypevlwcksmb", "hymnfzcvtdaxsekrqijo", "dvqmgiacknyoesjt", ],[ "cdnbkfzev", "bfvdwcezk", "kzeblcdvf", "vfdkneczb", "fdeovjczystkib", ],[ "rzc", "pma", "zwvx", "zyrlt", ],[ "lmwvudafhnczxibsgpjkreoq", "durlgqhmvpxofsiejwcbkzan", "mieraklxftswzjbuocndvpqghy", ],[ "qlaxkbf", "rfhyxtbkseaq", "bxkqaf", "fkxbaqn", ],[ "lpntzrufvskoqciaxhedw", "arsztnpofkxcqudilhewv", "srvlzcujywkenimafhtoqxp", ],[ "snxwjqapfo", "nwsfqxpajo", "npfqjowaxs", "opjfxanwqs", "sjaonwxqpf", ],[ "cswjquxv", "uyecrkg", "ufjcl", ],[ "qjvzl", "jvqzl", "lzjqv", "qlvjz", ],[ "h", "h", ],[ "mprvotcsgadybjfkqehz", "bjsordtucqlgkhfzvepy", "fsoqijpvhgkczybrted", "yzsgkfhvcbjpeqtrdo", "cjzdvkprbheysmofgqt", ],[ "jzontimefb", "ldorvefxuatpj", ],[ "i", "xi", ],[ "zhtkdvl", "pchznv", "jmryxuwgazvfh", "lkdevczh", ],[ "subt", "utsb", "fsuobt", "jutsb", "utbjs", ],[ "n", "n", "n", "dnk", ],[ "qkrfv", "fqgvkseut", "qvrfk", ],[ "w", "x", "n", "n", ],[ "mkpoyfrngtwdcjlv", "yprcuimjsz", "rcyjzxphm", "pjecrmyx", "ipyramcqj", ],[ "puwnzsohkv", "nsohwkuzvp", "upnhokswvzx", ],[ "rmvjwzhx", "kpxhqevglom", "mzxfhbv", "mhwjitfrvnx", "mcusxhvwj", ],[ "vipkgth", "oskhetgp", "zlqhnbdjwgurxapc", ],[ "vn", "vna", "gwvdn", ],[ "rugcbipvzow", "uogrzcvpbwi", ],[ "jwxuc", "krngvmypl", "jwxzi", "qashtbedfco", ],[ "bzfyl", "yzflb", "fylbz", "lyfzb", "ylfbz", ],[ "uhkvb", "kjhulb", "vbkhu", ],[ "andlzobvguqsk", "nkgvqlzbu", "klbiezughvmxnrt", "bunkzgljvf", "yvkgjpwzubln", ],[ "t", "t", ],[ "bdrjpavtiqlhxuw", "pjmzbxidrtulcfw", ],[ "wqylp", "mrhgfxsjcaltonedv", "ywbkul", "ikl", ],[ "hxpivszmbaodecnlurq", "cedlpnibqmwxaghrszou", "hunbrdzpsxleaitmqyco", ],[ "pymewobv", "veazgoy", "yvoxle", "youfveix", "syegdvo", ],[ "ogceirlsaqjtmvzdx", "rtsaijxocelmzgdvq", "dvrqjxizmgscteoal", ],[ "jeupkmhcydwaz", "daykzechjpwmu", "umkaejhwydpzc", "aywkjphdzeucm", "ypdchmujekazw", ],[ "suzacvgjnoi", "evgsufjaitn", "rqeanjskxbvfgiwu", "dknubsaxgvji", ],[ "ojxfyetcpdbglmwqunrsi", "fjletcbrdsnviogpxwuq", "jcgprswxiaefdqnotlub", "zfgjewrpldsioxcqntub", "nxcgewpqolibrktujsfd", ],[ "vwh", "hjvw", "hvjw", "hvwr", "vhw", ],[ "md", "m", "m", "m", ],[ "xkpu", "izfmrosjbd", "eywqt", "xgak", "hgn", ],[ "layhskgxrpfnwqmdj", "mlsxywoakrectnzgqdjf", "fbsxnmuikqwrljgv", ],[ "rhcn", "lon", "dln", "pban", "nhd", ],[ "uxwhl", "hx", ],[ "aesduycrgfmhjblnkzt", "jktlhwqioepzgcbnmda", ],[ "tbhfongxiudcrv", "rqoyfnuxabjekl", ],[ "ajd", "wjdmak", "jda", "jad", ],[ "ghimtjly", "hjtgilm", "ghixmjtpal", "jtmhilg", "imhgtjluo", ],[ "ewpfam", "epmwa", "epwma", "ewamp", ],[ "cslywuzkdg", "jfluyxgbsma", "ugysbl", "ytlqgaus", "hsufgloxyr", ],[ "eigjpobrlxnasvhquwy", "nirbjslgwyxuoaqevhp", "fpnsuxbleoajwyhgirvq", "ayinxhubgvweprqljso", ],[ "andu", "sguand", ],[ "embqxktgpduyjia", "qtjagiydempukxb", "axswpjdgqbumyteik", "kgaexydbupqtjmi", "uqjbixkdptgmeya", ],[ "uxzwnlgyareost", "nesygtowzuralx", "lnguxsaoyzwtre", ],[ "thfobmluspeiwxygv", "ibtfgsyouvxdpelh", "txqerhuolbpsgfyvi", "oehxfsmbiuvpyltg", "pfoiuhlebvyxwdgst", ],[ "e", "ke", "e", "e", ],[ "zhxyc", "hczxy", "ohzycx", ],[ "sylzvbx", "sxzvlyb", "vltysxbz", "ylbxzsvf", ],[ "zxkt", "xztk", ],[ "mnctogxvwkseh", "owrsadeqmhtykcg", "matkscwo", "mcwpzbofs", ],[ "wvpybgulfrhnixjka", "rgawyujfcsveki", ],[ "hbmljqxrtza", "xmutqzahl", "zaqlmhxtu", "hziqlatxumc", ],[ "sjwq", "qjws", "wqjs", "jqsw", ],[ "ithgcoaed", "qtgsdohec", ],[ "puidogmhysnk", "pgszdunhyiomk", "gmyivhnksqodpt", ],[ "ionrt", "yhvsiud", ],[ "xtzrljypsknh", "jkhztpylxnrs", "yxlkrshtpnjz", ],[ "veyflgkws", "jwukvfeshmr", "evfwksdz", "fekvsw", "vkfsew", ],[ "qbercltdyiwzpfghujxa", "bvzlratfchxyijqewpdgu", "hfrtqbiayzdxpwujlcge", "ejhbpuwytgixrdzaflqc", "phrjagczeiyxwdufltbq", ],[ "chxzbkemyjgqvltsardoi", "osykewcidjtuvzpbqhg", "ibqozcsvygmkedfjhtn", ],[ "czgih", "zcg", ],[ "dpulzxtweoafsvnrykqg", "zoasklutxwnqevyfgrd", "vnrequfolxgtzsdawyk", "ynurtkjfogvdqzlewsax", "kuydfznpatgvrelxoqws", ],[ "fmpeunzs", "sumpfzn", "fzpmnus", ],[ "sadewmz", "sldnwe", "wjduetyxsh", ],[ "no", "ou", "oua", "ybwdoe", ],[ "etjdmfhkvupsgob", "zjvatuxrhomingds", ],[ "wcrpzale", "ctyzwdsulbvmexo", "ikecwnzlg", "ngjwczlae", "zlqhwgecj", ],[ "p", "p", "p", "v", ],[ "x", "i", "p", "x", "bgckq", ],[ "huty", "yatu", "cytrqju", "wtyu", ],[ "k", "k", "s", ],[ "ti", "ut", "ut", ],[ "ltyxj", "vaicrwnzb", "yegjqp", "mjogk", ],[ "ifyupadt", "idutaypf", ],[ "civyufabow", "oafw", "eawtof", ],[ "tdxrcuvqmaoblhsjfynpwigkze", "hqfymskzljrtexwugbnacpiov", "nymlpweztcgrhjqfuiasbkxvo", "qxcponmlbwtvazuykfsegjrih", "vuaoelhfcyztjpxingmbkqsrw", ],[ "zqtkcomfdyrs", "qokdtmzyawfrlc", "qdmzejfctykor", ],[ "qgkmhvx", "vnqmkxlh", "kqvhxmre", ],[ "aklnbydq", "dqynjokaebzlu", "kblqrdany", ],[ "znaepc", "uthvilcm", "cpbda", ],[ "cep", "wgecdbpz", "pce", "pce", ],[ "qgtaelxzvnfr", "vwlquxfbmhgdjzir", "fqvryplogztx", "krfvglqszx", ],[ "xebsp", "vohgfurnmsa", "dqws", "ysl", "eqyps", ],[ "fxnlgkjizbsupyt", "aixlkfuwezbgcpsnh", ],[ "fliogmexzuqc", "ygxqvoeklitmfu", "iofxzueqmgl", "qouifehxalmg", "oefiuqjgdmplx", ],[ "cjqnrvu", "cquvrn", "vqnur", "qvrnu", "qwsvruxnmf", ],[ "esxbjiwnya", "ibwnjsxyae", "abienjwys", "ijwaybnsep", "ybeiasjnw", ],[ "f", "f", "f", "f", "j", ],[ "dwfgkqohamebnzly", "vhyokaeqpufjdlb", "ayhlqfbnoedkg", ],[ "g", "ijur", "ad", ],[ "oxpwmzunkjved", "dgwxejtpzn", "exnrwizdpljhfy", "ekzxwdjnpt", ],[ "jghbztdkypsovc", "arefyzdnlhwpoivbsqj", ],[ "cwvpyqnhjmsblikorx", "ywjmvfxnbqoitdls", "gyuloqbznavmijsxw", ],[ "tv", "vt", "vt", ],[ "cxvwzdbpsqnhoa", "thoqpsvmaxcbkzlin", "anecpvqohsxzb", "xscpvobnaqhz", ],[ "axnrzgyvepoif", "zovgfipynhr", "grodvzhinfpy", "rnipgfojyhvz", ],[ "pbmhlxwqfezrscdtykn", "cfmbkwtnlryzqehxpsd", "qrbylwtdnsckzefxhmp", ],[ "zkqw", "wzkq", "jqwxzk", ],[ "vrdnmyfspbzlxw", "izepalkytdnfcxjwhg", "nxuwdfqzlyp", ],[ "bc", "cb", ],[ "bf", "fb", "bfh", "efbq", ],[ "amw", "mpa", "maw", ],[ "bqwtvl", "vlzwtq", "ytlqv", "zvlqtb", "tlqxvc", ],[ "lbhxpnkiurmwates", "fuwrqbeztjmlpsnxaik", ],[ "jpwm", "zwljp", "jwmp", ],[ "zep", "cep", "pe", ],[ "mzx", "zmx", "xzbck", ],[ "dlmvbnupathgjsf", "blknfsvtjpgmhdu", "pnufdgmhsqtbljv", "ijeoufmnchvysrlwzpgtdb", "xvpudhgsjmlnbtkf", ],[ "cnyuhkmbswzilxovjp", "ybjtdewvsrfcznalqhgiku", ],[ "bi", "rzla", "j", ],[ "graezckvnqx", "agwzkcqnxre", "grzxeckaqn", "ghercxazknq", "rzqakdgexcns", ],[ "sfe", "b", "f", "xpjtuand", "boies", ],[ "kgjfzqlwic", "rkcdstgp", ],[ "fgsndtox", "zodnyxlgts", "otxdsgn", "nxtfgodis", ],[ "zwrtohqdey", "teqwry", "pvytwegf", "ltioweyrc", "myeaxntuw", ],[ "bw", "bw", "bw", "bw", "fbw", ],[ "o", "gh", ],[ "owadmhy", "admhoyw", "wmohyda", ],[ "nywib", "ceulqpzh", ],[ "zs", "sz", "zs", "zsko", "szr", ],[ "izaqf", "uijrf", "infgq", ],[ "w", "qw", "m", "bzr", "o", ],[ "emavls", "hbxwektuqjo", ],[ "qrhspwbulzkaxdm", "auwbhyxlkdvq", ],[ "turdsw", "utxrwsd", "rtundsw", "usdtrjwo", "utdowrs", ],[ "gjro", "gojm", ],[ "xhnilqdp", "ienxaovqldkhg", ],[ "rgjonh", "nvokcjqrt", "argnjo", ],[ "jmgchqb", "jivdabluqf", ],[ "ylmicxtahwqfvukneopgzsbrdj", "hbzpeaqvlxgotsjkwmfndyiruc", ],[ "p", "rop", ],[ "delgcpurwxniqohkvyas", "gurxclnvdwbikoqezs", "rnxewiqvgktmosfjd", ],[ "tigwskmhvupobfnydxcre", "qwmdoycrhvsjptzxngbikue", "yvmetfcbahuklxpdgowrisn", ],[ "wsy", "wys", "syjw", "wys", "yws", ],[ "srwpt", "wtsrp", ],[ "lhafkqwscv", "aklhcvrsqfw", "vfsqckalwh", "hlnqskcfvwa", "klfwvzsdpacmhq", ],[ "ehbzglfvtdxpkicy", "dl", "jnmdl", "wdsl", ],[ "rew", "rek", "ehi", "ilehwkm", "axe", ],[ "bl", "hzlgey", ],[ "iboqgtdxprunz", "uonzipxrgqbtd", ],[ "o", "o", ],[ "bldk", "bkpl", "fklbc", ],[ "ynmuedqwhoktxprcavz", "fshlwuznoymekqtprdv", ],[ "hjtwrzo", "rowhztj", "wuxrojhzt", "ozjhrtw", "hotzwjr", ],[ "senxaq", "baen", "ajmne", "gaielnd", "htfnpkuvwoae", ],[ "joklzmcuyg", "uyzrifcmlkgsj", "kyoumjcagblz", "uytcgqklzjm", ],[ "ujvi", "ijuv", "epmijuv", "viju", ],[ "tahxdeq", "dazexot", "baelxdq", "pwexdgvyiukjcaf", "edrnamzx", ],[ "zxqslwyh", "shgyqlwxaz", ],[ "xbs", "xbs", "bsx", ],[ "kwlhvxy", "kqwvlyxh", "klvxwyqh", "hxlkwvyq", "kylwpvhxd", ],[ "koznivas", "basiozvkn", "ovzkluniash", "ksnxcavioz", ],[ "g", "g", "g", "g", "shin", ],[ "e", "qtvo", "ac", "ksw", "ae", ],[ "pay", "nau", "a", ],[ "czkmwrvefultigxjhdqaopsnby", "flqrbdxungowzkmjsyepvhitca", ],[ "ymw", "vurft", ],[ "wqpgys", "ywsq", "qswy", "qsyew", "ywsq", ],[ "ndmo", "fdoznkmw", "hmuzndo", "mtqdrnyo", "uwfomnd", ],[ "pktnzsqhyvmaejclwuor", "jwznystlkmqcraeovhup", "vuwmteknjqohylazsrcp", ],[ "k", "k", "k", "okxe", ],[ "fjilbxs", "ib", "bi", "iqb", "ibeq", ],[ "gjlyop", "opglehyztj", "jpclgymno", "dopglymwj", "gojplrbcy", ],[ "nuygowpxetsahrv", "jgtpyhruwonexq", "rlepnuikhgybxwot", "svnygeuroxhzptqw", ],[ "wkies", "eisqwk", "kisew", "eiwks", "gxbkwsiep", ],[ "oj", "joe", "oj", "jo", "oj", ],[ "gtzunomec", "cezutnko", "tunzeco", "cuoftneazk", ],[ "vpifjqnbcuaelxzgdwos", "gfsyuwzclexopjvimqabd", ],[ "npaxeizolfrygctvw", "rgtpxwicvafozenl", ],[ "e", "e", "p", "t", "e", ],[ "ohiaqmdktxnbpwlc", "iqcopmavhwxbgnl", "bhqaoiwxlpmcnzy", "oxhwifeapuncblrmq", ],[ "wghbsijofevcu", "qtlmkday", "xlrznmp", ],[ "zbrjh", "rzbjh", "vebhzr", "klrzhb", "rjbhznl", ],[ "kcgzmvfrxebiautyohdwq", "thdkgwzymrafbxecqiovus", "rgtwzvocydiafmkqubehx", ],[ "i", "ry", "n", "xgscp", ],[ "kzjngd", "rdmwgnujzok", ],[ "djpivm", "mdipjv", "mlvdjip", ],[ "ilbdjmvfhyzxcqwuspn", "lichmuxnzpqsyvwbfj", "umnvlbiwqsfchxpzyj", "uylzhpvfqbscijxmwn", "clwjnihuyzpmqbxsfv", ],[ "o", "o", "fo", "pon", ],[ "aowpk", "zg", "dt", "uc", "u", ],[ "ymhiouqp", "lkyoqi", "ywtsvqio", "lnmyoiq", ],[ "ydbhigntrexvkua", "urlaigkqnydwxhb", ],[ "nfro", "z", "jz", ],[ "ojsag", "gajso", "gjsao", "jhsog", ],[ "t", "t", "y", "h", ],[ "jieqmryxv", "xqvimey", "umyqveix", "vtedmnxliqyf", ],[ "tmd", "tdm", "dtm", "mkdt", "hmdt", ],[ "px", "gwruq", "pz", ],[ "tejofhqklimp", "thojpkfgelwmrq", ],[ "tseirdkyqvcghwju", "tjhycvgilezdws", ],[ "roqbndl", "rdql", "qlrd", "lqremd", ],[ "qvgunystzpckrwifmxdolajehb", "bgtixcwloydzqjskvnfmpeurah", ],[ "soviern", "rlakxngecptvsz", "nvdsre", ],[ "gzkoiysxl", "vjrlmtpbsceozhauwx", "kfnqdzolsx", ],[ "kwzaqnipgxfhoy", "hanwlofgqxpzk", "xqngazkwphof", "pqwkfghaoxzn", "qwnfgpakxhzo", ],[ "zhurktfoqmlbnx", "mhlxorzbntufqk", "qbzklhnurmotfx", ],[ "gezmci", "oecmg", ],[ "pcyteovnsz", "dptlfuzh", ],[ "roxjhkng", "xonksrad", "rxnikos", ],[ "vbgmsrecxpj", "srcjxmbgep", "rbgsxcepjkmq", "pjgcmzbsrxe", ],[ "gkvwndflryjshmbqxtpizuocea", "fwndvekqtzployghijsmruabx", ],[ "dcxtogbifek", "ifkdgoxbc", ],[ "srmqlnhbwv", "liwsqzvtn", "wgeoqvpfs", "wkyqvsacd", ],[ "yswarofhdmqclxkgut", "daxhzkgumjysrlwq", "qfamswzyiglxdruhk", "vsnwxadlhrbgqmuyk", ],[ "rxwzkmd", "kwzx", "qawokzlxe", "xmdnfkwz", ],[ "exo", "xvqod", "cv", "pnrkmywh", "uztea", ],[ "ma", "ma", "qamfr", "am", ],[ "nksp", "kvpn", "pkn", "nkvp", "nkp", ],[ "pwlvdsagy", "islyawu", ],[ "sgbnwulekhpmy", "mjgqeyshpbwuln", "yubghpanecmszwlv", "euwohbysqngptlmx", ],[ "gs", "e", "kas", "a", "md", ],[ "i", "x", "bl", ],[ "vishqyrzgmpbeuldj", "gwcpvnskbftudyorj", ],[ "ueswlatkopc", "wbeosclpktau", "lcpvaswokuet", "ltkupsmeawoc", ],[ "iwtvopbgyc", "widjykopv", "ivowyp", "iwyvhop", ],[ "bfnwdumyozhpxre", "zhweumdnpbofy", "dcsobyuhfntpmzwe", ],[ "zrlaspbhty", "oyhrftzbslap", "ysztbhlapr", "tszhpbayrl", ],[ "wbgxh", "gnhwxcb", "wxbhg", "gxhwb", "gxbwh", ],[ "ngribvdawujskcmfx", "rvskbgiwjxuca", "wiyvgcsbjxkrua", ],[ "ifstrq", "fk", ],[ "b", "b", "b", "u", ],[ "hpqy", "wjplyq", ],[ "zwkfgbsmedluyot", "fdtrhsgeumk", "vexgtudkshfim", "eutigskmdrf", ],[ "imljkdnzpx", "jqwknpxlhmzd", "pmdyxgnjklz", "rxbjmlnkzdpg", "ulxbmpdnzykj", ],[ "vetubnwdy", "bnwatdvyou", "zfwgvtdbnki", "dlvewatnb", ],[ "uj", "otuj", "uj", ],[ "ifstpgrbcnywaxmkdzoqvh", "qkbfhovrginxapzywdct", "vyofbwcdginrkqtazhxp", ],[ "mvnaokugdshybwtr", "ntvsywuadrkmohgb", ],[ "fauo", "pnofxadk", "sfoa", "sofa", ],[ "akecpnjdwrztvlfbuhsiq", "jehrndzisqcauwlftkbpv", "uawiskrjentfbcqlpdvhz", "crtpjbdalsviwfnhqezuk", "ncawkfdsqtrhpjzielvub", ],[ "otazsfhc", "ltkacysow", "pvtomna", "tacok", ],[ "mx", "x", "x", "x", "x", ],[ "hmoy", "zmyhjuo", "ypmxohn", "hoxym", ],[ "dm", "md", "dm", "md", ],[ "uqvbhfdomlwtkxez", "szaqwmlhytgvxkr", "wmpzhxqktlv", ],[ "btkpdjinsrmogfywzhlvecau", "idylbvnopjsgrkfheuczawtm", "tygvsizrwjneplkohcmafudb", "wtvprskenjchmiyfuzglodba", "jwdafzcemrbsunotyglpihkv", ],[ "e", "ouxg", "ei", "shp", ],[ "ul", "ul", "ulrspe", "louy", "uynlvo", ],[ "yibgqkf", "uvcwx", "mvxdohjlw", ],[ "q", "z", "z", ],[ "orxgfiqznujyplsbadv", "gtzieoxspqrvndjbylfu", ],[ "hmlqcujrysbgoentdp", "dyjmrbtpuhgslncw", "rmyfuhdgclnpsktjb", "ptucnyhsmlwrbgjd", "wrhnldscjeyupmtgb", ],[ "sowieczubgx", "firsgewzpbo", ],[ "txeo", "exot", "oext", "oxte", "otxe", ],[ "ontlbzyekruhpscwqvaxmdj", "ahrtijxdepnokymcsgwuf", ],[ "ftsraxmwogvnkdbzqiyhju", "ylsdhonjzrfwmqukc", ],[ "leiupzardbfsv", "dzuwlesifrbp", "ldiupzersfb", "fupwslrzbedi", ],[ "jtdp", "dajg", ],[ "jpglzoriafexks", "gpaozketlcixs", ],[ "butisvecnfplqmygworax", "jrhpbwztcveifamlyqxdung", ],[ "r", "r", "r", "zr", ],[ "eyniaztvgdrl", "dalgonxbiecywthzvr", "dtzrgenvliya", ],[ "akzferolcmstgby", "kmcagsbteyrlfzo", "aoktgslmcrzbfye", ],[ "jqigpeydwl", "mkeaxqcudzgvfhb", ],[ "ayhgbfzerjxd", "rnzfaxy", "wyzaxnrf", "ycazxfrw", "ayzxrf", ],[ "jgmkwtnizxrcbvfqhyeal", "mwatrngvlezckqfiybhjx", "vmrwyqnigzhtjfckxaeb", "wkehnqrtcjigzxavbfym", "vrczmohgtfbnaejxqiwyk", ],[ "c", "c", "c", "c", ],[ "idx", "id", "id", ],[ "zaipnjbsxkg", "xevnfipkjgb", "ujxldqcnbhi", ],[ "hco", "co", ],[ "ztlrica", "ktneixcrs", ],[ "hlutcdsgoj", "mwlypnzbqafvxkire", ],[ "lznhjwgsiv", "wricunaxj", ],[ "fdqgyzopwlen", "rkvt", ],[ "vy", "gy", ],[ "ihbpfsx", "pshixfb", "sifxhpb", ],[ "begmqirvflkxuyanp", "dmpvhfbnaxsuloqitjy", ],[ "uwamykhsnbfzxielpdo", "cxzswhvtabupmqjlekond", ],[ "gisqpjrubx", "rjbiuqxspg", "gqpirxbsju", ],[ "u", "u", "v", "u", ],[ "gnjqsoha", "qgandhlyrs", "snhqvlrabg", ],[ "vo", "vo", "ov", "vo", ],[ "iudvwxpmtac", "owlyxsangim", "hbdrxmwaei", "wjimax", ],[ "xmubte", "yuogxa", ],[ "nwkurtxjcpqozmhgsvbe", "chrmvakuyxtowqpgzbej", ],[ "manbesvzpyt", "dgtwazpqjmbnr", "itfkoupbhlcnax", ],[ "omhinsxf", "lnmdoix", "eimgrno", "hyomidn", "nmjodi", ],[ "qmpn", "ripmn", ],[ "wfm", "wmf", "mwf", "mfw", "fwm", ],[ "uaoxphg", "phoxb", ],[ "btfprm", "ztmrf", "mrft", "ramft", "tmrezfa", ],[ "uaznory", "zyaiourn", "nouryaz", "coszugmanyr", "lqazryonu", ],[ "vqlswifmcg", "wzuclnxsvt", ],[ "eh", "eh", "he", ],[ "siuhfpb", "iuhfs", ],[ "yfhciqlnwpgemoxktas", "ticjauwfsygepqnhx", ],[ "ndmhwtub", "zbagktxiulnwh", ],[ "txdikm", "boldxtiqmf", "dxtimj", ],[ "wvr", "vwrb", "wrv", ],[ "utyjachpfordvw", "benvkudcfta", "vduqiftcgsa", "fcuatdxv", ],[ "doivj", "jiv", "vjkpyi", "jvi", "dijv", ],[ "mhyn", "mxngywh", "yjhmn", "dmynhulkacb", ],[ "hpidlbezkwqtr", "dgtaflrnyscm", ],[ "osqeajcvduwhzrtkl", "zcaevujrqsdolgwkyt", "uokqnrdjaecvwtlzs", ],[ "ovsbxzgaju", "vliydjht", "dvjt", ],[ "stlxuabmcwqkodevrhf", "ajskvtpmlicqewbhuzfd", ],[ "g", "cg", "ezfo", ],[ "zqfmuxlnhkgdpvwrtjio", "rkjqvomtguhpiwfzxnld", "zfgxrclnimokhvpjdutwq", "tgkxfqrnhdzowpvijlmu", ],[ "ni", "qn", "nq", ],[ "sn", "qn", "fdn", "qn", "hson", ],[ "tplicyhxqfujbkzv", "qfbzvwkuycsa", "vzqnbfcokyuda", ],[ "apoy", "plfxotkv", "iphsqjorged", ],[ "ravyhbsfelgcmzponqwikj", "bitfjzwakhmvxngsoepcyrlq", "cevpwyrnlobjsfziagkhmq", "mswnezcpklfrjqgiyovabdh", "cijelkwpbnhrsmzofygavq", ],[ "sqvnuedcytaxohplzf", "cekhbgwadpmyofslxq", ],[ "gclfnxakjzsw", "wzjcnsgka", "ciwzsganjk", "aspicokjgnwz", ],[ "qrabg", "ajbgmw", "yabg", "vgsrba", "hcgtbya", ],[ "xarbuvi", "ivaku", "kiuav", "vzgxiah", "flsivaj", ],[ "ckodrthljgyfwm", "mgytohfxnrdkjbvlwc", "cfdwmjoltkshrgy", "yhwmrldfucogkjt", "fmctpgwydhkajlro", ],[ "qvibocelnsdyzfkjhpuxmtrg", "zgdksnoypqebifltcrjvuxmh", "giocmuefxsprhdjkzntvqlyb", ],[ "xkcrlwomygs", "grluckhsanomxwf", "sriokwlmcyxg", "kxgirswtcvlom", ],[ "budr", "brdu", "dibur", "urbd", ],[ "o", "o", ],[ "p", "p", "p", "p", ],[ "wnydf", "wrptghizjqk", ],[ "wnbdmltxcq", "dfcwl", ],[ "ksaveflzdxqocbgyjp", "bcxavldgysqozpkjfe", "ozpvselaqgbdycjxfk", "clpzdoebvqjgaskxfy", "qykodlgvzjaxspfceb", ],[ "nrmdjstqozklxvcyag", "ejzwbu", ],[ "kfgijmd", "zmgjdikf", "jgimfdk", "ijfgkmdz", "smbrfkxdwgeij", ],[ "yhtuxnfcq", "tcyufhnxq", "hfuxytcqn", "nqtufyxch", ],[ "rlhzknoiuycefpmvxqbg", "nbvgfexmqikpyhruo", "hqkgnvyieomubfxpr", ],[ "bjyadnftcsxqk", "lpfbvzcsumerho", "wctsbf", ],[ "iyamec", "myeibctka", "egyicam", ],[ "ac", "pvaqdb", "a", "au", ],[ "giltsum", "ixyhncbjqped", ],[ "cinzuvkystgfodr", "rksphwcfxdgey", "xrdjkygcsfq", "bfmdecpysrkg", "gcrdyslfk", ],[ "ayqpgucwedftoxjk", "eoagwdtkfqlypjuc", ],[ "ktysxp", "sptx", "qpxst", "ptsqx", ],[ "uvclismeajkpbzgqwn", "aicbqfzvlnuegpm", "glecvmpzrnioudaq", "kanmveflzpcgyuqi", ],[ "vklag", "glv", "lvg", "lgv", "vgl", ],[ "tyuh", "hut", "thu", "htu", "thu", ],[ "eyipwtfuhxzalmdgrs", "whfcvbquxgepn", ],[ "tg", "ge", "g", ],[ "vk", "uatvn", "mzv", ],[ "jhfmpux", "mhjquxkp", ],[ "gzyxjwfb", "grzfxmwybj", "cywfjpxztgb", ],[ "udrye", "eqdyr", "yerd", "eryd", ],[ "kwdoynribhpsqmlgvuje", "gunbjywvmheirdqpok", "dnqeivoptrkwuyjhmg", ],[ "czvmpr", "sxpum", ],[ "qlktsn", "tkclq", "sbqlkwt", "luetjiqpk", "lcvtqsk", ],[ "rotvsfwelbnj", "fwbqmaolesn", "qbfwegzislpnoc", "nzoelswfpab", ],[ "wsecbml", "sclabmwe", "ezpsidclwtmbgvr", "mcelawsb", ],[ "ngz", "zg", "gz", "zg", "gz", ],[ "xqjwnaiyb", "jayxibqngw", "qinjwxbay", "nbaiwyxqj", "jniaxqwyb", ],[ "hktywl", "htwlyk", "kytwlh", ],[ "ymbeahldgz", "pjaoszx", ],[ "b", "b", "bz", "kb", ],[ "gvdcqp", "qpvyrcdlk", ],[ "nij", "jfiub", "jtieyxl", "mnij", "imvju", ],[ "qh", "hq", "hq", "hq", ],[ "tez", "zet", "etz", "etz", ],[ "wz", "wz", ],[ "xc", "jvxc", "xpzc", "rgumxc", "xc", ],[ "nizsgkvylw", "ngylivwzks", "ylgsiznvkw", "ilgyvsankzw", "ilzywsnkgv", ],[ "emhpiwfyung", "qlzkob", "ldjx", "xvat", ],[ "luzfaswdyj", "jsdyuzlafw", "ljdsafzuwy", "yusdjwzfal", "dsyjwuzafl", ],[ "uioafnlegsvjdxphr", "lnfrjdpehvsxguoa", "najruefdlxogvhsp", ],[ "gumjphl", "mplchdjuw", "hmjrlup", "jmpgulh", ],[ "q", "q", "q", "q", "q", ],[ "feyimktsugrq", "qygsrtlpmfkeui", "sfkmrgqyitue", ],[ "xpklzsyodcnhrjq", "xcznojsdpqhrlky", ],[ "btmsc", "mtscbv", "csmtb", "tmbcsx", "mbxtsc", ],[ "dvrfumay", "ymafr", "mrifya", "ykrmaf", ],[ "do", "d", "andk", "dcp", "d", ],[ "glhmjykfaznvrd", "bvmijshzga", "vmjuqazhgpx", "voczhgamj", "wjhizgqavms", ],[ "voilgtup", ],[ "vrphtmc", "bgfkjvad", ],[ "bxkfi", "kixbf", "xfkbi", "xfikb", "xfkbi", ],[ "lfixvpozghcauk", "plgixmzukcovh", "hyruilocxgkztqv", "uglxkaihcozv", ],[ "avgptdmi", "gydpvt", "dptawvu", "rvtdopxlqs", ],[ "rsmglpt", "gpmnlthr", ],[ "tqmeukoia", "kamiout", "mqwauekov", "macoryuk", "nujbskgapmlo", ],[ "ndjrglykwoi", "jrwkdnolygi", "ownkidlryjg", ],[ "kwheact", "txukwjcgbhar", "whgotjk", "kzhtw", "lmvynhptdqkifw", ],[ "odkzwylprhvn", "pwozvnydrh", "zdhnpryowv", ],[ "crni", "qdnkiou", "gbwhyasjx", ],[ "bxitsamogcq", "erbxklyhvtczu", ],[ "swrfxdpjhly", "pwdjkvfyxrshl", "sxehqrtwpdamnyjzolbui", "gpdryslhwxcj", ],[ "fhldcksrpyi", "qfejshrcat", "wsmrvcnogxh", ],[ "vwacyofjtilrxngp", "otylvxpfwgcnjria", "xojfignyrtlpwvca", ],[ "qvz", "ozm", ],[ "msrdwqahutefvxy", "rjmyotiefuh", "ltyrmenbzjuhf", "felbyputmhr", ],[ "riyzo", "kzroyuwi", "yirozp", "yoirz", "roiyz", ],[ "rqjz", "vjrq", "qrj", "prqj", "zqjr", ],[ "vdx", "xvd", "xdvu", "vdx", ],[ "xeauhryviqg", "wpxkufzsjmctlnybd", ],[ "hbzwdlno", "tmrj", "np", "lqfx", "kuygescvia", ],[ "iqph", "ihpq", "pqhi", "ihqp", "qpih", ],[ "lsfwxmpkgqzvhecoay", "gqfszwakhvymptcexol", "cpaxwlzkfqvhsgemyo", "lghfwvcmzxpokeysaq", ],[ "tgmpafqbuds", "hspdfabuqgctm", "tpcubdaqsvgm", "mxqbktspoaujd", ],[ "xktgfvyprhndme", "vntmyskfegprid", "dsvpfmnkygtre", "ydmvpkfretng", ],[ "npvgjzuo", "mwlackhs", ],[ "gyj", "myk", ],[ "w", "w", "w", "k", "w", ],[ "sgrhv", "rixdgjluf", "rgs", "rsbg", ],[ "kmiqobutwplfryxgeajhnz", "ylrtmpauodjnfvwgeixqz", "extlfwjsirnmgyuqaopz", ],[ "vdngfjbwypio", "sukyvfzpeqwthdxg", "fyvrndgbwp", "ydwfvglp", ],[ "fhsi", "hsbif", ],[ "fihzecojaqm", "jzchuomvwsqfr", "jzchoqtfm", ],[ "kqafdzcgphvbos", "qbspzodfavhck", "adfozhquktlcibspv", "szhpfboagdcqkv", ],[ "tmeb", "takbe", ],[ "ymrhgdo", "ypgzhmltd", "fdbymgshcx", "nghyzldm", ],[ "bxgm", "gmxb", "mxgb", "gxbm", "xbmvg", ],[ "fep", "lnp", "trjim", "dauy", "fplk", ],[ "udhzexv", "dhmezvx", "qdxylbhvzw", "zveduxcht", ],[ "wgvhaokesjirly", "osrewigqfdyvzk", "kupsxrimowgbe", ],[ "skzvhanpljbogdyxtiquw", "xzgdwyjluhnbstopikaqv", "pasixghzovnjylbwudqkt", ],[ "wj", "wj", "wkj", "jw", "wj", ],[ "nsmyxfhc", "xcfymhsn", "hxscmnyf", "cfxsmnlyh", ],[ "jpblgmiyunazcfd", "tabnyfmupclzgd", "esyvuphfgwbknodzcxlqa", ],[ "xkyqozefvgutmrw", "rmhzwgeutoypx", ],[ "rzaxcemljnvo", "kdwyqvohesitfb", ],[ "kfqrcezwn", "qrnwkzcf", "frcnqwzk", "frnckvhzwq", "kqzrcnfw", ],[ "fqux", "qxuyfod", "ufxq", "qxfu", "qxuf", ],[ "ztopdir", "ritpozd", "otrpizd", "idpotzr", ],[ "jzhngmufw", "zguwhfj", ],[ "ndxhmysbgcriqkewoztujva", "cmtwbudvysekqaxizrojng", "itncgkdyoaxswrqvmejzpbu", "qyvcdusgwbomejtxznkira", ],[ "nik", "yfi", "i", "i", ],[ "hpsdjo", "hobps", "ohsp", "shpo", "kypshio", ],[ "jbiyatwz", "zbtagnrc", "ztnagb", "batz", ],[ "fvkurj", "kfgjvru", "jukfrv", "kvfujr"] #print(m) ret = 0 for g in m: st = set() for s in g: st.update(list(s)) ret += len(st) print(ret) ret = 0 for g in m: st = set().union(*g) ret += len(st) print(ret) print(sum(len(st) for st in (set().union(*g) for g in m))) print(sum(len(st) for st in (set(g[0]).intersection(*g) for g in m))) ret = 0 for g in m: st = set(list(g[0])) for s in g: st.intersection_update(list(s)) ret += len(st) print(ret) #print(sum(len(s) for s in [] ))
m = (['qzbw', 'qez'], ['xgedfibnyuhqsrazlwtpocj', 'fxgpoqijdzybletckwaunsr', 'pwnqsizrfcbyljexgouatd', 'ljtperqsodghnufiycxwabz'], ['uk', 'kupacjlriv', 'dku', 'qunk'], ['yjnprofmcuhdlawt', 'frmhulyncvweatodzjp', 'fhadtrcyjzwlnpumo', 'hrcutablndyjpfmwo'], ['rdclv', 'lrvdc', 'crldv', 'dvrcl', 'vrlcd'], ['dqrwajpb', 'asrfpdjwbq', 'wjdtarq'], ['nalkhgoi', 'bmiad', 'sdvpiyerma', 'ami'], ['smg', 'wlmdftcr', 'mk', 'my'], ['ebaxsun', 'uaxnebs', 'suxnbea', 'eanxusb', 'aexusnb'], ['zoxegrfd', 'qorjv', 'oqr', 'vor', 'roq'], ['jpasdnrcvhglft', 'dgkstavnhjrclfx', 'crtndjglfvwahq', 'hjclinvdtagrkf', 'gjfcdtuhlanvr'], ['exiopqbgrj', 'undhwyfkvltis'], ['npsxwlyog', 'udylki'], ['bnuwck', 'nuack'], ['cahpwtlozkm', 'ghnpzfqmoxabi'], ['hvwgxesraocbpnf', 'ewvranqcpbghoxf', 'paxfnwoegrhcvub', 'qbrawpfscexngvho', 'ahpxognlrvebwfc'], ['agqmwpvlb', 'waklrnbqyp', 'blquawtp', 'qltabwp'], ['rymhgolkustipjxbzqnafe', 'frzqjiuktbsxmahdepylg'], ['zricqdofygvtbsjmeu', 'vudjctzynegboiafqmrsx', 'rsbefoytcqgiuvzdjm', 'zucobitsgyjrfqemvd'], ['y', 'yc', 'tg', 'lavoqef', 'by'], ['fevykin', 'wxytrhqk'], ['pxbclzknowyq', 'lybwkpcoqxn', 'oknlpbxcyqw'], ['l', 'f', 'gixvd'], ['unogwsfavzkhi', 'siohufnkzgavw', 'ahitunswfvkzog', 'gvhknzuaisfow', 'ukasozfihnwgv'], ['ulhgwo', 'ghluo', 'ogulh', 'oughl', 'lphuog'], ['nike', 'bkn'], ['gefzwrdjsqx', 'fegzsjwxrpqh'], ['lfknweboxyrpajmig', 'gkpafnieojybrwl', 'iafesdyulrkpgnwbjo'], ['zjoiqtgpwxdach', 'iajdhqucpxtzgl'], ['yhav', 'vnshac', 'hcav', 'hvw', 'cyvh'], ['hwz', 'whz'], ['dhunracmzksvxopjgtbqi', 'vqhpowubyzirdksmgca'], ['ckrhefz', 'rkvexdfzcbh', 'heczkrf'], ['rbsldt', 'qgr'], ['a', 'ea', 'a'], ['wnadxkgehtpsv', 'gwnexkavshpd', 'bfkdpansvhewxg', 'kvtwdnsahpxge', 'xnhdpvekwgsa'], ['ydajvctr', 'drcejtgin'], ['kw', 'cbmj', 'l', 't', 'n'], ['gyzlnp', 'zahsyu', 'rek'], ['vjdmhsorqw', 'whdjoqvrms', 'rhsjqdmov', 'omdsqjrzhv'], ['rcxsgnluhtqey', 'ldejuqpykrtc'], ['rylcqxt', 'wlgtzyrcf', 'yrltc', 'rclpyt'], ['frke', 'kfe'], ['nchvxtqarsejld', 'rkhntaexcbqljod', 'qhdepzrxljtifcan'], ['uyfshgxzbqvrdwintjlmec', 'oyrvdwtgeczsfbmluqih', 'kabdlqytwgfrhmuevczpsi'], ['guwmkrfyex', 'fxekmrygwu', 'wfgremukiyx', 'aywegkrmxufl', 'wukygimrxfe'], ['m', 'm', 'm', 'm', 'm'], ['hbgnkqe', 'khgn'], ['hngypzmd', 'oixyanpdg'], ['qbdklpvhjaeif', 'kzaiglyjfpmeurn'], ['ynsm', 'smjn', 'nsyum'], ['mpcztqkydxifv', 'zdqfvxtmpcyk', 'zkcmxfpqvydt', 'yopktfnqrmvxdczw', 'mdckxypvztqf'], ['va', 'bvhg'], ['fe', 'ef'], ['n', 'hpmqn', 'n', 'dn'], ['njxazhtevsmlir', 'txmsijvaezwn', 'tezacmwsvinxj'], ['gvzpbmeijyhaukflcrdqw', 'sivlhgumyzkdrjfeoxqtc'], ['ouq', 'h'], ['csxewy', 'kxoscmw', 'ucnvwsxg', 'hfocysxmiwe', 'wcsmx'], ['retcxugsdwjnykm', 'sfhudnxoqwjktyzarc', 'rklvinxudpsbywtjc'], ['cwfizpyguatbodsqemxrjknlv', 'ujikxwsmntcloyqgaebrzfdvp', 'jreyubofkpdnzsimxwvgaqtlc', 'nuewfvmlidsatzqbkcjgorpyx'], ['ycqolubpktxwshegafvm', 'djnlhafsreuzgxkb'], ['odasxjtqcepgrzl', 'jsoelxpqgtczam', 'qiajrhesdzoxfplcgt'], ['vnthkurzf', 'bnfpqutvekra'], ['gujxqsnitohp', 'tchxqjgoiu'], ['hgparlm', 'mjxghlqzp', 'fmlpahcg'], ['deptkcyasiwgfonv', 'ptqufxjhcyglrzdov'], ['awnxeshvrbcjm', 'xreswnhbcmvja', 'axvwnsejrmbhc', 'xajcmrnevhwbs', 'sjxhcbearmwnv'], ['woystmzcbgrljqhxdiukn', 'mzhlbgcwjusnortdqky', 'tunrjlzmqosygbwhkcd'], ['agh', 'ahg', 'agh', 'hga', 'hag'], ['cmzkthbquilgwypreno', 'tsmezpqlwkhrcginuo', 'gmniotwlpzyqceukrh', 'wztuikrglhqocnpme', 'ekqchwogpliumrtzn'], ['jqadntioypevlwcksmb', 'hymnfzcvtdaxsekrqijo', 'dvqmgiacknyoesjt'], ['cdnbkfzev', 'bfvdwcezk', 'kzeblcdvf', 'vfdkneczb', 'fdeovjczystkib'], ['rzc', 'pma', 'zwvx', 'zyrlt'], ['lmwvudafhnczxibsgpjkreoq', 'durlgqhmvpxofsiejwcbkzan', 'mieraklxftswzjbuocndvpqghy'], ['qlaxkbf', 'rfhyxtbkseaq', 'bxkqaf', 'fkxbaqn'], ['lpntzrufvskoqciaxhedw', 'arsztnpofkxcqudilhewv', 'srvlzcujywkenimafhtoqxp'], ['snxwjqapfo', 'nwsfqxpajo', 'npfqjowaxs', 'opjfxanwqs', 'sjaonwxqpf'], ['cswjquxv', 'uyecrkg', 'ufjcl'], ['qjvzl', 'jvqzl', 'lzjqv', 'qlvjz'], ['h', 'h'], ['mprvotcsgadybjfkqehz', 'bjsordtucqlgkhfzvepy', 'fsoqijpvhgkczybrted', 'yzsgkfhvcbjpeqtrdo', 'cjzdvkprbheysmofgqt'], ['jzontimefb', 'ldorvefxuatpj'], ['i', 'xi'], ['zhtkdvl', 'pchznv', 'jmryxuwgazvfh', 'lkdevczh'], ['subt', 'utsb', 'fsuobt', 'jutsb', 'utbjs'], ['n', 'n', 'n', 'dnk'], ['qkrfv', 'fqgvkseut', 'qvrfk'], ['w', 'x', 'n', 'n'], ['mkpoyfrngtwdcjlv', 'yprcuimjsz', 'rcyjzxphm', 'pjecrmyx', 'ipyramcqj'], ['puwnzsohkv', 'nsohwkuzvp', 'upnhokswvzx'], ['rmvjwzhx', 'kpxhqevglom', 'mzxfhbv', 'mhwjitfrvnx', 'mcusxhvwj'], ['vipkgth', 'oskhetgp', 'zlqhnbdjwgurxapc'], ['vn', 'vna', 'gwvdn'], ['rugcbipvzow', 'uogrzcvpbwi'], ['jwxuc', 'krngvmypl', 'jwxzi', 'qashtbedfco'], ['bzfyl', 'yzflb', 'fylbz', 'lyfzb', 'ylfbz'], ['uhkvb', 'kjhulb', 'vbkhu'], ['andlzobvguqsk', 'nkgvqlzbu', 'klbiezughvmxnrt', 'bunkzgljvf', 'yvkgjpwzubln'], ['t', 't'], ['bdrjpavtiqlhxuw', 'pjmzbxidrtulcfw'], ['wqylp', 'mrhgfxsjcaltonedv', 'ywbkul', 'ikl'], ['hxpivszmbaodecnlurq', 'cedlpnibqmwxaghrszou', 'hunbrdzpsxleaitmqyco'], ['pymewobv', 'veazgoy', 'yvoxle', 'youfveix', 'syegdvo'], ['ogceirlsaqjtmvzdx', 'rtsaijxocelmzgdvq', 'dvrqjxizmgscteoal'], ['jeupkmhcydwaz', 'daykzechjpwmu', 'umkaejhwydpzc', 'aywkjphdzeucm', 'ypdchmujekazw'], ['suzacvgjnoi', 'evgsufjaitn', 'rqeanjskxbvfgiwu', 'dknubsaxgvji'], ['ojxfyetcpdbglmwqunrsi', 'fjletcbrdsnviogpxwuq', 'jcgprswxiaefdqnotlub', 'zfgjewrpldsioxcqntub', 'nxcgewpqolibrktujsfd'], ['vwh', 'hjvw', 'hvjw', 'hvwr', 'vhw'], ['md', 'm', 'm', 'm'], ['xkpu', 'izfmrosjbd', 'eywqt', 'xgak', 'hgn'], ['layhskgxrpfnwqmdj', 'mlsxywoakrectnzgqdjf', 'fbsxnmuikqwrljgv'], ['rhcn', 'lon', 'dln', 'pban', 'nhd'], ['uxwhl', 'hx'], ['aesduycrgfmhjblnkzt', 'jktlhwqioepzgcbnmda'], ['tbhfongxiudcrv', 'rqoyfnuxabjekl'], ['ajd', 'wjdmak', 'jda', 'jad'], ['ghimtjly', 'hjtgilm', 'ghixmjtpal', 'jtmhilg', 'imhgtjluo'], ['ewpfam', 'epmwa', 'epwma', 'ewamp'], ['cslywuzkdg', 'jfluyxgbsma', 'ugysbl', 'ytlqgaus', 'hsufgloxyr'], ['eigjpobrlxnasvhquwy', 'nirbjslgwyxuoaqevhp', 'fpnsuxbleoajwyhgirvq', 'ayinxhubgvweprqljso'], ['andu', 'sguand'], ['embqxktgpduyjia', 'qtjagiydempukxb', 'axswpjdgqbumyteik', 'kgaexydbupqtjmi', 'uqjbixkdptgmeya'], ['uxzwnlgyareost', 'nesygtowzuralx', 'lnguxsaoyzwtre'], ['thfobmluspeiwxygv', 'ibtfgsyouvxdpelh', 'txqerhuolbpsgfyvi', 'oehxfsmbiuvpyltg', 'pfoiuhlebvyxwdgst'], ['e', 'ke', 'e', 'e'], ['zhxyc', 'hczxy', 'ohzycx'], ['sylzvbx', 'sxzvlyb', 'vltysxbz', 'ylbxzsvf'], ['zxkt', 'xztk'], ['mnctogxvwkseh', 'owrsadeqmhtykcg', 'matkscwo', 'mcwpzbofs'], ['wvpybgulfrhnixjka', 'rgawyujfcsveki'], ['hbmljqxrtza', 'xmutqzahl', 'zaqlmhxtu', 'hziqlatxumc'], ['sjwq', 'qjws', 'wqjs', 'jqsw'], ['ithgcoaed', 'qtgsdohec'], ['puidogmhysnk', 'pgszdunhyiomk', 'gmyivhnksqodpt'], ['ionrt', 'yhvsiud'], ['xtzrljypsknh', 'jkhztpylxnrs', 'yxlkrshtpnjz'], ['veyflgkws', 'jwukvfeshmr', 'evfwksdz', 'fekvsw', 'vkfsew'], ['qbercltdyiwzpfghujxa', 'bvzlratfchxyijqewpdgu', 'hfrtqbiayzdxpwujlcge', 'ejhbpuwytgixrdzaflqc', 'phrjagczeiyxwdufltbq'], ['chxzbkemyjgqvltsardoi', 'osykewcidjtuvzpbqhg', 'ibqozcsvygmkedfjhtn'], ['czgih', 'zcg'], ['dpulzxtweoafsvnrykqg', 'zoasklutxwnqevyfgrd', 'vnrequfolxgtzsdawyk', 'ynurtkjfogvdqzlewsax', 'kuydfznpatgvrelxoqws'], ['fmpeunzs', 'sumpfzn', 'fzpmnus'], ['sadewmz', 'sldnwe', 'wjduetyxsh'], ['no', 'ou', 'oua', 'ybwdoe'], ['etjdmfhkvupsgob', 'zjvatuxrhomingds'], ['wcrpzale', 'ctyzwdsulbvmexo', 'ikecwnzlg', 'ngjwczlae', 'zlqhwgecj'], ['p', 'p', 'p', 'v'], ['x', 'i', 'p', 'x', 'bgckq'], ['huty', 'yatu', 'cytrqju', 'wtyu'], ['k', 'k', 's'], ['ti', 'ut', 'ut'], ['ltyxj', 'vaicrwnzb', 'yegjqp', 'mjogk'], ['ifyupadt', 'idutaypf'], ['civyufabow', 'oafw', 'eawtof'], ['tdxrcuvqmaoblhsjfynpwigkze', 'hqfymskzljrtexwugbnacpiov', 'nymlpweztcgrhjqfuiasbkxvo', 'qxcponmlbwtvazuykfsegjrih', 'vuaoelhfcyztjpxingmbkqsrw'], ['zqtkcomfdyrs', 'qokdtmzyawfrlc', 'qdmzejfctykor'], ['qgkmhvx', 'vnqmkxlh', 'kqvhxmre'], ['aklnbydq', 'dqynjokaebzlu', 'kblqrdany'], ['znaepc', 'uthvilcm', 'cpbda'], ['cep', 'wgecdbpz', 'pce', 'pce'], ['qgtaelxzvnfr', 'vwlquxfbmhgdjzir', 'fqvryplogztx', 'krfvglqszx'], ['xebsp', 'vohgfurnmsa', 'dqws', 'ysl', 'eqyps'], ['fxnlgkjizbsupyt', 'aixlkfuwezbgcpsnh'], ['fliogmexzuqc', 'ygxqvoeklitmfu', 'iofxzueqmgl', 'qouifehxalmg', 'oefiuqjgdmplx'], ['cjqnrvu', 'cquvrn', 'vqnur', 'qvrnu', 'qwsvruxnmf'], ['esxbjiwnya', 'ibwnjsxyae', 'abienjwys', 'ijwaybnsep', 'ybeiasjnw'], ['f', 'f', 'f', 'f', 'j'], ['dwfgkqohamebnzly', 'vhyokaeqpufjdlb', 'ayhlqfbnoedkg'], ['g', 'ijur', 'ad'], ['oxpwmzunkjved', 'dgwxejtpzn', 'exnrwizdpljhfy', 'ekzxwdjnpt'], ['jghbztdkypsovc', 'arefyzdnlhwpoivbsqj'], ['cwvpyqnhjmsblikorx', 'ywjmvfxnbqoitdls', 'gyuloqbznavmijsxw'], ['tv', 'vt', 'vt'], ['cxvwzdbpsqnhoa', 'thoqpsvmaxcbkzlin', 'anecpvqohsxzb', 'xscpvobnaqhz'], ['axnrzgyvepoif', 'zovgfipynhr', 'grodvzhinfpy', 'rnipgfojyhvz'], ['pbmhlxwqfezrscdtykn', 'cfmbkwtnlryzqehxpsd', 'qrbylwtdnsckzefxhmp'], ['zkqw', 'wzkq', 'jqwxzk'], ['vrdnmyfspbzlxw', 'izepalkytdnfcxjwhg', 'nxuwdfqzlyp'], ['bc', 'cb'], ['bf', 'fb', 'bfh', 'efbq'], ['amw', 'mpa', 'maw'], ['bqwtvl', 'vlzwtq', 'ytlqv', 'zvlqtb', 'tlqxvc'], ['lbhxpnkiurmwates', 'fuwrqbeztjmlpsnxaik'], ['jpwm', 'zwljp', 'jwmp'], ['zep', 'cep', 'pe'], ['mzx', 'zmx', 'xzbck'], ['dlmvbnupathgjsf', 'blknfsvtjpgmhdu', 'pnufdgmhsqtbljv', 'ijeoufmnchvysrlwzpgtdb', 'xvpudhgsjmlnbtkf'], ['cnyuhkmbswzilxovjp', 'ybjtdewvsrfcznalqhgiku'], ['bi', 'rzla', 'j'], ['graezckvnqx', 'agwzkcqnxre', 'grzxeckaqn', 'ghercxazknq', 'rzqakdgexcns'], ['sfe', 'b', 'f', 'xpjtuand', 'boies'], ['kgjfzqlwic', 'rkcdstgp'], ['fgsndtox', 'zodnyxlgts', 'otxdsgn', 'nxtfgodis'], ['zwrtohqdey', 'teqwry', 'pvytwegf', 'ltioweyrc', 'myeaxntuw'], ['bw', 'bw', 'bw', 'bw', 'fbw'], ['o', 'gh'], ['owadmhy', 'admhoyw', 'wmohyda'], ['nywib', 'ceulqpzh'], ['zs', 'sz', 'zs', 'zsko', 'szr'], ['izaqf', 'uijrf', 'infgq'], ['w', 'qw', 'm', 'bzr', 'o'], ['emavls', 'hbxwektuqjo'], ['qrhspwbulzkaxdm', 'auwbhyxlkdvq'], ['turdsw', 'utxrwsd', 'rtundsw', 'usdtrjwo', 'utdowrs'], ['gjro', 'gojm'], ['xhnilqdp', 'ienxaovqldkhg'], ['rgjonh', 'nvokcjqrt', 'argnjo'], ['jmgchqb', 'jivdabluqf'], ['ylmicxtahwqfvukneopgzsbrdj', 'hbzpeaqvlxgotsjkwmfndyiruc'], ['p', 'rop'], ['delgcpurwxniqohkvyas', 'gurxclnvdwbikoqezs', 'rnxewiqvgktmosfjd'], ['tigwskmhvupobfnydxcre', 'qwmdoycrhvsjptzxngbikue', 'yvmetfcbahuklxpdgowrisn'], ['wsy', 'wys', 'syjw', 'wys', 'yws'], ['srwpt', 'wtsrp'], ['lhafkqwscv', 'aklhcvrsqfw', 'vfsqckalwh', 'hlnqskcfvwa', 'klfwvzsdpacmhq'], ['ehbzglfvtdxpkicy', 'dl', 'jnmdl', 'wdsl'], ['rew', 'rek', 'ehi', 'ilehwkm', 'axe'], ['bl', 'hzlgey'], ['iboqgtdxprunz', 'uonzipxrgqbtd'], ['o', 'o'], ['bldk', 'bkpl', 'fklbc'], ['ynmuedqwhoktxprcavz', 'fshlwuznoymekqtprdv'], ['hjtwrzo', 'rowhztj', 'wuxrojhzt', 'ozjhrtw', 'hotzwjr'], ['senxaq', 'baen', 'ajmne', 'gaielnd', 'htfnpkuvwoae'], ['joklzmcuyg', 'uyzrifcmlkgsj', 'kyoumjcagblz', 'uytcgqklzjm'], ['ujvi', 'ijuv', 'epmijuv', 'viju'], ['tahxdeq', 'dazexot', 'baelxdq', 'pwexdgvyiukjcaf', 'edrnamzx'], ['zxqslwyh', 'shgyqlwxaz'], ['xbs', 'xbs', 'bsx'], ['kwlhvxy', 'kqwvlyxh', 'klvxwyqh', 'hxlkwvyq', 'kylwpvhxd'], ['koznivas', 'basiozvkn', 'ovzkluniash', 'ksnxcavioz'], ['g', 'g', 'g', 'g', 'shin'], ['e', 'qtvo', 'ac', 'ksw', 'ae'], ['pay', 'nau', 'a'], ['czkmwrvefultigxjhdqaopsnby', 'flqrbdxungowzkmjsyepvhitca'], ['ymw', 'vurft'], ['wqpgys', 'ywsq', 'qswy', 'qsyew', 'ywsq'], ['ndmo', 'fdoznkmw', 'hmuzndo', 'mtqdrnyo', 'uwfomnd'], ['pktnzsqhyvmaejclwuor', 'jwznystlkmqcraeovhup', 'vuwmteknjqohylazsrcp'], ['k', 'k', 'k', 'okxe'], ['fjilbxs', 'ib', 'bi', 'iqb', 'ibeq'], ['gjlyop', 'opglehyztj', 'jpclgymno', 'dopglymwj', 'gojplrbcy'], ['nuygowpxetsahrv', 'jgtpyhruwonexq', 'rlepnuikhgybxwot', 'svnygeuroxhzptqw'], ['wkies', 'eisqwk', 'kisew', 'eiwks', 'gxbkwsiep'], ['oj', 'joe', 'oj', 'jo', 'oj'], ['gtzunomec', 'cezutnko', 'tunzeco', 'cuoftneazk'], ['vpifjqnbcuaelxzgdwos', 'gfsyuwzclexopjvimqabd'], ['npaxeizolfrygctvw', 'rgtpxwicvafozenl'], ['e', 'e', 'p', 't', 'e'], ['ohiaqmdktxnbpwlc', 'iqcopmavhwxbgnl', 'bhqaoiwxlpmcnzy', 'oxhwifeapuncblrmq'], ['wghbsijofevcu', 'qtlmkday', 'xlrznmp'], ['zbrjh', 'rzbjh', 'vebhzr', 'klrzhb', 'rjbhznl'], ['kcgzmvfrxebiautyohdwq', 'thdkgwzymrafbxecqiovus', 'rgtwzvocydiafmkqubehx'], ['i', 'ry', 'n', 'xgscp'], ['kzjngd', 'rdmwgnujzok'], ['djpivm', 'mdipjv', 'mlvdjip'], ['ilbdjmvfhyzxcqwuspn', 'lichmuxnzpqsyvwbfj', 'umnvlbiwqsfchxpzyj', 'uylzhpvfqbscijxmwn', 'clwjnihuyzpmqbxsfv'], ['o', 'o', 'fo', 'pon'], ['aowpk', 'zg', 'dt', 'uc', 'u'], ['ymhiouqp', 'lkyoqi', 'ywtsvqio', 'lnmyoiq'], ['ydbhigntrexvkua', 'urlaigkqnydwxhb'], ['nfro', 'z', 'jz'], ['ojsag', 'gajso', 'gjsao', 'jhsog'], ['t', 't', 'y', 'h'], ['jieqmryxv', 'xqvimey', 'umyqveix', 'vtedmnxliqyf'], ['tmd', 'tdm', 'dtm', 'mkdt', 'hmdt'], ['px', 'gwruq', 'pz'], ['tejofhqklimp', 'thojpkfgelwmrq'], ['tseirdkyqvcghwju', 'tjhycvgilezdws'], ['roqbndl', 'rdql', 'qlrd', 'lqremd'], ['qvgunystzpckrwifmxdolajehb', 'bgtixcwloydzqjskvnfmpeurah'], ['soviern', 'rlakxngecptvsz', 'nvdsre'], ['gzkoiysxl', 'vjrlmtpbsceozhauwx', 'kfnqdzolsx'], ['kwzaqnipgxfhoy', 'hanwlofgqxpzk', 'xqngazkwphof', 'pqwkfghaoxzn', 'qwnfgpakxhzo'], ['zhurktfoqmlbnx', 'mhlxorzbntufqk', 'qbzklhnurmotfx'], ['gezmci', 'oecmg'], ['pcyteovnsz', 'dptlfuzh'], ['roxjhkng', 'xonksrad', 'rxnikos'], ['vbgmsrecxpj', 'srcjxmbgep', 'rbgsxcepjkmq', 'pjgcmzbsrxe'], ['gkvwndflryjshmbqxtpizuocea', 'fwndvekqtzployghijsmruabx'], ['dcxtogbifek', 'ifkdgoxbc'], ['srmqlnhbwv', 'liwsqzvtn', 'wgeoqvpfs', 'wkyqvsacd'], ['yswarofhdmqclxkgut', 'daxhzkgumjysrlwq', 'qfamswzyiglxdruhk', 'vsnwxadlhrbgqmuyk'], ['rxwzkmd', 'kwzx', 'qawokzlxe', 'xmdnfkwz'], ['exo', 'xvqod', 'cv', 'pnrkmywh', 'uztea'], ['ma', 'ma', 'qamfr', 'am'], ['nksp', 'kvpn', 'pkn', 'nkvp', 'nkp'], ['pwlvdsagy', 'islyawu'], ['sgbnwulekhpmy', 'mjgqeyshpbwuln', 'yubghpanecmszwlv', 'euwohbysqngptlmx'], ['gs', 'e', 'kas', 'a', 'md'], ['i', 'x', 'bl'], ['vishqyrzgmpbeuldj', 'gwcpvnskbftudyorj'], ['ueswlatkopc', 'wbeosclpktau', 'lcpvaswokuet', 'ltkupsmeawoc'], ['iwtvopbgyc', 'widjykopv', 'ivowyp', 'iwyvhop'], ['bfnwdumyozhpxre', 'zhweumdnpbofy', 'dcsobyuhfntpmzwe'], ['zrlaspbhty', 'oyhrftzbslap', 'ysztbhlapr', 'tszhpbayrl'], ['wbgxh', 'gnhwxcb', 'wxbhg', 'gxhwb', 'gxbwh'], ['ngribvdawujskcmfx', 'rvskbgiwjxuca', 'wiyvgcsbjxkrua'], ['ifstrq', 'fk'], ['b', 'b', 'b', 'u'], ['hpqy', 'wjplyq'], ['zwkfgbsmedluyot', 'fdtrhsgeumk', 'vexgtudkshfim', 'eutigskmdrf'], ['imljkdnzpx', 'jqwknpxlhmzd', 'pmdyxgnjklz', 'rxbjmlnkzdpg', 'ulxbmpdnzykj'], ['vetubnwdy', 'bnwatdvyou', 'zfwgvtdbnki', 'dlvewatnb'], ['uj', 'otuj', 'uj'], ['ifstpgrbcnywaxmkdzoqvh', 'qkbfhovrginxapzywdct', 'vyofbwcdginrkqtazhxp'], ['mvnaokugdshybwtr', 'ntvsywuadrkmohgb'], ['fauo', 'pnofxadk', 'sfoa', 'sofa'], ['akecpnjdwrztvlfbuhsiq', 'jehrndzisqcauwlftkbpv', 'uawiskrjentfbcqlpdvhz', 'crtpjbdalsviwfnhqezuk', 'ncawkfdsqtrhpjzielvub'], ['otazsfhc', 'ltkacysow', 'pvtomna', 'tacok'], ['mx', 'x', 'x', 'x', 'x'], ['hmoy', 'zmyhjuo', 'ypmxohn', 'hoxym'], ['dm', 'md', 'dm', 'md'], ['uqvbhfdomlwtkxez', 'szaqwmlhytgvxkr', 'wmpzhxqktlv'], ['btkpdjinsrmogfywzhlvecau', 'idylbvnopjsgrkfheuczawtm', 'tygvsizrwjneplkohcmafudb', 'wtvprskenjchmiyfuzglodba', 'jwdafzcemrbsunotyglpihkv'], ['e', 'ouxg', 'ei', 'shp'], ['ul', 'ul', 'ulrspe', 'louy', 'uynlvo'], ['yibgqkf', 'uvcwx', 'mvxdohjlw'], ['q', 'z', 'z'], ['orxgfiqznujyplsbadv', 'gtzieoxspqrvndjbylfu'], ['hmlqcujrysbgoentdp', 'dyjmrbtpuhgslncw', 'rmyfuhdgclnpsktjb', 'ptucnyhsmlwrbgjd', 'wrhnldscjeyupmtgb'], ['sowieczubgx', 'firsgewzpbo'], ['txeo', 'exot', 'oext', 'oxte', 'otxe'], ['ontlbzyekruhpscwqvaxmdj', 'ahrtijxdepnokymcsgwuf'], ['ftsraxmwogvnkdbzqiyhju', 'ylsdhonjzrfwmqukc'], ['leiupzardbfsv', 'dzuwlesifrbp', 'ldiupzersfb', 'fupwslrzbedi'], ['jtdp', 'dajg'], ['jpglzoriafexks', 'gpaozketlcixs'], ['butisvecnfplqmygworax', 'jrhpbwztcveifamlyqxdung'], ['r', 'r', 'r', 'zr'], ['eyniaztvgdrl', 'dalgonxbiecywthzvr', 'dtzrgenvliya'], ['akzferolcmstgby', 'kmcagsbteyrlfzo', 'aoktgslmcrzbfye'], ['jqigpeydwl', 'mkeaxqcudzgvfhb'], ['ayhgbfzerjxd', 'rnzfaxy', 'wyzaxnrf', 'ycazxfrw', 'ayzxrf'], ['jgmkwtnizxrcbvfqhyeal', 'mwatrngvlezckqfiybhjx', 'vmrwyqnigzhtjfckxaeb', 'wkehnqrtcjigzxavbfym', 'vrczmohgtfbnaejxqiwyk'], ['c', 'c', 'c', 'c'], ['idx', 'id', 'id'], ['zaipnjbsxkg', 'xevnfipkjgb', 'ujxldqcnbhi'], ['hco', 'co'], ['ztlrica', 'ktneixcrs'], ['hlutcdsgoj', 'mwlypnzbqafvxkire'], ['lznhjwgsiv', 'wricunaxj'], ['fdqgyzopwlen', 'rkvt'], ['vy', 'gy'], ['ihbpfsx', 'pshixfb', 'sifxhpb'], ['begmqirvflkxuyanp', 'dmpvhfbnaxsuloqitjy'], ['uwamykhsnbfzxielpdo', 'cxzswhvtabupmqjlekond'], ['gisqpjrubx', 'rjbiuqxspg', 'gqpirxbsju'], ['u', 'u', 'v', 'u'], ['gnjqsoha', 'qgandhlyrs', 'snhqvlrabg'], ['vo', 'vo', 'ov', 'vo'], ['iudvwxpmtac', 'owlyxsangim', 'hbdrxmwaei', 'wjimax'], ['xmubte', 'yuogxa'], ['nwkurtxjcpqozmhgsvbe', 'chrmvakuyxtowqpgzbej'], ['manbesvzpyt', 'dgtwazpqjmbnr', 'itfkoupbhlcnax'], ['omhinsxf', 'lnmdoix', 'eimgrno', 'hyomidn', 'nmjodi'], ['qmpn', 'ripmn'], ['wfm', 'wmf', 'mwf', 'mfw', 'fwm'], ['uaoxphg', 'phoxb'], ['btfprm', 'ztmrf', 'mrft', 'ramft', 'tmrezfa'], ['uaznory', 'zyaiourn', 'nouryaz', 'coszugmanyr', 'lqazryonu'], ['vqlswifmcg', 'wzuclnxsvt'], ['eh', 'eh', 'he'], ['siuhfpb', 'iuhfs'], ['yfhciqlnwpgemoxktas', 'ticjauwfsygepqnhx'], ['ndmhwtub', 'zbagktxiulnwh'], ['txdikm', 'boldxtiqmf', 'dxtimj'], ['wvr', 'vwrb', 'wrv'], ['utyjachpfordvw', 'benvkudcfta', 'vduqiftcgsa', 'fcuatdxv'], ['doivj', 'jiv', 'vjkpyi', 'jvi', 'dijv'], ['mhyn', 'mxngywh', 'yjhmn', 'dmynhulkacb'], ['hpidlbezkwqtr', 'dgtaflrnyscm'], ['osqeajcvduwhzrtkl', 'zcaevujrqsdolgwkyt', 'uokqnrdjaecvwtlzs'], ['ovsbxzgaju', 'vliydjht', 'dvjt'], ['stlxuabmcwqkodevrhf', 'ajskvtpmlicqewbhuzfd'], ['g', 'cg', 'ezfo'], ['zqfmuxlnhkgdpvwrtjio', 'rkjqvomtguhpiwfzxnld', 'zfgxrclnimokhvpjdutwq', 'tgkxfqrnhdzowpvijlmu'], ['ni', 'qn', 'nq'], ['sn', 'qn', 'fdn', 'qn', 'hson'], ['tplicyhxqfujbkzv', 'qfbzvwkuycsa', 'vzqnbfcokyuda'], ['apoy', 'plfxotkv', 'iphsqjorged'], ['ravyhbsfelgcmzponqwikj', 'bitfjzwakhmvxngsoepcyrlq', 'cevpwyrnlobjsfziagkhmq', 'mswnezcpklfrjqgiyovabdh', 'cijelkwpbnhrsmzofygavq'], ['sqvnuedcytaxohplzf', 'cekhbgwadpmyofslxq'], ['gclfnxakjzsw', 'wzjcnsgka', 'ciwzsganjk', 'aspicokjgnwz'], ['qrabg', 'ajbgmw', 'yabg', 'vgsrba', 'hcgtbya'], ['xarbuvi', 'ivaku', 'kiuav', 'vzgxiah', 'flsivaj'], ['ckodrthljgyfwm', 'mgytohfxnrdkjbvlwc', 'cfdwmjoltkshrgy', 'yhwmrldfucogkjt', 'fmctpgwydhkajlro'], ['qvibocelnsdyzfkjhpuxmtrg', 'zgdksnoypqebifltcrjvuxmh', 'giocmuefxsprhdjkzntvqlyb'], ['xkcrlwomygs', 'grluckhsanomxwf', 'sriokwlmcyxg', 'kxgirswtcvlom'], ['budr', 'brdu', 'dibur', 'urbd'], ['o', 'o'], ['p', 'p', 'p', 'p'], ['wnydf', 'wrptghizjqk'], ['wnbdmltxcq', 'dfcwl'], ['ksaveflzdxqocbgyjp', 'bcxavldgysqozpkjfe', 'ozpvselaqgbdycjxfk', 'clpzdoebvqjgaskxfy', 'qykodlgvzjaxspfceb'], ['nrmdjstqozklxvcyag', 'ejzwbu'], ['kfgijmd', 'zmgjdikf', 'jgimfdk', 'ijfgkmdz', 'smbrfkxdwgeij'], ['yhtuxnfcq', 'tcyufhnxq', 'hfuxytcqn', 'nqtufyxch'], ['rlhzknoiuycefpmvxqbg', 'nbvgfexmqikpyhruo', 'hqkgnvyieomubfxpr'], ['bjyadnftcsxqk', 'lpfbvzcsumerho', 'wctsbf'], ['iyamec', 'myeibctka', 'egyicam'], ['ac', 'pvaqdb', 'a', 'au'], ['giltsum', 'ixyhncbjqped'], ['cinzuvkystgfodr', 'rksphwcfxdgey', 'xrdjkygcsfq', 'bfmdecpysrkg', 'gcrdyslfk'], ['ayqpgucwedftoxjk', 'eoagwdtkfqlypjuc'], ['ktysxp', 'sptx', 'qpxst', 'ptsqx'], ['uvclismeajkpbzgqwn', 'aicbqfzvlnuegpm', 'glecvmpzrnioudaq', 'kanmveflzpcgyuqi'], ['vklag', 'glv', 'lvg', 'lgv', 'vgl'], ['tyuh', 'hut', 'thu', 'htu', 'thu'], ['eyipwtfuhxzalmdgrs', 'whfcvbquxgepn'], ['tg', 'ge', 'g'], ['vk', 'uatvn', 'mzv'], ['jhfmpux', 'mhjquxkp'], ['gzyxjwfb', 'grzfxmwybj', 'cywfjpxztgb'], ['udrye', 'eqdyr', 'yerd', 'eryd'], ['kwdoynribhpsqmlgvuje', 'gunbjywvmheirdqpok', 'dnqeivoptrkwuyjhmg'], ['czvmpr', 'sxpum'], ['qlktsn', 'tkclq', 'sbqlkwt', 'luetjiqpk', 'lcvtqsk'], ['rotvsfwelbnj', 'fwbqmaolesn', 'qbfwegzislpnoc', 'nzoelswfpab'], ['wsecbml', 'sclabmwe', 'ezpsidclwtmbgvr', 'mcelawsb'], ['ngz', 'zg', 'gz', 'zg', 'gz'], ['xqjwnaiyb', 'jayxibqngw', 'qinjwxbay', 'nbaiwyxqj', 'jniaxqwyb'], ['hktywl', 'htwlyk', 'kytwlh'], ['ymbeahldgz', 'pjaoszx'], ['b', 'b', 'bz', 'kb'], ['gvdcqp', 'qpvyrcdlk'], ['nij', 'jfiub', 'jtieyxl', 'mnij', 'imvju'], ['qh', 'hq', 'hq', 'hq'], ['tez', 'zet', 'etz', 'etz'], ['wz', 'wz'], ['xc', 'jvxc', 'xpzc', 'rgumxc', 'xc'], ['nizsgkvylw', 'ngylivwzks', 'ylgsiznvkw', 'ilgyvsankzw', 'ilzywsnkgv'], ['emhpiwfyung', 'qlzkob', 'ldjx', 'xvat'], ['luzfaswdyj', 'jsdyuzlafw', 'ljdsafzuwy', 'yusdjwzfal', 'dsyjwuzafl'], ['uioafnlegsvjdxphr', 'lnfrjdpehvsxguoa', 'najruefdlxogvhsp'], ['gumjphl', 'mplchdjuw', 'hmjrlup', 'jmpgulh'], ['q', 'q', 'q', 'q', 'q'], ['feyimktsugrq', 'qygsrtlpmfkeui', 'sfkmrgqyitue'], ['xpklzsyodcnhrjq', 'xcznojsdpqhrlky'], ['btmsc', 'mtscbv', 'csmtb', 'tmbcsx', 'mbxtsc'], ['dvrfumay', 'ymafr', 'mrifya', 'ykrmaf'], ['do', 'd', 'andk', 'dcp', 'd'], ['glhmjykfaznvrd', 'bvmijshzga', 'vmjuqazhgpx', 'voczhgamj', 'wjhizgqavms'], ['voilgtup'], ['vrphtmc', 'bgfkjvad'], ['bxkfi', 'kixbf', 'xfkbi', 'xfikb', 'xfkbi'], ['lfixvpozghcauk', 'plgixmzukcovh', 'hyruilocxgkztqv', 'uglxkaihcozv'], ['avgptdmi', 'gydpvt', 'dptawvu', 'rvtdopxlqs'], ['rsmglpt', 'gpmnlthr'], ['tqmeukoia', 'kamiout', 'mqwauekov', 'macoryuk', 'nujbskgapmlo'], ['ndjrglykwoi', 'jrwkdnolygi', 'ownkidlryjg'], ['kwheact', 'txukwjcgbhar', 'whgotjk', 'kzhtw', 'lmvynhptdqkifw'], ['odkzwylprhvn', 'pwozvnydrh', 'zdhnpryowv'], ['crni', 'qdnkiou', 'gbwhyasjx'], ['bxitsamogcq', 'erbxklyhvtczu'], ['swrfxdpjhly', 'pwdjkvfyxrshl', 'sxehqrtwpdamnyjzolbui', 'gpdryslhwxcj'], ['fhldcksrpyi', 'qfejshrcat', 'wsmrvcnogxh'], ['vwacyofjtilrxngp', 'otylvxpfwgcnjria', 'xojfignyrtlpwvca'], ['qvz', 'ozm'], ['msrdwqahutefvxy', 'rjmyotiefuh', 'ltyrmenbzjuhf', 'felbyputmhr'], ['riyzo', 'kzroyuwi', 'yirozp', 'yoirz', 'roiyz'], ['rqjz', 'vjrq', 'qrj', 'prqj', 'zqjr'], ['vdx', 'xvd', 'xdvu', 'vdx'], ['xeauhryviqg', 'wpxkufzsjmctlnybd'], ['hbzwdlno', 'tmrj', 'np', 'lqfx', 'kuygescvia'], ['iqph', 'ihpq', 'pqhi', 'ihqp', 'qpih'], ['lsfwxmpkgqzvhecoay', 'gqfszwakhvymptcexol', 'cpaxwlzkfqvhsgemyo', 'lghfwvcmzxpokeysaq'], ['tgmpafqbuds', 'hspdfabuqgctm', 'tpcubdaqsvgm', 'mxqbktspoaujd'], ['xktgfvyprhndme', 'vntmyskfegprid', 'dsvpfmnkygtre', 'ydmvpkfretng'], ['npvgjzuo', 'mwlackhs'], ['gyj', 'myk'], ['w', 'w', 'w', 'k', 'w'], ['sgrhv', 'rixdgjluf', 'rgs', 'rsbg'], ['kmiqobutwplfryxgeajhnz', 'ylrtmpauodjnfvwgeixqz', 'extlfwjsirnmgyuqaopz'], ['vdngfjbwypio', 'sukyvfzpeqwthdxg', 'fyvrndgbwp', 'ydwfvglp'], ['fhsi', 'hsbif'], ['fihzecojaqm', 'jzchuomvwsqfr', 'jzchoqtfm'], ['kqafdzcgphvbos', 'qbspzodfavhck', 'adfozhquktlcibspv', 'szhpfboagdcqkv'], ['tmeb', 'takbe'], ['ymrhgdo', 'ypgzhmltd', 'fdbymgshcx', 'nghyzldm'], ['bxgm', 'gmxb', 'mxgb', 'gxbm', 'xbmvg'], ['fep', 'lnp', 'trjim', 'dauy', 'fplk'], ['udhzexv', 'dhmezvx', 'qdxylbhvzw', 'zveduxcht'], ['wgvhaokesjirly', 'osrewigqfdyvzk', 'kupsxrimowgbe'], ['skzvhanpljbogdyxtiquw', 'xzgdwyjluhnbstopikaqv', 'pasixghzovnjylbwudqkt'], ['wj', 'wj', 'wkj', 'jw', 'wj'], ['nsmyxfhc', 'xcfymhsn', 'hxscmnyf', 'cfxsmnlyh'], ['jpblgmiyunazcfd', 'tabnyfmupclzgd', 'esyvuphfgwbknodzcxlqa'], ['xkyqozefvgutmrw', 'rmhzwgeutoypx'], ['rzaxcemljnvo', 'kdwyqvohesitfb'], ['kfqrcezwn', 'qrnwkzcf', 'frcnqwzk', 'frnckvhzwq', 'kqzrcnfw'], ['fqux', 'qxuyfod', 'ufxq', 'qxfu', 'qxuf'], ['ztopdir', 'ritpozd', 'otrpizd', 'idpotzr'], ['jzhngmufw', 'zguwhfj'], ['ndxhmysbgcriqkewoztujva', 'cmtwbudvysekqaxizrojng', 'itncgkdyoaxswrqvmejzpbu', 'qyvcdusgwbomejtxznkira'], ['nik', 'yfi', 'i', 'i'], ['hpsdjo', 'hobps', 'ohsp', 'shpo', 'kypshio'], ['jbiyatwz', 'zbtagnrc', 'ztnagb', 'batz'], ['fvkurj', 'kfgjvru', 'jukfrv', 'kvfujr']) ret = 0 for g in m: st = set() for s in g: st.update(list(s)) ret += len(st) print(ret) ret = 0 for g in m: st = set().union(*g) ret += len(st) print(ret) print(sum((len(st) for st in (set().union(*g) for g in m)))) print(sum((len(st) for st in (set(g[0]).intersection(*g) for g in m)))) ret = 0 for g in m: st = set(list(g[0])) for s in g: st.intersection_update(list(s)) ret += len(st) print(ret)
a, b = 1, 2 result = 0 while True: a, b = b, a + b if a >= 4_000_000: break if a % 2 == 0: result += a print(result)
(a, b) = (1, 2) result = 0 while True: (a, b) = (b, a + b) if a >= 4000000: break if a % 2 == 0: result += a print(result)
def draw_1d(line, row): print(("*"*row + "\n")*line) def draw_2d(line, row, simbol): print((simbol*row + "\n")*line) def special_draw_2d(line, row, border, fill): print(border*row) row -= 2 line -= 2 i = line while i > 0: print(border + fill*row + border) i -= 1 print(border*(row+2)) special_draw_2d(7,24,"8",".")
def draw_1d(line, row): print(('*' * row + '\n') * line) def draw_2d(line, row, simbol): print((simbol * row + '\n') * line) def special_draw_2d(line, row, border, fill): print(border * row) row -= 2 line -= 2 i = line while i > 0: print(border + fill * row + border) i -= 1 print(border * (row + 2)) special_draw_2d(7, 24, '8', '.')
#!/usr/bin/env python # encoding: utf-8 # @author: Zhipeng Ye # @contact: Zhipeng.ye19@xjtlu.edu.cn # @file: implementstrstr.py # @time: 2020-02-22 16:27 # @desc: class Solution: def strStr(self, haystack, needle): if len(needle) == 0: return 0 haystack_length = len(haystack) needle_length = len(needle) if needle_length > haystack_length: return -1 index= -1 for i in range(haystack_length): j=0 current_i = i while current_i < haystack_length and haystack[current_i] == needle[j]: current_i +=1 j +=1 if j>=needle_length: return current_i - needle_length+1 return index if __name__ == '__main__': solution = Solution() print(solution.strStr('mississippi','issipi'))
class Solution: def str_str(self, haystack, needle): if len(needle) == 0: return 0 haystack_length = len(haystack) needle_length = len(needle) if needle_length > haystack_length: return -1 index = -1 for i in range(haystack_length): j = 0 current_i = i while current_i < haystack_length and haystack[current_i] == needle[j]: current_i += 1 j += 1 if j >= needle_length: return current_i - needle_length + 1 return index if __name__ == '__main__': solution = solution() print(solution.strStr('mississippi', 'issipi'))
# Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'shard', 'type': 'static_library', 'msvs_shard': 4, 'sources': [ 'hello1.cc', 'hello2.cc', 'hello3.cc', 'hello4.cc', ], 'product_dir': '<(PRODUCT_DIR)', }, { 'target_name': 'refs_to_shard', 'type': 'executable', 'dependencies': [ # Make sure references are correctly updated. 'shard', ], 'sources': [ 'hello.cc', ], }, ] }
{'targets': [{'target_name': 'shard', 'type': 'static_library', 'msvs_shard': 4, 'sources': ['hello1.cc', 'hello2.cc', 'hello3.cc', 'hello4.cc'], 'product_dir': '<(PRODUCT_DIR)'}, {'target_name': 'refs_to_shard', 'type': 'executable', 'dependencies': ['shard'], 'sources': ['hello.cc']}]}
#-*- coding: utf-8 -*- BASE = { # can be overriden by a configuration file 'SOA_MNAME': 'polaris.example.com.', 'SOA_RNAME': 'hostmaster.polaris.example.com.', 'SOA_SERIAL': 1, 'SOA_REFRESH': 3600, 'SOA_RETRY': 600, 'SOA_EXPIRE': 86400, 'SOA_MINIMUM': 1, 'SOA_TTL': 86400, 'SHARED_MEM_HOSTNAME': '127.0.0.1', 'SHARED_MEM_STATE_TIMESTAMP_KEY': 'polaris_health:state_timestamp', 'SHARED_MEM_PPDNS_STATE_KEY': 'polaris_health:ppdns_state', 'SHARED_MEM_SOCKET_TIMEOUT': 1, 'LOG': False, # copied from POLARIS_INSTALL_PREFIX env when the configuration is loaded 'INSTALL_PREFIX': None, } TOPOLOGY_MAP = {}
base = {'SOA_MNAME': 'polaris.example.com.', 'SOA_RNAME': 'hostmaster.polaris.example.com.', 'SOA_SERIAL': 1, 'SOA_REFRESH': 3600, 'SOA_RETRY': 600, 'SOA_EXPIRE': 86400, 'SOA_MINIMUM': 1, 'SOA_TTL': 86400, 'SHARED_MEM_HOSTNAME': '127.0.0.1', 'SHARED_MEM_STATE_TIMESTAMP_KEY': 'polaris_health:state_timestamp', 'SHARED_MEM_PPDNS_STATE_KEY': 'polaris_health:ppdns_state', 'SHARED_MEM_SOCKET_TIMEOUT': 1, 'LOG': False, 'INSTALL_PREFIX': None} topology_map = {}
# test_with_pytest.py def test_always_passes(): assert True def test_always_fails(): assert False
def test_always_passes(): assert True def test_always_fails(): assert False
def main(): chars = input() stack = [] for char in chars: if char == '<': # pop from stack if len(stack) != 0: stack.pop() else: stack.append(char) print(''.join(stack)) if __name__ == "__main__": main()
def main(): chars = input() stack = [] for char in chars: if char == '<': if len(stack) != 0: stack.pop() else: stack.append(char) print(''.join(stack)) if __name__ == '__main__': main()
# -*- coding: utf-8 -*- model = { 'en ': 0, 'de ': 1, ' de': 2, 'et ': 3, 'an ': 4, ' he': 5, 'er ': 6, ' va': 7, 'n d': 8, 'van': 9, 'een': 10, 'het': 11, ' ge': 12, 'oor': 13, ' ee': 14, 'der': 15, ' en': 16, 'ij ': 17, 'aar': 18, 'gen': 19, 'te ': 20, 'ver': 21, ' in': 22, ' me': 23, 'aan': 24, 'den': 25, ' we': 26, 'at ': 27, 'in ': 28, ' da': 29, ' te': 30, 'eer': 31, 'nde': 32, 'ter': 33, 'ste': 34, 'n v': 35, ' vo': 36, ' zi': 37, 'ing': 38, 'n h': 39, 'voo': 40, 'is ': 41, ' op': 42, 'tie': 43, ' aa': 44, 'ede': 45, 'erd': 46, 'ers': 47, ' be': 48, 'eme': 49, 'ten': 50, 'ken': 51, 'n e': 52, ' ni': 53, ' ve': 54, 'ent': 55, 'ijn': 56, 'jn ': 57, 'mee': 58, 'iet': 59, 'n w': 60, 'ng ': 61, 'nie': 62, ' is': 63, 'cht': 64, 'dat': 65, 'ere': 66, 'ie ': 67, 'ijk': 68, 'n b': 69, 'rde': 70, 'ar ': 71, 'e b': 72, 'e a': 73, 'met': 74, 't d': 75, 'el ': 76, 'ond': 77, 't h': 78, ' al': 79, 'e w': 80, 'op ': 81, 'ren': 82, ' di': 83, ' on': 84, 'al ': 85, 'and': 86, 'bij': 87, 'zij': 88, ' bi': 89, ' hi': 90, ' wi': 91, 'or ': 92, 'r d': 93, 't v': 94, ' wa': 95, 'e h': 96, 'lle': 97, 'rt ': 98, 'ang': 99, 'hij': 100, 'men': 101, 'n a': 102, 'n z': 103, 'rs ': 104, ' om': 105, 'e o': 106, 'e v': 107, 'end': 108, 'est': 109, 'n t': 110, 'par': 111, ' pa': 112, ' pr': 113, ' ze': 114, 'e g': 115, 'e p': 116, 'n p': 117, 'ord': 118, 'oud': 119, 'raa': 120, 'sch': 121, 't e': 122, 'ege': 123, 'ich': 124, 'ien': 125, 'aat': 126, 'ek ': 127, 'len': 128, 'n m': 129, 'nge': 130, 'nt ': 131, 'ove': 132, 'rd ': 133, 'wer': 134, ' ma': 135, ' mi': 136, 'daa': 137, 'e k': 138, 'lij': 139, 'mer': 140, 'n g': 141, 'n o': 142, 'om ': 143, 'sen': 144, 't b': 145, 'wij': 146, ' ho': 147, 'e m': 148, 'ele': 149, 'gem': 150, 'heb': 151, 'pen': 152, 'ude': 153, ' bo': 154, ' ja': 155, 'die': 156, 'e e': 157, 'eli': 158, 'erk': 159, 'le ': 160, 'pro': 161, 'rij': 162, ' er': 163, ' za': 164, 'e d': 165, 'ens': 166, 'ind': 167, 'ke ': 168, 'n k': 169, 'nd ': 170, 'nen': 171, 'nte': 172, 'r h': 173, 's d': 174, 's e': 175, 't z': 176, ' b ': 177, ' co': 178, ' ik': 179, ' ko': 180, ' ov': 181, 'eke': 182, 'hou': 183, 'ik ': 184, 'iti': 185, 'lan': 186, 'ns ': 187, 't g': 188, 't m': 189, ' do': 190, ' le': 191, ' zo': 192, 'ams': 193, 'e z': 194, 'g v': 195, 'it ': 196, 'je ': 197, 'ls ': 198, 'maa': 199, 'n i': 200, 'nke': 201, 'rke': 202, 'uit': 203, ' ha': 204, ' ka': 205, ' mo': 206, ' re': 207, ' st': 208, ' to': 209, 'age': 210, 'als': 211, 'ark': 212, 'art': 213, 'ben': 214, 'e r': 215, 'e s': 216, 'ert': 217, 'eze': 218, 'ht ': 219, 'ijd': 220, 'lem': 221, 'r v': 222, 'rte': 223, 't p': 224, 'zeg': 225, 'zic': 226, 'aak': 227, 'aal': 228, 'ag ': 229, 'ale': 230, 'bbe': 231, 'ch ': 232, 'e t': 233, 'ebb': 234, 'erz': 235, 'ft ': 236, 'ge ': 237, 'led': 238, 'mst': 239, 'n n': 240, 'oek': 241, 'r i': 242, 't o': 243, 't w': 244, 'tel': 245, 'tte': 246, 'uur': 247, 'we ': 248, 'zit': 249, ' af': 250, ' li': 251, ' ui': 252, 'ak ': 253, 'all': 254, 'aut': 255, 'doo': 256, 'e i': 257, 'ene': 258, 'erg': 259, 'ete': 260, 'ges': 261, 'hee': 262, 'jaa': 263, 'jke': 264, 'kee': 265, 'kel': 266, 'kom': 267, 'lee': 268, 'moe': 269, 'n s': 270, 'ort': 271, 'rec': 272, 's o': 273, 's v': 274, 'teg': 275, 'tij': 276, 'ven': 277, 'waa': 278, 'wel': 279, ' an': 280, ' au': 281, ' bu': 282, ' gr': 283, ' pl': 284, ' ti': 285, "'' ": 286, 'ade': 287, 'dag': 288, 'e l': 289, 'ech': 290, 'eel': 291, 'eft': 292, 'ger': 293, 'gt ': 294, 'ig ': 295, 'itt': 296, 'j d': 297, 'ppe': 298, 'rda': 299, }
model = {'en ': 0, 'de ': 1, ' de': 2, 'et ': 3, 'an ': 4, ' he': 5, 'er ': 6, ' va': 7, 'n d': 8, 'van': 9, 'een': 10, 'het': 11, ' ge': 12, 'oor': 13, ' ee': 14, 'der': 15, ' en': 16, 'ij ': 17, 'aar': 18, 'gen': 19, 'te ': 20, 'ver': 21, ' in': 22, ' me': 23, 'aan': 24, 'den': 25, ' we': 26, 'at ': 27, 'in ': 28, ' da': 29, ' te': 30, 'eer': 31, 'nde': 32, 'ter': 33, 'ste': 34, 'n v': 35, ' vo': 36, ' zi': 37, 'ing': 38, 'n h': 39, 'voo': 40, 'is ': 41, ' op': 42, 'tie': 43, ' aa': 44, 'ede': 45, 'erd': 46, 'ers': 47, ' be': 48, 'eme': 49, 'ten': 50, 'ken': 51, 'n e': 52, ' ni': 53, ' ve': 54, 'ent': 55, 'ijn': 56, 'jn ': 57, 'mee': 58, 'iet': 59, 'n w': 60, 'ng ': 61, 'nie': 62, ' is': 63, 'cht': 64, 'dat': 65, 'ere': 66, 'ie ': 67, 'ijk': 68, 'n b': 69, 'rde': 70, 'ar ': 71, 'e b': 72, 'e a': 73, 'met': 74, 't d': 75, 'el ': 76, 'ond': 77, 't h': 78, ' al': 79, 'e w': 80, 'op ': 81, 'ren': 82, ' di': 83, ' on': 84, 'al ': 85, 'and': 86, 'bij': 87, 'zij': 88, ' bi': 89, ' hi': 90, ' wi': 91, 'or ': 92, 'r d': 93, 't v': 94, ' wa': 95, 'e h': 96, 'lle': 97, 'rt ': 98, 'ang': 99, 'hij': 100, 'men': 101, 'n a': 102, 'n z': 103, 'rs ': 104, ' om': 105, 'e o': 106, 'e v': 107, 'end': 108, 'est': 109, 'n t': 110, 'par': 111, ' pa': 112, ' pr': 113, ' ze': 114, 'e g': 115, 'e p': 116, 'n p': 117, 'ord': 118, 'oud': 119, 'raa': 120, 'sch': 121, 't e': 122, 'ege': 123, 'ich': 124, 'ien': 125, 'aat': 126, 'ek ': 127, 'len': 128, 'n m': 129, 'nge': 130, 'nt ': 131, 'ove': 132, 'rd ': 133, 'wer': 134, ' ma': 135, ' mi': 136, 'daa': 137, 'e k': 138, 'lij': 139, 'mer': 140, 'n g': 141, 'n o': 142, 'om ': 143, 'sen': 144, 't b': 145, 'wij': 146, ' ho': 147, 'e m': 148, 'ele': 149, 'gem': 150, 'heb': 151, 'pen': 152, 'ude': 153, ' bo': 154, ' ja': 155, 'die': 156, 'e e': 157, 'eli': 158, 'erk': 159, 'le ': 160, 'pro': 161, 'rij': 162, ' er': 163, ' za': 164, 'e d': 165, 'ens': 166, 'ind': 167, 'ke ': 168, 'n k': 169, 'nd ': 170, 'nen': 171, 'nte': 172, 'r h': 173, 's d': 174, 's e': 175, 't z': 176, ' b ': 177, ' co': 178, ' ik': 179, ' ko': 180, ' ov': 181, 'eke': 182, 'hou': 183, 'ik ': 184, 'iti': 185, 'lan': 186, 'ns ': 187, 't g': 188, 't m': 189, ' do': 190, ' le': 191, ' zo': 192, 'ams': 193, 'e z': 194, 'g v': 195, 'it ': 196, 'je ': 197, 'ls ': 198, 'maa': 199, 'n i': 200, 'nke': 201, 'rke': 202, 'uit': 203, ' ha': 204, ' ka': 205, ' mo': 206, ' re': 207, ' st': 208, ' to': 209, 'age': 210, 'als': 211, 'ark': 212, 'art': 213, 'ben': 214, 'e r': 215, 'e s': 216, 'ert': 217, 'eze': 218, 'ht ': 219, 'ijd': 220, 'lem': 221, 'r v': 222, 'rte': 223, 't p': 224, 'zeg': 225, 'zic': 226, 'aak': 227, 'aal': 228, 'ag ': 229, 'ale': 230, 'bbe': 231, 'ch ': 232, 'e t': 233, 'ebb': 234, 'erz': 235, 'ft ': 236, 'ge ': 237, 'led': 238, 'mst': 239, 'n n': 240, 'oek': 241, 'r i': 242, 't o': 243, 't w': 244, 'tel': 245, 'tte': 246, 'uur': 247, 'we ': 248, 'zit': 249, ' af': 250, ' li': 251, ' ui': 252, 'ak ': 253, 'all': 254, 'aut': 255, 'doo': 256, 'e i': 257, 'ene': 258, 'erg': 259, 'ete': 260, 'ges': 261, 'hee': 262, 'jaa': 263, 'jke': 264, 'kee': 265, 'kel': 266, 'kom': 267, 'lee': 268, 'moe': 269, 'n s': 270, 'ort': 271, 'rec': 272, 's o': 273, 's v': 274, 'teg': 275, 'tij': 276, 'ven': 277, 'waa': 278, 'wel': 279, ' an': 280, ' au': 281, ' bu': 282, ' gr': 283, ' pl': 284, ' ti': 285, "'' ": 286, 'ade': 287, 'dag': 288, 'e l': 289, 'ech': 290, 'eel': 291, 'eft': 292, 'ger': 293, 'gt ': 294, 'ig ': 295, 'itt': 296, 'j d': 297, 'ppe': 298, 'rda': 299}
class BaseError(Exception): pass class CredentialRequired(BaseError): pass class UnexpectedError(BaseError): pass class Forbidden (BaseError): pass class Not_Found (BaseError): pass class Payment_Required (BaseError): pass class Internal_Server_Error (BaseError): pass class Service_Unavailable (BaseError): pass class Bad_Request (BaseError): pass class Unauthorized (BaseError): pass class TokenRequired(BaseError): pass class DataRequired(BaseError): pass class InvalidParameters(BaseError): pass class QuotaExceeded(BaseError): pass
class Baseerror(Exception): pass class Credentialrequired(BaseError): pass class Unexpectederror(BaseError): pass class Forbidden(BaseError): pass class Not_Found(BaseError): pass class Payment_Required(BaseError): pass class Internal_Server_Error(BaseError): pass class Service_Unavailable(BaseError): pass class Bad_Request(BaseError): pass class Unauthorized(BaseError): pass class Tokenrequired(BaseError): pass class Datarequired(BaseError): pass class Invalidparameters(BaseError): pass class Quotaexceeded(BaseError): pass
def formula(): a=int(input("Enter a ")) b=int(input("Enter b ")) print((for1(a,b))*(for1(a,b))) print(for1(a,b)) def for1(a,b): return(a+b) formula()
def formula(): a = int(input('Enter a ')) b = int(input('Enter b ')) print(for1(a, b) * for1(a, b)) print(for1(a, b)) def for1(a, b): return a + b formula()
class Solution(object): def insert(self, intervals, working): r = [] s = working[0] e = working[1] for pair in intervals: print(r,s,e,pair) print() cs = pair[0] ce = pair[1] if ce < s: r.append(pair) elif cs <= s and ce >= s and ce <= e: s = cs e = e elif cs >= s and ce <= e: pass elif cs <=s and ce >= e: s = cs e = ce elif cs >= s and cs <= e and ce >= e: s = s e = ce elif cs > e: r.append([s,e]) s = cs e = ce else: print("should not happen") print(r,s,e,cs,ce) r.append([s,e]) return r def test(): s=Solution() cur = [[1,2],[3,5],[6,7],[8,10],[12,16]] new = [4,8] cur = [[1,3],[6,9]] new = [2,5] r=s.insert(cur, new) print(cur) print(new) print(r) test()
class Solution(object): def insert(self, intervals, working): r = [] s = working[0] e = working[1] for pair in intervals: print(r, s, e, pair) print() cs = pair[0] ce = pair[1] if ce < s: r.append(pair) elif cs <= s and ce >= s and (ce <= e): s = cs e = e elif cs >= s and ce <= e: pass elif cs <= s and ce >= e: s = cs e = ce elif cs >= s and cs <= e and (ce >= e): s = s e = ce elif cs > e: r.append([s, e]) s = cs e = ce else: print('should not happen') print(r, s, e, cs, ce) r.append([s, e]) return r def test(): s = solution() cur = [[1, 2], [3, 5], [6, 7], [8, 10], [12, 16]] new = [4, 8] cur = [[1, 3], [6, 9]] new = [2, 5] r = s.insert(cur, new) print(cur) print(new) print(r) test()
#!/bin/zsh def isphonenumber(text): if len(text) != 12: return False for i in range(0, 3): if not text[i].isdecimal(): return False if text[3] != '-': return False for i in range(4, 7): if not text[i].isdecimal(): return False if text[7] != '-': return False for i in range(8, 12): if not text[i].isdecimal(): return False return True ''' print('415-555-4242 is a phone number: ') print(isphonenumber('415-555-4242')) print('moshi moshi is not a phone number: ') print(isphonenumber('moshi moshi')) ''' message = 'call me at 415-555-1011 tomorrow 415-555-9999 is my office.' for i in range(len(message)): chunk = message[i:i+12] if isphonenumber(chunk): print('Phone number found: ' + chunk) print('Done')
def isphonenumber(text): if len(text) != 12: return False for i in range(0, 3): if not text[i].isdecimal(): return False if text[3] != '-': return False for i in range(4, 7): if not text[i].isdecimal(): return False if text[7] != '-': return False for i in range(8, 12): if not text[i].isdecimal(): return False return True "\nprint('415-555-4242 is a phone number: ')\nprint(isphonenumber('415-555-4242'))\n\nprint('moshi moshi is not a phone number: ')\nprint(isphonenumber('moshi moshi'))\n" message = 'call me at 415-555-1011 tomorrow 415-555-9999 is my office.' for i in range(len(message)): chunk = message[i:i + 12] if isphonenumber(chunk): print('Phone number found: ' + chunk) print('Done')
class BiggestRectangleEasy: def findArea(self, N): m, n = 0, N/2 for i in xrange(n+1): m = max(m, i*(n-i)) return m
class Biggestrectangleeasy: def find_area(self, N): (m, n) = (0, N / 2) for i in xrange(n + 1): m = max(m, i * (n - i)) return m
class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: l = [] for i in range(1<<len(nums)): subset = [] for j in range(len(nums)): if i & (1<<j): subset.append(nums[j]) l.append(subset) return l
class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: l = [] for i in range(1 << len(nums)): subset = [] for j in range(len(nums)): if i & 1 << j: subset.append(nums[j]) l.append(subset) return l
# VEX Variables class VEXVariable: __slots__ = tuple() def __hash__(self): raise NotImplementedError() def __eq__(self, other): raise NotImplementedError() class VEXMemVar: __slots__ = ('addr', 'size', ) def __init__(self, addr, size): self.addr = addr self.size = size def __hash__(self): return hash((VEXMemVar, self.addr, self.size)) def __eq__(self, other): return type(other) is VEXMemVar and other.addr == self.addr and other.size == self.size def __repr__(self): return "<mem %#x[%d bytes]>" % (self.addr, self.size) class VEXReg(VEXVariable): __slots__ = ('offset', 'size', ) def __init__(self, offset, size): self.offset = offset self.size = size def __hash__(self): return hash((VEXReg, self.offset, self.size)) def __eq__(self, other): return type(other) is VEXReg and other.offset == self.offset and other.size == self.size def __repr__(self): return "<reg %d[%d]>" % (self.offset, self.size) class VEXTmp(VEXVariable): __slots__ = ('tmp', ) def __init__(self, tmp): self.tmp = tmp def __hash__(self): return hash((VEXTmp, self.tmp)) def __eq__(self, other): return type(other) is VEXTmp and other.tmp == self.tmp def __repr__(self): return "<tmp %d>" % self.tmp
class Vexvariable: __slots__ = tuple() def __hash__(self): raise not_implemented_error() def __eq__(self, other): raise not_implemented_error() class Vexmemvar: __slots__ = ('addr', 'size') def __init__(self, addr, size): self.addr = addr self.size = size def __hash__(self): return hash((VEXMemVar, self.addr, self.size)) def __eq__(self, other): return type(other) is VEXMemVar and other.addr == self.addr and (other.size == self.size) def __repr__(self): return '<mem %#x[%d bytes]>' % (self.addr, self.size) class Vexreg(VEXVariable): __slots__ = ('offset', 'size') def __init__(self, offset, size): self.offset = offset self.size = size def __hash__(self): return hash((VEXReg, self.offset, self.size)) def __eq__(self, other): return type(other) is VEXReg and other.offset == self.offset and (other.size == self.size) def __repr__(self): return '<reg %d[%d]>' % (self.offset, self.size) class Vextmp(VEXVariable): __slots__ = ('tmp',) def __init__(self, tmp): self.tmp = tmp def __hash__(self): return hash((VEXTmp, self.tmp)) def __eq__(self, other): return type(other) is VEXTmp and other.tmp == self.tmp def __repr__(self): return '<tmp %d>' % self.tmp
''' A script that replaces commas with tabs in a file ''' in_filename = input("Please input the file name:") out_filename = "out_"+in_filename with open(in_filename,"r") as fin: with open(out_filename,"w+") as fout: for line in fin: fout.write(line.replace(',','\t')) print("Output File:",out_filename)
""" A script that replaces commas with tabs in a file """ in_filename = input('Please input the file name:') out_filename = 'out_' + in_filename with open(in_filename, 'r') as fin: with open(out_filename, 'w+') as fout: for line in fin: fout.write(line.replace(',', '\t')) print('Output File:', out_filename)
class Command: def __init__(self): self.id self.commandName self.commandEmbbeding self.event
class Command: def __init__(self): self.id self.commandName self.commandEmbbeding self.event
def get_input() -> list: with open(f"{__file__.rstrip('code.py')}input.txt") as f: return [l[:-1] for l in f.readlines()] def parse_input(lines: list) -> list: instructions = [] for line in lines: split = line.split(" ") instructions.append([split[0], int(split[1])]) return instructions def run(instructions: list) -> tuple: pointer, acc, size, history = 0, 0, len(instructions), [] while not pointer in history and pointer < size: history.append(pointer) if instructions[pointer][0] == "acc": acc += instructions[pointer][1] elif instructions[pointer][0] == "jmp": pointer += instructions[pointer][1] continue pointer += 1 return pointer, acc def part1(vals: list) -> int: return run(vals)[1] def part2(vals: list) -> int: pointer, acc = run(vals) i, size = 0, len(vals) while pointer < size: while vals[i][0] == "acc": i += 1 vals[i][0] = "jmp" if vals[i][0] == "nop" else "nop" pointer, acc = run(vals) vals[i][0] = "jmp" if vals[i][0] == "nop" else "nop" i += 1 return acc def main(): file_input = parse_input(get_input()) print(f"Part 1: {part1(file_input)}") print(f"Part 2: {part2(file_input)}") def test(): test_input = parse_input([ "nop +0", "acc +1", "jmp +4", "acc +3", "jmp -3", "acc -99", "acc +1", "jmp -4", "acc +6", ]) assert part1(test_input) == 5 assert part2(test_input) == 8 if __name__ == "__main__": test() main()
def get_input() -> list: with open(f"{__file__.rstrip('code.py')}input.txt") as f: return [l[:-1] for l in f.readlines()] def parse_input(lines: list) -> list: instructions = [] for line in lines: split = line.split(' ') instructions.append([split[0], int(split[1])]) return instructions def run(instructions: list) -> tuple: (pointer, acc, size, history) = (0, 0, len(instructions), []) while not pointer in history and pointer < size: history.append(pointer) if instructions[pointer][0] == 'acc': acc += instructions[pointer][1] elif instructions[pointer][0] == 'jmp': pointer += instructions[pointer][1] continue pointer += 1 return (pointer, acc) def part1(vals: list) -> int: return run(vals)[1] def part2(vals: list) -> int: (pointer, acc) = run(vals) (i, size) = (0, len(vals)) while pointer < size: while vals[i][0] == 'acc': i += 1 vals[i][0] = 'jmp' if vals[i][0] == 'nop' else 'nop' (pointer, acc) = run(vals) vals[i][0] = 'jmp' if vals[i][0] == 'nop' else 'nop' i += 1 return acc def main(): file_input = parse_input(get_input()) print(f'Part 1: {part1(file_input)}') print(f'Part 2: {part2(file_input)}') def test(): test_input = parse_input(['nop +0', 'acc +1', 'jmp +4', 'acc +3', 'jmp -3', 'acc -99', 'acc +1', 'jmp -4', 'acc +6']) assert part1(test_input) == 5 assert part2(test_input) == 8 if __name__ == '__main__': test() main()
with open("files_question4.txt")as main_file: with open("Delhi.txt","w")as file1: with open("Shimla.txt","w") as file2: with open("other.txt","w") as file3: for i in main_file: if "delhi" in i: file1.write(i) elif "Shimla" in i: file2.write(i) else: file3.write(i) main_file.close() # main_file=open("files_question3.txt") # file1=open("Delhi.txt","w") # file2=open("Shimla.txt","w") # file3=open("other.txt","w") # for i in main_file: # if "delhi" in i: # file1.write(i) # elif "shimla" in i: # file2.write(i) # else: # file3.write(i) # main_file.close()
with open('files_question4.txt') as main_file: with open('Delhi.txt', 'w') as file1: with open('Shimla.txt', 'w') as file2: with open('other.txt', 'w') as file3: for i in main_file: if 'delhi' in i: file1.write(i) elif 'Shimla' in i: file2.write(i) else: file3.write(i) main_file.close()
def create_new_employee_department(): employee_department = [] emp = ' ' while emp != ' ': emp_department_input = input('Enter employee last name \n') employee_department.append(emp_department_input) return employee_department
def create_new_employee_department(): employee_department = [] emp = ' ' while emp != ' ': emp_department_input = input('Enter employee last name \n') employee_department.append(emp_department_input) return employee_department
# TRANSCRIBE TO MRNA EDABIT SOLUTION: # creating a function to solve the problem. def dna_to_rna(dna): # returning the DNA strand with modifications to make it an RNA strand. return(dna.replace("A", "U") .replace("T", "A") .replace("G", "C") .replace("C", "G"))
def dna_to_rna(dna): return dna.replace('A', 'U').replace('T', 'A').replace('G', 'C').replace('C', 'G')
class Calculator: def add(self, x, y): return x + y def subtract(self, x, y): return x - y def multiply(self, x, y): return x * y def divide(self, x, y): try: return x / y except ZeroDivisionError: print('Invalid operation. Division by 0') calculator = Calculator() print(calculator.divide(5,1)) calculator.divide(5,0)
class Calculator: def add(self, x, y): return x + y def subtract(self, x, y): return x - y def multiply(self, x, y): return x * y def divide(self, x, y): try: return x / y except ZeroDivisionError: print('Invalid operation. Division by 0') calculator = calculator() print(calculator.divide(5, 1)) calculator.divide(5, 0)
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"func": "MLE_01_serving.ipynb", "Class": "MLE_01_serving.ipynb"} modules = ["de__extract.py", "de__transform.py", "de__load.py", "ds__load.py", "ds__preprocess.py", "ds__build_features.py", "ds__modelling.py", "ds__validate.py", "ds__postprocess.py", "mle__pipeline_utils.py", "mle__serving.py"] doc_url = "https://{user}.github.io/{repo_name}/src/" git_url = "https://github.com/{user}/src/tree/{branch}/" def custom_doc_links(name): return None
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url'] index = {'func': 'MLE_01_serving.ipynb', 'Class': 'MLE_01_serving.ipynb'} modules = ['de__extract.py', 'de__transform.py', 'de__load.py', 'ds__load.py', 'ds__preprocess.py', 'ds__build_features.py', 'ds__modelling.py', 'ds__validate.py', 'ds__postprocess.py', 'mle__pipeline_utils.py', 'mle__serving.py'] doc_url = 'https://{user}.github.io/{repo_name}/src/' git_url = 'https://github.com/{user}/src/tree/{branch}/' def custom_doc_links(name): return None
def bisection(f, x0, x1, error=1e-15): if f(x0) * f(x1) > 0: print("No root found.") else: while True: mid = 0.5 * (x0 + x1) if abs(f(mid)) < error: return mid elif f(x0) * f(mid) > 0: x0 = mid else: x1 = mid def secant(f, x0, x1, error=1e-15): fx0 = f(x0) fx1 = f(x1) while abs(fx1) > error: x2 = (x0 * fx1 - x1 * fx0) / (fx1 - fx0) x0, x1 = x1, x2 fx0, fx1 = fx1, f(x2) return x1 def newton_raphson(f, df_dx, x0, error=1e-15): while abs(f(x0)) > error: x0 -= f(x0) / df_dx(x0) return x0 def newton_raphson_2x2(f, g, fx, fy, gx, gy, x0, y0, error=1e-15): while abs(f(x0, y0)) > error or abs(g(x0, y0)) > error: jacobian = fx(x0, y0) * gy(x0, y0) - gx(x0, y0) * fy(x0, y0) x0 = x0 + (g(x0, y0) * fy(x0, y0) - f(x0, y0) * gy(x0, y0)) / jacobian y0 = y0 + (f(x0, y0) * gx(x0, y0) - g(x0, y0) * fx(x0, y0)) / jacobian return x0, y0 def newton_raphson_multiple_roots(f, df_dx, n, x0=2., error=1e-15): roots = [] for i in range(n): xi = x0 while abs(f(xi)) > error: xi -= f(xi) / (df_dx(xi) - f(xi) * sum([1 / (xi - root) for root in roots])) roots.append(xi) return sorted(roots)
def bisection(f, x0, x1, error=1e-15): if f(x0) * f(x1) > 0: print('No root found.') else: while True: mid = 0.5 * (x0 + x1) if abs(f(mid)) < error: return mid elif f(x0) * f(mid) > 0: x0 = mid else: x1 = mid def secant(f, x0, x1, error=1e-15): fx0 = f(x0) fx1 = f(x1) while abs(fx1) > error: x2 = (x0 * fx1 - x1 * fx0) / (fx1 - fx0) (x0, x1) = (x1, x2) (fx0, fx1) = (fx1, f(x2)) return x1 def newton_raphson(f, df_dx, x0, error=1e-15): while abs(f(x0)) > error: x0 -= f(x0) / df_dx(x0) return x0 def newton_raphson_2x2(f, g, fx, fy, gx, gy, x0, y0, error=1e-15): while abs(f(x0, y0)) > error or abs(g(x0, y0)) > error: jacobian = fx(x0, y0) * gy(x0, y0) - gx(x0, y0) * fy(x0, y0) x0 = x0 + (g(x0, y0) * fy(x0, y0) - f(x0, y0) * gy(x0, y0)) / jacobian y0 = y0 + (f(x0, y0) * gx(x0, y0) - g(x0, y0) * fx(x0, y0)) / jacobian return (x0, y0) def newton_raphson_multiple_roots(f, df_dx, n, x0=2.0, error=1e-15): roots = [] for i in range(n): xi = x0 while abs(f(xi)) > error: xi -= f(xi) / (df_dx(xi) - f(xi) * sum([1 / (xi - root) for root in roots])) roots.append(xi) return sorted(roots)
# Longest Substring Without Repeating Characters class Solution: def lengthOfLongestSubstring(self, s: str) -> int: window = set() # pointer of sliding window, if find the char in window, then need to move pointer to right to remove all chars until remove this char left = 0 max_len = 0 cur_len = 0 for ch in s: while ch in window: window.remove(s[left]) left +=1 cur_len -=1 window.add(ch) cur_len +=1 max_len = max(max_len,cur_len) return max_len # time: O(n) # space: O(n)
class Solution: def length_of_longest_substring(self, s: str) -> int: window = set() left = 0 max_len = 0 cur_len = 0 for ch in s: while ch in window: window.remove(s[left]) left += 1 cur_len -= 1 window.add(ch) cur_len += 1 max_len = max(max_len, cur_len) return max_len
{ "targets": [ { # OpenSSL has a lot of config options, with some default options # enabling known insecure algorithms. What's a good combinations # of openssl config options? # ./config no-asm no-shared no-ssl2 no-ssl3 no-hw no-zlib no-threads # ? # See also http://codefromthe70s.org/sslimprov.aspx "target_name": "openssl", "type": "static_library", # The list of sources I computed on Windows via: # >cd bru_modules\openssl\1.0.1m\openssl-1.0.1m # >perl Configure VC-WIN32 no-asm no-ssl2 no-ssl3 no-hw # >call ms\\do_ms.bat # >nmake /n /f ms\nt.mak > nmake.log # >cd bru_modules\openssl # where the *.gyp is located # >~\bru\makefile2gyp.py 1.0.1m\openssl-1.0.1m\nmake.log "sources": [ "1.0.1m/openssl-1.0.1m/crypto/aes/aes_cbc.c", "1.0.1m/openssl-1.0.1m/crypto/aes/aes_cfb.c", "1.0.1m/openssl-1.0.1m/crypto/aes/aes_core.c", "1.0.1m/openssl-1.0.1m/crypto/aes/aes_ctr.c", "1.0.1m/openssl-1.0.1m/crypto/aes/aes_ecb.c", "1.0.1m/openssl-1.0.1m/crypto/aes/aes_ige.c", "1.0.1m/openssl-1.0.1m/crypto/aes/aes_misc.c", "1.0.1m/openssl-1.0.1m/crypto/aes/aes_ofb.c", "1.0.1m/openssl-1.0.1m/crypto/aes/aes_wrap.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_bitstr.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_bool.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_bytes.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_d2i_fp.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_digest.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_dup.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_enum.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_gentm.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_i2d_fp.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_int.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_mbstr.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_object.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_octet.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_print.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_set.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_sign.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_strex.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_strnid.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_time.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_type.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_utctm.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_utf8.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/a_verify.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/ameth_lib.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/asn1_err.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/asn1_gen.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/asn1_lib.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/asn1_par.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/asn_mime.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/asn_moid.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/asn_pack.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/bio_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/bio_ndef.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/d2i_pr.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/d2i_pu.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/evp_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/f_enum.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/f_int.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/f_string.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/i2d_pr.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/i2d_pu.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/n_pkey.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/nsseq.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/p5_pbe.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/p5_pbev2.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/p8_pkey.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/t_bitst.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/t_crl.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/t_pkey.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/t_req.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/t_spki.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/t_x509.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/t_x509a.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_dec.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_enc.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_fre.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_new.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_prn.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_typ.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_utl.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_algor.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_attrib.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_bignum.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_crl.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_exten.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_info.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_long.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_name.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_nx509.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_pkey.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_pubkey.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_req.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_sig.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_spki.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_val.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_x509.c", "1.0.1m/openssl-1.0.1m/crypto/asn1/x_x509a.c", "1.0.1m/openssl-1.0.1m/crypto/bf/bf_cfb64.c", "1.0.1m/openssl-1.0.1m/crypto/bf/bf_ecb.c", "1.0.1m/openssl-1.0.1m/crypto/bf/bf_enc.c", "1.0.1m/openssl-1.0.1m/crypto/bf/bf_ofb64.c", "1.0.1m/openssl-1.0.1m/crypto/bf/bf_skey.c", "1.0.1m/openssl-1.0.1m/crypto/bf/bftest.c", "1.0.1m/openssl-1.0.1m/crypto/bio/b_dump.c", "1.0.1m/openssl-1.0.1m/crypto/bio/b_print.c", "1.0.1m/openssl-1.0.1m/crypto/bio/b_sock.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bf_buff.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bf_nbio.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bf_null.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bio_cb.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bio_err.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bio_lib.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_acpt.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_bio.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_conn.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_dgram.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_fd.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_file.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_log.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_mem.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_null.c", "1.0.1m/openssl-1.0.1m/crypto/bio/bss_sock.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_add.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_asm.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_blind.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_const.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_ctx.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_depr.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_div.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_err.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_exp.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_exp2.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_gcd.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_gf2m.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_kron.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_lib.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_mod.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_mont.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_mpi.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_mul.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_nist.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_prime.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_print.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_rand.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_recp.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_shift.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_sqr.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_sqrt.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_word.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bn_x931p.c", "1.0.1m/openssl-1.0.1m/crypto/bn/bntest.c", "1.0.1m/openssl-1.0.1m/crypto/bn/exptest.c", "1.0.1m/openssl-1.0.1m/crypto/buffer/buf_err.c", "1.0.1m/openssl-1.0.1m/crypto/buffer/buf_str.c", "1.0.1m/openssl-1.0.1m/crypto/buffer/buffer.c", "1.0.1m/openssl-1.0.1m/crypto/camellia/camellia.c", "1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_cbc.c", "1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_cfb.c", "1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_ctr.c", "1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_ecb.c", "1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_misc.c", "1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_ofb.c", "1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_utl.c", "1.0.1m/openssl-1.0.1m/crypto/cast/c_cfb64.c", "1.0.1m/openssl-1.0.1m/crypto/cast/c_ecb.c", "1.0.1m/openssl-1.0.1m/crypto/cast/c_enc.c", "1.0.1m/openssl-1.0.1m/crypto/cast/c_ofb64.c", "1.0.1m/openssl-1.0.1m/crypto/cast/c_skey.c", "1.0.1m/openssl-1.0.1m/crypto/cast/casttest.c", "1.0.1m/openssl-1.0.1m/crypto/cmac/cm_ameth.c", "1.0.1m/openssl-1.0.1m/crypto/cmac/cm_pmeth.c", "1.0.1m/openssl-1.0.1m/crypto/cmac/cmac.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_att.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_cd.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_dd.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_enc.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_env.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_err.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_ess.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_io.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_lib.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_pwri.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_sd.c", "1.0.1m/openssl-1.0.1m/crypto/cms/cms_smime.c", "1.0.1m/openssl-1.0.1m/crypto/comp/c_rle.c", "1.0.1m/openssl-1.0.1m/crypto/comp/c_zlib.c", "1.0.1m/openssl-1.0.1m/crypto/comp/comp_err.c", "1.0.1m/openssl-1.0.1m/crypto/comp/comp_lib.c", "1.0.1m/openssl-1.0.1m/crypto/conf/conf_api.c", "1.0.1m/openssl-1.0.1m/crypto/conf/conf_def.c", "1.0.1m/openssl-1.0.1m/crypto/conf/conf_err.c", "1.0.1m/openssl-1.0.1m/crypto/conf/conf_lib.c", "1.0.1m/openssl-1.0.1m/crypto/conf/conf_mall.c", "1.0.1m/openssl-1.0.1m/crypto/conf/conf_mod.c", "1.0.1m/openssl-1.0.1m/crypto/conf/conf_sap.c", "1.0.1m/openssl-1.0.1m/crypto/constant_time_test.c", "1.0.1m/openssl-1.0.1m/crypto/cpt_err.c", "1.0.1m/openssl-1.0.1m/crypto/cryptlib.c", "1.0.1m/openssl-1.0.1m/crypto/cversion.c", "1.0.1m/openssl-1.0.1m/crypto/des/cbc_cksm.c", "1.0.1m/openssl-1.0.1m/crypto/des/cbc_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/cfb64ede.c", "1.0.1m/openssl-1.0.1m/crypto/des/cfb64enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/cfb_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/des_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/des_old.c", "1.0.1m/openssl-1.0.1m/crypto/des/des_old2.c", "1.0.1m/openssl-1.0.1m/crypto/des/destest.c", "1.0.1m/openssl-1.0.1m/crypto/des/ecb3_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/ecb_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/ede_cbcm_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/enc_read.c", "1.0.1m/openssl-1.0.1m/crypto/des/enc_writ.c", "1.0.1m/openssl-1.0.1m/crypto/des/fcrypt.c", "1.0.1m/openssl-1.0.1m/crypto/des/fcrypt_b.c", "1.0.1m/openssl-1.0.1m/crypto/des/ofb64ede.c", "1.0.1m/openssl-1.0.1m/crypto/des/ofb64enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/ofb_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/pcbc_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/qud_cksm.c", "1.0.1m/openssl-1.0.1m/crypto/des/rand_key.c", "1.0.1m/openssl-1.0.1m/crypto/des/read2pwd.c", "1.0.1m/openssl-1.0.1m/crypto/des/rpc_enc.c", "1.0.1m/openssl-1.0.1m/crypto/des/set_key.c", "1.0.1m/openssl-1.0.1m/crypto/des/str2key.c", "1.0.1m/openssl-1.0.1m/crypto/des/xcbc_enc.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_ameth.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_check.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_depr.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_err.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_gen.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_key.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_lib.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_pmeth.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dh_prn.c", "1.0.1m/openssl-1.0.1m/crypto/dh/dhtest.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_ameth.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_depr.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_err.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_gen.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_key.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_lib.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_ossl.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_pmeth.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_prn.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_sign.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_vrf.c", "1.0.1m/openssl-1.0.1m/crypto/dsa/dsatest.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_beos.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_dl.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_dlfcn.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_err.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_lib.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_null.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_openssl.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_vms.c", "1.0.1m/openssl-1.0.1m/crypto/dso/dso_win32.c", "1.0.1m/openssl-1.0.1m/crypto/ebcdic.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec2_mult.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec2_oct.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec2_smpl.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_ameth.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_check.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_curve.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_cvt.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_err.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_key.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_lib.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_mult.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_oct.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_pmeth.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ec_print.c", "1.0.1m/openssl-1.0.1m/crypto/ec/eck_prn.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ecp_mont.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nist.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nistp224.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nistp256.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nistp521.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nistputil.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ecp_oct.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ecp_smpl.c", "1.0.1m/openssl-1.0.1m/crypto/ec/ectest.c", "1.0.1m/openssl-1.0.1m/crypto/ecdh/ecdhtest.c", "1.0.1m/openssl-1.0.1m/crypto/ecdh/ech_err.c", "1.0.1m/openssl-1.0.1m/crypto/ecdh/ech_key.c", "1.0.1m/openssl-1.0.1m/crypto/ecdh/ech_lib.c", "1.0.1m/openssl-1.0.1m/crypto/ecdh/ech_ossl.c", "1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecdsatest.c", "1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_err.c", "1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_lib.c", "1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_ossl.c", "1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_sign.c", "1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_vrf.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_all.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_cnf.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_cryptodev.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_ctrl.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_dyn.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_err.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_fat.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_init.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_lib.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_list.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_openssl.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_pkey.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_rdrand.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_rsax.c", "1.0.1m/openssl-1.0.1m/crypto/engine/eng_table.c", "1.0.1m/openssl-1.0.1m/crypto/engine/enginetest.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_asnmth.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_cipher.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_dh.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_digest.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_dsa.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_ecdh.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_ecdsa.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_pkmeth.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_rand.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_rsa.c", "1.0.1m/openssl-1.0.1m/crypto/engine/tb_store.c", "1.0.1m/openssl-1.0.1m/crypto/err/err.c", "1.0.1m/openssl-1.0.1m/crypto/err/err_all.c", "1.0.1m/openssl-1.0.1m/crypto/err/err_prn.c", "1.0.1m/openssl-1.0.1m/crypto/evp/bio_b64.c", "1.0.1m/openssl-1.0.1m/crypto/evp/bio_enc.c", "1.0.1m/openssl-1.0.1m/crypto/evp/bio_md.c", "1.0.1m/openssl-1.0.1m/crypto/evp/bio_ok.c", "1.0.1m/openssl-1.0.1m/crypto/evp/c_all.c", "1.0.1m/openssl-1.0.1m/crypto/evp/c_allc.c", "1.0.1m/openssl-1.0.1m/crypto/evp/c_alld.c", "1.0.1m/openssl-1.0.1m/crypto/evp/digest.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_aes.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_aes_cbc_hmac_sha1.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_bf.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_camellia.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_cast.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_des.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_des3.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_idea.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_null.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_old.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_rc2.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_rc4.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_rc4_hmac_md5.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_rc5.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_seed.c", "1.0.1m/openssl-1.0.1m/crypto/evp/e_xcbc_d.c", "1.0.1m/openssl-1.0.1m/crypto/evp/encode.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_acnf.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_cnf.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_enc.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_err.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_fips.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_key.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_lib.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_pbe.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_pkey.c", "1.0.1m/openssl-1.0.1m/crypto/evp/evp_test.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_dss.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_dss1.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_ecdsa.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_md4.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_md5.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_mdc2.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_null.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_ripemd.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_sha.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_sha1.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_sigver.c", "1.0.1m/openssl-1.0.1m/crypto/evp/m_wp.c", "1.0.1m/openssl-1.0.1m/crypto/evp/names.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p5_crpt.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p5_crpt2.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p_dec.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p_enc.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p_lib.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p_open.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p_seal.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p_sign.c", "1.0.1m/openssl-1.0.1m/crypto/evp/p_verify.c", "1.0.1m/openssl-1.0.1m/crypto/evp/pmeth_fn.c", "1.0.1m/openssl-1.0.1m/crypto/evp/pmeth_gn.c", "1.0.1m/openssl-1.0.1m/crypto/evp/pmeth_lib.c", "1.0.1m/openssl-1.0.1m/crypto/ex_data.c", "1.0.1m/openssl-1.0.1m/crypto/fips_ers.c", "1.0.1m/openssl-1.0.1m/crypto/hmac/hm_ameth.c", "1.0.1m/openssl-1.0.1m/crypto/hmac/hm_pmeth.c", "1.0.1m/openssl-1.0.1m/crypto/hmac/hmac.c", "1.0.1m/openssl-1.0.1m/crypto/hmac/hmactest.c", "1.0.1m/openssl-1.0.1m/crypto/idea/i_cbc.c", "1.0.1m/openssl-1.0.1m/crypto/idea/i_cfb64.c", "1.0.1m/openssl-1.0.1m/crypto/idea/i_ecb.c", "1.0.1m/openssl-1.0.1m/crypto/idea/i_ofb64.c", "1.0.1m/openssl-1.0.1m/crypto/idea/i_skey.c", "1.0.1m/openssl-1.0.1m/crypto/idea/ideatest.c", "1.0.1m/openssl-1.0.1m/crypto/krb5/krb5_asn.c", "1.0.1m/openssl-1.0.1m/crypto/lhash/lh_stats.c", "1.0.1m/openssl-1.0.1m/crypto/lhash/lhash.c", "1.0.1m/openssl-1.0.1m/crypto/md4/md4_dgst.c", "1.0.1m/openssl-1.0.1m/crypto/md4/md4_one.c", "1.0.1m/openssl-1.0.1m/crypto/md4/md4test.c", "1.0.1m/openssl-1.0.1m/crypto/md5/md5_dgst.c", "1.0.1m/openssl-1.0.1m/crypto/md5/md5_one.c", "1.0.1m/openssl-1.0.1m/crypto/md5/md5test.c", "1.0.1m/openssl-1.0.1m/crypto/mdc2/mdc2_one.c", "1.0.1m/openssl-1.0.1m/crypto/mdc2/mdc2dgst.c", "1.0.1m/openssl-1.0.1m/crypto/mdc2/mdc2test.c", "1.0.1m/openssl-1.0.1m/crypto/mem.c", "1.0.1m/openssl-1.0.1m/crypto/mem_clr.c", "1.0.1m/openssl-1.0.1m/crypto/mem_dbg.c", "1.0.1m/openssl-1.0.1m/crypto/modes/cbc128.c", "1.0.1m/openssl-1.0.1m/crypto/modes/ccm128.c", "1.0.1m/openssl-1.0.1m/crypto/modes/cfb128.c", "1.0.1m/openssl-1.0.1m/crypto/modes/ctr128.c", "1.0.1m/openssl-1.0.1m/crypto/modes/cts128.c", "1.0.1m/openssl-1.0.1m/crypto/modes/gcm128.c", "1.0.1m/openssl-1.0.1m/crypto/modes/ofb128.c", "1.0.1m/openssl-1.0.1m/crypto/modes/xts128.c", "1.0.1m/openssl-1.0.1m/crypto/o_dir.c", "1.0.1m/openssl-1.0.1m/crypto/o_fips.c", "1.0.1m/openssl-1.0.1m/crypto/o_init.c", "1.0.1m/openssl-1.0.1m/crypto/o_str.c", "1.0.1m/openssl-1.0.1m/crypto/o_time.c", "1.0.1m/openssl-1.0.1m/crypto/objects/o_names.c", "1.0.1m/openssl-1.0.1m/crypto/objects/obj_dat.c", "1.0.1m/openssl-1.0.1m/crypto/objects/obj_err.c", "1.0.1m/openssl-1.0.1m/crypto/objects/obj_lib.c", "1.0.1m/openssl-1.0.1m/crypto/objects/obj_xref.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_asn.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_cl.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_err.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_ext.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_ht.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_lib.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_prn.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_srv.c", "1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_vfy.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_all.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_err.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_info.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_lib.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_oth.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_pk8.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_pkey.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_seal.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_sign.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_x509.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pem_xaux.c", "1.0.1m/openssl-1.0.1m/crypto/pem/pvkfmt.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_add.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_asn.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_attr.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_crpt.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_crt.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_decr.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_init.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_key.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_kiss.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_mutl.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_npas.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_p8d.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_p8e.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_utl.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs12/pk12err.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs7/bio_pk7.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_attr.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_doit.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_lib.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_mime.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_smime.c", "1.0.1m/openssl-1.0.1m/crypto/pkcs7/pkcs7err.c", "1.0.1m/openssl-1.0.1m/crypto/pqueue/pqueue.c", "1.0.1m/openssl-1.0.1m/crypto/rand/md_rand.c", "1.0.1m/openssl-1.0.1m/crypto/rand/rand_egd.c", "1.0.1m/openssl-1.0.1m/crypto/rand/rand_err.c", "1.0.1m/openssl-1.0.1m/crypto/rand/rand_lib.c", "1.0.1m/openssl-1.0.1m/crypto/rand/rand_nw.c", "1.0.1m/openssl-1.0.1m/crypto/rand/rand_os2.c", "1.0.1m/openssl-1.0.1m/crypto/rand/rand_unix.c", "1.0.1m/openssl-1.0.1m/crypto/rand/rand_win.c", "1.0.1m/openssl-1.0.1m/crypto/rand/randfile.c", "1.0.1m/openssl-1.0.1m/crypto/rand/randtest.c", "1.0.1m/openssl-1.0.1m/crypto/rc2/rc2_cbc.c", "1.0.1m/openssl-1.0.1m/crypto/rc2/rc2_ecb.c", "1.0.1m/openssl-1.0.1m/crypto/rc2/rc2_skey.c", "1.0.1m/openssl-1.0.1m/crypto/rc2/rc2cfb64.c", "1.0.1m/openssl-1.0.1m/crypto/rc2/rc2ofb64.c", "1.0.1m/openssl-1.0.1m/crypto/rc2/rc2test.c", #"1.0.1m/openssl-1.0.1m/crypto/rc4/rc4_enc.c", #"1.0.1m/openssl-1.0.1m/crypto/rc4/rc4_skey.c", #"1.0.1m/openssl-1.0.1m/crypto/rc4/rc4_utl.c", "1.0.1m/openssl-1.0.1m/crypto/rc4/rc4test.c", "1.0.1m/openssl-1.0.1m/crypto/ripemd/rmd_dgst.c", "1.0.1m/openssl-1.0.1m/crypto/ripemd/rmd_one.c", "1.0.1m/openssl-1.0.1m/crypto/ripemd/rmdtest.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_ameth.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_chk.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_crpt.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_depr.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_eay.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_err.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_gen.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_lib.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_none.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_null.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_oaep.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_pk1.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_pmeth.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_prn.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_pss.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_saos.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_sign.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_ssl.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_test.c", "1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_x931.c", "1.0.1m/openssl-1.0.1m/crypto/seed/seed.c", "1.0.1m/openssl-1.0.1m/crypto/seed/seed_cbc.c", "1.0.1m/openssl-1.0.1m/crypto/seed/seed_cfb.c", "1.0.1m/openssl-1.0.1m/crypto/seed/seed_ecb.c", "1.0.1m/openssl-1.0.1m/crypto/seed/seed_ofb.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha1_one.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha1dgst.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha1test.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha256.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha256t.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha512.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha512t.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha_dgst.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha_one.c", "1.0.1m/openssl-1.0.1m/crypto/sha/shatest.c", "1.0.1m/openssl-1.0.1m/crypto/srp/srp_lib.c", "1.0.1m/openssl-1.0.1m/crypto/srp/srp_vfy.c", "1.0.1m/openssl-1.0.1m/crypto/srp/srptest.c", "1.0.1m/openssl-1.0.1m/crypto/stack/stack.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_asn1.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_conf.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_err.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_lib.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_req_print.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_req_utils.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_rsp_print.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_rsp_sign.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_rsp_utils.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_rsp_verify.c", "1.0.1m/openssl-1.0.1m/crypto/ts/ts_verify_ctx.c", "1.0.1m/openssl-1.0.1m/crypto/txt_db/txt_db.c", "1.0.1m/openssl-1.0.1m/crypto/ui/ui_compat.c", "1.0.1m/openssl-1.0.1m/crypto/ui/ui_err.c", "1.0.1m/openssl-1.0.1m/crypto/ui/ui_lib.c", "1.0.1m/openssl-1.0.1m/crypto/ui/ui_openssl.c", "1.0.1m/openssl-1.0.1m/crypto/ui/ui_util.c", "1.0.1m/openssl-1.0.1m/crypto/uid.c", "1.0.1m/openssl-1.0.1m/crypto/whrlpool/wp_block.c", "1.0.1m/openssl-1.0.1m/crypto/whrlpool/wp_dgst.c", "1.0.1m/openssl-1.0.1m/crypto/whrlpool/wp_test.c", "1.0.1m/openssl-1.0.1m/crypto/x509/by_dir.c", "1.0.1m/openssl-1.0.1m/crypto/x509/by_file.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_att.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_cmp.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_d2.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_def.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_err.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_ext.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_lu.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_obj.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_r2x.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_req.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_set.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_trs.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_txt.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_v3.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_vfy.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509_vpm.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509cset.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509name.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509rset.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509spki.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x509type.c", "1.0.1m/openssl-1.0.1m/crypto/x509/x_all.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_cache.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_data.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_lib.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_map.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_node.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_tree.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_addr.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_akey.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_akeya.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_alt.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_asid.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_bcons.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_bitst.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_conf.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_cpols.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_crld.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_enum.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_extku.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_genn.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_ia5.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_info.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_int.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_lib.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_ncons.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_ocsp.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pci.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pcia.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pcons.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pku.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pmaps.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_prn.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_purp.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_skey.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_sxnet.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_utl.c", "1.0.1m/openssl-1.0.1m/crypto/x509v3/v3err.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/e_gost_err.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost2001.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost2001_keyx.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost89.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost94_keyx.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_ameth.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_asn1.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_crypt.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_ctl.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_eng.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_keywrap.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_md.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_params.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_pmeth.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gost_sign.c", "1.0.1m/openssl-1.0.1m/engines/ccgost/gosthash.c", "1.0.1m/openssl-1.0.1m/engines/e_4758cca.c", "1.0.1m/openssl-1.0.1m/engines/e_aep.c", "1.0.1m/openssl-1.0.1m/engines/e_atalla.c", "1.0.1m/openssl-1.0.1m/engines/e_capi.c", "1.0.1m/openssl-1.0.1m/engines/e_chil.c", "1.0.1m/openssl-1.0.1m/engines/e_cswift.c", "1.0.1m/openssl-1.0.1m/engines/e_gmp.c", "1.0.1m/openssl-1.0.1m/engines/e_nuron.c", "1.0.1m/openssl-1.0.1m/engines/e_padlock.c", "1.0.1m/openssl-1.0.1m/engines/e_sureware.c", "1.0.1m/openssl-1.0.1m/engines/e_ubsec.c", # these are from ssl/Makefile, not sure why these didn't # show up in the Windows nt.mak file. "1.0.1m/openssl-1.0.1m/ssl/*.c" ], "sources!": [ # exclude various tests that provide an impl of main(): "1.0.1m/openssl-1.0.1m/crypto/*/*test.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha256t.c", "1.0.1m/openssl-1.0.1m/crypto/sha/sha512t.c", "1.0.1m/openssl-1.0.1m/crypto/*test.c", "1.0.1m/openssl-1.0.1m/ssl/*test.c", "1.0.1m/openssl-1.0.1m/ssl/ssl_task*.c" ], "direct_dependent_settings": { "include_dirs": [ "1.0.1m/openssl-1.0.1m/include" ] }, "include_dirs": [ "1.0.1m/openssl-1.0.1m/include", "1.0.1m/openssl-1.0.1m/crypto", # e.g. cryptlib.h "1.0.1m/openssl-1.0.1m/crypto/asn1", # e.g. asn1_locl.h "1.0.1m/openssl-1.0.1m/crypto/evp", # e.g. evp_locl.h "1.0.1m/openssl-1.0.1m/crypto/modes", "1.0.1m/openssl-1.0.1m" # e.g. e_os.h ], "defines": [ # #defines shared across platforms copied from ms\nt.mak "OPENSSL_NO_RC4", "OPENSSL_NO_RC5", "OPENSSL_NO_MD2", "OPENSSL_NO_SSL2", "OPENSSL_NO_SSL3", "OPENSSL_NO_KRB5", "OPENSSL_NO_HW", "OPENSSL_NO_JPAKE", "OPENSSL_NO_DYNAMIC_ENGINE" ], "conditions": [ ["OS=='win'", { "defines": [ # from ms\nt.mak "OPENSSL_THREADS", "DSO_WIN32", "OPENSSL_SYSNAME_WIN32", "WIN32_LEAN_AND_MEAN", "L_ENDIAN", "_CRT_SECURE_NO_DEPRECATE", "NO_WINDOWS_BRAINDEATH" # for cversion.c ], "link_settings" : { "libraries" : [ # external libs (from nt.mak) "-lws2_32.lib", "-lgdi32.lib", "-ladvapi32.lib", "-lcrypt32.lib", "-luser32.lib" ] } }], ["OS=='mac'", { "defines": [ "OPENSSL_NO_EC_NISTP_64_GCC_128", "OPENSSL_NO_GMP", "OPENSSL_NO_JPAKE", "OPENSSL_NO_MD2", "OPENSSL_NO_RC5", "OPENSSL_NO_RFC3779", "OPENSSL_NO_SCTP", "OPENSSL_NO_SSL2", "OPENSSL_NO_SSL3", "OPENSSL_NO_STORE", "OPENSSL_NO_UNIT_TEST", "NO_WINDOWS_BRAINDEATH" ] }], ["OS=='iOS'", { "defines": [ "OPENSSL_NO_EC_NISTP_64_GCC_128", "OPENSSL_NO_GMP", "OPENSSL_NO_JPAKE", "OPENSSL_NO_MD2", "OPENSSL_NO_RC5", "OPENSSL_NO_RFC3779", "OPENSSL_NO_SCTP", "OPENSSL_NO_SSL2", "OPENSSL_NO_SSL3", "OPENSSL_NO_STORE", "OPENSSL_NO_UNIT_TEST", "NO_WINDOWS_BRAINDEATH" ] }], ["OS=='linux'", { "defines": [ # from Linux Makefile after ./configure "DSO_DLFCN", "HAVE_DLFCN_H", "L_ENDIAN", # TODO: revisit! "TERMIO", # otherwise with clang 3.5 on Ubuntu it get errors around # ROTATE() macro's inline asm. Error I had not got on # Centos with clang 3.4. # Note that this is only a problem with cflags -no-integrated-as # which was necessary for clang 3.4. Messy. TODO: revisit "OPENSSL_NO_INLINE_ASM", "NO_WINDOWS_BRAINDEATH" # for cversion.c, otherwise error (where is buildinf.h?) ], "link_settings" : { "libraries" : [ "-ldl" ] } }] ] }, { "target_name": "ssltest", "type": "executable", "test": { "cwd": "1.0.1m/openssl-1.0.1m/test" }, "defines": [ # without these we get linker errors since the test assumes # by default that SSL2 & 3 was built "OPENSSL_NO_RC4", "OPENSSL_NO_RC5", "OPENSSL_NO_MD2", "OPENSSL_NO_SSL2", "OPENSSL_NO_SSL3", "OPENSSL_NO_KRB5", "OPENSSL_NO_HW", "OPENSSL_NO_JPAKE", "OPENSSL_NO_DYNAMIC_ENGINE" ], "include_dirs": [ "1.0.1m/openssl-1.0.1m" # e.g. e_os.h ], "sources": [ # note how the ssl test depends on many #defines set via # ./configure. Do these need to be passed to the test build # explicitly? Apparently not. "1.0.1m/openssl-1.0.1m/ssl/ssltest.c" ], "dependencies": [ "openssl" ], # this disables building the example on iOS "conditions": [ ["OS=='iOS'", { "type": "none" } ] ] } # compile one of the (interactive) openssl demo apps to verify correct # compiler & linker settings in upstream gyp target: # P.S.: I dont think this test can compile on Windows, so this is not # suitable as a cross-platform test. #{ # "target_name": "demos-easy_tls", # "type": "executable", # not suitable as a test, just building this to see if it links #"test": { # "cwd": "1.0.1m/openssl-1.0.1m/demos/easy_tls" #}, # "include_dir": [ "1.0.1m/openssl-1.0.1m/demos/easy_tls" ], # "sources": [ # "1.0.1m/openssl-1.0.1m/demos/easy_tls/test.c", # "1.0.1m/openssl-1.0.1m/demos/easy_tls/easy-tls.c" # ], # "dependencies": [ "openssl" ] #} ] }
{'targets': [{'target_name': 'openssl', 'type': 'static_library', 'sources': ['1.0.1m/openssl-1.0.1m/crypto/aes/aes_cbc.c', '1.0.1m/openssl-1.0.1m/crypto/aes/aes_cfb.c', '1.0.1m/openssl-1.0.1m/crypto/aes/aes_core.c', '1.0.1m/openssl-1.0.1m/crypto/aes/aes_ctr.c', '1.0.1m/openssl-1.0.1m/crypto/aes/aes_ecb.c', '1.0.1m/openssl-1.0.1m/crypto/aes/aes_ige.c', '1.0.1m/openssl-1.0.1m/crypto/aes/aes_misc.c', '1.0.1m/openssl-1.0.1m/crypto/aes/aes_ofb.c', '1.0.1m/openssl-1.0.1m/crypto/aes/aes_wrap.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_bitstr.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_bool.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_bytes.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_d2i_fp.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_digest.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_dup.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_enum.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_gentm.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_i2d_fp.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_int.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_mbstr.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_object.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_octet.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_print.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_set.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_sign.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_strex.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_strnid.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_time.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_type.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_utctm.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_utf8.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/a_verify.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/ameth_lib.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/asn1_err.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/asn1_gen.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/asn1_lib.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/asn1_par.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/asn_mime.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/asn_moid.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/asn_pack.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/bio_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/bio_ndef.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/d2i_pr.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/d2i_pu.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/evp_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/f_enum.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/f_int.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/f_string.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/i2d_pr.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/i2d_pu.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/n_pkey.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/nsseq.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/p5_pbe.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/p5_pbev2.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/p8_pkey.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/t_bitst.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/t_crl.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/t_pkey.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/t_req.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/t_spki.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/t_x509.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/t_x509a.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_dec.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_enc.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_fre.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_new.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_prn.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_typ.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/tasn_utl.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_algor.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_attrib.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_bignum.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_crl.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_exten.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_info.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_long.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_name.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_nx509.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_pkey.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_pubkey.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_req.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_sig.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_spki.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_val.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_x509.c', '1.0.1m/openssl-1.0.1m/crypto/asn1/x_x509a.c', '1.0.1m/openssl-1.0.1m/crypto/bf/bf_cfb64.c', '1.0.1m/openssl-1.0.1m/crypto/bf/bf_ecb.c', '1.0.1m/openssl-1.0.1m/crypto/bf/bf_enc.c', '1.0.1m/openssl-1.0.1m/crypto/bf/bf_ofb64.c', '1.0.1m/openssl-1.0.1m/crypto/bf/bf_skey.c', '1.0.1m/openssl-1.0.1m/crypto/bf/bftest.c', '1.0.1m/openssl-1.0.1m/crypto/bio/b_dump.c', '1.0.1m/openssl-1.0.1m/crypto/bio/b_print.c', '1.0.1m/openssl-1.0.1m/crypto/bio/b_sock.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bf_buff.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bf_nbio.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bf_null.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bio_cb.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bio_err.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bio_lib.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_acpt.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_bio.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_conn.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_dgram.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_fd.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_file.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_log.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_mem.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_null.c', '1.0.1m/openssl-1.0.1m/crypto/bio/bss_sock.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_add.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_asm.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_blind.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_const.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_ctx.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_depr.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_div.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_err.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_exp.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_exp2.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_gcd.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_gf2m.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_kron.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_lib.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_mod.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_mont.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_mpi.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_mul.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_nist.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_prime.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_print.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_rand.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_recp.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_shift.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_sqr.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_sqrt.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_word.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bn_x931p.c', '1.0.1m/openssl-1.0.1m/crypto/bn/bntest.c', '1.0.1m/openssl-1.0.1m/crypto/bn/exptest.c', '1.0.1m/openssl-1.0.1m/crypto/buffer/buf_err.c', '1.0.1m/openssl-1.0.1m/crypto/buffer/buf_str.c', '1.0.1m/openssl-1.0.1m/crypto/buffer/buffer.c', '1.0.1m/openssl-1.0.1m/crypto/camellia/camellia.c', '1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_cbc.c', '1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_cfb.c', '1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_ctr.c', '1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_ecb.c', '1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_misc.c', '1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_ofb.c', '1.0.1m/openssl-1.0.1m/crypto/camellia/cmll_utl.c', '1.0.1m/openssl-1.0.1m/crypto/cast/c_cfb64.c', '1.0.1m/openssl-1.0.1m/crypto/cast/c_ecb.c', '1.0.1m/openssl-1.0.1m/crypto/cast/c_enc.c', '1.0.1m/openssl-1.0.1m/crypto/cast/c_ofb64.c', '1.0.1m/openssl-1.0.1m/crypto/cast/c_skey.c', '1.0.1m/openssl-1.0.1m/crypto/cast/casttest.c', '1.0.1m/openssl-1.0.1m/crypto/cmac/cm_ameth.c', '1.0.1m/openssl-1.0.1m/crypto/cmac/cm_pmeth.c', '1.0.1m/openssl-1.0.1m/crypto/cmac/cmac.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_att.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_cd.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_dd.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_enc.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_env.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_err.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_ess.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_io.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_lib.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_pwri.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_sd.c', '1.0.1m/openssl-1.0.1m/crypto/cms/cms_smime.c', '1.0.1m/openssl-1.0.1m/crypto/comp/c_rle.c', '1.0.1m/openssl-1.0.1m/crypto/comp/c_zlib.c', '1.0.1m/openssl-1.0.1m/crypto/comp/comp_err.c', '1.0.1m/openssl-1.0.1m/crypto/comp/comp_lib.c', '1.0.1m/openssl-1.0.1m/crypto/conf/conf_api.c', '1.0.1m/openssl-1.0.1m/crypto/conf/conf_def.c', '1.0.1m/openssl-1.0.1m/crypto/conf/conf_err.c', '1.0.1m/openssl-1.0.1m/crypto/conf/conf_lib.c', '1.0.1m/openssl-1.0.1m/crypto/conf/conf_mall.c', '1.0.1m/openssl-1.0.1m/crypto/conf/conf_mod.c', '1.0.1m/openssl-1.0.1m/crypto/conf/conf_sap.c', '1.0.1m/openssl-1.0.1m/crypto/constant_time_test.c', '1.0.1m/openssl-1.0.1m/crypto/cpt_err.c', '1.0.1m/openssl-1.0.1m/crypto/cryptlib.c', '1.0.1m/openssl-1.0.1m/crypto/cversion.c', '1.0.1m/openssl-1.0.1m/crypto/des/cbc_cksm.c', '1.0.1m/openssl-1.0.1m/crypto/des/cbc_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/cfb64ede.c', '1.0.1m/openssl-1.0.1m/crypto/des/cfb64enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/cfb_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/des_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/des_old.c', '1.0.1m/openssl-1.0.1m/crypto/des/des_old2.c', '1.0.1m/openssl-1.0.1m/crypto/des/destest.c', '1.0.1m/openssl-1.0.1m/crypto/des/ecb3_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/ecb_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/ede_cbcm_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/enc_read.c', '1.0.1m/openssl-1.0.1m/crypto/des/enc_writ.c', '1.0.1m/openssl-1.0.1m/crypto/des/fcrypt.c', '1.0.1m/openssl-1.0.1m/crypto/des/fcrypt_b.c', '1.0.1m/openssl-1.0.1m/crypto/des/ofb64ede.c', '1.0.1m/openssl-1.0.1m/crypto/des/ofb64enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/ofb_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/pcbc_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/qud_cksm.c', '1.0.1m/openssl-1.0.1m/crypto/des/rand_key.c', '1.0.1m/openssl-1.0.1m/crypto/des/read2pwd.c', '1.0.1m/openssl-1.0.1m/crypto/des/rpc_enc.c', '1.0.1m/openssl-1.0.1m/crypto/des/set_key.c', '1.0.1m/openssl-1.0.1m/crypto/des/str2key.c', '1.0.1m/openssl-1.0.1m/crypto/des/xcbc_enc.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_ameth.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_check.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_depr.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_err.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_gen.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_key.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_lib.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_pmeth.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dh_prn.c', '1.0.1m/openssl-1.0.1m/crypto/dh/dhtest.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_ameth.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_depr.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_err.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_gen.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_key.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_lib.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_ossl.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_pmeth.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_prn.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_sign.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsa_vrf.c', '1.0.1m/openssl-1.0.1m/crypto/dsa/dsatest.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_beos.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_dl.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_dlfcn.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_err.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_lib.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_null.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_openssl.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_vms.c', '1.0.1m/openssl-1.0.1m/crypto/dso/dso_win32.c', '1.0.1m/openssl-1.0.1m/crypto/ebcdic.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec2_mult.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec2_oct.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec2_smpl.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_ameth.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_check.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_curve.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_cvt.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_err.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_key.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_lib.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_mult.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_oct.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_pmeth.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ec_print.c', '1.0.1m/openssl-1.0.1m/crypto/ec/eck_prn.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ecp_mont.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nist.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nistp224.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nistp256.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nistp521.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ecp_nistputil.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ecp_oct.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ecp_smpl.c', '1.0.1m/openssl-1.0.1m/crypto/ec/ectest.c', '1.0.1m/openssl-1.0.1m/crypto/ecdh/ecdhtest.c', '1.0.1m/openssl-1.0.1m/crypto/ecdh/ech_err.c', '1.0.1m/openssl-1.0.1m/crypto/ecdh/ech_key.c', '1.0.1m/openssl-1.0.1m/crypto/ecdh/ech_lib.c', '1.0.1m/openssl-1.0.1m/crypto/ecdh/ech_ossl.c', '1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecdsatest.c', '1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_err.c', '1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_lib.c', '1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_ossl.c', '1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_sign.c', '1.0.1m/openssl-1.0.1m/crypto/ecdsa/ecs_vrf.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_all.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_cnf.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_cryptodev.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_ctrl.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_dyn.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_err.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_fat.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_init.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_lib.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_list.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_openssl.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_pkey.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_rdrand.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_rsax.c', '1.0.1m/openssl-1.0.1m/crypto/engine/eng_table.c', '1.0.1m/openssl-1.0.1m/crypto/engine/enginetest.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_asnmth.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_cipher.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_dh.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_digest.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_dsa.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_ecdh.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_ecdsa.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_pkmeth.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_rand.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_rsa.c', '1.0.1m/openssl-1.0.1m/crypto/engine/tb_store.c', '1.0.1m/openssl-1.0.1m/crypto/err/err.c', '1.0.1m/openssl-1.0.1m/crypto/err/err_all.c', '1.0.1m/openssl-1.0.1m/crypto/err/err_prn.c', '1.0.1m/openssl-1.0.1m/crypto/evp/bio_b64.c', '1.0.1m/openssl-1.0.1m/crypto/evp/bio_enc.c', '1.0.1m/openssl-1.0.1m/crypto/evp/bio_md.c', '1.0.1m/openssl-1.0.1m/crypto/evp/bio_ok.c', '1.0.1m/openssl-1.0.1m/crypto/evp/c_all.c', '1.0.1m/openssl-1.0.1m/crypto/evp/c_allc.c', '1.0.1m/openssl-1.0.1m/crypto/evp/c_alld.c', '1.0.1m/openssl-1.0.1m/crypto/evp/digest.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_aes.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_aes_cbc_hmac_sha1.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_bf.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_camellia.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_cast.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_des.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_des3.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_idea.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_null.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_old.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_rc2.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_rc4.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_rc4_hmac_md5.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_rc5.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_seed.c', '1.0.1m/openssl-1.0.1m/crypto/evp/e_xcbc_d.c', '1.0.1m/openssl-1.0.1m/crypto/evp/encode.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_acnf.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_cnf.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_enc.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_err.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_fips.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_key.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_lib.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_pbe.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_pkey.c', '1.0.1m/openssl-1.0.1m/crypto/evp/evp_test.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_dss.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_dss1.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_ecdsa.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_md4.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_md5.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_mdc2.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_null.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_ripemd.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_sha.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_sha1.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_sigver.c', '1.0.1m/openssl-1.0.1m/crypto/evp/m_wp.c', '1.0.1m/openssl-1.0.1m/crypto/evp/names.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p5_crpt.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p5_crpt2.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p_dec.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p_enc.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p_lib.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p_open.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p_seal.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p_sign.c', '1.0.1m/openssl-1.0.1m/crypto/evp/p_verify.c', '1.0.1m/openssl-1.0.1m/crypto/evp/pmeth_fn.c', '1.0.1m/openssl-1.0.1m/crypto/evp/pmeth_gn.c', '1.0.1m/openssl-1.0.1m/crypto/evp/pmeth_lib.c', '1.0.1m/openssl-1.0.1m/crypto/ex_data.c', '1.0.1m/openssl-1.0.1m/crypto/fips_ers.c', '1.0.1m/openssl-1.0.1m/crypto/hmac/hm_ameth.c', '1.0.1m/openssl-1.0.1m/crypto/hmac/hm_pmeth.c', '1.0.1m/openssl-1.0.1m/crypto/hmac/hmac.c', '1.0.1m/openssl-1.0.1m/crypto/hmac/hmactest.c', '1.0.1m/openssl-1.0.1m/crypto/idea/i_cbc.c', '1.0.1m/openssl-1.0.1m/crypto/idea/i_cfb64.c', '1.0.1m/openssl-1.0.1m/crypto/idea/i_ecb.c', '1.0.1m/openssl-1.0.1m/crypto/idea/i_ofb64.c', '1.0.1m/openssl-1.0.1m/crypto/idea/i_skey.c', '1.0.1m/openssl-1.0.1m/crypto/idea/ideatest.c', '1.0.1m/openssl-1.0.1m/crypto/krb5/krb5_asn.c', '1.0.1m/openssl-1.0.1m/crypto/lhash/lh_stats.c', '1.0.1m/openssl-1.0.1m/crypto/lhash/lhash.c', '1.0.1m/openssl-1.0.1m/crypto/md4/md4_dgst.c', '1.0.1m/openssl-1.0.1m/crypto/md4/md4_one.c', '1.0.1m/openssl-1.0.1m/crypto/md4/md4test.c', '1.0.1m/openssl-1.0.1m/crypto/md5/md5_dgst.c', '1.0.1m/openssl-1.0.1m/crypto/md5/md5_one.c', '1.0.1m/openssl-1.0.1m/crypto/md5/md5test.c', '1.0.1m/openssl-1.0.1m/crypto/mdc2/mdc2_one.c', '1.0.1m/openssl-1.0.1m/crypto/mdc2/mdc2dgst.c', '1.0.1m/openssl-1.0.1m/crypto/mdc2/mdc2test.c', '1.0.1m/openssl-1.0.1m/crypto/mem.c', '1.0.1m/openssl-1.0.1m/crypto/mem_clr.c', '1.0.1m/openssl-1.0.1m/crypto/mem_dbg.c', '1.0.1m/openssl-1.0.1m/crypto/modes/cbc128.c', '1.0.1m/openssl-1.0.1m/crypto/modes/ccm128.c', '1.0.1m/openssl-1.0.1m/crypto/modes/cfb128.c', '1.0.1m/openssl-1.0.1m/crypto/modes/ctr128.c', '1.0.1m/openssl-1.0.1m/crypto/modes/cts128.c', '1.0.1m/openssl-1.0.1m/crypto/modes/gcm128.c', '1.0.1m/openssl-1.0.1m/crypto/modes/ofb128.c', '1.0.1m/openssl-1.0.1m/crypto/modes/xts128.c', '1.0.1m/openssl-1.0.1m/crypto/o_dir.c', '1.0.1m/openssl-1.0.1m/crypto/o_fips.c', '1.0.1m/openssl-1.0.1m/crypto/o_init.c', '1.0.1m/openssl-1.0.1m/crypto/o_str.c', '1.0.1m/openssl-1.0.1m/crypto/o_time.c', '1.0.1m/openssl-1.0.1m/crypto/objects/o_names.c', '1.0.1m/openssl-1.0.1m/crypto/objects/obj_dat.c', '1.0.1m/openssl-1.0.1m/crypto/objects/obj_err.c', '1.0.1m/openssl-1.0.1m/crypto/objects/obj_lib.c', '1.0.1m/openssl-1.0.1m/crypto/objects/obj_xref.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_asn.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_cl.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_err.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_ext.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_ht.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_lib.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_prn.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_srv.c', '1.0.1m/openssl-1.0.1m/crypto/ocsp/ocsp_vfy.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_all.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_err.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_info.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_lib.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_oth.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_pk8.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_pkey.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_seal.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_sign.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_x509.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pem_xaux.c', '1.0.1m/openssl-1.0.1m/crypto/pem/pvkfmt.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_add.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_asn.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_attr.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_crpt.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_crt.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_decr.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_init.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_key.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_kiss.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_mutl.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_npas.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_p8d.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_p8e.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/p12_utl.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs12/pk12err.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs7/bio_pk7.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_attr.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_doit.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_lib.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_mime.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs7/pk7_smime.c', '1.0.1m/openssl-1.0.1m/crypto/pkcs7/pkcs7err.c', '1.0.1m/openssl-1.0.1m/crypto/pqueue/pqueue.c', '1.0.1m/openssl-1.0.1m/crypto/rand/md_rand.c', '1.0.1m/openssl-1.0.1m/crypto/rand/rand_egd.c', '1.0.1m/openssl-1.0.1m/crypto/rand/rand_err.c', '1.0.1m/openssl-1.0.1m/crypto/rand/rand_lib.c', '1.0.1m/openssl-1.0.1m/crypto/rand/rand_nw.c', '1.0.1m/openssl-1.0.1m/crypto/rand/rand_os2.c', '1.0.1m/openssl-1.0.1m/crypto/rand/rand_unix.c', '1.0.1m/openssl-1.0.1m/crypto/rand/rand_win.c', '1.0.1m/openssl-1.0.1m/crypto/rand/randfile.c', '1.0.1m/openssl-1.0.1m/crypto/rand/randtest.c', '1.0.1m/openssl-1.0.1m/crypto/rc2/rc2_cbc.c', '1.0.1m/openssl-1.0.1m/crypto/rc2/rc2_ecb.c', '1.0.1m/openssl-1.0.1m/crypto/rc2/rc2_skey.c', '1.0.1m/openssl-1.0.1m/crypto/rc2/rc2cfb64.c', '1.0.1m/openssl-1.0.1m/crypto/rc2/rc2ofb64.c', '1.0.1m/openssl-1.0.1m/crypto/rc2/rc2test.c', '1.0.1m/openssl-1.0.1m/crypto/rc4/rc4test.c', '1.0.1m/openssl-1.0.1m/crypto/ripemd/rmd_dgst.c', '1.0.1m/openssl-1.0.1m/crypto/ripemd/rmd_one.c', '1.0.1m/openssl-1.0.1m/crypto/ripemd/rmdtest.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_ameth.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_chk.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_crpt.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_depr.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_eay.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_err.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_gen.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_lib.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_none.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_null.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_oaep.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_pk1.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_pmeth.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_prn.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_pss.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_saos.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_sign.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_ssl.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_test.c', '1.0.1m/openssl-1.0.1m/crypto/rsa/rsa_x931.c', '1.0.1m/openssl-1.0.1m/crypto/seed/seed.c', '1.0.1m/openssl-1.0.1m/crypto/seed/seed_cbc.c', '1.0.1m/openssl-1.0.1m/crypto/seed/seed_cfb.c', '1.0.1m/openssl-1.0.1m/crypto/seed/seed_ecb.c', '1.0.1m/openssl-1.0.1m/crypto/seed/seed_ofb.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha1_one.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha1dgst.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha1test.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha256.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha256t.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha512.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha512t.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha_dgst.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha_one.c', '1.0.1m/openssl-1.0.1m/crypto/sha/shatest.c', '1.0.1m/openssl-1.0.1m/crypto/srp/srp_lib.c', '1.0.1m/openssl-1.0.1m/crypto/srp/srp_vfy.c', '1.0.1m/openssl-1.0.1m/crypto/srp/srptest.c', '1.0.1m/openssl-1.0.1m/crypto/stack/stack.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_asn1.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_conf.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_err.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_lib.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_req_print.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_req_utils.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_rsp_print.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_rsp_sign.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_rsp_utils.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_rsp_verify.c', '1.0.1m/openssl-1.0.1m/crypto/ts/ts_verify_ctx.c', '1.0.1m/openssl-1.0.1m/crypto/txt_db/txt_db.c', '1.0.1m/openssl-1.0.1m/crypto/ui/ui_compat.c', '1.0.1m/openssl-1.0.1m/crypto/ui/ui_err.c', '1.0.1m/openssl-1.0.1m/crypto/ui/ui_lib.c', '1.0.1m/openssl-1.0.1m/crypto/ui/ui_openssl.c', '1.0.1m/openssl-1.0.1m/crypto/ui/ui_util.c', '1.0.1m/openssl-1.0.1m/crypto/uid.c', '1.0.1m/openssl-1.0.1m/crypto/whrlpool/wp_block.c', '1.0.1m/openssl-1.0.1m/crypto/whrlpool/wp_dgst.c', '1.0.1m/openssl-1.0.1m/crypto/whrlpool/wp_test.c', '1.0.1m/openssl-1.0.1m/crypto/x509/by_dir.c', '1.0.1m/openssl-1.0.1m/crypto/x509/by_file.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_att.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_cmp.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_d2.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_def.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_err.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_ext.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_lu.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_obj.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_r2x.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_req.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_set.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_trs.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_txt.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_v3.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_vfy.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509_vpm.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509cset.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509name.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509rset.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509spki.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x509type.c', '1.0.1m/openssl-1.0.1m/crypto/x509/x_all.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_cache.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_data.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_lib.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_map.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_node.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/pcy_tree.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_addr.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_akey.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_akeya.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_alt.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_asid.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_bcons.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_bitst.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_conf.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_cpols.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_crld.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_enum.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_extku.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_genn.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_ia5.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_info.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_int.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_lib.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_ncons.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_ocsp.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pci.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pcia.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pcons.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pku.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_pmaps.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_prn.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_purp.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_skey.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_sxnet.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3_utl.c', '1.0.1m/openssl-1.0.1m/crypto/x509v3/v3err.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/e_gost_err.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost2001.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost2001_keyx.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost89.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost94_keyx.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_ameth.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_asn1.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_crypt.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_ctl.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_eng.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_keywrap.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_md.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_params.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_pmeth.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gost_sign.c', '1.0.1m/openssl-1.0.1m/engines/ccgost/gosthash.c', '1.0.1m/openssl-1.0.1m/engines/e_4758cca.c', '1.0.1m/openssl-1.0.1m/engines/e_aep.c', '1.0.1m/openssl-1.0.1m/engines/e_atalla.c', '1.0.1m/openssl-1.0.1m/engines/e_capi.c', '1.0.1m/openssl-1.0.1m/engines/e_chil.c', '1.0.1m/openssl-1.0.1m/engines/e_cswift.c', '1.0.1m/openssl-1.0.1m/engines/e_gmp.c', '1.0.1m/openssl-1.0.1m/engines/e_nuron.c', '1.0.1m/openssl-1.0.1m/engines/e_padlock.c', '1.0.1m/openssl-1.0.1m/engines/e_sureware.c', '1.0.1m/openssl-1.0.1m/engines/e_ubsec.c', '1.0.1m/openssl-1.0.1m/ssl/*.c'], 'sources!': ['1.0.1m/openssl-1.0.1m/crypto/*/*test.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha256t.c', '1.0.1m/openssl-1.0.1m/crypto/sha/sha512t.c', '1.0.1m/openssl-1.0.1m/crypto/*test.c', '1.0.1m/openssl-1.0.1m/ssl/*test.c', '1.0.1m/openssl-1.0.1m/ssl/ssl_task*.c'], 'direct_dependent_settings': {'include_dirs': ['1.0.1m/openssl-1.0.1m/include']}, 'include_dirs': ['1.0.1m/openssl-1.0.1m/include', '1.0.1m/openssl-1.0.1m/crypto', '1.0.1m/openssl-1.0.1m/crypto/asn1', '1.0.1m/openssl-1.0.1m/crypto/evp', '1.0.1m/openssl-1.0.1m/crypto/modes', '1.0.1m/openssl-1.0.1m'], 'defines': ['OPENSSL_NO_RC4', 'OPENSSL_NO_RC5', 'OPENSSL_NO_MD2', 'OPENSSL_NO_SSL2', 'OPENSSL_NO_SSL3', 'OPENSSL_NO_KRB5', 'OPENSSL_NO_HW', 'OPENSSL_NO_JPAKE', 'OPENSSL_NO_DYNAMIC_ENGINE'], 'conditions': [["OS=='win'", {'defines': ['OPENSSL_THREADS', 'DSO_WIN32', 'OPENSSL_SYSNAME_WIN32', 'WIN32_LEAN_AND_MEAN', 'L_ENDIAN', '_CRT_SECURE_NO_DEPRECATE', 'NO_WINDOWS_BRAINDEATH'], 'link_settings': {'libraries': ['-lws2_32.lib', '-lgdi32.lib', '-ladvapi32.lib', '-lcrypt32.lib', '-luser32.lib']}}], ["OS=='mac'", {'defines': ['OPENSSL_NO_EC_NISTP_64_GCC_128', 'OPENSSL_NO_GMP', 'OPENSSL_NO_JPAKE', 'OPENSSL_NO_MD2', 'OPENSSL_NO_RC5', 'OPENSSL_NO_RFC3779', 'OPENSSL_NO_SCTP', 'OPENSSL_NO_SSL2', 'OPENSSL_NO_SSL3', 'OPENSSL_NO_STORE', 'OPENSSL_NO_UNIT_TEST', 'NO_WINDOWS_BRAINDEATH']}], ["OS=='iOS'", {'defines': ['OPENSSL_NO_EC_NISTP_64_GCC_128', 'OPENSSL_NO_GMP', 'OPENSSL_NO_JPAKE', 'OPENSSL_NO_MD2', 'OPENSSL_NO_RC5', 'OPENSSL_NO_RFC3779', 'OPENSSL_NO_SCTP', 'OPENSSL_NO_SSL2', 'OPENSSL_NO_SSL3', 'OPENSSL_NO_STORE', 'OPENSSL_NO_UNIT_TEST', 'NO_WINDOWS_BRAINDEATH']}], ["OS=='linux'", {'defines': ['DSO_DLFCN', 'HAVE_DLFCN_H', 'L_ENDIAN', 'TERMIO', 'OPENSSL_NO_INLINE_ASM', 'NO_WINDOWS_BRAINDEATH'], 'link_settings': {'libraries': ['-ldl']}}]]}, {'target_name': 'ssltest', 'type': 'executable', 'test': {'cwd': '1.0.1m/openssl-1.0.1m/test'}, 'defines': ['OPENSSL_NO_RC4', 'OPENSSL_NO_RC5', 'OPENSSL_NO_MD2', 'OPENSSL_NO_SSL2', 'OPENSSL_NO_SSL3', 'OPENSSL_NO_KRB5', 'OPENSSL_NO_HW', 'OPENSSL_NO_JPAKE', 'OPENSSL_NO_DYNAMIC_ENGINE'], 'include_dirs': ['1.0.1m/openssl-1.0.1m'], 'sources': ['1.0.1m/openssl-1.0.1m/ssl/ssltest.c'], 'dependencies': ['openssl'], 'conditions': [["OS=='iOS'", {'type': 'none'}]]}]}
# Copyright 2018 Inria Damien.Saucez@inria.fr # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. k = 4 login = "login" password = "password" subnet = "10.0.0.0/8" location = "nancy" walltime = "1:00" images = { "ovs":"file:///home/dsaucez/distem-fs-jessie-ovs.tar.gz", "hadoop-slave":"file:///home/dsaucez/slave.tgz", "hadoop-master":"file:///home/dsaucez/master.tgz", } # == store masters = list() slaves = list() # == Helper variables ======================================================== k2 = int( k/2 ) # == Helper functions ======================================================== def coreName(seq): return "Core-%d" % (seq) def aggrName(pod, seq): return "Aggr-%d-%d" % (pod, seq) def edgeName(pod, seq): return "Edge-%d-%d" % (pod, seq) def hostName(pod, edge, seq): return "Host-%d-%d-%d" % (pod, edge, seq) def addSwitch(name): image = images["ovs"] print('o.add_switch("%s", image="%s")' % (name, image)) def addNode(name, role): image = images[role] print ('o.add_node("%s", image="%s")' %(name, image)) def addLink(a, b): print('o.add_link("%s", "%s")' % (a, b)) def upload_array_as_file(host, name, lines, clean = False): # remove first the file if clean: cmd = "rm -f %s" %(name) print ('o.execute_command("%s", "%s")' % (host, cmd)) for line in lines: cmd = 'echo "%s" >> %s' % (line, name) print ('o.execute_command("%s", "%s")' % (host, cmd)) def getIp(name): return "1.2.3.4"#nodes[name]["ip"] # Define all slaves def make_slaves_file(slaves, masters): for host in slaves + masters: print ("\n#slaves on", host) upload_array_as_file(host, "/root/hadoop-2.7.6/etc/hadoop/slaves", slaves, True) # Define all masters def make_masters_file(masters): for host in masters: print ("\n#masters on", host) upload_array_as_file(host, "/root/hadoop-2.7.6/etc/hadoop/masters", masters, True) # Build /etc/hosts def makeHostsFile(nodes): hosts_file = ["127.0.0.1\tlocalhost localhost.locadomain"] for node in nodes: hosts_file.append("%s\t%s" % (getIp(node), node)) for node in nodes: upload_array_as_file(node, "/etc/hosts", hosts_file, False) print() # ============================================================================ print('o = distem("%s", "%s", "%s")' % (login, password, subnet)) # build cores for seq in range(1, int((k/2)**2)+1): corename = coreName(seq) addSwitch(corename) print ("") # Create Pods for pod in range(1, k+1): print ("\n#Pod %d" % (pod)) # Create aggregation switches for aggr in range (1, k2 + 1): aggrname = aggrName(pod, aggr) addSwitch(aggrname) # Connect it to the core switches for i in range(1, k2+1): coreid = (i-1) * k2 + aggr corename = coreName(coreid) addLink(aggrname, corename) print() print() # Create edge switches for edge in range(1, k2 + 1): edgename = edgeName(pod, edge) addSwitch(edgename) # Connect it to the aggregation switches for aggr in range(1, k2 + 1): addLink(edgename, aggrName(pod, aggr)) # Create hosts print ("") for host in range(1, k2 + 1): hostname = hostName(pod, edge, host) role = "hadoop-slave" if host == 1 and pod == 1 and edge == 1: role = "hadoop-master" masters.append(hostname) else: slaves.append(hostname) addNode(hostname, role=role) # Connect it to the edge switch addLink(hostname, edgename) print() # Let's deploy print ("\n# Deploy the experiment") print('o.reserve("%s", walltime="%s")' % (location, walltime )) print("o.deploy()") print () # Create and upload /etc/hosts print ("\n# Upload /etc/hosts") makeHostsFile(nodes=masters+slaves) # Setup the slaves file print ("\n# Upload etc/hadoop/slaves") make_slaves_file(slaves=slaves, masters=masters) # Setup the masters file print ("\n# Upload etc/hadoop/masters") make_masters_file(masters=masters)
k = 4 login = 'login' password = 'password' subnet = '10.0.0.0/8' location = 'nancy' walltime = '1:00' images = {'ovs': 'file:///home/dsaucez/distem-fs-jessie-ovs.tar.gz', 'hadoop-slave': 'file:///home/dsaucez/slave.tgz', 'hadoop-master': 'file:///home/dsaucez/master.tgz'} masters = list() slaves = list() k2 = int(k / 2) def core_name(seq): return 'Core-%d' % seq def aggr_name(pod, seq): return 'Aggr-%d-%d' % (pod, seq) def edge_name(pod, seq): return 'Edge-%d-%d' % (pod, seq) def host_name(pod, edge, seq): return 'Host-%d-%d-%d' % (pod, edge, seq) def add_switch(name): image = images['ovs'] print('o.add_switch("%s", image="%s")' % (name, image)) def add_node(name, role): image = images[role] print('o.add_node("%s", image="%s")' % (name, image)) def add_link(a, b): print('o.add_link("%s", "%s")' % (a, b)) def upload_array_as_file(host, name, lines, clean=False): if clean: cmd = 'rm -f %s' % name print('o.execute_command("%s", "%s")' % (host, cmd)) for line in lines: cmd = 'echo "%s" >> %s' % (line, name) print('o.execute_command("%s", "%s")' % (host, cmd)) def get_ip(name): return '1.2.3.4' def make_slaves_file(slaves, masters): for host in slaves + masters: print('\n#slaves on', host) upload_array_as_file(host, '/root/hadoop-2.7.6/etc/hadoop/slaves', slaves, True) def make_masters_file(masters): for host in masters: print('\n#masters on', host) upload_array_as_file(host, '/root/hadoop-2.7.6/etc/hadoop/masters', masters, True) def make_hosts_file(nodes): hosts_file = ['127.0.0.1\tlocalhost localhost.locadomain'] for node in nodes: hosts_file.append('%s\t%s' % (get_ip(node), node)) for node in nodes: upload_array_as_file(node, '/etc/hosts', hosts_file, False) print() print('o = distem("%s", "%s", "%s")' % (login, password, subnet)) for seq in range(1, int((k / 2) ** 2) + 1): corename = core_name(seq) add_switch(corename) print('') for pod in range(1, k + 1): print('\n#Pod %d' % pod) for aggr in range(1, k2 + 1): aggrname = aggr_name(pod, aggr) add_switch(aggrname) for i in range(1, k2 + 1): coreid = (i - 1) * k2 + aggr corename = core_name(coreid) add_link(aggrname, corename) print() print() for edge in range(1, k2 + 1): edgename = edge_name(pod, edge) add_switch(edgename) for aggr in range(1, k2 + 1): add_link(edgename, aggr_name(pod, aggr)) print('') for host in range(1, k2 + 1): hostname = host_name(pod, edge, host) role = 'hadoop-slave' if host == 1 and pod == 1 and (edge == 1): role = 'hadoop-master' masters.append(hostname) else: slaves.append(hostname) add_node(hostname, role=role) add_link(hostname, edgename) print() print('\n# Deploy the experiment') print('o.reserve("%s", walltime="%s")' % (location, walltime)) print('o.deploy()') print() print('\n# Upload /etc/hosts') make_hosts_file(nodes=masters + slaves) print('\n# Upload etc/hadoop/slaves') make_slaves_file(slaves=slaves, masters=masters) print('\n# Upload etc/hadoop/masters') make_masters_file(masters=masters)
class FixedWidthRecord(object): fields = () LEFT = 'ljust' RIGHT = 'rjust' encoding = 'utf-8' lineterminator = '\r\n' def __init__(self): self.data = {} def __setitem__(self, key, value): self.data[key] = value def __getitem__(self, key): return self.data[key] def __str__(self): result = '' for config in self.fields: name, length, fill, direction = self._expand_config(config) value = unicode(self.data.get(name, '')) value = value[:length] method = getattr(value, direction) result += method(length, fill) result += self.lineterminator return result.encode(self.encoding) @classmethod def _expand_config(cls, config): name = config[0] length = config[1] try: fill = config[2] except IndexError: fill = ' ' try: direction = config[3] except IndexError: direction = cls.RIGHT return name, length, fill, direction @classmethod def parse_file(cls, file): config = [cls._expand_config(x) for x in cls.fields] result = [] for line in file: result.append(cls.parse(line, config)) return result @classmethod def parse(cls, line, config=None): assert line.endswith(cls.lineterminator) line = line.decode(cls.encoding) line = line.replace(cls.lineterminator, '', 1) record = cls() if config is None: config = [cls._expand_config(x) for x in cls.fields] for name, length, fill, direction in config: direction = direction.replace('just', 'strip') value = line[:length] method = getattr(cls, direction) record.data[name] = method(value, fill) line = line[length:] return record @staticmethod def lstrip(value, fill): return value.rstrip(fill) @staticmethod def rstrip(value, fill): return value.lstrip(fill)
class Fixedwidthrecord(object): fields = () left = 'ljust' right = 'rjust' encoding = 'utf-8' lineterminator = '\r\n' def __init__(self): self.data = {} def __setitem__(self, key, value): self.data[key] = value def __getitem__(self, key): return self.data[key] def __str__(self): result = '' for config in self.fields: (name, length, fill, direction) = self._expand_config(config) value = unicode(self.data.get(name, '')) value = value[:length] method = getattr(value, direction) result += method(length, fill) result += self.lineterminator return result.encode(self.encoding) @classmethod def _expand_config(cls, config): name = config[0] length = config[1] try: fill = config[2] except IndexError: fill = ' ' try: direction = config[3] except IndexError: direction = cls.RIGHT return (name, length, fill, direction) @classmethod def parse_file(cls, file): config = [cls._expand_config(x) for x in cls.fields] result = [] for line in file: result.append(cls.parse(line, config)) return result @classmethod def parse(cls, line, config=None): assert line.endswith(cls.lineterminator) line = line.decode(cls.encoding) line = line.replace(cls.lineterminator, '', 1) record = cls() if config is None: config = [cls._expand_config(x) for x in cls.fields] for (name, length, fill, direction) in config: direction = direction.replace('just', 'strip') value = line[:length] method = getattr(cls, direction) record.data[name] = method(value, fill) line = line[length:] return record @staticmethod def lstrip(value, fill): return value.rstrip(fill) @staticmethod def rstrip(value, fill): return value.lstrip(fill)
month = input() nights = int(input()) total_price_apartment = 0 total_price_studio = 0 discount_studio = 0 discount_apartment = 0 if month == 'May' or month == 'October': total_price_studio = nights * 50 total_price_apartment = nights * 65 if nights > 14: discount_studio = 0.30 elif nights > 7: discount_studio = 0.05 elif month == 'June' or month == 'September': total_price_studio = nights * 75.2 total_price_apartment = nights * 68.7 if nights > 14: discount_studio = 0.2 elif month == 'July' or month == 'August': total_price_studio = nights * 76 total_price_apartment = nights * 77 if nights > 14: discount_apartment = 0.1 total_price_studio = total_price_studio - (total_price_studio * discount_studio) total_price_apartment = total_price_apartment - (total_price_apartment * discount_apartment) print(f"Apartment: {total_price_apartment:.2f} lv.") print(f"Studio: {total_price_studio:.2f} lv.")
month = input() nights = int(input()) total_price_apartment = 0 total_price_studio = 0 discount_studio = 0 discount_apartment = 0 if month == 'May' or month == 'October': total_price_studio = nights * 50 total_price_apartment = nights * 65 if nights > 14: discount_studio = 0.3 elif nights > 7: discount_studio = 0.05 elif month == 'June' or month == 'September': total_price_studio = nights * 75.2 total_price_apartment = nights * 68.7 if nights > 14: discount_studio = 0.2 elif month == 'July' or month == 'August': total_price_studio = nights * 76 total_price_apartment = nights * 77 if nights > 14: discount_apartment = 0.1 total_price_studio = total_price_studio - total_price_studio * discount_studio total_price_apartment = total_price_apartment - total_price_apartment * discount_apartment print(f'Apartment: {total_price_apartment:.2f} lv.') print(f'Studio: {total_price_studio:.2f} lv.')
price_history_2015="$413,268 $371,473 $336,311 $239,010 $227,809 $398,996 $403,729 $353,405 $220,980 $203,186 $459,297 $461,085 $1,078,036 $551,382 $503,344 $364,826 $399,342 $430,636 $644,972 $554,170 $275,601 $849,539 $396,181 $410,221 $381,013 $272,015 $457,796 $472,744 $229,586 $217,508 $287,573 $284,288 $266,932 $223,534 $273,988 $195,500 $211,738" price_history_2016="$439,648 $438,538 $391,078 $308,862 $261,944 $438,473 $456,983 $384,248 $303,172 $233,132 $487,963 $501,458 $955,023 $609,719 $533,115 $378,942 $439,497 $483,833 $667,246 $533,638 $314,875 $856,814 $372,426 $435,610 $393,582 $307,949 $536,336 $521,210 $266,057 $246,844 $341,592 $294,003 $302,657 $275,024 $302,408 $183,929 $231,798" price_history_2017="$523,992 $539,020 $466,527 $365,449 $282,638 $516,201 $535,188 $443,103 $326,041 $305,194 $603,524 $614,867 $1,004,927 $665,622 $709,867 $438,652 $568,002 $597,910 $977,375 $638,565 $403,536 $1,382,429 $429,959 $533,156 $475,790 $392,071 $628,122 $609,705 $326,371 $331,098 $416,961 $468,983 $381,355 $324,884 $387,423 $225,500 $317,545" price_history_2018="$583,007 $643,642 $486,300 $413,764 $342,793 $595,349 $519,710 $501,311 $392,586 $331,714 $667,328 $684,002 $1,146,225 $760,806 $762,995 $470,152 $558,430 $673,248 $1,265,141 $704,492 $442,576 $975,553 $522,466 $567,718 $528,943 $413,818 $688,117 $556,879 $374,662 $358,357 $434,249 $500,357 $400,839 $373,187 $411,051 $274,929 $351,553" price_history_2019="$693,186 $668,225 $522,132 $456,438 $407,395 $615,858 $782,350 $545,753 $429,451 $387,794 $699,362 $713,678 $1,193,506 $961,755 $749,073 $540,111 $617,363 $712,111 $1,107,117 $706,420 $456,621 $910,883 $576,679 $627,852 $548,236 $459,159 $780,758 $660,538 $450,524 $404,360 $460,422 $577,957 $429,925 $415,568 $448,522 $325,223 $372,163" print("2015") print(price_history_2015.replace(" ","\n")) print("2016") print(price_history_2016.replace(" ","\n")) print("2017") print(price_history_2017.replace(" ","\n")) print("2018") print(price_history_2018.replace(" ","\n")) print("2019") print(price_history_2019.replace(" ","\n"))
price_history_2015 = '$413,268 $371,473 $336,311 $239,010 $227,809 $398,996 $403,729 $353,405 $220,980 $203,186 $459,297 $461,085 $1,078,036 $551,382 $503,344 $364,826 $399,342 $430,636 $644,972 $554,170 $275,601 $849,539 $396,181 $410,221 $381,013 $272,015 $457,796 $472,744 $229,586 $217,508 $287,573 $284,288 $266,932 $223,534 $273,988 $195,500 $211,738' price_history_2016 = '$439,648 $438,538 $391,078 $308,862 $261,944 $438,473 $456,983 $384,248 $303,172 $233,132 $487,963 $501,458 $955,023 $609,719 $533,115 $378,942 $439,497 $483,833 $667,246 $533,638 $314,875 $856,814 $372,426 $435,610 $393,582 $307,949 $536,336 $521,210 $266,057 $246,844 $341,592 $294,003 $302,657 $275,024 $302,408 $183,929 $231,798' price_history_2017 = '$523,992 $539,020 $466,527 $365,449 $282,638 $516,201 $535,188 $443,103 $326,041 $305,194 $603,524 $614,867 $1,004,927 $665,622 $709,867 $438,652 $568,002 $597,910 $977,375 $638,565 $403,536 $1,382,429 $429,959 $533,156 $475,790 $392,071 $628,122 $609,705 $326,371 $331,098 $416,961 $468,983 $381,355 $324,884 $387,423 $225,500 $317,545' price_history_2018 = '$583,007 $643,642 $486,300 $413,764 $342,793 $595,349 $519,710 $501,311 $392,586 $331,714 $667,328 $684,002 $1,146,225 $760,806 $762,995 $470,152 $558,430 $673,248 $1,265,141 $704,492 $442,576 $975,553 $522,466 $567,718 $528,943 $413,818 $688,117 $556,879 $374,662 $358,357 $434,249 $500,357 $400,839 $373,187 $411,051 $274,929 $351,553' price_history_2019 = '$693,186 $668,225 $522,132 $456,438 $407,395 $615,858 $782,350 $545,753 $429,451 $387,794 $699,362 $713,678 $1,193,506 $961,755 $749,073 $540,111 $617,363 $712,111 $1,107,117 $706,420 $456,621 $910,883 $576,679 $627,852 $548,236 $459,159 $780,758 $660,538 $450,524 $404,360 $460,422 $577,957 $429,925 $415,568 $448,522 $325,223 $372,163' print('2015') print(price_history_2015.replace(' ', '\n')) print('2016') print(price_history_2016.replace(' ', '\n')) print('2017') print(price_history_2017.replace(' ', '\n')) print('2018') print(price_history_2018.replace(' ', '\n')) print('2019') print(price_history_2019.replace(' ', '\n'))
def main(): n = int(input()) a = list(map(int, input().split())) minValue = 10 ** 9 maxValue = - (10 ** 9) for i in range(n): if a[i] > maxValue: maxValue = a[i] if a[i] < minValue: minValue = a[i] print(maxValue - minValue) if __name__=="__main__": main()
def main(): n = int(input()) a = list(map(int, input().split())) min_value = 10 ** 9 max_value = -10 ** 9 for i in range(n): if a[i] > maxValue: max_value = a[i] if a[i] < minValue: min_value = a[i] print(maxValue - minValue) if __name__ == '__main__': main()
# WEIGHING THE STONES for _ in range(int(input())): N = int(input()) DictR = {} DictA = {} Rupam = [int(a) for a in input().split()] Ankit = [int(a) for a in input().split()] for i in range(N): DictR[Rupam[i]] = Rupam.count(Rupam[i]) DictA[Ankit[i]] = Ankit.count(Ankit[i]) #print(DictR) #print(DictA) maxr = r = 0 maxa = a = 0 for key,value in DictR.items(): if maxr==value: if key>r: r=key if maxr<value: maxr=value r=key #print(r,maxr) for key,value in DictA.items(): if maxa==value: if key>a: a=key if maxa<value: maxa=value a=key #print(a,maxa) if a>r: print("Ankit") elif r>a: print("Rupam") else: print("Tie")
for _ in range(int(input())): n = int(input()) dict_r = {} dict_a = {} rupam = [int(a) for a in input().split()] ankit = [int(a) for a in input().split()] for i in range(N): DictR[Rupam[i]] = Rupam.count(Rupam[i]) DictA[Ankit[i]] = Ankit.count(Ankit[i]) maxr = r = 0 maxa = a = 0 for (key, value) in DictR.items(): if maxr == value: if key > r: r = key if maxr < value: maxr = value r = key for (key, value) in DictA.items(): if maxa == value: if key > a: a = key if maxa < value: maxa = value a = key if a > r: print('Ankit') elif r > a: print('Rupam') else: print('Tie')
def formatacao_real(numero: float) -> str: return f"R${numero:,.2f}"
def formatacao_real(numero: float) -> str: return f'R${numero:,.2f}'
class NullMailerErrorPool(Exception): pass class NullMailerErrorPipe(Exception): pass class NullMailerErrorQueue(Exception): pass class RabbitMQError(Exception): pass
class Nullmailererrorpool(Exception): pass class Nullmailererrorpipe(Exception): pass class Nullmailererrorqueue(Exception): pass class Rabbitmqerror(Exception): pass
class State: def __init__(self, charge, time_of_day, day_of_year, rounds_remaining, cost): self.battery = Battery(charge) self.time_of_day = time_of_day self.day_of_year = day_of_year self.rounds_remaining = rounds_remaining self.cost = cost class Battery: def __init__(self, charge): self.capacity = 13500 self.charge = charge self.rate = 5000
class State: def __init__(self, charge, time_of_day, day_of_year, rounds_remaining, cost): self.battery = battery(charge) self.time_of_day = time_of_day self.day_of_year = day_of_year self.rounds_remaining = rounds_remaining self.cost = cost class Battery: def __init__(self, charge): self.capacity = 13500 self.charge = charge self.rate = 5000
def encontra_impares(lista): x = [] if len(lista) > 0: n = lista.pop(0) if n % 2 != 0: x.append(n) x = x + encontra_impares(lista) return x if __name__=='__main__': print (encontra_impares([1,2,3,4,5,5]))
def encontra_impares(lista): x = [] if len(lista) > 0: n = lista.pop(0) if n % 2 != 0: x.append(n) x = x + encontra_impares(lista) return x if __name__ == '__main__': print(encontra_impares([1, 2, 3, 4, 5, 5]))
seat_ids = [] def binary_partition(start, end, identifier, lower_id, upper_id): if start == end: return start half_range = int((end - start + 1) / 2) if identifier[0] == lower_id: new_start = start new_end = end - half_range elif identifier[0] == upper_id: new_start = start + half_range new_end = end else: print("error") return return binary_partition(new_start, new_end, identifier[1:], lower_id, upper_id) with open("input.txt") as file_handler: for line in file_handler: row = binary_partition(0, 127, line.strip()[:7], "F", "B") col = binary_partition(0, 7, line.strip()[7:], "L", "R") seat_id = row * 8 + col seat_ids.append(seat_id) previous_seat_id = min(seat_ids) - 1 for seat_id in sorted(seat_ids): if previous_seat_id + 1 != seat_id: print(previous_seat_id + 1) break previous_seat_id = seat_id
seat_ids = [] def binary_partition(start, end, identifier, lower_id, upper_id): if start == end: return start half_range = int((end - start + 1) / 2) if identifier[0] == lower_id: new_start = start new_end = end - half_range elif identifier[0] == upper_id: new_start = start + half_range new_end = end else: print('error') return return binary_partition(new_start, new_end, identifier[1:], lower_id, upper_id) with open('input.txt') as file_handler: for line in file_handler: row = binary_partition(0, 127, line.strip()[:7], 'F', 'B') col = binary_partition(0, 7, line.strip()[7:], 'L', 'R') seat_id = row * 8 + col seat_ids.append(seat_id) previous_seat_id = min(seat_ids) - 1 for seat_id in sorted(seat_ids): if previous_seat_id + 1 != seat_id: print(previous_seat_id + 1) break previous_seat_id = seat_id
def skyhook_calculator(upper_vel,delta_vel): Cmax = 4000 Cmin = 300 epsilon = 0.0001 alpha = 0.5 sat_limit = 800 if upper_vel * delta_vel >= 0: C = (alpha * Cmax * upper_vel + (1 - alpha) * Cmax * upper_vel)/(delta_vel + epsilon) C = min(C,Cmax) u = C * delta_vel else: u = Cmin*delta_vel if u >= 0: if u > sat_limit: u_ = sat_limit else: u_ = u else: if u < -sat_limit: u_ = -sat_limit else: u_ = u return u_ def skyhook(env): # env.state_SH = [fl2,tfl2,fr2,tfr2,rl2,trl2,rr2,trr2] dz_fl = env.state_SH[0] vel_fl = dz_fl - env.state_SH[1] u_fl = skyhook_calculator(dz_fl,vel_fl) if len(env.state_SH) > 2: dz_fr = env.state_SH[2] dz_rl = env.state_SH[4] dz_rr = env.state_SH[6] vel_fr = dz_fr - env.state_SH[3] vel_rl = dz_rl - env.state_SH[5] vel_rr = dz_rr - env.state_SH[7] u_fr = skyhook_calculator(dz_fr,vel_fr) u_rl = skyhook_calculator(dz_rl,vel_rl) u_rr = skyhook_calculator(dz_rr,vel_rr) return [u_fl,u_fr,u_rl,u_rr] else: return u_fl
def skyhook_calculator(upper_vel, delta_vel): cmax = 4000 cmin = 300 epsilon = 0.0001 alpha = 0.5 sat_limit = 800 if upper_vel * delta_vel >= 0: c = (alpha * Cmax * upper_vel + (1 - alpha) * Cmax * upper_vel) / (delta_vel + epsilon) c = min(C, Cmax) u = C * delta_vel else: u = Cmin * delta_vel if u >= 0: if u > sat_limit: u_ = sat_limit else: u_ = u elif u < -sat_limit: u_ = -sat_limit else: u_ = u return u_ def skyhook(env): dz_fl = env.state_SH[0] vel_fl = dz_fl - env.state_SH[1] u_fl = skyhook_calculator(dz_fl, vel_fl) if len(env.state_SH) > 2: dz_fr = env.state_SH[2] dz_rl = env.state_SH[4] dz_rr = env.state_SH[6] vel_fr = dz_fr - env.state_SH[3] vel_rl = dz_rl - env.state_SH[5] vel_rr = dz_rr - env.state_SH[7] u_fr = skyhook_calculator(dz_fr, vel_fr) u_rl = skyhook_calculator(dz_rl, vel_rl) u_rr = skyhook_calculator(dz_rr, vel_rr) return [u_fl, u_fr, u_rl, u_rr] else: return u_fl
def printmove(fr,to): print("Moved from " + str(fr)+" to "+str(to)) def TowerOfHanoi(n,fr,to,spare): if n==1: printmove(fr,to) else: TowerOfHanoi(n-1,fr,spare,to) TowerOfHanoi(1,fr,to,spare) TowerOfHanoi(n-1,spare,to,fr) TowerOfHanoi(int(input("Enter the number of rings in the source peg\n")),'A','B','C')
def printmove(fr, to): print('Moved from ' + str(fr) + ' to ' + str(to)) def tower_of_hanoi(n, fr, to, spare): if n == 1: printmove(fr, to) else: tower_of_hanoi(n - 1, fr, spare, to) tower_of_hanoi(1, fr, to, spare) tower_of_hanoi(n - 1, spare, to, fr) tower_of_hanoi(int(input('Enter the number of rings in the source peg\n')), 'A', 'B', 'C')
# Enter your code here. Read input from STDIN. Print output to STDOUT n = input() a = set(raw_input().strip().split(" ")) m = input() b = set(raw_input().strip().split(" ")) print(len(a.intersection(b)))
n = input() a = set(raw_input().strip().split(' ')) m = input() b = set(raw_input().strip().split(' ')) print(len(a.intersection(b)))
# how to copy a list months = ['jan', 'feb', 'march', 'apr', 'may'] months_copy = months[:] print(months_copy) print(months)
months = ['jan', 'feb', 'march', 'apr', 'may'] months_copy = months[:] print(months_copy) print(months)
data = ( 'nzup', # 0x00 'nzurx', # 0x01 'nzur', # 0x02 'nzyt', # 0x03 'nzyx', # 0x04 'nzy', # 0x05 'nzyp', # 0x06 'nzyrx', # 0x07 'nzyr', # 0x08 'sit', # 0x09 'six', # 0x0a 'si', # 0x0b 'sip', # 0x0c 'siex', # 0x0d 'sie', # 0x0e 'siep', # 0x0f 'sat', # 0x10 'sax', # 0x11 'sa', # 0x12 'sap', # 0x13 'suox', # 0x14 'suo', # 0x15 'suop', # 0x16 'sot', # 0x17 'sox', # 0x18 'so', # 0x19 'sop', # 0x1a 'sex', # 0x1b 'se', # 0x1c 'sep', # 0x1d 'sut', # 0x1e 'sux', # 0x1f 'su', # 0x20 'sup', # 0x21 'surx', # 0x22 'sur', # 0x23 'syt', # 0x24 'syx', # 0x25 'sy', # 0x26 'syp', # 0x27 'syrx', # 0x28 'syr', # 0x29 'ssit', # 0x2a 'ssix', # 0x2b 'ssi', # 0x2c 'ssip', # 0x2d 'ssiex', # 0x2e 'ssie', # 0x2f 'ssiep', # 0x30 'ssat', # 0x31 'ssax', # 0x32 'ssa', # 0x33 'ssap', # 0x34 'ssot', # 0x35 'ssox', # 0x36 'sso', # 0x37 'ssop', # 0x38 'ssex', # 0x39 'sse', # 0x3a 'ssep', # 0x3b 'ssut', # 0x3c 'ssux', # 0x3d 'ssu', # 0x3e 'ssup', # 0x3f 'ssyt', # 0x40 'ssyx', # 0x41 'ssy', # 0x42 'ssyp', # 0x43 'ssyrx', # 0x44 'ssyr', # 0x45 'zhat', # 0x46 'zhax', # 0x47 'zha', # 0x48 'zhap', # 0x49 'zhuox', # 0x4a 'zhuo', # 0x4b 'zhuop', # 0x4c 'zhot', # 0x4d 'zhox', # 0x4e 'zho', # 0x4f 'zhop', # 0x50 'zhet', # 0x51 'zhex', # 0x52 'zhe', # 0x53 'zhep', # 0x54 'zhut', # 0x55 'zhux', # 0x56 'zhu', # 0x57 'zhup', # 0x58 'zhurx', # 0x59 'zhur', # 0x5a 'zhyt', # 0x5b 'zhyx', # 0x5c 'zhy', # 0x5d 'zhyp', # 0x5e 'zhyrx', # 0x5f 'zhyr', # 0x60 'chat', # 0x61 'chax', # 0x62 'cha', # 0x63 'chap', # 0x64 'chuot', # 0x65 'chuox', # 0x66 'chuo', # 0x67 'chuop', # 0x68 'chot', # 0x69 'chox', # 0x6a 'cho', # 0x6b 'chop', # 0x6c 'chet', # 0x6d 'chex', # 0x6e 'che', # 0x6f 'chep', # 0x70 'chux', # 0x71 'chu', # 0x72 'chup', # 0x73 'churx', # 0x74 'chur', # 0x75 'chyt', # 0x76 'chyx', # 0x77 'chy', # 0x78 'chyp', # 0x79 'chyrx', # 0x7a 'chyr', # 0x7b 'rrax', # 0x7c 'rra', # 0x7d 'rruox', # 0x7e 'rruo', # 0x7f 'rrot', # 0x80 'rrox', # 0x81 'rro', # 0x82 'rrop', # 0x83 'rret', # 0x84 'rrex', # 0x85 'rre', # 0x86 'rrep', # 0x87 'rrut', # 0x88 'rrux', # 0x89 'rru', # 0x8a 'rrup', # 0x8b 'rrurx', # 0x8c 'rrur', # 0x8d 'rryt', # 0x8e 'rryx', # 0x8f 'rry', # 0x90 'rryp', # 0x91 'rryrx', # 0x92 'rryr', # 0x93 'nrat', # 0x94 'nrax', # 0x95 'nra', # 0x96 'nrap', # 0x97 'nrox', # 0x98 'nro', # 0x99 'nrop', # 0x9a 'nret', # 0x9b 'nrex', # 0x9c 'nre', # 0x9d 'nrep', # 0x9e 'nrut', # 0x9f 'nrux', # 0xa0 'nru', # 0xa1 'nrup', # 0xa2 'nrurx', # 0xa3 'nrur', # 0xa4 'nryt', # 0xa5 'nryx', # 0xa6 'nry', # 0xa7 'nryp', # 0xa8 'nryrx', # 0xa9 'nryr', # 0xaa 'shat', # 0xab 'shax', # 0xac 'sha', # 0xad 'shap', # 0xae 'shuox', # 0xaf 'shuo', # 0xb0 'shuop', # 0xb1 'shot', # 0xb2 'shox', # 0xb3 'sho', # 0xb4 'shop', # 0xb5 'shet', # 0xb6 'shex', # 0xb7 'she', # 0xb8 'shep', # 0xb9 'shut', # 0xba 'shux', # 0xbb 'shu', # 0xbc 'shup', # 0xbd 'shurx', # 0xbe 'shur', # 0xbf 'shyt', # 0xc0 'shyx', # 0xc1 'shy', # 0xc2 'shyp', # 0xc3 'shyrx', # 0xc4 'shyr', # 0xc5 'rat', # 0xc6 'rax', # 0xc7 'ra', # 0xc8 'rap', # 0xc9 'ruox', # 0xca 'ruo', # 0xcb 'ruop', # 0xcc 'rot', # 0xcd 'rox', # 0xce 'ro', # 0xcf 'rop', # 0xd0 'rex', # 0xd1 're', # 0xd2 'rep', # 0xd3 'rut', # 0xd4 'rux', # 0xd5 'ru', # 0xd6 'rup', # 0xd7 'rurx', # 0xd8 'rur', # 0xd9 'ryt', # 0xda 'ryx', # 0xdb 'ry', # 0xdc 'ryp', # 0xdd 'ryrx', # 0xde 'ryr', # 0xdf 'jit', # 0xe0 'jix', # 0xe1 'ji', # 0xe2 'jip', # 0xe3 'jiet', # 0xe4 'jiex', # 0xe5 'jie', # 0xe6 'jiep', # 0xe7 'juot', # 0xe8 'juox', # 0xe9 'juo', # 0xea 'juop', # 0xeb 'jot', # 0xec 'jox', # 0xed 'jo', # 0xee 'jop', # 0xef 'jut', # 0xf0 'jux', # 0xf1 'ju', # 0xf2 'jup', # 0xf3 'jurx', # 0xf4 'jur', # 0xf5 'jyt', # 0xf6 'jyx', # 0xf7 'jy', # 0xf8 'jyp', # 0xf9 'jyrx', # 0xfa 'jyr', # 0xfb 'qit', # 0xfc 'qix', # 0xfd 'qi', # 0xfe 'qip', # 0xff )
data = ('nzup', 'nzurx', 'nzur', 'nzyt', 'nzyx', 'nzy', 'nzyp', 'nzyrx', 'nzyr', 'sit', 'six', 'si', 'sip', 'siex', 'sie', 'siep', 'sat', 'sax', 'sa', 'sap', 'suox', 'suo', 'suop', 'sot', 'sox', 'so', 'sop', 'sex', 'se', 'sep', 'sut', 'sux', 'su', 'sup', 'surx', 'sur', 'syt', 'syx', 'sy', 'syp', 'syrx', 'syr', 'ssit', 'ssix', 'ssi', 'ssip', 'ssiex', 'ssie', 'ssiep', 'ssat', 'ssax', 'ssa', 'ssap', 'ssot', 'ssox', 'sso', 'ssop', 'ssex', 'sse', 'ssep', 'ssut', 'ssux', 'ssu', 'ssup', 'ssyt', 'ssyx', 'ssy', 'ssyp', 'ssyrx', 'ssyr', 'zhat', 'zhax', 'zha', 'zhap', 'zhuox', 'zhuo', 'zhuop', 'zhot', 'zhox', 'zho', 'zhop', 'zhet', 'zhex', 'zhe', 'zhep', 'zhut', 'zhux', 'zhu', 'zhup', 'zhurx', 'zhur', 'zhyt', 'zhyx', 'zhy', 'zhyp', 'zhyrx', 'zhyr', 'chat', 'chax', 'cha', 'chap', 'chuot', 'chuox', 'chuo', 'chuop', 'chot', 'chox', 'cho', 'chop', 'chet', 'chex', 'che', 'chep', 'chux', 'chu', 'chup', 'churx', 'chur', 'chyt', 'chyx', 'chy', 'chyp', 'chyrx', 'chyr', 'rrax', 'rra', 'rruox', 'rruo', 'rrot', 'rrox', 'rro', 'rrop', 'rret', 'rrex', 'rre', 'rrep', 'rrut', 'rrux', 'rru', 'rrup', 'rrurx', 'rrur', 'rryt', 'rryx', 'rry', 'rryp', 'rryrx', 'rryr', 'nrat', 'nrax', 'nra', 'nrap', 'nrox', 'nro', 'nrop', 'nret', 'nrex', 'nre', 'nrep', 'nrut', 'nrux', 'nru', 'nrup', 'nrurx', 'nrur', 'nryt', 'nryx', 'nry', 'nryp', 'nryrx', 'nryr', 'shat', 'shax', 'sha', 'shap', 'shuox', 'shuo', 'shuop', 'shot', 'shox', 'sho', 'shop', 'shet', 'shex', 'she', 'shep', 'shut', 'shux', 'shu', 'shup', 'shurx', 'shur', 'shyt', 'shyx', 'shy', 'shyp', 'shyrx', 'shyr', 'rat', 'rax', 'ra', 'rap', 'ruox', 'ruo', 'ruop', 'rot', 'rox', 'ro', 'rop', 'rex', 're', 'rep', 'rut', 'rux', 'ru', 'rup', 'rurx', 'rur', 'ryt', 'ryx', 'ry', 'ryp', 'ryrx', 'ryr', 'jit', 'jix', 'ji', 'jip', 'jiet', 'jiex', 'jie', 'jiep', 'juot', 'juox', 'juo', 'juop', 'jot', 'jox', 'jo', 'jop', 'jut', 'jux', 'ju', 'jup', 'jurx', 'jur', 'jyt', 'jyx', 'jy', 'jyp', 'jyrx', 'jyr', 'qit', 'qix', 'qi', 'qip')
''' import requests import copy host = "http://172.30.1.8" uri = "/changeuser.ghp" org_headers = { "User-Agent": "Mozilla/4.0", "Host": host.split("://")[1], "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-us", "Accept-Encoding": "gzip, deflate", "Referer": host, "Conection": "Keep-Alive" } org_cookies = { "SESSIONID": "6771", "UserID": "id", "PassWD": "password" } payload = "A" * 4528 for key in list(org_headers.keys()): print("Header", key, end=": ") try: headers = copy.deepcopy(org_headers) headers[key] = payload res = requests.get(host + uri, headers=headers, cookies=org_cookies) print(": Good!") except Exception as e: print(e[:10]) for key in list(org_cookies.keys()): print("Cookie", key, end=": ") try: cookies = copy.deepcopy(org_cookies) cookies[key] = payload res = requests.get(host + uri, headers=org_headers, cookies=cookies) print(": Good!") except Exception as e: print(e[:10]) '''
""" import requests import copy host = "http://172.30.1.8" uri = "/changeuser.ghp" org_headers = { "User-Agent": "Mozilla/4.0", "Host": host.split("://")[1], "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-us", "Accept-Encoding": "gzip, deflate", "Referer": host, "Conection": "Keep-Alive" } org_cookies = { "SESSIONID": "6771", "UserID": "id", "PassWD": "password" } payload = "A" * 4528 for key in list(org_headers.keys()): print("Header", key, end=": ") try: headers = copy.deepcopy(org_headers) headers[key] = payload res = requests.get(host + uri, headers=headers, cookies=org_cookies) print(": Good!") except Exception as e: print(e[:10]) for key in list(org_cookies.keys()): print("Cookie", key, end=": ") try: cookies = copy.deepcopy(org_cookies) cookies[key] = payload res = requests.get(host + uri, headers=org_headers, cookies=cookies) print(": Good!") except Exception as e: print(e[:10]) """
def create_matrix(rows): matrix = [[int(x) for x in input().split()] for _ in range(rows)] return matrix def valid_cell(row, col, size): return 0 <= row < size and 0 <= col < size def print_matrix(matrix): [print(' '.join([str(x) for x in row])) for row in matrix] # did this for the sake of using comprehension rows = int(input()) matrix = create_matrix(rows) while True: line = input() if line == 'END': print_matrix(matrix) break command, *rest = line.split() row, col, value = map(int, rest) if valid_cell(row, col, rows): if command == 'Add': matrix[row][col] += value elif command == 'Subtract': matrix[row][col] -= value else: print('Invalid coordinates')
def create_matrix(rows): matrix = [[int(x) for x in input().split()] for _ in range(rows)] return matrix def valid_cell(row, col, size): return 0 <= row < size and 0 <= col < size def print_matrix(matrix): [print(' '.join([str(x) for x in row])) for row in matrix] rows = int(input()) matrix = create_matrix(rows) while True: line = input() if line == 'END': print_matrix(matrix) break (command, *rest) = line.split() (row, col, value) = map(int, rest) if valid_cell(row, col, rows): if command == 'Add': matrix[row][col] += value elif command == 'Subtract': matrix[row][col] -= value else: print('Invalid coordinates')
#Leia uma temperatura em graus Celsius e apresente-a convertida em Kelvin. # A formula da conversao eh: K=C+273.15, # sendo K a temperatura em Kelvin e c a temperatura em celsius. C=float(input("Informe a temperatura em Celsius: ")) K=C+273.15 print(f"A temperatura em Kelvin eh {round(K,1)}")
c = float(input('Informe a temperatura em Celsius: ')) k = C + 273.15 print(f'A temperatura em Kelvin eh {round(K, 1)}')
def operate(operator, *args): result = 1 for x in args: if operator == "+": return sum(args) elif operator == "*": result *= x elif operator == "/": result /= x return result print(operate("+", 1, 2, 3)) print(operate("*", 3, 4)) print(operate("/", 4, 2))
def operate(operator, *args): result = 1 for x in args: if operator == '+': return sum(args) elif operator == '*': result *= x elif operator == '/': result /= x return result print(operate('+', 1, 2, 3)) print(operate('*', 3, 4)) print(operate('/', 4, 2))
class MonoBasicPackage (GitHubTarballPackage): def __init__(self): GitHubTarballPackage.__init__(self, 'mono', 'mono-basic', '4.8', 'e31cb702937a0adcc853250a0989c5f43565f9b8', configure='./configure --prefix="%{staged_profile}"') def install(self): self.sh('./configure --prefix="%{staged_prefix}"') self.sh('DEPRECATED=1 make install') MonoBasicPackage()
class Monobasicpackage(GitHubTarballPackage): def __init__(self): GitHubTarballPackage.__init__(self, 'mono', 'mono-basic', '4.8', 'e31cb702937a0adcc853250a0989c5f43565f9b8', configure='./configure --prefix="%{staged_profile}"') def install(self): self.sh('./configure --prefix="%{staged_prefix}"') self.sh('DEPRECATED=1 make install') mono_basic_package()
# We start our program by informing the user that this program is for a calculator. print("Welcome to the calculator program!") # Our program will run until the user chooses to exit, so we define a variable to # hold the text that a user must enter to exit the program. Since we intend that # this variable be constant (never change), we use uppercase letters, rather than # lowercase, to differentiate this from our changeable variables. EXIT_USER_INPUT_OPTION = "EXIT" # We print out a message to inform the user how to exit the program. # This string message is formed by combining (concatenating) a string # literal ("Enter ") with the string stored in our "ENTER_USER_INPUT_OPTION" # constant with another string literal (" after a calculation to end program."). # The concatenation is done using the "+" operator. print("Enter " + EXIT_USER_INPUT_OPTION + " after a calculation to end program.") # We define a new variable named "user_input_after_calculation" to hold the user's # input after each calculation. Since the user hasn't entered any input yet, # we initialize this variable with an empty string. user_input_after_calculation = "" # In order to have our program continue executing until the user chooses to exit, # we need a loop like a "while" loop. Since we want our program to exit if # the user entered text for the exit option (stored in the "EXIT_USER_INPUT_OPTION" # constant), we checked if this option doesn't equal the user's input (stored in # the "user_input_after_calculation" variable) using the inequality (or "not equal") # operator (the "!=" operator). As long as this boolean condition is True, # we enter the body of the while loop to execute it. while EXIT_USER_INPUT_OPTION != user_input_after_calculation: # The condition for the while loop is True, so we ask the user to enter the first # number to use in the calculation. This is done using the built-in input() function, # which will wait until the user enters some text and then return that text as a string. # Since we need numbers to do math in our calculator, we convert that string to an # integer using the built-in int() function. This integer is stored in a variable # named "first_number". This calculator is only supporting integers right now, # not floating-point numbers. first_number = int(input("Enter first number: ")) # We need a second number to do math, so we ask the user to enter the second # number to use in the calculation. This is done using the built-in input() function, # which will wait until the user enters some text and then return that text as a string. # Since we need numbers to do math in our calculator, we convert that string to an # integer using the built-in int() function. This integer is stored in a variable # named "second_number". This calculator is only supporting integers right now, # not floating-point numbers. second_number = int(input("Enter second number: ")) # To help make it clear what text users enter correspond to which mathematical operations, # we define a constant named "ADDITION_OPERATION" for the addition operation, which we'll # represent by the "+" string. ADDITION_OPERATION = "+" # To help make it clear what text users enter correspond to which mathematical operations, # we define a constant named "SUBTRACTION_OPERATION" for the subtraction operation, which we'll # represent by the "-" string. SUBTRACTION_OPERATION = "-" # To help make it clear what text users enter correspond to which mathematical operations, # we define a constant named "MULTIPLICATION_OPERATION" for the multiplication operation, which we'll # represent by the "*" string. MULTIPLICATION_OPERATION = "*" # To help make it clear what text users enter correspond to which mathematical operations, # we define a constant named "DIVISION_OPERATION" for the division operation, which we'll # represent by the "/" string. DIVISION_OPERATION = "/" # To help users know which operations our calculator supports, we print out a message prior # to printing out the valid operations. print("Valid operations include: ") # Print out the addition operation to inform the user of it. print(ADDITION_OPERATION) # Print out the subtraction operation to inform the user of it. print(SUBTRACTION_OPERATION) # Print out the multiplication operation to inform the user of it. print(MULTIPLICATION_OPERATION) # Print out the division operation to inform the user of it. print(DIVISION_OPERATION) # Ask the user to enter an operation. This will print out a message and then wait # for the user to enter some text using the built-in input() function. The input() # function will return the string text that the user entered, which we store in a # new "operation" variable. operation = input("Enter an operation: ") # This "if" statement checks if the user entered an addition operation by checking # if the string in our "ADDITION_OPERATION" constant is equal to the operation stored # in the "operation" variable. This is done using the equality ("==") operator, which # will return True if the values are equal and False if not equal. if ADDITION_OPERATION == operation: # Perform the addition operation using the "+" operator to calculate the # sum of the numbers. The value stored in the "first_number" variable is # added to the value stored in the "second_number" variable, and the result # is stored in the "sum_result" variable. sum_result = first_number + second_number # Print the sum to the screen to inform the user of the calculated result. # This is done by combining a string literal with the value stored in # the "sum_result" variable. Since the value in the "sum_result" variable # is a number, not a string, we need to convert it to a string using the # built-in str() function before combining it with the string literal. # The final combined message is passed to the built-in print() function # to print it to the screen. print("The sum is: " + str(sum_result)) # The operation in the previous "if" statement wasn't chosen, so this "elif" # statement checks if the user entered a subtraction operation by checking # if the string in our "SUBTRACTION_OPERATION" constant is equal to the operation stored # in the "operation" variable. This is done using the equality ("==") operator, which # will return True if the values are equal and False if not equal. elif SUBTRACTION_OPERATION == operation: # Perform the subtraction operation using the "-" operator to calculate the # difference of the numbers. The value stored in the "second_number" variable is # subtracted from the value stored in the "first_number" variable, and the result # is stored in the "difference_result" variable. difference_result = first_number - second_number # Print the difference to the screen to inform the user of the calculated result. # This is done by combining a string literal with the value stored in # the "difference_result" variable. Since the value in the "difference_result" variable # is a number, not a string, we need to convert it to a string using the # built-in str() function before combining it with the string literal. # The final combined message is passed to the built-in print() function # to print it to the screen. print("The difference is: " + str(difference_result)) # The operations in the previous "if" and "elif" statement weren't chosen, so this "elif" # statement checks if the user entered a multiplication operation by checking # if the string in our "MULTIPLICATION_OPERATION" constant is equal to the operation stored # in the "operation" variable. This is done using the equality ("==") operator, which # will return True if the values are equal and False if not equal. elif MULTIPLICATION_OPERATION == operation: # Perform the multiplication operation using the "*" operator to calculate the # product of the numbers. The value stored in the "first_number" variable is # multiplied by the value stored in the "second_number" variable, and the result # is stored in the "product_result" variable. product_result = first_number * second_number # Print the difference to the screen to inform the user of the calculated result. # This is done by combining a string literal with the value stored in # the "product_result" variable. Since the value in the "product_result" variable # is a number, not a string, we need to convert it to a string using the # built-in str() function before combining it with the string literal. # The final combined message is passed to the built-in print() function # to print it to the screen. print("The product is: " + str(product_result)) # The operations in the previous "if" and "elif" statement weren't chosen, so this "elif" # statement checks if the user entered a division operation by checking # if the string in our "DIVISION_OPERATION" constant is equal to the operation stored # in the "operation" variable. This is done using the equality ("==") operator, which # will return True if the values are equal and False if not equal. elif DIVISION_OPERATION == operation: # Perform the division operation using the "/" operator to calculate the # quotient of the numbers. The value stored in the "first_number" variable is # divided by the value stored in the "second_number" variable, and the result # is stored in the "quotient_result" variable. quotient_result = first_number / second_number # Print the difference to the screen to inform the user of the calculated result. # This is done by combining a string literal with the value stored in # the "quotient_result" variable. Since the value in the "quotient_result" variable # is a number, not a string, we need to convert it to a string using the # built-in str() function before combining it with the string literal. # The final combined message is passed to the built-in print() function # to print it to the screen. print("The quotient is: " + str(quotient_result)) # None of the operations checked for in the previous "if" or "elif" statements were # chosen, so this "else" statement provides a way to handle the user entering # some other invalid text. else: # To inform the user that his/her entered operation is invalid, we print out a message # indicating the entered text (operation) that was invalid. This is done by concatenating # a string literal with a string variable (operation) with another string literal. print('The "' + operation + '" operation is invalid.') # A calculation has finished being performed, so we ask the user for input using the built-in # input() function to determine if this calculator program should continue executing or exit. # The message we print out using the input() function includes the value in our "EXIT_USER_INPUT_OPTION" # constant to let the user know exactly what text needs to be entered to exit. Since the condition # for our "while" loop above only checks for this EXIT_USER_INPUT_OPTION, the user can enter # any other text to continue executing and perform another calculation. After the user enters # some text, the string value entered will be returned from the input() function and stored # in the "user_input_after_calculation" variable. user_input_after_calculation = input("Enter " + EXIT_USER_INPUT_OPTION + " to end program or any other text to perform another calculation.")
print('Welcome to the calculator program!') exit_user_input_option = 'EXIT' print('Enter ' + EXIT_USER_INPUT_OPTION + ' after a calculation to end program.') user_input_after_calculation = '' while EXIT_USER_INPUT_OPTION != user_input_after_calculation: first_number = int(input('Enter first number: ')) second_number = int(input('Enter second number: ')) addition_operation = '+' subtraction_operation = '-' multiplication_operation = '*' division_operation = '/' print('Valid operations include: ') print(ADDITION_OPERATION) print(SUBTRACTION_OPERATION) print(MULTIPLICATION_OPERATION) print(DIVISION_OPERATION) operation = input('Enter an operation: ') if ADDITION_OPERATION == operation: sum_result = first_number + second_number print('The sum is: ' + str(sum_result)) elif SUBTRACTION_OPERATION == operation: difference_result = first_number - second_number print('The difference is: ' + str(difference_result)) elif MULTIPLICATION_OPERATION == operation: product_result = first_number * second_number print('The product is: ' + str(product_result)) elif DIVISION_OPERATION == operation: quotient_result = first_number / second_number print('The quotient is: ' + str(quotient_result)) else: print('The "' + operation + '" operation is invalid.') user_input_after_calculation = input('Enter ' + EXIT_USER_INPUT_OPTION + ' to end program or any other text to perform another calculation.')
# Copyright 2020 Keren Ye, University of Pittsburgh # # 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. # ============================================================================== class GroundingTuple(object): # Proposal id to be associated with each text entity, a [batch, max_n_entity] in tensor, each value is in the range [0, max_n_proposal). entity_proposal_id = None # Proposal box to be associated with each text entity, a [batch, max_n_entity, 4] float tensor. entity_proposal_box = None # Proposal score to be associated with each text entity, a [batch, max_n_entity] float tensor. entity_proposal_score = None # Proposal feature to be associated with each text entity, a [batch, max_n_entity, feature_dims] float tensor. entity_proposal_feature = None class DetectionTuple(object): # Number of detections, a [batch] int tensor. valid_detections = None # Final proposals that are chosen, a [batch, max_n_detection] int tensor. nmsed_proposal_id = None # Detection boxes, a [batch, max_n_detection, 4] float tensor. nmsed_boxes = None # Detection scores, a [batch, max_n_detection] float tensor. nmsed_scores = None # Detection classes, a [batch, max_n_detection] string tensor. nmsed_classes = None # Detection attribute scores, a [batch, max_n_detetion] float tensor. nmsed_attribute_scores = None # Detection attribute classes, a [batch, max_n_detetion] string tensor. nmsed_attribute_classes = None # Detection region features, a [batch, max_n_detection, feature_dims] tensor. nmsed_features = None class RelationTuple(object): # Number of relations, a [batch] int tensor. num_relations = None # Log probability of the (subject, relation, object), a [batch, max_n_relation] float tensor. log_prob = None # Relation score, a [batch, max_n_relation] float tensor. relation_score = None # Relation class, a [batch, max_n_relation] string tensor. relation_class = None # Proposal id associated to the subject, a [batch, max_n_relation] int tensor, each value is in the range [0, max_n_proposal). subject_proposal = None # Subject score, a [batch, max_n_relation] float tensor. subject_score = None # Subject class, a [batch, max_n_relation] string tensor. subject_class = None # Proposal id associated to the object, a [batch, max_n_relation] int tensor, each value is in the range [0, max_n_proposal). object_proposal = None # Object score, a [batch, max_n_relation] float tensor. object_score = None # Object class, a [batch, max_n_relation] string tensor. object_class = None class DataTuple(object): #################################################### # Objects created by preprocess.initialize. #################################################### # A callable converting tokens to integer ids. token2id_func = None # A callable converting integer ids to tokens. id2token_func = None # Length of the vocabulary. vocab_size = None # Embedding dimensions. dims = None # Word embeddings, a [vocab_size, dims] float tensor. embeddings = None # A callable converting token ids to embedding vectors. embedding_func = None # Entity bias, a [vocab_size] float tensor. bias_entity = None # Attribute bias, a [vocab_size] float tensor. bias_attribute = None # Relation bias, a [vocab_size] float tensor. bias_relation = None #################################################### # Objects parsed from TF record files. #################################################### # Batch size. batch = None # Number of proposals. a [batch] int tensor. n_proposal = None # Maximum proposals in the batch, a scalar int tensor. max_n_proposal = None # Proposal masks, a [batch, max_n_proposal] float tensor, each value is in {0, 1}, denoting the validity. proposal_masks = None # Proposal boxes, a [batch, max_n_proposal, 4] float tensor. proposals = None # Proposal features, a [batch, max_n_proposal, feature_dims] float tensor. proposal_features = None # Number of text entities, a [batch] int tensor. n_entity = None # Maximum entities in the batch, a scalar int tensor. max_n_entity = None # Entity masks, a [batch, max_n_entity] float tensor, each value is in {0, 1}, denoting the validity. entity_masks = None # Text entity ids, a [batch, max_n_entity] int tensor, each value is in the range [0, vocab_size). entity_ids = None # Text entity embeddings, a [batch, max_n_entity, dims] float tensor. entity_embs = None # Refined text entity embeddings, a [batch, max_n_entity, dims] float tensor. refined_entity_embs = None # Number of attributes per each text entity, a [batch, max_n_entity] int tensor. per_ent_n_att = None # Per-entity attribute ids, a [batch, max_n_entity, max_per_ent_n_att] int tensor, each value is in the range [0, vocab_size). per_ent_att_ids = None # Per-entity attribute embeddings, a [batch, max_n_entity, max_per_ent_n_att, dims] float tensor. per_ent_att_embs = None # Image-level one-hot text entity labels, a [batch, max_n_entity, vocab_size] tensor, only one value in the last dimension is 1. entity_image_labels = None # Image-level multi-hot text attribute labels, a [batch, max_n_entity, vocab_size] tensor, multiple values in the last dimension may be 1. attribute_image_labels = None # Number of text relations, a [batch] int tensor. n_relation = None # Maximum relations in the batch, a scalar int tensor. max_n_relation = None # Relation masks, a [batch, max_n_relation] float tensor, each value is in {0, 1}, denoting the validity. relation_masks = None # Text relation ids, a [batch, max_n_relation] int tensor, each value is in the range [0, vocab_size). relation_ids = None # Text relation embeddings, a [batch, max_n_relation, dims] float tensor. relation_embs = None # Refined text relation embeddings, a [batch, max_n_relation, dims] float tensor. refined_relation_embs = None # Index of the subject entity, referring the entity in the entity_ids, a [batch, max_n_relation] int tensor, each value is in the range [0, max_n_entity]. relation_senders = None # Index of the object entity, referring the entity in the entity_ids, a [batch, max_n_relation] int tensor, each value is in the range [0, max_n_entity]. relation_receivers = None #################################################### # Objects created by grounding.ground_entities. #################################################### # Image-level text entity prediction, a [batch, max_n_entity, vocab_size] tensor. entity_image_logits = None # Image-level text attribute prediction, a [batch, max_n_entity, vocab_size] tensor. attribute_image_logits = None # Grounding results. grounding = GroundingTuple() #################################################### # Objects created by detection.detect_entities. #################################################### # Entity detection logits, [batch, max_n_proposal, vocab_size] float tensors. detection_instance_logits_list = [] # Normalized entity detection scores, [batch, max_n_proposal, vocab_size] float tensors. detection_instance_scores_list = [] # Entity detection labels, [batch, max_n_proposal, vocab_size] float tensors. detection_instance_labels_list = [] # Attribute detection logits, [batch, max_n_proposal, vocab_size] float tensors. attribute_instance_logits_list = [] # Normalized attribute detection scores, [batch, max_n_proposal, vocab_size] float tensors. attribute_instance_scores = None # Attribute detection labels, [batch, max_n_proposal, vocab_size] float tensors. attribute_instance_labels_list = [] # Detection results. detection = DetectionTuple() # Grounding results. refined_grounding = GroundingTuple() #################################################### # Objects created by relation.detect_relations. #################################################### # Subject boxes, a [batch, max_n_relation, 4] float tensor. subject_boxes = None # Subject labels, a [batch, max_n_relation] float tensor, each value is in the range [0, vocab_size). subject_labels = None # Object boxes, a [batch, max_n_relation, 4] float tensor. object_boxes = None # Object labels , a [batch, max_n_relation] float tensor, each value is in the range [0, vocab_size). object_labels = None # Predicate labels, a [batch, max_n_relation] float tensor, each value is in the range [0, vocab_size). predicate_labels = None # Sequence prediction of subject, a [batch, max_n_relation, vocab_size] float tensor. subject_logits = None # Sequence prediction of object, a [batch, max_n_relation, vocab_size] float tensor. object_logits = None # Sequence prediction of predicate, a [batch, max_n_relation, vocab_size] float tensor. predicate_logits = None # # Relation detection logits, a [batch, max_n_proposal, max_n_proposal, vocab_size] float tensor. # relation_instance_logits = None # # Normalized relation detection scores, a [batch, max_n_proposal, max_n_proposal, vocab_size] float tensor. # relation_instance_scores = None # # Relation detection labels, a [batch, max_n_proposal, max_n_proposal, vocab_size] float tensor. # relation_instance_labels = None # Relation results. relation = RelationTuple() refined_relation = RelationTuple()
class Groundingtuple(object): entity_proposal_id = None entity_proposal_box = None entity_proposal_score = None entity_proposal_feature = None class Detectiontuple(object): valid_detections = None nmsed_proposal_id = None nmsed_boxes = None nmsed_scores = None nmsed_classes = None nmsed_attribute_scores = None nmsed_attribute_classes = None nmsed_features = None class Relationtuple(object): num_relations = None log_prob = None relation_score = None relation_class = None subject_proposal = None subject_score = None subject_class = None object_proposal = None object_score = None object_class = None class Datatuple(object): token2id_func = None id2token_func = None vocab_size = None dims = None embeddings = None embedding_func = None bias_entity = None bias_attribute = None bias_relation = None batch = None n_proposal = None max_n_proposal = None proposal_masks = None proposals = None proposal_features = None n_entity = None max_n_entity = None entity_masks = None entity_ids = None entity_embs = None refined_entity_embs = None per_ent_n_att = None per_ent_att_ids = None per_ent_att_embs = None entity_image_labels = None attribute_image_labels = None n_relation = None max_n_relation = None relation_masks = None relation_ids = None relation_embs = None refined_relation_embs = None relation_senders = None relation_receivers = None entity_image_logits = None attribute_image_logits = None grounding = grounding_tuple() detection_instance_logits_list = [] detection_instance_scores_list = [] detection_instance_labels_list = [] attribute_instance_logits_list = [] attribute_instance_scores = None attribute_instance_labels_list = [] detection = detection_tuple() refined_grounding = grounding_tuple() subject_boxes = None subject_labels = None object_boxes = None object_labels = None predicate_labels = None subject_logits = None object_logits = None predicate_logits = None relation = relation_tuple() refined_relation = relation_tuple()
################################################## ## ## Auto generate the simple WAT unit tests for ## wrap, trunc, extend, convert, demote, promote ## and reinterpret operators. ## ################################################## tyi32 = "i32"; tyi64 = "i64"; tyf32 = "f32"; tyf64 = "f64"; tests = [ "i32_wrap_i64 ", "i32_trunc_f32_s ", "i32_trunc_f32_u ", "i32_trunc_f64_s ", "i32_trunc_f64_u ", "i64_extend_i32_s ", "i64_extend_i32_u ", "i64_trunc_f32_s ", "i64_trunc_f32_u ", "i64_trunc_f64_s ", "i64_trunc_f64_u ", "f32_convert_i32_s ", "f32_convert_i32_u ", "f32_convert_i64_s ", "f32_convert_i64_u ", "f32_demote_f64 ", "f64_convert_i32_s ", "f64_convert_i32_u ", "f64_convert_i64_s ", "f64_convert_i64_u ", "f64_promote_f32 ", "i32_reinterpret_f32", "i64_reinterpret_f64", "f32_reinterpret_i32", "f64_reinterpret_i64", ] for t in tests: t = t.strip() toks = t.split('_') operatorName = toks[0] + '.' + toks[1] + '_' + toks[2] if len(toks) > 3: operatorName += '_' + toks[3] prog = ";; " + operatorName + "\n" prog += "(module\n" prog += "\t(func (export \"Test\") (param " + toks[2] + ") ( result " + toks[0] + ")\n" prog += "\tlocal.get 0\n" prog += "\t" + operatorName + "\n" prog += "))" print("Writing minimal test for " + operatorName) outFile = open(operatorName + ".WAT", "w") outFile.write(prog) outFile.close() ################################################## ## ## There's a small group of signed extend operators ## that take in the same size as the output, even if ## they're only considering a portion of all the bytes. ## ################################################## selfExtendSTests = [ "i32_extend8_s ", "i32_extend16_s ", "i64_extend8_s ", "i64_extend16_s ", "i64_extend32_s " ] for t in selfExtendSTests: t = t.strip() toks = t.split('_') operatorName = toks[0] + '.' + toks[1] + '_' + toks[2] prog = ";; " + operatorName + "\n" prog += "(module\n" prog += "\t(func (export \"Test\") (param " + toks[0] + ") ( result " + toks[0] + ")\n" prog += "\tlocal.get 0\n" prog += "\t" + operatorName + "\n" prog += "))" print("Writing minimal test for " + operatorName) outFile = open(operatorName + ".WAT", "w") outFile.write(prog) outFile.close()
tyi32 = 'i32' tyi64 = 'i64' tyf32 = 'f32' tyf64 = 'f64' tests = ['i32_wrap_i64 ', 'i32_trunc_f32_s ', 'i32_trunc_f32_u ', 'i32_trunc_f64_s ', 'i32_trunc_f64_u ', 'i64_extend_i32_s ', 'i64_extend_i32_u ', 'i64_trunc_f32_s ', 'i64_trunc_f32_u ', 'i64_trunc_f64_s ', 'i64_trunc_f64_u ', 'f32_convert_i32_s ', 'f32_convert_i32_u ', 'f32_convert_i64_s ', 'f32_convert_i64_u ', 'f32_demote_f64 ', 'f64_convert_i32_s ', 'f64_convert_i32_u ', 'f64_convert_i64_s ', 'f64_convert_i64_u ', 'f64_promote_f32 ', 'i32_reinterpret_f32', 'i64_reinterpret_f64', 'f32_reinterpret_i32', 'f64_reinterpret_i64'] for t in tests: t = t.strip() toks = t.split('_') operator_name = toks[0] + '.' + toks[1] + '_' + toks[2] if len(toks) > 3: operator_name += '_' + toks[3] prog = ';; ' + operatorName + '\n' prog += '(module\n' prog += '\t(func (export "Test") (param ' + toks[2] + ') ( result ' + toks[0] + ')\n' prog += '\tlocal.get 0\n' prog += '\t' + operatorName + '\n' prog += '))' print('Writing minimal test for ' + operatorName) out_file = open(operatorName + '.WAT', 'w') outFile.write(prog) outFile.close() self_extend_s_tests = ['i32_extend8_s ', 'i32_extend16_s ', 'i64_extend8_s ', 'i64_extend16_s ', 'i64_extend32_s '] for t in selfExtendSTests: t = t.strip() toks = t.split('_') operator_name = toks[0] + '.' + toks[1] + '_' + toks[2] prog = ';; ' + operatorName + '\n' prog += '(module\n' prog += '\t(func (export "Test") (param ' + toks[0] + ') ( result ' + toks[0] + ')\n' prog += '\tlocal.get 0\n' prog += '\t' + operatorName + '\n' prog += '))' print('Writing minimal test for ' + operatorName) out_file = open(operatorName + '.WAT', 'w') outFile.write(prog) outFile.close()
# M0_C5 - Mean, Median def mean(scores): # Write your code here return "not implemented" def median(scores): # Write your code here return "not implemented" if __name__ == '__main__': scores = input("Input list of test scores, space-separated: ") scores_list = [int(i) for i in scores.split()] mean = mean(scores_list) median = median(scores_list) print(f"Mean: {mean}") print(f"Median: {median}")
def mean(scores): return 'not implemented' def median(scores): return 'not implemented' if __name__ == '__main__': scores = input('Input list of test scores, space-separated: ') scores_list = [int(i) for i in scores.split()] mean = mean(scores_list) median = median(scores_list) print(f'Mean: {mean}') print(f'Median: {median}')
entradas = int(input()) def cesar_cifra(frase, deslocamento): frase_codificada = "" for letra in frase: ascii_value = ord(letra)-deslocamento if ascii_value < 65: ascii_value = 91 - (65-ascii_value) frase_codificada += chr(ascii_value) return frase_codificada for i in range(entradas): palavra = input() chave = int(input()) print(cesar_cifra(palavra, chave))
entradas = int(input()) def cesar_cifra(frase, deslocamento): frase_codificada = '' for letra in frase: ascii_value = ord(letra) - deslocamento if ascii_value < 65: ascii_value = 91 - (65 - ascii_value) frase_codificada += chr(ascii_value) return frase_codificada for i in range(entradas): palavra = input() chave = int(input()) print(cesar_cifra(palavra, chave))
all_cells = input().split("#") water = int(input()) effort = 0 fire = 0 cells_value = [] total_fire = 0 for cell in all_cells: current_cell = cell.split(" = ") type_of_fire = current_cell[0] cell_value = int(current_cell[1]) if type_of_fire == "High": if not 81 <= cell_value <= 125: continue elif type_of_fire == "Medium": if not 51 <= cell_value <= 80: continue elif type_of_fire == "Low": if not 1 <= cell_value <= 50: continue if water < cell_value: continue cells_value.append(cell_value) water -= cell_value effort += cell_value * 0.25 fire += cell_value print(f"Cells:") for cell in cells_value: print(f" - {cell}") print(f"Effort: {effort:.2f}") print(f"Total Fire: {fire}")
all_cells = input().split('#') water = int(input()) effort = 0 fire = 0 cells_value = [] total_fire = 0 for cell in all_cells: current_cell = cell.split(' = ') type_of_fire = current_cell[0] cell_value = int(current_cell[1]) if type_of_fire == 'High': if not 81 <= cell_value <= 125: continue elif type_of_fire == 'Medium': if not 51 <= cell_value <= 80: continue elif type_of_fire == 'Low': if not 1 <= cell_value <= 50: continue if water < cell_value: continue cells_value.append(cell_value) water -= cell_value effort += cell_value * 0.25 fire += cell_value print(f'Cells:') for cell in cells_value: print(f' - {cell}') print(f'Effort: {effort:.2f}') print(f'Total Fire: {fire}')
class NextcloudRequestException(Exception): def __init__(self, request=None, message=None): self.request = request message = message or f"Error {request.status_code}: {request.get_error_message()}" super().__init__(message) class NextcloudDoesNotExist(NextcloudRequestException): pass class NextcloudAlreadyExist(NextcloudRequestException): pass class NextcloudMultipleObjectsReturned(Exception): pass
class Nextcloudrequestexception(Exception): def __init__(self, request=None, message=None): self.request = request message = message or f'Error {request.status_code}: {request.get_error_message()}' super().__init__(message) class Nextclouddoesnotexist(NextcloudRequestException): pass class Nextcloudalreadyexist(NextcloudRequestException): pass class Nextcloudmultipleobjectsreturned(Exception): pass
def generate_game_stats(sheets): games = 0 wins = [0, 0, 0] #Re, Contra, Tie for sheet in sheets: for row_int in range(1, len(sheet)): row = sheet[row_int] # print(row) if len(row) == 5: games += 1 if int(row[4]) >= 1: wins[0] += 1 elif int(row[4]) <= -1: wins[1] += 1 else: wins[2] += 1 return (wins, games)
def generate_game_stats(sheets): games = 0 wins = [0, 0, 0] for sheet in sheets: for row_int in range(1, len(sheet)): row = sheet[row_int] if len(row) == 5: games += 1 if int(row[4]) >= 1: wins[0] += 1 elif int(row[4]) <= -1: wins[1] += 1 else: wins[2] += 1 return (wins, games)
rf_commands = { 'light/off': '2600500000012b9312131337131312131213131213121338133713131238133713131238133713131312133714371337143713121312131214371312131214111411143713371436140005610001294813000d050000000000000000', 'aircon/off': '2600d6007f3d110e112c110f112c110e112c110f112c110e112c110f112c112c110e112c110f112c112c112c112c110e110f112c112c110e110f110e110f112c110e110e120e110e110f112c110e110f110e110e110f112c110e110f110e110f112b120e110e112c110f110e110f110e112c110f110e110e110f110e110f110e110e110f110e112c102d112c112c120e110e110f110e110f100f110e110f110e112c1010112c110e110f100f110e110f110e110f100f110e110f112c100f110f102d0f2e0f2e112c100f110f110e112c112c112c110f0e000d050000', 'tv/power': '2600500000012695121311141113131212131213123811141138123812381238113911381213123812131238111411131238121312131213113911131238123812131238113812381200051a0001264b13000d050000000000000000', 'tv/input': '260050000001289214111411141114111411131213361411143614361336143614361436141113361436143614361436131114111411141114111312131114111436143613361436140005170001284914000d050000000000000000', 'tv/ch_up': '260050000001289314111410141114111411141114361410143614361436143514361436141114361435143614111436143614111311141114111411143614101411143614361436140005170001284914000d050000000000000000', 'tv/ch_down': '260050000001279314111411141114111311141114361411143515351436143614361435151014361436143614351436143614111411141114101411141114111411143317351436140005170001284914000d050000000000000000', 'tv/vol_up': '260050000001289214111411141114111411141015351411143614361435153514361436141114351510143614111436143515101411141114361411143514111411143614361435140005180001284616000d050000000000000000', 'tv/vol_down': '260050000001289314111411141015101411141114361411143514361436143614351535141114361411143515351436143614111410151014361411141114101510143614361436140005170001284914000d050000000000000000', }
rf_commands = {'light/off': '2600500000012b9312131337131312131213131213121338133713131238133713131238133713131312133714371337143713121312131214371312131214111411143713371436140005610001294813000d050000000000000000', 'aircon/off': '2600d6007f3d110e112c110f112c110e112c110f112c110e112c110f112c112c110e112c110f112c112c112c112c110e110f112c112c110e110f110e110f112c110e110e120e110e110f112c110e110f110e110e110f112c110e110f110e110f112b120e110e112c110f110e110f110e112c110f110e110e110f110e110f110e110e110f110e112c102d112c112c120e110e110f110e110f100f110e110f110e112c1010112c110e110f100f110e110f110e110f100f110e110f112c100f110f102d0f2e0f2e112c100f110f110e112c112c112c110f0e000d050000', 'tv/power': '2600500000012695121311141113131212131213123811141138123812381238113911381213123812131238111411131238121312131213113911131238123812131238113812381200051a0001264b13000d050000000000000000', 'tv/input': '260050000001289214111411141114111411131213361411143614361336143614361436141113361436143614361436131114111411141114111312131114111436143613361436140005170001284914000d050000000000000000', 'tv/ch_up': '260050000001289314111410141114111411141114361410143614361436143514361436141114361435143614111436143614111311141114111411143614101411143614361436140005170001284914000d050000000000000000', 'tv/ch_down': '260050000001279314111411141114111311141114361411143515351436143614361435151014361436143614351436143614111411141114101411141114111411143317351436140005170001284914000d050000000000000000', 'tv/vol_up': '260050000001289214111411141114111411141015351411143614361435153514361436141114351510143614111436143515101411141114361411143514111411143614361435140005180001284616000d050000000000000000', 'tv/vol_down': '260050000001289314111411141015101411141114361411143514361436143614351535141114361411143515351436143614111410151014361411141114101510143614361436140005170001284914000d050000000000000000'}
#L01EX06 topo = int(input()) carta = int(input()) if (topo % 13) == (carta % 13) or carta % 13 == 11: print("True") elif (-12 <= (topo - carta)) and ((topo - carta) <= 12): print("True") else: print("False")
topo = int(input()) carta = int(input()) if topo % 13 == carta % 13 or carta % 13 == 11: print('True') elif -12 <= topo - carta and topo - carta <= 12: print('True') else: print('False')
testcases = int(input()) for _ in range(0, testcases): pc, pr = list(map(int, input().split())) nnm_of_9_pc = pc if pc % 9 == 0 else pc + 9 - (pc % 9) nnm_of_9_pr = pr if pr % 9 == 0 else pr + 9 - (pr % 9) digits_pc = nnm_of_9_pc // 9 digits_pr = nnm_of_9_pr // 9 who_wins = '1' if digits_pc >= digits_pr else '0' min_digit = digits_pc if who_wins == '0' else digits_pr print(who_wins, min_digit)
testcases = int(input()) for _ in range(0, testcases): (pc, pr) = list(map(int, input().split())) nnm_of_9_pc = pc if pc % 9 == 0 else pc + 9 - pc % 9 nnm_of_9_pr = pr if pr % 9 == 0 else pr + 9 - pr % 9 digits_pc = nnm_of_9_pc // 9 digits_pr = nnm_of_9_pr // 9 who_wins = '1' if digits_pc >= digits_pr else '0' min_digit = digits_pc if who_wins == '0' else digits_pr print(who_wins, min_digit)
elements = { 'login_page': { 'input_email': '//*[@id="ap_email"]', 'btn_continue': '//*[@id="continue"]', 'input_password': '//*[@id="ap_password"]', 'btn_login': '//*[@id="signInSubmit"]' }, 'header_confirm': '/html/body/div[1]/header/div/div[1]/div[3]/div/a[1]/div/span', 'bnt_buy_one_click': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[4]/div[1]/div[{0}]/div/span/div/div/div[2]/div[2]/div/div[2]/div[1]/div/div[2]/div/span/span/a', 'title_ebook': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[3]/div[2]/div[{0}]/div/span/div/div/div[2]/div[2]/div/div[1]/div/div/div[1]/h2/a/span', 'img_ebook': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[4]/div[1]/div[{0}]/div/span/div/div/div[2]/div[1]/div/div/span/a/div', 'btn_next_page': 'a-last', 'if_bought': '/html/body/div[1]/div[3]/div/div/div/p[3]', 'btn_buy': 'one-click-button', 'name_ebook': '/html/body/div[1]/div[2]/div[2]/div/div/div[1]/div/div[1]/div[1]/div[1]/div/div/div[1]/span[1]', 'confirm_message': '/html/body/div[1]/div[2]/div[2]/div/div/div[1]/div/div[1]/div[1]/div[1]/div/div/div[1]/span[2]', 'confirm_bought': '/html/body/div[2]/div[2]/div[3]/div[2]/div/div/div/div/div/div/span' }
elements = {'login_page': {'input_email': '//*[@id="ap_email"]', 'btn_continue': '//*[@id="continue"]', 'input_password': '//*[@id="ap_password"]', 'btn_login': '//*[@id="signInSubmit"]'}, 'header_confirm': '/html/body/div[1]/header/div/div[1]/div[3]/div/a[1]/div/span', 'bnt_buy_one_click': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[4]/div[1]/div[{0}]/div/span/div/div/div[2]/div[2]/div/div[2]/div[1]/div/div[2]/div/span/span/a', 'title_ebook': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[3]/div[2]/div[{0}]/div/span/div/div/div[2]/div[2]/div/div[1]/div/div/div[1]/h2/a/span', 'img_ebook': '/html/body/div[1]/div[2]/div[1]/div[2]/div/span[4]/div[1]/div[{0}]/div/span/div/div/div[2]/div[1]/div/div/span/a/div', 'btn_next_page': 'a-last', 'if_bought': '/html/body/div[1]/div[3]/div/div/div/p[3]', 'btn_buy': 'one-click-button', 'name_ebook': '/html/body/div[1]/div[2]/div[2]/div/div/div[1]/div/div[1]/div[1]/div[1]/div/div/div[1]/span[1]', 'confirm_message': '/html/body/div[1]/div[2]/div[2]/div/div/div[1]/div/div[1]/div[1]/div[1]/div/div/div[1]/span[2]', 'confirm_bought': '/html/body/div[2]/div[2]/div[3]/div[2]/div/div/div/div/div/div/span'}
valor_real = float(input("\033[1;30mDigite o valor na carteira?\033[m \033[1;32mR$\033[m")) dolares = valor_real / 3.27 print("\033[1;37mO valor\033[m \033[1;32mR$: {0:.2f} reais\033[m \033[1;37mpode comprar\033[m \033[1;32mUSD$: {1:.2f} dolares\033[m \033[1;37m!\033[m".format(valor_real, dolares))
valor_real = float(input('\x1b[1;30mDigite o valor na carteira?\x1b[m \x1b[1;32mR$\x1b[m')) dolares = valor_real / 3.27 print('\x1b[1;37mO valor\x1b[m \x1b[1;32mR$: {0:.2f} reais\x1b[m \x1b[1;37mpode comprar\x1b[m \x1b[1;32mUSD$: {1:.2f} dolares\x1b[m \x1b[1;37m!\x1b[m'.format(valor_real, dolares))
class Node: def __init__(self,val=None,nxt=None,prev=None): self.val = val self.nxt = nxt self.prev = prev class LL: def __init__(self): self.head = Node() self.tail = Node() self.head.nxt = self.tail self.tail.prev = self.head def find(self,val): cur = self.head.nxt while cur != self.tail: if cur.val == val: return cur cur = cur.nxt return None def append(self,val): new_node = Node(val,self.tail,self.tail.prev) self.tail.prev.nxt = new_node self.tail.prev = new_node def remove(self,val): node = self.find(val) if node is not None: node.prev.nxt = node.nxt node.nxt.prev = node.prev return node return None class CustomSet: def __init__(self): self.table_size = 1024 self.table = [None]*self.table_size self.max_load_factor = 0.5 self.items = 0 def get_index(self,val,table_size): return hash(str(val))%table_size def grow(self): new_table_size = self.table_size * 2 new_table = [None]*new_table_size for i in range(self.table_size): if not self.table[i]: continue cur_LL = self.table[i] cur = cur_LL.head.nxt while cur != cur_LL.tail: index = self.get_index(cur.val,new_table_size) if not new_table[index]: new_table[index] = LL() new_table[index].append(cur.val) cur = cur.nxt self.table = new_table self.table_size = new_table_size def add(self, val): if self.items/self.table_size > self.max_load_factor: self.grow() index = self.get_index(val,self.table_size) if not self.table[index]: self.table[index] = LL() cur_LL = self.table[index] node = cur_LL.find(val) if node: node.val = val else: cur_LL.append(val) self.items += 1 def exists(self, val): index = self.get_index(val,self.table_size) if not self.table[index]: return False node = self.table[index].find(val) return node is not None def remove(self, val): index = self.get_index(val,self.table_size) if not self.table[index]: return node = self.table[index].remove(val) if node: self.items -= 1
class Node: def __init__(self, val=None, nxt=None, prev=None): self.val = val self.nxt = nxt self.prev = prev class Ll: def __init__(self): self.head = node() self.tail = node() self.head.nxt = self.tail self.tail.prev = self.head def find(self, val): cur = self.head.nxt while cur != self.tail: if cur.val == val: return cur cur = cur.nxt return None def append(self, val): new_node = node(val, self.tail, self.tail.prev) self.tail.prev.nxt = new_node self.tail.prev = new_node def remove(self, val): node = self.find(val) if node is not None: node.prev.nxt = node.nxt node.nxt.prev = node.prev return node return None class Customset: def __init__(self): self.table_size = 1024 self.table = [None] * self.table_size self.max_load_factor = 0.5 self.items = 0 def get_index(self, val, table_size): return hash(str(val)) % table_size def grow(self): new_table_size = self.table_size * 2 new_table = [None] * new_table_size for i in range(self.table_size): if not self.table[i]: continue cur_ll = self.table[i] cur = cur_LL.head.nxt while cur != cur_LL.tail: index = self.get_index(cur.val, new_table_size) if not new_table[index]: new_table[index] = ll() new_table[index].append(cur.val) cur = cur.nxt self.table = new_table self.table_size = new_table_size def add(self, val): if self.items / self.table_size > self.max_load_factor: self.grow() index = self.get_index(val, self.table_size) if not self.table[index]: self.table[index] = ll() cur_ll = self.table[index] node = cur_LL.find(val) if node: node.val = val else: cur_LL.append(val) self.items += 1 def exists(self, val): index = self.get_index(val, self.table_size) if not self.table[index]: return False node = self.table[index].find(val) return node is not None def remove(self, val): index = self.get_index(val, self.table_size) if not self.table[index]: return node = self.table[index].remove(val) if node: self.items -= 1
p1 = 0.49 p2 = 0.38 p3 = 0.1 p4 = 0.03 p = p1 * p1 + p1 * p2 + p1 * p3 + p1 * p4 + p2 * p2 + p2 * p4 + p3 * p3 + p3 * p4 + p4 * p4 print(p) print(10 * 0.2 * 0.8 ** 9)
p1 = 0.49 p2 = 0.38 p3 = 0.1 p4 = 0.03 p = p1 * p1 + p1 * p2 + p1 * p3 + p1 * p4 + p2 * p2 + p2 * p4 + p3 * p3 + p3 * p4 + p4 * p4 print(p) print(10 * 0.2 * 0.8 ** 9)
class Developer: DUNDY = 321730481903370240 ADM = 600443374587346989 TEMPLAR = 108281077319077888 GHOSTRIDER = 846009958062358548
class Developer: dundy = 321730481903370240 adm = 600443374587346989 templar = 108281077319077888 ghostrider = 846009958062358548
def computeParameterValue(sources): mapping = {} for idx, source in enumerate(sources): for kv in source: k, v = kv.split(":") mapping[k] = v results = [] for key in mapping: results.append(mapping[key]) return results
def compute_parameter_value(sources): mapping = {} for (idx, source) in enumerate(sources): for kv in source: (k, v) = kv.split(':') mapping[k] = v results = [] for key in mapping: results.append(mapping[key]) return results