content
stringlengths
7
1.05M
def time_difference(was_hours, was_minutes, was_seconds, now_hours, now_minutes, now_seconds): now_hours -= was_hours now_minutes -= was_minutes now_seconds -= was_seconds seconds_passed = 0 now_minutes = now_minutes * 60 now_hours = now_hours * 3600 seconds_passed += now_seconds seconds_passed += now_minutes seconds_passed += now_hours print(seconds_passed) time_difference(int(input()), int(input()), int(input()), int(input()), int(input()), int(input()))
# Plot the raw data before setting the datetime index df.plot() plt.show() # Convert the 'Date' column into a collection of datetime objects: df.Date df.Date = pd.to_datetime(df.Date) # Set the index to be the converted 'Date' column df.set_index('Date', inplace=True) # Re-plot the DataFrame to see that the axis is now datetime aware! df.plot() plt.show()
a = 3 b = 5 print(f'Os valores são \033[31m{a}\033[m e \033[34m{b}\033[m') nome = 'Guanabara' cores = {'limpa': '\033[m', 'azul': '\033[34m', 'amarelo': '\033[33m', 'pretoebranco': '\033[7;29m'} print(f'{cores["azul"]}{nome}{cores["limpa"]}')
def binary(num): s = "" if num != 0: while num >= 1: if num % 2 == 0: s = s + "0" num = num/2 else: s = s + "1" num = num/2 else: s="0" return "".join(reversed(s)) print(binary(12))
_lookup = { # https://support.microsoft.com/en-us/kb/89879 'MS_ADPCM': 1, 'IMA_ADPCM': 1, 'PCM_S8': 1, 'PCM_U8': 1, 'PCM_16': 2, 'PCM_24': 3, 'PCM_32': 4, 'FLOAT': 4, 'DOUBLE': 8, # this is a guess, erring on the side of caution 'VORBIS': 3 } def chunk_size_samples(sf, buf): """ Black magic to account for the fact that libsndfile's behavior varies depending on file format when using the virtual io api. If you ask for more samples from an ogg or flac file than are available at that moment, libsndfile will give you no more samples ever, even if more bytes arrive in the buffer later. """ byte_depth = _lookup[sf.subtype] channels = sf.channels bytes_per_second = byte_depth * sf.samplerate * channels secs = len(buf) / bytes_per_second secs = max(1, secs - 6) return int(secs * sf.samplerate)
numbers = [int(s) for s in input().split()] command = input() while command != 'end': command = command.split() action = command[0] if action == 'swap': index_1 = int(command[1]) index_2 = int(command[2]) numbers[index_1], numbers[index_2] = numbers[index_2], numbers[index_1] elif action == 'multiply': index_1 = int(command[1]) index_2 = int(command[2]) numbers[index_1] = numbers[index_1] * numbers[index_2] elif action == 'decrease': numbers = [s - 1 for s in numbers] command = input() numbers = [str(s) for s in numbers] print(', '.join(numbers))
_base_ = [ '../_base_/models/stylegan/stylegan3_base.py', '../_base_/datasets/ffhq_flip.py', '../_base_/default_runtime.py' ] batch_size = 32 magnitude_ema_beta = 0.5**(batch_size / (20 * 1e3)) synthesis_cfg = { 'type': 'SynthesisNetwork', 'channel_base': 32768, 'channel_max': 512, 'magnitude_ema_beta': 0.999 } r1_gamma = 32.8 d_reg_interval = 16 model = dict( type='StaticUnconditionalGAN', generator=dict(out_size=1024, img_channels=3, synthesis_cfg=synthesis_cfg), discriminator=dict(in_size=1024), gan_loss=dict(type='GANLoss', gan_type='wgan-logistic-ns'), disc_auxiliary_loss=dict(loss_weight=r1_gamma / 2.0 * d_reg_interval)) imgs_root = None # set by user data = dict( samples_per_gpu=4, train=dict(dataset=dict(imgs_root=imgs_root)), val=dict(imgs_root=imgs_root)) ema_half_life = 10. # G_smoothing_kimg custom_hooks = [ dict( type='VisualizeUnconditionalSamples', output_dir='training_samples', interval=5000), dict( type='ExponentialMovingAverageHook', module_keys=('generator_ema', ), interp_mode='lerp', interval=1, start_iter=0, momentum_policy='rampup', momentum_cfg=dict( ema_kimg=10, ema_rampup=0.05, batch_size=batch_size, eps=1e-8), priority='VERY_HIGH') ] inception_pkl = 'work_dirs/inception_pkl/ffhq_noflip_1024x1024.pkl' metrics = dict( fid50k=dict( type='FID', num_images=50000, inception_pkl=inception_pkl, inception_args=dict(type='StyleGAN'), bgr2rgb=True)) evaluation = dict( type='GenerativeEvalHook', interval=10000, metrics=dict( type='FID', num_images=50000, inception_pkl=inception_pkl, inception_args=dict(type='StyleGAN'), bgr2rgb=True), sample_kwargs=dict(sample_model='ema')) checkpoint_config = dict(interval=10000, by_epoch=False, max_keep_ckpts=30) lr_config = None total_iters = 800002
potencia=int(input()) tempo=int(input()) calculo=(potencia/1000)*(tempo/60) print(f'{calculo:.1f} kWh')
def is_palindrome(input_string): """Check if a string is a palindrome irrespective of capitalisation Returns: True if string is a palindrome e.g >>> is_palindrome("kayak") OUTPUT : True False if string is not a palindrome e.g >>> is_palindrome("Boat") OUTPUT : False """ # Create variables to hold new strings to be compared new_string = "" reversed_string = "" # Ensure that the string is not empty if input_string != '': # Change input into lower case and loop through each letter for char in input_string.lower(): # Remove all white spaces # Add each letter to a string # Reverse the string if char != " ": new_string += char reversed_string = ''.join(reversed(new_string)) # Compare the strings if new_string == reversed_string: return True return False return "String is empty" # Tests print(is_palindrome("kayak")) # Return True print(is_palindrome("Hold Your fire")) # Return False print(is_palindrome("Never Odd or Even")) # Return True print(is_palindrome("abc")) # Return False print(is_palindrome("")) # Return "String is empty"
# Complexity O(n) def linear_search(array: list, elem): for index, number in enumerate(array): if number == elem: print(f"The elem {elem} is present ind array, on index {index}.") return index print(f"The elem {elem} isn't on array.") return -1 def linear_search_in(array: list, elem): return elem in array # this return true or false def linear_search_index(array: list, elem): try: return array.index(elem) except ValueError: return -1 array = list(range(1, 100)) print(linear_search(array, 101)) print(linear_search(array, 1))
# lcs = longest_consecutive_series # ccn = count_of_consecutive_numbers class Solution(object): #main function def longestConsecutive(self, values): #sub funcction lcs = 0 # Initializing for i in values: # Iteration the given value if i-1 not in values: # condition check value = i ccn = 0 while i in values: i+=1 #increament ccn+=1 #increment lcs = max(lcs,ccn) #maximum finding return lcs print(" Length of LCS is ",Solution().longestConsecutive({13,15,19,16,21,17,18,23,1,4})) #Calling two function Solution and longestConsecutive ''' longestConsecutive will be called and it will pass the value. longest_consecutive_series value will be assign loop will be called for i = 1 (True ):- if i-1 not in values ( True ):- value = 1 count_of_consecutive_numbers = 0 for i =1 (True ) i +=1 , i=2 count_of_consecutive_numbers = 1 max will be find between longest_consecutive_series,count_of_consecutive_numbers for i =2 ( False ) back to main loop. for i = 4 ( True ) :- if i-1 not in values ( True ):- value = 4 count_of_consecutive_numbers = 0 for i = 4 (True ) i +=1 , i = 5 count_of_consecutive_numbers = 1 longest_consecutive_series =1 for i = 5 ( False ) back to main loop for i = 5 (False ) :- The value of i will be iterate for i = 13 (True ) :- if i-1 not in values ( True ):- value = 13 count_of_consecutive_numbers = 0 for i = 13 ( True ) i +=1 , i = 13 count_of_consecutive_numbers = 1 longest_consecutive_series = for i = 14 (False) back to main loop for i = 14 (False ):- if i-1 not in values ( False ) for i = 15 (True ):- if i-1 not in values ( True ):- value = 15 count_of_consecutive_numbers = 0 for i = 15 ( True ) i +=1 , i = 16 count_of_consecutive_numbers = 1 longest_consecutive_series =1 for i = 16 ( True ) i +=1 , i = 17 count_of_consecutive_numbers = 2 longest_consecutive_series =2 for i = 17 ( True ) i +=1 , i = 18 count_of_consecutive_numbers = 3 longest_consecutive_series =3 for i = 18 ( True ) i +=1 , i = 19 count_of_consecutive_numbers = 4 longest_consecutive_series =4 for i = 19 ( True ) i +=1 , i = 20 count_of_consecutive_numbers = 5 longest_consecutive_series =5 for i = 20 ( False ) back to main loop for i = 16 ( True ):- if i-1 not in values ( False ):- back to main loop for i = 17 ( True ):- if i-1 not in values ( False ):- back to main loop for i = 18 ( True ):- if i-1 not in values ( False ):- back to main loo for i = 19 ( True ):- if i-1 not in values ( False ):- back to main loo for i = 21 ( True ):- if i-1 not in values ( True ):- value = 21 count_of_consecutive_numbers = 0 for i = 21 ( True ) i +=1 , i = 22 count_of_consecutive_numbers = 1 longest_consecutive_series =1 for i = 22 ( False ):- back to main loop for i = 23 ( True ):- if i-1 not in values ( True ):- value = 23 count_of_consecutive_numbers = 0 for i = 23 ( True ) i +=1 , i = 24 count_of_consecutive_numbers = 1 longest_consecutive_series = 1 for i = 24 (False ):- back to main loop '''
""" This module contains some constants and utilities for converting between stars and levels. The EXP system works as follows: - To advance to the next level, you need to acquare 8 banners. - Banners can be bought with stars. A banner costs a single star at level one, with the cost of a banner increasing by a single star for every three levels after the fifth level. The rules are implemented here mostly for reference since the EXP system is rather freeform and does not have a lot of rules. These conversion functions are also separately implemented in the front end to allow for easy display of and modifications to a character's progress. """ # The number of banners needed to achieve a single level. BANNERS_PER_LEVEL = 8 # The number stars needed to purchase a banner for a character of a certain # level. These values are hardcoded here for convenience since there are only a # few of them and it makes calculations a lot simpler and clearer. # # The TypeScript version includes some more levels after level 20, but those are # purely for comestic purposes. STARS_PER_BANNER = { 1: 1, 2: 1, 3: 1, 4: 1, 5: 2, 6: 2, 7: 2, 8: 3, 9: 3, 10: 3, 11: 4, 12: 4, 13: 4, 14: 5, 15: 5, 16: 5, 17: 6, 18: 6, 19: 6, 20: 6, } # We can use the above values to calculate how many stars we need to reach a # certain level STARS_FOR_LEVEL = {1: 0} for level, banner_cost in STARS_PER_BANNER.items(): # There's no progression after level 20, only awesomeness if level >= 20: continue last_level_requirement = STARS_FOR_LEVEL[level] STARS_FOR_LEVEL[level + 1] = ( last_level_requirement + banner_cost * BANNERS_PER_LEVEL ) LEVELS = list(sorted(STARS_FOR_LEVEL.keys())) def stars_to_level(character_stars): """ Convert between stars and level progression. Parameters ---------- character_stars : int The number of stars a character has. Returns ------- level : int The character's current level. banners : int The number of banners towards the next level the character currently possesses. stars : int The number of stars towards the next banner the character currently possesses. """ # We can determine a character's level from the leveling table above and # calculate the rest from there level, level_cost = next( ( (level, STARS_FOR_LEVEL[level]) for level in reversed(LEVELS) if character_stars >= STARS_FOR_LEVEL[level] ), (0, STARS_FOR_LEVEL[2]), ) banner_cost = STARS_PER_BANNER[level] banners = (character_stars - level_cost) // banner_cost remaining_stars = character_stars - level_cost - (banners * banner_cost) return level, banners, remaining_stars def level_to_stars(level): """ Calculate how many stars are needed to reach a certain level. This is useful when adding new characters. Parameters ---------- level : int The character's level. Returns ------- int The number of stars needed to reach this level. """ return STARS_FOR_LEVEL.get(level, 0)
# Uses python3 def lcm_naive(a, b): for l in range(1, a*b + 1): if l % a == 0 and l % b == 0: return l return a*b def gcd(a, b): while b: a, b = b, a % b return a def lcm(a, b): d = gcd(a, b) return (a // d) * b if __name__ == '__main__': a, b = map(int, input().split()) print(lcm(a, b))
""" app.py the main file for launching the web dashboard. By: Calacuda | MIT Licence | Epoch: Mar 25, 2021 """
# french verb conjugation (present) # greet the user print('welcome to the french verb conjugator') # user enter their word word = str(input('please enter the word you want to conjugate: ')).lower() # list of conjugated words word_conjugate = [] # function (and conditional) to check word ending def conjugate(): # create the conjugated word if word.endswith('oir'): word_oir = ['je ' + word.replace('oir', 'ois', 1), 'tu ' + word.replace('oir', 'ois', 1), 'il ' + word.replace('oir', 'oit', 1), 'nous ' + word.replace('oir', 'ons', 1), 'vous ' + word.replace('oir', 'ez', 1), 'ils ' + word.replace('oir', 'ent', 1)] # append results to the list word_conjugate.extend(word_oir) elif word.endswith('dre'): word_dre = ['je ' + word.replace('dre', 'ds', 1), 'tu ' + word.replace('dre', 'ds', 1), 'il ' + word.replace('dre', 'd', 1), 'nous ' + word.replace('dre', 'dons', 1), 'vous ' + word.replace('dre', 'dez', 1), 'ils ' + word.replace('dre', 'dent', 1)] word_conjugate.extend(word_dre) elif word.endswith('ir'): word_ir = ['je ' + word.replace('ir', 'is', 1), 'tu ' + word.replace('ir', 'is', 1), 'il '+ word.replace('ir', 'it', 1), 'nous ' + word.replace('ir', 'issons', 1), 'vous ' + word.replace('ir', 'issez', 1), 'ils ' + word.replace('ir', 'issent', 1)] word_conjugate.extend(word_ir) elif word.endswith('er'): word_er = ['je ' + word.replace('er', 'e', 1), 'tu ' + word.replace('er', 'es', 1), 'il ' + word.replace('er', 'e', 1), 'nous ' + word.replace('er', 'ons', 1), 'vous ' + word.replace('er', 'ez', 1), 'ils ' + word.replace('er', 'ent', 1)] word_conjugate.extend(word_er) else: print('i can not handle exceptions yet.') # format the list of conjugated words def conjugate_format(): print(*word_conjugate, sep = '\n') # call the functions conjugate() conjugate_format()
class payload: def __init__(self): self.name = "next" self.description = "tell iTunes to play next track" self.type = "applescript" self.id = 121 def run(self,session,server,command): payload = "tell application \"iTunes\" to next track" server.sendCommand(self.name,payload,self.type,session.conn) return ""
def draw_polygons(self, pipes, gaps): BLACK = (0, 0, 0) danger = [] # upper left of pipe[0] a = (0, 0) b = (pipes['upper'][0]['x'], 0) c = (pipes['upper'][0]['x'], gaps[0]['y']) d = (0, gaps[0]['y']) danger.append([a, b, c, d]) # lower left of pipe[0] a = (0, pipes['lower'][0]['y']) b = (pipes['lower'][0]['x'], pipes['lower'][0]['y']) c = (pipes['lower'][0]['x'], BASE_Y) d = (0, BASE_Y) danger.append([a, b, c, d]) #between upper pipe[0] and pipe[1] a = (pipes['upper'][0]['x'] + PIPE_W, 0) b = (pipes['upper'][1]['x'], 0) c = (pipes['upper'][1]['x'], gaps[1]['y']) d = (pipes['upper'][0]['x'] + PIPE_W, gaps[0]['y']) danger.append([a, b, c, d]) a = (pipes['lower'][0]['x'] + PIPE_W, pipes['lower'][0]['y']) b = (pipes['lower'][1]['x'], pipes['lower'][1]['y']) c = (pipes['lower'][1]['x'], BASE_Y) d = (pipes['lower'][0]['x'] + PIPE_W, BASE_Y) danger.append([a, b, c, d]) a = (pipes['upper'][1]['x'] + PIPE_W, 0) b = (SCREEN_W, 0) c = (SCREEN_W, gaps[1]['y']) d = (pipes['upper'][1]['x'] + PIPE_W, gaps[1]['y']) danger.append([a, b, c, d]) a = (pipes['lower'][1]['x'] + PIPE_W, pipes['lower'][1]['y']) b = (SCREEN_W, pipes['lower'][1]['y']) c = (SCREEN_W, BASE_Y) d = (pipes['lower'][1]['x'] + PIPE_W, BASE_Y) danger.append([a, b, c, d]) danger_zone = [] masks = [] for z in danger: poly = [z[0], z[1], z[2], z[3]] danger_zone.append(pygame.draw.polygon(SCREEN, BLACK, poly)) masks.append(fl.getHitmask(poly)) return danger_zone, masks
#!/usr/bin/env python # -*- coding: utf-8 -*- try: f = open('myfile.txt') s = f.readline() i = int(s.strip()) except OSError as err: print("OS error: ", err) except ValueError: print("Could not convert data to integer.") raise except: print("Unexpected error!") raise
""" ######################################################################## The parameters.py module contains the Parameters class, which provides I/O tools for defining input parameters, as required for FAO-56 calculations. The parameters.py module contains the following: Parameters - A class for managing input parameters for FAO-56 calculations 01/07/2016 Initial Python functions developed by Kelly Thorp 11/04/2021 Finalized updates for inclusion in the pyfao56 Python package ######################################################################## """ class Parameters: """A class for managing input parameters for FAO-56 calculations Attributes ---------- Kcbini : float Kcb Initial (FAO-56 Table 17) Kcbmid : float Kcb Mid (FAO-56 Table 17) Kcbend : float Kcb End (FAO-56 Table 17) Lini : int Length Stage Initial (days) (FAO-56 Table 11) Ldev : int Length Stage Development (days) (FAO-56 Table 11) Lmid : int Length Stage Mid (days) (FAO-56 Table 11) Lend : int Length Stage End (days) (FAO-56 Table 11) hini : float Plant Height Initial (m) hmax : float Plant Height Maximum (m) (FAO-56 Table 12) thetaFC : float Volumetric Soil Water Content, Field Capacity (cm3/cm3) thetaWP : float Volumetric Soil Water Content, Wilting Point (cm3/cm3) theta0 : float Volumetric Soil Water Content, Initial (cm3/cm3) Zrini : float Rooting Depth Initial (m) Zrmax : float Rooting Depth Maximum (m) (FAO-56 Table 22) pbase : float Depletion Fraction (p) (FAO-56 Table 22) Ze : float Depth of surface evaporation layer (m) (FAO-56 Table 19 & p144) REW : float Total depth Stage 1 evaporation (mm) (FAO-56 Table 19) Methods ------- savefile(filepath='pyfao56.par') Save the parameter data to a file loadfile(filepath='pyfao56.par') Load the parameter data from a file """ def __init__(self, Kcbini=0.15, Kcbmid=1.10, Kcbend=0.50, Lini=25, Ldev=50, Lmid=50, Lend=25, hini=0.05, hmax=1.20, thetaFC=0.250, thetaWP=0.100, theta0=0.100, Zrini=0.20, Zrmax=1.40, pbase=0.50, Ze=0.10, REW=8.0): """Initialize the Parameters class attributes. Default parameter values are given below. Users should update the parameters with values for their specific crop and field conditions based on FAO-56 documentation. Parameters ---------- See Parameters class docstring for parameter definitions. Kcbini : float, default = 0.15 Kcbmid : float, default = 1.10 Kcbend : float, default = 0.50 Lini : int , default = 25 Ldev : int , default = 50 Lmid : int , default = 50 Lend : int , default = 25 hini : float, default = 0.05 hmax : float, default = 1.20 thetaFC : float, default = 0.250 thetaWP : float, default = 0.100 theta0 : float, default = 0.100 Zrini : float, default = 0.20 Zrmax : float, default = 1.40 pbase : float, default = 0.50 Ze : float, default = 0.10 REW : float, default = 8.0 """ self.Kcbini = Kcbini self.Kcbmid = Kcbmid self.Kcbend = Kcbend self.Lini = Lini self.Ldev = Ldev self.Lmid = Lmid self.Lend = Lend self.hini = hini self.hmax = hmax self.thetaFC = thetaFC self.thetaWP = thetaWP self.theta0 = theta0 self.Zrini = Zrini self.Zrmax = Zrmax self.pbase = pbase self.Ze = Ze self.REW = REW def __str__(self): """Represent the Parameter class variables as a string.""" ast='*'*72 s=('{:s}\n' 'pyfao56: FAO-56 in Python\n' 'Parameter Data\n' '{:s}\n' '{:9.4f} Kcbini, Kcb Initial (FAO-56 Table 17)\n' '{:9.4f} Kcbmid, Kcb Mid (FAO-56 Table 17)\n' '{:9.4f} Kcbend, Kcb End (FAO-56 Table 17)\n' '{:9d} Lini, Length Stage Initial (days) (FAO-56 Table 11)\n' '{:9d} Ldev, Length Stage Development (days) ' '(FAO-56 Table 11)\n' '{:9d} Lmid, Length Stage Mid (days) (FAO-56 Table 11)\n' '{:9d} Lend, Length Stage End (days) (FAO-56 Table 11)\n' '{:9.4f} hini, Plant Height Initial (m)\n' '{:9.4f} hmax, Plant Height Maximum (m) (FAO-56 Table 12)\n' '{:9.4f} thetaFC, Vol. Soil Water Content, Field Capacity ' '(cm3/cm3)\n' '{:9.4f} thetaWP, Vol. Soil Water Content, Wilting Point ' '(cm3/cm3)\n' '{:9.4f} theta0, Vol. Soil Water Content, Initial ' '(cm3/cm3)\n' '{:9.4f} Zrini, Rooting Depth Initial (m)\n' '{:9.4f} Zrmax, Rooting Depth Maximum (m) ' '(FAO-56 Table 22)\n' '{:9.4f} pbase, Depletion Fraction (p) (FAO-56 Table 22)\n' '{:9.4f} Ze, Depth of surface evaporation layer (m) ' '(FAO-56 Table 19 and Page 144)\n' '{:9.4f} REW, Total depth Stage 1 evaporation (mm) ' '(FAO-56 Table 19)\n' ).format(ast,ast,self.Kcbini,self.Kcbmid,self.Kcbend, self.Lini,self.Ldev,self.Lmid,self.Lend,self.hini, self.hmax,self.thetaFC,self.thetaWP,self.theta0, self.Zrini,self.Zrmax,self.pbase,self.Ze,self.REW) return s def savefile(self,filepath='pyfao56.par'): """Save pyfao56 parameters to a file. Parameters ---------- filepath : str, optional Any valid filepath string (default = 'pyfao56.par') Raises ------ FileNotFoundError If filepath is not found. """ try: f = open(filepath, 'w') except FileNotFoundError: print("The filepath for parameter data is not found.") else: f.write(self.__str__()) f.close() def loadfile(self, filepath='pyfao56.par'): """Load pyfao56 parameters from a file. Parameters ---------- filepath : str, optional Any valid filepath string (default = 'pyfao56.par') Raises ------ FileNotFoundError If filepath is not found. """ try: f = open(filepath, 'r') except FileNotFoundError: print("The filepath for parameter data is not found.") else: lines = f.readlines() f.close() self.Kcbini = float(lines[ 4][:9]) self.Kcbmid = float(lines[ 5][:9]) self.Kcbend = float(lines[ 6][:9]) self.Lini = int(lines[ 7][:9]) self.Ldev = int(lines[ 8][:9]) self.Lmid = int(lines[ 9][:9]) self.Lend = int(lines[10][:9]) self.hini = float(lines[11][:9]) self.hmax = float(lines[12][:9]) self.thetaFC = float(lines[13][:9]) self.thetaWP = float(lines[14][:9]) self.theta0 = float(lines[15][:9]) self.Zrini = float(lines[16][:9]) self.Zrmax = float(lines[17][:9]) self.pbase = float(lines[18][:9]) self.Ze = float(lines[19][:9]) self.REW = float(lines[20][:9])
""" Iterator in Python is simply an object that can be iterated upon. An object which will return data, one element at a time. Technically, Python 'iterator object' must implement two special methods, __iter__(), and __next__(), collectively called the iterator protocol. Most of built-in containers in python like list, tuple, string etc. are iterables. The advantage of using iterators is that they save resources. For example we could get all the odd numbers without storing the entire number system in memory Concept/Code: Hem Raj Regmi ([email protected]) github repository: https://github.com/sangamsyabil/hemAutomation Happy coding !!! """ print('#' * 50) # define a list my_list = [4, 3, 5, 4] # get an iterator using iter() my_iter = iter(my_list) print(type(my_iter)) # <class 'list_iterator'> # iterate through it using next() print(next(my_iter)) # 4 # next(job) is same as obj.__next__() print(my_iter.__next__()) # 3 print('#' * 50) # An example that will give us next power of 2 in each iteration. Power exponent starts from zero upto a user set num. class PowOfTwo: """ Class to implement an iterator of power of two """ def __init__(self, max=0): self.max = max def __iter__(self): self.n = 0 return self def __next__(self): if self.n <= self.max: result = 2 ** self.n self.n += 1 return result else: raise StopIteration # We can create an iterator and iterate through it a = PowOfTwo(4) i = iter(a) print(next(i)) # 1 print(next(i)) # 2 print(next(i)) # 4 print('\n') # We also can use a for lop to iterate over our iterator class for i in PowOfTwo(4): print(i)
test = { 'name': 'q1.1', 'points': 1, 'suites': [ { 'cases': [ { 'code': '>>> assert abs(P[0] - 0.003819) < .1*0.003819;\n' '>>> assert abs(P[1] - 0.016803) < .1*0.016803;\n' '>>> assert abs(P[2] - 0.180881) < .1*0.180881;\n' '>>> assert abs(P[3] - 0.631248) < .1*0.631248\n', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
""" This module contains a class for sharing information on the state of the ACC, rover, and obstacle between the main process for the ACC and the listener process. It allows for this information to be relayed to the user. """ UNKNOWN = "-" # An initial value given to all of the values, so that the user interface has something to show that the # given value is currently unknown class SystemInfo(object): def __init__(self): self.currentSpeed = UNKNOWN self.obstacleDistance = UNKNOWN self.obstacleRelSpeed = UNKNOWN self.ticksLeft = UNKNOWN self.ticksRight = UNKNOWN self.safetyRange = UNKNOWN self.startupVoltage = UNKNOWN self.userSetSpeed = UNKNOWN self.safeDistance = UNKNOWN self.criticalDistance = UNKNOWN self.alertDistance = UNKNOWN self.power = True def getPower(self): return self.power def getUserSetSpeed(self): return self.userSetSpeed def getCurrentSpeed(self): return self.currentSpeed def getSafeDistance(self): return self.safeDistance def getCriticalDistance(self): return self.criticalDistance def getAlertDistance(self): return self.alertDistance def getObstacleDistance(self): return self.obstacleDistance def getObstacleRelSpeed(self): return self.obstacleRelSpeed def getTicksLeft(self): return self.ticksLeft def getTicksRight(self): return self.ticksRight def getSafetyRange(self): return self.safetyRange def getStartupVoltage(self): return self.startupVoltage def setPower(self, power): self.power = power def setUserSetSpeed(self, speed): self.userSetSpeed = speed def setCurrentSpeed(self, speed): self.currentSpeed = int(speed) def setSafeDistance(self, distance): self.safeDistance = distance def setCriticalDistance(self, distance): self.criticalDistance = distance def setAlertDistance(self, distance): self.alertDistance = distance def setObstacleDistance(self, distance): self.obstacleDistance = distance def setObstacleRelSpeed(self, speed): self.obstacleRelSpeed = speed def setTicksLeft(self, ticks): self.ticksLeft = ticks def setTicksRight(self, ticks): self.ticksRight = ticks def setSafetyRange(self, s_range): self.safetyRange = s_range def setStartupVoltage(self, volt): self.startupVoltage = volt
input = """ c num blocks = 1 c num vars = 250 c minblockids[0] = 1 c maxblockids[0] = 250 p cnf 250 1112 -32 148 249 0 169 -98 24 0 -122 -32 -128 0 -9 125 200 0 -216 193 138 0 196 54 31 0 -140 -121 -62 0 237 152 -122 0 91 -206 -247 0 172 -115 -101 0 220 -216 152 0 26 88 -69 0 -130 235 226 0 -96 -242 2 0 -184 -48 -190 0 -150 180 120 0 239 238 27 0 -238 -89 -37 0 49 -25 108 0 -9 82 96 0 87 -25 -161 0 -245 41 169 0 -113 -69 114 0 64 -188 -234 0 35 -56 -179 0 -156 85 162 0 -70 -216 -79 0 -201 37 146 0 197 -165 30 0 -189 -175 -130 0 -182 141 -146 0 215 -55 -44 0 179 -204 225 0 -194 17 203 0 -174 -218 -152 0 209 133 142 0 73 236 147 0 140 21 -10 0 224 152 -56 0 -59 -195 -167 0 12 -83 31 0 -204 191 -115 0 -144 -250 219 0 -150 180 -121 0 113 182 -183 0 -135 -155 -122 0 216 -182 -68 0 161 25 -52 0 -70 132 -133 0 -49 50 167 0 74 53 104 0 189 190 91 0 47 101 202 0 -23 241 216 0 97 -29 142 0 -247 57 34 0 -16 -249 -197 0 238 12 -115 0 -50 -1 -10 0 185 238 -144 0 -146 8 -219 0 -239 116 -108 0 -17 -151 -191 0 67 -154 -44 0 -173 -102 -105 0 -67 -34 -150 0 148 79 139 0 -185 94 -221 0 244 249 -138 0 103 213 130 0 -240 -74 -69 0 63 -184 224 0 -136 63 -88 0 -13 -39 -95 0 95 -153 -169 0 71 -226 236 0 -82 -102 20 0 173 118 -177 0 -200 33 146 0 -88 -22 -111 0 106 130 66 0 -199 212 -223 0 213 116 47 0 155 -167 172 0 42 -158 195 0 5 -185 65 0 66 -127 -92 0 -241 -24 147 0 215 -86 -130 0 -190 -85 225 0 -117 184 198 0 -18 -162 -160 0 26 -48 -220 0 -131 206 -66 0 -67 -114 -74 0 233 216 -38 0 -69 156 39 0 172 -52 -163 0 108 131 -198 0 -176 -239 -91 0 -13 114 -21 0 161 82 -242 0 -85 -47 -22 0 -62 4 218 0 -193 -179 -33 0 -202 156 -133 0 245 170 -220 0 -45 148 -219 0 -135 -117 -153 0 187 -244 -197 0 -45 154 -158 0 69 -239 203 0 44 36 -93 0 249 -49 -74 0 -99 205 177 0 -109 204 -207 0 -123 81 146 0 56 177 -171 0 -209 49 148 0 139 82 -152 0 131 -248 71 0 -94 170 137 0 236 88 -169 0 213 166 20 0 -81 19 77 0 -200 176 -43 0 -62 84 -32 0 -56 108 -93 0 8 -124 240 0 201 -147 -92 0 167 -12 212 0 49 114 -96 0 226 -230 62 0 31 -15 -171 0 168 180 -138 0 -117 -147 -28 0 -1 113 -18 0 -170 -201 -153 0 151 186 -170 0 -105 -239 -104 0 -89 173 171 0 -224 156 -215 0 58 149 27 0 -3 -229 -190 0 168 220 -203 0 6 -110 -166 0 129 -183 15 0 -27 137 208 0 23 86 3 0 -163 -218 -66 0 -161 138 89 0 51 168 193 0 37 54 -235 0 11 -16 86 0 -77 -147 159 0 -217 226 -214 0 34 -202 -215 0 200 198 185 0 -62 88 -21 0 232 122 244 0 103 36 -7 0 101 11 -212 0 72 28 -209 0 122 -56 -238 0 -201 -233 -71 0 85 102 132 0 53 -59 97 0 95 -68 205 0 -19 -121 150 0 -137 -120 -250 0 138 20 178 0 199 -183 142 0 -197 111 161 0 -92 144 -11 0 7 -16 61 0 -201 -249 50 0 -13 219 159 0 -147 -1 -126 0 245 -15 -107 0 -147 243 -176 0 96 -230 85 0 -224 219 136 0 72 -102 12 0 239 204 230 0 30 11 106 0 -135 -20 -118 0 168 -151 -211 0 133 -193 100 0 250 -234 -101 0 -45 -84 -34 0 -124 81 179 0 -238 -22 12 0 25 -66 244 0 -141 -87 199 0 -46 -172 124 0 155 -201 104 0 -213 -94 67 0 10 71 -154 0 30 -6 40 0 236 -13 -2 0 101 61 69 0 72 98 151 0 187 196 -158 0 203 -106 56 0 80 -157 -218 0 -26 -192 -24 0 -155 131 -195 0 -56 -14 -4 0 186 249 -133 0 139 243 183 0 -152 215 -80 0 -121 177 -166 0 167 42 -147 0 -105 -51 -245 0 194 205 -170 0 -174 -43 -197 0 11 18 -163 0 16 -219 -32 0 2 -211 97 0 206 -149 -244 0 -86 21 134 0 130 -13 -227 0 -128 134 -12 0 117 -220 240 0 119 142 -40 0 45 159 147 0 -15 -98 -79 0 -49 96 138 0 56 -80 128 0 -62 -74 -175 0 -39 41 126 0 52 173 95 0 -8 134 -184 0 10 62 -25 0 180 144 228 0 -189 -170 -163 0 -151 135 131 0 -51 69 -202 0 -2 31 -129 0 190 149 179 0 -4 -152 247 0 42 -58 103 0 75 -54 -175 0 -107 163 70 0 -214 112 -228 0 -208 21 241 0 48 -207 7 0 52 169 -38 0 225 232 -215 0 -84 241 55 0 -218 -111 200 0 -86 117 87 0 -34 -101 -11 0 -11 -141 97 0 41 126 75 0 -85 240 178 0 -83 137 4 0 50 -157 -41 0 -114 -229 -99 0 -84 169 225 0 136 12 51 0 23 -43 -107 0 124 -105 152 0 191 7 -16 0 -61 41 95 0 181 -196 79 0 204 -37 -83 0 -42 -17 -125 0 95 236 -229 0 15 -194 -250 0 89 151 195 0 189 -68 -162 0 -76 182 240 0 -222 104 -114 0 -199 -84 -207 0 -137 -122 55 0 213 120 -224 0 -162 234 -217 0 -163 -230 147 0 145 63 -170 0 247 62 185 0 -170 -211 -63 0 -66 106 -107 0 -220 111 -145 0 217 -240 -65 0 -114 205 -101 0 146 20 -242 0 -170 -110 -29 0 83 -86 -160 0 -62 -115 -198 0 -174 -125 187 0 -112 129 35 0 79 -61 197 0 178 18 157 0 -182 -97 -31 0 86 192 -155 0 -22 -240 1 0 -249 -8 -221 0 141 133 13 0 -146 -47 -183 0 -7 -162 -96 0 -160 105 -139 0 -16 -60 -74 0 -227 191 -103 0 5 -83 139 0 64 16 -113 0 -41 -43 90 0 -227 158 -64 0 -180 -100 -170 0 -156 -192 -174 0 -56 -245 -180 0 -110 -140 -63 0 -25 -38 77 0 -58 -101 185 0 184 178 -83 0 203 -157 -163 0 -204 -187 97 0 71 180 -69 0 244 -135 -89 0 35 -42 -227 0 -221 -187 55 0 43 125 68 0 75 136 -147 0 -182 174 -165 0 -136 168 -105 0 37 -195 120 0 -49 -229 -132 0 75 -198 180 0 68 -214 -211 0 -219 -29 -189 0 -113 -133 175 0 -112 12 69 0 -19 -180 -182 0 -1 -209 234 0 -102 148 -15 0 52 -156 -85 0 144 140 -73 0 -193 -38 -6 0 -67 182 60 0 -65 98 103 0 -226 -117 121 0 75 -27 148 0 77 -68 123 0 51 -127 157 0 98 230 195 0 28 139 -82 0 121 -7 23 0 -156 -34 65 0 -67 240 -163 0 184 199 -75 0 -74 -37 -108 0 50 -62 -243 0 -114 -35 -230 0 -245 123 22 0 152 248 -222 0 -56 -202 -130 0 -100 172 -15 0 -227 249 49 0 -136 -122 32 0 -143 194 18 0 -182 226 200 0 -210 237 122 0 -83 -180 -70 0 -91 19 -97 0 193 43 -85 0 -121 -214 -69 0 -235 132 105 0 157 -105 234 0 190 119 72 0 -201 42 -30 0 86 150 97 0 -242 49 -70 0 65 -176 212 0 40 -146 138 0 -12 -35 123 0 -22 175 71 0 -224 141 14 0 142 -172 9 0 24 51 168 0 -220 -26 -175 0 -114 54 245 0 204 242 -196 0 77 -204 248 0 102 117 -111 0 -175 208 -243 0 -107 37 -27 0 31 -29 193 0 -88 -131 106 0 135 -126 -11 0 239 179 45 0 -75 -112 -87 0 -14 -167 78 0 -95 -240 -175 0 -183 -118 -25 0 223 81 -89 0 -215 -98 -35 0 14 95 89 0 -82 145 -220 0 166 214 -32 0 15 173 11 0 -90 112 -75 0 -238 -241 22 0 -157 156 -109 0 221 -57 62 0 -105 194 89 0 119 -40 13 0 32 -179 213 0 -126 -4 -119 0 -16 183 10 0 68 -198 177 0 -164 53 -55 0 230 -77 45 0 77 19 -172 0 -189 -225 -226 0 -193 -95 229 0 -80 -199 96 0 -60 -193 123 0 202 172 -144 0 246 -2 103 0 -237 241 98 0 -12 -186 -214 0 -237 -160 -180 0 -163 -224 -72 0 -89 153 10 0 98 164 235 0 -235 72 190 0 -81 -233 -67 0 -136 -232 -98 0 -116 -29 72 0 -134 -126 -109 0 -226 -92 -238 0 -234 249 46 0 -24 214 44 0 -61 -245 -19 0 -180 29 -55 0 140 13 -71 0 245 184 -13 0 191 -130 -204 0 101 49 72 0 153 139 191 0 25 -80 112 0 -188 125 194 0 -19 -74 235 0 -2 -56 50 0 243 90 69 0 215 -29 145 0 -41 -146 -154 0 63 -214 207 0 168 -112 244 0 99 -152 -233 0 33 -143 -211 0 83 19 -155 0 183 -30 -200 0 -163 -89 -148 0 195 141 97 0 73 -138 -166 0 -91 121 -17 0 24 248 -1 0 117 234 -1 0 -139 149 56 0 187 -92 -120 0 -17 217 -13 0 222 -164 -56 0 -80 217 200 0 37 -14 173 0 -249 31 -138 0 -65 -95 -68 0 -85 38 -140 0 100 209 243 0 -148 -248 -33 0 -92 -220 115 0 -161 118 -74 0 182 -170 -118 0 105 -41 -227 0 -36 -137 -59 0 47 231 -75 0 -109 -238 -94 0 153 -110 -12 0 59 -161 -121 0 -188 47 -75 0 35 188 -216 0 -151 4 -85 0 186 -177 85 0 23 145 -83 0 -43 209 -229 0 -154 -71 -40 0 -118 -138 -19 0 -184 208 83 0 79 -156 -42 0 -98 -130 -80 0 154 136 -33 0 212 19 -129 0 80 182 17 0 -64 79 -244 0 -176 53 -165 0 -69 10 -235 0 -54 -38 177 0 83 125 128 0 183 -79 -110 0 -111 77 -104 0 205 65 125 0 230 66 -26 0 -72 156 -144 0 -19 -98 72 0 45 -249 -136 0 237 -145 240 0 65 18 215 0 -189 206 -91 0 164 225 -28 0 114 -9 121 0 224 205 81 0 -47 -98 -113 0 5 -192 70 0 -47 101 -58 0 -210 -112 -191 0 15 233 -134 0 -101 45 -161 0 163 56 -48 0 147 43 94 0 -189 -51 -95 0 -21 -208 87 0 -2 -210 246 0 206 -51 -32 0 -92 -105 -212 0 115 10 44 0 -18 130 4 0 233 11 -175 0 -180 -43 26 0 -113 -174 9 0 -168 201 -140 0 112 47 230 0 -58 134 -138 0 -57 -165 -197 0 -184 -139 201 0 -158 1 191 0 192 96 103 0 -142 -245 150 0 -153 213 -159 0 -74 -102 -177 0 -116 -206 37 0 -150 53 177 0 42 -145 -236 0 -98 -209 -40 0 90 113 105 0 -123 -208 -114 0 116 221 201 0 -85 49 -20 0 -49 146 115 0 39 -196 -151 0 199 205 75 0 -35 -14 -57 0 171 -156 27 0 133 -70 -217 0 72 24 -223 0 101 57 211 0 2 60 -103 0 174 248 -66 0 -156 128 137 0 -150 191 -210 0 181 -137 -210 0 -60 -188 230 0 -80 -12 210 0 19 -113 -250 0 124 -186 217 0 -16 -150 89 0 22 -66 200 0 -224 -77 -79 0 229 218 -121 0 102 45 -223 0 -153 216 -181 0 -106 215 76 0 -193 171 249 0 32 35 -134 0 173 242 -228 0 149 -51 61 0 230 115 101 0 46 232 -215 0 130 221 198 0 220 16 -47 0 -246 -36 168 0 191 -195 -219 0 234 -161 195 0 -186 231 -217 0 202 144 -221 0 -199 91 -35 0 -223 -87 -156 0 165 103 162 0 105 -213 -114 0 -72 183 -231 0 -108 204 25 0 155 194 -177 0 60 170 181 0 180 -120 28 0 -166 236 -18 0 120 -37 118 0 48 221 100 0 -116 236 93 0 -106 -195 167 0 176 110 -183 0 23 -219 189 0 -237 -57 15 0 11 162 128 0 -159 -155 153 0 -49 -155 247 0 106 -231 144 0 -68 -163 -157 0 108 133 -224 0 -18 -164 212 0 76 -102 -223 0 190 -60 -138 0 66 -29 127 0 -201 100 164 0 8 56 -133 0 -160 -246 -199 0 201 -136 -42 0 42 246 -69 0 189 -92 -115 0 -112 -218 -82 0 -213 82 250 0 -44 -68 233 0 231 79 -49 0 240 -248 -147 0 43 229 68 0 10 82 36 0 151 71 200 0 212 180 -103 0 57 -135 18 0 -21 -124 -171 0 140 233 2 0 36 -117 -35 0 48 244 20 0 29 -180 126 0 -103 193 -45 0 -125 224 180 0 -161 67 -55 0 51 -75 -192 0 -9 180 -66 0 161 -150 196 0 -58 188 -1 0 -147 90 -33 0 112 -170 3 0 95 -11 -193 0 -84 71 170 0 165 205 90 0 -249 94 156 0 119 36 -122 0 82 -182 -248 0 -51 200 -102 0 -193 87 37 0 29 74 81 0 -236 -69 -181 0 173 246 -219 0 -37 149 -232 0 205 98 182 0 -150 177 -9 0 9 146 -210 0 202 -214 -57 0 -158 -242 -211 0 122 -90 207 0 -67 -176 -27 0 173 -192 77 0 191 57 -230 0 197 -29 -178 0 -13 230 -99 0 242 46 -23 0 129 21 -11 0 -232 -19 228 0 -197 -133 102 0 169 12 239 0 -3 -85 77 0 -78 -1 102 0 -109 69 150 0 -18 68 37 0 -195 131 -199 0 -212 153 -113 0 -245 -32 -117 0 170 49 4 0 -159 46 -20 0 195 -19 -168 0 -152 -190 156 0 -146 145 223 0 241 -43 187 0 19 -204 178 0 202 -164 -237 0 86 108 47 0 9 243 -52 0 241 223 77 0 -148 82 217 0 13 171 -131 0 -69 111 -89 0 -44 130 -210 0 31 38 -54 0 -162 166 -18 0 223 -214 -232 0 93 -84 68 0 18 116 75 0 -75 85 94 0 -126 -17 209 0 28 -56 -21 0 93 5 219 0 63 -108 2 0 -103 81 85 0 -87 -122 -212 0 230 -217 -127 0 94 -48 108 0 -190 -19 -1 0 -96 22 -120 0 -239 -36 -163 0 -219 133 116 0 174 13 138 0 -26 5 148 0 9 -137 -236 0 38 -231 143 0 -46 -123 -60 0 -66 -77 -46 0 60 -2 -202 0 36 -200 180 0 193 -136 -231 0 249 -118 -191 0 -73 145 17 0 72 92 15 0 212 -166 -22 0 11 -237 65 0 111 -187 211 0 79 -190 -234 0 3 53 -224 0 48 -56 -125 0 152 -125 -71 0 6 -74 -184 0 236 -11 160 0 39 -81 -175 0 -81 74 -153 0 239 135 -226 0 105 73 243 0 171 -177 -161 0 -118 164 58 0 240 15 153 0 51 223 204 0 -84 217 96 0 -238 -231 64 0 -155 -45 41 0 79 -77 128 0 -218 -172 -6 0 96 8 -102 0 224 175 124 0 49 115 217 0 -144 -186 -231 0 112 -35 -58 0 -181 120 -105 0 -105 -177 -17 0 -245 -139 -113 0 -35 -243 1 0 -144 -185 7 0 74 -62 191 0 -70 130 -60 0 -44 51 -119 0 -165 174 -125 0 -202 175 3 0 -110 -41 -217 0 -172 31 -143 0 -58 51 71 0 -187 24 -62 0 222 65 2 0 211 -5 113 0 213 -138 214 0 -123 -164 184 0 138 176 -239 0 104 -122 150 0 81 -156 -247 0 -55 -47 -232 0 -88 135 -226 0 118 122 167 0 192 -30 -151 0 5 219 -34 0 -172 -85 45 0 -174 122 96 0 -126 179 -232 0 128 24 223 0 230 8 -3 0 -26 9 106 0 -181 -151 -25 0 41 61 26 0 246 90 -210 0 -122 -215 224 0 242 177 -12 0 -212 -101 132 0 -121 64 182 0 17 103 -99 0 -13 -82 -111 0 -58 -175 12 0 239 -61 -219 0 -121 198 40 0 -170 197 -124 0 -69 -131 -149 0 159 -193 -131 0 35 -28 -179 0 -120 -190 -239 0 166 -189 103 0 -250 -21 100 0 151 -110 -209 0 48 -168 -81 0 -168 -143 239 0 -9 216 -184 0 -96 230 40 0 -108 -77 -62 0 80 6 -113 0 -73 -1 -242 0 193 -220 -33 0 -74 78 129 0 142 -112 -167 0 11 -197 -89 0 7 231 150 0 130 145 -201 0 -128 47 116 0 -90 141 78 0 204 -22 -245 0 -105 -156 -28 0 218 -105 40 0 213 82 -220 0 209 -87 -198 0 -146 -186 147 0 -241 -181 43 0 -106 41 49 0 -214 92 -213 0 109 -218 60 0 30 102 21 0 161 133 178 0 -197 225 -38 0 226 -87 -122 0 -76 106 -208 0 -147 -124 -44 0 132 -115 67 0 191 151 28 0 236 142 -77 0 -164 187 -78 0 -185 -76 48 0 -145 -84 160 0 71 -160 -151 0 -39 -183 22 0 37 -159 209 0 46 81 -150 0 -89 -119 -165 0 -158 -29 -26 0 113 234 10 0 243 93 -3 0 61 -149 -207 0 -231 67 82 0 -172 -84 229 0 -2 182 213 0 -25 113 63 0 -182 189 171 0 -202 -4 -148 0 -209 166 -109 0 -113 -87 -210 0 38 -35 -232 0 -155 -191 192 0 -113 148 -232 0 -26 -106 -206 0 -149 211 94 0 223 -206 94 0 93 -23 40 0 22 191 157 0 5 198 -13 0 211 151 249 0 13 175 -229 0 126 -14 -227 0 250 -244 -239 0 64 127 176 0 140 -182 244 0 -183 -189 158 0 22 118 89 0 109 56 110 0 53 -48 206 0 64 131 -137 0 205 -219 -102 0 -6 -154 -116 0 -24 -249 77 0 -175 122 -26 0 -63 -183 -192 0 -178 -173 -165 0 6 -181 56 0 149 -218 -11 0 -160 -211 -115 0 -54 -242 -94 0 -103 12 56 0 -4 -144 -236 0 -195 1 -54 0 -157 192 50 0 237 -86 154 0 42 -110 33 0 -132 233 245 0 7 147 -250 0 195 64 238 0 -225 -2 129 0 -91 -154 -138 0 -51 -61 -43 0 -85 -136 -209 0 -24 -219 -45 0 37 -219 72 0 186 -106 -51 0 -151 -149 10 0 241 71 94 0 -146 155 236 0 41 -38 121 0 -250 119 -19 0 6 -91 -103 0 235 -21 184 0 -60 -9 -99 0 138 16 -141 0 230 19 98 0 -228 133 -24 0 190 118 186 0 -246 28 61 0 200 213 99 0 -132 15 -131 0 -105 233 -202 0 183 165 114 0 50 238 181 0 -117 -130 139 0 125 -110 24 0 -229 -114 -174 0 138 -93 -64 0 -176 153 58 0 -221 -244 62 0 -8 -83 -197 0 -158 36 -4 0 -96 -149 -81 0 119 142 -191 0 87 -6 -139 0 -118 102 3 0 -151 -58 -236 0 -135 -142 -75 0 -205 224 65 0 -59 63 -171 0 -219 -98 -14 0 -94 108 -66 0 -237 -94 113 0 184 183 -99 0 218 164 -181 0 -209 -11 -160 0 -68 -138 -235 0 -221 -41 180 0 63 73 -240 0 -185 -180 81 0 104 -181 161 0 120 -104 80 0 96 -184 168 0 245 210 208 0 240 -85 -114 0 -35 47 -180 0 -199 131 22 0 15 -227 170 0 99 -89 116 0 234 162 -15 0 48 145 192 0 56 -187 17 0 226 172 -75 0 -28 229 31 0 103 62 183 0 226 -79 -120 0 -73 110 65 0 223 -76 192 0 -126 -115 -234 0 122 -82 -226 0 -64 14 -204 0 191 -218 -208 0 172 -95 -14 0 146 -95 -187 0 -172 4 -240 0 66 63 -100 0 58 239 -117 0 -88 -175 -244 0 -195 -118 220 0 6 -91 -106 0 -49 158 -140 0 44 -39 231 0 50 -205 -221 0 -86 241 -126 0 55 73 241 0 -154 -144 -43 0 97 -56 149 0 -204 -75 55 0 17 -153 247 0 250 135 77 0 -205 -178 -43 0 -88 73 -8 0 -77 159 170 0 36 -153 -59 0 222 249 82 0 146 177 123 0 174 -49 -229 0 -37 -223 6 0 -146 24 -229 0 -216 -81 212 0 -8 -175 234 0 -153 6 221 0 243 88 -4 0 -241 165 36 0 -148 111 135 0 -129 -38 40 0 158 19 -149 0 48 163 -20 0 166 11 -126 0 -22 -244 214 0 163 -139 162 0 112 240 15 0 -199 -83 33 0 -132 -34 -9 0 221 246 121 0 -226 41 195 0 -88 140 14 0 237 -72 -228 0 -124 -44 153 0 -239 210 -246 0 29 -241 250 0 207 -152 132 0 3 -155 249 0 -170 189 -125 0 149 113 155 0 -207 249 36 0 124 -215 60 0 -131 -105 140 0 237 93 38 0 -244 96 21 0 -27 172 58 0 90 -63 -50 0 93 69 77 0 -96 74 -145 0 172 -99 73 0 170 -9 -97 0 -141 179 -34 0 62 -226 215 0 -230 72 -175 0 25 158 9 0 73 37 -245 0 -105 141 -82 0 88 -201 221 0 -27 58 -30 0 -194 235 -136 0 119 -133 129 0 -248 -190 164 0 65 197 -72 0 -203 -123 140 0 -142 -108 -86 0 228 240 -80 0 -154 -125 136 0 -88 -168 -34 0 -151 -62 122 0 -241 226 -142 0 161 229 -203 0 -182 -84 -29 0 26 -238 218 0 195 246 -225 0 -20 246 -203 0 -139 102 222 0 -194 -68 17 0 221 166 -26 0 238 -113 -150 0 98 139 -140 0 128 -117 -222 0 46 -83 171 0 -102 -116 -60 0 67 -124 234 0 -190 133 25 0 -98 -1 -104 0 -159 234 -106 0 -98 -142 80 0 32 83 10 0 4 89 109 0 53 101 -14 0 -66 -25 -141 0 -196 10 66 0 -250 -180 156 0 141 183 -98 0 72 -109 -20 0 166 138 -92 0 106 99 211 0 231 31 73 0 -175 -33 -143 0 82 -36 73 0 152 39 95 0 -135 139 -5 0 117 -241 3 0 145 -244 123 0 200 -147 -219 0 -51 247 79 0 -190 -175 183 0 203 -54 125 0 1 -203 -172 0 12 50 99 0 -248 81 217 0 -92 -250 54 0 -70 202 61 0 -210 179 20 0 119 -20 -59 0 238 -5 182 0 63 -241 141 0 51 -94 -105 0 36 -145 -143 0 217 -52 69 0 218 -99 105 0 36 -75 48 0 -99 41 189 0 111 -53 -51 0 161 -118 137 0 -132 -119 155 0 -98 244 134 0 235 171 -139 0 78 100 -45 0 200 -123 -43 0 -240 -48 -165 0 -249 -56 90 0 """ output = "UNSAT"
''' Write a Python program to make a chain of function decorators (bold, italic, underline etc.). ''' def make_bold(fn): def wrapped(): return "<b>" + fn() + "</b>" return wrapped def make_italic(fn): def wrapped(): return "<i>" + fn() + "</i>" return wrapped def make_underline(fn): def wrapped(): return "<u>" + fn() + "</u>" return wrapped @make_bold @make_italic @make_underline def hello(): return "hello world" fp = open("xyz.html", 'w') mod_string = hello() ## returns "<b><i><u>hello world</u></i></b>" fp.write("<html>") fp.write("<br>") fp.write(mod_string) fp.write("</html>")
# # @lc app=leetcode.cn id=1288 lang=python3 # # [1288] 删除被覆盖区间 # # https://leetcode-cn.com/problems/remove-covered-intervals/description/ # # algorithms # Medium (55.24%) # Likes: 21 # Dislikes: 0 # Total Accepted: 4.7K # Total Submissions: 8.6K # Testcase Example: '[[1,4],[3,6],[2,8]]' # # 给你一个区间列表,请你删除列表中被其他区间所覆盖的区间。 # # 只有当 c <= a 且 b <= d 时,我们才认为区间 [a,b) 被区间 [c,d) 覆盖。 # # 在完成所有删除操作后,请你返回列表中剩余区间的数目。 # # # # 示例: # # # 输入:intervals = [[1,4],[3,6],[2,8]] # 输出:2 # 解释:区间 [3,6] 被区间 [2,8] 覆盖,所以它被删除了。 # # # # # 提示:​​​​​​ # # # 1 <= intervals.length <= 1000 # 0 <= intervals[i][0] < intervals[i][1] <= 10^5 # 对于所有的 i != j:intervals[i] != intervals[j] # # # # @lc code=start class Solution: def removeCoveredIntervals(self, intervals: List[List[int]]) -> int: res = 0 intervals.sort(key=lambda x:(x[0],-x[1])) l,r = intervals[0][0],intervals[0][1] for i in range(1,len(intervals)): interval = intervals[i] if interval[0] >= l and interval[1] <= r: res += 1 if r >= interval[0] and r <= interval[1]: r = interval[1] if r < interval[0]: l,r = interval[0],interval[1] return len(intervals) - res # @lc code=end
"""Run module.""" class Run: """Class describing a TRNSYS simulation. - convention: left (00:00 is [00:00;01:00[ for an hourly series) - clock: tzt """ def __init__(self): """Initialize object.""" pass
# Program to calcualte LCM of two numbers # function to calculate LCM def lcm(x,y): if x > y: greater = x else: greater = y while True: if (greater % x) == 0 and (greater % y) == 0: lcm = greater break greater+=1 return lcm a = int(input("Enter first number:")) b = int(input("Enter second number:")) print("The LCM of",a,"&",b,"is:",lcm(a,b))
def processRecord(RecordClass, row): record = RecordClass('mphillips') record.mapping('basic', 'title', row['title'], qualifier='officialtitle') record.mapping('agent', 'creator', row['author'], qualifier='aut', agent_type='per', info='born somewhere') record.mapping('basic', 'date', row['date'], qualifier='creation', required=False) record.setBaseDirectory('records') record.setFolderName(row['isbn']) return record
#!/usr/bin/env python # coding: utf-8 # In[1]: # assignment No 1 {day 3} # In[2]: # you all are pilots, & we have to land a plane, the altitiude required to land a plane is 1000ft. if its less than that ask the pilot to land #if its more than 1000ft but less than 5000ft ask the pilot to reduce the altitude to 1000ft. #if its more than 5000ft then ask the pilot to try again later # In[4]: # taking the variable for altitude at=int(input("inter the altitude")) #ptint("at is "at) # In[5]: if (at<=1000): print("its safe to land the plane") elif (at>1000 and at<5000): print("reduce the altitude to 1000ft") else: print ("try later") # In[ ]:
# -*- coding: utf-8 -*- """ Created on Tue Jul 27 13:17:41 2021 You are given a string and your task is to swap cases. In other words, convert all lowercase letters to uppercase letters and vice versa. For Example: Www.HackerRank.com → wWW.hACKERrANK.COM Pythonist 2 → pYTHONIST 2 @author: Ashish """ def swap_case(s): # change data type mystring = str(s) # check if string is empty return error mystring = mystring.strip() newstring = mystring.swapcase() return newstring if __name__ == '__main__': mystring = input("\n Enter a string: ") change_case = swap_case(mystring) print(change_case)
#========================================================================= # test_timing.py #========================================================================= # Additional timing assertions for special paths (e.g., feedthroughs) # #------------------------------------------------------------------------- # tests #------------------------------------------------------------------------- def test_clk_pass_through_arrival(): rpt = 'reports/time-clock-passthrough.rpt' #assert arrival( rpt ) >= 0.030 # clock must pass through >= 0.030 ns #assert arrival( rpt ) <= 0.052 # clock must pass through <= 0.052 ns #------------------------------------------------------------------------- # slack #------------------------------------------------------------------------- # Reads a timing report (dc or innovus) and returns the slack (for the # first path) as a float. # def slack( rpt ): # Read the timing report with open( rpt ) as f: lines = [ l for l in f.readlines() if 'slack' in l.lower() ] # Extract the slack # # Get the first line with a slack number, which looks like this for DC: # # slack (MET) 0.0195 # # It looks like this for Innovus: # # = Slack Time 0.020 # output = float( lines[0].split()[-1] ) return output #------------------------------------------------------------------------- # arrival #------------------------------------------------------------------------- # Reads a timing report and returns the arrival time (for the first path) # as a float. # def arrival( rpt ): # Read the timing report with open( rpt ) as f: lines = [ l for l in f.readlines() if 'arrival time' in l.lower() ] # To allow us to use this function to extract the arrival times in both # DC/Innovus timing reports, we filter out certain kinds of lines from # the Innovus timing report, which would normally look like this: # # Other End Arrival Time 0.000 # = Beginpoint Arrival Time 10.009 # lines = [ l for l in lines if 'Other End' not in l ] lines = [ l for l in lines if 'Beginpoint' not in l ] # Extract the arrival time # # Get the first line with an arrival time, which looks like this for # DC: # # data arrival time 0.0305 # # > Note that there is usually another "negative" version of this # number just below, where the report shows its math: # # data required time 0.0500 # data arrival time -0.0305 # # > We want the first number, not this one. # # It looks like this for Innovus: # # - Arrival Time 0.031 # output = float( lines[0].split()[-1] ) return output
NAME_PREFIX_SEPARATOR = "_" ENDPOINTS_SEPARATOR = ", " CSI_CONTROLLER_SERVER_WORKERS = 10 # array types ARRAY_TYPE_XIV = 'A9000' ARRAY_TYPE_SVC = 'SVC' ARRAY_TYPE_DS8K = 'DS8K'
# optimizer optimizer = dict(type="SGD", lr=0.04, momentum=0.9, weight_decay=0.0001) optimizer_config = dict(grad_clip=None) # learning policy lr_config = dict(policy="step", warmup="linear", warmup_iters=100, warmup_ratio=0.001, step=[7, 11]) total_epochs = 12
class SplitEnd: """Event used when the separation of a request into several files is completed""" NAME = "SPLIT_END" def __init__(self, directory): self.directory = directory def serialize(self): return { "name": self.NAME, "data": { "directory": self.directory } } @staticmethod def deserialize(serializedHook): data = serializedHook["data"] directory = data["directory"] if "directory" in data else None return SplitEnd(directory)
#Escreva um programa para aprovar empréstimo bancário para compra deuma casa. #O programa vai perguntar o valor da casa,o salario do comprador e em quantos anos ele vai pagar #Calcule o valor da prestação mensal, sabendo que ela nâo pode exceder 30%do salario ou #entao o emprestimo sera negado. #======== COMO EU FIZ=============================== '''vlcasa = float(input('Qual valor do imóvel? ')) salario = float(input('Qual renda salarial? ')) anos = int(input('\033[0;33;41mEm quantos meses pretende pagar?\033[m')) prestacao = vlcasa (anos * 12) prestmax = salario*1.30 prest = vlcasa/anos if prest <= prestmax: print('Emprestimo liberado .O valor da prestação é R$ {} reais durante {} anos'.format(prest, anos)) elif prest > prestmax: print('Emprestimo Negado. O Valor excede a margem consignada.') else: print ('Tente novamente')''' #======== GUANABARA =============================== print('-=' * 30) print('\33[0;30;41m ANALISADOR DE EMPRÉSTIMOS \33[m') print('-=' *30) casa = float(input('Valor da Casa: R$ ')) salario = float(input('Salario do Comprador: R$')) anos = int(input('Quantos anos de Financiamento? ')) prestacao = casa / (anos*12) minimo = salario * 30 / 100 print('Para pagar uma casa de R${:.2f} reais em {} anos, '.format(casa, anos), end='') # end faz com que o paragrafo fique na mesma linha. print('a prestação será de {:.2f}'.format(prestacao)) print(' COMPARANDO tem que pagar {} e o minimo é de {}'.format(prestacao,minimo)) if prestacao <= minimo: print('\33[0;30;41mEmpréstimo pode ser CONCEDIDO\33[m') else: print('\33[0;30;41mEmpréstimo NÃO pode ser CONCEDIDO\33[m')
def pattern(n): s = '' for i in range(n): s += str(n) for ni in range(n-1,i,-1): s += str(ni) if n-1 == i: pass else: s += '\n' return s
class AlignmentState(basestring): """ aligned|misaligned|partial-writes|indeterminate Possible values: <ul> <li> "aligned" - All or most of the IO to the LUN is aligned to the underlying file, <li> "misaligned" - A significant amount of IO to the LUN is not aligned to the underlying file, <li> "partial_writes" - A significant amount of IO to the LUN is partial, <li> "indeterminate" - There is not enough IO to determine the LUN's alignment state </ul> """ @staticmethod def get_api_name(): return "alignment-state"
print("/"*20) # lol stlist = ["qwev", "kleb", "lew", "fvb", "eivf", "igsi", "ycgbayg"] for s in stlist: if s.startswith("A"): print("Found!") break else: print("Not found") print("/"*20) answer = 42 guess = 0 while answer != guess: guess = int(input("Guess the number: ")) else: pass # print("no") print("Ok")
# coding: utf-8 class Task: pass
class ProtoConverter: @classmethod def proto_to_dict(cls, proto_message): proto_dict = {} desc = proto_message.DESCRIPTOR for field in desc.fields: field_name = field.name proto_dict[field_name] = getattr(proto_message, field_name) return proto_dict
report = [] with open('input') as file: report = list(map(lambda x: x.strip(), file)) gamma = '' epsilon = '' for bits in zip(*report[::1]): zero = 0 one = 0 for bit in bits: if bit == '1': one += 1 else: zero += 1 if one > zero: gamma += '1' epsilon += '0' elif zero > one: gamma += '0' epsilon += '1' print('part 1') print(int(gamma, 2) * int(epsilon, 2)) def get_rating(initial, weight): p = initial for i in range(len(p[0])): one = [] zero = [] for row in p: if row[i] == '1': one.append(row) else: zero.append(row) if len(one) > len(zero): if weight == '1': p = one else: p = zero elif len(zero) > len(one): if weight == '1': p = zero else: p = one else: if weight == '1': p = one else: p = zero if len(p) == 1: return p[0] o2 = get_rating(report, '1') co2 = get_rating(report, '0') print('part 2') print(int(o2, 2) * int(co2, 2))
""" Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head = [4,5,1,9], which looks like following: 4 -> 5 -> 1 -> 9 Example 1: Input: head = [4,5,1,9], node = 5 Output: [4,1,9] Explanation: You are given the second node with value 5, the linked list should become 4 -> 1 -> 9 after calling your function. Example 2: Input: head = [4,5,1,9], node = 1 Output: [4,5,9] Explanation: You are given the third node with value 1, the linked list should become 4 -> 5 -> 9 after calling your function. Note: The linked list will have at least two elements. All of the nodes' values will be unique. The given node will not be the tail and it will always be a valid node of the linked list. Do not return anything from your function. """ # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: @staticmethod def deleteNode(node): """ :type node: ListNode :rtype: void Do not return anything, modify node in-place instead. """ while node.next: node.val = node.next.val if not node.next.next: node.next = None else: node = node.next if __name__ == '__main__': linked_list = ListNode(4) linked_list.next = ListNode(5) to_delete = linked_list.next linked_list.next.next = ListNode(1) linked_list.next.next.next = ListNode(9) Solution.deleteNode(to_delete)
# make a player object health = 100 max_health = 100 level = 1 experience = 0 gold = 0 attack = 10 defense = 8 heal = 5
"""Mapping of recipe options to celery configuration directives. """ STRING_OPTIONS = { 'broker-url' : 'BROKER_URL', 'broker-password': 'BROKER_PASSWORD', 'broker-transport': 'BROKER_TRANSPORT', 'broker-user': 'BROKER_USER', 'broker-vhost': 'BROKER_VHOST', 'celeryd-log-file': 'CELERYD_LOG_FILE', 'celeryd-log-level': 'CELERYD_LOG_LEVEL', 'result-backend': 'CELERY_RESULT_BACKEND', 'result-dburi': 'CELERY_RESULT_DBURI', 'broker-host': 'BROKER_HOST', } NUMERIC_OPTIONS = { 'broker-port': 'BROKER_PORT', 'celeryd-concurrency': 'CELERYD_CONCURRENCY', } SEQUENCE_OPTIONS = { 'imports': 'CELERY_IMPORTS', }
f_1 = open("C:/repos/voc2coco/sample/valid.txt", "r") #f_2 = open("sample_ouput.txt", "r") f_3 = open("C:/repos/voc2coco/sample/annpaths_list.txt", "w") for l_1 in f_1: result = "./sample/Annotations/" + l_1.replace("\n", "") + ".xml\n" f_3.writelines(result) f_1.close() #f_2.close() f_3.close()
MAGIC = 'NICKNAME' # used for 3 way handshake ENCODING = 'utf-8' """ Localhost and port to be used for testing the server """ HOST_NAME = '127.0.0.1' PORT_NUM = 55555
""" General IaC constants """ PARAMETER_OVERRIDES = "parameter_overrides" GLOBAL_PARAMETER_OVERRIDES = "global_parameter_overrides"
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ConsumedThing and related entities. .. autosummary:: :toctree: _consumed wotpy.wot.consumed.interaction_map wotpy.wot.consumed.thing """
''' 9. Write a Python program to display the examination schedule. (extract the date from exam_st_date). exam_st_date = (11, 12, 2014) Sample Output : The examination will start from : 11 / 12 / 2014 Tools:slicing,indexing ''' #9 exam_st_date = (11, 12, 2014) x = exam_st_date[0] y = exam_st_date[1] z = exam_st_date[2] a = (x,y,z,) print('The examination will start from : %s / %s / %s' %(a) )
""" Given two strings str1 and str2, find the length of the smallest string which has both, str1 and str2 as its sub-sequences. Example: Input: 2 abcd xycd efgh jghi Output: 6 6 SOLUTION: if str[i] == str[j], then dp[i][j] = dp[i-1][j-1] + 1 else, dp[i][j] = min(dp[i-1][j], dp[i][j-1]) + 1 Be careful when i-1 or j-1 is less than 0! ALTERNATE: Answer = len1 + len2 - (Length of LCS of two given strings) """ def shortest_common_supersequence(string1, string2): len1 = len(string1) len2 = len(string2) dp_array = [[0] * (len2) for row in range(len1)] for i in range(0, len(dp_array)): for j in range(0, len(dp_array[0])): if string1[i] == string2[j]: # CAREFUL: Note the `else max(i, j)`. # Also `j+1` and `i+1` in the next lines. dp_array[i][j] = ( dp_array[i - 1][j - 1] if (i >= 1 and j >= 1) else max(i, j) ) else: up = dp_array[i - 1][j] if i >= 1 else j + 1 left = dp_array[i][j - 1] if j >= 1 else i + 1 dp_array[i][j] = min(left, up) dp_array[i][j] += 1 return dp_array[len1 - 1][len2 - 1] def main(): str1 = "abcd" str2 = "xycd" ans = shortest_common_supersequence(str1, str2) print(ans) main()
#!/usr/bin/env python # encoding: utf-8 """ @author:nikan @file: Request.py @time: 28/02/2018 12:19 PM """
VERSION = 1 SERVICE_URL_BASE = "/api/v" + VERSION + "/" PG_HOST = "localhost" PG_USER = "postgres" PG_PASSWORD = "postgres" PG_DB = "postgres" PG_CONNECTION = "host=" + PG_HOST + " user=" + PG_USER + " password=" + PG_PASSWORD + " dbname=" + PG_DB
def findAllSubset(nums): if len(nums) == 0: return [] results = [] cur_num = nums[0] results.append({cur_num}) rest_set = nums[1:] tmp = findAllSubset(rest_set) for ele in tmp: results.append({cur_num} | ele) results = results + tmp return results def findAllSubset_bit(nums): length = len(nums) L = 1 << length # 2 ^ len result = [] for i in range(L): temp = [] for j in range(length): if (i & (1 << j)) != 0: temp.append(nums[j]) result.append(temp) return result a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] result = findAllSubset_bit(a) print(len(result)) print(result)
# FIXME 这个不是正确解, 不满足时间复杂度 class Solution: def findMedianSortedArrays(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: float """ pointer1 = 0 pointer2 = 0 merged_list = [] while pointer1 < len(nums1) or pointer2 < len(nums2): if pointer1 >= len(nums1): merged_list.append(nums2[pointer2]) pointer2 += 1 continue if pointer2 >= len(nums2): merged_list.append(nums1[pointer1]) pointer1 += 1 continue if nums1[pointer1] <= nums2[pointer2]: merged_list.append(nums1[pointer1]) pointer1 += 1 else: merged_list.append(nums2[pointer2]) pointer2 += 1 merged_list_length = len(merged_list) if merged_list_length % 2 == 1: return merged_list[int(merged_list_length / 2)] else: return (merged_list[int(merged_list_length / 2) - 1] + merged_list[int(merged_list_length / 2)]) / 2 solution = Solution() print(solution.findMedianSortedArrays([1, 3], [2])) print(solution.findMedianSortedArrays([1, 2], [3, 4]))
class Queue: def __init__(self) -> None: self.items = [] def push(self, item): self.items.append(item) def pop(self): if self.size() > 0: return self.items.pop(0) return None def peek(self): if self.size() > 0: return self.items[0] return None def size(self): return len(self.items) def print(self): print("Contents of Queue(Right is open) are: ") for i in self.items: print(i, end=' ') print() if __name__=='__main__': queue = Queue() queue.push(2) queue.push(5) queue.push(4) queue.print() print("Peeked element: " + str(queue.peek())) print("Popped element: " + str(queue.pop())) print("Popped element: " + str(queue.pop())) queue.print()
class Maths: """Math methods akin to fractions""" def mdc(self, x, y): """Greatest Common Divisor""" while y != 0: resto = x % y x = y y = resto return x def controlador(op,x,y): """controls the calculation based on operator""" if op=="+": return x+y elif op=="-": return x-y elif op=="/": return x/y elif op=="*": return x*y
t=int(input()) while(t): t-=1 b,s,m=map(int,input().split()) print(b+s-m)
class WXMPCode(object): SUCCESS = 0 ######################################################################### # Weixin Security Module Error Definition ######################################################################### # 校验签名失败 ERR_VALIDATE_SIGNATURE = -40001 # 解析xml失败 ERR_PARSE_XML = -40002 # 计算签名失败 ERR_CALCULATE_SIGNATURE = -40003 # 不合法的AESKey ERR_INVALID_AES_KEY = -40004 # 校验AppID失败 ERR_VERITY_APP_ID = -40005 # AES加密失败 ERR_ENCRYPT_AES = -40006 # AES解密失败 ERR_DECRYPT_AES = -40007 # 公众平台发送的xml不合法 ERR_INVALID_XML_MSG = -40008 # Base64编码失败 ERR_ENCODE_BASE64 = -40009 # Base64解码失败 ERR_DECODE_BASE64 = -40010 # 公众帐号生成回包xml失败 ERR_GENERATE_XML = -40011
# Example 1 - names.py: Output three names to the console. names = ['Issac Newton', 'Marie Curie', 'Albert Einstein'] for name in names: print(name)
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def isPalindrome(self, head: ListNode) -> bool: def reverseList(head: ListNode) -> ListNode: if head == None: return prev = head curr = head.next head.next = None while curr != None: nextNode = curr.next curr.next = prev prev = curr curr = nextNode return prev if head == None: return True l = 0 start = head # First we find length of list while start != None: l += 1 start = start.next # Now we try two pointer approach secondStart, secondHead = l//2, head count = 0 while count < secondStart: count += 1 secondHead = secondHead.next # if l is odd, we skip the center secondHead = secondHead.next if l % 2 != 0 else secondHead # Finally check for palindrome first, second = head, reverseList(secondHead) while second != None: if first.val == second.val: first = first.next second = second.next else: return False return True
# Copyright 2021 Edoardo Riggio # # 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. # Complexity: O(2^n) # This algorithm checks if s can be obtained by adding a subset # of the elements of A together in a set A with n elements there # are 2^n subsets. The worst case is where the number is never # found, which means that the entire set of subsets has to be # checked. The best case is the one in which the len(A) == 0 or # s == 0 in both cases the answer is found immediately. def sum_a(A, s): return sum_r(A, s, 0, len(A)-1) def sum_r(A, s, b, e): if b > e and s == 0: return True elif b <= e and sum_r(A, s, b + 1, e): return True elif b <= e and sum_r(A, s-A[b], b+1, e): return True else: return False arr = [1, 1, 1, 1, 1, 5, 4, 8, 6, 3, 10, 4, 8] print(sum_a(arr, 0))
"""External dependencies for Dossier.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") def dossier_repositories( omit_aopalliance_aopalliance = False, omit_args4j_args4j = False, omit_com_google_auto_auto_common = False, omit_com_google_auto_factory_auto_factory = False, omit_com_google_auto_service_auto_service = False, omit_com_google_auto_value_auto_value = False, omit_com_google_auto_value_auto_value_annotations = False, omit_com_google_googlejavaformat_google_java_format = False, omit_com_squareup_javapoet = False, omit_com_google_javascript_closure_compiler_unshaded = False, omit_com_google_javascript_closure_compiler_externs = False, omit_com_google_template_soy = False, omit_com_atlassian_commonmark_commonmark = False, omit_com_google_code_gson_gson = False, omit_com_google_errorprone_error_prone_annotations = False, omit_com_google_errorprone_javac_shaded = False, omit_com_google_guava_guava = False, omit_com_google_guava_failureaccess_jar = False, omit_com_google_inject_guice = False, omit_com_google_inject_extensions_guice_assistedinject = False, omit_com_google_inject_extensions_guice_multibindings = False, omit_com_ibm_icu_icu4j = False, omit_org_hamcrest_hamcrest_core = False, omit_javax_inject_javax_inject = False, omit_com_google_jimfs_jimfs = False, omit_org_jsoup_jsoup = False, omit_com_google_code_findbugs_jsr305 = False, omit_junit_junit = False, omit_org_mockito_mockito_all = False, omit_com_googlecode_owasp_java_html_sanitizer_owasp_java_html_sanitizer = False, omit_com_google_common_html_types_types = False, omit_com_google_truth_truth = False, omit_com_google_truth_extensions_truth_proto_extension = False, omit_com_google_truth_extensions_truth_liteproto_extension = False, omit_com_googlecode_java_diff_utils_diffutils = False): """Imports dependencies for Doessier rules""" if not omit_aopalliance_aopalliance: aopalliance_aopalliance() if not omit_args4j_args4j: args4j_args4j() if not omit_com_google_auto_auto_common: com_google_auto_auto_common() if not omit_com_google_auto_factory_auto_factory: com_google_auto_factory_auto_factory() if not omit_com_google_auto_service_auto_service: com_google_auto_service_auto_service() if not omit_com_google_auto_value_auto_value: com_google_auto_value_auto_value() if not omit_com_google_auto_value_auto_value_annotations: com_google_auto_value_auto_value_annotations() if not omit_com_google_googlejavaformat_google_java_format: com_google_googlejavaformat_google_java_format() if not omit_com_squareup_javapoet: com_squareup_javapoet() if not omit_com_google_javascript_closure_compiler_unshaded: com_google_javascript_closure_compiler_unshaded() if not omit_com_google_javascript_closure_compiler_externs: com_google_javascript_closure_compiler_externs() if not omit_com_google_template_soy: com_google_template_soy() if not omit_com_atlassian_commonmark_commonmark: com_atlassian_commonmark_commonmark() if not omit_com_google_code_gson_gson: com_google_code_gson_gson() if not omit_com_google_errorprone_error_prone_annotations: com_google_errorprone_error_prone_annotations() if not omit_com_google_errorprone_javac_shaded: com_google_errorprone_javac_shaded() if not omit_com_google_guava_guava: com_google_guava_guava() if not omit_com_google_guava_failureaccess_jar: com_google_guava_failureaccess_jar() if not omit_com_google_inject_guice: com_google_inject_guice() if not omit_com_google_inject_extensions_guice_assistedinject: com_google_inject_extensions_guice_assistedinject() if not omit_com_google_inject_extensions_guice_multibindings: com_google_inject_extensions_guice_multibindings() if not omit_com_ibm_icu_icu4j: com_ibm_icu_icu4j() if not omit_org_hamcrest_hamcrest_core: org_hamcrest_hamcrest_core() if not omit_javax_inject_javax_inject: javax_inject_javax_inject() if not omit_com_google_jimfs_jimfs: com_google_jimfs_jimfs() if not omit_org_jsoup_jsoup: org_jsoup_jsoup() if not omit_com_google_code_findbugs_jsr305: com_google_code_findbugs_jsr305() if not omit_junit_junit: junit_junit() if not omit_org_mockito_mockito_all: org_mockito_mockito_all() if not omit_com_googlecode_owasp_java_html_sanitizer_owasp_java_html_sanitizer: com_googlecode_owasp_java_html_sanitizer_owasp_java_html_sanitizer() if not omit_com_google_common_html_types_types: com_google_common_html_types_types() if not omit_com_google_truth_truth: com_google_truth_truth() if not omit_com_google_truth_extensions_truth_proto_extension: com_google_truth_extensions_truth_proto_extension() if not omit_com_google_truth_extensions_truth_liteproto_extension: com_google_truth_extensions_truth_liteproto_extension() if not omit_com_googlecode_java_diff_utils_diffutils: com_googlecode_java_diff_utils_diffutils() def aopalliance_aopalliance(): jvm_maven_import_external( name = "aopalliance_aopalliance", artifact = "aopalliance:aopalliance:1.0", artifact_sha256 = "0addec670fedcd3f113c5c8091d783280d23f75e3acb841b61a9cdb079376a08", server_urls = ["http://central.maven.org/maven2"], ) def args4j_args4j(): jvm_maven_import_external( name = "args4j_args4j", artifact = "args4j:args4j:2.0.26", artifact_sha256 = "989bda2321ea073a03686e9d4437ea4928c72c99f993f9ca6fab24615f0771a4", server_urls = ["http://central.maven.org/maven2"], ) def com_google_auto_auto_common(): jvm_maven_import_external( name = "com_google_auto_auto_common", artifact = "com.google.auto:auto-common:0.10", artifact_sha256 = "b876b5fddaceeba7d359667f6c4fb8c6f8658da1ab902ffb79ec9a415deede5f", server_urls = ["http://central.maven.org/maven2"], ) def com_google_auto_factory_auto_factory(): jvm_maven_import_external( name = "com_google_auto_factory_auto_factory", artifact = "com.google.auto.factory:auto-factory:1.0-beta6", artifact_sha256 = "bd26a49f93e5de5fcc8507e1a6554814adc9d5cb682f9df9057f8aadf60d2c91", server_urls = ["http://central.maven.org/maven2"], ) def com_google_auto_service_auto_service(): jvm_maven_import_external( name = "com_google_auto_service_auto_service", artifact = "com.google.auto.service:auto-service:1.0-rc4", artifact_sha256 = "e422d49c312fd2031222e7306e8108c1b4118eb9c049f1b51eca280bed87e924", server_urls = ["http://central.maven.org/maven2"], ) def com_google_auto_value_auto_value(): jvm_maven_import_external( name = "com_google_auto_value_auto_value", artifact = "com.google.auto.value:auto-value:1.6.3", artifact_sha256 = "0aa5463f85a210aacecbebaa45e61b79ec17e903218d79f8db9e1efde06b3c7f", server_urls = ["http://central.maven.org/maven2"], ) def com_google_auto_value_auto_value_annotations(): jvm_maven_import_external( name = "com_google_auto_value_auto_value_annotations", artifact = "com.google.auto.value:auto-value-annotations:1.6.3", artifact_sha256 = "0e951fee8c31f60270bc46553a8586001b7b93dbb12aec06373aa99a150392c0", server_urls = ["http://central.maven.org/maven2"], ) def com_google_googlejavaformat_google_java_format(): jvm_maven_import_external( name = "com_google_googlejavaformat_google_java_format", artifact = "com.google.googlejavaformat:google-java-format:1.7", artifact_sha256 = "0e13edfb91fc373075790beb1dc1f36e0b7ddd11865696f928ef63e328781cc2", server_urls = ["http://central.maven.org/maven2"], ) def com_squareup_javapoet(): jvm_maven_import_external( name = "com_squareup_javapoet", artifact = "com.squareup:javapoet:1.11.1", artifact_sha256 = "9cbf2107be499ec6e95afd36b58e3ca122a24166cdd375732e51267d64058e90", server_urls = ["http://central.maven.org/maven2"], ) def com_google_javascript_closure_compiler_unshaded(): jvm_maven_import_external( name = "com_google_javascript_closure_compiler_unshaded", artifact = "com.google.javascript:closure-compiler-unshaded:v20190819", artifact_sha256 = "d8e74a9b26ada0bd190c7946fcdbcc2e342c5144d7fe37a9278688ff3a36241d", server_urls = ["http://central.maven.org/maven2"], ) def com_google_javascript_closure_compiler_externs(): jvm_maven_import_external( name = "com_google_javascript_closure_compiler_externs", artifact = "com.google.javascript:closure-compiler-externs:v20190819", artifact_sha256 = "84a40e90d3252ea3b19f1c5d2c8a17b33f92566479c62a38848ae4f9d332914f", server_urls = ["http://central.maven.org/maven2"], ) def com_google_template_soy(): jvm_maven_import_external( name = "com_google_template_soy", artifact = "com.google.template:soy:2019-08-22", artifact_sha256 = "417107a07db1324769ac9fc381846ef3b7723309f55a1229502c4323235f453a", server_urls = ["http://central.maven.org/maven2"], ) def com_atlassian_commonmark_commonmark(): jvm_maven_import_external( name = "com_atlassian_commonmark_commonmark", artifact = "com.atlassian.commonmark:commonmark:0.12.1", artifact_sha256 = "3ebc3a3ee06f6b5b17f449e28a0c2ae6f60aa25dcf6b10b69d9dce42ed00b024", server_urls = ["http://central.maven.org/maven2"], ) def com_google_code_gson_gson(): jvm_maven_import_external( name = "com_google_code_gson_gson", artifact = "com.google.code.gson:gson:2.8.5", artifact_sha256 = "233a0149fc365c9f6edbd683cfe266b19bdc773be98eabdaf6b3c924b48e7d81", server_urls = ["http://central.maven.org/maven2"], ) def com_google_errorprone_error_prone_annotations(): jvm_maven_import_external( name = "com_google_errorprone_error_prone_annotations", artifact = "com.google.errorprone:error_prone_annotations:2.3.3", artifact_sha256 = "ec59f1b702d9afc09e8c3929f5c42777dec623a6ea2731ac694332c7d7680f5a", server_urls = ["http://central.maven.org/maven2"], ) def com_google_errorprone_javac_shaded(): jvm_maven_import_external( name = "com_google_errorprone_javac_shaded", artifact = "com.google.errorprone:javac-shaded:9-dev-r4023-3", artifact_sha256 = "65bfccf60986c47fbc17c9ebab0be626afc41741e0a6ec7109e0768817a36f30", server_urls = ["http://central.maven.org/maven2"], ) def com_google_guava_guava(): jvm_maven_import_external( name = "com_google_guava_guava", artifact = "com.google.guava:guava:27.0.1-jre", artifact_sha256 = "e1c814fd04492a27c38e0317eabeaa1b3e950ec8010239e400fe90ad6c9107b4", server_urls = ["http://central.maven.org/maven2"], ) def com_google_guava_failureaccess_jar(): jvm_maven_import_external( name = "com_google_guava_failureaccess_jar", artifact = "com.google.guava:failureaccess:jar:1.0.1", artifact_sha256 = "a171ee4c734dd2da837e4b16be9df4661afab72a41adaf31eb84dfdaf936ca26", server_urls = ["http://central.maven.org/maven2"], ) def com_google_inject_guice(): jvm_maven_import_external( name = "com_google_inject_guice", artifact = "com.google.inject:guice:4.1.0", artifact_sha256 = "9b9df27a5b8c7864112b4137fd92b36c3f1395bfe57be42fedf2f520ead1a93e", server_urls = ["http://central.maven.org/maven2"], ) def com_google_inject_extensions_guice_assistedinject(): jvm_maven_import_external( name = "com_google_inject_extensions_guice_assistedinject", artifact = "com.google.inject.extensions:guice-assistedinject:4.1.0", artifact_sha256 = "663728123fb9a6b79ea39ae289e5d56b4113e1b8e9413eb792f91e53a6dd5868", server_urls = ["http://central.maven.org/maven2"], ) def com_google_inject_extensions_guice_multibindings(): jvm_maven_import_external( name = "com_google_inject_extensions_guice_multibindings", artifact = "com.google.inject.extensions:guice-multibindings:4.1.0", artifact_sha256 = "592773a4c745cc87ba37fa0647fed8126c7e474349c603c9f229aa25d3ef5448", server_urls = ["http://central.maven.org/maven2"], ) def com_ibm_icu_icu4j(): jvm_maven_import_external( name = "com_ibm_icu_icu4j", artifact = "com.ibm.icu:icu4j:51.1", artifact_sha256 = "0df1166825c48007b163569e28a8e4121c95bc33c5dcfa83e167be5d20482212", server_urls = ["http://central.maven.org/maven2"], ) def org_hamcrest_hamcrest_core(): jvm_maven_import_external( name = "org_hamcrest_hamcrest_core", artifact = "org.hamcrest:hamcrest-core:1.3", artifact_sha256 = "66fdef91e9739348df7a096aa384a5685f4e875584cce89386a7a47251c4d8e9", server_urls = ["http://central.maven.org/maven2"], ) def javax_inject_javax_inject(): jvm_maven_import_external( name = "javax_inject_javax_inject", artifact = "javax.inject:javax.inject:1", artifact_sha256 = "91c77044a50c481636c32d916fd89c9118a72195390452c81065080f957de7ff", server_urls = ["http://central.maven.org/maven2"], ) def com_google_jimfs_jimfs(): jvm_maven_import_external( name = "com_google_jimfs_jimfs", artifact = "com.google.jimfs:jimfs:1.0", artifact_sha256 = "b1d8bd55390b8859933e099ef3298b589081aa185c71645f4c7666982f10b714", server_urls = ["http://central.maven.org/maven2"], ) def org_jsoup_jsoup(): jvm_maven_import_external( name = "org_jsoup_jsoup", artifact = "org.jsoup:jsoup:1.8.3", artifact_sha256 = "abeaf34795a4de70f72aed6de5966d2955ec7eb348eeb813324f23c999575473", server_urls = ["http://central.maven.org/maven2"], ) def com_google_code_findbugs_jsr305(): jvm_maven_import_external( name = "com_google_code_findbugs_jsr305", artifact = "com.google.code.findbugs:jsr305:1.3.9", artifact_sha256 = "905721a0eea90a81534abb7ee6ef4ea2e5e645fa1def0a5cd88402df1b46c9ed", server_urls = ["http://central.maven.org/maven2"], ) def junit_junit(): jvm_maven_import_external( name = "junit_junit", artifact = "junit:junit:4.12", artifact_sha256 = "59721f0805e223d84b90677887d9ff567dc534d7c502ca903c0c2b17f05c116a", server_urls = ["http://central.maven.org/maven2"], ) def org_mockito_mockito_all(): jvm_maven_import_external( name = "org_mockito_mockito_all", artifact = "org.mockito:mockito-all:1.10.19", artifact_sha256 = "d1a7a7ef14b3db5c0fc3e0a63a81b374b510afe85add9f7984b97911f4c70605", server_urls = ["http://central.maven.org/maven2"], ) def com_googlecode_owasp_java_html_sanitizer_owasp_java_html_sanitizer(): jvm_maven_import_external( name = "com_googlecode_owasp_java_html_sanitizer_owasp_java_html_sanitizer", artifact = "com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:r239", artifact_sha256 = "a3270c26f4b77925665773234e5d70642269a1127a39623f7535ed597dc10f69", server_urls = ["http://central.maven.org/maven2"], ) def com_google_common_html_types_types(): jvm_maven_import_external( name = "com_google_common_html_types_types", artifact = "com.google.common.html.types:types:1.0.8", artifact_sha256 = "7d81d47117284457c8760f9372a47d6cdf45398d9e9a3dfbfd108fc57937aebe", server_urls = ["http://central.maven.org/maven2"], ) def com_google_truth_truth(): jvm_maven_import_external( name = "com_google_truth_truth", artifact = "com.google.truth:truth:0.42", artifact_sha256 = "dd652bdf0c4427c59848ac0340fd6b6d20c2cbfaa3c569a8366604dbcda5214c", server_urls = ["http://central.maven.org/maven2"], ) def com_google_truth_extensions_truth_proto_extension(): jvm_maven_import_external( name = "com_google_truth_extensions_truth_proto_extension", artifact = "com.google.truth.extensions:truth-proto-extension:0.42", artifact_sha256 = "017fc2fa836a4d90fb7cbf10a42d7065f0ca58901dbe52c91b8a371556e99776", server_urls = ["http://central.maven.org/maven2"], ) def com_google_truth_extensions_truth_liteproto_extension(): jvm_maven_import_external( name = "com_google_truth_extensions_truth_liteproto_extension", artifact = "com.google.truth.extensions:truth-liteproto-extension:0.42", artifact_sha256 = "5f9e2ac1004cd782159b0407f633bebbedc580968bcbb9d0e0b165bbe81f4b80", server_urls = ["http://central.maven.org/maven2"], ) def com_googlecode_java_diff_utils_diffutils(): jvm_maven_import_external( name = "com_googlecode_java_diff_utils_diffutils", artifact = "com.googlecode.java-diff-utils:diffutils:1.3.0", artifact_sha256 = "61ba4dc49adca95243beaa0569adc2a23aedb5292ae78aa01186fa782ebdc5c2", server_urls = ["http://central.maven.org/maven2"], )
def previously_valid_data(data: list, invalid_data: set): """ Return a list of valid data from a input list. When an element is in the invalid data set, is must be replaced with the previous valid data. >>> previously_valid_data(['0', '2', None, '1', None, '0', None, '2'], {None}) ['0', '2', '2', '1', '1', '0', '0', '2'] >>> previously_valid_data(['0', '2', 'None', '1', None, '0', None, '2'], {None, 'None'}) ['0', '2', '2', '1', '1', '0', '0', '2'] """ last_valid_data = None result = list() for elem in data: if elem not in invalid_data: last_valid_data = elem result.append(last_valid_data) return result if __name__ == '__main__': input() input() data_ = input().split() print(' '.join(previously_valid_data(data_, {'-1'})))
class My_Rectangle: def __init__(self, region, is_white=False, model=(None, None)): self.region = region self.is_white = is_white self.model = model def is_white(self): return self.is_white def get_model(self): return self.model
i=0 arr=[65, 0, 0, 0, 66, 0, 0, 0, 67, 0, 0, 0, 68, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 71, 0, 0, 0, 72, 0, 0, 0, 73, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 76, 0, 0, 0, 77, 0, 0, 0, 78, 0, 0, 0, 79, 0, 0, 0, 80, 0, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 82, 0, 0, 0, 83, 0, 0, 0, 84, 0, 0, 0, 85, 0, 0, 0, 0, 0, 0, 0, 86, 0, 0, 0, 87, 0, 0, 0, 88, 0, 0, 0, 89, 0, 0, 0, 90] password=['a']*14 newarr="B1A1A3A5A2C4C4B5B4D3A5E1B4C1" while(i<28): for j in range(5): for k in range(5): if((newarr[i] == chr(j+65)) and (newarr[i+1] == chr(k+49))): password[i//2]=chr(arr[(j*6+k)*4]) i+=2 password="".join(password) print(password)
class Hand: # poker hand __POINTS = { '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, '10': 10, 'J': 11, 'Q': 12, 'K': 13, 'A': 14 } __RANKING = { 'straightflush': 9, 'quads': 8, 'fullhouse': 7, 'flush': 6, 'straight': 5, 'trips': 4, 'twopair': 3, 'pair': 2, 'highcard': 1 } def __init__(self, deck, players): self.__deck = deck self.__players = players self.__board = [] self.__hands = [] self.__inprogress = False self.__playerlimit = playerlimit - 1 self.__bettingengine = Betting(self.__players, blindinterval) self.__blinds = (0, 0) self.__allowedactions = () def addplayer(self, player): # limit to 8 players if self.__inprogress == True: raise GameException('Cannot add players, game in progress') if len(self.__players) > self.__playerlimit: raise GameException('Cannot add players, game is full') for p in self.__players: if p.name() == player.name(): raise GameException('Cannot add player, already a player with that name') if p.getid() == player.getid(): raise GameException('Cannot add player, you are already registered') self.__players.append(player) def players(self): return self.__players def newhand(self): for player in self.__players: player.reset() self.__deck.reset() self.__deck.shuffle() self.__board = [] self.__hands = [] self.__inprogress = True self.__blinds = self.__bettingengine.newhand() self.__allowedactions = () def getblinds(self): return self.__blinds def hands(self): return self.__hands def setboard(self, board): self.__board = board[:] def deal(self): for i in range(0, 2): for player in self.__players: player.deal(self.__deck.card()) self.__bettingengine.newround(Betting.PREFLOP) def flop(self): if self.playersinhand() < 2: raise GameOverException('Hand is won already') for i in range (0, 3): self.__board.append(self.__deck.card()) self.__bettingengine.newround(Betting.FLOP) def showboard(self): return self.__board def burnandturn(self): self.__deck.card() # burn one self.__board.append(self.__deck.card()) # turn one def turn(self): if self.playersinhand() < 2: raise GameOverException('Hand is won already') self.__bettingengine.newround(Betting.TURN) self.burnandturn() def river(self): if self.playersinhand() < 2: raise GameOverException('Hand is won already') self.__bettingengine.newround(Betting.RIVER) self.burnandturn() def rotatedealer(self): player = self.__players.pop(0) self.__players.append(player) def nextbet(self): if self.playersinhand() <= 1: return None nextbet = self.__bettingengine.nextbet() if nextbet == None: self.__allowedactions = () return None self.__allowedactions = nextbet[1] return nextbet def playeract(self, player, action, amount=0): if action not in self.__allowedactions: raise GameException('Action not allowed') self.__bettingengine.act(player, action, amount) def getcurrentbet(self): return self.__bettingengine.currentbet() def playersinhand(self): no_of_players = 0 for player in self.__players: if player.isactive(): no_of_players = no_of_players + 1 return no_of_players def getpot(self): return self.__bettingengine.getpot() def winner(self): hands = [] for player in self.__players: if player.isactive() == False: continue hands.append(self.makehand(player)) self.__hands = hands[:] winners = [] for hand in hands: if winners and hand[1] > winners[0][1]: # pick the biggest ranking winners = [] winners.append(hand) elif winners and hand[1] < winners[0][1]: pass else: winners.append(hand) if len(winners) > 1: # equal rank, look for high card dedup = [] i = 0 highvalue = 0 while i < 5: for hand in winners: cards = hand[2] if cards[i].points() > highvalue: dedup = [] dedup.append(hand) highvalue = cards[i].points() elif cards[i].points() == highvalue: dedup.append(hand) winners = dedup[:] if len(winners) == 1: break dedup = [] highvalue = 0 i = i + 1 the_pot = self.__bettingengine.getpot() while the_pot > 0: for winner in winners: for player in self.__players: if player.name() == winner[0]: player.addchips(1) the_pot = the_pot - 1 if the_pot < 1: break if the_pot < 1: break return winners def makehand(self, player): hand = self.__board + player.hand() sortedhand = [] for card in hand: card.setpoints(self.__POINTS[card.value()]) sortedhand.append(card) sortedhand = sorted(sortedhand, key=lambda card: (14 - card.points())) flushhand = self.isflush(sortedhand) if flushhand: straighthand = self.isstraight(flushhand) if straighthand: return (player.name(), self.__RANKING['straightflush'], straighthand) else: return (player.name(), self.__RANKING['flush'], flushhand[0:5]) quadshand = self.isquads(sortedhand) if quadshand: return (player.name(), self.__RANKING['quads'], quadshand) fullhousehand = self.isfullhouse(sortedhand) if fullhousehand: return (player.name(), self.__RANKING['fullhouse'], fullhousehand) straighthand = self.isstraight(sortedhand) if straighthand: return (player.name(), self.__RANKING['straight'], straighthand) tripshand = self.istrips(sortedhand) if tripshand: return (player.name(), self.__RANKING['trips'], tripshand) twopairhand = self.istwopair(sortedhand) if twopairhand: return (player.name(), self.__RANKING['twopair'], twopairhand) pairhand = self.ispair(sortedhand) if pairhand: return (player.name(), self.__RANKING['pair'], pairhand) return (player.name(), self.__RANKING['highcard'], sortedhand[0:5]) def isquads(self, hand): count = {} quadhand = False for card in hand: if card.points() not in count: count[card.points()] = [] count[card.points()].append(card) for k, v in count.items(): if len(v) > 3: quadhand = v break if quadhand: for k in sorted(count, reverse=True): if len(count[k]) < 4: quadhand.append(count[k][0]) break return quadhand def isfullhouse(self, hand): count = {} fhhand = False for card in hand: if card.points() not in count: count[card.points()] = [] count[card.points()].append(card) sortedcount = sorted(count, reverse=True) for k in sortedcount: if len(count[k]) == 3: fhhand = count[k] break if fhhand: for k in sortedcount: if len(count[k]) == 2: fhhand = fhhand + count[k] break if fhhand and len(fhhand) == 5: return fhhand else: return False def isflush(self, hand): clubs = [] diamonds = [] hearts = [] spades = [] for card in hand: if card.suit() == 'C': clubs.append(card) elif card.suit() == 'D': diamonds.append(card) elif card.suit() == 'H': hearts.append(card) else: spades.append(card) # got a flush? if len(clubs) > 4: return clubs elif len(diamonds) > 4: return diamonds elif len(hearts) > 4: return hearts elif len(spades) > 4: return spades return False def isstraight(self, hand): topcard = hand[0] newhand = hand[:] if topcard.value() == 'A': # ace can be low too bottomcard = Card(topcard.value(), topcard.suit()) bottomcard.setpoints(1) newhand.append(bottomcard) straight = [] lastvalue = 0 for card in newhand: if straight == [] or card.points() == (lastvalue - 1): straight.append(card) elif card.points() == lastvalue: continue else: straight = [] straight.append(card) if len(straight) > 4: return straight lastvalue = card.points() return False def istrips(self, hand): count = {} tripshand = False for card in hand: if card.points() not in count: count[card.points()] = [] count[card.points()].append(card) for k in sorted(count, reverse=True): if len(count[k]) == 3: tripshand = count[k] break if tripshand: for card in hand: if card not in tripshand: tripshand.append(card); if len(tripshand) > 4: break return tripshand def istwopair(self, hand): count = {} tphand = [] for card in hand: if card.points() not in count: count[card.points()] = [] count[card.points()].append(card) for k in sorted(count, reverse=True): if len(count[k]) == 2: tphand = tphand + count[k] if len(tphand) == 4: break if len(tphand) == 4: for card in hand: if card not in tphand: tphand.append(card); break else: tphand = [] return tphand def ispair(self, hand): count = {} pairhand = [] for card in hand: if card.points() not in count: count[card.points()] = [] count[card.points()].append(card) for k in sorted(count, reverse=True): if len(count[k]) == 2: pairhand = count[k] break if pairhand: for card in hand: if card not in pairhand: pairhand.append(card); if len(pairhand) > 4: break return pairhand
# Copyright 2019 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Defines the emulator_toolchain rule to allow configuring emulator binaries to use.""" EmulatorInfo = provider( doc = "Information used to launch a specific version of the emulator.", fields = { "emulator": "A label for the emulator launcher executable at stable version.", "emulator_deps": "Additional files required to launch the stable version of emulator.", "emulator_head": "A label for the emulator launcher executable at head version.", "emulator_head_deps": "Additional files required to launch the head version of emulator.", }, ) def _emulator_toolchain_impl(ctx): toolchain_info = platform_common.ToolchainInfo( info = EmulatorInfo( emulator = ctx.attr.emulator, emulator_deps = ctx.attr.emulator_deps, emulator_head = ctx.attr.emulator_head, emulator_head_deps = ctx.attr.emulator_head_deps, ), ) return [toolchain_info] emulator_toolchain = rule( implementation = _emulator_toolchain_impl, attrs = { "emulator": attr.label( allow_files = True, cfg = "host", executable = True, mandatory = True, ), "emulator_deps": attr.label_list( allow_files = True, cfg = "host", ), "emulator_head": attr.label( allow_files = True, cfg = "host", executable = True, ), "emulator_head_deps": attr.label_list( allow_files = True, cfg = "host", ), }, )
GlobalMarketCommandSchema = """ { "namespace": "confluent.io.examples.serialization.avro", "name": "CBPCommand", "type": "record", "fields": [ {"name": "timestamp", "type": "long", "logicalType": "timestamp-millis"}, {"name": "pair", "type": "string"}, {"name": "command", "type": { "type": "enum", "name": "Command", "symbols": ["Tick", "OrderBook"] } } ] } """
# -*- coding: utf-8 -*- """ Created on Tue Nov 12 09:19:40 2019 @author: PC """ """ liste=[7,2,6,9,-9] mini=456545 for each in liste: if(each<mini): mini=each else: continue print(mini) """ class Calisan: zam_oranı=1.8 counter=0 def __init__(self,isim,soyisim,maas): # constructor self.isim = isim self.soyisim = soyisim self.maas = maas self.email = isim+soyisim+"@asd.com" Calisan.counter=Calisan.counter+1 def giveNameSurname(self): return self.isim +" " +self.soyisim def zam_yap(self): self.maas=self.maas+self.maas*self.zam_oranı calisan1=Calisan("ali","ak",100) print("ilk maas:",calisan1.maas) calisan1.zam_yap() print("yeni maas:",calisan1.maas) calisan2=Calisan("ayse","yaz", 250) print(calisan1.isim,calisan1.soyisim,calisan1.counter) print(calisan2.isim,calisan2.soyisim,calisan2.counter) calisan3=Calisan("fatma","kara", 8990) print(calisan3.isim,calisan3.soyisim,calisan3.counter) calisan4=Calisan("selma","dogan", 290) print(calisan4.isim,calisan4.soyisim,calisan4.counter) Calisan.counter liste=[calisan1,calisan2,calisan3,calisan4] maxi_maas=-1 index=-1 for each in liste: if(each.maas>maxi_maas): maxi_maas=each.maas index=each print(maxi_maas) print("en yüksek maas:",index.giveNameSurname()) #isci1 = Calisan("ali", "veli",100) #print(isci1.maas) #print(isci1.giveNameSurname())
a = [1, 2, 3] b = [*a, 4, 5, 6] print(b)
EXPECTED = {'EUTRA-InterNodeDefinitions': {'extensibility-implied': False, 'imports': {'EUTRA-RRC-Definitions': ['ARFCN-ValueEUTRA', 'AntennaInfoCommon', 'C-RNTI', 'CellIdentity', 'DL-DCCH-Message', 'MasterInformationBlock', 'MeasConfig', 'PhysCellId', 'RadioResourceConfigDedicated', 'SecurityAlgorithmConfig', 'ShortMAC-I', 'SystemInformationBlockType1', 'SystemInformationBlockType2', 'UE-CapabilityRAT-ContainerList', 'UECapabilityInformation']}, 'object-classes': {}, 'object-sets': {}, 'tags': 'AUTOMATIC', 'types': {'AS-Config': {'members': [{'name': 'sourceMeasConfig', 'type': 'MeasConfig'}, {'name': 'sourceRadioResourceConfig', 'type': 'RadioResourceConfigDedicated'}, {'name': 'sourceSecurityAlgorithmConfig', 'type': 'SecurityAlgorithmConfig'}, {'name': 'sourceUE-Identity', 'type': 'C-RNTI'}, {'name': 'sourceMasterInformationBlock', 'type': 'MasterInformationBlock'}, {'name': 'sourceSystemInformationBlockType1', 'type': 'SystemInformationBlockType1'}, {'name': 'sourceSystemInformationBlockType2', 'type': 'SystemInformationBlockType2'}, {'name': 'antennaInfoCommon', 'type': 'AntennaInfoCommon'}, {'name': 'sourceDl-CarrierFreq', 'type': 'ARFCN-ValueEUTRA'}, None], 'type': 'SEQUENCE'}, 'AS-Context': {'members': [{'name': 'reestablishmentInfo', 'optional': True, 'type': 'ReestablishmentInfo'}], 'type': 'SEQUENCE'}, 'AdditionalReestabInfo': {'members': [{'name': 'cellIdentity', 'type': 'CellIdentity'}, {'name': 'key-eNodeB-Star', 'type': 'Key-eNodeB-Star'}, {'name': 'shortMAC-I', 'type': 'ShortMAC-I'}], 'type': 'SEQUENCE'}, 'AdditionalReestabInfoList': {'element': {'type': 'AdditionalReestabInfo'}, 'size': [(1, 'maxReestabInfo')], 'type': 'SEQUENCE ' 'OF'}, 'HandoverCommand': {'members': [{'members': [{'members': [{'name': 'handoverCommand-r8', 'type': 'HandoverCommand-r8-IEs'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'HandoverCommand-r8-IEs': {'members': [{'name': 'handoverCommandMessage', 'type': 'OCTET ' 'STRING'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'HandoverPreparationInformation': {'members': [{'members': [{'members': [{'name': 'handoverPreparationInformation-r8', 'type': 'HandoverPreparationInformation-r8-IEs'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'HandoverPreparationInformation-r8-IEs': {'members': [{'name': 'ue-RadioAccessCapabilityInfo', 'type': 'UE-CapabilityRAT-ContainerList'}, {'name': 'as-Config', 'optional': True, 'type': 'AS-Config'}, {'name': 'rrm-Config', 'optional': True, 'type': 'RRM-Config'}, {'name': 'as-Context', 'optional': True, 'type': 'AS-Context'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'Key-eNodeB-Star': {'size': [256], 'type': 'BIT ' 'STRING'}, 'RRM-Config': {'members': [{'name': 'ue-InactiveTime', 'optional': True, 'type': 'ENUMERATED', 'values': [('s1', 0), ('s2', 1), ('s3', 2), ('s5', 3), ('s7', 4), ('s10', 5), ('s15', 6), ('s20', 7), ('s25', 8), ('s30', 9), ('s40', 10), ('s50', 11), ('min1', 12), ('min1s20c', 13), ('min1s40', 14), ('min2', 15), ('min2s30', 16), ('min3', 17), ('min3s30', 18), ('min4', 19), ('min5', 20), ('min6', 21), ('min7', 22), ('min8', 23), ('min9', 24), ('min10', 25), ('min12', 26), ('min14', 27), ('min17', 28), ('min20', 29), ('min24', 30), ('min28', 31), ('min33', 32), ('min38', 33), ('min44', 34), ('min50', 35), ('hr1', 36), ('hr1min30', 37), ('hr2', 38), ('hr2min30', 39), ('hr3', 40), ('hr3min30', 41), ('hr4', 42), ('hr5', 43), ('hr6', 44), ('hr8', 45), ('hr10', 46), ('hr13', 47), ('hr16', 48), ('hr20', 49), ('day1', 50), ('day1hr12', 51), ('day2', 52), ('day2hr12', 53), ('day3', 54), ('day4', 55), ('day5', 56), ('day7', 57), ('day10', 58), ('day14', 59), ('day19', 60), ('day24', 61), ('day30', 62), ('dayMoreThan30', 63)]}, None], 'type': 'SEQUENCE'}, 'ReestablishmentInfo': {'members': [{'name': 'sourcePhysCellId', 'type': 'PhysCellId'}, {'name': 'targetCellShortMAC-I', 'type': 'ShortMAC-I'}, {'name': 'additionalReestabInfoList', 'optional': True, 'type': 'AdditionalReestabInfoList'}, None], 'type': 'SEQUENCE'}, 'UERadioAccessCapabilityInformation': {'members': [{'members': [{'members': [{'name': 'ueRadioAccessCapabilityInformation-r8', 'type': 'UERadioAccessCapabilityInformation-r8-IEs'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'UERadioAccessCapabilityInformation-r8-IEs': {'members': [{'name': 'ue-RadioAccessCapabilityInfo', 'type': 'OCTET ' 'STRING'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}}, 'values': {'maxReestabInfo': {'type': 'INTEGER', 'value': 32}}}, 'EUTRA-RRC-Definitions': {'extensibility-implied': False, 'imports': {}, 'object-classes': {}, 'object-sets': {}, 'tags': 'AUTOMATIC', 'types': {'AC-BarringConfig': {'members': [{'name': 'ac-BarringFactor', 'type': 'ENUMERATED', 'values': [('p00', 0), ('p05', 1), ('p10', 2), ('p15', 3), ('p20', 4), ('p25', 5), ('p30', 6), ('p40', 7), ('p50', 8), ('p60', 9), ('p70', 10), ('p75', 11), ('p80', 12), ('p85', 13), ('p90', 14), ('p95', 15)]}, {'name': 'ac-BarringTime', 'type': 'ENUMERATED', 'values': [('s4', 0), ('s8', 1), ('s16', 2), ('s32', 3), ('s64', 4), ('s128', 5), ('s256', 6), ('s512', 7)]}, {'name': 'ac-BarringForSpecialAC', 'size': [5], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'ARFCN-ValueCDMA2000': {'restricted-to': [(0, 2047)], 'type': 'INTEGER'}, 'ARFCN-ValueEUTRA': {'restricted-to': [(0, 'maxEARFCN')], 'type': 'INTEGER'}, 'ARFCN-ValueGERAN': {'restricted-to': [(0, 1023)], 'type': 'INTEGER'}, 'ARFCN-ValueUTRA': {'restricted-to': [(0, 16383)], 'type': 'INTEGER'}, 'AccessStratumRelease': {'type': 'ENUMERATED', 'values': [('rel8', 0), ('spare7', 1), ('spare6', 2), ('spare5', 3), ('spare4', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7), None]}, 'AdditionalSpectrumEmission': {'restricted-to': [(1, 32)], 'type': 'INTEGER'}, 'AllowedMeasBandwidth': {'type': 'ENUMERATED', 'values': [('mbw6', 0), ('mbw15', 1), ('mbw25', 2), ('mbw50', 3), ('mbw75', 4), ('mbw100', 5)]}, 'AntennaInfoCommon': {'members': [{'name': 'antennaPortsCount', 'type': 'ENUMERATED', 'values': [('an1', 0), ('an2', 1), ('an4', 2), ('spare1', 3)]}], 'type': 'SEQUENCE'}, 'AntennaInfoDedicated': {'members': [{'name': 'transmissionMode', 'type': 'ENUMERATED', 'values': [('tm1', 0), ('tm2', 1), ('tm3', 2), ('tm4', 3), ('tm5', 4), ('tm6', 5), ('tm7', 6), ('spare1', 7)]}, {'members': [{'name': 'n2TxAntenna-tm3', 'size': [2], 'type': 'BIT ' 'STRING'}, {'name': 'n4TxAntenna-tm3', 'size': [4], 'type': 'BIT ' 'STRING'}, {'name': 'n2TxAntenna-tm4', 'size': [6], 'type': 'BIT ' 'STRING'}, {'name': 'n4TxAntenna-tm4', 'size': [64], 'type': 'BIT ' 'STRING'}, {'name': 'n2TxAntenna-tm5', 'size': [4], 'type': 'BIT ' 'STRING'}, {'name': 'n4TxAntenna-tm5', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'n2TxAntenna-tm6', 'size': [4], 'type': 'BIT ' 'STRING'}, {'name': 'n4TxAntenna-tm6', 'size': [16], 'type': 'BIT ' 'STRING'}], 'name': 'codebookSubsetRestriction', 'optional': True, 'type': 'CHOICE'}, {'members': [{'name': 'release', 'type': 'NULL'}, {'name': 'setup', 'type': 'ENUMERATED', 'values': [('closedLoop', 0), ('openLoop', 1)]}], 'name': 'ue-TransmitAntennaSelection', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'BCCH-BCH-Message': {'members': [{'name': 'message', 'type': 'BCCH-BCH-MessageType'}], 'type': 'SEQUENCE'}, 'BCCH-BCH-MessageType': {'type': 'MasterInformationBlock'}, 'BCCH-Config': {'members': [{'name': 'modificationPeriodCoeff', 'type': 'ENUMERATED', 'values': [('n2', 0), ('n4', 1), ('n8', 2), ('n16', 3)]}], 'type': 'SEQUENCE'}, 'BCCH-DL-SCH-Message': {'members': [{'name': 'message', 'type': 'BCCH-DL-SCH-MessageType'}], 'type': 'SEQUENCE'}, 'BCCH-DL-SCH-MessageType': {'members': [{'members': [{'name': 'systemInformation', 'type': 'SystemInformation'}, {'name': 'systemInformationBlockType1', 'type': 'SystemInformationBlockType1'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'messageClassExtension', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'BandClassInfoCDMA2000': {'members': [{'name': 'bandClass', 'type': 'BandclassCDMA2000'}, {'name': 'cellReselectionPriority', 'optional': True, 'type': 'CellReselectionPriority'}, {'name': 'threshX-High', 'restricted-to': [(0, 63)], 'type': 'INTEGER'}, {'name': 'threshX-Low', 'restricted-to': [(0, 63)], 'type': 'INTEGER'}, None], 'type': 'SEQUENCE'}, 'BandClassListCDMA2000': {'element': {'type': 'BandClassInfoCDMA2000'}, 'size': [(1, 'maxCDMA-BandClass')], 'type': 'SEQUENCE ' 'OF'}, 'BandClassPriority1XRTT': {'members': [{'name': 'bandClass', 'type': 'BandclassCDMA2000'}, {'name': 'cellReselectionPriority', 'type': 'CellReselectionPriority'}], 'type': 'SEQUENCE'}, 'BandClassPriorityHRPD': {'members': [{'name': 'bandClass', 'type': 'BandclassCDMA2000'}, {'name': 'cellReselectionPriority', 'type': 'CellReselectionPriority'}], 'type': 'SEQUENCE'}, 'BandClassPriorityList1XRTT': {'element': {'type': 'BandClassPriority1XRTT'}, 'size': [(1, 'maxCDMA-BandClass')], 'type': 'SEQUENCE ' 'OF'}, 'BandClassPriorityListHRPD': {'element': {'type': 'BandClassPriorityHRPD'}, 'size': [(1, 'maxCDMA-BandClass')], 'type': 'SEQUENCE ' 'OF'}, 'BandIndicatorGERAN': {'type': 'ENUMERATED', 'values': [('dcs1800', 0), ('pcs1900', 1)]}, 'BandInfoEUTRA': {'members': [{'name': 'interFreqBandList', 'type': 'InterFreqBandList'}, {'name': 'interRAT-BandList', 'optional': True, 'type': 'InterRAT-BandList'}], 'type': 'SEQUENCE'}, 'BandListEUTRA': {'element': {'type': 'BandInfoEUTRA'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE OF'}, 'BandclassCDMA2000': {'type': 'ENUMERATED', 'values': [('bc0', 0), ('bc1', 1), ('bc2', 2), ('bc3', 3), ('bc4', 4), ('bc5', 5), ('bc6', 6), ('bc7', 7), ('bc8', 8), ('bc9', 9), ('bc10', 10), ('bc11', 11), ('bc12', 12), ('bc13', 13), ('bc14', 14), ('bc15', 15), ('bc16', 16), ('bc17', 17), ('spare14', 18), ('spare13', 19), ('spare12', 20), ('spare11', 21), ('spare10', 22), ('spare9', 23), ('spare8', 24), ('spare7', 25), ('spare6', 26), ('spare5', 27), ('spare4', 28), ('spare3', 29), ('spare2', 30), ('spare1', 31), None]}, 'BlackCellsToAddMod': {'members': [{'name': 'cellIndex', 'restricted-to': [(1, 'maxCellMeas')], 'type': 'INTEGER'}, {'name': 'physCellIdRange', 'type': 'PhysCellIdRange'}], 'type': 'SEQUENCE'}, 'BlackCellsToAddModList': {'element': {'type': 'BlackCellsToAddMod'}, 'size': [(1, 'maxCellMeas')], 'type': 'SEQUENCE ' 'OF'}, 'C-RNTI': {'size': [16], 'type': 'BIT STRING'}, 'CDMA2000-Type': {'type': 'ENUMERATED', 'values': [('type1XRTT', 0), ('typeHRPD', 1)]}, 'CQI-ReportConfig': {'members': [{'name': 'cqi-ReportModeAperiodic', 'optional': True, 'type': 'ENUMERATED', 'values': [('rm12', 0), ('rm20', 1), ('rm22', 2), ('rm30', 3), ('rm31', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7)]}, {'name': 'nomPDSCH-RS-EPRE-Offset', 'restricted-to': [(-1, 6)], 'type': 'INTEGER'}, {'name': 'cqi-ReportPeriodic', 'optional': True, 'type': 'CQI-ReportPeriodic'}], 'type': 'SEQUENCE'}, 'CQI-ReportPeriodic': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'cqi-PUCCH-ResourceIndex', 'restricted-to': [(0, 1185)], 'type': 'INTEGER'}, {'name': 'cqi-pmi-ConfigIndex', 'restricted-to': [(0, 1023)], 'type': 'INTEGER'}, {'members': [{'name': 'widebandCQI', 'type': 'NULL'}, {'members': [{'name': 'k', 'restricted-to': [(1, 4)], 'type': 'INTEGER'}], 'name': 'subbandCQI', 'type': 'SEQUENCE'}], 'name': 'cqi-FormatIndicatorPeriodic', 'type': 'CHOICE'}, {'name': 'ri-ConfigIndex', 'optional': True, 'restricted-to': [(0, 1023)], 'type': 'INTEGER'}, {'name': 'simultaneousAckNackAndCQI', 'type': 'BOOLEAN'}], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'CSFB-RegistrationParam1XRTT': {'members': [{'name': 'sid', 'size': [15], 'type': 'BIT ' 'STRING'}, {'name': 'nid', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'multipleSID', 'type': 'BOOLEAN'}, {'name': 'multipleNID', 'type': 'BOOLEAN'}, {'name': 'homeReg', 'type': 'BOOLEAN'}, {'name': 'foreignSIDReg', 'type': 'BOOLEAN'}, {'name': 'foreignNIDReg', 'type': 'BOOLEAN'}, {'name': 'parameterReg', 'type': 'BOOLEAN'}, {'name': 'powerUpReg', 'type': 'BOOLEAN'}, {'name': 'registrationPeriod', 'size': [7], 'type': 'BIT ' 'STRING'}, {'name': 'registrationZone', 'size': [12], 'type': 'BIT ' 'STRING'}, {'name': 'totalZone', 'size': [3], 'type': 'BIT ' 'STRING'}, {'name': 'zoneTimer', 'size': [3], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'CSFBParametersRequestCDMA2000': {'members': [{'members': [{'name': 'csfbParametersRequestCDMA2000-r8', 'type': 'CSFBParametersRequestCDMA2000-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'CSFBParametersRequestCDMA2000-r8-IEs': {'members': [{'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'CSFBParametersResponseCDMA2000': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'name': 'csfbParametersResponseCDMA2000-r8', 'type': 'CSFBParametersResponseCDMA2000-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'CSFBParametersResponseCDMA2000-r8-IEs': {'members': [{'name': 'rand', 'type': 'RAND-CDMA2000'}, {'name': 'mobilityParameters', 'type': 'MobilityParametersCDMA2000'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'CarrierBandwidthEUTRA': {'members': [{'name': 'dl-Bandwidth', 'type': 'ENUMERATED', 'values': [('n6', 0), ('n15', 1), ('n25', 2), ('n50', 3), ('n75', 4), ('n100', 5), ('spare10', 6), ('spare9', 7), ('spare8', 8), ('spare7', 9), ('spare6', 10), ('spare5', 11), ('spare4', 12), ('spare3', 13), ('spare2', 14), ('spare1', 15)]}, {'name': 'ul-Bandwidth', 'optional': True, 'type': 'ENUMERATED', 'values': [('n6', 0), ('n15', 1), ('n25', 2), ('n50', 3), ('n75', 4), ('n100', 5), ('spare10', 6), ('spare9', 7), ('spare8', 8), ('spare7', 9), ('spare6', 10), ('spare5', 11), ('spare4', 12), ('spare3', 13), ('spare2', 14), ('spare1', 15)]}], 'type': 'SEQUENCE'}, 'CarrierFreqCDMA2000': {'members': [{'name': 'bandClass', 'type': 'BandclassCDMA2000'}, {'name': 'arfcn', 'type': 'ARFCN-ValueCDMA2000'}], 'type': 'SEQUENCE'}, 'CarrierFreqEUTRA': {'members': [{'name': 'dl-CarrierFreq', 'type': 'ARFCN-ValueEUTRA'}, {'name': 'ul-CarrierFreq', 'optional': True, 'type': 'ARFCN-ValueEUTRA'}], 'type': 'SEQUENCE'}, 'CarrierFreqGERAN': {'members': [{'name': 'arfcn', 'type': 'ARFCN-ValueGERAN'}, {'name': 'bandIndicator', 'type': 'BandIndicatorGERAN'}], 'type': 'SEQUENCE'}, 'CarrierFreqListUTRA-FDD': {'element': {'type': 'CarrierFreqUTRA-FDD'}, 'size': [(1, 'maxUTRA-FDD-Carrier')], 'type': 'SEQUENCE ' 'OF'}, 'CarrierFreqListUTRA-TDD': {'element': {'type': 'CarrierFreqUTRA-TDD'}, 'size': [(1, 'maxUTRA-TDD-Carrier')], 'type': 'SEQUENCE ' 'OF'}, 'CarrierFreqUTRA-FDD': {'members': [{'name': 'carrierFreq', 'type': 'ARFCN-ValueUTRA'}, {'name': 'cellReselectionPriority', 'optional': True, 'type': 'CellReselectionPriority'}, {'name': 'threshX-High', 'type': 'ReselectionThreshold'}, {'name': 'threshX-Low', 'type': 'ReselectionThreshold'}, {'name': 'q-RxLevMin', 'restricted-to': [(-60, -13)], 'type': 'INTEGER'}, {'name': 'p-MaxUTRA', 'restricted-to': [(-50, 33)], 'type': 'INTEGER'}, {'name': 'q-QualMin', 'restricted-to': [(-24, 0)], 'type': 'INTEGER'}, None], 'type': 'SEQUENCE'}, 'CarrierFreqUTRA-TDD': {'members': [{'name': 'carrierFreq', 'type': 'ARFCN-ValueUTRA'}, {'name': 'cellReselectionPriority', 'optional': True, 'type': 'CellReselectionPriority'}, {'name': 'threshX-High', 'type': 'ReselectionThreshold'}, {'name': 'threshX-Low', 'type': 'ReselectionThreshold'}, {'name': 'q-RxLevMin', 'restricted-to': [(-60, -13)], 'type': 'INTEGER'}, {'name': 'p-MaxUTRA', 'restricted-to': [(-50, 33)], 'type': 'INTEGER'}, None], 'type': 'SEQUENCE'}, 'CarrierFreqsGERAN': {'members': [{'name': 'startingARFCN', 'type': 'ARFCN-ValueGERAN'}, {'name': 'bandIndicator', 'type': 'BandIndicatorGERAN'}, {'members': [{'name': 'explicitListOfARFCNs', 'type': 'ExplicitListOfARFCNs'}, {'members': [{'name': 'arfcn-Spacing', 'restricted-to': [(1, 8)], 'type': 'INTEGER'}, {'name': 'numberOfFollowingARFCNs', 'restricted-to': [(0, 31)], 'type': 'INTEGER'}], 'name': 'equallySpacedARFCNs', 'type': 'SEQUENCE'}, {'name': 'variableBitMapOfARFCNs', 'size': [(1, 16)], 'type': 'OCTET ' 'STRING'}], 'name': 'followingARFCNs', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'CarrierFreqsInfoGERAN': {'members': [{'name': 'carrierFreqs', 'type': 'CarrierFreqsGERAN'}, {'members': [{'name': 'cellReselectionPriority', 'optional': True, 'type': 'CellReselectionPriority'}, {'name': 'ncc-Permitted', 'size': [8], 'type': 'BIT ' 'STRING'}, {'name': 'q-RxLevMin', 'restricted-to': [(0, 45)], 'type': 'INTEGER'}, {'name': 'p-MaxGERAN', 'optional': True, 'restricted-to': [(0, 39)], 'type': 'INTEGER'}, {'name': 'threshX-High', 'type': 'ReselectionThreshold'}, {'name': 'threshX-Low', 'type': 'ReselectionThreshold'}], 'name': 'commonInfo', 'type': 'SEQUENCE'}, None], 'type': 'SEQUENCE'}, 'CarrierFreqsInfoListGERAN': {'element': {'type': 'CarrierFreqsInfoGERAN'}, 'size': [(1, 'maxGNFG')], 'type': 'SEQUENCE ' 'OF'}, 'CellChangeOrder': {'members': [{'name': 't304', 'type': 'ENUMERATED', 'values': [('ms100', 0), ('ms200', 1), ('ms500', 2), ('ms1000', 3), ('ms2000', 4), ('ms4000', 5), ('ms8000', 6), ('spare1', 7)]}, {'members': [{'members': [{'name': 'physCellId', 'type': 'PhysCellIdGERAN'}, {'name': 'carrierFreq', 'type': 'CarrierFreqGERAN'}, {'name': 'networkControlOrder', 'optional': True, 'size': [2], 'type': 'BIT ' 'STRING'}, {'name': 'systemInformation', 'optional': True, 'type': 'SI-OrPSI-GERAN'}], 'name': 'geran', 'type': 'SEQUENCE'}, None], 'name': 'targetRAT-Type', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'CellGlobalIdCDMA2000': {'members': [{'name': 'cellGlobalId1XRTT', 'size': [47], 'type': 'BIT ' 'STRING'}, {'name': 'cellGlobalIdHRPD', 'size': [128], 'type': 'BIT ' 'STRING'}], 'type': 'CHOICE'}, 'CellGlobalIdEUTRA': {'members': [{'name': 'plmn-Identity', 'type': 'PLMN-Identity'}, {'name': 'cellIdentity', 'type': 'CellIdentity'}], 'type': 'SEQUENCE'}, 'CellGlobalIdGERAN': {'members': [{'name': 'plmn-Identity', 'type': 'PLMN-Identity'}, {'name': 'locationAreaCode', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'cellIdentity', 'size': [16], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'CellGlobalIdUTRA': {'members': [{'name': 'plmn-Identity', 'type': 'PLMN-Identity'}, {'name': 'cellIdentity', 'size': [28], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'CellIdentity': {'size': [28], 'type': 'BIT STRING'}, 'CellIndex': {'restricted-to': [(1, 'maxCellMeas')], 'type': 'INTEGER'}, 'CellIndexList': {'element': {'type': 'CellIndex'}, 'size': [(1, 'maxCellMeas')], 'type': 'SEQUENCE OF'}, 'CellReselectionParametersCDMA2000': {'members': [{'name': 'bandClassList', 'type': 'BandClassListCDMA2000'}, {'name': 'neighCellList', 'type': 'NeighCellListCDMA2000'}, {'name': 't-ReselectionCDMA2000', 'type': 'T-Reselection'}, {'name': 't-ReselectionCDMA2000-SF', 'optional': True, 'type': 'SpeedStateScaleFactors'}], 'type': 'SEQUENCE'}, 'CellReselectionPriority': {'restricted-to': [(0, 7)], 'type': 'INTEGER'}, 'CellsToAddMod': {'members': [{'name': 'cellIndex', 'restricted-to': [(1, 'maxCellMeas')], 'type': 'INTEGER'}, {'name': 'physCellId', 'type': 'PhysCellId'}, {'name': 'cellIndividualOffset', 'type': 'Q-OffsetRange'}], 'type': 'SEQUENCE'}, 'CellsToAddModCDMA2000': {'members': [{'name': 'cellIndex', 'restricted-to': [(1, 'maxCellMeas')], 'type': 'INTEGER'}, {'name': 'physCellId', 'type': 'PhysCellIdCDMA2000'}], 'type': 'SEQUENCE'}, 'CellsToAddModList': {'element': {'type': 'CellsToAddMod'}, 'size': [(1, 'maxCellMeas')], 'type': 'SEQUENCE ' 'OF'}, 'CellsToAddModListCDMA2000': {'element': {'type': 'CellsToAddModCDMA2000'}, 'size': [(1, 'maxCellMeas')], 'type': 'SEQUENCE ' 'OF'}, 'CellsToAddModListUTRA-FDD': {'element': {'type': 'CellsToAddModUTRA-FDD'}, 'size': [(1, 'maxCellMeas')], 'type': 'SEQUENCE ' 'OF'}, 'CellsToAddModListUTRA-TDD': {'element': {'type': 'CellsToAddModUTRA-TDD'}, 'size': [(1, 'maxCellMeas')], 'type': 'SEQUENCE ' 'OF'}, 'CellsToAddModUTRA-FDD': {'members': [{'name': 'cellIndex', 'restricted-to': [(1, 'maxCellMeas')], 'type': 'INTEGER'}, {'name': 'physCellId', 'type': 'PhysCellIdUTRA-FDD'}], 'type': 'SEQUENCE'}, 'CellsToAddModUTRA-TDD': {'members': [{'name': 'cellIndex', 'restricted-to': [(1, 'maxCellMeas')], 'type': 'INTEGER'}, {'name': 'physCellId', 'type': 'PhysCellIdUTRA-TDD'}], 'type': 'SEQUENCE'}, 'CounterCheck': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'counterCheck-r8', 'type': 'CounterCheck-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'CounterCheck-r8-IEs': {'members': [{'name': 'drb-CountMSB-InfoList', 'type': 'DRB-CountMSB-InfoList'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'CounterCheckResponse': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'name': 'counterCheckResponse-r8', 'type': 'CounterCheckResponse-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'CounterCheckResponse-r8-IEs': {'members': [{'name': 'drb-CountInfoList', 'type': 'DRB-CountInfoList'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'DL-AM-RLC': {'members': [{'name': 't-Reordering', 'type': 'T-Reordering'}, {'name': 't-StatusProhibit', 'type': 'T-StatusProhibit'}], 'type': 'SEQUENCE'}, 'DL-CCCH-Message': {'members': [{'name': 'message', 'type': 'DL-CCCH-MessageType'}], 'type': 'SEQUENCE'}, 'DL-CCCH-MessageType': {'members': [{'members': [{'name': 'rrcConnectionReestablishment', 'type': 'RRCConnectionReestablishment'}, {'name': 'rrcConnectionReestablishmentReject', 'type': 'RRCConnectionReestablishmentReject'}, {'name': 'rrcConnectionReject', 'type': 'RRCConnectionReject'}, {'name': 'rrcConnectionSetup', 'type': 'RRCConnectionSetup'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'messageClassExtension', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'DL-DCCH-Message': {'members': [{'name': 'message', 'type': 'DL-DCCH-MessageType'}], 'type': 'SEQUENCE'}, 'DL-DCCH-MessageType': {'members': [{'members': [{'name': 'csfbParametersResponseCDMA2000', 'type': 'CSFBParametersResponseCDMA2000'}, {'name': 'dlInformationTransfer', 'type': 'DLInformationTransfer'}, {'name': 'handoverFromEUTRAPreparationRequest', 'type': 'HandoverFromEUTRAPreparationRequest'}, {'name': 'mobilityFromEUTRACommand', 'type': 'MobilityFromEUTRACommand'}, {'name': 'rrcConnectionReconfiguration', 'type': 'RRCConnectionReconfiguration'}, {'name': 'rrcConnectionRelease', 'type': 'RRCConnectionRelease'}, {'name': 'securityModeCommand', 'type': 'SecurityModeCommand'}, {'name': 'ueCapabilityEnquiry', 'type': 'UECapabilityEnquiry'}, {'name': 'counterCheck', 'type': 'CounterCheck'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'messageClassExtension', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'DL-UM-RLC': {'members': [{'name': 'sn-FieldLength', 'type': 'SN-FieldLength'}, {'name': 't-Reordering', 'type': 'T-Reordering'}], 'type': 'SEQUENCE'}, 'DLInformationTransfer': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'dlInformationTransfer-r8', 'type': 'DLInformationTransfer-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'DLInformationTransfer-r8-IEs': {'members': [{'members': [{'name': 'dedicatedInfoNAS', 'type': 'DedicatedInfoNAS'}, {'name': 'dedicatedInfoCDMA2000-1XRTT', 'type': 'DedicatedInfoCDMA2000'}, {'name': 'dedicatedInfoCDMA2000-HRPD', 'type': 'DedicatedInfoCDMA2000'}], 'name': 'dedicatedInfoType', 'type': 'CHOICE'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'DRB-CountInfo': {'members': [{'name': 'drb-Identity', 'type': 'DRB-Identity'}, {'name': 'count-Uplink', 'restricted-to': [(0, 4294967295)], 'type': 'INTEGER'}, {'name': 'count-Downlink', 'restricted-to': [(0, 4294967295)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'DRB-CountInfoList': {'element': {'type': 'DRB-CountInfo'}, 'size': [(0, 'maxDRB')], 'type': 'SEQUENCE ' 'OF'}, 'DRB-CountMSB-Info': {'members': [{'name': 'drb-Identity', 'type': 'DRB-Identity'}, {'name': 'countMSB-Uplink', 'restricted-to': [(0, 33554431)], 'type': 'INTEGER'}, {'name': 'countMSB-Downlink', 'restricted-to': [(0, 33554431)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'DRB-CountMSB-InfoList': {'element': {'type': 'DRB-CountMSB-Info'}, 'size': [(1, 'maxDRB')], 'type': 'SEQUENCE ' 'OF'}, 'DRB-Identity': {'restricted-to': [(1, 32)], 'type': 'INTEGER'}, 'DRB-ToAddMod': {'members': [{'name': 'eps-BearerIdentity', 'optional': True, 'restricted-to': [(0, 15)], 'type': 'INTEGER'}, {'name': 'drb-Identity', 'type': 'DRB-Identity'}, {'name': 'pdcp-Config', 'optional': True, 'type': 'PDCP-Config'}, {'name': 'rlc-Config', 'optional': True, 'type': 'RLC-Config'}, {'name': 'logicalChannelIdentity', 'optional': True, 'restricted-to': [(3, 10)], 'type': 'INTEGER'}, {'name': 'logicalChannelConfig', 'optional': True, 'type': 'LogicalChannelConfig'}, None], 'type': 'SEQUENCE'}, 'DRB-ToAddModList': {'element': {'type': 'DRB-ToAddMod'}, 'size': [(1, 'maxDRB')], 'type': 'SEQUENCE ' 'OF'}, 'DRB-ToReleaseList': {'element': {'type': 'DRB-Identity'}, 'size': [(1, 'maxDRB')], 'type': 'SEQUENCE ' 'OF'}, 'DRX-Config': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'onDurationTimer', 'type': 'ENUMERATED', 'values': [('psf1', 0), ('psf2', 1), ('psf3', 2), ('psf4', 3), ('psf5', 4), ('psf6', 5), ('psf8', 6), ('psf10', 7), ('psf20', 8), ('psf30', 9), ('psf40', 10), ('psf50', 11), ('psf60', 12), ('psf80', 13), ('psf100', 14), ('psf200', 15)]}, {'name': 'drx-InactivityTimer', 'type': 'ENUMERATED', 'values': [('psf1', 0), ('psf2', 1), ('psf3', 2), ('psf4', 3), ('psf5', 4), ('psf6', 5), ('psf8', 6), ('psf10', 7), ('psf20', 8), ('psf30', 9), ('psf40', 10), ('psf50', 11), ('psf60', 12), ('psf80', 13), ('psf100', 14), ('psf200', 15), ('psf300', 16), ('psf500', 17), ('psf750', 18), ('psf1280', 19), ('psf1920', 20), ('psf2560', 21), ('spare10', 22), ('spare9', 23), ('spare8', 24), ('spare7', 25), ('spare6', 26), ('spare5', 27), ('spare4', 28), ('spare3', 29), ('spare2', 30), ('spare1', 31)]}, {'name': 'drx-RetransmissionTimer', 'type': 'ENUMERATED', 'values': [('psf1', 0), ('psf2', 1), ('psf4', 2), ('psf6', 3), ('psf8', 4), ('psf16', 5), ('psf24', 6), ('psf33', 7)]}, {'members': [{'name': 'sf10', 'restricted-to': [(0, 9)], 'type': 'INTEGER'}, {'name': 'sf20', 'restricted-to': [(0, 19)], 'type': 'INTEGER'}, {'name': 'sf32', 'restricted-to': [(0, 31)], 'type': 'INTEGER'}, {'name': 'sf40', 'restricted-to': [(0, 39)], 'type': 'INTEGER'}, {'name': 'sf64', 'restricted-to': [(0, 63)], 'type': 'INTEGER'}, {'name': 'sf80', 'restricted-to': [(0, 79)], 'type': 'INTEGER'}, {'name': 'sf128', 'restricted-to': [(0, 127)], 'type': 'INTEGER'}, {'name': 'sf160', 'restricted-to': [(0, 159)], 'type': 'INTEGER'}, {'name': 'sf256', 'restricted-to': [(0, 255)], 'type': 'INTEGER'}, {'name': 'sf320', 'restricted-to': [(0, 319)], 'type': 'INTEGER'}, {'name': 'sf512', 'restricted-to': [(0, 511)], 'type': 'INTEGER'}, {'name': 'sf640', 'restricted-to': [(0, 639)], 'type': 'INTEGER'}, {'name': 'sf1024', 'restricted-to': [(0, 1023)], 'type': 'INTEGER'}, {'name': 'sf1280', 'restricted-to': [(0, 1279)], 'type': 'INTEGER'}, {'name': 'sf2048', 'restricted-to': [(0, 2047)], 'type': 'INTEGER'}, {'name': 'sf2560', 'restricted-to': [(0, 2559)], 'type': 'INTEGER'}], 'name': 'longDRX-CycleStartOffset', 'type': 'CHOICE'}, {'members': [{'name': 'shortDRX-Cycle', 'type': 'ENUMERATED', 'values': [('sf2', 0), ('sf5', 1), ('sf8', 2), ('sf10', 3), ('sf16', 4), ('sf20', 5), ('sf32', 6), ('sf40', 7), ('sf64', 8), ('sf80', 9), ('sf128', 10), ('sf160', 11), ('sf256', 12), ('sf320', 13), ('sf512', 14), ('sf640', 15)]}, {'name': 'drxShortCycleTimer', 'restricted-to': [(1, 16)], 'type': 'INTEGER'}], 'name': 'shortDRX', 'optional': True, 'type': 'SEQUENCE'}], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'DedicatedInfoCDMA2000': {'type': 'OCTET ' 'STRING'}, 'DedicatedInfoNAS': {'type': 'OCTET ' 'STRING'}, 'DeltaFList-PUCCH': {'members': [{'name': 'deltaF-PUCCH-Format1', 'type': 'ENUMERATED', 'values': [('deltaF-2', 0), ('deltaF0', 1), ('deltaF2', 2)]}, {'name': 'deltaF-PUCCH-Format1b', 'type': 'ENUMERATED', 'values': [('deltaF1', 0), ('deltaF3', 1), ('deltaF5', 2)]}, {'name': 'deltaF-PUCCH-Format2', 'type': 'ENUMERATED', 'values': [('deltaF-2', 0), ('deltaF0', 1), ('deltaF1', 2), ('deltaF2', 3)]}, {'name': 'deltaF-PUCCH-Format2a', 'type': 'ENUMERATED', 'values': [('deltaF-2', 0), ('deltaF0', 1), ('deltaF2', 2)]}, {'name': 'deltaF-PUCCH-Format2b', 'type': 'ENUMERATED', 'values': [('deltaF-2', 0), ('deltaF0', 1), ('deltaF2', 2)]}], 'type': 'SEQUENCE'}, 'EstablishmentCause': {'type': 'ENUMERATED', 'values': [('emergency', 0), ('highPriorityAccess', 1), ('mt-Access', 2), ('mo-Signalling', 3), ('mo-Data', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7)]}, 'ExplicitListOfARFCNs': {'element': {'type': 'ARFCN-ValueGERAN'}, 'size': [(0, 31)], 'type': 'SEQUENCE ' 'OF'}, 'FilterCoefficient': {'type': 'ENUMERATED', 'values': [('fc0', 0), ('fc1', 1), ('fc2', 2), ('fc3', 3), ('fc4', 4), ('fc5', 5), ('fc6', 6), ('fc7', 7), ('fc8', 8), ('fc9', 9), ('fc11', 10), ('fc13', 11), ('fc15', 12), ('fc17', 13), ('fc19', 14), ('spare1', 15), None]}, 'FreqPriorityEUTRA': {'members': [{'name': 'carrierFreq', 'type': 'ARFCN-ValueEUTRA'}, {'name': 'cellReselectionPriority', 'type': 'CellReselectionPriority'}], 'type': 'SEQUENCE'}, 'FreqPriorityListEUTRA': {'element': {'type': 'FreqPriorityEUTRA'}, 'size': [(1, 'maxFreq')], 'type': 'SEQUENCE ' 'OF'}, 'FreqPriorityListUTRA-FDD': {'element': {'type': 'FreqPriorityUTRA-FDD'}, 'size': [(1, 'maxUTRA-FDD-Carrier')], 'type': 'SEQUENCE ' 'OF'}, 'FreqPriorityListUTRA-TDD': {'element': {'type': 'FreqPriorityUTRA-TDD'}, 'size': [(1, 'maxUTRA-TDD-Carrier')], 'type': 'SEQUENCE ' 'OF'}, 'FreqPriorityUTRA-FDD': {'members': [{'name': 'carrierFreq', 'type': 'ARFCN-ValueUTRA'}, {'name': 'cellReselectionPriority', 'type': 'CellReselectionPriority'}], 'type': 'SEQUENCE'}, 'FreqPriorityUTRA-TDD': {'members': [{'name': 'carrierFreq', 'type': 'ARFCN-ValueUTRA'}, {'name': 'cellReselectionPriority', 'type': 'CellReselectionPriority'}], 'type': 'SEQUENCE'}, 'FreqsPriorityGERAN': {'members': [{'name': 'carrierFreqs', 'type': 'CarrierFreqsGERAN'}, {'name': 'cellReselectionPriority', 'type': 'CellReselectionPriority'}], 'type': 'SEQUENCE'}, 'FreqsPriorityListGERAN': {'element': {'type': 'FreqsPriorityGERAN'}, 'size': [(1, 'maxGNFG')], 'type': 'SEQUENCE ' 'OF'}, 'Handover': {'members': [{'name': 'targetRAT-Type', 'type': 'ENUMERATED', 'values': [('utra', 0), ('geran', 1), ('cdma2000-1XRTT', 2), ('cdma2000-HRPD', 3), ('spare4', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7), None]}, {'name': 'targetRAT-MessageContainer', 'type': 'OCTET ' 'STRING'}, {'name': 'nas-SecurityParamFromEUTRA', 'optional': True, 'size': [1], 'type': 'OCTET ' 'STRING'}, {'name': 'systemInformation', 'optional': True, 'type': 'SI-OrPSI-GERAN'}], 'type': 'SEQUENCE'}, 'HandoverFromEUTRAPreparationRequest': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'handoverFromEUTRAPreparationRequest-r8', 'type': 'HandoverFromEUTRAPreparationRequest-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'HandoverFromEUTRAPreparationRequest-r8-IEs': {'members': [{'name': 'cdma2000-Type', 'type': 'CDMA2000-Type'}, {'name': 'rand', 'optional': True, 'type': 'RAND-CDMA2000'}, {'name': 'mobilityParameters', 'optional': True, 'type': 'MobilityParametersCDMA2000'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'Hysteresis': {'restricted-to': [(0, 30)], 'type': 'INTEGER'}, 'IMSI': {'element': {'type': 'IMSI-Digit'}, 'size': [(6, 21)], 'type': 'SEQUENCE OF'}, 'IMSI-Digit': {'restricted-to': [(0, 9)], 'type': 'INTEGER'}, 'IRAT-ParametersCDMA2000-1XRTT': {'members': [{'name': 'supportedBandList1XRTT', 'type': 'SupportedBandList1XRTT'}, {'name': 'tx-Config1XRTT', 'type': 'ENUMERATED', 'values': [('single', 0), ('dual', 1)]}, {'name': 'rx-Config1XRTT', 'type': 'ENUMERATED', 'values': [('single', 0), ('dual', 1)]}], 'type': 'SEQUENCE'}, 'IRAT-ParametersCDMA2000-HRPD': {'members': [{'name': 'supportedBandListHRPD', 'type': 'SupportedBandListHRPD'}, {'name': 'tx-ConfigHRPD', 'type': 'ENUMERATED', 'values': [('single', 0), ('dual', 1)]}, {'name': 'rx-ConfigHRPD', 'type': 'ENUMERATED', 'values': [('single', 0), ('dual', 1)]}], 'type': 'SEQUENCE'}, 'IRAT-ParametersGERAN': {'members': [{'name': 'supportedBandListGERAN', 'type': 'SupportedBandListGERAN'}, {'name': 'interRAT-PS-HO-ToGERAN', 'type': 'BOOLEAN'}], 'type': 'SEQUENCE'}, 'IRAT-ParametersUTRA-FDD': {'members': [{'name': 'supportedBandListUTRA-FDD', 'type': 'SupportedBandListUTRA-FDD'}], 'type': 'SEQUENCE'}, 'IRAT-ParametersUTRA-TDD128': {'members': [{'name': 'supportedBandListUTRA-TDD128', 'type': 'SupportedBandListUTRA-TDD128'}], 'type': 'SEQUENCE'}, 'IRAT-ParametersUTRA-TDD384': {'members': [{'name': 'supportedBandListUTRA-TDD384', 'type': 'SupportedBandListUTRA-TDD384'}], 'type': 'SEQUENCE'}, 'IRAT-ParametersUTRA-TDD768': {'members': [{'name': 'supportedBandListUTRA-TDD768', 'type': 'SupportedBandListUTRA-TDD768'}], 'type': 'SEQUENCE'}, 'IdleModeMobilityControlInfo': {'members': [{'name': 'freqPriorityListEUTRA', 'optional': True, 'type': 'FreqPriorityListEUTRA'}, {'name': 'freqPriorityListGERAN', 'optional': True, 'type': 'FreqsPriorityListGERAN'}, {'name': 'freqPriorityListUTRA-FDD', 'optional': True, 'type': 'FreqPriorityListUTRA-FDD'}, {'name': 'freqPriorityListUTRA-TDD', 'optional': True, 'type': 'FreqPriorityListUTRA-TDD'}, {'name': 'bandClassPriorityListHRPD', 'optional': True, 'type': 'BandClassPriorityListHRPD'}, {'name': 'bandClassPriorityList1XRTT', 'optional': True, 'type': 'BandClassPriorityList1XRTT'}, {'name': 't320', 'optional': True, 'type': 'ENUMERATED', 'values': [('min5', 0), ('min10', 1), ('min20', 2), ('min30', 3), ('min60', 4), ('min120', 5), ('min180', 6), ('spare1', 7)]}, None], 'type': 'SEQUENCE'}, 'InitialUE-Identity': {'members': [{'name': 's-TMSI', 'type': 'S-TMSI'}, {'name': 'randomValue', 'size': [40], 'type': 'BIT ' 'STRING'}], 'type': 'CHOICE'}, 'InterFreqBandInfo': {'members': [{'name': 'interFreqNeedForGaps', 'type': 'BOOLEAN'}], 'type': 'SEQUENCE'}, 'InterFreqBandList': {'element': {'type': 'InterFreqBandInfo'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE ' 'OF'}, 'InterFreqBlackCellList': {'element': {'type': 'PhysCellIdRange'}, 'size': [(1, 'maxCellBlack')], 'type': 'SEQUENCE ' 'OF'}, 'InterFreqCarrierFreqInfo': {'members': [{'name': 'dl-CarrierFreq', 'type': 'ARFCN-ValueEUTRA'}, {'name': 'q-RxLevMin', 'type': 'Q-RxLevMin'}, {'name': 'p-Max', 'optional': True, 'type': 'P-Max'}, {'name': 't-ReselectionEUTRA', 'type': 'T-Reselection'}, {'name': 't-ReselectionEUTRA-SF', 'optional': True, 'type': 'SpeedStateScaleFactors'}, {'name': 'threshX-High', 'type': 'ReselectionThreshold'}, {'name': 'threshX-Low', 'type': 'ReselectionThreshold'}, {'name': 'allowedMeasBandwidth', 'type': 'AllowedMeasBandwidth'}, {'name': 'presenceAntennaPort1', 'type': 'PresenceAntennaPort1'}, {'name': 'cellReselectionPriority', 'optional': True, 'type': 'CellReselectionPriority'}, {'name': 'neighCellConfig', 'type': 'NeighCellConfig'}, {'default': 'dB0', 'name': 'q-OffsetFreq', 'type': 'Q-OffsetRange'}, {'name': 'interFreqNeighCellList', 'optional': True, 'type': 'InterFreqNeighCellList'}, {'name': 'interFreqBlackCellList', 'optional': True, 'type': 'InterFreqBlackCellList'}, None], 'type': 'SEQUENCE'}, 'InterFreqCarrierFreqList': {'element': {'type': 'InterFreqCarrierFreqInfo'}, 'size': [(1, 'maxFreq')], 'type': 'SEQUENCE ' 'OF'}, 'InterFreqNeighCellInfo': {'members': [{'name': 'physCellId', 'type': 'PhysCellId'}, {'name': 'q-OffsetCell', 'type': 'Q-OffsetRange'}], 'type': 'SEQUENCE'}, 'InterFreqNeighCellList': {'element': {'type': 'InterFreqNeighCellInfo'}, 'size': [(1, 'maxCellInter')], 'type': 'SEQUENCE ' 'OF'}, 'InterRAT-BandInfo': {'members': [{'name': 'interRAT-NeedForGaps', 'type': 'BOOLEAN'}], 'type': 'SEQUENCE'}, 'InterRAT-BandList': {'element': {'type': 'InterRAT-BandInfo'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE ' 'OF'}, 'IntraFreqBlackCellList': {'element': {'type': 'PhysCellIdRange'}, 'size': [(1, 'maxCellBlack')], 'type': 'SEQUENCE ' 'OF'}, 'IntraFreqNeighCellInfo': {'members': [{'name': 'physCellId', 'type': 'PhysCellId'}, {'name': 'q-OffsetCell', 'type': 'Q-OffsetRange'}, None], 'type': 'SEQUENCE'}, 'IntraFreqNeighCellList': {'element': {'type': 'IntraFreqNeighCellInfo'}, 'size': [(1, 'maxCellIntra')], 'type': 'SEQUENCE ' 'OF'}, 'LogicalChannelConfig': {'members': [{'members': [{'name': 'priority', 'restricted-to': [(1, 16)], 'type': 'INTEGER'}, {'name': 'prioritisedBitRate', 'type': 'ENUMERATED', 'values': [('kBps0', 0), ('kBps8', 1), ('kBps16', 2), ('kBps32', 3), ('kBps64', 4), ('kBps128', 5), ('kBps256', 6), ('infinity', 7), ('spare8', 8), ('spare7', 9), ('spare6', 10), ('spare5', 11), ('spare4', 12), ('spare3', 13), ('spare2', 14), ('spare1', 15)]}, {'name': 'bucketSizeDuration', 'type': 'ENUMERATED', 'values': [('ms50', 0), ('ms100', 1), ('ms150', 2), ('ms300', 3), ('ms500', 4), ('ms1000', 5), ('spare2', 6), ('spare1', 7)]}, {'name': 'logicalChannelGroup', 'optional': True, 'restricted-to': [(0, 3)], 'type': 'INTEGER'}], 'name': 'ul-SpecificParameters', 'optional': True, 'type': 'SEQUENCE'}, None], 'type': 'SEQUENCE'}, 'MAC-MainConfig': {'members': [{'members': [{'name': 'maxHARQ-Tx', 'optional': True, 'type': 'ENUMERATED', 'values': [('n1', 0), ('n2', 1), ('n3', 2), ('n4', 3), ('n5', 4), ('n6', 5), ('n7', 6), ('n8', 7), ('n10', 8), ('n12', 9), ('n16', 10), ('n20', 11), ('n24', 12), ('n28', 13), ('spare2', 14), ('spare1', 15)]}, {'name': 'periodicBSR-Timer', 'optional': True, 'type': 'ENUMERATED', 'values': [('sf5', 0), ('sf10', 1), ('sf16', 2), ('sf20', 3), ('sf32', 4), ('sf40', 5), ('sf64', 6), ('sf80', 7), ('sf128', 8), ('sf160', 9), ('sf320', 10), ('sf640', 11), ('sf1280', 12), ('sf2560', 13), ('infinity', 14), ('spare1', 15)]}, {'name': 'retxBSR-Timer', 'type': 'ENUMERATED', 'values': [('sf320', 0), ('sf640', 1), ('sf1280', 2), ('sf2560', 3), ('sf5120', 4), ('sf10240', 5), ('spare2', 6), ('spare1', 7)]}, {'name': 'ttiBundling', 'type': 'BOOLEAN'}], 'name': 'ul-SCH-Config', 'optional': True, 'type': 'SEQUENCE'}, {'name': 'drx-Config', 'optional': True, 'type': 'DRX-Config'}, {'name': 'timeAlignmentTimerDedicated', 'type': 'TimeAlignmentTimer'}, {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'periodicPHR-Timer', 'type': 'ENUMERATED', 'values': [('sf10', 0), ('sf20', 1), ('sf50', 2), ('sf100', 3), ('sf200', 4), ('sf500', 5), ('sf1000', 6), ('infinity', 7)]}, {'name': 'prohibitPHR-Timer', 'type': 'ENUMERATED', 'values': [('sf0', 0), ('sf10', 1), ('sf20', 2), ('sf50', 3), ('sf100', 4), ('sf200', 5), ('sf500', 6), ('sf1000', 7)]}, {'name': 'dl-PathlossChange', 'type': 'ENUMERATED', 'values': [('dB1', 0), ('dB3', 1), ('dB6', 2), ('infinity', 3)]}], 'name': 'setup', 'type': 'SEQUENCE'}], 'name': 'phr-Config', 'optional': True, 'type': 'CHOICE'}, None], 'type': 'SEQUENCE'}, 'MBSFN-SubframeConfig': {'members': [{'name': 'radioframeAllocationPeriod', 'type': 'ENUMERATED', 'values': [('n1', 0), ('n2', 1), ('n4', 2), ('n8', 3), ('n16', 4), ('n32', 5)]}, {'name': 'radioframeAllocationOffset', 'restricted-to': [(0, 7)], 'type': 'INTEGER'}, {'members': [{'name': 'oneFrame', 'size': [6], 'type': 'BIT ' 'STRING'}, {'name': 'fourFrames', 'size': [24], 'type': 'BIT ' 'STRING'}], 'name': 'subframeAllocation', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'MBSFN-SubframeConfigList': {'element': {'type': 'MBSFN-SubframeConfig'}, 'size': [(1, 'maxMBSFN-Allocations')], 'type': 'SEQUENCE ' 'OF'}, 'MCC': {'element': {'type': 'MCC-MNC-Digit'}, 'size': [3], 'type': 'SEQUENCE OF'}, 'MCC-MNC-Digit': {'restricted-to': [(0, 9)], 'type': 'INTEGER'}, 'MMEC': {'size': [8], 'type': 'BIT STRING'}, 'MNC': {'element': {'type': 'MCC-MNC-Digit'}, 'size': [(2, 3)], 'type': 'SEQUENCE OF'}, 'MasterInformationBlock': {'members': [{'name': 'dl-Bandwidth', 'type': 'ENUMERATED', 'values': [('n6', 0), ('n15', 1), ('n25', 2), ('n50', 3), ('n75', 4), ('n100', 5)]}, {'name': 'phich-Config', 'type': 'PHICH-Config'}, {'name': 'systemFrameNumber', 'size': [8], 'type': 'BIT ' 'STRING'}, {'name': 'spare', 'size': [10], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'MeasConfig': {'members': [{'name': 'measObjectToRemoveList', 'optional': True, 'type': 'MeasObjectToRemoveList'}, {'name': 'measObjectToAddModList', 'optional': True, 'type': 'MeasObjectToAddModList'}, {'name': 'reportConfigToRemoveList', 'optional': True, 'type': 'ReportConfigToRemoveList'}, {'name': 'reportConfigToAddModList', 'optional': True, 'type': 'ReportConfigToAddModList'}, {'name': 'measIdToRemoveList', 'optional': True, 'type': 'MeasIdToRemoveList'}, {'name': 'measIdToAddModList', 'optional': True, 'type': 'MeasIdToAddModList'}, {'name': 'quantityConfig', 'optional': True, 'type': 'QuantityConfig'}, {'name': 'measGapConfig', 'optional': True, 'type': 'MeasGapConfig'}, {'name': 's-Measure', 'optional': True, 'type': 'RSRP-Range'}, {'name': 'preRegistrationInfoHRPD', 'optional': True, 'type': 'PreRegistrationInfoHRPD'}, {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'mobilityStateParameters', 'type': 'MobilityStateParameters'}, {'name': 'timeToTrigger-SF', 'type': 'SpeedStateScaleFactors'}], 'name': 'setup', 'type': 'SEQUENCE'}], 'name': 'speedStatePars', 'optional': True, 'type': 'CHOICE'}, None], 'type': 'SEQUENCE'}, 'MeasGapConfig': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'members': [{'name': 'gp0', 'restricted-to': [(0, 39)], 'type': 'INTEGER'}, {'name': 'gp1', 'restricted-to': [(0, 79)], 'type': 'INTEGER'}, None], 'name': 'gapOffset', 'type': 'CHOICE'}], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'MeasId': {'restricted-to': [(1, 'maxMeasId')], 'type': 'INTEGER'}, 'MeasIdToAddMod': {'members': [{'name': 'measId', 'type': 'MeasId'}, {'name': 'measObjectId', 'type': 'MeasObjectId'}, {'name': 'reportConfigId', 'type': 'ReportConfigId'}], 'type': 'SEQUENCE'}, 'MeasIdToAddModList': {'element': {'type': 'MeasIdToAddMod'}, 'size': [(1, 'maxMeasId')], 'type': 'SEQUENCE ' 'OF'}, 'MeasIdToRemoveList': {'element': {'type': 'MeasId'}, 'size': [(1, 'maxMeasId')], 'type': 'SEQUENCE ' 'OF'}, 'MeasObjectCDMA2000': {'members': [{'name': 'cdma2000-Type', 'type': 'CDMA2000-Type'}, {'name': 'carrierFreq', 'type': 'CarrierFreqCDMA2000'}, {'name': 'searchWindowSize', 'optional': True, 'restricted-to': [(0, 15)], 'type': 'INTEGER'}, {'default': 0, 'name': 'offsetFreq', 'type': 'Q-OffsetRangeInterRAT'}, {'name': 'cellsToRemoveList', 'optional': True, 'type': 'CellIndexList'}, {'name': 'cellsToAddModList', 'optional': True, 'type': 'CellsToAddModListCDMA2000'}, {'name': 'cellForWhichToReportCGI', 'optional': True, 'type': 'PhysCellIdCDMA2000'}, None], 'type': 'SEQUENCE'}, 'MeasObjectEUTRA': {'members': [{'name': 'carrierFreq', 'type': 'ARFCN-ValueEUTRA'}, {'name': 'allowedMeasBandwidth', 'type': 'AllowedMeasBandwidth'}, {'name': 'presenceAntennaPort1', 'type': 'PresenceAntennaPort1'}, {'name': 'neighCellConfig', 'type': 'NeighCellConfig'}, {'default': 'dB0', 'name': 'offsetFreq', 'type': 'Q-OffsetRange'}, {'name': 'cellsToRemoveList', 'optional': True, 'type': 'CellIndexList'}, {'name': 'cellsToAddModList', 'optional': True, 'type': 'CellsToAddModList'}, {'name': 'blackCellsToRemoveList', 'optional': True, 'type': 'CellIndexList'}, {'name': 'blackCellsToAddModList', 'optional': True, 'type': 'BlackCellsToAddModList'}, {'name': 'cellForWhichToReportCGI', 'optional': True, 'type': 'PhysCellId'}, None], 'type': 'SEQUENCE'}, 'MeasObjectGERAN': {'members': [{'name': 'carrierFreqs', 'type': 'CarrierFreqsGERAN'}, {'default': 0, 'name': 'offsetFreq', 'type': 'Q-OffsetRangeInterRAT'}, {'default': '0b11111111', 'name': 'ncc-Permitted', 'size': [8], 'type': 'BIT ' 'STRING'}, {'name': 'cellForWhichToReportCGI', 'optional': True, 'type': 'PhysCellIdGERAN'}, None], 'type': 'SEQUENCE'}, 'MeasObjectId': {'restricted-to': [(1, 'maxObjectId')], 'type': 'INTEGER'}, 'MeasObjectToAddMod': {'members': [{'name': 'measObjectId', 'type': 'MeasObjectId'}, {'members': [{'name': 'measObjectEUTRA', 'type': 'MeasObjectEUTRA'}, {'name': 'measObjectUTRA', 'type': 'MeasObjectUTRA'}, {'name': 'measObjectGERAN', 'type': 'MeasObjectGERAN'}, {'name': 'measObjectCDMA2000', 'type': 'MeasObjectCDMA2000'}, None], 'name': 'measObject', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'MeasObjectToAddModList': {'element': {'type': 'MeasObjectToAddMod'}, 'size': [(1, 'maxObjectId')], 'type': 'SEQUENCE ' 'OF'}, 'MeasObjectToRemoveList': {'element': {'type': 'MeasObjectId'}, 'size': [(1, 'maxObjectId')], 'type': 'SEQUENCE ' 'OF'}, 'MeasObjectUTRA': {'members': [{'name': 'carrierFreq', 'type': 'ARFCN-ValueUTRA'}, {'default': 0, 'name': 'offsetFreq', 'type': 'Q-OffsetRangeInterRAT'}, {'name': 'cellsToRemoveList', 'optional': True, 'type': 'CellIndexList'}, {'members': [{'name': 'cellsToAddModListUTRA-FDD', 'type': 'CellsToAddModListUTRA-FDD'}, {'name': 'cellsToAddModListUTRA-TDD', 'type': 'CellsToAddModListUTRA-TDD'}], 'name': 'cellsToAddModList', 'optional': True, 'type': 'CHOICE'}, {'members': [{'name': 'utra-FDD', 'type': 'PhysCellIdUTRA-FDD'}, {'name': 'utra-TDD', 'type': 'PhysCellIdUTRA-TDD'}], 'name': 'cellForWhichToReportCGI', 'optional': True, 'type': 'CHOICE'}, None], 'type': 'SEQUENCE'}, 'MeasParameters': {'members': [{'name': 'bandListEUTRA', 'type': 'BandListEUTRA'}], 'type': 'SEQUENCE'}, 'MeasResultCDMA2000': {'members': [{'name': 'physCellId', 'type': 'PhysCellIdCDMA2000'}, {'name': 'cgi-Info', 'optional': True, 'type': 'CellGlobalIdCDMA2000'}, {'members': [{'name': 'pilotPnPhase', 'optional': True, 'restricted-to': [(0, 32767)], 'type': 'INTEGER'}, {'name': 'pilotStrength', 'restricted-to': [(0, 63)], 'type': 'INTEGER'}, None], 'name': 'measResult', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'MeasResultEUTRA': {'members': [{'name': 'physCellId', 'type': 'PhysCellId'}, {'members': [{'name': 'cellGlobalId', 'type': 'CellGlobalIdEUTRA'}, {'name': 'trackingAreaCode', 'type': 'TrackingAreaCode'}, {'name': 'plmn-IdentityList', 'optional': True, 'type': 'PLMN-IdentityList2'}], 'name': 'cgi-Info', 'optional': True, 'type': 'SEQUENCE'}, {'members': [{'name': 'rsrpResult', 'optional': True, 'type': 'RSRP-Range'}, {'name': 'rsrqResult', 'optional': True, 'type': 'RSRQ-Range'}, None], 'name': 'measResult', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'MeasResultGERAN': {'members': [{'name': 'carrierFreq', 'type': 'CarrierFreqGERAN'}, {'name': 'physCellId', 'type': 'PhysCellIdGERAN'}, {'members': [{'name': 'cellGlobalId', 'type': 'CellGlobalIdGERAN'}, {'name': 'routingAreaCode', 'optional': True, 'size': [8], 'type': 'BIT ' 'STRING'}], 'name': 'cgi-Info', 'optional': True, 'type': 'SEQUENCE'}, {'members': [{'name': 'rssi', 'restricted-to': [(0, 63)], 'type': 'INTEGER'}, None], 'name': 'measResult', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'MeasResultListCDMA2000': {'element': {'type': 'MeasResultCDMA2000'}, 'size': [(1, 'maxCellReport')], 'type': 'SEQUENCE ' 'OF'}, 'MeasResultListEUTRA': {'element': {'type': 'MeasResultEUTRA'}, 'size': [(1, 'maxCellReport')], 'type': 'SEQUENCE ' 'OF'}, 'MeasResultListGERAN': {'element': {'type': 'MeasResultGERAN'}, 'size': [(1, 'maxCellReport')], 'type': 'SEQUENCE ' 'OF'}, 'MeasResultListUTRA': {'element': {'type': 'MeasResultUTRA'}, 'size': [(1, 'maxCellReport')], 'type': 'SEQUENCE ' 'OF'}, 'MeasResultUTRA': {'members': [{'members': [{'name': 'fdd', 'type': 'PhysCellIdUTRA-FDD'}, {'name': 'tdd', 'type': 'PhysCellIdUTRA-TDD'}], 'name': 'physCellId', 'type': 'CHOICE'}, {'members': [{'name': 'cellGlobalId', 'type': 'CellGlobalIdUTRA'}, {'name': 'locationAreaCode', 'optional': True, 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'routingAreaCode', 'optional': True, 'size': [8], 'type': 'BIT ' 'STRING'}, {'name': 'plmn-IdentityList', 'optional': True, 'type': 'PLMN-IdentityList2'}], 'name': 'cgi-Info', 'optional': True, 'type': 'SEQUENCE'}, {'members': [{'name': 'utra-RSCP', 'optional': True, 'restricted-to': [(-5, 91)], 'type': 'INTEGER'}, {'name': 'utra-EcN0', 'optional': True, 'restricted-to': [(0, 49)], 'type': 'INTEGER'}, None], 'name': 'measResult', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'MeasResults': {'members': [{'name': 'measId', 'type': 'MeasId'}, {'members': [{'name': 'rsrpResult', 'type': 'RSRP-Range'}, {'name': 'rsrqResult', 'type': 'RSRQ-Range'}], 'name': 'measResultServCell', 'type': 'SEQUENCE'}, {'members': [{'name': 'measResultListEUTRA', 'type': 'MeasResultListEUTRA'}, {'name': 'measResultListUTRA', 'type': 'MeasResultListUTRA'}, {'name': 'measResultListGERAN', 'type': 'MeasResultListGERAN'}, {'name': 'measResultsCDMA2000', 'type': 'MeasResultsCDMA2000'}, None], 'name': 'measResultNeighCells', 'optional': True, 'type': 'CHOICE'}, None], 'type': 'SEQUENCE'}, 'MeasResultsCDMA2000': {'members': [{'name': 'preRegistrationStatusHRPD', 'type': 'BOOLEAN'}, {'name': 'measResultListCDMA2000', 'type': 'MeasResultListCDMA2000'}], 'type': 'SEQUENCE'}, 'MeasurementReport': {'members': [{'members': [{'members': [{'name': 'measurementReport-r8', 'type': 'MeasurementReport-r8-IEs'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'MeasurementReport-r8-IEs': {'members': [{'name': 'measResults', 'type': 'MeasResults'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'MobilityControlInfo': {'members': [{'name': 'targetPhysCellId', 'type': 'PhysCellId'}, {'name': 'carrierFreq', 'optional': True, 'type': 'CarrierFreqEUTRA'}, {'name': 'carrierBandwidth', 'optional': True, 'type': 'CarrierBandwidthEUTRA'}, {'name': 'additionalSpectrumEmission', 'optional': True, 'type': 'AdditionalSpectrumEmission'}, {'name': 't304', 'type': 'ENUMERATED', 'values': [('ms50', 0), ('ms100', 1), ('ms150', 2), ('ms200', 3), ('ms500', 4), ('ms1000', 5), ('ms2000', 6), ('spare1', 7)]}, {'name': 'newUE-Identity', 'type': 'C-RNTI'}, {'name': 'radioResourceConfigCommon', 'type': 'RadioResourceConfigCommon'}, {'name': 'rach-ConfigDedicated', 'optional': True, 'type': 'RACH-ConfigDedicated'}, None], 'type': 'SEQUENCE'}, 'MobilityFromEUTRACommand': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'mobilityFromEUTRACommand-r8', 'type': 'MobilityFromEUTRACommand-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'MobilityFromEUTRACommand-r8-IEs': {'members': [{'name': 'cs-FallbackIndicator', 'type': 'BOOLEAN'}, {'members': [{'name': 'handover', 'type': 'Handover'}, {'name': 'cellChangeOrder', 'type': 'CellChangeOrder'}], 'name': 'purpose', 'type': 'CHOICE'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'MobilityParametersCDMA2000': {'type': 'OCTET ' 'STRING'}, 'MobilityStateParameters': {'members': [{'name': 't-Evaluation', 'type': 'ENUMERATED', 'values': [('s30', 0), ('s60', 1), ('s120', 2), ('s180', 3), ('s240', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7)]}, {'name': 't-HystNormal', 'type': 'ENUMERATED', 'values': [('s30', 0), ('s60', 1), ('s120', 2), ('s180', 3), ('s240', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7)]}, {'name': 'n-CellChangeMedium', 'restricted-to': [(1, 16)], 'type': 'INTEGER'}, {'name': 'n-CellChangeHigh', 'restricted-to': [(1, 16)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'N1-PUCCH-AN-PersistentList': {'element': {'restricted-to': [(0, 2047)], 'type': 'INTEGER'}, 'size': [(1, 4)], 'type': 'SEQUENCE ' 'OF'}, 'NeighCellCDMA2000': {'members': [{'name': 'bandClass', 'type': 'BandclassCDMA2000'}, {'name': 'neighCellsPerFreqList', 'type': 'NeighCellsPerBandclassListCDMA2000'}], 'type': 'SEQUENCE'}, 'NeighCellConfig': {'size': [2], 'type': 'BIT STRING'}, 'NeighCellListCDMA2000': {'element': {'type': 'NeighCellCDMA2000'}, 'size': [(1, 16)], 'type': 'SEQUENCE ' 'OF'}, 'NeighCellsPerBandclassCDMA2000': {'members': [{'name': 'arfcn', 'type': 'ARFCN-ValueCDMA2000'}, {'name': 'physCellIdList', 'type': 'PhysCellIdListCDMA2000'}], 'type': 'SEQUENCE'}, 'NeighCellsPerBandclassListCDMA2000': {'element': {'type': 'NeighCellsPerBandclassCDMA2000'}, 'size': [(1, 16)], 'type': 'SEQUENCE ' 'OF'}, 'NextHopChainingCount': {'restricted-to': [(0, 7)], 'type': 'INTEGER'}, 'P-Max': {'restricted-to': [(-30, 33)], 'type': 'INTEGER'}, 'PCCH-Config': {'members': [{'name': 'defaultPagingCycle', 'type': 'ENUMERATED', 'values': [('rf32', 0), ('rf64', 1), ('rf128', 2), ('rf256', 3)]}, {'name': 'nB', 'type': 'ENUMERATED', 'values': [('fourT', 0), ('twoT', 1), ('oneT', 2), ('halfT', 3), ('quarterT', 4), ('oneEighthT', 5), ('oneSixteenthT', 6), ('oneThirtySecondT', 7)]}], 'type': 'SEQUENCE'}, 'PCCH-Message': {'members': [{'name': 'message', 'type': 'PCCH-MessageType'}], 'type': 'SEQUENCE'}, 'PCCH-MessageType': {'members': [{'members': [{'name': 'paging', 'type': 'Paging'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'messageClassExtension', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'PDCP-Config': {'members': [{'name': 'discardTimer', 'optional': True, 'type': 'ENUMERATED', 'values': [('ms50', 0), ('ms100', 1), ('ms150', 2), ('ms300', 3), ('ms500', 4), ('ms750', 5), ('ms1500', 6), ('infinity', 7)]}, {'members': [{'name': 'statusReportRequired', 'type': 'BOOLEAN'}], 'name': 'rlc-AM', 'optional': True, 'type': 'SEQUENCE'}, {'members': [{'name': 'pdcp-SN-Size', 'type': 'ENUMERATED', 'values': [('len7bits', 0), ('len12bits', 1)]}], 'name': 'rlc-UM', 'optional': True, 'type': 'SEQUENCE'}, {'members': [{'name': 'notUsed', 'type': 'NULL'}, {'members': [{'default': 15, 'name': 'maxCID', 'restricted-to': [(1, 16383)], 'type': 'INTEGER'}, {'members': [{'name': 'profile0x0001', 'type': 'BOOLEAN'}, {'name': 'profile0x0002', 'type': 'BOOLEAN'}, {'name': 'profile0x0003', 'type': 'BOOLEAN'}, {'name': 'profile0x0004', 'type': 'BOOLEAN'}, {'name': 'profile0x0006', 'type': 'BOOLEAN'}, {'name': 'profile0x0101', 'type': 'BOOLEAN'}, {'name': 'profile0x0102', 'type': 'BOOLEAN'}, {'name': 'profile0x0103', 'type': 'BOOLEAN'}, {'name': 'profile0x0104', 'type': 'BOOLEAN'}], 'name': 'profiles', 'type': 'SEQUENCE'}, None], 'name': 'rohc', 'type': 'SEQUENCE'}], 'name': 'headerCompression', 'type': 'CHOICE'}, None], 'type': 'SEQUENCE'}, 'PDCP-Parameters': {'members': [{'members': [{'name': 'profile0x0001', 'type': 'BOOLEAN'}, {'name': 'profile0x0002', 'type': 'BOOLEAN'}, {'name': 'profile0x0003', 'type': 'BOOLEAN'}, {'name': 'profile0x0004', 'type': 'BOOLEAN'}, {'name': 'profile0x0006', 'type': 'BOOLEAN'}, {'name': 'profile0x0101', 'type': 'BOOLEAN'}, {'name': 'profile0x0102', 'type': 'BOOLEAN'}, {'name': 'profile0x0103', 'type': 'BOOLEAN'}, {'name': 'profile0x0104', 'type': 'BOOLEAN'}], 'name': 'supportedROHC-Profiles', 'type': 'SEQUENCE'}, {'default': 'cs16', 'name': 'maxNumberROHC-ContextSessions', 'type': 'ENUMERATED', 'values': [('cs2', 0), ('cs4', 1), ('cs8', 2), ('cs12', 3), ('cs16', 4), ('cs24', 5), ('cs32', 6), ('cs48', 7), ('cs64', 8), ('cs128', 9), ('cs256', 10), ('cs512', 11), ('cs1024', 12), ('cs16384', 13), ('spare2', 14), ('spare1', 15)]}, None], 'type': 'SEQUENCE'}, 'PDSCH-ConfigCommon': {'members': [{'name': 'referenceSignalPower', 'restricted-to': [(-60, 50)], 'type': 'INTEGER'}, {'name': 'p-b', 'restricted-to': [(0, 3)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'PDSCH-ConfigDedicated': {'members': [{'name': 'p-a', 'type': 'ENUMERATED', 'values': [('dB-6', 0), ('dB-4dot77', 1), ('dB-3', 2), ('dB-1dot77', 3), ('dB0', 4), ('dB1', 5), ('dB2', 6), ('dB3', 7)]}], 'type': 'SEQUENCE'}, 'PHICH-Config': {'members': [{'name': 'phich-Duration', 'type': 'ENUMERATED', 'values': [('normal', 0), ('extended', 1)]}, {'name': 'phich-Resource', 'type': 'ENUMERATED', 'values': [('oneSixth', 0), ('half', 1), ('one', 2), ('two', 3)]}], 'type': 'SEQUENCE'}, 'PLMN-Identity': {'members': [{'name': 'mcc', 'optional': True, 'type': 'MCC'}, {'name': 'mnc', 'type': 'MNC'}], 'type': 'SEQUENCE'}, 'PLMN-IdentityInfo': {'members': [{'name': 'plmn-Identity', 'type': 'PLMN-Identity'}, {'name': 'cellReservedForOperatorUse', 'type': 'ENUMERATED', 'values': [('reserved', 0), ('notReserved', 1)]}], 'type': 'SEQUENCE'}, 'PLMN-IdentityList': {'element': {'type': 'PLMN-IdentityInfo'}, 'size': [(1, 6)], 'type': 'SEQUENCE ' 'OF'}, 'PLMN-IdentityList2': {'element': {'type': 'PLMN-Identity'}, 'size': [(1, 5)], 'type': 'SEQUENCE ' 'OF'}, 'PRACH-Config': {'members': [{'name': 'rootSequenceIndex', 'restricted-to': [(0, 837)], 'type': 'INTEGER'}, {'name': 'prach-ConfigInfo', 'optional': True, 'type': 'PRACH-ConfigInfo'}], 'type': 'SEQUENCE'}, 'PRACH-ConfigInfo': {'members': [{'name': 'prach-ConfigIndex', 'restricted-to': [(0, 63)], 'type': 'INTEGER'}, {'name': 'highSpeedFlag', 'type': 'BOOLEAN'}, {'name': 'zeroCorrelationZoneConfig', 'restricted-to': [(0, 15)], 'type': 'INTEGER'}, {'name': 'prach-FreqOffset', 'restricted-to': [(0, 94)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'PRACH-ConfigSIB': {'members': [{'name': 'rootSequenceIndex', 'restricted-to': [(0, 837)], 'type': 'INTEGER'}, {'name': 'prach-ConfigInfo', 'type': 'PRACH-ConfigInfo'}], 'type': 'SEQUENCE'}, 'PUCCH-ConfigCommon': {'members': [{'name': 'deltaPUCCH-Shift', 'type': 'ENUMERATED', 'values': [('ds1', 0), ('ds2', 1), ('ds3', 2)]}, {'name': 'nRB-CQI', 'restricted-to': [(0, 98)], 'type': 'INTEGER'}, {'name': 'nCS-AN', 'restricted-to': [(0, 7)], 'type': 'INTEGER'}, {'name': 'n1PUCCH-AN', 'restricted-to': [(0, 2047)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'PUCCH-ConfigDedicated': {'members': [{'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'repetitionFactor', 'type': 'ENUMERATED', 'values': [('n2', 0), ('n4', 1), ('n6', 2), ('spare1', 3)]}, {'name': 'n1PUCCH-AN-Rep', 'restricted-to': [(0, 2047)], 'type': 'INTEGER'}], 'name': 'setup', 'type': 'SEQUENCE'}], 'name': 'ackNackRepetition', 'type': 'CHOICE'}, {'name': 'tdd-AckNackFeedbackMode', 'optional': True, 'type': 'ENUMERATED', 'values': [('bundling', 0), ('multiplexing', 1)]}], 'type': 'SEQUENCE'}, 'PUSCH-ConfigCommon': {'members': [{'members': [{'name': 'n-SB', 'restricted-to': [(1, 4)], 'type': 'INTEGER'}, {'name': 'hoppingMode', 'type': 'ENUMERATED', 'values': [('interSubFrame', 0), ('intraAndInterSubFrame', 1)]}, {'name': 'pusch-HoppingOffset', 'restricted-to': [(0, 98)], 'type': 'INTEGER'}, {'name': 'enable64QAM', 'type': 'BOOLEAN'}], 'name': 'pusch-ConfigBasic', 'type': 'SEQUENCE'}, {'name': 'ul-ReferenceSignalsPUSCH', 'type': 'UL-ReferenceSignalsPUSCH'}], 'type': 'SEQUENCE'}, 'PUSCH-ConfigDedicated': {'members': [{'name': 'betaOffset-ACK-Index', 'restricted-to': [(0, 15)], 'type': 'INTEGER'}, {'name': 'betaOffset-RI-Index', 'restricted-to': [(0, 15)], 'type': 'INTEGER'}, {'name': 'betaOffset-CQI-Index', 'restricted-to': [(0, 15)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'Paging': {'members': [{'name': 'pagingRecordList', 'optional': True, 'type': 'PagingRecordList'}, {'name': 'systemInfoModification', 'optional': True, 'type': 'ENUMERATED', 'values': [('true', 0)]}, {'name': 'etws-Indication', 'optional': True, 'type': 'ENUMERATED', 'values': [('true', 0)]}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'PagingRecord': {'members': [{'name': 'ue-Identity', 'type': 'PagingUE-Identity'}, {'name': 'cn-Domain', 'type': 'ENUMERATED', 'values': [('ps', 0), ('cs', 1)]}, None], 'type': 'SEQUENCE'}, 'PagingRecordList': {'element': {'type': 'PagingRecord'}, 'size': [(1, 'maxPageRec')], 'type': 'SEQUENCE ' 'OF'}, 'PagingUE-Identity': {'members': [{'name': 's-TMSI', 'type': 'S-TMSI'}, {'name': 'imsi', 'type': 'IMSI'}, None], 'type': 'CHOICE'}, 'PhyLayerParameters': {'members': [{'name': 'ue-TxAntennaSelectionSupported', 'type': 'BOOLEAN'}, {'name': 'ue-SpecificRefSigsSupported', 'type': 'BOOLEAN'}], 'type': 'SEQUENCE'}, 'PhysCellId': {'restricted-to': [(0, 503)], 'type': 'INTEGER'}, 'PhysCellIdCDMA2000': {'restricted-to': [(0, 'maxPNOffset')], 'type': 'INTEGER'}, 'PhysCellIdGERAN': {'members': [{'name': 'networkColourCode', 'size': [3], 'type': 'BIT ' 'STRING'}, {'name': 'baseStationColourCode', 'size': [3], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'PhysCellIdListCDMA2000': {'element': {'type': 'PhysCellIdCDMA2000'}, 'size': [(1, 16)], 'type': 'SEQUENCE ' 'OF'}, 'PhysCellIdRange': {'members': [{'name': 'start', 'type': 'PhysCellId'}, {'name': 'range', 'optional': True, 'type': 'ENUMERATED', 'values': [('n4', 0), ('n8', 1), ('n12', 2), ('n16', 3), ('n24', 4), ('n32', 5), ('n48', 6), ('n64', 7), ('n84', 8), ('n96', 9), ('n128', 10), ('n168', 11), ('n252', 12), ('n504', 13), ('spare2', 14), ('spare1', 15)]}], 'type': 'SEQUENCE'}, 'PhysCellIdUTRA-FDD': {'restricted-to': [(0, 511)], 'type': 'INTEGER'}, 'PhysCellIdUTRA-TDD': {'restricted-to': [(0, 127)], 'type': 'INTEGER'}, 'PhysicalConfigDedicated': {'members': [{'name': 'pdsch-ConfigDedicated', 'optional': True, 'type': 'PDSCH-ConfigDedicated'}, {'name': 'pucch-ConfigDedicated', 'optional': True, 'type': 'PUCCH-ConfigDedicated'}, {'name': 'pusch-ConfigDedicated', 'optional': True, 'type': 'PUSCH-ConfigDedicated'}, {'name': 'uplinkPowerControlDedicated', 'optional': True, 'type': 'UplinkPowerControlDedicated'}, {'name': 'tpc-PDCCH-ConfigPUCCH', 'optional': True, 'type': 'TPC-PDCCH-Config'}, {'name': 'tpc-PDCCH-ConfigPUSCH', 'optional': True, 'type': 'TPC-PDCCH-Config'}, {'name': 'cqi-ReportConfig', 'optional': True, 'type': 'CQI-ReportConfig'}, {'name': 'soundingRS-UL-ConfigDedicated', 'optional': True, 'type': 'SoundingRS-UL-ConfigDedicated'}, {'members': [{'name': 'explicitValue', 'type': 'AntennaInfoDedicated'}, {'name': 'defaultValue', 'type': 'NULL'}], 'name': 'antennaInfo', 'optional': True, 'type': 'CHOICE'}, {'name': 'schedulingRequestConfig', 'optional': True, 'type': 'SchedulingRequestConfig'}, None], 'type': 'SEQUENCE'}, 'PollByte': {'type': 'ENUMERATED', 'values': [('kB25', 0), ('kB50', 1), ('kB75', 2), ('kB100', 3), ('kB125', 4), ('kB250', 5), ('kB375', 6), ('kB500', 7), ('kB750', 8), ('kB1000', 9), ('kB1250', 10), ('kB1500', 11), ('kB2000', 12), ('kB3000', 13), ('kBinfinity', 14), ('spare1', 15)]}, 'PollPDU': {'type': 'ENUMERATED', 'values': [('p4', 0), ('p8', 1), ('p16', 2), ('p32', 3), ('p64', 4), ('p128', 5), ('p256', 6), ('pInfinity', 7)]}, 'PreRegistrationInfoHRPD': {'members': [{'name': 'preRegistrationAllowed', 'type': 'BOOLEAN'}, {'name': 'preRegistrationZoneId', 'optional': True, 'type': 'PreRegistrationZoneIdHRPD'}, {'name': 'secondaryPreRegistrationZoneIdList', 'optional': True, 'type': 'SecondaryPreRegistrationZoneIdListHRPD'}], 'type': 'SEQUENCE'}, 'PreRegistrationZoneIdHRPD': {'restricted-to': [(0, 255)], 'type': 'INTEGER'}, 'PresenceAntennaPort1': {'type': 'BOOLEAN'}, 'Q-OffsetRange': {'type': 'ENUMERATED', 'values': [('dB-24', 0), ('dB-22', 1), ('dB-20', 2), ('dB-18', 3), ('dB-16', 4), ('dB-14', 5), ('dB-12', 6), ('dB-10', 7), ('dB-8', 8), ('dB-6', 9), ('dB-5', 10), ('dB-4', 11), ('dB-3', 12), ('dB-2', 13), ('dB-1', 14), ('dB0', 15), ('dB1', 16), ('dB2', 17), ('dB3', 18), ('dB4', 19), ('dB5', 20), ('dB6', 21), ('dB8', 22), ('dB10', 23), ('dB12', 24), ('dB14', 25), ('dB16', 26), ('dB18', 27), ('dB20', 28), ('dB22', 29), ('dB24', 30)]}, 'Q-OffsetRangeInterRAT': {'restricted-to': [(-15, 15)], 'type': 'INTEGER'}, 'Q-RxLevMin': {'restricted-to': [(-70, -22)], 'type': 'INTEGER'}, 'QuantityConfig': {'members': [{'name': 'quantityConfigEUTRA', 'optional': True, 'type': 'QuantityConfigEUTRA'}, {'name': 'quantityConfigUTRA', 'optional': True, 'type': 'QuantityConfigUTRA'}, {'name': 'quantityConfigGERAN', 'optional': True, 'type': 'QuantityConfigGERAN'}, {'name': 'quantityConfigCDMA2000', 'optional': True, 'type': 'QuantityConfigCDMA2000'}, None], 'type': 'SEQUENCE'}, 'QuantityConfigCDMA2000': {'members': [{'name': 'measQuantityCDMA2000', 'type': 'ENUMERATED', 'values': [('pilotStrength', 0), ('pilotPnPhaseAndPilotStrength', 1)]}], 'type': 'SEQUENCE'}, 'QuantityConfigEUTRA': {'members': [{'default': 'fc4', 'name': 'filterCoefficientRSRP', 'type': 'FilterCoefficient'}, {'default': 'fc4', 'name': 'filterCoefficientRSRQ', 'type': 'FilterCoefficient'}], 'type': 'SEQUENCE'}, 'QuantityConfigGERAN': {'members': [{'name': 'measQuantityGERAN', 'type': 'ENUMERATED', 'values': [('rssi', 0)]}, {'default': 'fc2', 'name': 'filterCoefficient', 'type': 'FilterCoefficient'}], 'type': 'SEQUENCE'}, 'QuantityConfigUTRA': {'members': [{'name': 'measQuantityUTRA-FDD', 'type': 'ENUMERATED', 'values': [('cpich-RSCP', 0), ('cpich-EcN0', 1)]}, {'name': 'measQuantityUTRA-TDD', 'type': 'ENUMERATED', 'values': [('pccpch-RSCP', 0)]}, {'default': 'fc4', 'name': 'filterCoefficient', 'type': 'FilterCoefficient'}], 'type': 'SEQUENCE'}, 'RACH-ConfigCommon': {'members': [{'members': [{'name': 'numberOfRA-Preambles', 'type': 'ENUMERATED', 'values': [('n4', 0), ('n8', 1), ('n12', 2), ('n16', 3), ('n20', 4), ('n24', 5), ('n28', 6), ('n32', 7), ('n36', 8), ('n40', 9), ('n44', 10), ('n48', 11), ('n52', 12), ('n56', 13), ('n60', 14), ('n64', 15)]}, {'members': [{'name': 'sizeOfRA-PreamblesGroupA', 'type': 'ENUMERATED', 'values': [('n4', 0), ('n8', 1), ('n12', 2), ('n16', 3), ('n20', 4), ('n24', 5), ('n28', 6), ('n32', 7), ('n36', 8), ('n40', 9), ('n44', 10), ('n48', 11), ('n52', 12), ('n56', 13), ('n60', 14)]}, {'name': 'messageSizeGroupA', 'type': 'ENUMERATED', 'values': [('b56', 0), ('b144', 1), ('b208', 2), ('b256', 3)]}, {'name': 'messagePowerOffsetGroupB', 'type': 'ENUMERATED', 'values': [('minusinfinity', 0), ('dB0', 1), ('dB5', 2), ('dB8', 3), ('dB10', 4), ('dB12', 5), ('dB15', 6), ('dB18', 7)]}, None], 'name': 'preamblesGroupAConfig', 'optional': True, 'type': 'SEQUENCE'}], 'name': 'preambleInfo', 'type': 'SEQUENCE'}, {'members': [{'name': 'powerRampingStep', 'type': 'ENUMERATED', 'values': [('dB0', 0), ('dB2', 1), ('dB4', 2), ('dB6', 3)]}, {'name': 'preambleInitialReceivedTargetPower', 'type': 'ENUMERATED', 'values': [('dBm-120', 0), ('dBm-118', 1), ('dBm-116', 2), ('dBm-114', 3), ('dBm-112', 4), ('dBm-110', 5), ('dBm-108', 6), ('dBm-106', 7), ('dBm-104', 8), ('dBm-102', 9), ('dBm-100', 10), ('dBm-98', 11), ('dBm-96', 12), ('dBm-94', 13), ('dBm-92', 14), ('dBm-90', 15)]}], 'name': 'powerRampingParameters', 'type': 'SEQUENCE'}, {'members': [{'name': 'preambleTransMax', 'type': 'ENUMERATED', 'values': [('n3', 0), ('n4', 1), ('n5', 2), ('n6', 3), ('n7', 4), ('n8', 5), ('n10', 6), ('n20', 7), ('n50', 8), ('n100', 9), ('n200', 10)]}, {'name': 'ra-ResponseWindowSize', 'type': 'ENUMERATED', 'values': [('sf2', 0), ('sf3', 1), ('sf4', 2), ('sf5', 3), ('sf6', 4), ('sf7', 5), ('sf8', 6), ('sf10', 7)]}, {'name': 'mac-ContentionResolutionTimer', 'type': 'ENUMERATED', 'values': [('sf8', 0), ('sf16', 1), ('sf24', 2), ('sf32', 3), ('sf40', 4), ('sf48', 5), ('sf56', 6), ('sf64', 7)]}], 'name': 'ra-SupervisionInfo', 'type': 'SEQUENCE'}, {'name': 'maxHARQ-Msg3Tx', 'restricted-to': [(1, 8)], 'type': 'INTEGER'}, None], 'type': 'SEQUENCE'}, 'RACH-ConfigDedicated': {'members': [{'name': 'ra-PreambleIndex', 'restricted-to': [(0, 63)], 'type': 'INTEGER'}, {'name': 'ra-PRACH-MaskIndex', 'restricted-to': [(0, 15)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'RAND-CDMA2000': {'size': [32], 'type': 'BIT STRING'}, 'RAT-Type': {'type': 'ENUMERATED', 'values': [('eutra', 0), ('utra', 1), ('geran-cs', 2), ('geran-ps', 3), ('cdma2000-1XRTT', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7), None]}, 'RF-Parameters': {'members': [{'name': 'supportedBandListEUTRA', 'type': 'SupportedBandListEUTRA'}], 'type': 'SEQUENCE'}, 'RLC-Config': {'members': [{'members': [{'name': 'ul-AM-RLC', 'type': 'UL-AM-RLC'}, {'name': 'dl-AM-RLC', 'type': 'DL-AM-RLC'}], 'name': 'am', 'type': 'SEQUENCE'}, {'members': [{'name': 'ul-UM-RLC', 'type': 'UL-UM-RLC'}, {'name': 'dl-UM-RLC', 'type': 'DL-UM-RLC'}], 'name': 'um-Bi-Directional', 'type': 'SEQUENCE'}, {'members': [{'name': 'ul-UM-RLC', 'type': 'UL-UM-RLC'}], 'name': 'um-Uni-Directional-UL', 'type': 'SEQUENCE'}, {'members': [{'name': 'dl-UM-RLC', 'type': 'DL-UM-RLC'}], 'name': 'um-Uni-Directional-DL', 'type': 'SEQUENCE'}, None], 'type': 'CHOICE'}, 'RRC-TransactionIdentifier': {'restricted-to': [(0, 3)], 'type': 'INTEGER'}, 'RRCConnectionReconfiguration': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'rrcConnectionReconfiguration-r8', 'type': 'RRCConnectionReconfiguration-r8-IEs'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReconfiguration-r8-IEs': {'members': [{'name': 'measConfig', 'optional': True, 'type': 'MeasConfig'}, {'name': 'mobilityControlInfo', 'optional': True, 'type': 'MobilityControlInfo'}, {'element': {'type': 'DedicatedInfoNAS'}, 'name': 'dedicatedInfoNASList', 'optional': True, 'size': [(1, 'maxDRB')], 'type': 'SEQUENCE ' 'OF'}, {'name': 'radioResourceConfigDedicated', 'optional': True, 'type': 'RadioResourceConfigDedicated'}, {'name': 'securityConfigHO', 'optional': True, 'type': 'SecurityConfigHO'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReconfigurationComplete': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'name': 'rrcConnectionReconfigurationComplete-r8', 'type': 'RRCConnectionReconfigurationComplete-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReconfigurationComplete-r8-IEs': {'members': [{'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReestablishment': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'rrcConnectionReestablishment-r8', 'type': 'RRCConnectionReestablishment-r8-IEs'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReestablishment-r8-IEs': {'members': [{'name': 'radioResourceConfigDedicated', 'type': 'RadioResourceConfigDedicated'}, {'name': 'nextHopChainingCount', 'type': 'NextHopChainingCount'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReestablishmentComplete': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'name': 'rrcConnectionReestablishmentComplete-r8', 'type': 'RRCConnectionReestablishmentComplete-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReestablishmentComplete-r8-IEs': {'members': [{'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReestablishmentReject': {'members': [{'members': [{'name': 'rrcConnectionReestablishmentReject-r8', 'type': 'RRCConnectionReestablishmentReject-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReestablishmentReject-r8-IEs': {'members': [{'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReestablishmentRequest': {'members': [{'members': [{'name': 'rrcConnectionReestablishmentRequest-r8', 'type': 'RRCConnectionReestablishmentRequest-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReestablishmentRequest-r8-IEs': {'members': [{'name': 'ue-Identity', 'type': 'ReestabUE-Identity'}, {'name': 'reestablishmentCause', 'type': 'ReestablishmentCause'}, {'name': 'spare', 'size': [2], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'RRCConnectionReject': {'members': [{'members': [{'members': [{'name': 'rrcConnectionReject-r8', 'type': 'RRCConnectionReject-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionReject-r8-IEs': {'members': [{'name': 'waitTime', 'restricted-to': [(1, 16)], 'type': 'INTEGER'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RRCConnectionRelease': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'rrcConnectionRelease-r8', 'type': 'RRCConnectionRelease-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionRelease-r8-IEs': {'members': [{'name': 'releaseCause', 'type': 'ReleaseCause'}, {'name': 'redirectedCarrierInfo', 'optional': True, 'type': 'RedirectedCarrierInfo'}, {'name': 'idleModeMobilityControlInfo', 'optional': True, 'type': 'IdleModeMobilityControlInfo'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RRCConnectionRequest': {'members': [{'members': [{'name': 'rrcConnectionRequest-r8', 'type': 'RRCConnectionRequest-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionRequest-r8-IEs': {'members': [{'name': 'ue-Identity', 'type': 'InitialUE-Identity'}, {'name': 'establishmentCause', 'type': 'EstablishmentCause'}, {'name': 'spare', 'size': [1], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'RRCConnectionSetup': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'rrcConnectionSetup-r8', 'type': 'RRCConnectionSetup-r8-IEs'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionSetup-r8-IEs': {'members': [{'name': 'radioResourceConfigDedicated', 'type': 'RadioResourceConfigDedicated'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RRCConnectionSetupComplete': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'rrcConnectionSetupComplete-r8', 'type': 'RRCConnectionSetupComplete-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'RRCConnectionSetupComplete-r8-IEs': {'members': [{'name': 'selectedPLMN-Identity', 'restricted-to': [(1, 6)], 'type': 'INTEGER'}, {'name': 'registeredMME', 'optional': True, 'type': 'RegisteredMME'}, {'name': 'dedicatedInfoNAS', 'type': 'DedicatedInfoNAS'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'RSRP-Range': {'restricted-to': [(0, 97)], 'type': 'INTEGER'}, 'RSRQ-Range': {'restricted-to': [(0, 34)], 'type': 'INTEGER'}, 'RadioResourceConfigCommon': {'members': [{'name': 'rach-ConfigCommon', 'optional': True, 'type': 'RACH-ConfigCommon'}, {'name': 'prach-Config', 'type': 'PRACH-Config'}, {'name': 'pdsch-ConfigCommon', 'optional': True, 'type': 'PDSCH-ConfigCommon'}, {'name': 'pusch-ConfigCommon', 'type': 'PUSCH-ConfigCommon'}, {'name': 'phich-Config', 'optional': True, 'type': 'PHICH-Config'}, {'name': 'pucch-ConfigCommon', 'optional': True, 'type': 'PUCCH-ConfigCommon'}, {'name': 'soundingRS-UL-ConfigCommon', 'optional': True, 'type': 'SoundingRS-UL-ConfigCommon'}, {'name': 'uplinkPowerControlCommon', 'optional': True, 'type': 'UplinkPowerControlCommon'}, {'name': 'antennaInfoCommon', 'optional': True, 'type': 'AntennaInfoCommon'}, {'name': 'p-Max', 'optional': True, 'type': 'P-Max'}, {'name': 'tdd-Config', 'optional': True, 'type': 'TDD-Config'}, {'name': 'ul-CyclicPrefixLength', 'type': 'UL-CyclicPrefixLength'}, None], 'type': 'SEQUENCE'}, 'RadioResourceConfigCommonSIB': {'members': [{'name': 'rach-ConfigCommon', 'type': 'RACH-ConfigCommon'}, {'name': 'bcch-Config', 'type': 'BCCH-Config'}, {'name': 'pcch-Config', 'type': 'PCCH-Config'}, {'name': 'prach-Config', 'type': 'PRACH-ConfigSIB'}, {'name': 'pdsch-ConfigCommon', 'type': 'PDSCH-ConfigCommon'}, {'name': 'pusch-ConfigCommon', 'type': 'PUSCH-ConfigCommon'}, {'name': 'pucch-ConfigCommon', 'type': 'PUCCH-ConfigCommon'}, {'name': 'soundingRS-UL-ConfigCommon', 'type': 'SoundingRS-UL-ConfigCommon'}, {'name': 'uplinkPowerControlCommon', 'type': 'UplinkPowerControlCommon'}, {'name': 'ul-CyclicPrefixLength', 'type': 'UL-CyclicPrefixLength'}, None], 'type': 'SEQUENCE'}, 'RadioResourceConfigDedicated': {'members': [{'name': 'srb-ToAddModList', 'optional': True, 'type': 'SRB-ToAddModList'}, {'name': 'drb-ToAddModList', 'optional': True, 'type': 'DRB-ToAddModList'}, {'name': 'drb-ToReleaseList', 'optional': True, 'type': 'DRB-ToReleaseList'}, {'members': [{'name': 'explicitValue', 'type': 'MAC-MainConfig'}, {'name': 'defaultValue', 'type': 'NULL'}], 'name': 'mac-MainConfig', 'optional': True, 'type': 'CHOICE'}, {'name': 'sps-Config', 'optional': True, 'type': 'SPS-Config'}, {'name': 'physicalConfigDedicated', 'optional': True, 'type': 'PhysicalConfigDedicated'}, None], 'type': 'SEQUENCE'}, 'RedirectedCarrierInfo': {'members': [{'name': 'eutra', 'type': 'ARFCN-ValueEUTRA'}, {'name': 'geran', 'type': 'CarrierFreqsGERAN'}, {'name': 'utra-FDD', 'type': 'ARFCN-ValueUTRA'}, {'name': 'utra-TDD', 'type': 'ARFCN-ValueUTRA'}, {'name': 'cdma2000-HRPD', 'type': 'CarrierFreqCDMA2000'}, {'name': 'cdma2000-1xRTT', 'type': 'CarrierFreqCDMA2000'}, None], 'type': 'CHOICE'}, 'ReestabUE-Identity': {'members': [{'name': 'c-RNTI', 'type': 'C-RNTI'}, {'name': 'physCellId', 'type': 'PhysCellId'}, {'name': 'shortMAC-I', 'type': 'ShortMAC-I'}], 'type': 'SEQUENCE'}, 'ReestablishmentCause': {'type': 'ENUMERATED', 'values': [('reconfigurationFailure', 0), ('handoverFailure', 1), ('otherFailure', 2), ('spare1', 3)]}, 'RegisteredMME': {'members': [{'name': 'plmn-Identity', 'optional': True, 'type': 'PLMN-Identity'}, {'name': 'mmegi', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'mmec', 'type': 'MMEC'}], 'type': 'SEQUENCE'}, 'ReleaseCause': {'type': 'ENUMERATED', 'values': [('loadBalancingTAUrequired', 0), ('other', 1), ('spare2', 2), ('spare1', 3)]}, 'ReportConfigEUTRA': {'members': [{'members': [{'members': [{'members': [{'members': [{'name': 'a1-Threshold', 'type': 'ThresholdEUTRA'}], 'name': 'eventA1', 'type': 'SEQUENCE'}, {'members': [{'name': 'a2-Threshold', 'type': 'ThresholdEUTRA'}], 'name': 'eventA2', 'type': 'SEQUENCE'}, {'members': [{'name': 'a3-Offset', 'restricted-to': [(-30, 30)], 'type': 'INTEGER'}, {'name': 'reportOnLeave', 'type': 'BOOLEAN'}], 'name': 'eventA3', 'type': 'SEQUENCE'}, {'members': [{'name': 'a4-Threshold', 'type': 'ThresholdEUTRA'}], 'name': 'eventA4', 'type': 'SEQUENCE'}, {'members': [{'name': 'a5-Threshold1', 'type': 'ThresholdEUTRA'}, {'name': 'a5-Threshold2', 'type': 'ThresholdEUTRA'}], 'name': 'eventA5', 'type': 'SEQUENCE'}, None], 'name': 'eventId', 'type': 'CHOICE'}, {'name': 'hysteresis', 'type': 'Hysteresis'}, {'name': 'timeToTrigger', 'type': 'TimeToTrigger'}], 'name': 'event', 'type': 'SEQUENCE'}, {'members': [{'name': 'purpose', 'type': 'ENUMERATED', 'values': [('reportStrongestCells', 0), ('reportCGI', 1)]}], 'name': 'periodical', 'type': 'SEQUENCE'}], 'name': 'triggerType', 'type': 'CHOICE'}, {'name': 'triggerQuantity', 'type': 'ENUMERATED', 'values': [('rsrp', 0), ('rsrq', 1)]}, {'name': 'reportQuantity', 'type': 'ENUMERATED', 'values': [('sameAsTriggerQuantity', 0), ('both', 1)]}, {'name': 'maxReportCells', 'restricted-to': [(1, 'maxCellReport')], 'type': 'INTEGER'}, {'name': 'reportInterval', 'type': 'ReportInterval'}, {'name': 'reportAmount', 'type': 'ENUMERATED', 'values': [('r1', 0), ('r2', 1), ('r4', 2), ('r8', 3), ('r16', 4), ('r32', 5), ('r64', 6), ('infinity', 7)]}, None], 'type': 'SEQUENCE'}, 'ReportConfigId': {'restricted-to': [(1, 'maxReportConfigId')], 'type': 'INTEGER'}, 'ReportConfigInterRAT': {'members': [{'members': [{'members': [{'members': [{'members': [{'members': [{'name': 'b1-ThresholdUTRA', 'type': 'ThresholdUTRA'}, {'name': 'b1-ThresholdGERAN', 'type': 'ThresholdGERAN'}, {'name': 'b1-ThresholdCDMA2000', 'type': 'ThresholdCDMA2000'}], 'name': 'b1-Threshold', 'type': 'CHOICE'}], 'name': 'eventB1', 'type': 'SEQUENCE'}, {'members': [{'name': 'b2-Threshold1', 'type': 'ThresholdEUTRA'}, {'members': [{'name': 'b2-Threshold2UTRA', 'type': 'ThresholdUTRA'}, {'name': 'b2-Threshold2GERAN', 'type': 'ThresholdGERAN'}, {'name': 'b2-Threshold2CDMA2000', 'type': 'ThresholdCDMA2000'}], 'name': 'b2-Threshold2', 'type': 'CHOICE'}], 'name': 'eventB2', 'type': 'SEQUENCE'}, None], 'name': 'eventId', 'type': 'CHOICE'}, {'name': 'hysteresis', 'type': 'Hysteresis'}, {'name': 'timeToTrigger', 'type': 'TimeToTrigger'}], 'name': 'event', 'type': 'SEQUENCE'}, {'members': [{'name': 'purpose', 'type': 'ENUMERATED', 'values': [('reportStrongestCells', 0), ('reportStrongestCellsForSON', 1), ('reportCGI', 2)]}], 'name': 'periodical', 'type': 'SEQUENCE'}], 'name': 'triggerType', 'type': 'CHOICE'}, {'name': 'maxReportCells', 'restricted-to': [(1, 'maxCellReport')], 'type': 'INTEGER'}, {'name': 'reportInterval', 'type': 'ReportInterval'}, {'name': 'reportAmount', 'type': 'ENUMERATED', 'values': [('r1', 0), ('r2', 1), ('r4', 2), ('r8', 3), ('r16', 4), ('r32', 5), ('r64', 6), ('infinity', 7)]}, None], 'type': 'SEQUENCE'}, 'ReportConfigToAddMod': {'members': [{'name': 'reportConfigId', 'type': 'ReportConfigId'}, {'members': [{'name': 'reportConfigEUTRA', 'type': 'ReportConfigEUTRA'}, {'name': 'reportConfigInterRAT', 'type': 'ReportConfigInterRAT'}], 'name': 'reportConfig', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'ReportConfigToAddModList': {'element': {'type': 'ReportConfigToAddMod'}, 'size': [(1, 'maxReportConfigId')], 'type': 'SEQUENCE ' 'OF'}, 'ReportConfigToRemoveList': {'element': {'type': 'ReportConfigId'}, 'size': [(1, 'maxReportConfigId')], 'type': 'SEQUENCE ' 'OF'}, 'ReportInterval': {'type': 'ENUMERATED', 'values': [('ms120', 0), ('ms240', 1), ('ms480', 2), ('ms640', 3), ('ms1024', 4), ('ms2048', 5), ('ms5120', 6), ('ms10240', 7), ('min1', 8), ('min6', 9), ('min12', 10), ('min30', 11), ('min60', 12), ('spare3', 13), ('spare2', 14), ('spare1', 15)]}, 'ReselectionThreshold': {'restricted-to': [(0, 31)], 'type': 'INTEGER'}, 'S-TMSI': {'members': [{'name': 'mmec', 'type': 'MMEC'}, {'name': 'm-TMSI', 'size': [32], 'type': 'BIT ' 'STRING'}], 'type': 'SEQUENCE'}, 'SI-OrPSI-GERAN': {'members': [{'name': 'si', 'type': 'SystemInfoListGERAN'}, {'name': 'psi', 'type': 'SystemInfoListGERAN'}], 'type': 'CHOICE'}, 'SIB-MappingInfo': {'element': {'type': 'SIB-Type'}, 'size': [(0, 'maxSIB-1')], 'type': 'SEQUENCE OF'}, 'SIB-Type': {'type': 'ENUMERATED', 'values': [('sibType3', 0), ('sibType4', 1), ('sibType5', 2), ('sibType6', 3), ('sibType7', 4), ('sibType8', 5), ('sibType9', 6), ('sibType10', 7), ('sibType11', 8), ('spare7', 9), ('spare6', 10), ('spare5', 11), ('spare4', 12), ('spare3', 13), ('spare2', 14), ('spare1', 15), None]}, 'SN-FieldLength': {'type': 'ENUMERATED', 'values': [('size5', 0), ('size10', 1)]}, 'SPS-Config': {'members': [{'name': 'semiPersistSchedC-RNTI', 'optional': True, 'type': 'C-RNTI'}, {'name': 'sps-ConfigDL', 'optional': True, 'type': 'SPS-ConfigDL'}, {'name': 'sps-ConfigUL', 'optional': True, 'type': 'SPS-ConfigUL'}], 'type': 'SEQUENCE'}, 'SPS-ConfigDL': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'semiPersistSchedIntervalDL', 'type': 'ENUMERATED', 'values': [('sf10', 0), ('sf20', 1), ('sf32', 2), ('sf40', 3), ('sf64', 4), ('sf80', 5), ('sf128', 6), ('sf160', 7), ('sf320', 8), ('sf640', 9), ('spare6', 10), ('spare5', 11), ('spare4', 12), ('spare3', 13), ('spare2', 14), ('spare1', 15)]}, {'name': 'numberOfConfSPS-Processes', 'restricted-to': [(1, 8)], 'type': 'INTEGER'}, {'name': 'n1-PUCCH-AN-PersistentList', 'type': 'N1-PUCCH-AN-PersistentList'}, None], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'SPS-ConfigUL': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'semiPersistSchedIntervalUL', 'type': 'ENUMERATED', 'values': [('sf10', 0), ('sf20', 1), ('sf32', 2), ('sf40', 3), ('sf64', 4), ('sf80', 5), ('sf128', 6), ('sf160', 7), ('sf320', 8), ('sf640', 9), ('spare6', 10), ('spare5', 11), ('spare4', 12), ('spare3', 13), ('spare2', 14), ('spare1', 15)]}, {'name': 'implicitReleaseAfter', 'type': 'ENUMERATED', 'values': [('e2', 0), ('e3', 1), ('e4', 2), ('e8', 3)]}, {'members': [{'name': 'p0-NominalPUSCH-Persistent', 'restricted-to': [(-126, 24)], 'type': 'INTEGER'}, {'name': 'p0-UE-PUSCH-Persistent', 'restricted-to': [(-8, 7)], 'type': 'INTEGER'}], 'name': 'p0-Persistent', 'optional': True, 'type': 'SEQUENCE'}, {'name': 'twoIntervalsConfig', 'optional': True, 'type': 'ENUMERATED', 'values': [('true', 0)]}, None], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'SRB-ToAddMod': {'members': [{'name': 'srb-Identity', 'restricted-to': [(1, 2)], 'type': 'INTEGER'}, {'members': [{'name': 'explicitValue', 'type': 'RLC-Config'}, {'name': 'defaultValue', 'type': 'NULL'}], 'name': 'rlc-Config', 'optional': True, 'type': 'CHOICE'}, {'members': [{'name': 'explicitValue', 'type': 'LogicalChannelConfig'}, {'name': 'defaultValue', 'type': 'NULL'}], 'name': 'logicalChannelConfig', 'optional': True, 'type': 'CHOICE'}, None], 'type': 'SEQUENCE'}, 'SRB-ToAddModList': {'element': {'type': 'SRB-ToAddMod'}, 'size': [(1, 2)], 'type': 'SEQUENCE ' 'OF'}, 'SchedulingInfo': {'members': [{'name': 'si-Periodicity', 'type': 'ENUMERATED', 'values': [('rf8', 0), ('rf16', 1), ('rf32', 2), ('rf64', 3), ('rf128', 4), ('rf256', 5), ('rf512', 6)]}, {'name': 'sib-MappingInfo', 'type': 'SIB-MappingInfo'}], 'type': 'SEQUENCE'}, 'SchedulingInfoList': {'element': {'type': 'SchedulingInfo'}, 'size': [(1, 'maxSI-Message')], 'type': 'SEQUENCE ' 'OF'}, 'SchedulingRequestConfig': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'sr-PUCCH-ResourceIndex', 'restricted-to': [(0, 2047)], 'type': 'INTEGER'}, {'name': 'sr-ConfigIndex', 'restricted-to': [(0, 155)], 'type': 'INTEGER'}, {'name': 'dsr-TransMax', 'type': 'ENUMERATED', 'values': [('n4', 0), ('n8', 1), ('n16', 2), ('n32', 3), ('n64', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7)]}], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'SecondaryPreRegistrationZoneIdListHRPD': {'element': {'type': 'PreRegistrationZoneIdHRPD'}, 'size': [(1, 2)], 'type': 'SEQUENCE ' 'OF'}, 'SecurityAlgorithmConfig': {'members': [{'name': 'cipheringAlgorithm', 'type': 'ENUMERATED', 'values': [('eea0', 0), ('eea1', 1), ('eea2', 2), ('spare5', 3), ('spare4', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7), None]}, {'name': 'integrityProtAlgorithm', 'type': 'ENUMERATED', 'values': [('reserved', 0), ('eia1', 1), ('eia2', 2), ('spare5', 3), ('spare4', 4), ('spare3', 5), ('spare2', 6), ('spare1', 7), None]}], 'type': 'SEQUENCE'}, 'SecurityConfigHO': {'members': [{'members': [{'members': [{'name': 'securityAlgorithmConfig', 'optional': True, 'type': 'SecurityAlgorithmConfig'}, {'name': 'keyChangeIndicator', 'type': 'BOOLEAN'}, {'name': 'nextHopChainingCount', 'type': 'NextHopChainingCount'}], 'name': 'intraLTE', 'type': 'SEQUENCE'}, {'members': [{'name': 'securityAlgorithmConfig', 'type': 'SecurityAlgorithmConfig'}, {'name': 'nas-SecurityParamToEUTRA', 'size': [6], 'type': 'OCTET ' 'STRING'}], 'name': 'interRAT', 'type': 'SEQUENCE'}], 'name': 'handoverType', 'type': 'CHOICE'}, None], 'type': 'SEQUENCE'}, 'SecurityConfigSMC': {'members': [{'name': 'securityAlgorithmConfig', 'type': 'SecurityAlgorithmConfig'}, None], 'type': 'SEQUENCE'}, 'SecurityModeCommand': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'securityModeCommand-r8', 'type': 'SecurityModeCommand-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'SecurityModeCommand-r8-IEs': {'members': [{'name': 'securityConfigSMC', 'type': 'SecurityConfigSMC'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'SecurityModeComplete': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'name': 'securityModeComplete-r8', 'type': 'SecurityModeComplete-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'SecurityModeComplete-r8-IEs': {'members': [{'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'SecurityModeFailure': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'name': 'securityModeFailure-r8', 'type': 'SecurityModeFailure-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'SecurityModeFailure-r8-IEs': {'members': [{'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'ShortMAC-I': {'size': [16], 'type': 'BIT STRING'}, 'SoundingRS-UL-ConfigCommon': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'srs-BandwidthConfig', 'type': 'ENUMERATED', 'values': [('bw0', 0), ('bw1', 1), ('bw2', 2), ('bw3', 3), ('bw4', 4), ('bw5', 5), ('bw6', 6), ('bw7', 7)]}, {'name': 'srs-SubframeConfig', 'type': 'ENUMERATED', 'values': [('sc0', 0), ('sc1', 1), ('sc2', 2), ('sc3', 3), ('sc4', 4), ('sc5', 5), ('sc6', 6), ('sc7', 7), ('sc8', 8), ('sc9', 9), ('sc10', 10), ('sc11', 11), ('sc12', 12), ('sc13', 13), ('sc14', 14), ('sc15', 15)]}, {'name': 'ackNackSRS-SimultaneousTransmission', 'type': 'BOOLEAN'}, {'name': 'srs-MaxUpPts', 'optional': True, 'type': 'ENUMERATED', 'values': [('true', 0)]}], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'SoundingRS-UL-ConfigDedicated': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'srs-Bandwidth', 'type': 'ENUMERATED', 'values': [('bw0', 0), ('bw1', 1), ('bw2', 2), ('bw3', 3)]}, {'name': 'srs-HoppingBandwidth', 'type': 'ENUMERATED', 'values': [('hbw0', 0), ('hbw1', 1), ('hbw2', 2), ('hbw3', 3)]}, {'name': 'freqDomainPosition', 'restricted-to': [(0, 23)], 'type': 'INTEGER'}, {'name': 'duration', 'type': 'BOOLEAN'}, {'name': 'srs-ConfigIndex', 'restricted-to': [(0, 1023)], 'type': 'INTEGER'}, {'name': 'transmissionComb', 'restricted-to': [(0, 1)], 'type': 'INTEGER'}, {'name': 'cyclicShift', 'type': 'ENUMERATED', 'values': [('cs0', 0), ('cs1', 1), ('cs2', 2), ('cs3', 3), ('cs4', 4), ('cs5', 5), ('cs6', 6), ('cs7', 7)]}], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'SpeedStateScaleFactors': {'members': [{'name': 'sf-Medium', 'type': 'ENUMERATED', 'values': [('oDot25', 0), ('oDot5', 1), ('oDot75', 2), ('lDot0', 3)]}, {'name': 'sf-High', 'type': 'ENUMERATED', 'values': [('oDot25', 0), ('oDot5', 1), ('oDot75', 2), ('lDot0', 3)]}], 'type': 'SEQUENCE'}, 'SupportedBandEUTRA': {'members': [{'name': 'bandEUTRA', 'restricted-to': [(1, 64)], 'type': 'INTEGER'}, {'name': 'halfDuplex', 'type': 'BOOLEAN'}], 'type': 'SEQUENCE'}, 'SupportedBandGERAN': {'type': 'ENUMERATED', 'values': [('gsm450', 0), ('gsm480', 1), ('gsm710', 2), ('gsm750', 3), ('gsm810', 4), ('gsm850', 5), ('gsm900P', 6), ('gsm900E', 7), ('gsm900R', 8), ('gsm1800', 9), ('gsm1900', 10), ('spare5', 11), ('spare4', 12), ('spare3', 13), ('spare2', 14), ('spare1', 15), None]}, 'SupportedBandList1XRTT': {'element': {'type': 'BandclassCDMA2000'}, 'size': [(1, 'maxCDMA-BandClass')], 'type': 'SEQUENCE ' 'OF'}, 'SupportedBandListEUTRA': {'element': {'type': 'SupportedBandEUTRA'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE ' 'OF'}, 'SupportedBandListGERAN': {'element': {'type': 'SupportedBandGERAN'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE ' 'OF'}, 'SupportedBandListHRPD': {'element': {'type': 'BandclassCDMA2000'}, 'size': [(1, 'maxCDMA-BandClass')], 'type': 'SEQUENCE ' 'OF'}, 'SupportedBandListUTRA-FDD': {'element': {'type': 'SupportedBandUTRA-FDD'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE ' 'OF'}, 'SupportedBandListUTRA-TDD128': {'element': {'type': 'SupportedBandUTRA-TDD128'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE ' 'OF'}, 'SupportedBandListUTRA-TDD384': {'element': {'type': 'SupportedBandUTRA-TDD384'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE ' 'OF'}, 'SupportedBandListUTRA-TDD768': {'element': {'type': 'SupportedBandUTRA-TDD768'}, 'size': [(1, 'maxBands')], 'type': 'SEQUENCE ' 'OF'}, 'SupportedBandUTRA-FDD': {'type': 'ENUMERATED', 'values': [('bandI', 0), ('bandII', 1), ('bandIII', 2), ('bandIV', 3), ('bandV', 4), ('bandVI', 5), ('bandVII', 6), ('bandVIII', 7), ('bandIX', 8), ('bandX', 9), ('bandXI', 10), ('bandXII', 11), ('bandXIII', 12), ('bandXIV', 13), ('bandXV', 14), ('bandXVI', 15), None, ('bandXVII-8a0', 16), ('bandXVIII-8a0', 17), ('bandXIX-8a0', 18), ('bandXX-8a0', 19), ('bandXXI-8a0', 20), ('bandXXII-8a0', 21), ('bandXXIII-8a0', 22), ('bandXXIV-8a0', 23), ('bandXXV-8a0', 24), ('bandXXVI-8a0', 25), ('bandXXVII-8a0', 26), ('bandXXVIII-8a0', 27), ('bandXXIX-8a0', 28), ('bandXXX-8a0', 29), ('bandXXXI-8a0', 30), ('bandXXXII-8a0', 31)]}, 'SupportedBandUTRA-TDD128': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), ('c', 2), ('d', 3), ('e', 4), ('f', 5), ('g', 6), ('h', 7), ('i', 8), ('j', 9), ('k', 10), ('l', 11), ('m', 12), ('n', 13), ('o', 14), ('p', 15), None]}, 'SupportedBandUTRA-TDD384': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), ('c', 2), ('d', 3), ('e', 4), ('f', 5), ('g', 6), ('h', 7), ('i', 8), ('j', 9), ('k', 10), ('l', 11), ('m', 12), ('n', 13), ('o', 14), ('p', 15), None]}, 'SupportedBandUTRA-TDD768': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), ('c', 2), ('d', 3), ('e', 4), ('f', 5), ('g', 6), ('h', 7), ('i', 8), ('j', 9), ('k', 10), ('l', 11), ('m', 12), ('n', 13), ('o', 14), ('p', 15), None]}, 'SystemInfoListGERAN': {'element': {'size': [(1, 23)], 'type': 'OCTET ' 'STRING'}, 'size': [(1, 'maxGERAN-SI')], 'type': 'SEQUENCE ' 'OF'}, 'SystemInformation': {'members': [{'members': [{'name': 'systemInformation-r8', 'type': 'SystemInformation-r8-IEs'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'SystemInformation-r8-IEs': {'members': [{'element': {'members': [{'name': 'sib2', 'type': 'SystemInformationBlockType2'}, {'name': 'sib3', 'type': 'SystemInformationBlockType3'}, {'name': 'sib4', 'type': 'SystemInformationBlockType4'}, {'name': 'sib5', 'type': 'SystemInformationBlockType5'}, {'name': 'sib6', 'type': 'SystemInformationBlockType6'}, {'name': 'sib7', 'type': 'SystemInformationBlockType7'}, {'name': 'sib8', 'type': 'SystemInformationBlockType8'}, {'name': 'sib9', 'type': 'SystemInformationBlockType9'}, {'name': 'sib10', 'type': 'SystemInformationBlockType10'}, {'name': 'sib11', 'type': 'SystemInformationBlockType11'}, None], 'type': 'CHOICE'}, 'name': 'sib-TypeAndInfo', 'size': [(1, 'maxSIB')], 'type': 'SEQUENCE ' 'OF'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'SystemInformationBlockType1': {'members': [{'members': [{'name': 'plmn-IdentityList', 'type': 'PLMN-IdentityList'}, {'name': 'trackingAreaCode', 'type': 'TrackingAreaCode'}, {'name': 'cellIdentity', 'type': 'CellIdentity'}, {'name': 'cellBarred', 'type': 'ENUMERATED', 'values': [('barred', 0), ('notBarred', 1)]}, {'name': 'intraFreqReselection', 'type': 'ENUMERATED', 'values': [('allowed', 0), ('notAllowed', 1)]}, {'name': 'csg-Indication', 'type': 'BOOLEAN'}, {'name': 'csg-Identity', 'optional': True, 'size': [27], 'type': 'BIT ' 'STRING'}], 'name': 'cellAccessRelatedInfo', 'type': 'SEQUENCE'}, {'members': [{'name': 'q-RxLevMin', 'type': 'Q-RxLevMin'}, {'name': 'q-RxLevMinOffset', 'optional': True, 'restricted-to': [(1, 8)], 'type': 'INTEGER'}], 'name': 'cellSelectionInfo', 'type': 'SEQUENCE'}, {'name': 'p-Max', 'optional': True, 'type': 'P-Max'}, {'name': 'freqBandIndicator', 'restricted-to': [(1, 64)], 'type': 'INTEGER'}, {'name': 'schedulingInfoList', 'type': 'SchedulingInfoList'}, {'name': 'tdd-Config', 'optional': True, 'type': 'TDD-Config'}, {'name': 'si-WindowLength', 'type': 'ENUMERATED', 'values': [('ms1', 0), ('ms2', 1), ('ms5', 2), ('ms10', 3), ('ms15', 4), ('ms20', 5), ('ms40', 6)]}, {'name': 'systemInfoValueTag', 'restricted-to': [(0, 31)], 'type': 'INTEGER'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'SystemInformationBlockType10': {'members': [{'name': 'messageIdentifier', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'serialNumber', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'warningType', 'size': [2], 'type': 'OCTET ' 'STRING'}, {'name': 'warningSecurityInfo', 'optional': True, 'size': [50], 'type': 'OCTET ' 'STRING'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType11': {'members': [{'name': 'messageIdentifier', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'serialNumber', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'warningMessageSegmentType', 'type': 'ENUMERATED', 'values': [('notLastSegment', 0), ('lastSegment', 1)]}, {'name': 'warningMessageSegmentNumber', 'restricted-to': [(0, 63)], 'type': 'INTEGER'}, {'name': 'warningMessageSegment', 'type': 'OCTET ' 'STRING'}, {'name': 'dataCodingScheme', 'optional': True, 'size': [1], 'type': 'OCTET ' 'STRING'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType2': {'members': [{'members': [{'name': 'ac-BarringForEmergency', 'type': 'BOOLEAN'}, {'name': 'ac-BarringForMO-Signalling', 'optional': True, 'type': 'AC-BarringConfig'}, {'name': 'ac-BarringForMO-Data', 'optional': True, 'type': 'AC-BarringConfig'}], 'name': 'ac-BarringInfo', 'optional': True, 'type': 'SEQUENCE'}, {'name': 'radioResourceConfigCommon', 'type': 'RadioResourceConfigCommonSIB'}, {'name': 'ue-TimersAndConstants', 'type': 'UE-TimersAndConstants'}, {'members': [{'name': 'ul-CarrierFreq', 'optional': True, 'type': 'ARFCN-ValueEUTRA'}, {'name': 'ul-Bandwidth', 'optional': True, 'type': 'ENUMERATED', 'values': [('n6', 0), ('n15', 1), ('n25', 2), ('n50', 3), ('n75', 4), ('n100', 5)]}, {'name': 'additionalSpectrumEmission', 'type': 'AdditionalSpectrumEmission'}], 'name': 'freqInfo', 'type': 'SEQUENCE'}, {'name': 'mbsfn-SubframeConfigList', 'optional': True, 'type': 'MBSFN-SubframeConfigList'}, {'name': 'timeAlignmentTimerCommon', 'type': 'TimeAlignmentTimer'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType3': {'members': [{'members': [{'name': 'q-Hyst', 'type': 'ENUMERATED', 'values': [('dB0', 0), ('dB1', 1), ('dB2', 2), ('dB3', 3), ('dB4', 4), ('dB5', 5), ('dB6', 6), ('dB8', 7), ('dB10', 8), ('dB12', 9), ('dB14', 10), ('dB16', 11), ('dB18', 12), ('dB20', 13), ('dB22', 14), ('dB24', 15)]}, {'members': [{'name': 'mobilityStateParameters', 'type': 'MobilityStateParameters'}, {'members': [{'name': 'sf-Medium', 'type': 'ENUMERATED', 'values': [('dB-6', 0), ('dB-4', 1), ('dB-2', 2), ('dB0', 3)]}, {'name': 'sf-High', 'type': 'ENUMERATED', 'values': [('dB-6', 0), ('dB-4', 1), ('dB-2', 2), ('dB0', 3)]}], 'name': 'q-HystSF', 'type': 'SEQUENCE'}], 'name': 'speedStateReselectionPars', 'optional': True, 'type': 'SEQUENCE'}], 'name': 'cellReselectionInfoCommon', 'type': 'SEQUENCE'}, {'members': [{'name': 's-NonIntraSearch', 'optional': True, 'type': 'ReselectionThreshold'}, {'name': 'threshServingLow', 'type': 'ReselectionThreshold'}, {'name': 'cellReselectionPriority', 'type': 'CellReselectionPriority'}], 'name': 'cellReselectionServingFreqInfo', 'type': 'SEQUENCE'}, {'members': [{'name': 'q-RxLevMin', 'type': 'Q-RxLevMin'}, {'name': 'p-Max', 'optional': True, 'type': 'P-Max'}, {'name': 's-IntraSearch', 'optional': True, 'type': 'ReselectionThreshold'}, {'name': 'allowedMeasBandwidth', 'optional': True, 'type': 'AllowedMeasBandwidth'}, {'name': 'presenceAntennaPort1', 'type': 'PresenceAntennaPort1'}, {'name': 'neighCellConfig', 'type': 'NeighCellConfig'}, {'name': 't-ReselectionEUTRA', 'type': 'T-Reselection'}, {'name': 't-ReselectionEUTRA-SF', 'optional': True, 'type': 'SpeedStateScaleFactors'}], 'name': 'intraFreqCellReselectionInfo', 'type': 'SEQUENCE'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType4': {'members': [{'name': 'intraFreqNeighCellList', 'optional': True, 'type': 'IntraFreqNeighCellList'}, {'name': 'intraFreqBlackCellList', 'optional': True, 'type': 'IntraFreqBlackCellList'}, {'name': 'csg-PhysCellIdRange', 'optional': True, 'type': 'PhysCellIdRange'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType5': {'members': [{'name': 'interFreqCarrierFreqList', 'type': 'InterFreqCarrierFreqList'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType6': {'members': [{'name': 'carrierFreqListUTRA-FDD', 'optional': True, 'type': 'CarrierFreqListUTRA-FDD'}, {'name': 'carrierFreqListUTRA-TDD', 'optional': True, 'type': 'CarrierFreqListUTRA-TDD'}, {'name': 't-ReselectionUTRA', 'type': 'T-Reselection'}, {'name': 't-ReselectionUTRA-SF', 'optional': True, 'type': 'SpeedStateScaleFactors'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType7': {'members': [{'name': 't-ReselectionGERAN', 'type': 'T-Reselection'}, {'name': 't-ReselectionGERAN-SF', 'optional': True, 'type': 'SpeedStateScaleFactors'}, {'name': 'carrierFreqsInfoList', 'optional': True, 'type': 'CarrierFreqsInfoListGERAN'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType8': {'members': [{'name': 'systemTimeInfo', 'optional': True, 'type': 'SystemTimeInfoCDMA2000'}, {'name': 'searchWindowSize', 'optional': True, 'restricted-to': [(0, 15)], 'type': 'INTEGER'}, {'members': [{'name': 'preRegistrationInfoHRPD', 'type': 'PreRegistrationInfoHRPD'}, {'name': 'cellReselectionParametersHRPD', 'optional': True, 'type': 'CellReselectionParametersCDMA2000'}], 'name': 'parametersHRPD', 'optional': True, 'type': 'SEQUENCE'}, {'members': [{'name': 'csfb-RegistrationParam1XRTT', 'optional': True, 'type': 'CSFB-RegistrationParam1XRTT'}, {'name': 'longCodeState1XRTT', 'optional': True, 'size': [42], 'type': 'BIT ' 'STRING'}, {'name': 'cellReselectionParameters1XRTT', 'optional': True, 'type': 'CellReselectionParametersCDMA2000'}], 'name': 'parameters1XRTT', 'optional': True, 'type': 'SEQUENCE'}, None], 'type': 'SEQUENCE'}, 'SystemInformationBlockType9': {'members': [{'name': 'hnb-Name', 'optional': True, 'size': [(1, 48)], 'type': 'OCTET ' 'STRING'}, None], 'type': 'SEQUENCE'}, 'SystemTimeInfoCDMA2000': {'members': [{'name': 'cdma-EUTRA-Synchronisation', 'type': 'BOOLEAN'}, {'members': [{'name': 'synchronousSystemTime', 'size': [39], 'type': 'BIT ' 'STRING'}, {'name': 'asynchronousSystemTime', 'size': [49], 'type': 'BIT ' 'STRING'}], 'name': 'cdma-SystemTime', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'T-PollRetransmit': {'type': 'ENUMERATED', 'values': [('ms5', 0), ('ms10', 1), ('ms15', 2), ('ms20', 3), ('ms25', 4), ('ms30', 5), ('ms35', 6), ('ms40', 7), ('ms45', 8), ('ms50', 9), ('ms55', 10), ('ms60', 11), ('ms65', 12), ('ms70', 13), ('ms75', 14), ('ms80', 15), ('ms85', 16), ('ms90', 17), ('ms95', 18), ('ms100', 19), ('ms105', 20), ('ms110', 21), ('ms115', 22), ('ms120', 23), ('ms125', 24), ('ms130', 25), ('ms135', 26), ('ms140', 27), ('ms145', 28), ('ms150', 29), ('ms155', 30), ('ms160', 31), ('ms165', 32), ('ms170', 33), ('ms175', 34), ('ms180', 35), ('ms185', 36), ('ms190', 37), ('ms195', 38), ('ms200', 39), ('ms205', 40), ('ms210', 41), ('ms215', 42), ('ms220', 43), ('ms225', 44), ('ms230', 45), ('ms235', 46), ('ms240', 47), ('ms245', 48), ('ms250', 49), ('ms300', 50), ('ms350', 51), ('ms400', 52), ('ms450', 53), ('ms500', 54), ('spare9', 55), ('spare8', 56), ('spare7', 57), ('spare6', 58), ('spare5', 59), ('spare4', 60), ('spare3', 61), ('spare2', 62), ('spare1', 63)]}, 'T-Reordering': {'type': 'ENUMERATED', 'values': [('ms0', 0), ('ms5', 1), ('ms10', 2), ('ms15', 3), ('ms20', 4), ('ms25', 5), ('ms30', 6), ('ms35', 7), ('ms40', 8), ('ms45', 9), ('ms50', 10), ('ms55', 11), ('ms60', 12), ('ms65', 13), ('ms70', 14), ('ms75', 15), ('ms80', 16), ('ms85', 17), ('ms90', 18), ('ms95', 19), ('ms100', 20), ('ms110', 21), ('ms120', 22), ('ms130', 23), ('ms140', 24), ('ms150', 25), ('ms160', 26), ('ms170', 27), ('ms180', 28), ('ms190', 29), ('ms200', 30), ('spare1', 31)]}, 'T-Reselection': {'restricted-to': [(0, 7)], 'type': 'INTEGER'}, 'T-StatusProhibit': {'type': 'ENUMERATED', 'values': [('ms0', 0), ('ms5', 1), ('ms10', 2), ('ms15', 3), ('ms20', 4), ('ms25', 5), ('ms30', 6), ('ms35', 7), ('ms40', 8), ('ms45', 9), ('ms50', 10), ('ms55', 11), ('ms60', 12), ('ms65', 13), ('ms70', 14), ('ms75', 15), ('ms80', 16), ('ms85', 17), ('ms90', 18), ('ms95', 19), ('ms100', 20), ('ms105', 21), ('ms110', 22), ('ms115', 23), ('ms120', 24), ('ms125', 25), ('ms130', 26), ('ms135', 27), ('ms140', 28), ('ms145', 29), ('ms150', 30), ('ms155', 31), ('ms160', 32), ('ms165', 33), ('ms170', 34), ('ms175', 35), ('ms180', 36), ('ms185', 37), ('ms190', 38), ('ms195', 39), ('ms200', 40), ('ms205', 41), ('ms210', 42), ('ms215', 43), ('ms220', 44), ('ms225', 45), ('ms230', 46), ('ms235', 47), ('ms240', 48), ('ms245', 49), ('ms250', 50), ('ms300', 51), ('ms350', 52), ('ms400', 53), ('ms450', 54), ('ms500', 55), ('spare8', 56), ('spare7', 57), ('spare6', 58), ('spare5', 59), ('spare4', 60), ('spare3', 61), ('spare2', 62), ('spare1', 63)]}, 'TDD-Config': {'members': [{'name': 'subframeAssignment', 'type': 'ENUMERATED', 'values': [('sa0', 0), ('sa1', 1), ('sa2', 2), ('sa3', 3), ('sa4', 4), ('sa5', 5), ('sa6', 6)]}, {'name': 'specialSubframePatterns', 'type': 'ENUMERATED', 'values': [('ssp0', 0), ('ssp1', 1), ('ssp2', 2), ('ssp3', 3), ('ssp4', 4), ('ssp5', 5), ('ssp6', 6), ('ssp7', 7), ('ssp8', 8)]}], 'type': 'SEQUENCE'}, 'TPC-Index': {'members': [{'name': 'indexOfFormat3', 'restricted-to': [(1, 15)], 'type': 'INTEGER'}, {'name': 'indexOfFormat3A', 'restricted-to': [(1, 31)], 'type': 'INTEGER'}], 'type': 'CHOICE'}, 'TPC-PDCCH-Config': {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'tpc-RNTI', 'size': [16], 'type': 'BIT ' 'STRING'}, {'name': 'tpc-Index', 'type': 'TPC-Index'}], 'name': 'setup', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'ThresholdCDMA2000': {'restricted-to': [(0, 63)], 'type': 'INTEGER'}, 'ThresholdEUTRA': {'members': [{'name': 'threshold-RSRP', 'type': 'RSRP-Range'}, {'name': 'threshold-RSRQ', 'type': 'RSRQ-Range'}], 'type': 'CHOICE'}, 'ThresholdGERAN': {'restricted-to': [(0, 63)], 'type': 'INTEGER'}, 'ThresholdUTRA': {'members': [{'name': 'utra-RSCP', 'restricted-to': [(-5, 91)], 'type': 'INTEGER'}, {'name': 'utra-EcN0', 'restricted-to': [(0, 49)], 'type': 'INTEGER'}], 'type': 'CHOICE'}, 'TimeAlignmentTimer': {'type': 'ENUMERATED', 'values': [('sf500', 0), ('sf750', 1), ('sf1280', 2), ('sf1920', 3), ('sf2560', 4), ('sf5120', 5), ('sf10240', 6), ('infinity', 7)]}, 'TimeToTrigger': {'type': 'ENUMERATED', 'values': [('ms0', 0), ('ms40', 1), ('ms64', 2), ('ms80', 3), ('ms100', 4), ('ms128', 5), ('ms160', 6), ('ms256', 7), ('ms320', 8), ('ms480', 9), ('ms512', 10), ('ms640', 11), ('ms1024', 12), ('ms1280', 13), ('ms2560', 14), ('ms5120', 15)]}, 'TrackingAreaCode': {'size': [16], 'type': 'BIT STRING'}, 'UE-CapabilityRAT-Container': {'members': [{'name': 'rat-Type', 'type': 'RAT-Type'}, {'name': 'ueCapabilityRAT-Container', 'type': 'OCTET ' 'STRING'}], 'type': 'SEQUENCE'}, 'UE-CapabilityRAT-ContainerList': {'element': {'type': 'UE-CapabilityRAT-Container'}, 'size': [(0, 'maxRAT-Capabilities')], 'type': 'SEQUENCE ' 'OF'}, 'UE-CapabilityRequest': {'element': {'type': 'RAT-Type'}, 'size': [(1, 'maxRAT-Capabilities')], 'type': 'SEQUENCE ' 'OF'}, 'UE-EUTRA-Capability': {'members': [{'name': 'accessStratumRelease', 'type': 'AccessStratumRelease'}, {'name': 'ue-Category', 'restricted-to': [(1, 5)], 'type': 'INTEGER'}, {'name': 'pdcp-Parameters', 'type': 'PDCP-Parameters'}, {'name': 'phyLayerParameters', 'type': 'PhyLayerParameters'}, {'name': 'rf-Parameters', 'type': 'RF-Parameters'}, {'name': 'measParameters', 'type': 'MeasParameters'}, {'name': 'featureGroupIndicators', 'optional': True, 'size': [32], 'type': 'BIT ' 'STRING'}, {'members': [{'name': 'utraFDD', 'optional': True, 'type': 'IRAT-ParametersUTRA-FDD'}, {'name': 'utraTDD128', 'optional': True, 'type': 'IRAT-ParametersUTRA-TDD128'}, {'name': 'utraTDD384', 'optional': True, 'type': 'IRAT-ParametersUTRA-TDD384'}, {'name': 'utraTDD768', 'optional': True, 'type': 'IRAT-ParametersUTRA-TDD768'}, {'name': 'geran', 'optional': True, 'type': 'IRAT-ParametersGERAN'}, {'name': 'cdma2000-HRPD', 'optional': True, 'type': 'IRAT-ParametersCDMA2000-HRPD'}, {'name': 'cdma2000-1xRTT', 'optional': True, 'type': 'IRAT-ParametersCDMA2000-1XRTT'}], 'name': 'interRAT-Parameters', 'type': 'SEQUENCE'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'UE-TimersAndConstants': {'members': [{'name': 't300', 'type': 'ENUMERATED', 'values': [('ms100', 0), ('ms200', 1), ('ms300', 2), ('ms400', 3), ('ms600', 4), ('ms1000', 5), ('ms1500', 6), ('ms2000', 7)]}, {'name': 't301', 'type': 'ENUMERATED', 'values': [('ms100', 0), ('ms200', 1), ('ms300', 2), ('ms400', 3), ('ms600', 4), ('ms1000', 5), ('ms1500', 6), ('ms2000', 7)]}, {'name': 't310', 'type': 'ENUMERATED', 'values': [('ms0', 0), ('ms50', 1), ('ms100', 2), ('ms200', 3), ('ms500', 4), ('ms1000', 5), ('ms2000', 6)]}, {'name': 'n310', 'type': 'ENUMERATED', 'values': [('n1', 0), ('n2', 1), ('n3', 2), ('n4', 3), ('n6', 4), ('n8', 5), ('n10', 6), ('n20', 7)]}, {'name': 't311', 'type': 'ENUMERATED', 'values': [('ms1000', 0), ('ms3000', 1), ('ms5000', 2), ('ms10000', 3), ('ms15000', 4), ('ms20000', 5), ('ms30000', 6)]}, {'name': 'n311', 'type': 'ENUMERATED', 'values': [('n1', 0), ('n2', 1), ('n3', 2), ('n4', 3), ('n5', 4), ('n6', 5), ('n8', 6), ('n10', 7)]}, None], 'type': 'SEQUENCE'}, 'UECapabilityEnquiry': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'ueCapabilityEnquiry-r8', 'type': 'UECapabilityEnquiry-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'UECapabilityEnquiry-r8-IEs': {'members': [{'name': 'ue-CapabilityRequest', 'type': 'UE-CapabilityRequest'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'UECapabilityInformation': {'members': [{'name': 'rrc-TransactionIdentifier', 'type': 'RRC-TransactionIdentifier'}, {'members': [{'members': [{'name': 'ueCapabilityInformation-r8', 'type': 'UECapabilityInformation-r8-IEs'}, {'name': 'spare7', 'type': 'NULL'}, {'name': 'spare6', 'type': 'NULL'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'UECapabilityInformation-r8-IEs': {'members': [{'name': 'ue-CapabilityRAT-ContainerList', 'type': 'UE-CapabilityRAT-ContainerList'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'UL-AM-RLC': {'members': [{'name': 't-PollRetransmit', 'type': 'T-PollRetransmit'}, {'name': 'pollPDU', 'type': 'PollPDU'}, {'name': 'pollByte', 'type': 'PollByte'}, {'name': 'maxRetxThreshold', 'type': 'ENUMERATED', 'values': [('t1', 0), ('t2', 1), ('t3', 2), ('t4', 3), ('t6', 4), ('t8', 5), ('t16', 6), ('t32', 7)]}], 'type': 'SEQUENCE'}, 'UL-CCCH-Message': {'members': [{'name': 'message', 'type': 'UL-CCCH-MessageType'}], 'type': 'SEQUENCE'}, 'UL-CCCH-MessageType': {'members': [{'members': [{'name': 'rrcConnectionReestablishmentRequest', 'type': 'RRCConnectionReestablishmentRequest'}, {'name': 'rrcConnectionRequest', 'type': 'RRCConnectionRequest'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'messageClassExtension', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'UL-CyclicPrefixLength': {'type': 'ENUMERATED', 'values': [('len1', 0), ('len2', 1)]}, 'UL-DCCH-Message': {'members': [{'name': 'message', 'type': 'UL-DCCH-MessageType'}], 'type': 'SEQUENCE'}, 'UL-DCCH-MessageType': {'members': [{'members': [{'name': 'csfbParametersRequestCDMA2000', 'type': 'CSFBParametersRequestCDMA2000'}, {'name': 'measurementReport', 'type': 'MeasurementReport'}, {'name': 'rrcConnectionReconfigurationComplete', 'type': 'RRCConnectionReconfigurationComplete'}, {'name': 'rrcConnectionReestablishmentComplete', 'type': 'RRCConnectionReestablishmentComplete'}, {'name': 'rrcConnectionSetupComplete', 'type': 'RRCConnectionSetupComplete'}, {'name': 'securityModeComplete', 'type': 'SecurityModeComplete'}, {'name': 'securityModeFailure', 'type': 'SecurityModeFailure'}, {'name': 'ueCapabilityInformation', 'type': 'UECapabilityInformation'}, {'name': 'ulHandoverPreparationTransfer', 'type': 'ULHandoverPreparationTransfer'}, {'name': 'ulInformationTransfer', 'type': 'ULInformationTransfer'}, {'name': 'counterCheckResponse', 'type': 'CounterCheckResponse'}, {'name': 'spare5', 'type': 'NULL'}, {'name': 'spare4', 'type': 'NULL'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'messageClassExtension', 'type': 'SEQUENCE'}], 'type': 'CHOICE'}, 'UL-ReferenceSignalsPUSCH': {'members': [{'name': 'groupHoppingEnabled', 'type': 'BOOLEAN'}, {'name': 'groupAssignmentPUSCH', 'restricted-to': [(0, 29)], 'type': 'INTEGER'}, {'name': 'sequenceHoppingEnabled', 'type': 'BOOLEAN'}, {'name': 'cyclicShift', 'restricted-to': [(0, 7)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'UL-UM-RLC': {'members': [{'name': 'sn-FieldLength', 'type': 'SN-FieldLength'}], 'type': 'SEQUENCE'}, 'ULHandoverPreparationTransfer': {'members': [{'members': [{'members': [{'name': 'ulHandoverPreparationTransfer-r8', 'type': 'ULHandoverPreparationTransfer-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'ULHandoverPreparationTransfer-r8-IEs': {'members': [{'name': 'cdma2000-Type', 'type': 'CDMA2000-Type'}, {'name': 'meid', 'optional': True, 'size': [56], 'type': 'BIT ' 'STRING'}, {'name': 'dedicatedInfo', 'type': 'DedicatedInfoCDMA2000'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'ULInformationTransfer': {'members': [{'members': [{'members': [{'name': 'ulInformationTransfer-r8', 'type': 'ULInformationTransfer-r8-IEs'}, {'name': 'spare3', 'type': 'NULL'}, {'name': 'spare2', 'type': 'NULL'}, {'name': 'spare1', 'type': 'NULL'}], 'name': 'c1', 'type': 'CHOICE'}, {'members': [], 'name': 'criticalExtensionsFuture', 'type': 'SEQUENCE'}], 'name': 'criticalExtensions', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'ULInformationTransfer-r8-IEs': {'members': [{'members': [{'name': 'dedicatedInfoNAS', 'type': 'DedicatedInfoNAS'}, {'name': 'dedicatedInfoCDMA2000-1XRTT', 'type': 'DedicatedInfoCDMA2000'}, {'name': 'dedicatedInfoCDMA2000-HRPD', 'type': 'DedicatedInfoCDMA2000'}], 'name': 'dedicatedInfoType', 'type': 'CHOICE'}, {'members': [], 'name': 'nonCriticalExtension', 'optional': True, 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'UplinkPowerControlCommon': {'members': [{'name': 'p0-NominalPUSCH', 'restricted-to': [(-126, 24)], 'type': 'INTEGER'}, {'name': 'alpha', 'type': 'ENUMERATED', 'values': [('al0', 0), ('al04', 1), ('al05', 2), ('al06', 3), ('al07', 4), ('al08', 5), ('al09', 6), ('al1', 7)]}, {'name': 'p0-NominalPUCCH', 'restricted-to': [(-127, -96)], 'type': 'INTEGER'}, {'name': 'deltaFList-PUCCH', 'type': 'DeltaFList-PUCCH'}, {'name': 'deltaPreambleMsg3', 'restricted-to': [(-1, 6)], 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'UplinkPowerControlDedicated': {'members': [{'name': 'p0-UE-PUSCH', 'restricted-to': [(-8, 7)], 'type': 'INTEGER'}, {'name': 'deltaMCS-Enabled', 'type': 'ENUMERATED', 'values': [('en0', 0), ('en1', 1)]}, {'name': 'accumulationEnabled', 'type': 'BOOLEAN'}, {'name': 'p0-UE-PUCCH', 'restricted-to': [(-8, 7)], 'type': 'INTEGER'}, {'name': 'pSRS-Offset', 'restricted-to': [(0, 15)], 'type': 'INTEGER'}, {'default': 'fc4', 'name': 'filterCoefficient', 'type': 'FilterCoefficient'}], 'type': 'SEQUENCE'}}, 'values': {'maxBands': {'type': 'INTEGER', 'value': 64}, 'maxCDMA-BandClass': {'type': 'INTEGER', 'value': 32}, 'maxCellBlack': {'type': 'INTEGER', 'value': 16}, 'maxCellInter': {'type': 'INTEGER', 'value': 16}, 'maxCellIntra': {'type': 'INTEGER', 'value': 16}, 'maxCellMeas': {'type': 'INTEGER', 'value': 32}, 'maxCellReport': {'type': 'INTEGER', 'value': 8}, 'maxDRB': {'type': 'INTEGER', 'value': 11}, 'maxEARFCN': {'type': 'INTEGER', 'value': 65535}, 'maxFreq': {'type': 'INTEGER', 'value': 8}, 'maxGERAN-SI': {'type': 'INTEGER', 'value': 10}, 'maxGNFG': {'type': 'INTEGER', 'value': 16}, 'maxMBSFN-Allocations': {'type': 'INTEGER', 'value': 8}, 'maxMCS-1': {'type': 'INTEGER', 'value': 16}, 'maxMeasId': {'type': 'INTEGER', 'value': 32}, 'maxObjectId': {'type': 'INTEGER', 'value': 32}, 'maxPNOffset': {'type': 'INTEGER', 'value': 511}, 'maxPageRec': {'type': 'INTEGER', 'value': 16}, 'maxRAT-Capabilities': {'type': 'INTEGER', 'value': 8}, 'maxReportConfigId': {'type': 'INTEGER', 'value': 32}, 'maxSI-Message': {'type': 'INTEGER', 'value': 32}, 'maxSIB': {'type': 'INTEGER', 'value': 32}, 'maxSIB-1': {'type': 'INTEGER', 'value': 31}, 'maxUTRA-FDD-Carrier': {'type': 'INTEGER', 'value': 16}, 'maxUTRA-TDD-Carrier': {'type': 'INTEGER', 'value': 16}}}, 'EUTRA-UE-Variables': {'extensibility-implied': False, 'imports': {'EUTRA-RRC-Definitions': ['C-RNTI', 'CellIdentity', 'MeasId', 'MeasIdToAddModList', 'MeasObjectToAddModList', 'MobilityStateParameters', 'NeighCellConfig', 'PhysCellId', 'QuantityConfig', 'RSRP-Range', 'ReportConfigToAddModList', 'SpeedStateScaleFactors', 'maxCellMeas', 'maxMeasId']}, 'object-classes': {}, 'object-sets': {}, 'tags': 'AUTOMATIC', 'types': {'CellsTriggeredList': {'element': {'type': 'PhysCellId'}, 'size': [(1, 'maxCellMeas')], 'type': 'SEQUENCE OF'}, 'VarMeasConfig': {'members': [{'name': 'measIdList', 'optional': True, 'type': 'MeasIdToAddModList'}, {'name': 'measObjectList', 'optional': True, 'type': 'MeasObjectToAddModList'}, {'name': 'reportConfigList', 'optional': True, 'type': 'ReportConfigToAddModList'}, {'name': 'quantityConfig', 'optional': True, 'type': 'QuantityConfig'}, {'name': 's-Measure', 'optional': True, 'type': 'RSRP-Range'}, {'members': [{'name': 'release', 'type': 'NULL'}, {'members': [{'name': 'mobilityStateParameters', 'type': 'MobilityStateParameters'}, {'name': 'timeToTrigger-SF', 'type': 'SpeedStateScaleFactors'}], 'name': 'setup', 'type': 'SEQUENCE'}], 'name': 'speedStatePars', 'optional': True, 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'VarMeasReport': {'members': [{'name': 'measId', 'type': 'MeasId'}, {'name': 'cellsTriggeredList', 'optional': True, 'type': 'CellsTriggeredList'}, {'name': 'numberOfReportsSent', 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'VarMeasReportList': {'element': {'type': 'VarMeasReport'}, 'size': [(1, 'maxMeasId')], 'type': 'SEQUENCE OF'}, 'VarShortMAC-Input': {'members': [{'name': 'cellIdentity', 'type': 'CellIdentity'}, {'name': 'physCellId', 'type': 'PhysCellId'}, {'name': 'c-RNTI', 'type': 'C-RNTI'}], 'type': 'SEQUENCE'}}, 'values': {}}}
#!/usr/bin/python # ============================================================================== # Author: Tao Li ([email protected]) # Date: Jul 7, 2015 # Question: 121-Best-Time-to-Buy-and-Sell-Stock # Link: https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ # ============================================================================== # Say you have an array for which the ith element is the price of a given stock # on day i. # # If you were only permitted to complete at most one transaction (ie, buy one # and sell one share of the stock), design an algorithm to find the maximum # profit. # ============================================================================== # Method: DP # Time Complexity: O(n) # Space Complexity: O(n) # ============================================================================== class Solution: # @param {integer[]} prices # @return {integer} def maxProfit(self, prices): size = len(prices) if size <= 1: return 0 dp = [0] * size minVal = prices[0] for i in xrange(1, size): dp[i] = max(dp[i-1], prices[i]-minVal) minVal = prices[i] if prices[i] < minVal else minVal return dp[-1]
mandado=["naranja","manzana","pina"] for fruta in mandado: print(fruta) i=1 while i<=15: print(i) i=i+1 a=-3 while a<=3: print(a) a=a+1 #Imprimir los primeros 20 numeros pares iterador=0 print("Tope") #while iterador<40: # iterador+=2 # print(iterador) palabra="el elefante negro" #for caracter in palabra: #print(caracter) #Hacer un programa que me imprima cada fruta de mi mandado pero sin la letra a #for fruta in mandado: # for caracter in fruta: # if caracter=="a": # continue # else: # print(caracter, end=" ") #print("\n") #i=0 #while i<=10: # print(i) # i+=1 #i=0 carros=["bmw","mercedes","chevy"] saludo="hola" numero=123456 print(len(str(numero))) print(len(saludo)) print(len(carros)) for elemento in carros: print(elemento) i=0 while i<len(carros): print(carros[i]) i=i+1
STATUS_TO_ERROR = { # basic server errors 0: 'AS_OK', 1: 'AS_ERR_UNKNOWN', 2: 'AS_ERR_NOT_FOUND', 3: 'AS_ERR_GENERATION', 4: 'AS_ERR_PARAMETER', 5: 'AS_ERR_RECORD_EXISTS', 6: 'AS_ERR_BIN_EXISTS', 7: 'AS_ERR_CLUSTER_KEY_MISMATCH', 8: 'AS_ERR_OUT_OF_SPACE', 9: 'AS_ERR_TIMEOUT', 10: 'AS_ERR_ALWAYS_FORBIDDEN', 11: 'AS_ERR_UNAVAILABLE', 12: 'AS_ERR_INCOMPATIBLE_TYPE', 13: 'AS_ERR_RECORD_TOO_BIG', 14: 'AS_ERR_KEY_BUSY', 15: 'AS_ERR_SCAN_ABORT', 16: 'AS_ERR_UNSUPPORTED_FEATURE', 17: 'AS_ERR_BIN_NOT_FOUND', 18: 'AS_ERR_DEVICE_OVERLOAD', 19: 'AS_ERR_KEY_MISMATCH', 20: 'AS_ERR_NAMESPACE', 21: 'AS_ERR_BIN_NAME', 22: 'AS_ERR_FORBIDDEN', 23: 'AS_ERR_ELEMENT_NOT_FOUND', 24: 'AS_ERR_ELEMENT_EXISTS', 25: 'AS_ERR_ENTERPRISE_ONLY', 26: 'AS_ERR_OP_NOT_APPLICABLE', 27: 'AS_ERR_LOST_CONFLICT', # security specific errors 50: 'AS_SEC_OK_LAST', 51: 'AS_SEC_ERR_NOT_SUPPORTED', 52: 'AS_SEC_ERR_NOT_ENABLED', 53: 'AS_SEC_ERR_SCHEME', 54: 'AS_SEC_ERR_COMMAND', 55: 'AS_SEC_ERR_FIELD', 56: 'AS_SEC_ERR_STATE', 60: 'AS_SEC_ERR_USER', 61: 'AS_SEC_ERR_USER_EXISTS', 62: 'AS_SEC_ERR_PASSWORD', 63: 'AS_SEC_ERR_EXPIRED_PASSWORD', 64: 'AS_SEC_ERR_FORBIDDEN_PASSWORD', 65: 'AS_SEC_ERR_CREDENTIAL', 66: 'AS_SEC_ERR_EXPIRED_SESSION', 70: 'AS_SEC_ERR_ROLE', 71: 'AS_SEC_ERR_ROLE_EXISTS', 72: 'AS_SEC_ERR_PRIVILEGE', 73: 'AS_SEC_ERR_WHITELIST', 80: 'AS_SEC_ERR_NOT_AUTHENTICATED', 81: 'AS_SEC_ERR_ROLE_VIOLATION', 82: 'AS_SEC_ERR_NOT_WHITELISTED', 90: 'AS_SEC_ERR_LDAP_NOT_ENABLED', 91: 'AS_SEC_ERR_LDAP_SETUP', 92: 'AS_SEC_ERR_LDAP_TLS_SETUP', 93: 'AS_SEC_ERR_LDAP_AUTHENTICATION', 94: 'AS_SEC_ERR_LDAP_QUERY', # UDF specific errors 100: 'AS_ERR_UDF_EXECUTION', # batch specific errors 150: 'AS_ERR_BATCH_DISABLED', 151: 'AS_ERR_BATCH_MAX_REQUESTS', 152: 'AS_ERR_BATCH_QUEUES_FULL', # GEO specific errors 160: 'AS_ERR_GEO_INVALID_GEOJSON', # secondary index specific errors 200: 'AS_ERR_SINDEX_FOUND', 201: 'AS_ERR_SINDEX_NOT_FOUND', 202: 'AS_ERR_SINDEX_OOM', 203: 'AS_ERR_SINDEX_NOT_READABLE', 204: 'AS_ERR_SINDEX_GENERIC', 205: 'AS_ERR_SINDEX_NAME', 206: 'AS_ERR_SINDEX_MAX_COUNT', 210: 'AS_ERR_QUERY_USER_ABORT', 211: 'AS_ERR_QUERY_QUEUE_FULL', 212: 'AS_ERR_QUERY_TIMEOUT', 213: 'AS_ERR_QUERY_CB', 214: 'AS_ERR_QUERY_NET_IO', 215: 'AS_ERR_QUERY_DUPLICATE' } class AerospikeError(Exception): """Base Aerospike Error""" def __init__(self, status_code, message): self.status_code = status_code self.message = message super().__init__(self.message)
"""Handles import of external/third-party repositories. """ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def optimus_repositories(): maybe( http_archive, name = "bazel_skylib", urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz"], sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", ) maybe( http_archive, name = "eigen", build_file = "@com_github_mvukov_optimus//repositories:eigen.BUILD.bazel", sha256 = "7985975b787340124786f092b3a07d594b2e9cd53bbfe5f3d9b1daee7d55f56f", strip_prefix = "eigen-3.3.9", urls = ["https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz"], ) maybe( http_archive, name = "com_github_mvukov_qpoases_embedded", sha256 = "8834df1bbd12c21a69d8f2de6e6a2066e8ebd91f91371f7eeb72fe415934cb34", strip_prefix = "qpoases_embedded-0.1.0", urls = ["https://github.com/mvukov/qpoases_embedded/archive/refs/tags/v0.1.0.tar.gz"], )
''' 6 kyu Convert string to camel case.py https://www.codewars.com/kata/517abf86da9663f1d2000003/train/python Complete the method/function so that it converts dash/underscore delimited words into camel casing. The first word within the output should be capitalized only if the original word was capitalized (known as Upper Camel Case, also often referred to as Pascal case). Examples to_camel_case("the-stealth-warrior") # returns "theStealthWarrior" to_camel_case("The_Stealth_Warrior") # returns "TheStealthWarrior" ''' def to_camel_case(text): return text[:1] + text.title()[1:].replace('_', '').replace('-', '')
class FrankaArmCommException(Exception): ''' Communication failure. Usually occurs due to timeouts. ''' def __init__(self, message, *args, **kwargs): Exception.__init__(self, *args, **kwargs) self.message = message def __str__(self): return "Communication w/ FrankaInterface ran into a problem: {}. FrankaInterface is probably not ready.".format(self.message) class FrankaArmFrankaInterfaceNotReadyException(Exception): ''' Exception for when franka_interface is not ready ''' def __init__(self, *args, **kwargs): Exception.__init__(self, *args, **kwargs) def __str__(self): return 'FrankaInterface was not ready!' class FrankaArmException(Exception): ''' Failure of control, typically due to a kinematically unreachable pose. ''' def __init__(self, message, *args, **kwargs): Exception.__init__(self, *args, **kwargs) self.message = message def __str__(self): return "FrankaInterface ran into a problem: {}".format(self.message)
""" This module contains all the exceptions that are specific to BGD. """ # errors.py # author : Antoine Passemiers, Robin Petit __all__ = [ 'RequiredComponentError', 'WrongComponentTypeError', 'NonLearnableLayerError' ] class RequiredComponentError(Exception): """ Exception raised when a :class:`bgd.nn.NeuralStack` hasn't been setup properly and at least a component is missing. """ pass class WrongComponentTypeError(Exception): """ Exception raised when a component of unrecognized type is attempted to be added to a :class:`bgd.nn.NeuralStack`. """ pass class NonLearnableLayerError(Exception): """ Exception raised to warn that an attempt to update parameter of a non-parametric layer has been attempted. """ pass
class Solution(object): def getRow(self, rowIndex): """ :type rowIndex: int :rtype: List[int] """ row = [1] for _ in range(rowIndex): # pad 0, perform element-wise addition row = [x + y for x, y in zip([0] + row, row + [0])] return row # row = [1] # for i in range(rowIndex): # row = [1] + [row[j] + row[j + 1] for j in range(len(row) - 1)] + [1] # return row
# # @lc app=leetcode.cn id=62 lang=python3 # # [62] 不同路径 # # https://leetcode-cn.com/problems/unique-paths/description/ # # algorithms # Medium (52.81%) # Total Accepted: 16.6K # Total Submissions: 31.3K # Testcase Example: '3\n2' # # 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为“Start” )。 # # 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为“Finish”)。 # # 问总共有多少条不同的路径? # # # # 例如,上图是一个7 x 3 的网格。有多少可能的路径? # # 说明:m 和 n 的值均不超过 100。 # # 示例 1: # # 输入: m = 3, n = 2 # 输出: 3 # 解释: # 从左上角开始,总共有 3 条路径可以到达右下角。 # 1. 向右 -> 向右 -> 向下 # 2. 向右 -> 向下 -> 向右 # 3. 向下 -> 向右 -> 向右 # # # 示例 2: # # 输入: m = 7, n = 3 # 输出: 28 # # class Solution: path_dict = {} # 递归 def uniquePaths(self, m: int, n: int) -> int: if m == 0 or n == 0: return 0 elif m == 1 or n == 1: return 1 if (m,n) in self.path_dict: return self.path_dict[(m,n)] else: path = self.uniquePaths(m - 1, n) + self.uniquePaths(m, n - 1) self.path_dict[(m,n)] = path return path
def created(data_json): # A user creates an issue for a repository. repository = data_json['repository'] # repository_scm = repository['scm'] repository_name = repository['name'] repository_link = repository['links']['html']['href'] # actor = data_json['actor'] # actor_name = actor['display_name'] # actor_profile = actor['links']['html']['href'] issue = data_json['issue'] issue_title = issue['title'] issue_priority = issue['priority'] if 'assignee' in issue: if issue['assignee']: issue_assignee_name = issue['assignee']['display_name'] issue_assignee_link = issue['assignee']['links']['html']['href'] else: issue_assignee_name = "' '" issue_assignee_link = "' '" else: issue_assignee_name = "' '" issue_assignee_link = "' '" issue_reporter_name = issue['reporter']['display_name'] issue_reporter_link = issue['reporter']['links']['html']['href'] issue_description = issue['content']['raw'] issue_created_on = issue['created_on'] issue_link = issue['links']['html']['href'] message = "Issue Created in [{}]({}) " \ " \nTitle: [{}]({}) " \ "\nPriority: *{}* " \ "\nReporter: [{}]({}) " \ "\nAssignee: [{}]({}) " \ "\nCreated On: {}" \ "\nDescription: {}".format(repository_name, repository_link, issue_title, issue_link, issue_priority, issue_reporter_name, issue_reporter_link, issue_assignee_name, issue_assignee_link, issue_created_on, issue_description) return message
class CheckPosture: def __init__(self, scale=1, key_points={}): self.key_points = key_points self.scale = scale self.message = "" def set_key_points(self, key_points): self.key_points = key_points def get_key_points(self): return self.key_points def set_message(self, message): self.message = message def get_message(self): return self.message def set_scale(self, scale): self.scale = scale def get_scale(self): return self.scale def check_lean_forward(self): if self.key_points['Left Shoulder'].x != -1 and self.key_points['Left Ear'].x != -1 \ and self.key_points['Left Shoulder'].x >= (self.key_points['Left Ear'].x + (self.scale * 150)): return False if self.key_points['Right Shoulder'].x != -1 and self.key_points['Right Ear'].x != -1 \ and self.key_points['Right Shoulder'].x >= (self.key_points['Right Ear'].x + (self.scale * 160)): return False return True def check_slump(self): if self.key_points['Neck'].y != -1 and self.key_points['Nose'].y != -1 and (self.key_points['Nose'].y >= self.key_points['Neck'].y - (self.scale * 150)): return False return True def check_head_drop(self): if self.key_points['Left Eye'].y != -1 and self.key_points['Left Ear'].y != -1 and self.key_points['Left Eye'].y > (self.key_points['Left Ear'].y + (self.scale * 15)): return False if self.key_points['Right Eye'].y != -1 and self.key_points['Right Ear'].y != -1 and self.key_points['Right Eye'].y > (self.key_points['Right Ear'].y + (self.scale * 15)): return False return True def correct_posture(self): return all([self.check_slump(), self.check_head_drop(), self.check_lean_forward()]) def build_message(self): current_message = "" if not self.check_head_drop(): current_message += "Lift up your head!\n" if not self.check_lean_forward(): current_message += "Lean back!\n" if not self.check_slump(): current_message += "Sit up in your chair, you're slumping!\n" self.message = current_message return current_message
#! python3 # __author__ = "YangJiaHao" # date: 2018/2/23 class Solution: def groupAnagrams(self, strs): """ :type strs: List[str] :rtype: List[List[str]] """ result = {} for s in strs: # key = tuple(sorted(s)) # result[key] = result.get(key, []) + [s] if tuple(sorted(s)) in result: result[tuple(sorted(s))].append(s) else: result[tuple(sorted(s))] = [s] return list(result.values()) if __name__ == '__main__': so = Solution() res = so.groupAnagrams(["eat", "tea", "tan", "ate", "nat", "bat"]) print(res)
# 無效率作法 O(n^2) # def singleNumber(nums): # for i in range(len(nums)): # count = 0 # for j in range(len(nums)): # if nums[i] == nums[j]: # count += 1 # if count == 1: # return nums[i] # 用bitwise去解 XOR(^) # A XOR A = 0 # A XOR 0 = A # A XOR B = B XOR A # 時間複雜度為O(n),空間複雜度則為O(1)) def singleNumber(nums): n = nums[0] for i in range(1, len(nums)): n ^= nums[i] return n if __name__=='__main__': nums = [4, 2, 4, 2, 3] print(singleNumber(nums)) class Solution: def singleNumber(self, nums) -> int: table = {} for n in nums: table[n] = table.get(n, 0) + 1 for key in table.keys(): if table[key] == 1: return key
# Defining rule for gdrive command and config. def _gdrive(ctx): gdrive_cmd = ctx.attr.gdrive_cmd gdrive_cfg = ctx.attr.gdrive_config return struct(command=gdrive_cmd, config=gdrive_cfg) gdrive = rule( implementation=_gdrive, attrs={ "gdrive_cmd": attr.string(mandatory=True), "gdrive_config": attr.string(mandatory=True), }, ) # Defining rule to export using gdrive. def _gdrive_export(ctx): doc_id = ctx.attr.doc_id gdrive_cmd = ctx.attr.gdrive.command mime = ctx.attr.mime gdrive_config = ctx.attr.gdrive.config output = ctx.outputs.out ctx.action( outputs=[output], command="""x=`%s export --force --mime %s --config %s %s`; \ x=${x#*\\'}; x=${x%%\\' with*} ; \ mv \"${x}\" %s""" % (gdrive_cmd, mime, gdrive_config, doc_id, output.path)) return struct(output_file=output) gdrive_export = rule( implementation=_gdrive_export, attrs={ "doc_id": attr.string(mandatory=True), "mime": attr.string(mandatory=False, default="text/plain"), "gdrive": attr.label(mandatory=False, providers=["config","command"]), "output": attr.string(mandatory=True), }, outputs={"out":"%{output}"}, ) # Defining rule to download using gdrive. def _gdrive_download(ctx): folder_id = ctx.attr.folder_id gdrive_cmd = ctx.attr.gdrive.command gdrive_config = ctx.attr.gdrive.config output = ctx.outputs.out ctx.action( outputs=[output], command="""x=`%s download --recursive --force --config %s %s`; \ x=${x##*-> }; x=${x%%/*}; \ mv \"${x}\" %s""" % (gdrive_cmd, gdrive_config, folder_id, output.path)) return struct(output_file=output) gdrive_download = rule( implementation=_gdrive_download, attrs={ "folder_id": attr.string(mandatory=True), "gdrive": attr.label(mandatory=False, providers=["config","command"]), "output": attr.string(mandatory=True), }, outputs={"out":"%{output}"}, ) # Defining rule to update using gdrive. def _gdrive_update(ctx): doc_id = ctx.attr.doc_id gdrive_cmd = ctx.attr.gdrive.command gdrive_config = ctx.attr.gdrive.config file_to_update = ctx.attr.output_file.output_file output = ctx.outputs.out ctx.action( inputs=[file_to_update], outputs=[output], command="""cp %s %s;\ %s update --config %s %s %s""" % (file_to_update.path, output.path, gdrive_cmd, gdrive_config, doc_id, output.path)) return struct(output_file=output) gdrive_update = rule( implementation=_gdrive_update, attrs={ "doc_id": attr.string(mandatory=True), "gdrive_name": attr.string(mandatory=True), "gdrive": attr.label(mandatory=False, providers=["config","command"]), "output_file": attr.label(mandatory=True, providers=["output_file"]), }, outputs={"out":"%{gdrive_name}"}, )
'''Function''' def read_input(path: str): """ Read game board file from path. Return list of str. >>> read_input("check.txt") ['***21**', '412453*', '423145*', '*543215', '*35214*', '*41532*', '*2*1***'] """ field = '' with open(path, 'r') as input_f: for line in input_f: field += line field = field.split('\n') return field[:-1] def check_lines(input_line, point): ''' The following functions checks the visibility from the horizontal perspective. ''' input_line = input_line[1:-1] counter = 0 start = int(input_line[0]) for elem in input_line: if int(elem) >= start: counter += 1 start = int(elem) if counter != point: return False return True def left_to_right_check(input_line: str, pivot: int): """ Check row-wise visibility from left to right. Return True if number of building from the left-most hint is visible looking to the right, False otherwise. input_line - representing board row. pivot - number on the left-most hint of the input_line. >>> left_to_right_check("412453*", 4) True >>> left_to_right_check("452453*", 5) False """ input_line = input_line[1:pivot+1] marked = input_line[pivot-1] if marked < max(list(input_line)): return False return True def check_not_finished_board(board: list): """ Check if skyscraper board is not finished, i.e., '?' present on the game board. Return True if finished, False otherwise. >>> check_not_finished_board(['***21**', '4?????*', '4?????*', '*?????5', \ '*?????*', '*?????*', '*2*1***']) False >>> check_not_finished_board(['***21**', '412453*', '423145*', '*543215', \ '*35214*', '*41532*', '*2*1***']) True >>> check_not_finished_board(['***21**', '412453*', '423145*', '*5?3215', \ '*35214*', '*41532*', '*2*1***']) False """ for elem in board: if '?' in elem: return False return True def check_uniqueness_in_rows(board: list): """ Check buildings of unique height in each row. Return True if buildings in a row have unique length, False otherwise. >>> check_uniqueness_in_rows(['***21**', '412453*', '423145*', '*543215', \ '*35214*', '*41532*', '*2*1***']) True >>> check_uniqueness_in_rows(['***21**', '452453*', '423145*', '*543215', \ '*35214*', '*41532*', '*2*1***']) False >>> check_uniqueness_in_rows(['***21**', '412453*', '423145*', '*553215', \ '*35214*', '*41532*', '*2*1***']) False """ for elem in board: elem = elem[1:-1] elem = elem.replace('*', '') elem = list(elem) copy_elem = set(elem) if len(elem) != len(copy_elem): return False return True def check_horizontal_visibility(board: list): """ Check row-wise visibility (left-right and vice versa) Return True if all horizontal hints are satisfiable, i.e., for line 412453* , hint is 4, and 1245 are the four buildings that could be observed from the hint looking to the right. >>> check_horizontal_visibility(['***21**', '412453*', '423145*', '*543215',\ '*35214*', '*41532*', '*2*1***']) True >>> check_horizontal_visibility(['***21**', '452453*', '423145*', '*543215', \ '*35214*', '*41532*', '*2*1***']) False >>> check_horizontal_visibility(['***21**', '452413*', '423145*', '*543215', \ '*35214*', '*41532*', '*2*1***']) False """ for elem in board: if elem[0] != '*': result = check_lines(elem, int(elem[0])) if not result: return False elif elem[-1] != '*': elem = elem[::-1] result = check_lines(elem, int(elem[0])) if not result: return False return True def check_columns(board: list): """ Check column-wise compliance of the board for uniqueness (buildings of \ unique height) and visibility (top-bottom and vice versa). Same as for horizontal cases, but aggregated in one function for vertical \ case, i.e. columns. >>> check_columns(['***21**', '412453*', '423145*', '*543215', '*35214*', \ '*41532*', '*2*1***']) True >>> check_columns(['***21**', '412453*', '423145*', '*543215', '*35214*', \ '*41232*', '*2*1***']) False >>> check_columns(['***21**', '412553*', '423145*', '*543215', '*35214*', \ '*41532*', '*2*1***']) False """ new_board = [] for _ in range(len(board[0])): new_row = '' for col in board: new_row += col[_] new_board.append(new_row) new_board = new_board[1:-1] case = check_uniqueness_in_rows(new_board) if not case: return False for char in board[0]: if char != '*': index = board[0].find(char) column = '' for elem in board: column += elem[index] result = check_lines(column, int(column[0])) if not result: return False for rahc in board[-1]: if rahc != '*': index = board[-1].find(rahc) column = '' for elem in board: column += elem[index] column = column[::-1] result = check_lines(column, int(column[0])) if not result: return False return True def check_skyscrapers(input_path: str): """ Main function to check the status of skyscraper game board. Return True if the board status is compliant with the rules, False otherwise. >>> check_skyscrapers("check.txt") True """ board = read_input(input_path) test1 = check_not_finished_board(board) test2 = check_uniqueness_in_rows(board) test3 = check_horizontal_visibility(board) test4 = check_columns(board) if not test1 or not test2 or not test3 or not test4: return False return True if __name__ == "__main__": print(check_skyscrapers("check.txt"))
## Arruma os NCM ## Os registros nos grupos C180 e C190 são populados pelo PCMOV ## inserindo NCM diferente, com isso preciso pegar o ncm do produto ## no 0200 e propagar nos C180 e C190 def exec(conexao): cursor = conexao.cursor() print("RULE 01 - Inicializando",end=' - ') for i in ["C180","C190"]: upd = " UPDATE principal SET " upd = upd + " r6 = (SELECT distinct p.r8 " upd = upd + " FROM principal as p " upd = upd + " WHERE p.r1 = \"0200\" " upd = upd + " AND p.r2 = principal.r5) " upd = upd + " WHERE r1 = \"" + i + "\" " print('-',end=' ') cursor.execute(upd) conexao.commit() print("Finalizado")
#python OrderedDict class LRUCache: def __init__(self, capacity: int): self.cache = collections.OrderedDict() self.capacity = capacity def get(self, key: int) -> int: if key not in self.cache: return -1 val = self.cache.pop[key] self.cache[key] = val return val def put(self, key: int, value: int) -> None: if key in self.cache: del self.cache[key] elif len(self.cache) == self.capacity: self.cache.popitem(last = False) self.cache[key] = value class LRUCache: def __init__(self, MSize): self.size = MSize self.cache = {} self.next, self.before = {}, {} self.head, self.tail = '#', '$' self.connect(self.head, self.tail) def connect(self, a, b): self.next[a], self.before[b] = b, a def delete(self, key): self.connect(self.before[key], self.next[key]) del self.before[key], self.next[key], self.cache[key] def append(self, k, v): self.cache[k] = v self.connect(self.before[self.tail], k) self.connect(k, self.tail) if len(self.cache) > self.size: self.delete(self.next[self.head]) def get(self, key): if key not in self.cache: return -1 val = self.cache[key] self.delete(key) self.append(key, val) return val def put(self, key, value): if key in self.cache: self.delete(key) self.append(key, value) #Push in tail, delete from head class ListNode: def __init__(self,key, val): self.key = key self.val = val self.next = None self.prev = None class LinkedList: def __init__(self,): self.head = None self.tail = None def insert(self, node): node.next, node.prev = None, None if self.head: self.tail.next = node node.prev = self.tail else: self.head = node self.tail = node def delete(self,node): if node.prev: node.prev.next = node.next else: self.head = node.next if node.next: node.next.prev = node.prev else: self.tail = node.prev node.next, node.prev = None, None class LRUCache: def __init__(self, capacity: int): self.List = LinkedList() self.dic = {} self.capacity = capacity def __insert(self,key, val): if key in self.dic: self.List.delete(self.dic[key]) node = ListNode(key,val) self.List.insert(node) self.dic[key] = node def get(self, key: int) -> int: if key not in self.dic: return -1 val = self.dic[key].val self.__insert(key, val) return val def put(self, key: int, value: int) -> None: if len(self.dic) == self.capacity and key not in self.dic: #print("del ",self.List.head.key) del self.dic[self.List.head.key] self.List.delete(self.List.head) self.__insert(key,value) #Push in head, delete from tail class ListNode: def __init__(self,key, val): self.key = key self.val = val self.next = None self.prev = None class LinkedList: def __init__(self,): self.head = None self.tail = None def insert(self, node): node.next, node.prev = None, None if not self.tail: self.tail = node if self.head: node.next = self.head self.head.prev = node self.head = node def delete(self,node): if node.prev: node.prev.next = node.next else: self.head = node.next if node.next: node.next.prev = node.prev else: self.tail = node.prev node.next, node.prev = None, None class LRUCache: def __init__(self, capacity: int): self.List = LinkedList() self.dic = {} self.capacity = capacity def __insert(self,key, val): if key in self.dic: self.List.delete(self.dic[key]) node = ListNode(key,val) self.List.insert(node) self.dic[key] = node def get(self, key: int) -> int: if key not in self.dic: return -1 val = self.dic[key].val self.__insert(key, val) return val def put(self, key: int, value: int) -> None: if len(self.dic) == self.capacity and key not in self.dic: #print("del ",self.List.tail.key) del self.dic[self.List.tail.key] self.List.delete(self.List.tail) self.__insert(key,value)
pessoa = dict() while True: nome = str(input("Nome: ")) media = float(input(f"Média de {nome}: ")) pessoa = {"media" : media} pessoa["nome"] = nome pessoa["situcao"] = "empty" if media < 7 and media >= 5: pessoa["situacao"] = "Recuperação" elif media < 5: pessoa["situcao"] = "Reprovado" else: pessoa["situacao"] = "Aprovado" print(20 * "-=") for k, v in pessoa.items(): print(f"{k} é igual a {v}") res = str(input("Quer Continuar [S/N]")).upper if res == "N": break print()
# CENG 487 Assignment6 by # Arif Burak Demiray # December 2021 class Scene: def __init__(self): self.nodes = [] def add(self, node): self.nodes.append(node)
CONSUMER_KEY = 'CHANGE_ME' CONSUMER_SECRET = 'CHANGE_ME' ACCESS_TOKEN = 'CHANGE_ME' ACCESS_TOKEN_SECRET = 'CHANGE_ME'
li = list(map(int, input().split())) li.sort() print(li[0]+li[1])
# 二叉搜索树 class BST: class Node: def __init__(self,key,value): self.key = key self.value = value self.left_node = self.right_node = None def __init__(self): self.__root = None self.__count = 0 def get_size(self): return self.__count def isEmpty(self): return self.__count == 0 def insert(self,key,value): self.__root = self.__insert(self,self.__root,key,value)
class Solution: def strStr(self, haystack: str, needle: str) -> int: if not needle: return 0 if not haystack: return 0 if not needle else -1 for i in range(len(haystack)): for j in range(len(needle)): if i+j > len(haystack)-1: return -1 if haystack[i+j] != needle[j]: break if j == len(needle)-1: return i return -1 ##### ## More python way ##### # for i in range(len(haystack) - len(needle)+1): # if haystack[i:i+len(needle)] == needle: # return i # return -1 assert Solution().strStr("", "a") == -1 assert Solution().strStr("a", "") == 0 assert Solution().strStr("aaa", "aaaa") == -1 assert Solution().strStr("hello", "ll") == 2 assert Solution().strStr("mississippi", "issip") == 4 assert Solution().strStr("mississippi", "issipi") == -1 assert Solution().strStr("aaaaa", "bba") == -1 print("OH YEAH!")
# -*- coding: utf-8 -*- # @Author: 何睿 # @Create Date: 2018-12-18 17:28:42 # @Last Modified by: 何睿 # @Last Modified time: 2018-12-18 17:36:33 class Solution: def plusOne(self, digits): """ :type digits: List[int] :rtype: List[int] """ # 结果数组 res = [] # 数组最后一个元素的索引 index = len(digits)-1 # 获取最后一个元素的值 last = digits[index] # 当需要进位的时候才进行循环 while last+1 == 10: # 需要进位,在首位插入0 res.insert(0, 0) # index指向数组的前一个元素 index -= 1 # 如果index越界,重新赋值为0,即重新指向首位置 if index == -1: index += 1 # 在输入数组的首位插入0占位 digits.insert(0, 0) # last继续指向输入数组的末尾位置,此时index已经自减一次 last = digits[index] digits[index] += 1 # 将res和digits数组中的元素合并 res = digits[:index+1]+res return res
{ "targets": [ { "target_name": "daqhats", "cflags!": [ "-fno-exceptions" ], "cflags_cc!": [ "-fno-exceptions" ], "sources": [ "./lib/cJSON.c", "./lib/gpio.c", "./lib/mcc118.c", "./lib/mcc128.c", "./lib/mcc134_adc.c", "./lib/mcc134.c", "./lib/mcc152_dac.c", "./lib/mcc152_dio.c", "./lib/mcc152.c", "./lib/mcc172.c", "./lib/nist.c", "./lib/util.c", # "./tools/daqhats_check_152.c", # "./tools/daqhats_list_boards.c", # "./tools/mcc118_update_firmware.c", # "./tools/mcc128_update_firmware.c", # "./tools/mcc172_update_firmware.c", "./usercode/mcc118_single_read.c", "./usercode/index.cpp" ], "include_dirs": [ "<!@(node -p \"require('node-addon-api').include\")", "./lib", "./include", "./examples/c", "/opt/vc/include", "/usr/include", "/opt/vc/lib" # "./tools" ], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ], 'cflags_cc': [ '-lm', '-lbcm_host' ] } ] }
#IMPORTANT: This syntax will create an empty dictionary and not an empty set a = {} print(type(a)) #An empty set can be created using the below syntax: b = set() print(type(b)) b.add(4) b.add(5)
class Config(object): def __init__(self): # Font Size # 1. Index, Distance, Degree self.fontSize = 10 # Font Family # 1. Index, Distance, Degree self.fontFamily = 'Consolas' # Shifting # 1. Index self.indexShifting = 3 # 2. Distance self.distanceShifting = 8 # 3. Degree self.degreeShiftingBase = 15 self.degreeShiftingMore = 30 # Width # 1. Point self.pointWidth = 7 # 2. Line, Circle self.lineWidth = 3 # 3. Angle self.angleWidth = 2 # Color # 1. Default self.defaultColor = 'red' # 2. List self.colorList = [ 'red', 'green', 'blue', 'cyan', 'yellow', 'black', 'white', 'gray' ] # Ratio # 1. Angle # For ∠ABC, the radius of the degree is # r = min(AB, AC) * ratioToRadius self.ratioToRadius = 0.2 # Math Constant self.eps = 1e-5 self.base = 2 ** 7 # Debug self.debug = True # 操作列表 self.defaultAction = '无操作' self.actionList = ['无操作', '点', '线', '角度', '圆', '中点', '直角', '移动点', '删除点'] def __setattr__(self, key, value): if key in self.__dict__: raise self.ConstException self.__dict__[key] = value def __getattr__(self, item): if item in self.__dict__: return self.item raise self.ScopeException config = Config()
###################################################### # dom SCROLL_BAR_WIDTH = getScrollBarWidth() def ce(tag): return document.createElement(tag) def ge(id): return document.getElementById(id) def addEventListener(object, kind, callback): object.addEventListener(kind, callback, False) class e: def __init__(self, tag): self.e = ce(tag) # background color def bc(self, color): self.e.style.backgroundColor = color return self # cursor pointer def cp(self): self.e.style.cursor = "pointer" return self # conditional background color def cbc(self, cond, colortrue, colorfalse): self.e.style.backgroundColor = cpick(cond, colortrue, colorfalse) return self # color def c(self, color): self.e.style.color = color return self # conditional color def cc(self, cond, colortrue, colorfalse): self.e.style.color = cpick(cond, colortrue, colorfalse) return self # z-index def zi(self, zindex): self.e.style.zIndex = zindex return self # opacity def op(self, opacity): self.e.style.opacity = opacity return self # monospace def ms(self): self.e.style.fontFamily = "monospace" return self # append element def a(self, e): self.e.appendChild(e.e) return self # append list of elements def aa(self, es): for e in es: self.a(e) return self # shorthand for setAttribute def sa(self, key, value): self.e.setAttribute(key,value) return self # shorthand for removeAttribute def ra(self, key): self.e.removeAttribute(key) return self # set or remove attribute conditional def srac(self, cond, key, value): if cond: self.sa(key, value) else: self.ra(key) # shorthand for getAttribute def ga(self, key): return self.e.getAttribute(key) # shorthand for setting value def sv(self, value): self.e.value = value return self # set inner html def html(self, value): self.e.innerHTML = value return self # clear def x(self): #self.html("") while self.e.firstChild: self.e.removeChild(self.e.firstChild) return self # width def w(self, w): self.e.style.width = w + "px" return self def mw(self, w): self.e.style.minWidth = w + "px" return self # height def h(self, h): self.e.style.height = h + "px" return self def mh(self, h): self.e.style.minHeight = h + "px" return self # top def t(self, t): self.e.style.top = t + "px" return self # left def l(self, l): self.e.style.left = l + "px" return self # conditional left def cl(self, cond, ltrue, lfalse): self.e.style.left = cpick(cond, ltrue, lfalse) + "px" return self # conditional top def ct(self, cond, ttrue, tfalse): self.e.style.top = cpick(cond, ttrue, tfalse) + "px" return self # position vector def pv(self, v): return self.l(v.x).t(v.y) # position absolute def pa(self): self.e.style.position = "absolute" return self # position relative def pr(self): self.e.style.position = "relative" return self # margin left def ml(self, ml): self.e.style.marginLeft = ml + "px" return self # margin right def mr(self, mr): self.e.style.marginRight = mr + "px" return self # margin top def mt(self, mt): self.e.style.marginTop = mt + "px" return self # margin bottom def mb(self, mb): self.e.style.marginBottom = mb + "px" return self # add class def ac(self, klass): self.e.classList.add(klass) return self # add class conditional def acc(self, cond, klass): if cond: self.e.classList.add(klass) return self # add classes def aac(self, klasses): for klass in klasses: self.e.classList.add(klass) return self # remove class def rc(self, klass): self.e.classList.remove(klass) return self # add or remove class based on condition def arc(self, cond, klass): if cond: self.e.classList.add(klass) else: self.e.classList.remove(klass) return self # return value def v(self): return self.e.value def focusme(self): self.e.focus() return self # focus later def fl(self): setTimeout(self.focusme, 50) return self # add event listener def ae(self, kind, callback): self.e.addEventListener(kind, callback) return self # add event listener with false arg def aef(self, kind, callback): self.e.addEventListener(kind, callback, False) return self # disable def disable(self): return self.sa("disabled", True) # enable def enable(self): return self.ra("disabled") # able def able(self, able): if able: return self.enable() return self.disable() # font size def fs(self, size): self.e.style.fontSize = size + "px" return self class Div(e): def __init__(self): super().__init__("div") class Span(e): def __init__(self): super().__init__("span") class Input(e): def __init__(self, kind): super().__init__("input") self.sa("type", kind) class Select(e): def __init__(self): super().__init__("select") class Option(e): def __init__(self, key, displayname, selected = False): super().__init__("option") self.sa("name", key) self.sa("id", key) self.sv(key) self.html(displayname) if selected: self.sa("selected", True) class Slider(Input): def setmin(self, min): self.sa("min", min) return self def setmax(self, max): self.sa("max", max) return self def __init__(self): super().__init__("range") class CheckBox(Input): def setchecked(self, checked): self.e.checked = checked return self def getchecked(self): return self.e.checked def __init__(self, checked = False): super().__init__("checkbox") self.setchecked(checked) class TextArea(e): def __init__(self): super().__init__("textarea") def setText(self, content): self.sv(content) return self def getText(self): return self.v() class Canvas(e): def __init__(self, width, height): super().__init__("canvas") self.width = width self.height = height self.sa("width", self.width) self.sa("height", self.height) self.ctx = self.e.getContext("2d") def lineWidth(self, linewidth): self.ctx.lineWidth = linewidth def strokeStyle(self, strokestyle): self.ctx.strokeStyle = strokestyle def fillStyle(self, fillstyle): self.ctx.fillStyle = fillstyle def fillRect(self, tlv, brv): self.ctx.fillRect(tlv.x, tlv.y, brv.m(tlv).x, brv.m(tlv).y) def clear(self): self.ctx.clearRect(0, 0, self.width, self.height) def drawline(self, fromv, tov): self.ctx.beginPath() self.ctx.moveTo(fromv.x, fromv.y) self.ctx.lineTo(tov.x, tov.y) self.ctx.stroke() class Form(e): def __init__(self): super().__init__("form") class P(e): def __init__(self): super().__init__("p") class Label(e): def __init__(self): super().__init__("label") class FileInput(Input): def setmultiple(self, multiple): self.srac(multiple, "multiple", True) return self def getmultiple(self): return self.ga("multiple") def setaccept(self, accept): return self.sa("accept", accept) def getaccept(self): return self.ga("accept") def files(self): return self.e.files def __init__(self): super().__init__("file") ######################################################
N = int(input()) s_list = [input() for _ in range(N)] M = int(input()) t_list = [input() for _ in range(M)] tmp = s_list.copy() tmp.append("fdsfsdfsfs") s_set = list(set(tmp)) result = [] for s in s_set: r = 0 for i in s_list: if i == s: r += 1 for j in t_list: if j == s: r -= 1 result.append(r) print(max(result))