content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# my_list=['honda','honda','bmw','mercedes','bugatti'] # print(my_list.index('honda')) # print(my_list[0]) # print(my_list.count('honda')) # my_list.sort() # print(my_list) # my_list.pop() # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # copy_my_list=my_list.copy() # print(copy_my_list) # list1=[1,2,3] # list2=list1.copy() # del list1[0] # print(list2) # my_list=['honda','honda','bmw','mercedes','bugatti'] # # my_list.append('lexus') # # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # my_list.insert(1,'ford') # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # # extend_list=['hello','ghetto'] # my_list.extend('Hello') # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # my_list.remove('honda') # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # my_list.reverse() # print(my_list) # # my_list=['honda','honda','bmw','mercedes','bugatti'] # numbers=[1,2,3,4,5,6] # print(my_list[2:]) # print(my_list[:3]) # print(my_list[1:4]) # print(numbers[0:4]) # print(numbers[0:5:2]) # numbers=[1,2,3,4,5,6,7,8,9,10] # print(numbers[::3]) # numbers=[1,2,3,4,5,6,7,8,9,10] # print(numbers[::-2]) # data = ['Wt','Ht',342432423424324,5.996,5.77778,'Insurance_History_2',34243242342432124545312312534534534,'Insurance_History_4','Insurance_History_5', 'Insurance_History_7',234242049004328402384023849028402348203,55, 66, 11, 'Medical_Keyword_3','Medical_Keyword_4', 'Medical_Keyword_5', 'Medical_Keyword_6', 34243242342432124545312312534534534534503495345,'lalalalallalalalalalalalalalalala', 23409284028430928420483209482904380428, 'Medical_Keyword_10', 'Medical_Keyword_11',92384923849023849023842903482934324290, 93429423018319238192004829423482942, 'Medical_Keyword_14', 'Medical_Keyword_15','Medical_Keyword_16', 5.888, 'Medical_Keyword_18asfdasfdasfdasfdasdfasdfas','Medicagsfgsfgsfkgjsfkg',9.131, 0.978, 'Famidasdasdlasdlaspdlaspdlasp2948203948', 'Familygsdglksflg2849023840923;fksdkgsd234234234238409238490238','Family_Hist_4','Family_Hist_5', 9.19, 'Medical_History_2', 'Medical_History_3', 'Medical_History_4',13, 'Medical_History_6', 'Medical_History_7', 111, 'Medical_History_9',123.7773, 'Medical_History_41', 55823428882482374824828472348,'Product_Info_3',1111111111111111111111, 'Product_Info_5'] # # i=0 # while i<len(data): # obj = data[i] # if isinstance(obj ,float): # # if obj%1>=0.8 or obj%1<=0.2: # data[i] = round(obj) # else: # data[i]=int(obj) # # elif isinstance(obj,int): # str_1=str(obj) # if len(str_1)>20: # del data[i] # i-=1 # # elif isinstance(data[i],str): # if len(data[i])>50: # del data[i] # i-=1 # i+=1 # # print(data) data = ['Wt','Ht',342432423424324,5.996,5.77778,'Insurance_History_2',34243242342432124545312312534534534,'Insurance_History_4','Insurance_History_5', 'Insurance_History_7',234242049004328402384023849028402348203,55, 66, 11, 'Medical_Keyword_3','Medical_Keyword_4', 'Medical_Keyword_5', 'Medical_Keyword_6', 34243242342432124545312312534534534534503495345,'lalalalallalalalalalalalalalalala', 23409284028430928420483209482904380428, 'Medical_Keyword_10', 'Medical_Keyword_11',92384923849023849023842903482934324290, 93429423018319238192004829423482942, 'Medical_Keyword_14', 'Medical_Keyword_15','Medical_Keyword_16', 5.888, 'Medical_Keyword_18asfdasfdasfdasfdasdfasdfas','Medicagsfgsfgsfkgjsfkg',9.131, 0.978, 'Famidasdasdlasdlaspdlaspdlasp2948203948', 'Familygsdglksflg2849023840923;fksdkgsd234234234238409238490238','Family_Hist_4','Family_Hist_5', 9.19, 'Medical_History_2', 'Medical_History_3', 'Medical_History_4',13, 'Medical_History_6', 'Medical_History_7', 111, 'Medical_History_9',123.7773, 'Medical_History_41', 55823428882482374824828472348,'Product_Info_3',1111111111111111111111, 'Product_Info_5'] clear_data=[] i=0 while i<len(data): obj = data[i] if isinstance(obj ,float): if obj%1>=0.8 or obj%1<=0.2: clear_data.append(round(obj)) else: clear_data.append(int(obj)) elif isinstance(obj,int): str_1=str(obj) if len(str_1)<=20: clear_data.append(str_1) elif isinstance(obj,str): if len(obj)<=50: clear_data.append(obj) i+=1 print(clear_data)
data = ['Wt', 'Ht', 342432423424324, 5.996, 5.77778, 'Insurance_History_2', 34243242342432124545312312534534534, 'Insurance_History_4', 'Insurance_History_5', 'Insurance_History_7', 234242049004328402384023849028402348203, 55, 66, 11, 'Medical_Keyword_3', 'Medical_Keyword_4', 'Medical_Keyword_5', 'Medical_Keyword_6', 34243242342432124545312312534534534534503495345, 'lalalalallalalalalalalalalalalala', 23409284028430928420483209482904380428, 'Medical_Keyword_10', 'Medical_Keyword_11', 92384923849023849023842903482934324290, 93429423018319238192004829423482942, 'Medical_Keyword_14', 'Medical_Keyword_15', 'Medical_Keyword_16', 5.888, 'Medical_Keyword_18asfdasfdasfdasfdasdfasdfas', 'Medicagsfgsfgsfkgjsfkg', 9.131, 0.978, 'Famidasdasdlasdlaspdlaspdlasp2948203948', 'Familygsdglksflg2849023840923;fksdkgsd234234234238409238490238', 'Family_Hist_4', 'Family_Hist_5', 9.19, 'Medical_History_2', 'Medical_History_3', 'Medical_History_4', 13, 'Medical_History_6', 'Medical_History_7', 111, 'Medical_History_9', 123.7773, 'Medical_History_41', 55823428882482374824828472348, 'Product_Info_3', 1111111111111111111111, 'Product_Info_5'] clear_data = [] i = 0 while i < len(data): obj = data[i] if isinstance(obj, float): if obj % 1 >= 0.8 or obj % 1 <= 0.2: clear_data.append(round(obj)) else: clear_data.append(int(obj)) elif isinstance(obj, int): str_1 = str(obj) if len(str_1) <= 20: clear_data.append(str_1) elif isinstance(obj, str): if len(obj) <= 50: clear_data.append(obj) i += 1 print(clear_data)
class Lamp: def __init__(self, color): self.color=color self.on=False def state(self): return "The lamp is off." if not self.on else "The lamp is on." def toggle_switch(self): self.on=not self.on
class Lamp: def __init__(self, color): self.color = color self.on = False def state(self): return 'The lamp is off.' if not self.on else 'The lamp is on.' def toggle_switch(self): self.on = not self.on
def test_add(): class Number: def __add__(self, other): return 4 + other def __radd__(self, other): return other + 4 a = Number() assert 3 + a == 7 assert a + 3 == 7 def test_inheritance(): class Node(object): def __init__(self, a, b, c): self.a = a self.b = b self.c = c def add_n(self, n): self.a += n def __repr__(self): value = self.a value = repr(value) return '%s(tag=%r, value=%s)' % (self.__class__.__name__, self.b, value) class ChildNode(Node): def __init__(self, a, b, c): self.a = a self.b = b self.c = c class GrandchildNode(ChildNode): d = 101000 node = GrandchildNode(101001, 101002, 101003) x = repr(node) assert x == "GrandchildNode(tag=101002, value=101001)" node.add_n(10000)
def test_add(): class Number: def __add__(self, other): return 4 + other def __radd__(self, other): return other + 4 a = number() assert 3 + a == 7 assert a + 3 == 7 def test_inheritance(): class Node(object): def __init__(self, a, b, c): self.a = a self.b = b self.c = c def add_n(self, n): self.a += n def __repr__(self): value = self.a value = repr(value) return '%s(tag=%r, value=%s)' % (self.__class__.__name__, self.b, value) class Childnode(Node): def __init__(self, a, b, c): self.a = a self.b = b self.c = c class Grandchildnode(ChildNode): d = 101000 node = grandchild_node(101001, 101002, 101003) x = repr(node) assert x == 'GrandchildNode(tag=101002, value=101001)' node.add_n(10000)
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def diameterOfBinaryTree(self, root: TreeNode) -> int: _, res = self.max_depth(root) return res def max_depth(self, node: TreeNode) -> int: if node is None: return -1, 0 left_depth, left_max = self.max_depth(node.left) right_depth, right_max = self.max_depth(node.right) return max(left_depth, right_depth) + 1, max(left_depth + right_depth + 2, left_max, right_max)
class Solution: def diameter_of_binary_tree(self, root: TreeNode) -> int: (_, res) = self.max_depth(root) return res def max_depth(self, node: TreeNode) -> int: if node is None: return (-1, 0) (left_depth, left_max) = self.max_depth(node.left) (right_depth, right_max) = self.max_depth(node.right) return (max(left_depth, right_depth) + 1, max(left_depth + right_depth + 2, left_max, right_max))
response = sm.sendAskYesNo("Would you like to go back to Victoria Island?") if response: if sm.hasQuest(38030): sm.setQRValue(38030, "clear", False) sm.warp(100000000, 23) sm.dispose() sm.warp(104020000, 0)
response = sm.sendAskYesNo('Would you like to go back to Victoria Island?') if response: if sm.hasQuest(38030): sm.setQRValue(38030, 'clear', False) sm.warp(100000000, 23) sm.dispose() sm.warp(104020000, 0)
# Write your solutions for 1.5 here! class superheros: def __init__(self, name, superpower, strength): self.name = name self.superpower = superpower self.strength = strength def gaya(self): print(self.name)
class Superheros: def __init__(self, name, superpower, strength): self.name = name self.superpower = superpower self.strength = strength def gaya(self): print(self.name)
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def kthSmallest(self, root: Optional[TreeNode], k: int) -> int: ordered_list = [] def inorder_traverse(node): nonlocal ordered_list if not node: return if len(ordered_list) >= k: return inorder_traverse(node.left) ordered_list.append(node.val) inorder_traverse(node.right) inorder_traverse(root) return ordered_list[k-1] # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class SolutionConstantSpace: def kthSmallest(self, root: Optional[TreeNode], k: int) -> int: index_num = (-1, 0) def inorder_traverse(node): nonlocal index_num if not node: return # Early interrupt for the traversal index, num = index_num if index == k-1: return inorder_traverse(node.left) index, num = index_num if index < k-1: index_num = index+1, node.val inorder_traverse(node.right) inorder_traverse(root) return index_num[1] # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def kthSmallest(self, root: Optional[TreeNode], k: int) -> int: stack = [] curr_node = root while True: # left first while curr_node: stack.append(curr_node) curr_node = curr_node.left curr_node = stack.pop() k -= 1 if k == 0: return curr_node.val # move on to the right child curr_node = curr_node.right
class Solution: def kth_smallest(self, root: Optional[TreeNode], k: int) -> int: ordered_list = [] def inorder_traverse(node): nonlocal ordered_list if not node: return if len(ordered_list) >= k: return inorder_traverse(node.left) ordered_list.append(node.val) inorder_traverse(node.right) inorder_traverse(root) return ordered_list[k - 1] class Solutionconstantspace: def kth_smallest(self, root: Optional[TreeNode], k: int) -> int: index_num = (-1, 0) def inorder_traverse(node): nonlocal index_num if not node: return (index, num) = index_num if index == k - 1: return inorder_traverse(node.left) (index, num) = index_num if index < k - 1: index_num = (index + 1, node.val) inorder_traverse(node.right) inorder_traverse(root) return index_num[1] class Solution: def kth_smallest(self, root: Optional[TreeNode], k: int) -> int: stack = [] curr_node = root while True: while curr_node: stack.append(curr_node) curr_node = curr_node.left curr_node = stack.pop() k -= 1 if k == 0: return curr_node.val curr_node = curr_node.right
TYPE_MAP = { 0: 'bit', 1: 'u32', 2: 's32', 3: 'float', 'bit': 0, 'u32': 1, 's32': 2, 'float': 3, } class HalType(object): bit = 0 u32 = 1 s32 = 2 float = 3 @classmethod def toString(self, typ): return TYPE_MAP[typ]
type_map = {0: 'bit', 1: 'u32', 2: 's32', 3: 'float', 'bit': 0, 'u32': 1, 's32': 2, 'float': 3} class Haltype(object): bit = 0 u32 = 1 s32 = 2 float = 3 @classmethod def to_string(self, typ): return TYPE_MAP[typ]
# Welcome to the interactive tutorial for PBUnit! Please read the # descriptions and follow the instructions for each example. # # Let's start with writing unit tests and using Projection Boxes: # # 1. Edit the unit test below to use your name and initials. # 2. Click your mouse on each line of code in the function to see how # the Projection Boxes focus on the current line. # 3. Check the Projection Box on the return statement to see if the # test passes. ## initials('Ada Lovelace') == 'AL' def initials(name): parts = name.split(' ') letters = '' for part in parts: letters += part[0] return letters # When you have multiple unit tests, you can select one test by adding # an extra # at the start of the line (turning ## into ###). This will # hide the other tests so you can examine or debug the selected test. # # 1. Find the line for the first test, and add a # at the start of the # line to select it. # 2. Remove a # from the first test, and add a # to the second test. (If # you forget to remove the extra # from the first test, both tests # will be selected, so they will both appear.) # 3. Select only the third test. # 4. Deselect all tests. # 5. Find the two Projection Boxes with the test results in them. The # result of each test is shown on the corresponding return statement. ## factorial(0) == 1 ## factorial(2) == 2 ## factorial(4) == 24 def factorial(n): if n <= 0: return 1 result = 1 for factor in range(2, n + 1): result *= factor return result # If an exception occurs on a certain line, the exception will appear in # that line's Projection Box. # # We can't show the test results on the return statement, because no # return statement is reached. Instead, the test results are shown on # the function header. (This is the line that starts with "def".) # # 1. Check the Projection Box on the function header to identify which # test has an exception. # 2. Find the line where that unit test is written, and select that test # by adding a #. # 3. Use the Projection Boxes to determine why the exception occurs. # 4. Fix the code so that the unit test passes. If you're not sure what # the function should return, refer to the expected value which is # written in the unit test. # 5. Deselect that unit test to make sure the other test still passes. ## average([3, 4, 5]) == 4 ## average([]) == None def average(nums): total = 0 for num in nums: total += num avg = total // len(nums) return avg # Projection Boxes also appear when you call a function from another # function. In this example, the shout_last function calls the shout # function, so we get Projection Boxes in the shout function too. # # 1. Click every line and see if you can figure out where each executed # line comes from. If you're not sure, try selecting each test case. ## shout('oops') == 'OOPS!' def shout(s): uppercase = s.upper() return uppercase + '!' ## shout_last('oh hi') == 'oh HI!' def shout_last(words): split = words.split(' ') split[-1] = shout(split[-1]) return ' '.join(split) # By default, Projection Boxes are not shown on if/elif/else lines. To # show Projection Boxes on these lines as well, add a # at the end of # the line, after the colon. # # 1. Add a # at the end of the if statement, after the colon. This will # show every execution of the if statement. # 2. Why is the body of the if statement never executed? The Projection # Box you just added might be helpful. # 3. How many loop iterations are there? ## only_positive([-1, -5, -3]) == [] def only_positive(nums): positive = [] for num in nums: if num > 0: positive.append(num) return positive # Congratulations! Now you are ready to use PBUnit.
def initials(name): parts = name.split(' ') letters = '' for part in parts: letters += part[0] return letters def factorial(n): if n <= 0: return 1 result = 1 for factor in range(2, n + 1): result *= factor return result def average(nums): total = 0 for num in nums: total += num avg = total // len(nums) return avg def shout(s): uppercase = s.upper() return uppercase + '!' def shout_last(words): split = words.split(' ') split[-1] = shout(split[-1]) return ' '.join(split) def only_positive(nums): positive = [] for num in nums: if num > 0: positive.append(num) return positive
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- MMS_WORKSPACE_API_VERSION = '2018-11-19' MMS_ROUTE_API_VERSION = 'v1.0' MMS_SYNC_TIMEOUT_SECONDS = 80 MMS_SERVICE_VALIDATE_OPERATION_TIMEOUT_SECONDS = 30 MMS_SERVICE_EXIST_CHECK_SYNC_TIMEOUT_SECONDS = 5 MMS_RESOURCE_CHECK_SYNC_TIMEOUT_SECONDS = 15 SUPPORTED_RUNTIMES = { 'spark-py': 'SparkPython', 'python': 'Python', 'python-slim': 'PythonSlim' } UNDOCUMENTED_RUNTIMES = ['python-slim'] CUSTOM_BASE_IMAGE_SUPPORTED_RUNTIMES = { 'python': 'PythonCustom' } WORKSPACE_RP_API_VERSION = '2019-06-01' MAX_HEALTH_CHECK_TRIES = 30 HEALTH_CHECK_INTERVAL_SECONDS = 1 DOCKER_IMAGE_TYPE = "Docker" UNKNOWN_IMAGE_TYPE = "Unknown" WEBAPI_IMAGE_FLAVOR = "WebApiContainer" ACCEL_IMAGE_FLAVOR = "AccelContainer" IOT_IMAGE_FLAVOR = "IoTContainer" UNKNOWN_IMAGE_FLAVOR = "Unknown" CLOUD_DEPLOYABLE_IMAGE_FLAVORS = [WEBAPI_IMAGE_FLAVOR, ACCEL_IMAGE_FLAVOR] SUPPORTED_CUDA_VERSIONS = ["9.0", "9.1", "10.0"] ARCHITECTURE_AMD64 = "amd64" ARCHITECTURE_ARM32V7 = "arm32v7" ACI_WEBSERVICE_TYPE = "ACI" AKS_WEBSERVICE_TYPE = "AKS" AKS_ENDPOINT_TYPE = "AKSENDPOINT" SERVICE_REQUEST_OPERATION_CREATE = "Create" SERVICE_REQUEST_OPERATION_UPDATE = "Update" SERVICE_REQUEST_OPERATION_DELETE = "Delete" AKS_ENDPOINT_DELETE_VERSION = "deleteversion" AKS_ENDPOINT_CREATE_VERSION = "createversion" AKS_ENDPOINT_UPDATE_VERSION = "updateversion" COMPUTE_TYPE_KEY = "computeType" LOCAL_WEBSERVICE_TYPE = "Local" UNKNOWN_WEBSERVICE_TYPE = "Unknown" CLI_METADATA_FILE_WORKSPACE_KEY = 'workspaceName' CLI_METADATA_FILE_RG_KEY = 'resourceGroupName' MODEL_METADATA_FILE_ID_KEY = 'modelId' IMAGE_METADATA_FILE_ID_KEY = 'imageId' DOCKER_IMAGE_HTTP_PORT = 5001 DOCKER_IMAGE_MQTT_PORT = 8883 RUN_METADATA_EXPERIMENT_NAME_KEY = '_experiment_name' RUN_METADATA_RUN_ID_KEY = 'run_id' PROFILE_METADATA_CPU_KEY = "cpu" PROFILE_METADATA_MEMORY_KEY = "memoryInGB" PROFILE_PARTIAL_SUCCESS_MESSAGE = 'Model Profiling operation completed, but encountered issues ' +\ 'during execution: %s Inspect ModelProfile.error property for more information.' PROFILE_FAILURE_MESSAGE = 'Model Profiling operation failed with the following error: %s Request ID: %s. ' +\ 'Inspect ModelProfile.error property for more information.' DATASET_SNAPSHOT_ID_FORMAT = '/datasetId/{dataset_id}/datasetSnapshotName/{dataset_snapshot_name}' DOCKER_IMAGE_APP_ROOT_DIR = '/var/azureml-app' IOT_WEBSERVICE_TYPE = "IOT" MIR_WEBSERVICE_TYPE = "MIR" MODEL_PACKAGE_ASSETS_DIR = 'azureml-app' MODEL_PACKAGE_MODELS_DIR = 'azureml-models' # Kubernetes namespaces must be valid lowercase DNS labels. # Ref: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/identifiers.md NAMESPACE_REGEX = '^[a-z0-9]([a-z0-9-]{,61}[a-z0-9])?$' WEBSERVICE_SCORE_PATH = '/score' WEBSERVICE_SWAGGER_PATH = '/swagger.json' ALL_WEBSERVICE_TYPES = [ACI_WEBSERVICE_TYPE, AKS_ENDPOINT_TYPE, AKS_WEBSERVICE_TYPE, IOT_WEBSERVICE_TYPE, MIR_WEBSERVICE_TYPE] HOW_TO_USE_ENVIRONMENTS_DOC_URL = "https://docs.microsoft.com/azure/machine-learning/how-to-use-environments" # Blob storage allows 10 minutes/megabyte. Add a bit for overhead, and to make sure we don't give up first. # Ref: https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations ASSET_ARTIFACTS_UPLOAD_TIMEOUT_SECONDS_PER_BYTE = 1.1 * (10 * 60) / (1000 * 1000)
mms_workspace_api_version = '2018-11-19' mms_route_api_version = 'v1.0' mms_sync_timeout_seconds = 80 mms_service_validate_operation_timeout_seconds = 30 mms_service_exist_check_sync_timeout_seconds = 5 mms_resource_check_sync_timeout_seconds = 15 supported_runtimes = {'spark-py': 'SparkPython', 'python': 'Python', 'python-slim': 'PythonSlim'} undocumented_runtimes = ['python-slim'] custom_base_image_supported_runtimes = {'python': 'PythonCustom'} workspace_rp_api_version = '2019-06-01' max_health_check_tries = 30 health_check_interval_seconds = 1 docker_image_type = 'Docker' unknown_image_type = 'Unknown' webapi_image_flavor = 'WebApiContainer' accel_image_flavor = 'AccelContainer' iot_image_flavor = 'IoTContainer' unknown_image_flavor = 'Unknown' cloud_deployable_image_flavors = [WEBAPI_IMAGE_FLAVOR, ACCEL_IMAGE_FLAVOR] supported_cuda_versions = ['9.0', '9.1', '10.0'] architecture_amd64 = 'amd64' architecture_arm32_v7 = 'arm32v7' aci_webservice_type = 'ACI' aks_webservice_type = 'AKS' aks_endpoint_type = 'AKSENDPOINT' service_request_operation_create = 'Create' service_request_operation_update = 'Update' service_request_operation_delete = 'Delete' aks_endpoint_delete_version = 'deleteversion' aks_endpoint_create_version = 'createversion' aks_endpoint_update_version = 'updateversion' compute_type_key = 'computeType' local_webservice_type = 'Local' unknown_webservice_type = 'Unknown' cli_metadata_file_workspace_key = 'workspaceName' cli_metadata_file_rg_key = 'resourceGroupName' model_metadata_file_id_key = 'modelId' image_metadata_file_id_key = 'imageId' docker_image_http_port = 5001 docker_image_mqtt_port = 8883 run_metadata_experiment_name_key = '_experiment_name' run_metadata_run_id_key = 'run_id' profile_metadata_cpu_key = 'cpu' profile_metadata_memory_key = 'memoryInGB' profile_partial_success_message = 'Model Profiling operation completed, but encountered issues ' + 'during execution: %s Inspect ModelProfile.error property for more information.' profile_failure_message = 'Model Profiling operation failed with the following error: %s Request ID: %s. ' + 'Inspect ModelProfile.error property for more information.' dataset_snapshot_id_format = '/datasetId/{dataset_id}/datasetSnapshotName/{dataset_snapshot_name}' docker_image_app_root_dir = '/var/azureml-app' iot_webservice_type = 'IOT' mir_webservice_type = 'MIR' model_package_assets_dir = 'azureml-app' model_package_models_dir = 'azureml-models' namespace_regex = '^[a-z0-9]([a-z0-9-]{,61}[a-z0-9])?$' webservice_score_path = '/score' webservice_swagger_path = '/swagger.json' all_webservice_types = [ACI_WEBSERVICE_TYPE, AKS_ENDPOINT_TYPE, AKS_WEBSERVICE_TYPE, IOT_WEBSERVICE_TYPE, MIR_WEBSERVICE_TYPE] how_to_use_environments_doc_url = 'https://docs.microsoft.com/azure/machine-learning/how-to-use-environments' asset_artifacts_upload_timeout_seconds_per_byte = 1.1 * (10 * 60) / (1000 * 1000)
class LinkedListTreeTraversal: def __init__(self, data): self.tree = data # bfsTraversal is a recursive version of bfs traversal def bfsTraversal(self): root = self.tree queue = [] path = [] if self.tree == None: return [] queue.append(root) path = self.bfsTraversalUtil(queue, path) return path # bfsTraversalUtil recursively calls itself to find a bfs traversal path def bfsTraversalUtil(self, queue, path): if len(queue) == 0: return [] currNode = queue[0] path.append(currNode) queue = queue[1:] childrenIndices = (currNode.left, currNode.right) queue.extend( [childNode for childNode in childrenIndices if childNode]) self.bfsTraversalUtil(queue, path) return path # dfsTraversal calls appropriate recursive pre, in or post order traversal's util function def dfsTraversal(self, order): root = self.tree stack = [] path = [] if self.tree == None: return [] stack.append(root) if order == 'pre': path = self.traversePre(path, self.tree) elif order == 'in': path = self.traverseIn(path, self.tree) elif order == 'post': path = self.traversePost(path, self.tree) return path # parent left right # TraversePre is a recursive version of dfs pre-order traversal def traversePre(self, path, node): if node: path.append(node) path = self.traversePre(path, node.left) path = self.traversePre(path, node.right) return path # left parent right # TraverseIn is a recursive version of dfs in-order traversal def traverseIn(self, path, node): if node: path = self.traverseIn(path, node.left) path.append(node) path = self.traverseIn(path, node.right) return path # left right parent # TraversePost is a recursive version of dfs post-order traversal def traversePost(self, path, node): if node: path = self.traversePost(path, node.left) path = self.traversePost(path, node.right) path.append(node) return path # iteratvieBfsTraversal is an itervative version of bfs traversal def iterativeBfsTraversal(self): root = self.tree queue = [] path = [] if self.tree == None: return [] queue.append(root) while len(queue) != 0: currNode = queue[0] path.append(currNode) queue = queue[1:] childrenIndices = (currNode.left, currNode.right) queue.extend( [childNode for childNode in childrenIndices if childNode]) return path # parent left right # itervativeDfsPreOrderTraversal is iterative version of dfs pre-order traversal def iterativeDfsPreOrderTraversal(self): stack = [] root = self.tree path = [] if self.tree == None: return [] stack.append(root) while len(stack) != 0: currNode = stack[len(stack)-1] path.append(currNode) stack = stack[:len(stack)-1] childrenIndices = (currNode.right, currNode.left) stack.extend( [childNode for childNode in childrenIndices if childNode]) return path # left parent right # iterativeDfsInOrderTraversal is iterative version of dfs in-order traversal def iterativeDfsInOrderTraversal(self): stack = [] path = [] currNode = self.tree while True: while currNode != None: stack.append(currNode) currNode = currNode.left if currNode == None and len(stack) != 0: node = stack[len(stack)-1] stack = stack[:len(stack)-1] path.append(node) currNode = node.right if currNode == None and len(stack) == 0: break return path # left right parent # iterativeDfsPostOrderTraversal is iterative version of dfs post-order traversal def iterativeDfsPostOrderTraversal(self): stack = [] path = [] currNode = self.tree while True: while currNode != None: (leftChildNode, rightChildNode) = ( currNode.left, currNode.right) if rightChildNode: stack.append(rightChildNode) stack.append(currNode) currNode = leftChildNode currNode = stack[len(stack)-1] stack = stack[:len(stack)-1] (leftChildNode, rightChildNode) = (currNode.left, currNode.right) if rightChildNode and len(stack) != 0 and stack[len(stack)-1] == rightChildNode: stack = stack[:len(stack)-1] stack.append(currNode) currNode = rightChildNode else: path.append(currNode) currNode = None if len(stack) == 0: break return path # References: # Algorithms for iterative in-order traversal: https://www.geeksforgeeks.org/inorder-tree-traversal-without-recursion/ # Algorithm for iterative post-order traversal: https://www.geeksforgeeks.org/iterative-postorder-traversal-using-stack/
class Linkedlisttreetraversal: def __init__(self, data): self.tree = data def bfs_traversal(self): root = self.tree queue = [] path = [] if self.tree == None: return [] queue.append(root) path = self.bfsTraversalUtil(queue, path) return path def bfs_traversal_util(self, queue, path): if len(queue) == 0: return [] curr_node = queue[0] path.append(currNode) queue = queue[1:] children_indices = (currNode.left, currNode.right) queue.extend([childNode for child_node in childrenIndices if childNode]) self.bfsTraversalUtil(queue, path) return path def dfs_traversal(self, order): root = self.tree stack = [] path = [] if self.tree == None: return [] stack.append(root) if order == 'pre': path = self.traversePre(path, self.tree) elif order == 'in': path = self.traverseIn(path, self.tree) elif order == 'post': path = self.traversePost(path, self.tree) return path def traverse_pre(self, path, node): if node: path.append(node) path = self.traversePre(path, node.left) path = self.traversePre(path, node.right) return path def traverse_in(self, path, node): if node: path = self.traverseIn(path, node.left) path.append(node) path = self.traverseIn(path, node.right) return path def traverse_post(self, path, node): if node: path = self.traversePost(path, node.left) path = self.traversePost(path, node.right) path.append(node) return path def iterative_bfs_traversal(self): root = self.tree queue = [] path = [] if self.tree == None: return [] queue.append(root) while len(queue) != 0: curr_node = queue[0] path.append(currNode) queue = queue[1:] children_indices = (currNode.left, currNode.right) queue.extend([childNode for child_node in childrenIndices if childNode]) return path def iterative_dfs_pre_order_traversal(self): stack = [] root = self.tree path = [] if self.tree == None: return [] stack.append(root) while len(stack) != 0: curr_node = stack[len(stack) - 1] path.append(currNode) stack = stack[:len(stack) - 1] children_indices = (currNode.right, currNode.left) stack.extend([childNode for child_node in childrenIndices if childNode]) return path def iterative_dfs_in_order_traversal(self): stack = [] path = [] curr_node = self.tree while True: while currNode != None: stack.append(currNode) curr_node = currNode.left if currNode == None and len(stack) != 0: node = stack[len(stack) - 1] stack = stack[:len(stack) - 1] path.append(node) curr_node = node.right if currNode == None and len(stack) == 0: break return path def iterative_dfs_post_order_traversal(self): stack = [] path = [] curr_node = self.tree while True: while currNode != None: (left_child_node, right_child_node) = (currNode.left, currNode.right) if rightChildNode: stack.append(rightChildNode) stack.append(currNode) curr_node = leftChildNode curr_node = stack[len(stack) - 1] stack = stack[:len(stack) - 1] (left_child_node, right_child_node) = (currNode.left, currNode.right) if rightChildNode and len(stack) != 0 and (stack[len(stack) - 1] == rightChildNode): stack = stack[:len(stack) - 1] stack.append(currNode) curr_node = rightChildNode else: path.append(currNode) curr_node = None if len(stack) == 0: break return path
# # 258. Add Digits # # Q: https://leetcode.com/problems/add-digits/ # A: https://leetcode.com/problems/add-digits/discuss/756944/Javascript-Python3-C%2B%2B-1-Liners # # using reduce() to accumulate the digits of x class Solution: def addDigits(self, x: int) -> int: return x if x < 10 else self.addDigits(reduce(lambda a, b: a + b, map(lambda s: int(s), str(x)))) # using sum() to accumulate the digits of x class Solution: def addDigits(self, x: int) -> int: return x if x < 10 else self.addDigits(sum(map(lambda c: int(c), str(x))))
class Solution: def add_digits(self, x: int) -> int: return x if x < 10 else self.addDigits(reduce(lambda a, b: a + b, map(lambda s: int(s), str(x)))) class Solution: def add_digits(self, x: int) -> int: return x if x < 10 else self.addDigits(sum(map(lambda c: int(c), str(x))))
#!/usr/bin/env python3 class Cavern: def __init__(self, mapstring): self.mapstring = mapstring self.initialize(mapstring) def initialize(self, mapstring, elf_attack = 3): self.walls = set() self.units = {} self.elf_initial = 0 for y, line in enumerate(mapstring.split('\n')): for x, c in enumerate(line): if c == '#': self.walls.add((y, x)) if c == 'E': self.units[(y, x)] = Unit(y, x, c, self, elf_attack) self.elf_initial += 1 if c == 'G': self.units[(y, x)] = Unit(y, x, c, self) self.height, self.width = y + 1, x + 1 self.round = 0 def neighbours(self, position): y, x = position direct = set([(y - 1, x), (y, x - 1), (y, x + 1), (y + 1, x)]) return sorted(direct - self.walls) def remaining(self, race): return [u for u in self.units.values() if u.race == race] def path(self, start, targets): visited = {n:(n,) for n in self.neighbours(start) if n not in self.units} depth = 1 def current_depth(): return [k for k, v in visited.items() if len(v) == depth] while True: reached = set(visited.keys()) & targets if reached: return sorted([visited[k] for k in reached])[0] for position in current_depth(): for n_position in self.neighbours(position): if n_position not in self.units and n_position not in visited: visited[n_position] = visited[position] + (n_position,) depth += 1 if not current_depth(): return None def run(self): while True: for unit in sorted(self.units.values(), key = lambda x: x.position): unit.do_action() if not self.remaining('E') or not self.remaining('G'): return self.round += 1 def run_elf_deathless(self): while True: for unit in sorted(self.units.values(), key = lambda x: x.position): unit.do_action() if len(self.remaining('E')) < self.elf_initial: return False if not self.remaining('G'): return True self.round += 1 def outcome(self): remaining_hp = sum(u.hp for u in self.units.values()) return remaining_hp, self.round, remaining_hp*self.round class Unit: def __init__(self, y, x, race, cavern, attack = 3): self.y = y self.x = x self.race = race self.enemy_race = {'E':'G', 'G':'E'}[race] self.cavern = cavern self.attack = attack self.hp = 200 @property def position(self): return (self.y, self.x) def move(self, new_position): del self.cavern.units[self.position] self.y, self.x = new_position self.cavern.units[new_position] = self @property def neighbours(self): return self.cavern.neighbours(self.position) def neighbouring_enemies(self): enemies = [] for n in self.neighbours: try: if self.cavern.units[n].race == self.enemy_race: enemies.append(self.cavern.units[n]) except KeyError: pass return sorted(enemies, key = lambda x: x.hp) def do_action(self): if self.hp <= 0: return if self.neighbouring_enemies(): self.fight(self.neighbouring_enemies()[0]) return enemy_adjacent = set() for enemy in self.cavern.remaining(self.enemy_race): enemy_adjacent.update([p for p in enemy.neighbours if p not in self.cavern.units]) if not enemy_adjacent: return path = self.cavern.path(self.position, enemy_adjacent) if path is None: return self.move(path[0]) if self.neighbouring_enemies(): self.fight(self.neighbouring_enemies()[0]) return def fight(self, enemy): enemy.hp -= self.attack if enemy.hp <= 0: del self.cavern.units[enemy.position] if __name__ == '__main__': with open('input', 'r') as f: cavern = Cavern(f.read()) cavern.run() # part 1 print(cavern.outcome()[2]) # part 2 elf_attack = 3 while True: elf_attack += 1 cavern.initialize(cavern.mapstring, elf_attack) if cavern.run_elf_deathless(): print(cavern.outcome()[2]) break
class Cavern: def __init__(self, mapstring): self.mapstring = mapstring self.initialize(mapstring) def initialize(self, mapstring, elf_attack=3): self.walls = set() self.units = {} self.elf_initial = 0 for (y, line) in enumerate(mapstring.split('\n')): for (x, c) in enumerate(line): if c == '#': self.walls.add((y, x)) if c == 'E': self.units[y, x] = unit(y, x, c, self, elf_attack) self.elf_initial += 1 if c == 'G': self.units[y, x] = unit(y, x, c, self) (self.height, self.width) = (y + 1, x + 1) self.round = 0 def neighbours(self, position): (y, x) = position direct = set([(y - 1, x), (y, x - 1), (y, x + 1), (y + 1, x)]) return sorted(direct - self.walls) def remaining(self, race): return [u for u in self.units.values() if u.race == race] def path(self, start, targets): visited = {n: (n,) for n in self.neighbours(start) if n not in self.units} depth = 1 def current_depth(): return [k for (k, v) in visited.items() if len(v) == depth] while True: reached = set(visited.keys()) & targets if reached: return sorted([visited[k] for k in reached])[0] for position in current_depth(): for n_position in self.neighbours(position): if n_position not in self.units and n_position not in visited: visited[n_position] = visited[position] + (n_position,) depth += 1 if not current_depth(): return None def run(self): while True: for unit in sorted(self.units.values(), key=lambda x: x.position): unit.do_action() if not self.remaining('E') or not self.remaining('G'): return self.round += 1 def run_elf_deathless(self): while True: for unit in sorted(self.units.values(), key=lambda x: x.position): unit.do_action() if len(self.remaining('E')) < self.elf_initial: return False if not self.remaining('G'): return True self.round += 1 def outcome(self): remaining_hp = sum((u.hp for u in self.units.values())) return (remaining_hp, self.round, remaining_hp * self.round) class Unit: def __init__(self, y, x, race, cavern, attack=3): self.y = y self.x = x self.race = race self.enemy_race = {'E': 'G', 'G': 'E'}[race] self.cavern = cavern self.attack = attack self.hp = 200 @property def position(self): return (self.y, self.x) def move(self, new_position): del self.cavern.units[self.position] (self.y, self.x) = new_position self.cavern.units[new_position] = self @property def neighbours(self): return self.cavern.neighbours(self.position) def neighbouring_enemies(self): enemies = [] for n in self.neighbours: try: if self.cavern.units[n].race == self.enemy_race: enemies.append(self.cavern.units[n]) except KeyError: pass return sorted(enemies, key=lambda x: x.hp) def do_action(self): if self.hp <= 0: return if self.neighbouring_enemies(): self.fight(self.neighbouring_enemies()[0]) return enemy_adjacent = set() for enemy in self.cavern.remaining(self.enemy_race): enemy_adjacent.update([p for p in enemy.neighbours if p not in self.cavern.units]) if not enemy_adjacent: return path = self.cavern.path(self.position, enemy_adjacent) if path is None: return self.move(path[0]) if self.neighbouring_enemies(): self.fight(self.neighbouring_enemies()[0]) return def fight(self, enemy): enemy.hp -= self.attack if enemy.hp <= 0: del self.cavern.units[enemy.position] if __name__ == '__main__': with open('input', 'r') as f: cavern = cavern(f.read()) cavern.run() print(cavern.outcome()[2]) elf_attack = 3 while True: elf_attack += 1 cavern.initialize(cavern.mapstring, elf_attack) if cavern.run_elf_deathless(): print(cavern.outcome()[2]) break
ROLE_METHODS = { 'google.iam.admin.v1.CreateRole', 'google.iam.admin.v1.DeleteRole', 'google.iam.admin.v1.UpdateRole' } def rule(event): return (event['resource'].get('type') == 'iam_role' and event['protoPayload'].get('methodName') in ROLE_METHODS) def dedup(event): return event['resource'].get('labels', {}).get('project_id', '<PROJECT_NOT_FOUND>')
role_methods = {'google.iam.admin.v1.CreateRole', 'google.iam.admin.v1.DeleteRole', 'google.iam.admin.v1.UpdateRole'} def rule(event): return event['resource'].get('type') == 'iam_role' and event['protoPayload'].get('methodName') in ROLE_METHODS def dedup(event): return event['resource'].get('labels', {}).get('project_id', '<PROJECT_NOT_FOUND>')
# -*- coding: utf-8 -*- # Common constants for submit SUBMIT_RESPONSE_ERROR = 'CERR' SUBMIT_RESPONSE_OK = 'OK' SUBMIT_RESPONSE_PROTOCOL_CORRUPTED = 'PROTCOR'
submit_response_error = 'CERR' submit_response_ok = 'OK' submit_response_protocol_corrupted = 'PROTCOR'
text = 'shakespeare.txt' output = 'output_file.txt' f = open(output, 'r') o = open(text, 'w') for line in f: o.write(line) f.close() o.close()
text = 'shakespeare.txt' output = 'output_file.txt' f = open(output, 'r') o = open(text, 'w') for line in f: o.write(line) f.close() o.close()
{ "targets": [ { "target_name": "scsSDKTelemetry", "sources": [ "scsSDKTelemetry.cc" ], "cflags": ["-fexceptions"], "cflags_cc": ["-fexceptions"] } ] }
{'targets': [{'target_name': 'scsSDKTelemetry', 'sources': ['scsSDKTelemetry.cc'], 'cflags': ['-fexceptions'], 'cflags_cc': ['-fexceptions']}]}
# Flags quiet_mode = False no_log = False no_cleanup = False all_containers = False no_confirm = False no_backup = False # intern Flags keep_maintenance_mode = False def set_flags(flags=list): global no_confirm global all_containers global quiet_mode global no_log global no_cleanup global no_backup no_confirm = "--yes" in flags all_containers = "--all" in flags quiet_mode = "--quiet" in flags no_log = "--nolog" in flags no_cleanup = "--nocleanup" in flags no_backup = "--nobackup" in flags def _print(text=None): global quiet_mode if not quiet_mode: if not text is None: print(text) else: print()
quiet_mode = False no_log = False no_cleanup = False all_containers = False no_confirm = False no_backup = False keep_maintenance_mode = False def set_flags(flags=list): global no_confirm global all_containers global quiet_mode global no_log global no_cleanup global no_backup no_confirm = '--yes' in flags all_containers = '--all' in flags quiet_mode = '--quiet' in flags no_log = '--nolog' in flags no_cleanup = '--nocleanup' in flags no_backup = '--nobackup' in flags def _print(text=None): global quiet_mode if not quiet_mode: if not text is None: print(text) else: print()
class Solution: def solve(self, n): # Write your code here l = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K' , 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' ] s = "" while n > 26: j = n%26 n = n//26 s += l[j-1] if n <= 26: s += l[n-1] return s[::-1]
class Solution: def solve(self, n): l = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] s = '' while n > 26: j = n % 26 n = n // 26 s += l[j - 1] if n <= 26: s += l[n - 1] return s[::-1]
class Base: base_url = "https://localhost" def __init__(self, *args, **kwargs): pass
class Base: base_url = 'https://localhost' def __init__(self, *args, **kwargs): pass
def reward_function(params): distance_from_center = params['distance_from_center'] progress = params['progress'] on_track = params["all_wheels_on_track"] ''' Example that penalizes slow driving. This create a non-linear reward function so it may take longer to learn. ''' # Calculate 3 marks that are farther and father away from the center line marker_1 = 0.1 * params['track_width'] marker_2 = 0.25 * params['track_width'] marker_3 = 0.5 * params['track_width'] # Give higher reward if the car is closer to center line and vice versa if distance_from_center <= marker_1: reward = 1 elif distance_from_center <= marker_2: reward = 0.5 elif distance_from_center <= marker_3: reward = 0.1 else: reward = 1e-3 # likely crashed/ close to off track # penalize reward for the car taking slow actions # speed is in m/s # we penalize any speed less than 0.5m/s SPEED_THRESHOLD = 1.0 if params['speed'] < SPEED_THRESHOLD: reward *= 0.5 # Experimental (Huge Boost for progress) progress_dict = { 10: 10, 20: 20, 30: 40, 40: 80, 50: 160, 60: 320, 70: 640, 80: 1280, 90: 2560, 100: 5120 } int_progress = int(progress) if int_progress % 10 == 0: try: reward += progress_dict[int_progress] except: pass return float(reward)
def reward_function(params): distance_from_center = params['distance_from_center'] progress = params['progress'] on_track = params['all_wheels_on_track'] '\n Example that penalizes slow driving. This create a non-linear reward function so it may take longer to learn.\n ' marker_1 = 0.1 * params['track_width'] marker_2 = 0.25 * params['track_width'] marker_3 = 0.5 * params['track_width'] if distance_from_center <= marker_1: reward = 1 elif distance_from_center <= marker_2: reward = 0.5 elif distance_from_center <= marker_3: reward = 0.1 else: reward = 0.001 speed_threshold = 1.0 if params['speed'] < SPEED_THRESHOLD: reward *= 0.5 progress_dict = {10: 10, 20: 20, 30: 40, 40: 80, 50: 160, 60: 320, 70: 640, 80: 1280, 90: 2560, 100: 5120} int_progress = int(progress) if int_progress % 10 == 0: try: reward += progress_dict[int_progress] except: pass return float(reward)
test_list = [-2, 1, 3, -6] print(f'before', test_list) test_list.sort(key=abs) print(f'before', test_list)
test_list = [-2, 1, 3, -6] print(f'before', test_list) test_list.sort(key=abs) print(f'before', test_list)
class Request: def __init__(self, req_id: int, emp_id: int, req_amount: float, req_desc: str, req_date: str, approved: bool, mgr_message: str, reviewed: bool): self.req_id = req_id self.emp_id = emp_id self.req_amount = req_amount self.req_desc = req_desc self.req_date = req_date self.approved = approved self.mgr_message = mgr_message self.reviewed = reviewed def json(self): return {'reqID': self.req_id, 'empID': self.emp_id, 'reqAmount': self.req_amount, 'reqDesc': self.req_desc, 'reqDate': self.req_date, 'approved': self.approved, 'mgrMessage': self.mgr_message, 'reviewed': self.reviewed } @staticmethod def json_deserialize(json): request = Request(0, 0, 0, '', '', False, '', False) request.req_id = json['reqID'] request.emp_id = json['empID'] request.req_amount = json['reqAmount'] request.req_desc = json['reqDesc'] request.req_date = json['reqDate'] request.approved = json['approved'] request.mgr_message = json['mgrMessage'] request.reviewed = json['reviewed'] return request
class Request: def __init__(self, req_id: int, emp_id: int, req_amount: float, req_desc: str, req_date: str, approved: bool, mgr_message: str, reviewed: bool): self.req_id = req_id self.emp_id = emp_id self.req_amount = req_amount self.req_desc = req_desc self.req_date = req_date self.approved = approved self.mgr_message = mgr_message self.reviewed = reviewed def json(self): return {'reqID': self.req_id, 'empID': self.emp_id, 'reqAmount': self.req_amount, 'reqDesc': self.req_desc, 'reqDate': self.req_date, 'approved': self.approved, 'mgrMessage': self.mgr_message, 'reviewed': self.reviewed} @staticmethod def json_deserialize(json): request = request(0, 0, 0, '', '', False, '', False) request.req_id = json['reqID'] request.emp_id = json['empID'] request.req_amount = json['reqAmount'] request.req_desc = json['reqDesc'] request.req_date = json['reqDate'] request.approved = json['approved'] request.mgr_message = json['mgrMessage'] request.reviewed = json['reviewed'] return request
def test_count_by_time_categorical(total_spent): labels = range(2) total_spent = total_spent.bin(2, labels=labels) ax = total_spent.plot.count_by_time() assert ax.get_title() == 'Label Count vs. Cutoff Times' def test_count_by_time_continuous(total_spent): ax = total_spent.plot.count_by_time() assert ax.get_title() == 'Label vs. Cutoff Times' def test_distribution_categorical(total_spent): ax = total_spent.bin(2, labels=range(2)) ax = ax.plot.dist() assert ax.get_title() == 'Label Distribution' def test_distribution_continuous(total_spent): ax = total_spent.plot.dist() assert ax.get_title() == 'Label Distribution'
def test_count_by_time_categorical(total_spent): labels = range(2) total_spent = total_spent.bin(2, labels=labels) ax = total_spent.plot.count_by_time() assert ax.get_title() == 'Label Count vs. Cutoff Times' def test_count_by_time_continuous(total_spent): ax = total_spent.plot.count_by_time() assert ax.get_title() == 'Label vs. Cutoff Times' def test_distribution_categorical(total_spent): ax = total_spent.bin(2, labels=range(2)) ax = ax.plot.dist() assert ax.get_title() == 'Label Distribution' def test_distribution_continuous(total_spent): ax = total_spent.plot.dist() assert ax.get_title() == 'Label Distribution'
DATABASES_PATH="../tmp/storage" CREDENTIALS_PATH_BUCKETS="../credentials/tynr/engine/bucketAccess.json" CREDENTIALS_PATH_FIRESTORE = '../credentials/tynr/engine/firestoreServiceAccount.json' INGESTION_COLLECTION = "tyns" INGESTION_BATCH_LIMIT = 1000
databases_path = '../tmp/storage' credentials_path_buckets = '../credentials/tynr/engine/bucketAccess.json' credentials_path_firestore = '../credentials/tynr/engine/firestoreServiceAccount.json' ingestion_collection = 'tyns' ingestion_batch_limit = 1000
__all__ = ['EXPERIMENTS'] EXPERIMENTS = ','.join([ 'ig_android_sticker_search_explorations', 'android_ig_camera_ar_asset_manager_improvements_universe', 'ig_android_stories_seen_state_serialization', 'ig_stories_photo_time_duration_universe', 'ig_android_bitmap_cache_executor_size', 'ig_android_stories_music_search_typeahead', 'ig_android_delayed_comments', 'ig_android_switch_back_option', 'ig_android_video_profiler_loom_traces', 'ig_android_paid_branded_content_rendering', 'ig_android_direct_app_reel_grid_search', 'ig_android_stories_no_inflation_on_app_start', 'ig_android_camera_sdk_check_gl_surface_r2', 'ig_promote_review_screen_title_universe', 'ig_android_direct_newer_single_line_composer_universe', 'ig_direct_holdout_h1_2019', 'ig_explore_2019_h1_destination_cover', 'ig_android_direct_stories_in_direct_inbox', 'ig_fb_graph_differentiation_no_fb_data', 'ig_android_recyclerview_binder_group_enabled_universe', 'ig_android_direct_share_sheet_custom_fast_scroller', 'ig_android_video_exoplayer_2', 'ig_android_shopping_channel_in_explore', 'ig_android_stories_music_filters', 'ig_android_2018_h1_hashtag_report_universe', 'ig_android_live_replay_highlights_universe', 'ig_android_hashtag_page_reduced_related_items', 'ig_android_live_titles_broadcaster_side_create_title_universe', 'ig_android_fbns_preload_direct_universe', 'ig_android_prefetch_carousels_on_swipe_universe', 'ig_camera_network_activity_logger', 'ig_camera_remove_display_rotation_cb_universe', 'ig_android_interactions_migrate_inline_composer_to_viewpoint_universe', 'ig_android_realtime_always_start_connection_on_condition_universe', 'ig_android_ad_leadgen_single_screen_universe', 'ig_android_enable_zero_rating', 'ig_android_import_page_post_after_biz_conversion', 'ig_camera_ar_effect_attribution_position', 'ig_android_vc_call_ended_cleanup_universe', 'ig_stories_engagement_holdout_2019_h1_universe', 'ig_android_story_import_intent', 'ig_direct_report_conversation_universe', 'ig_biz_graph_connection_universe', 'ig_android_codec_high_profile', 'ig_android_nametag', 'ig_android_sso_family_key_universe', 'ig_android_parse_direct_messages_bytes_universe', 'ig_hashtag_creation_universe', 'ig_android_gallery_order_by_date_taken', 'ig_android_igtv_reshare', 'ig_end_of_feed_universe', 'ig_android_share_others_post_reorder', 'ig_android_additional_contact_in_nux', 'ig_android_live_use_all_preview_sizes', 'ig_android_clarify_invite_options', 'ig_android_live_align_by_2_universe', 'ig_android_separate_network_executor', 'ig_android_realtime_manager_optimization', 'ig_android_auto_advance_su_unit_when_scrolled_off_screen', 'ig_android_network_cancellation', 'ig_android_media_as_sticker', 'ig_android_stories_video_prefetch_kb', 'ig_android_maintabfragment', 'ig_inventory_connections', 'ig_stories_injection_tool_enabled_universe', 'ig_android_stories_disable_highlights_media_preloading', 'ig_android_live_start_broadcast_optimized_universe', 'ig_android_stories_question_response_mutation_universe', 'ig_android_onetap_upsell_change_pwd', 'ig_nametag_data_collection', 'ig_android_disable_scroll_listeners', 'ig_android_persistent_nux', 'ig_android_igtv_audio_always_on', 'ig_android_enable_liger_preconnect_universe', 'ig_android_persistent_duplicate_notif_checker_user_based', 'ig_android_rate_limit_mediafeedviewablehelper', 'ig_android_search_remove_null_state_sections', 'ig_android_stories_viewer_drawable_cache_universe', 'ig_direct_android_reply_modal_universe', 'ig_android_biz_qp_suggest_page', 'ig_shopping_indicator_content_variations_android', 'ig_android_stories_reel_media_item_automatic_retry', 'ig_fb_notification_universe', 'ig_android_live_disable_speed_test_ui_timeout_universe', 'ig_android_direct_thread_scroll_perf_oncreate_universe', 'ig_android_low_data_mode_backup_2', 'ig_android_invite_xout_universe', 'ig_android_low_data_mode_backup_3', 'ig_android_low_data_mode_backup_4', 'ig_android_low_data_mode_backup_5', 'ig_android_video_abr_universe', 'ig_android_low_data_mode_backup_1', 'ig_android_signup_refactor_santity', 'ig_challenge_general_v2', 'ig_android_place_signature_universe', 'ig_android_hide_button_for_invite_facebook_friends', 'ig_android_business_promote_tooltip', 'ig_android_follow_requests_ui_improvements', 'ig_android_shopping_post_tagging_nux_universe', 'ig_android_stories_sensitivity_screen', 'ig_android_camera_arengine_shader_caching_universe', 'ig_android_insta_video_broadcaster_infra_perf', 'ig_android_direct_view_more_qe', 'ig_android_direct_visual_message_prefetch_count_universe', 'ig_camera_android_ar_effect_stories_deeplink', 'ig_android_client_side_delivery_universe', 'ig_android_stories_send_client_reels_on_tray_fetch_universe', 'ig_android_direct_inbox_background_view_models', 'ig_android_startup_thread_priority', 'ig_android_stories_viewer_responsiveness_universe', 'ig_android_live_use_rtc_upload_universe', 'ig_android_live_ama_viewer_universe', 'ig_android_business_id_conversion_universe', 'ig_smb_ads_holdout_2018_h2_universe', 'ig_android_modal_activity_no_animation_fix_universe', 'ig_android_camera_post_smile_low_end_universe', 'ig_android_live_realtime_comments_universe', 'ig_android_vc_in_app_notification_universe', 'ig_eof_caboose_universe', 'ig_android_new_one_tap_nux_universe', 'ig_android_igds_edit_profile_fields', 'ig_android_downgrade_viewport_exit_behavior', 'ig_android_mi_batch_upload_universe', 'ig_camera_android_segmentation_async_universe', 'ig_android_use_recyclerview_for_direct_search_universe', 'ig_android_live_comment_fetch_frequency_universe', 'ig_android_create_page_on_top_universe', 'ig_android_direct_log_badge_count_inconsistent', 'ig_android_stories_text_format_emphasis', 'ig_android_question_sticker_replied_state', 'ig_android_ad_connection_manager_universe', 'ig_android_image_upload_skip_queue_only_on_wifi', 'ig_android_ad_watchbrowse_carousel_universe', 'ig_android_interactions_show_verified_badge_for_preview_comments_universe', 'ig_stories_question_sticker_music_format_prompt', 'ig_android_activity_feed_row_click', 'ig_android_hide_crashing_newsfeed_story_t38131972', 'ig_android_video_upload_quality_qe1', 'ig_android_save_collaborative_collections', 'ig_android_location_attribution_text', 'ig_camera_android_profile_ar_notification_universe', 'coupon_price_test_boost_instagram_media_acquisition_universe', 'ig_android_video_outputsurface_handlerthread_universe', 'ig_android_country_code_fix_universe', 'ig_perf_android_holdout_2018_h1', 'ig_android_stories_music_overlay', 'ig_android_enable_lean_crash_reporting_universe', 'ig_android_resumable_downloads_logging_universe', 'ig_android_stories_default_rear_camera_universe', 'ig_android_low_latency_consumption_universe', 'ig_android_offline_mode_holdout', 'ig_android_foreground_location_collection', 'ig_android_stories_close_friends_disable_first_time_badge', 'ig_android_react_native_universe_kill_switch', 'ig_android_video_ta_universe', 'ig_android_media_rows_async_inflate', 'ig_android_stories_gallery_video_segmentation', 'ig_android_stories_in_feed_preview_notify_fix_universe', 'ig_android_video_rebind_force_keep_playing_fix', 'ig_android_direct_business_holdout', 'ig_android_xposting_upsell_directly_after_sharing_to_story', 'ig_android_gallery_high_quality_photo_thumbnails', 'ig_android_interactions_new_comment_like_pos_universe', 'ig_feed_core_experience_universe', 'ig_android_friends_sticker', 'ig_android_business_ix_universe', 'ig_android_suggested_highlights', 'ig_android_stories_posting_offline_ui', 'ig_android_stories_close_friends_rings_remove_green_universe', 'ig_android_canvas_tilt_to_pan_universe', 'ig_android_vc_background_call_toast_universe', 'ig_android_concurrent_cold_start_universe', 'ig_promote_default_destination_universe', 'mi_viewpoint_viewability_universe', 'ig_android_location_page_info_page_upsell', 'igds_android_listrow_migration_universe', 'ig_direct_reshare_sharesheet_ranking', 'ig_android_fb_sync_options_universe', 'ig_android_drawable_usage_logging_universe', 'ig_android_recommend_accounts_destination_routing_fix', 'ig_android_fix_prepare_direct_push', 'ig_direct_android_larger_media_reshare_style', 'ig_android_video_feed_universe', 'ig_android_building_aymf_universe', 'ig_android_internal_sticker_universe', 'ig_traffic_routing_universe', 'ig_android_search_normalization', 'ig_android_ad_watchmore_entry_point_universe', 'ig_camera_android_segmentation_enabled_universe', 'ig_android_igtv_always_show_browse_ui', 'ig_android_page_claim_deeplink_qe', 'ig_explore_2018_h2_account_rec_deduplication_android', 'ig_android_story_accidentally_click_investigation_universe', 'ig_android_shopping_pdp_hero_carousel', 'ig_android_clear_inflight_image_request', 'ig_android_show_su_in_other_users_follow_list', 'ig_android_stories_infeed_lower_threshold_launch', 'ig_android_main_feed_video_countdown_timer', 'instagram_interests_holdout', 'ig_android_continuous_video_capture', 'ig_android_category_search_edit_profile', 'ig_android_contact_invites_nux_universe', 'ig_android_settings_search_v2_universe', 'ig_android_video_upload_iframe_interval', 'ig_business_new_value_prop_universe', 'ig_android_power_metrics', 'ig_android_stories_collapse_seen_segments', 'ig_android_live_follow_from_comments_universe', 'ig_android_hashtag_discover_tab', 'ig_android_live_skip_live_encoder_pts_correction', 'ig_android_reel_zoom_universe', 'enable_creator_account_conversion_v0_universe', 'ig_android_test_not_signing_address_book_unlink_endpoint', 'ig_android_direct_tabbed_media_picker', 'ig_android_direct_mutation_manager_job_scheduler', 'ig_ei_option_setting_universe', 'ig_android_hashtag_related_items_over_logging', 'ig_android_livewith_liveswap_optimization_universe', 'ig_android_direct_new_intro_card', 'ig_camera_android_supported_capabilities_api_universe', 'ig_android_video_webrtc_textureview', 'ig_android_share_claim_page_universe', 'ig_direct_android_mentions_sender', 'ig_android_whats_app_contact_invite_universe', 'ig_android_video_scrubber_thumbnail_universe', 'ig_camera_ar_image_transform_library', 'ig_android_insights_creation_growth_universe', 'ig_android_igtv_refresh_tv_guide_interval', 'ig_android_stories_gif_sticker', 'ig_android_stories_music_broadcast_receiver', 'ig_android_fb_profile_integration_fbnc_universe', 'ig_android_low_data_mode', 'ig_fb_graph_differentiation_control', 'ig_android_show_create_content_pages_universe', 'ig_android_igsystrace_universe', 'ig_android_new_contact_invites_entry_points_universe', 'ig_android_ccu_jobscheduler_inner', 'ig_android_netego_scroll_perf', 'ig_android_fb_connect_follow_invite_flow', 'ig_android_invite_list_button_redesign_universe', 'ig_android_react_native_email_sms_settings_universe', 'ig_android_igtv_aspect_ratio_limits', 'ig_hero_player', 'ig_android_save_auto_sharing_to_fb_option_on_server', 'ig_android_live_presence_universe', 'ig_android_whitehat_options_universe', 'android_cameracore_preview_frame_listener2_ig_universe', 'ig_android_memory_manager', 'ig_account_recs_in_chaining', 'ig_explore_2018_finite_chain_android_universe', 'ig_android_tagging_video_preview', 'ig_android_feed_survey_viewpoint', 'ig_android_hashtag_search_suggestions', 'ig_android_profile_neue_infra_rollout_universe', 'ig_android_instacrash_detection', 'ig_android_interactions_add_search_bar_to_likes_list_universe', 'ig_android_vc_capture_universe', 'ig_nametag_local_ocr_universe', 'ig_branded_content_share_to_facebook', 'ig_android_direct_segmented_video', 'ig_android_search_page_v2', 'ig_android_stories_recently_captured_universe', 'ig_business_integrity_ipc_universe', 'ig_android_share_product_universe', 'ig_fb_graph_differentiation_top_k_fb_coefficients', 'ig_shopping_viewer_share_action', 'ig_android_direct_share_story_to_facebook', 'ig_android_business_attribute_sync', 'ig_android_video_time_to_live_cache_eviction', 'ig_android_location_feed_related_business', 'ig_android_view_and_likes_cta_universe', 'ig_live_holdout_h2_2018', 'ig_android_profile_memories_universe', 'ig_promote_budget_warning_view_universe', 'ig_android_redirect_to_web_on_oembed_fail_universe', 'ig_android_optic_new_focus_controller', 'ig_android_shortcuts', 'ig_android_search_hashtag_badges', 'ig_android_navigation_latency_logger', 'ig_android_direct_composer_avoid_hiding_thread_camera', 'ig_android_direct_remix_visual_messages', 'ig_android_custom_story_import_intent', 'ig_android_biz_new_choose_category', 'ig_android_view_info_universe', 'ig_android_camera_upsell_dialog', 'ig_android_business_ix_self_serve', 'ig_android_dead_code_detection', 'ig_android_ad_watchbrowse_universe', 'ig_android_pbia_proxy_profile_universe', 'ig_android_qp_kill_switch', 'ig_android_gap_rule_enforcer_universe', 'ig_android_direct_delete_or_block_from_message_requests', 'ig_android_direct_left_aligned_navigation_bar', 'ig_android_feed_load_more_viewpoint_universe', 'ig_android_stories_reshare_reply_msg', 'ig_android_one_tap_sharesheet_fb_extensions', 'ig_android_stories_feeback_message_composer_entry_point', 'ig_direct_holdout_h2_2018', 'ig_camera_android_facetracker_v12_universe', 'ig_android_camera_ar_effects_low_storage_universe', 'ig_camera_android_black_feed_sticker_fix_universe', 'ig_android_direct_media_forwarding', 'ig_android_camera_attribution_in_direct', 'ig_android_audience_control', 'ig_android_stories_cross_sharing_to_fb_holdout_universe', 'ig_android_enable_main_feed_reel_tray_preloading', 'ig_android_profile_neue_universe', 'ig_company_profile_holdout', 'ig_camera_android_areffect_photo_capture_universe', 'ig_rti_inapp_notifications_universe', 'ig_android_vc_join_timeout_universe', 'ig_android_feed_core_ads_2019_h1_holdout_universe', 'ig_android_interactions_composer_mention_search_universe', 'ig_android_igtv_save', 'ig_android_follower_following_whatsapp_invite_universe', 'ig_android_claim_location_page', 'ig_android_story_ads_2019_h1_holdout_universe', 'ig_android_3pspp', 'ig_android_cache_timespan_objects', 'ig_timestamp_public_test', 'ig_android_histogram_reporter', 'ig_android_feed_auto_share_to_facebook_dialog', 'ig_android_arengine_separate_prepare', 'ig_android_skip_button_content_on_connect_fb_universe', 'ig_android_igtv_profile_tab', 'ig_android_show_fb_name_universe', 'ig_android_interactions_inline_composer_extensions_universe', 'ig_camera_async_space_validation_for_ar', 'ig_android_pigeon_sampling', 'ig_story_camera_reverse_video_experiment', 'ig_android_live_use_timestamp_normalizer', 'ig_android_profile_lazy_load_carousel_media', 'ig_android_stories_question_sticker_music_format', 'ig_business_profile_18h1_holdout_universe', 'ig_pacing_overriding_universe', 'ig_android_direct_allow_multiline_composition', 'ig_android_interactions_emoji_extension_followup_universe', 'ig_android_story_ads_direct_cta_universe', 'ig_android_q3lc_transparency_control_settings', 'ig_stories_selfie_sticker', 'ig_android_sso_use_trustedapp_universe', 'ig_android_ad_increase_story_adpreload_priority_universe', 'ig_android_interests_netego_dismiss', 'ig_direct_giphy_gifs_rating', 'ig_android_shopping_catalogsearch', 'ig_android_stories_music_awareness_universe', 'ig_android_qcc_perf', 'ig_android_stories_reels_tray_media_count_check', 'ig_android_new_fb_page_selection', 'ig_android_facebook_crosspost', 'ig_android_internal_collab_save', 'ig_video_holdout_h2_2017', 'ig_android_story_sharing_universe', 'ig_promote_post_insights_entry_universe', 'ig_android_direct_thread_store_rewrite', 'ig_android_qp_clash_management_enabled_v4_universe', 'ig_branded_content_paid_branded_content', 'ig_android_large_heap_override', 'ig_android_live_subscribe_user_level_universe', 'ig_android_igtv_creation_flow', 'ig_android_video_call_finish_universe', 'ig_android_direct_mqtt_send', 'ig_android_do_not_fetch_follow_requests_on_success', 'ig_android_remove_push_notifications', 'ig_android_vc_directapp_integration_universe', 'ig_android_explore_discover_people_entry_point_universe', 'ig_android_sonar_prober_universe', 'ig_android_live_bg_download_face_filter_assets_universe', 'ig_android_gif_framerate_throttling', 'ig_android_live_webrtc_livewith_params', 'ig_android_vc_always_start_connection_on_condition_universe', 'ig_camera_worldtracking_set_scale_by_arclass', 'ig_android_direct_inbox_typing_indicator', 'ig_android_stories_music_lyrics_scrubber', 'ig_feed_experience', 'ig_android_direct_new_thread_local_search_fix_universe', 'ig_android_appstate_logger', 'ig_promote_insights_video_views_universe', 'ig_android_dismiss_recent_searches', 'ig_android_downloadable_igrtc_module', 'ig_android_fb_link_ui_polish_universe', 'ig_stories_music_sticker', 'ig_android_device_capability_framework', 'ig_scroll_by_two_cards_for_suggested_invite_universe', 'ig_android_stories_helium_balloon_badging_universe', 'ig_android_business_remove_unowned_fb_pages', 'ig_android_stories_combined_asset_search', 'ig_stories_allow_camera_actions_while_recording', 'ig_android_analytics_mark_events_as_offscreen', 'ig_android_optic_feature_testing', 'ig_android_camera_universe', 'ig_android_optic_photo_cropping_fixes', 'ig_camera_regiontracking_use_similarity_tracker_for_scaling', 'ig_android_refreshable_list_view_check_spring', 'felix_android_video_quality', 'ig_android_biz_endpoint_switch', 'ig_android_direct_continuous_capture', 'ig_android_comments_direct_reply_to_author', 'ig_android_vc_webrtc_params', 'ig_android_claim_or_connect_page_on_xpost', 'ig_android_anr', 'ig_android_optic_new_architecture', 'ig_android_stories_viewer_as_modal_high_end_launch', 'ig_android_hashtag_follow_chaining_over_logging', 'ig_new_eof_demarcator_universe', 'ig_android_push_notifications_settings_redesign_universe', 'ig_hashtag_display_universe', 'ig_fbns_push', 'coupon_price_test_ad4ad_instagram_resurrection_universe', 'ig_android_live_rendering_looper_universe', 'ig_android_mqtt_cookie_auth_memcache_universe', 'ig_android_live_end_redirect_universe', 'ig_android_direct_mutation_manager_media_2', 'ig_android_ccu_jobscheduler_outer', 'ig_smb_ads_holdout_2019_h1_universe', 'ig_fb_graph_differentiation', 'ig_android_stories_share_extension_video_segmentation', 'ig_android_interactions_realtime_typing_indicator_and_live_comments', 'ig_android_stories_create_flow_favorites_tooltip', 'ig_android_live_nerd_stats_universe', 'ig_android_universe_video_production', 'ig_android_hide_reset_with_fb_universe', 'ig_android_reactive_feed_like_count', 'ig_android_stories_music_precapture', 'ig_android_vc_service_crash_fix_universe', 'ig_android_shopping_product_overlay', 'ig_android_direct_double_tap_to_like_hearts', 'ig_camera_android_api_rewrite_universe', 'ig_android_growth_fci_team_holdout_universe', 'ig_android_stories_gallery_recyclerview_kit_universe', 'ig_android_story_ads_instant_sub_impression_universe', 'ig_business_signup_biz_id_universe', 'ig_android_save_all', 'ig_android_main_feed_fragment_scroll_timing_histogram_uni', 'ig_android_ttcp_improvements', 'ig_android_camera_ar_platform_profile_universe', 'ig_explore_2018_topic_channel_navigation_android_universe', 'ig_android_live_fault_tolerance_universe', 'ig_android_stories_viewer_tall_android_cap_media_universe', 'native_contact_invites_universe', 'ig_android_dash_script', 'ig_android_insights_media_hashtag_insight_universe', 'ig_camera_fast_tti_universe', 'ig_android_stories_whatsapp_share', 'ig_android_inappnotification_rootactivity_tweak', 'ig_android_render_thread_memory_leak_holdout', 'ig_android_private_highlights_universe', 'ig_android_rate_limit_feed_video_module', 'ig_android_one_tap_fbshare', 'ig_share_to_story_toggle_include_shopping_product', 'ig_android_direct_speed_cam_univ', 'ig_payments_billing_address', 'ig_android_ufiv3_holdout', 'ig_android_new_camera_design_container_animations_universe', 'ig_android_livewith_guest_adaptive_camera_universe', 'ig_android_direct_fix_playing_invalid_visual_message', 'ig_shopping_viewer_intent_actions', 'ig_promote_add_payment_navigation_universe', 'ig_android_optic_disable_post_capture_preview_restart', 'ig_android_main_feed_refresh_style_universe', 'ig_android_live_analytics', 'ig_android_story_ads_performance_universe_1', 'ig_android_stories_viewer_modal_activity', 'ig_android_story_ads_performance_universe_3', 'ig_android_story_ads_performance_universe_4', 'ig_android_feed_seen_state_with_view_info', 'ig_android_ads_profile_cta_feed_universe', 'ig_android_vc_cowatch_universe', 'ig_android_optic_thread_priorities', 'ig_android_igtv_chaining', 'ig_android_live_qa_viewer_v1_universe', 'ig_android_stories_show_story_not_available_error_msg', 'ig_android_inline_notifications_recommended_user', 'ig_shopping_post_insights', 'ig_android_webrtc_streamid_salt_universe', 'ig_android_wellbeing_timeinapp_v1_universe', 'ig_android_profile_cta_v3', 'ig_android_video_qp_logger_universe', 'ig_android_cache_video_autoplay_checker', 'ig_android_live_suggested_live_expansion', 'ig_android_vc_start_from_direct_inbox_universe', 'ig_perf_android_holdout', 'ig_fb_graph_differentiation_only_fb_candidates', 'ig_android_expired_build_lockout', 'ig_promote_lotus_universe', 'ig_android_video_streaming_upload_universe', 'ig_android_optic_fast_preview_restart_listener', 'ig_interactions_h1_2019_team_holdout_universe', 'ig_android_ad_async_ads_universe', 'ig_camera_android_effect_info_bottom_sheet_universe', 'ig_android_stories_feedback_badging_universe', 'ig_android_sorting_on_self_following_universe', 'ig_android_edit_location_page_info', 'ig_promote_are_you_sure_universe', 'ig_android_interactions_feed_label_below_comments_refactor_universe', 'ig_android_camera_platform_effect_share_universe', 'ig_stories_engagement_swipe_animation_simple_universe', 'ig_login_activity', 'ig_android_direct_quick_replies', 'ig_android_fbns_optimization_universe', 'ig_android_stories_alignment_guides_universe', 'ig_android_rn_ads_manager_universe', 'ig_explore_2018_post_chaining_account_recs_dedupe_universe', 'ig_android_click_to_direct_story_reaction_universe', 'ig_internal_research_settings', 'ig_android_stories_video_seeking_audio_bug_fix', 'ig_android_insights_holdout', 'ig_android_swipe_up_area_universe', 'ig_android_rendering_controls', 'ig_android_feed_post_sticker', 'ig_android_inline_editing_local_prefill', 'ig_android_hybrid_bitmap_v3_prenougat', 'ig_android_cronet_stack', 'ig_android_enable_igrtc_module', 'ig_android_scroll_audio_priority', 'ig_android_shopping_product_appeals_universe', 'ig_android_fb_follow_server_linkage_universe', 'ig_android_fblocation_universe', 'ig_android_direct_updated_story_reference_ui', 'ig_camera_holdout_h1_2018_product', 'live_with_request_to_join_button_universe', 'ig_android_music_continuous_capture', 'ig_android_churned_find_friends_redirect_to_discover_people', 'ig_android_main_feed_new_posts_indicator_universe', 'ig_vp9_hd_blacklist', 'ig_ios_queue_time_qpl_universe', 'ig_android_split_contacts_list', 'ig_android_connect_owned_page_universe', 'ig_android_felix_prefetch_thumbnail_sprite_sheet', 'ig_android_multi_dex_class_loader_v2', 'ig_android_watch_and_more_redesign', 'igtv_feed_previews', 'ig_android_qp_batch_fetch_caching_enabled_v1_universe', 'ig_android_profile_edit_phone_universe', 'ig_android_vc_renderer_type_universe', 'ig_android_local_2018_h2_holdout', 'ig_android_purx_native_checkout_universe', 'ig_android_vc_disable_lock_screen_content_access_universe', 'ig_android_business_transaction_in_stories_creator', 'android_cameracore_ard_ig_integration', 'ig_video_experimental_encoding_consumption_universe', 'ig_android_iab_autofill', 'ig_android_location_page_intent_survey', 'ig_camera_android_segmentation_qe2_universe', 'ig_android_image_mem_cache_strong_ref_universe', 'ig_android_business_promote_refresh_fb_access_token_universe', 'ig_android_stories_samsung_sharing_integration', 'ig_android_hashtag_header_display', 'ig_discovery_holdout_2019_h1_universe', 'ig_android_user_url_deeplink_fbpage_endpoint', 'ig_android_direct_mutation_manager_handler_thread_universe', 'ig_branded_content_show_settings_universe', 'ig_android_ad_holdout_watchandmore_universe', 'ig_android_direct_thread_green_dot_presence_universe', 'ig_android_camera_new_post_smile_universe', 'ig_android_shopping_signup_redesign_universe', 'ig_android_vc_missed_call_notification_action_reply', 'allow_publish_page_universe', 'ig_android_experimental_onetap_dialogs_universe', 'ig_promote_ppe_v2_universe', 'android_cameracore_ig_gl_oom_fixes_universe', 'ig_android_multi_capture_camera', 'ig_android_fb_family_navigation_badging_user', 'ig_android_follow_requests_copy_improvements', 'ig_media_geo_gating', 'ig_android_comments_notifications_universe', 'ig_android_render_output_surface_timeout_universe', 'ig_android_drop_frame_check_paused', 'ig_direct_raven_sharesheet_ranking', 'ig_android_realtime_mqtt_logging', 'ig_family_bridges_holdout_universe', 'ig_android_rainbow_hashtags', 'ig_android_ad_watchinstall_universe', 'ig_android_ad_account_top_followers_universe', 'ig_android_betamap_universe', 'ig_android_video_ssim_report_universe', 'ig_android_cache_network_util', 'ig_android_leak_detector_upload_universe', 'ig_android_carousel_prefetch_bumping', 'ig_fbns_preload_default', 'ig_android_inline_appeal_show_new_content', 'ig_fbns_kill_switch', 'ig_hashtag_following_holdout_universe', 'ig_android_show_weekly_ci_upsell_limit', 'ig_android_direct_reel_options_entry_point_2_universe', 'enable_creator_account_conversion_v0_animation', 'ig_android_http_service_same_thread', 'ig_camera_holdout_h1_2018_performance', 'ig_android_direct_mutation_manager_cancel_fix_universe', 'ig_music_dash', 'ig_android_fb_url_universe', 'ig_android_reel_raven_video_segmented_upload_universe', 'ig_android_promote_native_migration_universe', 'ig_camera_android_badge_face_effects_universe', 'ig_android_hybrid_bitmap_v3_nougat', 'ig_android_multi_author_story_reshare_universe', 'ig_android_vc_camera_zoom_universe', 'ig_android_enable_request_compression_ccu', 'ig_android_video_controls_universe', 'ig_android_logging_metric_universe_v2', 'ig_android_xposting_newly_fbc_people', 'ig_android_visualcomposer_inapp_notification_universe', 'ig_android_contact_point_upload_rate_limit_killswitch', 'ig_android_webrtc_encoder_factory_universe', 'ig_android_search_impression_logging', 'ig_android_handle_username_in_media_urls_universe', 'ig_android_sso_kototoro_app_universe', 'ig_android_mi_holdout_h1_2019', 'ig_android_igtv_autoplay_on_prepare', 'ig_file_based_session_handler_2_universe', 'ig_branded_content_tagging_upsell', 'ig_shopping_insights_parity_universe_android', 'ig_android_live_ama_universe', 'ig_android_external_gallery_import_affordance', 'ig_android_updatelistview_on_loadmore', 'ig_android_optic_new_zoom_controller', 'ig_android_hide_type_mode_camera_button', 'ig_android_photos_qpl', 'ig_android_reel_impresssion_cache_key_qe_universe', 'ig_android_show_profile_picture_upsell_in_reel_universe', 'ig_android_live_viewer_tap_to_hide_chrome_universe', 'ig_discovery_holdout_universe', 'ig_android_direct_import_google_photos2', 'ig_android_stories_tray_in_viewer', 'ig_android_request_verification_badge', 'ig_android_direct_unlimited_raven_replays_inthreadsession_fix', 'ig_android_netgo_cta', 'ig_android_viewpoint_netego_universe', 'ig_android_stories_separate_overlay_creation', 'ig_android_iris_improvements', 'ig_android_biz_conversion_naming_test', 'ig_android_fci_empty_feed_friend_search', 'ig_android_hashtag_page_support_places_tab', 'ig_camera_android_ar_platform_universe', 'ig_android_stories_viewer_prefetch_improvements', 'ig_android_optic_camera_warmup', 'ig_android_place_search_profile_image', 'ig_android_interactions_in_feed_comment_view_universe', 'ig_android_fb_sharing_shortcut', 'ig_android_oreo_hardware_bitmap', 'ig_android_analytics_diagnostics_universe', 'ig_android_insights_creative_tutorials_universe', 'ig_android_vc_universe', 'ig_android_profile_unified_follow_view', 'ig_android_collect_os_usage_events_universe', 'ig_android_shopping_nux_timing_universe', 'ig_android_fbpage_on_profile_side_tray', 'ig_android_native_logcat_interceptor', 'ig_android_direct_thread_content_picker', 'ig_android_notif_improvement_universe', 'ig_face_effect_ranking', 'ig_android_shopping_more_from_business', 'ig_feed_content_universe', 'ig_android_hacked_account_reporting', 'ig_android_disk_usage_logging_universe', 'ig_android_ad_redesign_iab_universe', 'ig_android_banyan_migration', 'ig_android_profile_event_leak_holdout', 'ig_android_stories_loading_automatic_retry', 'ig_android_gqls_typing_indicator', 'ag_family_bridges_2018_h2_holdout', 'ig_promote_net_promoter_score_universe', 'ig_android_direct_last_seen_message_indicator', 'ig_android_biz_conversion_suggest_biz_nux', 'ig_android_log_mediacodec_info', 'ig_android_vc_participant_state_callee_universe', 'ig_camera_android_boomerang_attribution_universe', 'ig_android_stories_weblink_creation', 'ig_android_horizontal_swipe_lfd_logging', 'ig_profile_company_holdout_h2_2018', 'ig_android_ads_manager_pause_resume_ads_universe', 'ig_promote_fix_expired_fb_accesstoken_android_universe', 'ig_android_stories_media_seen_batching_universe', 'ig_android_interactions_nav_to_permalink_followup_universe', 'ig_android_live_titles_viewer_side_view_title_universe', 'ig_android_direct_mark_as_read_notif_action', 'ig_android_edit_highlight_redesign', 'ig_android_direct_mutation_manager_backoff_universe', 'ig_android_interactions_comment_like_for_all_feed_universe', 'ig_android_mi_skip_analytic_event_pool_universe', 'ig_android_fbc_upsell_on_dp_first_load', 'ig_android_audio_ingestion_params', 'ig_android_video_call_participant_state_caller_universe', 'ig_fbns_shared', 'ig_feed_engagement_holdout_2018_h1', 'ig_camera_android_bg_processor', 'ig_android_optic_new_features_implementation', 'ig_android_stories_reel_interactive_tap_target_size', 'ig_android_video_live_trace_universe', 'ig_android_igtv_browse_with_pip_v2', 'ig_android_interactive_listview_during_refresh', 'ig_android_igtv_feed_banner_universe', 'ig_android_unfollow_from_main_feed_v2', 'ig_android_self_story_setting_option_in_menu', 'ig_android_ad_watchlead_universe', 'ufi_share', 'ig_android_live_special_codec_size_list', 'ig_android_live_qa_broadcaster_v1_universe', 'ig_android_hide_stories_viewer_list_universe', 'ig_android_direct_albums', 'ig_android_business_transaction_in_stories_consumer', 'ig_android_scroll_stories_tray_to_front_when_stories_ready', 'ig_android_direct_thread_composer', 'instagram_android_stories_sticker_tray_redesign', 'ig_camera_android_superzoom_icon_position_universe', 'ig_android_business_cross_post_with_biz_id_infra', 'ig_android_photo_invites', 'ig_android_reel_tray_item_impression_logging_viewpoint', 'ig_account_identity_2018_h2_lockdown_phone_global_holdout', 'ig_android_high_res_gif_stickers', 'ig_close_friends_v4', 'ig_fb_cross_posting_sender_side_holdout', 'ig_android_ads_history_universe', 'ig_android_comments_composer_newline_universe', 'ig_rtc_use_dtls_srtp', 'ig_promote_media_picker_universe', 'ig_android_live_start_live_button_universe', 'ig_android_vc_ongoing_call_notification_universe', 'ig_android_rate_limit_feed_item_viewable_helper', 'ig_android_bitmap_attribution_check', 'ig_android_ig_to_fb_sync_universe', 'ig_android_reel_viewer_data_buffer_size', 'ig_two_fac_totp_enable', 'ig_android_vc_missed_call_notification_action_call_back', 'ig_android_stories_landscape_mode', 'ig_android_ad_view_ads_native_universe', 'ig_android_igtv_whitelisted_for_web', 'ig_android_global_prefetch_scheduler', 'ig_android_live_thread_delay_for_mute_universe', 'ig_close_friends_v4_global', 'ig_android_share_publish_page_universe', 'ig_android_new_camera_design_universe', 'ig_direct_max_participants', 'ig_promote_hide_local_awareness_universe', 'ig_android_graphql_survey_new_proxy_universe', 'ig_android_fs_creation_flow_tweaks', 'ig_android_ad_watchbrowse_cta_universe', 'ig_android_camera_new_tray_behavior_universe', 'ig_android_direct_expiring_media_loading_errors', 'ig_android_show_fbunlink_button_based_on_server_data', 'ig_android_downloadable_vp8_module', 'ig_android_igtv_feed_trailer', 'ig_android_fb_profile_integration_universe', 'ig_android_profile_private_banner', 'ig_camera_android_focus_attribution_universe', 'ig_android_rage_shake_whitelist', 'ig_android_su_follow_back', 'ig_android_prefetch_notification_data', 'ig_android_webrtc_icerestart_on_failure_universe', 'ig_android_vpvd_impressions_universe', 'ig_android_payload_based_scheduling', 'ig_android_grid_cell_count', 'ig_android_new_highlight_button_text', 'ig_android_direct_search_bar_redesign', 'ig_android_hashtag_row_preparer', 'ig_android_ad_pbia_header_click_universe', 'ig_android_direct_visual_viewer_ppr_fix', 'ig_background_prefetch', 'ig_camera_android_focus_in_post_universe', 'ig_android_time_spent_dashboard', 'ig_android_direct_vm_activity_sheet', 'ig_promote_political_ads_universe', 'ig_android_stories_auto_retry_reels_media_and_segments', 'ig_android_recommend_accounts_killswitch', 'ig_shopping_video_half_sheet', 'ig_android_ad_iab_qpl_kill_switch_universe', 'ig_android_interactions_direct_share_comment_universe', 'ig_android_vc_sounds_universe', 'ig_camera_android_cache_format_picker_children', 'ig_android_post_live_expanded_comments_view_universe', 'ig_android_always_use_server_recents', 'ig_android_qp_slot_cooldown_enabled_universe', 'ig_android_asset_picker_improvements', 'ig_android_direct_activator_cards', 'ig_android_pending_media_manager_init_fix_universe', 'ig_android_facebook_global_state_sync_frequency_universe', 'ig_android_network_trace_migration', 'ig_android_creation_new_post_title', 'ig_android_reverse_audio', 'ig_android_camera_gallery_upload_we_universe', 'ig_android_direct_inbox_async_diffing_universe', 'ig_android_live_save_to_camera_roll_limit_by_screen_size_universe', 'ig_android_profile_phone_autoconfirm_universe', 'ig_direct_stories_questions', 'ig_android_optic_surface_texture_cleanup', 'ig_android_vc_use_timestamp_normalizer', 'ig_android_post_recs_show_more_button_universe', 'ig_shopping_checkout_mvp_experiment', 'ig_android_direct_pending_media', 'ig_android_scroll_main_feed', 'ig_android_intialization_chunk_410', 'ig_android_story_ads_default_long_video_duration', 'ig_android_interactions_mention_search_presence_dot_universe', 'ig_android_stories_music_sticker_position', 'ig_android_direct_character_limit', 'ig_stories_music_themes', 'ig_android_nametag_save_experiment_universe', 'ig_android_media_rows_prepare_10_31', 'ig_android_fs_new_gallery', 'ig_android_stories_hide_retry_button_during_loading_launch', 'ig_android_remove_follow_all_fb_list', 'ig_android_biz_conversion_editable_profile_review_universe', 'ig_android_shopping_checkout_mvp', 'ig_android_local_info_page', 'ig_android_direct_log_badge_count' ])
__all__ = ['EXPERIMENTS'] experiments = ','.join(['ig_android_sticker_search_explorations', 'android_ig_camera_ar_asset_manager_improvements_universe', 'ig_android_stories_seen_state_serialization', 'ig_stories_photo_time_duration_universe', 'ig_android_bitmap_cache_executor_size', 'ig_android_stories_music_search_typeahead', 'ig_android_delayed_comments', 'ig_android_switch_back_option', 'ig_android_video_profiler_loom_traces', 'ig_android_paid_branded_content_rendering', 'ig_android_direct_app_reel_grid_search', 'ig_android_stories_no_inflation_on_app_start', 'ig_android_camera_sdk_check_gl_surface_r2', 'ig_promote_review_screen_title_universe', 'ig_android_direct_newer_single_line_composer_universe', 'ig_direct_holdout_h1_2019', 'ig_explore_2019_h1_destination_cover', 'ig_android_direct_stories_in_direct_inbox', 'ig_fb_graph_differentiation_no_fb_data', 'ig_android_recyclerview_binder_group_enabled_universe', 'ig_android_direct_share_sheet_custom_fast_scroller', 'ig_android_video_exoplayer_2', 'ig_android_shopping_channel_in_explore', 'ig_android_stories_music_filters', 'ig_android_2018_h1_hashtag_report_universe', 'ig_android_live_replay_highlights_universe', 'ig_android_hashtag_page_reduced_related_items', 'ig_android_live_titles_broadcaster_side_create_title_universe', 'ig_android_fbns_preload_direct_universe', 'ig_android_prefetch_carousels_on_swipe_universe', 'ig_camera_network_activity_logger', 'ig_camera_remove_display_rotation_cb_universe', 'ig_android_interactions_migrate_inline_composer_to_viewpoint_universe', 'ig_android_realtime_always_start_connection_on_condition_universe', 'ig_android_ad_leadgen_single_screen_universe', 'ig_android_enable_zero_rating', 'ig_android_import_page_post_after_biz_conversion', 'ig_camera_ar_effect_attribution_position', 'ig_android_vc_call_ended_cleanup_universe', 'ig_stories_engagement_holdout_2019_h1_universe', 'ig_android_story_import_intent', 'ig_direct_report_conversation_universe', 'ig_biz_graph_connection_universe', 'ig_android_codec_high_profile', 'ig_android_nametag', 'ig_android_sso_family_key_universe', 'ig_android_parse_direct_messages_bytes_universe', 'ig_hashtag_creation_universe', 'ig_android_gallery_order_by_date_taken', 'ig_android_igtv_reshare', 'ig_end_of_feed_universe', 'ig_android_share_others_post_reorder', 'ig_android_additional_contact_in_nux', 'ig_android_live_use_all_preview_sizes', 'ig_android_clarify_invite_options', 'ig_android_live_align_by_2_universe', 'ig_android_separate_network_executor', 'ig_android_realtime_manager_optimization', 'ig_android_auto_advance_su_unit_when_scrolled_off_screen', 'ig_android_network_cancellation', 'ig_android_media_as_sticker', 'ig_android_stories_video_prefetch_kb', 'ig_android_maintabfragment', 'ig_inventory_connections', 'ig_stories_injection_tool_enabled_universe', 'ig_android_stories_disable_highlights_media_preloading', 'ig_android_live_start_broadcast_optimized_universe', 'ig_android_stories_question_response_mutation_universe', 'ig_android_onetap_upsell_change_pwd', 'ig_nametag_data_collection', 'ig_android_disable_scroll_listeners', 'ig_android_persistent_nux', 'ig_android_igtv_audio_always_on', 'ig_android_enable_liger_preconnect_universe', 'ig_android_persistent_duplicate_notif_checker_user_based', 'ig_android_rate_limit_mediafeedviewablehelper', 'ig_android_search_remove_null_state_sections', 'ig_android_stories_viewer_drawable_cache_universe', 'ig_direct_android_reply_modal_universe', 'ig_android_biz_qp_suggest_page', 'ig_shopping_indicator_content_variations_android', 'ig_android_stories_reel_media_item_automatic_retry', 'ig_fb_notification_universe', 'ig_android_live_disable_speed_test_ui_timeout_universe', 'ig_android_direct_thread_scroll_perf_oncreate_universe', 'ig_android_low_data_mode_backup_2', 'ig_android_invite_xout_universe', 'ig_android_low_data_mode_backup_3', 'ig_android_low_data_mode_backup_4', 'ig_android_low_data_mode_backup_5', 'ig_android_video_abr_universe', 'ig_android_low_data_mode_backup_1', 'ig_android_signup_refactor_santity', 'ig_challenge_general_v2', 'ig_android_place_signature_universe', 'ig_android_hide_button_for_invite_facebook_friends', 'ig_android_business_promote_tooltip', 'ig_android_follow_requests_ui_improvements', 'ig_android_shopping_post_tagging_nux_universe', 'ig_android_stories_sensitivity_screen', 'ig_android_camera_arengine_shader_caching_universe', 'ig_android_insta_video_broadcaster_infra_perf', 'ig_android_direct_view_more_qe', 'ig_android_direct_visual_message_prefetch_count_universe', 'ig_camera_android_ar_effect_stories_deeplink', 'ig_android_client_side_delivery_universe', 'ig_android_stories_send_client_reels_on_tray_fetch_universe', 'ig_android_direct_inbox_background_view_models', 'ig_android_startup_thread_priority', 'ig_android_stories_viewer_responsiveness_universe', 'ig_android_live_use_rtc_upload_universe', 'ig_android_live_ama_viewer_universe', 'ig_android_business_id_conversion_universe', 'ig_smb_ads_holdout_2018_h2_universe', 'ig_android_modal_activity_no_animation_fix_universe', 'ig_android_camera_post_smile_low_end_universe', 'ig_android_live_realtime_comments_universe', 'ig_android_vc_in_app_notification_universe', 'ig_eof_caboose_universe', 'ig_android_new_one_tap_nux_universe', 'ig_android_igds_edit_profile_fields', 'ig_android_downgrade_viewport_exit_behavior', 'ig_android_mi_batch_upload_universe', 'ig_camera_android_segmentation_async_universe', 'ig_android_use_recyclerview_for_direct_search_universe', 'ig_android_live_comment_fetch_frequency_universe', 'ig_android_create_page_on_top_universe', 'ig_android_direct_log_badge_count_inconsistent', 'ig_android_stories_text_format_emphasis', 'ig_android_question_sticker_replied_state', 'ig_android_ad_connection_manager_universe', 'ig_android_image_upload_skip_queue_only_on_wifi', 'ig_android_ad_watchbrowse_carousel_universe', 'ig_android_interactions_show_verified_badge_for_preview_comments_universe', 'ig_stories_question_sticker_music_format_prompt', 'ig_android_activity_feed_row_click', 'ig_android_hide_crashing_newsfeed_story_t38131972', 'ig_android_video_upload_quality_qe1', 'ig_android_save_collaborative_collections', 'ig_android_location_attribution_text', 'ig_camera_android_profile_ar_notification_universe', 'coupon_price_test_boost_instagram_media_acquisition_universe', 'ig_android_video_outputsurface_handlerthread_universe', 'ig_android_country_code_fix_universe', 'ig_perf_android_holdout_2018_h1', 'ig_android_stories_music_overlay', 'ig_android_enable_lean_crash_reporting_universe', 'ig_android_resumable_downloads_logging_universe', 'ig_android_stories_default_rear_camera_universe', 'ig_android_low_latency_consumption_universe', 'ig_android_offline_mode_holdout', 'ig_android_foreground_location_collection', 'ig_android_stories_close_friends_disable_first_time_badge', 'ig_android_react_native_universe_kill_switch', 'ig_android_video_ta_universe', 'ig_android_media_rows_async_inflate', 'ig_android_stories_gallery_video_segmentation', 'ig_android_stories_in_feed_preview_notify_fix_universe', 'ig_android_video_rebind_force_keep_playing_fix', 'ig_android_direct_business_holdout', 'ig_android_xposting_upsell_directly_after_sharing_to_story', 'ig_android_gallery_high_quality_photo_thumbnails', 'ig_android_interactions_new_comment_like_pos_universe', 'ig_feed_core_experience_universe', 'ig_android_friends_sticker', 'ig_android_business_ix_universe', 'ig_android_suggested_highlights', 'ig_android_stories_posting_offline_ui', 'ig_android_stories_close_friends_rings_remove_green_universe', 'ig_android_canvas_tilt_to_pan_universe', 'ig_android_vc_background_call_toast_universe', 'ig_android_concurrent_cold_start_universe', 'ig_promote_default_destination_universe', 'mi_viewpoint_viewability_universe', 'ig_android_location_page_info_page_upsell', 'igds_android_listrow_migration_universe', 'ig_direct_reshare_sharesheet_ranking', 'ig_android_fb_sync_options_universe', 'ig_android_drawable_usage_logging_universe', 'ig_android_recommend_accounts_destination_routing_fix', 'ig_android_fix_prepare_direct_push', 'ig_direct_android_larger_media_reshare_style', 'ig_android_video_feed_universe', 'ig_android_building_aymf_universe', 'ig_android_internal_sticker_universe', 'ig_traffic_routing_universe', 'ig_android_search_normalization', 'ig_android_ad_watchmore_entry_point_universe', 'ig_camera_android_segmentation_enabled_universe', 'ig_android_igtv_always_show_browse_ui', 'ig_android_page_claim_deeplink_qe', 'ig_explore_2018_h2_account_rec_deduplication_android', 'ig_android_story_accidentally_click_investigation_universe', 'ig_android_shopping_pdp_hero_carousel', 'ig_android_clear_inflight_image_request', 'ig_android_show_su_in_other_users_follow_list', 'ig_android_stories_infeed_lower_threshold_launch', 'ig_android_main_feed_video_countdown_timer', 'instagram_interests_holdout', 'ig_android_continuous_video_capture', 'ig_android_category_search_edit_profile', 'ig_android_contact_invites_nux_universe', 'ig_android_settings_search_v2_universe', 'ig_android_video_upload_iframe_interval', 'ig_business_new_value_prop_universe', 'ig_android_power_metrics', 'ig_android_stories_collapse_seen_segments', 'ig_android_live_follow_from_comments_universe', 'ig_android_hashtag_discover_tab', 'ig_android_live_skip_live_encoder_pts_correction', 'ig_android_reel_zoom_universe', 'enable_creator_account_conversion_v0_universe', 'ig_android_test_not_signing_address_book_unlink_endpoint', 'ig_android_direct_tabbed_media_picker', 'ig_android_direct_mutation_manager_job_scheduler', 'ig_ei_option_setting_universe', 'ig_android_hashtag_related_items_over_logging', 'ig_android_livewith_liveswap_optimization_universe', 'ig_android_direct_new_intro_card', 'ig_camera_android_supported_capabilities_api_universe', 'ig_android_video_webrtc_textureview', 'ig_android_share_claim_page_universe', 'ig_direct_android_mentions_sender', 'ig_android_whats_app_contact_invite_universe', 'ig_android_video_scrubber_thumbnail_universe', 'ig_camera_ar_image_transform_library', 'ig_android_insights_creation_growth_universe', 'ig_android_igtv_refresh_tv_guide_interval', 'ig_android_stories_gif_sticker', 'ig_android_stories_music_broadcast_receiver', 'ig_android_fb_profile_integration_fbnc_universe', 'ig_android_low_data_mode', 'ig_fb_graph_differentiation_control', 'ig_android_show_create_content_pages_universe', 'ig_android_igsystrace_universe', 'ig_android_new_contact_invites_entry_points_universe', 'ig_android_ccu_jobscheduler_inner', 'ig_android_netego_scroll_perf', 'ig_android_fb_connect_follow_invite_flow', 'ig_android_invite_list_button_redesign_universe', 'ig_android_react_native_email_sms_settings_universe', 'ig_android_igtv_aspect_ratio_limits', 'ig_hero_player', 'ig_android_save_auto_sharing_to_fb_option_on_server', 'ig_android_live_presence_universe', 'ig_android_whitehat_options_universe', 'android_cameracore_preview_frame_listener2_ig_universe', 'ig_android_memory_manager', 'ig_account_recs_in_chaining', 'ig_explore_2018_finite_chain_android_universe', 'ig_android_tagging_video_preview', 'ig_android_feed_survey_viewpoint', 'ig_android_hashtag_search_suggestions', 'ig_android_profile_neue_infra_rollout_universe', 'ig_android_instacrash_detection', 'ig_android_interactions_add_search_bar_to_likes_list_universe', 'ig_android_vc_capture_universe', 'ig_nametag_local_ocr_universe', 'ig_branded_content_share_to_facebook', 'ig_android_direct_segmented_video', 'ig_android_search_page_v2', 'ig_android_stories_recently_captured_universe', 'ig_business_integrity_ipc_universe', 'ig_android_share_product_universe', 'ig_fb_graph_differentiation_top_k_fb_coefficients', 'ig_shopping_viewer_share_action', 'ig_android_direct_share_story_to_facebook', 'ig_android_business_attribute_sync', 'ig_android_video_time_to_live_cache_eviction', 'ig_android_location_feed_related_business', 'ig_android_view_and_likes_cta_universe', 'ig_live_holdout_h2_2018', 'ig_android_profile_memories_universe', 'ig_promote_budget_warning_view_universe', 'ig_android_redirect_to_web_on_oembed_fail_universe', 'ig_android_optic_new_focus_controller', 'ig_android_shortcuts', 'ig_android_search_hashtag_badges', 'ig_android_navigation_latency_logger', 'ig_android_direct_composer_avoid_hiding_thread_camera', 'ig_android_direct_remix_visual_messages', 'ig_android_custom_story_import_intent', 'ig_android_biz_new_choose_category', 'ig_android_view_info_universe', 'ig_android_camera_upsell_dialog', 'ig_android_business_ix_self_serve', 'ig_android_dead_code_detection', 'ig_android_ad_watchbrowse_universe', 'ig_android_pbia_proxy_profile_universe', 'ig_android_qp_kill_switch', 'ig_android_gap_rule_enforcer_universe', 'ig_android_direct_delete_or_block_from_message_requests', 'ig_android_direct_left_aligned_navigation_bar', 'ig_android_feed_load_more_viewpoint_universe', 'ig_android_stories_reshare_reply_msg', 'ig_android_one_tap_sharesheet_fb_extensions', 'ig_android_stories_feeback_message_composer_entry_point', 'ig_direct_holdout_h2_2018', 'ig_camera_android_facetracker_v12_universe', 'ig_android_camera_ar_effects_low_storage_universe', 'ig_camera_android_black_feed_sticker_fix_universe', 'ig_android_direct_media_forwarding', 'ig_android_camera_attribution_in_direct', 'ig_android_audience_control', 'ig_android_stories_cross_sharing_to_fb_holdout_universe', 'ig_android_enable_main_feed_reel_tray_preloading', 'ig_android_profile_neue_universe', 'ig_company_profile_holdout', 'ig_camera_android_areffect_photo_capture_universe', 'ig_rti_inapp_notifications_universe', 'ig_android_vc_join_timeout_universe', 'ig_android_feed_core_ads_2019_h1_holdout_universe', 'ig_android_interactions_composer_mention_search_universe', 'ig_android_igtv_save', 'ig_android_follower_following_whatsapp_invite_universe', 'ig_android_claim_location_page', 'ig_android_story_ads_2019_h1_holdout_universe', 'ig_android_3pspp', 'ig_android_cache_timespan_objects', 'ig_timestamp_public_test', 'ig_android_histogram_reporter', 'ig_android_feed_auto_share_to_facebook_dialog', 'ig_android_arengine_separate_prepare', 'ig_android_skip_button_content_on_connect_fb_universe', 'ig_android_igtv_profile_tab', 'ig_android_show_fb_name_universe', 'ig_android_interactions_inline_composer_extensions_universe', 'ig_camera_async_space_validation_for_ar', 'ig_android_pigeon_sampling', 'ig_story_camera_reverse_video_experiment', 'ig_android_live_use_timestamp_normalizer', 'ig_android_profile_lazy_load_carousel_media', 'ig_android_stories_question_sticker_music_format', 'ig_business_profile_18h1_holdout_universe', 'ig_pacing_overriding_universe', 'ig_android_direct_allow_multiline_composition', 'ig_android_interactions_emoji_extension_followup_universe', 'ig_android_story_ads_direct_cta_universe', 'ig_android_q3lc_transparency_control_settings', 'ig_stories_selfie_sticker', 'ig_android_sso_use_trustedapp_universe', 'ig_android_ad_increase_story_adpreload_priority_universe', 'ig_android_interests_netego_dismiss', 'ig_direct_giphy_gifs_rating', 'ig_android_shopping_catalogsearch', 'ig_android_stories_music_awareness_universe', 'ig_android_qcc_perf', 'ig_android_stories_reels_tray_media_count_check', 'ig_android_new_fb_page_selection', 'ig_android_facebook_crosspost', 'ig_android_internal_collab_save', 'ig_video_holdout_h2_2017', 'ig_android_story_sharing_universe', 'ig_promote_post_insights_entry_universe', 'ig_android_direct_thread_store_rewrite', 'ig_android_qp_clash_management_enabled_v4_universe', 'ig_branded_content_paid_branded_content', 'ig_android_large_heap_override', 'ig_android_live_subscribe_user_level_universe', 'ig_android_igtv_creation_flow', 'ig_android_video_call_finish_universe', 'ig_android_direct_mqtt_send', 'ig_android_do_not_fetch_follow_requests_on_success', 'ig_android_remove_push_notifications', 'ig_android_vc_directapp_integration_universe', 'ig_android_explore_discover_people_entry_point_universe', 'ig_android_sonar_prober_universe', 'ig_android_live_bg_download_face_filter_assets_universe', 'ig_android_gif_framerate_throttling', 'ig_android_live_webrtc_livewith_params', 'ig_android_vc_always_start_connection_on_condition_universe', 'ig_camera_worldtracking_set_scale_by_arclass', 'ig_android_direct_inbox_typing_indicator', 'ig_android_stories_music_lyrics_scrubber', 'ig_feed_experience', 'ig_android_direct_new_thread_local_search_fix_universe', 'ig_android_appstate_logger', 'ig_promote_insights_video_views_universe', 'ig_android_dismiss_recent_searches', 'ig_android_downloadable_igrtc_module', 'ig_android_fb_link_ui_polish_universe', 'ig_stories_music_sticker', 'ig_android_device_capability_framework', 'ig_scroll_by_two_cards_for_suggested_invite_universe', 'ig_android_stories_helium_balloon_badging_universe', 'ig_android_business_remove_unowned_fb_pages', 'ig_android_stories_combined_asset_search', 'ig_stories_allow_camera_actions_while_recording', 'ig_android_analytics_mark_events_as_offscreen', 'ig_android_optic_feature_testing', 'ig_android_camera_universe', 'ig_android_optic_photo_cropping_fixes', 'ig_camera_regiontracking_use_similarity_tracker_for_scaling', 'ig_android_refreshable_list_view_check_spring', 'felix_android_video_quality', 'ig_android_biz_endpoint_switch', 'ig_android_direct_continuous_capture', 'ig_android_comments_direct_reply_to_author', 'ig_android_vc_webrtc_params', 'ig_android_claim_or_connect_page_on_xpost', 'ig_android_anr', 'ig_android_optic_new_architecture', 'ig_android_stories_viewer_as_modal_high_end_launch', 'ig_android_hashtag_follow_chaining_over_logging', 'ig_new_eof_demarcator_universe', 'ig_android_push_notifications_settings_redesign_universe', 'ig_hashtag_display_universe', 'ig_fbns_push', 'coupon_price_test_ad4ad_instagram_resurrection_universe', 'ig_android_live_rendering_looper_universe', 'ig_android_mqtt_cookie_auth_memcache_universe', 'ig_android_live_end_redirect_universe', 'ig_android_direct_mutation_manager_media_2', 'ig_android_ccu_jobscheduler_outer', 'ig_smb_ads_holdout_2019_h1_universe', 'ig_fb_graph_differentiation', 'ig_android_stories_share_extension_video_segmentation', 'ig_android_interactions_realtime_typing_indicator_and_live_comments', 'ig_android_stories_create_flow_favorites_tooltip', 'ig_android_live_nerd_stats_universe', 'ig_android_universe_video_production', 'ig_android_hide_reset_with_fb_universe', 'ig_android_reactive_feed_like_count', 'ig_android_stories_music_precapture', 'ig_android_vc_service_crash_fix_universe', 'ig_android_shopping_product_overlay', 'ig_android_direct_double_tap_to_like_hearts', 'ig_camera_android_api_rewrite_universe', 'ig_android_growth_fci_team_holdout_universe', 'ig_android_stories_gallery_recyclerview_kit_universe', 'ig_android_story_ads_instant_sub_impression_universe', 'ig_business_signup_biz_id_universe', 'ig_android_save_all', 'ig_android_main_feed_fragment_scroll_timing_histogram_uni', 'ig_android_ttcp_improvements', 'ig_android_camera_ar_platform_profile_universe', 'ig_explore_2018_topic_channel_navigation_android_universe', 'ig_android_live_fault_tolerance_universe', 'ig_android_stories_viewer_tall_android_cap_media_universe', 'native_contact_invites_universe', 'ig_android_dash_script', 'ig_android_insights_media_hashtag_insight_universe', 'ig_camera_fast_tti_universe', 'ig_android_stories_whatsapp_share', 'ig_android_inappnotification_rootactivity_tweak', 'ig_android_render_thread_memory_leak_holdout', 'ig_android_private_highlights_universe', 'ig_android_rate_limit_feed_video_module', 'ig_android_one_tap_fbshare', 'ig_share_to_story_toggle_include_shopping_product', 'ig_android_direct_speed_cam_univ', 'ig_payments_billing_address', 'ig_android_ufiv3_holdout', 'ig_android_new_camera_design_container_animations_universe', 'ig_android_livewith_guest_adaptive_camera_universe', 'ig_android_direct_fix_playing_invalid_visual_message', 'ig_shopping_viewer_intent_actions', 'ig_promote_add_payment_navigation_universe', 'ig_android_optic_disable_post_capture_preview_restart', 'ig_android_main_feed_refresh_style_universe', 'ig_android_live_analytics', 'ig_android_story_ads_performance_universe_1', 'ig_android_stories_viewer_modal_activity', 'ig_android_story_ads_performance_universe_3', 'ig_android_story_ads_performance_universe_4', 'ig_android_feed_seen_state_with_view_info', 'ig_android_ads_profile_cta_feed_universe', 'ig_android_vc_cowatch_universe', 'ig_android_optic_thread_priorities', 'ig_android_igtv_chaining', 'ig_android_live_qa_viewer_v1_universe', 'ig_android_stories_show_story_not_available_error_msg', 'ig_android_inline_notifications_recommended_user', 'ig_shopping_post_insights', 'ig_android_webrtc_streamid_salt_universe', 'ig_android_wellbeing_timeinapp_v1_universe', 'ig_android_profile_cta_v3', 'ig_android_video_qp_logger_universe', 'ig_android_cache_video_autoplay_checker', 'ig_android_live_suggested_live_expansion', 'ig_android_vc_start_from_direct_inbox_universe', 'ig_perf_android_holdout', 'ig_fb_graph_differentiation_only_fb_candidates', 'ig_android_expired_build_lockout', 'ig_promote_lotus_universe', 'ig_android_video_streaming_upload_universe', 'ig_android_optic_fast_preview_restart_listener', 'ig_interactions_h1_2019_team_holdout_universe', 'ig_android_ad_async_ads_universe', 'ig_camera_android_effect_info_bottom_sheet_universe', 'ig_android_stories_feedback_badging_universe', 'ig_android_sorting_on_self_following_universe', 'ig_android_edit_location_page_info', 'ig_promote_are_you_sure_universe', 'ig_android_interactions_feed_label_below_comments_refactor_universe', 'ig_android_camera_platform_effect_share_universe', 'ig_stories_engagement_swipe_animation_simple_universe', 'ig_login_activity', 'ig_android_direct_quick_replies', 'ig_android_fbns_optimization_universe', 'ig_android_stories_alignment_guides_universe', 'ig_android_rn_ads_manager_universe', 'ig_explore_2018_post_chaining_account_recs_dedupe_universe', 'ig_android_click_to_direct_story_reaction_universe', 'ig_internal_research_settings', 'ig_android_stories_video_seeking_audio_bug_fix', 'ig_android_insights_holdout', 'ig_android_swipe_up_area_universe', 'ig_android_rendering_controls', 'ig_android_feed_post_sticker', 'ig_android_inline_editing_local_prefill', 'ig_android_hybrid_bitmap_v3_prenougat', 'ig_android_cronet_stack', 'ig_android_enable_igrtc_module', 'ig_android_scroll_audio_priority', 'ig_android_shopping_product_appeals_universe', 'ig_android_fb_follow_server_linkage_universe', 'ig_android_fblocation_universe', 'ig_android_direct_updated_story_reference_ui', 'ig_camera_holdout_h1_2018_product', 'live_with_request_to_join_button_universe', 'ig_android_music_continuous_capture', 'ig_android_churned_find_friends_redirect_to_discover_people', 'ig_android_main_feed_new_posts_indicator_universe', 'ig_vp9_hd_blacklist', 'ig_ios_queue_time_qpl_universe', 'ig_android_split_contacts_list', 'ig_android_connect_owned_page_universe', 'ig_android_felix_prefetch_thumbnail_sprite_sheet', 'ig_android_multi_dex_class_loader_v2', 'ig_android_watch_and_more_redesign', 'igtv_feed_previews', 'ig_android_qp_batch_fetch_caching_enabled_v1_universe', 'ig_android_profile_edit_phone_universe', 'ig_android_vc_renderer_type_universe', 'ig_android_local_2018_h2_holdout', 'ig_android_purx_native_checkout_universe', 'ig_android_vc_disable_lock_screen_content_access_universe', 'ig_android_business_transaction_in_stories_creator', 'android_cameracore_ard_ig_integration', 'ig_video_experimental_encoding_consumption_universe', 'ig_android_iab_autofill', 'ig_android_location_page_intent_survey', 'ig_camera_android_segmentation_qe2_universe', 'ig_android_image_mem_cache_strong_ref_universe', 'ig_android_business_promote_refresh_fb_access_token_universe', 'ig_android_stories_samsung_sharing_integration', 'ig_android_hashtag_header_display', 'ig_discovery_holdout_2019_h1_universe', 'ig_android_user_url_deeplink_fbpage_endpoint', 'ig_android_direct_mutation_manager_handler_thread_universe', 'ig_branded_content_show_settings_universe', 'ig_android_ad_holdout_watchandmore_universe', 'ig_android_direct_thread_green_dot_presence_universe', 'ig_android_camera_new_post_smile_universe', 'ig_android_shopping_signup_redesign_universe', 'ig_android_vc_missed_call_notification_action_reply', 'allow_publish_page_universe', 'ig_android_experimental_onetap_dialogs_universe', 'ig_promote_ppe_v2_universe', 'android_cameracore_ig_gl_oom_fixes_universe', 'ig_android_multi_capture_camera', 'ig_android_fb_family_navigation_badging_user', 'ig_android_follow_requests_copy_improvements', 'ig_media_geo_gating', 'ig_android_comments_notifications_universe', 'ig_android_render_output_surface_timeout_universe', 'ig_android_drop_frame_check_paused', 'ig_direct_raven_sharesheet_ranking', 'ig_android_realtime_mqtt_logging', 'ig_family_bridges_holdout_universe', 'ig_android_rainbow_hashtags', 'ig_android_ad_watchinstall_universe', 'ig_android_ad_account_top_followers_universe', 'ig_android_betamap_universe', 'ig_android_video_ssim_report_universe', 'ig_android_cache_network_util', 'ig_android_leak_detector_upload_universe', 'ig_android_carousel_prefetch_bumping', 'ig_fbns_preload_default', 'ig_android_inline_appeal_show_new_content', 'ig_fbns_kill_switch', 'ig_hashtag_following_holdout_universe', 'ig_android_show_weekly_ci_upsell_limit', 'ig_android_direct_reel_options_entry_point_2_universe', 'enable_creator_account_conversion_v0_animation', 'ig_android_http_service_same_thread', 'ig_camera_holdout_h1_2018_performance', 'ig_android_direct_mutation_manager_cancel_fix_universe', 'ig_music_dash', 'ig_android_fb_url_universe', 'ig_android_reel_raven_video_segmented_upload_universe', 'ig_android_promote_native_migration_universe', 'ig_camera_android_badge_face_effects_universe', 'ig_android_hybrid_bitmap_v3_nougat', 'ig_android_multi_author_story_reshare_universe', 'ig_android_vc_camera_zoom_universe', 'ig_android_enable_request_compression_ccu', 'ig_android_video_controls_universe', 'ig_android_logging_metric_universe_v2', 'ig_android_xposting_newly_fbc_people', 'ig_android_visualcomposer_inapp_notification_universe', 'ig_android_contact_point_upload_rate_limit_killswitch', 'ig_android_webrtc_encoder_factory_universe', 'ig_android_search_impression_logging', 'ig_android_handle_username_in_media_urls_universe', 'ig_android_sso_kototoro_app_universe', 'ig_android_mi_holdout_h1_2019', 'ig_android_igtv_autoplay_on_prepare', 'ig_file_based_session_handler_2_universe', 'ig_branded_content_tagging_upsell', 'ig_shopping_insights_parity_universe_android', 'ig_android_live_ama_universe', 'ig_android_external_gallery_import_affordance', 'ig_android_updatelistview_on_loadmore', 'ig_android_optic_new_zoom_controller', 'ig_android_hide_type_mode_camera_button', 'ig_android_photos_qpl', 'ig_android_reel_impresssion_cache_key_qe_universe', 'ig_android_show_profile_picture_upsell_in_reel_universe', 'ig_android_live_viewer_tap_to_hide_chrome_universe', 'ig_discovery_holdout_universe', 'ig_android_direct_import_google_photos2', 'ig_android_stories_tray_in_viewer', 'ig_android_request_verification_badge', 'ig_android_direct_unlimited_raven_replays_inthreadsession_fix', 'ig_android_netgo_cta', 'ig_android_viewpoint_netego_universe', 'ig_android_stories_separate_overlay_creation', 'ig_android_iris_improvements', 'ig_android_biz_conversion_naming_test', 'ig_android_fci_empty_feed_friend_search', 'ig_android_hashtag_page_support_places_tab', 'ig_camera_android_ar_platform_universe', 'ig_android_stories_viewer_prefetch_improvements', 'ig_android_optic_camera_warmup', 'ig_android_place_search_profile_image', 'ig_android_interactions_in_feed_comment_view_universe', 'ig_android_fb_sharing_shortcut', 'ig_android_oreo_hardware_bitmap', 'ig_android_analytics_diagnostics_universe', 'ig_android_insights_creative_tutorials_universe', 'ig_android_vc_universe', 'ig_android_profile_unified_follow_view', 'ig_android_collect_os_usage_events_universe', 'ig_android_shopping_nux_timing_universe', 'ig_android_fbpage_on_profile_side_tray', 'ig_android_native_logcat_interceptor', 'ig_android_direct_thread_content_picker', 'ig_android_notif_improvement_universe', 'ig_face_effect_ranking', 'ig_android_shopping_more_from_business', 'ig_feed_content_universe', 'ig_android_hacked_account_reporting', 'ig_android_disk_usage_logging_universe', 'ig_android_ad_redesign_iab_universe', 'ig_android_banyan_migration', 'ig_android_profile_event_leak_holdout', 'ig_android_stories_loading_automatic_retry', 'ig_android_gqls_typing_indicator', 'ag_family_bridges_2018_h2_holdout', 'ig_promote_net_promoter_score_universe', 'ig_android_direct_last_seen_message_indicator', 'ig_android_biz_conversion_suggest_biz_nux', 'ig_android_log_mediacodec_info', 'ig_android_vc_participant_state_callee_universe', 'ig_camera_android_boomerang_attribution_universe', 'ig_android_stories_weblink_creation', 'ig_android_horizontal_swipe_lfd_logging', 'ig_profile_company_holdout_h2_2018', 'ig_android_ads_manager_pause_resume_ads_universe', 'ig_promote_fix_expired_fb_accesstoken_android_universe', 'ig_android_stories_media_seen_batching_universe', 'ig_android_interactions_nav_to_permalink_followup_universe', 'ig_android_live_titles_viewer_side_view_title_universe', 'ig_android_direct_mark_as_read_notif_action', 'ig_android_edit_highlight_redesign', 'ig_android_direct_mutation_manager_backoff_universe', 'ig_android_interactions_comment_like_for_all_feed_universe', 'ig_android_mi_skip_analytic_event_pool_universe', 'ig_android_fbc_upsell_on_dp_first_load', 'ig_android_audio_ingestion_params', 'ig_android_video_call_participant_state_caller_universe', 'ig_fbns_shared', 'ig_feed_engagement_holdout_2018_h1', 'ig_camera_android_bg_processor', 'ig_android_optic_new_features_implementation', 'ig_android_stories_reel_interactive_tap_target_size', 'ig_android_video_live_trace_universe', 'ig_android_igtv_browse_with_pip_v2', 'ig_android_interactive_listview_during_refresh', 'ig_android_igtv_feed_banner_universe', 'ig_android_unfollow_from_main_feed_v2', 'ig_android_self_story_setting_option_in_menu', 'ig_android_ad_watchlead_universe', 'ufi_share', 'ig_android_live_special_codec_size_list', 'ig_android_live_qa_broadcaster_v1_universe', 'ig_android_hide_stories_viewer_list_universe', 'ig_android_direct_albums', 'ig_android_business_transaction_in_stories_consumer', 'ig_android_scroll_stories_tray_to_front_when_stories_ready', 'ig_android_direct_thread_composer', 'instagram_android_stories_sticker_tray_redesign', 'ig_camera_android_superzoom_icon_position_universe', 'ig_android_business_cross_post_with_biz_id_infra', 'ig_android_photo_invites', 'ig_android_reel_tray_item_impression_logging_viewpoint', 'ig_account_identity_2018_h2_lockdown_phone_global_holdout', 'ig_android_high_res_gif_stickers', 'ig_close_friends_v4', 'ig_fb_cross_posting_sender_side_holdout', 'ig_android_ads_history_universe', 'ig_android_comments_composer_newline_universe', 'ig_rtc_use_dtls_srtp', 'ig_promote_media_picker_universe', 'ig_android_live_start_live_button_universe', 'ig_android_vc_ongoing_call_notification_universe', 'ig_android_rate_limit_feed_item_viewable_helper', 'ig_android_bitmap_attribution_check', 'ig_android_ig_to_fb_sync_universe', 'ig_android_reel_viewer_data_buffer_size', 'ig_two_fac_totp_enable', 'ig_android_vc_missed_call_notification_action_call_back', 'ig_android_stories_landscape_mode', 'ig_android_ad_view_ads_native_universe', 'ig_android_igtv_whitelisted_for_web', 'ig_android_global_prefetch_scheduler', 'ig_android_live_thread_delay_for_mute_universe', 'ig_close_friends_v4_global', 'ig_android_share_publish_page_universe', 'ig_android_new_camera_design_universe', 'ig_direct_max_participants', 'ig_promote_hide_local_awareness_universe', 'ig_android_graphql_survey_new_proxy_universe', 'ig_android_fs_creation_flow_tweaks', 'ig_android_ad_watchbrowse_cta_universe', 'ig_android_camera_new_tray_behavior_universe', 'ig_android_direct_expiring_media_loading_errors', 'ig_android_show_fbunlink_button_based_on_server_data', 'ig_android_downloadable_vp8_module', 'ig_android_igtv_feed_trailer', 'ig_android_fb_profile_integration_universe', 'ig_android_profile_private_banner', 'ig_camera_android_focus_attribution_universe', 'ig_android_rage_shake_whitelist', 'ig_android_su_follow_back', 'ig_android_prefetch_notification_data', 'ig_android_webrtc_icerestart_on_failure_universe', 'ig_android_vpvd_impressions_universe', 'ig_android_payload_based_scheduling', 'ig_android_grid_cell_count', 'ig_android_new_highlight_button_text', 'ig_android_direct_search_bar_redesign', 'ig_android_hashtag_row_preparer', 'ig_android_ad_pbia_header_click_universe', 'ig_android_direct_visual_viewer_ppr_fix', 'ig_background_prefetch', 'ig_camera_android_focus_in_post_universe', 'ig_android_time_spent_dashboard', 'ig_android_direct_vm_activity_sheet', 'ig_promote_political_ads_universe', 'ig_android_stories_auto_retry_reels_media_and_segments', 'ig_android_recommend_accounts_killswitch', 'ig_shopping_video_half_sheet', 'ig_android_ad_iab_qpl_kill_switch_universe', 'ig_android_interactions_direct_share_comment_universe', 'ig_android_vc_sounds_universe', 'ig_camera_android_cache_format_picker_children', 'ig_android_post_live_expanded_comments_view_universe', 'ig_android_always_use_server_recents', 'ig_android_qp_slot_cooldown_enabled_universe', 'ig_android_asset_picker_improvements', 'ig_android_direct_activator_cards', 'ig_android_pending_media_manager_init_fix_universe', 'ig_android_facebook_global_state_sync_frequency_universe', 'ig_android_network_trace_migration', 'ig_android_creation_new_post_title', 'ig_android_reverse_audio', 'ig_android_camera_gallery_upload_we_universe', 'ig_android_direct_inbox_async_diffing_universe', 'ig_android_live_save_to_camera_roll_limit_by_screen_size_universe', 'ig_android_profile_phone_autoconfirm_universe', 'ig_direct_stories_questions', 'ig_android_optic_surface_texture_cleanup', 'ig_android_vc_use_timestamp_normalizer', 'ig_android_post_recs_show_more_button_universe', 'ig_shopping_checkout_mvp_experiment', 'ig_android_direct_pending_media', 'ig_android_scroll_main_feed', 'ig_android_intialization_chunk_410', 'ig_android_story_ads_default_long_video_duration', 'ig_android_interactions_mention_search_presence_dot_universe', 'ig_android_stories_music_sticker_position', 'ig_android_direct_character_limit', 'ig_stories_music_themes', 'ig_android_nametag_save_experiment_universe', 'ig_android_media_rows_prepare_10_31', 'ig_android_fs_new_gallery', 'ig_android_stories_hide_retry_button_during_loading_launch', 'ig_android_remove_follow_all_fb_list', 'ig_android_biz_conversion_editable_profile_review_universe', 'ig_android_shopping_checkout_mvp', 'ig_android_local_info_page', 'ig_android_direct_log_badge_count'])
"jq_eval rule" load("@bazel_skylib//lib:collections.bzl", "collections") load("@bazel_skylib//lib:shell.bzl", "shell") _DOC = "Defines a jq eval execution." _ATTRS = { "srcs": attr.label_list( doc = "Files to apply filter to.", allow_files = True, ), "filter": attr.string( doc = "Filter to evaluate", ), "filter_file": attr.label( doc = "Filter file to evaluate", allow_single_file = True, ), "indent": attr.int( doc = "Use the given number of spaces (no more than 7) for indentation", default = 2, ), "seq": attr.bool( doc = "Use the application/json-seq MIME type scheme for separating JSON texts in jq's input and output", ), "stream": attr.bool( doc = "Parse the input in streaming fashion, outputting arrays of path and leaf values", ), "slurp": attr.bool( doc = "Instead of running the filter for each JSON object in the input, read the entire input stream into a large array and run the filter just once", ), "raw_input": attr.bool( doc = "Don't parse the input as JSON. Instead, each line of text is passed to the filter as a string", ), "compact_output": attr.bool( doc = "More compact output by putting each JSON object on a single line", ), "tab": attr.bool( doc = "Use a tab for each indentation level instead of two spaces", ), "sort_keys": attr.bool( doc = "Output the fields of each object with the keys in sorted order", ), "raw_output": attr.bool( doc = "With this option, if the filter's result is a string then it will be written directly to standard output rather than being formatted as a JSON string with quotes", ), "join_output": attr.bool( doc = "Like raw_output but jq won't print a newline after each output", ), "nul_output": attr.bool( doc = "Like raw_output but jq will print NUL instead of newline after each output", ), "exit_status": attr.bool( doc = "Sets the exit status of jq to 0 if the last output values was neither false nor null, 1 if the last output value was either false or null, or 4 if no valid result was ever produced", ), "args": attr.string_dict( doc = "Passes values to the jq program as a predefined variables", ), "argsjson": attr.string_dict( doc = "Passes JSON-encoded values to the jq program as a predefined variables", ), } def _impl(ctx): out = ctx.actions.declare_file(ctx.label.name + ".json") command = [ctx.var["JQ_BIN"]] if ctx.attr.filter: command.append(shell.quote(ctx.attr.filter)) for f in ctx.files.srcs: command.append(f.path) if ctx.attr.seq: command.append("--seq") if ctx.attr.stream: command.append("--stream") if ctx.attr.slurp: command.append("--slurp") if ctx.attr.raw_input: command.append("--raw-input") if ctx.attr.compact_output: command.append("--compact-output") if ctx.attr.tab: command.append("--tab") if ctx.attr.sort_keys: command.append("--sort-keys") if ctx.attr.raw_output: command.append("--raw-output") if ctx.attr.join_output: command.append("--join-output") if ctx.attr.nul_output: command.append("--nul-output") if ctx.attr.exit_status: command.append("--exit-status") for [name, value] in ctx.attr.args: command.append("--arg {} {}", shell.quote(name), shell.quote(value)) for [name, value] in ctx.attr.argsjson: command.append("--argjson {} {}", shell.quote(name), shell.quote(value)) command.append("--indent {}".format(ctx.attr.indent)) ctx.actions.run_shell( inputs = ctx.files.srcs, outputs = [out], arguments = [out.path], tools = ctx.toolchains["@slamdev_rules_jq//jq:toolchain_type"].default.files, command = " ".join(command) + " > $1", mnemonic = "JQ", progress_message = "JQ to %{output}", ) return [DefaultInfo(files = depset([out]), runfiles = ctx.runfiles(files = [out]))] eval = rule( doc = _DOC, implementation = _impl, attrs = _ATTRS, provides = [DefaultInfo], toolchains = ["@slamdev_rules_jq//jq:toolchain_type"], )
"""jq_eval rule""" load('@bazel_skylib//lib:collections.bzl', 'collections') load('@bazel_skylib//lib:shell.bzl', 'shell') _doc = 'Defines a jq eval execution.' _attrs = {'srcs': attr.label_list(doc='Files to apply filter to.', allow_files=True), 'filter': attr.string(doc='Filter to evaluate'), 'filter_file': attr.label(doc='Filter file to evaluate', allow_single_file=True), 'indent': attr.int(doc='Use the given number of spaces (no more than 7) for indentation', default=2), 'seq': attr.bool(doc="Use the application/json-seq MIME type scheme for separating JSON texts in jq's input and output"), 'stream': attr.bool(doc='Parse the input in streaming fashion, outputting arrays of path and leaf values'), 'slurp': attr.bool(doc='Instead of running the filter for each JSON object in the input, read the entire input stream into a large array and run the filter just once'), 'raw_input': attr.bool(doc="Don't parse the input as JSON. Instead, each line of text is passed to the filter as a string"), 'compact_output': attr.bool(doc='More compact output by putting each JSON object on a single line'), 'tab': attr.bool(doc='Use a tab for each indentation level instead of two spaces'), 'sort_keys': attr.bool(doc='Output the fields of each object with the keys in sorted order'), 'raw_output': attr.bool(doc="With this option, if the filter's result is a string then it will be written directly to standard output rather than being formatted as a JSON string with quotes"), 'join_output': attr.bool(doc="Like raw_output but jq won't print a newline after each output"), 'nul_output': attr.bool(doc='Like raw_output but jq will print NUL instead of newline after each output'), 'exit_status': attr.bool(doc='Sets the exit status of jq to 0 if the last output values was neither false nor null, 1 if the last output value was either false or null, or 4 if no valid result was ever produced'), 'args': attr.string_dict(doc='Passes values to the jq program as a predefined variables'), 'argsjson': attr.string_dict(doc='Passes JSON-encoded values to the jq program as a predefined variables')} def _impl(ctx): out = ctx.actions.declare_file(ctx.label.name + '.json') command = [ctx.var['JQ_BIN']] if ctx.attr.filter: command.append(shell.quote(ctx.attr.filter)) for f in ctx.files.srcs: command.append(f.path) if ctx.attr.seq: command.append('--seq') if ctx.attr.stream: command.append('--stream') if ctx.attr.slurp: command.append('--slurp') if ctx.attr.raw_input: command.append('--raw-input') if ctx.attr.compact_output: command.append('--compact-output') if ctx.attr.tab: command.append('--tab') if ctx.attr.sort_keys: command.append('--sort-keys') if ctx.attr.raw_output: command.append('--raw-output') if ctx.attr.join_output: command.append('--join-output') if ctx.attr.nul_output: command.append('--nul-output') if ctx.attr.exit_status: command.append('--exit-status') for [name, value] in ctx.attr.args: command.append('--arg {} {}', shell.quote(name), shell.quote(value)) for [name, value] in ctx.attr.argsjson: command.append('--argjson {} {}', shell.quote(name), shell.quote(value)) command.append('--indent {}'.format(ctx.attr.indent)) ctx.actions.run_shell(inputs=ctx.files.srcs, outputs=[out], arguments=[out.path], tools=ctx.toolchains['@slamdev_rules_jq//jq:toolchain_type'].default.files, command=' '.join(command) + ' > $1', mnemonic='JQ', progress_message='JQ to %{output}') return [default_info(files=depset([out]), runfiles=ctx.runfiles(files=[out]))] eval = rule(doc=_DOC, implementation=_impl, attrs=_ATTRS, provides=[DefaultInfo], toolchains=['@slamdev_rules_jq//jq:toolchain_type'])
# encoding: utf-8 # Copyright 2008 California Institute of Technology. ALL RIGHTS # RESERVED. U.S. Government Sponsorship acknowledged. ''' Unit, functional, and other tests. '''
""" Unit, functional, and other tests. """
#function to get a string made of its first three characters of a specified string. # If the length of the string is less than 3 then return the original string. def first_three(str): return str[:3] if len(str) > 3 else str print(first_three('ipy')) print(first_three('python')) print(first_three('py'))
def first_three(str): return str[:3] if len(str) > 3 else str print(first_three('ipy')) print(first_three('python')) print(first_three('py'))
def factorial_digit_sum(num): fact_total = 1 while num != 1: fact_total *= num num -= 1 fact_total_str = str(fact_total) total_list = [] sum_total = 0 for i in fact_total_str: total_list.append(i) for i in total_list: sum_total += int(i) return sum_total print(factorial_digit_sum(100))
def factorial_digit_sum(num): fact_total = 1 while num != 1: fact_total *= num num -= 1 fact_total_str = str(fact_total) total_list = [] sum_total = 0 for i in fact_total_str: total_list.append(i) for i in total_list: sum_total += int(i) return sum_total print(factorial_digit_sum(100))
# This is an input class. Do not edit. class LinkedList: def __init__(self, value): self.value = value self.next = None # O(n) time | O(n) space - where n is the number of nodes in the Linked List def nodeSwap(head): if head is None or head.next is None: return head nextNode = head.next head.next = nodeSwap(head.next.next) nextNode.next = head return nextNode
class Linkedlist: def __init__(self, value): self.value = value self.next = None def node_swap(head): if head is None or head.next is None: return head next_node = head.next head.next = node_swap(head.next.next) nextNode.next = head return nextNode
arrow_array = [ [[0,1,0], [1,1,1], [0,1,0], [0,1,0], [0,1,0]] ] print(arrow_array[0][0][0])
arrow_array = [[[0, 1, 0], [1, 1, 1], [0, 1, 0], [0, 1, 0], [0, 1, 0]]] print(arrow_array[0][0][0])
''' Vibrator ======= The :class:`Vibrator` provides access to public methods to use vibrator of your device. .. note:: On Android your app needs the VIBRATE permission to access the vibrator. Simple Examples --------------- To vibrate your device:: >>> from plyer import vibrator >>> time=2 >>> vibrator.vibrate(time=time) To set a pattern:: >>> vibrator.pattern(pattern=pattern, repeat=repeat) To know whether vibrator exists or not:: >>> vibrator.exists() To cancel vibration:: >>> vibrator.cancel() ''' class Vibrator(object): '''Vibration facade. ''' def vibrate(self, time=1): '''Ask the vibrator to vibrate for the given period. :param time: Time to vibrate for, in seconds. Default is 1. ''' self._vibrate(time=time) def _vibrate(self, **kwargs): raise NotImplementedError() def pattern(self, pattern=(0, 1), repeat=-1): '''Ask the vibrator to vibrate with the given pattern, with an optional repeat. :param pattern: Pattern to vibrate with. Should be a list of times in seconds. The first number is how long to wait before vibrating, and subsequent numbers are times to vibrate and not vibrate alternately. Defaults to ``[0, 1]``. :param repeat: Index at which to repeat the pattern. When the vibration pattern reaches this index, it will start again from the beginning. Defaults to ``-1``, which means no repeat. ''' self._pattern(pattern=pattern, repeat=repeat) def _pattern(self, **kwargs): raise NotImplementedError() def exists(self): '''Check if the device has a vibrator. Returns True or False. ''' return self._exists() def _exists(self, **kwargs): raise NotImplementedError() def cancel(self): '''Cancels any current vibration, and stops the vibrator.''' self._cancel() def _cancel(self, **kwargs): raise NotImplementedError()
""" Vibrator ======= The :class:`Vibrator` provides access to public methods to use vibrator of your device. .. note:: On Android your app needs the VIBRATE permission to access the vibrator. Simple Examples --------------- To vibrate your device:: >>> from plyer import vibrator >>> time=2 >>> vibrator.vibrate(time=time) To set a pattern:: >>> vibrator.pattern(pattern=pattern, repeat=repeat) To know whether vibrator exists or not:: >>> vibrator.exists() To cancel vibration:: >>> vibrator.cancel() """ class Vibrator(object): """Vibration facade. """ def vibrate(self, time=1): """Ask the vibrator to vibrate for the given period. :param time: Time to vibrate for, in seconds. Default is 1. """ self._vibrate(time=time) def _vibrate(self, **kwargs): raise not_implemented_error() def pattern(self, pattern=(0, 1), repeat=-1): """Ask the vibrator to vibrate with the given pattern, with an optional repeat. :param pattern: Pattern to vibrate with. Should be a list of times in seconds. The first number is how long to wait before vibrating, and subsequent numbers are times to vibrate and not vibrate alternately. Defaults to ``[0, 1]``. :param repeat: Index at which to repeat the pattern. When the vibration pattern reaches this index, it will start again from the beginning. Defaults to ``-1``, which means no repeat. """ self._pattern(pattern=pattern, repeat=repeat) def _pattern(self, **kwargs): raise not_implemented_error() def exists(self): """Check if the device has a vibrator. Returns True or False. """ return self._exists() def _exists(self, **kwargs): raise not_implemented_error() def cancel(self): """Cancels any current vibration, and stops the vibrator.""" self._cancel() def _cancel(self, **kwargs): raise not_implemented_error()
# # PySNMP MIB module ONEACCESS-SYS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ONEACCESS-SYS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:34:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint") oacExpIMSystem, oacMIBModules = mibBuilder.importSymbols("ONEACCESS-GLOBAL-REG", "oacExpIMSystem", "oacMIBModules") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") ModuleIdentity, TimeTicks, ObjectIdentity, Unsigned32, MibIdentifier, iso, Counter64, Counter32, Integer32, NotificationType, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "TimeTicks", "ObjectIdentity", "Unsigned32", "MibIdentifier", "iso", "Counter64", "Counter32", "Integer32", "NotificationType", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "IpAddress") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") oacSysMIBModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 13191, 1, 100, 671)) oacSysMIBModule.setRevisions(('2014-05-05 00:01', '2011-06-15 00:00', '2010-12-14 00:01', '2010-08-11 10:00', '2010-07-08 10:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: oacSysMIBModule.setRevisionsDescriptions(('Contact updated', 'oacExpIMSysFactory OID updated', 'Add objects for Factory area description.', 'Fixed minor corrections. changed oacExpIMSysHwcDescription type from OCTET STRING to DisplayString.', 'This MIB module describes system Management objects.',)) if mibBuilder.loadTexts: oacSysMIBModule.setLastUpdated('201405050001Z') if mibBuilder.loadTexts: oacSysMIBModule.setOrganization(' OneAccess ') if mibBuilder.loadTexts: oacSysMIBModule.setContactInfo('Pascal KESTELOOT Postal: ONE ACCESS 381 Avenue du Gnral de Gaulle 92140 Clamart, France FRANCE Tel: (+33) 01 41 87 70 00 Fax: (+33) 01 41 87 74 00 E-mail: pascal.kesteloot@oneaccess-net.com') if mibBuilder.loadTexts: oacSysMIBModule.setDescription('Add Cpu usage table for multicore HW') class OASysHwcClass(TextualConvention, Integer32): description = 'The object specify the class of OASysHwc' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2)) namedValues = NamedValues(("board", 0), ("cpu", 1), ("slot", 2)) class OASysHwcType(TextualConvention, Integer32): description = 'The object specify the type of OASysHwc' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("mainboard", 0), ("microprocessor", 1), ("ram", 2), ("flash", 3), ("dsp", 4), ("uplink", 5), ("module", 6)) class OASysCoreType(TextualConvention, Integer32): description = 'The object specify the type of Core usage' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("controlplane", 0), ("dataforwarding", 1), ("application", 2), ("mixed", 3)) oacExpIMSysStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1)) oacExpIMSysHardwareDescription = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2)) oacSysMemStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1)) oacSysCpuStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2)) oacSysSecureCrashlogCount = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 100), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysSecureCrashlogCount.setStatus('current') if mibBuilder.loadTexts: oacSysSecureCrashlogCount.setDescription('The number of avaiable crash logs') oacSysStartCaused = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 200), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysStartCaused.setStatus('current') if mibBuilder.loadTexts: oacSysStartCaused.setDescription('Cause of system start') oacSysIMSysMainBoard = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1)) oacExpIMSysHwComponents = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2)) oacExpIMSysFactory = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3)) oacSysIMSysMainIdentifier = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 1), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainIdentifier.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainIdentifier.setDescription("The vendor's authoritative identification of the main board. This value is allocated within the SMI enterprise subtree") oacSysIMSysMainManufacturedIdentity = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainManufacturedIdentity.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedIdentity.setDescription("Unique ID string self to each equipment. By default, it is retrieved from the manufacturer of the equipment. Can also be configure by CLI ( see command 'snmp chassis-id') for customer purposes") oacSysIMSysMainManufacturedDate = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainManufacturedDate.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedDate.setDescription('the date of the manufacturing of the equipment') oacSysIMSysMainCPU = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainCPU.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainCPU.setDescription('Description of the main CPU used on the main board') oacSysIMSysMainBSPVersion = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainBSPVersion.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBSPVersion.setDescription('the current BSP version supported on the equipment') oacSysIMSysMainBootVersion = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainBootVersion.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBootVersion.setDescription('the current boot version supported on the equipment') oacSysIMSysMainBootDateCreation = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainBootDateCreation.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBootDateCreation.setDescription('the date the current boot version has been generated') oacSysMemoryFree = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysMemoryFree.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryFree.setDescription('The number of bytes in free memory ') oacSysMemoryAllocated = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysMemoryAllocated.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryAllocated.setDescription('The number of bytes in allocated memory ') oacSysMemoryTotal = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysMemoryTotal.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryTotal.setDescription('Total number of bytes in the system memory partition ') oacSysMemoryUsed = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysMemoryUsed.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryUsed.setDescription('Used memory expressed in percent of the total memory size ') oacSysCpuUsed = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsed.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsed.setDescription('Used cpu in percent ') oacSysCpuUsedCoresCount = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedCoresCount.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresCount.setDescription('The number of Cores for the equipment') oacSysCpuUsedCoresTable = MibTable((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3), ) if mibBuilder.loadTexts: oacSysCpuUsedCoresTable.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresTable.setDescription('Table for Oneaccess hardware Cores') oacSysCpuUsedCoresEntry = MibTableRow((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1), ).setIndexNames((0, "ONEACCESS-SYS-MIB", "oacSysCpuUsedIndex")) if mibBuilder.loadTexts: oacSysCpuUsedCoresEntry.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresEntry.setDescription('Table entry for a hardware Core') oacSysCpuUsedIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedIndex.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedIndex.setDescription('Core index') oacSysCpuUsedCoreType = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 2), OASysCoreType()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedCoreType.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoreType.setDescription('Type of the core') oacSysCpuUsedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedValue.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedValue.setDescription('Used cpu in percent : equivalent for core 0 to the oacSysCpuUsed object. This is the current value') oacSysCpuUsedOneMinuteValue = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedOneMinuteValue.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedOneMinuteValue.setDescription('Cpu load for the last minute period') oacSysLastRebootCause = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysLastRebootCause.setStatus('current') if mibBuilder.loadTexts: oacSysLastRebootCause.setDescription('To display the cause for the last reboot.') oacExpIMSysHwComponentsCount = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwComponentsCount.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsCount.setDescription('The number of components for the equipment') oacExpIMSysHwComponentsTable = MibTable((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2), ) if mibBuilder.loadTexts: oacExpIMSysHwComponentsTable.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsTable.setDescription('Table for Oneaccess hardware components') oacExpIMSysHwComponentsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1), ).setIndexNames((0, "ONEACCESS-SYS-MIB", "oacExpIMSysHwcIndex")) if mibBuilder.loadTexts: oacExpIMSysHwComponentsEntry.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsEntry.setDescription('Table entry for a hardware component') oacExpIMSysHwcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcIndex.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcIndex.setDescription('Component index') oacExpIMSysHwcClass = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 2), OASysHwcClass()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcClass.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcClass.setDescription('Class of the component') oacExpIMSysHwcType = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 3), OASysHwcType()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcType.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcType.setDescription('Type of the component') oacExpIMSysHwcDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcDescription.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcDescription.setDescription('Component description, identifies the component') oacExpIMSysHwcSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcSerialNumber.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcSerialNumber.setDescription("Component's serial number") oacExpIMSysHwcManufacturer = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcManufacturer.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturer.setDescription('Component manufacturer') oacExpIMSysHwcManufacturedDate = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcManufacturedDate.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturedDate.setDescription("Component's manufacturing date") oacExpIMSysHwcProductName = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcProductName.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcProductName.setDescription('The Product name') oacExpIMSysFactorySupplierID = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 14))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysFactorySupplierID.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactorySupplierID.setDescription('Supplier ID. Mapped to Mid field of product-info-area. String is empty if Mid field is not included in product-info-area.') oacExpIMSysFactoryProductSalesCode = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 22))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysFactoryProductSalesCode.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactoryProductSalesCode.setDescription('OA Product Sales Code. Mapped to Mcode field of product-info-area. String is empty if Mcode field is not included in product-info-area.') oacExpIMSysFactoryHwRevision = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysFactoryHwRevision.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactoryHwRevision.setDescription('Hardware Revision. Mapped to Mrevision field of product-info-area. String is empty if Mrevision field is not included in product-info-area.') mibBuilder.exportSymbols("ONEACCESS-SYS-MIB", oacSysCpuUsedCoresCount=oacSysCpuUsedCoresCount, oacSysIMSysMainBSPVersion=oacSysIMSysMainBSPVersion, oacExpIMSysHwcIndex=oacExpIMSysHwcIndex, oacSysIMSysMainIdentifier=oacSysIMSysMainIdentifier, oacExpIMSysHwcType=oacExpIMSysHwcType, oacSysMemoryUsed=oacSysMemoryUsed, oacSysIMSysMainManufacturedIdentity=oacSysIMSysMainManufacturedIdentity, oacExpIMSysHwComponents=oacExpIMSysHwComponents, oacSysCpuUsedOneMinuteValue=oacSysCpuUsedOneMinuteValue, oacExpIMSysHwComponentsTable=oacExpIMSysHwComponentsTable, oacExpIMSysStatistics=oacExpIMSysStatistics, oacSysStartCaused=oacSysStartCaused, oacSysMemoryAllocated=oacSysMemoryAllocated, oacExpIMSysFactoryProductSalesCode=oacExpIMSysFactoryProductSalesCode, oacSysMIBModule=oacSysMIBModule, OASysCoreType=OASysCoreType, oacSysMemStatistics=oacSysMemStatistics, oacSysIMSysMainManufacturedDate=oacSysIMSysMainManufacturedDate, oacSysCpuUsedCoresTable=oacSysCpuUsedCoresTable, oacExpIMSysHardwareDescription=oacExpIMSysHardwareDescription, oacSysMemoryTotal=oacSysMemoryTotal, oacSysIMSysMainBootDateCreation=oacSysIMSysMainBootDateCreation, oacExpIMSysHwComponentsEntry=oacExpIMSysHwComponentsEntry, oacSysIMSysMainCPU=oacSysIMSysMainCPU, oacExpIMSysHwcProductName=oacExpIMSysHwcProductName, oacSysCpuStatistics=oacSysCpuStatistics, oacExpIMSysHwcManufacturedDate=oacExpIMSysHwcManufacturedDate, oacSysIMSysMainBoard=oacSysIMSysMainBoard, oacExpIMSysFactorySupplierID=oacExpIMSysFactorySupplierID, oacExpIMSysHwcSerialNumber=oacExpIMSysHwcSerialNumber, OASysHwcType=OASysHwcType, oacSysCpuUsedCoreType=oacSysCpuUsedCoreType, oacSysLastRebootCause=oacSysLastRebootCause, oacSysCpuUsedCoresEntry=oacSysCpuUsedCoresEntry, oacExpIMSysHwcDescription=oacExpIMSysHwcDescription, oacSysCpuUsedIndex=oacSysCpuUsedIndex, oacExpIMSysHwcClass=oacExpIMSysHwcClass, oacExpIMSysFactoryHwRevision=oacExpIMSysFactoryHwRevision, oacSysMemoryFree=oacSysMemoryFree, oacExpIMSysHwComponentsCount=oacExpIMSysHwComponentsCount, oacSysCpuUsed=oacSysCpuUsed, oacSysCpuUsedValue=oacSysCpuUsedValue, oacSysIMSysMainBootVersion=oacSysIMSysMainBootVersion, oacSysSecureCrashlogCount=oacSysSecureCrashlogCount, oacExpIMSysHwcManufacturer=oacExpIMSysHwcManufacturer, OASysHwcClass=OASysHwcClass, oacExpIMSysFactory=oacExpIMSysFactory, PYSNMP_MODULE_ID=oacSysMIBModule)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_size_constraint, constraints_union, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint') (oac_exp_im_system, oac_mib_modules) = mibBuilder.importSymbols('ONEACCESS-GLOBAL-REG', 'oacExpIMSystem', 'oacMIBModules') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (module_identity, time_ticks, object_identity, unsigned32, mib_identifier, iso, counter64, counter32, integer32, notification_type, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'TimeTicks', 'ObjectIdentity', 'Unsigned32', 'MibIdentifier', 'iso', 'Counter64', 'Counter32', 'Integer32', 'NotificationType', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'IpAddress') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') oac_sys_mib_module = module_identity((1, 3, 6, 1, 4, 1, 13191, 1, 100, 671)) oacSysMIBModule.setRevisions(('2014-05-05 00:01', '2011-06-15 00:00', '2010-12-14 00:01', '2010-08-11 10:00', '2010-07-08 10:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: oacSysMIBModule.setRevisionsDescriptions(('Contact updated', 'oacExpIMSysFactory OID updated', 'Add objects for Factory area description.', 'Fixed minor corrections. changed oacExpIMSysHwcDescription type from OCTET STRING to DisplayString.', 'This MIB module describes system Management objects.')) if mibBuilder.loadTexts: oacSysMIBModule.setLastUpdated('201405050001Z') if mibBuilder.loadTexts: oacSysMIBModule.setOrganization(' OneAccess ') if mibBuilder.loadTexts: oacSysMIBModule.setContactInfo('Pascal KESTELOOT Postal: ONE ACCESS 381 Avenue du Gnral de Gaulle 92140 Clamart, France FRANCE Tel: (+33) 01 41 87 70 00 Fax: (+33) 01 41 87 74 00 E-mail: pascal.kesteloot@oneaccess-net.com') if mibBuilder.loadTexts: oacSysMIBModule.setDescription('Add Cpu usage table for multicore HW') class Oasyshwcclass(TextualConvention, Integer32): description = 'The object specify the class of OASysHwc' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2)) named_values = named_values(('board', 0), ('cpu', 1), ('slot', 2)) class Oasyshwctype(TextualConvention, Integer32): description = 'The object specify the type of OASysHwc' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6)) named_values = named_values(('mainboard', 0), ('microprocessor', 1), ('ram', 2), ('flash', 3), ('dsp', 4), ('uplink', 5), ('module', 6)) class Oasyscoretype(TextualConvention, Integer32): description = 'The object specify the type of Core usage' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('controlplane', 0), ('dataforwarding', 1), ('application', 2), ('mixed', 3)) oac_exp_im_sys_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1)) oac_exp_im_sys_hardware_description = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2)) oac_sys_mem_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1)) oac_sys_cpu_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2)) oac_sys_secure_crashlog_count = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 100), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysSecureCrashlogCount.setStatus('current') if mibBuilder.loadTexts: oacSysSecureCrashlogCount.setDescription('The number of avaiable crash logs') oac_sys_start_caused = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 200), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysStartCaused.setStatus('current') if mibBuilder.loadTexts: oacSysStartCaused.setDescription('Cause of system start') oac_sys_im_sys_main_board = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1)) oac_exp_im_sys_hw_components = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2)) oac_exp_im_sys_factory = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3)) oac_sys_im_sys_main_identifier = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 1), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainIdentifier.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainIdentifier.setDescription("The vendor's authoritative identification of the main board. This value is allocated within the SMI enterprise subtree") oac_sys_im_sys_main_manufactured_identity = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedIdentity.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedIdentity.setDescription("Unique ID string self to each equipment. By default, it is retrieved from the manufacturer of the equipment. Can also be configure by CLI ( see command 'snmp chassis-id') for customer purposes") oac_sys_im_sys_main_manufactured_date = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedDate.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedDate.setDescription('the date of the manufacturing of the equipment') oac_sys_im_sys_main_cpu = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainCPU.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainCPU.setDescription('Description of the main CPU used on the main board') oac_sys_im_sys_main_bsp_version = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainBSPVersion.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBSPVersion.setDescription('the current BSP version supported on the equipment') oac_sys_im_sys_main_boot_version = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainBootVersion.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBootVersion.setDescription('the current boot version supported on the equipment') oac_sys_im_sys_main_boot_date_creation = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainBootDateCreation.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBootDateCreation.setDescription('the date the current boot version has been generated') oac_sys_memory_free = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysMemoryFree.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryFree.setDescription('The number of bytes in free memory ') oac_sys_memory_allocated = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysMemoryAllocated.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryAllocated.setDescription('The number of bytes in allocated memory ') oac_sys_memory_total = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysMemoryTotal.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryTotal.setDescription('Total number of bytes in the system memory partition ') oac_sys_memory_used = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysMemoryUsed.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryUsed.setDescription('Used memory expressed in percent of the total memory size ') oac_sys_cpu_used = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsed.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsed.setDescription('Used cpu in percent ') oac_sys_cpu_used_cores_count = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedCoresCount.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresCount.setDescription('The number of Cores for the equipment') oac_sys_cpu_used_cores_table = mib_table((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3)) if mibBuilder.loadTexts: oacSysCpuUsedCoresTable.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresTable.setDescription('Table for Oneaccess hardware Cores') oac_sys_cpu_used_cores_entry = mib_table_row((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1)).setIndexNames((0, 'ONEACCESS-SYS-MIB', 'oacSysCpuUsedIndex')) if mibBuilder.loadTexts: oacSysCpuUsedCoresEntry.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresEntry.setDescription('Table entry for a hardware Core') oac_sys_cpu_used_index = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedIndex.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedIndex.setDescription('Core index') oac_sys_cpu_used_core_type = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 2), oa_sys_core_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedCoreType.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoreType.setDescription('Type of the core') oac_sys_cpu_used_value = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedValue.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedValue.setDescription('Used cpu in percent : equivalent for core 0 to the oacSysCpuUsed object. This is the current value') oac_sys_cpu_used_one_minute_value = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedOneMinuteValue.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedOneMinuteValue.setDescription('Cpu load for the last minute period') oac_sys_last_reboot_cause = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysLastRebootCause.setStatus('current') if mibBuilder.loadTexts: oacSysLastRebootCause.setDescription('To display the cause for the last reboot.') oac_exp_im_sys_hw_components_count = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwComponentsCount.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsCount.setDescription('The number of components for the equipment') oac_exp_im_sys_hw_components_table = mib_table((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2)) if mibBuilder.loadTexts: oacExpIMSysHwComponentsTable.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsTable.setDescription('Table for Oneaccess hardware components') oac_exp_im_sys_hw_components_entry = mib_table_row((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1)).setIndexNames((0, 'ONEACCESS-SYS-MIB', 'oacExpIMSysHwcIndex')) if mibBuilder.loadTexts: oacExpIMSysHwComponentsEntry.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsEntry.setDescription('Table entry for a hardware component') oac_exp_im_sys_hwc_index = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcIndex.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcIndex.setDescription('Component index') oac_exp_im_sys_hwc_class = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 2), oa_sys_hwc_class()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcClass.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcClass.setDescription('Class of the component') oac_exp_im_sys_hwc_type = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 3), oa_sys_hwc_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcType.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcType.setDescription('Type of the component') oac_exp_im_sys_hwc_description = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcDescription.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcDescription.setDescription('Component description, identifies the component') oac_exp_im_sys_hwc_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcSerialNumber.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcSerialNumber.setDescription("Component's serial number") oac_exp_im_sys_hwc_manufacturer = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturer.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturer.setDescription('Component manufacturer') oac_exp_im_sys_hwc_manufactured_date = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturedDate.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturedDate.setDescription("Component's manufacturing date") oac_exp_im_sys_hwc_product_name = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcProductName.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcProductName.setDescription('The Product name') oac_exp_im_sys_factory_supplier_id = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 14))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysFactorySupplierID.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactorySupplierID.setDescription('Supplier ID. Mapped to Mid field of product-info-area. String is empty if Mid field is not included in product-info-area.') oac_exp_im_sys_factory_product_sales_code = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 22))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysFactoryProductSalesCode.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactoryProductSalesCode.setDescription('OA Product Sales Code. Mapped to Mcode field of product-info-area. String is empty if Mcode field is not included in product-info-area.') oac_exp_im_sys_factory_hw_revision = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 3), display_string().subtype(subtypeSpec=value_size_constraint(2, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysFactoryHwRevision.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactoryHwRevision.setDescription('Hardware Revision. Mapped to Mrevision field of product-info-area. String is empty if Mrevision field is not included in product-info-area.') mibBuilder.exportSymbols('ONEACCESS-SYS-MIB', oacSysCpuUsedCoresCount=oacSysCpuUsedCoresCount, oacSysIMSysMainBSPVersion=oacSysIMSysMainBSPVersion, oacExpIMSysHwcIndex=oacExpIMSysHwcIndex, oacSysIMSysMainIdentifier=oacSysIMSysMainIdentifier, oacExpIMSysHwcType=oacExpIMSysHwcType, oacSysMemoryUsed=oacSysMemoryUsed, oacSysIMSysMainManufacturedIdentity=oacSysIMSysMainManufacturedIdentity, oacExpIMSysHwComponents=oacExpIMSysHwComponents, oacSysCpuUsedOneMinuteValue=oacSysCpuUsedOneMinuteValue, oacExpIMSysHwComponentsTable=oacExpIMSysHwComponentsTable, oacExpIMSysStatistics=oacExpIMSysStatistics, oacSysStartCaused=oacSysStartCaused, oacSysMemoryAllocated=oacSysMemoryAllocated, oacExpIMSysFactoryProductSalesCode=oacExpIMSysFactoryProductSalesCode, oacSysMIBModule=oacSysMIBModule, OASysCoreType=OASysCoreType, oacSysMemStatistics=oacSysMemStatistics, oacSysIMSysMainManufacturedDate=oacSysIMSysMainManufacturedDate, oacSysCpuUsedCoresTable=oacSysCpuUsedCoresTable, oacExpIMSysHardwareDescription=oacExpIMSysHardwareDescription, oacSysMemoryTotal=oacSysMemoryTotal, oacSysIMSysMainBootDateCreation=oacSysIMSysMainBootDateCreation, oacExpIMSysHwComponentsEntry=oacExpIMSysHwComponentsEntry, oacSysIMSysMainCPU=oacSysIMSysMainCPU, oacExpIMSysHwcProductName=oacExpIMSysHwcProductName, oacSysCpuStatistics=oacSysCpuStatistics, oacExpIMSysHwcManufacturedDate=oacExpIMSysHwcManufacturedDate, oacSysIMSysMainBoard=oacSysIMSysMainBoard, oacExpIMSysFactorySupplierID=oacExpIMSysFactorySupplierID, oacExpIMSysHwcSerialNumber=oacExpIMSysHwcSerialNumber, OASysHwcType=OASysHwcType, oacSysCpuUsedCoreType=oacSysCpuUsedCoreType, oacSysLastRebootCause=oacSysLastRebootCause, oacSysCpuUsedCoresEntry=oacSysCpuUsedCoresEntry, oacExpIMSysHwcDescription=oacExpIMSysHwcDescription, oacSysCpuUsedIndex=oacSysCpuUsedIndex, oacExpIMSysHwcClass=oacExpIMSysHwcClass, oacExpIMSysFactoryHwRevision=oacExpIMSysFactoryHwRevision, oacSysMemoryFree=oacSysMemoryFree, oacExpIMSysHwComponentsCount=oacExpIMSysHwComponentsCount, oacSysCpuUsed=oacSysCpuUsed, oacSysCpuUsedValue=oacSysCpuUsedValue, oacSysIMSysMainBootVersion=oacSysIMSysMainBootVersion, oacSysSecureCrashlogCount=oacSysSecureCrashlogCount, oacExpIMSysHwcManufacturer=oacExpIMSysHwcManufacturer, OASysHwcClass=OASysHwcClass, oacExpIMSysFactory=oacExpIMSysFactory, PYSNMP_MODULE_ID=oacSysMIBModule)
# all test parameters are declared here delay = 5 #no of seconds to wait before deciding to exit chrome_driver_path = '/home/apalya/browsers/chromedriver2.46' website = 'http://www.sunnxt.com' signin_text = 'Sign In' profile_icon_xpath = '//span[@class="icomoon icon-icn_profile"]' signin_link_xpath = '//ul[@class="signinicon dropdown-menu dropdown-menu-right logg"]/li/a' signin_modal_close_xpath = '//button[@class="close"]' ##modal sigin popup signin_modal_title_xpath = '//h4[@id="myModalLabel"]/*/div[@class="signin_label"]' #signin_modal_title_xpath = '//div[@class="signin_label"]' username_xpath = '//input[@id="email-up"]' username_placeholder = 'Email / Mobile' passwd_xpath = '//input[@id="password"][@type="password"]' password_placeholder = 'Password' signin_button_xpath = '//div[@class="log_btn"]//button[@type="submit"][@class="btn btn-red"]' btn_colors = "btn btn-red" signin_invalid_user = 'Please Enter Valid Email Or Mobile Number' signin_invalid_format_xpath = '//span[@class="error"]' user_doesnot_exist = 'User does not exist. Please sign up.' verify_username_pwd = 'Kindly Verify Your User Id Or Password And Try Again.' user_doesnot_exist_xpath = '//span[@class="error"]' invalid_user = 'abcdefg' invalid_password = '123456' invalid_username = '1234567899' invalid_passwd = '9911223344'
delay = 5 chrome_driver_path = '/home/apalya/browsers/chromedriver2.46' website = 'http://www.sunnxt.com' signin_text = 'Sign In' profile_icon_xpath = '//span[@class="icomoon icon-icn_profile"]' signin_link_xpath = '//ul[@class="signinicon dropdown-menu dropdown-menu-right logg"]/li/a' signin_modal_close_xpath = '//button[@class="close"]' signin_modal_title_xpath = '//h4[@id="myModalLabel"]/*/div[@class="signin_label"]' username_xpath = '//input[@id="email-up"]' username_placeholder = 'Email / Mobile' passwd_xpath = '//input[@id="password"][@type="password"]' password_placeholder = 'Password' signin_button_xpath = '//div[@class="log_btn"]//button[@type="submit"][@class="btn btn-red"]' btn_colors = 'btn btn-red' signin_invalid_user = 'Please Enter Valid Email Or Mobile Number' signin_invalid_format_xpath = '//span[@class="error"]' user_doesnot_exist = 'User does not exist. Please sign up.' verify_username_pwd = 'Kindly Verify Your User Id Or Password And Try Again.' user_doesnot_exist_xpath = '//span[@class="error"]' invalid_user = 'abcdefg' invalid_password = '123456' invalid_username = '1234567899' invalid_passwd = '9911223344'
num_usernames = int(input()) usernames = set() for _ in range(num_usernames): username = input() usernames.add(username) [print(name) for name in usernames]
num_usernames = int(input()) usernames = set() for _ in range(num_usernames): username = input() usernames.add(username) [print(name) for name in usernames]
num = int(input()) words = [] for i in range(num): words.append(input()) words.sort() for word in words: print(word)
num = int(input()) words = [] for i in range(num): words.append(input()) words.sort() for word in words: print(word)
# def make_table(): # colors_distance = { # 'black': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'brown': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'beige': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'gray': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'white': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'blue': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'petrol': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'turquoise': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'green': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'olive': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'yellow': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'orange': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'red': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'pink': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'purple': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # } # colors = [Color('black', 0, 0.0, 0.0), # Color('brown', 30, 100.0, 61.6), # Color('beige', 30, 21.2, 88.6), # Color('gray', 0, 0.0, 66.3), # Color('white', 0, 0.0, 100.0), # Color('blue', 207, 100.0, 100.0), # Color('petrol', 189, 100.0, 56.9), # Color('turquoise', 194, 67.8, 100.0), # Color('green', 124, 100.0, 59.6), # Color('olive', 62, 100.0, 58.4), # Color('yellow', 52, 99.2, 95.7), # Color('orange', 33, 100.0, 87.1), # Color('red', 0, 100.0, 100.0), # Color('pink', 0, 100.0, 100.0), # Color('purple', 279, 100.0, 55.3)] # print(end='\t\t') # for color in colors: # print(color.name, end='\t') # for color1 in colors: # print('') # print(color1.name, end='\t') # for color2 in colors: # distance = sqrt(((color1.hue - color2.hue) ** 2) + ((color1.saturation - color2.saturation) ** 2) + ( # (color1.value - color2.value) ** 2)) # colors_distance[color1.name][color2.name] = distance # print('%.2f' % distance, end='\t') # print('') # return colors_distance # # # color_distance = make_table() # print(color_distance) colors_combinations = [('black', 'red', 'gray'), ('black', 'petrol', 'white'), ('brown', 'gray', 'olive'), ('brown', 'yellow', 'beige'), ('beige', 'green', 'white'), ('beige', 'orange', 'black'), ('gray', 'beige', 'white'), ('gray', 'petrol', 'white'), ('white', 'olive', 'yellow'), ('white', 'orange', 'green'), ('blue', 'yellow', 'black'), ('blue', 'gray', 'white'), ('petrol', 'turquoise', 'black'), ('petrol', 'pink', 'olive'), ('turquoise', 'gray', 'white'), ('turquoise', 'petrol', 'yellow'), ('green', 'olive', 'yellow'), ('green', 'black', 'white'), ('olive', 'beige', 'white'), ('olive', 'black', 'orange'), ('yellow', 'blue', 'white'), ('yellow', 'orange', 'black'), ('orange', 'olive', 'black'), ('orange', 'blue', 'purple'), ('red', 'gray', 'orange'), ('red', 'black', 'beige'), ('pink', 'purple', 'white'), ('pink', 'petrol', 'turquoise'), ('purple', 'brown', 'beige'), ('purple', 'yellow', 'gray')] fav_colors = ['yellow', 'purple', 'gray'] def get_sorensen_index(colors1, colors2): return len(set(colors1).intersection(colors2)) / (len(colors1) + len(colors2)) print(len(colors_combinations)) print(fav_colors, end='') print(': ') for colors in colors_combinations: print(colors, end='') print(": ", end='') print(get_sorensen_index(colors, fav_colors), end=', ') print(len(set(colors).intersection(fav_colors)))
colors_combinations = [('black', 'red', 'gray'), ('black', 'petrol', 'white'), ('brown', 'gray', 'olive'), ('brown', 'yellow', 'beige'), ('beige', 'green', 'white'), ('beige', 'orange', 'black'), ('gray', 'beige', 'white'), ('gray', 'petrol', 'white'), ('white', 'olive', 'yellow'), ('white', 'orange', 'green'), ('blue', 'yellow', 'black'), ('blue', 'gray', 'white'), ('petrol', 'turquoise', 'black'), ('petrol', 'pink', 'olive'), ('turquoise', 'gray', 'white'), ('turquoise', 'petrol', 'yellow'), ('green', 'olive', 'yellow'), ('green', 'black', 'white'), ('olive', 'beige', 'white'), ('olive', 'black', 'orange'), ('yellow', 'blue', 'white'), ('yellow', 'orange', 'black'), ('orange', 'olive', 'black'), ('orange', 'blue', 'purple'), ('red', 'gray', 'orange'), ('red', 'black', 'beige'), ('pink', 'purple', 'white'), ('pink', 'petrol', 'turquoise'), ('purple', 'brown', 'beige'), ('purple', 'yellow', 'gray')] fav_colors = ['yellow', 'purple', 'gray'] def get_sorensen_index(colors1, colors2): return len(set(colors1).intersection(colors2)) / (len(colors1) + len(colors2)) print(len(colors_combinations)) print(fav_colors, end='') print(': ') for colors in colors_combinations: print(colors, end='') print(': ', end='') print(get_sorensen_index(colors, fav_colors), end=', ') print(len(set(colors).intersection(fav_colors)))
cpgf._import(None, "builtin.core"); KeyIsDown = []; def makeMyEventReceiver(receiver) : for i in range(irr.KEY_KEY_CODES_COUNT) : KeyIsDown.append(False); def OnEvent(me, event) : if event.EventType == irr.EET_KEY_INPUT_EVENT : KeyIsDown[event.KeyInput.Key + 1] = event.KeyInput.PressedDown; return False; receiver.OnEvent = OnEvent; def IsKeyDown(keyCode) : return KeyIsDown[keyCode + 1]; def start() : driverType = irr.driverChoiceConsole(); if driverType == irr.EDT_COUNT : return 1; MyEventReceiver = cpgf.cloneClass(irr.IEventReceiverWrapper); makeMyEventReceiver(MyEventReceiver); receiver = MyEventReceiver(); device = irr.createDevice(driverType, irr.dimension2d_u32(640, 480), 16, False, False, False, receiver); if device == None : return 1; driver = device.getVideoDriver(); smgr = device.getSceneManager(); smgr.getGUIEnvironment().addStaticText("Press Space to hide occluder.", irr.rect_s32(10,10, 200,50)); node = smgr.addSphereSceneNode(10, 64); if node : node.setPosition(irr.vector3df(0,0,60)); node.setMaterialTexture(0, driver.getTexture("../../media/wall.bmp")); node.setMaterialFlag(irr.EMF_LIGHTING, False); plane = smgr.addMeshSceneNode(smgr.addHillPlaneMesh("plane", irr.dimension2df(10,10), irr.dimension2du(2,2)), None, -1, irr.vector3df(0,0,20), irr.vector3df(270,0,0)); if plane : plane.setMaterialTexture(0, driver.getTexture("../../media/t351sml.jpg")); plane.setMaterialFlag(irr.EMF_LIGHTING, False); plane.setMaterialFlag(irr.EMF_BACK_FACE_CULLING, True); driver.addOcclusionQuery(node, cpgf.cast(node, irr.IMeshSceneNode).getMesh()); smgr.addCameraSceneNode(); lastFPS = -1; timeNow = device.getTimer().getTime(); nodeVisible=True; while device.run() : plane.setVisible(not IsKeyDown(irr.KEY_SPACE)); driver.beginScene(True, True, irr.SColor(255,113,113,133)); node.setVisible(nodeVisible); smgr.drawAll(); smgr.getGUIEnvironment().drawAll(); if device.getTimer().getTime()-timeNow>100 : driver.runAllOcclusionQueries(False); driver.updateAllOcclusionQueries(); nodeVisible=driver.getOcclusionQueryResult(node)>0; timeNow=device.getTimer().getTime(); driver.endScene(); fps = driver.getFPS(); if lastFPS != fps : tmp = "cpgf Irrlicht Python binding OcclusionQuery Example ["; tmp = tmp + driver.getName(); tmp = tmp + "] fps: "; tmp = tmp + str(fps); device.setWindowCaption(tmp); lastFPS = fps; device.drop(); return 0; start();
cpgf._import(None, 'builtin.core') key_is_down = [] def make_my_event_receiver(receiver): for i in range(irr.KEY_KEY_CODES_COUNT): KeyIsDown.append(False) def on_event(me, event): if event.EventType == irr.EET_KEY_INPUT_EVENT: KeyIsDown[event.KeyInput.Key + 1] = event.KeyInput.PressedDown return False receiver.OnEvent = OnEvent def is_key_down(keyCode): return KeyIsDown[keyCode + 1] def start(): driver_type = irr.driverChoiceConsole() if driverType == irr.EDT_COUNT: return 1 my_event_receiver = cpgf.cloneClass(irr.IEventReceiverWrapper) make_my_event_receiver(MyEventReceiver) receiver = my_event_receiver() device = irr.createDevice(driverType, irr.dimension2d_u32(640, 480), 16, False, False, False, receiver) if device == None: return 1 driver = device.getVideoDriver() smgr = device.getSceneManager() smgr.getGUIEnvironment().addStaticText('Press Space to hide occluder.', irr.rect_s32(10, 10, 200, 50)) node = smgr.addSphereSceneNode(10, 64) if node: node.setPosition(irr.vector3df(0, 0, 60)) node.setMaterialTexture(0, driver.getTexture('../../media/wall.bmp')) node.setMaterialFlag(irr.EMF_LIGHTING, False) plane = smgr.addMeshSceneNode(smgr.addHillPlaneMesh('plane', irr.dimension2df(10, 10), irr.dimension2du(2, 2)), None, -1, irr.vector3df(0, 0, 20), irr.vector3df(270, 0, 0)) if plane: plane.setMaterialTexture(0, driver.getTexture('../../media/t351sml.jpg')) plane.setMaterialFlag(irr.EMF_LIGHTING, False) plane.setMaterialFlag(irr.EMF_BACK_FACE_CULLING, True) driver.addOcclusionQuery(node, cpgf.cast(node, irr.IMeshSceneNode).getMesh()) smgr.addCameraSceneNode() last_fps = -1 time_now = device.getTimer().getTime() node_visible = True while device.run(): plane.setVisible(not is_key_down(irr.KEY_SPACE)) driver.beginScene(True, True, irr.SColor(255, 113, 113, 133)) node.setVisible(nodeVisible) smgr.drawAll() smgr.getGUIEnvironment().drawAll() if device.getTimer().getTime() - timeNow > 100: driver.runAllOcclusionQueries(False) driver.updateAllOcclusionQueries() node_visible = driver.getOcclusionQueryResult(node) > 0 time_now = device.getTimer().getTime() driver.endScene() fps = driver.getFPS() if lastFPS != fps: tmp = 'cpgf Irrlicht Python binding OcclusionQuery Example [' tmp = tmp + driver.getName() tmp = tmp + '] fps: ' tmp = tmp + str(fps) device.setWindowCaption(tmp) last_fps = fps device.drop() return 0 start()
class AttemptResults(list): def __init__(self, tries): return super(AttemptResults, self).extend(['ND'] * tries)
class Attemptresults(list): def __init__(self, tries): return super(AttemptResults, self).extend(['ND'] * tries)
lucky_numbers = [2, 4, 8, 1, 7, 15, 27, 25, 10] friends = ["yacubu", "rolan", "anatol", "patrick", "jony", "bel"] friends.extend(lucky_numbers)## take friend and value of lucky num in it print(friends) friends.append("toby") friends.insert(1, "rolax")## add value at index value and all other value get push back print(friends) friends.remove("bel")## remove value print(friends) print(friends.clear())## return empty elt of list friends = ["yacubu", "rolan", "anatol", "patrick", "jony", "bel"] friends.pop()## pop item off of this list print(friends) ## let figure out if a certain value is in print(friends.index("patrick"))## if a name is not in d list is going to throw an err friends = ["yacubu", "yacubu", "rolan", "anatol", "patrick", "jony", "bel"] print(friends.count("yacubu"))## tells me how many time yacubu show up in the list friends = ["yacubu", "rolan", "anatol", "patrick", "jony", "bel"] friends.sort() print(friends) lucky_numbers.sort() print(lucky_numbers) lucky_numbers.reverse() print(lucky_numbers) ### use of copy friends2 = friends.copy() print(friends2) ## used del friends = friends2.clear() print(friends2)
lucky_numbers = [2, 4, 8, 1, 7, 15, 27, 25, 10] friends = ['yacubu', 'rolan', 'anatol', 'patrick', 'jony', 'bel'] friends.extend(lucky_numbers) print(friends) friends.append('toby') friends.insert(1, 'rolax') print(friends) friends.remove('bel') print(friends) print(friends.clear()) friends = ['yacubu', 'rolan', 'anatol', 'patrick', 'jony', 'bel'] friends.pop() print(friends) print(friends.index('patrick')) friends = ['yacubu', 'yacubu', 'rolan', 'anatol', 'patrick', 'jony', 'bel'] print(friends.count('yacubu')) friends = ['yacubu', 'rolan', 'anatol', 'patrick', 'jony', 'bel'] friends.sort() print(friends) lucky_numbers.sort() print(lucky_numbers) lucky_numbers.reverse() print(lucky_numbers) friends2 = friends.copy() print(friends2) friends = friends2.clear() print(friends2)
# pylint: disable=missing-function-docstring, missing-module-docstring/ ai = (1,4,5) ai[0] = 2 bi = ai[0] ci = 2 * ai[0] di = 2 * ai[0] + 3 * ai[1] ei = 2 * ai[0] + bi * ai[1] fi = ai gi = (0,)*2 gi[:] = ai[1:] ad = (1.,4.,5.) ad[0] = 2. bd = ad[0] cd = 2. * ad[0] dd = 2. * ad[0] + 3. * ad[1] ed = 2. * ad[0] + bd * ad[1] fd = ad gd = (0.,)*2 gd[:] = ad[1:]
ai = (1, 4, 5) ai[0] = 2 bi = ai[0] ci = 2 * ai[0] di = 2 * ai[0] + 3 * ai[1] ei = 2 * ai[0] + bi * ai[1] fi = ai gi = (0,) * 2 gi[:] = ai[1:] ad = (1.0, 4.0, 5.0) ad[0] = 2.0 bd = ad[0] cd = 2.0 * ad[0] dd = 2.0 * ad[0] + 3.0 * ad[1] ed = 2.0 * ad[0] + bd * ad[1] fd = ad gd = (0.0,) * 2 gd[:] = ad[1:]
class IntegrationFeatureRegistry: def __init__(self): self.features = [] def register(self, integration_feature): self.features.append(integration_feature) self.features.sort(key=lambda f: f.order) def run_pre_scan(self): for integration in self.features: if integration.is_valid(): integration.pre_scan() def run_pre_runner(self): for integration in self.features: if integration.is_valid(): integration.pre_runner() def run_post_runner(self, scan_reports): for integration in self.features: if integration.is_valid(): integration.post_runner(scan_reports) integration_feature_registry = IntegrationFeatureRegistry()
class Integrationfeatureregistry: def __init__(self): self.features = [] def register(self, integration_feature): self.features.append(integration_feature) self.features.sort(key=lambda f: f.order) def run_pre_scan(self): for integration in self.features: if integration.is_valid(): integration.pre_scan() def run_pre_runner(self): for integration in self.features: if integration.is_valid(): integration.pre_runner() def run_post_runner(self, scan_reports): for integration in self.features: if integration.is_valid(): integration.post_runner(scan_reports) integration_feature_registry = integration_feature_registry()
names = ['Dani', 'Ale', 'E. Jose'] message = f'Hey {names[0]}, Thanks for your friendship' print(message) message = f'Hey {names[1]}, Thanks for your friendship' print(message) message = f'Hey {names[2]}, Thanks for your friendship' print(message)
names = ['Dani', 'Ale', 'E. Jose'] message = f'Hey {names[0]}, Thanks for your friendship' print(message) message = f'Hey {names[1]}, Thanks for your friendship' print(message) message = f'Hey {names[2]}, Thanks for your friendship' print(message)
infilename = input() outfilename = input() print(infilename,outfilename)
infilename = input() outfilename = input() print(infilename, outfilename)
class ShrinkwrapConstraint: distance = None project_axis = None project_axis_space = None project_limit = None shrinkwrap_type = None target = None
class Shrinkwrapconstraint: distance = None project_axis = None project_axis_space = None project_limit = None shrinkwrap_type = None target = None
# Let's say it's a wedding day, and two happy people are getting # married. # we have a dictionary first_family, which contains the names # of the wife's family members. For example: first_family = {"wife": "Janet", "wife's mother": "Katie", "wife's father": "George"} # And a similar dictionary second_family for the husband's # family: second_family = {"husband": "Leon", "husband's mother": "Eva", "husband's father": "Gaspard", "husband's sister": "Isabelle"} # Create a new dictionary that would contain information about # the big new family. Similarly with the ones above, family # members should be keys and their names should be values. # First, update the new dictionary with elements from # first_family and then from second_family. Print it out. # The following lines create dictionaries from the input first_family = json.loads(input()) second_family = json.loads(input()) # Work with the 'first_family' and 'second_family' and create a new dictionary big_family = first_family big_family.update(second_family) print(big_family)
first_family = {'wife': 'Janet', "wife's mother": 'Katie', "wife's father": 'George'} second_family = {'husband': 'Leon', "husband's mother": 'Eva', "husband's father": 'Gaspard', "husband's sister": 'Isabelle'} first_family = json.loads(input()) second_family = json.loads(input()) big_family = first_family big_family.update(second_family) print(big_family)
class BaseBoa: NUM_REGRESSION_MODELS_SUPPORTED = 5 reg_model_index = {0: 'dtree', 1: 'knn', 2: 'linreg', 3: 'adaboost', 4: 'rforest', } def __repr__(self): return type(self).__name__ # finish implementation!!! def __len__(self): return len(self.ladder) def ladder(self): return self.ladder def optimal_model(self, rank=0): return self.ladder[rank][0] def model(self, rank=0): return self.ladder[rank][0].model def model_score(self, rank=0): return self.ladder[rank][1] def get_sets(self, rank=0, save=False): return self.ladder[rank][0].get_sets(save=save) def hunt(self, X_train=None, X_test=None, y_train=None, y_test=None, data=None, target=None): pass def find_optimal(self, model, X_train=None, y_train=None, data=None, target=None): pass
class Baseboa: num_regression_models_supported = 5 reg_model_index = {0: 'dtree', 1: 'knn', 2: 'linreg', 3: 'adaboost', 4: 'rforest'} def __repr__(self): return type(self).__name__ def __len__(self): return len(self.ladder) def ladder(self): return self.ladder def optimal_model(self, rank=0): return self.ladder[rank][0] def model(self, rank=0): return self.ladder[rank][0].model def model_score(self, rank=0): return self.ladder[rank][1] def get_sets(self, rank=0, save=False): return self.ladder[rank][0].get_sets(save=save) def hunt(self, X_train=None, X_test=None, y_train=None, y_test=None, data=None, target=None): pass def find_optimal(self, model, X_train=None, y_train=None, data=None, target=None): pass
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality of the software # licensed hereunder. You may use the software subject to the license # terms below provided that you ensure that this notice is replicated # unmodified and in its entirety in all distributions of the software, # modified or unmodified, in source code or in binary form. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer; # redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution; # neither the name of the copyright holders nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors: Gabe Black microcode = ''' # All the memory versions need to use LOCK, regardless of if it was set def macroop XCHG_R_R { # Use the xor trick instead of moves to reduce register pressure. # This probably doesn't make much of a difference, but it's easy. xor reg, reg, regm xor regm, regm, reg xor reg, reg, regm }; def macroop XCHG_R_M { mfence ldstl t1, seg, sib, disp stul reg, seg, sib, disp mfence mov reg, reg, t1 }; def macroop XCHG_R_P { rdip t7 mfence ldstl t1, seg, riprel, disp stul reg, seg, riprel, disp mfence mov reg, reg, t1 }; def macroop XCHG_M_R { mfence ldstl t1, seg, sib, disp stul reg, seg, sib, disp mfence mov reg, reg, t1 }; def macroop XCHG_P_R { rdip t7 mfence ldstl t1, seg, riprel, disp stul reg, seg, riprel, disp mfence mov reg, reg, t1 }; def macroop XCHG_LOCKED_M_R { mfence ldstl t1, seg, sib, disp stul reg, seg, sib, disp mfence mov reg, reg, t1 }; def macroop XCHG_LOCKED_P_R { rdip t7 mfence ldstl t1, seg, riprel, disp stul reg, seg, riprel, disp mfence mov reg, reg, t1 }; '''
microcode = "\n\n# All the memory versions need to use LOCK, regardless of if it was set\n\ndef macroop XCHG_R_R\n{\n # Use the xor trick instead of moves to reduce register pressure.\n # This probably doesn't make much of a difference, but it's easy.\n xor reg, reg, regm\n xor regm, regm, reg\n xor reg, reg, regm\n};\n\ndef macroop XCHG_R_M\n{\n mfence\n ldstl t1, seg, sib, disp\n stul reg, seg, sib, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_R_P\n{\n rdip t7\n mfence\n ldstl t1, seg, riprel, disp\n stul reg, seg, riprel, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_M_R\n{\n mfence\n ldstl t1, seg, sib, disp\n stul reg, seg, sib, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_P_R\n{\n rdip t7\n mfence\n ldstl t1, seg, riprel, disp\n stul reg, seg, riprel, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_LOCKED_M_R\n{\n mfence\n ldstl t1, seg, sib, disp\n stul reg, seg, sib, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_LOCKED_P_R\n{\n rdip t7\n mfence\n ldstl t1, seg, riprel, disp\n stul reg, seg, riprel, disp\n mfence\n mov reg, reg, t1\n};\n"
T = int(input()) for x in range(1, T + 1): N = int(input()) names = [input() for index in range(N)] y = 0 previous = names[0] for name in names[1:]: if name < previous: y += 1 else: previous = name print(f"Case #{x}: {y}", flush = True)
t = int(input()) for x in range(1, T + 1): n = int(input()) names = [input() for index in range(N)] y = 0 previous = names[0] for name in names[1:]: if name < previous: y += 1 else: previous = name print(f'Case #{x}: {y}', flush=True)
#Pizza #Burger #Fries - > Peri Peri mala # > normal order ="" #initialization print("-----Crunch n Munch-------") while order!="exit" : order = input("Enter your order - ") if order == "pizza" or order == "burger" : print ("Your order is "+order+" Preparation in progress...") continue if order == "fries" : withPeriperi = input("fries with Peri Peri Masala y/n -") if withPeriperi == "y" : order = "Fries with Peri Peri" print ("Your order is "+order+" Preparation in progress...") else : print ("Sorry we don't serve "+order)
order = '' print('-----Crunch n Munch-------') while order != 'exit': order = input('Enter your order - ') if order == 'pizza' or order == 'burger': print('Your order is ' + order + ' Preparation in progress...') continue if order == 'fries': with_periperi = input('fries with Peri Peri Masala y/n -') if withPeriperi == 'y': order = 'Fries with Peri Peri' print('Your order is ' + order + ' Preparation in progress...') else: print("Sorry we don't serve " + order)
# Spec: https://docs.python.org/2/library/types.html print(None) # TypeType # print(True) # LOAD_NAME??? print(1) # print(1L) # Long print(1.1) # ComplexType print("abc") # print(u"abc") # Structural below print((1, 2)) # Tuple can be any length, but fixed after declared x = (1,2) print(x[0]) # Tuple can be any length, but fixed after declared print([1, 2, 3]) # print({"first":1,"second":2}) print(int(1)) print(int(1.2)) print(float(1)) print(float(1.2)) assert type(1 - 2) is int assert type(2 / 3) is float x = 1 assert type(x) is int assert type(x - 1) is int a = bytes([1, 2, 3]) print(a) b = bytes([1, 2, 3]) assert a == b try: bytes([object()]) except TypeError: pass a = bytearray([1, 2, 3]) # assert a[1] == 2 assert int() == 0 a = complex(2, 4) assert type(a) is complex assert type(a + a) is complex a = 1 assert a.conjugate() == a a = 12345 b = a*a*a*a*a*a*a*a assert b.bit_length() == 109
print(None) print(1) print(1.1) print('abc') print((1, 2)) x = (1, 2) print(x[0]) print([1, 2, 3]) print(int(1)) print(int(1.2)) print(float(1)) print(float(1.2)) assert type(1 - 2) is int assert type(2 / 3) is float x = 1 assert type(x) is int assert type(x - 1) is int a = bytes([1, 2, 3]) print(a) b = bytes([1, 2, 3]) assert a == b try: bytes([object()]) except TypeError: pass a = bytearray([1, 2, 3]) assert int() == 0 a = complex(2, 4) assert type(a) is complex assert type(a + a) is complex a = 1 assert a.conjugate() == a a = 12345 b = a * a * a * a * a * a * a * a assert b.bit_length() == 109
n = int(input()) v = list(map(int, input().split())) c = list(map(int, input().split())) ans = 0 for i in range(n): xy = v[i] - c[i] if xy > 0: ans += xy print(ans)
n = int(input()) v = list(map(int, input().split())) c = list(map(int, input().split())) ans = 0 for i in range(n): xy = v[i] - c[i] if xy > 0: ans += xy print(ans)
# Hello World # My first python git repo if __name__ == "__main__": print("Hello World")
if __name__ == '__main__': print('Hello World')
def bingo(array): ctr = 0 for i in [2, 9, 14, 7, 15]: if i in list(set(array)): ctr += 1 if ctr == 5: return "WIN" else: return "LOSE"
def bingo(array): ctr = 0 for i in [2, 9, 14, 7, 15]: if i in list(set(array)): ctr += 1 if ctr == 5: return 'WIN' else: return 'LOSE'
# # PySNMP MIB module CISCO-PSM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-PSM-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:39:07 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") FcNameId, DomainId, PortMemberList, DomainIdOrZero, FcNameIdOrZero = mibBuilder.importSymbols("CISCO-ST-TC", "FcNameId", "DomainId", "PortMemberList", "DomainIdOrZero", "FcNameIdOrZero") vsanIndex, = mibBuilder.importSymbols("CISCO-VSAN-MIB", "vsanIndex") InterfaceIndex, InterfaceIndexOrZero = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "InterfaceIndexOrZero") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") IpAddress, Unsigned32, TimeTicks, MibIdentifier, iso, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, NotificationType, Counter32, Gauge32, Bits, ModuleIdentity, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Unsigned32", "TimeTicks", "MibIdentifier", "iso", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "NotificationType", "Counter32", "Gauge32", "Bits", "ModuleIdentity", "Integer32") TimeStamp, RowStatus, TruthValue, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "RowStatus", "TruthValue", "DisplayString", "TextualConvention") ciscoPsmMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 364)) ciscoPsmMIB.setRevisions(('2004-10-15 00:00', '2004-03-16 00:00', '2003-11-27 00:00', '2003-11-10 00:00', '2003-10-17 00:00', '2003-10-06 00:00', '2003-08-07 00:00',)) if mibBuilder.loadTexts: ciscoPsmMIB.setLastUpdated('200410150000Z') if mibBuilder.loadTexts: ciscoPsmMIB.setOrganization('Cisco Systems Inc.') ciscoPsmMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 0)) ciscoPsmMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 1)) ciscoPsmMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 2)) cpsmConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1)) cpsmStats = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2)) class CpsmVirtNwType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("vsan", 1), ("vlan", 2)) class CpsmPortBindDevType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("mac", 1), ("nWwn", 2), ("pWwn", 3), ("sWwn", 4), ("wildCard", 5)) class CpsmPortBindSwPortType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("fwwn", 1), ("intfIndex", 2), ("wildCard", 3), ("swwn", 4)) class CpsmDbActivate(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("activate", 1), ("activateWithAutoLearnOff", 2), ("forceActivate", 3), ("forceActivateWithAutoLearnOff", 4), ("deactivate", 5), ("noop", 6)) class CpsmActivateResult(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("success", 1), ("actFailNullDb", 2), ("actFailConflictDb", 3), ("actFailSystemErr", 4), ("actFailAutoLearnOn", 5), ("deactFailNoActive", 6)) class CpsmAutoLearnEnable(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("on", 1), ("off", 2)) class CpsmClearStats(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("clear", 1), ("noop", 2)) class CpsmClearAutoLearnDb(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("clearOnVsan", 1), ("clearOnIntf", 2), ("noop", 3)) class CpsmDiffDb(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("configDb", 1), ("activeDb", 2), ("noop", 3)) class CpsmDiffReason(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("extra", 1), ("missing", 2), ("conflict", 3)) class CpsmStatsCounter(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 4294967295) class CpsmViolationReasonCode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("unknown", 1), ("noSwwn", 2), ("domIdMismatch", 3), ("efmdDbMismatch", 4), ("noRespFromRemote", 5)) cpsmPortBindTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1), ) if mibBuilder.loadTexts: cpsmPortBindTable.setStatus('current') cpsmPortBindEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindNwIndex"), (0, "CISCO-PSM-MIB", "cpsmPortBindIndex")) if mibBuilder.loadTexts: cpsmPortBindEntry.setStatus('current') cpsmPortBindNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindNwType.setStatus('current') cpsmPortBindNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindNwIndex.setStatus('current') cpsmPortBindIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4096))) if mibBuilder.loadTexts: cpsmPortBindIndex.setStatus('current') cpsmPortBindLoginDevType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 4), CpsmPortBindDevType().clone('pWwn')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpsmPortBindLoginDevType.setStatus('current') cpsmPortBindLoginDev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 5), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(6, 6), ValueSizeConstraint(8, 8), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpsmPortBindLoginDev.setStatus('current') cpsmPortBindLoginPointType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 6), CpsmPortBindSwPortType().clone('fwwn')).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpsmPortBindLoginPointType.setStatus('current') cpsmPortBindLoginPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 7), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(4, 4), ValueSizeConstraint(8, 8), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpsmPortBindLoginPoint.setStatus('current') cpsmPortBindRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpsmPortBindRowStatus.setStatus('current') cpsmPortBindActivateTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2), ) if mibBuilder.loadTexts: cpsmPortBindActivateTable.setStatus('current') cpsmPortBindActivateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindNwIndex")) if mibBuilder.loadTexts: cpsmPortBindActivateEntry.setStatus('current') cpsmPortBindActivate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1, 1), CpsmDbActivate()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmPortBindActivate.setStatus('current') cpsmPortBindResult = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1, 2), CpsmActivateResult()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindResult.setStatus('current') cpsmPortBindLastActTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLastActTime.setStatus('current') cpsmPortBindActState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindActState.setStatus('current') cpsmFabricBindTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3), ) if mibBuilder.loadTexts: cpsmFabricBindTable.setStatus('current') cpsmFabricBindEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindNwType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindNwIndex"), (0, "CISCO-PSM-MIB", "cpsmFabricBindIndex")) if mibBuilder.loadTexts: cpsmFabricBindEntry.setStatus('current') cpsmFabricBindNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindNwType.setStatus('current') cpsmFabricBindNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindNwIndex.setStatus('current') cpsmFabricBindIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4096))) if mibBuilder.loadTexts: cpsmFabricBindIndex.setStatus('current') cpsmFabricBindSwitchWwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpsmFabricBindSwitchWwn.setStatus('current') cpsmFabricBindDomId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 5), DomainId()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpsmFabricBindDomId.setStatus('current') cpsmFabricBindRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpsmFabricBindRowStatus.setStatus('current') cpsmFabricBindActivateTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4), ) if mibBuilder.loadTexts: cpsmFabricBindActivateTable.setStatus('current') cpsmFabricBindActivateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindNwType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindNwIndex")) if mibBuilder.loadTexts: cpsmFabricBindActivateEntry.setStatus('current') cpsmFabricBindActivate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1, 1), CpsmDbActivate()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmFabricBindActivate.setStatus('current') cpsmFabricBindResult = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1, 2), CpsmActivateResult()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindResult.setStatus('current') cpsmFabricBindLastActTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindLastActTime.setStatus('current') cpsmFabricBindActState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindActState.setStatus('current') cpsmPortBindCopyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 5), ) if mibBuilder.loadTexts: cpsmPortBindCopyTable.setStatus('current') cpsmPortBindCopyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 5, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindNwIndex")) if mibBuilder.loadTexts: cpsmPortBindCopyEntry.setStatus('current') cpsmPortBindCopyActToConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("copy", 1), ("noop", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmPortBindCopyActToConfig.setStatus('current') cpsmPortBindLastChangeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 5, 1, 2), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLastChangeTime.setStatus('current') cpsmFabricBindCopyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 6), ) if mibBuilder.loadTexts: cpsmFabricBindCopyTable.setStatus('current') cpsmFabricBindCopyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 6, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindNwType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindNwIndex")) if mibBuilder.loadTexts: cpsmFabricBindCopyEntry.setStatus('current') cpsmFabricBindCopyActToConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 6, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("copy", 1), ("noop", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmFabricBindCopyActToConfig.setStatus('current') cpsmFabricBindLastChangeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 6, 1, 2), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindLastChangeTime.setStatus('current') cpsmPortBindEnfTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7), ) if mibBuilder.loadTexts: cpsmPortBindEnfTable.setStatus('current') cpsmPortBindEnfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindEnfNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindEnfNwIndex"), (0, "CISCO-PSM-MIB", "cpsmPortBindEnfIndex")) if mibBuilder.loadTexts: cpsmPortBindEnfEntry.setStatus('current') cpsmPortBindEnfNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindEnfNwType.setStatus('current') cpsmPortBindEnfNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindEnfNwIndex.setStatus('current') cpsmPortBindEnfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4096))) if mibBuilder.loadTexts: cpsmPortBindEnfIndex.setStatus('current') cpsmPortBindEnfLoginDevType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 4), CpsmPortBindDevType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindEnfLoginDevType.setStatus('current') cpsmPortBindEnfLoginDev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 5), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(6, 6), ValueSizeConstraint(8, 8), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindEnfLoginDev.setStatus('current') cpsmPortBindEnfLoginPointType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 6), CpsmPortBindSwPortType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindEnfLoginPointType.setStatus('current') cpsmPortBindEnfLoginPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 7), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(4, 4), ValueSizeConstraint(8, 8), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindEnfLoginPoint.setStatus('current') cpsmPortBindEnfIsLearnt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindEnfIsLearnt.setStatus('current') cpsmFabricBindEnfTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8), ) if mibBuilder.loadTexts: cpsmFabricBindEnfTable.setStatus('current') cpsmFabricBindEnfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindEnfNwType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindEnfNwIndex"), (0, "CISCO-PSM-MIB", "cpsmFabricBindEnfIndex")) if mibBuilder.loadTexts: cpsmFabricBindEnfEntry.setStatus('current') cpsmFabricBindEnfNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindEnfNwType.setStatus('current') cpsmFabricBindEnfNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindEnfNwIndex.setStatus('current') cpsmFabricBindEnfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4096))) if mibBuilder.loadTexts: cpsmFabricBindEnfIndex.setStatus('current') cpsmFabricBindEnfSwitchWwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindEnfSwitchWwn.setStatus('current') cpsmFabricBindEnfDomId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 5), DomainId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindEnfDomId.setStatus('current') cpsmFabricBindEnfIsLearnt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindEnfIsLearnt.setStatus('current') cpsmPortBindAutoLearnTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9), ) if mibBuilder.loadTexts: cpsmPortBindAutoLearnTable.setStatus('current') cpsmPortBindAutoLearnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindAutoLearnIndexType"), (0, "CISCO-PSM-MIB", "cpsmPortBindAutoLearnIndex")) if mibBuilder.loadTexts: cpsmPortBindAutoLearnEntry.setStatus('current') cpsmPortBindAutoLearnIndexType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindAutoLearnIndexType.setStatus('current') cpsmPortBindAutoLearnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindAutoLearnIndex.setStatus('current') cpsmPortBindAutoLearnEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9, 1, 3), CpsmAutoLearnEnable().clone('off')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmPortBindAutoLearnEnable.setStatus('current') cpsmFabricBindAutoLearnTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10), ) if mibBuilder.loadTexts: cpsmFabricBindAutoLearnTable.setStatus('deprecated') cpsmFabricBindAutoLearnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindAutoLearnIndexType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindAutoLearnIndex")) if mibBuilder.loadTexts: cpsmFabricBindAutoLearnEntry.setStatus('deprecated') cpsmFabricBindAutoLearnIndexType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindAutoLearnIndexType.setStatus('deprecated') cpsmFabricBindAutoLearnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindAutoLearnIndex.setStatus('deprecated') cpsmFabricBindAutoLearnEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10, 1, 3), CpsmAutoLearnEnable().clone('off')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmFabricBindAutoLearnEnable.setStatus('deprecated') cpsmPortBindClearTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11), ) if mibBuilder.loadTexts: cpsmPortBindClearTable.setStatus('current') cpsmPortBindClearEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindClearNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindClearNwIndex")) if mibBuilder.loadTexts: cpsmPortBindClearEntry.setStatus('current') cpsmPortBindClearNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindClearNwType.setStatus('current') cpsmPortBindClearNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindClearNwIndex.setStatus('current') cpsmPortBindClearStats = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 3), CpsmClearStats()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmPortBindClearStats.setStatus('current') cpsmPortBindClearAutoLearnDb = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 4), CpsmClearAutoLearnDb()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmPortBindClearAutoLearnDb.setStatus('current') cpsmPortBindClearAutoLearnIntf = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 5), PortMemberList().clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmPortBindClearAutoLearnIntf.setStatus('current') cpsmFabricBindClearTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12), ) if mibBuilder.loadTexts: cpsmFabricBindClearTable.setStatus('current') cpsmFabricBindClearEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindClearNwType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindClearNwIndex")) if mibBuilder.loadTexts: cpsmFabricBindClearEntry.setStatus('current') cpsmFabricBindClearNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindClearNwType.setStatus('current') cpsmFabricBindClearNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindClearNwIndex.setStatus('current') cpsmFabricBindClearStats = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 3), CpsmClearStats()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmFabricBindClearStats.setStatus('current') cpsmFabricBindClearAutoLearnDb = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 4), CpsmClearAutoLearnDb()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmFabricBindClearAutoLearnDb.setStatus('current') cpsmFabricBindClearAutoLearnIntf = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 5), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmFabricBindClearAutoLearnIntf.setStatus('deprecated') cpsmPortBindDiffConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13), ) if mibBuilder.loadTexts: cpsmPortBindDiffConfigTable.setStatus('current') cpsmPortBindDiffConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindDiffConfigNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindDiffConfigNwIndex")) if mibBuilder.loadTexts: cpsmPortBindDiffConfigEntry.setStatus('current') cpsmPortBindDiffConfigNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindDiffConfigNwType.setStatus('current') cpsmPortBindDiffConfigNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindDiffConfigNwIndex.setStatus('current') cpsmPortBindDiffConfigDb = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13, 1, 3), CpsmDiffDb()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmPortBindDiffConfigDb.setStatus('current') cpsmPortBindDiffTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14), ) if mibBuilder.loadTexts: cpsmPortBindDiffTable.setStatus('current') cpsmPortBindDiffEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindDiffNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindDiffNwIndex"), (0, "CISCO-PSM-MIB", "cpsmPortBindDiffIndex")) if mibBuilder.loadTexts: cpsmPortBindDiffEntry.setStatus('current') cpsmPortBindDiffNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindDiffNwType.setStatus('current') cpsmPortBindDiffNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindDiffNwIndex.setStatus('current') cpsmPortBindDiffIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4096))) if mibBuilder.loadTexts: cpsmPortBindDiffIndex.setStatus('current') cpsmPortBindDiffReason = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 4), CpsmDiffReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindDiffReason.setStatus('current') cpsmPortBindDiffLoginDevType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 5), CpsmPortBindDevType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindDiffLoginDevType.setStatus('current') cpsmPortBindDiffLoginDev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 6), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(6, 6), ValueSizeConstraint(8, 8), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindDiffLoginDev.setStatus('current') cpsmPortBindDiffLoginPointType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 7), CpsmPortBindSwPortType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindDiffLoginPointType.setStatus('current') cpsmPortBindDiffLoginPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 8), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(4, 4), ValueSizeConstraint(8, 8), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindDiffLoginPoint.setStatus('current') cpsmFabricBindDiffConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15), ) if mibBuilder.loadTexts: cpsmFabricBindDiffConfigTable.setStatus('current') cpsmFabricBindDiffConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindDiffConfigNwType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindDiffConfigNwIndex")) if mibBuilder.loadTexts: cpsmFabricBindDiffConfigEntry.setStatus('current') cpsmFabricBindDiffConfigNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindDiffConfigNwType.setStatus('current') cpsmFabricBindDiffConfigNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindDiffConfigNwIndex.setStatus('current') cpsmFabricBindDiffConfigDb = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15, 1, 3), CpsmDiffDb()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmFabricBindDiffConfigDb.setStatus('current') cpsmFabricBindDiffTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16), ) if mibBuilder.loadTexts: cpsmFabricBindDiffTable.setStatus('current') cpsmFabricBindDiffEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindDiffNwType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindDiffNwIndex"), (0, "CISCO-PSM-MIB", "cpsmFabricBindDiffIndex")) if mibBuilder.loadTexts: cpsmFabricBindDiffEntry.setStatus('current') cpsmFabricBindDiffNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindDiffNwType.setStatus('current') cpsmFabricBindDiffNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindDiffNwIndex.setStatus('current') cpsmFabricBindDiffIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4096))) if mibBuilder.loadTexts: cpsmFabricBindDiffIndex.setStatus('current') cpsmFabricBindDiffReason = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 4), CpsmDiffReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDiffReason.setStatus('current') cpsmFabricBindDiffSwitchWwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDiffSwitchWwn.setStatus('current') cpsmFabricBindDiffDomId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 6), DomainId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDiffDomId.setStatus('current') cpsmPortBindStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1), ) if mibBuilder.loadTexts: cpsmPortBindStatsTable.setStatus('current') cpsmPortBindStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindVsanVlanType"), (0, "CISCO-PSM-MIB", "cpsmPortBindVsanVlanIndex")) if mibBuilder.loadTexts: cpsmPortBindStatsEntry.setStatus('current') cpsmPortBindVsanVlanType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindVsanVlanType.setStatus('current') cpsmPortBindVsanVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindVsanVlanIndex.setStatus('current') cpsmPortBindAllowedLogins = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1, 3), CpsmStatsCounter()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindAllowedLogins.setStatus('current') cpsmPortBindDeniedLogins = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1, 4), CpsmStatsCounter()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindDeniedLogins.setStatus('current') cpsmFabricBindStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2), ) if mibBuilder.loadTexts: cpsmFabricBindStatsTable.setStatus('current') cpsmFabricBindStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindVsanVlanType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindVsanVlanIndex")) if mibBuilder.loadTexts: cpsmFabricBindStatsEntry.setStatus('current') cpsmFabricBindVsanVlanType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindVsanVlanType.setStatus('current') cpsmFabricBindVsanVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindVsanVlanIndex.setStatus('current') cpsmFabricBindAllowedReqs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1, 3), CpsmStatsCounter()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindAllowedReqs.setStatus('current') cpsmFabricBindDeniedReqs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1, 4), CpsmStatsCounter()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDeniedReqs.setStatus('current') cpsmPortBindViolationTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3), ) if mibBuilder.loadTexts: cpsmPortBindViolationTable.setStatus('current') cpsmPortBindViolationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindViolationNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindViolationNwIndex"), (0, "CISCO-PSM-MIB", "cpsmPortBindViolationIndex")) if mibBuilder.loadTexts: cpsmPortBindViolationEntry.setStatus('current') cpsmPortBindViolationNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindViolationNwType.setStatus('current') cpsmPortBindViolationNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindViolationNwIndex.setStatus('current') cpsmPortBindViolationIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))) if mibBuilder.loadTexts: cpsmPortBindViolationIndex.setStatus('current') cpsmPortBindLoginPwwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 4), FcNameIdOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLoginPwwn.setStatus('current') cpsmPortBindLoginNwwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 5), FcNameIdOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLoginNwwn.setStatus('current') cpsmPortBindLoginSwwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 6), FcNameIdOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLoginSwwn.setStatus('current') cpsmPortBindLoginPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 7), FcNameId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLoginPort.setStatus('current') cpsmPortBindLoginTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 8), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLoginTime.setStatus('current') cpsmPortBindLoginCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLoginCount.setStatus('current') cpsmPortBindLoginIntf = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 10), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindLoginIntf.setStatus('current') cpsmFabricBindViolationTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4), ) if mibBuilder.loadTexts: cpsmFabricBindViolationTable.setStatus('deprecated') cpsmFabricBindViolationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindViolationIndex")) if mibBuilder.loadTexts: cpsmFabricBindViolationEntry.setStatus('deprecated') cpsmFabricBindViolationIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))) if mibBuilder.loadTexts: cpsmFabricBindViolationIndex.setStatus('deprecated') cpsmFabricBindSwwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 2), FcNameId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindSwwn.setStatus('deprecated') cpsmFabricBindLocalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 3), FcNameId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindLocalPort.setStatus('deprecated') cpsmFabricBindDenialTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 4), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDenialTime.setStatus('deprecated') cpsmFabricBindLocalIntf = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 5), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindLocalIntf.setStatus('deprecated') cpsmFabricBindViolationNewTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5), ) if mibBuilder.loadTexts: cpsmFabricBindViolationNewTable.setStatus('current') cpsmFabricBindViolationNewEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindViolationNwTypeR1"), (0, "CISCO-PSM-MIB", "cpsmFabricBindViolationNwIndexR1"), (0, "CISCO-PSM-MIB", "cpsmFabricBindViolationIndexR1")) if mibBuilder.loadTexts: cpsmFabricBindViolationNewEntry.setStatus('current') cpsmFabricBindViolationNwTypeR1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindViolationNwTypeR1.setStatus('current') cpsmFabricBindViolationNwIndexR1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindViolationNwIndexR1.setStatus('current') cpsmFabricBindViolationIndexR1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))) if mibBuilder.loadTexts: cpsmFabricBindViolationIndexR1.setStatus('current') cpsmFabricBindSwwnR1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 4), FcNameId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindSwwnR1.setStatus('current') cpsmFabricBindDenialTimeR1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 5), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDenialTimeR1.setStatus('current') cpsmFabricBindDenialCountR1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDenialCountR1.setStatus('current') cpsmFabricBindDenialDomId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 7), DomainIdOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDenialDomId.setStatus('current') cpsmFabricBindDenialReasonCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 8), CpsmViolationReasonCode()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindDenialReasonCode.setStatus('current') cpsmEfmdStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6), ) if mibBuilder.loadTexts: cpsmEfmdStatsTable.setStatus('current') cpsmEfmdStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1), ).setIndexNames((0, "CISCO-VSAN-MIB", "vsanIndex")) if mibBuilder.loadTexts: cpsmEfmdStatsEntry.setStatus('current') cpsmEfmdTxMergeReqs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdTxMergeReqs.setStatus('current') cpsmEfmdRxMergeReqs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdRxMergeReqs.setStatus('current') cpsmEfmdTxMergeAccs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdTxMergeAccs.setStatus('current') cpsmEfmdRxMergeAccs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdRxMergeAccs.setStatus('current') cpsmEfmdTxMergeRejs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdTxMergeRejs.setStatus('current') cpsmEfmdRxMergeRejs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdRxMergeRejs.setStatus('current') cpsmEfmdTxMergeBusys = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdTxMergeBusys.setStatus('current') cpsmEfmdRxMergeBusys = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdRxMergeBusys.setStatus('current') cpsmEfmdTxMergeErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdTxMergeErrs.setStatus('current') cpsmEfmdRxMergeErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmEfmdRxMergeErrs.setStatus('current') cpsmNotifyEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 17), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmNotifyEnable.setStatus('current') cpsmEfmdConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 18), ) if mibBuilder.loadTexts: cpsmEfmdConfigTable.setStatus('current') cpsmEfmdConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 18, 1), ).setIndexNames((0, "CISCO-VSAN-MIB", "vsanIndex")) if mibBuilder.loadTexts: cpsmEfmdConfigEntry.setStatus('current') cpsmEfmdConfigEnforce = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 18, 1, 1), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpsmEfmdConfigEnforce.setStatus('current') cpsmPortBindNextFreeTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19), ) if mibBuilder.loadTexts: cpsmPortBindNextFreeTable.setStatus('current') cpsmPortBindNextFreeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmPortBindNextFreeNwType"), (0, "CISCO-PSM-MIB", "cpsmPortBindNextFreeNwIndex")) if mibBuilder.loadTexts: cpsmPortBindNextFreeEntry.setStatus('current') cpsmPortBindNextFreeNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmPortBindNextFreeNwType.setStatus('current') cpsmPortBindNextFreeNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindNextFreeNwIndex.setStatus('current') cpsmPortBindNextFreeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmPortBindNextFreeIndex.setStatus('current') cpsmFabricBindNextFreeTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20), ) if mibBuilder.loadTexts: cpsmFabricBindNextFreeTable.setStatus('current') cpsmFabricBindNextFreeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20, 1), ).setIndexNames((0, "CISCO-PSM-MIB", "cpsmFabricBindNextFreeNwType"), (0, "CISCO-PSM-MIB", "cpsmFabricBindNextFreeNwIndex")) if mibBuilder.loadTexts: cpsmFabricBindNextFreeEntry.setStatus('current') cpsmFabricBindNextFreeNwType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20, 1, 1), CpsmVirtNwType()) if mibBuilder.loadTexts: cpsmFabricBindNextFreeNwType.setStatus('current') cpsmFabricBindNextFreeNwIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindNextFreeNwIndex.setStatus('current') cpsmFabricBindNextFreeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpsmFabricBindNextFreeIndex.setStatus('current') ciscoPsmPortBindFPortDenyNotify = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 364, 0, 1)).setObjects(("CISCO-PSM-MIB", "cpsmPortBindLoginPwwn"), ("CISCO-PSM-MIB", "cpsmPortBindLoginPort"), ("CISCO-PSM-MIB", "cpsmPortBindLoginTime")) if mibBuilder.loadTexts: ciscoPsmPortBindFPortDenyNotify.setStatus('current') ciscoPsmPortBindEPortDenyNotify = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 364, 0, 2)).setObjects(("CISCO-PSM-MIB", "cpsmPortBindLoginSwwn"), ("CISCO-PSM-MIB", "cpsmPortBindLoginPort"), ("CISCO-PSM-MIB", "cpsmPortBindLoginTime")) if mibBuilder.loadTexts: ciscoPsmPortBindEPortDenyNotify.setStatus('current') ciscoPsmFabricBindDenyNotify = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 364, 0, 3)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindSwwn"), ("CISCO-PSM-MIB", "cpsmFabricBindLocalPort"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialTime")) if mibBuilder.loadTexts: ciscoPsmFabricBindDenyNotify.setStatus('deprecated') ciscoPsmFabricBindDenyNotifyNew = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 364, 0, 4)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindSwwnR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialTimeR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialReasonCode")) if mibBuilder.loadTexts: ciscoPsmFabricBindDenyNotifyNew.setStatus('current') ciscoPsmMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1)) ciscoPsmMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2)) ciscoPsmMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 1)).setObjects(("CISCO-PSM-MIB", "ciscoPsmPortBindConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindStatsGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindStatsGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindNotifyGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindNotifyGroup"), ("CISCO-PSM-MIB", "ciscoPsmNotifyEnableGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindAutoLearnGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindAutoLearnGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmMIBCompliance = ciscoPsmMIBCompliance.setStatus('deprecated') ciscoPsmMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 2)).setObjects(("CISCO-PSM-MIB", "ciscoPsmPortBindConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindConfigGroup1"), ("CISCO-PSM-MIB", "ciscoPsmPortBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindStatsGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindStatsGroup1"), ("CISCO-PSM-MIB", "ciscoPsmPortBindNotifyGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindNotifyGroupR1"), ("CISCO-PSM-MIB", "ciscoPsmNotifyEnableGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindAutoLearnGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindAutoLearnGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmMIBComplianceRev1 = ciscoPsmMIBComplianceRev1.setStatus('deprecated') ciscoPsmMIBComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 3)).setObjects(("CISCO-PSM-MIB", "ciscoPsmPortBindConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindConfigGroup1"), ("CISCO-PSM-MIB", "ciscoPsmPortBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindStatsGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindStatsGroup1"), ("CISCO-PSM-MIB", "ciscoPsmPortBindNotifyGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindNotifyGroupR1"), ("CISCO-PSM-MIB", "ciscoPsmNotifyEnableGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindAutoLearnGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmMIBComplianceRev2 = ciscoPsmMIBComplianceRev2.setStatus('deprecated') ciscoPsmMIBComplianceRev3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 4)).setObjects(("CISCO-PSM-MIB", "ciscoPsmPortBindConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindConfigGroup1"), ("CISCO-PSM-MIB", "ciscoPsmPortBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindStatsGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindStatsGroup2"), ("CISCO-PSM-MIB", "ciscoPsmPortBindNotifyGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindNotifyGroupR1"), ("CISCO-PSM-MIB", "ciscoPsmNotifyEnableGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindAutoLearnGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmMIBComplianceRev3 = ciscoPsmMIBComplianceRev3.setStatus('deprecated') ciscoPsmMIBComplianceRev4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 5)).setObjects(("CISCO-PSM-MIB", "ciscoPsmPortBindConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindConfigGroup1"), ("CISCO-PSM-MIB", "ciscoPsmPortBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindStatsGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindStatsGroup3"), ("CISCO-PSM-MIB", "ciscoPsmPortBindNotifyGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindNotifyGroupR1"), ("CISCO-PSM-MIB", "ciscoPsmNotifyEnableGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindAutoLearnGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmMIBComplianceRev4 = ciscoPsmMIBComplianceRev4.setStatus('deprecated') ciscoPsmMIBComplianceRev5 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 6)).setObjects(("CISCO-PSM-MIB", "ciscoPsmPortBindConfigGroup1"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindConfigGroup2"), ("CISCO-PSM-MIB", "ciscoPsmPortBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindEnforcedGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindStatsGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindStatsGroup3"), ("CISCO-PSM-MIB", "ciscoPsmPortBindNotifyGroup"), ("CISCO-PSM-MIB", "ciscoPsmFabricBindNotifyGroupR1"), ("CISCO-PSM-MIB", "ciscoPsmNotifyEnableGroup"), ("CISCO-PSM-MIB", "ciscoPsmPortBindAutoLearnGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdConfigGroup"), ("CISCO-PSM-MIB", "ciscoPsmEfmdStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmMIBComplianceRev5 = ciscoPsmMIBComplianceRev5.setStatus('current') ciscoPsmPortBindConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 1)).setObjects(("CISCO-PSM-MIB", "cpsmPortBindLoginDevType"), ("CISCO-PSM-MIB", "cpsmPortBindLoginDev"), ("CISCO-PSM-MIB", "cpsmPortBindLoginPointType"), ("CISCO-PSM-MIB", "cpsmPortBindLoginPoint"), ("CISCO-PSM-MIB", "cpsmPortBindRowStatus"), ("CISCO-PSM-MIB", "cpsmPortBindActivate"), ("CISCO-PSM-MIB", "cpsmPortBindResult"), ("CISCO-PSM-MIB", "cpsmPortBindLastActTime"), ("CISCO-PSM-MIB", "cpsmPortBindActState"), ("CISCO-PSM-MIB", "cpsmPortBindCopyActToConfig"), ("CISCO-PSM-MIB", "cpsmPortBindLastChangeTime"), ("CISCO-PSM-MIB", "cpsmPortBindClearStats"), ("CISCO-PSM-MIB", "cpsmPortBindClearAutoLearnDb"), ("CISCO-PSM-MIB", "cpsmPortBindClearAutoLearnIntf"), ("CISCO-PSM-MIB", "cpsmPortBindDiffConfigDb"), ("CISCO-PSM-MIB", "cpsmPortBindDiffReason"), ("CISCO-PSM-MIB", "cpsmPortBindDiffLoginDevType"), ("CISCO-PSM-MIB", "cpsmPortBindDiffLoginDev"), ("CISCO-PSM-MIB", "cpsmPortBindDiffLoginPointType"), ("CISCO-PSM-MIB", "cpsmPortBindDiffLoginPoint")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmPortBindConfigGroup = ciscoPsmPortBindConfigGroup.setStatus('deprecated') ciscoPsmFabricBindConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 2)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindSwitchWwn"), ("CISCO-PSM-MIB", "cpsmFabricBindDomId"), ("CISCO-PSM-MIB", "cpsmFabricBindRowStatus"), ("CISCO-PSM-MIB", "cpsmFabricBindActivate"), ("CISCO-PSM-MIB", "cpsmFabricBindResult"), ("CISCO-PSM-MIB", "cpsmFabricBindLastActTime"), ("CISCO-PSM-MIB", "cpsmFabricBindActState"), ("CISCO-PSM-MIB", "cpsmFabricBindCopyActToConfig"), ("CISCO-PSM-MIB", "cpsmFabricBindLastChangeTime"), ("CISCO-PSM-MIB", "cpsmFabricBindClearStats"), ("CISCO-PSM-MIB", "cpsmFabricBindClearAutoLearnDb"), ("CISCO-PSM-MIB", "cpsmFabricBindClearAutoLearnIntf"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffConfigDb"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffReason"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffSwitchWwn"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffDomId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindConfigGroup = ciscoPsmFabricBindConfigGroup.setStatus('deprecated') ciscoPsmPortBindEnforcedGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 3)).setObjects(("CISCO-PSM-MIB", "cpsmPortBindEnfLoginDevType"), ("CISCO-PSM-MIB", "cpsmPortBindEnfLoginDev"), ("CISCO-PSM-MIB", "cpsmPortBindEnfLoginPointType"), ("CISCO-PSM-MIB", "cpsmPortBindEnfLoginPoint"), ("CISCO-PSM-MIB", "cpsmPortBindEnfIsLearnt")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmPortBindEnforcedGroup = ciscoPsmPortBindEnforcedGroup.setStatus('current') ciscoPsmFabricBindEnforcedGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 4)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindEnfSwitchWwn"), ("CISCO-PSM-MIB", "cpsmFabricBindEnfDomId"), ("CISCO-PSM-MIB", "cpsmFabricBindEnfIsLearnt")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindEnforcedGroup = ciscoPsmFabricBindEnforcedGroup.setStatus('current') ciscoPsmPortBindStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 5)).setObjects(("CISCO-PSM-MIB", "cpsmPortBindAllowedLogins"), ("CISCO-PSM-MIB", "cpsmPortBindDeniedLogins"), ("CISCO-PSM-MIB", "cpsmPortBindLoginPwwn"), ("CISCO-PSM-MIB", "cpsmPortBindLoginNwwn"), ("CISCO-PSM-MIB", "cpsmPortBindLoginSwwn"), ("CISCO-PSM-MIB", "cpsmPortBindLoginPort"), ("CISCO-PSM-MIB", "cpsmPortBindLoginTime"), ("CISCO-PSM-MIB", "cpsmPortBindLoginCount"), ("CISCO-PSM-MIB", "cpsmPortBindLoginIntf")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmPortBindStatsGroup = ciscoPsmPortBindStatsGroup.setStatus('current') ciscoPsmFabricBindStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 6)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindAllowedReqs"), ("CISCO-PSM-MIB", "cpsmFabricBindDeniedReqs"), ("CISCO-PSM-MIB", "cpsmFabricBindSwwn"), ("CISCO-PSM-MIB", "cpsmFabricBindLocalPort"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialTime"), ("CISCO-PSM-MIB", "cpsmFabricBindLocalIntf")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindStatsGroup = ciscoPsmFabricBindStatsGroup.setStatus('deprecated') ciscoPsmPortBindNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 7)).setObjects(("CISCO-PSM-MIB", "ciscoPsmPortBindFPortDenyNotify"), ("CISCO-PSM-MIB", "ciscoPsmPortBindEPortDenyNotify")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmPortBindNotifyGroup = ciscoPsmPortBindNotifyGroup.setStatus('current') ciscoPsmFabricBindNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 8)).setObjects(("CISCO-PSM-MIB", "ciscoPsmFabricBindDenyNotify")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindNotifyGroup = ciscoPsmFabricBindNotifyGroup.setStatus('deprecated') ciscoPsmPortBindAutoLearnGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 9)).setObjects(("CISCO-PSM-MIB", "cpsmPortBindAutoLearnEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmPortBindAutoLearnGroup = ciscoPsmPortBindAutoLearnGroup.setStatus('current') ciscoPsmFabricBindAutoLearnGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 10)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindAutoLearnEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindAutoLearnGroup = ciscoPsmFabricBindAutoLearnGroup.setStatus('deprecated') ciscoPsmNotifyEnableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 11)).setObjects(("CISCO-PSM-MIB", "cpsmNotifyEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmNotifyEnableGroup = ciscoPsmNotifyEnableGroup.setStatus('current') ciscoPsmFabricBindConfigGroup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 12)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindSwitchWwn"), ("CISCO-PSM-MIB", "cpsmFabricBindDomId"), ("CISCO-PSM-MIB", "cpsmFabricBindRowStatus"), ("CISCO-PSM-MIB", "cpsmFabricBindActivate"), ("CISCO-PSM-MIB", "cpsmFabricBindResult"), ("CISCO-PSM-MIB", "cpsmFabricBindLastActTime"), ("CISCO-PSM-MIB", "cpsmFabricBindActState"), ("CISCO-PSM-MIB", "cpsmFabricBindCopyActToConfig"), ("CISCO-PSM-MIB", "cpsmFabricBindLastChangeTime"), ("CISCO-PSM-MIB", "cpsmFabricBindClearStats"), ("CISCO-PSM-MIB", "cpsmFabricBindClearAutoLearnDb"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffConfigDb"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffReason"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffSwitchWwn"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffDomId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindConfigGroup1 = ciscoPsmFabricBindConfigGroup1.setStatus('deprecated') ciscoPsmFabricBindStatsGroup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 13)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindAllowedReqs"), ("CISCO-PSM-MIB", "cpsmFabricBindDeniedReqs"), ("CISCO-PSM-MIB", "cpsmFabricBindSwwnR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialTimeR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialCountR1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindStatsGroup1 = ciscoPsmFabricBindStatsGroup1.setStatus('deprecated') ciscoPsmFabricBindNotifyGroupR1 = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 14)).setObjects(("CISCO-PSM-MIB", "ciscoPsmFabricBindDenyNotifyNew")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindNotifyGroupR1 = ciscoPsmFabricBindNotifyGroupR1.setStatus('current') ciscoPsmEfmdConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 15)).setObjects(("CISCO-PSM-MIB", "cpsmEfmdConfigEnforce")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmEfmdConfigGroup = ciscoPsmEfmdConfigGroup.setStatus('current') ciscoPsmEfmdStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 16)).setObjects(("CISCO-PSM-MIB", "cpsmEfmdTxMergeReqs"), ("CISCO-PSM-MIB", "cpsmEfmdRxMergeReqs"), ("CISCO-PSM-MIB", "cpsmEfmdTxMergeAccs"), ("CISCO-PSM-MIB", "cpsmEfmdRxMergeAccs"), ("CISCO-PSM-MIB", "cpsmEfmdTxMergeRejs"), ("CISCO-PSM-MIB", "cpsmEfmdRxMergeRejs"), ("CISCO-PSM-MIB", "cpsmEfmdTxMergeBusys"), ("CISCO-PSM-MIB", "cpsmEfmdRxMergeBusys"), ("CISCO-PSM-MIB", "cpsmEfmdTxMergeErrs"), ("CISCO-PSM-MIB", "cpsmEfmdRxMergeErrs")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmEfmdStatsGroup = ciscoPsmEfmdStatsGroup.setStatus('current') ciscoPsmFabricBindStatsGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 17)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindAllowedReqs"), ("CISCO-PSM-MIB", "cpsmFabricBindDeniedReqs"), ("CISCO-PSM-MIB", "cpsmFabricBindSwwnR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialTimeR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialCountR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialDomId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindStatsGroup2 = ciscoPsmFabricBindStatsGroup2.setStatus('deprecated') ciscoPsmFabricBindStatsGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 18)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindAllowedReqs"), ("CISCO-PSM-MIB", "cpsmFabricBindDeniedReqs"), ("CISCO-PSM-MIB", "cpsmFabricBindSwwnR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialTimeR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialCountR1"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialDomId"), ("CISCO-PSM-MIB", "cpsmFabricBindDenialReasonCode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindStatsGroup3 = ciscoPsmFabricBindStatsGroup3.setStatus('current') ciscoPsmPortBindConfigGroup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 19)).setObjects(("CISCO-PSM-MIB", "cpsmPortBindLoginDevType"), ("CISCO-PSM-MIB", "cpsmPortBindLoginDev"), ("CISCO-PSM-MIB", "cpsmPortBindLoginPointType"), ("CISCO-PSM-MIB", "cpsmPortBindLoginPoint"), ("CISCO-PSM-MIB", "cpsmPortBindRowStatus"), ("CISCO-PSM-MIB", "cpsmPortBindActivate"), ("CISCO-PSM-MIB", "cpsmPortBindResult"), ("CISCO-PSM-MIB", "cpsmPortBindLastActTime"), ("CISCO-PSM-MIB", "cpsmPortBindActState"), ("CISCO-PSM-MIB", "cpsmPortBindCopyActToConfig"), ("CISCO-PSM-MIB", "cpsmPortBindLastChangeTime"), ("CISCO-PSM-MIB", "cpsmPortBindClearStats"), ("CISCO-PSM-MIB", "cpsmPortBindClearAutoLearnDb"), ("CISCO-PSM-MIB", "cpsmPortBindClearAutoLearnIntf"), ("CISCO-PSM-MIB", "cpsmPortBindDiffConfigDb"), ("CISCO-PSM-MIB", "cpsmPortBindDiffReason"), ("CISCO-PSM-MIB", "cpsmPortBindDiffLoginDevType"), ("CISCO-PSM-MIB", "cpsmPortBindDiffLoginDev"), ("CISCO-PSM-MIB", "cpsmPortBindDiffLoginPointType"), ("CISCO-PSM-MIB", "cpsmPortBindDiffLoginPoint"), ("CISCO-PSM-MIB", "cpsmPortBindNextFreeIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmPortBindConfigGroup1 = ciscoPsmPortBindConfigGroup1.setStatus('current') ciscoPsmFabricBindConfigGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 20)).setObjects(("CISCO-PSM-MIB", "cpsmFabricBindSwitchWwn"), ("CISCO-PSM-MIB", "cpsmFabricBindDomId"), ("CISCO-PSM-MIB", "cpsmFabricBindRowStatus"), ("CISCO-PSM-MIB", "cpsmFabricBindActivate"), ("CISCO-PSM-MIB", "cpsmFabricBindResult"), ("CISCO-PSM-MIB", "cpsmFabricBindLastActTime"), ("CISCO-PSM-MIB", "cpsmFabricBindActState"), ("CISCO-PSM-MIB", "cpsmFabricBindCopyActToConfig"), ("CISCO-PSM-MIB", "cpsmFabricBindLastChangeTime"), ("CISCO-PSM-MIB", "cpsmFabricBindClearStats"), ("CISCO-PSM-MIB", "cpsmFabricBindClearAutoLearnDb"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffConfigDb"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffReason"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffSwitchWwn"), ("CISCO-PSM-MIB", "cpsmFabricBindDiffDomId"), ("CISCO-PSM-MIB", "cpsmFabricBindNextFreeIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoPsmFabricBindConfigGroup2 = ciscoPsmFabricBindConfigGroup2.setStatus('current') mibBuilder.exportSymbols("CISCO-PSM-MIB", cpsmPortBindEnfEntry=cpsmPortBindEnfEntry, ciscoPsmPortBindAutoLearnGroup=ciscoPsmPortBindAutoLearnGroup, cpsmFabricBindEnfNwType=cpsmFabricBindEnfNwType, cpsmFabricBindCopyActToConfig=cpsmFabricBindCopyActToConfig, cpsmPortBindDiffTable=cpsmPortBindDiffTable, cpsmFabricBindDenialTime=cpsmFabricBindDenialTime, cpsmFabricBindClearAutoLearnDb=cpsmFabricBindClearAutoLearnDb, ciscoPsmMIBComplianceRev2=ciscoPsmMIBComplianceRev2, cpsmPortBindLoginIntf=cpsmPortBindLoginIntf, cpsmFabricBindEnfIndex=cpsmFabricBindEnfIndex, cpsmPortBindClearAutoLearnDb=cpsmPortBindClearAutoLearnDb, cpsmPortBindAutoLearnTable=cpsmPortBindAutoLearnTable, cpsmPortBindActivate=cpsmPortBindActivate, cpsmPortBindCopyActToConfig=cpsmPortBindCopyActToConfig, cpsmFabricBindClearEntry=cpsmFabricBindClearEntry, cpsmPortBindDiffLoginDevType=cpsmPortBindDiffLoginDevType, cpsmFabricBindViolationTable=cpsmFabricBindViolationTable, ciscoPsmPortBindEnforcedGroup=ciscoPsmPortBindEnforcedGroup, ciscoPsmMIBNotifs=ciscoPsmMIBNotifs, cpsmPortBindDiffIndex=cpsmPortBindDiffIndex, cpsmPortBindVsanVlanType=cpsmPortBindVsanVlanType, cpsmFabricBindNwType=cpsmFabricBindNwType, cpsmPortBindNwIndex=cpsmPortBindNwIndex, cpsmPortBindDiffConfigTable=cpsmPortBindDiffConfigTable, cpsmPortBindActivateEntry=cpsmPortBindActivateEntry, cpsmFabricBindAutoLearnEnable=cpsmFabricBindAutoLearnEnable, cpsmFabricBindClearAutoLearnIntf=cpsmFabricBindClearAutoLearnIntf, cpsmEfmdRxMergeAccs=cpsmEfmdRxMergeAccs, cpsmPortBindClearNwIndex=cpsmPortBindClearNwIndex, cpsmFabricBindViolationNewEntry=cpsmFabricBindViolationNewEntry, cpsmFabricBindDiffNwType=cpsmFabricBindDiffNwType, cpsmFabricBindDiffIndex=cpsmFabricBindDiffIndex, cpsmFabricBindDenialReasonCode=cpsmFabricBindDenialReasonCode, ciscoPsmFabricBindStatsGroup=ciscoPsmFabricBindStatsGroup, cpsmPortBindActivateTable=cpsmPortBindActivateTable, cpsmFabricBindTable=cpsmFabricBindTable, cpsmPortBindCopyTable=cpsmPortBindCopyTable, cpsmFabricBindNwIndex=cpsmFabricBindNwIndex, cpsmFabricBindActState=cpsmFabricBindActState, cpsmPortBindViolationTable=cpsmPortBindViolationTable, cpsmConfiguration=cpsmConfiguration, ciscoPsmPortBindConfigGroup=ciscoPsmPortBindConfigGroup, cpsmFabricBindAutoLearnIndexType=cpsmFabricBindAutoLearnIndexType, cpsmEfmdStatsTable=cpsmEfmdStatsTable, cpsmFabricBindLastActTime=cpsmFabricBindLastActTime, cpsmPortBindAllowedLogins=cpsmPortBindAllowedLogins, cpsmFabricBindSwwn=cpsmFabricBindSwwn, cpsmFabricBindDomId=cpsmFabricBindDomId, cpsmFabricBindDiffReason=cpsmFabricBindDiffReason, ciscoPsmMIBComplianceRev3=ciscoPsmMIBComplianceRev3, ciscoPsmNotifyEnableGroup=ciscoPsmNotifyEnableGroup, cpsmFabricBindDiffNwIndex=cpsmFabricBindDiffNwIndex, cpsmEfmdConfigEntry=cpsmEfmdConfigEntry, cpsmFabricBindViolationIndex=cpsmFabricBindViolationIndex, cpsmPortBindNextFreeTable=cpsmPortBindNextFreeTable, ciscoPsmMIBGroups=ciscoPsmMIBGroups, cpsmPortBindEnfNwType=cpsmPortBindEnfNwType, cpsmEfmdTxMergeReqs=cpsmEfmdTxMergeReqs, CpsmViolationReasonCode=CpsmViolationReasonCode, cpsmPortBindDiffLoginDev=cpsmPortBindDiffLoginDev, cpsmFabricBindDiffEntry=cpsmFabricBindDiffEntry, cpsmEfmdRxMergeBusys=cpsmEfmdRxMergeBusys, ciscoPsmPortBindConfigGroup1=ciscoPsmPortBindConfigGroup1, cpsmFabricBindRowStatus=cpsmFabricBindRowStatus, CpsmDbActivate=CpsmDbActivate, cpsmEfmdTxMergeRejs=cpsmEfmdTxMergeRejs, cpsmFabricBindViolationNwIndexR1=cpsmFabricBindViolationNwIndexR1, cpsmPortBindLoginDev=cpsmPortBindLoginDev, cpsmFabricBindSwwnR1=cpsmFabricBindSwwnR1, cpsmPortBindNextFreeIndex=cpsmPortBindNextFreeIndex, cpsmEfmdStatsEntry=cpsmEfmdStatsEntry, CpsmPortBindSwPortType=CpsmPortBindSwPortType, ciscoPsmFabricBindDenyNotify=ciscoPsmFabricBindDenyNotify, cpsmFabricBindDeniedReqs=cpsmFabricBindDeniedReqs, cpsmFabricBindEntry=cpsmFabricBindEntry, cpsmPortBindAutoLearnEnable=cpsmPortBindAutoLearnEnable, cpsmPortBindDiffConfigEntry=cpsmPortBindDiffConfigEntry, cpsmEfmdConfigEnforce=cpsmEfmdConfigEnforce, cpsmPortBindLastChangeTime=cpsmPortBindLastChangeTime, cpsmPortBindEnfTable=cpsmPortBindEnfTable, cpsmPortBindDiffConfigNwIndex=cpsmPortBindDiffConfigNwIndex, cpsmFabricBindViolationNwTypeR1=cpsmFabricBindViolationNwTypeR1, cpsmNotifyEnable=cpsmNotifyEnable, cpsmFabricBindLocalPort=cpsmFabricBindLocalPort, cpsmPortBindLoginTime=cpsmPortBindLoginTime, ciscoPsmFabricBindConfigGroup2=ciscoPsmFabricBindConfigGroup2, cpsmPortBindLoginPointType=cpsmPortBindLoginPointType, ciscoPsmMIBComplianceRev1=ciscoPsmMIBComplianceRev1, ciscoPsmFabricBindStatsGroup3=ciscoPsmFabricBindStatsGroup3, cpsmFabricBindViolationIndexR1=cpsmFabricBindViolationIndexR1, ciscoPsmMIBObjects=ciscoPsmMIBObjects, cpsmFabricBindIndex=cpsmFabricBindIndex, cpsmEfmdTxMergeAccs=cpsmEfmdTxMergeAccs, cpsmPortBindEnfNwIndex=cpsmPortBindEnfNwIndex, cpsmPortBindEnfLoginDevType=cpsmPortBindEnfLoginDevType, cpsmPortBindDiffConfigDb=cpsmPortBindDiffConfigDb, cpsmEfmdConfigTable=cpsmEfmdConfigTable, cpsmPortBindClearNwType=cpsmPortBindClearNwType, cpsmFabricBindVsanVlanIndex=cpsmFabricBindVsanVlanIndex, ciscoPsmPortBindStatsGroup=ciscoPsmPortBindStatsGroup, CpsmDiffReason=CpsmDiffReason, cpsmFabricBindNextFreeIndex=cpsmFabricBindNextFreeIndex, cpsmFabricBindDiffConfigTable=cpsmFabricBindDiffConfigTable, cpsmFabricBindEnfDomId=cpsmFabricBindEnfDomId, cpsmFabricBindLastChangeTime=cpsmFabricBindLastChangeTime, CpsmStatsCounter=CpsmStatsCounter, cpsmPortBindLoginSwwn=cpsmPortBindLoginSwwn, ciscoPsmFabricBindNotifyGroupR1=ciscoPsmFabricBindNotifyGroupR1, cpsmPortBindVsanVlanIndex=cpsmPortBindVsanVlanIndex, cpsmPortBindRowStatus=cpsmPortBindRowStatus, cpsmPortBindEnfIsLearnt=cpsmPortBindEnfIsLearnt, ciscoPsmMIBConform=ciscoPsmMIBConform, CpsmPortBindDevType=CpsmPortBindDevType, ciscoPsmMIB=ciscoPsmMIB, cpsmPortBindEnfLoginPointType=cpsmPortBindEnfLoginPointType, cpsmFabricBindDiffConfigNwType=cpsmFabricBindDiffConfigNwType, ciscoPsmMIBCompliances=ciscoPsmMIBCompliances, cpsmFabricBindEnfNwIndex=cpsmFabricBindEnfNwIndex, CpsmClearStats=CpsmClearStats, cpsmPortBindAutoLearnEntry=cpsmPortBindAutoLearnEntry, cpsmPortBindClearAutoLearnIntf=cpsmPortBindClearAutoLearnIntf, cpsmPortBindCopyEntry=cpsmPortBindCopyEntry, cpsmFabricBindDiffTable=cpsmFabricBindDiffTable, ciscoPsmPortBindFPortDenyNotify=ciscoPsmPortBindFPortDenyNotify, cpsmFabricBindStatsEntry=cpsmFabricBindStatsEntry, cpsmPortBindStatsEntry=cpsmPortBindStatsEntry, cpsmPortBindClearEntry=cpsmPortBindClearEntry, cpsmPortBindDeniedLogins=cpsmPortBindDeniedLogins, cpsmFabricBindLocalIntf=cpsmFabricBindLocalIntf, ciscoPsmEfmdConfigGroup=ciscoPsmEfmdConfigGroup, cpsmPortBindResult=cpsmPortBindResult, ciscoPsmEfmdStatsGroup=ciscoPsmEfmdStatsGroup, cpsmPortBindAutoLearnIndexType=cpsmPortBindAutoLearnIndexType, CpsmActivateResult=CpsmActivateResult, CpsmAutoLearnEnable=CpsmAutoLearnEnable, cpsmPortBindNextFreeNwIndex=cpsmPortBindNextFreeNwIndex, cpsmPortBindLoginDevType=cpsmPortBindLoginDevType, cpsmFabricBindResult=cpsmFabricBindResult, cpsmEfmdRxMergeRejs=cpsmEfmdRxMergeRejs, cpsmPortBindDiffNwType=cpsmPortBindDiffNwType, cpsmPortBindEntry=cpsmPortBindEntry, cpsmPortBindViolationNwType=cpsmPortBindViolationNwType, PYSNMP_MODULE_ID=ciscoPsmMIB, cpsmPortBindEnfLoginPoint=cpsmPortBindEnfLoginPoint, cpsmFabricBindDiffConfigEntry=cpsmFabricBindDiffConfigEntry, cpsmFabricBindCopyTable=cpsmFabricBindCopyTable, CpsmClearAutoLearnDb=CpsmClearAutoLearnDb, cpsmPortBindLoginPoint=cpsmPortBindLoginPoint, cpsmFabricBindAllowedReqs=cpsmFabricBindAllowedReqs, cpsmFabricBindActivateTable=cpsmFabricBindActivateTable, cpsmFabricBindAutoLearnTable=cpsmFabricBindAutoLearnTable, cpsmPortBindActState=cpsmPortBindActState, CpsmDiffDb=CpsmDiffDb, cpsmPortBindDiffReason=cpsmPortBindDiffReason, cpsmPortBindStatsTable=cpsmPortBindStatsTable, cpsmFabricBindDenialDomId=cpsmFabricBindDenialDomId, ciscoPsmFabricBindEnforcedGroup=ciscoPsmFabricBindEnforcedGroup, cpsmFabricBindNextFreeTable=cpsmFabricBindNextFreeTable, cpsmPortBindLoginPwwn=cpsmPortBindLoginPwwn, cpsmFabricBindViolationNewTable=cpsmFabricBindViolationNewTable, ciscoPsmPortBindNotifyGroup=ciscoPsmPortBindNotifyGroup, ciscoPsmFabricBindAutoLearnGroup=ciscoPsmFabricBindAutoLearnGroup, cpsmPortBindDiffNwIndex=cpsmPortBindDiffNwIndex, cpsmFabricBindNextFreeNwType=cpsmFabricBindNextFreeNwType, cpsmFabricBindCopyEntry=cpsmFabricBindCopyEntry, cpsmFabricBindStatsTable=cpsmFabricBindStatsTable, cpsmFabricBindVsanVlanType=cpsmFabricBindVsanVlanType, cpsmPortBindViolationNwIndex=cpsmPortBindViolationNwIndex, ciscoPsmFabricBindConfigGroup1=ciscoPsmFabricBindConfigGroup1, cpsmFabricBindEnfEntry=cpsmFabricBindEnfEntry, CpsmVirtNwType=CpsmVirtNwType, cpsmPortBindIndex=cpsmPortBindIndex, cpsmPortBindLastActTime=cpsmPortBindLastActTime, cpsmFabricBindEnfTable=cpsmFabricBindEnfTable, cpsmPortBindNwType=cpsmPortBindNwType, cpsmPortBindNextFreeEntry=cpsmPortBindNextFreeEntry, cpsmPortBindDiffLoginPoint=cpsmPortBindDiffLoginPoint, ciscoPsmFabricBindDenyNotifyNew=ciscoPsmFabricBindDenyNotifyNew, cpsmFabricBindDenialTimeR1=cpsmFabricBindDenialTimeR1, cpsmFabricBindClearNwType=cpsmFabricBindClearNwType, ciscoPsmPortBindEPortDenyNotify=ciscoPsmPortBindEPortDenyNotify, cpsmFabricBindEnfSwitchWwn=cpsmFabricBindEnfSwitchWwn, cpsmFabricBindAutoLearnEntry=cpsmFabricBindAutoLearnEntry, cpsmFabricBindClearTable=cpsmFabricBindClearTable, cpsmPortBindEnfLoginDev=cpsmPortBindEnfLoginDev, cpsmFabricBindClearStats=cpsmFabricBindClearStats, cpsmFabricBindDiffDomId=cpsmFabricBindDiffDomId, cpsmEfmdTxMergeErrs=cpsmEfmdTxMergeErrs, cpsmPortBindClearTable=cpsmPortBindClearTable, cpsmFabricBindActivate=cpsmFabricBindActivate, cpsmEfmdRxMergeErrs=cpsmEfmdRxMergeErrs, cpsmPortBindLoginPort=cpsmPortBindLoginPort, cpsmPortBindDiffLoginPointType=cpsmPortBindDiffLoginPointType, cpsmPortBindViolationIndex=cpsmPortBindViolationIndex, ciscoPsmMIBComplianceRev4=ciscoPsmMIBComplianceRev4, cpsmFabricBindDiffConfigNwIndex=cpsmFabricBindDiffConfigNwIndex, cpsmPortBindNextFreeNwType=cpsmPortBindNextFreeNwType, cpsmStats=cpsmStats, cpsmFabricBindNextFreeEntry=cpsmFabricBindNextFreeEntry, cpsmFabricBindNextFreeNwIndex=cpsmFabricBindNextFreeNwIndex, cpsmPortBindDiffEntry=cpsmPortBindDiffEntry, cpsmPortBindClearStats=cpsmPortBindClearStats, ciscoPsmMIBCompliance=ciscoPsmMIBCompliance, cpsmFabricBindDenialCountR1=cpsmFabricBindDenialCountR1, cpsmFabricBindActivateEntry=cpsmFabricBindActivateEntry, cpsmFabricBindEnfIsLearnt=cpsmFabricBindEnfIsLearnt, ciscoPsmMIBComplianceRev5=ciscoPsmMIBComplianceRev5, cpsmEfmdTxMergeBusys=cpsmEfmdTxMergeBusys, cpsmFabricBindViolationEntry=cpsmFabricBindViolationEntry, cpsmPortBindViolationEntry=cpsmPortBindViolationEntry, cpsmFabricBindSwitchWwn=cpsmFabricBindSwitchWwn, ciscoPsmFabricBindConfigGroup=ciscoPsmFabricBindConfigGroup, cpsmPortBindTable=cpsmPortBindTable, ciscoPsmFabricBindStatsGroup2=ciscoPsmFabricBindStatsGroup2, ciscoPsmFabricBindStatsGroup1=ciscoPsmFabricBindStatsGroup1, cpsmFabricBindAutoLearnIndex=cpsmFabricBindAutoLearnIndex, cpsmPortBindEnfIndex=cpsmPortBindEnfIndex, ciscoPsmFabricBindNotifyGroup=ciscoPsmFabricBindNotifyGroup, cpsmFabricBindDiffConfigDb=cpsmFabricBindDiffConfigDb, cpsmEfmdRxMergeReqs=cpsmEfmdRxMergeReqs, cpsmPortBindLoginCount=cpsmPortBindLoginCount, cpsmPortBindAutoLearnIndex=cpsmPortBindAutoLearnIndex, cpsmPortBindLoginNwwn=cpsmPortBindLoginNwwn, cpsmFabricBindClearNwIndex=cpsmFabricBindClearNwIndex, cpsmFabricBindDiffSwitchWwn=cpsmFabricBindDiffSwitchWwn, cpsmPortBindDiffConfigNwType=cpsmPortBindDiffConfigNwType)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, value_size_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (fc_name_id, domain_id, port_member_list, domain_id_or_zero, fc_name_id_or_zero) = mibBuilder.importSymbols('CISCO-ST-TC', 'FcNameId', 'DomainId', 'PortMemberList', 'DomainIdOrZero', 'FcNameIdOrZero') (vsan_index,) = mibBuilder.importSymbols('CISCO-VSAN-MIB', 'vsanIndex') (interface_index, interface_index_or_zero) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'InterfaceIndexOrZero') (module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup') (ip_address, unsigned32, time_ticks, mib_identifier, iso, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, notification_type, counter32, gauge32, bits, module_identity, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'Unsigned32', 'TimeTicks', 'MibIdentifier', 'iso', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'NotificationType', 'Counter32', 'Gauge32', 'Bits', 'ModuleIdentity', 'Integer32') (time_stamp, row_status, truth_value, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'RowStatus', 'TruthValue', 'DisplayString', 'TextualConvention') cisco_psm_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 364)) ciscoPsmMIB.setRevisions(('2004-10-15 00:00', '2004-03-16 00:00', '2003-11-27 00:00', '2003-11-10 00:00', '2003-10-17 00:00', '2003-10-06 00:00', '2003-08-07 00:00')) if mibBuilder.loadTexts: ciscoPsmMIB.setLastUpdated('200410150000Z') if mibBuilder.loadTexts: ciscoPsmMIB.setOrganization('Cisco Systems Inc.') cisco_psm_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 0)) cisco_psm_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 1)) cisco_psm_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 2)) cpsm_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1)) cpsm_stats = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2)) class Cpsmvirtnwtype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('vsan', 1), ('vlan', 2)) class Cpsmportbinddevtype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('mac', 1), ('nWwn', 2), ('pWwn', 3), ('sWwn', 4), ('wildCard', 5)) class Cpsmportbindswporttype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('fwwn', 1), ('intfIndex', 2), ('wildCard', 3), ('swwn', 4)) class Cpsmdbactivate(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('activate', 1), ('activateWithAutoLearnOff', 2), ('forceActivate', 3), ('forceActivateWithAutoLearnOff', 4), ('deactivate', 5), ('noop', 6)) class Cpsmactivateresult(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('success', 1), ('actFailNullDb', 2), ('actFailConflictDb', 3), ('actFailSystemErr', 4), ('actFailAutoLearnOn', 5), ('deactFailNoActive', 6)) class Cpsmautolearnenable(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('on', 1), ('off', 2)) class Cpsmclearstats(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('clear', 1), ('noop', 2)) class Cpsmclearautolearndb(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('clearOnVsan', 1), ('clearOnIntf', 2), ('noop', 3)) class Cpsmdiffdb(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('configDb', 1), ('activeDb', 2), ('noop', 3)) class Cpsmdiffreason(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('extra', 1), ('missing', 2), ('conflict', 3)) class Cpsmstatscounter(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 4294967295) class Cpsmviolationreasoncode(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('unknown', 1), ('noSwwn', 2), ('domIdMismatch', 3), ('efmdDbMismatch', 4), ('noRespFromRemote', 5)) cpsm_port_bind_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1)) if mibBuilder.loadTexts: cpsmPortBindTable.setStatus('current') cpsm_port_bind_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindNwIndex'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindIndex')) if mibBuilder.loadTexts: cpsmPortBindEntry.setStatus('current') cpsm_port_bind_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindNwType.setStatus('current') cpsm_port_bind_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindNwIndex.setStatus('current') cpsm_port_bind_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4096))) if mibBuilder.loadTexts: cpsmPortBindIndex.setStatus('current') cpsm_port_bind_login_dev_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 4), cpsm_port_bind_dev_type().clone('pWwn')).setMaxAccess('readcreate') if mibBuilder.loadTexts: cpsmPortBindLoginDevType.setStatus('current') cpsm_port_bind_login_dev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 5), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(6, 6), value_size_constraint(8, 8)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: cpsmPortBindLoginDev.setStatus('current') cpsm_port_bind_login_point_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 6), cpsm_port_bind_sw_port_type().clone('fwwn')).setMaxAccess('readcreate') if mibBuilder.loadTexts: cpsmPortBindLoginPointType.setStatus('current') cpsm_port_bind_login_point = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 7), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(4, 4), value_size_constraint(8, 8)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: cpsmPortBindLoginPoint.setStatus('current') cpsm_port_bind_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 1, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cpsmPortBindRowStatus.setStatus('current') cpsm_port_bind_activate_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2)) if mibBuilder.loadTexts: cpsmPortBindActivateTable.setStatus('current') cpsm_port_bind_activate_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindNwIndex')) if mibBuilder.loadTexts: cpsmPortBindActivateEntry.setStatus('current') cpsm_port_bind_activate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1, 1), cpsm_db_activate()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmPortBindActivate.setStatus('current') cpsm_port_bind_result = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1, 2), cpsm_activate_result()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindResult.setStatus('current') cpsm_port_bind_last_act_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1, 3), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLastActTime.setStatus('current') cpsm_port_bind_act_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 2, 1, 4), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindActState.setStatus('current') cpsm_fabric_bind_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3)) if mibBuilder.loadTexts: cpsmFabricBindTable.setStatus('current') cpsm_fabric_bind_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindNwType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindNwIndex'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindIndex')) if mibBuilder.loadTexts: cpsmFabricBindEntry.setStatus('current') cpsm_fabric_bind_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindNwType.setStatus('current') cpsm_fabric_bind_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindNwIndex.setStatus('current') cpsm_fabric_bind_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4096))) if mibBuilder.loadTexts: cpsmFabricBindIndex.setStatus('current') cpsm_fabric_bind_switch_wwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readcreate') if mibBuilder.loadTexts: cpsmFabricBindSwitchWwn.setStatus('current') cpsm_fabric_bind_dom_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 5), domain_id()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cpsmFabricBindDomId.setStatus('current') cpsm_fabric_bind_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 3, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cpsmFabricBindRowStatus.setStatus('current') cpsm_fabric_bind_activate_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4)) if mibBuilder.loadTexts: cpsmFabricBindActivateTable.setStatus('current') cpsm_fabric_bind_activate_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindNwType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindNwIndex')) if mibBuilder.loadTexts: cpsmFabricBindActivateEntry.setStatus('current') cpsm_fabric_bind_activate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1, 1), cpsm_db_activate()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmFabricBindActivate.setStatus('current') cpsm_fabric_bind_result = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1, 2), cpsm_activate_result()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindResult.setStatus('current') cpsm_fabric_bind_last_act_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1, 3), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindLastActTime.setStatus('current') cpsm_fabric_bind_act_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 4, 1, 4), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindActState.setStatus('current') cpsm_port_bind_copy_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 5)) if mibBuilder.loadTexts: cpsmPortBindCopyTable.setStatus('current') cpsm_port_bind_copy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 5, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindNwIndex')) if mibBuilder.loadTexts: cpsmPortBindCopyEntry.setStatus('current') cpsm_port_bind_copy_act_to_config = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('copy', 1), ('noop', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmPortBindCopyActToConfig.setStatus('current') cpsm_port_bind_last_change_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 5, 1, 2), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLastChangeTime.setStatus('current') cpsm_fabric_bind_copy_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 6)) if mibBuilder.loadTexts: cpsmFabricBindCopyTable.setStatus('current') cpsm_fabric_bind_copy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 6, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindNwType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindNwIndex')) if mibBuilder.loadTexts: cpsmFabricBindCopyEntry.setStatus('current') cpsm_fabric_bind_copy_act_to_config = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 6, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('copy', 1), ('noop', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmFabricBindCopyActToConfig.setStatus('current') cpsm_fabric_bind_last_change_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 6, 1, 2), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindLastChangeTime.setStatus('current') cpsm_port_bind_enf_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7)) if mibBuilder.loadTexts: cpsmPortBindEnfTable.setStatus('current') cpsm_port_bind_enf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindEnfNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindEnfNwIndex'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindEnfIndex')) if mibBuilder.loadTexts: cpsmPortBindEnfEntry.setStatus('current') cpsm_port_bind_enf_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindEnfNwType.setStatus('current') cpsm_port_bind_enf_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindEnfNwIndex.setStatus('current') cpsm_port_bind_enf_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4096))) if mibBuilder.loadTexts: cpsmPortBindEnfIndex.setStatus('current') cpsm_port_bind_enf_login_dev_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 4), cpsm_port_bind_dev_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindEnfLoginDevType.setStatus('current') cpsm_port_bind_enf_login_dev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 5), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(6, 6), value_size_constraint(8, 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindEnfLoginDev.setStatus('current') cpsm_port_bind_enf_login_point_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 6), cpsm_port_bind_sw_port_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindEnfLoginPointType.setStatus('current') cpsm_port_bind_enf_login_point = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 7), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(4, 4), value_size_constraint(8, 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindEnfLoginPoint.setStatus('current') cpsm_port_bind_enf_is_learnt = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 7, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindEnfIsLearnt.setStatus('current') cpsm_fabric_bind_enf_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8)) if mibBuilder.loadTexts: cpsmFabricBindEnfTable.setStatus('current') cpsm_fabric_bind_enf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindEnfNwType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindEnfNwIndex'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindEnfIndex')) if mibBuilder.loadTexts: cpsmFabricBindEnfEntry.setStatus('current') cpsm_fabric_bind_enf_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindEnfNwType.setStatus('current') cpsm_fabric_bind_enf_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindEnfNwIndex.setStatus('current') cpsm_fabric_bind_enf_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4096))) if mibBuilder.loadTexts: cpsmFabricBindEnfIndex.setStatus('current') cpsm_fabric_bind_enf_switch_wwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindEnfSwitchWwn.setStatus('current') cpsm_fabric_bind_enf_dom_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 5), domain_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindEnfDomId.setStatus('current') cpsm_fabric_bind_enf_is_learnt = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 8, 1, 6), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindEnfIsLearnt.setStatus('current') cpsm_port_bind_auto_learn_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9)) if mibBuilder.loadTexts: cpsmPortBindAutoLearnTable.setStatus('current') cpsm_port_bind_auto_learn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindAutoLearnIndexType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindAutoLearnIndex')) if mibBuilder.loadTexts: cpsmPortBindAutoLearnEntry.setStatus('current') cpsm_port_bind_auto_learn_index_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindAutoLearnIndexType.setStatus('current') cpsm_port_bind_auto_learn_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindAutoLearnIndex.setStatus('current') cpsm_port_bind_auto_learn_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 9, 1, 3), cpsm_auto_learn_enable().clone('off')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmPortBindAutoLearnEnable.setStatus('current') cpsm_fabric_bind_auto_learn_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10)) if mibBuilder.loadTexts: cpsmFabricBindAutoLearnTable.setStatus('deprecated') cpsm_fabric_bind_auto_learn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindAutoLearnIndexType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindAutoLearnIndex')) if mibBuilder.loadTexts: cpsmFabricBindAutoLearnEntry.setStatus('deprecated') cpsm_fabric_bind_auto_learn_index_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindAutoLearnIndexType.setStatus('deprecated') cpsm_fabric_bind_auto_learn_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindAutoLearnIndex.setStatus('deprecated') cpsm_fabric_bind_auto_learn_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 10, 1, 3), cpsm_auto_learn_enable().clone('off')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmFabricBindAutoLearnEnable.setStatus('deprecated') cpsm_port_bind_clear_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11)) if mibBuilder.loadTexts: cpsmPortBindClearTable.setStatus('current') cpsm_port_bind_clear_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindClearNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindClearNwIndex')) if mibBuilder.loadTexts: cpsmPortBindClearEntry.setStatus('current') cpsm_port_bind_clear_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindClearNwType.setStatus('current') cpsm_port_bind_clear_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindClearNwIndex.setStatus('current') cpsm_port_bind_clear_stats = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 3), cpsm_clear_stats()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmPortBindClearStats.setStatus('current') cpsm_port_bind_clear_auto_learn_db = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 4), cpsm_clear_auto_learn_db()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmPortBindClearAutoLearnDb.setStatus('current') cpsm_port_bind_clear_auto_learn_intf = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 11, 1, 5), port_member_list().clone(hexValue='')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmPortBindClearAutoLearnIntf.setStatus('current') cpsm_fabric_bind_clear_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12)) if mibBuilder.loadTexts: cpsmFabricBindClearTable.setStatus('current') cpsm_fabric_bind_clear_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindClearNwType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindClearNwIndex')) if mibBuilder.loadTexts: cpsmFabricBindClearEntry.setStatus('current') cpsm_fabric_bind_clear_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindClearNwType.setStatus('current') cpsm_fabric_bind_clear_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindClearNwIndex.setStatus('current') cpsm_fabric_bind_clear_stats = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 3), cpsm_clear_stats()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmFabricBindClearStats.setStatus('current') cpsm_fabric_bind_clear_auto_learn_db = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 4), cpsm_clear_auto_learn_db()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmFabricBindClearAutoLearnDb.setStatus('current') cpsm_fabric_bind_clear_auto_learn_intf = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 12, 1, 5), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmFabricBindClearAutoLearnIntf.setStatus('deprecated') cpsm_port_bind_diff_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13)) if mibBuilder.loadTexts: cpsmPortBindDiffConfigTable.setStatus('current') cpsm_port_bind_diff_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindDiffConfigNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindDiffConfigNwIndex')) if mibBuilder.loadTexts: cpsmPortBindDiffConfigEntry.setStatus('current') cpsm_port_bind_diff_config_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindDiffConfigNwType.setStatus('current') cpsm_port_bind_diff_config_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindDiffConfigNwIndex.setStatus('current') cpsm_port_bind_diff_config_db = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 13, 1, 3), cpsm_diff_db()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmPortBindDiffConfigDb.setStatus('current') cpsm_port_bind_diff_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14)) if mibBuilder.loadTexts: cpsmPortBindDiffTable.setStatus('current') cpsm_port_bind_diff_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindDiffNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindDiffNwIndex'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindDiffIndex')) if mibBuilder.loadTexts: cpsmPortBindDiffEntry.setStatus('current') cpsm_port_bind_diff_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindDiffNwType.setStatus('current') cpsm_port_bind_diff_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindDiffNwIndex.setStatus('current') cpsm_port_bind_diff_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4096))) if mibBuilder.loadTexts: cpsmPortBindDiffIndex.setStatus('current') cpsm_port_bind_diff_reason = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 4), cpsm_diff_reason()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindDiffReason.setStatus('current') cpsm_port_bind_diff_login_dev_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 5), cpsm_port_bind_dev_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindDiffLoginDevType.setStatus('current') cpsm_port_bind_diff_login_dev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 6), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(6, 6), value_size_constraint(8, 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindDiffLoginDev.setStatus('current') cpsm_port_bind_diff_login_point_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 7), cpsm_port_bind_sw_port_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindDiffLoginPointType.setStatus('current') cpsm_port_bind_diff_login_point = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 14, 1, 8), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(4, 4), value_size_constraint(8, 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindDiffLoginPoint.setStatus('current') cpsm_fabric_bind_diff_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15)) if mibBuilder.loadTexts: cpsmFabricBindDiffConfigTable.setStatus('current') cpsm_fabric_bind_diff_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindDiffConfigNwType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindDiffConfigNwIndex')) if mibBuilder.loadTexts: cpsmFabricBindDiffConfigEntry.setStatus('current') cpsm_fabric_bind_diff_config_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindDiffConfigNwType.setStatus('current') cpsm_fabric_bind_diff_config_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindDiffConfigNwIndex.setStatus('current') cpsm_fabric_bind_diff_config_db = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 15, 1, 3), cpsm_diff_db()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmFabricBindDiffConfigDb.setStatus('current') cpsm_fabric_bind_diff_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16)) if mibBuilder.loadTexts: cpsmFabricBindDiffTable.setStatus('current') cpsm_fabric_bind_diff_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindDiffNwType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindDiffNwIndex'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindDiffIndex')) if mibBuilder.loadTexts: cpsmFabricBindDiffEntry.setStatus('current') cpsm_fabric_bind_diff_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindDiffNwType.setStatus('current') cpsm_fabric_bind_diff_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindDiffNwIndex.setStatus('current') cpsm_fabric_bind_diff_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4096))) if mibBuilder.loadTexts: cpsmFabricBindDiffIndex.setStatus('current') cpsm_fabric_bind_diff_reason = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 4), cpsm_diff_reason()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDiffReason.setStatus('current') cpsm_fabric_bind_diff_switch_wwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDiffSwitchWwn.setStatus('current') cpsm_fabric_bind_diff_dom_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 16, 1, 6), domain_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDiffDomId.setStatus('current') cpsm_port_bind_stats_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1)) if mibBuilder.loadTexts: cpsmPortBindStatsTable.setStatus('current') cpsm_port_bind_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindVsanVlanType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindVsanVlanIndex')) if mibBuilder.loadTexts: cpsmPortBindStatsEntry.setStatus('current') cpsm_port_bind_vsan_vlan_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindVsanVlanType.setStatus('current') cpsm_port_bind_vsan_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindVsanVlanIndex.setStatus('current') cpsm_port_bind_allowed_logins = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1, 3), cpsm_stats_counter()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindAllowedLogins.setStatus('current') cpsm_port_bind_denied_logins = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 1, 1, 4), cpsm_stats_counter()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindDeniedLogins.setStatus('current') cpsm_fabric_bind_stats_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2)) if mibBuilder.loadTexts: cpsmFabricBindStatsTable.setStatus('current') cpsm_fabric_bind_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindVsanVlanType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindVsanVlanIndex')) if mibBuilder.loadTexts: cpsmFabricBindStatsEntry.setStatus('current') cpsm_fabric_bind_vsan_vlan_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindVsanVlanType.setStatus('current') cpsm_fabric_bind_vsan_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindVsanVlanIndex.setStatus('current') cpsm_fabric_bind_allowed_reqs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1, 3), cpsm_stats_counter()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindAllowedReqs.setStatus('current') cpsm_fabric_bind_denied_reqs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 2, 1, 4), cpsm_stats_counter()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDeniedReqs.setStatus('current') cpsm_port_bind_violation_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3)) if mibBuilder.loadTexts: cpsmPortBindViolationTable.setStatus('current') cpsm_port_bind_violation_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindViolationNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindViolationNwIndex'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindViolationIndex')) if mibBuilder.loadTexts: cpsmPortBindViolationEntry.setStatus('current') cpsm_port_bind_violation_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindViolationNwType.setStatus('current') cpsm_port_bind_violation_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindViolationNwIndex.setStatus('current') cpsm_port_bind_violation_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))) if mibBuilder.loadTexts: cpsmPortBindViolationIndex.setStatus('current') cpsm_port_bind_login_pwwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 4), fc_name_id_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLoginPwwn.setStatus('current') cpsm_port_bind_login_nwwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 5), fc_name_id_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLoginNwwn.setStatus('current') cpsm_port_bind_login_swwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 6), fc_name_id_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLoginSwwn.setStatus('current') cpsm_port_bind_login_port = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 7), fc_name_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLoginPort.setStatus('current') cpsm_port_bind_login_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 8), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLoginTime.setStatus('current') cpsm_port_bind_login_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLoginCount.setStatus('current') cpsm_port_bind_login_intf = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 3, 1, 10), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindLoginIntf.setStatus('current') cpsm_fabric_bind_violation_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4)) if mibBuilder.loadTexts: cpsmFabricBindViolationTable.setStatus('deprecated') cpsm_fabric_bind_violation_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindViolationIndex')) if mibBuilder.loadTexts: cpsmFabricBindViolationEntry.setStatus('deprecated') cpsm_fabric_bind_violation_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))) if mibBuilder.loadTexts: cpsmFabricBindViolationIndex.setStatus('deprecated') cpsm_fabric_bind_swwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 2), fc_name_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindSwwn.setStatus('deprecated') cpsm_fabric_bind_local_port = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 3), fc_name_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindLocalPort.setStatus('deprecated') cpsm_fabric_bind_denial_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 4), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDenialTime.setStatus('deprecated') cpsm_fabric_bind_local_intf = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 4, 1, 5), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindLocalIntf.setStatus('deprecated') cpsm_fabric_bind_violation_new_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5)) if mibBuilder.loadTexts: cpsmFabricBindViolationNewTable.setStatus('current') cpsm_fabric_bind_violation_new_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindViolationNwTypeR1'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindViolationNwIndexR1'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindViolationIndexR1')) if mibBuilder.loadTexts: cpsmFabricBindViolationNewEntry.setStatus('current') cpsm_fabric_bind_violation_nw_type_r1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindViolationNwTypeR1.setStatus('current') cpsm_fabric_bind_violation_nw_index_r1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindViolationNwIndexR1.setStatus('current') cpsm_fabric_bind_violation_index_r1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))) if mibBuilder.loadTexts: cpsmFabricBindViolationIndexR1.setStatus('current') cpsm_fabric_bind_swwn_r1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 4), fc_name_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindSwwnR1.setStatus('current') cpsm_fabric_bind_denial_time_r1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 5), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDenialTimeR1.setStatus('current') cpsm_fabric_bind_denial_count_r1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDenialCountR1.setStatus('current') cpsm_fabric_bind_denial_dom_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 7), domain_id_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDenialDomId.setStatus('current') cpsm_fabric_bind_denial_reason_code = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 5, 1, 8), cpsm_violation_reason_code()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindDenialReasonCode.setStatus('current') cpsm_efmd_stats_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6)) if mibBuilder.loadTexts: cpsmEfmdStatsTable.setStatus('current') cpsm_efmd_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1)).setIndexNames((0, 'CISCO-VSAN-MIB', 'vsanIndex')) if mibBuilder.loadTexts: cpsmEfmdStatsEntry.setStatus('current') cpsm_efmd_tx_merge_reqs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdTxMergeReqs.setStatus('current') cpsm_efmd_rx_merge_reqs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdRxMergeReqs.setStatus('current') cpsm_efmd_tx_merge_accs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdTxMergeAccs.setStatus('current') cpsm_efmd_rx_merge_accs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdRxMergeAccs.setStatus('current') cpsm_efmd_tx_merge_rejs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdTxMergeRejs.setStatus('current') cpsm_efmd_rx_merge_rejs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdRxMergeRejs.setStatus('current') cpsm_efmd_tx_merge_busys = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdTxMergeBusys.setStatus('current') cpsm_efmd_rx_merge_busys = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdRxMergeBusys.setStatus('current') cpsm_efmd_tx_merge_errs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdTxMergeErrs.setStatus('current') cpsm_efmd_rx_merge_errs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 2, 6, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmEfmdRxMergeErrs.setStatus('current') cpsm_notify_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 17), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmNotifyEnable.setStatus('current') cpsm_efmd_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 18)) if mibBuilder.loadTexts: cpsmEfmdConfigTable.setStatus('current') cpsm_efmd_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 18, 1)).setIndexNames((0, 'CISCO-VSAN-MIB', 'vsanIndex')) if mibBuilder.loadTexts: cpsmEfmdConfigEntry.setStatus('current') cpsm_efmd_config_enforce = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 18, 1, 1), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cpsmEfmdConfigEnforce.setStatus('current') cpsm_port_bind_next_free_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19)) if mibBuilder.loadTexts: cpsmPortBindNextFreeTable.setStatus('current') cpsm_port_bind_next_free_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmPortBindNextFreeNwType'), (0, 'CISCO-PSM-MIB', 'cpsmPortBindNextFreeNwIndex')) if mibBuilder.loadTexts: cpsmPortBindNextFreeEntry.setStatus('current') cpsm_port_bind_next_free_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmPortBindNextFreeNwType.setStatus('current') cpsm_port_bind_next_free_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmPortBindNextFreeNwIndex.setStatus('current') cpsm_port_bind_next_free_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 19, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmPortBindNextFreeIndex.setStatus('current') cpsm_fabric_bind_next_free_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20)) if mibBuilder.loadTexts: cpsmFabricBindNextFreeTable.setStatus('current') cpsm_fabric_bind_next_free_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20, 1)).setIndexNames((0, 'CISCO-PSM-MIB', 'cpsmFabricBindNextFreeNwType'), (0, 'CISCO-PSM-MIB', 'cpsmFabricBindNextFreeNwIndex')) if mibBuilder.loadTexts: cpsmFabricBindNextFreeEntry.setStatus('current') cpsm_fabric_bind_next_free_nw_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20, 1, 1), cpsm_virt_nw_type()) if mibBuilder.loadTexts: cpsmFabricBindNextFreeNwType.setStatus('current') cpsm_fabric_bind_next_free_nw_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4093))) if mibBuilder.loadTexts: cpsmFabricBindNextFreeNwIndex.setStatus('current') cpsm_fabric_bind_next_free_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 364, 1, 1, 20, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: cpsmFabricBindNextFreeIndex.setStatus('current') cisco_psm_port_bind_f_port_deny_notify = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 364, 0, 1)).setObjects(('CISCO-PSM-MIB', 'cpsmPortBindLoginPwwn'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginPort'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginTime')) if mibBuilder.loadTexts: ciscoPsmPortBindFPortDenyNotify.setStatus('current') cisco_psm_port_bind_e_port_deny_notify = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 364, 0, 2)).setObjects(('CISCO-PSM-MIB', 'cpsmPortBindLoginSwwn'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginPort'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginTime')) if mibBuilder.loadTexts: ciscoPsmPortBindEPortDenyNotify.setStatus('current') cisco_psm_fabric_bind_deny_notify = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 364, 0, 3)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindSwwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindLocalPort'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialTime')) if mibBuilder.loadTexts: ciscoPsmFabricBindDenyNotify.setStatus('deprecated') cisco_psm_fabric_bind_deny_notify_new = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 364, 0, 4)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindSwwnR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialTimeR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialReasonCode')) if mibBuilder.loadTexts: ciscoPsmFabricBindDenyNotifyNew.setStatus('current') cisco_psm_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1)) cisco_psm_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2)) cisco_psm_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 1)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmPortBindConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindStatsGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindStatsGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindNotifyGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindNotifyGroup'), ('CISCO-PSM-MIB', 'ciscoPsmNotifyEnableGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindAutoLearnGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindAutoLearnGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_mib_compliance = ciscoPsmMIBCompliance.setStatus('deprecated') cisco_psm_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 2)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmPortBindConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindConfigGroup1'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindStatsGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindStatsGroup1'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindNotifyGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindNotifyGroupR1'), ('CISCO-PSM-MIB', 'ciscoPsmNotifyEnableGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindAutoLearnGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindAutoLearnGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_mib_compliance_rev1 = ciscoPsmMIBComplianceRev1.setStatus('deprecated') cisco_psm_mib_compliance_rev2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 3)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmPortBindConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindConfigGroup1'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindStatsGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindStatsGroup1'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindNotifyGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindNotifyGroupR1'), ('CISCO-PSM-MIB', 'ciscoPsmNotifyEnableGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindAutoLearnGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_mib_compliance_rev2 = ciscoPsmMIBComplianceRev2.setStatus('deprecated') cisco_psm_mib_compliance_rev3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 4)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmPortBindConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindConfigGroup1'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindStatsGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindStatsGroup2'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindNotifyGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindNotifyGroupR1'), ('CISCO-PSM-MIB', 'ciscoPsmNotifyEnableGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindAutoLearnGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_mib_compliance_rev3 = ciscoPsmMIBComplianceRev3.setStatus('deprecated') cisco_psm_mib_compliance_rev4 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 5)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmPortBindConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindConfigGroup1'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindStatsGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindStatsGroup3'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindNotifyGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindNotifyGroupR1'), ('CISCO-PSM-MIB', 'ciscoPsmNotifyEnableGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindAutoLearnGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_mib_compliance_rev4 = ciscoPsmMIBComplianceRev4.setStatus('deprecated') cisco_psm_mib_compliance_rev5 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 1, 6)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmPortBindConfigGroup1'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindConfigGroup2'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindEnforcedGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindStatsGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindStatsGroup3'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindNotifyGroup'), ('CISCO-PSM-MIB', 'ciscoPsmFabricBindNotifyGroupR1'), ('CISCO-PSM-MIB', 'ciscoPsmNotifyEnableGroup'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindAutoLearnGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdConfigGroup'), ('CISCO-PSM-MIB', 'ciscoPsmEfmdStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_mib_compliance_rev5 = ciscoPsmMIBComplianceRev5.setStatus('current') cisco_psm_port_bind_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 1)).setObjects(('CISCO-PSM-MIB', 'cpsmPortBindLoginDevType'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginDev'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginPointType'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginPoint'), ('CISCO-PSM-MIB', 'cpsmPortBindRowStatus'), ('CISCO-PSM-MIB', 'cpsmPortBindActivate'), ('CISCO-PSM-MIB', 'cpsmPortBindResult'), ('CISCO-PSM-MIB', 'cpsmPortBindLastActTime'), ('CISCO-PSM-MIB', 'cpsmPortBindActState'), ('CISCO-PSM-MIB', 'cpsmPortBindCopyActToConfig'), ('CISCO-PSM-MIB', 'cpsmPortBindLastChangeTime'), ('CISCO-PSM-MIB', 'cpsmPortBindClearStats'), ('CISCO-PSM-MIB', 'cpsmPortBindClearAutoLearnDb'), ('CISCO-PSM-MIB', 'cpsmPortBindClearAutoLearnIntf'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffConfigDb'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffReason'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffLoginDevType'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffLoginDev'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffLoginPointType'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffLoginPoint')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_port_bind_config_group = ciscoPsmPortBindConfigGroup.setStatus('deprecated') cisco_psm_fabric_bind_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 2)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindSwitchWwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindDomId'), ('CISCO-PSM-MIB', 'cpsmFabricBindRowStatus'), ('CISCO-PSM-MIB', 'cpsmFabricBindActivate'), ('CISCO-PSM-MIB', 'cpsmFabricBindResult'), ('CISCO-PSM-MIB', 'cpsmFabricBindLastActTime'), ('CISCO-PSM-MIB', 'cpsmFabricBindActState'), ('CISCO-PSM-MIB', 'cpsmFabricBindCopyActToConfig'), ('CISCO-PSM-MIB', 'cpsmFabricBindLastChangeTime'), ('CISCO-PSM-MIB', 'cpsmFabricBindClearStats'), ('CISCO-PSM-MIB', 'cpsmFabricBindClearAutoLearnDb'), ('CISCO-PSM-MIB', 'cpsmFabricBindClearAutoLearnIntf'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffConfigDb'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffReason'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffSwitchWwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffDomId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_config_group = ciscoPsmFabricBindConfigGroup.setStatus('deprecated') cisco_psm_port_bind_enforced_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 3)).setObjects(('CISCO-PSM-MIB', 'cpsmPortBindEnfLoginDevType'), ('CISCO-PSM-MIB', 'cpsmPortBindEnfLoginDev'), ('CISCO-PSM-MIB', 'cpsmPortBindEnfLoginPointType'), ('CISCO-PSM-MIB', 'cpsmPortBindEnfLoginPoint'), ('CISCO-PSM-MIB', 'cpsmPortBindEnfIsLearnt')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_port_bind_enforced_group = ciscoPsmPortBindEnforcedGroup.setStatus('current') cisco_psm_fabric_bind_enforced_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 4)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindEnfSwitchWwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindEnfDomId'), ('CISCO-PSM-MIB', 'cpsmFabricBindEnfIsLearnt')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_enforced_group = ciscoPsmFabricBindEnforcedGroup.setStatus('current') cisco_psm_port_bind_stats_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 5)).setObjects(('CISCO-PSM-MIB', 'cpsmPortBindAllowedLogins'), ('CISCO-PSM-MIB', 'cpsmPortBindDeniedLogins'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginPwwn'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginNwwn'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginSwwn'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginPort'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginTime'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginCount'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginIntf')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_port_bind_stats_group = ciscoPsmPortBindStatsGroup.setStatus('current') cisco_psm_fabric_bind_stats_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 6)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindAllowedReqs'), ('CISCO-PSM-MIB', 'cpsmFabricBindDeniedReqs'), ('CISCO-PSM-MIB', 'cpsmFabricBindSwwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindLocalPort'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialTime'), ('CISCO-PSM-MIB', 'cpsmFabricBindLocalIntf')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_stats_group = ciscoPsmFabricBindStatsGroup.setStatus('deprecated') cisco_psm_port_bind_notify_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 7)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmPortBindFPortDenyNotify'), ('CISCO-PSM-MIB', 'ciscoPsmPortBindEPortDenyNotify')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_port_bind_notify_group = ciscoPsmPortBindNotifyGroup.setStatus('current') cisco_psm_fabric_bind_notify_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 8)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmFabricBindDenyNotify')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_notify_group = ciscoPsmFabricBindNotifyGroup.setStatus('deprecated') cisco_psm_port_bind_auto_learn_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 9)).setObjects(('CISCO-PSM-MIB', 'cpsmPortBindAutoLearnEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_port_bind_auto_learn_group = ciscoPsmPortBindAutoLearnGroup.setStatus('current') cisco_psm_fabric_bind_auto_learn_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 10)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindAutoLearnEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_auto_learn_group = ciscoPsmFabricBindAutoLearnGroup.setStatus('deprecated') cisco_psm_notify_enable_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 11)).setObjects(('CISCO-PSM-MIB', 'cpsmNotifyEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_notify_enable_group = ciscoPsmNotifyEnableGroup.setStatus('current') cisco_psm_fabric_bind_config_group1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 12)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindSwitchWwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindDomId'), ('CISCO-PSM-MIB', 'cpsmFabricBindRowStatus'), ('CISCO-PSM-MIB', 'cpsmFabricBindActivate'), ('CISCO-PSM-MIB', 'cpsmFabricBindResult'), ('CISCO-PSM-MIB', 'cpsmFabricBindLastActTime'), ('CISCO-PSM-MIB', 'cpsmFabricBindActState'), ('CISCO-PSM-MIB', 'cpsmFabricBindCopyActToConfig'), ('CISCO-PSM-MIB', 'cpsmFabricBindLastChangeTime'), ('CISCO-PSM-MIB', 'cpsmFabricBindClearStats'), ('CISCO-PSM-MIB', 'cpsmFabricBindClearAutoLearnDb'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffConfigDb'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffReason'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffSwitchWwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffDomId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_config_group1 = ciscoPsmFabricBindConfigGroup1.setStatus('deprecated') cisco_psm_fabric_bind_stats_group1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 13)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindAllowedReqs'), ('CISCO-PSM-MIB', 'cpsmFabricBindDeniedReqs'), ('CISCO-PSM-MIB', 'cpsmFabricBindSwwnR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialTimeR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialCountR1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_stats_group1 = ciscoPsmFabricBindStatsGroup1.setStatus('deprecated') cisco_psm_fabric_bind_notify_group_r1 = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 14)).setObjects(('CISCO-PSM-MIB', 'ciscoPsmFabricBindDenyNotifyNew')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_notify_group_r1 = ciscoPsmFabricBindNotifyGroupR1.setStatus('current') cisco_psm_efmd_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 15)).setObjects(('CISCO-PSM-MIB', 'cpsmEfmdConfigEnforce')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_efmd_config_group = ciscoPsmEfmdConfigGroup.setStatus('current') cisco_psm_efmd_stats_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 16)).setObjects(('CISCO-PSM-MIB', 'cpsmEfmdTxMergeReqs'), ('CISCO-PSM-MIB', 'cpsmEfmdRxMergeReqs'), ('CISCO-PSM-MIB', 'cpsmEfmdTxMergeAccs'), ('CISCO-PSM-MIB', 'cpsmEfmdRxMergeAccs'), ('CISCO-PSM-MIB', 'cpsmEfmdTxMergeRejs'), ('CISCO-PSM-MIB', 'cpsmEfmdRxMergeRejs'), ('CISCO-PSM-MIB', 'cpsmEfmdTxMergeBusys'), ('CISCO-PSM-MIB', 'cpsmEfmdRxMergeBusys'), ('CISCO-PSM-MIB', 'cpsmEfmdTxMergeErrs'), ('CISCO-PSM-MIB', 'cpsmEfmdRxMergeErrs')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_efmd_stats_group = ciscoPsmEfmdStatsGroup.setStatus('current') cisco_psm_fabric_bind_stats_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 17)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindAllowedReqs'), ('CISCO-PSM-MIB', 'cpsmFabricBindDeniedReqs'), ('CISCO-PSM-MIB', 'cpsmFabricBindSwwnR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialTimeR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialCountR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialDomId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_stats_group2 = ciscoPsmFabricBindStatsGroup2.setStatus('deprecated') cisco_psm_fabric_bind_stats_group3 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 18)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindAllowedReqs'), ('CISCO-PSM-MIB', 'cpsmFabricBindDeniedReqs'), ('CISCO-PSM-MIB', 'cpsmFabricBindSwwnR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialTimeR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialCountR1'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialDomId'), ('CISCO-PSM-MIB', 'cpsmFabricBindDenialReasonCode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_stats_group3 = ciscoPsmFabricBindStatsGroup3.setStatus('current') cisco_psm_port_bind_config_group1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 19)).setObjects(('CISCO-PSM-MIB', 'cpsmPortBindLoginDevType'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginDev'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginPointType'), ('CISCO-PSM-MIB', 'cpsmPortBindLoginPoint'), ('CISCO-PSM-MIB', 'cpsmPortBindRowStatus'), ('CISCO-PSM-MIB', 'cpsmPortBindActivate'), ('CISCO-PSM-MIB', 'cpsmPortBindResult'), ('CISCO-PSM-MIB', 'cpsmPortBindLastActTime'), ('CISCO-PSM-MIB', 'cpsmPortBindActState'), ('CISCO-PSM-MIB', 'cpsmPortBindCopyActToConfig'), ('CISCO-PSM-MIB', 'cpsmPortBindLastChangeTime'), ('CISCO-PSM-MIB', 'cpsmPortBindClearStats'), ('CISCO-PSM-MIB', 'cpsmPortBindClearAutoLearnDb'), ('CISCO-PSM-MIB', 'cpsmPortBindClearAutoLearnIntf'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffConfigDb'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffReason'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffLoginDevType'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffLoginDev'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffLoginPointType'), ('CISCO-PSM-MIB', 'cpsmPortBindDiffLoginPoint'), ('CISCO-PSM-MIB', 'cpsmPortBindNextFreeIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_port_bind_config_group1 = ciscoPsmPortBindConfigGroup1.setStatus('current') cisco_psm_fabric_bind_config_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 364, 2, 2, 20)).setObjects(('CISCO-PSM-MIB', 'cpsmFabricBindSwitchWwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindDomId'), ('CISCO-PSM-MIB', 'cpsmFabricBindRowStatus'), ('CISCO-PSM-MIB', 'cpsmFabricBindActivate'), ('CISCO-PSM-MIB', 'cpsmFabricBindResult'), ('CISCO-PSM-MIB', 'cpsmFabricBindLastActTime'), ('CISCO-PSM-MIB', 'cpsmFabricBindActState'), ('CISCO-PSM-MIB', 'cpsmFabricBindCopyActToConfig'), ('CISCO-PSM-MIB', 'cpsmFabricBindLastChangeTime'), ('CISCO-PSM-MIB', 'cpsmFabricBindClearStats'), ('CISCO-PSM-MIB', 'cpsmFabricBindClearAutoLearnDb'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffConfigDb'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffReason'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffSwitchWwn'), ('CISCO-PSM-MIB', 'cpsmFabricBindDiffDomId'), ('CISCO-PSM-MIB', 'cpsmFabricBindNextFreeIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_psm_fabric_bind_config_group2 = ciscoPsmFabricBindConfigGroup2.setStatus('current') mibBuilder.exportSymbols('CISCO-PSM-MIB', cpsmPortBindEnfEntry=cpsmPortBindEnfEntry, ciscoPsmPortBindAutoLearnGroup=ciscoPsmPortBindAutoLearnGroup, cpsmFabricBindEnfNwType=cpsmFabricBindEnfNwType, cpsmFabricBindCopyActToConfig=cpsmFabricBindCopyActToConfig, cpsmPortBindDiffTable=cpsmPortBindDiffTable, cpsmFabricBindDenialTime=cpsmFabricBindDenialTime, cpsmFabricBindClearAutoLearnDb=cpsmFabricBindClearAutoLearnDb, ciscoPsmMIBComplianceRev2=ciscoPsmMIBComplianceRev2, cpsmPortBindLoginIntf=cpsmPortBindLoginIntf, cpsmFabricBindEnfIndex=cpsmFabricBindEnfIndex, cpsmPortBindClearAutoLearnDb=cpsmPortBindClearAutoLearnDb, cpsmPortBindAutoLearnTable=cpsmPortBindAutoLearnTable, cpsmPortBindActivate=cpsmPortBindActivate, cpsmPortBindCopyActToConfig=cpsmPortBindCopyActToConfig, cpsmFabricBindClearEntry=cpsmFabricBindClearEntry, cpsmPortBindDiffLoginDevType=cpsmPortBindDiffLoginDevType, cpsmFabricBindViolationTable=cpsmFabricBindViolationTable, ciscoPsmPortBindEnforcedGroup=ciscoPsmPortBindEnforcedGroup, ciscoPsmMIBNotifs=ciscoPsmMIBNotifs, cpsmPortBindDiffIndex=cpsmPortBindDiffIndex, cpsmPortBindVsanVlanType=cpsmPortBindVsanVlanType, cpsmFabricBindNwType=cpsmFabricBindNwType, cpsmPortBindNwIndex=cpsmPortBindNwIndex, cpsmPortBindDiffConfigTable=cpsmPortBindDiffConfigTable, cpsmPortBindActivateEntry=cpsmPortBindActivateEntry, cpsmFabricBindAutoLearnEnable=cpsmFabricBindAutoLearnEnable, cpsmFabricBindClearAutoLearnIntf=cpsmFabricBindClearAutoLearnIntf, cpsmEfmdRxMergeAccs=cpsmEfmdRxMergeAccs, cpsmPortBindClearNwIndex=cpsmPortBindClearNwIndex, cpsmFabricBindViolationNewEntry=cpsmFabricBindViolationNewEntry, cpsmFabricBindDiffNwType=cpsmFabricBindDiffNwType, cpsmFabricBindDiffIndex=cpsmFabricBindDiffIndex, cpsmFabricBindDenialReasonCode=cpsmFabricBindDenialReasonCode, ciscoPsmFabricBindStatsGroup=ciscoPsmFabricBindStatsGroup, cpsmPortBindActivateTable=cpsmPortBindActivateTable, cpsmFabricBindTable=cpsmFabricBindTable, cpsmPortBindCopyTable=cpsmPortBindCopyTable, cpsmFabricBindNwIndex=cpsmFabricBindNwIndex, cpsmFabricBindActState=cpsmFabricBindActState, cpsmPortBindViolationTable=cpsmPortBindViolationTable, cpsmConfiguration=cpsmConfiguration, ciscoPsmPortBindConfigGroup=ciscoPsmPortBindConfigGroup, cpsmFabricBindAutoLearnIndexType=cpsmFabricBindAutoLearnIndexType, cpsmEfmdStatsTable=cpsmEfmdStatsTable, cpsmFabricBindLastActTime=cpsmFabricBindLastActTime, cpsmPortBindAllowedLogins=cpsmPortBindAllowedLogins, cpsmFabricBindSwwn=cpsmFabricBindSwwn, cpsmFabricBindDomId=cpsmFabricBindDomId, cpsmFabricBindDiffReason=cpsmFabricBindDiffReason, ciscoPsmMIBComplianceRev3=ciscoPsmMIBComplianceRev3, ciscoPsmNotifyEnableGroup=ciscoPsmNotifyEnableGroup, cpsmFabricBindDiffNwIndex=cpsmFabricBindDiffNwIndex, cpsmEfmdConfigEntry=cpsmEfmdConfigEntry, cpsmFabricBindViolationIndex=cpsmFabricBindViolationIndex, cpsmPortBindNextFreeTable=cpsmPortBindNextFreeTable, ciscoPsmMIBGroups=ciscoPsmMIBGroups, cpsmPortBindEnfNwType=cpsmPortBindEnfNwType, cpsmEfmdTxMergeReqs=cpsmEfmdTxMergeReqs, CpsmViolationReasonCode=CpsmViolationReasonCode, cpsmPortBindDiffLoginDev=cpsmPortBindDiffLoginDev, cpsmFabricBindDiffEntry=cpsmFabricBindDiffEntry, cpsmEfmdRxMergeBusys=cpsmEfmdRxMergeBusys, ciscoPsmPortBindConfigGroup1=ciscoPsmPortBindConfigGroup1, cpsmFabricBindRowStatus=cpsmFabricBindRowStatus, CpsmDbActivate=CpsmDbActivate, cpsmEfmdTxMergeRejs=cpsmEfmdTxMergeRejs, cpsmFabricBindViolationNwIndexR1=cpsmFabricBindViolationNwIndexR1, cpsmPortBindLoginDev=cpsmPortBindLoginDev, cpsmFabricBindSwwnR1=cpsmFabricBindSwwnR1, cpsmPortBindNextFreeIndex=cpsmPortBindNextFreeIndex, cpsmEfmdStatsEntry=cpsmEfmdStatsEntry, CpsmPortBindSwPortType=CpsmPortBindSwPortType, ciscoPsmFabricBindDenyNotify=ciscoPsmFabricBindDenyNotify, cpsmFabricBindDeniedReqs=cpsmFabricBindDeniedReqs, cpsmFabricBindEntry=cpsmFabricBindEntry, cpsmPortBindAutoLearnEnable=cpsmPortBindAutoLearnEnable, cpsmPortBindDiffConfigEntry=cpsmPortBindDiffConfigEntry, cpsmEfmdConfigEnforce=cpsmEfmdConfigEnforce, cpsmPortBindLastChangeTime=cpsmPortBindLastChangeTime, cpsmPortBindEnfTable=cpsmPortBindEnfTable, cpsmPortBindDiffConfigNwIndex=cpsmPortBindDiffConfigNwIndex, cpsmFabricBindViolationNwTypeR1=cpsmFabricBindViolationNwTypeR1, cpsmNotifyEnable=cpsmNotifyEnable, cpsmFabricBindLocalPort=cpsmFabricBindLocalPort, cpsmPortBindLoginTime=cpsmPortBindLoginTime, ciscoPsmFabricBindConfigGroup2=ciscoPsmFabricBindConfigGroup2, cpsmPortBindLoginPointType=cpsmPortBindLoginPointType, ciscoPsmMIBComplianceRev1=ciscoPsmMIBComplianceRev1, ciscoPsmFabricBindStatsGroup3=ciscoPsmFabricBindStatsGroup3, cpsmFabricBindViolationIndexR1=cpsmFabricBindViolationIndexR1, ciscoPsmMIBObjects=ciscoPsmMIBObjects, cpsmFabricBindIndex=cpsmFabricBindIndex, cpsmEfmdTxMergeAccs=cpsmEfmdTxMergeAccs, cpsmPortBindEnfNwIndex=cpsmPortBindEnfNwIndex, cpsmPortBindEnfLoginDevType=cpsmPortBindEnfLoginDevType, cpsmPortBindDiffConfigDb=cpsmPortBindDiffConfigDb, cpsmEfmdConfigTable=cpsmEfmdConfigTable, cpsmPortBindClearNwType=cpsmPortBindClearNwType, cpsmFabricBindVsanVlanIndex=cpsmFabricBindVsanVlanIndex, ciscoPsmPortBindStatsGroup=ciscoPsmPortBindStatsGroup, CpsmDiffReason=CpsmDiffReason, cpsmFabricBindNextFreeIndex=cpsmFabricBindNextFreeIndex, cpsmFabricBindDiffConfigTable=cpsmFabricBindDiffConfigTable, cpsmFabricBindEnfDomId=cpsmFabricBindEnfDomId, cpsmFabricBindLastChangeTime=cpsmFabricBindLastChangeTime, CpsmStatsCounter=CpsmStatsCounter, cpsmPortBindLoginSwwn=cpsmPortBindLoginSwwn, ciscoPsmFabricBindNotifyGroupR1=ciscoPsmFabricBindNotifyGroupR1, cpsmPortBindVsanVlanIndex=cpsmPortBindVsanVlanIndex, cpsmPortBindRowStatus=cpsmPortBindRowStatus, cpsmPortBindEnfIsLearnt=cpsmPortBindEnfIsLearnt, ciscoPsmMIBConform=ciscoPsmMIBConform, CpsmPortBindDevType=CpsmPortBindDevType, ciscoPsmMIB=ciscoPsmMIB, cpsmPortBindEnfLoginPointType=cpsmPortBindEnfLoginPointType, cpsmFabricBindDiffConfigNwType=cpsmFabricBindDiffConfigNwType, ciscoPsmMIBCompliances=ciscoPsmMIBCompliances, cpsmFabricBindEnfNwIndex=cpsmFabricBindEnfNwIndex, CpsmClearStats=CpsmClearStats, cpsmPortBindAutoLearnEntry=cpsmPortBindAutoLearnEntry, cpsmPortBindClearAutoLearnIntf=cpsmPortBindClearAutoLearnIntf, cpsmPortBindCopyEntry=cpsmPortBindCopyEntry, cpsmFabricBindDiffTable=cpsmFabricBindDiffTable, ciscoPsmPortBindFPortDenyNotify=ciscoPsmPortBindFPortDenyNotify, cpsmFabricBindStatsEntry=cpsmFabricBindStatsEntry, cpsmPortBindStatsEntry=cpsmPortBindStatsEntry, cpsmPortBindClearEntry=cpsmPortBindClearEntry, cpsmPortBindDeniedLogins=cpsmPortBindDeniedLogins, cpsmFabricBindLocalIntf=cpsmFabricBindLocalIntf, ciscoPsmEfmdConfigGroup=ciscoPsmEfmdConfigGroup, cpsmPortBindResult=cpsmPortBindResult, ciscoPsmEfmdStatsGroup=ciscoPsmEfmdStatsGroup, cpsmPortBindAutoLearnIndexType=cpsmPortBindAutoLearnIndexType, CpsmActivateResult=CpsmActivateResult, CpsmAutoLearnEnable=CpsmAutoLearnEnable, cpsmPortBindNextFreeNwIndex=cpsmPortBindNextFreeNwIndex, cpsmPortBindLoginDevType=cpsmPortBindLoginDevType, cpsmFabricBindResult=cpsmFabricBindResult, cpsmEfmdRxMergeRejs=cpsmEfmdRxMergeRejs, cpsmPortBindDiffNwType=cpsmPortBindDiffNwType, cpsmPortBindEntry=cpsmPortBindEntry, cpsmPortBindViolationNwType=cpsmPortBindViolationNwType, PYSNMP_MODULE_ID=ciscoPsmMIB, cpsmPortBindEnfLoginPoint=cpsmPortBindEnfLoginPoint, cpsmFabricBindDiffConfigEntry=cpsmFabricBindDiffConfigEntry, cpsmFabricBindCopyTable=cpsmFabricBindCopyTable, CpsmClearAutoLearnDb=CpsmClearAutoLearnDb, cpsmPortBindLoginPoint=cpsmPortBindLoginPoint, cpsmFabricBindAllowedReqs=cpsmFabricBindAllowedReqs, cpsmFabricBindActivateTable=cpsmFabricBindActivateTable, cpsmFabricBindAutoLearnTable=cpsmFabricBindAutoLearnTable, cpsmPortBindActState=cpsmPortBindActState, CpsmDiffDb=CpsmDiffDb, cpsmPortBindDiffReason=cpsmPortBindDiffReason, cpsmPortBindStatsTable=cpsmPortBindStatsTable, cpsmFabricBindDenialDomId=cpsmFabricBindDenialDomId, ciscoPsmFabricBindEnforcedGroup=ciscoPsmFabricBindEnforcedGroup, cpsmFabricBindNextFreeTable=cpsmFabricBindNextFreeTable, cpsmPortBindLoginPwwn=cpsmPortBindLoginPwwn, cpsmFabricBindViolationNewTable=cpsmFabricBindViolationNewTable, ciscoPsmPortBindNotifyGroup=ciscoPsmPortBindNotifyGroup, ciscoPsmFabricBindAutoLearnGroup=ciscoPsmFabricBindAutoLearnGroup, cpsmPortBindDiffNwIndex=cpsmPortBindDiffNwIndex, cpsmFabricBindNextFreeNwType=cpsmFabricBindNextFreeNwType, cpsmFabricBindCopyEntry=cpsmFabricBindCopyEntry, cpsmFabricBindStatsTable=cpsmFabricBindStatsTable, cpsmFabricBindVsanVlanType=cpsmFabricBindVsanVlanType, cpsmPortBindViolationNwIndex=cpsmPortBindViolationNwIndex, ciscoPsmFabricBindConfigGroup1=ciscoPsmFabricBindConfigGroup1, cpsmFabricBindEnfEntry=cpsmFabricBindEnfEntry, CpsmVirtNwType=CpsmVirtNwType, cpsmPortBindIndex=cpsmPortBindIndex, cpsmPortBindLastActTime=cpsmPortBindLastActTime, cpsmFabricBindEnfTable=cpsmFabricBindEnfTable, cpsmPortBindNwType=cpsmPortBindNwType, cpsmPortBindNextFreeEntry=cpsmPortBindNextFreeEntry, cpsmPortBindDiffLoginPoint=cpsmPortBindDiffLoginPoint, ciscoPsmFabricBindDenyNotifyNew=ciscoPsmFabricBindDenyNotifyNew, cpsmFabricBindDenialTimeR1=cpsmFabricBindDenialTimeR1, cpsmFabricBindClearNwType=cpsmFabricBindClearNwType, ciscoPsmPortBindEPortDenyNotify=ciscoPsmPortBindEPortDenyNotify, cpsmFabricBindEnfSwitchWwn=cpsmFabricBindEnfSwitchWwn, cpsmFabricBindAutoLearnEntry=cpsmFabricBindAutoLearnEntry, cpsmFabricBindClearTable=cpsmFabricBindClearTable, cpsmPortBindEnfLoginDev=cpsmPortBindEnfLoginDev, cpsmFabricBindClearStats=cpsmFabricBindClearStats, cpsmFabricBindDiffDomId=cpsmFabricBindDiffDomId, cpsmEfmdTxMergeErrs=cpsmEfmdTxMergeErrs, cpsmPortBindClearTable=cpsmPortBindClearTable, cpsmFabricBindActivate=cpsmFabricBindActivate, cpsmEfmdRxMergeErrs=cpsmEfmdRxMergeErrs, cpsmPortBindLoginPort=cpsmPortBindLoginPort, cpsmPortBindDiffLoginPointType=cpsmPortBindDiffLoginPointType, cpsmPortBindViolationIndex=cpsmPortBindViolationIndex, ciscoPsmMIBComplianceRev4=ciscoPsmMIBComplianceRev4, cpsmFabricBindDiffConfigNwIndex=cpsmFabricBindDiffConfigNwIndex, cpsmPortBindNextFreeNwType=cpsmPortBindNextFreeNwType, cpsmStats=cpsmStats, cpsmFabricBindNextFreeEntry=cpsmFabricBindNextFreeEntry, cpsmFabricBindNextFreeNwIndex=cpsmFabricBindNextFreeNwIndex, cpsmPortBindDiffEntry=cpsmPortBindDiffEntry, cpsmPortBindClearStats=cpsmPortBindClearStats, ciscoPsmMIBCompliance=ciscoPsmMIBCompliance, cpsmFabricBindDenialCountR1=cpsmFabricBindDenialCountR1, cpsmFabricBindActivateEntry=cpsmFabricBindActivateEntry, cpsmFabricBindEnfIsLearnt=cpsmFabricBindEnfIsLearnt, ciscoPsmMIBComplianceRev5=ciscoPsmMIBComplianceRev5, cpsmEfmdTxMergeBusys=cpsmEfmdTxMergeBusys, cpsmFabricBindViolationEntry=cpsmFabricBindViolationEntry, cpsmPortBindViolationEntry=cpsmPortBindViolationEntry, cpsmFabricBindSwitchWwn=cpsmFabricBindSwitchWwn, ciscoPsmFabricBindConfigGroup=ciscoPsmFabricBindConfigGroup, cpsmPortBindTable=cpsmPortBindTable, ciscoPsmFabricBindStatsGroup2=ciscoPsmFabricBindStatsGroup2, ciscoPsmFabricBindStatsGroup1=ciscoPsmFabricBindStatsGroup1, cpsmFabricBindAutoLearnIndex=cpsmFabricBindAutoLearnIndex, cpsmPortBindEnfIndex=cpsmPortBindEnfIndex, ciscoPsmFabricBindNotifyGroup=ciscoPsmFabricBindNotifyGroup, cpsmFabricBindDiffConfigDb=cpsmFabricBindDiffConfigDb, cpsmEfmdRxMergeReqs=cpsmEfmdRxMergeReqs, cpsmPortBindLoginCount=cpsmPortBindLoginCount, cpsmPortBindAutoLearnIndex=cpsmPortBindAutoLearnIndex, cpsmPortBindLoginNwwn=cpsmPortBindLoginNwwn, cpsmFabricBindClearNwIndex=cpsmFabricBindClearNwIndex, cpsmFabricBindDiffSwitchWwn=cpsmFabricBindDiffSwitchWwn, cpsmPortBindDiffConfigNwType=cpsmPortBindDiffConfigNwType)
# Given a year, determine whether it is a leap year. If it is a leap year, # return the Boolean True, otherwise return False. # Note that the code stub provided reads from STDIN and # passes arguments to the is_leap function. It is only necessary to complete the is_leap function. def is_leap(year): leap = False #If year%4==0 is leap year if year%4==0: leap = True #If year%100==0 is not leap year if year%100==0: leap = False #If year%400==0 is leap year if year%400==0: leap = True return leap #year = int(raw_input())
def is_leap(year): leap = False if year % 4 == 0: leap = True if year % 100 == 0: leap = False if year % 400 == 0: leap = True return leap
def media(n1=int(input("introduce la nota ")),n2=int(input("introduce la nota ")), n3=int(input("introduce la nota ")),n4=int(input("introduce la nota "))): notaMedia=(n1+n2+n3+n4)/4 if notaMedia>15: return print("Alumno con talento") elif notaMedia>=12 and notaMedia<=15: return print("Con capacidad") elif notaMedia<12: return print("Debe reorientarse") media()
def media(n1=int(input('introduce la nota ')), n2=int(input('introduce la nota ')), n3=int(input('introduce la nota ')), n4=int(input('introduce la nota '))): nota_media = (n1 + n2 + n3 + n4) / 4 if notaMedia > 15: return print('Alumno con talento') elif notaMedia >= 12 and notaMedia <= 15: return print('Con capacidad') elif notaMedia < 12: return print('Debe reorientarse') media()
check = 'Coderbunker whatever' bool(check.find('Coderbunker')) print(bool(check)) if check == 'Coderbunker whatever': print('what')
check = 'Coderbunker whatever' bool(check.find('Coderbunker')) print(bool(check)) if check == 'Coderbunker whatever': print('what')
add_pointer_input = { "type": "object", "additionalProperties": False, "properties": {"pointer": {"type": "string"}, "weight": {"type": "integer"}, "key": {"type": "string"}}, "required": ["pointer", "weight"], } remove_pointer_input = { "type": "object", "additionalProperties": False, "properties": {"pointer": {"type": "string"}, "key": {"type": "string"}}, "required": ["pointer"], } replace_config_input = { "type": "object", "additionalProperties": False, "properties": {"pointers": {"type": "object"}, "key": {"type": "string"}}, "required": ["pointers"], } get_config_input = { "type": "object", "additionalProperties": False, "properties": {"key": {"type": "string"}} } pick_pointer_input = get_config_input pick_pointer_output = { "type": "object", "additionalProperties": False, "properties": {"pointer": {"type": "string"}}, "required": ["pointer"], }
add_pointer_input = {'type': 'object', 'additionalProperties': False, 'properties': {'pointer': {'type': 'string'}, 'weight': {'type': 'integer'}, 'key': {'type': 'string'}}, 'required': ['pointer', 'weight']} remove_pointer_input = {'type': 'object', 'additionalProperties': False, 'properties': {'pointer': {'type': 'string'}, 'key': {'type': 'string'}}, 'required': ['pointer']} replace_config_input = {'type': 'object', 'additionalProperties': False, 'properties': {'pointers': {'type': 'object'}, 'key': {'type': 'string'}}, 'required': ['pointers']} get_config_input = {'type': 'object', 'additionalProperties': False, 'properties': {'key': {'type': 'string'}}} pick_pointer_input = get_config_input pick_pointer_output = {'type': 'object', 'additionalProperties': False, 'properties': {'pointer': {'type': 'string'}}, 'required': ['pointer']}
# Finding peak element 1D of array of int def findPeakRec(arr,low,high,n): mid = low + (low + high) / 2 mid = int(mid) if ((mid == 0 or arr[mid - 1] <= arr[mid]) and (mid == n - 1 or arr[mid + 1] <= arr[mid])): return arr[mid] elif arr[mid] < arr[mid-1]: #find left return findPeakRec(arr,low,mid-1,n) else: #find right return findPeakRec(arr,mid+1,high,n) def findPeak(arr, n): return findPeakRec(arr, 0, n - 1, n) # Driver code arr = [1,3,20,5,4,1,0,5,23,15,1] n = len(arr) print("Peak value is", findPeak(arr,n))
def find_peak_rec(arr, low, high, n): mid = low + (low + high) / 2 mid = int(mid) if (mid == 0 or arr[mid - 1] <= arr[mid]) and (mid == n - 1 or arr[mid + 1] <= arr[mid]): return arr[mid] elif arr[mid] < arr[mid - 1]: return find_peak_rec(arr, low, mid - 1, n) else: return find_peak_rec(arr, mid + 1, high, n) def find_peak(arr, n): return find_peak_rec(arr, 0, n - 1, n) arr = [1, 3, 20, 5, 4, 1, 0, 5, 23, 15, 1] n = len(arr) print('Peak value is', find_peak(arr, n))
def Length(L): C = 0 for _ in L: C+=1 return C N = int(input('\nEnter number of elements in list to be entered: ')) L = [] for i in range(0,N): L.append(input('Enter an element: ')) print('\nLength of list:',Length(L))
def length(L): c = 0 for _ in L: c += 1 return C n = int(input('\nEnter number of elements in list to be entered: ')) l = [] for i in range(0, N): L.append(input('Enter an element: ')) print('\nLength of list:', length(L))
def f(): print("this is the f() function") return 0 def fib(n): if n < 2: return n return fib(n-1) + fib(n-2) def fib_not_recursive(n): x = 0 y = 1 if n == 0: return x elif n == 1: return y while n-2 >= 0: x,y = y,x+y n -= 1 return y if __name__ == '__main__': fib_generated_by_recurse = [fib(i) for i in range(0,20)] fib_generated_by_non_recurse = [fib_not_recursive(i) for i in range(0,20)] print(fib_generated_by_recurse) print(fib_generated_by_non_recurse)
def f(): print('this is the f() function') return 0 def fib(n): if n < 2: return n return fib(n - 1) + fib(n - 2) def fib_not_recursive(n): x = 0 y = 1 if n == 0: return x elif n == 1: return y while n - 2 >= 0: (x, y) = (y, x + y) n -= 1 return y if __name__ == '__main__': fib_generated_by_recurse = [fib(i) for i in range(0, 20)] fib_generated_by_non_recurse = [fib_not_recursive(i) for i in range(0, 20)] print(fib_generated_by_recurse) print(fib_generated_by_non_recurse)
class Node: def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right class BTreeData: def __init__(self, n: Node, isTarget: bool): self.n = n self.isTarget = isTarget class Solution: def findSecondLargest(self, root: Node) -> Node: return self._helper(root).n def findSecondLargest2(self, root: Node) -> Node: if root.right is not None: secondGreatestInRightSubtree = self.findSecondLargest2(root.right) if secondGreatestInRightSubtree is None: return root else: return secondGreatestInRightSubtree else: if root.left is not None: return root.left else: return None def _helper(self, n: Node) -> BTreeData: if n.right is not None: data = self._helper(n.right) if data.isTarget == False: data = BTreeData(n, True) return data else: return BTreeData(None, False ) if n.left is None else BTreeData(n.left, True)
class Node: def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right class Btreedata: def __init__(self, n: Node, isTarget: bool): self.n = n self.isTarget = isTarget class Solution: def find_second_largest(self, root: Node) -> Node: return self._helper(root).n def find_second_largest2(self, root: Node) -> Node: if root.right is not None: second_greatest_in_right_subtree = self.findSecondLargest2(root.right) if secondGreatestInRightSubtree is None: return root else: return secondGreatestInRightSubtree elif root.left is not None: return root.left else: return None def _helper(self, n: Node) -> BTreeData: if n.right is not None: data = self._helper(n.right) if data.isTarget == False: data = b_tree_data(n, True) return data else: return b_tree_data(None, False) if n.left is None else b_tree_data(n.left, True)
__all__ = ['ImgFormat'] class ImgFormat(): JPEG = 'jpeg' PNG = 'png'
__all__ = ['ImgFormat'] class Imgformat: jpeg = 'jpeg' png = 'png'
#!usr/bin/env python3 # Use standard library functions to search strings for content sample_str = "The quick brown fox jumps over the lazy dog" # startsWith and endsWith functions print(sample_str.startswith("The")) print(sample_str.startswith("the")) print(sample_str.endswith("dog")) # the find function starts searching from the left/start side of the str) # and rfind function starts searching from the right hand-side of the str # they both return the index at which the substring was found print(sample_str.find("the")) print(sample_str.rfind("the")) # for knowing if a substr is contained in the str print("the" in sample_str) # using replace new_str = sample_str.replace("lazy", "tired") print(new_str) # counting instances of substrings print(sample_str.count("over")) # CONSOLE OUTPUT: # True # False # True # 31 # 31 # True # The quick brown fox jumps over the tired dog # 1
sample_str = 'The quick brown fox jumps over the lazy dog' print(sample_str.startswith('The')) print(sample_str.startswith('the')) print(sample_str.endswith('dog')) print(sample_str.find('the')) print(sample_str.rfind('the')) print('the' in sample_str) new_str = sample_str.replace('lazy', 'tired') print(new_str) print(sample_str.count('over'))
self.description = "Install a package with an existing file matching a negated --overwrite pattern" p = pmpkg("dummy") p.files = ["foobar"] self.addpkg(p) self.filesystem = ["foobar*"] self.args = "-U --overwrite=foobar --overwrite=!foo* %s" % p.filename() self.addrule("!PACMAN_RETCODE=0") self.addrule("!PKG_EXIST=dummy") self.addrule("!FILE_MODIFIED=foobar")
self.description = 'Install a package with an existing file matching a negated --overwrite pattern' p = pmpkg('dummy') p.files = ['foobar'] self.addpkg(p) self.filesystem = ['foobar*'] self.args = '-U --overwrite=foobar --overwrite=!foo* %s' % p.filename() self.addrule('!PACMAN_RETCODE=0') self.addrule('!PKG_EXIST=dummy') self.addrule('!FILE_MODIFIED=foobar')
config_DMLPDTP2_linear = { "lr": 0.0000001, "target_stepsize": 0.0403226567555006, "feedback_wd": 9.821494271391093e-05, "lr_fb": 0.0022485520139920064, "sigma": 0.06086642605203958, "out_dir": "logs/STRegression/DMLPDTP2_linear", "network_type": "DMLPDTP2", "recurrent_input": False, "hidden_fb_activation": "linear", "size_mlp_fb": None, "fb_activation": "linear", "initialization": "xavier_normal", } config_DTP_pretrained = { "lr": 0.0000001, "target_stepsize": 0.01186235243557516, "feedback_wd": 1.084514667138376e-05, "lr_fb": 0.003289433723080337, "sigma": 0.09999731226483778, "out_dir": "logs/mnist/DTP_improved", "network_type": "DTP", "initialization": "xavier_normal", "fb_activation": "tanh", } config_collection = { "DMLPDTP2_linear": config_DMLPDTP2_linear, "DTP_pretrained": config_DTP_pretrained, } result_keys = [ "loss_train", "loss_test", "bp_angles", "nullspace_relative_norm_angles", "rec_loss", ] config_fixed = { "dataset": "student_teacher", "optimizer": "SGD", "optimizer_fb": "SGD", "momentum": 0.0, "parallel": True, "normalize_lr": True, "batch_size": 1, "forward_wd": 0.0, "epochs_fb": 30, "not_randomized": True, "not_randomized_fb": True, "extra_fb_minibatches": 0, "extra_fb_epochs": 1, "num_train": 400, "num_test": 200, "epochs": 5, "train_only_feedback_parameters": False, "freeze_forward_weights": True, "num_hidden": 2, "size_hidden": 6, "size_input": 6, "size_output": 2, "hidden_activation": "tanh", "output_activation": "linear", "no_bias": False, "no_cuda": False, "random_seed": 42, "cuda_deterministic": False, "freeze_BPlayers": False, "multiple_hpsearch": False, "save_logs": True, "save_BP_angle": True, "save_GN_angle": False, "save_GN_activations_angle": False, "save_BP_activations_angle": False, "save_nullspace_norm_ratio": True, "gn_damping": 0.0, "hpsearch": False, "plots": "compute", "log_interval": 10, } if __name__ == "__main__": pass
config_dmlpdtp2_linear = {'lr': 1e-07, 'target_stepsize': 0.0403226567555006, 'feedback_wd': 9.821494271391093e-05, 'lr_fb': 0.0022485520139920064, 'sigma': 0.06086642605203958, 'out_dir': 'logs/STRegression/DMLPDTP2_linear', 'network_type': 'DMLPDTP2', 'recurrent_input': False, 'hidden_fb_activation': 'linear', 'size_mlp_fb': None, 'fb_activation': 'linear', 'initialization': 'xavier_normal'} config_dtp_pretrained = {'lr': 1e-07, 'target_stepsize': 0.01186235243557516, 'feedback_wd': 1.084514667138376e-05, 'lr_fb': 0.003289433723080337, 'sigma': 0.09999731226483778, 'out_dir': 'logs/mnist/DTP_improved', 'network_type': 'DTP', 'initialization': 'xavier_normal', 'fb_activation': 'tanh'} config_collection = {'DMLPDTP2_linear': config_DMLPDTP2_linear, 'DTP_pretrained': config_DTP_pretrained} result_keys = ['loss_train', 'loss_test', 'bp_angles', 'nullspace_relative_norm_angles', 'rec_loss'] config_fixed = {'dataset': 'student_teacher', 'optimizer': 'SGD', 'optimizer_fb': 'SGD', 'momentum': 0.0, 'parallel': True, 'normalize_lr': True, 'batch_size': 1, 'forward_wd': 0.0, 'epochs_fb': 30, 'not_randomized': True, 'not_randomized_fb': True, 'extra_fb_minibatches': 0, 'extra_fb_epochs': 1, 'num_train': 400, 'num_test': 200, 'epochs': 5, 'train_only_feedback_parameters': False, 'freeze_forward_weights': True, 'num_hidden': 2, 'size_hidden': 6, 'size_input': 6, 'size_output': 2, 'hidden_activation': 'tanh', 'output_activation': 'linear', 'no_bias': False, 'no_cuda': False, 'random_seed': 42, 'cuda_deterministic': False, 'freeze_BPlayers': False, 'multiple_hpsearch': False, 'save_logs': True, 'save_BP_angle': True, 'save_GN_angle': False, 'save_GN_activations_angle': False, 'save_BP_activations_angle': False, 'save_nullspace_norm_ratio': True, 'gn_damping': 0.0, 'hpsearch': False, 'plots': 'compute', 'log_interval': 10} if __name__ == '__main__': pass
''' #list1 = ["Jiggu","JJ","gg","GG"] tuple = ("Jiggu","JJ","gg","GG") #for item in list1: #print(item) for item in tuple: print(item) '''
""" #list1 = ["Jiggu","JJ","gg","GG"] tuple = ("Jiggu","JJ","gg","GG") #for item in list1: #print(item) for item in tuple: print(item) """
# program for check two strings are anagram or not # https://www.geeksforgeeks.org/check-whether-two-strings-are-anagram-of-each-other/ # time complexity is O(n) and space is O(1) def isAnagram(str1, str2): if(len(str1) != len(str2)): return False count = 0 # sum up all the chars ascii values for i in str1: count += ord(i) # subtract next string each char from sum for i in str2: count -= ord(i) # if count contains 0 then it's anagram return count == 0 # time complexity is O(nlogn) def is_anagram(str1, str2): # anagram string should be same length if(len(str1) != len(str2)): return False # sorting the string in ascending order str1 = sorted(str1) str2 = sorted(str2) # if both contains same chars return True return str1 == str2 if __name__ == '__main__': str1 = input('Enter string ').lower() str2 = input('Enter another string ').lower() # invoke the first function ana = is_anagram(str1, str2) anagram = isAnagram(str1, str2) if(ana and anagram): print('Strings are anagram') else: print('Strings are not anagram')
def is_anagram(str1, str2): if len(str1) != len(str2): return False count = 0 for i in str1: count += ord(i) for i in str2: count -= ord(i) return count == 0 def is_anagram(str1, str2): if len(str1) != len(str2): return False str1 = sorted(str1) str2 = sorted(str2) return str1 == str2 if __name__ == '__main__': str1 = input('Enter string ').lower() str2 = input('Enter another string ').lower() ana = is_anagram(str1, str2) anagram = is_anagram(str1, str2) if ana and anagram: print('Strings are anagram') else: print('Strings are not anagram')
''' Provides one variable __version__. Caution: All code in here will be executed by setup.py. ''' __version__ = '0.2.2'
""" Provides one variable __version__. Caution: All code in here will be executed by setup.py. """ __version__ = '0.2.2'
class Pipe(object): def __init__(self, function): self.function = function def __ror__(self, other): return self.function(other) def __call__(self, *args, **kwargs): return Pipe(lambda x: self.function(x, *args, **kwargs))
class Pipe(object): def __init__(self, function): self.function = function def __ror__(self, other): return self.function(other) def __call__(self, *args, **kwargs): return pipe(lambda x: self.function(x, *args, **kwargs))
def cprint(c): r, i = c.real, c.imag if r != 0: if i > 0: print('{:.2f} + {:.2f}i'.format(r, i)) elif i < 0: print('{:.2f} - {:.2f}i'.format(r, abs(i))) else: print('{:.2f}'.format(r)) else: if i != 0: print('{:.2f}i'.format(i)) else: print('{:.2f}'.format(0)) cr, ci = map(float, input().split()) dr, di = map(float, input().split()) c = complex(cr, ci) d = complex(dr, di) cprint(c+d) cprint(c-d) cprint(c*d) cprint(c/d) print('{0:.2f}'.format(abs(c))) print('{0:.2f}'.format(abs(d)))
def cprint(c): (r, i) = (c.real, c.imag) if r != 0: if i > 0: print('{:.2f} + {:.2f}i'.format(r, i)) elif i < 0: print('{:.2f} - {:.2f}i'.format(r, abs(i))) else: print('{:.2f}'.format(r)) elif i != 0: print('{:.2f}i'.format(i)) else: print('{:.2f}'.format(0)) (cr, ci) = map(float, input().split()) (dr, di) = map(float, input().split()) c = complex(cr, ci) d = complex(dr, di) cprint(c + d) cprint(c - d) cprint(c * d) cprint(c / d) print('{0:.2f}'.format(abs(c))) print('{0:.2f}'.format(abs(d)))
ei = 3 suu1 = int(ei) suu2 = int(ei*ei) suu3 = int(ei*ei*ei) print(suu1 + suu2 + suu3)
ei = 3 suu1 = int(ei) suu2 = int(ei * ei) suu3 = int(ei * ei * ei) print(suu1 + suu2 + suu3)
# Write your frequency_dictionary function here: def frequency_dictionary(words): freqs = {} for word in words: if word not in freqs: freqs[word] = 0 freqs[word] += 1 return freqs # Uncomment these function calls to test your function: print(frequency_dictionary(["apple", "apple", "cat", 1])) # should print {"apple":2, "cat":1, 1:1} print(frequency_dictionary([0,0,0,0,0])) # should print {0:5}
def frequency_dictionary(words): freqs = {} for word in words: if word not in freqs: freqs[word] = 0 freqs[word] += 1 return freqs print(frequency_dictionary(['apple', 'apple', 'cat', 1])) print(frequency_dictionary([0, 0, 0, 0, 0]))
a = {} a["ad ad asd"] = 4 b = 4 if (b is a["ad ad asd"]): print("jaka") else: print ("luka") print (str([[0, 0, 0], [0, 0, 0], [0, 0, 0]]))
a = {} a['ad ad asd'] = 4 b = 4 if b is a['ad ad asd']: print('jaka') else: print('luka') print(str([[0, 0, 0], [0, 0, 0], [0, 0, 0]]))
def calc_percentage_at_k(test, pred, k): # sort scores, ascending pred, test = zip(*sorted(zip(pred, test))) pred, test = list(pred), list(test) pred.reverse() test.reverse() # calculates number of values to consider n_percentage = round(len(pred) * k / 100) # check if predicted is equal to true value, and count it # set true and false positive counters tp, fp = 0, 0 for i in range(n_percentage): # true positive if test[i] == 1: tp += 1 precision_at_k = tp / n_percentage return round(precision_at_k * 100, 2)
def calc_percentage_at_k(test, pred, k): (pred, test) = zip(*sorted(zip(pred, test))) (pred, test) = (list(pred), list(test)) pred.reverse() test.reverse() n_percentage = round(len(pred) * k / 100) (tp, fp) = (0, 0) for i in range(n_percentage): if test[i] == 1: tp += 1 precision_at_k = tp / n_percentage return round(precision_at_k * 100, 2)
print("Enter elements:") arr=list(map(int,input().split())) for i in range(1, len(arr)): val=arr[i] j=i-1 while j>=0 and val<arr[j]: arr[j+1]=arr[j] j-=1 arr[j+1]=val print(arr)
print('Enter elements:') arr = list(map(int, input().split())) for i in range(1, len(arr)): val = arr[i] j = i - 1 while j >= 0 and val < arr[j]: arr[j + 1] = arr[j] j -= 1 arr[j + 1] = val print(arr)
class Solution: def maximumScore(self, nums: List[int], multipliers: List[int]) -> int: n, m = len(nums), len(multipliers) dp = [[0] * (m + 1) for _ in range(m + 1)] for i in range(m - 1, -1, -1): for left in range(i, -1, -1): mult = multipliers[i] right = n - 1 - (i - left) dp[i][left] = max(mult * nums[left] + dp[i + 1][left + 1], mult * nums[right] + dp[i + 1][left]) return dp[0][0] def maximumScore1(self, nums: List[int], mult: List[int]) -> int: @functools.lru_cache(maxsize=2000) def dp(left, i): if i >= len(mult): return 0 right = len(nums) - 1 - (i - left) return max(mult[i] * nums[left] + dp(left+1, i+1), mult[i] * nums[right] + dp(left, i+1)) return dp(0, 0)
class Solution: def maximum_score(self, nums: List[int], multipliers: List[int]) -> int: (n, m) = (len(nums), len(multipliers)) dp = [[0] * (m + 1) for _ in range(m + 1)] for i in range(m - 1, -1, -1): for left in range(i, -1, -1): mult = multipliers[i] right = n - 1 - (i - left) dp[i][left] = max(mult * nums[left] + dp[i + 1][left + 1], mult * nums[right] + dp[i + 1][left]) return dp[0][0] def maximum_score1(self, nums: List[int], mult: List[int]) -> int: @functools.lru_cache(maxsize=2000) def dp(left, i): if i >= len(mult): return 0 right = len(nums) - 1 - (i - left) return max(mult[i] * nums[left] + dp(left + 1, i + 1), mult[i] * nums[right] + dp(left, i + 1)) return dp(0, 0)
HOST = 'localhost' PORT = 27017 # -- HTTP-SESSION Settings -- HTTP_SESSION_TOKEN_TIMEOUT = 0 HTTP_SESSION_TOKEN_SIZE = 24 # -- Existing Commands -- COMMANDS_UNKNOWN = ['login', 'me', 'asset', 'user', 'plugin'] COMMANDS_USER = ['login', 'user', 'me', 'asset', 'logout', 'plugin', 'document', 'following', 'followers', 'follow'] COMMANDS_ADMIN = [''].append(COMMANDS_USER) # -- MACE MACE_FOLDER = 'mace/' MACE_ANNOTATIONS = 'argotario.csv' MACE_COMPETENCES = 'competence' MACE_PREDICTIONS = 'prediction' MACE_TIMEOUT = 60 * 60 * 4 MIN_VOTINGS = 4 # -- COMMUNICATION-SESSION SESSION_TIMEOUT = 86400 # --GAME-SESSION GSESSION_TICKER = 4 GSESSION_TIMEOUT = 86400 # --DB-TIMEOUT DB_RETRY = 5 DB_SERVER_SELECTION_TIMEOUT = 100 # -- GENERAL SETTINGS NAME = 'Argotario Python Backend Server' WELCOME = 'Welcome!' WEBSITE = 'https://argue.ukp.informatik.tu-darmstadt.de' VERSION = '1.0-SNAPSHOT' # --EMAIL SETTINGS MAIL_FROM = 'argotario@example.com' MAIL_TO = 'text@example.com' MAIL_SMTP = 'smtp.example.com' MAIL_PASSWORD = 'random_generated_safe_password'
host = 'localhost' port = 27017 http_session_token_timeout = 0 http_session_token_size = 24 commands_unknown = ['login', 'me', 'asset', 'user', 'plugin'] commands_user = ['login', 'user', 'me', 'asset', 'logout', 'plugin', 'document', 'following', 'followers', 'follow'] commands_admin = [''].append(COMMANDS_USER) mace_folder = 'mace/' mace_annotations = 'argotario.csv' mace_competences = 'competence' mace_predictions = 'prediction' mace_timeout = 60 * 60 * 4 min_votings = 4 session_timeout = 86400 gsession_ticker = 4 gsession_timeout = 86400 db_retry = 5 db_server_selection_timeout = 100 name = 'Argotario Python Backend Server' welcome = 'Welcome!' website = 'https://argue.ukp.informatik.tu-darmstadt.de' version = '1.0-SNAPSHOT' mail_from = 'argotario@example.com' mail_to = 'text@example.com' mail_smtp = 'smtp.example.com' mail_password = 'random_generated_safe_password'
# Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param p, a tree node # @param q, a tree node # @return a boolean def isSameTree(self, p, q): if p == None or q == None: return p == q return p.val == q.val and self.isSameTree(p.left, q.left) \ and self.isSameTree(p.right, q.right)
class Solution: def is_same_tree(self, p, q): if p == None or q == None: return p == q return p.val == q.val and self.isSameTree(p.left, q.left) and self.isSameTree(p.right, q.right)
sentence = "What is the Airspeed Velocity of an Unladen Swallow?".split() count = {word:len(word) for word in sentence} print(count)
sentence = 'What is the Airspeed Velocity of an Unladen Swallow?'.split() count = {word: len(word) for word in sentence} print(count)
skaitli = [1, 5, 3, 9, 7, 11, 4] skaitli2 = [5, 8, 12, 77, 44, 13] print(skaitli) print(skaitli[4]) sajauts_saraksts = ["Maris", 1, 2, 3, "Liepa", ["burkani", 12]] print(sajauts_saraksts) skaitli_kopa = skaitli + skaitli2 skaitli_kopa.sort() print(skaitli_kopa)
skaitli = [1, 5, 3, 9, 7, 11, 4] skaitli2 = [5, 8, 12, 77, 44, 13] print(skaitli) print(skaitli[4]) sajauts_saraksts = ['Maris', 1, 2, 3, 'Liepa', ['burkani', 12]] print(sajauts_saraksts) skaitli_kopa = skaitli + skaitli2 skaitli_kopa.sort() print(skaitli_kopa)
TIME_FORMAT = "%Y-%m-%d, %H:%M:%S" FILE_TRAIN_DATA_STATS = "train_data_stats.txt" FILE_EVAL_DATA_STATS = "eval_data_stats.txt" FILE_PREV_EVAL_DATA_STATS = "prev_eval_data_stats.txt" FILE_DATA_SCHEMA = "schema.txt" FILE_EVAL_RESULT = "eval_result.txt" VALIDATION_SUCCESS = "success" VALIDATION_FAIL = "fail"
time_format = '%Y-%m-%d, %H:%M:%S' file_train_data_stats = 'train_data_stats.txt' file_eval_data_stats = 'eval_data_stats.txt' file_prev_eval_data_stats = 'prev_eval_data_stats.txt' file_data_schema = 'schema.txt' file_eval_result = 'eval_result.txt' validation_success = 'success' validation_fail = 'fail'
class Color(object): def __init__(self, r : float, g : float, b : float): self.r = r self.g = g self.b = b def tuple(self): return (self.r, self.g, self.b) class Gray(Color): # intensity bet def __init__(self, intensity : float): self.r = self.g = self.b = intensity self.intensity = intensity def __repr__(self): return "colors.Gray(%s)" % (self.intensity,) Black = Gray(0) White = Gray(1)
class Color(object): def __init__(self, r: float, g: float, b: float): self.r = r self.g = g self.b = b def tuple(self): return (self.r, self.g, self.b) class Gray(Color): def __init__(self, intensity: float): self.r = self.g = self.b = intensity self.intensity = intensity def __repr__(self): return 'colors.Gray(%s)' % (self.intensity,) black = gray(0) white = gray(1)
# # PySNMP MIB module MPLS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MPLS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:04:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion") jnxMibs, = mibBuilder.importSymbols("JUNIPER-SMI", "jnxMibs") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibIdentifier, TimeTicks, NotificationType, ObjectIdentity, ModuleIdentity, Bits, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Unsigned32, Counter32, iso, IpAddress, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "TimeTicks", "NotificationType", "ObjectIdentity", "ModuleIdentity", "Bits", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Unsigned32", "Counter32", "iso", "IpAddress", "Counter64") TextualConvention, DisplayString, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TimeStamp") mpls = ModuleIdentity((1, 3, 6, 1, 4, 1, 2636, 3, 2)) mpls.setRevisions(('2009-02-23 14:45',)) if mibBuilder.loadTexts: mpls.setLastUpdated('200902231445Z') if mibBuilder.loadTexts: mpls.setOrganization('Juniper Networks, Inc.') mplsInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1)) mplsVersion = MibScalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsVersion.setStatus('current') mplsSignalingProto = MibScalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("other", 2), ("rsvp", 3), ("ldp", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsSignalingProto.setStatus('current') mplsConfiguredLsps = MibScalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsConfiguredLsps.setStatus('current') mplsActiveLsps = MibScalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsActiveLsps.setStatus('current') mplsTEInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2)) mplsTEDistProtocol = MibScalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("isis", 2), ("ospf", 3), ("isis-ospf", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTEDistProtocol.setStatus('current') mplsAdminGroupList = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 2), ) if mibBuilder.loadTexts: mplsAdminGroupList.setStatus('current') mplsAdminGroup = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 2, 1), ).setIndexNames((0, "MPLS-MIB", "mplsAdminGroupNumber")) if mibBuilder.loadTexts: mplsAdminGroup.setStatus('current') mplsAdminGroupNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsAdminGroupNumber.setStatus('current') mplsAdminGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsAdminGroupName.setStatus('current') mplsLspList = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3), ) if mibBuilder.loadTexts: mplsLspList.setStatus('deprecated') mplsLspEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1), ).setIndexNames((0, "MPLS-MIB", "mplsLspName")) if mibBuilder.loadTexts: mplsLspEntry.setStatus('deprecated') mplsLspName = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(32, 32)).setFixedLength(32)).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspName.setStatus('deprecated') mplsLspState = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("up", 2), ("down", 3), ("notInService", 4), ("backupActive", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspState.setStatus('deprecated') mplsLspOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspOctets.setStatus('deprecated') mplsLspPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspPackets.setStatus('deprecated') mplsLspAge = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 5), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspAge.setStatus('deprecated') mplsLspTimeUp = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspTimeUp.setStatus('deprecated') mplsLspPrimaryTimeUp = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 7), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspPrimaryTimeUp.setStatus('deprecated') mplsLspTransitions = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspTransitions.setStatus('deprecated') mplsLspLastTransition = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 9), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspLastTransition.setStatus('deprecated') mplsLspPathChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspPathChanges.setStatus('deprecated') mplsLspLastPathChange = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 11), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspLastPathChange.setStatus('deprecated') mplsLspConfiguredPaths = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspConfiguredPaths.setStatus('deprecated') mplsLspStandbyPaths = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspStandbyPaths.setStatus('deprecated') mplsLspOperationalPaths = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspOperationalPaths.setStatus('deprecated') mplsLspFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 15), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspFrom.setStatus('deprecated') mplsLspTo = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 16), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspTo.setStatus('deprecated') mplsPathName = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathName.setStatus('deprecated') mplsPathType = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("primary", 2), ("standby", 3), ("secondary", 4), ("bypass", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathType.setStatus('deprecated') mplsPathExplicitRoute = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 19), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathExplicitRoute.setStatus('deprecated') mplsPathRecordRoute = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 20), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathRecordRoute.setStatus('deprecated') mplsPathBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathBandwidth.setStatus('deprecated') mplsPathCOS = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathCOS.setStatus('deprecated') mplsPathInclude = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 23), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInclude.setStatus('deprecated') mplsPathExclude = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 24), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathExclude.setStatus('deprecated') mplsPathSetupPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathSetupPriority.setStatus('deprecated') mplsPathHoldPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathHoldPriority.setStatus('deprecated') mplsPathProperties = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=NamedValues(("record-route", 1), ("adaptive", 2), ("cspf", 4), ("mergeable", 8), ("preemptable", 16), ("preemptive", 32), ("fast-reroute", 64)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathProperties.setStatus('deprecated') mplsLspInfoList = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5), ) if mibBuilder.loadTexts: mplsLspInfoList.setStatus('current') mplsLspInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1), ).setIndexNames((1, "MPLS-MIB", "mplsLspInfoName")) if mibBuilder.loadTexts: mplsLspInfoEntry.setStatus('current') mplsLspInfoName = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: mplsLspInfoName.setStatus('current') mplsLspInfoState = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("up", 2), ("down", 3), ("notInService", 4), ("backupActive", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoState.setStatus('current') mplsLspInfoOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoOctets.setStatus('current') mplsLspInfoPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoPackets.setStatus('current') mplsLspInfoAge = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 5), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoAge.setStatus('current') mplsLspInfoTimeUp = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoTimeUp.setStatus('current') mplsLspInfoPrimaryTimeUp = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 7), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoPrimaryTimeUp.setStatus('current') mplsLspInfoTransitions = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoTransitions.setStatus('current') mplsLspInfoLastTransition = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 9), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoLastTransition.setStatus('current') mplsLspInfoPathChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoPathChanges.setStatus('current') mplsLspInfoLastPathChange = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 11), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoLastPathChange.setStatus('current') mplsLspInfoConfiguredPaths = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoConfiguredPaths.setStatus('current') mplsLspInfoStandbyPaths = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoStandbyPaths.setStatus('current') mplsLspInfoOperationalPaths = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoOperationalPaths.setStatus('current') mplsLspInfoFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 15), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoFrom.setStatus('current') mplsLspInfoTo = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 16), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoTo.setStatus('current') mplsPathInfoName = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoName.setStatus('current') mplsPathInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("primary", 2), ("standby", 3), ("secondary", 4), ("bypass", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoType.setStatus('current') mplsPathInfoExplicitRoute = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 19), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoExplicitRoute.setStatus('current') mplsPathInfoRecordRoute = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 20), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoRecordRoute.setStatus('current') mplsPathInfoBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoBandwidth.setStatus('current') mplsPathInfoCOS = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoCOS.setStatus('current') mplsPathInfoInclude = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 23), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoInclude.setStatus('current') mplsPathInfoExclude = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 24), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoExclude.setStatus('current') mplsPathInfoSetupPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoSetupPriority.setStatus('current') mplsPathInfoHoldPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoHoldPriority.setStatus('current') mplsPathInfoProperties = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=NamedValues(("record-route", 1), ("adaptive", 2), ("cspf", 4), ("mergeable", 8), ("preemptable", 16), ("preemptive", 32), ("fast-reroute", 64)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoProperties.setStatus('current') mplsLspInfoAggrOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoAggrOctets.setStatus('current') mplsLspInfoAggrPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsLspInfoAggrPackets.setStatus('current') mplsPathInfoRecordRouteWithLabels = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 30), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsPathInfoRecordRouteWithLabels.setStatus('current') mplsTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4)) mplsLspUp = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 1)).setObjects(("MPLS-MIB", "mplsLspName"), ("MPLS-MIB", "mplsPathName")) if mibBuilder.loadTexts: mplsLspUp.setStatus('deprecated') mplsLspDown = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 2)).setObjects(("MPLS-MIB", "mplsLspName"), ("MPLS-MIB", "mplsPathName")) if mibBuilder.loadTexts: mplsLspDown.setStatus('deprecated') mplsLspChange = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 3)).setObjects(("MPLS-MIB", "mplsLspName"), ("MPLS-MIB", "mplsPathName")) if mibBuilder.loadTexts: mplsLspChange.setStatus('deprecated') mplsLspPathDown = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 4)).setObjects(("MPLS-MIB", "mplsLspName"), ("MPLS-MIB", "mplsPathName")) if mibBuilder.loadTexts: mplsLspPathDown.setStatus('deprecated') mplsLspPathUp = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 5)).setObjects(("MPLS-MIB", "mplsLspName"), ("MPLS-MIB", "mplsPathName")) if mibBuilder.loadTexts: mplsLspPathUp.setStatus('deprecated') mplsLspTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0)) mplsLspInfoUp = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 1)).setObjects(("MPLS-MIB", "mplsLspInfoName"), ("MPLS-MIB", "mplsPathInfoName")) if mibBuilder.loadTexts: mplsLspInfoUp.setStatus('current') mplsLspInfoDown = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 2)).setObjects(("MPLS-MIB", "mplsLspInfoName"), ("MPLS-MIB", "mplsPathInfoName")) if mibBuilder.loadTexts: mplsLspInfoDown.setStatus('current') mplsLspInfoChange = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 3)).setObjects(("MPLS-MIB", "mplsLspInfoName"), ("MPLS-MIB", "mplsPathInfoName")) if mibBuilder.loadTexts: mplsLspInfoChange.setStatus('current') mplsLspInfoPathDown = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 4)).setObjects(("MPLS-MIB", "mplsLspInfoName"), ("MPLS-MIB", "mplsPathInfoName")) if mibBuilder.loadTexts: mplsLspInfoPathDown.setStatus('current') mplsLspInfoPathUp = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 5)).setObjects(("MPLS-MIB", "mplsLspInfoName"), ("MPLS-MIB", "mplsPathInfoName")) if mibBuilder.loadTexts: mplsLspInfoPathUp.setStatus('current') mibBuilder.exportSymbols("MPLS-MIB", mplsLspInfoPathUp=mplsLspInfoPathUp, mplsLspAge=mplsLspAge, mplsPathInfoProperties=mplsPathInfoProperties, mplsLspTransitions=mplsLspTransitions, mplsPathExclude=mplsPathExclude, mplsPathInfoType=mplsPathInfoType, mplsLspTraps=mplsLspTraps, mplsLspOperationalPaths=mplsLspOperationalPaths, mplsLspInfoAge=mplsLspInfoAge, mplsLspTo=mplsLspTo, mplsTEDistProtocol=mplsTEDistProtocol, mplsLspInfoAggrOctets=mplsLspInfoAggrOctets, mplsPathRecordRoute=mplsPathRecordRoute, mplsLspInfoStandbyPaths=mplsLspInfoStandbyPaths, mplsLspInfoChange=mplsLspInfoChange, mplsPathType=mplsPathType, mplsPathExplicitRoute=mplsPathExplicitRoute, mplsLspDown=mplsLspDown, mplsLspInfoPackets=mplsLspInfoPackets, mplsAdminGroupList=mplsAdminGroupList, mplsAdminGroupName=mplsAdminGroupName, mplsPathInclude=mplsPathInclude, mplsLspEntry=mplsLspEntry, mplsLspInfoLastPathChange=mplsLspInfoLastPathChange, mplsPathProperties=mplsPathProperties, mplsTEInfo=mplsTEInfo, mplsLspInfoDown=mplsLspInfoDown, mplsPathName=mplsPathName, mplsLspInfoTo=mplsLspInfoTo, mplsVersion=mplsVersion, mplsPathInfoExplicitRoute=mplsPathInfoExplicitRoute, mplsPathInfoHoldPriority=mplsPathInfoHoldPriority, mplsLspState=mplsLspState, mplsPathInfoRecordRouteWithLabels=mplsPathInfoRecordRouteWithLabels, mplsLspFrom=mplsLspFrom, mplsLspInfoTransitions=mplsLspInfoTransitions, mplsPathInfoRecordRoute=mplsPathInfoRecordRoute, mplsActiveLsps=mplsActiveLsps, mplsSignalingProto=mplsSignalingProto, mplsAdminGroupNumber=mplsAdminGroupNumber, mplsPathInfoBandwidth=mplsPathInfoBandwidth, mplsPathInfoExclude=mplsPathInfoExclude, mplsConfiguredLsps=mplsConfiguredLsps, mplsLspPathDown=mplsLspPathDown, mpls=mpls, mplsLspInfoList=mplsLspInfoList, mplsLspInfoState=mplsLspInfoState, mplsLspInfoPathChanges=mplsLspInfoPathChanges, mplsLspTimeUp=mplsLspTimeUp, mplsLspInfoAggrPackets=mplsLspInfoAggrPackets, mplsLspPathUp=mplsLspPathUp, mplsPathHoldPriority=mplsPathHoldPriority, mplsAdminGroup=mplsAdminGroup, mplsPathInfoCOS=mplsPathInfoCOS, mplsPathInfoSetupPriority=mplsPathInfoSetupPriority, mplsLspPrimaryTimeUp=mplsLspPrimaryTimeUp, mplsLspUp=mplsLspUp, mplsLspInfoPrimaryTimeUp=mplsLspInfoPrimaryTimeUp, mplsLspLastTransition=mplsLspLastTransition, mplsTraps=mplsTraps, mplsLspInfoPathDown=mplsLspInfoPathDown, mplsLspOctets=mplsLspOctets, mplsLspInfoConfiguredPaths=mplsLspInfoConfiguredPaths, mplsLspStandbyPaths=mplsLspStandbyPaths, mplsLspPackets=mplsLspPackets, mplsPathBandwidth=mplsPathBandwidth, mplsLspList=mplsLspList, mplsPathSetupPriority=mplsPathSetupPriority, mplsLspInfoFrom=mplsLspInfoFrom, mplsLspLastPathChange=mplsLspLastPathChange, mplsLspInfoName=mplsLspInfoName, mplsLspPathChanges=mplsLspPathChanges, PYSNMP_MODULE_ID=mpls, mplsLspInfoTimeUp=mplsLspInfoTimeUp, mplsLspInfoLastTransition=mplsLspInfoLastTransition, mplsLspInfoUp=mplsLspInfoUp, mplsLspConfiguredPaths=mplsLspConfiguredPaths, mplsPathInfoInclude=mplsPathInfoInclude, mplsLspInfoOctets=mplsLspInfoOctets, mplsLspInfoEntry=mplsLspInfoEntry, mplsInfo=mplsInfo, mplsLspInfoOperationalPaths=mplsLspInfoOperationalPaths, mplsPathCOS=mplsPathCOS, mplsLspChange=mplsLspChange, mplsLspName=mplsLspName, mplsPathInfoName=mplsPathInfoName)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_intersection, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion') (jnx_mibs,) = mibBuilder.importSymbols('JUNIPER-SMI', 'jnxMibs') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (mib_identifier, time_ticks, notification_type, object_identity, module_identity, bits, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, unsigned32, counter32, iso, ip_address, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'TimeTicks', 'NotificationType', 'ObjectIdentity', 'ModuleIdentity', 'Bits', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Unsigned32', 'Counter32', 'iso', 'IpAddress', 'Counter64') (textual_convention, display_string, time_stamp) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'TimeStamp') mpls = module_identity((1, 3, 6, 1, 4, 1, 2636, 3, 2)) mpls.setRevisions(('2009-02-23 14:45',)) if mibBuilder.loadTexts: mpls.setLastUpdated('200902231445Z') if mibBuilder.loadTexts: mpls.setOrganization('Juniper Networks, Inc.') mpls_info = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1)) mpls_version = mib_scalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsVersion.setStatus('current') mpls_signaling_proto = mib_scalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('other', 2), ('rsvp', 3), ('ldp', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsSignalingProto.setStatus('current') mpls_configured_lsps = mib_scalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsConfiguredLsps.setStatus('current') mpls_active_lsps = mib_scalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsActiveLsps.setStatus('current') mpls_te_info = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2)) mpls_te_dist_protocol = mib_scalar((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('isis', 2), ('ospf', 3), ('isis-ospf', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsTEDistProtocol.setStatus('current') mpls_admin_group_list = mib_table((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 2)) if mibBuilder.loadTexts: mplsAdminGroupList.setStatus('current') mpls_admin_group = mib_table_row((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 2, 1)).setIndexNames((0, 'MPLS-MIB', 'mplsAdminGroupNumber')) if mibBuilder.loadTexts: mplsAdminGroup.setStatus('current') mpls_admin_group_number = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsAdminGroupNumber.setStatus('current') mpls_admin_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 2, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsAdminGroupName.setStatus('current') mpls_lsp_list = mib_table((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3)) if mibBuilder.loadTexts: mplsLspList.setStatus('deprecated') mpls_lsp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1)).setIndexNames((0, 'MPLS-MIB', 'mplsLspName')) if mibBuilder.loadTexts: mplsLspEntry.setStatus('deprecated') mpls_lsp_name = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(32, 32)).setFixedLength(32)).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspName.setStatus('deprecated') mpls_lsp_state = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('up', 2), ('down', 3), ('notInService', 4), ('backupActive', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspState.setStatus('deprecated') mpls_lsp_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspOctets.setStatus('deprecated') mpls_lsp_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspPackets.setStatus('deprecated') mpls_lsp_age = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 5), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspAge.setStatus('deprecated') mpls_lsp_time_up = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 6), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspTimeUp.setStatus('deprecated') mpls_lsp_primary_time_up = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 7), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspPrimaryTimeUp.setStatus('deprecated') mpls_lsp_transitions = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspTransitions.setStatus('deprecated') mpls_lsp_last_transition = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 9), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspLastTransition.setStatus('deprecated') mpls_lsp_path_changes = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspPathChanges.setStatus('deprecated') mpls_lsp_last_path_change = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 11), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspLastPathChange.setStatus('deprecated') mpls_lsp_configured_paths = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspConfiguredPaths.setStatus('deprecated') mpls_lsp_standby_paths = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspStandbyPaths.setStatus('deprecated') mpls_lsp_operational_paths = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspOperationalPaths.setStatus('deprecated') mpls_lsp_from = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 15), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspFrom.setStatus('deprecated') mpls_lsp_to = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 16), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspTo.setStatus('deprecated') mpls_path_name = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathName.setStatus('deprecated') mpls_path_type = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('primary', 2), ('standby', 3), ('secondary', 4), ('bypass', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathType.setStatus('deprecated') mpls_path_explicit_route = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 19), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathExplicitRoute.setStatus('deprecated') mpls_path_record_route = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 20), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathRecordRoute.setStatus('deprecated') mpls_path_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 21), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathBandwidth.setStatus('deprecated') mpls_path_cos = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 22), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathCOS.setStatus('deprecated') mpls_path_include = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 23), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInclude.setStatus('deprecated') mpls_path_exclude = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 24), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathExclude.setStatus('deprecated') mpls_path_setup_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathSetupPriority.setStatus('deprecated') mpls_path_hold_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathHoldPriority.setStatus('deprecated') mpls_path_properties = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 3, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=named_values(('record-route', 1), ('adaptive', 2), ('cspf', 4), ('mergeable', 8), ('preemptable', 16), ('preemptive', 32), ('fast-reroute', 64)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathProperties.setStatus('deprecated') mpls_lsp_info_list = mib_table((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5)) if mibBuilder.loadTexts: mplsLspInfoList.setStatus('current') mpls_lsp_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1)).setIndexNames((1, 'MPLS-MIB', 'mplsLspInfoName')) if mibBuilder.loadTexts: mplsLspInfoEntry.setStatus('current') mpls_lsp_info_name = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: mplsLspInfoName.setStatus('current') mpls_lsp_info_state = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('up', 2), ('down', 3), ('notInService', 4), ('backupActive', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoState.setStatus('current') mpls_lsp_info_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoOctets.setStatus('current') mpls_lsp_info_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoPackets.setStatus('current') mpls_lsp_info_age = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 5), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoAge.setStatus('current') mpls_lsp_info_time_up = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 6), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoTimeUp.setStatus('current') mpls_lsp_info_primary_time_up = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 7), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoPrimaryTimeUp.setStatus('current') mpls_lsp_info_transitions = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoTransitions.setStatus('current') mpls_lsp_info_last_transition = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 9), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoLastTransition.setStatus('current') mpls_lsp_info_path_changes = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoPathChanges.setStatus('current') mpls_lsp_info_last_path_change = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 11), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoLastPathChange.setStatus('current') mpls_lsp_info_configured_paths = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoConfiguredPaths.setStatus('current') mpls_lsp_info_standby_paths = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoStandbyPaths.setStatus('current') mpls_lsp_info_operational_paths = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoOperationalPaths.setStatus('current') mpls_lsp_info_from = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 15), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoFrom.setStatus('current') mpls_lsp_info_to = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 16), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoTo.setStatus('current') mpls_path_info_name = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoName.setStatus('current') mpls_path_info_type = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('primary', 2), ('standby', 3), ('secondary', 4), ('bypass', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoType.setStatus('current') mpls_path_info_explicit_route = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 19), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoExplicitRoute.setStatus('current') mpls_path_info_record_route = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 20), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoRecordRoute.setStatus('current') mpls_path_info_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 21), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoBandwidth.setStatus('current') mpls_path_info_cos = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 22), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoCOS.setStatus('current') mpls_path_info_include = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 23), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoInclude.setStatus('current') mpls_path_info_exclude = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 24), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoExclude.setStatus('current') mpls_path_info_setup_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoSetupPriority.setStatus('current') mpls_path_info_hold_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoHoldPriority.setStatus('current') mpls_path_info_properties = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=named_values(('record-route', 1), ('adaptive', 2), ('cspf', 4), ('mergeable', 8), ('preemptable', 16), ('preemptive', 32), ('fast-reroute', 64)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoProperties.setStatus('current') mpls_lsp_info_aggr_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoAggrOctets.setStatus('current') mpls_lsp_info_aggr_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 29), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsLspInfoAggrPackets.setStatus('current') mpls_path_info_record_route_with_labels = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 2, 5, 1, 30), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: mplsPathInfoRecordRouteWithLabels.setStatus('current') mpls_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4)) mpls_lsp_up = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 1)).setObjects(('MPLS-MIB', 'mplsLspName'), ('MPLS-MIB', 'mplsPathName')) if mibBuilder.loadTexts: mplsLspUp.setStatus('deprecated') mpls_lsp_down = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 2)).setObjects(('MPLS-MIB', 'mplsLspName'), ('MPLS-MIB', 'mplsPathName')) if mibBuilder.loadTexts: mplsLspDown.setStatus('deprecated') mpls_lsp_change = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 3)).setObjects(('MPLS-MIB', 'mplsLspName'), ('MPLS-MIB', 'mplsPathName')) if mibBuilder.loadTexts: mplsLspChange.setStatus('deprecated') mpls_lsp_path_down = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 4)).setObjects(('MPLS-MIB', 'mplsLspName'), ('MPLS-MIB', 'mplsPathName')) if mibBuilder.loadTexts: mplsLspPathDown.setStatus('deprecated') mpls_lsp_path_up = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 4, 5)).setObjects(('MPLS-MIB', 'mplsLspName'), ('MPLS-MIB', 'mplsPathName')) if mibBuilder.loadTexts: mplsLspPathUp.setStatus('deprecated') mpls_lsp_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0)) mpls_lsp_info_up = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 1)).setObjects(('MPLS-MIB', 'mplsLspInfoName'), ('MPLS-MIB', 'mplsPathInfoName')) if mibBuilder.loadTexts: mplsLspInfoUp.setStatus('current') mpls_lsp_info_down = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 2)).setObjects(('MPLS-MIB', 'mplsLspInfoName'), ('MPLS-MIB', 'mplsPathInfoName')) if mibBuilder.loadTexts: mplsLspInfoDown.setStatus('current') mpls_lsp_info_change = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 3)).setObjects(('MPLS-MIB', 'mplsLspInfoName'), ('MPLS-MIB', 'mplsPathInfoName')) if mibBuilder.loadTexts: mplsLspInfoChange.setStatus('current') mpls_lsp_info_path_down = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 4)).setObjects(('MPLS-MIB', 'mplsLspInfoName'), ('MPLS-MIB', 'mplsPathInfoName')) if mibBuilder.loadTexts: mplsLspInfoPathDown.setStatus('current') mpls_lsp_info_path_up = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 2, 0, 5)).setObjects(('MPLS-MIB', 'mplsLspInfoName'), ('MPLS-MIB', 'mplsPathInfoName')) if mibBuilder.loadTexts: mplsLspInfoPathUp.setStatus('current') mibBuilder.exportSymbols('MPLS-MIB', mplsLspInfoPathUp=mplsLspInfoPathUp, mplsLspAge=mplsLspAge, mplsPathInfoProperties=mplsPathInfoProperties, mplsLspTransitions=mplsLspTransitions, mplsPathExclude=mplsPathExclude, mplsPathInfoType=mplsPathInfoType, mplsLspTraps=mplsLspTraps, mplsLspOperationalPaths=mplsLspOperationalPaths, mplsLspInfoAge=mplsLspInfoAge, mplsLspTo=mplsLspTo, mplsTEDistProtocol=mplsTEDistProtocol, mplsLspInfoAggrOctets=mplsLspInfoAggrOctets, mplsPathRecordRoute=mplsPathRecordRoute, mplsLspInfoStandbyPaths=mplsLspInfoStandbyPaths, mplsLspInfoChange=mplsLspInfoChange, mplsPathType=mplsPathType, mplsPathExplicitRoute=mplsPathExplicitRoute, mplsLspDown=mplsLspDown, mplsLspInfoPackets=mplsLspInfoPackets, mplsAdminGroupList=mplsAdminGroupList, mplsAdminGroupName=mplsAdminGroupName, mplsPathInclude=mplsPathInclude, mplsLspEntry=mplsLspEntry, mplsLspInfoLastPathChange=mplsLspInfoLastPathChange, mplsPathProperties=mplsPathProperties, mplsTEInfo=mplsTEInfo, mplsLspInfoDown=mplsLspInfoDown, mplsPathName=mplsPathName, mplsLspInfoTo=mplsLspInfoTo, mplsVersion=mplsVersion, mplsPathInfoExplicitRoute=mplsPathInfoExplicitRoute, mplsPathInfoHoldPriority=mplsPathInfoHoldPriority, mplsLspState=mplsLspState, mplsPathInfoRecordRouteWithLabels=mplsPathInfoRecordRouteWithLabels, mplsLspFrom=mplsLspFrom, mplsLspInfoTransitions=mplsLspInfoTransitions, mplsPathInfoRecordRoute=mplsPathInfoRecordRoute, mplsActiveLsps=mplsActiveLsps, mplsSignalingProto=mplsSignalingProto, mplsAdminGroupNumber=mplsAdminGroupNumber, mplsPathInfoBandwidth=mplsPathInfoBandwidth, mplsPathInfoExclude=mplsPathInfoExclude, mplsConfiguredLsps=mplsConfiguredLsps, mplsLspPathDown=mplsLspPathDown, mpls=mpls, mplsLspInfoList=mplsLspInfoList, mplsLspInfoState=mplsLspInfoState, mplsLspInfoPathChanges=mplsLspInfoPathChanges, mplsLspTimeUp=mplsLspTimeUp, mplsLspInfoAggrPackets=mplsLspInfoAggrPackets, mplsLspPathUp=mplsLspPathUp, mplsPathHoldPriority=mplsPathHoldPriority, mplsAdminGroup=mplsAdminGroup, mplsPathInfoCOS=mplsPathInfoCOS, mplsPathInfoSetupPriority=mplsPathInfoSetupPriority, mplsLspPrimaryTimeUp=mplsLspPrimaryTimeUp, mplsLspUp=mplsLspUp, mplsLspInfoPrimaryTimeUp=mplsLspInfoPrimaryTimeUp, mplsLspLastTransition=mplsLspLastTransition, mplsTraps=mplsTraps, mplsLspInfoPathDown=mplsLspInfoPathDown, mplsLspOctets=mplsLspOctets, mplsLspInfoConfiguredPaths=mplsLspInfoConfiguredPaths, mplsLspStandbyPaths=mplsLspStandbyPaths, mplsLspPackets=mplsLspPackets, mplsPathBandwidth=mplsPathBandwidth, mplsLspList=mplsLspList, mplsPathSetupPriority=mplsPathSetupPriority, mplsLspInfoFrom=mplsLspInfoFrom, mplsLspLastPathChange=mplsLspLastPathChange, mplsLspInfoName=mplsLspInfoName, mplsLspPathChanges=mplsLspPathChanges, PYSNMP_MODULE_ID=mpls, mplsLspInfoTimeUp=mplsLspInfoTimeUp, mplsLspInfoLastTransition=mplsLspInfoLastTransition, mplsLspInfoUp=mplsLspInfoUp, mplsLspConfiguredPaths=mplsLspConfiguredPaths, mplsPathInfoInclude=mplsPathInfoInclude, mplsLspInfoOctets=mplsLspInfoOctets, mplsLspInfoEntry=mplsLspInfoEntry, mplsInfo=mplsInfo, mplsLspInfoOperationalPaths=mplsLspInfoOperationalPaths, mplsPathCOS=mplsPathCOS, mplsLspChange=mplsLspChange, mplsLspName=mplsLspName, mplsPathInfoName=mplsPathInfoName)
def RC(value, tolerance=5.0, power=None, package="0603",pkgcode="07"): res = {"manufacturer": "Yageo"} suffix = ['R', 'K', 'M'] digits = 3 if tolerance < 5 else 2 while value >= 1000: value = value/1000. suffix.pop(0) suffix = suffix[0] whole = str(int(value)) decimal = str(round((value-int(value)) * 10**(digits-len(whole)))) v_str = (whole+suffix+decimal).strip("0") if v_str == "R": v_str = "0R" if tolerance == 0.5: t_str = 'D' elif tolerance == 1.0: t_str = 'F' else: t_str = 'J' res["MPN"] = "RC{}{}R-{}{}L".format(package, t_str, pkgcode, v_str) return res _cc_voltages = {6300: '5', 10000: '6', 16000: '7', 25000: '8', 50000: '9'} def CC_XxR(value, tolerance=10, voltage=16, package='0603', pkgcode='R', dielectric="X7R"): res = {"manufacturer": "Yageo"} c_pf = int(value * 1e12) exp = 0 while c_pf >= 100: exp += 1 c_pf /= 10 if package > '0603' and pkgcode == 'R': pkgcode = 'K' c_str = str(int(c_pf))+str(exp) v_mv = round(voltage*1e3) v_str = _cc_voltages.get(v_mv, '9') t_str = 'K' res["MPN"] = "CC{}{}{}{}{}BB{}".format(package, t_str, pkgcode, dielectric, v_str, c_str) return res
def rc(value, tolerance=5.0, power=None, package='0603', pkgcode='07'): res = {'manufacturer': 'Yageo'} suffix = ['R', 'K', 'M'] digits = 3 if tolerance < 5 else 2 while value >= 1000: value = value / 1000.0 suffix.pop(0) suffix = suffix[0] whole = str(int(value)) decimal = str(round((value - int(value)) * 10 ** (digits - len(whole)))) v_str = (whole + suffix + decimal).strip('0') if v_str == 'R': v_str = '0R' if tolerance == 0.5: t_str = 'D' elif tolerance == 1.0: t_str = 'F' else: t_str = 'J' res['MPN'] = 'RC{}{}R-{}{}L'.format(package, t_str, pkgcode, v_str) return res _cc_voltages = {6300: '5', 10000: '6', 16000: '7', 25000: '8', 50000: '9'} def cc__xx_r(value, tolerance=10, voltage=16, package='0603', pkgcode='R', dielectric='X7R'): res = {'manufacturer': 'Yageo'} c_pf = int(value * 1000000000000.0) exp = 0 while c_pf >= 100: exp += 1 c_pf /= 10 if package > '0603' and pkgcode == 'R': pkgcode = 'K' c_str = str(int(c_pf)) + str(exp) v_mv = round(voltage * 1000.0) v_str = _cc_voltages.get(v_mv, '9') t_str = 'K' res['MPN'] = 'CC{}{}{}{}{}BB{}'.format(package, t_str, pkgcode, dielectric, v_str, c_str) return res
class Animal(object): def run(self): print('Animal is running...') def eat(self): print('Animal is eating...') class Dog(Animal): def run(self): print('Dog is running...') class Cat(Animal): def __init__(self): self.name = 'Tom' def __str__(self): return self.name def __len__(self): return 100 dog = Dog() dog.run() dog.eat() cat = Cat() cat.run() print(cat)
class Animal(object): def run(self): print('Animal is running...') def eat(self): print('Animal is eating...') class Dog(Animal): def run(self): print('Dog is running...') class Cat(Animal): def __init__(self): self.name = 'Tom' def __str__(self): return self.name def __len__(self): return 100 dog = dog() dog.run() dog.eat() cat = cat() cat.run() print(cat)
x = [15 ,12, 8, 8, 7, 7, 7, 6, 5, 3] y = [10 ,25, 17, 11, 13, 17, 20, 13, 9, 15] n = len(x) xy = [x[i] * y[i] for i in range(n)] x_square = [x[i] * x[i] for i in range(n)] avg_x = sum(x) / n avg_y = sum(y) / n avg_xy = sum(xy) / n avg_xsqr = sum(x_square) / n m = ((avg_x * avg_y) - avg_xy) / (avg_x ** 2 - avg_xsqr) c = avg_y - (m * avg_x) print(round((m * 10 + c), 2))
x = [15, 12, 8, 8, 7, 7, 7, 6, 5, 3] y = [10, 25, 17, 11, 13, 17, 20, 13, 9, 15] n = len(x) xy = [x[i] * y[i] for i in range(n)] x_square = [x[i] * x[i] for i in range(n)] avg_x = sum(x) / n avg_y = sum(y) / n avg_xy = sum(xy) / n avg_xsqr = sum(x_square) / n m = (avg_x * avg_y - avg_xy) / (avg_x ** 2 - avg_xsqr) c = avg_y - m * avg_x print(round(m * 10 + c, 2))
filename_prefix = 'Rebuttal-SawyerLift-ADR' xlabel = 'Environment steps (3M)' ylabel = "Average Discounted Rewards" mopa_cutoff_step = 1000000 others_cutoff_step = 2000000 max_step = 3000000 max_y_axis_value = 110 legend = False data_key = "train_ep/rew_discounted" bc_y_value = 34.77 plot_labels = { "Ours": [ 'Rebuttal_Ours_Lift_1234_smart-river-671', 'Rebuttal_Ours_Lift_200_clean-cherry-673', 'Rebuttal_Ours_Lift_2320_clear-water-695', 'Rebuttal_Ours_Lift_500_vivid-lake-675', 'Rebuttal_Ours_Lift_1800_lilac-butterfly-676', ], "Ours (w/o BC smoothing)": [ 'Rebuttal_Ours(wo_bc_smoothing)_Lift_1234_sparkling-terrain-670', 'Rebuttal_Ours(wo_bc_smoothing)_Lift_200_toasty-pine-678', 'Rebuttal_Ours(wo_bc_smoothing)_Lift_2320_ethereal-deluge-692', 'Rebuttal_Ours(wo_bc_smoothing)_Lift_500_floral-water-679', 'Rebuttal_Ours(wo_bc_smoothing)_Lift_1800_youthful-microwave-674', ], "CoL": [ 'Rebuttal_CoL_MoPA_Lift_1234_stoic-fire-187', 'Rebuttal_CoL_MoPA_Lift_200_wandering-waterfall-188', 'Rebuttal_CoL_MoPA_Lift_2320_desert-flower-696', 'Rebuttal_CoL_MoPA_Lift_500_expert-brook-189', 'Rebuttal_CoL_MoPA_Lift_1800_usual-cloud-224', ], "CoL(w BC smoothing)": [ 'Rebuttal_CoL_Lift_1234_scarlet-yogurt-681', 'Rebuttal_CoL_Lift_200_lunar-sun-683', 'Rebuttal_CoL_Lift_2320_lyric-frog-689', 'Rebuttal_CoL_Lift_500_scarlet-eon-685', 'Rebuttal_CoL_Lift_1800_astral-night-671', ], "MoPA Asym. SAC": [ 'Rebuttal_MoPA-Asym._SAC_Lift_1234_rl.SawyerLiftObstacle-v0.08.21.07.52.Asymmetric-MoPA-SAC.0', 'Rebuttal_MoPA-Asym._SAC_Lift_200_rl.SawyerLiftObstacle-v0.08.22.01.30.Asymmetric-MoPA-SAC.0', 'Rebuttal_MoPA-Asym._SAC_Lift_2320_rl.SawyerLiftObstacle-v0.08.28.15.22.Asymmetric-MoPA-SAC.0', 'Rebuttal_MoPA-Asym._SAC_Lift_500_rl.SawyerLiftObstacle-v0.08.22.01.35.Asymmetric-MoPA-SAC.0', 'Rebuttal_MoPA-Asym._SAC_Lift_1800_rl.SawyerLiftObstacle-v0.08.30.07.28.Asymmetric-MoPA-SAC.0', ], "Asym. SAC": [ 'Rebuttal_Asym._SAC_Lift_1234_fast-bee-631', 'Rebuttal_Asym._SAC_Lift_200_swift-smoke-632', 'Rebuttal_Asym._SAC_Lift_500_visionary-dream-633', 'Rebuttal_Asym._SAC_Lift_2320_MyMachine_rural-valley-691', 'Rebuttal_Asym._SAC_Lift_1800_zany-wave-684', ], } # choosing Rebuttal_Asym._SAC_Assembly_200_comfy-violet-635 because it has 3m env. steps line_labels = { "BC-Visual": ['Rebuttal_Asym._SAC_Assembly_200_comfy-violet-635'], } line_colors = { 'Ours': 'C0', 'Ours (w/o BC smoothing)': 'C1', 'CoL': 'C2', 'CoL(w BC smoothing)': 'C3', 'MoPA Asym. SAC': 'C4', 'Asym. SAC': 'C5', 'BC-Visual': 'C6', } mopa_curve = { "Ours": 'Rebuttal_MoPA_RL_Lift_2000_rl.SawyerLiftObstacle-v0.08.27.MoPA-SAC.2000', "Ours (w/o BC smoothing)": 'Rebuttal_MoPA_RL_Lift_2000_rl.SawyerLiftObstacle-v0.08.27.MoPA-SAC.2000', "CoL": 'Rebuttal_MoPA_RL_Lift_2000_rl.SawyerLiftObstacle-v0.08.27.MoPA-SAC.2000', "CoL(w BC smoothing)": 'Rebuttal_MoPA_RL_Lift_2000_rl.SawyerLiftObstacle-v0.08.27.MoPA-SAC.2000', } # plot_labels = { # "Ours": [], # "Ours (w/o BC smoothing)": [], # "CoL": [], # "CoL(w BC smoothing)": [], # "MoPA Asym. SAC": [], # "Asym. SAC": [], # } # line_labels = { # "BC-Visual": [], # }
filename_prefix = 'Rebuttal-SawyerLift-ADR' xlabel = 'Environment steps (3M)' ylabel = 'Average Discounted Rewards' mopa_cutoff_step = 1000000 others_cutoff_step = 2000000 max_step = 3000000 max_y_axis_value = 110 legend = False data_key = 'train_ep/rew_discounted' bc_y_value = 34.77 plot_labels = {'Ours': ['Rebuttal_Ours_Lift_1234_smart-river-671', 'Rebuttal_Ours_Lift_200_clean-cherry-673', 'Rebuttal_Ours_Lift_2320_clear-water-695', 'Rebuttal_Ours_Lift_500_vivid-lake-675', 'Rebuttal_Ours_Lift_1800_lilac-butterfly-676'], 'Ours (w/o BC smoothing)': ['Rebuttal_Ours(wo_bc_smoothing)_Lift_1234_sparkling-terrain-670', 'Rebuttal_Ours(wo_bc_smoothing)_Lift_200_toasty-pine-678', 'Rebuttal_Ours(wo_bc_smoothing)_Lift_2320_ethereal-deluge-692', 'Rebuttal_Ours(wo_bc_smoothing)_Lift_500_floral-water-679', 'Rebuttal_Ours(wo_bc_smoothing)_Lift_1800_youthful-microwave-674'], 'CoL': ['Rebuttal_CoL_MoPA_Lift_1234_stoic-fire-187', 'Rebuttal_CoL_MoPA_Lift_200_wandering-waterfall-188', 'Rebuttal_CoL_MoPA_Lift_2320_desert-flower-696', 'Rebuttal_CoL_MoPA_Lift_500_expert-brook-189', 'Rebuttal_CoL_MoPA_Lift_1800_usual-cloud-224'], 'CoL(w BC smoothing)': ['Rebuttal_CoL_Lift_1234_scarlet-yogurt-681', 'Rebuttal_CoL_Lift_200_lunar-sun-683', 'Rebuttal_CoL_Lift_2320_lyric-frog-689', 'Rebuttal_CoL_Lift_500_scarlet-eon-685', 'Rebuttal_CoL_Lift_1800_astral-night-671'], 'MoPA Asym. SAC': ['Rebuttal_MoPA-Asym._SAC_Lift_1234_rl.SawyerLiftObstacle-v0.08.21.07.52.Asymmetric-MoPA-SAC.0', 'Rebuttal_MoPA-Asym._SAC_Lift_200_rl.SawyerLiftObstacle-v0.08.22.01.30.Asymmetric-MoPA-SAC.0', 'Rebuttal_MoPA-Asym._SAC_Lift_2320_rl.SawyerLiftObstacle-v0.08.28.15.22.Asymmetric-MoPA-SAC.0', 'Rebuttal_MoPA-Asym._SAC_Lift_500_rl.SawyerLiftObstacle-v0.08.22.01.35.Asymmetric-MoPA-SAC.0', 'Rebuttal_MoPA-Asym._SAC_Lift_1800_rl.SawyerLiftObstacle-v0.08.30.07.28.Asymmetric-MoPA-SAC.0'], 'Asym. SAC': ['Rebuttal_Asym._SAC_Lift_1234_fast-bee-631', 'Rebuttal_Asym._SAC_Lift_200_swift-smoke-632', 'Rebuttal_Asym._SAC_Lift_500_visionary-dream-633', 'Rebuttal_Asym._SAC_Lift_2320_MyMachine_rural-valley-691', 'Rebuttal_Asym._SAC_Lift_1800_zany-wave-684']} line_labels = {'BC-Visual': ['Rebuttal_Asym._SAC_Assembly_200_comfy-violet-635']} line_colors = {'Ours': 'C0', 'Ours (w/o BC smoothing)': 'C1', 'CoL': 'C2', 'CoL(w BC smoothing)': 'C3', 'MoPA Asym. SAC': 'C4', 'Asym. SAC': 'C5', 'BC-Visual': 'C6'} mopa_curve = {'Ours': 'Rebuttal_MoPA_RL_Lift_2000_rl.SawyerLiftObstacle-v0.08.27.MoPA-SAC.2000', 'Ours (w/o BC smoothing)': 'Rebuttal_MoPA_RL_Lift_2000_rl.SawyerLiftObstacle-v0.08.27.MoPA-SAC.2000', 'CoL': 'Rebuttal_MoPA_RL_Lift_2000_rl.SawyerLiftObstacle-v0.08.27.MoPA-SAC.2000', 'CoL(w BC smoothing)': 'Rebuttal_MoPA_RL_Lift_2000_rl.SawyerLiftObstacle-v0.08.27.MoPA-SAC.2000'}
def say_hello(): print('Hello') def say_goodbye(): print('Goodbye')
def say_hello(): print('Hello') def say_goodbye(): print('Goodbye')
_base_ = "./ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10_ape.py" OUTPUT_DIR = "output/self6dpp/ssLM/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10/glue" DATASETS = dict( TRAIN=("lm_real_glue_train",), TRAIN2=("lm_pbr_glue_train",), TRAIN2_RATIO=0.0, TEST=("lm_real_glue_test",) ) MODEL = dict( WEIGHTS="output/gdrn/lm_pbr/resnest50d_a6_AugCosyAAEGray_BG05_mlBCE_lm_pbr_100e/glue_Rsym/model_final_wo_optim-324d8f16.pth" )
_base_ = './ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10_ape.py' output_dir = 'output/self6dpp/ssLM/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10/glue' datasets = dict(TRAIN=('lm_real_glue_train',), TRAIN2=('lm_pbr_glue_train',), TRAIN2_RATIO=0.0, TEST=('lm_real_glue_test',)) model = dict(WEIGHTS='output/gdrn/lm_pbr/resnest50d_a6_AugCosyAAEGray_BG05_mlBCE_lm_pbr_100e/glue_Rsym/model_final_wo_optim-324d8f16.pth')
class DefaultConfigurations: @staticmethod def get(): return {}
class Defaultconfigurations: @staticmethod def get(): return {}
freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/asyn.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/core.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/__init__.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/queues.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/synchro.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'unittest.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'upysh.py')
freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/asyn.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/core.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/__init__.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/queues.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'uasyncio/synchro.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'unittest.py') freeze('../../../../../../Micropython-Library-Development/lib/', 'upysh.py')
name = "Bob" greeting = "Hello, Bob" print(greeting) name = "Rolf" print(greeting) greeting = f"Hello, {name}" print(greeting) # -- name = "Anne" print( greeting ) # This still prints "Hello, Rolf" because `greeting` was calculated earlier. print( f"Hello, {name}" ) # This is correct, since it uses `name` at the current point in time. # -- Using .format() -- # We can define template strings and then replace parts of it with another value, instead of doing it directly in the string. greeting = "Hello, {}" with_name = greeting.format("Rolf") print(with_name) longer_phrase = "Hello, {}. Today is {}." formatted = longer_phrase.format("Rolf", "Monday") print(formatted)
name = 'Bob' greeting = 'Hello, Bob' print(greeting) name = 'Rolf' print(greeting) greeting = f'Hello, {name}' print(greeting) name = 'Anne' print(greeting) print(f'Hello, {name}') greeting = 'Hello, {}' with_name = greeting.format('Rolf') print(with_name) longer_phrase = 'Hello, {}. Today is {}.' formatted = longer_phrase.format('Rolf', 'Monday') print(formatted)
class Player: def __init__(self, player_id: int, nickname: str, websocket, is_vip: bool = False): self.player_id = player_id self.nickname = nickname self.is_vip = is_vip self.websocket = websocket def __repr__(self): return 'Player({}, {})'.format(self.player_id, self.nickname)
class Player: def __init__(self, player_id: int, nickname: str, websocket, is_vip: bool=False): self.player_id = player_id self.nickname = nickname self.is_vip = is_vip self.websocket = websocket def __repr__(self): return 'Player({}, {})'.format(self.player_id, self.nickname)
Word = "Hello" Letters = [] for w in Word: print(w) if w == "e": print("Funny") Letters.append(w) print(Letters) Numbers = [1,2,3,4,5] for l in Numbers: print(l) Numbers1 = [] # for num in range(10): for num in range(-1, 13, 3): Numbers.append(num) print(num) # While loops counter = 1 while (counter <= 10): print(counter) counter += 1 # Break loop Participants = ["Jen", "Alex", "Tina", "Joe", "Ben"] position = 1 for name in Participants: if name == "Tina": print("About to break") break print("About to increment") position = position + 1 print(position) # Continue loop for number in range(10): if number % 3 == 0: print(number) continue print("Not")
word = 'Hello' letters = [] for w in Word: print(w) if w == 'e': print('Funny') Letters.append(w) print(Letters) numbers = [1, 2, 3, 4, 5] for l in Numbers: print(l) numbers1 = [] for num in range(-1, 13, 3): Numbers.append(num) print(num) counter = 1 while counter <= 10: print(counter) counter += 1 participants = ['Jen', 'Alex', 'Tina', 'Joe', 'Ben'] position = 1 for name in Participants: if name == 'Tina': print('About to break') break print('About to increment') position = position + 1 print(position) for number in range(10): if number % 3 == 0: print(number) continue print('Not')
def ROTRIGHT(i: int, bits: int) -> int: return i >> bits | i << 32 - bits # Two Extreme Bits (8 bits) def TEB(i: int) -> int: return ((i & 0x80) >> 6) | (i & 1) # Two Extreme Bits Reversed (8 bits) def TEBR(i: int) -> int: return (i & 0xFF) >> 7 | (i & 1) << 1 # Middles Extreme Bits (32 bits) def MEB(i: int) -> int: return TEB(i >> 24) << 6 | TEB(i >> 16) << 4 | TEB(i >> 8) << 2 | TEB(i) lookup_reversed_bytes = [ 0x00, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80, 0x90, 0xA0, 0xB0, 0xC0, 0xD0, 0xE0, 0xF0, 0x01, 0x11, 0x21, 0x31, 0x41, 0x51, 0x61, 0x71, 0x81, 0x91, 0xA1, 0xB1, 0xC1, 0xD1, 0xE1, 0xF1, 0x02, 0x12, 0x22, 0x32, 0x42, 0x52, 0x62, 0x72, 0x82, 0x92, 0xA2, 0xB2, 0xC2, 0xD2, 0xE2, 0xF2, 0x03, 0x13, 0x23, 0x33, 0x43, 0x53, 0x63, 0x73, 0x83, 0x93, 0xA3, 0xB3, 0xC3, 0xD3, 0xE3, 0xF3, 0x04, 0x14, 0x24, 0x34, 0x44, 0x54, 0x64, 0x74, 0x84, 0x94, 0xA4, 0xB4, 0xC4, 0xD4, 0xE4, 0xF4, 0x05, 0x15, 0x25, 0x35, 0x45, 0x55, 0x65, 0x75, 0x85, 0x95, 0xA5, 0xB5, 0xC5, 0xD5, 0xE5, 0xF5, 0x06, 0x16, 0x26, 0x36, 0x46, 0x56, 0x66, 0x76, 0x86, 0x96, 0xA6, 0xB6, 0xC6, 0xD6, 0xE6, 0xF6, 0x07, 0x17, 0x27, 0x37, 0x47, 0x57, 0x67, 0x77, 0x87, 0x97, 0xA7, 0xB7, 0xC7, 0xD7, 0xE7, 0xF7, 0x08, 0x18, 0x28, 0x38, 0x48, 0x58, 0x68, 0x78, 0x88, 0x98, 0xA8, 0xB8, 0xC8, 0xD8, 0xE8, 0xF8, 0x09, 0x19, 0x29, 0x39, 0x49, 0x59, 0x69, 0x79, 0x89, 0x99, 0xA9, 0xB9, 0xC9, 0xD9, 0xE9, 0xF9, 0x0A, 0x1A, 0x2A, 0x3A, 0x4A, 0x5A, 0x6A, 0x7A, 0x8A, 0x9A, 0xAA, 0xBA, 0xCA, 0xDA, 0xEA, 0xFA, 0x0B, 0x1B, 0x2B, 0x3B, 0x4B, 0x5B, 0x6B, 0x7B, 0x8B, 0x9B, 0xAB, 0xBB, 0xCB, 0xDB, 0xEB, 0xFB, 0x0C, 0x1C, 0x2C, 0x3C, 0x4C, 0x5C, 0x6C, 0x7C, 0x8C, 0x9C, 0xAC, 0xBC, 0xCC, 0xDC, 0xEC, 0xFC, 0x0D, 0x1D, 0x2D, 0x3D, 0x4D, 0x5D, 0x6D, 0x7D, 0x8D, 0x9D, 0xAD, 0xBD, 0xCD, 0xDD, 0xED, 0xFD, 0x0E, 0x1E, 0x2E, 0x3E, 0x4E, 0x5E, 0x6E, 0x7E, 0x8E, 0x9E, 0xAE, 0xBE, 0xCE, 0xDE, 0xEE, 0xFE, 0x0F, 0x1F, 0x2F, 0x3F, 0x4F, 0x5F, 0x6F, 0x7F, 0x8F, 0x9F, 0xAF, 0xBF, 0xCF, 0xDF, 0xEF, 0xFF, ] def kkv_hash(data: bytes) -> int: length = len(data) if length == 0 or (length == 1 and data[0] == 0): return 0 hash, i = length, 0 hash ^= data[i] << 24 while i < length: hash = (hash << 3) & 0xFFFFFFFF hash ^= hash >> 2 hash |= 0x80000000 hash += lookup_reversed_bytes[data[i]] hash &= 0xFFFFFFFF hash ^= ROTRIGHT(hash, 17) hash += ROTRIGHT(hash ^ MEB(hash), TEBR(data[i])) hash &= 0xFFFFFFFF hash >>= 1 i += 1 hash ^= (MEB(hash) << 23) & 0xFFFFFFFF | (MEB(hash) << 7) & 0xFFFFFFFF return hash
def rotright(i: int, bits: int) -> int: return i >> bits | i << 32 - bits def teb(i: int) -> int: return (i & 128) >> 6 | i & 1 def tebr(i: int) -> int: return (i & 255) >> 7 | (i & 1) << 1 def meb(i: int) -> int: return teb(i >> 24) << 6 | teb(i >> 16) << 4 | teb(i >> 8) << 2 | teb(i) lookup_reversed_bytes = [0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 1, 17, 33, 49, 65, 81, 97, 113, 129, 145, 161, 177, 193, 209, 225, 241, 2, 18, 34, 50, 66, 82, 98, 114, 130, 146, 162, 178, 194, 210, 226, 242, 3, 19, 35, 51, 67, 83, 99, 115, 131, 147, 163, 179, 195, 211, 227, 243, 4, 20, 36, 52, 68, 84, 100, 116, 132, 148, 164, 180, 196, 212, 228, 244, 5, 21, 37, 53, 69, 85, 101, 117, 133, 149, 165, 181, 197, 213, 229, 245, 6, 22, 38, 54, 70, 86, 102, 118, 134, 150, 166, 182, 198, 214, 230, 246, 7, 23, 39, 55, 71, 87, 103, 119, 135, 151, 167, 183, 199, 215, 231, 247, 8, 24, 40, 56, 72, 88, 104, 120, 136, 152, 168, 184, 200, 216, 232, 248, 9, 25, 41, 57, 73, 89, 105, 121, 137, 153, 169, 185, 201, 217, 233, 249, 10, 26, 42, 58, 74, 90, 106, 122, 138, 154, 170, 186, 202, 218, 234, 250, 11, 27, 43, 59, 75, 91, 107, 123, 139, 155, 171, 187, 203, 219, 235, 251, 12, 28, 44, 60, 76, 92, 108, 124, 140, 156, 172, 188, 204, 220, 236, 252, 13, 29, 45, 61, 77, 93, 109, 125, 141, 157, 173, 189, 205, 221, 237, 253, 14, 30, 46, 62, 78, 94, 110, 126, 142, 158, 174, 190, 206, 222, 238, 254, 15, 31, 47, 63, 79, 95, 111, 127, 143, 159, 175, 191, 207, 223, 239, 255] def kkv_hash(data: bytes) -> int: length = len(data) if length == 0 or (length == 1 and data[0] == 0): return 0 (hash, i) = (length, 0) hash ^= data[i] << 24 while i < length: hash = hash << 3 & 4294967295 hash ^= hash >> 2 hash |= 2147483648 hash += lookup_reversed_bytes[data[i]] hash &= 4294967295 hash ^= rotright(hash, 17) hash += rotright(hash ^ meb(hash), tebr(data[i])) hash &= 4294967295 hash >>= 1 i += 1 hash ^= meb(hash) << 23 & 4294967295 | meb(hash) << 7 & 4294967295 return hash
game = [[0, 0, 0, ' '], [0, 0, 0, ' '], [0, 0, 0, ' '], [0, 0, 0, ' '], [0, 0, 0, ' ']] frame_counter = 0 # Ask score for frames for frame in game: if frame_counter < 4: shot_number = 0 for shot in range(2): game[frame_counter][shot_number] = int(input(f'Score for frame {frame_counter + 1}, shot {shot_number + 1}: ')) shot_number += 1 frame_counter += 1 if 0 > game[frame_counter][0] + game[frame_counter][0] > 10: raise ValueError('values are too large or too small') else: for shot in range(game[frame_counter].count(0) - 1): game[4][shot] = int(input(f'Score for frame 10, shot {shot + 1}: ')) if 0 > game[4][shot] > 10: raise ValueError('Value is too large or too small') if game[4][0] == 10 and game[4][1] == 10: game[4] = ([10, 10, 20, 'X', 'X'], [0, 0, ' ']) game[4][1][0] = int(input('Score for frame 10, shot 3: ')) game[4][1][1] = game[4][1][0] elif game[4][0] == 10: game[4] = ([10, 10, 'X'], [game[4][1], 0, 0, ' ']) game[4][1][1] = int(input('Score for frame 10, shot 3: ')) elif game[4][0] + game[4][1] == 10: game[4] = ([game[4][0], game[4][1], 10, '/'], [0, 0, ' ']) game[4][1][0] = int(input('Score for frame 10, shot 3: ')) game[4][1][1] = game[4][1][0] frame_counter = 1 print(game) game.reverse() # Count and organize scores for frame in game[1:]: if frame[0] == 10 and frame[1] == 0: game[frame_counter][2] = 10 + game[frame_counter - 1][0] if game[frame_counter - 1][0] == 10 and frame_counter != 1: game[frame_counter][2] += game[frame_counter - 2][0] else: game[frame_counter][2] += game[frame_counter - 1][1] game[frame_counter][3] = 'X' elif frame[0] + frame[1] == 10: game[frame_counter][2] = 10 + game[frame_counter - 1][0] game[frame_counter][3] = '/' elif 0 < frame[0] + frame[1] < 10: game[frame_counter][2] = frame[0] + frame[1] game[frame_counter][3] = f'{frame[0] + frame[1]}' elif frame[0] + frame[1] == 0: game[frame_counter][2] = 0 game[frame_counter][3] = '0' print(f'frame {4 - frame_counter} finished') print(game) frame_counter += 1 game.reverse() print(game)
game = [[0, 0, 0, ' '], [0, 0, 0, ' '], [0, 0, 0, ' '], [0, 0, 0, ' '], [0, 0, 0, ' ']] frame_counter = 0 for frame in game: if frame_counter < 4: shot_number = 0 for shot in range(2): game[frame_counter][shot_number] = int(input(f'Score for frame {frame_counter + 1}, shot {shot_number + 1}: ')) shot_number += 1 frame_counter += 1 if 0 > game[frame_counter][0] + game[frame_counter][0] > 10: raise value_error('values are too large or too small') else: for shot in range(game[frame_counter].count(0) - 1): game[4][shot] = int(input(f'Score for frame 10, shot {shot + 1}: ')) if 0 > game[4][shot] > 10: raise value_error('Value is too large or too small') if game[4][0] == 10 and game[4][1] == 10: game[4] = ([10, 10, 20, 'X', 'X'], [0, 0, ' ']) game[4][1][0] = int(input('Score for frame 10, shot 3: ')) game[4][1][1] = game[4][1][0] elif game[4][0] == 10: game[4] = ([10, 10, 'X'], [game[4][1], 0, 0, ' ']) game[4][1][1] = int(input('Score for frame 10, shot 3: ')) elif game[4][0] + game[4][1] == 10: game[4] = ([game[4][0], game[4][1], 10, '/'], [0, 0, ' ']) game[4][1][0] = int(input('Score for frame 10, shot 3: ')) game[4][1][1] = game[4][1][0] frame_counter = 1 print(game) game.reverse() for frame in game[1:]: if frame[0] == 10 and frame[1] == 0: game[frame_counter][2] = 10 + game[frame_counter - 1][0] if game[frame_counter - 1][0] == 10 and frame_counter != 1: game[frame_counter][2] += game[frame_counter - 2][0] else: game[frame_counter][2] += game[frame_counter - 1][1] game[frame_counter][3] = 'X' elif frame[0] + frame[1] == 10: game[frame_counter][2] = 10 + game[frame_counter - 1][0] game[frame_counter][3] = '/' elif 0 < frame[0] + frame[1] < 10: game[frame_counter][2] = frame[0] + frame[1] game[frame_counter][3] = f'{frame[0] + frame[1]}' elif frame[0] + frame[1] == 0: game[frame_counter][2] = 0 game[frame_counter][3] = '0' print(f'frame {4 - frame_counter} finished') print(game) frame_counter += 1 game.reverse() print(game)
# Prime Numbers, Sieve of Eratosthenes def prime_list(min_num, max_num): sieve = [True] * (max_num + 1) # Sieve of Eratosthenes m = int(max_num ** 0.5) # sqrt(n) for i in range(2, m + 1): if sieve[i] == True: for j in range(i+i, max_num+1, i): sieve[j] = False sieve[1] = False return [i for i in range(min_num, max_num+1) if sieve[i] == True] M, N = map(int, input().split(" ")) primes = prime_list(M, N) for prime in primes: print(prime)
def prime_list(min_num, max_num): sieve = [True] * (max_num + 1) m = int(max_num ** 0.5) for i in range(2, m + 1): if sieve[i] == True: for j in range(i + i, max_num + 1, i): sieve[j] = False sieve[1] = False return [i for i in range(min_num, max_num + 1) if sieve[i] == True] (m, n) = map(int, input().split(' ')) primes = prime_list(M, N) for prime in primes: print(prime)