content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# Ex083.2 """Create a program where the user types any espression that uses parentheses. Your application should analyze where the expression passed has open and closed parentheses in the correct order.""" list = [] temp = [] expression = str(input('\033[32mType a expression: \033[m')) for c in expression: if c == '(': temp.append(c) if c == ')': temp.append(c) if len(temp) % 2 == 0: print('\033[34mYour expression is \033[32mVALID!\033[m') else: print('\033[34mYour expression is \033[31mINVALID!\033[m') print('\033[32mxD\033[m')
"""Create a program where the user types any espression that uses parentheses. Your application should analyze where the expression passed has open and closed parentheses in the correct order.""" list = [] temp = [] expression = str(input('\x1b[32mType a expression: \x1b[m')) for c in expression: if c == '(': temp.append(c) if c == ')': temp.append(c) if len(temp) % 2 == 0: print('\x1b[34mYour expression is \x1b[32mVALID!\x1b[m') else: print('\x1b[34mYour expression is \x1b[31mINVALID!\x1b[m') print('\x1b[32mxD\x1b[m')
jogador = {} lista = [] total = 0 jogador['Nome'] = input('Nome do jogador: ') quantidade = int(input('Quantas partidas {} jogou ? '.format(jogador['Nome']))) for i in range(0, quantidade): gol_quantidade = int(input('Quantos gols na partida {} ? '.format(i + 1))) total += gol_quantidade lista.append(gol_quantidade) jogador['Gols'] = lista jogador['Total'] = total print('-=' * 30) print(jogador) print('-=' * 30) for k, v in jogador.items(): print('O campo {} tem valor {}'.format(k, v)) print('-=' * 30) print('O jogador {} jogor {} partidas'.format(jogador['Nome'], quantidade)) for i, valor in enumerate(jogador['Gols']): print(' => Na partida {} , fez {} gols'.format(i + 1, valor)) print('Foi um total de {} gols'.format(total))
jogador = {} lista = [] total = 0 jogador['Nome'] = input('Nome do jogador: ') quantidade = int(input('Quantas partidas {} jogou ? '.format(jogador['Nome']))) for i in range(0, quantidade): gol_quantidade = int(input('Quantos gols na partida {} ? '.format(i + 1))) total += gol_quantidade lista.append(gol_quantidade) jogador['Gols'] = lista jogador['Total'] = total print('-=' * 30) print(jogador) print('-=' * 30) for (k, v) in jogador.items(): print('O campo {} tem valor {}'.format(k, v)) print('-=' * 30) print('O jogador {} jogor {} partidas'.format(jogador['Nome'], quantidade)) for (i, valor) in enumerate(jogador['Gols']): print(' => Na partida {} , fez {} gols'.format(i + 1, valor)) print('Foi um total de {} gols'.format(total))
def my_sum(*args): # *args = 1, 2, 3 print(type(args)) print(args) return sum(args) def my_sum_2(args): # args = [1, 2, 3] return sum(args) print(my_sum(1, 2, 3)) # a # my_sum([1, 2, 3]) # b # my_sum_2(1, 2, 3) # c print(my_sum_2([1, 2, 3])) # d _, *args = 0, 1, 2, 3 args_2 = [1, 2, 3] print(args) print(args_2)
def my_sum(*args): print(type(args)) print(args) return sum(args) def my_sum_2(args): return sum(args) print(my_sum(1, 2, 3)) print(my_sum_2([1, 2, 3])) (_, *args) = (0, 1, 2, 3) args_2 = [1, 2, 3] print(args) print(args_2)
"""Views for WillPress. "An Excellent Blog Engine" Copyright (c) 2021 by William Ellison. This program is licensed under the terms of the Do What the Fuck You Want To Public License, version 2 or later, as described in the COPYING file at the root of this distribution. William Ellison <waellison@gmail.com> October 2021 """ SITE_NAME = "WillPress Test Site" POSTS_PER_PAGE = 5
"""Views for WillPress. "An Excellent Blog Engine" Copyright (c) 2021 by William Ellison. This program is licensed under the terms of the Do What the Fuck You Want To Public License, version 2 or later, as described in the COPYING file at the root of this distribution. William Ellison <waellison@gmail.com> October 2021 """ site_name = 'WillPress Test Site' posts_per_page = 5
#!/usr/bin/python3 def Encrypt(K, P): cipher = [] for letter in P: cipher.append(chr((ord(letter) - 65 + K) % 26 + 65)) return "".join(cipher) def disp(K): for i in range(0, 25): print(chr(i + 65), end=" ") print() for i in range(0, 25): print(chr((i + K) % 26 + 65), end=" ") print() def main(): print("Ceaser Cipher Encryption Alg") key = int(input("Enter Key: ")) disp(key) plain_text = input("Enter Plain Text: ").upper() cipher_text = Encrypt(key, plain_text) print(cipher_text) if __name__ == "__main__": main()
def encrypt(K, P): cipher = [] for letter in P: cipher.append(chr((ord(letter) - 65 + K) % 26 + 65)) return ''.join(cipher) def disp(K): for i in range(0, 25): print(chr(i + 65), end=' ') print() for i in range(0, 25): print(chr((i + K) % 26 + 65), end=' ') print() def main(): print('Ceaser Cipher Encryption Alg') key = int(input('Enter Key: ')) disp(key) plain_text = input('Enter Plain Text: ').upper() cipher_text = encrypt(key, plain_text) print(cipher_text) if __name__ == '__main__': main()
sample = { "asset": { "ancestors": [ "projects/163454223397", "organizations/673763744309" ], "assetType": "compute.googleapis.com/Instance", "name": "//compute.googleapis.com/projects/sc-vice-test/zones/us-central1-a/instances/instance-1", "resource": { "data": { "allocationAffinity": { "consumeAllocationType": "ANY_ALLOCATION" }, "canIpForward": False, "confidentialInstanceConfig": { "enableConfidentialCompute": False }, "cpuPlatform": "Unknown CPU Platform", "creationTimestamp": "2021-04-22T13:51:49.576-07:00", "deletionProtection": False, "description": "", "disks": [ { "autoDelete": True, "boot": True, "deviceName": "instance-1", "diskSizeGb": "10", "guestOsFeatures": [ { "type": "UEFI_COMPATIBLE" }, { "type": "VIRTIO_SCSI_MULTIQUEUE" } ], "index": 0, "interface": "SCSI", "licenses": [ "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-10-buster" ], "mode": "READ_WRITE", "source": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/disks/instance-1", "type": "PERSISTENT" } ], "displayDevice": { "enableDisplay": False }, "fingerprint": "kklxPt7MzL8=", "id": "4486036186437803787", "labelFingerprint": "42WmSpB8rSM=", "machineType": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/machineTypes/e2-medium", "name": "instance-1", "networkInterfaces": [ { "accessConfigs": [ { "name": "External NAT", "natIP": "108.59.84.233", "networkTier": "PREMIUM", "type": "ONE_TO_ONE_NAT" } ], "fingerprint": "3XxnerGjaPY=", "name": "nic0", "network": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/global/networks/default", "networkIP": "10.128.0.2", "subnetwork": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/regions/us-central1/subnetworks/default" } ], "scheduling": { "automaticRestart": True, "onHostMaintenance": "MIGRATE", "preemptible": False }, "selfLink": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/instances/instance-1", "serviceAccounts": [ { "email": "163454223397-compute@developer.gserviceaccount.com", "scopes": [ "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/logging.write", "https://www.googleapis.com/auth/monitoring.write", "https://www.googleapis.com/auth/servicecontrol", "https://www.googleapis.com/auth/service.management.readonly", "https://www.googleapis.com/auth/trace.append" ] } ], "shieldedInstanceConfig": { "enableIntegrityMonitoring": True, "enableSecureBoot": False, "enableVtpm": True }, "shieldedInstanceIntegrityPolicy": { "updateAutoLearnPolicy": True }, "startRestricted": False, "status": "STAGING", "tags": { "fingerprint": "42WmSpB8rSM=" }, "zone": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a" }, "discoveryDocumentUri": "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest", "discoveryName": "Instance", "location": "us-central1-a", "parent": "//cloudresourcemanager.googleapis.com/projects/163454223397", "version": "v1" }, "updateTime": "2021-04-22T20:51:50.801629Z" }, "priorAsset": { "ancestors": [ "projects/163454223397", "organizations/673763744309" ], "assetType": "compute.googleapis.com/Instance", "name": "//compute.googleapis.com/projects/sc-vice-test/zones/us-central1-a/instances/instance-1", "resource": { "data": { "allocationAffinity": { "consumeAllocationType": "ANY_ALLOCATION" }, "canIpForward": False, "confidentialInstanceConfig": { "enableConfidentialCompute": False }, "cpuPlatform": "Unknown CPU Platform", "creationTimestamp": "2021-04-22T13:51:49.576-07:00", "deletionProtection": False, "description": "", "disks": [ { "autoDelete": True, "boot": True, "deviceName": "instance-1", "diskSizeGb": "10", "guestOsFeatures": [ { "type": "UEFI_COMPATIBLE" }, { "type": "VIRTIO_SCSI_MULTIQUEUE" } ], "index": 0, "interface": "SCSI", "licenses": [ "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-10-buster" ], "mode": "READ_WRITE", "source": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/disks/instance-1", "type": "PERSISTENT" } ], "displayDevice": { "enableDisplay": False }, "fingerprint": "IbogiVywfFU=", "id": "4486036186437803787", "labelFingerprint": "42WmSpB8rSM=", "machineType": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/machineTypes/e2-medium", "name": "instance-1", "networkInterfaces": [ { "accessConfigs": [ { "name": "External NAT", "networkTier": "PREMIUM", "type": "ONE_TO_ONE_NAT" } ], "fingerprint": "bQWv9c5Re9E=", "name": "nic0", "network": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/global/networks/default", "subnetwork": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/regions/us-central1/subnetworks/default" } ], "scheduling": { "automaticRestart": True, "onHostMaintenance": "MIGRATE", "preemptible": False }, "selfLink": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/instances/instance-1", "serviceAccounts": [ { "email": "163454223397-compute@developer.gserviceaccount.com", "scopes": [ "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/logging.write", "https://www.googleapis.com/auth/monitoring.write", "https://www.googleapis.com/auth/servicecontrol", "https://www.googleapis.com/auth/service.management.readonly", "https://www.googleapis.com/auth/trace.append" ] } ], "shieldedInstanceConfig": { "enableIntegrityMonitoring": True, "enableSecureBoot": False, "enableVtpm": True }, "shieldedInstanceIntegrityPolicy": { "updateAutoLearnPolicy": True }, "startRestricted": False, "status": "PROVISIONING", "tags": { "fingerprint": "42WmSpB8rSM=" }, "zone": "https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a" }, "discoveryDocumentUri": "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest", "discoveryName": "Instance", "location": "us-central1-a", "parent": "//cloudresourcemanager.googleapis.com/projects/163454223397", "version": "v1" }, "updateTime": "2021-04-22T20:51:49.759449Z" }, "priorAssetState": "PRESENT", "window": { "startTime": "2021-04-22T20:51:50.801629Z" } }
sample = {'asset': {'ancestors': ['projects/163454223397', 'organizations/673763744309'], 'assetType': 'compute.googleapis.com/Instance', 'name': '//compute.googleapis.com/projects/sc-vice-test/zones/us-central1-a/instances/instance-1', 'resource': {'data': {'allocationAffinity': {'consumeAllocationType': 'ANY_ALLOCATION'}, 'canIpForward': False, 'confidentialInstanceConfig': {'enableConfidentialCompute': False}, 'cpuPlatform': 'Unknown CPU Platform', 'creationTimestamp': '2021-04-22T13:51:49.576-07:00', 'deletionProtection': False, 'description': '', 'disks': [{'autoDelete': True, 'boot': True, 'deviceName': 'instance-1', 'diskSizeGb': '10', 'guestOsFeatures': [{'type': 'UEFI_COMPATIBLE'}, {'type': 'VIRTIO_SCSI_MULTIQUEUE'}], 'index': 0, 'interface': 'SCSI', 'licenses': ['https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-10-buster'], 'mode': 'READ_WRITE', 'source': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/disks/instance-1', 'type': 'PERSISTENT'}], 'displayDevice': {'enableDisplay': False}, 'fingerprint': 'kklxPt7MzL8=', 'id': '4486036186437803787', 'labelFingerprint': '42WmSpB8rSM=', 'machineType': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/machineTypes/e2-medium', 'name': 'instance-1', 'networkInterfaces': [{'accessConfigs': [{'name': 'External NAT', 'natIP': '108.59.84.233', 'networkTier': 'PREMIUM', 'type': 'ONE_TO_ONE_NAT'}], 'fingerprint': '3XxnerGjaPY=', 'name': 'nic0', 'network': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/global/networks/default', 'networkIP': '10.128.0.2', 'subnetwork': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/regions/us-central1/subnetworks/default'}], 'scheduling': {'automaticRestart': True, 'onHostMaintenance': 'MIGRATE', 'preemptible': False}, 'selfLink': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/instances/instance-1', 'serviceAccounts': [{'email': '163454223397-compute@developer.gserviceaccount.com', 'scopes': ['https://www.googleapis.com/auth/devstorage.read_only', 'https://www.googleapis.com/auth/logging.write', 'https://www.googleapis.com/auth/monitoring.write', 'https://www.googleapis.com/auth/servicecontrol', 'https://www.googleapis.com/auth/service.management.readonly', 'https://www.googleapis.com/auth/trace.append']}], 'shieldedInstanceConfig': {'enableIntegrityMonitoring': True, 'enableSecureBoot': False, 'enableVtpm': True}, 'shieldedInstanceIntegrityPolicy': {'updateAutoLearnPolicy': True}, 'startRestricted': False, 'status': 'STAGING', 'tags': {'fingerprint': '42WmSpB8rSM='}, 'zone': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a'}, 'discoveryDocumentUri': 'https://www.googleapis.com/discovery/v1/apis/compute/v1/rest', 'discoveryName': 'Instance', 'location': 'us-central1-a', 'parent': '//cloudresourcemanager.googleapis.com/projects/163454223397', 'version': 'v1'}, 'updateTime': '2021-04-22T20:51:50.801629Z'}, 'priorAsset': {'ancestors': ['projects/163454223397', 'organizations/673763744309'], 'assetType': 'compute.googleapis.com/Instance', 'name': '//compute.googleapis.com/projects/sc-vice-test/zones/us-central1-a/instances/instance-1', 'resource': {'data': {'allocationAffinity': {'consumeAllocationType': 'ANY_ALLOCATION'}, 'canIpForward': False, 'confidentialInstanceConfig': {'enableConfidentialCompute': False}, 'cpuPlatform': 'Unknown CPU Platform', 'creationTimestamp': '2021-04-22T13:51:49.576-07:00', 'deletionProtection': False, 'description': '', 'disks': [{'autoDelete': True, 'boot': True, 'deviceName': 'instance-1', 'diskSizeGb': '10', 'guestOsFeatures': [{'type': 'UEFI_COMPATIBLE'}, {'type': 'VIRTIO_SCSI_MULTIQUEUE'}], 'index': 0, 'interface': 'SCSI', 'licenses': ['https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-10-buster'], 'mode': 'READ_WRITE', 'source': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/disks/instance-1', 'type': 'PERSISTENT'}], 'displayDevice': {'enableDisplay': False}, 'fingerprint': 'IbogiVywfFU=', 'id': '4486036186437803787', 'labelFingerprint': '42WmSpB8rSM=', 'machineType': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/machineTypes/e2-medium', 'name': 'instance-1', 'networkInterfaces': [{'accessConfigs': [{'name': 'External NAT', 'networkTier': 'PREMIUM', 'type': 'ONE_TO_ONE_NAT'}], 'fingerprint': 'bQWv9c5Re9E=', 'name': 'nic0', 'network': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/global/networks/default', 'subnetwork': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/regions/us-central1/subnetworks/default'}], 'scheduling': {'automaticRestart': True, 'onHostMaintenance': 'MIGRATE', 'preemptible': False}, 'selfLink': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a/instances/instance-1', 'serviceAccounts': [{'email': '163454223397-compute@developer.gserviceaccount.com', 'scopes': ['https://www.googleapis.com/auth/devstorage.read_only', 'https://www.googleapis.com/auth/logging.write', 'https://www.googleapis.com/auth/monitoring.write', 'https://www.googleapis.com/auth/servicecontrol', 'https://www.googleapis.com/auth/service.management.readonly', 'https://www.googleapis.com/auth/trace.append']}], 'shieldedInstanceConfig': {'enableIntegrityMonitoring': True, 'enableSecureBoot': False, 'enableVtpm': True}, 'shieldedInstanceIntegrityPolicy': {'updateAutoLearnPolicy': True}, 'startRestricted': False, 'status': 'PROVISIONING', 'tags': {'fingerprint': '42WmSpB8rSM='}, 'zone': 'https://www.googleapis.com/compute/v1/projects/sc-vice-test/zones/us-central1-a'}, 'discoveryDocumentUri': 'https://www.googleapis.com/discovery/v1/apis/compute/v1/rest', 'discoveryName': 'Instance', 'location': 'us-central1-a', 'parent': '//cloudresourcemanager.googleapis.com/projects/163454223397', 'version': 'v1'}, 'updateTime': '2021-04-22T20:51:49.759449Z'}, 'priorAssetState': 'PRESENT', 'window': {'startTime': '2021-04-22T20:51:50.801629Z'}}
smile_dict = [b"\xF0\x9F\x98\x81", b"\xF0\x9F\x98\x82", b"\xF0\x9F\x98\x83", b"\xF0\x9F\x98\x84", b"\xF0\x9F\x98\x85", b"\xF0\x9F\x98\x86", b"\xF0\x9F\x98\x89", b"\xF0\x9F\x98\x8A", b"\xF0\x9F\x98\x8B", b"\xF0\x9F\x98\x8C", b"\xF0\x9F\x98\x8D", b"\xF0\x9F\x98\x8F", b"\xF0\x9F\x98\x92", b"\xF0\x9F\x98\x93", b"\xF0\x9F\x98\x94", b"\xF0\x9F\x98\x96", b"\xF0\x9F\x98\x98", b"\xF0\x9F\x98\x9A", b"\xF0\x9F\x98\x9C", b"\xF0\x9F\x98\x9D", b"\xF0\x9F\x98\x9E", b"\xF0\x9F\x98\xA0", b"\xF0\x9F\x98\xA1", b"\xF0\x9F\x98\xA2", b"\xF0\x9F\x98\xA3", b"\xF0\x9F\x98\xA4", b"\xF0\x9F\x98\xA5", b"\xF0\x9F\x98\xA8", b"\xF0\x9F\x98\xA9", b"\xF0\x9F\x98\xAA", b"\xF0\x9F\x98\xAB", b"\xF0\x9F\x98\xAD", b"\xF0\x9F\x98\xB0", b"\xF0\x9F\x98\xB1", b"\xF0\x9F\x98\xB2", b"\xF0\x9F\x98\xB3", b"\xF0\x9F\x98\xB5", b"\xF0\x9F\x98\xB7", b"\xF0\x9F\x98\xB8", b"\xF0\x9F\x98\xB9", b"\xF0\x9F\x98\xBA", b"\xF0\x9F\x98\xBB", b"\xF0\x9F\x98\xBC", b"\xF0\x9F\x98\xBD", b"\xF0\x9F\x98\xBE", b"\xF0\x9F\x98\xBF", b"\xF0\x9F\x99\x80", b"\xF0\x9F\x99\x85", b"\xF0\x9F\x99\x86", b"\xF0\x9F\x99\x87", b"\xF0\x9F\x99\x88", b"\xF0\x9F\x99\x89", b"\xF0\x9F\x99\x8A", b"\xF0\x9F\x99\x8B", b"\xF0\x9F\x99\x8C", b"\xF0\x9F\x99\x8D", b"\xF0\x9F\x99\x8E", b"\xF0\x9F\x99\x8F", b"\xE2\x9C\x82", b"\xE2\x9C\x85", b"\xE2\x9C\x88", b"\xE2\x9C\x89", b"\xE2\x9C\x8A", b"\xE2\x9C\x8B", b"\xE2\x9C\x8C", b"\xE2\x9C\x8F", b"\xE2\x9C\x92", b"\xE2\x9C\x94", b"\xE2\x9C\x96", b"\xE2\x9C\xA8", b"\xE2\x9C\xB3", b"\xE2\x9C\xB4", b"\xE2\x9D\x84", b"\xE2\x9D\x87", b"\xE2\x9D\x8C", b"\xE2\x9D\x8E", b"\xE2\x9D\x93", b"\xE2\x9D\x94", b"\xE2\x9D\x95", b"\xE2\x9D\x97", b"\xE2\x9D\xA4", b"\xE2\x9E\x95", b"\xE2\x9E\x96", b"\xE2\x9E\x97", b"\xE2\x9E\xA1", b"\xE2\x9E\xB0", b"\xF0\x9F\x9A\x80", b"\xF0\x9F\x9A\x83", b"\xF0\x9F\x9A\x84", b"\xF0\x9F\x9A\x85", b"\xF0\x9F\x9A\x87", b"\xF0\x9F\x9A\x89", b"\xF0\x9F\x9A\x8C", b"\xF0\x9F\x9A\x8F", b"\xF0\x9F\x9A\x91", b"\xF0\x9F\x9A\x92", b"\xF0\x9F\x9A\x93", b"\xF0\x9F\x9A\x95", b"\xF0\x9F\x9A\x97", b"\xF0\x9F\x9A\x99", b"\xF0\x9F\x9A\x9A", b"\xF0\x9F\x9A\xA2", b"\xF0\x9F\x9A\xA4", b"\xF0\x9F\x9A\xA5", b"\xF0\x9F\x9A\xA7", b"\xF0\x9F\x9A\xA8", b"\xF0\x9F\x9A\xA9", b"\xF0\x9F\x9A\xAA", b"\xF0\x9F\x9A\xAB", b"\xF0\x9F\x9A\xAC", b"\xF0\x9F\x9A\xAD", b"\xF0\x9F\x9A\xB2", b"\xF0\x9F\x9A\xB6", b"\xF0\x9F\x9A\xB9", b"\xF0\x9F\x9A\xBA", b"\xF0\x9F\x9A\xBB", b"\xF0\x9F\x9A\xBC", b"\xF0\x9F\x9A\xBD", b"\xF0\x9F\x9A\xBE", b"\xF0\x9F\x9B\x80", b"\xE2\x93\x82", b"\xF0\x9F\x85\xB0", b"\xF0\x9F\x85\xB1", b"\xF0\x9F\x85\xBE", b"\xF0\x9F\x85\xBF", b"\xF0\x9F\x86\x8E", b"\xF0\x9F\x86\x91", b"\xF0\x9F\x86\x92", b"\xF0\x9F\x86\x93", b"\xF0\x9F\x86\x94", b"\xF0\x9F\x86\x95", b"\xF0\x9F\x86\x96", b"\xF0\x9F\x86\x97", b"\xF0\x9F\x86\x98", b"\xF0\x9F\x86\x99", b"\xF0\x9F\x86\x9A", b"\xF0\x9F\x87\xA9\xF0\x9F\x87\xAA", b"\xF0\x9F\x87\xAC\xF0\x9F\x87\xA7", b"\xF0\x9F\x87\xA8\xF0\x9F\x87\xB3", b"\xF0\x9F\x87\xAF\xF0\x9F\x87\xB5", b"\xF0\x9F\x87\xAB\xF0\x9F\x87\xB7", b"\xF0\x9F\x87\xB0\xF0\x9F\x87\xB7", b"\xF0\x9F\x87\xAA\xF0\x9F\x87\xB8", b"\xF0\x9F\x87\xAE\xF0\x9F\x87\xB9", b"\xF0\x9F\x87\xB7\xF0\x9F\x87\xBA", b"\xF0\x9F\x87\xBA\xF0\x9F\x87\xB8", b"\xF0\x9F\x88\x81", b"\xF0\x9F\x88\x82", b"\xF0\x9F\x88\x9A", b"\xF0\x9F\x88\xAF", b"\xF0\x9F\x88\xB2", b"\xF0\x9F\x88\xB3", b"\xF0\x9F\x88\xB4", b"\xF0\x9F\x88\xB5", b"\xF0\x9F\x88\xB6", b"\xF0\x9F\x88\xB7", b"\xF0\x9F\x88\xB8", b"\xF0\x9F\x88\xB9", b"\xF0\x9F\x88\xBA", b"\xF0\x9F\x89\x90", b"\xF0\x9F\x89\x91", b"\xC2\xA9", b"\xC2\xAE", b"\xE2\x80\xBC", b"\xE2\x81\x89", b"\x23\xE2\x83\xA3", b"\x38\xE2\x83\xA3", b"\x39\xE2\x83\xA3", b"\x37\xE2\x83\xA3", b"\x30\xE2\x83\xA3", b"\x36\xE2\x83\xA3", b"\x35\xE2\x83\xA3", b"\x34\xE2\x83\xA3", b"\x33\xE2\x83\xA3", b"\x32\xE2\x83\xA3", b"\x31\xE2\x83\xA3", b"\xE2\x84\xA2", b"\xE2\x84\xB9", b"\xE2\x86\x94", b"\xE2\x86\x95", b"\xE2\x86\x96", b"\xE2\x86\x97", b"\xE2\x86\x98", b"\xE2\x86\x99", b"\xE2\x86\xA9", b"\xE2\x86\xAA", b"\xE2\x8C\x9A", b"\xE2\x8C\x9B", b"\xE2\x8F\xA9", b"\xE2\x8F\xAA", b"\xE2\x8F\xAB", b"\xE2\x8F\xAC", b"\xE2\x8F\xB0", b"\xE2\x8F\xB3", b"\xE2\x96\xAA", b"\xE2\x96\xAB", b"\xE2\x96\xB6", b"\xE2\x97\x80", b"\xE2\x97\xBB", b"\xE2\x97\xBC", b"\xE2\x97\xBD", b"\xE2\x97\xBE", b"\xE2\x98\x80", b"\xE2\x98\x81", b"\xE2\x98\x8E", b"\xE2\x98\x91", b"\xE2\x98\x94", b"\xE2\x98\x95", b"\xE2\x98\x9D", b"\xE2\x98\xBA", b"\xE2\x99\x88", b"\xE2\x99\x89", b"\xE2\x99\x8A", b"\xE2\x99\x8B", b"\xE2\x99\x8C", b"\xE2\x99\x8D", b"\xE2\x99\x8E", b"\xE2\x99\x8F", b"\xE2\x99\x90", b"\xE2\x99\x91", b"\xE2\x99\x92", b"\xE2\x99\x93", b"\xE2\x99\xA0", b"\xE2\x99\xA3", b"\xE2\x99\xA5", b"\xE2\x99\xA6", b"\xE2\x99\xA8", b"\xE2\x99\xBB", b"\xE2\x99\xBF", b"\xE2\x9A\x93", b"\xE2\x9A\xA0", b"\xE2\x9A\xA1", b"\xE2\x9A\xAA", b"\xE2\x9A\xAB", b"\xE2\x9A\xBD", b"\xE2\x9A\xBE", b"\xE2\x9B\x84", b"\xE2\x9B\x85", b"\xE2\x9B\x8E", b"\xE2\x9B\x94", b"\xE2\x9B\xAA", b"\xE2\x9B\xB2", b"\xE2\x9B\xB3", b"\xE2\x9B\xB5", b"\xE2\x9B\xBA", b"\xE2\x9B\xBD", b"\xE2\xA4\xB4", b"\xE2\xA4\xB5", b"\xE2\xAC\x85", b"\xE2\xAC\x86", b"\xE2\xAC\x87", b"\xE2\xAC\x9B", b"\xE2\xAC\x9C", b"\xE2\xAD\x90", b"\xE2\xAD\x95", b"\xE3\x80\xB0", b"\xE3\x80\xBD", b"\xE3\x8A\x97", b"\xE3\x8A\x99", b"\xF0\x9F\x80\x84", b"\xF0\x9F\x83\x8F", b"\xF0\x9F\x8C\x80", b"\xF0\x9F\x8C\x81", b"\xF0\x9F\x8C\x82", b"\xF0\x9F\x8C\x83", b"\xF0\x9F\x8C\x84", b"\xF0\x9F\x8C\x85", b"\xF0\x9F\x8C\x86", b"\xF0\x9F\x8C\x87", b"\xF0\x9F\x8C\x88", b"\xF0\x9F\x8C\x89", b"\xF0\x9F\x8C\x8A", b"\xF0\x9F\x8C\x8B", b"\xF0\x9F\x8C\x8C", b"\xF0\x9F\x8C\x8F", b"\xF0\x9F\x8C\x91", b"\xF0\x9F\x8C\x93", b"\xF0\x9F\x8C\x94", b"\xF0\x9F\x8C\x95", b"\xF0\x9F\x8C\x99", b"\xF0\x9F\x8C\x9B", b"\xF0\x9F\x8C\x9F", b"\xF0\x9F\x8C\xA0", b"\xF0\x9F\x8C\xB0", b"\xF0\x9F\x8C\xB1", b"\xF0\x9F\x8C\xB4", b"\xF0\x9F\x8C\xB5", b"\xF0\x9F\x8C\xB7", b"\xF0\x9F\x8C\xB8", b"\xF0\x9F\x8C\xB9", b"\xF0\x9F\x8C\xBA", b"\xF0\x9F\x8C\xBB", b"\xF0\x9F\x8C\xBC", b"\xF0\x9F\x8C\xBD", b"\xF0\x9F\x8C\xBE", b"\xF0\x9F\x8C\xBF", b"\xF0\x9F\x8D\x80", b"\xF0\x9F\x8D\x81", b"\xF0\x9F\x8D\x82", b"\xF0\x9F\x8D\x83", b"\xF0\x9F\x8D\x84", b"\xF0\x9F\x8D\x85", b"\xF0\x9F\x8D\x86", b"\xF0\x9F\x8D\x87", b"\xF0\x9F\x8D\x88", b"\xF0\x9F\x8D\x89", b"\xF0\x9F\x8D\x8A", b"\xF0\x9F\x8D\x8C", b"\xF0\x9F\x8D\x8D", b"\xF0\x9F\x8D\x8E", b"\xF0\x9F\x8D\x8F", b"\xF0\x9F\x8D\x91", b"\xF0\x9F\x8D\x92", b"\xF0\x9F\x8D\x93", b"\xF0\x9F\x8D\x94", b"\xF0\x9F\x8D\x95", b"\xF0\x9F\x8D\x96", b"\xF0\x9F\x8D\x97", b"\xF0\x9F\x8D\x98", b"\xF0\x9F\x8D\x99", b"\xF0\x9F\x8D\x9A", b"\xF0\x9F\x8D\x9B", b"\xF0\x9F\x8D\x9C", b"\xF0\x9F\x8D\x9D", b"\xF0\x9F\x8D\x9E", b"\xF0\x9F\x8D\x9F", b"\xF0\x9F\x8D\xA0", b"\xF0\x9F\x8D\xA1", b"\xF0\x9F\x8D\xA2", b"\xF0\x9F\x8D\xA3", b"\xF0\x9F\x8D\xA4", b"\xF0\x9F\x8D\xA5", b"\xF0\x9F\x8D\xA6", b"\xF0\x9F\x8D\xA7", b"\xF0\x9F\x8D\xA8", b"\xF0\x9F\x8D\xA9", b"\xF0\x9F\x8D\xAA", b"\xF0\x9F\x8D\xAB", b"\xF0\x9F\x8D\xAC", b"\xF0\x9F\x8D\xAD", b"\xF0\x9F\x8D\xAE", b"\xF0\x9F\x8D\xAF", b"\xF0\x9F\x8D\xB0", b"\xF0\x9F\x8D\xB1", b"\xF0\x9F\x8D\xB2", b"\xF0\x9F\x8D\xB3", b"\xF0\x9F\x8D\xB4", b"\xF0\x9F\x8D\xB5", b"\xF0\x9F\x8D\xB6", b"\xF0\x9F\x8D\xB7", b"\xF0\x9F\x8D\xB8", b"\xF0\x9F\x8D\xB9", b"\xF0\x9F\x8D\xBA", b"\xF0\x9F\x8D\xBB", b"\xF0\x9F\x8E\x80", b"\xF0\x9F\x8E\x81", b"\xF0\x9F\x8E\x82", b"\xF0\x9F\x8E\x83", b"\xF0\x9F\x8E\x84", b"\xF0\x9F\x8E\x85", b"\xF0\x9F\x8E\x86", b"\xF0\x9F\x8E\x87", b"\xF0\x9F\x8E\x88", b"\xF0\x9F\x8E\x89", b"\xF0\x9F\x8E\x8A", b"\xF0\x9F\x8E\x8B", b"\xF0\x9F\x8E\x8C", b"\xF0\x9F\x8E\x8D", b"\xF0\x9F\x8E\x8E", b"\xF0\x9F\x8E\x8F", b"\xF0\x9F\x8E\x90", b"\xF0\x9F\x8E\x91", b"\xF0\x9F\x8E\x92", b"\xF0\x9F\x8E\x93", b"\xF0\x9F\x8E\xA0", b"\xF0\x9F\x8E\xA1", b"\xF0\x9F\x8E\xA2", b"\xF0\x9F\x8E\xA3", b"\xF0\x9F\x8E\xA4", b"\xF0\x9F\x8E\xA5", b"\xF0\x9F\x8E\xA6", b"\xF0\x9F\x8E\xA7", b"\xF0\x9F\x8E\xA8", b"\xF0\x9F\x8E\xA9", b"\xF0\x9F\x8E\xAA", b"\xF0\x9F\x8E\xAB", b"\xF0\x9F\x8E\xAC", b"\xF0\x9F\x8E\xAD", b"\xF0\x9F\x8E\xAE", b"\xF0\x9F\x8E\xAF", b"\xF0\x9F\x8E\xB0", b"\xF0\x9F\x8E\xB1", b"\xF0\x9F\x8E\xB2", b"\xF0\x9F\x8E\xB3", b"\xF0\x9F\x8E\xB4", b"\xF0\x9F\x8E\xB5", b"\xF0\x9F\x8E\xB6", b"\xF0\x9F\x8E\xB7", b"\xF0\x9F\x8E\xB8", b"\xF0\x9F\x8E\xB9", b"\xF0\x9F\x8E\xBA", b"\xF0\x9F\x8E\xBB", b"\xF0\x9F\x8E\xBC", b"\xF0\x9F\x8E\xBD", b"\xF0\x9F\x8E\xBE", b"\xF0\x9F\x8E\xBF", b"\xF0\x9F\x8F\x80", b"\xF0\x9F\x8F\x81", b"\xF0\x9F\x8F\x82", b"\xF0\x9F\x8F\x83", b"\xF0\x9F\x8F\x84", b"\xF0\x9F\x8F\x86", b"\xF0\x9F\x8F\x88", b"\xF0\x9F\x8F\x8A", b"\xF0\x9F\x8F\xA0", b"\xF0\x9F\x8F\xA1", b"\xF0\x9F\x8F\xA2", b"\xF0\x9F\x8F\xA3", b"\xF0\x9F\x8F\xA5", b"\xF0\x9F\x8F\xA6", b"\xF0\x9F\x8F\xA7", b"\xF0\x9F\x8F\xA8", b"\xF0\x9F\x8F\xA9", b"\xF0\x9F\x8F\xAA", b"\xF0\x9F\x8F\xAB", b"\xF0\x9F\x8F\xAC", b"\xF0\x9F\x8F\xAD", b"\xF0\x9F\x8F\xAE", b"\xF0\x9F\x8F\xAF", b"\xF0\x9F\x8F\xB0", b"\xF0\x9F\x90\x8C", b"\xF0\x9F\x90\x8D", b"\xF0\x9F\x90\x8E", b"\xF0\x9F\x90\x91", b"\xF0\x9F\x90\x92", b"\xF0\x9F\x90\x94", b"\xF0\x9F\x90\x97", b"\xF0\x9F\x90\x98", b"\xF0\x9F\x90\x99", b"\xF0\x9F\x90\x9A", b"\xF0\x9F\x90\x9B", b"\xF0\x9F\x90\x9C", b"\xF0\x9F\x90\x9D", b"\xF0\x9F\x90\x9E", b"\xF0\x9F\x90\x9F", b"\xF0\x9F\x90\xA0", b"\xF0\x9F\x90\xA1", b"\xF0\x9F\x90\xA2", b"\xF0\x9F\x90\xA3", b"\xF0\x9F\x90\xA4", b"\xF0\x9F\x90\xA5", b"\xF0\x9F\x90\xA6", b"\xF0\x9F\x90\xA7", b"\xF0\x9F\x90\xA8", b"\xF0\x9F\x90\xA9", b"\xF0\x9F\x90\xAB", b"\xF0\x9F\x90\xAC", b"\xF0\x9F\x90\xAD", b"\xF0\x9F\x90\xAE", b"\xF0\x9F\x90\xAF", b"\xF0\x9F\x90\xB0", b"\xF0\x9F\x90\xB1", b"\xF0\x9F\x90\xB2", b"\xF0\x9F\x90\xB3", b"\xF0\x9F\x90\xB4", b"\xF0\x9F\x90\xB5", b"\xF0\x9F\x90\xB6", b"\xF0\x9F\x90\xB7", b"\xF0\x9F\x90\xB8", b"\xF0\x9F\x90\xB9", b"\xF0\x9F\x90\xBA", b"\xF0\x9F\x90\xBB", b"\xF0\x9F\x90\xBC", b"\xF0\x9F\x90\xBD", b"\xF0\x9F\x90\xBE", b"\xF0\x9F\x91\x80", b"\xF0\x9F\x91\x82", b"\xF0\x9F\x91\x83", b"\xF0\x9F\x91\x84", b"\xF0\x9F\x91\x85", b"\xF0\x9F\x91\x86", b"\xF0\x9F\x91\x87", b"\xF0\x9F\x91\x88", b"\xF0\x9F\x91\x89", b"\xF0\x9F\x91\x8A", b"\xF0\x9F\x91\x8B", b"\xF0\x9F\x91\x8C", b"\xF0\x9F\x91\x8D", b"\xF0\x9F\x91\x8E", b"\xF0\x9F\x91\x8F", b"\xF0\x9F\x91\x90", b"\xF0\x9F\x91\x91", b"\xF0\x9F\x91\x92", b"\xF0\x9F\x91\x93", b"\xF0\x9F\x91\x94", b"\xF0\x9F\x91\x95", b"\xF0\x9F\x91\x96", b"\xF0\x9F\x91\x97", b"\xF0\x9F\x91\x98", b"\xF0\x9F\x91\x99", b"\xF0\x9F\x91\x9A", b"\xF0\x9F\x91\x9B", b"\xF0\x9F\x91\x9C", b"\xF0\x9F\x91\x9D", b"\xF0\x9F\x91\x9E", b"\xF0\x9F\x91\x9F", b"\xF0\x9F\x91\xA0", b"\xF0\x9F\x91\xA1", b"\xF0\x9F\x91\xA2", b"\xF0\x9F\x91\xA3", b"\xF0\x9F\x91\xA4", b"\xF0\x9F\x91\xA6", b"\xF0\x9F\x91\xA7", b"\xF0\x9F\x91\xA8", b"\xF0\x9F\x91\xA9", b"\xF0\x9F\x91\xAA", b"\xF0\x9F\x91\xAB", b"\xF0\x9F\x91\xAE", b"\xF0\x9F\x91\xAF", b"\xF0\x9F\x91\xB0", b"\xF0\x9F\x91\xB1", b"\xF0\x9F\x91\xB2", b"\xF0\x9F\x91\xB3", b"\xF0\x9F\x91\xB4", b"\xF0\x9F\x91\xB5", b"\xF0\x9F\x91\xB6", b"\xF0\x9F\x91\xB7", b"\xF0\x9F\x91\xB8", b"\xF0\x9F\x91\xB9", b"\xF0\x9F\x91\xBA", b"\xF0\x9F\x91\xBB", b"\xF0\x9F\x91\xBC", b"\xF0\x9F\x91\xBD", b"\xF0\x9F\x91\xBE", b"\xF0\x9F\x91\xBF", b"\xF0\x9F\x92\x80", b"\xF0\x9F\x92\x81", b"\xF0\x9F\x92\x82", b"\xF0\x9F\x92\x83", b"\xF0\x9F\x92\x84", b"\xF0\x9F\x92\x85", b"\xF0\x9F\x92\x86", b"\xF0\x9F\x92\x87", b"\xF0\x9F\x92\x88", b"\xF0\x9F\x92\x89", b"\xF0\x9F\x92\x8A", b"\xF0\x9F\x92\x8B", b"\xF0\x9F\x92\x8C", b"\xF0\x9F\x92\x8D", b"\xF0\x9F\x92\x8E", b"\xF0\x9F\x92\x8F", b"\xF0\x9F\x92\x90", b"\xF0\x9F\x92\x91", b"\xF0\x9F\x92\x92", b"\xF0\x9F\x92\x93", b"\xF0\x9F\x92\x94", b"\xF0\x9F\x92\x95", b"\xF0\x9F\x92\x96", b"\xF0\x9F\x92\x97", b"\xF0\x9F\x92\x98", b"\xF0\x9F\x92\x99", b"\xF0\x9F\x92\x9A", b"\xF0\x9F\x92\x9B", b"\xF0\x9F\x92\x9C", b"\xF0\x9F\x92\x9D", b"\xF0\x9F\x92\x9E", b"\xF0\x9F\x92\x9F", b"\xF0\x9F\x92\xA0", b"\xF0\x9F\x92\xA1", b"\xF0\x9F\x92\xA2", b"\xF0\x9F\x92\xA3", b"\xF0\x9F\x92\xA4", b"\xF0\x9F\x92\xA5", b"\xF0\x9F\x92\xA6", b"\xF0\x9F\x92\xA7", b"\xF0\x9F\x92\xA8", b"\xF0\x9F\x92\xA9", b"\xF0\x9F\x92\xAA", b"\xF0\x9F\x92\xAB", b"\xF0\x9F\x92\xAC", b"\xF0\x9F\x92\xAE", b"\xF0\x9F\x92\xAF", b"\xF0\x9F\x92\xB0", b"\xF0\x9F\x92\xB1", b"\xF0\x9F\x92\xB2", b"\xF0\x9F\x92\xB3", b"\xF0\x9F\x92\xB4", b"\xF0\x9F\x92\xB5", b"\xF0\x9F\x92\xB8", b"\xF0\x9F\x92\xB9", b"\xF0\x9F\x92\xBA", b"\xF0\x9F\x92\xBB", b"\xF0\x9F\x92\xBC", b"\xF0\x9F\x92\xBD", b"\xF0\x9F\x92\xBE", b"\xF0\x9F\x92\xBF", b"\xF0\x9F\x93\x80", b"\xF0\x9F\x93\x81", b"\xF0\x9F\x93\x82", b"\xF0\x9F\x93\x83", b"\xF0\x9F\x93\x84", b"\xF0\x9F\x93\x85", b"\xF0\x9F\x93\x86", b"\xF0\x9F\x93\x87", b"\xF0\x9F\x93\x88", b"\xF0\x9F\x93\x89", b"\xF0\x9F\x93\x8A", b"\xF0\x9F\x93\x8B", b"\xF0\x9F\x93\x8C", b"\xF0\x9F\x93\x8D", b"\xF0\x9F\x93\x8E", b"\xF0\x9F\x93\x8F", b"\xF0\x9F\x93\x90", b"\xF0\x9F\x93\x91", b"\xF0\x9F\x93\x92", b"\xF0\x9F\x93\x93", b"\xF0\x9F\x93\x94", b"\xF0\x9F\x93\x95", b"\xF0\x9F\x93\x96", b"\xF0\x9F\x93\x97", b"\xF0\x9F\x93\x98", b"\xF0\x9F\x93\x99", b"\xF0\x9F\x93\x9A", b"\xF0\x9F\x93\x9B", b"\xF0\x9F\x93\x9C", b"\xF0\x9F\x93\x9D", b"\xF0\x9F\x93\x9E", b"\xF0\x9F\x93\x9F", b"\xF0\x9F\x93\xA0", b"\xF0\x9F\x93\xA1", b"\xF0\x9F\x93\xA2", b"\xF0\x9F\x93\xA3", b"\xF0\x9F\x93\xA4", b"\xF0\x9F\x93\xA5", b"\xF0\x9F\x93\xA6", b"\xF0\x9F\x93\xA7", b"\xF0\x9F\x93\xA8", b"\xF0\x9F\x93\xA9", b"\xF0\x9F\x93\xAA", b"\xF0\x9F\x93\xAB", b"\xF0\x9F\x93\xAE", b"\xF0\x9F\x93\xB0", b"\xF0\x9F\x93\xB1", b"\xF0\x9F\x93\xB2", b"\xF0\x9F\x93\xB3", b"\xF0\x9F\x93\xB4", b"\xF0\x9F\x93\xB6", b"\xF0\x9F\x93\xB7", b"\xF0\x9F\x93\xB9", b"\xF0\x9F\x93\xBA", b"\xF0\x9F\x93\xBB", b"\xF0\x9F\x93\xBC", b"\xF0\x9F\x94\x83", b"\xF0\x9F\x94\x8A", b"\xF0\x9F\x94\x8B", b"\xF0\x9F\x94\x8C", b"\xF0\x9F\x94\x8D", b"\xF0\x9F\x94\x8E", b"\xF0\x9F\x94\x8F", b"\xF0\x9F\x94\x90", b"\xF0\x9F\x94\x91", b"\xF0\x9F\x94\x92", b"\xF0\x9F\x94\x93", b"\xF0\x9F\x94\x94", b"\xF0\x9F\x94\x96", b"\xF0\x9F\x94\x97", b"\xF0\x9F\x94\x98", b"\xF0\x9F\x94\x99", b"\xF0\x9F\x94\x9A", b"\xF0\x9F\x94\x9B", b"\xF0\x9F\x94\x9C", b"\xF0\x9F\x94\x9D", b"\xF0\x9F\x94\x9E", b"\xF0\x9F\x94\x9F", b"\xF0\x9F\x94\xA0", b"\xF0\x9F\x94\xA1", b"\xF0\x9F\x94\xA2", b"\xF0\x9F\x94\xA3", b"\xF0\x9F\x94\xA4", b"\xF0\x9F\x94\xA5", b"\xF0\x9F\x94\xA6", b"\xF0\x9F\x94\xA7", b"\xF0\x9F\x94\xA8", b"\xF0\x9F\x94\xA9", b"\xF0\x9F\x94\xAA", b"\xF0\x9F\x94\xAB", b"\xF0\x9F\x94\xAE", b"\xF0\x9F\x94\xAF", b"\xF0\x9F\x94\xB0", b"\xF0\x9F\x94\xB1", b"\xF0\x9F\x94\xB2", b"\xF0\x9F\x94\xB3", b"\xF0\x9F\x94\xB4", b"\xF0\x9F\x94\xB5", b"\xF0\x9F\x94\xB6", b"\xF0\x9F\x94\xB7", b"\xF0\x9F\x94\xB8", b"\xF0\x9F\x94\xB9", b"\xF0\x9F\x94\xBA", b"\xF0\x9F\x94\xBB", b"\xF0\x9F\x94\xBC", b"\xF0\x9F\x94\xBD", b"\xF0\x9F\x95\x90", b"\xF0\x9F\x95\x91", b"\xF0\x9F\x95\x92", b"\xF0\x9F\x95\x93", b"\xF0\x9F\x95\x94", b"\xF0\x9F\x95\x95", b"\xF0\x9F\x95\x96", b"\xF0\x9F\x95\x97", b"\xF0\x9F\x95\x98", b"\xF0\x9F\x95\x99", b"\xF0\x9F\x95\x9A", b"\xF0\x9F\x95\x9B", b"\xF0\x9F\x97\xBB", b"\xF0\x9F\x97\xBC", b"\xF0\x9F\x97\xBD", b"\xF0\x9F\x97\xBE", b"\xF0\x9F\x97\xBF", b"\xF0\x9F\x98\x80", b"\xF0\x9F\x98\x87", b"\xF0\x9F\x98\x88", b"\xF0\x9F\x98\x8E", b"\xF0\x9F\x98\x90", b"\xF0\x9F\x98\x91", b"\xF0\x9F\x98\x95", b"\xF0\x9F\x98\x97", b"\xF0\x9F\x98\x99", b"\xF0\x9F\x98\x9B", b"\xF0\x9F\x98\x9F", b"\xF0\x9F\x98\xA6", b"\xF0\x9F\x98\xA7", b"\xF0\x9F\x98\xAC", b"\xF0\x9F\x98\xAE", b"\xF0\x9F\x98\xAF", b"\xF0\x9F\x98\xB4", b"\xF0\x9F\x98\xB6", b"\xF0\x9F\x9A\x81", b"\xF0\x9F\x9A\x82", b"\xF0\x9F\x9A\x86", b"\xF0\x9F\x9A\x88", b"\xF0\x9F\x9A\x8A", b"\xF0\x9F\x9A\x8D", b"\xF0\x9F\x9A\x8E", b"\xF0\x9F\x9A\x90", b"\xF0\x9F\x9A\x94", b"\xF0\x9F\x9A\x96", b"\xF0\x9F\x9A\x98", b"\xF0\x9F\x9A\x9B", b"\xF0\x9F\x9A\x9C", b"\xF0\x9F\x9A\x9D", b"\xF0\x9F\x9A\x9E", b"\xF0\x9F\x9A\x9F", b"\xF0\x9F\x9A\xA0", b"\xF0\x9F\x9A\xA1", b"\xF0\x9F\x9A\xA3", b"\xF0\x9F\x9A\xA6", b"\xF0\x9F\x9A\xAE", b"\xF0\x9F\x9A\xAF", b"\xF0\x9F\x9A\xB0", b"\xF0\x9F\x9A\xB1", b"\xF0\x9F\x9A\xB3", b"\xF0\x9F\x9A\xB4", b"\xF0\x9F\x9A\xB5", b"\xF0\x9F\x9A\xB7", b"\xF0\x9F\x9A\xB8", b"\xF0\x9F\x9A\xBF", b"\xF0\x9F\x9B\x81", b"\xF0\x9F\x9B\x82", b"\xF0\x9F\x9B\x83", b"\xF0\x9F\x9B\x84", b"\xF0\x9F\x9B\x85", b"\xF0\x9F\x8C\x8D", b"\xF0\x9F\x8C\x8E", b"\xF0\x9F\x8C\x90", b"\xF0\x9F\x8C\x92", b"\xF0\x9F\x8C\x96", b"\xF0\x9F\x8C\x97", b"\xF0\x9F\x8C\x98", b"\xF0\x9F\x8C\x9A", b"\xF0\x9F\x8C\x9C", b"\xF0\x9F\x8C\x9D", b"\xF0\x9F\x8C\x9E", b"\xF0\x9F\x8C\xB2", b"\xF0\x9F\x8C\xB3", b"\xF0\x9F\x8D\x8B", b"\xF0\x9F\x8D\x90", b"\xF0\x9F\x8D\xBC", b"\xF0\x9F\x8F\x87", b"\xF0\x9F\x8F\x89", b"\xF0\x9F\x8F\xA4", b"\xF0\x9F\x90\x80", b"\xF0\x9F\x90\x81", b"\xF0\x9F\x90\x82", b"\xF0\x9F\x90\x83", b"\xF0\x9F\x90\x84", b"\xF0\x9F\x90\x85", b"\xF0\x9F\x90\x86", b"\xF0\x9F\x90\x87", b"\xF0\x9F\x90\x88", b"\xF0\x9F\x90\x89", b"\xF0\x9F\x90\x8A", b"\xF0\x9F\x90\x8B", b"\xF0\x9F\x90\x8F", b"\xF0\x9F\x90\x90", b"\xF0\x9F\x90\x93", b"\xF0\x9F\x90\x95", b"\xF0\x9F\x90\x96", b"\xF0\x9F\x90\xAA", b"\xF0\x9F\x91\xA5", b"\xF0\x9F\x91\xAC", b"\xF0\x9F\x91\xAD", b"\xF0\x9F\x92\xAD", b"\xF0\x9F\x92\xB6", b"\xF0\x9F\x92\xB7", b"\xF0\x9F\x93\xAC", b"\xF0\x9F\x93\xAD", b"\xF0\x9F\x93\xAF", b"\xF0\x9F\x93\xB5", b"\xF0\x9F\x94\x80", b"\xF0\x9F\x94\x81", b"\xF0\x9F\x94\x82", b"\xF0\x9F\x94\x84", b"\xF0\x9F\x94\x85", b"\xF0\x9F\x94\x86", b"\xF0\x9F\x94\x87", b"\xF0\x9F\x94\x89", b"\xF0\x9F\x94\x95", b"\xF0\x9F\x94\xAC", b"\xF0\x9F\x94\xAD", b"\xF0\x9F\x95\x9C", b"\xF0\x9F\x95\x9D", b"\xF0\x9F\x95\x9E", b"\xF0\x9F\x95\x9F", b"\xF0\x9F\x95\xA0", b"\xF0\x9F\x95\xA1", b"\xF0\x9F\x95\xA2", b"\xF0\x9F\x95\xA3", b"\xF0\x9F\x95\xA4", b"\xF0\x9F\x95\xA5", b"\xF0\x9F\x95\xA6", b"\xF0\x9F\x95\xA7", ]
smile_dict = [b'\xf0\x9f\x98\x81', b'\xf0\x9f\x98\x82', b'\xf0\x9f\x98\x83', b'\xf0\x9f\x98\x84', b'\xf0\x9f\x98\x85', b'\xf0\x9f\x98\x86', b'\xf0\x9f\x98\x89', b'\xf0\x9f\x98\x8a', b'\xf0\x9f\x98\x8b', b'\xf0\x9f\x98\x8c', b'\xf0\x9f\x98\x8d', b'\xf0\x9f\x98\x8f', b'\xf0\x9f\x98\x92', b'\xf0\x9f\x98\x93', b'\xf0\x9f\x98\x94', b'\xf0\x9f\x98\x96', b'\xf0\x9f\x98\x98', b'\xf0\x9f\x98\x9a', b'\xf0\x9f\x98\x9c', b'\xf0\x9f\x98\x9d', b'\xf0\x9f\x98\x9e', b'\xf0\x9f\x98\xa0', b'\xf0\x9f\x98\xa1', b'\xf0\x9f\x98\xa2', b'\xf0\x9f\x98\xa3', b'\xf0\x9f\x98\xa4', b'\xf0\x9f\x98\xa5', b'\xf0\x9f\x98\xa8', b'\xf0\x9f\x98\xa9', b'\xf0\x9f\x98\xaa', b'\xf0\x9f\x98\xab', b'\xf0\x9f\x98\xad', b'\xf0\x9f\x98\xb0', b'\xf0\x9f\x98\xb1', b'\xf0\x9f\x98\xb2', b'\xf0\x9f\x98\xb3', b'\xf0\x9f\x98\xb5', b'\xf0\x9f\x98\xb7', b'\xf0\x9f\x98\xb8', b'\xf0\x9f\x98\xb9', b'\xf0\x9f\x98\xba', b'\xf0\x9f\x98\xbb', b'\xf0\x9f\x98\xbc', b'\xf0\x9f\x98\xbd', b'\xf0\x9f\x98\xbe', b'\xf0\x9f\x98\xbf', b'\xf0\x9f\x99\x80', b'\xf0\x9f\x99\x85', b'\xf0\x9f\x99\x86', b'\xf0\x9f\x99\x87', b'\xf0\x9f\x99\x88', b'\xf0\x9f\x99\x89', b'\xf0\x9f\x99\x8a', b'\xf0\x9f\x99\x8b', b'\xf0\x9f\x99\x8c', b'\xf0\x9f\x99\x8d', b'\xf0\x9f\x99\x8e', b'\xf0\x9f\x99\x8f', b'\xe2\x9c\x82', b'\xe2\x9c\x85', b'\xe2\x9c\x88', b'\xe2\x9c\x89', b'\xe2\x9c\x8a', b'\xe2\x9c\x8b', b'\xe2\x9c\x8c', b'\xe2\x9c\x8f', b'\xe2\x9c\x92', b'\xe2\x9c\x94', b'\xe2\x9c\x96', b'\xe2\x9c\xa8', b'\xe2\x9c\xb3', b'\xe2\x9c\xb4', b'\xe2\x9d\x84', b'\xe2\x9d\x87', b'\xe2\x9d\x8c', b'\xe2\x9d\x8e', b'\xe2\x9d\x93', b'\xe2\x9d\x94', b'\xe2\x9d\x95', b'\xe2\x9d\x97', b'\xe2\x9d\xa4', b'\xe2\x9e\x95', b'\xe2\x9e\x96', b'\xe2\x9e\x97', b'\xe2\x9e\xa1', b'\xe2\x9e\xb0', b'\xf0\x9f\x9a\x80', b'\xf0\x9f\x9a\x83', b'\xf0\x9f\x9a\x84', b'\xf0\x9f\x9a\x85', b'\xf0\x9f\x9a\x87', b'\xf0\x9f\x9a\x89', b'\xf0\x9f\x9a\x8c', b'\xf0\x9f\x9a\x8f', b'\xf0\x9f\x9a\x91', b'\xf0\x9f\x9a\x92', b'\xf0\x9f\x9a\x93', b'\xf0\x9f\x9a\x95', b'\xf0\x9f\x9a\x97', b'\xf0\x9f\x9a\x99', b'\xf0\x9f\x9a\x9a', b'\xf0\x9f\x9a\xa2', b'\xf0\x9f\x9a\xa4', b'\xf0\x9f\x9a\xa5', b'\xf0\x9f\x9a\xa7', b'\xf0\x9f\x9a\xa8', b'\xf0\x9f\x9a\xa9', b'\xf0\x9f\x9a\xaa', b'\xf0\x9f\x9a\xab', b'\xf0\x9f\x9a\xac', b'\xf0\x9f\x9a\xad', b'\xf0\x9f\x9a\xb2', b'\xf0\x9f\x9a\xb6', b'\xf0\x9f\x9a\xb9', b'\xf0\x9f\x9a\xba', b'\xf0\x9f\x9a\xbb', b'\xf0\x9f\x9a\xbc', b'\xf0\x9f\x9a\xbd', b'\xf0\x9f\x9a\xbe', b'\xf0\x9f\x9b\x80', b'\xe2\x93\x82', b'\xf0\x9f\x85\xb0', b'\xf0\x9f\x85\xb1', b'\xf0\x9f\x85\xbe', b'\xf0\x9f\x85\xbf', b'\xf0\x9f\x86\x8e', b'\xf0\x9f\x86\x91', b'\xf0\x9f\x86\x92', b'\xf0\x9f\x86\x93', b'\xf0\x9f\x86\x94', b'\xf0\x9f\x86\x95', b'\xf0\x9f\x86\x96', b'\xf0\x9f\x86\x97', b'\xf0\x9f\x86\x98', b'\xf0\x9f\x86\x99', b'\xf0\x9f\x86\x9a', b'\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa', b'\xf0\x9f\x87\xac\xf0\x9f\x87\xa7', b'\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3', b'\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5', b'\xf0\x9f\x87\xab\xf0\x9f\x87\xb7', b'\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7', b'\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8', b'\xf0\x9f\x87\xae\xf0\x9f\x87\xb9', b'\xf0\x9f\x87\xb7\xf0\x9f\x87\xba', b'\xf0\x9f\x87\xba\xf0\x9f\x87\xb8', b'\xf0\x9f\x88\x81', b'\xf0\x9f\x88\x82', b'\xf0\x9f\x88\x9a', b'\xf0\x9f\x88\xaf', b'\xf0\x9f\x88\xb2', b'\xf0\x9f\x88\xb3', b'\xf0\x9f\x88\xb4', b'\xf0\x9f\x88\xb5', b'\xf0\x9f\x88\xb6', b'\xf0\x9f\x88\xb7', b'\xf0\x9f\x88\xb8', b'\xf0\x9f\x88\xb9', b'\xf0\x9f\x88\xba', b'\xf0\x9f\x89\x90', b'\xf0\x9f\x89\x91', b'\xc2\xa9', b'\xc2\xae', b'\xe2\x80\xbc', b'\xe2\x81\x89', b'#\xe2\x83\xa3', b'8\xe2\x83\xa3', b'9\xe2\x83\xa3', b'7\xe2\x83\xa3', b'0\xe2\x83\xa3', b'6\xe2\x83\xa3', b'5\xe2\x83\xa3', b'4\xe2\x83\xa3', b'3\xe2\x83\xa3', b'2\xe2\x83\xa3', b'1\xe2\x83\xa3', b'\xe2\x84\xa2', b'\xe2\x84\xb9', b'\xe2\x86\x94', b'\xe2\x86\x95', b'\xe2\x86\x96', b'\xe2\x86\x97', b'\xe2\x86\x98', b'\xe2\x86\x99', b'\xe2\x86\xa9', b'\xe2\x86\xaa', b'\xe2\x8c\x9a', b'\xe2\x8c\x9b', b'\xe2\x8f\xa9', b'\xe2\x8f\xaa', b'\xe2\x8f\xab', b'\xe2\x8f\xac', b'\xe2\x8f\xb0', b'\xe2\x8f\xb3', b'\xe2\x96\xaa', b'\xe2\x96\xab', b'\xe2\x96\xb6', b'\xe2\x97\x80', b'\xe2\x97\xbb', b'\xe2\x97\xbc', b'\xe2\x97\xbd', b'\xe2\x97\xbe', b'\xe2\x98\x80', b'\xe2\x98\x81', b'\xe2\x98\x8e', b'\xe2\x98\x91', b'\xe2\x98\x94', b'\xe2\x98\x95', b'\xe2\x98\x9d', b'\xe2\x98\xba', b'\xe2\x99\x88', b'\xe2\x99\x89', b'\xe2\x99\x8a', b'\xe2\x99\x8b', b'\xe2\x99\x8c', b'\xe2\x99\x8d', b'\xe2\x99\x8e', b'\xe2\x99\x8f', b'\xe2\x99\x90', b'\xe2\x99\x91', b'\xe2\x99\x92', b'\xe2\x99\x93', b'\xe2\x99\xa0', b'\xe2\x99\xa3', b'\xe2\x99\xa5', b'\xe2\x99\xa6', b'\xe2\x99\xa8', b'\xe2\x99\xbb', b'\xe2\x99\xbf', b'\xe2\x9a\x93', b'\xe2\x9a\xa0', b'\xe2\x9a\xa1', b'\xe2\x9a\xaa', b'\xe2\x9a\xab', b'\xe2\x9a\xbd', b'\xe2\x9a\xbe', b'\xe2\x9b\x84', b'\xe2\x9b\x85', b'\xe2\x9b\x8e', b'\xe2\x9b\x94', b'\xe2\x9b\xaa', b'\xe2\x9b\xb2', b'\xe2\x9b\xb3', b'\xe2\x9b\xb5', b'\xe2\x9b\xba', b'\xe2\x9b\xbd', b'\xe2\xa4\xb4', b'\xe2\xa4\xb5', b'\xe2\xac\x85', b'\xe2\xac\x86', b'\xe2\xac\x87', b'\xe2\xac\x9b', b'\xe2\xac\x9c', b'\xe2\xad\x90', b'\xe2\xad\x95', b'\xe3\x80\xb0', b'\xe3\x80\xbd', b'\xe3\x8a\x97', b'\xe3\x8a\x99', b'\xf0\x9f\x80\x84', b'\xf0\x9f\x83\x8f', b'\xf0\x9f\x8c\x80', b'\xf0\x9f\x8c\x81', b'\xf0\x9f\x8c\x82', b'\xf0\x9f\x8c\x83', b'\xf0\x9f\x8c\x84', b'\xf0\x9f\x8c\x85', b'\xf0\x9f\x8c\x86', b'\xf0\x9f\x8c\x87', b'\xf0\x9f\x8c\x88', b'\xf0\x9f\x8c\x89', b'\xf0\x9f\x8c\x8a', b'\xf0\x9f\x8c\x8b', b'\xf0\x9f\x8c\x8c', b'\xf0\x9f\x8c\x8f', b'\xf0\x9f\x8c\x91', b'\xf0\x9f\x8c\x93', b'\xf0\x9f\x8c\x94', b'\xf0\x9f\x8c\x95', b'\xf0\x9f\x8c\x99', b'\xf0\x9f\x8c\x9b', b'\xf0\x9f\x8c\x9f', b'\xf0\x9f\x8c\xa0', b'\xf0\x9f\x8c\xb0', b'\xf0\x9f\x8c\xb1', b'\xf0\x9f\x8c\xb4', b'\xf0\x9f\x8c\xb5', b'\xf0\x9f\x8c\xb7', b'\xf0\x9f\x8c\xb8', b'\xf0\x9f\x8c\xb9', b'\xf0\x9f\x8c\xba', b'\xf0\x9f\x8c\xbb', b'\xf0\x9f\x8c\xbc', b'\xf0\x9f\x8c\xbd', b'\xf0\x9f\x8c\xbe', b'\xf0\x9f\x8c\xbf', b'\xf0\x9f\x8d\x80', b'\xf0\x9f\x8d\x81', b'\xf0\x9f\x8d\x82', b'\xf0\x9f\x8d\x83', b'\xf0\x9f\x8d\x84', b'\xf0\x9f\x8d\x85', b'\xf0\x9f\x8d\x86', b'\xf0\x9f\x8d\x87', b'\xf0\x9f\x8d\x88', b'\xf0\x9f\x8d\x89', b'\xf0\x9f\x8d\x8a', b'\xf0\x9f\x8d\x8c', b'\xf0\x9f\x8d\x8d', b'\xf0\x9f\x8d\x8e', b'\xf0\x9f\x8d\x8f', b'\xf0\x9f\x8d\x91', b'\xf0\x9f\x8d\x92', b'\xf0\x9f\x8d\x93', b'\xf0\x9f\x8d\x94', b'\xf0\x9f\x8d\x95', b'\xf0\x9f\x8d\x96', b'\xf0\x9f\x8d\x97', b'\xf0\x9f\x8d\x98', b'\xf0\x9f\x8d\x99', b'\xf0\x9f\x8d\x9a', b'\xf0\x9f\x8d\x9b', b'\xf0\x9f\x8d\x9c', b'\xf0\x9f\x8d\x9d', b'\xf0\x9f\x8d\x9e', b'\xf0\x9f\x8d\x9f', b'\xf0\x9f\x8d\xa0', b'\xf0\x9f\x8d\xa1', b'\xf0\x9f\x8d\xa2', b'\xf0\x9f\x8d\xa3', b'\xf0\x9f\x8d\xa4', b'\xf0\x9f\x8d\xa5', b'\xf0\x9f\x8d\xa6', b'\xf0\x9f\x8d\xa7', b'\xf0\x9f\x8d\xa8', b'\xf0\x9f\x8d\xa9', b'\xf0\x9f\x8d\xaa', b'\xf0\x9f\x8d\xab', b'\xf0\x9f\x8d\xac', b'\xf0\x9f\x8d\xad', b'\xf0\x9f\x8d\xae', b'\xf0\x9f\x8d\xaf', b'\xf0\x9f\x8d\xb0', b'\xf0\x9f\x8d\xb1', b'\xf0\x9f\x8d\xb2', b'\xf0\x9f\x8d\xb3', b'\xf0\x9f\x8d\xb4', b'\xf0\x9f\x8d\xb5', b'\xf0\x9f\x8d\xb6', b'\xf0\x9f\x8d\xb7', b'\xf0\x9f\x8d\xb8', b'\xf0\x9f\x8d\xb9', b'\xf0\x9f\x8d\xba', b'\xf0\x9f\x8d\xbb', b'\xf0\x9f\x8e\x80', b'\xf0\x9f\x8e\x81', b'\xf0\x9f\x8e\x82', b'\xf0\x9f\x8e\x83', b'\xf0\x9f\x8e\x84', b'\xf0\x9f\x8e\x85', b'\xf0\x9f\x8e\x86', b'\xf0\x9f\x8e\x87', b'\xf0\x9f\x8e\x88', b'\xf0\x9f\x8e\x89', b'\xf0\x9f\x8e\x8a', b'\xf0\x9f\x8e\x8b', b'\xf0\x9f\x8e\x8c', b'\xf0\x9f\x8e\x8d', b'\xf0\x9f\x8e\x8e', b'\xf0\x9f\x8e\x8f', b'\xf0\x9f\x8e\x90', b'\xf0\x9f\x8e\x91', b'\xf0\x9f\x8e\x92', b'\xf0\x9f\x8e\x93', b'\xf0\x9f\x8e\xa0', b'\xf0\x9f\x8e\xa1', b'\xf0\x9f\x8e\xa2', b'\xf0\x9f\x8e\xa3', b'\xf0\x9f\x8e\xa4', b'\xf0\x9f\x8e\xa5', b'\xf0\x9f\x8e\xa6', b'\xf0\x9f\x8e\xa7', b'\xf0\x9f\x8e\xa8', b'\xf0\x9f\x8e\xa9', b'\xf0\x9f\x8e\xaa', b'\xf0\x9f\x8e\xab', b'\xf0\x9f\x8e\xac', b'\xf0\x9f\x8e\xad', b'\xf0\x9f\x8e\xae', b'\xf0\x9f\x8e\xaf', b'\xf0\x9f\x8e\xb0', b'\xf0\x9f\x8e\xb1', b'\xf0\x9f\x8e\xb2', b'\xf0\x9f\x8e\xb3', b'\xf0\x9f\x8e\xb4', b'\xf0\x9f\x8e\xb5', b'\xf0\x9f\x8e\xb6', b'\xf0\x9f\x8e\xb7', b'\xf0\x9f\x8e\xb8', b'\xf0\x9f\x8e\xb9', b'\xf0\x9f\x8e\xba', b'\xf0\x9f\x8e\xbb', b'\xf0\x9f\x8e\xbc', b'\xf0\x9f\x8e\xbd', b'\xf0\x9f\x8e\xbe', b'\xf0\x9f\x8e\xbf', b'\xf0\x9f\x8f\x80', b'\xf0\x9f\x8f\x81', b'\xf0\x9f\x8f\x82', b'\xf0\x9f\x8f\x83', b'\xf0\x9f\x8f\x84', b'\xf0\x9f\x8f\x86', b'\xf0\x9f\x8f\x88', b'\xf0\x9f\x8f\x8a', b'\xf0\x9f\x8f\xa0', b'\xf0\x9f\x8f\xa1', b'\xf0\x9f\x8f\xa2', b'\xf0\x9f\x8f\xa3', b'\xf0\x9f\x8f\xa5', b'\xf0\x9f\x8f\xa6', b'\xf0\x9f\x8f\xa7', b'\xf0\x9f\x8f\xa8', b'\xf0\x9f\x8f\xa9', b'\xf0\x9f\x8f\xaa', b'\xf0\x9f\x8f\xab', b'\xf0\x9f\x8f\xac', b'\xf0\x9f\x8f\xad', b'\xf0\x9f\x8f\xae', b'\xf0\x9f\x8f\xaf', b'\xf0\x9f\x8f\xb0', b'\xf0\x9f\x90\x8c', b'\xf0\x9f\x90\x8d', b'\xf0\x9f\x90\x8e', b'\xf0\x9f\x90\x91', b'\xf0\x9f\x90\x92', b'\xf0\x9f\x90\x94', b'\xf0\x9f\x90\x97', b'\xf0\x9f\x90\x98', b'\xf0\x9f\x90\x99', b'\xf0\x9f\x90\x9a', b'\xf0\x9f\x90\x9b', b'\xf0\x9f\x90\x9c', b'\xf0\x9f\x90\x9d', b'\xf0\x9f\x90\x9e', b'\xf0\x9f\x90\x9f', b'\xf0\x9f\x90\xa0', b'\xf0\x9f\x90\xa1', b'\xf0\x9f\x90\xa2', b'\xf0\x9f\x90\xa3', b'\xf0\x9f\x90\xa4', b'\xf0\x9f\x90\xa5', b'\xf0\x9f\x90\xa6', b'\xf0\x9f\x90\xa7', b'\xf0\x9f\x90\xa8', b'\xf0\x9f\x90\xa9', b'\xf0\x9f\x90\xab', b'\xf0\x9f\x90\xac', b'\xf0\x9f\x90\xad', b'\xf0\x9f\x90\xae', b'\xf0\x9f\x90\xaf', b'\xf0\x9f\x90\xb0', b'\xf0\x9f\x90\xb1', b'\xf0\x9f\x90\xb2', b'\xf0\x9f\x90\xb3', b'\xf0\x9f\x90\xb4', b'\xf0\x9f\x90\xb5', b'\xf0\x9f\x90\xb6', b'\xf0\x9f\x90\xb7', b'\xf0\x9f\x90\xb8', b'\xf0\x9f\x90\xb9', b'\xf0\x9f\x90\xba', b'\xf0\x9f\x90\xbb', b'\xf0\x9f\x90\xbc', b'\xf0\x9f\x90\xbd', b'\xf0\x9f\x90\xbe', b'\xf0\x9f\x91\x80', b'\xf0\x9f\x91\x82', b'\xf0\x9f\x91\x83', b'\xf0\x9f\x91\x84', b'\xf0\x9f\x91\x85', b'\xf0\x9f\x91\x86', b'\xf0\x9f\x91\x87', b'\xf0\x9f\x91\x88', b'\xf0\x9f\x91\x89', b'\xf0\x9f\x91\x8a', b'\xf0\x9f\x91\x8b', b'\xf0\x9f\x91\x8c', b'\xf0\x9f\x91\x8d', b'\xf0\x9f\x91\x8e', b'\xf0\x9f\x91\x8f', b'\xf0\x9f\x91\x90', b'\xf0\x9f\x91\x91', b'\xf0\x9f\x91\x92', b'\xf0\x9f\x91\x93', b'\xf0\x9f\x91\x94', b'\xf0\x9f\x91\x95', b'\xf0\x9f\x91\x96', b'\xf0\x9f\x91\x97', b'\xf0\x9f\x91\x98', b'\xf0\x9f\x91\x99', b'\xf0\x9f\x91\x9a', b'\xf0\x9f\x91\x9b', b'\xf0\x9f\x91\x9c', b'\xf0\x9f\x91\x9d', b'\xf0\x9f\x91\x9e', b'\xf0\x9f\x91\x9f', b'\xf0\x9f\x91\xa0', b'\xf0\x9f\x91\xa1', b'\xf0\x9f\x91\xa2', b'\xf0\x9f\x91\xa3', b'\xf0\x9f\x91\xa4', b'\xf0\x9f\x91\xa6', b'\xf0\x9f\x91\xa7', b'\xf0\x9f\x91\xa8', b'\xf0\x9f\x91\xa9', b'\xf0\x9f\x91\xaa', b'\xf0\x9f\x91\xab', b'\xf0\x9f\x91\xae', b'\xf0\x9f\x91\xaf', b'\xf0\x9f\x91\xb0', b'\xf0\x9f\x91\xb1', b'\xf0\x9f\x91\xb2', b'\xf0\x9f\x91\xb3', b'\xf0\x9f\x91\xb4', b'\xf0\x9f\x91\xb5', b'\xf0\x9f\x91\xb6', b'\xf0\x9f\x91\xb7', b'\xf0\x9f\x91\xb8', b'\xf0\x9f\x91\xb9', b'\xf0\x9f\x91\xba', b'\xf0\x9f\x91\xbb', b'\xf0\x9f\x91\xbc', b'\xf0\x9f\x91\xbd', b'\xf0\x9f\x91\xbe', b'\xf0\x9f\x91\xbf', b'\xf0\x9f\x92\x80', b'\xf0\x9f\x92\x81', b'\xf0\x9f\x92\x82', b'\xf0\x9f\x92\x83', b'\xf0\x9f\x92\x84', b'\xf0\x9f\x92\x85', b'\xf0\x9f\x92\x86', b'\xf0\x9f\x92\x87', b'\xf0\x9f\x92\x88', b'\xf0\x9f\x92\x89', b'\xf0\x9f\x92\x8a', b'\xf0\x9f\x92\x8b', b'\xf0\x9f\x92\x8c', b'\xf0\x9f\x92\x8d', b'\xf0\x9f\x92\x8e', b'\xf0\x9f\x92\x8f', b'\xf0\x9f\x92\x90', b'\xf0\x9f\x92\x91', b'\xf0\x9f\x92\x92', b'\xf0\x9f\x92\x93', b'\xf0\x9f\x92\x94', b'\xf0\x9f\x92\x95', b'\xf0\x9f\x92\x96', b'\xf0\x9f\x92\x97', b'\xf0\x9f\x92\x98', b'\xf0\x9f\x92\x99', b'\xf0\x9f\x92\x9a', b'\xf0\x9f\x92\x9b', b'\xf0\x9f\x92\x9c', b'\xf0\x9f\x92\x9d', b'\xf0\x9f\x92\x9e', b'\xf0\x9f\x92\x9f', b'\xf0\x9f\x92\xa0', b'\xf0\x9f\x92\xa1', b'\xf0\x9f\x92\xa2', b'\xf0\x9f\x92\xa3', b'\xf0\x9f\x92\xa4', b'\xf0\x9f\x92\xa5', b'\xf0\x9f\x92\xa6', b'\xf0\x9f\x92\xa7', b'\xf0\x9f\x92\xa8', b'\xf0\x9f\x92\xa9', b'\xf0\x9f\x92\xaa', b'\xf0\x9f\x92\xab', b'\xf0\x9f\x92\xac', b'\xf0\x9f\x92\xae', b'\xf0\x9f\x92\xaf', b'\xf0\x9f\x92\xb0', b'\xf0\x9f\x92\xb1', b'\xf0\x9f\x92\xb2', b'\xf0\x9f\x92\xb3', b'\xf0\x9f\x92\xb4', b'\xf0\x9f\x92\xb5', b'\xf0\x9f\x92\xb8', b'\xf0\x9f\x92\xb9', b'\xf0\x9f\x92\xba', b'\xf0\x9f\x92\xbb', b'\xf0\x9f\x92\xbc', b'\xf0\x9f\x92\xbd', b'\xf0\x9f\x92\xbe', b'\xf0\x9f\x92\xbf', b'\xf0\x9f\x93\x80', b'\xf0\x9f\x93\x81', b'\xf0\x9f\x93\x82', b'\xf0\x9f\x93\x83', b'\xf0\x9f\x93\x84', b'\xf0\x9f\x93\x85', b'\xf0\x9f\x93\x86', b'\xf0\x9f\x93\x87', b'\xf0\x9f\x93\x88', b'\xf0\x9f\x93\x89', b'\xf0\x9f\x93\x8a', b'\xf0\x9f\x93\x8b', b'\xf0\x9f\x93\x8c', b'\xf0\x9f\x93\x8d', b'\xf0\x9f\x93\x8e', b'\xf0\x9f\x93\x8f', b'\xf0\x9f\x93\x90', b'\xf0\x9f\x93\x91', b'\xf0\x9f\x93\x92', b'\xf0\x9f\x93\x93', b'\xf0\x9f\x93\x94', b'\xf0\x9f\x93\x95', b'\xf0\x9f\x93\x96', b'\xf0\x9f\x93\x97', b'\xf0\x9f\x93\x98', b'\xf0\x9f\x93\x99', b'\xf0\x9f\x93\x9a', b'\xf0\x9f\x93\x9b', b'\xf0\x9f\x93\x9c', b'\xf0\x9f\x93\x9d', b'\xf0\x9f\x93\x9e', b'\xf0\x9f\x93\x9f', b'\xf0\x9f\x93\xa0', b'\xf0\x9f\x93\xa1', b'\xf0\x9f\x93\xa2', b'\xf0\x9f\x93\xa3', b'\xf0\x9f\x93\xa4', b'\xf0\x9f\x93\xa5', b'\xf0\x9f\x93\xa6', b'\xf0\x9f\x93\xa7', b'\xf0\x9f\x93\xa8', b'\xf0\x9f\x93\xa9', b'\xf0\x9f\x93\xaa', b'\xf0\x9f\x93\xab', b'\xf0\x9f\x93\xae', b'\xf0\x9f\x93\xb0', b'\xf0\x9f\x93\xb1', b'\xf0\x9f\x93\xb2', b'\xf0\x9f\x93\xb3', b'\xf0\x9f\x93\xb4', b'\xf0\x9f\x93\xb6', b'\xf0\x9f\x93\xb7', b'\xf0\x9f\x93\xb9', b'\xf0\x9f\x93\xba', b'\xf0\x9f\x93\xbb', b'\xf0\x9f\x93\xbc', b'\xf0\x9f\x94\x83', b'\xf0\x9f\x94\x8a', b'\xf0\x9f\x94\x8b', b'\xf0\x9f\x94\x8c', b'\xf0\x9f\x94\x8d', b'\xf0\x9f\x94\x8e', b'\xf0\x9f\x94\x8f', b'\xf0\x9f\x94\x90', b'\xf0\x9f\x94\x91', b'\xf0\x9f\x94\x92', b'\xf0\x9f\x94\x93', b'\xf0\x9f\x94\x94', b'\xf0\x9f\x94\x96', b'\xf0\x9f\x94\x97', b'\xf0\x9f\x94\x98', b'\xf0\x9f\x94\x99', b'\xf0\x9f\x94\x9a', b'\xf0\x9f\x94\x9b', b'\xf0\x9f\x94\x9c', b'\xf0\x9f\x94\x9d', b'\xf0\x9f\x94\x9e', b'\xf0\x9f\x94\x9f', b'\xf0\x9f\x94\xa0', b'\xf0\x9f\x94\xa1', b'\xf0\x9f\x94\xa2', b'\xf0\x9f\x94\xa3', b'\xf0\x9f\x94\xa4', b'\xf0\x9f\x94\xa5', b'\xf0\x9f\x94\xa6', b'\xf0\x9f\x94\xa7', b'\xf0\x9f\x94\xa8', b'\xf0\x9f\x94\xa9', b'\xf0\x9f\x94\xaa', b'\xf0\x9f\x94\xab', b'\xf0\x9f\x94\xae', b'\xf0\x9f\x94\xaf', b'\xf0\x9f\x94\xb0', b'\xf0\x9f\x94\xb1', b'\xf0\x9f\x94\xb2', b'\xf0\x9f\x94\xb3', b'\xf0\x9f\x94\xb4', b'\xf0\x9f\x94\xb5', b'\xf0\x9f\x94\xb6', b'\xf0\x9f\x94\xb7', b'\xf0\x9f\x94\xb8', b'\xf0\x9f\x94\xb9', b'\xf0\x9f\x94\xba', b'\xf0\x9f\x94\xbb', b'\xf0\x9f\x94\xbc', b'\xf0\x9f\x94\xbd', b'\xf0\x9f\x95\x90', b'\xf0\x9f\x95\x91', b'\xf0\x9f\x95\x92', b'\xf0\x9f\x95\x93', b'\xf0\x9f\x95\x94', b'\xf0\x9f\x95\x95', b'\xf0\x9f\x95\x96', b'\xf0\x9f\x95\x97', b'\xf0\x9f\x95\x98', b'\xf0\x9f\x95\x99', b'\xf0\x9f\x95\x9a', b'\xf0\x9f\x95\x9b', b'\xf0\x9f\x97\xbb', b'\xf0\x9f\x97\xbc', b'\xf0\x9f\x97\xbd', b'\xf0\x9f\x97\xbe', b'\xf0\x9f\x97\xbf', b'\xf0\x9f\x98\x80', b'\xf0\x9f\x98\x87', b'\xf0\x9f\x98\x88', b'\xf0\x9f\x98\x8e', b'\xf0\x9f\x98\x90', b'\xf0\x9f\x98\x91', b'\xf0\x9f\x98\x95', b'\xf0\x9f\x98\x97', b'\xf0\x9f\x98\x99', b'\xf0\x9f\x98\x9b', b'\xf0\x9f\x98\x9f', b'\xf0\x9f\x98\xa6', b'\xf0\x9f\x98\xa7', b'\xf0\x9f\x98\xac', b'\xf0\x9f\x98\xae', b'\xf0\x9f\x98\xaf', b'\xf0\x9f\x98\xb4', b'\xf0\x9f\x98\xb6', b'\xf0\x9f\x9a\x81', b'\xf0\x9f\x9a\x82', b'\xf0\x9f\x9a\x86', b'\xf0\x9f\x9a\x88', b'\xf0\x9f\x9a\x8a', b'\xf0\x9f\x9a\x8d', b'\xf0\x9f\x9a\x8e', b'\xf0\x9f\x9a\x90', b'\xf0\x9f\x9a\x94', b'\xf0\x9f\x9a\x96', b'\xf0\x9f\x9a\x98', b'\xf0\x9f\x9a\x9b', b'\xf0\x9f\x9a\x9c', b'\xf0\x9f\x9a\x9d', b'\xf0\x9f\x9a\x9e', b'\xf0\x9f\x9a\x9f', b'\xf0\x9f\x9a\xa0', b'\xf0\x9f\x9a\xa1', b'\xf0\x9f\x9a\xa3', b'\xf0\x9f\x9a\xa6', b'\xf0\x9f\x9a\xae', b'\xf0\x9f\x9a\xaf', b'\xf0\x9f\x9a\xb0', b'\xf0\x9f\x9a\xb1', b'\xf0\x9f\x9a\xb3', b'\xf0\x9f\x9a\xb4', b'\xf0\x9f\x9a\xb5', b'\xf0\x9f\x9a\xb7', b'\xf0\x9f\x9a\xb8', b'\xf0\x9f\x9a\xbf', b'\xf0\x9f\x9b\x81', b'\xf0\x9f\x9b\x82', b'\xf0\x9f\x9b\x83', b'\xf0\x9f\x9b\x84', b'\xf0\x9f\x9b\x85', b'\xf0\x9f\x8c\x8d', b'\xf0\x9f\x8c\x8e', b'\xf0\x9f\x8c\x90', b'\xf0\x9f\x8c\x92', b'\xf0\x9f\x8c\x96', b'\xf0\x9f\x8c\x97', b'\xf0\x9f\x8c\x98', b'\xf0\x9f\x8c\x9a', b'\xf0\x9f\x8c\x9c', b'\xf0\x9f\x8c\x9d', b'\xf0\x9f\x8c\x9e', b'\xf0\x9f\x8c\xb2', b'\xf0\x9f\x8c\xb3', b'\xf0\x9f\x8d\x8b', b'\xf0\x9f\x8d\x90', b'\xf0\x9f\x8d\xbc', b'\xf0\x9f\x8f\x87', b'\xf0\x9f\x8f\x89', b'\xf0\x9f\x8f\xa4', b'\xf0\x9f\x90\x80', b'\xf0\x9f\x90\x81', b'\xf0\x9f\x90\x82', b'\xf0\x9f\x90\x83', b'\xf0\x9f\x90\x84', b'\xf0\x9f\x90\x85', b'\xf0\x9f\x90\x86', b'\xf0\x9f\x90\x87', b'\xf0\x9f\x90\x88', b'\xf0\x9f\x90\x89', b'\xf0\x9f\x90\x8a', b'\xf0\x9f\x90\x8b', b'\xf0\x9f\x90\x8f', b'\xf0\x9f\x90\x90', b'\xf0\x9f\x90\x93', b'\xf0\x9f\x90\x95', b'\xf0\x9f\x90\x96', b'\xf0\x9f\x90\xaa', b'\xf0\x9f\x91\xa5', b'\xf0\x9f\x91\xac', b'\xf0\x9f\x91\xad', b'\xf0\x9f\x92\xad', b'\xf0\x9f\x92\xb6', b'\xf0\x9f\x92\xb7', b'\xf0\x9f\x93\xac', b'\xf0\x9f\x93\xad', b'\xf0\x9f\x93\xaf', b'\xf0\x9f\x93\xb5', b'\xf0\x9f\x94\x80', b'\xf0\x9f\x94\x81', b'\xf0\x9f\x94\x82', b'\xf0\x9f\x94\x84', b'\xf0\x9f\x94\x85', b'\xf0\x9f\x94\x86', b'\xf0\x9f\x94\x87', b'\xf0\x9f\x94\x89', b'\xf0\x9f\x94\x95', b'\xf0\x9f\x94\xac', b'\xf0\x9f\x94\xad', b'\xf0\x9f\x95\x9c', b'\xf0\x9f\x95\x9d', b'\xf0\x9f\x95\x9e', b'\xf0\x9f\x95\x9f', b'\xf0\x9f\x95\xa0', b'\xf0\x9f\x95\xa1', b'\xf0\x9f\x95\xa2', b'\xf0\x9f\x95\xa3', b'\xf0\x9f\x95\xa4', b'\xf0\x9f\x95\xa5', b'\xf0\x9f\x95\xa6', b'\xf0\x9f\x95\xa7']
# Code generated by font-to-py.py. # Font: dsm.ttf version = '0.26' def height(): return 21 def max_width(): return 12 def hmap(): return True def reverse(): return False def monospaced(): return False def min_ch(): return 32 def max_ch(): return 126 _font =\ b'\x0c\x00\x00\x00\x7c\x00\xfe\x00\x87\x00\x03\x00\x03\x00\x07\x00'\ b'\x0e\x00\x1c\x00\x38\x00\x30\x00\x30\x00\x30\x00\x00\x00\x30\x00'\ b'\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xcc\x00\xcc\x00\xcc\x00\xcc\x00'\ b'\xcc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x06\x60\x04\x40\x0c\xc0\x0c\xc0\x7f\xf0\x7f\xf0'\ b'\x08\x80\x19\x80\x19\x80\xff\xe0\xff\xe0\x33\x00\x33\x00\x22\x00'\ b'\x22\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x08\x00\x08\x00\x3e\x00\x7f\x00\xe9\x00\xc8\x00\xc8\x00\x68\x00'\ b'\x3e\x00\x0b\x00\x09\x80\x09\x80\x8b\x80\xff\x00\x7e\x00\x08\x00'\ b'\x08\x00\x08\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x78\x00\xcc\x00'\ b'\xcc\x00\xcc\x00\xcc\x00\x78\xc0\x03\x00\x06\x00\x18\x00\x63\xc0'\ b'\x06\x60\x06\x60\x06\x60\x06\x60\x03\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x1f\x00\x3f\x00\x30\x00\x30\x00'\ b'\x30\x00\x18\x00\x18\x00\x7c\x00\x6e\x60\xc6\x60\xc3\x60\xc3\xc0'\ b'\xe1\x80\x7e\xc0\x3c\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x30\x00\x20\x00\x60\x00\x60\x00\x40\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x60\x00\x60\x00\x60\x00'\ b'\x20\x00\x30\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\x40\x00'\ b'\x60\x00\x60\x00\x60\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00'\ b'\x30\x00\x30\x00\x30\x00\x60\x00\x60\x00\x60\x00\x40\x00\xc0\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x08\x00\x08\x00\x88\x80\x6b\x00'\ b'\x1c\x00\x1c\x00\x6b\x00\x88\x80\x08\x00\x08\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x00'\ b'\x0c\x00\x0c\x00\xff\xc0\xff\xc0\x0c\x00\x0c\x00\x0c\x00\x0c\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x60\x00\x60\x00\x60\x00\x60\x00'\ b'\xc0\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\xf8\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\xc0\x01\x80\x01\x80\x03\x00\x03\x00\x06\x00'\ b'\x06\x00\x0c\x00\x0c\x00\x18\x00\x18\x00\x30\x00\x30\x00\x60\x00'\ b'\x60\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x3c\x00\x7f\x00\x63\x00\xe3\x80\xc1\x80\xc1\x80\xcd\x80\xcd\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x63\x00\x7f\x00\x3c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x38\x00\xf8\x00'\ b'\xd8\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x18\x00\xff\x00\xff\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x7e\x00\xff\x00\x83\x80\x01\x80'\ b'\x01\x80\x01\x80\x03\x80\x03\x00\x06\x00\x0c\x00\x18\x00\x30\x00'\ b'\x60\x00\xff\x80\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x7e\x00\xff\x00\x83\x80\x01\x80\x01\x80\x03\x80'\ b'\x1f\x00\x1e\x00\x03\x00\x01\x80\x01\x80\x01\x80\x83\x80\xff\x00'\ b'\x7e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x07\x00\x07\x00\x0f\x00\x0b\x00\x1b\x00\x13\x00\x33\x00\x63\x00'\ b'\x63\x00\xc3\x00\xff\xc0\xff\xc0\x03\x00\x03\x00\x03\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x7f\x00\x7f\x00'\ b'\x60\x00\x60\x00\x60\x00\x7e\x00\x7f\x00\x43\x80\x01\x80\x01\x80'\ b'\x01\x80\x01\x80\x83\x00\xff\x00\x7c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00\x3f\x00\x71\x00\x60\x00'\ b'\xc0\x00\xc0\x00\xde\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\x63\x80\x7f\x00\x3e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xff\x80\xff\x80\x03\x00\x03\x00\x03\x00\x06\x00'\ b'\x06\x00\x06\x00\x0c\x00\x0c\x00\x0c\x00\x18\x00\x18\x00\x18\x00'\ b'\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x3e\x00\x7f\x00\xe3\x80\xc1\x80\xc1\x80\x63\x00\x3e\x00\x7f\x00'\ b'\x63\x00\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x00\x3e\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x3e\x00\x7f\x00'\ b'\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x80\x3d\x80\x01\x80'\ b'\x01\x80\x03\x00\x47\x00\x7e\x00\x3c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x00'\ b'\x60\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x00\x60\x00'\ b'\x60\x00\x60\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x03\xc0\x0f\x00\x3c\x00'\ b'\xe0\x00\xe0\x00\x3c\x00\x0f\x00\x03\xc0\x00\x40\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc0\xff\xc0\x00\x00\x00\x00'\ b'\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x80\x00\xf0\x00\x3c\x00\x0f\x00\x01\xc0\x01\xc0\x0f\x00\x3c\x00'\ b'\xf0\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x7c\x00\xfe\x00\x87\x00\x03\x00\x03\x00\x07\x00'\ b'\x0e\x00\x1c\x00\x38\x00\x30\x00\x30\x00\x30\x00\x00\x00\x30\x00'\ b'\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x0f\x00\x31\x80\x60\xc0\x60\xc0\x47\xc0\xc4\xc0\xcc\xc0'\ b'\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xc4\xc0\x67\xc0\x60\x00\x30\x00'\ b'\x38\x00\x0f\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00'\ b'\x1e\x00\x1e\x00\x1e\x00\x3f\x00\x33\x00\x33\x00\x33\x00\x73\x80'\ b'\x7f\x80\x7f\x80\x61\x80\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xfe\x00\xff\x00\xc3\x80\xc1\x80'\ b'\xc1\x80\xc3\x80\xff\x00\xff\x00\xc1\x80\xc0\xc0\xc0\xc0\xc0\xc0'\ b'\xc1\xc0\xff\x80\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x0f\x80\x3f\xc0\x70\x40\x60\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x60\x00\x70\x40\x3f\xc0'\ b'\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xfc\x00\xff\x00\xc3\x80\xc1\x80\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc1\x80\xc3\x80\xff\x00\xfc\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xff\x80\xff\x80\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x1f\x00\x3f\x80\x70\x80\x60\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc3\xc0\xc3\xc0\xc0\xc0\xc0\xc0\x60\xc0\x70\xc0\x3f\xc0'\ b'\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xff\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x00'\ b'\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x18\x00\xff\x00\xff\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x3f\x00\x3f\x00\x03\x00\x03\x00'\ b'\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00'\ b'\x87\x00\xfe\x00\x7c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xc0\xc0\xc1\x80\xc3\x00\xc6\x00\xcc\x00\xd8\x00'\ b'\xf8\x00\xfc\x00\xec\x00\xc6\x00\xc7\x00\xc3\x00\xc1\x80\xc1\xc0'\ b'\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe1\xc0\xe1\xc0'\ b'\xe1\xc0\xf3\xc0\xd2\xc0\xd2\xc0\xde\xc0\xcc\xc0\xcc\xc0\xcc\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xe0\xc0\xe0\xc0\xf0\xc0\xf0\xc0'\ b'\xd8\xc0\xd8\xc0\xc8\xc0\xcc\xc0\xc4\xc0\xc6\xc0\xc6\xc0\xc3\xc0'\ b'\xc3\xc0\xc1\xc0\xc1\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x1e\x00\x7f\x80\x61\x80\xe1\xc0\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xe1\xc0\x61\x80\x7f\x80'\ b'\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xff\x00\xff\x80\xc1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc1\xc0\xff\x80'\ b'\xff\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00\x7f\x80'\ b'\x61\x80\xe1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xe1\xc0\x61\x80\x3f\x00\x1e\x00\x03\x00\x01\x80\x01\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x80\xc1\xc0\xc0\xc0'\ b'\xc0\xc0\xc1\xc0\xff\x80\xff\x00\xc3\x80\xc1\x80\xc1\xc0\xc0\xc0'\ b'\xc0\xe0\xc0\x60\xc0\x70\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x3f\x00\x7f\x80\xe0\x80\xc0\x00\xc0\x00\xe0\x00'\ b'\x7c\x00\x3f\x00\x03\x80\x00\xc0\x00\xc0\x00\xc0\x81\xc0\xff\x80'\ b'\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xff\xf0\xff\xf0\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00'\ b'\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xc0\xc0\xe1\xc0\x7f\x80\x3f\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0\x61\x80\x61\x80'\ b'\x61\x80\x61\x80\x33\x00\x33\x00\x33\x00\x3f\x00\x1e\x00\x1e\x00'\ b'\x1e\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xc0\x30\xc0\x30\xc0\x30\x60\x60\x66\x60\x66\x60'\ b'\x6f\x60\x6f\x60\x69\x60\x69\x60\x39\xc0\x39\xc0\x39\xc0\x30\xc0'\ b'\x30\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xe1\xc0\x61\x80\x73\x80\x33\x00\x1e\x00\x1e\x00\x0c\x00\x0c\x00'\ b'\x1e\x00\x1e\x00\x37\x00\x33\x00\x63\x80\x61\x80\xc1\xc0\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe0\x70\x60\x60'\ b'\x30\xc0\x30\xc0\x19\x80\x1f\x80\x0f\x00\x06\x00\x06\x00\x06\x00'\ b'\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\x01\x80\x03\x80'\ b'\x03\x00\x06\x00\x0e\x00\x0c\x00\x1c\x00\x18\x00\x30\x00\x70\x00'\ b'\x60\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xf0\x00\xf0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xf0\x00\xf0\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\x00\x60\x00\x60\x00\x30\x00\x30\x00\x18\x00\x18\x00\x0c\x00'\ b'\x0c\x00\x06\x00\x06\x00\x03\x00\x03\x00\x01\x80\x01\x80\x00\xc0'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xf0\x00\xf0\x00'\ b'\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00'\ b'\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\xf0\x00\xf0\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x0e\x00\x1b\x00\x31\x80\x60\xc0'\ b'\xc0\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\xff\xf0\xff\xf0\x00\x00\x00\x00\x00\x00\x0c\x00\xc0\x00'\ b'\x60\x00\x30\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x3e\x00\x7f\x00\x43\x80\x01\x80\x3f\x80\x7f\x80'\ b'\xe1\x80\xc1\x80\xc3\x80\xff\x80\x3d\x80\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xde\x00\xff\x00\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\xe3\x00\xff\x00\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x00\x7f\x00'\ b'\x61\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x61\x00\x7f\x00'\ b'\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x01\x80\x01\x80\x01\x80\x01\x80\x3d\x80\x7f\x80\x63\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x63\x80\x7f\x80\x3d\x80\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x1e\x00\x7f\x00\x63\x80\xc1\x80\xff\x80\xff\x80'\ b'\xc0\x00\xc0\x00\x60\x80\x7f\x80\x1f\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x80\x1f\x80\x18\x00\x18\x00'\ b'\xff\x80\xff\x80\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3d\x80\x7f\x80'\ b'\x63\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x63\x80\x7f\x80'\ b'\x3d\x80\x01\x80\x43\x80\x7f\x00\x3e\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xce\x00\xff\x00\xe3\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00'\ b'\x00\x00\x00\x00\x7c\x00\x7c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00'\ b'\x0c\x00\x0c\x00\x0c\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00'\ b'\x7c\x00\x7c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00'\ b'\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\xf8\x00\xf0\x00\x00\x00'\ b'\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc3\x80\xc7\x00'\ b'\xce\x00\xdc\x00\xf8\x00\xf8\x00\xec\x00\xce\x00\xc6\x00\xc3\x00'\ b'\xc3\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xfc\x00\xfc\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00'\ b'\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0e\x00\x07\xc0\x03\xc0\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\xdb\x80\xff\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0'\ b'\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xce\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x00\x7f\x00'\ b'\x63\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x63\x00\x7f\x00'\ b'\x3e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\xde\x00\xff\x00\xe3\x00\xc1\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x00\xff\x00\xde\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x3d\x80\x7f\x80\x63\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\x63\x80\x7f\x80\x3d\x80\x01\x80\x01\x80\x01\x80'\ b'\x01\x80\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xce\x00\xdf\x00\xf1\x00\xe0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\x00\x7f\x80'\ b'\xc0\x80\xc0\x00\xfe\x00\x3f\x00\x03\x80\x01\x80\x83\x80\xff\x00'\ b'\x7e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x18\x00\x18\x00\x18\x00\xff\x80\xff\x80\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x1f\x80\x0f\x80\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\xe3\x80\x7f\x80\x39\x80\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xc1\x80\xe3\x80\x63\x00\x63\x00\x77\x00\x36\x00\x36\x00\x36\x00'\ b'\x1c\x00\x1c\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x30\xc0\x30'\ b'\x60\x60\x66\x60\x66\x60\x66\x60\x3f\xc0\x39\xc0\x39\xc0\x39\xc0'\ b'\x30\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\xe3\x80\x63\x00\x36\x00\x3e\x00'\ b'\x1c\x00\x1c\x00\x1c\x00\x3e\x00\x36\x00\x63\x00\xe3\x80\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\xc1\x80\x63\x00\x63\x00\x63\x00\x36\x00\x36\x00'\ b'\x3e\x00\x1c\x00\x1c\x00\x0c\x00\x18\x00\x18\x00\x18\x00\x70\x00'\ b'\x70\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xff\x80\xff\x80\x07\x00\x06\x00\x0e\x00\x1c\x00\x38\x00\x30\x00'\ b'\x60\x00\xff\x80\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x0f\x00\x1f\x00\x18\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\xf0\x00\xf0\x00\x38\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x1f\x00\x0f\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x0c\x00\x00\x00\xf0\x00\xf8\x00'\ b'\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x0f\x00\x0f\x00'\ b'\x1c\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xf8\x00\xf0\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x78\x40\xff\xc0\x87\x80\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ _index =\ b'\x00\x00\x2c\x00\x2c\x00\x58\x00\x58\x00\x84\x00\x84\x00\xb0\x00'\ b'\xb0\x00\xdc\x00\xdc\x00\x08\x01\x08\x01\x34\x01\x34\x01\x60\x01'\ b'\x60\x01\x8c\x01\x8c\x01\xb8\x01\xb8\x01\xe4\x01\xe4\x01\x10\x02'\ b'\x10\x02\x3c\x02\x3c\x02\x68\x02\x68\x02\x94\x02\x94\x02\xc0\x02'\ b'\xc0\x02\xec\x02\xec\x02\x18\x03\x18\x03\x44\x03\x44\x03\x70\x03'\ b'\x70\x03\x9c\x03\x9c\x03\xc8\x03\xc8\x03\xf4\x03\xf4\x03\x20\x04'\ b'\x20\x04\x4c\x04\x4c\x04\x78\x04\x78\x04\xa4\x04\xa4\x04\xd0\x04'\ b'\xd0\x04\xfc\x04\xfc\x04\x28\x05\x28\x05\x54\x05\x54\x05\x80\x05'\ b'\x80\x05\xac\x05\xac\x05\xd8\x05\xd8\x05\x04\x06\x04\x06\x30\x06'\ b'\x30\x06\x5c\x06\x5c\x06\x88\x06\x88\x06\xb4\x06\xb4\x06\xe0\x06'\ b'\xe0\x06\x0c\x07\x0c\x07\x38\x07\x38\x07\x64\x07\x64\x07\x90\x07'\ b'\x90\x07\xbc\x07\xbc\x07\xe8\x07\xe8\x07\x14\x08\x14\x08\x40\x08'\ b'\x40\x08\x6c\x08\x6c\x08\x98\x08\x98\x08\xc4\x08\xc4\x08\xf0\x08'\ b'\xf0\x08\x1c\x09\x1c\x09\x48\x09\x48\x09\x74\x09\x74\x09\xa0\x09'\ b'\xa0\x09\xcc\x09\xcc\x09\xf8\x09\xf8\x09\x24\x0a\x24\x0a\x50\x0a'\ b'\x50\x0a\x7c\x0a\x7c\x0a\xa8\x0a\xa8\x0a\xd4\x0a\xd4\x0a\x00\x0b'\ b'\x00\x0b\x2c\x0b\x2c\x0b\x58\x0b\x58\x0b\x84\x0b\x84\x0b\xb0\x0b'\ b'\xb0\x0b\xdc\x0b\xdc\x0b\x08\x0c\x08\x0c\x34\x0c\x34\x0c\x60\x0c'\ b'\x60\x0c\x8c\x0c\x8c\x0c\xb8\x0c\xb8\x0c\xe4\x0c\xe4\x0c\x10\x0d'\ b'\x10\x0d\x3c\x0d\x3c\x0d\x68\x0d\x68\x0d\x94\x0d\x94\x0d\xc0\x0d'\ b'\xc0\x0d\xec\x0d\xec\x0d\x18\x0e\x18\x0e\x44\x0e\x44\x0e\x70\x0e'\ b'\x70\x0e\x9c\x0e\x9c\x0e\xc8\x0e\xc8\x0e\xf4\x0e\xf4\x0e\x20\x0f'\ b'\x20\x0f\x4c\x0f\x4c\x0f\x78\x0f\x78\x0f\xa4\x0f\xa4\x0f\xd0\x0f'\ b'\xd0\x0f\xfc\x0f\xfc\x0f\x28\x10\x28\x10\x54\x10\x54\x10\x80\x10'\ _mvfont = memoryview(_font) def get_ch(ch): ordch = ord(ch) ordch = ordch + 1 if ordch >= 32 and ordch <= 126 else 63 idx_offs = 4 * (ordch - 32) offset = int.from_bytes(_index[idx_offs : idx_offs + 2], 'little') next_offs = int.from_bytes(_index[idx_offs + 2 : idx_offs + 4], 'little') width = int.from_bytes(_font[offset:offset + 2], 'little') return _mvfont[offset + 2:next_offs], 21, width
version = '0.26' def height(): return 21 def max_width(): return 12 def hmap(): return True def reverse(): return False def monospaced(): return False def min_ch(): return 32 def max_ch(): return 126 _font = b'\x0c\x00\x00\x00|\x00\xfe\x00\x87\x00\x03\x00\x03\x00\x07\x00\x0e\x00\x1c\x008\x000\x000\x000\x00\x00\x000\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xcc\x00\xcc\x00\xcc\x00\xcc\x00\xcc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x06`\x04@\x0c\xc0\x0c\xc0\x7f\xf0\x7f\xf0\x08\x80\x19\x80\x19\x80\xff\xe0\xff\xe03\x003\x00"\x00"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x08\x00\x08\x00>\x00\x7f\x00\xe9\x00\xc8\x00\xc8\x00h\x00>\x00\x0b\x00\t\x80\t\x80\x8b\x80\xff\x00~\x00\x08\x00\x08\x00\x08\x00\x00\x00\x00\x00\x0c\x00\x00\x00x\x00\xcc\x00\xcc\x00\xcc\x00\xcc\x00x\xc0\x03\x00\x06\x00\x18\x00c\xc0\x06`\x06`\x06`\x06`\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1f\x00?\x000\x000\x000\x00\x18\x00\x18\x00|\x00n`\xc6`\xc3`\xc3\xc0\xe1\x80~\xc0<\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x000\x00 \x00`\x00`\x00@\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00`\x00`\x00`\x00 \x000\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00@\x00`\x00`\x00`\x000\x000\x000\x000\x000\x000\x000\x000\x00`\x00`\x00`\x00@\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x08\x00\x08\x00\x88\x80k\x00\x1c\x00\x1c\x00k\x00\x88\x80\x08\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\xff\xc0\xff\xc0\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00`\x00`\x00`\x00`\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\xc0\x01\x80\x01\x80\x03\x00\x03\x00\x06\x00\x06\x00\x0c\x00\x0c\x00\x18\x00\x18\x000\x000\x00`\x00`\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00<\x00\x7f\x00c\x00\xe3\x80\xc1\x80\xc1\x80\xcd\x80\xcd\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x80c\x00\x7f\x00<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x008\x00\xf8\x00\xd8\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xff\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00~\x00\xff\x00\x83\x80\x01\x80\x01\x80\x01\x80\x03\x80\x03\x00\x06\x00\x0c\x00\x18\x000\x00`\x00\xff\x80\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00~\x00\xff\x00\x83\x80\x01\x80\x01\x80\x03\x80\x1f\x00\x1e\x00\x03\x00\x01\x80\x01\x80\x01\x80\x83\x80\xff\x00~\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x07\x00\x07\x00\x0f\x00\x0b\x00\x1b\x00\x13\x003\x00c\x00c\x00\xc3\x00\xff\xc0\xff\xc0\x03\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x7f\x00\x7f\x00`\x00`\x00`\x00~\x00\x7f\x00C\x80\x01\x80\x01\x80\x01\x80\x01\x80\x83\x00\xff\x00|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00?\x00q\x00`\x00\xc0\x00\xc0\x00\xde\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80c\x80\x7f\x00>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x80\xff\x80\x03\x00\x03\x00\x03\x00\x06\x00\x06\x00\x06\x00\x0c\x00\x0c\x00\x0c\x00\x18\x00\x18\x00\x18\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00>\x00\x7f\x00\xe3\x80\xc1\x80\xc1\x80c\x00>\x00\x7f\x00c\x00\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x00>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00>\x00\x7f\x00\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x80=\x80\x01\x80\x01\x80\x03\x00G\x00~\x00<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00`\x00`\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00`\x00`\x00`\x00`\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x03\xc0\x0f\x00<\x00\xe0\x00\xe0\x00<\x00\x0f\x00\x03\xc0\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\xf0\x00<\x00\x0f\x00\x01\xc0\x01\xc0\x0f\x00<\x00\xf0\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00|\x00\xfe\x00\x87\x00\x03\x00\x03\x00\x07\x00\x0e\x00\x1c\x008\x000\x000\x000\x00\x00\x000\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x0f\x001\x80`\xc0`\xc0G\xc0\xc4\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xc4\xc0g\xc0`\x000\x008\x00\x0f\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00\x1e\x00\x1e\x00\x1e\x00?\x003\x003\x003\x00s\x80\x7f\x80\x7f\x80a\x80\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xfe\x00\xff\x00\xc3\x80\xc1\x80\xc1\x80\xc3\x80\xff\x00\xff\x00\xc1\x80\xc0\xc0\xc0\xc0\xc0\xc0\xc1\xc0\xff\x80\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x80?\xc0p@`\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00`\x00p@?\xc0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xfc\x00\xff\x00\xc3\x80\xc1\x80\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc1\x80\xc3\x80\xff\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\x80\xff\x80\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1f\x00?\x80p\x80`\x00\xc0\x00\xc0\x00\xc0\x00\xc3\xc0\xc3\xc0\xc0\xc0\xc0\xc0`\xc0p\xc0?\xc0\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xff\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00?\x00?\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x87\x00\xfe\x00|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc1\x80\xc3\x00\xc6\x00\xcc\x00\xd8\x00\xf8\x00\xfc\x00\xec\x00\xc6\x00\xc7\x00\xc3\x00\xc1\x80\xc1\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe1\xc0\xe1\xc0\xe1\xc0\xf3\xc0\xd2\xc0\xd2\xc0\xde\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe0\xc0\xe0\xc0\xf0\xc0\xf0\xc0\xd8\xc0\xd8\xc0\xc8\xc0\xcc\xc0\xc4\xc0\xc6\xc0\xc6\xc0\xc3\xc0\xc3\xc0\xc1\xc0\xc1\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00\x7f\x80a\x80\xe1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xe1\xc0a\x80\x7f\x80\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x80\xc1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc1\xc0\xff\x80\xff\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00\x7f\x80a\x80\xe1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xe1\xc0a\x80?\x00\x1e\x00\x03\x00\x01\x80\x01\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x80\xc1\xc0\xc0\xc0\xc0\xc0\xc1\xc0\xff\x80\xff\x00\xc3\x80\xc1\x80\xc1\xc0\xc0\xc0\xc0\xe0\xc0`\xc0p\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00?\x00\x7f\x80\xe0\x80\xc0\x00\xc0\x00\xe0\x00|\x00?\x00\x03\x80\x00\xc0\x00\xc0\x00\xc0\x81\xc0\xff\x80\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xf0\xff\xf0\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xe1\xc0\x7f\x80?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0a\x80a\x80a\x80a\x803\x003\x003\x00?\x00\x1e\x00\x1e\x00\x1e\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc00\xc00\xc00``f`f`o`o`i`i`9\xc09\xc09\xc00\xc00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe1\xc0a\x80s\x803\x00\x1e\x00\x1e\x00\x0c\x00\x0c\x00\x1e\x00\x1e\x007\x003\x00c\x80a\x80\xc1\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe0p``0\xc00\xc0\x19\x80\x1f\x80\x0f\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\x01\x80\x03\x80\x03\x00\x06\x00\x0e\x00\x0c\x00\x1c\x00\x18\x000\x00p\x00`\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xf0\x00\xf0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xf0\x00\xf0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00`\x00`\x000\x000\x00\x18\x00\x18\x00\x0c\x00\x0c\x00\x06\x00\x06\x00\x03\x00\x03\x00\x01\x80\x01\x80\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xf0\x00\xf0\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x00\xf0\x00\xf0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0e\x00\x1b\x001\x80`\xc0\xc0`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xf0\xff\xf0\x00\x00\x00\x00\x00\x00\x0c\x00\xc0\x00`\x000\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>\x00\x7f\x00C\x80\x01\x80?\x80\x7f\x80\xe1\x80\xc1\x80\xc3\x80\xff\x80=\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xde\x00\xff\x00\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x00\xff\x00\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x00\x7f\x00a\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00a\x00\x7f\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x01\x80\x01\x80\x01\x80\x01\x80=\x80\x7f\x80c\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80c\x80\x7f\x80=\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x00\x7f\x00c\x80\xc1\x80\xff\x80\xff\x80\xc0\x00\xc0\x00`\x80\x7f\x80\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x80\x1f\x80\x18\x00\x18\x00\xff\x80\xff\x80\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00=\x80\x7f\x80c\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80c\x80\x7f\x80=\x80\x01\x80C\x80\x7f\x00>\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xce\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00|\x00|\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00|\x00|\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\xf8\x00\xf0\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc3\x80\xc7\x00\xce\x00\xdc\x00\xf8\x00\xf8\x00\xec\x00\xce\x00\xc6\x00\xc3\x00\xc3\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xfc\x00\xfc\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0e\x00\x07\xc0\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xdb\x80\xff\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xce\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>\x00\x7f\x00c\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80c\x00\x7f\x00>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xde\x00\xff\x00\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x00\xff\x00\xde\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00=\x80\x7f\x80c\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80c\x80\x7f\x80=\x80\x01\x80\x01\x80\x01\x80\x01\x80\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xce\x00\xdf\x00\xf1\x00\xe0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00?\x00\x7f\x80\xc0\x80\xc0\x00\xfe\x00?\x00\x03\x80\x01\x80\x83\x80\xff\x00~\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x18\x00\x18\x00\x18\x00\xff\x80\xff\x80\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x1f\x80\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x809\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc1\x80\xe3\x80c\x00c\x00w\x006\x006\x006\x00\x1c\x00\x1c\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc00\xc00``f`f`f`?\xc09\xc09\xc09\xc00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe3\x80c\x006\x00>\x00\x1c\x00\x1c\x00\x1c\x00>\x006\x00c\x00\xe3\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc1\x80c\x00c\x00c\x006\x006\x00>\x00\x1c\x00\x1c\x00\x0c\x00\x18\x00\x18\x00\x18\x00p\x00p\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x80\xff\x80\x07\x00\x06\x00\x0e\x00\x1c\x008\x000\x00`\x00\xff\x80\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x00\x1f\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xf0\x00\xf0\x008\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x1f\x00\x0f\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x0c\x00\x00\x00\xf0\x00\xf8\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x0f\x00\x0f\x00\x1c\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xf8\x00\xf0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00x@\xff\xc0\x87\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' _index = b'\x00\x00,\x00,\x00X\x00X\x00\x84\x00\x84\x00\xb0\x00\xb0\x00\xdc\x00\xdc\x00\x08\x01\x08\x014\x014\x01`\x01`\x01\x8c\x01\x8c\x01\xb8\x01\xb8\x01\xe4\x01\xe4\x01\x10\x02\x10\x02<\x02<\x02h\x02h\x02\x94\x02\x94\x02\xc0\x02\xc0\x02\xec\x02\xec\x02\x18\x03\x18\x03D\x03D\x03p\x03p\x03\x9c\x03\x9c\x03\xc8\x03\xc8\x03\xf4\x03\xf4\x03 \x04 \x04L\x04L\x04x\x04x\x04\xa4\x04\xa4\x04\xd0\x04\xd0\x04\xfc\x04\xfc\x04(\x05(\x05T\x05T\x05\x80\x05\x80\x05\xac\x05\xac\x05\xd8\x05\xd8\x05\x04\x06\x04\x060\x060\x06\\\x06\\\x06\x88\x06\x88\x06\xb4\x06\xb4\x06\xe0\x06\xe0\x06\x0c\x07\x0c\x078\x078\x07d\x07d\x07\x90\x07\x90\x07\xbc\x07\xbc\x07\xe8\x07\xe8\x07\x14\x08\x14\x08@\x08@\x08l\x08l\x08\x98\x08\x98\x08\xc4\x08\xc4\x08\xf0\x08\xf0\x08\x1c\t\x1c\tH\tH\tt\tt\t\xa0\t\xa0\t\xcc\t\xcc\t\xf8\t\xf8\t$\n$\nP\nP\n|\n|\n\xa8\n\xa8\n\xd4\n\xd4\n\x00\x0b\x00\x0b,\x0b,\x0bX\x0bX\x0b\x84\x0b\x84\x0b\xb0\x0b\xb0\x0b\xdc\x0b\xdc\x0b\x08\x0c\x08\x0c4\x0c4\x0c`\x0c`\x0c\x8c\x0c\x8c\x0c\xb8\x0c\xb8\x0c\xe4\x0c\xe4\x0c\x10\r\x10\r<\r<\rh\rh\r\x94\r\x94\r\xc0\r\xc0\r\xec\r\xec\r\x18\x0e\x18\x0eD\x0eD\x0ep\x0ep\x0e\x9c\x0e\x9c\x0e\xc8\x0e\xc8\x0e\xf4\x0e\xf4\x0e \x0f \x0fL\x0fL\x0fx\x0fx\x0f\xa4\x0f\xa4\x0f\xd0\x0f\xd0\x0f\xfc\x0f\xfc\x0f(\x10(\x10T\x10T\x10\x80\x10' _mvfont = memoryview(_font) def get_ch(ch): ordch = ord(ch) ordch = ordch + 1 if ordch >= 32 and ordch <= 126 else 63 idx_offs = 4 * (ordch - 32) offset = int.from_bytes(_index[idx_offs:idx_offs + 2], 'little') next_offs = int.from_bytes(_index[idx_offs + 2:idx_offs + 4], 'little') width = int.from_bytes(_font[offset:offset + 2], 'little') return (_mvfont[offset + 2:next_offs], 21, width)
# CPU: 0.42 s ids = set() for _ in range(int(input())): ids.add(int(input())) m = 1 while True: reduced_ids = set() for id_ in ids: reduced_id = id_ % m if reduced_id not in reduced_ids: reduced_ids.add(reduced_id) else: break else: break m += 1 print(m)
ids = set() for _ in range(int(input())): ids.add(int(input())) m = 1 while True: reduced_ids = set() for id_ in ids: reduced_id = id_ % m if reduced_id not in reduced_ids: reduced_ids.add(reduced_id) else: break else: break m += 1 print(m)
""" |-------------------------------------------| | Problem 2: Write a program to convert | | temperature in Celsius to Fahrenheit | | & vice versa | |-------------------------------------------| | Approach: | | We use the formula | |-------------------------------------------| """ temp = float(input("Enter Value: \n")) convert = input("Convert to Celsius or Farenheit?[c/f]\n") while True: if convert=='c': res = (temp - 32)/1.8 print(f"Temperature in Celsius is {res}") break elif convert=='f': res = temp*1.8 + 32 print(f"Temerature in Farhenheit is {res}") break else: convert = input("Convert to Celsius or Farenheit?[c/s]\n")
""" |-------------------------------------------| | Problem 2: Write a program to convert | | temperature in Celsius to Fahrenheit | | & vice versa | |-------------------------------------------| | Approach: | | We use the formula | |-------------------------------------------| """ temp = float(input('Enter Value: \n')) convert = input('Convert to Celsius or Farenheit?[c/f]\n') while True: if convert == 'c': res = (temp - 32) / 1.8 print(f'Temperature in Celsius is {res}') break elif convert == 'f': res = temp * 1.8 + 32 print(f'Temerature in Farhenheit is {res}') break else: convert = input('Convert to Celsius or Farenheit?[c/s]\n')
_item_fullname_='mdtraj.Topology' def is_mdtraj_Topology(item): item_fullname = item.__class__.__module__+'.'+item.__class__.__name__ return _item_fullname_==item_fullname
_item_fullname_ = 'mdtraj.Topology' def is_mdtraj__topology(item): item_fullname = item.__class__.__module__ + '.' + item.__class__.__name__ return _item_fullname_ == item_fullname
# -*- coding: utf-8 -*- # author: @RShirohara __version__ = "0.1.1" __doc__ = f""" tegaki v{__version__} Released under MIT License. https://github.com/RShirohara/handwriting_detection """
__version__ = '0.1.1' __doc__ = f'\ntegaki v{__version__}\nReleased under MIT License.\nhttps://github.com/RShirohara/handwriting_detection\n'
# Find the Runner-Up Score or Finding second largest number n = int(input()) arr = list(map(int, input().split())) l = max(arr) for i in range(n): if l == max(arr): arr.remove(max(arr)) print(max(arr))
n = int(input()) arr = list(map(int, input().split())) l = max(arr) for i in range(n): if l == max(arr): arr.remove(max(arr)) print(max(arr))
class Solution: def findMedianSortedArrays(self, A: List[int], B: List[int]) -> float: def helper(A, B, k): if not A or not B: return (A or B)[k] else: ia, ib = len(A) // 2, len(B) // 2 ma, mb = A[ia], B[ib] if k > ia + ib: if ma > mb: return helper(A, B[ib + 1:], k - ib - 1) else: return helper(A[ia + 1:], B, k - ia - 1) else: # k <= ia + ib if ma > mb: return helper(A[:ia], B, k) else: return helper(A, B[:ib], k) n = len(A) + len(B) return helper(A, B, n // 2) if n % 2 == 1 else 0.5 * (helper(A, B, n // 2) + helper(A, B, n // 2 - 1))
class Solution: def find_median_sorted_arrays(self, A: List[int], B: List[int]) -> float: def helper(A, B, k): if not A or not B: return (A or B)[k] else: (ia, ib) = (len(A) // 2, len(B) // 2) (ma, mb) = (A[ia], B[ib]) if k > ia + ib: if ma > mb: return helper(A, B[ib + 1:], k - ib - 1) else: return helper(A[ia + 1:], B, k - ia - 1) elif ma > mb: return helper(A[:ia], B, k) else: return helper(A, B[:ib], k) n = len(A) + len(B) return helper(A, B, n // 2) if n % 2 == 1 else 0.5 * (helper(A, B, n // 2) + helper(A, B, n // 2 - 1))
""" Profile ../profile-datasets-py/div83/068.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/068.py" self["Q"] = numpy.array([ 2.83917200e+00, 3.51202800e+00, 4.81389700e+00, 6.13220200e+00, 6.51049800e+00, 6.51553800e+00, 6.51433800e+00, 6.36887900e+00, 6.11776300e+00, 6.07725300e+00, 6.09747300e+00, 5.89972500e+00, 5.63936800e+00, 5.44764000e+00, 5.34244100e+00, 5.25993200e+00, 5.16057300e+00, 4.93623600e+00, 4.63531900e+00, 4.35583100e+00, 4.24083200e+00, 4.18761200e+00, 4.04251400e+00, 3.88061500e+00, 3.74372600e+00, 3.64085700e+00, 3.53838700e+00, 3.45565800e+00, 3.40336800e+00, 3.37244900e+00, 3.34653900e+00, 3.32609900e+00, 3.31645900e+00, 3.30325900e+00, 3.27436900e+00, 3.21342000e+00, 3.10746000e+00, 2.97287100e+00, 2.86528200e+00, 2.82437200e+00, 2.80918200e+00, 2.79467200e+00, 2.80076200e+00, 2.83083200e+00, 2.87118200e+00, 2.89056200e+00, 2.86427200e+00, 2.82879200e+00, 2.86370200e+00, 3.06780100e+00, 3.95390400e+00, 7.87887800e+00, 1.55205600e+01, 1.90239400e+01, 1.88922400e+01, 2.18096200e+01, 2.77914300e+01, 3.74064000e+01, 5.26037300e+01, 7.55059000e+01, 1.04178100e+02, 1.39575500e+02, 1.82327800e+02, 2.37126800e+02, 3.05937400e+02, 3.97443000e+02, 5.10567200e+02, 6.38887600e+02, 7.48984600e+02, 8.48716100e+02, 9.50317000e+02, 1.06430600e+03, 1.18027500e+03, 1.35344600e+03, 1.54426200e+03, 1.74381400e+03, 1.94415300e+03, 2.12352100e+03, 2.25544100e+03, 2.33300400e+03, 2.39130800e+03, 2.43047800e+03, 2.45452100e+03, 2.47839200e+03, 2.54069800e+03, 2.70493300e+03, 3.07519400e+03, 3.49218200e+03, 3.76550700e+03, 3.88983000e+03, 4.00411300e+03, 4.37495600e+03, 4.24459700e+03, 4.11985700e+03, 4.00045200e+03, 3.88609900e+03, 3.77651400e+03, 3.67145100e+03, 3.57068500e+03, 3.47397900e+03, 3.38113900e+03]) self["P"] = numpy.array([ 5.00000000e-03, 1.61000000e-02, 3.84000000e-02, 7.69000000e-02, 1.37000000e-01, 2.24400000e-01, 3.45400000e-01, 5.06400000e-01, 7.14000000e-01, 9.75300000e-01, 1.29720000e+00, 1.68720000e+00, 2.15260000e+00, 2.70090000e+00, 3.33980000e+00, 4.07700000e+00, 4.92040000e+00, 5.87760000e+00, 6.95670000e+00, 8.16550000e+00, 9.51190000e+00, 1.10038000e+01, 1.26492000e+01, 1.44559000e+01, 1.64318000e+01, 1.85847000e+01, 2.09224000e+01, 2.34526000e+01, 2.61829000e+01, 2.91210000e+01, 3.22744000e+01, 3.56505000e+01, 3.92566000e+01, 4.31001000e+01, 4.71882000e+01, 5.15278000e+01, 5.61260000e+01, 6.09895000e+01, 6.61253000e+01, 7.15398000e+01, 7.72396000e+01, 8.32310000e+01, 8.95204000e+01, 9.61138000e+01, 1.03017000e+02, 1.10237000e+02, 1.17778000e+02, 1.25646000e+02, 1.33846000e+02, 1.42385000e+02, 1.51266000e+02, 1.60496000e+02, 1.70078000e+02, 1.80018000e+02, 1.90320000e+02, 2.00989000e+02, 2.12028000e+02, 2.23442000e+02, 2.35234000e+02, 2.47408000e+02, 2.59969000e+02, 2.72919000e+02, 2.86262000e+02, 3.00000000e+02, 3.14137000e+02, 3.28675000e+02, 3.43618000e+02, 3.58966000e+02, 3.74724000e+02, 3.90893000e+02, 4.07474000e+02, 4.24470000e+02, 4.41882000e+02, 4.59712000e+02, 4.77961000e+02, 4.96630000e+02, 5.15720000e+02, 5.35232000e+02, 5.55167000e+02, 5.75525000e+02, 5.96306000e+02, 6.17511000e+02, 6.39140000e+02, 6.61192000e+02, 6.83667000e+02, 7.06565000e+02, 7.29886000e+02, 7.53628000e+02, 7.77790000e+02, 8.02371000e+02, 8.27371000e+02, 8.52788000e+02, 8.78620000e+02, 9.04866000e+02, 9.31524000e+02, 9.58591000e+02, 9.86067000e+02, 1.01395000e+03, 1.04223000e+03, 1.07092000e+03, 1.10000000e+03]) self["CO2"] = numpy.array([ 372.2349, 372.2347, 372.2342, 372.2327, 372.2326, 372.2316, 372.2276, 372.2156, 372.2037, 372.1897, 372.1777, 372.1798, 372.2129, 372.261 , 372.325 , 372.441 , 372.5981, 372.7572, 372.8973, 373.0134, 373.1094, 373.2344, 373.3675, 373.4756, 373.5466, 373.5936, 373.5957, 373.5937, 373.5947, 373.5987, 373.6277, 373.6598, 373.7048, 373.7528, 373.9088, 374.1228, 374.4018, 374.8119, 375.2459, 375.5909, 375.9419, 376.4129, 377.0279, 377.6649, 378.0599, 378.4729, 378.7349, 378.8939, 379.0839, 379.3698, 379.6675, 379.874 , 380.0751, 380.2328, 380.3678, 380.4527, 380.4704, 380.4728, 380.444 , 380.4153, 380.3934, 380.3729, 380.3586, 380.3498, 380.3516, 380.3548, 380.3607, 380.3638, 380.3759, 380.3709, 380.3592, 380.3238, 380.2776, 380.2007, 380.0891, 379.9503, 379.7762, 379.5922, 379.4393, 379.324 , 379.236 , 379.1762, 379.1381, 379.1141, 379.0764, 379.006 , 378.963 , 378.8872, 378.849 , 378.8496, 378.836 , 378.7049, 378.7545, 378.8019, 378.8474, 378.8908, 378.9325, 378.9725, 379.0108, 379.0476, 379.0829]) self["CO"] = numpy.array([ 0.00168947, 0.00183774, 0.00217615, 0.00291352, 0.0045946 , 0.00891127, 0.01614969, 0.02064477, 0.03142571, 0.03814567, 0.03709217, 0.03104132, 0.02249217, 0.01513562, 0.01176164, 0.01038065, 0.00926295, 0.0084933 , 0.00804826, 0.00783803, 0.00768839, 0.00766614, 0.00770648, 0.00779106, 0.00786262, 0.00792719, 0.00787206, 0.00779876, 0.00773059, 0.00766293, 0.00765154, 0.00763937, 0.00765183, 0.00766616, 0.0079336 , 0.00835071, 0.00895563, 0.00997767, 0.01118377, 0.01202327, 0.01290886, 0.01409326, 0.01569006, 0.01755085, 0.01942894, 0.02160834, 0.02301013, 0.02379293, 0.02480563, 0.02655372, 0.02850289, 0.03047176, 0.03263249, 0.03410195, 0.03512794, 0.03592982, 0.03640229, 0.03670973, 0.03664597, 0.03652674, 0.03626982, 0.03603897, 0.03587906, 0.03577411, 0.03577005, 0.03582536, 0.03594644, 0.03610862, 0.03629659, 0.03648331, 0.03665953, 0.03676413, 0.03679612, 0.03675369, 0.03663164, 0.03647428, 0.03627314, 0.03606006, 0.03588458, 0.03577374, 0.03577305, 0.03587739, 0.03603134, 0.03616784, 0.03629236, 0.03654658, 0.03725588, 0.0391212 , 0.0452673 , 0.04731175, 0.04730632, 0.0472887 , 0.0472949 , 0.04730082, 0.04730649, 0.04731192, 0.04731713, 0.04732212, 0.0473269 , 0.0473315 , 0.04733591]) self["T"] = numpy.array([ 181.119, 189.807, 203.299, 216.001, 233.383, 250.703, 260.959, 264.472, 268.189, 270.974, 265.359, 251.51 , 242.145, 238.73 , 241.039, 247.478, 255.078, 255.608, 251.144, 244.124, 237.981, 232.086, 226.2 , 220.624, 216.32 , 214.849, 215.381, 214.692, 214.002, 214.038, 214.987, 216.292, 217.922, 219.722, 220.563, 219.438, 216.605, 213.545, 211.58 , 210.571, 209.831, 208.961, 208.249, 207.912, 208.062, 208.143, 208.021, 208.047, 208.47 , 208.671, 208.303, 207.158, 205.856, 204.983, 205.316, 206.85 , 208.899, 211.272, 214.161, 217.279, 220.17 , 222.893, 225.468, 228.058, 230.68 , 233.318, 235.958, 238.562, 241.06 , 243.737, 246.304, 248.588, 251.241, 253.417, 255.354, 257.274, 259.298, 261.172, 262.84 , 264.385, 265.869, 267.263, 268.669, 270.11 , 271.684, 273.44 , 275.4 , 277.598, 279.978, 282.474, 285.042, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606]) self["N2O"] = numpy.array([ 0.01647995, 0.01043996, 0.00593997, 0.00337998, 0.00349998, 0.00339998, 0.00367998, 0.00353998, 0.00252998, 0.00365998, 0.00596996, 0.01195993, 0.02058988, 0.02991984, 0.03605981, 0.03480982, 0.03674981, 0.04510978, 0.05270976, 0.05773975, 0.06252973, 0.07593968, 0.09316962, 0.1096896 , 0.1367095 , 0.1641194 , 0.1905093 , 0.2142093 , 0.2365092 , 0.2580491 , 0.2750391 , 0.2765191 , 0.2779391 , 0.2793291 , 0.2796391 , 0.2807391 , 0.2817791 , 0.2844892 , 0.2876192 , 0.2905892 , 0.2940992 , 0.2975692 , 0.3009592 , 0.3042491 , 0.3073791 , 0.3103291 , 0.3130591 , 0.3155091 , 0.3176391 , 0.318509 , 0.3193187 , 0.3200275 , 0.320645 , 0.3211539 , 0.3215339 , 0.321783 , 0.3218611 , 0.321858 , 0.3218531 , 0.3218457 , 0.3218365 , 0.3218251 , 0.3218113 , 0.3217937 , 0.3217715 , 0.3217421 , 0.3217057 , 0.3216644 , 0.3216289 , 0.3215968 , 0.3215641 , 0.3215274 , 0.3214901 , 0.3214344 , 0.3213729 , 0.3213087 , 0.3212442 , 0.3211865 , 0.321144 , 0.3211191 , 0.3211003 , 0.3210877 , 0.32108 , 0.3210723 , 0.3210522 , 0.3209994 , 0.3208802 , 0.320746 , 0.320658 , 0.320618 , 0.3205812 , 0.3204618 , 0.3205038 , 0.3205439 , 0.3205824 , 0.3206192 , 0.3206545 , 0.3206883 , 0.3207207 , 0.3207518 , 0.3207817 ]) self["O3"] = numpy.array([ 0.1658245 , 0.1908913 , 0.2793447 , 0.5312297 , 0.8448715 , 1.114353 , 1.415621 , 1.790379 , 2.137557 , 2.487095 , 3.059991 , 4.094386 , 5.222051 , 6.119507 , 6.687124 , 7.004353 , 7.230303 , 7.633632 , 8.057623 , 8.329124 , 8.248045 , 8.004206 , 7.666299 , 7.137462 , 6.455076 , 5.803509 , 5.355151 , 4.876793 , 4.415675 , 4.031086 , 3.767057 , 3.601708 , 3.513288 , 3.450529 , 3.363689 , 3.17352 , 2.804741 , 2.301633 , 1.865745 , 1.608645 , 1.335586 , 1.051697 , 0.9360074 , 0.8462186 , 0.7259209 , 0.6034553 , 0.5163295 , 0.4515647 , 0.3699269 , 0.2872891 , 0.2317821 , 0.1866985 , 0.1428618 , 0.1005631 , 0.06805081, 0.05090839, 0.04516264, 0.04374906, 0.04308483, 0.04307455, 0.04363365, 0.04486514, 0.04641134, 0.04788024, 0.0490293 , 0.0498061 , 0.05028961, 0.05051651, 0.05058169, 0.05056165, 0.05046879, 0.05036344, 0.05057574, 0.05140443, 0.05249511, 0.05337356, 0.053493 , 0.05251934, 0.05069031, 0.04850058, 0.04619327, 0.0440795 , 0.04239698, 0.04094986, 0.03989528, 0.03949288, 0.03927674, 0.03893266, 0.03802288, 0.03558066, 0.03236698, 0.02650135, 0.02650482, 0.02650814, 0.02651132, 0.02651436, 0.02651728, 0.02652007, 0.02652276, 0.02652533, 0.0265278 ]) self["CH4"] = numpy.array([ 0.3914449, 0.2995939, 0.2313179, 0.1991328, 0.2333285, 0.2568503, 0.2881031, 0.31951 , 0.3578398, 0.3864427, 0.4515492, 0.5738466, 0.7355529, 0.8773242, 0.9849097, 1.018045 , 1.069254 , 1.159644 , 1.237034 , 1.254665 , 1.271465 , 1.310435 , 1.359175 , 1.405865 , 1.459685 , 1.512564 , 1.563454 , 1.597824 , 1.626094 , 1.636534 , 1.647734 , 1.659734 , 1.672554 , 1.678784 , 1.684784 , 1.690445 , 1.695655 , 1.700285 , 1.704325 , 1.708585 , 1.713075 , 1.717785 , 1.722735 , 1.736205 , 1.747485 , 1.759275 , 1.766705 , 1.771215 , 1.774725 , 1.774115 , 1.773483 , 1.773016 , 1.772542 , 1.773096 , 1.774266 , 1.775771 , 1.777681 , 1.779273 , 1.780236 , 1.780726 , 1.780135 , 1.779352 , 1.778196 , 1.777138 , 1.776236 , 1.775394 , 1.774593 , 1.773776 , 1.773001 , 1.772225 , 1.771445 , 1.770673 , 1.769829 , 1.768853 , 1.767786 , 1.766674 , 1.765541 , 1.764455 , 1.763454 , 1.762528 , 1.761637 , 1.76091 , 1.760418 , 1.760007 , 1.759478 , 1.75885 , 1.763101 , 1.76648 , 1.769283 , 1.771472 , 1.772743 , 1.772591 , 1.772823 , 1.773045 , 1.773258 , 1.773461 , 1.773656 , 1.773843 , 1.774023 , 1.774195 , 1.77436 ]) self["CTP"] = 500.0 self["CFRACTION"] = 0.0 self["IDG"] = 0 self["ISH"] = 0 self["ELEVATION"] = 0.0 self["S2M"]["T"] = 286.606 self["S2M"]["Q"] = 3381.13911363 self["S2M"]["O"] = 0.0265278015153 self["S2M"]["P"] = 839.59509 self["S2M"]["U"] = 0.0 self["S2M"]["V"] = 0.0 self["S2M"]["WFETC"] = 100000.0 self["SKIN"]["SURFTYPE"] = 0 self["SKIN"]["WATERTYPE"] = 1 self["SKIN"]["T"] = 286.606 self["SKIN"]["SALINITY"] = 35.0 self["SKIN"]["FOAM_FRACTION"] = 0.0 self["SKIN"]["FASTEM"] = numpy.array([ 3. , 5. , 15. , 0.1, 0.3]) self["ZENANGLE"] = 0.0 self["AZANGLE"] = 0.0 self["SUNZENANGLE"] = 0.0 self["SUNAZANGLE"] = 0.0 self["LATITUDE"] = -35.415 self["GAS_UNITS"] = 2 self["BE"] = 0.0 self["COSBK"] = 0.0 self["DATE"] = numpy.array([2006, 8, 10]) self["TIME"] = numpy.array([0, 0, 0])
""" Profile ../profile-datasets-py/div83/068.py file automaticaly created by prof_gen.py script """ self['ID'] = '../profile-datasets-py/div83/068.py' self['Q'] = numpy.array([2.839172, 3.512028, 4.813897, 6.132202, 6.510498, 6.515538, 6.514338, 6.368879, 6.117763, 6.077253, 6.097473, 5.899725, 5.639368, 5.44764, 5.342441, 5.259932, 5.160573, 4.936236, 4.635319, 4.355831, 4.240832, 4.187612, 4.042514, 3.880615, 3.743726, 3.640857, 3.538387, 3.455658, 3.403368, 3.372449, 3.346539, 3.326099, 3.316459, 3.303259, 3.274369, 3.21342, 3.10746, 2.972871, 2.865282, 2.824372, 2.809182, 2.794672, 2.800762, 2.830832, 2.871182, 2.890562, 2.864272, 2.828792, 2.863702, 3.067801, 3.953904, 7.878878, 15.52056, 19.02394, 18.89224, 21.80962, 27.79143, 37.4064, 52.60373, 75.5059, 104.1781, 139.5755, 182.3278, 237.1268, 305.9374, 397.443, 510.5672, 638.8876, 748.9846, 848.7161, 950.317, 1064.306, 1180.275, 1353.446, 1544.262, 1743.814, 1944.153, 2123.521, 2255.441, 2333.004, 2391.308, 2430.478, 2454.521, 2478.392, 2540.698, 2704.933, 3075.194, 3492.182, 3765.507, 3889.83, 4004.113, 4374.956, 4244.597, 4119.857, 4000.452, 3886.099, 3776.514, 3671.451, 3570.685, 3473.979, 3381.139]) self['P'] = numpy.array([0.005, 0.0161, 0.0384, 0.0769, 0.137, 0.2244, 0.3454, 0.5064, 0.714, 0.9753, 1.2972, 1.6872, 2.1526, 2.7009, 3.3398, 4.077, 4.9204, 5.8776, 6.9567, 8.1655, 9.5119, 11.0038, 12.6492, 14.4559, 16.4318, 18.5847, 20.9224, 23.4526, 26.1829, 29.121, 32.2744, 35.6505, 39.2566, 43.1001, 47.1882, 51.5278, 56.126, 60.9895, 66.1253, 71.5398, 77.2396, 83.231, 89.5204, 96.1138, 103.017, 110.237, 117.778, 125.646, 133.846, 142.385, 151.266, 160.496, 170.078, 180.018, 190.32, 200.989, 212.028, 223.442, 235.234, 247.408, 259.969, 272.919, 286.262, 300.0, 314.137, 328.675, 343.618, 358.966, 374.724, 390.893, 407.474, 424.47, 441.882, 459.712, 477.961, 496.63, 515.72, 535.232, 555.167, 575.525, 596.306, 617.511, 639.14, 661.192, 683.667, 706.565, 729.886, 753.628, 777.79, 802.371, 827.371, 852.788, 878.62, 904.866, 931.524, 958.591, 986.067, 1013.95, 1042.23, 1070.92, 1100.0]) self['CO2'] = numpy.array([372.2349, 372.2347, 372.2342, 372.2327, 372.2326, 372.2316, 372.2276, 372.2156, 372.2037, 372.1897, 372.1777, 372.1798, 372.2129, 372.261, 372.325, 372.441, 372.5981, 372.7572, 372.8973, 373.0134, 373.1094, 373.2344, 373.3675, 373.4756, 373.5466, 373.5936, 373.5957, 373.5937, 373.5947, 373.5987, 373.6277, 373.6598, 373.7048, 373.7528, 373.9088, 374.1228, 374.4018, 374.8119, 375.2459, 375.5909, 375.9419, 376.4129, 377.0279, 377.6649, 378.0599, 378.4729, 378.7349, 378.8939, 379.0839, 379.3698, 379.6675, 379.874, 380.0751, 380.2328, 380.3678, 380.4527, 380.4704, 380.4728, 380.444, 380.4153, 380.3934, 380.3729, 380.3586, 380.3498, 380.3516, 380.3548, 380.3607, 380.3638, 380.3759, 380.3709, 380.3592, 380.3238, 380.2776, 380.2007, 380.0891, 379.9503, 379.7762, 379.5922, 379.4393, 379.324, 379.236, 379.1762, 379.1381, 379.1141, 379.0764, 379.006, 378.963, 378.8872, 378.849, 378.8496, 378.836, 378.7049, 378.7545, 378.8019, 378.8474, 378.8908, 378.9325, 378.9725, 379.0108, 379.0476, 379.0829]) self['CO'] = numpy.array([0.00168947, 0.00183774, 0.00217615, 0.00291352, 0.0045946, 0.00891127, 0.01614969, 0.02064477, 0.03142571, 0.03814567, 0.03709217, 0.03104132, 0.02249217, 0.01513562, 0.01176164, 0.01038065, 0.00926295, 0.0084933, 0.00804826, 0.00783803, 0.00768839, 0.00766614, 0.00770648, 0.00779106, 0.00786262, 0.00792719, 0.00787206, 0.00779876, 0.00773059, 0.00766293, 0.00765154, 0.00763937, 0.00765183, 0.00766616, 0.0079336, 0.00835071, 0.00895563, 0.00997767, 0.01118377, 0.01202327, 0.01290886, 0.01409326, 0.01569006, 0.01755085, 0.01942894, 0.02160834, 0.02301013, 0.02379293, 0.02480563, 0.02655372, 0.02850289, 0.03047176, 0.03263249, 0.03410195, 0.03512794, 0.03592982, 0.03640229, 0.03670973, 0.03664597, 0.03652674, 0.03626982, 0.03603897, 0.03587906, 0.03577411, 0.03577005, 0.03582536, 0.03594644, 0.03610862, 0.03629659, 0.03648331, 0.03665953, 0.03676413, 0.03679612, 0.03675369, 0.03663164, 0.03647428, 0.03627314, 0.03606006, 0.03588458, 0.03577374, 0.03577305, 0.03587739, 0.03603134, 0.03616784, 0.03629236, 0.03654658, 0.03725588, 0.0391212, 0.0452673, 0.04731175, 0.04730632, 0.0472887, 0.0472949, 0.04730082, 0.04730649, 0.04731192, 0.04731713, 0.04732212, 0.0473269, 0.0473315, 0.04733591]) self['T'] = numpy.array([181.119, 189.807, 203.299, 216.001, 233.383, 250.703, 260.959, 264.472, 268.189, 270.974, 265.359, 251.51, 242.145, 238.73, 241.039, 247.478, 255.078, 255.608, 251.144, 244.124, 237.981, 232.086, 226.2, 220.624, 216.32, 214.849, 215.381, 214.692, 214.002, 214.038, 214.987, 216.292, 217.922, 219.722, 220.563, 219.438, 216.605, 213.545, 211.58, 210.571, 209.831, 208.961, 208.249, 207.912, 208.062, 208.143, 208.021, 208.047, 208.47, 208.671, 208.303, 207.158, 205.856, 204.983, 205.316, 206.85, 208.899, 211.272, 214.161, 217.279, 220.17, 222.893, 225.468, 228.058, 230.68, 233.318, 235.958, 238.562, 241.06, 243.737, 246.304, 248.588, 251.241, 253.417, 255.354, 257.274, 259.298, 261.172, 262.84, 264.385, 265.869, 267.263, 268.669, 270.11, 271.684, 273.44, 275.4, 277.598, 279.978, 282.474, 285.042, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606, 286.606]) self['N2O'] = numpy.array([0.01647995, 0.01043996, 0.00593997, 0.00337998, 0.00349998, 0.00339998, 0.00367998, 0.00353998, 0.00252998, 0.00365998, 0.00596996, 0.01195993, 0.02058988, 0.02991984, 0.03605981, 0.03480982, 0.03674981, 0.04510978, 0.05270976, 0.05773975, 0.06252973, 0.07593968, 0.09316962, 0.1096896, 0.1367095, 0.1641194, 0.1905093, 0.2142093, 0.2365092, 0.2580491, 0.2750391, 0.2765191, 0.2779391, 0.2793291, 0.2796391, 0.2807391, 0.2817791, 0.2844892, 0.2876192, 0.2905892, 0.2940992, 0.2975692, 0.3009592, 0.3042491, 0.3073791, 0.3103291, 0.3130591, 0.3155091, 0.3176391, 0.318509, 0.3193187, 0.3200275, 0.320645, 0.3211539, 0.3215339, 0.321783, 0.3218611, 0.321858, 0.3218531, 0.3218457, 0.3218365, 0.3218251, 0.3218113, 0.3217937, 0.3217715, 0.3217421, 0.3217057, 0.3216644, 0.3216289, 0.3215968, 0.3215641, 0.3215274, 0.3214901, 0.3214344, 0.3213729, 0.3213087, 0.3212442, 0.3211865, 0.321144, 0.3211191, 0.3211003, 0.3210877, 0.32108, 0.3210723, 0.3210522, 0.3209994, 0.3208802, 0.320746, 0.320658, 0.320618, 0.3205812, 0.3204618, 0.3205038, 0.3205439, 0.3205824, 0.3206192, 0.3206545, 0.3206883, 0.3207207, 0.3207518, 0.3207817]) self['O3'] = numpy.array([0.1658245, 0.1908913, 0.2793447, 0.5312297, 0.8448715, 1.114353, 1.415621, 1.790379, 2.137557, 2.487095, 3.059991, 4.094386, 5.222051, 6.119507, 6.687124, 7.004353, 7.230303, 7.633632, 8.057623, 8.329124, 8.248045, 8.004206, 7.666299, 7.137462, 6.455076, 5.803509, 5.355151, 4.876793, 4.415675, 4.031086, 3.767057, 3.601708, 3.513288, 3.450529, 3.363689, 3.17352, 2.804741, 2.301633, 1.865745, 1.608645, 1.335586, 1.051697, 0.9360074, 0.8462186, 0.7259209, 0.6034553, 0.5163295, 0.4515647, 0.3699269, 0.2872891, 0.2317821, 0.1866985, 0.1428618, 0.1005631, 0.06805081, 0.05090839, 0.04516264, 0.04374906, 0.04308483, 0.04307455, 0.04363365, 0.04486514, 0.04641134, 0.04788024, 0.0490293, 0.0498061, 0.05028961, 0.05051651, 0.05058169, 0.05056165, 0.05046879, 0.05036344, 0.05057574, 0.05140443, 0.05249511, 0.05337356, 0.053493, 0.05251934, 0.05069031, 0.04850058, 0.04619327, 0.0440795, 0.04239698, 0.04094986, 0.03989528, 0.03949288, 0.03927674, 0.03893266, 0.03802288, 0.03558066, 0.03236698, 0.02650135, 0.02650482, 0.02650814, 0.02651132, 0.02651436, 0.02651728, 0.02652007, 0.02652276, 0.02652533, 0.0265278]) self['CH4'] = numpy.array([0.3914449, 0.2995939, 0.2313179, 0.1991328, 0.2333285, 0.2568503, 0.2881031, 0.31951, 0.3578398, 0.3864427, 0.4515492, 0.5738466, 0.7355529, 0.8773242, 0.9849097, 1.018045, 1.069254, 1.159644, 1.237034, 1.254665, 1.271465, 1.310435, 1.359175, 1.405865, 1.459685, 1.512564, 1.563454, 1.597824, 1.626094, 1.636534, 1.647734, 1.659734, 1.672554, 1.678784, 1.684784, 1.690445, 1.695655, 1.700285, 1.704325, 1.708585, 1.713075, 1.717785, 1.722735, 1.736205, 1.747485, 1.759275, 1.766705, 1.771215, 1.774725, 1.774115, 1.773483, 1.773016, 1.772542, 1.773096, 1.774266, 1.775771, 1.777681, 1.779273, 1.780236, 1.780726, 1.780135, 1.779352, 1.778196, 1.777138, 1.776236, 1.775394, 1.774593, 1.773776, 1.773001, 1.772225, 1.771445, 1.770673, 1.769829, 1.768853, 1.767786, 1.766674, 1.765541, 1.764455, 1.763454, 1.762528, 1.761637, 1.76091, 1.760418, 1.760007, 1.759478, 1.75885, 1.763101, 1.76648, 1.769283, 1.771472, 1.772743, 1.772591, 1.772823, 1.773045, 1.773258, 1.773461, 1.773656, 1.773843, 1.774023, 1.774195, 1.77436]) self['CTP'] = 500.0 self['CFRACTION'] = 0.0 self['IDG'] = 0 self['ISH'] = 0 self['ELEVATION'] = 0.0 self['S2M']['T'] = 286.606 self['S2M']['Q'] = 3381.13911363 self['S2M']['O'] = 0.0265278015153 self['S2M']['P'] = 839.59509 self['S2M']['U'] = 0.0 self['S2M']['V'] = 0.0 self['S2M']['WFETC'] = 100000.0 self['SKIN']['SURFTYPE'] = 0 self['SKIN']['WATERTYPE'] = 1 self['SKIN']['T'] = 286.606 self['SKIN']['SALINITY'] = 35.0 self['SKIN']['FOAM_FRACTION'] = 0.0 self['SKIN']['FASTEM'] = numpy.array([3.0, 5.0, 15.0, 0.1, 0.3]) self['ZENANGLE'] = 0.0 self['AZANGLE'] = 0.0 self['SUNZENANGLE'] = 0.0 self['SUNAZANGLE'] = 0.0 self['LATITUDE'] = -35.415 self['GAS_UNITS'] = 2 self['BE'] = 0.0 self['COSBK'] = 0.0 self['DATE'] = numpy.array([2006, 8, 10]) self['TIME'] = numpy.array([0, 0, 0])
"""Apparently you can't monkey-patch Curses windows, so we've got to have this stupid module instead.""" def movedown(window, rows=1, x=None): current_y, current_x = window.getyx() window.move(current_y+rows, x if x is not None else current_x) def movex(window, new_x): current_y = window.getyx()[0] window.move(current_y, new_x)
"""Apparently you can't monkey-patch Curses windows, so we've got to have this stupid module instead.""" def movedown(window, rows=1, x=None): (current_y, current_x) = window.getyx() window.move(current_y + rows, x if x is not None else current_x) def movex(window, new_x): current_y = window.getyx()[0] window.move(current_y, new_x)
def translate(message): """ A dumb translator which does not actually translate anything. :param message: The message. :return: A translated message (dummy: actually, the same message). """ return message
def translate(message): """ A dumb translator which does not actually translate anything. :param message: The message. :return: A translated message (dummy: actually, the same message). """ return message
while True: try: l = int(input()) except EOFError: break lesmas = map(int, input().split()) maior = max(lesmas) if maior < 10: print(1) elif maior >= 10 and maior < 20: print(2) else: print(3)
while True: try: l = int(input()) except EOFError: break lesmas = map(int, input().split()) maior = max(lesmas) if maior < 10: print(1) elif maior >= 10 and maior < 20: print(2) else: print(3)
# Module to flatten a list def flatten(array, flattened=[]): for value in array: if(isinstance(value, list)): flatten(value, flattened) else: flattened.append(value) return flattened
def flatten(array, flattened=[]): for value in array: if isinstance(value, list): flatten(value, flattened) else: flattened.append(value) return flattened
class ComicException(Exception): pass class PathResolutionException(ComicException): """ A path given to a COMIC template tag contained variables that could not be resolved """
class Comicexception(Exception): pass class Pathresolutionexception(ComicException): """ A path given to a COMIC template tag contained variables that could not be resolved """
# -*- coding: utf-8 -*- """ Apache2 License Notice Copyright 2018 Alex Barry Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ class Object3dInterface(object): def __init__(self, name, props, is_selected, location, erotation, scale, transform, parent, type): self._name = name self._properties = props self._is_selected = is_selected self._location = location self._erotation = erotation self._scale = scale self._transform = transform self._parent = parent self._type = type def get_type(self): return self._type def set_type(self, new_type): self._type = new_type def get_parent(self): return self._parent def set_parent(self, new_parent): self._parent = new_parent def get_name(self): return self._name def set_name(self, new_name): self._name = new_name def get_property(self, prop_name): return self._properties[prop_name] def set_property(self, prop_name, prop_val): self._properties[prop_name] = prop_val def set_selection(self, selection): self._is_selected = selection def selected(self): return self._is_selected def get_location_x(self): return self._location[0] def set_location_x(self, new_loc): self._location[0] = new_loc def get_location_y(self): return self._location[1] def set_location_y(self, new_loc): self._location[1] = new_loc def get_location_z(self): return self._location[2] def set_location_z(self, new_loc): self._location[2] = new_loc def get_erotation_x(self): return self._erotation[0] def set_erotation_x(self, new_rot): self._erotation[0] = new_rot def get_erotation_y(self): return self._erotation[1] def set_erotation_y(self, new_rot): self._erotation[1] = new_rot def get_erotation_z(self): return self._erotation[2] def set_erotation_z(self, new_rot): self._erotation[2] = new_rot def get_scale_x(self): return self._scale[0] def set_scale_x(self, new_scl): self._scale[0] = new_scl def get_scale_y(self): return self._scale[1] def set_scale_y(self, new_scl): self._scale[1] = new_scl def get_scale_z(self): return self._scale[2] def set_scale_z(self, new_scl): self._scale[2] = new_scl def set_transform(self, transform): self._transform = transform def get_transform(self): return self._transform class ObjectApiWrapper(object): get_active_object = None get_object_by_name = None delete_selected_objects = None iterate_over_all_objects = None add_live_object = None remove_live_object = None iterate_over_live_objects = None iterate_over_selected_objects = None
""" Apache2 License Notice Copyright 2018 Alex Barry Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ class Object3Dinterface(object): def __init__(self, name, props, is_selected, location, erotation, scale, transform, parent, type): self._name = name self._properties = props self._is_selected = is_selected self._location = location self._erotation = erotation self._scale = scale self._transform = transform self._parent = parent self._type = type def get_type(self): return self._type def set_type(self, new_type): self._type = new_type def get_parent(self): return self._parent def set_parent(self, new_parent): self._parent = new_parent def get_name(self): return self._name def set_name(self, new_name): self._name = new_name def get_property(self, prop_name): return self._properties[prop_name] def set_property(self, prop_name, prop_val): self._properties[prop_name] = prop_val def set_selection(self, selection): self._is_selected = selection def selected(self): return self._is_selected def get_location_x(self): return self._location[0] def set_location_x(self, new_loc): self._location[0] = new_loc def get_location_y(self): return self._location[1] def set_location_y(self, new_loc): self._location[1] = new_loc def get_location_z(self): return self._location[2] def set_location_z(self, new_loc): self._location[2] = new_loc def get_erotation_x(self): return self._erotation[0] def set_erotation_x(self, new_rot): self._erotation[0] = new_rot def get_erotation_y(self): return self._erotation[1] def set_erotation_y(self, new_rot): self._erotation[1] = new_rot def get_erotation_z(self): return self._erotation[2] def set_erotation_z(self, new_rot): self._erotation[2] = new_rot def get_scale_x(self): return self._scale[0] def set_scale_x(self, new_scl): self._scale[0] = new_scl def get_scale_y(self): return self._scale[1] def set_scale_y(self, new_scl): self._scale[1] = new_scl def get_scale_z(self): return self._scale[2] def set_scale_z(self, new_scl): self._scale[2] = new_scl def set_transform(self, transform): self._transform = transform def get_transform(self): return self._transform class Objectapiwrapper(object): get_active_object = None get_object_by_name = None delete_selected_objects = None iterate_over_all_objects = None add_live_object = None remove_live_object = None iterate_over_live_objects = None iterate_over_selected_objects = None
class BaseAgent(object): def __init__(self, config): self.device = config.device self.num_actions = config.action_dim self.observation_dim = config.observation_dim self.discount_factor = config.discount_factor self.grad_clip_val = config.grad_clip_val self.batch_size = config.batch_size self.iteration_counter = 0 def act(self, observation, under_evaluation=False): raise NotImplementedError def experience(self, observations, action, rewards, terminals, infos, next_observations): raise NotImplementedError def experience_in_evaluation(self, terminals, infos): raise NotImplementedError def save_agent(self, epoch, path): raise NotImplementedError def load_agent(self, path): raise NotImplementedError
class Baseagent(object): def __init__(self, config): self.device = config.device self.num_actions = config.action_dim self.observation_dim = config.observation_dim self.discount_factor = config.discount_factor self.grad_clip_val = config.grad_clip_val self.batch_size = config.batch_size self.iteration_counter = 0 def act(self, observation, under_evaluation=False): raise NotImplementedError def experience(self, observations, action, rewards, terminals, infos, next_observations): raise NotImplementedError def experience_in_evaluation(self, terminals, infos): raise NotImplementedError def save_agent(self, epoch, path): raise NotImplementedError def load_agent(self, path): raise NotImplementedError
inp = input("please enter the text") print("The original string : " + inp) res = [int(i) for i in inp.split() if i.isdigit()] # this basically makes a list of all the numbers for i in res: if len(str(i))==10: print("the phone number in the text is:" + str(i))
inp = input('please enter the text') print('The original string : ' + inp) res = [int(i) for i in inp.split() if i.isdigit()] for i in res: if len(str(i)) == 10: print('the phone number in the text is:' + str(i))
### Static Array Sequence Implementation # Static array has fixed size and can't grow or shrink. # Static array has a O(1) constant time for get_at and set_at operations. # Static array has a O(n) time for insert and delete operations at the back of the array. # Reference implementation: MIT Introduction to Algorithms # https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-spring-2020/lecture-notes/MIT6_006S20_r02.pdf class Array_Seq: def __init__(self): #O(1) self.A = [] self.size = 0 def __len__self(self): #O(1) return self.size def __iter__(self): #O(n) yield from self.A def build(self, X): #O(n), building a static array from iterable self.A = [a for a in X] self.size = len(X) def get_at(self, i): #O(1) return self.A[i] def set_at(self, i, x): #O(1) self.A[i] = x def _copy_forward(self, i, n, A, j): #O(n) for k in range(n): A[j + k] = self.A[i + k] def _copy_backward(self, i, n, A, j): #O(n) for k in range(n - 1, -1, -1): A[j + k] = self.A[i + k] def insert_at(self, i, x): #O(n) n = len(self) A = [None] * (n + 1) self._copy_forward(0, i, A, 0) A[i] = x self._copy_forward(i, n - i, A, i + 1) self.build(A) def delete_at(self, i): #O(n) n = len(self) A = [None] * (n - 1) self._copy_forward(0, i, A, 0) x = self.A[i] self._copy_forward(i + 1, n - i - 1, A, i) self.build(A) return x def insert_first(self, x): #O(n) self.insert_at(0, x) def delete_first(self): #O(n) return self.delete_at(0) def insert_last(self, x): #O(n) self.insert_at(len(self), x) def delete_last(self, x): #O(n) return self.delete_at(len(self) - 1) # Reference implementation: MIT Introduction to Algorithms #https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-spring-2020/lecture-notes/MIT6_006S20_r02.pdf
class Array_Seq: def __init__(self): self.A = [] self.size = 0 def __len__self(self): return self.size def __iter__(self): yield from self.A def build(self, X): self.A = [a for a in X] self.size = len(X) def get_at(self, i): return self.A[i] def set_at(self, i, x): self.A[i] = x def _copy_forward(self, i, n, A, j): for k in range(n): A[j + k] = self.A[i + k] def _copy_backward(self, i, n, A, j): for k in range(n - 1, -1, -1): A[j + k] = self.A[i + k] def insert_at(self, i, x): n = len(self) a = [None] * (n + 1) self._copy_forward(0, i, A, 0) A[i] = x self._copy_forward(i, n - i, A, i + 1) self.build(A) def delete_at(self, i): n = len(self) a = [None] * (n - 1) self._copy_forward(0, i, A, 0) x = self.A[i] self._copy_forward(i + 1, n - i - 1, A, i) self.build(A) return x def insert_first(self, x): self.insert_at(0, x) def delete_first(self): return self.delete_at(0) def insert_last(self, x): self.insert_at(len(self), x) def delete_last(self, x): return self.delete_at(len(self) - 1)
# This sample tests the case where super() is used within a metaclass # __init__ method. class Metaclass(type): def __init__(self, name, bases, attrs): super().__init__(name, bases, attrs)
class Metaclass(type): def __init__(self, name, bases, attrs): super().__init__(name, bases, attrs)
__author__ = 'studentmac' def make_negative( number ): if number >0: number *=-1 return number
__author__ = 'studentmac' def make_negative(number): if number > 0: number *= -1 return number
# -*- coding: utf-8 -*- """ Solution to Project Euler problem 389 - Platonic Dice Author: Jaime Liew https://github.com/jaimeliew1/Project_Euler_Solutions An unbiased single 4-sided die is thrown and its value, T, is noted. T unbiased 6-sided dice are thrown and their scores are added together. The sum, C, is noted. C unbiased 8-sided dice are thrown and their scores are added together. The sum, O, is noted. O unbiased 12-sided dice are thrown and their scores are added together. The sum, D, is noted. D unbiased 20-sided dice are thrown and their scores are added together. The sum, I, is noted. Find the variance of I, and give your answer rounded to 4 decimal places. Used probability generating functions, and find a recursive solution analytically. let G_n(s) be the generating function for a dice of n sides. G_n(s) = 1/n*(s + s^1 + s^2 + ... s^n) By differentiating with respect to s, the mean, mu_n = G_n'(1) = (n+1)/2 an intermediate variable, G_n''(1)/mu_n = 2/3*(n-1) The generating function of a dice being rolled t times, where t is the sum of rolls of another dice is THE COMPOSITION of the individual generating functions. Let H_i be the composed generating function of the first i dice. so H_5 = G_4(G_6(G_8(G_12(G_20)))) let mu_i be the mean corresponding to H_i, and lambda_i be an intermediate variable. Find mu_5 and lambda_5 using the recursive relation: mu_i = (n+1)/2*mu_(i-1) lambda_i = 2/3*(n-1) + (n+1)/2*lambda_(i-1) (note the use of the intermediate variable) Then finally, the variance, var(H_5) is: var(H_5) = mu_5*(lambda_i + 1 - mu_5) It turns out the intermediate variable can be completely omitted by using Wald's equation, or more algebra. """ def run(): Lambda, Mu = 0, 1 for n in [4, 6, 8, 12, 20]: Lambda = 2/3*(n-1) + (n+1)/2*Lambda Mu *= (n+1)/2 variance = Mu*(Lambda + 1 - Mu) return f'{variance:2.4f}' if __name__ == "__main__": print(run())
""" Solution to Project Euler problem 389 - Platonic Dice Author: Jaime Liew https://github.com/jaimeliew1/Project_Euler_Solutions An unbiased single 4-sided die is thrown and its value, T, is noted. T unbiased 6-sided dice are thrown and their scores are added together. The sum, C, is noted. C unbiased 8-sided dice are thrown and their scores are added together. The sum, O, is noted. O unbiased 12-sided dice are thrown and their scores are added together. The sum, D, is noted. D unbiased 20-sided dice are thrown and their scores are added together. The sum, I, is noted. Find the variance of I, and give your answer rounded to 4 decimal places. Used probability generating functions, and find a recursive solution analytically. let G_n(s) be the generating function for a dice of n sides. G_n(s) = 1/n*(s + s^1 + s^2 + ... s^n) By differentiating with respect to s, the mean, mu_n = G_n'(1) = (n+1)/2 an intermediate variable, G_n''(1)/mu_n = 2/3*(n-1) The generating function of a dice being rolled t times, where t is the sum of rolls of another dice is THE COMPOSITION of the individual generating functions. Let H_i be the composed generating function of the first i dice. so H_5 = G_4(G_6(G_8(G_12(G_20)))) let mu_i be the mean corresponding to H_i, and lambda_i be an intermediate variable. Find mu_5 and lambda_5 using the recursive relation: mu_i = (n+1)/2*mu_(i-1) lambda_i = 2/3*(n-1) + (n+1)/2*lambda_(i-1) (note the use of the intermediate variable) Then finally, the variance, var(H_5) is: var(H_5) = mu_5*(lambda_i + 1 - mu_5) It turns out the intermediate variable can be completely omitted by using Wald's equation, or more algebra. """ def run(): (lambda, mu) = (0, 1) for n in [4, 6, 8, 12, 20]: lambda = 2 / 3 * (n - 1) + (n + 1) / 2 * Lambda mu *= (n + 1) / 2 variance = Mu * (Lambda + 1 - Mu) return f'{variance:2.4f}' if __name__ == '__main__': print(run())
{ "targets": [ { "target_name": "rsvg", "sources": [ "src/Rsvg.cc", "src/Enums.cc", "src/Autocrop.cc" ], "variables": { "packages": "librsvg-2.0 cairo-png cairo-pdf cairo-svg", "libraries": "<!(pkg-config --libs-only-l <(packages))", "ldflags": "<!(pkg-config --libs-only-L --libs-only-other <(packages))", "cflags": "<!(pkg-config --cflags <(packages))" }, "libraries": [ "<@(libraries)" ], "conditions": [ [ "OS=='linux'", { "cflags": [ "<@(cflags)" ], "ldflags": [ "<@(ldflags)" ] } ], [ "OS=='mac'", { "xcode_settings": { "OTHER_CFLAGS": [ "<@(cflags)" ], "OTHER_LDFLAGS": [ "<@(ldflags)" ] } } ] ] } ] }
{'targets': [{'target_name': 'rsvg', 'sources': ['src/Rsvg.cc', 'src/Enums.cc', 'src/Autocrop.cc'], 'variables': {'packages': 'librsvg-2.0 cairo-png cairo-pdf cairo-svg', 'libraries': '<!(pkg-config --libs-only-l <(packages))', 'ldflags': '<!(pkg-config --libs-only-L --libs-only-other <(packages))', 'cflags': '<!(pkg-config --cflags <(packages))'}, 'libraries': ['<@(libraries)'], 'conditions': [["OS=='linux'", {'cflags': ['<@(cflags)'], 'ldflags': ['<@(ldflags)']}], ["OS=='mac'", {'xcode_settings': {'OTHER_CFLAGS': ['<@(cflags)'], 'OTHER_LDFLAGS': ['<@(ldflags)']}}]]}]}
#!/usr/bin/python class me: # initialization routine def __init__(self, foo): self.myvar = foo def getval(self): return self.myvar # this is an instance of the "me" class my = me("this") # my instantiation/assignment allows access to getval method x = my.getval() print(x)
class Me: def __init__(self, foo): self.myvar = foo def getval(self): return self.myvar my = me('this') x = my.getval() print(x)
# OpenWeatherMap API Key weather_api_key = "48ae7399e76d973a4b9ac9efe89908a3" # Google API Key g_key = "AIzaSyBrlKm1v_NyDl4nT9LOZWE5s_sQa2D5Hoc"
weather_api_key = '48ae7399e76d973a4b9ac9efe89908a3' g_key = 'AIzaSyBrlKm1v_NyDl4nT9LOZWE5s_sQa2D5Hoc'
height=list(map(int,input().split())) height def trapped_water(h): n=len(h) total=0 for i in range(1,n-1): left=h[i] for j in range(i): left=max(h[j],left) right=h[i] for j in range(i+1,n): right=max(h[j],right) total+=min(left,right)-h[i] return total print(trapped_water(height))
height = list(map(int, input().split())) height def trapped_water(h): n = len(h) total = 0 for i in range(1, n - 1): left = h[i] for j in range(i): left = max(h[j], left) right = h[i] for j in range(i + 1, n): right = max(h[j], right) total += min(left, right) - h[i] return total print(trapped_water(height))
a=((1, 1, 1, 1), # matrix A # (2, 4, 8, 16), (3, 9, 27, 81), (4, 16, 64, 256)) b=(( 4 , -3 , 4/3., -1/4. ), # matrix B # (-13/3., 19/4., -7/3., 11/24.), ( 3/2., -2. , 7/6., -1/4. ), ( -1/6., 1/4., -1/6., 1/24.)) def MatrixMul( mtx_a, mtx_b): tpos_b = list(zip( *mtx_b)) rtn = [[ sum( ea*eb for ea,eb in zip(a,b)) for b in tpos_b] for a in mtx_a] return rtn v = MatrixMul( a, b ) print('v = (') for r in v: print('[', end=' ') for val in r: print('%8.2f '%val, end=' ') print(']') print(')') u = MatrixMul(b,a) print('u = ') for r in u: print('[', end=' ') for val in r: print('%8.2f '%val, end=' ') print(']') print(')')
a = ((1, 1, 1, 1), (2, 4, 8, 16), (3, 9, 27, 81), (4, 16, 64, 256)) b = ((4, -3, 4 / 3.0, -1 / 4.0), (-13 / 3.0, 19 / 4.0, -7 / 3.0, 11 / 24.0), (3 / 2.0, -2.0, 7 / 6.0, -1 / 4.0), (-1 / 6.0, 1 / 4.0, -1 / 6.0, 1 / 24.0)) def matrix_mul(mtx_a, mtx_b): tpos_b = list(zip(*mtx_b)) rtn = [[sum((ea * eb for (ea, eb) in zip(a, b))) for b in tpos_b] for a in mtx_a] return rtn v = matrix_mul(a, b) print('v = (') for r in v: print('[', end=' ') for val in r: print('%8.2f ' % val, end=' ') print(']') print(')') u = matrix_mul(b, a) print('u = ') for r in u: print('[', end=' ') for val in r: print('%8.2f ' % val, end=' ') print(']') print(')')
# # PySNMP MIB module HPN-ICF-WEB-AUTHENTICATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-WEB-AUTHENTICATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:42:05 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") hpnicfCommon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfCommon") ifDescr, = mibBuilder.importSymbols("IF-MIB", "ifDescr") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Gauge32, ObjectIdentity, ModuleIdentity, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Bits, NotificationType, Counter64, Unsigned32, Integer32, IpAddress, MibIdentifier, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "ObjectIdentity", "ModuleIdentity", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Bits", "NotificationType", "Counter64", "Unsigned32", "Integer32", "IpAddress", "MibIdentifier", "TimeTicks") MacAddress, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TextualConvention", "DisplayString") hpnicfWebAuthentication = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93)) hpnicfWebAuthentication.setRevisions(('2008-06-25 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpnicfWebAuthentication.setRevisionsDescriptions(('The initial version of hpnicfWebAuthenticationMIB',)) if mibBuilder.loadTexts: hpnicfWebAuthentication.setLastUpdated('200806250000Z') if mibBuilder.loadTexts: hpnicfWebAuthentication.setOrganization('') if mibBuilder.loadTexts: hpnicfWebAuthentication.setContactInfo('') if mibBuilder.loadTexts: hpnicfWebAuthentication.setDescription('The MIB module is used for web authentication to send traps.') hpnicfWaTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1)) hpnicfWaVlanID = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfWaVlanID.setStatus('current') if mibBuilder.loadTexts: hpnicfWaVlanID.setDescription('The Vlan ID associate with the port and the MAC address.') hpnicfWaReasonCode = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("globalNumberMax", 1), ("configNumberMax", 2), ("portNumberMax", 3), ("invalidUsername", 4), ("authFail", 5), ("setACLFail", 6), ("changeVlanFail", 7), ("other", 8), ("onlineOverTime", 9), ("noTransferData", 10), ("cutOperation", 11), ("portDisabled", 12), ("portDown", 13), ("userLogout", 14), ("vlanChanged", 15), ("vlanDelted", 16)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfWaReasonCode.setStatus('current') if mibBuilder.loadTexts: hpnicfWaReasonCode.setDescription('The code indicates the reason for the action of this trap. globalNumberMax: The global number of connections is up to max. configNumberMax: The global number of connections is up to configured max value. portNumberMax: The interface number of connections is up to max. invalidUsername: The username or password is too long or username is empty. authFail: Wrong username or password. setACLFail: Failed to set ACL. changeVlanFail: Failed to set VLAN. other: Other reasons. onlineOverTime: The online time is over the max value. noTransferData: There was no data flow for the connection. cutOperation: There was a cut operation. portDisabled: Web authentication was disabled on interface. portDown: The interface turned down. userLogout: The client required to logout. vlanChanged: The interface VLAN value was changed. vlanDelted: The interface VLAN was deleted.') hpnicfWaActionCode = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfWaActionCode.setStatus('current') if mibBuilder.loadTexts: hpnicfWaActionCode.setDescription('The code indicates the system action. enabled: Web authentication turns enabled. disabled: Web authentication turns disabled.') hpnicfWaClientMacAddr = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 4), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfWaClientMacAddr.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientMacAddr.setDescription('The MAC address of the client.') hpnicfWaTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2)) hpnicfWaTrapPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0)) hpnicfWaClientLogon = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 1)).setObjects(("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaClientMacAddr"), ("IF-MIB", "ifDescr"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaVlanID")) if mibBuilder.loadTexts: hpnicfWaClientLogon.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogon.setDescription('It is generated when a client succeeded to logon.') hpnicfWaClientLogonFail = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 2)).setObjects(("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaClientMacAddr"), ("IF-MIB", "ifDescr"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaVlanID"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaReasonCode")) if mibBuilder.loadTexts: hpnicfWaClientLogonFail.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogonFail.setDescription('It is generated when a client failed to logon, the hpnicfWaReasonCode shows the failure reason.') hpnicfWaClientLogout = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 3)).setObjects(("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaClientMacAddr"), ("IF-MIB", "ifDescr"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaVlanID"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaReasonCode")) if mibBuilder.loadTexts: hpnicfWaClientLogout.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogout.setDescription('It is generated when a client logout, the hpnicfWaReasonCode shows the logout reason.') hpnicfWaSysAction = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 4)).setObjects(("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaActionCode")) if mibBuilder.loadTexts: hpnicfWaSysAction.setStatus('current') if mibBuilder.loadTexts: hpnicfWaSysAction.setDescription('It is generated when a system action was occurred, the hpnicfWaActionCode shows the action information.') mibBuilder.exportSymbols("HPN-ICF-WEB-AUTHENTICATION-MIB", hpnicfWaClientLogout=hpnicfWaClientLogout, hpnicfWaTrapPrefix=hpnicfWaTrapPrefix, hpnicfWaTrapObjects=hpnicfWaTrapObjects, hpnicfWaClientMacAddr=hpnicfWaClientMacAddr, PYSNMP_MODULE_ID=hpnicfWebAuthentication, hpnicfWaClientLogon=hpnicfWaClientLogon, hpnicfWaVlanID=hpnicfWaVlanID, hpnicfWaActionCode=hpnicfWaActionCode, hpnicfWebAuthentication=hpnicfWebAuthentication, hpnicfWaReasonCode=hpnicfWaReasonCode, hpnicfWaClientLogonFail=hpnicfWaClientLogonFail, hpnicfWaSysAction=hpnicfWaSysAction, hpnicfWaTrap=hpnicfWaTrap)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (hpnicf_common,) = mibBuilder.importSymbols('HPN-ICF-OID-MIB', 'hpnicfCommon') (if_descr,) = mibBuilder.importSymbols('IF-MIB', 'ifDescr') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (gauge32, object_identity, module_identity, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, bits, notification_type, counter64, unsigned32, integer32, ip_address, mib_identifier, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'ObjectIdentity', 'ModuleIdentity', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Bits', 'NotificationType', 'Counter64', 'Unsigned32', 'Integer32', 'IpAddress', 'MibIdentifier', 'TimeTicks') (mac_address, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'TextualConvention', 'DisplayString') hpnicf_web_authentication = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93)) hpnicfWebAuthentication.setRevisions(('2008-06-25 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpnicfWebAuthentication.setRevisionsDescriptions(('The initial version of hpnicfWebAuthenticationMIB',)) if mibBuilder.loadTexts: hpnicfWebAuthentication.setLastUpdated('200806250000Z') if mibBuilder.loadTexts: hpnicfWebAuthentication.setOrganization('') if mibBuilder.loadTexts: hpnicfWebAuthentication.setContactInfo('') if mibBuilder.loadTexts: hpnicfWebAuthentication.setDescription('The MIB module is used for web authentication to send traps.') hpnicf_wa_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1)) hpnicf_wa_vlan_id = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfWaVlanID.setStatus('current') if mibBuilder.loadTexts: hpnicfWaVlanID.setDescription('The Vlan ID associate with the port and the MAC address.') hpnicf_wa_reason_code = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=named_values(('globalNumberMax', 1), ('configNumberMax', 2), ('portNumberMax', 3), ('invalidUsername', 4), ('authFail', 5), ('setACLFail', 6), ('changeVlanFail', 7), ('other', 8), ('onlineOverTime', 9), ('noTransferData', 10), ('cutOperation', 11), ('portDisabled', 12), ('portDown', 13), ('userLogout', 14), ('vlanChanged', 15), ('vlanDelted', 16)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfWaReasonCode.setStatus('current') if mibBuilder.loadTexts: hpnicfWaReasonCode.setDescription('The code indicates the reason for the action of this trap. globalNumberMax: The global number of connections is up to max. configNumberMax: The global number of connections is up to configured max value. portNumberMax: The interface number of connections is up to max. invalidUsername: The username or password is too long or username is empty. authFail: Wrong username or password. setACLFail: Failed to set ACL. changeVlanFail: Failed to set VLAN. other: Other reasons. onlineOverTime: The online time is over the max value. noTransferData: There was no data flow for the connection. cutOperation: There was a cut operation. portDisabled: Web authentication was disabled on interface. portDown: The interface turned down. userLogout: The client required to logout. vlanChanged: The interface VLAN value was changed. vlanDelted: The interface VLAN was deleted.') hpnicf_wa_action_code = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfWaActionCode.setStatus('current') if mibBuilder.loadTexts: hpnicfWaActionCode.setDescription('The code indicates the system action. enabled: Web authentication turns enabled. disabled: Web authentication turns disabled.') hpnicf_wa_client_mac_addr = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 4), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfWaClientMacAddr.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientMacAddr.setDescription('The MAC address of the client.') hpnicf_wa_trap = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2)) hpnicf_wa_trap_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0)) hpnicf_wa_client_logon = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 1)).setObjects(('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaClientMacAddr'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaVlanID')) if mibBuilder.loadTexts: hpnicfWaClientLogon.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogon.setDescription('It is generated when a client succeeded to logon.') hpnicf_wa_client_logon_fail = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 2)).setObjects(('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaClientMacAddr'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaVlanID'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaReasonCode')) if mibBuilder.loadTexts: hpnicfWaClientLogonFail.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogonFail.setDescription('It is generated when a client failed to logon, the hpnicfWaReasonCode shows the failure reason.') hpnicf_wa_client_logout = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 3)).setObjects(('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaClientMacAddr'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaVlanID'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaReasonCode')) if mibBuilder.loadTexts: hpnicfWaClientLogout.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogout.setDescription('It is generated when a client logout, the hpnicfWaReasonCode shows the logout reason.') hpnicf_wa_sys_action = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 4)).setObjects(('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaActionCode')) if mibBuilder.loadTexts: hpnicfWaSysAction.setStatus('current') if mibBuilder.loadTexts: hpnicfWaSysAction.setDescription('It is generated when a system action was occurred, the hpnicfWaActionCode shows the action information.') mibBuilder.exportSymbols('HPN-ICF-WEB-AUTHENTICATION-MIB', hpnicfWaClientLogout=hpnicfWaClientLogout, hpnicfWaTrapPrefix=hpnicfWaTrapPrefix, hpnicfWaTrapObjects=hpnicfWaTrapObjects, hpnicfWaClientMacAddr=hpnicfWaClientMacAddr, PYSNMP_MODULE_ID=hpnicfWebAuthentication, hpnicfWaClientLogon=hpnicfWaClientLogon, hpnicfWaVlanID=hpnicfWaVlanID, hpnicfWaActionCode=hpnicfWaActionCode, hpnicfWebAuthentication=hpnicfWebAuthentication, hpnicfWaReasonCode=hpnicfWaReasonCode, hpnicfWaClientLogonFail=hpnicfWaClientLogonFail, hpnicfWaSysAction=hpnicfWaSysAction, hpnicfWaTrap=hpnicfWaTrap)
COLORS = { 'darkest_blue': '#111111', 'background_blue': '#0C172D', 'text_green': '#54F041', 'dev_purple': '#ab52c5', 'loc_pink': '#f6c6fa', 'great_depression_red': '#C90705', 'walter_white': '#FFFFFF' }
colors = {'darkest_blue': '#111111', 'background_blue': '#0C172D', 'text_green': '#54F041', 'dev_purple': '#ab52c5', 'loc_pink': '#f6c6fa', 'great_depression_red': '#C90705', 'walter_white': '#FFFFFF'}
class Order: Clayful = None name = 'Order' path = 'orders' @staticmethod def config(clayful): Order.Clayful = clayful return Order @staticmethod def accept_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'accept_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/accepted', 'params': ('orderId', 'refundId', ), 'without_payload': True, 'args': args }) @staticmethod def authenticate(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'authenticate', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/auth', 'params': ('orderId', ), 'args': args }) @staticmethod def cancel(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'cancel', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/cancellation', 'params': ('orderId', ), 'args': args }) @staticmethod def cancel_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'cancel_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/cancellation', 'params': ('orderId', ), 'args': args }) @staticmethod def cancel_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'cancel_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def cancel_refund_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'cancel_refund_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def check_ticket(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'check_ticket', 'http_method': 'POST', 'path': '/v1/orders/tickets/{code}/validity', 'params': ('code', ), 'args': args }) @staticmethod def count(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'count', 'http_method': 'GET', 'path': '/v1/orders/count', 'params': (), 'args': args }) @staticmethod def count_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'count_for_me', 'http_method': 'GET', 'path': '/v1/me/orders/count', 'params': (), 'args': args }) @staticmethod def create_download_url(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'create_download_url', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/items/{itemId}/download/url', 'params': ('orderId', 'itemId', ), 'without_payload': True, 'args': args }) @staticmethod def create_download_url_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'create_download_url_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/items/{itemId}/download/url', 'params': ('orderId', 'itemId', ), 'without_payload': True, 'args': args }) @staticmethod def create_fulfillment(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'create_fulfillment', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/fulfillments', 'params': ('orderId', ), 'args': args }) @staticmethod def delete(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def delete_fulfillment(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete_fulfillment', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/fulfillments/{fulfillmentId}', 'params': ('orderId', 'fulfillmentId', ), 'args': args }) @staticmethod def delete_inventory_operation(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete_inventory_operation', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/inventory/operations/{operationId}', 'params': ('orderId', 'operationId', ), 'args': args }) @staticmethod def delete_metafield(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete_metafield', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/meta/{field}', 'params': ('orderId', 'field', ), 'args': args }) @staticmethod def delete_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete_refund', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def get(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'get', 'http_method': 'GET', 'path': '/v1/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def get_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'get_for_me', 'http_method': 'GET', 'path': '/v1/me/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def increase_metafield(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'increase_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/inc', 'params': ('orderId', 'field', ), 'args': args }) @staticmethod def list(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list', 'http_method': 'GET', 'path': '/v1/orders', 'params': (), 'args': args }) @staticmethod def list_by_subscription(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list_by_subscription', 'http_method': 'GET', 'path': '/v1/subscriptions/{subscriptionId}/orders', 'params': ('subscriptionId', ), 'args': args }) @staticmethod def list_by_subscription_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list_by_subscription_for_me', 'http_method': 'GET', 'path': '/v1/me/subscriptions/{subscriptionId}/orders', 'params': ('subscriptionId', ), 'args': args }) @staticmethod def list_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list_for_me', 'http_method': 'GET', 'path': '/v1/me/orders', 'params': (), 'args': args }) @staticmethod def list_inventory_operations(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list_inventory_operations', 'http_method': 'GET', 'path': '/v1/orders/{orderId}/inventory/operations', 'params': ('orderId', ), 'args': args }) @staticmethod def mark_as_done(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_done', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/done', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def mark_as_not_received(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_not_received', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/received', 'params': ('orderId', ), 'args': args }) @staticmethod def mark_as_not_received_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_not_received_for_me', 'http_method': 'DELETE', 'path': '/v1/me/orders/{orderId}/received', 'params': ('orderId', ), 'args': args }) @staticmethod def mark_as_received(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_received', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/received', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def mark_as_received_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_received_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/received', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def mark_as_undone(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_undone', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/done', 'params': ('orderId', ), 'args': args }) @staticmethod def pull_from_metafield(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'pull_from_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/pull', 'params': ('orderId', 'field', ), 'args': args }) @staticmethod def push_to_metafield(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'push_to_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/push', 'params': ('orderId', 'field', ), 'args': args }) @staticmethod def register_payment_method(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'register_payment_method', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/transactions/payments/methods', 'params': ('orderId', ), 'args': args }) @staticmethod def request_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'request_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds', 'params': ('orderId', ), 'args': args }) @staticmethod def request_refund_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'request_refund_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/refunds', 'params': ('orderId', ), 'args': args }) @staticmethod def restock_all_refund_items(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'restock_all_refund_items', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/restock/all', 'params': ('orderId', 'refundId', ), 'without_payload': True, 'args': args }) @staticmethod def restock_refund_items(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'restock_refund_items', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/restock', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def sync_inventory(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'sync_inventory', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/synced', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def unaccept_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'unaccept_refund', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/refunds/{refundId}/accepted', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def unregister_payment_method(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'unregister_payment_method', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/transactions/payments/methods/{paymentMethodId}', 'params': ('orderId', 'paymentMethodId', ), 'args': args }) @staticmethod def update(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def update_cancellation(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_cancellation', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/cancellation', 'params': ('orderId', ), 'args': args }) @staticmethod def update_cancellation_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_cancellation_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/cancellation', 'params': ('orderId', ), 'args': args }) @staticmethod def update_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def update_fulfillment(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_fulfillment', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/fulfillments/{fulfillmentId}', 'params': ('orderId', 'fulfillmentId', ), 'args': args }) @staticmethod def update_item(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_item', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/items/{itemId}', 'params': ('orderId', 'itemId', ), 'args': args }) @staticmethod def update_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_refund', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def update_refund_cancellation(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_refund_cancellation', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def update_refund_cancellation_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_refund_cancellation_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def update_refund_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_refund_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def update_transactions(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_transactions', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/transactions', 'params': ('orderId', ), 'args': args }) @staticmethod def update_transactions_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_transactions_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/transactions', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def use_ticket(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'use_ticket', 'http_method': 'POST', 'path': '/v1/orders/tickets/{code}/used', 'params': ('code', ), 'without_payload': True, 'args': args })
class Order: clayful = None name = 'Order' path = 'orders' @staticmethod def config(clayful): Order.Clayful = clayful return Order @staticmethod def accept_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'accept_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/accepted', 'params': ('orderId', 'refundId'), 'without_payload': True, 'args': args}) @staticmethod def authenticate(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'authenticate', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/auth', 'params': ('orderId',), 'args': args}) @staticmethod def cancel(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'cancel', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/cancellation', 'params': ('orderId',), 'args': args}) @staticmethod def cancel_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'cancel_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/cancellation', 'params': ('orderId',), 'args': args}) @staticmethod def cancel_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'cancel_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def cancel_refund_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'cancel_refund_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def check_ticket(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'check_ticket', 'http_method': 'POST', 'path': '/v1/orders/tickets/{code}/validity', 'params': ('code',), 'args': args}) @staticmethod def count(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'count', 'http_method': 'GET', 'path': '/v1/orders/count', 'params': (), 'args': args}) @staticmethod def count_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'count_for_me', 'http_method': 'GET', 'path': '/v1/me/orders/count', 'params': (), 'args': args}) @staticmethod def create_download_url(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'create_download_url', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/items/{itemId}/download/url', 'params': ('orderId', 'itemId'), 'without_payload': True, 'args': args}) @staticmethod def create_download_url_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'create_download_url_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/items/{itemId}/download/url', 'params': ('orderId', 'itemId'), 'without_payload': True, 'args': args}) @staticmethod def create_fulfillment(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'create_fulfillment', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/fulfillments', 'params': ('orderId',), 'args': args}) @staticmethod def delete(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def delete_fulfillment(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete_fulfillment', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/fulfillments/{fulfillmentId}', 'params': ('orderId', 'fulfillmentId'), 'args': args}) @staticmethod def delete_inventory_operation(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete_inventory_operation', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/inventory/operations/{operationId}', 'params': ('orderId', 'operationId'), 'args': args}) @staticmethod def delete_metafield(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete_metafield', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/meta/{field}', 'params': ('orderId', 'field'), 'args': args}) @staticmethod def delete_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete_refund', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def get(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'get', 'http_method': 'GET', 'path': '/v1/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def get_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'get_for_me', 'http_method': 'GET', 'path': '/v1/me/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def increase_metafield(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'increase_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/inc', 'params': ('orderId', 'field'), 'args': args}) @staticmethod def list(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list', 'http_method': 'GET', 'path': '/v1/orders', 'params': (), 'args': args}) @staticmethod def list_by_subscription(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list_by_subscription', 'http_method': 'GET', 'path': '/v1/subscriptions/{subscriptionId}/orders', 'params': ('subscriptionId',), 'args': args}) @staticmethod def list_by_subscription_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list_by_subscription_for_me', 'http_method': 'GET', 'path': '/v1/me/subscriptions/{subscriptionId}/orders', 'params': ('subscriptionId',), 'args': args}) @staticmethod def list_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list_for_me', 'http_method': 'GET', 'path': '/v1/me/orders', 'params': (), 'args': args}) @staticmethod def list_inventory_operations(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list_inventory_operations', 'http_method': 'GET', 'path': '/v1/orders/{orderId}/inventory/operations', 'params': ('orderId',), 'args': args}) @staticmethod def mark_as_done(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_done', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/done', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def mark_as_not_received(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_not_received', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/received', 'params': ('orderId',), 'args': args}) @staticmethod def mark_as_not_received_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_not_received_for_me', 'http_method': 'DELETE', 'path': '/v1/me/orders/{orderId}/received', 'params': ('orderId',), 'args': args}) @staticmethod def mark_as_received(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_received', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/received', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def mark_as_received_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_received_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/received', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def mark_as_undone(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_undone', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/done', 'params': ('orderId',), 'args': args}) @staticmethod def pull_from_metafield(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'pull_from_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/pull', 'params': ('orderId', 'field'), 'args': args}) @staticmethod def push_to_metafield(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'push_to_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/push', 'params': ('orderId', 'field'), 'args': args}) @staticmethod def register_payment_method(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'register_payment_method', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/transactions/payments/methods', 'params': ('orderId',), 'args': args}) @staticmethod def request_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'request_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds', 'params': ('orderId',), 'args': args}) @staticmethod def request_refund_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'request_refund_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/refunds', 'params': ('orderId',), 'args': args}) @staticmethod def restock_all_refund_items(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'restock_all_refund_items', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/restock/all', 'params': ('orderId', 'refundId'), 'without_payload': True, 'args': args}) @staticmethod def restock_refund_items(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'restock_refund_items', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/restock', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def sync_inventory(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'sync_inventory', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/synced', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def unaccept_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'unaccept_refund', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/refunds/{refundId}/accepted', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def unregister_payment_method(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'unregister_payment_method', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/transactions/payments/methods/{paymentMethodId}', 'params': ('orderId', 'paymentMethodId'), 'args': args}) @staticmethod def update(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def update_cancellation(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_cancellation', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/cancellation', 'params': ('orderId',), 'args': args}) @staticmethod def update_cancellation_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_cancellation_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/cancellation', 'params': ('orderId',), 'args': args}) @staticmethod def update_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def update_fulfillment(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_fulfillment', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/fulfillments/{fulfillmentId}', 'params': ('orderId', 'fulfillmentId'), 'args': args}) @staticmethod def update_item(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_item', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/items/{itemId}', 'params': ('orderId', 'itemId'), 'args': args}) @staticmethod def update_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_refund', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def update_refund_cancellation(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_refund_cancellation', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def update_refund_cancellation_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_refund_cancellation_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def update_refund_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_refund_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def update_transactions(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_transactions', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/transactions', 'params': ('orderId',), 'args': args}) @staticmethod def update_transactions_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_transactions_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/transactions', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def use_ticket(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'use_ticket', 'http_method': 'POST', 'path': '/v1/orders/tickets/{code}/used', 'params': ('code',), 'without_payload': True, 'args': args})
def neighboors(active, x, y, width, height): number = 0 for i in range(-1, 2): for j in range(-1, 2): #Skip the choosen block if 0 <= x+i < width and 0 <= y+j < height: if i == 0 and j == 0: pass elif active[x+i][y+j] == 1: number += 1 print(str(x+i) + ", " + str(y+j) + ": " + str(active[x+i][y+j])) return number tab = [ [1, 0, 0], [1, 0, 0], [1, 1, 1]] x, y = 1, 1 width, height = 3, 3 print(neighboors(tab, 0, 1, width, height))
def neighboors(active, x, y, width, height): number = 0 for i in range(-1, 2): for j in range(-1, 2): if 0 <= x + i < width and 0 <= y + j < height: if i == 0 and j == 0: pass elif active[x + i][y + j] == 1: number += 1 print(str(x + i) + ', ' + str(y + j) + ': ' + str(active[x + i][y + j])) return number tab = [[1, 0, 0], [1, 0, 0], [1, 1, 1]] (x, y) = (1, 1) (width, height) = (3, 3) print(neighboors(tab, 0, 1, width, height))
''' --- Day 10: Balance botValues --- You come upon a factory in which many robots are zooming around handing small microchips to each other. Upon closer examination, you notice that each bot only proceeds when it has two microchips, and once it does, it gives each one to a different bot or puts it in a marked "output" bin. Sometimes, botValues take microchips from "input" bins, too. Inspecting one of the microchips, it seems like they each contain a single number; the botValues must use some logic to decide what to do with each chip. You access the local control computer and download the botValues' instructions (your puzzle input). Some of the instructions specify that a specific-valued microchip should be given to a specific bot; the rest of the instructions indicate what a given bot should do with its lower-value or higher-value chip. For example, consider the following instructions: value 5 goes to bot 2 bot 2 gives low to bot 1 and high to bot 0 value 3 goes to bot 1 bot 1 gives low to output 1 and high to bot 0 bot 0 gives low to output 2 and high to output 0 value 2 goes to bot 2 Initially, bot 1 starts with a value-3 chip, and bot 2 starts with a value-2 chip and a value-5 chip. Because bot 2 has two microchips, it gives its lower one (2) to bot 1 and its higher one (5) to bot 0. Then, bot 1 has two microchips; it puts the value-2 chip in output 1 and gives the value-3 chip to bot 0. Finally, bot 0 has two microchips; it puts the 3 in output 2 and the 5 in output 0. In the end, output bin 0 contains a value-5 microchip, output bin 1 contains a value-2 microchip, and output bin 2 contains a value-3 microchip. In this configuration, bot number 2 is responsible for comparing value-5 microchips with value-2 microchips. Based on your instructions, what is the number of the bot that is responsible for comparing value-61 microchips with value-17 microchips? input: str output: int ''' inFile = open("10.txt",'r') valFile = open("10.txt",'r') #inFile = open("10a.txt",'r') #valFile = open("10a.txt",'r') lChip = '17' hChip = '61' #lChip = 2 #hChip = 5 botValues = {} instructions = {} def activate(target,value): if target not in botValues: botValues[target] = [value] else: botValues[target].append(value) if len(botValues[target]) > 1: lowBot = instructions[target][0] highBot = instructions[target][1] lowVal, highVal = sorted(botValues[target],key=lambda x:int(x)) botValues[target] = [] if lowVal == lChip and highVal == hChip: print("Number of the bot which compares chips",highVal,"and",lowVal,"is:",target.split()[1]) activate(lowBot,lowVal) activate(highBot,highVal) for _ in inFile: inst = _.split() if inst[0] == "bot": active = " ".join([inst[0],inst[1]]) low = " ".join([inst[5],inst[6]]) high = " ".join([inst[10],inst[11]]) instructions[active] = [low,high] for _ in valFile: inst = _.split() if inst[0] == "value": value = inst[1] target = " ".join([inst[4],inst[5]]) activate(target,value)
""" --- Day 10: Balance botValues --- You come upon a factory in which many robots are zooming around handing small microchips to each other. Upon closer examination, you notice that each bot only proceeds when it has two microchips, and once it does, it gives each one to a different bot or puts it in a marked "output" bin. Sometimes, botValues take microchips from "input" bins, too. Inspecting one of the microchips, it seems like they each contain a single number; the botValues must use some logic to decide what to do with each chip. You access the local control computer and download the botValues' instructions (your puzzle input). Some of the instructions specify that a specific-valued microchip should be given to a specific bot; the rest of the instructions indicate what a given bot should do with its lower-value or higher-value chip. For example, consider the following instructions: value 5 goes to bot 2 bot 2 gives low to bot 1 and high to bot 0 value 3 goes to bot 1 bot 1 gives low to output 1 and high to bot 0 bot 0 gives low to output 2 and high to output 0 value 2 goes to bot 2 Initially, bot 1 starts with a value-3 chip, and bot 2 starts with a value-2 chip and a value-5 chip. Because bot 2 has two microchips, it gives its lower one (2) to bot 1 and its higher one (5) to bot 0. Then, bot 1 has two microchips; it puts the value-2 chip in output 1 and gives the value-3 chip to bot 0. Finally, bot 0 has two microchips; it puts the 3 in output 2 and the 5 in output 0. In the end, output bin 0 contains a value-5 microchip, output bin 1 contains a value-2 microchip, and output bin 2 contains a value-3 microchip. In this configuration, bot number 2 is responsible for comparing value-5 microchips with value-2 microchips. Based on your instructions, what is the number of the bot that is responsible for comparing value-61 microchips with value-17 microchips? input: str output: int """ in_file = open('10.txt', 'r') val_file = open('10.txt', 'r') l_chip = '17' h_chip = '61' bot_values = {} instructions = {} def activate(target, value): if target not in botValues: botValues[target] = [value] else: botValues[target].append(value) if len(botValues[target]) > 1: low_bot = instructions[target][0] high_bot = instructions[target][1] (low_val, high_val) = sorted(botValues[target], key=lambda x: int(x)) botValues[target] = [] if lowVal == lChip and highVal == hChip: print('Number of the bot which compares chips', highVal, 'and', lowVal, 'is:', target.split()[1]) activate(lowBot, lowVal) activate(highBot, highVal) for _ in inFile: inst = _.split() if inst[0] == 'bot': active = ' '.join([inst[0], inst[1]]) low = ' '.join([inst[5], inst[6]]) high = ' '.join([inst[10], inst[11]]) instructions[active] = [low, high] for _ in valFile: inst = _.split() if inst[0] == 'value': value = inst[1] target = ' '.join([inst[4], inst[5]]) activate(target, value)
#conjunto de cartas class Card: def __init__(self,suit,value): super().__init__() self.suit =suit self.value = value #reescribimos la salida al imprimir def __repr__(self): return " of ".join((self.value,self.suit))
class Card: def __init__(self, suit, value): super().__init__() self.suit = suit self.value = value def __repr__(self): return ' of '.join((self.value, self.suit))
#!/usr/bin/python filename = input("Please enter your file name: ") with open(filename, 'r') as f: lines = f.readlines() l = list(line.rstrip('\n') for line in lines) measurements_count = 0 while len(l) != 1: if l[0] < l[1]: measurements_count += 1 del(l[0]) else: print(f"There are {measurements_count} measurments larger than the previous measurment.")
filename = input('Please enter your file name: ') with open(filename, 'r') as f: lines = f.readlines() l = list((line.rstrip('\n') for line in lines)) measurements_count = 0 while len(l) != 1: if l[0] < l[1]: measurements_count += 1 del l[0] else: print(f'There are {measurements_count} measurments larger than the previous measurment.')
class BasePlugin: name = None description = None package_name = None class ExportPlugin(BasePlugin): format_type = None def format(self): raise NotImplementedError() def help(self): return f"For help check the official documentation for '{self.package_name}' plugin."
class Baseplugin: name = None description = None package_name = None class Exportplugin(BasePlugin): format_type = None def format(self): raise not_implemented_error() def help(self): return f"For help check the official documentation for '{self.package_name}' plugin."
""" Module that defines the mappings for CSV rows, variable names in code and DHIS2 UIDs set_order: used to set certain Verbal Autopsy properties before others (dependants). needs to be an integer. csv_name: CSV column name if none => there is no column in the CSV for this property example: Age in Days dhis_uid: DHIS2 metadata Unique Identifier (UID) if none => we don't import it into DHIS2 example: Death Date (it's the Event date that we're using) options: mapping to DHIS2 optionSet.options """ class Mapping(object): """ Base class for Mappings""" @classmethod def properties(cls): """Return subclasses of Mapping class""" return cls.__subclasses__() @classmethod def set_order_range(cls): """Return a set of `set_order` for all sub classes""" return set([c.set_order for c in cls.__subclasses__()]) class Age(Mapping): set_order = 0 csv_name = 'age' code_name = 'age' dhis_uid = 'C2OT4YktNGX' class AgeCategory(Mapping): set_order = 0 csv_name = None code_name = 'age_category' dhis_uid = 'lFKqfDj9Rhk' options = { "Adult": 1, "Child": 2, "Neonate": 3 } class CauseCode(Mapping): set_order = 0 csv_name = 'cause list #' code_name = 'cause_code' dhis_uid = None class CauseOfDeath(Mapping): set_order = 2 csv_name = None code_name = 'cause_of_death' dhis_uid = 'EGuQ4jmbsjc' options = { 1: { 'B24': 101, 'X27': 103, 'C50': 104, 'C53': 105, 'K74': 106, 'C18': 107, 'E14': 109, 'A09': 110, 'W74': 111, 'G40': 112, 'C15': 113, 'W19': 114, 'X09': 115, 'Y09': 116, 'C96': 118, 'C34': 119, 'B54': 120, 'O95': 121, 'I99': 122, 'B99': 123, 'X58': 124, 'R100': 125, 'J22': 126, 'X49': 127, 'C61': 128, 'N18': 129, 'V89': 130, 'C16': 131, 'I64': 132, 'X84': 133, 'A16': 134, 'J44': 135, 'I24': 136, 'C76': 137, 'R99': 199 }, 2: { 'B24': 201, 'X27': 202, 'A09': 203, 'W74': 204, 'G04': 205, 'W19': 206, 'X09': 207, 'A99': 208, 'B54': 209, 'B05': 210, 'G03': 211, 'C76': 212, 'I99': 213, 'R101': 214, 'K92': 215, 'B99': 216, 'J22': 217, 'X49': 218, 'V89': 219, 'A41': 220, 'Y09': 221, 'R99': 299, }, 3: { 'P21': 301, 'Q89': 302, 'P36': 303, 'P23': 304, 'P07': 305, 'P95': 306, 'R99': 399, } } class BirthDate(Mapping): set_order = 0 csv_name = 'birth_date' code_name = 'birth_date' dhis_uid = 'ih4W8j2jDAS' class DeathDate(Mapping): set_order = 1 csv_name = 'death_date' code_name = 'death_date' dhis_uid = None class FirstName(Mapping): set_order = 0 csv_name = 'name' code_name = 'first_name' dhis_uid = 'uWGd9pUSgBK' class FirstName2nd(Mapping): set_order = 0 csv_name = 'name2' code_name = 'first_name_2nd' dhis_uid = 'd52GkmmpLMM' class Surname(Mapping): set_order = 0 csv_name = 'surname' code_name = 'surname' dhis_uid = 'NM9CFZmYq9S' class Surname2nd(Mapping): set_order = 0 csv_name = 'surname2' code_name = 'surname_2nd' dhis_uid = 'VEGzj76HCEN' class Orgunit(Mapping): set_order = 0 csv_name = 'geography3' code_name = 'orgunit' dhis_uid = None class Icd10(Mapping): set_order = 1 csv_name = 'icd10' code_name = 'icd10' dhis_uid = 'TSljgUq6Xfd' options = { "X58": 1, "I24": 2, "P07": 3, "A09": 4, "E14": 5, "P21": 6, "W74": 7, "B54": 8, "P95": 9, "G03": 10, "V89": 11, "B24": 12, "X09": 13, "P23": 14, "C16": 15, "I64": 16, "C76": 17, "N18": 18, "X84": 19, "C96": 20, "J22": 21, "B99": 22, "K74": 23, "A99": 24, "G04": 25, "J44": 26, "G40": 27, "R99": 28, "C18": 29, "C34": 30, "K92": 31, "C61": 32, "C15": 33, "X27": 34, "C50": 35, "O95": 36, "A41": 37, "A16": 38, "I99": 39, "C53": 40, "P36": 41, "R101": 42, "Y09": 43, "X49": 44, "R100": 45, "Q89": 46, "B05": 47, "W19": 48, } # reverse options dict # {key: value} becomes # {value: key} reverse = {v: k for k, v in options.items()} class InterviewDate(Mapping): set_order = 0 csv_name = 'interview_date' code_name = 'interview_date' dhis_uid = 't6O2A1gou0g' class Sex(Mapping): set_order = 0 csv_name = 'sex' code_name = 'sex' dhis_uid = 'GVVDthqI2Sz' options = { 1, # male 2, # female 3, # third gender 8, # don't know 9 # refused to answer } class Sid(Mapping): set_order = 0 csv_name = 'sid' code_name = 'sid' dhis_uid = 'L370gG5pb3P' class NationalId(Mapping): set_order = 0 csv_name = 'national_id' code_name = 'national_id' dhis_uid = 'iJzYZN4MIjD' class AlgorithmVersion(Mapping): set_order = 0 csv_name = None code_name = 'algorithm_version' dhis_uid = 'ePYyHl0VfmB' class QuestionnaireVersion(Mapping): set_order = 0 csv_name = None code_name = 'questionnaire_version' dhis_uid = 'qQuck3LgWeY' def cause_of_death_option_code(age_category, icd10): """Determine the Cause of Death option code depending on Age Category and ICD10""" if icd10 in Icd10.options.keys(): # if ICD-10 is the original code (e.g. C50) return CauseOfDeath.options[age_category][icd10] else: # if ICD-10 is the option (e.g. 35) original_code_lookup = Icd10.reverse[icd10] return CauseOfDeath.options[age_category][original_code_lookup]
""" Module that defines the mappings for CSV rows, variable names in code and DHIS2 UIDs set_order: used to set certain Verbal Autopsy properties before others (dependants). needs to be an integer. csv_name: CSV column name if none => there is no column in the CSV for this property example: Age in Days dhis_uid: DHIS2 metadata Unique Identifier (UID) if none => we don't import it into DHIS2 example: Death Date (it's the Event date that we're using) options: mapping to DHIS2 optionSet.options """ class Mapping(object): """ Base class for Mappings""" @classmethod def properties(cls): """Return subclasses of Mapping class""" return cls.__subclasses__() @classmethod def set_order_range(cls): """Return a set of `set_order` for all sub classes""" return set([c.set_order for c in cls.__subclasses__()]) class Age(Mapping): set_order = 0 csv_name = 'age' code_name = 'age' dhis_uid = 'C2OT4YktNGX' class Agecategory(Mapping): set_order = 0 csv_name = None code_name = 'age_category' dhis_uid = 'lFKqfDj9Rhk' options = {'Adult': 1, 'Child': 2, 'Neonate': 3} class Causecode(Mapping): set_order = 0 csv_name = 'cause list #' code_name = 'cause_code' dhis_uid = None class Causeofdeath(Mapping): set_order = 2 csv_name = None code_name = 'cause_of_death' dhis_uid = 'EGuQ4jmbsjc' options = {1: {'B24': 101, 'X27': 103, 'C50': 104, 'C53': 105, 'K74': 106, 'C18': 107, 'E14': 109, 'A09': 110, 'W74': 111, 'G40': 112, 'C15': 113, 'W19': 114, 'X09': 115, 'Y09': 116, 'C96': 118, 'C34': 119, 'B54': 120, 'O95': 121, 'I99': 122, 'B99': 123, 'X58': 124, 'R100': 125, 'J22': 126, 'X49': 127, 'C61': 128, 'N18': 129, 'V89': 130, 'C16': 131, 'I64': 132, 'X84': 133, 'A16': 134, 'J44': 135, 'I24': 136, 'C76': 137, 'R99': 199}, 2: {'B24': 201, 'X27': 202, 'A09': 203, 'W74': 204, 'G04': 205, 'W19': 206, 'X09': 207, 'A99': 208, 'B54': 209, 'B05': 210, 'G03': 211, 'C76': 212, 'I99': 213, 'R101': 214, 'K92': 215, 'B99': 216, 'J22': 217, 'X49': 218, 'V89': 219, 'A41': 220, 'Y09': 221, 'R99': 299}, 3: {'P21': 301, 'Q89': 302, 'P36': 303, 'P23': 304, 'P07': 305, 'P95': 306, 'R99': 399}} class Birthdate(Mapping): set_order = 0 csv_name = 'birth_date' code_name = 'birth_date' dhis_uid = 'ih4W8j2jDAS' class Deathdate(Mapping): set_order = 1 csv_name = 'death_date' code_name = 'death_date' dhis_uid = None class Firstname(Mapping): set_order = 0 csv_name = 'name' code_name = 'first_name' dhis_uid = 'uWGd9pUSgBK' class Firstname2Nd(Mapping): set_order = 0 csv_name = 'name2' code_name = 'first_name_2nd' dhis_uid = 'd52GkmmpLMM' class Surname(Mapping): set_order = 0 csv_name = 'surname' code_name = 'surname' dhis_uid = 'NM9CFZmYq9S' class Surname2Nd(Mapping): set_order = 0 csv_name = 'surname2' code_name = 'surname_2nd' dhis_uid = 'VEGzj76HCEN' class Orgunit(Mapping): set_order = 0 csv_name = 'geography3' code_name = 'orgunit' dhis_uid = None class Icd10(Mapping): set_order = 1 csv_name = 'icd10' code_name = 'icd10' dhis_uid = 'TSljgUq6Xfd' options = {'X58': 1, 'I24': 2, 'P07': 3, 'A09': 4, 'E14': 5, 'P21': 6, 'W74': 7, 'B54': 8, 'P95': 9, 'G03': 10, 'V89': 11, 'B24': 12, 'X09': 13, 'P23': 14, 'C16': 15, 'I64': 16, 'C76': 17, 'N18': 18, 'X84': 19, 'C96': 20, 'J22': 21, 'B99': 22, 'K74': 23, 'A99': 24, 'G04': 25, 'J44': 26, 'G40': 27, 'R99': 28, 'C18': 29, 'C34': 30, 'K92': 31, 'C61': 32, 'C15': 33, 'X27': 34, 'C50': 35, 'O95': 36, 'A41': 37, 'A16': 38, 'I99': 39, 'C53': 40, 'P36': 41, 'R101': 42, 'Y09': 43, 'X49': 44, 'R100': 45, 'Q89': 46, 'B05': 47, 'W19': 48} reverse = {v: k for (k, v) in options.items()} class Interviewdate(Mapping): set_order = 0 csv_name = 'interview_date' code_name = 'interview_date' dhis_uid = 't6O2A1gou0g' class Sex(Mapping): set_order = 0 csv_name = 'sex' code_name = 'sex' dhis_uid = 'GVVDthqI2Sz' options = {1, 2, 3, 8, 9} class Sid(Mapping): set_order = 0 csv_name = 'sid' code_name = 'sid' dhis_uid = 'L370gG5pb3P' class Nationalid(Mapping): set_order = 0 csv_name = 'national_id' code_name = 'national_id' dhis_uid = 'iJzYZN4MIjD' class Algorithmversion(Mapping): set_order = 0 csv_name = None code_name = 'algorithm_version' dhis_uid = 'ePYyHl0VfmB' class Questionnaireversion(Mapping): set_order = 0 csv_name = None code_name = 'questionnaire_version' dhis_uid = 'qQuck3LgWeY' def cause_of_death_option_code(age_category, icd10): """Determine the Cause of Death option code depending on Age Category and ICD10""" if icd10 in Icd10.options.keys(): return CauseOfDeath.options[age_category][icd10] else: original_code_lookup = Icd10.reverse[icd10] return CauseOfDeath.options[age_category][original_code_lookup]
''' A builder design pattern is a type of design pattern in which large complex objects are created without letting end user know about the complexity fo teh objects E.g: In the example below teh document object is made up of text,image, line, table objects but the end used is not aware of creation of all these objects separately ''' class Document: def __init__(self): print("Creating Document object") self.text_obj=Text() self.img_obj=Image() self.line_obj=Line() self.table_obj=Table() class Text: def __init__(self): print("creating text object") class Image: def __init__(self): print("creating image object") class Line: def __init__(self): print("creating line object") class Table: def __init__(self): print("creating table object") doc=Document()
""" A builder design pattern is a type of design pattern in which large complex objects are created without letting end user know about the complexity fo teh objects E.g: In the example below teh document object is made up of text,image, line, table objects but the end used is not aware of creation of all these objects separately """ class Document: def __init__(self): print('Creating Document object') self.text_obj = text() self.img_obj = image() self.line_obj = line() self.table_obj = table() class Text: def __init__(self): print('creating text object') class Image: def __init__(self): print('creating image object') class Line: def __init__(self): print('creating line object') class Table: def __init__(self): print('creating table object') doc = document()
#Jackknife reduction templates for NIRC2 and OSIRIS pipelines. #Author: Sean Terry def jackknife(): """ Do the Jackknife data reduction. """ ########## # # NIRC2 Format # ########## ########## # Ks-band reduction ########## # Nite 1 target = 'MB07192' sci_files1 = list(range(173, 177+1)) sky_files1 = list(range(206, 215+1)) refSrc1 = [385., 440.] #This is the target nearest to center sky.makesky(sky_files1, 'nite1', 'ks', instrument=nirc2) data.clean(sci_files1, 'nite1', 'ks', refSrc1, refSrc1, instrument=nirc2) # Nite 2 sci_files2 = list(range(195, 203+1)) sky_files2 = list(range(206, 215+1)) refSrc2 = [387., 443.] #This is the target nearest to center sky.makesky(sky_files2, 'nite2', 'ks', instrument=nirc2) data.clean(sci_files2, 'nite2', 'ks', refSrc2, refSrc2, instrument=nirc2) #----------------- sci_files = sci_files1 + sci_files2 for i in enumerate(sci_files, start=1): jack_list = sci_files[:] jack_list.remove(i[1]) data.calcStrehl(jack_list, 'ks', instrument=nirc2) data.combine(jack_list, 'ks', '27maylgs', trim=1, weight='strehl', instrument=nirc2, outSuffix='_' + str(i[0])) os.chdir('reduce') #--------------------------------------------------------------------------------- #--------------------------------------------------------------------------------- #--------------------------------------------------------------------------------- def jackknife(): """ Do the Jackknife data reduction. """ ########## # # OSIRIS Format # ########## ########## # Kp-band reduction ########## target = 'OB06284' sci_files = ['i200810_a004{0:03d}_flip'.format(ii) for ii in range(2, 26+1)] sky_files = ['i200810_a007{0:03d}_flip'.format(ii) for ii in range(2, 6+1)] refSrc = [1071., 854.] # This is the target sky.makesky(sky_files, target, 'kp_tdOpen', instrument=osiris) for i in enumerate(sci_files, start=1): jack_list = sci_files[:] jack_list.remove(i[1]) data.clean(jack_list, target, 'kp_tdOpen', refSrc, refSrc, field=target, instrument=osiris) data.calcStrehl(jack_list, 'kp_tdOpen', field=target, instrument=osiris) data.combine(jack_list, 'kp_tdOpen', epoch, field=target, trim=0, weight='strehl', instrument=osiris, outSuffix=str(i[0])) os.chdir('reduce')
def jackknife(): """ Do the Jackknife data reduction. """ target = 'MB07192' sci_files1 = list(range(173, 177 + 1)) sky_files1 = list(range(206, 215 + 1)) ref_src1 = [385.0, 440.0] sky.makesky(sky_files1, 'nite1', 'ks', instrument=nirc2) data.clean(sci_files1, 'nite1', 'ks', refSrc1, refSrc1, instrument=nirc2) sci_files2 = list(range(195, 203 + 1)) sky_files2 = list(range(206, 215 + 1)) ref_src2 = [387.0, 443.0] sky.makesky(sky_files2, 'nite2', 'ks', instrument=nirc2) data.clean(sci_files2, 'nite2', 'ks', refSrc2, refSrc2, instrument=nirc2) sci_files = sci_files1 + sci_files2 for i in enumerate(sci_files, start=1): jack_list = sci_files[:] jack_list.remove(i[1]) data.calcStrehl(jack_list, 'ks', instrument=nirc2) data.combine(jack_list, 'ks', '27maylgs', trim=1, weight='strehl', instrument=nirc2, outSuffix='_' + str(i[0])) os.chdir('reduce') def jackknife(): """ Do the Jackknife data reduction. """ target = 'OB06284' sci_files = ['i200810_a004{0:03d}_flip'.format(ii) for ii in range(2, 26 + 1)] sky_files = ['i200810_a007{0:03d}_flip'.format(ii) for ii in range(2, 6 + 1)] ref_src = [1071.0, 854.0] sky.makesky(sky_files, target, 'kp_tdOpen', instrument=osiris) for i in enumerate(sci_files, start=1): jack_list = sci_files[:] jack_list.remove(i[1]) data.clean(jack_list, target, 'kp_tdOpen', refSrc, refSrc, field=target, instrument=osiris) data.calcStrehl(jack_list, 'kp_tdOpen', field=target, instrument=osiris) data.combine(jack_list, 'kp_tdOpen', epoch, field=target, trim=0, weight='strehl', instrument=osiris, outSuffix=str(i[0])) os.chdir('reduce')
# -*- coding: utf-8 -*- class Data: def __init__(self, d): seqs = tuple, list, set, frozenset for i, j in d.items(): if isinstance(j, dict): setattr(self, i, Data(j)) elif isinstance(j, seqs): setattr(self, i, type(j)(Data(sj) if isinstance(sj, dict) else sj for sj in j)) else: setattr(self, i, j) def _copy(self): return self.__copy__() def __copy__(self): return Data(self.__dict__.copy()) def __repr__(self): return "<Data " + repr(self.__dict__) + ">" def __iter__(self): return iter(self.__dict__)
class Data: def __init__(self, d): seqs = (tuple, list, set, frozenset) for (i, j) in d.items(): if isinstance(j, dict): setattr(self, i, data(j)) elif isinstance(j, seqs): setattr(self, i, type(j)((data(sj) if isinstance(sj, dict) else sj for sj in j))) else: setattr(self, i, j) def _copy(self): return self.__copy__() def __copy__(self): return data(self.__dict__.copy()) def __repr__(self): return '<Data ' + repr(self.__dict__) + '>' def __iter__(self): return iter(self.__dict__)
#! /usr/bin/env python3 days = int(input("Enter days:")) months = days // 30 days = days % 30 print("Months = {} Days = {}".format(months, days))
days = int(input('Enter days:')) months = days // 30 days = days % 30 print('Months = {} Days = {}'.format(months, days))
# # PySNMP MIB module CISCO-ITP-TC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ITP-TC-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:46:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, iso, NotificationType, Counter32, Counter64, Unsigned32, ModuleIdentity, Bits, ObjectIdentity, MibIdentifier, TimeTicks, Integer32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "iso", "NotificationType", "Counter32", "Counter64", "Unsigned32", "ModuleIdentity", "Bits", "ObjectIdentity", "MibIdentifier", "TimeTicks", "Integer32", "IpAddress") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ciscoItpTextualConventions = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 231)) ciscoItpTextualConventions.setRevisions(('2004-04-26 00:00', '2003-08-03 00:00', '2003-01-29 00:00', '2001-12-11 00:00', '2001-10-01 00:00',)) if mibBuilder.loadTexts: ciscoItpTextualConventions.setLastUpdated('200404260000Z') if mibBuilder.loadTexts: ciscoItpTextualConventions.setOrganization('Cisco Systems, Inc.') class CItpTcAclId(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2700, 2999), ) class CItpTcCLLI(TextualConvention, OctetString): reference = 'Complete listings of geographical and geopolitical codes can be found in the BR 751-401-xxx series and BR 751-100-055, respectively.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 11) class CItpTcDisplayPC(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 12) class CItpTcEncodingSchemeValue(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 15) class CItpTcGlobalTitleSelector(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("nai", 1), ("tt", 2), ("ttNpEs", 3), ("ttNpNaiEs", 4)) class CItpTcGlobalTitleSelectorName(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 9) class CItpTcGtaAddr(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class CItpTcGtaLongAddr(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 64) class CItpTcGtaDisplay(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 15) class CItpTcGtaDisplayZB(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 15) class CItpTcGtaLongDisplay(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 64) class CItpTcGtaDisplayLen(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 15) class CItpTcGtaLongDisplayLen(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 64) class CItpTcNetworkName(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 19) class CItpTcInstanceNumber(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 255) class CItpTcLinksetId(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 19) class CItpTcLinkSLC(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 15) class CItpTcLinkType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("other", 1), ("serial", 2), ("sctpIp", 3), ("hsl", 4), ("virtual", 5)) class CItpTcNAI(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255) class CItpTcNetworkIndicator(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("international", 0), ("internationatSpare", 1), ("national", 2), ("nationalSpare", 3)) class CItpTcNumberingPlan(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255) class CItpTcPointCode(TextualConvention, Unsigned32): reference = 'The SS7 network node address as specified in the International Telecommunication Union standard Q.708: Specifications of Signalling System No. 7 - Numbering of International Signalling Point Codes, and by ANSI T1.111.8 Numbering of Signalling Point Codes. GF 001-9001 - Technical Specifications of Signalling System No. 7 for National Telephone Network of China.' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 16777216) class CItpTcPointCodeMask(TextualConvention, Unsigned32): reference = 'The SS7 network node address as specified in the International Telecommunication Union standard Q.708: Specifications of Signalling System No. 7 - Numbering of International Signalling Point Codes, and by ANSI T1.111.8 Numbering of Signalling Point Codes.' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 16777216) class CItpTcPointCodeType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("primary", 1), ("additional", 2), ("capability", 3), ("xua", 4)) class CItpTcQos(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), ) class CItpTcRouteTableName(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 19) class CItpTcServiceIndicator(TextualConvention, Integer32): reference = 'ITU Q.704 Signalling network functions and messages section 14.2.1 Service indicator.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)) namedValues = NamedValues(("snmm", 0), ("sntm", 1), ("spare2", 2), ("sccp", 3), ("tup", 4), ("isup", 5), ("dupc", 6), ("dupf", 7), ("mtup", 8), ("bisup", 9), ("sisup", 10), ("spare11", 11), ("spare12", 12), ("spare13", 13), ("spare14", 14), ("spare15", 15)) class CItpTcSls(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 255) class CItpTcSs7Variant(TextualConvention, Integer32): reference = 'GF 001-9001 - Technical Specifications of Signalling System No. 7 for National Telephone Network of China.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("ansi", 1), ("itu", 2), ("china", 3)) class CItpTcSubSystemNumber(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2, 255), ) class CItpTcSubSystemNumberMask(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(2, 255) class CItpTcTableLoadStatus(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("loadNotRequested", 1), ("loadInProgress", 2), ("loadComplete", 3), ("loadCompleteWithErrors", 4), ("loadFailed", 5)) class CItpTcTimerMtp2T01(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(5000, 150000) class CItpTcTimerMtp2T02(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 150000), ) class CItpTcTimerMtp2T03(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1000, 14000), ) class CItpTcTimerMtp2T04E(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(400, 660), ) class CItpTcTimerMtp2T04N(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2007, 9500), ) class CItpTcTimerMtp2T05(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(80, 120), ) class CItpTcTimerMtp2T06(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1000, 6000) class CItpTcTimerMtp2T07(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 6000), ) class CItpTcTimerMtp3T01(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T02(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(700, 2000) class CItpTcTimerMtp3T03(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T04(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T05(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T06(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T07(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1000, 2000), ) class CItpTcTimerMtp3T08(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(800, 1200) class CItpTcTimerMtp3T10(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(30000, 60000) class CItpTcTimerMtp3T11(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(30000, 90000) class CItpTcTimerMtp3T12(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(800, 1500) class CItpTcTimerMtp3T13(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(800, 1500) class CItpTcTimerMtp3T14(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(2000, 3000) class CItpTcTimerMtp3T15(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(2000, 3000) class CItpTcTimerMtp3T16(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1400, 2000) class CItpTcTimerMtp3T17(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(800, 1500) class CItpTcTimerMtp3T18(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1000, 31000) class CItpTcTimerMtp3T19(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(67000, 600000) class CItpTcTimerMtp3T20(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1000, 120000) class CItpTcTimerMtp3T21(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(63000, 120000) class CItpTcTimerMtp3T22(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(36000, 360000) class CItpTcTimerMtp3T23(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(9000, 360000) class CItpTcTimerMtp3T24(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 60000) class CItpTcTimerMtp3T25(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(30000, 35000), ) class CItpTcTimerMtp3T26(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(12000, 15000), ) class CItpTcTimerMtp3T27(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 50000), ) class CItpTcTimerMtp3T28(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3000, 35000), ) class CItpTcTimerMtp3T29(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60000, 65000), ) class CItpTcTimerMtp3T30(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(30000, 35000), ) class CItpTcTimerMtp3T31(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(10000, 120000), ) class CItpTcTimerMtp3T32(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 120000), ) class CItpTcTimerMtp3T33(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60000, 600000), ) class CItpTcTimerMtp3T34(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 120000), ) class CItpTcTimerLinkTest(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 12000), ) class CItpTcTimerLinkMessage(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(30000, 90000), ) class CItpTcTimerLinkActRetry(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60000, 90000), ) class CItpTcTranslationType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("tt", 1), ("ssn", 2)) class CItpTcURL(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class CItpTcXuaName(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 12) mibBuilder.exportSymbols("CISCO-ITP-TC-MIB", CItpTcPointCodeMask=CItpTcPointCodeMask, CItpTcTimerMtp3T13=CItpTcTimerMtp3T13, CItpTcTimerMtp3T32=CItpTcTimerMtp3T32, CItpTcTimerMtp3T05=CItpTcTimerMtp3T05, CItpTcLinkType=CItpTcLinkType, CItpTcTimerMtp3T15=CItpTcTimerMtp3T15, CItpTcTimerMtp3T20=CItpTcTimerMtp3T20, CItpTcXuaName=CItpTcXuaName, CItpTcTimerMtp3T28=CItpTcTimerMtp3T28, CItpTcTimerMtp3T17=CItpTcTimerMtp3T17, CItpTcTimerMtp3T08=CItpTcTimerMtp3T08, CItpTcNumberingPlan=CItpTcNumberingPlan, CItpTcGlobalTitleSelector=CItpTcGlobalTitleSelector, CItpTcTimerMtp3T06=CItpTcTimerMtp3T06, CItpTcTimerMtp3T11=CItpTcTimerMtp3T11, CItpTcGtaDisplayZB=CItpTcGtaDisplayZB, CItpTcTimerMtp2T02=CItpTcTimerMtp2T02, CItpTcDisplayPC=CItpTcDisplayPC, CItpTcTimerMtp3T19=CItpTcTimerMtp3T19, CItpTcRouteTableName=CItpTcRouteTableName, CItpTcTimerMtp3T24=CItpTcTimerMtp3T24, CItpTcTimerMtp3T01=CItpTcTimerMtp3T01, CItpTcTimerMtp3T16=CItpTcTimerMtp3T16, CItpTcTimerMtp3T07=CItpTcTimerMtp3T07, CItpTcTimerMtp3T12=CItpTcTimerMtp3T12, CItpTcTimerMtp3T22=CItpTcTimerMtp3T22, CItpTcLinkSLC=CItpTcLinkSLC, CItpTcTimerMtp3T03=CItpTcTimerMtp3T03, CItpTcTimerMtp2T05=CItpTcTimerMtp2T05, CItpTcTimerMtp3T18=CItpTcTimerMtp3T18, CItpTcPointCode=CItpTcPointCode, CItpTcSubSystemNumber=CItpTcSubSystemNumber, CItpTcSubSystemNumberMask=CItpTcSubSystemNumberMask, ciscoItpTextualConventions=ciscoItpTextualConventions, CItpTcSls=CItpTcSls, CItpTcSs7Variant=CItpTcSs7Variant, CItpTcLinksetId=CItpTcLinksetId, CItpTcTableLoadStatus=CItpTcTableLoadStatus, CItpTcTimerMtp3T04=CItpTcTimerMtp3T04, CItpTcAclId=CItpTcAclId, CItpTcTimerMtp3T23=CItpTcTimerMtp3T23, CItpTcInstanceNumber=CItpTcInstanceNumber, CItpTcTimerMtp3T02=CItpTcTimerMtp3T02, CItpTcTimerMtp3T31=CItpTcTimerMtp3T31, CItpTcPointCodeType=CItpTcPointCodeType, CItpTcTimerLinkTest=CItpTcTimerLinkTest, CItpTcTimerMtp3T29=CItpTcTimerMtp3T29, CItpTcTimerMtp2T04N=CItpTcTimerMtp2T04N, CItpTcTimerMtp3T26=CItpTcTimerMtp3T26, CItpTcTimerMtp3T14=CItpTcTimerMtp3T14, CItpTcTimerLinkMessage=CItpTcTimerLinkMessage, CItpTcNetworkIndicator=CItpTcNetworkIndicator, CItpTcEncodingSchemeValue=CItpTcEncodingSchemeValue, CItpTcTimerLinkActRetry=CItpTcTimerLinkActRetry, CItpTcTimerMtp3T34=CItpTcTimerMtp3T34, CItpTcTimerMtp3T30=CItpTcTimerMtp3T30, CItpTcCLLI=CItpTcCLLI, CItpTcServiceIndicator=CItpTcServiceIndicator, CItpTcTimerMtp2T07=CItpTcTimerMtp2T07, CItpTcNetworkName=CItpTcNetworkName, CItpTcTimerMtp2T01=CItpTcTimerMtp2T01, CItpTcTranslationType=CItpTcTranslationType, CItpTcGlobalTitleSelectorName=CItpTcGlobalTitleSelectorName, CItpTcTimerMtp3T21=CItpTcTimerMtp3T21, CItpTcGtaLongDisplayLen=CItpTcGtaLongDisplayLen, CItpTcGtaDisplayLen=CItpTcGtaDisplayLen, CItpTcGtaLongDisplay=CItpTcGtaLongDisplay, CItpTcGtaLongAddr=CItpTcGtaLongAddr, CItpTcTimerMtp2T06=CItpTcTimerMtp2T06, CItpTcGtaDisplay=CItpTcGtaDisplay, CItpTcURL=CItpTcURL, CItpTcTimerMtp2T03=CItpTcTimerMtp2T03, CItpTcTimerMtp3T10=CItpTcTimerMtp3T10, CItpTcGtaAddr=CItpTcGtaAddr, CItpTcNAI=CItpTcNAI, CItpTcTimerMtp3T27=CItpTcTimerMtp3T27, CItpTcQos=CItpTcQos, CItpTcTimerMtp3T33=CItpTcTimerMtp3T33, CItpTcTimerMtp3T25=CItpTcTimerMtp3T25, PYSNMP_MODULE_ID=ciscoItpTextualConventions, CItpTcTimerMtp2T04E=CItpTcTimerMtp2T04E)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, constraints_union, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, iso, notification_type, counter32, counter64, unsigned32, module_identity, bits, object_identity, mib_identifier, time_ticks, integer32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'iso', 'NotificationType', 'Counter32', 'Counter64', 'Unsigned32', 'ModuleIdentity', 'Bits', 'ObjectIdentity', 'MibIdentifier', 'TimeTicks', 'Integer32', 'IpAddress') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') cisco_itp_textual_conventions = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 231)) ciscoItpTextualConventions.setRevisions(('2004-04-26 00:00', '2003-08-03 00:00', '2003-01-29 00:00', '2001-12-11 00:00', '2001-10-01 00:00')) if mibBuilder.loadTexts: ciscoItpTextualConventions.setLastUpdated('200404260000Z') if mibBuilder.loadTexts: ciscoItpTextualConventions.setOrganization('Cisco Systems, Inc.') class Citptcaclid(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(2700, 2999)) class Citptcclli(TextualConvention, OctetString): reference = 'Complete listings of geographical and geopolitical codes can be found in the BR 751-401-xxx series and BR 751-100-055, respectively.' status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 11) class Citptcdisplaypc(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 12) class Citptcencodingschemevalue(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 15) class Citptcglobaltitleselector(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('nai', 1), ('tt', 2), ('ttNpEs', 3), ('ttNpNaiEs', 4)) class Citptcglobaltitleselectorname(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 9) class Citptcgtaaddr(TextualConvention, OctetString): status = 'deprecated' subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 class Citptcgtalongaddr(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 64) class Citptcgtadisplay(TextualConvention, OctetString): status = 'deprecated' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 15) class Citptcgtadisplayzb(TextualConvention, OctetString): status = 'deprecated' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 15) class Citptcgtalongdisplay(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 64) class Citptcgtadisplaylen(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1, 15) class Citptcgtalongdisplaylen(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 64) class Citptcnetworkname(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 19) class Citptcinstancenumber(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 255) class Citptclinksetid(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 19) class Citptclinkslc(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 15) class Citptclinktype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('other', 1), ('serial', 2), ('sctpIp', 3), ('hsl', 4), ('virtual', 5)) class Citptcnai(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 255) class Citptcnetworkindicator(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('international', 0), ('internationatSpare', 1), ('national', 2), ('nationalSpare', 3)) class Citptcnumberingplan(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 255) class Citptcpointcode(TextualConvention, Unsigned32): reference = 'The SS7 network node address as specified in the International Telecommunication Union standard Q.708: Specifications of Signalling System No. 7 - Numbering of International Signalling Point Codes, and by ANSI T1.111.8 Numbering of Signalling Point Codes. GF 001-9001 - Technical Specifications of Signalling System No. 7 for National Telephone Network of China.' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 16777216) class Citptcpointcodemask(TextualConvention, Unsigned32): reference = 'The SS7 network node address as specified in the International Telecommunication Union standard Q.708: Specifications of Signalling System No. 7 - Numbering of International Signalling Point Codes, and by ANSI T1.111.8 Numbering of Signalling Point Codes.' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 16777216) class Citptcpointcodetype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('primary', 1), ('additional', 2), ('capability', 3), ('xua', 4)) class Citptcqos(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255)) class Citptcroutetablename(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 19) class Citptcserviceindicator(TextualConvention, Integer32): reference = 'ITU Q.704 Signalling network functions and messages section 14.2.1 Service indicator.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)) named_values = named_values(('snmm', 0), ('sntm', 1), ('spare2', 2), ('sccp', 3), ('tup', 4), ('isup', 5), ('dupc', 6), ('dupf', 7), ('mtup', 8), ('bisup', 9), ('sisup', 10), ('spare11', 11), ('spare12', 12), ('spare13', 13), ('spare14', 14), ('spare15', 15)) class Citptcsls(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 255) class Citptcss7Variant(TextualConvention, Integer32): reference = 'GF 001-9001 - Technical Specifications of Signalling System No. 7 for National Telephone Network of China.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('ansi', 1), ('itu', 2), ('china', 3)) class Citptcsubsystemnumber(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(2, 255)) class Citptcsubsystemnumbermask(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(2, 255) class Citptctableloadstatus(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('loadNotRequested', 1), ('loadInProgress', 2), ('loadComplete', 3), ('loadCompleteWithErrors', 4), ('loadFailed', 5)) class Citptctimermtp2T01(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(5000, 150000) class Citptctimermtp2T02(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 150000)) class Citptctimermtp2T03(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(1000, 14000)) class Citptctimermtp2T04E(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(400, 660)) class Citptctimermtp2T04N(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(2007, 9500)) class Citptctimermtp2T05(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(80, 120)) class Citptctimermtp2T06(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1000, 6000) class Citptctimermtp2T07(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 6000)) class Citptctimermtp3T01(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T02(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(700, 2000) class Citptctimermtp3T03(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T04(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T05(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T06(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T07(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(1000, 2000)) class Citptctimermtp3T08(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(800, 1200) class Citptctimermtp3T10(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(30000, 60000) class Citptctimermtp3T11(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(30000, 90000) class Citptctimermtp3T12(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(800, 1500) class Citptctimermtp3T13(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(800, 1500) class Citptctimermtp3T14(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(2000, 3000) class Citptctimermtp3T15(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(2000, 3000) class Citptctimermtp3T16(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1400, 2000) class Citptctimermtp3T17(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(800, 1500) class Citptctimermtp3T18(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1000, 31000) class Citptctimermtp3T19(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(67000, 600000) class Citptctimermtp3T20(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1000, 120000) class Citptctimermtp3T21(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(63000, 120000) class Citptctimermtp3T22(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(36000, 360000) class Citptctimermtp3T23(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(9000, 360000) class Citptctimermtp3T24(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 60000) class Citptctimermtp3T25(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(30000, 35000)) class Citptctimermtp3T26(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(12000, 15000)) class Citptctimermtp3T27(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 50000)) class Citptctimermtp3T28(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(3000, 35000)) class Citptctimermtp3T29(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(60000, 65000)) class Citptctimermtp3T30(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(30000, 35000)) class Citptctimermtp3T31(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(10000, 120000)) class Citptctimermtp3T32(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 120000)) class Citptctimermtp3T33(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(60000, 600000)) class Citptctimermtp3T34(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 120000)) class Citptctimerlinktest(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 12000)) class Citptctimerlinkmessage(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(30000, 90000)) class Citptctimerlinkactretry(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(60000, 90000)) class Citptctranslationtype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('tt', 1), ('ssn', 2)) class Citptcurl(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 255) class Citptcxuaname(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 12) mibBuilder.exportSymbols('CISCO-ITP-TC-MIB', CItpTcPointCodeMask=CItpTcPointCodeMask, CItpTcTimerMtp3T13=CItpTcTimerMtp3T13, CItpTcTimerMtp3T32=CItpTcTimerMtp3T32, CItpTcTimerMtp3T05=CItpTcTimerMtp3T05, CItpTcLinkType=CItpTcLinkType, CItpTcTimerMtp3T15=CItpTcTimerMtp3T15, CItpTcTimerMtp3T20=CItpTcTimerMtp3T20, CItpTcXuaName=CItpTcXuaName, CItpTcTimerMtp3T28=CItpTcTimerMtp3T28, CItpTcTimerMtp3T17=CItpTcTimerMtp3T17, CItpTcTimerMtp3T08=CItpTcTimerMtp3T08, CItpTcNumberingPlan=CItpTcNumberingPlan, CItpTcGlobalTitleSelector=CItpTcGlobalTitleSelector, CItpTcTimerMtp3T06=CItpTcTimerMtp3T06, CItpTcTimerMtp3T11=CItpTcTimerMtp3T11, CItpTcGtaDisplayZB=CItpTcGtaDisplayZB, CItpTcTimerMtp2T02=CItpTcTimerMtp2T02, CItpTcDisplayPC=CItpTcDisplayPC, CItpTcTimerMtp3T19=CItpTcTimerMtp3T19, CItpTcRouteTableName=CItpTcRouteTableName, CItpTcTimerMtp3T24=CItpTcTimerMtp3T24, CItpTcTimerMtp3T01=CItpTcTimerMtp3T01, CItpTcTimerMtp3T16=CItpTcTimerMtp3T16, CItpTcTimerMtp3T07=CItpTcTimerMtp3T07, CItpTcTimerMtp3T12=CItpTcTimerMtp3T12, CItpTcTimerMtp3T22=CItpTcTimerMtp3T22, CItpTcLinkSLC=CItpTcLinkSLC, CItpTcTimerMtp3T03=CItpTcTimerMtp3T03, CItpTcTimerMtp2T05=CItpTcTimerMtp2T05, CItpTcTimerMtp3T18=CItpTcTimerMtp3T18, CItpTcPointCode=CItpTcPointCode, CItpTcSubSystemNumber=CItpTcSubSystemNumber, CItpTcSubSystemNumberMask=CItpTcSubSystemNumberMask, ciscoItpTextualConventions=ciscoItpTextualConventions, CItpTcSls=CItpTcSls, CItpTcSs7Variant=CItpTcSs7Variant, CItpTcLinksetId=CItpTcLinksetId, CItpTcTableLoadStatus=CItpTcTableLoadStatus, CItpTcTimerMtp3T04=CItpTcTimerMtp3T04, CItpTcAclId=CItpTcAclId, CItpTcTimerMtp3T23=CItpTcTimerMtp3T23, CItpTcInstanceNumber=CItpTcInstanceNumber, CItpTcTimerMtp3T02=CItpTcTimerMtp3T02, CItpTcTimerMtp3T31=CItpTcTimerMtp3T31, CItpTcPointCodeType=CItpTcPointCodeType, CItpTcTimerLinkTest=CItpTcTimerLinkTest, CItpTcTimerMtp3T29=CItpTcTimerMtp3T29, CItpTcTimerMtp2T04N=CItpTcTimerMtp2T04N, CItpTcTimerMtp3T26=CItpTcTimerMtp3T26, CItpTcTimerMtp3T14=CItpTcTimerMtp3T14, CItpTcTimerLinkMessage=CItpTcTimerLinkMessage, CItpTcNetworkIndicator=CItpTcNetworkIndicator, CItpTcEncodingSchemeValue=CItpTcEncodingSchemeValue, CItpTcTimerLinkActRetry=CItpTcTimerLinkActRetry, CItpTcTimerMtp3T34=CItpTcTimerMtp3T34, CItpTcTimerMtp3T30=CItpTcTimerMtp3T30, CItpTcCLLI=CItpTcCLLI, CItpTcServiceIndicator=CItpTcServiceIndicator, CItpTcTimerMtp2T07=CItpTcTimerMtp2T07, CItpTcNetworkName=CItpTcNetworkName, CItpTcTimerMtp2T01=CItpTcTimerMtp2T01, CItpTcTranslationType=CItpTcTranslationType, CItpTcGlobalTitleSelectorName=CItpTcGlobalTitleSelectorName, CItpTcTimerMtp3T21=CItpTcTimerMtp3T21, CItpTcGtaLongDisplayLen=CItpTcGtaLongDisplayLen, CItpTcGtaDisplayLen=CItpTcGtaDisplayLen, CItpTcGtaLongDisplay=CItpTcGtaLongDisplay, CItpTcGtaLongAddr=CItpTcGtaLongAddr, CItpTcTimerMtp2T06=CItpTcTimerMtp2T06, CItpTcGtaDisplay=CItpTcGtaDisplay, CItpTcURL=CItpTcURL, CItpTcTimerMtp2T03=CItpTcTimerMtp2T03, CItpTcTimerMtp3T10=CItpTcTimerMtp3T10, CItpTcGtaAddr=CItpTcGtaAddr, CItpTcNAI=CItpTcNAI, CItpTcTimerMtp3T27=CItpTcTimerMtp3T27, CItpTcQos=CItpTcQos, CItpTcTimerMtp3T33=CItpTcTimerMtp3T33, CItpTcTimerMtp3T25=CItpTcTimerMtp3T25, PYSNMP_MODULE_ID=ciscoItpTextualConventions, CItpTcTimerMtp2T04E=CItpTcTimerMtp2T04E)
nums = [1, 2, 3, 4, 5] for num in nums: print(num+1) print('-------------') for i in range(3): print(i)
nums = [1, 2, 3, 4, 5] for num in nums: print(num + 1) print('-------------') for i in range(3): print(i)
class Node: def __init__(self, data: int): self.data: int = data self.next: Node = None class LinkedList: def __init__(self, head: Node = None): self.head = head def push(self, data: int): node = Node(data) if not self.head: self.head = node else: h = self.head while h.next: h = h.next h.next = node return self def __len__(self): head: Node = self.head count: int = 0 while head: count += 1 head = head.next return count
class Node: def __init__(self, data: int): self.data: int = data self.next: Node = None class Linkedlist: def __init__(self, head: Node=None): self.head = head def push(self, data: int): node = node(data) if not self.head: self.head = node else: h = self.head while h.next: h = h.next h.next = node return self def __len__(self): head: Node = self.head count: int = 0 while head: count += 1 head = head.next return count
# <html><body><pre> # RLinterface module """ This module provides a standard interface for computational experiments with reinforcement-learning agents and environments. The interface is designed to facilitate comparison of different agent designs and their application to different problems (environments). See http://abee.cs.ualberta.ca:7777/rl-twiki/bin/view/RLAI/RLI5. Class: RLinterface initialize with: rli = RLinterface(agentFunction, envFunction) where agentStartFunction(s) -> a agentStepFunction(s, r) -> a envStartFunction() -> s envStepFunction(a) -> s, r Methods: step() --> r, s, a steps(numSteps) --> r, s, a, r, s, a, r, s, a, ... episode([maxSteps]) --> s0, a0, r1, s1, a1, ..., rT, 'terminal' episodes(num, maxSteps [,maxStepsTotal]) --> s0, a0, r1, s1, a1, ..., rT, 'terminal', s0, a0 ... stepsQ(numSteps) like steps but no returned value (quicker and quieter) episodeQ([maxSteps]) like episode but no returned value (quicker and quieter) episodesQ(num, maxSteps [,maxTotal]) like episodes but no returned value (quicker and quieter) """ class RLinterface: # <a name="RLinterface"></a>[<a href="RLdoc.html#RLinterface">Doc</a>] """Object associating a reinforcement learning agent with its environment; stores next action; see http://rlai.cs.ualberta.ca/RLAI/RLinterface.html.""" def __init__(self, agentStartFn, agentStepFn, envStartFn, envStepFn): """Store functions defining agent and environment""" self.agentStartFunction = agentStartFn self.environmentStartFunction = envStartFn self.agentStepFunction = agentStepFn self.environmentStepFunction = envStepFn self.s = 'terminal' # force start of new episode self.action = None # the action to be used in the next step def step(self): # <a name="step"></a>[<a href="RLdoc.html#step">Doc</a>] """Run one step; this is the core function, used by all the others in RLinterface module.""" if self.s == 'terminal': # first step of an episode return self.startEpisode() else: return self.stepnext() def stepnext( self): # <a name="stepnext"></a>[<a href="RLdoc.html#stepnext">Doc</a>] """Run one step which is not a first step in an episode.""" self.s, r = self.environmentStepFunction(self.action) self.action = self.agentStepFunction(self.s, r) if self.s == 'terminal': # last step of an episode return r, self.s # no action but agent learned else: # regular step return r, self.s, self.action # action and learning def steps(self, numSteps): # <a name="steps"></a>[<a href="RLdoc.html#steps">Doc</a>] """Run for numSteps steps, regardless of episode endings. return the sequence of sensations, rewards and actions.""" oaseq = [] for step in range(numSteps): # run for numSteps steps new = self.step() oaseq.extend(new) return oaseq def startEpisode(self): "Call the environment and agent start functions" self.s = self.environmentStartFunction() self.action = self.agentStartFunction(self.s) return [self.s, self.action] def episode(self, maxSteps=1000000): # <a name="episode"></a>[<a href="RLdoc.html#episode">Doc</a>] """Run for one episode, to a maximum of maxSteps steps, and return the episode.""" oaseq = self.startEpisode() step = 1 while self.s != 'terminal' and step < maxSteps: # stop at end of episode or maxsteps new = self.stepnext() oaseq.extend(new) step += 1 return oaseq def episodes(self, numEpisodes, maxSteps=1000000, maxStepsTotal=1000000): # <a name="episodes"></a>[<a href="RLdoc.html#episodes">Doc</a>] """Generate numEpisodes episodes, each no more than maxSteps steps, with no more than maxStepsTotal total; return episodesin one sequence.""" totsteps = 0 oaseq = [] episodeNum = 0 while episodeNum < numEpisodes and totsteps < maxStepsTotal: # run for numEpisodes episodes oaseq = self.startEpisode() # start new episode steps = 1 totsteps += 1 episodeNum += 1 while self.s != 'terminal' and \ steps < maxSteps and totsteps < maxStepsTotal: # stop at end or too many steps new = self.stepnext() oaseq.extend(new) totsteps += 1 steps += 1 return oaseq def stepsQ(self, numSteps): # <a name="stepsQ"></a>[<a href="RLdoc.html#stepsQ">Doc</a>] """Same as steps but quicker, quieter, and returns nothing.""" for step in range(numSteps): # run for numSteps steps self.step() def episodeQ(self, maxSteps=1000000): # <a name="episodeQ"></a>[<a href="RLdoc.html#episodeQ">Doc</a>] """Same as episode but quicker, quieter, and returns nothing.""" self.startEpisode() step = 1 while self.s != 'terminal' and step < maxSteps: # stop at end of episode or maxsteps self.stepnext() step += 1 def episodesQ(self, numEpisodes, maxSteps=1000000, maxStepsTotal=1000000): # <a name="episodesQ"></a>[<a href="RLdoc.html#episodesQ">Doc</a>] """Same as episodes but quicker, quieter, and returns nothing.""" totsteps = 0 episodeNum = 0 while episodeNum < numEpisodes and totsteps < maxStepsTotal: # run for numEpisodes episodes self.startEpisode() # start new episode steps = 1 totsteps += 1 episodeNum += 1 while self.s != 'terminal' and \ steps < maxSteps and totsteps < maxStepsTotal: # stop at end or too many steps self.stepnext() totsteps += 1 steps += 1 def stepstaken(elist): "Returns the number of steps given the list of states, actions and rewards" return elist // 3 # </pre></body></html>
""" This module provides a standard interface for computational experiments with reinforcement-learning agents and environments. The interface is designed to facilitate comparison of different agent designs and their application to different problems (environments). See http://abee.cs.ualberta.ca:7777/rl-twiki/bin/view/RLAI/RLI5. Class: RLinterface initialize with: rli = RLinterface(agentFunction, envFunction) where agentStartFunction(s) -> a agentStepFunction(s, r) -> a envStartFunction() -> s envStepFunction(a) -> s, r Methods: step() --> r, s, a steps(numSteps) --> r, s, a, r, s, a, r, s, a, ... episode([maxSteps]) --> s0, a0, r1, s1, a1, ..., rT, 'terminal' episodes(num, maxSteps [,maxStepsTotal]) --> s0, a0, r1, s1, a1, ..., rT, 'terminal', s0, a0 ... stepsQ(numSteps) like steps but no returned value (quicker and quieter) episodeQ([maxSteps]) like episode but no returned value (quicker and quieter) episodesQ(num, maxSteps [,maxTotal]) like episodes but no returned value (quicker and quieter) """ class Rlinterface: """Object associating a reinforcement learning agent with its environment; stores next action; see http://rlai.cs.ualberta.ca/RLAI/RLinterface.html.""" def __init__(self, agentStartFn, agentStepFn, envStartFn, envStepFn): """Store functions defining agent and environment""" self.agentStartFunction = agentStartFn self.environmentStartFunction = envStartFn self.agentStepFunction = agentStepFn self.environmentStepFunction = envStepFn self.s = 'terminal' self.action = None def step(self): """Run one step; this is the core function, used by all the others in RLinterface module.""" if self.s == 'terminal': return self.startEpisode() else: return self.stepnext() def stepnext(self): """Run one step which is not a first step in an episode.""" (self.s, r) = self.environmentStepFunction(self.action) self.action = self.agentStepFunction(self.s, r) if self.s == 'terminal': return (r, self.s) else: return (r, self.s, self.action) def steps(self, numSteps): """Run for numSteps steps, regardless of episode endings. return the sequence of sensations, rewards and actions.""" oaseq = [] for step in range(numSteps): new = self.step() oaseq.extend(new) return oaseq def start_episode(self): """Call the environment and agent start functions""" self.s = self.environmentStartFunction() self.action = self.agentStartFunction(self.s) return [self.s, self.action] def episode(self, maxSteps=1000000): """Run for one episode, to a maximum of maxSteps steps, and return the episode.""" oaseq = self.startEpisode() step = 1 while self.s != 'terminal' and step < maxSteps: new = self.stepnext() oaseq.extend(new) step += 1 return oaseq def episodes(self, numEpisodes, maxSteps=1000000, maxStepsTotal=1000000): """Generate numEpisodes episodes, each no more than maxSteps steps, with no more than maxStepsTotal total; return episodesin one sequence.""" totsteps = 0 oaseq = [] episode_num = 0 while episodeNum < numEpisodes and totsteps < maxStepsTotal: oaseq = self.startEpisode() steps = 1 totsteps += 1 episode_num += 1 while self.s != 'terminal' and steps < maxSteps and (totsteps < maxStepsTotal): new = self.stepnext() oaseq.extend(new) totsteps += 1 steps += 1 return oaseq def steps_q(self, numSteps): """Same as steps but quicker, quieter, and returns nothing.""" for step in range(numSteps): self.step() def episode_q(self, maxSteps=1000000): """Same as episode but quicker, quieter, and returns nothing.""" self.startEpisode() step = 1 while self.s != 'terminal' and step < maxSteps: self.stepnext() step += 1 def episodes_q(self, numEpisodes, maxSteps=1000000, maxStepsTotal=1000000): """Same as episodes but quicker, quieter, and returns nothing.""" totsteps = 0 episode_num = 0 while episodeNum < numEpisodes and totsteps < maxStepsTotal: self.startEpisode() steps = 1 totsteps += 1 episode_num += 1 while self.s != 'terminal' and steps < maxSteps and (totsteps < maxStepsTotal): self.stepnext() totsteps += 1 steps += 1 def stepstaken(elist): """Returns the number of steps given the list of states, actions and rewards""" return elist // 3
def convert(file_1, file_2, file_out): def read_origin(file_in): # Dumps from sfrolov are raw arrays of bytes strictly following the internal address space of 1/2 of BRP unit. return file_in.read() if file_in is not None else bytes(2048) def write_derivative(bytes_4096, file_out): s = bytes_4096.hex('\t').expandtabs(2) # Writes bytes in rows of 8. file_out.write(''.join([s[i:i + 8*4].strip() + '\n' for i in range(0, len(s), 8*4)])) write_derivative(read_origin(file_1) + read_origin(file_2), file_out) convert(open('BRP2-1.BIN', 'rb'), open('BRP2-2.BIN', 'rb'), open('brp-2-directly.hex', 'w')) convert(open('BRP2-1A.BIN', 'rb'), open('BRP2-2A.BIN', 'rb'), open('brp-2-directly-bis.hex', 'w')) convert(open('brp3-0005-P2-1.BIN', 'rb'), open('brp3-0005-P2-2.BIN', 'rb'), open('brp-2.hex', 'w')) convert(open('brp3-0005-P2A-1.BIN', 'rb'), open('brp3-0005-P2A-2.BIN', 'rb'), open('brp-2-bis.hex', 'w')) convert(open('brp3-0005-P1-1.BIN', 'rb'), open('brp3-0005-P1-2.BIN', 'rb'), open('brp-3.hex', 'w')) convert(open('brp3-0005-P1A-1.BIN', 'rb'), open('brp3-0005-P1A-2.BIN', 'rb'), open('brp-3-bis.hex', 'w')) convert(open('BRP4-0006-P2-1.BIN', 'rb'), open('BRP4-0006-P2-2.BIN', 'rb'), open('brp-4.hex', 'w')) convert(open('BRP4-0006-P2-1A.BIN', 'rb'), open('BRP4-0006-P2-2A.BIN', 'rb'), open('brp-4-bis.hex', 'w')) convert(open('BRP4-0006-P1-1.BIN', 'rb'), open('BRP4-0006-P1-2.BIN', 'rb'), open('brp-5.hex', 'w')) convert(open('BRP4-0006-P1-1A.BIN', 'rb'), open('BRP4-0006-P1-2A.BIN', 'rb'), open('brp-5-bis.hex', 'w'))
def convert(file_1, file_2, file_out): def read_origin(file_in): return file_in.read() if file_in is not None else bytes(2048) def write_derivative(bytes_4096, file_out): s = bytes_4096.hex('\t').expandtabs(2) file_out.write(''.join([s[i:i + 8 * 4].strip() + '\n' for i in range(0, len(s), 8 * 4)])) write_derivative(read_origin(file_1) + read_origin(file_2), file_out) convert(open('BRP2-1.BIN', 'rb'), open('BRP2-2.BIN', 'rb'), open('brp-2-directly.hex', 'w')) convert(open('BRP2-1A.BIN', 'rb'), open('BRP2-2A.BIN', 'rb'), open('brp-2-directly-bis.hex', 'w')) convert(open('brp3-0005-P2-1.BIN', 'rb'), open('brp3-0005-P2-2.BIN', 'rb'), open('brp-2.hex', 'w')) convert(open('brp3-0005-P2A-1.BIN', 'rb'), open('brp3-0005-P2A-2.BIN', 'rb'), open('brp-2-bis.hex', 'w')) convert(open('brp3-0005-P1-1.BIN', 'rb'), open('brp3-0005-P1-2.BIN', 'rb'), open('brp-3.hex', 'w')) convert(open('brp3-0005-P1A-1.BIN', 'rb'), open('brp3-0005-P1A-2.BIN', 'rb'), open('brp-3-bis.hex', 'w')) convert(open('BRP4-0006-P2-1.BIN', 'rb'), open('BRP4-0006-P2-2.BIN', 'rb'), open('brp-4.hex', 'w')) convert(open('BRP4-0006-P2-1A.BIN', 'rb'), open('BRP4-0006-P2-2A.BIN', 'rb'), open('brp-4-bis.hex', 'w')) convert(open('BRP4-0006-P1-1.BIN', 'rb'), open('BRP4-0006-P1-2.BIN', 'rb'), open('brp-5.hex', 'w')) convert(open('BRP4-0006-P1-1A.BIN', 'rb'), open('BRP4-0006-P1-2A.BIN', 'rb'), open('brp-5-bis.hex', 'w'))
def binSearchClosest(list, key): if list==[]: return None elif len(list)==1: return 0 left=0; right=len(list)-1 # binary search while left<right: mid = (left + right) // 2 if list[mid]==key: # found return mid elif list[mid]>key: right=mid-1 else: left=mid+1 # left==right if left<=0: return 0 if left>=len(list)-1: return len(list)-1 if key > list[left]: if abs(list[left] - key) <= abs(list[left + 1] - key): return left else: return left + 1 else: if abs(list[left-1] - key) <= abs(list[left]-key): return left-1 else: return left # if left>right: # if abs(list[right]-key)<=abs(list[left]-key): # return right # else: # return left print(binSearchClosest([],3)) # None print(binSearchClosest([3],3)) # 0 print(binSearchClosest([1,2,5,7,8],3)) # 1 print(binSearchClosest([1,2,5,7,8],5)) # 2 print(binSearchClosest([1,2,5,7,8],6)) # 2 print(binSearchClosest([1,2,5,9,10],8)) # 3 print(binSearchClosest([1,2,5,9,10],4)) # 2 # while True: # n = int(input()) # print(binSearchClosest([1,2,5,9,10],n)) # import sys # # def binSearchClosest(list, key): # if list==[]: # return None # elif len(list)==1: # return 0 # left=0; right=len(list)-1 # # # binary search # while left<right: # mid = (left + right) // 2 # if list[mid]==key: # found # return mid # elif list[mid]>key: # right=mid-1 # else: # left=mid+1 # min=sys.maxsize; idx=-1 # for i in list: # if abs(i-key)<min: # min=abs(i-key) # idx=list.index(i) # return idx
def bin_search_closest(list, key): if list == []: return None elif len(list) == 1: return 0 left = 0 right = len(list) - 1 while left < right: mid = (left + right) // 2 if list[mid] == key: return mid elif list[mid] > key: right = mid - 1 else: left = mid + 1 if left <= 0: return 0 if left >= len(list) - 1: return len(list) - 1 if key > list[left]: if abs(list[left] - key) <= abs(list[left + 1] - key): return left else: return left + 1 elif abs(list[left - 1] - key) <= abs(list[left] - key): return left - 1 else: return left print(bin_search_closest([], 3)) print(bin_search_closest([3], 3)) print(bin_search_closest([1, 2, 5, 7, 8], 3)) print(bin_search_closest([1, 2, 5, 7, 8], 5)) print(bin_search_closest([1, 2, 5, 7, 8], 6)) print(bin_search_closest([1, 2, 5, 9, 10], 8)) print(bin_search_closest([1, 2, 5, 9, 10], 4))
harmonization_table = { "Trees": ["Trees", "CEO_Trees", "GO_Trees"], "Shrubland": ["Shrubland", "CEO_Shrubland", "GO_Shrub"], "Grassland": ["Grassland", "CEO_Grassland", "GO_Grass"], "Cropland": ["Cropland", "CEO_Cropland", "GO_Cultivated"], "Built-up": ["Built-up", "CEO_BuiltUp", "GO_BuiltUp"], "Barren": ["Barren / Sparse Vegetation", "CEO_Barren", "GO_Barren"], "Water": ["Open Water", "CEO_Water", "GO_Water"], } harmonization_table_lookup = {"World Cover": 0, "CEO": 1, "GLOBE": 2} ceo_to_worldcover_lookup = { "Trees_CanopyCover": "Trees", "bush/scrub": "Shrubland", "grass": "Grassland", "cultivated vegetation": "Cropland", "Water>lake/ponded/container": "Open Water", "Water>rivers/stream": "Open Water", "Water>irrigation ditch": "Open Water", "Water>treated pool": "Open Water", "Bare Ground": "Barren / Sparse Vegetation", "Building": "Built-up", "Impervious Surface (no building)": "Built-up", } def ceo_harmonization(df): df["CEO_BuiltUp"] = ( df["Land Cover Elements:Building"] + df["Land Cover Elements:Impervious Surface (no building)"] ) df["CEO_Trees"] = df["Land Cover Elements:Trees_CanopyCover"] df["CEO_Shrubland"] = df["Land Cover Elements:bush/scrub"] df["CEO_Grassland"] = df["Land Cover Elements:grass"] df["CEO_Cropland"] = df["Land Cover Elements:cultivated vegetation"] df["CEO_Water"] = ( df["Land Cover Elements:Water>treated pool"] + df["Land Cover Elements:Water>rivers/stream"] + df["Land Cover Elements:Water>irrigation ditch"] + df["Land Cover Elements:Water>lake/ponded/container"] ) df["CEO_Barren"] = df["Land Cover Elements:Bare Ground"]
harmonization_table = {'Trees': ['Trees', 'CEO_Trees', 'GO_Trees'], 'Shrubland': ['Shrubland', 'CEO_Shrubland', 'GO_Shrub'], 'Grassland': ['Grassland', 'CEO_Grassland', 'GO_Grass'], 'Cropland': ['Cropland', 'CEO_Cropland', 'GO_Cultivated'], 'Built-up': ['Built-up', 'CEO_BuiltUp', 'GO_BuiltUp'], 'Barren': ['Barren / Sparse Vegetation', 'CEO_Barren', 'GO_Barren'], 'Water': ['Open Water', 'CEO_Water', 'GO_Water']} harmonization_table_lookup = {'World Cover': 0, 'CEO': 1, 'GLOBE': 2} ceo_to_worldcover_lookup = {'Trees_CanopyCover': 'Trees', 'bush/scrub': 'Shrubland', 'grass': 'Grassland', 'cultivated vegetation': 'Cropland', 'Water>lake/ponded/container': 'Open Water', 'Water>rivers/stream': 'Open Water', 'Water>irrigation ditch': 'Open Water', 'Water>treated pool': 'Open Water', 'Bare Ground': 'Barren / Sparse Vegetation', 'Building': 'Built-up', 'Impervious Surface (no building)': 'Built-up'} def ceo_harmonization(df): df['CEO_BuiltUp'] = df['Land Cover Elements:Building'] + df['Land Cover Elements:Impervious Surface (no building)'] df['CEO_Trees'] = df['Land Cover Elements:Trees_CanopyCover'] df['CEO_Shrubland'] = df['Land Cover Elements:bush/scrub'] df['CEO_Grassland'] = df['Land Cover Elements:grass'] df['CEO_Cropland'] = df['Land Cover Elements:cultivated vegetation'] df['CEO_Water'] = df['Land Cover Elements:Water>treated pool'] + df['Land Cover Elements:Water>rivers/stream'] + df['Land Cover Elements:Water>irrigation ditch'] + df['Land Cover Elements:Water>lake/ponded/container'] df['CEO_Barren'] = df['Land Cover Elements:Bare Ground']
""" talking clock returns word version of 24hour time wisemonkey oranbusiness@gmail.com 20181219 github.com/wisehackermonkey run tests with command python -m nose """ hour_names = ["twelve","one","two","three","four","five","six","seven", "eight","nine","ten","eleven","twelve","thirteen","fourteen", "fifteen","sixteen","seventeen","eighteen","nineteen"] tens = ["XX","ten", "twenty", "thirty", "fourty", "fifty"] def talking_clock(time_str): hour,minute = time_str.split(":") return [int(hour[0:2]),int(minute[0:2])] def time_in_words(time_str): hour,minute = talking_clock(time_str) # 24:32 # thirty two daycycle = "" hour_word = "" min_word = "" if hour < 13 and hour >=0: daycycle = "am" if hour > 12 and hour <= 24: hour -= 12 daycycle = "pm" if hour == 0 and minute == 0 : return f"{hour_names[hour]} {daycycle}" elif minute == 0 : return f"{hour_names[hour]} {daycycle}" elif minute <=9: min_word = f"oh {hour_names[minute]}" elif minute > 19: digit_one = int(str(minute)[0]) digit_two = minute - (digit_one * 10) if digit_two == 0: min_word = f"{tens[digit_one]}" else: min_word = f"{tens[digit_one]} {hour_names[digit_two]}" else: min_word = hour_names[minute] return f"{hour_names[hour]} {min_word} {daycycle}" def time_sentense(time_str): return time_in_words(time_str) # print(time_in_words("15:30")) # if # print("pm") # elif x < 13 and x >=0: # print("am") # if x < 60 and x >= 0: def handle(req): """handle a request to the function Args: req (str): request body """ return time_in_words(req)
""" talking clock returns word version of 24hour time wisemonkey oranbusiness@gmail.com 20181219 github.com/wisehackermonkey run tests with command python -m nose """ hour_names = ['twelve', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'] tens = ['XX', 'ten', 'twenty', 'thirty', 'fourty', 'fifty'] def talking_clock(time_str): (hour, minute) = time_str.split(':') return [int(hour[0:2]), int(minute[0:2])] def time_in_words(time_str): (hour, minute) = talking_clock(time_str) daycycle = '' hour_word = '' min_word = '' if hour < 13 and hour >= 0: daycycle = 'am' if hour > 12 and hour <= 24: hour -= 12 daycycle = 'pm' if hour == 0 and minute == 0: return f'{hour_names[hour]} {daycycle}' elif minute == 0: return f'{hour_names[hour]} {daycycle}' elif minute <= 9: min_word = f'oh {hour_names[minute]}' elif minute > 19: digit_one = int(str(minute)[0]) digit_two = minute - digit_one * 10 if digit_two == 0: min_word = f'{tens[digit_one]}' else: min_word = f'{tens[digit_one]} {hour_names[digit_two]}' else: min_word = hour_names[minute] return f'{hour_names[hour]} {min_word} {daycycle}' def time_sentense(time_str): return time_in_words(time_str) def handle(req): """handle a request to the function Args: req (str): request body """ return time_in_words(req)
#!/usr/bin/env python # coding: utf-8 _JOINT_NAMES_1 = [ 'Waist', 'Torso', 'Neck', 'Head', 'LeftShoulder', 'LeftElbow', 'LeftWrist', 'LeftHand', 'RightShoulder', 'RightElbow', 'RightWrist', 'RightHand', 'LeftHip', 'LeftKnee', 'LeftAnkle', 'LeftFoot', 'RightHip', 'RightKnee', 'RightAnkle', 'RightFoot', ] _ARTICULATED_FIGURE_ANGLES_1 = { 'rshldr_theta': ("RightShoulder", "Neck", "RightElbow", 1, True), ## Right Shoulder 'lshldr_theta': ("LeftShoulder", "Neck", "LeftElbow", -1, True), ## Left Shoulder 'relbw_theta': ("RightElbow", "RightShoulder", "RightWrist", 1, True), ## Right Elbow 'lelbw_theta': ("LeftElbow", "LeftShoulder", "LeftWrist", -1, True), ## Left Elbow 'rwrst_theta': ("RightWrist", "RightElbow", "RightHand", 1, True), ## Right Wrist 'lwrst_theta': ("LeftWrist", "LeftElbow", "LeftHand", -1, True), ## Left Wrist 'rhip_theta': ("RightHip", "Waist", "RightKnee", 1, True), ## Right Hip 'lhip_theta': ("LeftHip", "Waist", "LeftKnee", -1, True), ## Left Hip 'rkn_theta': ("RightKnee", "RightHip", "RightAnkle", 1, True), ## Right Knee 'lkn_theta': ("LeftKnee", "LeftHip", "LeftAnkle", -1, True), ## Left knee 'rankl_theta': ("RightAnkle", "RightKnee", "RightFoot", 1, True), ## Right Ankle 'lankl_theta': ("LeftAnkle", "LeftKnee", "LeftFoot", -1, True), ## Left Ankle 'rnck_theta': ("Neck", "Head", "RightShoulder", 1, True), ## Neck/Right Shoulder 'lnck_theta': ("Neck", "Head", "LeftShoulder", -1, True), ## Neck/Left Shoulder 'rwst_theta': ("Waist", "Neck", "RightHip", 1, True), ## Waist/Right Hip 'lwst_theta': ("Waist", "Neck", "LeftHip", -1, True), ## Waist/Left Hip 'trso_theta': ("Torso", "Neck", "Waist", 1, True), ## Torso } _JOINT_NAMES_2 = [ 'nose', 'leye', 'reye', 'lear', 'rear', 'lshldr', 'rshldr', 'lelbw', 'relbw', 'lwrst', 'rwrst', 'lhip', 'rhip', 'lkn', 'rkn', 'lankl', 'rankl' ] _EXTENDED_JOINT_NAMES_2 = { 'neck': ('lshldr', 'rshldr', 'lshldr', 'rshldr'), ## Neck 'torso': ('lhip', 'rhip', 'lhip', 'rhip'), ## Torso 'vaxis': ('lhip', 'rhip', 'lshldr', 'rshldr'), ## Vertical Axis } _ARTICULATED_FIGURE_ANGLES_2 = { 'rswt_theta': ("neck", "rwrst", "torso", -1, True), ## Right Wrist->Neck->Torso 'lswt_theta': ("neck", "lwrst", "torso", 1, True), ## Left Wrist->Neck->Torso 'rahn_theta': ("rhip", "rankl", "nose", -1, True), ## Right Ankle->Hip->Nose 'lahn_theta': ("lhip", "lankl", "nose", 1, True), ## Left Ankle->Hip->Nose 'ratk_theta': ("torso", "rankl", "neck", -1, True), ## Right Ankle->Torso->Neck 'latk_theta': ("torso", "lankl", "neck", 1, True), ## Left Ankle->Torso->Neck 'tkf_theta': ("torso", "vaxis", "neck", 1, False), ## Neck->Torso->VerticalAxis (Backbone) } _JOINT_NAMES_3 = [ 'Head', 'Neck', 'SpineB', # Spine base - pelvis (waist) 'SpineM', # Spine mid - mid point (torso) 'SpineSh', # Spine shoulder - spine point in between the clavicles 'LeftShoulder', 'LeftElbow', 'LeftWrist', 'LeftHand', 'RightShoulder', 'RightElbow', 'RightWrist', 'RightHand', 'LeftHip', 'LeftKnee', 'LeftAnkle', 'LeftFoot', 'RightHip', 'RightKnee', 'RightAnkle', 'RightFoot', ] _EXTENDED_JOINT_NAMES_3 = { 'spinem_at_neck': ('SpineM', 'SpineM', 'Neck', 'Neck', 'SpineM', 'SpineM'), ## SpineM (torso) at neck height } _ARTICULATED_FIGURE_ANGLES_3 = { 'rshldr_theta': ("RightShoulder", "Neck", "RightElbow", 1, True), ## Right Shoulder 'lshldr_theta': ("LeftShoulder", "Neck", "LeftElbow", -1, True), ## Left Shoulder 'relbw_theta': ("RightElbow", "RightShoulder", "RightWrist", 1, True), ## Right Elbow 'lelbw_theta': ("LeftElbow", "LeftShoulder", "LeftWrist", -1, True), ## Left Elbow 'rwrst_theta': ("RightWrist", "RightElbow", "RightHand", 1, True), ## Right Wrist 'lwrst_theta': ("LeftWrist", "LeftElbow", "LeftHand", -1, True), ## Left Wrist 'rhip_theta': ("RightHip", "SpineB", "RightKnee", 1, True), ## Right Hip 'lhip_theta': ("LeftHip", "SpineB", "LeftKnee", -1, True), ## Left Hip 'rkn_theta': ("RightKnee", "RightHip", "RightAnkle", 1, True), ## Right Knee 'lkn_theta': ("LeftKnee", "LeftHip", "LeftAnkle", -1, True), ## Left knee 'rankl_theta': ("RightAnkle", "RightKnee", "RightFoot", 1, True), ## Right Ankle 'lankl_theta': ("LeftAnkle", "LeftKnee", "LeftFoot", -1, True), ## Left Ankle 'rnck_theta': ("Neck", "Head", "RightShoulder", 1, True), ## Neck/Right Shoulder 'lnck_theta': ("Neck", "Head", "LeftShoulder", -1, True), ## Neck/Left Shoulder 'rwst_theta': ("SpineB", "Neck", "RightHip", 1, True), ## SpineB/Right Hip 'lwst_theta': ("SpineB", "Neck", "LeftHip", -1, True), ## SpineB/Left Hip 'trso_theta': ("SpineM", "Neck", "SpineB", 1, True), ## SpineM 'tkf_theta': ("SpineM", "spinem_at_neck", "Neck", 1, False), ## Neck->Torso->TorsoAtNeckHeight }
_joint_names_1 = ['Waist', 'Torso', 'Neck', 'Head', 'LeftShoulder', 'LeftElbow', 'LeftWrist', 'LeftHand', 'RightShoulder', 'RightElbow', 'RightWrist', 'RightHand', 'LeftHip', 'LeftKnee', 'LeftAnkle', 'LeftFoot', 'RightHip', 'RightKnee', 'RightAnkle', 'RightFoot'] _articulated_figure_angles_1 = {'rshldr_theta': ('RightShoulder', 'Neck', 'RightElbow', 1, True), 'lshldr_theta': ('LeftShoulder', 'Neck', 'LeftElbow', -1, True), 'relbw_theta': ('RightElbow', 'RightShoulder', 'RightWrist', 1, True), 'lelbw_theta': ('LeftElbow', 'LeftShoulder', 'LeftWrist', -1, True), 'rwrst_theta': ('RightWrist', 'RightElbow', 'RightHand', 1, True), 'lwrst_theta': ('LeftWrist', 'LeftElbow', 'LeftHand', -1, True), 'rhip_theta': ('RightHip', 'Waist', 'RightKnee', 1, True), 'lhip_theta': ('LeftHip', 'Waist', 'LeftKnee', -1, True), 'rkn_theta': ('RightKnee', 'RightHip', 'RightAnkle', 1, True), 'lkn_theta': ('LeftKnee', 'LeftHip', 'LeftAnkle', -1, True), 'rankl_theta': ('RightAnkle', 'RightKnee', 'RightFoot', 1, True), 'lankl_theta': ('LeftAnkle', 'LeftKnee', 'LeftFoot', -1, True), 'rnck_theta': ('Neck', 'Head', 'RightShoulder', 1, True), 'lnck_theta': ('Neck', 'Head', 'LeftShoulder', -1, True), 'rwst_theta': ('Waist', 'Neck', 'RightHip', 1, True), 'lwst_theta': ('Waist', 'Neck', 'LeftHip', -1, True), 'trso_theta': ('Torso', 'Neck', 'Waist', 1, True)} _joint_names_2 = ['nose', 'leye', 'reye', 'lear', 'rear', 'lshldr', 'rshldr', 'lelbw', 'relbw', 'lwrst', 'rwrst', 'lhip', 'rhip', 'lkn', 'rkn', 'lankl', 'rankl'] _extended_joint_names_2 = {'neck': ('lshldr', 'rshldr', 'lshldr', 'rshldr'), 'torso': ('lhip', 'rhip', 'lhip', 'rhip'), 'vaxis': ('lhip', 'rhip', 'lshldr', 'rshldr')} _articulated_figure_angles_2 = {'rswt_theta': ('neck', 'rwrst', 'torso', -1, True), 'lswt_theta': ('neck', 'lwrst', 'torso', 1, True), 'rahn_theta': ('rhip', 'rankl', 'nose', -1, True), 'lahn_theta': ('lhip', 'lankl', 'nose', 1, True), 'ratk_theta': ('torso', 'rankl', 'neck', -1, True), 'latk_theta': ('torso', 'lankl', 'neck', 1, True), 'tkf_theta': ('torso', 'vaxis', 'neck', 1, False)} _joint_names_3 = ['Head', 'Neck', 'SpineB', 'SpineM', 'SpineSh', 'LeftShoulder', 'LeftElbow', 'LeftWrist', 'LeftHand', 'RightShoulder', 'RightElbow', 'RightWrist', 'RightHand', 'LeftHip', 'LeftKnee', 'LeftAnkle', 'LeftFoot', 'RightHip', 'RightKnee', 'RightAnkle', 'RightFoot'] _extended_joint_names_3 = {'spinem_at_neck': ('SpineM', 'SpineM', 'Neck', 'Neck', 'SpineM', 'SpineM')} _articulated_figure_angles_3 = {'rshldr_theta': ('RightShoulder', 'Neck', 'RightElbow', 1, True), 'lshldr_theta': ('LeftShoulder', 'Neck', 'LeftElbow', -1, True), 'relbw_theta': ('RightElbow', 'RightShoulder', 'RightWrist', 1, True), 'lelbw_theta': ('LeftElbow', 'LeftShoulder', 'LeftWrist', -1, True), 'rwrst_theta': ('RightWrist', 'RightElbow', 'RightHand', 1, True), 'lwrst_theta': ('LeftWrist', 'LeftElbow', 'LeftHand', -1, True), 'rhip_theta': ('RightHip', 'SpineB', 'RightKnee', 1, True), 'lhip_theta': ('LeftHip', 'SpineB', 'LeftKnee', -1, True), 'rkn_theta': ('RightKnee', 'RightHip', 'RightAnkle', 1, True), 'lkn_theta': ('LeftKnee', 'LeftHip', 'LeftAnkle', -1, True), 'rankl_theta': ('RightAnkle', 'RightKnee', 'RightFoot', 1, True), 'lankl_theta': ('LeftAnkle', 'LeftKnee', 'LeftFoot', -1, True), 'rnck_theta': ('Neck', 'Head', 'RightShoulder', 1, True), 'lnck_theta': ('Neck', 'Head', 'LeftShoulder', -1, True), 'rwst_theta': ('SpineB', 'Neck', 'RightHip', 1, True), 'lwst_theta': ('SpineB', 'Neck', 'LeftHip', -1, True), 'trso_theta': ('SpineM', 'Neck', 'SpineB', 1, True), 'tkf_theta': ('SpineM', 'spinem_at_neck', 'Neck', 1, False)}
F_BOIL_TEMP = 212.0 F_FREEZE_TEMP = 32.0 C_BOIL_TEMP = 100.0 C_FREEZE_TEMP = 0.0 F_RANGE = F_BOIL_TEMP - F_FREEZE_TEMP C_RANGE = C_BOIL_TEMP - C_FREEZE_TEMP F_C_RATIO = C_RANGE / F_RANGE def ftoc(f_temp): "Convert Fahrenheit temperature <f_temp> to Celsius and return it." c_temp = (f_temp - F_FREEZE_TEMP) * F_C_RATIO + C_FREEZE_TEMP return c_temp if __name__ == '__main__': for f_temp in [-40.0, 0.0, 32.0, 100.0, 212.0]: c_temp = ftoc(f_temp) print('%f F => %f C' % (f_temp, c_temp))
f_boil_temp = 212.0 f_freeze_temp = 32.0 c_boil_temp = 100.0 c_freeze_temp = 0.0 f_range = F_BOIL_TEMP - F_FREEZE_TEMP c_range = C_BOIL_TEMP - C_FREEZE_TEMP f_c_ratio = C_RANGE / F_RANGE def ftoc(f_temp): """Convert Fahrenheit temperature <f_temp> to Celsius and return it.""" c_temp = (f_temp - F_FREEZE_TEMP) * F_C_RATIO + C_FREEZE_TEMP return c_temp if __name__ == '__main__': for f_temp in [-40.0, 0.0, 32.0, 100.0, 212.0]: c_temp = ftoc(f_temp) print('%f F => %f C' % (f_temp, c_temp))
class Solution: def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ dict_s = {} dict_t = {} for c in s: if c not in dict_s: dict_s[c] = 1 else: dict_s[c] += 1 for c in t: if c not in dict_t: dict_t[c] = 1 else: dict_t[c] += 1 return dict_s == dict_t
class Solution: def is_anagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ dict_s = {} dict_t = {} for c in s: if c not in dict_s: dict_s[c] = 1 else: dict_s[c] += 1 for c in t: if c not in dict_t: dict_t[c] = 1 else: dict_t[c] += 1 return dict_s == dict_t
S = input() t = 0 for i in range(0, len(S), 5): if S[i:i + 5] == '(^^*)': t += 1 print(t, len(S) // 5 - t)
s = input() t = 0 for i in range(0, len(S), 5): if S[i:i + 5] == '(^^*)': t += 1 print(t, len(S) // 5 - t)
""" Insert sort O(n**2) """ def insert_sort(a): n = len(a) for top in range(1, n): k = top while k > 0 and a[k-1] > a[k]: a[k], a[k-1] = a[k-1], a[k] k -= 1 return a def test_insert_sort(): """ Tests """ assert(insert_sort([3, 2, 5, 7, 3, 4, 7, 0, 3, 1, 3, 6]) == [0, 1, 2, 3, 3, 3, 3, 4, 5, 6, 7, 7]) if __name__ == '__main__': print('Insert sort for [3,2,5,7,3,4,7,0,3,1,3,6]: ', insert_sort([3, 2, 5, 7, 3, 4, 7, 0, 3, 1, 3, 6]))
""" Insert sort O(n**2) """ def insert_sort(a): n = len(a) for top in range(1, n): k = top while k > 0 and a[k - 1] > a[k]: (a[k], a[k - 1]) = (a[k - 1], a[k]) k -= 1 return a def test_insert_sort(): """ Tests """ assert insert_sort([3, 2, 5, 7, 3, 4, 7, 0, 3, 1, 3, 6]) == [0, 1, 2, 3, 3, 3, 3, 4, 5, 6, 7, 7] if __name__ == '__main__': print('Insert sort for [3,2,5,7,3,4,7,0,3,1,3,6]: ', insert_sort([3, 2, 5, 7, 3, 4, 7, 0, 3, 1, 3, 6]))
class DotDict(dict): """A class that extends dict to allow accessing keys as attributes.""" def __init__(self, *args, **kwargs): """Initalize the DotDict. This method does nothing other that initialize the parent dict with the passed args and kwargs. """ super(DotDict, self).__init__(*args, **kwargs) def __getattr__(self, attribute_name): """Get the dict value of the key where the attribute_name == key.""" try: return self[attribute_name] except AttributeError: raise KeyError( f'KeyError: \'{attribute_name}\'' ) def __setattr__(self, attribute_name, attribute_value): """Set the dict value of the key where the attribute_name == key.""" self[attribute_name] = attribute_value class DefaultDotDict(dict): """A class that extends dict to allow accessing keys as attributes, with a default values for keys when they are accessed but not assigned. """ def __init__(self, default_value=None, *args, **kwargs): """Initalize the DefaultDotDict. This method sets the default value with the first argument then initialize the parent dict with the remaining passed args and kwargs. """ super(DefaultDotDict, self).__init__(*args, **kwargs) self.__default_value = default_value def __getattr__(self, attribute_name): """Get the dict value of the key where the attribute_name == key.""" if '_DefaultDotDict__default_value' == attribute_name: super.__setattr__(self, attribute_name, attribute_value) else: return self[attribute_name] def __setattr__(self, attribute_name, attribute_value): """Set the dict value of the key where the attribute_name == key.""" if '_DefaultDotDict__default_value' == attribute_name: super.__setattr__(self, attribute_name, attribute_value) else: self[attribute_name] = attribute_value def __missing__(self, key): """Set the missing key to the default value if it does not exist.""" self[key] = self.__default_value return self[key] class NestingDotDict(dict): """A class that extends dict to allow accessing keys as attributes. This class automatically converts and dict class to NestingDotDicts when accessed from this class. """ def __init__(self, *args, **kwargs): """Initalize the NestingDotDict. This method does nothing other that initialize the parent dict with the passed args and kwargs. """ super(NestingDotDict, self).__init__(*args, **kwargs) def __getattr__(self, attribute_name): """Get the dict value of the key where the attribute_name == key.""" try: value = self[attribute_name] if ( not isinstance(value, NestingDotDict) and isinstance(value, dict) ): # If the attribute is a dict, but not already a # NestingDotDict, then convert it to a NestingDotDict # and override the current attribute. value = NestingDotDict(value) self[attribute_name] = value return value except AttributeError: raise KeyError( f'KeyError: \'{attribute_name}\'' ) def __setattr__(self, attribute_name, attribute_value): """Set the dict value of the key where the attribute_name == key.""" if ( not isinstance(attribute_value, NestingDotDict) and isinstance(attribute_value, dict) ): attribute_value = NestingDotDict(attribute_value) self[attribute_name] = attribute_value
class Dotdict(dict): """A class that extends dict to allow accessing keys as attributes.""" def __init__(self, *args, **kwargs): """Initalize the DotDict. This method does nothing other that initialize the parent dict with the passed args and kwargs. """ super(DotDict, self).__init__(*args, **kwargs) def __getattr__(self, attribute_name): """Get the dict value of the key where the attribute_name == key.""" try: return self[attribute_name] except AttributeError: raise key_error(f"KeyError: '{attribute_name}'") def __setattr__(self, attribute_name, attribute_value): """Set the dict value of the key where the attribute_name == key.""" self[attribute_name] = attribute_value class Defaultdotdict(dict): """A class that extends dict to allow accessing keys as attributes, with a default values for keys when they are accessed but not assigned. """ def __init__(self, default_value=None, *args, **kwargs): """Initalize the DefaultDotDict. This method sets the default value with the first argument then initialize the parent dict with the remaining passed args and kwargs. """ super(DefaultDotDict, self).__init__(*args, **kwargs) self.__default_value = default_value def __getattr__(self, attribute_name): """Get the dict value of the key where the attribute_name == key.""" if '_DefaultDotDict__default_value' == attribute_name: super.__setattr__(self, attribute_name, attribute_value) else: return self[attribute_name] def __setattr__(self, attribute_name, attribute_value): """Set the dict value of the key where the attribute_name == key.""" if '_DefaultDotDict__default_value' == attribute_name: super.__setattr__(self, attribute_name, attribute_value) else: self[attribute_name] = attribute_value def __missing__(self, key): """Set the missing key to the default value if it does not exist.""" self[key] = self.__default_value return self[key] class Nestingdotdict(dict): """A class that extends dict to allow accessing keys as attributes. This class automatically converts and dict class to NestingDotDicts when accessed from this class. """ def __init__(self, *args, **kwargs): """Initalize the NestingDotDict. This method does nothing other that initialize the parent dict with the passed args and kwargs. """ super(NestingDotDict, self).__init__(*args, **kwargs) def __getattr__(self, attribute_name): """Get the dict value of the key where the attribute_name == key.""" try: value = self[attribute_name] if not isinstance(value, NestingDotDict) and isinstance(value, dict): value = nesting_dot_dict(value) self[attribute_name] = value return value except AttributeError: raise key_error(f"KeyError: '{attribute_name}'") def __setattr__(self, attribute_name, attribute_value): """Set the dict value of the key where the attribute_name == key.""" if not isinstance(attribute_value, NestingDotDict) and isinstance(attribute_value, dict): attribute_value = nesting_dot_dict(attribute_value) self[attribute_name] = attribute_value
class BasePayload(object): _name = "Default" _code = None _activated = False _conf = None _stager_path = "" def setHandler(self, IP, PORT): d = dict() d['SERVER'] = IP d['PORT'] = PORT self.setCode(d) def setActivated(self, status): self._activated = status def getActivated(self): return self._activated def readStager(self): with open(self._stager_path, 'r') as my_stage: return my_stage.read() def setCode(self, d=dict): self._code = self.readStager() self._code = self._code.format(**d) def getCode(self): return self._code
class Basepayload(object): _name = 'Default' _code = None _activated = False _conf = None _stager_path = '' def set_handler(self, IP, PORT): d = dict() d['SERVER'] = IP d['PORT'] = PORT self.setCode(d) def set_activated(self, status): self._activated = status def get_activated(self): return self._activated def read_stager(self): with open(self._stager_path, 'r') as my_stage: return my_stage.read() def set_code(self, d=dict): self._code = self.readStager() self._code = self._code.format(**d) def get_code(self): return self._code
n = int(input()) registered_users = dict() for i in range(n): command = input() tokens = command.split(' ') action = tokens[0] if action == 'register': username = tokens[1] licence_plate = tokens[2] if username not in registered_users: registered_users[username] = licence_plate print(f"{username} registered {licence_plate} successfully") else: print(f"ERROR: already registered with plate number {registered_users[username]}") elif action == 'unregister': username = tokens[1] if username not in registered_users: print(f"ERROR: user {username} not found") else: print(f"{username} unregistered successfully") registered_users.pop(username) for users, plates in registered_users.items(): print(f"{users} => {plates}")
n = int(input()) registered_users = dict() for i in range(n): command = input() tokens = command.split(' ') action = tokens[0] if action == 'register': username = tokens[1] licence_plate = tokens[2] if username not in registered_users: registered_users[username] = licence_plate print(f'{username} registered {licence_plate} successfully') else: print(f'ERROR: already registered with plate number {registered_users[username]}') elif action == 'unregister': username = tokens[1] if username not in registered_users: print(f'ERROR: user {username} not found') else: print(f'{username} unregistered successfully') registered_users.pop(username) for (users, plates) in registered_users.items(): print(f'{users} => {plates}')
# How do you read and write to a specific file : # We have a few different ways to do that using a file stream : # To open a file, you create a stream object # we determine the file name and the mode, most of time we leave the buffer_size ti the default stream = open(file_name, mode, buffer_size) # Modes : # r - Read (default) # w - truncate and write # W will overwrite the existing contents in the file # a - append if file exists # we use a (append) to add more lines without overwriting what is already there # x - write, fail if file exists # x allows you to write to the file, but this should be a new file that I am creating, and if the file exist i want to get an error back # + - Updating (read/write) # updating the file # t - Text (default) # b - Binary # for binary fiiles like images ## The most common scenario is to read from a file # Reading a file : # stream = open('demo.txt') # by default it is txt file and the mode assuming that I need to read the file print(stream.readable()) # Can we read ? print(stream.readable(1)) # Read the first charachter print(stream.readline()) # read a line stream.close() # Close the stream # How to write to a file ? # here we specify the mode 'w' for writing and t cause I am writing a text to the file (the default mode is 'r' reading) stream = open('output.txt', 'wt') # write txt stream.write('H') # using the write() method to one or more charachters # write a single string stream.writelines(['ello', 'World']) # write multiple strings stream.write('\n') # write new line names = ['Ali', 'Hani'] # You can creat a list of strings and pass it to the writelines stream.writelines(names) # write to the file the name list stream.close() # close the stream and flush the data ## Managing the stream : # You do not actually write to the file, you write to a file stream and then that stream goes to the file stream = open('output.txt', 'wt') stream.write('demo!') # I am writing this to the file stream # You can use the seek command to reposition where you are in the stream, so moving the cursor around for where things are being written stream.seek(0) # put the cursor right back at the beginning of the stream stream.write('cool') # So here if we do another write it is gonna overwrite cool instead of demo (so the demo word got overwritten by cool) # Flush command, flushes the data of the stream to the file stream.flush() # write the data to file stream.close() # flush and close the stream
stream = open(file_name, mode, buffer_size) print(stream.readable()) print(stream.readable(1)) print(stream.readline()) stream.close() stream = open('output.txt', 'wt') stream.write('H') stream.writelines(['ello', 'World']) stream.write('\n') names = ['Ali', 'Hani'] stream.writelines(names) stream.close() stream = open('output.txt', 'wt') stream.write('demo!') stream.seek(0) stream.write('cool') stream.flush() stream.close()
number_employee = int(input('')) hours = int(input()) value_work_hour = float(input()) salary = hours * value_work_hour print('NUMBER = {}'.format(number_employee)) print('SALARY = U$ {:.2f}'.format(salary))
number_employee = int(input('')) hours = int(input()) value_work_hour = float(input()) salary = hours * value_work_hour print('NUMBER = {}'.format(number_employee)) print('SALARY = U$ {:.2f}'.format(salary))
# dummy request object class DummyReq: # constructor def __init__(self,env,): # environ self.subprocess_env = env # header self.headers_in = {} # content-length if self.subprocess_env.has_key('CONTENT_LENGTH'): self.headers_in["content-length"] = self.subprocess_env['CONTENT_LENGTH'] # get remote host def get_remote_host(self): if self.subprocess_env.has_key('REMOTE_HOST'): return self.subprocess_env['REMOTE_HOST'] return "" # check key words def checkKeyWords(kwd,https=False,isBulk=False): if not https: if not 'secretKey' in kwd: return False,None,None,'no secretKey' secretKey = kwd['secretKey'] del kwd['secretKey'] else: # dummy secret key for https secretKey = None if isBulk: return True,secretKey,None,kwd elif 'baseURL' in kwd: baseURL = kwd['baseURL'] del kwd['baseURL'] return True,secretKey,baseURL,kwd elif 'url' in kwd: url = kwd['url'] del kwd['url'] return True,secretKey,url,kwd else: return False,None,'no URL or baseURL' # get FQANs def getFQANs(req): fqans = [] for tmpKey,tmpVal in req.subprocess_env.iteritems(): # compact credentials if tmpKey.startswith('GRST_CRED_'): # VOMS attribute if tmpVal.startswith('VOMS'): # FQAN fqan = tmpVal.split()[-1] # append fqans.append(fqan) # old style elif tmpKey.startswith('GRST_CONN_'): tmpItems = tmpVal.split(':') # FQAN if len(tmpItems)==2 and tmpItems[0]=='fqan': fqans.append(tmpItems[-1]) # return return fqans # check permission def hasPermission(req): # check hosts # TOBEDONE # host = req.get_remote_host() # check SSL if not req.subprocess_env.has_key('SSL_CLIENT_S_DN'): return False # check role fqans = getFQANs(req) for fqan in fqans: for rolePat in ['/atlas/Role=production']: if fqan.startswith(rolePat): return True return False
class Dummyreq: def __init__(self, env): self.subprocess_env = env self.headers_in = {} if self.subprocess_env.has_key('CONTENT_LENGTH'): self.headers_in['content-length'] = self.subprocess_env['CONTENT_LENGTH'] def get_remote_host(self): if self.subprocess_env.has_key('REMOTE_HOST'): return self.subprocess_env['REMOTE_HOST'] return '' def check_key_words(kwd, https=False, isBulk=False): if not https: if not 'secretKey' in kwd: return (False, None, None, 'no secretKey') secret_key = kwd['secretKey'] del kwd['secretKey'] else: secret_key = None if isBulk: return (True, secretKey, None, kwd) elif 'baseURL' in kwd: base_url = kwd['baseURL'] del kwd['baseURL'] return (True, secretKey, baseURL, kwd) elif 'url' in kwd: url = kwd['url'] del kwd['url'] return (True, secretKey, url, kwd) else: return (False, None, 'no URL or baseURL') def get_fqa_ns(req): fqans = [] for (tmp_key, tmp_val) in req.subprocess_env.iteritems(): if tmpKey.startswith('GRST_CRED_'): if tmpVal.startswith('VOMS'): fqan = tmpVal.split()[-1] fqans.append(fqan) elif tmpKey.startswith('GRST_CONN_'): tmp_items = tmpVal.split(':') if len(tmpItems) == 2 and tmpItems[0] == 'fqan': fqans.append(tmpItems[-1]) return fqans def has_permission(req): if not req.subprocess_env.has_key('SSL_CLIENT_S_DN'): return False fqans = get_fqa_ns(req) for fqan in fqans: for role_pat in ['/atlas/Role=production']: if fqan.startswith(rolePat): return True return False
#!/usr/bin/env python3 """Enumerates primes using the sieve of Eratosthenes. Verification: [0009](https://onlinejudge.u-aizu.ac.jp/status/users/hamukichi/submissions/1/0009/judge/4571021/Python3) """ def sieve_of_eratosthenes(end): """Enumerates prime numbers below the given integer `end`. Returns (as a tuple): - `is_prime`: a list of bool values. If an integer `i` is a prime number, then `is_prime[i]` is True. Otherwise `is_prime[i]` is False. - `primes`: a list of prime numbers below `end`. """ if end <= 1: raise ValueError("The integer `end` must be greater than one") is_prime = [True for _ in range(end)] is_prime[0] = False is_prime[1] = False primes = [] for i in range(2, end): if is_prime[i]: primes.append(i) for j in range(2 * i, end, i): is_prime[j] = False return is_prime, primes
"""Enumerates primes using the sieve of Eratosthenes. Verification: [0009](https://onlinejudge.u-aizu.ac.jp/status/users/hamukichi/submissions/1/0009/judge/4571021/Python3) """ def sieve_of_eratosthenes(end): """Enumerates prime numbers below the given integer `end`. Returns (as a tuple): - `is_prime`: a list of bool values. If an integer `i` is a prime number, then `is_prime[i]` is True. Otherwise `is_prime[i]` is False. - `primes`: a list of prime numbers below `end`. """ if end <= 1: raise value_error('The integer `end` must be greater than one') is_prime = [True for _ in range(end)] is_prime[0] = False is_prime[1] = False primes = [] for i in range(2, end): if is_prime[i]: primes.append(i) for j in range(2 * i, end, i): is_prime[j] = False return (is_prime, primes)
class Person(object): def __init__(self, fn, ln): self.first_name = fn self.last_name = ln
class Person(object): def __init__(self, fn, ln): self.first_name = fn self.last_name = ln
""" Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the chosen numbers is different. It is guaranteed that the number of unique combinations that sum up to target is less than 150 combinations for the given input. Example 1: Input: candidates = [2,3,6,7], target = 7 Output: [[2,2,3],[7]] Explanation: 2 and 3 are candidates, and 2 + 2 + 3 = 7. Note that 2 can be used multiple times. 7 is a candidate, and 7 = 7. These are the only two combinations. Example 2: Input: candidates = [2,3,5], target = 8 Output: [[2,2,2,2],[2,3,3],[3,5]] Example 3: Input: candidates = [2], target = 1 Output: [] Example 4: Input: candidates = [1], target = 1 Output: [[1]] Example 5: Input: candidates = [1], target = 2 Output: [[1,1]] Constraints: 1 <= candidates.length <= 30 1 <= candidates[i] <= 200 All elements of candidates are distinct. 1 <= target <= 500 """ class Solution: def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]: def find_combination(candidates, idx, target, curr, ret): if target < 0: return if target == 0: ret.append(list(curr)) return if idx >= len(candidates): return n = candidates[idx] i = 0 while i * n <= target: find_combination(candidates, idx + 1, target - i * n, curr + [n] * i, ret) i += 1 candidates.sort() ret = [] curr = [] find_combination(candidates, 0, target, curr, ret) return ret
""" Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the chosen numbers is different. It is guaranteed that the number of unique combinations that sum up to target is less than 150 combinations for the given input. Example 1: Input: candidates = [2,3,6,7], target = 7 Output: [[2,2,3],[7]] Explanation: 2 and 3 are candidates, and 2 + 2 + 3 = 7. Note that 2 can be used multiple times. 7 is a candidate, and 7 = 7. These are the only two combinations. Example 2: Input: candidates = [2,3,5], target = 8 Output: [[2,2,2,2],[2,3,3],[3,5]] Example 3: Input: candidates = [2], target = 1 Output: [] Example 4: Input: candidates = [1], target = 1 Output: [[1]] Example 5: Input: candidates = [1], target = 2 Output: [[1,1]] Constraints: 1 <= candidates.length <= 30 1 <= candidates[i] <= 200 All elements of candidates are distinct. 1 <= target <= 500 """ class Solution: def combination_sum(self, candidates: List[int], target: int) -> List[List[int]]: def find_combination(candidates, idx, target, curr, ret): if target < 0: return if target == 0: ret.append(list(curr)) return if idx >= len(candidates): return n = candidates[idx] i = 0 while i * n <= target: find_combination(candidates, idx + 1, target - i * n, curr + [n] * i, ret) i += 1 candidates.sort() ret = [] curr = [] find_combination(candidates, 0, target, curr, ret) return ret
class Solution: def minCostToMoveChips(self, chips: List[int]) -> int: count = [0] * 2 for chip in chips: count[chip % 2] += 1 return min(count[0], count[1])
class Solution: def min_cost_to_move_chips(self, chips: List[int]) -> int: count = [0] * 2 for chip in chips: count[chip % 2] += 1 return min(count[0], count[1])
#!/usr/bin/env python # encoding: utf-8 """ symmetric_tree.py Created by Shengwei on 2014-07-04. """ # https://oj.leetcode.com/problems/symmetric-tree/ # tags: medium, tree, recursion """ Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 But the following is not: 1 / \ 2 2 \ \ 3 3 Note: Bonus points if you could solve it both recursively and iteratively. confused what "{1,#,2,3}" means? > read more on how binary tree is serialized on OJ. """ # TODO: use iterative approach instead of recusive one # https://oj.leetcode.com/discuss/456/recusive-solution-symmetric-optimal-solution-inordertraversal # Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param root, a tree node # @return a boolean def isSymmetric(self, root): if root is None: return True def check_symmetry(left, right): if left is None and right is None: return True if not left or not right or left.val != right.val: return False return ( check_symmetry(left.left, right.right) and check_symmetry(left.right, right.left) ) return check_symmetry(root.left, root.right)
""" symmetric_tree.py Created by Shengwei on 2014-07-04. """ '\nGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).\n\nFor example, this binary tree is symmetric:\n\n 1\n / 2 2\n / \\ / 3 4 4 3\nBut the following is not:\n 1\n / 2 2\n \\ 3 3\nNote:\nBonus points if you could solve it both recursively and iteratively.\n\nconfused what "{1,#,2,3}" means? > read more on how binary tree is serialized on OJ.\n' class Solution: def is_symmetric(self, root): if root is None: return True def check_symmetry(left, right): if left is None and right is None: return True if not left or not right or left.val != right.val: return False return check_symmetry(left.left, right.right) and check_symmetry(left.right, right.left) return check_symmetry(root.left, root.right)
""" .. _compas_fea.app: ******************************************************************************** app ******************************************************************************** .. module:: compas_fea.app The compas_fea package PyQt and Vtk application. app === .. currentmodule:: compas_fea.app.app :mod:`compas_fea.app.app` .. autosummary:: :toctree: generated/ App """ __all__ = []
""" .. _compas_fea.app: ******************************************************************************** app ******************************************************************************** .. module:: compas_fea.app The compas_fea package PyQt and Vtk application. app === .. currentmodule:: compas_fea.app.app :mod:`compas_fea.app.app` .. autosummary:: :toctree: generated/ App """ __all__ = []
test = { 'name': 'q2_1', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> prof_names.num_columns 2 """, 'hidden': False, 'locked': False }, { 'code': r""" >>> prof_names.num_rows 71 """, 'hidden': False, 'locked': False }, { 'code': r""" >>> # Make sure that you have the correct column labels!; >>> np.asarray(prof_names.labels).item(1) != "name identity" True """, 'hidden': False, 'locked': False }, { 'code': r""" >>> # Make sure that you have the correct column labels!; >>> np.asarray(prof_names.labels).item(1) == "faculty" True """, 'hidden': False, 'locked': False } ], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest' } ] }
test = {'name': 'q2_1', 'points': 1, 'suites': [{'cases': [{'code': '\n >>> prof_names.num_columns\n 2\n ', 'hidden': False, 'locked': False}, {'code': '\n >>> prof_names.num_rows\n 71\n ', 'hidden': False, 'locked': False}, {'code': '\n >>> # Make sure that you have the correct column labels!;\n >>> np.asarray(prof_names.labels).item(1) != "name identity"\n True\n ', 'hidden': False, 'locked': False}, {'code': '\n >>> # Make sure that you have the correct column labels!;\n >>> np.asarray(prof_names.labels).item(1) == "faculty"\n True\n ', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
print("Welcome to the professor quality calculator by MillenniumWare!") print("Follow the prompts below to calculate how good your professor is!!!") print("************************") print("") name = input("Enter your professor's name! >") print("") print("On a scale of 1-5 (1 being horrible, 2 tolerable, 3 adequate, 4 pretty decent, 5 God-tier):") print("") diff = input("How difficult is your professor? >") diff = int(diff) if not diff in range(1,6): print("Invalid input") exit() nice = input("How nice of a person is your professor? >") nice = int(nice) if not nice in range(1,6): print("Invalid input") exit() clarity = input("How clear are your professor's explanations and other teaching aspects? >") clarity = int(clarity) if not clarity in range(1,6): print("Invalid input") exit() excite = input("How exciting does the professor make the class content? >") excite = int(excite) if not excite in range(1,6): print("Invalid input") exit() score = (excite + clarity +nice +diff)/4 print("Professor", name,"scored", score, "stars!")
print('Welcome to the professor quality calculator by MillenniumWare!') print('Follow the prompts below to calculate how good your professor is!!!') print('************************') print('') name = input("Enter your professor's name! >") print('') print('On a scale of 1-5 (1 being horrible, 2 tolerable, 3 adequate, 4 pretty decent, 5 God-tier):') print('') diff = input('How difficult is your professor? >') diff = int(diff) if not diff in range(1, 6): print('Invalid input') exit() nice = input('How nice of a person is your professor? >') nice = int(nice) if not nice in range(1, 6): print('Invalid input') exit() clarity = input("How clear are your professor's explanations and other teaching aspects? >") clarity = int(clarity) if not clarity in range(1, 6): print('Invalid input') exit() excite = input('How exciting does the professor make the class content? >') excite = int(excite) if not excite in range(1, 6): print('Invalid input') exit() score = (excite + clarity + nice + diff) / 4 print('Professor', name, 'scored', score, 'stars!')
""" Remove Duplicates from Sorted List II Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1->1->2->3, return 2->3. """ class ListNode(object): def __init__(self, x): self.val = x self.next = None #First solution, in-place class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ if not head or not head.next: return head while head and head.next and head.val==head.next.val: temp=head.val changed=False while head.next and head.next.val==temp: head=head.next changed=True if changed and head and head.val==temp: head=head.next if head and head.next: p1,p2=head,head.next else: return head while p1 and p2 and p2.next: changed=False while p2.val==p2.next.val: temp=p2.val changed=True p2=p2.next p1.next=p2.next p2=p2.next if not p2: return head if not p2.next: if p2.val==temp: p1.next=None return head else: return head if changed: if p2.val==temp: p1.next=p2.next p2=p2.next else: p1=p1.next p2=p2.next return head #Second solution, with dummy head class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ if not head or not head.next: return head dummy=ListNode(0) dummy.next=head pos=dummy dval=None while head: if head.next and head.val==head.next.val: dval=head.val if dval==None or head.val!=dval: pos.next=head pos=pos.next head=head.next pos.next=None return dummy.next
""" Remove Duplicates from Sorted List II Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1->1->2->3, return 2->3. """ class Listnode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def delete_duplicates(self, head): """ :type head: ListNode :rtype: ListNode """ if not head or not head.next: return head while head and head.next and (head.val == head.next.val): temp = head.val changed = False while head.next and head.next.val == temp: head = head.next changed = True if changed and head and (head.val == temp): head = head.next if head and head.next: (p1, p2) = (head, head.next) else: return head while p1 and p2 and p2.next: changed = False while p2.val == p2.next.val: temp = p2.val changed = True p2 = p2.next p1.next = p2.next p2 = p2.next if not p2: return head if not p2.next: if p2.val == temp: p1.next = None return head else: return head if changed: if p2.val == temp: p1.next = p2.next p2 = p2.next else: p1 = p1.next p2 = p2.next return head class Solution(object): def delete_duplicates(self, head): """ :type head: ListNode :rtype: ListNode """ if not head or not head.next: return head dummy = list_node(0) dummy.next = head pos = dummy dval = None while head: if head.next and head.val == head.next.val: dval = head.val if dval == None or head.val != dval: pos.next = head pos = pos.next head = head.next pos.next = None return dummy.next
def convert_fasta_to_string(filename): """Takes a genome FASTA and outputs a string of that genome Args: filename: fasta file Returns: string of the genome sequence """ assert filename.split('.')[-1] == 'fasta' # assert correct file type with open(filename) as f: sequence = ''.join(f.read().split('\n')[1:]).lower() # splits by lines, removes first line, joins lines return sequence
def convert_fasta_to_string(filename): """Takes a genome FASTA and outputs a string of that genome Args: filename: fasta file Returns: string of the genome sequence """ assert filename.split('.')[-1] == 'fasta' with open(filename) as f: sequence = ''.join(f.read().split('\n')[1:]).lower() return sequence
# -*- coding: utf-8 -*- """ Created on Sat Jan 27 16:27:44 2018 @author: positiveoutlier Guess the Number Game! The user thinks of an integer between 0 (inclusive) and 100 (not inclusive). The computer makes guesses, and the user will give it input - is its guess too high or too low? Using bisection search, the computer will guess the user's secret number! """ low = 0 high = 100 hint = 'l' print("Please think of a number between 0 and 100!") while hint != 'c': average = int((low + high)/2) print("Is your secret number " + str(average) + "?") print("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly.", end=' ') hint = input() if hint == 'l': low = average elif hint == 'h': high = average elif hint == 'c': print("Game over. Your secret number was: " + str(average)) break else: print("Sorry, I did not understand your input.")
""" Created on Sat Jan 27 16:27:44 2018 @author: positiveoutlier Guess the Number Game! The user thinks of an integer between 0 (inclusive) and 100 (not inclusive). The computer makes guesses, and the user will give it input - is its guess too high or too low? Using bisection search, the computer will guess the user's secret number! """ low = 0 high = 100 hint = 'l' print('Please think of a number between 0 and 100!') while hint != 'c': average = int((low + high) / 2) print('Is your secret number ' + str(average) + '?') print("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly.", end=' ') hint = input() if hint == 'l': low = average elif hint == 'h': high = average elif hint == 'c': print('Game over. Your secret number was: ' + str(average)) break else: print('Sorry, I did not understand your input.')
""" 49. How to filter every nth row in a dataframe? """ """ Difficulty Level: L1 """ """ From df, filter the 'Manufacturer', 'Model' and 'Type' for every 20th row starting from 1st (row 0). """ """ Input """ """ df = pd.read_csv('https://raw.githubusercontent.com/selva86/datasets/master/Cars93_miss.csv') """
""" 49. How to filter every nth row in a dataframe? """ '\nDifficulty Level: L1\n' "\nFrom df, filter the 'Manufacturer', 'Model' and 'Type' for every 20th row starting from 1st (row 0).\n" '\nInput\n' "\ndf = pd.read_csv('https://raw.githubusercontent.com/selva86/datasets/master/Cars93_miss.csv')\n"
""" # Gallery .. include:: ../gallery/legend/README.md .. include:: ../gallery/colorbar/README.md .. include:: ../gallery/subplots/README.md """
""" # Gallery .. include:: ../gallery/legend/README.md .. include:: ../gallery/colorbar/README.md .. include:: ../gallery/subplots/README.md """
def test_empty(): """ I should learn how to write tests """ pass
def test_empty(): """ I should learn how to write tests """ pass
class Solution(object): def atMostNGivenDigitSet(self, D, N): B = len(D) # bijective-base B S = str(N) K = len(S) A = [] # The largest valid number in bijective-base-B. for c in S: if c in D: A.append(D.index(c) + 1) else: i = bisect.bisect(D, c) A.append(i) # i = 1 + (largest index j with c >= D[j], or -1 if impossible) if i == 0: # subtract 1 for j in xrange(len(A) - 1, 0, -1): if A[j]: break A[j] += B A[j-1] -= 1 A.extend([B] * (K - len(A))) break ans = 0 for x in A: ans = ans * B + x return ans
class Solution(object): def at_most_n_given_digit_set(self, D, N): b = len(D) s = str(N) k = len(S) a = [] for c in S: if c in D: A.append(D.index(c) + 1) else: i = bisect.bisect(D, c) A.append(i) if i == 0: for j in xrange(len(A) - 1, 0, -1): if A[j]: break A[j] += B A[j - 1] -= 1 A.extend([B] * (K - len(A))) break ans = 0 for x in A: ans = ans * B + x return ans
""" 0528. Random Pick with Weight Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proportion to its weight. Note: 1 <= w.length <= 10000 1 <= w[i] <= 10^5 pickIndex will be called at most 10000 times. Example 1: Input: ["Solution","pickIndex"] [[[1]],[]] Output: [null,0] Example 2: Input: ["Solution","pickIndex","pickIndex","pickIndex","pickIndex","pickIndex"] [[[1,3]],[],[],[],[],[]] Output: [null,0,1,1,1,0] """ class Solution: def __init__(self, w: List[int]): self.w = w self.nums = range(len(w)) def pickIndex(self) -> int: return random.choices(self.nums, weights=self.w)[0] # Your Solution object will be instantiated and called as such: # obj = Solution(w) # param_1 = obj.pickIndex()
""" 0528. Random Pick with Weight Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proportion to its weight. Note: 1 <= w.length <= 10000 1 <= w[i] <= 10^5 pickIndex will be called at most 10000 times. Example 1: Input: ["Solution","pickIndex"] [[[1]],[]] Output: [null,0] Example 2: Input: ["Solution","pickIndex","pickIndex","pickIndex","pickIndex","pickIndex"] [[[1,3]],[],[],[],[],[]] Output: [null,0,1,1,1,0] """ class Solution: def __init__(self, w: List[int]): self.w = w self.nums = range(len(w)) def pick_index(self) -> int: return random.choices(self.nums, weights=self.w)[0]
#!/usr/bin/python3 def check(dx,dy): f=open("input","r") l=f.readlines() l=[l.strip('\n\r') for l in l] x=0 y=0 c=0 while(y<len(l)): if l[y][x]=='#': c+=1 x+=dx if x>=len(l[0]): x-=len(l[0]) y+=dy return (c) print("1: "+str( check(3,1))) print("2: "+str(check(1,1)*check(3,1)*check(5,1)*check(7,1)*check(1,2)))
def check(dx, dy): f = open('input', 'r') l = f.readlines() l = [l.strip('\n\r') for l in l] x = 0 y = 0 c = 0 while y < len(l): if l[y][x] == '#': c += 1 x += dx if x >= len(l[0]): x -= len(l[0]) y += dy return c print('1: ' + str(check(3, 1))) print('2: ' + str(check(1, 1) * check(3, 1) * check(5, 1) * check(7, 1) * check(1, 2)))
Import("env") # Access to global construction environment build_tag = env['PIOENV'] # Dump construction environment (for debug purpose) # print(env.Dump()) # Rename binary according to environnement/board # ex: firmware_esp32dev.bin or firmware_nodemcuv2.bin env.Replace(PROGNAME="firmware_%s" % build_tag)
import('env') build_tag = env['PIOENV'] env.Replace(PROGNAME='firmware_%s' % build_tag)
class Solution: def findRepeatedDnaSequences(self, s: str) -> List[str]: res = set() dic = {} for i in range(len(s)): temp = s[i:i+10] if temp not in dic: dic[temp]=1 else: res.add(temp) return res
class Solution: def find_repeated_dna_sequences(self, s: str) -> List[str]: res = set() dic = {} for i in range(len(s)): temp = s[i:i + 10] if temp not in dic: dic[temp] = 1 else: res.add(temp) return res
def make_exchange_name(namespace, exchange_type, extra=""): return "{}.{}".format(namespace, exchange_type) if not extra else "{}.{}@{}".format(namespace, exchange_type, extra) def make_channel_name(namespace, exchange_type): return "channel_on_{}.{}".format(namespace, exchange_type) def make_queue_name(namespace, exchange_type): return "queue_for_{}.{}".format(namespace, exchange_type) def make_direct_key(namespace): return "key_for_{}.direct".format(namespace) def make_rabbit_url(username, password, host, port): return f'amqp://{username}:{password}@{host}:{port}'
def make_exchange_name(namespace, exchange_type, extra=''): return '{}.{}'.format(namespace, exchange_type) if not extra else '{}.{}@{}'.format(namespace, exchange_type, extra) def make_channel_name(namespace, exchange_type): return 'channel_on_{}.{}'.format(namespace, exchange_type) def make_queue_name(namespace, exchange_type): return 'queue_for_{}.{}'.format(namespace, exchange_type) def make_direct_key(namespace): return 'key_for_{}.direct'.format(namespace) def make_rabbit_url(username, password, host, port): return f'amqp://{username}:{password}@{host}:{port}'
""" Test that the game controller is implemented properly. """ # Unit tests for the functions in tetris_controller require an interactive # form of testing like mock patch or event injection. We have verified that # the controller interacts with the game in an error-free manner, and that the # functions it calls run properly.
""" Test that the game controller is implemented properly. """
def build_model(): pass def save_model(): pass def load_model(model_path): pass def load_best_model(): pass
def build_model(): pass def save_model(): pass def load_model(model_path): pass def load_best_model(): pass
# Databricks notebook source print("hello world") # COMMAND ---------- print("let's make some changes and commit!") # COMMAND ----------
print('hello world') print("let's make some changes and commit!")
#!/usr/bin/env python # test print('test!')
print('test!')
N = int(input()) V = list(map(int, input().split())) V.sort() v_sum = (V[0]+V[1]) / (2**(len(V)-1)) for i in range(2, len(V)): v_sum += V[i] / (2**(len(V)-i)) print(v_sum)
n = int(input()) v = list(map(int, input().split())) V.sort() v_sum = (V[0] + V[1]) / 2 ** (len(V) - 1) for i in range(2, len(V)): v_sum += V[i] / 2 ** (len(V) - i) print(v_sum)
class KeyValue: def __init__(self, key: None, value: None): self.key = key self.value = value class HashMap: def __init__(self, size:int = 11): self.size: int = size self.items: list = [None] * self.size self.length: int = 0 def put(self, key, value): keyValue: KeyValue = KeyValue(key, value) hash: int = self.hash(key) if self.items[hash] is None: self.items[hash] = [keyValue] self.length += 1 else: count: int = 0 found: bool = False while count < len(self.items[hash]) and not found: if self.items[hash][count].key == keyValue.key: found = True else: count += 1 if found: self.items[hash][count] = keyValue else: self.items[hash].append(keyValue) self.length += 1 def get(self, key): hash: int = self.hash(key) if self.items[hash] is None: return None else: count: int = 0 found: bool = False while count < len(self.items[hash]) and not found: if self.items[hash][count].key == key: found = True else: count += 1 if found: return self.items[hash][count].value else: return None def contains(self, key)->bool: hash: int = self.hash(key) if self.items[hash] is None: return False else: count: int = 0 found: bool = False while count < len(self.items[hash]) and not found: if self.items[hash][count].key == key: found = True else: count += 1 return found def delete(self, key): hash: int = self.hash(key) if self.items[hash] is None: return None else: count: int = 0 found: bool = False while count < len(self.items[hash]) and not found: if self.items[hash][count].key == key: found = True else: count += 1 if found: return self.items[hash].pop(count) else: return None def hash(self, key): return key % self.size ht: HashMap = HashMap() ht.put(11, "string 11") ht.put(22, "string 22") ht.put(33, "string 33") ht.put(44, "string 44") ht.put(12, "string 12") ht.put(21, "string 21") print(ht.contains(11), ht.contains(33), ht.contains(21), ht.contains(117)) print(ht.delete(11).value) print(ht.contains(22)) print(ht.get(22))
class Keyvalue: def __init__(self, key: None, value: None): self.key = key self.value = value class Hashmap: def __init__(self, size: int=11): self.size: int = size self.items: list = [None] * self.size self.length: int = 0 def put(self, key, value): key_value: KeyValue = key_value(key, value) hash: int = self.hash(key) if self.items[hash] is None: self.items[hash] = [keyValue] self.length += 1 else: count: int = 0 found: bool = False while count < len(self.items[hash]) and (not found): if self.items[hash][count].key == keyValue.key: found = True else: count += 1 if found: self.items[hash][count] = keyValue else: self.items[hash].append(keyValue) self.length += 1 def get(self, key): hash: int = self.hash(key) if self.items[hash] is None: return None else: count: int = 0 found: bool = False while count < len(self.items[hash]) and (not found): if self.items[hash][count].key == key: found = True else: count += 1 if found: return self.items[hash][count].value else: return None def contains(self, key) -> bool: hash: int = self.hash(key) if self.items[hash] is None: return False else: count: int = 0 found: bool = False while count < len(self.items[hash]) and (not found): if self.items[hash][count].key == key: found = True else: count += 1 return found def delete(self, key): hash: int = self.hash(key) if self.items[hash] is None: return None else: count: int = 0 found: bool = False while count < len(self.items[hash]) and (not found): if self.items[hash][count].key == key: found = True else: count += 1 if found: return self.items[hash].pop(count) else: return None def hash(self, key): return key % self.size ht: HashMap = hash_map() ht.put(11, 'string 11') ht.put(22, 'string 22') ht.put(33, 'string 33') ht.put(44, 'string 44') ht.put(12, 'string 12') ht.put(21, 'string 21') print(ht.contains(11), ht.contains(33), ht.contains(21), ht.contains(117)) print(ht.delete(11).value) print(ht.contains(22)) print(ht.get(22))
class EllysTSP: def getMax(self, places): c = places.count('C') v = len(places) - c return 2 * min(c, v) + min(abs(c-v), 1)
class Ellystsp: def get_max(self, places): c = places.count('C') v = len(places) - c return 2 * min(c, v) + min(abs(c - v), 1)
students = [] def get_students_titlecase(): students_titlecase = [] for student in students: students_titlecase = student.title() return students_titlecase def print_students_titlecase(): student_titlecase = get_students_titlecase() print(students_titlecase) def add_student(name, student_id=223): student = {"name": name, "student_id": student_id} students.append(student) def var_args(name, **kwargs): print(name) print(kwargs["description"],kwargs["feedback"]) student_list = get_students_titlecase() add_student(name = "Mark",student_id= 15) var_args("mark",description="loves pyth",feedback=None)
students = [] def get_students_titlecase(): students_titlecase = [] for student in students: students_titlecase = student.title() return students_titlecase def print_students_titlecase(): student_titlecase = get_students_titlecase() print(students_titlecase) def add_student(name, student_id=223): student = {'name': name, 'student_id': student_id} students.append(student) def var_args(name, **kwargs): print(name) print(kwargs['description'], kwargs['feedback']) student_list = get_students_titlecase() add_student(name='Mark', student_id=15) var_args('mark', description='loves pyth', feedback=None)
def posicionesAdyacentes2(self,fila,columna,mapa): retorno=[] #Norte if(fila>=1 and (mapa[fila-1][columna]!="W" and mapa[fila-1][columna]!="X")): retorno.append([fila-1,columna]) #Este if(columna<=10 and (mapa[fila][columna+1]!="W" and mapa[fila][columna+1]!="X")): retorno.append([fila,columna+1]) #Sur if(fila<=10 and (mapa[fila+1][columna]!="W" and mapa[fila+1][columna]!="X")): retorno.append([fila+1,columna]) #Oeste if(columna>=1 and (mapa[fila][columna-1]!="W" and mapa[fila][columna-1]!="X")): retorno.append([fila,columna-1]) return retorno
def posiciones_adyacentes2(self, fila, columna, mapa): retorno = [] if fila >= 1 and (mapa[fila - 1][columna] != 'W' and mapa[fila - 1][columna] != 'X'): retorno.append([fila - 1, columna]) if columna <= 10 and (mapa[fila][columna + 1] != 'W' and mapa[fila][columna + 1] != 'X'): retorno.append([fila, columna + 1]) if fila <= 10 and (mapa[fila + 1][columna] != 'W' and mapa[fila + 1][columna] != 'X'): retorno.append([fila + 1, columna]) if columna >= 1 and (mapa[fila][columna - 1] != 'W' and mapa[fila][columna - 1] != 'X'): retorno.append([fila, columna - 1]) return retorno
for t in range(int(input())): a, b, threshold = map(int, input().split()) steps = 0 while a <= threshold and b <= threshold: if a < b: a += b else: b += a steps += 1 print(steps)
for t in range(int(input())): (a, b, threshold) = map(int, input().split()) steps = 0 while a <= threshold and b <= threshold: if a < b: a += b else: b += a steps += 1 print(steps)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def folly_deps(with_gflags = 1, with_syslibs = 0): if with_gflags: maybe( http_archive, name = "com_github_gflags_gflags", sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf", strip_prefix = "gflags-2.2.2", urls = [ "https://github.com/gflags/gflags/archive/v2.2.2.tar.gz", ], ) maybe( http_archive, name = "com_github_google_glog", strip_prefix = "glog-0.5.0", build_file_content = """ load(":bazel/glog.bzl", "glog_library") glog_library(with_gflags = {}) """.format(with_gflags), sha256 = "eede71f28371bf39aa69b45de23b329d37214016e2055269b3b5e7cfd40b59f5", urls = [ "https://github.com/google/glog/archive/v0.5.0.tar.gz", ], ) if with_syslibs: maybe( native.new_local_repository, name = "double-conversion", path = "/usr/include", build_file = "@com_github_storypku_rules_folly//third_party/syslibs:double-conversion.BUILD", ) else: maybe( http_archive, name = "double-conversion", strip_prefix = "double-conversion-3.1.5", sha256 = "a63ecb93182134ba4293fd5f22d6e08ca417caafa244afaa751cbfddf6415b13", urls = ["https://github.com/google/double-conversion/archive/v3.1.5.tar.gz"], ) if with_syslibs: maybe( native.new_local_repository, name = "zlib", path = "/usr/include", build_file = "@com_github_storypku_rules_folly//third_party/syslibs:zlib.BUILD", ) else: maybe( http_archive, name = "zlib", sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff", strip_prefix = "zlib-1.2.11", build_file = "@com_github_storypku_rules_folly//third_party/zlib:zlib.BUILD", urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"], ) if with_syslibs: maybe( native.new_local_repository, name = "com_github_google_snappy", path = "/usr/include", build_file = "@com_github_storypku_rules_folly//third_party/syslibs:snappy.BUILD", ) else: maybe( http_archive, name = "com_github_google_snappy", build_file = "@com_github_storypku_rules_folly//third_party/snappy:snappy.BUILD", strip_prefix = "snappy-1.1.9", sha256 = "75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7", urls = [ "https://github.com/google/snappy/archive/1.1.9.tar.gz", ], ) # ===== libevent (libevent.org) dependency ===== if with_syslibs: maybe( native.new_local_repository, name = "com_github_libevent_libevent", path = "/usr/include", build_file = "@com_github_storypku_rules_folly//third_party/syslibs:libevent.BUILD", ) else: maybe( http_archive, name = "com_github_libevent_libevent", sha256 = "316ddb401745ac5d222d7c529ef1eada12f58f6376a66c1118eee803cb70f83d", urls = ["https://github.com/libevent/libevent/archive/release-2.1.8-stable.tar.gz"], strip_prefix = "libevent-release-2.1.8-stable", build_file = "@com_github_storypku_rules_folly//third_party/libevent:libevent.BUILD", ) maybe( http_archive, name = "com_github_fmtlib_fmt", urls = ["https://github.com/fmtlib/fmt/archive/8.0.1.tar.gz"], sha256 = "b06ca3130158c625848f3fb7418f235155a4d389b2abc3a6245fb01cb0eb1e01", strip_prefix = "fmt-8.0.1", build_file = "@com_github_storypku_rules_folly//third_party/fmtlib:fmtlib.BUILD", ) # Note(jiaming): # Here we choose the latest (as of 08.04.2021) version of rules_boost as # AArch64 support was only complete in recent versions. We had to resolve # all build errors caused by API changes since Boost 1.69+ and refactored # HttpProxy implementation as it was dependent on Boost.Beast. # PS: Use of git_repository is discouraged. Ref: # https://docs.bazel.build/versions/main/external.html#repository-rules rules_boost_commit = "fb9f3c9a6011f966200027843d894923ebc9cd0b" maybe( http_archive, name = "com_github_nelhage_rules_boost", sha256 = "046f774b185436d506efeef8be6979f2c22f1971bfebd0979bafa28088bf28d0", strip_prefix = "rules_boost-{}".format(rules_boost_commit), urls = [ "https://github.com/nelhage/rules_boost/archive/{}.tar.gz".format(rules_boost_commit), ], ) maybe( native.new_local_repository, name = "openssl", path = "/usr/include", build_file = "@com_github_storypku_rules_folly//third_party/syslibs:openssl.BUILD", ) gtest_version = "1.11.0" maybe( http_archive, name = "com_google_googletest", sha256 = "b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5", strip_prefix = "googletest-release-{}".format(gtest_version), urls = [ "https://github.com/google/googletest/archive/refs/tags/release-{}.tar.gz".format(gtest_version), ], ) # NOTE(storypku): The following failed with error: # external/folly/folly/ssl/OpenSSLVersionFinder.h:29:26: # error: 'OPENSSL_VERSION' was not declared in this scope # 29 | return OpenSSL_version(OPENSSL_VERSION); # maybe( # http_archive, # name = "openssl", # sha256 = "17f5e63875d592ac8f596a6c3d579978a7bf943247c1f8cbc8051935ea42b3e5", # strip_prefix = "boringssl-b3d98af9c80643b0a36d495693cc0e669181c0af", # urls = ["https://github.com/google/boringssl/archive/b3d98af9c80643b0a36d495693cc0e669181c0af.tar.gz"], # ) # TODO(storypku): Ref: https://github.com/google/glog/blob/master/bazel/glog.bzl folly_version = "2021.09.06.00" http_archive( name = "folly", # build_file = "@com_github_storypku_rules_folly//third_party/folly:folly.BUILD", build_file_content = """ load("@com_github_storypku_rules_folly//bazel:folly.bzl", "folly_library") package(default_visibility = ["//visibility:public"]) folly_library(with_gflags = {}) """.format(with_gflags), strip_prefix = "folly-{}".format(folly_version), sha256 = "8fb0a5392cbf6da1233c59933fff880dd77bbe61e0e2d578347ff436c776eda5", urls = [ "https://github.com/facebook/folly/archive/v{}.tar.gz".format(folly_version), ], patch_args = ["-p1"], patches = [ "@com_github_storypku_rules_folly//third_party/folly:p00_double_conversion_include_fix.patch", ], )
load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive') load('@bazel_tools//tools/build_defs/repo:utils.bzl', 'maybe') def folly_deps(with_gflags=1, with_syslibs=0): if with_gflags: maybe(http_archive, name='com_github_gflags_gflags', sha256='34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf', strip_prefix='gflags-2.2.2', urls=['https://github.com/gflags/gflags/archive/v2.2.2.tar.gz']) maybe(http_archive, name='com_github_google_glog', strip_prefix='glog-0.5.0', build_file_content='\nload(":bazel/glog.bzl", "glog_library")\nglog_library(with_gflags = {})\n'.format(with_gflags), sha256='eede71f28371bf39aa69b45de23b329d37214016e2055269b3b5e7cfd40b59f5', urls=['https://github.com/google/glog/archive/v0.5.0.tar.gz']) if with_syslibs: maybe(native.new_local_repository, name='double-conversion', path='/usr/include', build_file='@com_github_storypku_rules_folly//third_party/syslibs:double-conversion.BUILD') else: maybe(http_archive, name='double-conversion', strip_prefix='double-conversion-3.1.5', sha256='a63ecb93182134ba4293fd5f22d6e08ca417caafa244afaa751cbfddf6415b13', urls=['https://github.com/google/double-conversion/archive/v3.1.5.tar.gz']) if with_syslibs: maybe(native.new_local_repository, name='zlib', path='/usr/include', build_file='@com_github_storypku_rules_folly//third_party/syslibs:zlib.BUILD') else: maybe(http_archive, name='zlib', sha256='629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff', strip_prefix='zlib-1.2.11', build_file='@com_github_storypku_rules_folly//third_party/zlib:zlib.BUILD', urls=['https://github.com/madler/zlib/archive/v1.2.11.tar.gz']) if with_syslibs: maybe(native.new_local_repository, name='com_github_google_snappy', path='/usr/include', build_file='@com_github_storypku_rules_folly//third_party/syslibs:snappy.BUILD') else: maybe(http_archive, name='com_github_google_snappy', build_file='@com_github_storypku_rules_folly//third_party/snappy:snappy.BUILD', strip_prefix='snappy-1.1.9', sha256='75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7', urls=['https://github.com/google/snappy/archive/1.1.9.tar.gz']) if with_syslibs: maybe(native.new_local_repository, name='com_github_libevent_libevent', path='/usr/include', build_file='@com_github_storypku_rules_folly//third_party/syslibs:libevent.BUILD') else: maybe(http_archive, name='com_github_libevent_libevent', sha256='316ddb401745ac5d222d7c529ef1eada12f58f6376a66c1118eee803cb70f83d', urls=['https://github.com/libevent/libevent/archive/release-2.1.8-stable.tar.gz'], strip_prefix='libevent-release-2.1.8-stable', build_file='@com_github_storypku_rules_folly//third_party/libevent:libevent.BUILD') maybe(http_archive, name='com_github_fmtlib_fmt', urls=['https://github.com/fmtlib/fmt/archive/8.0.1.tar.gz'], sha256='b06ca3130158c625848f3fb7418f235155a4d389b2abc3a6245fb01cb0eb1e01', strip_prefix='fmt-8.0.1', build_file='@com_github_storypku_rules_folly//third_party/fmtlib:fmtlib.BUILD') rules_boost_commit = 'fb9f3c9a6011f966200027843d894923ebc9cd0b' maybe(http_archive, name='com_github_nelhage_rules_boost', sha256='046f774b185436d506efeef8be6979f2c22f1971bfebd0979bafa28088bf28d0', strip_prefix='rules_boost-{}'.format(rules_boost_commit), urls=['https://github.com/nelhage/rules_boost/archive/{}.tar.gz'.format(rules_boost_commit)]) maybe(native.new_local_repository, name='openssl', path='/usr/include', build_file='@com_github_storypku_rules_folly//third_party/syslibs:openssl.BUILD') gtest_version = '1.11.0' maybe(http_archive, name='com_google_googletest', sha256='b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5', strip_prefix='googletest-release-{}'.format(gtest_version), urls=['https://github.com/google/googletest/archive/refs/tags/release-{}.tar.gz'.format(gtest_version)]) folly_version = '2021.09.06.00' http_archive(name='folly', build_file_content='\nload("@com_github_storypku_rules_folly//bazel:folly.bzl", "folly_library")\npackage(default_visibility = ["//visibility:public"])\nfolly_library(with_gflags = {})\n'.format(with_gflags), strip_prefix='folly-{}'.format(folly_version), sha256='8fb0a5392cbf6da1233c59933fff880dd77bbe61e0e2d578347ff436c776eda5', urls=['https://github.com/facebook/folly/archive/v{}.tar.gz'.format(folly_version)], patch_args=['-p1'], patches=['@com_github_storypku_rules_folly//third_party/folly:p00_double_conversion_include_fix.patch'])
n = int(input().strip()) x = [int(i) for i in input().strip().split(' ')] w = [int(i) for i in input().strip().split(' ')] s = sum([x[i]*w[i] for i in range(0,n)]) wmean = s/sum(w) print("{:0.1f}".format(wmean))
n = int(input().strip()) x = [int(i) for i in input().strip().split(' ')] w = [int(i) for i in input().strip().split(' ')] s = sum([x[i] * w[i] for i in range(0, n)]) wmean = s / sum(w) print('{:0.1f}'.format(wmean))
# Solution-1 - Lisa Murray # User needs to enter integer number = input("Please enter a positive integer:") # Number needs to be converted from string format to number format, and add 1 to inclued the number chosen num2 = int(number) + 1 # Creating variable for sum sum = 0 # create loop to loop through all numbers up to number user entered for i in range(num2): sum += i # Print the sum to the screen print (sum)
number = input('Please enter a positive integer:') num2 = int(number) + 1 sum = 0 for i in range(num2): sum += i print(sum)
words = ('Oi', 'eu', 'aprendo', 'Python', 'pelo', 'Curso', 'em', 'video') for p in words: print(f'\nNa palavra {p.upper()} temos ', end='') for letra in p: if letra.lower() in 'aeiou': print(letra, end=' ')
words = ('Oi', 'eu', 'aprendo', 'Python', 'pelo', 'Curso', 'em', 'video') for p in words: print(f'\nNa palavra {p.upper()} temos ', end='') for letra in p: if letra.lower() in 'aeiou': print(letra, end=' ')
# Event: LCCS Python Fundamental Skills Workshop # Date: May 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: A program to calculate the average height of 5 people # Version: 1.0 (This program contains deliberate errors) print("Average height calculator") print("=========================") # Read in the 5 values h1 = int(input("Enter first height (cm): ")) h2 = int(input("Enter second height (cm): ")) h3 = int(input("Enter third height (cm): ")) h4 = int(input("Enter fourth height (cm): ")) h5 = int(input("Enter fifth height (cm): ")) # Calculate the average height avgHeigth = h1+h2+h3+h4+h3/5 # Display the result print("The average height is ", avgHeigth, "cm")
print('Average height calculator') print('=========================') h1 = int(input('Enter first height (cm): ')) h2 = int(input('Enter second height (cm): ')) h3 = int(input('Enter third height (cm): ')) h4 = int(input('Enter fourth height (cm): ')) h5 = int(input('Enter fifth height (cm): ')) avg_heigth = h1 + h2 + h3 + h4 + h3 / 5 print('The average height is ', avgHeigth, 'cm')
class Solution: # @param word1 & word2: Two string. # @return: The minimum number of steps. def minDistance(self, word1, word2): # write your code here if word1 == word2: return 0 if len(word1) == 0: return len(word2) if len(word2) == 0: return len(word1) m, n = len(word1), len(word2) d = [[0 for j in xrange(n + 1)] for i in xrange(m + 1)] for i in xrange(0, m + 1): d[i][0] = i for j in xrange(0, n + 1): d[0][j] = j for i in xrange(1, m + 1): for j in xrange(1, n + 1): if word1[i - 1] == word2[j - 1]: d[i][j] = d[i - 1][j - 1] else: d[i][j] = min(d[i - 1][j], d[i][j - 1], d[i - 1][j - 1]) + 1 return d[m][n]
class Solution: def min_distance(self, word1, word2): if word1 == word2: return 0 if len(word1) == 0: return len(word2) if len(word2) == 0: return len(word1) (m, n) = (len(word1), len(word2)) d = [[0 for j in xrange(n + 1)] for i in xrange(m + 1)] for i in xrange(0, m + 1): d[i][0] = i for j in xrange(0, n + 1): d[0][j] = j for i in xrange(1, m + 1): for j in xrange(1, n + 1): if word1[i - 1] == word2[j - 1]: d[i][j] = d[i - 1][j - 1] else: d[i][j] = min(d[i - 1][j], d[i][j - 1], d[i - 1][j - 1]) + 1 return d[m][n]