content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
input() l = [i for i,j in enumerate(input()) if j =='.'] ans = 11111111 for i in range(len(l)-1): ans = min(ans, l[i+1] - l[i]) print(ans - 1)
input() l = [i for (i, j) in enumerate(input()) if j == '.'] ans = 11111111 for i in range(len(l) - 1): ans = min(ans, l[i + 1] - l[i]) print(ans - 1)
coins = 0 price = round(float(input()), 2) while price != 0: if price >= 2: price -= 2 coins += 1 elif price >= 1: price -= 1 coins += 1 elif price >= 0.50: price -= 0.50 coins += 1 elif price >= 0.20: price -= 0.20 coins += 1 elif price >= 0.10: price -= 0.10 coins += 1 elif price >= 0.05: price -= 0.05 coins += 1 elif price >= 0.02: price -= 0.02 coins += 1 elif price >= 0.01: price -= 0.01 coins += 1 price = round(price, 2) print (coins)
coins = 0 price = round(float(input()), 2) while price != 0: if price >= 2: price -= 2 coins += 1 elif price >= 1: price -= 1 coins += 1 elif price >= 0.5: price -= 0.5 coins += 1 elif price >= 0.2: price -= 0.2 coins += 1 elif price >= 0.1: price -= 0.1 coins += 1 elif price >= 0.05: price -= 0.05 coins += 1 elif price >= 0.02: price -= 0.02 coins += 1 elif price >= 0.01: price -= 0.01 coins += 1 price = round(price, 2) print(coins)
{ "targets": [{ "target_name": "krb5", "sources": [ "./src/module.cc", "./src/krb5_bind.cc", "./src/gss_bind.cc", "./src/base64.cc" ], 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"], 'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"], 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ], "conditions": [ [ "OS=='win'", { "variables": { "KRB_PATH": "/Program Files/MIT/Kerberos" }, "include_dirs": ["<(KRB_PATH)/include", "<(KRB_PATH)/include/gssapi", "src"], "conditions": [ [ "target_arch=='x64'", { "msvs_settings": { "VCCLCompilerTool": { "AdditionalOptions": ["/MP /EHsc"] }, "VCLinkerTool": { "AdditionalLibraryDirectories": ["<(KRB_PATH)/lib/amd64/"] } }, "libraries": ["-lkrb5_64.lib", "-lgssapi64.lib"] } ], [ "target_arch=='ia32'", { "msvs_settings": { "VCCLCompilerTool": { "AdditionalOptions": ["/MP /EHsc"] }, "VCLinkerTool": { "AdditionalLibraryDirectories": ["<(KRB_PATH)/lib/amd64/"] } }, "libraries": ["-lkrb5_32.lib", "-lgssapi32.lib"] } ] ] } ], [ "OS!='win'", { "libraries": ["-lkrb5", "-lgssapi_krb5"] } ] ] }] }
{'targets': [{'target_name': 'krb5', 'sources': ['./src/module.cc', './src/krb5_bind.cc', './src/gss_bind.cc', './src/base64.cc'], 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")'], 'dependencies': ['<!(node -p "require(\'node-addon-api\').gyp")'], 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS'], 'conditions': [["OS=='win'", {'variables': {'KRB_PATH': '/Program Files/MIT/Kerberos'}, 'include_dirs': ['<(KRB_PATH)/include', '<(KRB_PATH)/include/gssapi', 'src'], 'conditions': [["target_arch=='x64'", {'msvs_settings': {'VCCLCompilerTool': {'AdditionalOptions': ['/MP /EHsc']}, 'VCLinkerTool': {'AdditionalLibraryDirectories': ['<(KRB_PATH)/lib/amd64/']}}, 'libraries': ['-lkrb5_64.lib', '-lgssapi64.lib']}], ["target_arch=='ia32'", {'msvs_settings': {'VCCLCompilerTool': {'AdditionalOptions': ['/MP /EHsc']}, 'VCLinkerTool': {'AdditionalLibraryDirectories': ['<(KRB_PATH)/lib/amd64/']}}, 'libraries': ['-lkrb5_32.lib', '-lgssapi32.lib']}]]}], ["OS!='win'", {'libraries': ['-lkrb5', '-lgssapi_krb5']}]]}]}
class Solution: def validPalindrome(self, s: str) -> bool: left, right = self.twopointer(0, len(s) - 1, s) if left >= right : return True return self.valid(left + 1, right, s) or self.valid(left, right - 1, s) def valid(self, left, right, s) : l, r = self.twopointer(left, right, s) if l >= r : return True else: return False def twopointer(self, left, right, s) : while left < right : if s[left] == s[right] : left += 1 right -= 1 else : return left, right return left, right
class Solution: def valid_palindrome(self, s: str) -> bool: (left, right) = self.twopointer(0, len(s) - 1, s) if left >= right: return True return self.valid(left + 1, right, s) or self.valid(left, right - 1, s) def valid(self, left, right, s): (l, r) = self.twopointer(left, right, s) if l >= r: return True else: return False def twopointer(self, left, right, s): while left < right: if s[left] == s[right]: left += 1 right -= 1 else: return (left, right) return (left, right)
SQLALCHEMY_DATABASE_URI = "postgresql:///test_freight" LOG_LEVEL = "INFO" WORKSPACE_ROOT = "/tmp/freight-tests" SSH_PRIVATE_KEY = "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEArvyc+vZVxUjC5ZcFg1VN3jQOCOjO94gwQKFxlz0zOCrCz+Sq\nnWk28YdUpOU016Zinlh4ZZk2136nCKKTMnNMjd6cTTCn5fWomjR+F2CSdaYYpYfO\nNtVnq0SIDUgGmjyPncOGrxVT6EzjjSvgE8W8YIc5rVJqNMAH5OywUH0nqISYN2yP\nwbUPVf8zqu3kpnTt7YcWZ+Ye4b3jX6Fo2Xw5P1TTwQ92K9JdVAltBRpwSLtBQUYC\nMkwtNf6QIbRYKoVZuEhi/8XCxT0zG78Lsqpbld8IEnLWUGifCtx9mKqVi8Y3QTsT\nknMWFaf+Su8htgw/W7tufmrtTKNJYDtPTGiBeQIDAQABAoIBABYsC/gAnn2Q6qEM\nsbYiaOtuzRhz50WWDAckbbAsIQFM6cJNxxCK9FtGOoNqR3fLrVNDAn5dG4XSlneR\nofUShvCy9DsTnzKUHfjsDc4IfoZJtXXD720jPS+GT3bfWXbRlaD31Wj52tfkZjDN\nDmdy9puEhtpfRvXIHzfyhaStNwkzDh0jp8e8yok1mLA+3FPqkJPF6ptxPs6HEQS8\npY75jxvypbux2+W9249J/HqMmd5/+r7tt62vciqnXb2LG2AmUxLhTAQU9mGM2OSL\nrh2j+7/2apEQLdJ0DbS19IkQZRpO/DLPyhg6C29ZuNQffQWoLiZlfgIEaBT939aM\nkFdzy8ECgYEA4BdisLRCyCdm2M7fMDsV7j71z48Q1Kdl5A6/ngiK1dCwnjRMvkLx\nKOHtmvpJxHTH+JAewrrGUg0GF1YpM3gi0FQ7f9qTlAeFIrU3udV8F/m6+rIOpx92\nB2FSrYTaonLX8g4OzXKNtQcwzx91mFWTIEmfQl9let0WMrCRzReXp0sCgYEAx+dC\ncbERCVcJvs9+SUwVXXOreCF4PedLrg7bjkfYSpmAJk9c36EOi1jIGO5rat5/k7Nb\n0plWghADjtcb4r8oO6pzhMR81cESgFOk1UasP4rPYX4mEYPBwVGgN7ECUXj9XFPZ\n/tk7lgneBc1/6eV978MTprXiHU5Rv7yZBMuf68sCgYAd6YE27Rjs9rV3w0VvfrOS\ntbzCE+q/OAkVxBI32hQOLmkk9P45d14RgvbgdQBbxOrcdwBkJeJLGYnym4GsaSDc\nhiHbEyYX4FkZJO9nUuPZn3Ah/pqOHFj46zjKCK3WeVXx7YZ0ThI0U91kCGL+Do4x\nBSLJDUrSd6h6467SnY+UuQKBgGV0/AYT5h+lay7KxL+Su+04Pbi01AAnGgP3SnuF\n/0KtcZsAAJUHewhCQRxWNXKCBqICEAJtDLjqQ8QFbQPCHTtbIVIrH2ilmyxCR5Bv\nVBDT9Lj4e328L2Rcd0KMti5/h6eKb0OnIVTfIS40xE0Dys0bZyfffCl/jIIRyF/k\nsP/NAoGBAIfxtr881cDFrxahrTJ3AtGXxjJjMUW/S6+gKd7Lj9i+Uadb9vjD8Wt8\ngWrUDwXVAhD5Sxv+OCBizPF1CxXTgC3+/ophkUcy5VTcBchgQI7JrItujxUc0EvR\nCwA7/JPyO8DaUtvpodUKO27vr11G/NmXYrOohCP6VxH/Y6p5L9o4\n-----END RSA PRIVATE KEY-----" GITHUB_TOKEN = "a" * 40
sqlalchemy_database_uri = 'postgresql:///test_freight' log_level = 'INFO' workspace_root = '/tmp/freight-tests' ssh_private_key = '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEArvyc+vZVxUjC5ZcFg1VN3jQOCOjO94gwQKFxlz0zOCrCz+Sq\nnWk28YdUpOU016Zinlh4ZZk2136nCKKTMnNMjd6cTTCn5fWomjR+F2CSdaYYpYfO\nNtVnq0SIDUgGmjyPncOGrxVT6EzjjSvgE8W8YIc5rVJqNMAH5OywUH0nqISYN2yP\nwbUPVf8zqu3kpnTt7YcWZ+Ye4b3jX6Fo2Xw5P1TTwQ92K9JdVAltBRpwSLtBQUYC\nMkwtNf6QIbRYKoVZuEhi/8XCxT0zG78Lsqpbld8IEnLWUGifCtx9mKqVi8Y3QTsT\nknMWFaf+Su8htgw/W7tufmrtTKNJYDtPTGiBeQIDAQABAoIBABYsC/gAnn2Q6qEM\nsbYiaOtuzRhz50WWDAckbbAsIQFM6cJNxxCK9FtGOoNqR3fLrVNDAn5dG4XSlneR\nofUShvCy9DsTnzKUHfjsDc4IfoZJtXXD720jPS+GT3bfWXbRlaD31Wj52tfkZjDN\nDmdy9puEhtpfRvXIHzfyhaStNwkzDh0jp8e8yok1mLA+3FPqkJPF6ptxPs6HEQS8\npY75jxvypbux2+W9249J/HqMmd5/+r7tt62vciqnXb2LG2AmUxLhTAQU9mGM2OSL\nrh2j+7/2apEQLdJ0DbS19IkQZRpO/DLPyhg6C29ZuNQffQWoLiZlfgIEaBT939aM\nkFdzy8ECgYEA4BdisLRCyCdm2M7fMDsV7j71z48Q1Kdl5A6/ngiK1dCwnjRMvkLx\nKOHtmvpJxHTH+JAewrrGUg0GF1YpM3gi0FQ7f9qTlAeFIrU3udV8F/m6+rIOpx92\nB2FSrYTaonLX8g4OzXKNtQcwzx91mFWTIEmfQl9let0WMrCRzReXp0sCgYEAx+dC\ncbERCVcJvs9+SUwVXXOreCF4PedLrg7bjkfYSpmAJk9c36EOi1jIGO5rat5/k7Nb\n0plWghADjtcb4r8oO6pzhMR81cESgFOk1UasP4rPYX4mEYPBwVGgN7ECUXj9XFPZ\n/tk7lgneBc1/6eV978MTprXiHU5Rv7yZBMuf68sCgYAd6YE27Rjs9rV3w0VvfrOS\ntbzCE+q/OAkVxBI32hQOLmkk9P45d14RgvbgdQBbxOrcdwBkJeJLGYnym4GsaSDc\nhiHbEyYX4FkZJO9nUuPZn3Ah/pqOHFj46zjKCK3WeVXx7YZ0ThI0U91kCGL+Do4x\nBSLJDUrSd6h6467SnY+UuQKBgGV0/AYT5h+lay7KxL+Su+04Pbi01AAnGgP3SnuF\n/0KtcZsAAJUHewhCQRxWNXKCBqICEAJtDLjqQ8QFbQPCHTtbIVIrH2ilmyxCR5Bv\nVBDT9Lj4e328L2Rcd0KMti5/h6eKb0OnIVTfIS40xE0Dys0bZyfffCl/jIIRyF/k\nsP/NAoGBAIfxtr881cDFrxahrTJ3AtGXxjJjMUW/S6+gKd7Lj9i+Uadb9vjD8Wt8\ngWrUDwXVAhD5Sxv+OCBizPF1CxXTgC3+/ophkUcy5VTcBchgQI7JrItujxUc0EvR\nCwA7/JPyO8DaUtvpodUKO27vr11G/NmXYrOohCP6VxH/Y6p5L9o4\n-----END RSA PRIVATE KEY-----' github_token = 'a' * 40
# # PySNMP MIB module SUPERMICRO-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SUPERMICRO-SMI # Produced by pysmi-0.3.4 at Mon Apr 29 21:04:30 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") ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ObjectIdentity, iso, Gauge32, Counter32, Unsigned32, NotificationType, ModuleIdentity, IpAddress, Counter64, Bits, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, enterprises, Integer32, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "iso", "Gauge32", "Counter32", "Unsigned32", "NotificationType", "ModuleIdentity", "IpAddress", "Counter64", "Bits", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "enterprises", "Integer32", "MibIdentifier") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") supermicro = ModuleIdentity((1, 3, 6, 1, 4, 1, 10876)) supermicro.setRevisions(('2001-10-26 00:00',)) if mibBuilder.loadTexts: supermicro.setLastUpdated('200110260000Z') if mibBuilder.loadTexts: supermicro.setOrganization('Super Micro Computer Inc.') smProducts = ObjectIdentity((1, 3, 6, 1, 4, 1, 10876, 1)) if mibBuilder.loadTexts: smProducts.setStatus('current') smHealth = ObjectIdentity((1, 3, 6, 1, 4, 1, 10876, 2)) if mibBuilder.loadTexts: smHealth.setStatus('current') mibBuilder.exportSymbols("SUPERMICRO-SMI", smProducts=smProducts, PYSNMP_MODULE_ID=supermicro, smHealth=smHealth, supermicro=supermicro)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, single_value_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (object_identity, iso, gauge32, counter32, unsigned32, notification_type, module_identity, ip_address, counter64, bits, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, enterprises, integer32, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'iso', 'Gauge32', 'Counter32', 'Unsigned32', 'NotificationType', 'ModuleIdentity', 'IpAddress', 'Counter64', 'Bits', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'enterprises', 'Integer32', 'MibIdentifier') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') supermicro = module_identity((1, 3, 6, 1, 4, 1, 10876)) supermicro.setRevisions(('2001-10-26 00:00',)) if mibBuilder.loadTexts: supermicro.setLastUpdated('200110260000Z') if mibBuilder.loadTexts: supermicro.setOrganization('Super Micro Computer Inc.') sm_products = object_identity((1, 3, 6, 1, 4, 1, 10876, 1)) if mibBuilder.loadTexts: smProducts.setStatus('current') sm_health = object_identity((1, 3, 6, 1, 4, 1, 10876, 2)) if mibBuilder.loadTexts: smHealth.setStatus('current') mibBuilder.exportSymbols('SUPERMICRO-SMI', smProducts=smProducts, PYSNMP_MODULE_ID=supermicro, smHealth=smHealth, supermicro=supermicro)
# # PySNMP MIB module CISCO-WAN-ATM-CONN-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-WAN-ATM-CONN-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 18:03:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint") ciscoAgentCapability, = mibBuilder.importSymbols("CISCO-SMI", "ciscoAgentCapability") ModuleCompliance, AgentCapabilities, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "AgentCapabilities", "NotificationGroup") iso, IpAddress, Integer32, ObjectIdentity, Bits, ModuleIdentity, NotificationType, Counter64, Unsigned32, TimeTicks, Counter32, MibIdentifier, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "IpAddress", "Integer32", "ObjectIdentity", "Bits", "ModuleIdentity", "NotificationType", "Counter64", "Unsigned32", "TimeTicks", "Counter32", "MibIdentifier", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ciscoWanAtmConnCapability = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 7, 380)) ciscoWanAtmConnCapability.setRevisions(('2004-02-07 00:00', '2002-03-26 00:00',)) if mibBuilder.loadTexts: ciscoWanAtmConnCapability.setLastUpdated('200402070000Z') if mibBuilder.loadTexts: ciscoWanAtmConnCapability.setOrganization('Cisco Systems, Inc.') cwAtmConnCapabilityAxsmV2R0160 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityAxsmV2R0160 = cwAtmConnCapabilityAxsmV2R0160.setProductRelease('MGX8850 Release 2.1.60.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityAxsmV2R0160 = cwAtmConnCapabilityAxsmV2R0160.setStatus('current') cwAtmConnCapabilityAxsmeV2R0160 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 2)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityAxsmeV2R0160 = cwAtmConnCapabilityAxsmeV2R0160.setProductRelease('MGX8850 Release 2.1.60') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityAxsmeV2R0160 = cwAtmConnCapabilityAxsmeV2R0160.setStatus('current') cwAtmConnCapabilityRpmprV2R0160 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 3)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityRpmprV2R0160 = cwAtmConnCapabilityRpmprV2R0160.setProductRelease('MGX8850 Release 2.1.60') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityRpmprV2R0160 = cwAtmConnCapabilityRpmprV2R0160.setStatus('current') cwAtmConnCapabilityBpxsesV3R00 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 4)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityBpxsesV3R00 = cwAtmConnCapabilityBpxsesV3R00.setProductRelease('BPX SES Release 3.0.00') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityBpxsesV3R00 = cwAtmConnCapabilityBpxsesV3R00.setStatus('current') cwAtmConnCapabilityAxsmV3R00 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 5)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityAxsmV3R00 = cwAtmConnCapabilityAxsmV3R00.setProductRelease('MGX8850 Release 3.0.00.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityAxsmV3R00 = cwAtmConnCapabilityAxsmV3R00.setStatus('current') cwAtmConnCapabilityAxsmeV3R00 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 6)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityAxsmeV3R00 = cwAtmConnCapabilityAxsmeV3R00.setProductRelease('MGX8850 Release 3.0.00.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityAxsmeV3R00 = cwAtmConnCapabilityAxsmeV3R00.setStatus('current') cwAtmConnCapabilityPxm1eV3R00 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 7)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityPxm1eV3R00 = cwAtmConnCapabilityPxm1eV3R00.setProductRelease('MGX8850 Release 3.0.00.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityPxm1eV3R00 = cwAtmConnCapabilityPxm1eV3R00.setStatus('current') cwAtmConnCapabilityRpmprV3R00 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 8)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityRpmprV3R00 = cwAtmConnCapabilityRpmprV3R00.setProductRelease('MGX8850 Release 3.0.00') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityRpmprV3R00 = cwAtmConnCapabilityRpmprV3R00.setStatus('current') cwAtmConnCapabilityRpmxfV12R02 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 9)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityRpmxfV12R02 = cwAtmConnCapabilityRpmxfV12R02.setProductRelease('IOS Release 12.2\n in MGX8850 Release 3.0.00') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityRpmxfV12R02 = cwAtmConnCapabilityRpmxfV12R02.setStatus('current') cwAtmConnCapabilityV5R00 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 10)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityV5R00 = cwAtmConnCapabilityV5R00.setProductRelease('MGX8850 Release 5.0.00.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAtmConnCapabilityV5R00 = cwAtmConnCapabilityV5R00.setStatus('current') mibBuilder.exportSymbols("CISCO-WAN-ATM-CONN-CAPABILITY", PYSNMP_MODULE_ID=ciscoWanAtmConnCapability, cwAtmConnCapabilityRpmprV2R0160=cwAtmConnCapabilityRpmprV2R0160, cwAtmConnCapabilityAxsmeV3R00=cwAtmConnCapabilityAxsmeV3R00, cwAtmConnCapabilityAxsmV3R00=cwAtmConnCapabilityAxsmV3R00, cwAtmConnCapabilityPxm1eV3R00=cwAtmConnCapabilityPxm1eV3R00, cwAtmConnCapabilityBpxsesV3R00=cwAtmConnCapabilityBpxsesV3R00, cwAtmConnCapabilityRpmxfV12R02=cwAtmConnCapabilityRpmxfV12R02, cwAtmConnCapabilityV5R00=cwAtmConnCapabilityV5R00, ciscoWanAtmConnCapability=ciscoWanAtmConnCapability, cwAtmConnCapabilityAxsmV2R0160=cwAtmConnCapabilityAxsmV2R0160, cwAtmConnCapabilityRpmprV3R00=cwAtmConnCapabilityRpmprV3R00, cwAtmConnCapabilityAxsmeV2R0160=cwAtmConnCapabilityAxsmeV2R0160)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_intersection, constraints_union, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint') (cisco_agent_capability,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoAgentCapability') (module_compliance, agent_capabilities, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'AgentCapabilities', 'NotificationGroup') (iso, ip_address, integer32, object_identity, bits, module_identity, notification_type, counter64, unsigned32, time_ticks, counter32, mib_identifier, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'IpAddress', 'Integer32', 'ObjectIdentity', 'Bits', 'ModuleIdentity', 'NotificationType', 'Counter64', 'Unsigned32', 'TimeTicks', 'Counter32', 'MibIdentifier', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') cisco_wan_atm_conn_capability = module_identity((1, 3, 6, 1, 4, 1, 9, 7, 380)) ciscoWanAtmConnCapability.setRevisions(('2004-02-07 00:00', '2002-03-26 00:00')) if mibBuilder.loadTexts: ciscoWanAtmConnCapability.setLastUpdated('200402070000Z') if mibBuilder.loadTexts: ciscoWanAtmConnCapability.setOrganization('Cisco Systems, Inc.') cw_atm_conn_capability_axsm_v2_r0160 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_axsm_v2_r0160 = cwAtmConnCapabilityAxsmV2R0160.setProductRelease('MGX8850 Release 2.1.60.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_axsm_v2_r0160 = cwAtmConnCapabilityAxsmV2R0160.setStatus('current') cw_atm_conn_capability_axsme_v2_r0160 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 2)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_axsme_v2_r0160 = cwAtmConnCapabilityAxsmeV2R0160.setProductRelease('MGX8850 Release 2.1.60') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_axsme_v2_r0160 = cwAtmConnCapabilityAxsmeV2R0160.setStatus('current') cw_atm_conn_capability_rpmpr_v2_r0160 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 3)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_rpmpr_v2_r0160 = cwAtmConnCapabilityRpmprV2R0160.setProductRelease('MGX8850 Release 2.1.60') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_rpmpr_v2_r0160 = cwAtmConnCapabilityRpmprV2R0160.setStatus('current') cw_atm_conn_capability_bpxses_v3_r00 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 4)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_bpxses_v3_r00 = cwAtmConnCapabilityBpxsesV3R00.setProductRelease('BPX SES Release 3.0.00') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_bpxses_v3_r00 = cwAtmConnCapabilityBpxsesV3R00.setStatus('current') cw_atm_conn_capability_axsm_v3_r00 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 5)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_axsm_v3_r00 = cwAtmConnCapabilityAxsmV3R00.setProductRelease('MGX8850 Release 3.0.00.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_axsm_v3_r00 = cwAtmConnCapabilityAxsmV3R00.setStatus('current') cw_atm_conn_capability_axsme_v3_r00 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 6)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_axsme_v3_r00 = cwAtmConnCapabilityAxsmeV3R00.setProductRelease('MGX8850 Release 3.0.00.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_axsme_v3_r00 = cwAtmConnCapabilityAxsmeV3R00.setStatus('current') cw_atm_conn_capability_pxm1e_v3_r00 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 7)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_pxm1e_v3_r00 = cwAtmConnCapabilityPxm1eV3R00.setProductRelease('MGX8850 Release 3.0.00.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_pxm1e_v3_r00 = cwAtmConnCapabilityPxm1eV3R00.setStatus('current') cw_atm_conn_capability_rpmpr_v3_r00 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 8)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_rpmpr_v3_r00 = cwAtmConnCapabilityRpmprV3R00.setProductRelease('MGX8850 Release 3.0.00') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_rpmpr_v3_r00 = cwAtmConnCapabilityRpmprV3R00.setStatus('current') cw_atm_conn_capability_rpmxf_v12_r02 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 9)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_rpmxf_v12_r02 = cwAtmConnCapabilityRpmxfV12R02.setProductRelease('IOS Release 12.2\n in MGX8850 Release 3.0.00') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_rpmxf_v12_r02 = cwAtmConnCapabilityRpmxfV12R02.setStatus('current') cw_atm_conn_capability_v5_r00 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 380, 10)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_v5_r00 = cwAtmConnCapabilityV5R00.setProductRelease('MGX8850 Release 5.0.00.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_atm_conn_capability_v5_r00 = cwAtmConnCapabilityV5R00.setStatus('current') mibBuilder.exportSymbols('CISCO-WAN-ATM-CONN-CAPABILITY', PYSNMP_MODULE_ID=ciscoWanAtmConnCapability, cwAtmConnCapabilityRpmprV2R0160=cwAtmConnCapabilityRpmprV2R0160, cwAtmConnCapabilityAxsmeV3R00=cwAtmConnCapabilityAxsmeV3R00, cwAtmConnCapabilityAxsmV3R00=cwAtmConnCapabilityAxsmV3R00, cwAtmConnCapabilityPxm1eV3R00=cwAtmConnCapabilityPxm1eV3R00, cwAtmConnCapabilityBpxsesV3R00=cwAtmConnCapabilityBpxsesV3R00, cwAtmConnCapabilityRpmxfV12R02=cwAtmConnCapabilityRpmxfV12R02, cwAtmConnCapabilityV5R00=cwAtmConnCapabilityV5R00, ciscoWanAtmConnCapability=ciscoWanAtmConnCapability, cwAtmConnCapabilityAxsmV2R0160=cwAtmConnCapabilityAxsmV2R0160, cwAtmConnCapabilityRpmprV3R00=cwAtmConnCapabilityRpmprV3R00, cwAtmConnCapabilityAxsmeV2R0160=cwAtmConnCapabilityAxsmeV2R0160)
s = 0 for i in range(101): s += i print("Suma liczb od 1 do 100 to: ", s)
s = 0 for i in range(101): s += i print('Suma liczb od 1 do 100 to: ', s)
def BinarySearch(Array, LowerBound, UpperBound, What): while LowerBound != UpperBound: mid = (LowerBound + UpperBound) // 2 if Array[mid] < What: LowerBound = mid elif Array[mid] > What: UpperBound = mid - 1 else: return mid return None
def binary_search(Array, LowerBound, UpperBound, What): while LowerBound != UpperBound: mid = (LowerBound + UpperBound) // 2 if Array[mid] < What: lower_bound = mid elif Array[mid] > What: upper_bound = mid - 1 else: return mid return None
''' immutable ''' letters = ("a", "b", "c", "d", "c") print(letters.count("c")) print(letters.index("d")) coordinates = (94, 6, 7) x, y, z = coordinates print(x, y, z)
""" immutable """ letters = ('a', 'b', 'c', 'd', 'c') print(letters.count('c')) print(letters.index('d')) coordinates = (94, 6, 7) (x, y, z) = coordinates print(x, y, z)
responses = { 'https://example.com/api/v1/something/': { 'count': 5, 'next': 'https://example.com/api/v1/something/?limit=3&offset=3', 'previous': None, 'results': [ {'id': 1}, {'id': 2}, {'id': 3} ], 'collection_links': {} }, 'https://example.com/api/v1/something/?limit=3&offset=3': { 'count': 5, 'next': 'https://example.com/api/v1/something/?limit=3&offset=6', 'previous': 'https://example.com/api/v1/something/?limit=3', 'results': [ {'id': 4}, {'id': 5}, {'id': 6} ], 'collection_links': {} }, 'https://example.com/api/v1/something/?limit=3&offset=6': { 'count': 5, 'next': None, 'previous': 'https://example.com/api/v1/something/?limit=3', 'results': [ {'id': 7}, {'id': 8} ], 'collection_links': {} }, }
responses = {'https://example.com/api/v1/something/': {'count': 5, 'next': 'https://example.com/api/v1/something/?limit=3&offset=3', 'previous': None, 'results': [{'id': 1}, {'id': 2}, {'id': 3}], 'collection_links': {}}, 'https://example.com/api/v1/something/?limit=3&offset=3': {'count': 5, 'next': 'https://example.com/api/v1/something/?limit=3&offset=6', 'previous': 'https://example.com/api/v1/something/?limit=3', 'results': [{'id': 4}, {'id': 5}, {'id': 6}], 'collection_links': {}}, 'https://example.com/api/v1/something/?limit=3&offset=6': {'count': 5, 'next': None, 'previous': 'https://example.com/api/v1/something/?limit=3', 'results': [{'id': 7}, {'id': 8}], 'collection_links': {}}}
#!/usr/bin/env python # coding: utf-8 # # Author: Kazuto Nakashima # URL: https://github.com/kazuto1011 # Created: 2016-06-07 config = { 'server_IP': '192.168.4.170', 'PORT': 49952, 'xml_file': 'C:/Users/nemuriscan/Desktop/NemuriScanLog/NemuriScanStateInfo.xml' }
config = {'server_IP': '192.168.4.170', 'PORT': 49952, 'xml_file': 'C:/Users/nemuriscan/Desktop/NemuriScanLog/NemuriScanStateInfo.xml'}
# Replace the file path with an existing text file on your machine. with open("/home/aditya/Desktop/sample.txt", "r") as file_: lines = file_.readlines() for line in lines: print(lines)
with open('/home/aditya/Desktop/sample.txt', 'r') as file_: lines = file_.readlines() for line in lines: print(lines)
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: otp.uberdog.SpeedchatRelayGlobals NORMAL = 0 CUSTOM = 1 EMOTE = 2 PIRATES_QUEST = 3 TOONTOWN_QUEST = 4
normal = 0 custom = 1 emote = 2 pirates_quest = 3 toontown_quest = 4
# # PySNMP MIB module JUNIPER-PFE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-PFE-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:00:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint") jnxPfeMibRoot, = mibBuilder.importSymbols("JUNIPER-SMI", "jnxPfeMibRoot") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") TimeTicks, IpAddress, Integer32, ObjectIdentity, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Counter64, Counter32, NotificationType, Unsigned32, Gauge32, iso, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "IpAddress", "Integer32", "ObjectIdentity", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Counter64", "Counter32", "NotificationType", "Unsigned32", "Gauge32", "iso", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") jnxPfeMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1)) jnxPfeMib.setRevisions(('2014-11-14 00:00', '2014-03-12 00:00', '2011-09-09 00:00', '2010-02-07 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: jnxPfeMib.setRevisionsDescriptions(('Added jnxPfeMemoryTrapVars and jnxPfeMemoryNotifications.', 'Added new Table jnxPfeNotifyGlParAccSec which counts notifications for the packets parsed/processed by access-security.', 'Added new Table jnxPfeMemoryErrorsTable which gives parity and ecc errors. Added new Trap pfeMemoryErrors', 'Added new notification types.',)) if mibBuilder.loadTexts: jnxPfeMib.setLastUpdated('201109220000Z') if mibBuilder.loadTexts: jnxPfeMib.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: jnxPfeMib.setContactInfo(' Juniper Technical Assistance Center Juniper Networks, Inc. 1194 N. Mathilda Avenue Sunnyvale, CA 94089 E-mail: support@juniper.net') if mibBuilder.loadTexts: jnxPfeMib.setDescription('The MIB provides PFE specific data.') class JnxPfeMemoryTypeEnum(TextualConvention, Integer32): description = 'PFE memory type, nh (1), fw (2), encap (3)' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("nh", 1), ("fw", 2), ("encap", 3)) jnxPfeNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1)) jnxPfeNotifyGlTable = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1), ) if mibBuilder.loadTexts: jnxPfeNotifyGlTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlTable.setDescription('This table provides global PFE notification statistics.') jnxPfeNotifyGlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1), ).setIndexNames((0, "JUNIPER-PFE-MIB", "jnxPfeNotifyGlSlot")) if mibBuilder.loadTexts: jnxPfeNotifyGlEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlEntry.setDescription('') jnxPfeNotifyGlSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: jnxPfeNotifyGlSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlSlot.setDescription('The PFE slot number for this set of global PFE notification statistics.') jnxPfeNotifyGlParsed = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlParsed.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlParsed.setDescription('Count of notifications reported by the routing chip.') jnxPfeNotifyGlAged = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlAged.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlAged.setDescription('Count of notifications that are dropped due to the fact that the they have been in the system for too long and hence not valid anymore.') jnxPfeNotifyGlCorrupt = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlCorrupt.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlCorrupt.setDescription('Count of notifications dropped due to the fact that they have an invalid notification result format. This counter is valid for Internet Processor-I and Internet Processor-II only.') jnxPfeNotifyGlIllegal = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlIllegal.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlIllegal.setDescription('Count of notifications dropped due to the fact that they have an illegal notification type.') jnxPfeNotifyGlSample = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlSample.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlSample.setDescription('Count of sample notifications reported by the routing chip.') jnxPfeNotifyGlGiants = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlGiants.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlGiants.setDescription('Count of notifications dropped that are larger than the supported DMA size.') jnxPfeNotifyGlTtlExceeded = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlTtlExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlTtlExceeded.setDescription('Count of options/TTL-expired notifications that need to be sent to service interfaces as transit packets. This counter is valid for Internet Processor-I and Internet Processor-II only.') jnxPfeNotifyGlTtlExcErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlTtlExcErrors.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlTtlExcErrors.setDescription('Count of options/TTL-expired packet notifications that could not be sent as transit packets because the output interface could not be determined. This counter is valid for Internet Processor-I and Internet Processor-II only.') jnxPfeNotifyGlSvcOptAsp = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlSvcOptAsp.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlSvcOptAsp.setDescription('Count of IP options packets that are sent out to a Services PIC.') jnxPfeNotifyGlSvcOptRe = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlSvcOptRe.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlSvcOptRe.setDescription('Count of IP options packets that are sent out to the Routing Engine.') jnxPfeNotifyGlPostSvcOptOut = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlPostSvcOptOut.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlPostSvcOptOut.setDescription('Count of notifications that were re-injected by the services PIC after it had processed the associated packets. These notifications now need to be forwarded out to their actual destination. This counter is valid for Internet Processor-I and Internet Processor-II only.') jnxPfeNotifyGlOptTtlExp = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlOptTtlExp.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlOptTtlExp.setDescription('Count of TTL-expired transit packets.') jnxPfeNotifyGlDiscSample = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlDiscSample.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlDiscSample.setDescription('Count of sample notifications that are dropped as they refer to discarded packets in PFE.') jnxPfeNotifyGlRateLimited = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlRateLimited.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlRateLimited.setDescription('Count of notifications ignored because of PFE software throttling.') jnxPfeNotifyGlPktGetFails = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlPktGetFails.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlPktGetFails.setDescription('Count of notifications where we could not allocate memory for DMA.') jnxPfeNotifyGlDmaFails = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlDmaFails.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlDmaFails.setDescription('Count of notifications where the DMA of associated packets failed for miscellaneous reasons. Valid for T-series Internet Processor only.') jnxPfeNotifyGlDmaTotals = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlDmaTotals.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlDmaTotals.setDescription('Count of notifications for which the packet DMA completed. Valid for T-series Internet Processor only.') jnxPfeNotifyGlUnknowns = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlUnknowns.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlUnknowns.setDescription('Count of notifications that could not be resolved to a known next hop destination. Valid for T-series Internet Processor only.') jnxPfeNotifyGlParAccSec = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyGlParAccSec.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlParAccSec.setDescription('Count of notifications for the packets parsed/processed by access-security.') jnxPfeNotifyTypeTable = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2), ) if mibBuilder.loadTexts: jnxPfeNotifyTypeTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeTable.setDescription('This provides type-specific PFE notification stats') jnxPfeNotifyTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1), ).setIndexNames((0, "JUNIPER-PFE-MIB", "jnxPfeNotifyGlSlot"), (0, "JUNIPER-PFE-MIB", "jnxPfeNotifyTypeId")) if mibBuilder.loadTexts: jnxPfeNotifyTypeEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeEntry.setDescription('') jnxPfeNotifyTypeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("illegal", 1), ("unclassified", 2), ("option", 3), ("nextHop", 4), ("discard", 5), ("sample", 6), ("redirect", 7), ("dontFragment", 8), ("cfdf", 9), ("poison", 10), ("unknown", 11), ("specialMemPkt", 12), ("autoConfig", 13), ("reject", 14)))) if mibBuilder.loadTexts: jnxPfeNotifyTypeId.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeId.setDescription("This identifies the PFE notification type for this row's stats. Below is a description of each notification type: 1. illegal Packets with invalid notification type. 2. unclassified Packets that did not have a key lookup performed on them. 3. option Packets which have L3 options present. 4. nextHop Packets that are destined to the host. 5. discard Used when a discarded packet is sent to the route processor. 6. sample Unused. 7. redirect This is used when a packet is being sent out on the interface it came in on. 8. dontFragment This is used that a packet needs to be fragmented but the DF (don't fragment) bit is set. 9. cfdf When an MTU exceeded indication is triggered by the CF chip and the packet has DF (don't fragment) set. 10. poison Packets that resolved to a poisoned next hop index. 11. unknown Packets of unknown notification type. 12. specialMemPkt Packets with special memory pkt type notification used in diagnostics. 13. autoconfig Packets with autoconfig PFE notification type used for dynamic VLANs. 14. reject Packets of reject PFE notification type.") jnxPfeNotifyTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyTypeDescr.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeDescr.setDescription('The description of the Pfe Notification type for this entry.') jnxPfeNotifyTypeParsed = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyTypeParsed.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeParsed.setDescription('Count of successful parsing of notifications.') jnxPfeNotifyTypeInput = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyTypeInput.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeInput.setDescription("Count of notifications whose associated packets were DMA'ed into route processor memory.") jnxPfeNotifyTypeFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyTypeFailed.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeFailed.setDescription('Count of failures in parsing the notifications.') jnxPfeNotifyTypeIgnored = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeNotifyTypeIgnored.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeIgnored.setDescription('Count of notifications where the notification type in the message does not match any of the valid types.') jnxPfeMemoryErrorsTable = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3), ) if mibBuilder.loadTexts: jnxPfeMemoryErrorsTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryErrorsTable.setDescription('This provides PFE memory errors') jnxPfeMemoryErrorsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1), ).setIndexNames((0, "JUNIPER-PFE-MIB", "jnxPfeFpcSlot"), (0, "JUNIPER-PFE-MIB", "jnxPfeSlot")) if mibBuilder.loadTexts: jnxPfeMemoryErrorsEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryErrorsEntry.setDescription('') jnxPfeFpcSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: jnxPfeFpcSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeFpcSlot.setDescription('The FPC slot number for this set of PFE notification') jnxPfeSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: jnxPfeSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeSlot.setDescription('The pfe slot number for this set of errors') jnxPfeParityErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeParityErrors.setStatus('current') if mibBuilder.loadTexts: jnxPfeParityErrors.setDescription('The parity error count') jnxPfeEccErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeEccErrors.setStatus('current') if mibBuilder.loadTexts: jnxPfeEccErrors.setDescription('The ECC error count') pfeMemoryErrorsNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 0)) pfeMemoryErrors = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 0, 1)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeParityErrors"), ("JUNIPER-PFE-MIB", "jnxPfeEccErrors")) if mibBuilder.loadTexts: pfeMemoryErrors.setStatus('current') if mibBuilder.loadTexts: pfeMemoryErrors.setDescription('A pfeMemoryErrors notification is sent when the value of jnxPfeParityErrors or jnxPfeEccErrors increases.') jnxPfeMemory = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2)) jnxPfeMemoryUkernTable = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 1), ) if mibBuilder.loadTexts: jnxPfeMemoryUkernTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryUkernTable.setDescription('This table provides global PFE ukern memory statistics for specified slot.') jnxPfeMemoryUkernEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 1, 1), ).setIndexNames((0, "JUNIPER-PFE-MIB", "jnxPfeGlSlot")) if mibBuilder.loadTexts: jnxPfeMemoryUkernEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryUkernEntry.setDescription('Entry represent ukern memory percentage free.') jnxPfeMemoryUkernFreePercent = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeMemoryUkernFreePercent.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryUkernFreePercent.setDescription('The percent PFE ukern memory free within ukern heap.') jnxPfeMemoryForwardingTable = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2), ) if mibBuilder.loadTexts: jnxPfeMemoryForwardingTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryForwardingTable.setDescription('This table provides PFE ASIC memory - NH/JTREE or FW/Filter or Encap memory utilization statistics.') jnxPfeMemoryForwardingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2, 1), ).setIndexNames((0, "JUNIPER-PFE-MIB", "jnxPfeGlSlot"), (0, "JUNIPER-PFE-MIB", "jnxPfeMemoryForwardingChipSlot"), (0, "JUNIPER-PFE-MIB", "jnxPfeMemoryType")) if mibBuilder.loadTexts: jnxPfeMemoryForwardingEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryForwardingEntry.setDescription('Entry represent ASIC memory free percent of a specific type in specified pfe instance') jnxPfeMemoryForwardingChipSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))) if mibBuilder.loadTexts: jnxPfeMemoryForwardingChipSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryForwardingChipSlot.setDescription('ASIC instance number or pfe complex instance number.') jnxPfeMemoryType = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2, 1, 2), JnxPfeMemoryTypeEnum()) if mibBuilder.loadTexts: jnxPfeMemoryType.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryType.setDescription('PFE ASIC memory type, nh = 1, fw = 2, encap = 3.') jnxPfeMemoryForwardingPercentFree = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: jnxPfeMemoryForwardingPercentFree.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryForwardingPercentFree.setDescription('Percentage ASIC memory free for a specific memory type. For Trio based linecards Encap memory is not available.Hence no value is returned') jnxPfeMemoryTrapVars = ObjectIdentity((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 3)) if mibBuilder.loadTexts: jnxPfeMemoryTrapVars.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryTrapVars.setDescription('PFE notification object definitions.') jnxPfeGlSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 3, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: jnxPfeGlSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeGlSlot.setDescription('Global slot number for line card resource monitoring.') jnxPfeInstanceNumber = MibScalar((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 3, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: jnxPfeInstanceNumber.setStatus('current') if mibBuilder.loadTexts: jnxPfeInstanceNumber.setDescription('PFE instance number in pfe complex.') jnxPfeMemoryThreshold = MibScalar((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 3, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: jnxPfeMemoryThreshold.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryThreshold.setDescription('Configured high memory utilization threshold.') jnxPfeMemoryNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4)) jnxPfeMemoryNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0)) jnxPfeHeapMemoryThresholdExceeded = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 1)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeGlSlot"), ("JUNIPER-PFE-MIB", "jnxPfeMemoryThreshold")) if mibBuilder.loadTexts: jnxPfeHeapMemoryThresholdExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeHeapMemoryThresholdExceeded.setDescription('Indicates that the Heap Memory utilization has crossed the configured watermark.') jnxPfeHeapMemoryThresholdAbated = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 2)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeGlSlot"), ("JUNIPER-PFE-MIB", "jnxPfeMemoryThreshold")) if mibBuilder.loadTexts: jnxPfeHeapMemoryThresholdAbated.setStatus('current') if mibBuilder.loadTexts: jnxPfeHeapMemoryThresholdAbated.setDescription('Indicates that the Heap Memory utilization has fallen below the configured watermark.') jnxPfeNextHopMemoryThresholdExceeded = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 3)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeGlSlot"), ("JUNIPER-PFE-MIB", "jnxPfeInstanceNumber"), ("JUNIPER-PFE-MIB", "jnxPfeMemoryThreshold")) if mibBuilder.loadTexts: jnxPfeNextHopMemoryThresholdExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeNextHopMemoryThresholdExceeded.setDescription('Indicates that the Next Hop Memory utilization has crossed the configured watermark.') jnxPfeNextHopMemoryThresholdAbated = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 4)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeGlSlot"), ("JUNIPER-PFE-MIB", "jnxPfeInstanceNumber"), ("JUNIPER-PFE-MIB", "jnxPfeMemoryThreshold")) if mibBuilder.loadTexts: jnxPfeNextHopMemoryThresholdAbated.setStatus('current') if mibBuilder.loadTexts: jnxPfeNextHopMemoryThresholdAbated.setDescription('Indicates that the Next Hop Memory utilization has fallen below the configured watermark.') jnxPfeFilterMemoryThresholdExceeded = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 5)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeGlSlot"), ("JUNIPER-PFE-MIB", "jnxPfeInstanceNumber"), ("JUNIPER-PFE-MIB", "jnxPfeMemoryThreshold")) if mibBuilder.loadTexts: jnxPfeFilterMemoryThresholdExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeFilterMemoryThresholdExceeded.setDescription('Indicates that the Filter Memory utilization has crossed the configured watermark.') jnxPfeFilterMemoryThresholdAbated = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 6)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeGlSlot"), ("JUNIPER-PFE-MIB", "jnxPfeInstanceNumber"), ("JUNIPER-PFE-MIB", "jnxPfeMemoryThreshold")) if mibBuilder.loadTexts: jnxPfeFilterMemoryThresholdAbated.setStatus('current') if mibBuilder.loadTexts: jnxPfeFilterMemoryThresholdAbated.setDescription('Indicates that the Filter Memory utilization has fallen below the configured watermark.') jnxPfeEncapMemoryThresholdExceeded = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 7)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeGlSlot"), ("JUNIPER-PFE-MIB", "jnxPfeInstanceNumber"), ("JUNIPER-PFE-MIB", "jnxPfeMemoryThreshold")) if mibBuilder.loadTexts: jnxPfeEncapMemoryThresholdExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeEncapMemoryThresholdExceeded.setDescription('Indicates that the ENCAP Memory utilization has crossed the configured watermark.') jnxPfeEncapMemoryThresholdAbated = NotificationType((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 8)).setObjects(("JUNIPER-PFE-MIB", "jnxPfeGlSlot"), ("JUNIPER-PFE-MIB", "jnxPfeInstanceNumber"), ("JUNIPER-PFE-MIB", "jnxPfeMemoryThreshold")) if mibBuilder.loadTexts: jnxPfeEncapMemoryThresholdAbated.setStatus('current') if mibBuilder.loadTexts: jnxPfeEncapMemoryThresholdAbated.setDescription('Indicates that the ENCAP Memory utilization has fallen below the configured watermark.') mibBuilder.exportSymbols("JUNIPER-PFE-MIB", jnxPfeNotifyTypeTable=jnxPfeNotifyTypeTable, jnxPfeNotifyGlTtlExcErrors=jnxPfeNotifyGlTtlExcErrors, jnxPfeFpcSlot=jnxPfeFpcSlot, jnxPfeNotifyTypeEntry=jnxPfeNotifyTypeEntry, jnxPfeMemoryUkernFreePercent=jnxPfeMemoryUkernFreePercent, jnxPfeEncapMemoryThresholdExceeded=jnxPfeEncapMemoryThresholdExceeded, jnxPfeMemoryNotifications=jnxPfeMemoryNotifications, jnxPfeNotifyGlSlot=jnxPfeNotifyGlSlot, jnxPfeNotifyTypeIgnored=jnxPfeNotifyTypeIgnored, jnxPfeMemoryForwardingEntry=jnxPfeMemoryForwardingEntry, jnxPfeSlot=jnxPfeSlot, jnxPfeMemoryType=jnxPfeMemoryType, jnxPfeMib=jnxPfeMib, jnxPfeNotifyGlOptTtlExp=jnxPfeNotifyGlOptTtlExp, jnxPfeMemoryUkernTable=jnxPfeMemoryUkernTable, PYSNMP_MODULE_ID=jnxPfeMib, jnxPfeNotifyGlAged=jnxPfeNotifyGlAged, pfeMemoryErrors=pfeMemoryErrors, jnxPfeMemoryTrapVars=jnxPfeMemoryTrapVars, jnxPfeNotifyTypeDescr=jnxPfeNotifyTypeDescr, jnxPfeMemoryErrorsEntry=jnxPfeMemoryErrorsEntry, jnxPfeFilterMemoryThresholdExceeded=jnxPfeFilterMemoryThresholdExceeded, jnxPfeNotifyGlCorrupt=jnxPfeNotifyGlCorrupt, jnxPfeNextHopMemoryThresholdAbated=jnxPfeNextHopMemoryThresholdAbated, jnxPfeNotifyGlPktGetFails=jnxPfeNotifyGlPktGetFails, jnxPfeNotifyGlGiants=jnxPfeNotifyGlGiants, jnxPfeNotifyGlDiscSample=jnxPfeNotifyGlDiscSample, jnxPfeNotifyTypeParsed=jnxPfeNotifyTypeParsed, jnxPfeMemoryForwardingChipSlot=jnxPfeMemoryForwardingChipSlot, jnxPfeHeapMemoryThresholdExceeded=jnxPfeHeapMemoryThresholdExceeded, jnxPfeMemoryNotificationsPrefix=jnxPfeMemoryNotificationsPrefix, jnxPfeEccErrors=jnxPfeEccErrors, jnxPfeNotifyTypeFailed=jnxPfeNotifyTypeFailed, jnxPfeMemoryErrorsTable=jnxPfeMemoryErrorsTable, jnxPfeNotifyGlUnknowns=jnxPfeNotifyGlUnknowns, jnxPfeNotifyGlSvcOptAsp=jnxPfeNotifyGlSvcOptAsp, JnxPfeMemoryTypeEnum=JnxPfeMemoryTypeEnum, jnxPfeNextHopMemoryThresholdExceeded=jnxPfeNextHopMemoryThresholdExceeded, jnxPfeNotifyGlDmaFails=jnxPfeNotifyGlDmaFails, jnxPfeGlSlot=jnxPfeGlSlot, jnxPfeHeapMemoryThresholdAbated=jnxPfeHeapMemoryThresholdAbated, jnxPfeNotification=jnxPfeNotification, jnxPfeNotifyGlTable=jnxPfeNotifyGlTable, jnxPfeNotifyGlParAccSec=jnxPfeNotifyGlParAccSec, jnxPfeFilterMemoryThresholdAbated=jnxPfeFilterMemoryThresholdAbated, jnxPfeParityErrors=jnxPfeParityErrors, jnxPfeNotifyGlSvcOptRe=jnxPfeNotifyGlSvcOptRe, jnxPfeMemoryForwardingTable=jnxPfeMemoryForwardingTable, jnxPfeNotifyGlSample=jnxPfeNotifyGlSample, jnxPfeNotifyGlParsed=jnxPfeNotifyGlParsed, jnxPfeNotifyGlIllegal=jnxPfeNotifyGlIllegal, jnxPfeMemoryForwardingPercentFree=jnxPfeMemoryForwardingPercentFree, jnxPfeEncapMemoryThresholdAbated=jnxPfeEncapMemoryThresholdAbated, jnxPfeNotifyTypeInput=jnxPfeNotifyTypeInput, jnxPfeNotifyGlEntry=jnxPfeNotifyGlEntry, jnxPfeNotifyGlDmaTotals=jnxPfeNotifyGlDmaTotals, jnxPfeMemoryUkernEntry=jnxPfeMemoryUkernEntry, jnxPfeNotifyGlTtlExceeded=jnxPfeNotifyGlTtlExceeded, jnxPfeNotifyGlRateLimited=jnxPfeNotifyGlRateLimited, jnxPfeInstanceNumber=jnxPfeInstanceNumber, jnxPfeMemoryThreshold=jnxPfeMemoryThreshold, jnxPfeNotifyGlPostSvcOptOut=jnxPfeNotifyGlPostSvcOptOut, pfeMemoryErrorsNotificationPrefix=pfeMemoryErrorsNotificationPrefix, jnxPfeNotifyTypeId=jnxPfeNotifyTypeId, jnxPfeMemory=jnxPfeMemory)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, constraints_union, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint') (jnx_pfe_mib_root,) = mibBuilder.importSymbols('JUNIPER-SMI', 'jnxPfeMibRoot') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (time_ticks, ip_address, integer32, object_identity, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, counter64, counter32, notification_type, unsigned32, gauge32, iso, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'IpAddress', 'Integer32', 'ObjectIdentity', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Counter64', 'Counter32', 'NotificationType', 'Unsigned32', 'Gauge32', 'iso', 'Bits') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') jnx_pfe_mib = module_identity((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1)) jnxPfeMib.setRevisions(('2014-11-14 00:00', '2014-03-12 00:00', '2011-09-09 00:00', '2010-02-07 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: jnxPfeMib.setRevisionsDescriptions(('Added jnxPfeMemoryTrapVars and jnxPfeMemoryNotifications.', 'Added new Table jnxPfeNotifyGlParAccSec which counts notifications for the packets parsed/processed by access-security.', 'Added new Table jnxPfeMemoryErrorsTable which gives parity and ecc errors. Added new Trap pfeMemoryErrors', 'Added new notification types.')) if mibBuilder.loadTexts: jnxPfeMib.setLastUpdated('201109220000Z') if mibBuilder.loadTexts: jnxPfeMib.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: jnxPfeMib.setContactInfo(' Juniper Technical Assistance Center Juniper Networks, Inc. 1194 N. Mathilda Avenue Sunnyvale, CA 94089 E-mail: support@juniper.net') if mibBuilder.loadTexts: jnxPfeMib.setDescription('The MIB provides PFE specific data.') class Jnxpfememorytypeenum(TextualConvention, Integer32): description = 'PFE memory type, nh (1), fw (2), encap (3)' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('nh', 1), ('fw', 2), ('encap', 3)) jnx_pfe_notification = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1)) jnx_pfe_notify_gl_table = mib_table((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1)) if mibBuilder.loadTexts: jnxPfeNotifyGlTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlTable.setDescription('This table provides global PFE notification statistics.') jnx_pfe_notify_gl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1)).setIndexNames((0, 'JUNIPER-PFE-MIB', 'jnxPfeNotifyGlSlot')) if mibBuilder.loadTexts: jnxPfeNotifyGlEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlEntry.setDescription('') jnx_pfe_notify_gl_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: jnxPfeNotifyGlSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlSlot.setDescription('The PFE slot number for this set of global PFE notification statistics.') jnx_pfe_notify_gl_parsed = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlParsed.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlParsed.setDescription('Count of notifications reported by the routing chip.') jnx_pfe_notify_gl_aged = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlAged.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlAged.setDescription('Count of notifications that are dropped due to the fact that the they have been in the system for too long and hence not valid anymore.') jnx_pfe_notify_gl_corrupt = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlCorrupt.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlCorrupt.setDescription('Count of notifications dropped due to the fact that they have an invalid notification result format. This counter is valid for Internet Processor-I and Internet Processor-II only.') jnx_pfe_notify_gl_illegal = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlIllegal.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlIllegal.setDescription('Count of notifications dropped due to the fact that they have an illegal notification type.') jnx_pfe_notify_gl_sample = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlSample.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlSample.setDescription('Count of sample notifications reported by the routing chip.') jnx_pfe_notify_gl_giants = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlGiants.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlGiants.setDescription('Count of notifications dropped that are larger than the supported DMA size.') jnx_pfe_notify_gl_ttl_exceeded = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlTtlExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlTtlExceeded.setDescription('Count of options/TTL-expired notifications that need to be sent to service interfaces as transit packets. This counter is valid for Internet Processor-I and Internet Processor-II only.') jnx_pfe_notify_gl_ttl_exc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlTtlExcErrors.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlTtlExcErrors.setDescription('Count of options/TTL-expired packet notifications that could not be sent as transit packets because the output interface could not be determined. This counter is valid for Internet Processor-I and Internet Processor-II only.') jnx_pfe_notify_gl_svc_opt_asp = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlSvcOptAsp.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlSvcOptAsp.setDescription('Count of IP options packets that are sent out to a Services PIC.') jnx_pfe_notify_gl_svc_opt_re = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlSvcOptRe.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlSvcOptRe.setDescription('Count of IP options packets that are sent out to the Routing Engine.') jnx_pfe_notify_gl_post_svc_opt_out = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlPostSvcOptOut.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlPostSvcOptOut.setDescription('Count of notifications that were re-injected by the services PIC after it had processed the associated packets. These notifications now need to be forwarded out to their actual destination. This counter is valid for Internet Processor-I and Internet Processor-II only.') jnx_pfe_notify_gl_opt_ttl_exp = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlOptTtlExp.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlOptTtlExp.setDescription('Count of TTL-expired transit packets.') jnx_pfe_notify_gl_disc_sample = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlDiscSample.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlDiscSample.setDescription('Count of sample notifications that are dropped as they refer to discarded packets in PFE.') jnx_pfe_notify_gl_rate_limited = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlRateLimited.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlRateLimited.setDescription('Count of notifications ignored because of PFE software throttling.') jnx_pfe_notify_gl_pkt_get_fails = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlPktGetFails.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlPktGetFails.setDescription('Count of notifications where we could not allocate memory for DMA.') jnx_pfe_notify_gl_dma_fails = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlDmaFails.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlDmaFails.setDescription('Count of notifications where the DMA of associated packets failed for miscellaneous reasons. Valid for T-series Internet Processor only.') jnx_pfe_notify_gl_dma_totals = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlDmaTotals.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlDmaTotals.setDescription('Count of notifications for which the packet DMA completed. Valid for T-series Internet Processor only.') jnx_pfe_notify_gl_unknowns = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlUnknowns.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlUnknowns.setDescription('Count of notifications that could not be resolved to a known next hop destination. Valid for T-series Internet Processor only.') jnx_pfe_notify_gl_par_acc_sec = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 1, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyGlParAccSec.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyGlParAccSec.setDescription('Count of notifications for the packets parsed/processed by access-security.') jnx_pfe_notify_type_table = mib_table((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2)) if mibBuilder.loadTexts: jnxPfeNotifyTypeTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeTable.setDescription('This provides type-specific PFE notification stats') jnx_pfe_notify_type_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1)).setIndexNames((0, 'JUNIPER-PFE-MIB', 'jnxPfeNotifyGlSlot'), (0, 'JUNIPER-PFE-MIB', 'jnxPfeNotifyTypeId')) if mibBuilder.loadTexts: jnxPfeNotifyTypeEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeEntry.setDescription('') jnx_pfe_notify_type_id = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=named_values(('illegal', 1), ('unclassified', 2), ('option', 3), ('nextHop', 4), ('discard', 5), ('sample', 6), ('redirect', 7), ('dontFragment', 8), ('cfdf', 9), ('poison', 10), ('unknown', 11), ('specialMemPkt', 12), ('autoConfig', 13), ('reject', 14)))) if mibBuilder.loadTexts: jnxPfeNotifyTypeId.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeId.setDescription("This identifies the PFE notification type for this row's stats. Below is a description of each notification type: 1. illegal Packets with invalid notification type. 2. unclassified Packets that did not have a key lookup performed on them. 3. option Packets which have L3 options present. 4. nextHop Packets that are destined to the host. 5. discard Used when a discarded packet is sent to the route processor. 6. sample Unused. 7. redirect This is used when a packet is being sent out on the interface it came in on. 8. dontFragment This is used that a packet needs to be fragmented but the DF (don't fragment) bit is set. 9. cfdf When an MTU exceeded indication is triggered by the CF chip and the packet has DF (don't fragment) set. 10. poison Packets that resolved to a poisoned next hop index. 11. unknown Packets of unknown notification type. 12. specialMemPkt Packets with special memory pkt type notification used in diagnostics. 13. autoconfig Packets with autoconfig PFE notification type used for dynamic VLANs. 14. reject Packets of reject PFE notification type.") jnx_pfe_notify_type_descr = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyTypeDescr.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeDescr.setDescription('The description of the Pfe Notification type for this entry.') jnx_pfe_notify_type_parsed = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyTypeParsed.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeParsed.setDescription('Count of successful parsing of notifications.') jnx_pfe_notify_type_input = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyTypeInput.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeInput.setDescription("Count of notifications whose associated packets were DMA'ed into route processor memory.") jnx_pfe_notify_type_failed = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyTypeFailed.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeFailed.setDescription('Count of failures in parsing the notifications.') jnx_pfe_notify_type_ignored = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeNotifyTypeIgnored.setStatus('current') if mibBuilder.loadTexts: jnxPfeNotifyTypeIgnored.setDescription('Count of notifications where the notification type in the message does not match any of the valid types.') jnx_pfe_memory_errors_table = mib_table((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3)) if mibBuilder.loadTexts: jnxPfeMemoryErrorsTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryErrorsTable.setDescription('This provides PFE memory errors') jnx_pfe_memory_errors_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1)).setIndexNames((0, 'JUNIPER-PFE-MIB', 'jnxPfeFpcSlot'), (0, 'JUNIPER-PFE-MIB', 'jnxPfeSlot')) if mibBuilder.loadTexts: jnxPfeMemoryErrorsEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryErrorsEntry.setDescription('') jnx_pfe_fpc_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: jnxPfeFpcSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeFpcSlot.setDescription('The FPC slot number for this set of PFE notification') jnx_pfe_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: jnxPfeSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeSlot.setDescription('The pfe slot number for this set of errors') jnx_pfe_parity_errors = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeParityErrors.setStatus('current') if mibBuilder.loadTexts: jnxPfeParityErrors.setDescription('The parity error count') jnx_pfe_ecc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeEccErrors.setStatus('current') if mibBuilder.loadTexts: jnxPfeEccErrors.setDescription('The ECC error count') pfe_memory_errors_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 0)) pfe_memory_errors = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 1, 0, 1)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeParityErrors'), ('JUNIPER-PFE-MIB', 'jnxPfeEccErrors')) if mibBuilder.loadTexts: pfeMemoryErrors.setStatus('current') if mibBuilder.loadTexts: pfeMemoryErrors.setDescription('A pfeMemoryErrors notification is sent when the value of jnxPfeParityErrors or jnxPfeEccErrors increases.') jnx_pfe_memory = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2)) jnx_pfe_memory_ukern_table = mib_table((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 1)) if mibBuilder.loadTexts: jnxPfeMemoryUkernTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryUkernTable.setDescription('This table provides global PFE ukern memory statistics for specified slot.') jnx_pfe_memory_ukern_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 1, 1)).setIndexNames((0, 'JUNIPER-PFE-MIB', 'jnxPfeGlSlot')) if mibBuilder.loadTexts: jnxPfeMemoryUkernEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryUkernEntry.setDescription('Entry represent ukern memory percentage free.') jnx_pfe_memory_ukern_free_percent = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeMemoryUkernFreePercent.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryUkernFreePercent.setDescription('The percent PFE ukern memory free within ukern heap.') jnx_pfe_memory_forwarding_table = mib_table((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2)) if mibBuilder.loadTexts: jnxPfeMemoryForwardingTable.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryForwardingTable.setDescription('This table provides PFE ASIC memory - NH/JTREE or FW/Filter or Encap memory utilization statistics.') jnx_pfe_memory_forwarding_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2, 1)).setIndexNames((0, 'JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), (0, 'JUNIPER-PFE-MIB', 'jnxPfeMemoryForwardingChipSlot'), (0, 'JUNIPER-PFE-MIB', 'jnxPfeMemoryType')) if mibBuilder.loadTexts: jnxPfeMemoryForwardingEntry.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryForwardingEntry.setDescription('Entry represent ASIC memory free percent of a specific type in specified pfe instance') jnx_pfe_memory_forwarding_chip_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))) if mibBuilder.loadTexts: jnxPfeMemoryForwardingChipSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryForwardingChipSlot.setDescription('ASIC instance number or pfe complex instance number.') jnx_pfe_memory_type = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2, 1, 2), jnx_pfe_memory_type_enum()) if mibBuilder.loadTexts: jnxPfeMemoryType.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryType.setDescription('PFE ASIC memory type, nh = 1, fw = 2, encap = 3.') jnx_pfe_memory_forwarding_percent_free = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 2, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: jnxPfeMemoryForwardingPercentFree.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryForwardingPercentFree.setDescription('Percentage ASIC memory free for a specific memory type. For Trio based linecards Encap memory is not available.Hence no value is returned') jnx_pfe_memory_trap_vars = object_identity((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 3)) if mibBuilder.loadTexts: jnxPfeMemoryTrapVars.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryTrapVars.setDescription('PFE notification object definitions.') jnx_pfe_gl_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 3, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: jnxPfeGlSlot.setStatus('current') if mibBuilder.loadTexts: jnxPfeGlSlot.setDescription('Global slot number for line card resource monitoring.') jnx_pfe_instance_number = mib_scalar((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 3, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: jnxPfeInstanceNumber.setStatus('current') if mibBuilder.loadTexts: jnxPfeInstanceNumber.setDescription('PFE instance number in pfe complex.') jnx_pfe_memory_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 3, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: jnxPfeMemoryThreshold.setStatus('current') if mibBuilder.loadTexts: jnxPfeMemoryThreshold.setDescription('Configured high memory utilization threshold.') jnx_pfe_memory_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4)) jnx_pfe_memory_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0)) jnx_pfe_heap_memory_threshold_exceeded = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 1)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), ('JUNIPER-PFE-MIB', 'jnxPfeMemoryThreshold')) if mibBuilder.loadTexts: jnxPfeHeapMemoryThresholdExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeHeapMemoryThresholdExceeded.setDescription('Indicates that the Heap Memory utilization has crossed the configured watermark.') jnx_pfe_heap_memory_threshold_abated = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 2)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), ('JUNIPER-PFE-MIB', 'jnxPfeMemoryThreshold')) if mibBuilder.loadTexts: jnxPfeHeapMemoryThresholdAbated.setStatus('current') if mibBuilder.loadTexts: jnxPfeHeapMemoryThresholdAbated.setDescription('Indicates that the Heap Memory utilization has fallen below the configured watermark.') jnx_pfe_next_hop_memory_threshold_exceeded = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 3)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), ('JUNIPER-PFE-MIB', 'jnxPfeInstanceNumber'), ('JUNIPER-PFE-MIB', 'jnxPfeMemoryThreshold')) if mibBuilder.loadTexts: jnxPfeNextHopMemoryThresholdExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeNextHopMemoryThresholdExceeded.setDescription('Indicates that the Next Hop Memory utilization has crossed the configured watermark.') jnx_pfe_next_hop_memory_threshold_abated = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 4)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), ('JUNIPER-PFE-MIB', 'jnxPfeInstanceNumber'), ('JUNIPER-PFE-MIB', 'jnxPfeMemoryThreshold')) if mibBuilder.loadTexts: jnxPfeNextHopMemoryThresholdAbated.setStatus('current') if mibBuilder.loadTexts: jnxPfeNextHopMemoryThresholdAbated.setDescription('Indicates that the Next Hop Memory utilization has fallen below the configured watermark.') jnx_pfe_filter_memory_threshold_exceeded = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 5)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), ('JUNIPER-PFE-MIB', 'jnxPfeInstanceNumber'), ('JUNIPER-PFE-MIB', 'jnxPfeMemoryThreshold')) if mibBuilder.loadTexts: jnxPfeFilterMemoryThresholdExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeFilterMemoryThresholdExceeded.setDescription('Indicates that the Filter Memory utilization has crossed the configured watermark.') jnx_pfe_filter_memory_threshold_abated = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 6)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), ('JUNIPER-PFE-MIB', 'jnxPfeInstanceNumber'), ('JUNIPER-PFE-MIB', 'jnxPfeMemoryThreshold')) if mibBuilder.loadTexts: jnxPfeFilterMemoryThresholdAbated.setStatus('current') if mibBuilder.loadTexts: jnxPfeFilterMemoryThresholdAbated.setDescription('Indicates that the Filter Memory utilization has fallen below the configured watermark.') jnx_pfe_encap_memory_threshold_exceeded = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 7)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), ('JUNIPER-PFE-MIB', 'jnxPfeInstanceNumber'), ('JUNIPER-PFE-MIB', 'jnxPfeMemoryThreshold')) if mibBuilder.loadTexts: jnxPfeEncapMemoryThresholdExceeded.setStatus('current') if mibBuilder.loadTexts: jnxPfeEncapMemoryThresholdExceeded.setDescription('Indicates that the ENCAP Memory utilization has crossed the configured watermark.') jnx_pfe_encap_memory_threshold_abated = notification_type((1, 3, 6, 1, 4, 1, 2636, 3, 44, 1, 2, 4, 0, 8)).setObjects(('JUNIPER-PFE-MIB', 'jnxPfeGlSlot'), ('JUNIPER-PFE-MIB', 'jnxPfeInstanceNumber'), ('JUNIPER-PFE-MIB', 'jnxPfeMemoryThreshold')) if mibBuilder.loadTexts: jnxPfeEncapMemoryThresholdAbated.setStatus('current') if mibBuilder.loadTexts: jnxPfeEncapMemoryThresholdAbated.setDescription('Indicates that the ENCAP Memory utilization has fallen below the configured watermark.') mibBuilder.exportSymbols('JUNIPER-PFE-MIB', jnxPfeNotifyTypeTable=jnxPfeNotifyTypeTable, jnxPfeNotifyGlTtlExcErrors=jnxPfeNotifyGlTtlExcErrors, jnxPfeFpcSlot=jnxPfeFpcSlot, jnxPfeNotifyTypeEntry=jnxPfeNotifyTypeEntry, jnxPfeMemoryUkernFreePercent=jnxPfeMemoryUkernFreePercent, jnxPfeEncapMemoryThresholdExceeded=jnxPfeEncapMemoryThresholdExceeded, jnxPfeMemoryNotifications=jnxPfeMemoryNotifications, jnxPfeNotifyGlSlot=jnxPfeNotifyGlSlot, jnxPfeNotifyTypeIgnored=jnxPfeNotifyTypeIgnored, jnxPfeMemoryForwardingEntry=jnxPfeMemoryForwardingEntry, jnxPfeSlot=jnxPfeSlot, jnxPfeMemoryType=jnxPfeMemoryType, jnxPfeMib=jnxPfeMib, jnxPfeNotifyGlOptTtlExp=jnxPfeNotifyGlOptTtlExp, jnxPfeMemoryUkernTable=jnxPfeMemoryUkernTable, PYSNMP_MODULE_ID=jnxPfeMib, jnxPfeNotifyGlAged=jnxPfeNotifyGlAged, pfeMemoryErrors=pfeMemoryErrors, jnxPfeMemoryTrapVars=jnxPfeMemoryTrapVars, jnxPfeNotifyTypeDescr=jnxPfeNotifyTypeDescr, jnxPfeMemoryErrorsEntry=jnxPfeMemoryErrorsEntry, jnxPfeFilterMemoryThresholdExceeded=jnxPfeFilterMemoryThresholdExceeded, jnxPfeNotifyGlCorrupt=jnxPfeNotifyGlCorrupt, jnxPfeNextHopMemoryThresholdAbated=jnxPfeNextHopMemoryThresholdAbated, jnxPfeNotifyGlPktGetFails=jnxPfeNotifyGlPktGetFails, jnxPfeNotifyGlGiants=jnxPfeNotifyGlGiants, jnxPfeNotifyGlDiscSample=jnxPfeNotifyGlDiscSample, jnxPfeNotifyTypeParsed=jnxPfeNotifyTypeParsed, jnxPfeMemoryForwardingChipSlot=jnxPfeMemoryForwardingChipSlot, jnxPfeHeapMemoryThresholdExceeded=jnxPfeHeapMemoryThresholdExceeded, jnxPfeMemoryNotificationsPrefix=jnxPfeMemoryNotificationsPrefix, jnxPfeEccErrors=jnxPfeEccErrors, jnxPfeNotifyTypeFailed=jnxPfeNotifyTypeFailed, jnxPfeMemoryErrorsTable=jnxPfeMemoryErrorsTable, jnxPfeNotifyGlUnknowns=jnxPfeNotifyGlUnknowns, jnxPfeNotifyGlSvcOptAsp=jnxPfeNotifyGlSvcOptAsp, JnxPfeMemoryTypeEnum=JnxPfeMemoryTypeEnum, jnxPfeNextHopMemoryThresholdExceeded=jnxPfeNextHopMemoryThresholdExceeded, jnxPfeNotifyGlDmaFails=jnxPfeNotifyGlDmaFails, jnxPfeGlSlot=jnxPfeGlSlot, jnxPfeHeapMemoryThresholdAbated=jnxPfeHeapMemoryThresholdAbated, jnxPfeNotification=jnxPfeNotification, jnxPfeNotifyGlTable=jnxPfeNotifyGlTable, jnxPfeNotifyGlParAccSec=jnxPfeNotifyGlParAccSec, jnxPfeFilterMemoryThresholdAbated=jnxPfeFilterMemoryThresholdAbated, jnxPfeParityErrors=jnxPfeParityErrors, jnxPfeNotifyGlSvcOptRe=jnxPfeNotifyGlSvcOptRe, jnxPfeMemoryForwardingTable=jnxPfeMemoryForwardingTable, jnxPfeNotifyGlSample=jnxPfeNotifyGlSample, jnxPfeNotifyGlParsed=jnxPfeNotifyGlParsed, jnxPfeNotifyGlIllegal=jnxPfeNotifyGlIllegal, jnxPfeMemoryForwardingPercentFree=jnxPfeMemoryForwardingPercentFree, jnxPfeEncapMemoryThresholdAbated=jnxPfeEncapMemoryThresholdAbated, jnxPfeNotifyTypeInput=jnxPfeNotifyTypeInput, jnxPfeNotifyGlEntry=jnxPfeNotifyGlEntry, jnxPfeNotifyGlDmaTotals=jnxPfeNotifyGlDmaTotals, jnxPfeMemoryUkernEntry=jnxPfeMemoryUkernEntry, jnxPfeNotifyGlTtlExceeded=jnxPfeNotifyGlTtlExceeded, jnxPfeNotifyGlRateLimited=jnxPfeNotifyGlRateLimited, jnxPfeInstanceNumber=jnxPfeInstanceNumber, jnxPfeMemoryThreshold=jnxPfeMemoryThreshold, jnxPfeNotifyGlPostSvcOptOut=jnxPfeNotifyGlPostSvcOptOut, pfeMemoryErrorsNotificationPrefix=pfeMemoryErrorsNotificationPrefix, jnxPfeNotifyTypeId=jnxPfeNotifyTypeId, jnxPfeMemory=jnxPfeMemory)
def implement_each(folder, each): folder['tags'] = each['tags'] + folder['tags'] for key, tags in each['folders'].items(): folder['folders'][key] = {'tags': tags, 'folders': {}} return folder
def implement_each(folder, each): folder['tags'] = each['tags'] + folder['tags'] for (key, tags) in each['folders'].items(): folder['folders'][key] = {'tags': tags, 'folders': {}} return folder
# Palindrome Permutation: # Given a string, write a function to check if it is a permutation of a palindrome. A palindrome is a word or phrase that is the same forwards and backwards. A permutation is a rearrangement of letters. The palindrome does not need to be limited to just dictionary words. def palindromePermutation(string): string = string.lower() sort = sorted(string) sortedString = "".join(sort) # sort the string isPerm = True oddCounter = 0 charCount = len(sortedString) if charCount % 2 == 0: # If there is an even number of characters, for char in range(0, charCount, 2): # loop through the string, pairing up each letter to the one after it. if sortedString[char] == sortedString[char+1]: # If all the pairs match up, isPerm = True # then the whole thing is a permutation of a palindrome. else: # Otherwise, isPerm = False # it is not. else: # If there is an odd number of characters, for char in range(0, charCount-1, 2): # loop through the string minus that odd one out, pairing up the letters. if sortedString[char] == sortedString[char+1]: # If the pair matches up, isPerm = True # then continue to the next pair. else: oddCounter += 1 sortedString.replace(sortedString[char], "", 1) if oddCounter > 1: isPerm = False return isPerm print(palindromePermutation("tact coa")) # True print(palindromePermutation("abdccdcdba")) # True print(palindromePermutation("yeet")) # False
def palindrome_permutation(string): string = string.lower() sort = sorted(string) sorted_string = ''.join(sort) is_perm = True odd_counter = 0 char_count = len(sortedString) if charCount % 2 == 0: for char in range(0, charCount, 2): if sortedString[char] == sortedString[char + 1]: is_perm = True else: is_perm = False else: for char in range(0, charCount - 1, 2): if sortedString[char] == sortedString[char + 1]: is_perm = True else: odd_counter += 1 sortedString.replace(sortedString[char], '', 1) if oddCounter > 1: is_perm = False return isPerm print(palindrome_permutation('tact coa')) print(palindrome_permutation('abdccdcdba')) print(palindrome_permutation('yeet'))
# Default colors STRONG = "5aa69d" # primary color (for highlighting etc) NEUTRAL = "999999" POSITIVE = "47b358" NEGATIVE = "ec6b56" FILL_BETWEEN = "F7F4F4" WARM = "ff808f" COLD = "4062bb" BLACK = "0F1108" DARK_GRAY = "42404F" LIGHT_GRAY = "C8C7D1" # For categorical coloring # picked from color brewer, but without too much thought... # Can be overridden with style file QUALITATIVE = ["66c2a5", "fc8d62", "8da0cb", "e78ac3", "a6d854", "ffd92f", "e5c494", "b3b3b3"]
strong = '5aa69d' neutral = '999999' positive = '47b358' negative = 'ec6b56' fill_between = 'F7F4F4' warm = 'ff808f' cold = '4062bb' black = '0F1108' dark_gray = '42404F' light_gray = 'C8C7D1' qualitative = ['66c2a5', 'fc8d62', '8da0cb', 'e78ac3', 'a6d854', 'ffd92f', 'e5c494', 'b3b3b3']
values = [] values.append(1) values.append(3) values.append(5) print('first time:', values) values = values[1:] print('second time:', values)
values = [] values.append(1) values.append(3) values.append(5) print('first time:', values) values = values[1:] print('second time:', values)
s = list(map(int, input().split())) for i in range(1, len(s), 2): s[i - 1], s[i] = s[i], s[i - 1] print(*s)
s = list(map(int, input().split())) for i in range(1, len(s), 2): (s[i - 1], s[i]) = (s[i], s[i - 1]) print(*s)
for i in range(100): count=i+1 if count % 3==0 and count % 5==0: a= 'fizzbuzz' elif count % 3==0: a= "fizz" elif count % 5==0: a="buzz" else: a=count user=input("whats the next number in fizzbuzz?") a= str(a) if user==a: print("goodjob") else: print('sorry,wrong answer') break
for i in range(100): count = i + 1 if count % 3 == 0 and count % 5 == 0: a = 'fizzbuzz' elif count % 3 == 0: a = 'fizz' elif count % 5 == 0: a = 'buzz' else: a = count user = input('whats the next number in fizzbuzz?') a = str(a) if user == a: print('goodjob') else: print('sorry,wrong answer') break
# .py file for python maths exercises # convert degree to radian # x * pi/180 # in = 15 # out = 0.2619047619047619 def deg2rad(degrees): pi = 22/7 return degrees * pi / 180 # convert radian to degree # in = .52 # out = 29.781818181818185 def rad2deg(rad): pi = 22/7 return rad / pi * 180 # area of trapezoid # a = (a+b/2)h # in = h: 5, a: 5, b: 6 # # out = 27.5 def area_of_trapezoid(a, b, h): ab = a + b return (ab / 2) * h # area of parallelogram # a = bh # in = b: 5, h: 6 def area_of_parallelogram(b, h): return b*h # surface volume and surface area of cylinder # a = 2(pi)rh + 2(pi)r^2 # v = (pi)r^2h # in = h: 4, r: 6 # out a = 377.1428571428571 # out v = 452.57142857142856 def get_volume_surface_of_cylinder(r, h): pi = 22/7 a = (2 *pi) * r * h + (2 * pi) * (r * r) print(a) v = pi * (r * r) * h print (v)
def deg2rad(degrees): pi = 22 / 7 return degrees * pi / 180 def rad2deg(rad): pi = 22 / 7 return rad / pi * 180 def area_of_trapezoid(a, b, h): ab = a + b return ab / 2 * h def area_of_parallelogram(b, h): return b * h def get_volume_surface_of_cylinder(r, h): pi = 22 / 7 a = 2 * pi * r * h + 2 * pi * (r * r) print(a) v = pi * (r * r) * h print(v)
def add_class_name(attrs, class_name): class_names = attrs.get('class') if class_names: class_names = [class_names] else: class_names = [] class_names.append(class_name) attrs['class'] = ' '.join(class_names) return attrs class ReadonlyValue: def __init__(self, value, humanized_value): self.value = value self.humanized_value = humanized_value
def add_class_name(attrs, class_name): class_names = attrs.get('class') if class_names: class_names = [class_names] else: class_names = [] class_names.append(class_name) attrs['class'] = ' '.join(class_names) return attrs class Readonlyvalue: def __init__(self, value, humanized_value): self.value = value self.humanized_value = humanized_value
''' Segments which start with six zero-bits after the header are very often ascii files. ''' class R1k6ZeroSegment(): ''' Look for ascii files with six zero bits prefix ''' def __init__(self, this): if not this.has_note('R1k_Segment'): return bits = bin(int.from_bytes(b'\xff' + this[:17].tobytes(), 'big'))[10:] hdr0 = int(bits[:32], 2) hdr1 = int(bits[32:64], 2) hdr2 = int(bits[64:96], 2) hdr3 = int(bits[96:128], 2) hdr4 = int(bits[128:134], 2) if hdr4: return if hdr0 > hdr3: return if hdr2: return if hdr1 & 0xfff != 0xfff: return if hdr3 & 0xfff != 0xfff: return if (hdr0 + 0x7f - 134) % 8: return text = [] a = (this[16] & 3) << 8 hdr0 += 0x7f self.incomplete = 0 for n, i in enumerate(this): hdr0 -= 8 if hdr0 < 0: break if n > 16: a |= i char = (a >> 2) & 0xff a &= 3 a <<= 8 if 32 <= char <= 126: text.append(b'%c' % char) elif char in (9, 10, 12, 13,): text.append(b'%c' % char) else: if n > 17: print("6Z FAIL", this, "char 0x%02x" % i, n, hdr0) if n > 1024: self.incomplete = n break return if len(text) > 0: this.add_note("R1k6ZERO") self.that = this.create(bits=b''.join(text)) self.that.add_note("R1k Text-file segment") this.add_interpretation(self, self.render_bits) if self.incomplete: this.add_interpretation(self, this.html_interpretation_hexdump) def render_bits(self, fo, _this): ''' just a pointer to the new artifact ''' fo.write('<H3>R1K Text file</H3>\n') fo.write('<pre>\n') fo.write('Please see content at' + self.that.summary() + '\n') if self.incomplete: fo.write('From approx 0x%x conversion failed\n' % self.incomplete) fo.write('</pre>\n')
""" Segments which start with six zero-bits after the header are very often ascii files. """ class R1K6Zerosegment: """ Look for ascii files with six zero bits prefix """ def __init__(self, this): if not this.has_note('R1k_Segment'): return bits = bin(int.from_bytes(b'\xff' + this[:17].tobytes(), 'big'))[10:] hdr0 = int(bits[:32], 2) hdr1 = int(bits[32:64], 2) hdr2 = int(bits[64:96], 2) hdr3 = int(bits[96:128], 2) hdr4 = int(bits[128:134], 2) if hdr4: return if hdr0 > hdr3: return if hdr2: return if hdr1 & 4095 != 4095: return if hdr3 & 4095 != 4095: return if (hdr0 + 127 - 134) % 8: return text = [] a = (this[16] & 3) << 8 hdr0 += 127 self.incomplete = 0 for (n, i) in enumerate(this): hdr0 -= 8 if hdr0 < 0: break if n > 16: a |= i char = a >> 2 & 255 a &= 3 a <<= 8 if 32 <= char <= 126: text.append(b'%c' % char) elif char in (9, 10, 12, 13): text.append(b'%c' % char) else: if n > 17: print('6Z FAIL', this, 'char 0x%02x' % i, n, hdr0) if n > 1024: self.incomplete = n break return if len(text) > 0: this.add_note('R1k6ZERO') self.that = this.create(bits=b''.join(text)) self.that.add_note('R1k Text-file segment') this.add_interpretation(self, self.render_bits) if self.incomplete: this.add_interpretation(self, this.html_interpretation_hexdump) def render_bits(self, fo, _this): """ just a pointer to the new artifact """ fo.write('<H3>R1K Text file</H3>\n') fo.write('<pre>\n') fo.write('Please see content at' + self.that.summary() + '\n') if self.incomplete: fo.write('From approx 0x%x conversion failed\n' % self.incomplete) fo.write('</pre>\n')
c = c2 = c3 = 0 while True: print('-' * 30) print(' CADASTRE UMA PESSOA ') print('-' * 30) idade = int(input('Idade: ')) sexo = str(input('Sexo: [F/M] ')).strip().upper()[0] while sexo not in 'FM': sexo = str(input('Sexo: [F/M] ')).strip().upper()[0] if idade < 18: c += 1 if sexo == 'M': c2 += 1 if sexo == 'F' and idade < 20: c3 += 1 print('-' * 30) continuar = str(input('Deseja continuar? [S/N] ')).upper().strip()[0] if continuar == 'N': break while continuar not in 'SN': print('-' * 30) continuar = str(input('Deseja continuar? [S/N] ')).upper().strip()[0] print('-' * 30) print(f'Foram contadas {c} pessoas com menos de 18 anos, {c2} homens e {c3} mulheres com menos de 20 anos.') print('='*5,'FIM DO PROGRAMA','='*5)
c = c2 = c3 = 0 while True: print('-' * 30) print(' CADASTRE UMA PESSOA ') print('-' * 30) idade = int(input('Idade: ')) sexo = str(input('Sexo: [F/M] ')).strip().upper()[0] while sexo not in 'FM': sexo = str(input('Sexo: [F/M] ')).strip().upper()[0] if idade < 18: c += 1 if sexo == 'M': c2 += 1 if sexo == 'F' and idade < 20: c3 += 1 print('-' * 30) continuar = str(input('Deseja continuar? [S/N] ')).upper().strip()[0] if continuar == 'N': break while continuar not in 'SN': print('-' * 30) continuar = str(input('Deseja continuar? [S/N] ')).upper().strip()[0] print('-' * 30) print(f'Foram contadas {c} pessoas com menos de 18 anos, {c2} homens e {c3} mulheres com menos de 20 anos.') print('=' * 5, 'FIM DO PROGRAMA', '=' * 5)
#-*- coding:utf-8 -*- AbsoluteFreqMap = { 'C': 261, '#C': 276, 'bD': 276, 'D': 292, '#D': 310, 'bE': 310, 'E': 328, 'F': 348, '#F': 369, 'bG': 369, 'G': 391, '#G': 414, 'bA': 414, 'A': 438, '#A': 465, 'bB': 465, 'B': 492 } RelativeFreqMap = { '1': 0, '#1': 1 / 12, 'b2': 1 / 12, '2': 2 / 12, '#2': 3 / 12, 'b3': 3 / 12, '3': 4 / 12, '4': 5 / 12, '#4': 6 / 12, 'b5': 6 / 12, '5': 7 / 12, '#5': 8 / 12, 'b5': 8 / 12, '6': 9 / 12, '#6': 10 / 12, 'b7': 10 / 12, '7': 11 / 12 }
absolute_freq_map = {'C': 261, '#C': 276, 'bD': 276, 'D': 292, '#D': 310, 'bE': 310, 'E': 328, 'F': 348, '#F': 369, 'bG': 369, 'G': 391, '#G': 414, 'bA': 414, 'A': 438, '#A': 465, 'bB': 465, 'B': 492} relative_freq_map = {'1': 0, '#1': 1 / 12, 'b2': 1 / 12, '2': 2 / 12, '#2': 3 / 12, 'b3': 3 / 12, '3': 4 / 12, '4': 5 / 12, '#4': 6 / 12, 'b5': 6 / 12, '5': 7 / 12, '#5': 8 / 12, 'b5': 8 / 12, '6': 9 / 12, '#6': 10 / 12, 'b7': 10 / 12, '7': 11 / 12}
def open_file(): file = input('Enter input file:') if file=="measles.txt": return file else: print("File should be \"measles.txt\"") exit() #Function compare income and the integers def ref(income): if income==1: income="WB_LI" return income elif income==2: income="WB_LMI" return income elif income==3: income="WB_UMI" return income elif income==4: income="WB_HI" return income else: print("Invalid income") while True: try: file=open_file() year = int(input('Enter year:')) year = str(year) income = int(input('Enter income level:')) income2=ref(income) measles = open(file, 'r') count=0 add=0 lowest=99 highest=0 for line in measles: if (income2 in line[51:57]) and (year==line[88:92]): child=line[59:62] child2=int(child) if child2>highest: highest=child2 if child2<lowest: lowest=child2 add+=child2 count+=1 average=add/count print("Lowest percentage =",lowest) print("Highest percentage =",highest) print("Average percentage =",average) print("Success!!") break except: print("Error!! , Invalid Input!!") continue
def open_file(): file = input('Enter input file:') if file == 'measles.txt': return file else: print('File should be "measles.txt"') exit() def ref(income): if income == 1: income = 'WB_LI' return income elif income == 2: income = 'WB_LMI' return income elif income == 3: income = 'WB_UMI' return income elif income == 4: income = 'WB_HI' return income else: print('Invalid income') while True: try: file = open_file() year = int(input('Enter year:')) year = str(year) income = int(input('Enter income level:')) income2 = ref(income) measles = open(file, 'r') count = 0 add = 0 lowest = 99 highest = 0 for line in measles: if income2 in line[51:57] and year == line[88:92]: child = line[59:62] child2 = int(child) if child2 > highest: highest = child2 if child2 < lowest: lowest = child2 add += child2 count += 1 average = add / count print('Lowest percentage =', lowest) print('Highest percentage =', highest) print('Average percentage =', average) print('Success!!') break except: print('Error!! , Invalid Input!!') continue
load( "@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install", ) PACKAGE_JSON = "@com_github_scionproto_scion//spec/tools:package.json" def install_yarn_dependencies(): node_repositories( package_json = [PACKAGE_JSON], ) yarn_install( name = "spec_npm", # Opt out of directory artifacts, we rely on ts_library which needs # to see labels for all third-party files. exports_directories_only = False, package_json = PACKAGE_JSON, yarn_lock = "@com_github_scionproto_scion//spec/tools:yarn.lock", )
load('@build_bazel_rules_nodejs//:index.bzl', 'node_repositories', 'yarn_install') package_json = '@com_github_scionproto_scion//spec/tools:package.json' def install_yarn_dependencies(): node_repositories(package_json=[PACKAGE_JSON]) yarn_install(name='spec_npm', exports_directories_only=False, package_json=PACKAGE_JSON, yarn_lock='@com_github_scionproto_scion//spec/tools:yarn.lock')
def test_del_first_group(app): app.group.delete_first_group()
def test_del_first_group(app): app.group.delete_first_group()
class HttpFetchError(BaseException): pass class MaxExceptionError(BaseException): pass class KnownError(BaseException): pass
class Httpfetcherror(BaseException): pass class Maxexceptionerror(BaseException): pass class Knownerror(BaseException): pass
print("Enter a number") num = int(input()) print("Type 1 or 0") num2 = int(input()) b = bool(num2) if(b == True): for i in range(1, num+1): for j in range(1, i+1): print("*", end=" ") print() elif (b == False): for i in range(num, 0, -1): for j in range(1, i+1): print("*", end=" ") print()
print('Enter a number') num = int(input()) print('Type 1 or 0') num2 = int(input()) b = bool(num2) if b == True: for i in range(1, num + 1): for j in range(1, i + 1): print('*', end=' ') print() elif b == False: for i in range(num, 0, -1): for j in range(1, i + 1): print('*', end=' ') print()
string = '012345678901234567890123456789012345678901234567890123456789' n = 10 lista = [string[i:i+n] for i in range(0, len(string), n)] listastring = '.'.join(lista) print(listastring)
string = '012345678901234567890123456789012345678901234567890123456789' n = 10 lista = [string[i:i + n] for i in range(0, len(string), n)] listastring = '.'.join(lista) print(listastring)
# OpenWeatherMap API Key weather_api_key = "4b6f407bc3690ac1562800a586bbda13" # Google API Key g_key = "AIzaSyBH17Xn87x8SM7waCAzHnS4gKMWRX96iDQ"
weather_api_key = '4b6f407bc3690ac1562800a586bbda13' g_key = 'AIzaSyBH17Xn87x8SM7waCAzHnS4gKMWRX96iDQ'
t=int(input()) for i in range(t): n=int(input()) h=0 for i in range(n+1): if i%2==0: h += 1 else: h *= 2 print(h)
t = int(input()) for i in range(t): n = int(input()) h = 0 for i in range(n + 1): if i % 2 == 0: h += 1 else: h *= 2 print(h)
# Same as sorted_list_permutation [3 (ii)], however we are counting the number of occurring *columns* in A instead of number of occurrences itself. # # Goal: *no runtime goal* def custom_sort(A,B): C=B i=1 while i < len(B): j=i while j > 0 and (count_occurring_columns(B[j-1],A) > count_occurring_columns(B[j],A) or (count_occurring_columns(B[j-1],A) == count_occurring_columns(B[j],A) and B[j-1]<B[j])): new_val=C[j] C[j] = C[j-1] C[j-1]=new_val j-=1 i+=1 return reverse(C) def reverse(C): return C[::-1] def count_occurring_columns(value,A): cnt=0 for i in range(len(A)): Col=get_column(A,i) if value in Col: cnt+=1 return cnt def get_column(A,col_idx): Col=[] for i in range(len(A)): for j in range(len(A[i])): if (j==col_idx): Col.append(A[i][j]) return Col if __name__ == "__main__": A=[[7,2,1], [9,2,5], [7,5,2]] B=[7,2,1,9,5] print(custom_sort(A,B))
def custom_sort(A, B): c = B i = 1 while i < len(B): j = i while j > 0 and (count_occurring_columns(B[j - 1], A) > count_occurring_columns(B[j], A) or (count_occurring_columns(B[j - 1], A) == count_occurring_columns(B[j], A) and B[j - 1] < B[j])): new_val = C[j] C[j] = C[j - 1] C[j - 1] = new_val j -= 1 i += 1 return reverse(C) def reverse(C): return C[::-1] def count_occurring_columns(value, A): cnt = 0 for i in range(len(A)): col = get_column(A, i) if value in Col: cnt += 1 return cnt def get_column(A, col_idx): col = [] for i in range(len(A)): for j in range(len(A[i])): if j == col_idx: Col.append(A[i][j]) return Col if __name__ == '__main__': a = [[7, 2, 1], [9, 2, 5], [7, 5, 2]] b = [7, 2, 1, 9, 5] print(custom_sort(A, B))
hello = '' with open('hello-world.txt', 'r') as f: hello = f.read() print(hello)
hello = '' with open('hello-world.txt', 'r') as f: hello = f.read() print(hello)
# This is just for socgen-k test, you make sure Socgen-k server is working well. # https://socgen-k-api.openbankproject.com/ # API server URL BASE_URL = "https://socgen-k-api.openbankproject.com" API_VERSION = "v2.0.0" API_VERSION_V210 = "v2.1.0" # API server will redirect your browser to this URL, should be non-functional # You will paste the redirect location here when running the script CALLBACK_URI = 'http://127.0.0.1/cb' # login user: USERNAME = '1000203893' PASSWORD = '123456' CONSUMER_KEY = '45wpocdzh2uwnorvrk2sfy1rnwyc0h2ff3kdkr2s' # fromAccount info: 1000203893 FROM_BANK_ID = '00100' # FROM_ACCOUNT_ID = '3806441b-bbdf-3c60-b2b3-14e2f645635f' # 0 transaction FROM_ACCOUNT_ID = '83b96bb4-ae2c-3e90-ad2c-8ce0b4b0023b' # 3 transactions # FROM_ACCOUNT_ID = 'df88925b-4a7f-31f6-a077-3dcbd60b669f' # 12 transaction TO_BANK_ID = '00100' # the following there acounds are all belong to login user : 1000203893 # TO_ACCOUNT_ID = '3806441b-bbdf-3c60-b2b3-14e2f645635f' # TO_ACCOUNT_ID = '83b96bb4-ae2c-3e90-ad2c-8ce0b4b0023b' # TO_ACCOUNT_ID = 'df88925b-4a7f-31f6-a077-3dcbd60b669f' # this account is belong to user: 1000203892 TO_ACCOUNT_ID = '410ad4eb-9f63-300f-8cb9-12f0ab677521' # these accounts are belong to user: 1000203891 # TO_ACCOUNT_ID = '1f5587fa-8ad8-3c6b-8fac-ac3db5bdc3db' # these accounts are belong to user: 1000203899 --Ulrich Standalone account # TO_ACCOUNT_ID = 'bb912420-484d-38c2-8c5b-d9772dd5bfbc' # TO_ACCOUNT_ID = '0796d146-e39c-36a1-85cd-ef74f5d8227d' # toCountery # { # "name": "test2", # "created_by_user_id": "b9ed3a54-1e98-4ca1-9f95-76815373d9f4", # "this_bank_id": "00100", # "this_account_id": "83b96bb4-ae2c-3e90-ad2c-8ce0b4b0023b", # "this_view_id": "owner", # "counterparty_id": "a78dab15-1c51-4e1e-bfc2-aa270a60eb6d", # "other_bank_routing_scheme": "Agence", # "other_account_routing_scheme": "BKCOM_ACCOUNT", # "other_bank_routing_address": "00100", # "other_account_routing_address": "1000203892", # "is_beneficiary": true # } # Our currency to use OUR_CURRENCY = 'XAF' # Our value to transfer OUR_VALUE = '10' OUR_VALUE_LARGE = '1001.00'
base_url = 'https://socgen-k-api.openbankproject.com' api_version = 'v2.0.0' api_version_v210 = 'v2.1.0' callback_uri = 'http://127.0.0.1/cb' username = '1000203893' password = '123456' consumer_key = '45wpocdzh2uwnorvrk2sfy1rnwyc0h2ff3kdkr2s' from_bank_id = '00100' from_account_id = '83b96bb4-ae2c-3e90-ad2c-8ce0b4b0023b' to_bank_id = '00100' to_account_id = '410ad4eb-9f63-300f-8cb9-12f0ab677521' our_currency = 'XAF' our_value = '10' our_value_large = '1001.00'
GOOD_HTTP_CODES = [200, 201, 202, 203] USER_FIELD = 'username' ACCESS_TOKEN_FIELD = 'access_token' REFRESH_TOKEN_FIELD = 'refresh_token' EXPIRE_TIME_TOKEN_FIELD = 'expires_in' ERROR_CODE_FIELD = 'errcode' MENSSAGE_FIELD = 'errmsg' LIST_FIELD = 'list' STATE_FIELD = 'state' PAGES_FIELD = 'pages' GATEWAY_MAC_FIELD = 'gatewayMac' LOCK_MAC_FIELD ='lockMac' LOCK_ALIAS_FIELD = 'lockAlias' LOCK_ID_FIELD = 'lockId' GATEWAY_ID_FIELD = 'gatewayId' ELECTRIC_QUANTITY_FIELD = 'electricQuantity' API_URI='https://api.ttlock.com/v3' GATEWAY_LIST_RESOURCE = 'gateway/list' LOCK_RESOURCE = 'lock/lock' UNLOCK_RESOURCE = 'lock/unlock' LOCKS_PER_GATEWAY_RESOURCE = 'gateway/listLock' LOCK_RECORDS_RESOURCE = 'lockRecord/list' LOCK_STATE_RESOURCE = 'lock/queryOpenState' LOCK_ELECTRIC_QUANTITY_RESOURCE='lock/queryElectricQuantity' GATEWAY_LIST_URL = '{}/{}?clientId={}&accessToken={}&pageNo={}&pageSize={}&date={}' LOCKS_PER_GATEWAY_URL = '{}/{}?clientId={}&accessToken={}&gatewayId={}&date={}' LOCK_RECORDS_URL = '{}/{}?clientId={}&accessToken={}&lockId={}&pageNo={}&pageSize={}&startDate={}&endDate={}&date={}' LOCK_QUERY_URL = '{}/{}?clientId={}&accessToken={}&lockId={}&date={}' USER_RESOURCE = 'user/register' USER_CREATE_URL = '{}/{}?clientId={}&clientSecret={}&username={}&password={}&date={}' TOKEN_RESOURCE = 'oauth2/token' TOKEN_CREATE_URL = 'https://api.ttlock.com/{}?client_id={}&client_secret={}&username={}&password={}&grant_type=password&redirect_uri={}' TOKEN_REFRESH_URL = 'https://api.ttlock.com/{}?client_id={}&client_secret={}&refresh_token={}&grant_type=refresh_token&redirect_uri={}' UNLOCK_CODES = {1:'App unlock', 2:'touch the parking lock', 3:'gateway unlock', 4:'passcode unlock', 5:'parking lock raise', 6:'parking lock lower', 7:'IC card unlock', 8:'fingerprint unlock', 9:'wristband unlock', 10:'mechanical key unlock', 11:'Bluetooth lock', 12:'gateway unlock', 29:'unexpected unlock', 30:'door magnet close', 31:'door magnet open', 32:'open from inside', 33:'lock by fingerprint', 34:'lock by passcode', 35:'lock by IC card', 36:'lock by Mechanical key', 37:'Remote Control', 44:'Tamper alert', 45:'Auto Lock', 46:'unlock by unlock key', 47:'lock by lock key', 48:'Use INVALID Passcode several times'}
good_http_codes = [200, 201, 202, 203] user_field = 'username' access_token_field = 'access_token' refresh_token_field = 'refresh_token' expire_time_token_field = 'expires_in' error_code_field = 'errcode' menssage_field = 'errmsg' list_field = 'list' state_field = 'state' pages_field = 'pages' gateway_mac_field = 'gatewayMac' lock_mac_field = 'lockMac' lock_alias_field = 'lockAlias' lock_id_field = 'lockId' gateway_id_field = 'gatewayId' electric_quantity_field = 'electricQuantity' api_uri = 'https://api.ttlock.com/v3' gateway_list_resource = 'gateway/list' lock_resource = 'lock/lock' unlock_resource = 'lock/unlock' locks_per_gateway_resource = 'gateway/listLock' lock_records_resource = 'lockRecord/list' lock_state_resource = 'lock/queryOpenState' lock_electric_quantity_resource = 'lock/queryElectricQuantity' gateway_list_url = '{}/{}?clientId={}&accessToken={}&pageNo={}&pageSize={}&date={}' locks_per_gateway_url = '{}/{}?clientId={}&accessToken={}&gatewayId={}&date={}' lock_records_url = '{}/{}?clientId={}&accessToken={}&lockId={}&pageNo={}&pageSize={}&startDate={}&endDate={}&date={}' lock_query_url = '{}/{}?clientId={}&accessToken={}&lockId={}&date={}' user_resource = 'user/register' user_create_url = '{}/{}?clientId={}&clientSecret={}&username={}&password={}&date={}' token_resource = 'oauth2/token' token_create_url = 'https://api.ttlock.com/{}?client_id={}&client_secret={}&username={}&password={}&grant_type=password&redirect_uri={}' token_refresh_url = 'https://api.ttlock.com/{}?client_id={}&client_secret={}&refresh_token={}&grant_type=refresh_token&redirect_uri={}' unlock_codes = {1: 'App unlock', 2: 'touch the parking lock', 3: 'gateway unlock', 4: 'passcode unlock', 5: 'parking lock raise', 6: 'parking lock lower', 7: 'IC card unlock', 8: 'fingerprint unlock', 9: 'wristband unlock', 10: 'mechanical key unlock', 11: 'Bluetooth lock', 12: 'gateway unlock', 29: 'unexpected unlock', 30: 'door magnet close', 31: 'door magnet open', 32: 'open from inside', 33: 'lock by fingerprint', 34: 'lock by passcode', 35: 'lock by IC card', 36: 'lock by Mechanical key', 37: 'Remote Control', 44: 'Tamper alert', 45: 'Auto Lock', 46: 'unlock by unlock key', 47: 'lock by lock key', 48: 'Use INVALID Passcode several times'}
def insertionSort(alist): for index in range(1, len(alist)): currentvalue = alist[index] position = index while position > 0 and alist[position - 1] > currentvalue: alist[position] = alist[position - 1] position = position - 1 alist[position] = currentvalue alist = [54, 26, 93, 17, 77, 31, 44, 55, 20] insertionSort(alist) print(alist)
def insertion_sort(alist): for index in range(1, len(alist)): currentvalue = alist[index] position = index while position > 0 and alist[position - 1] > currentvalue: alist[position] = alist[position - 1] position = position - 1 alist[position] = currentvalue alist = [54, 26, 93, 17, 77, 31, 44, 55, 20] insertion_sort(alist) print(alist)
"Github API v2 library for Python" VERSION = (0, 2, 0) __author__ = "Ask Solem" __contact__ = "askh@opera.com" __homepage__ = "http://github.com/ask/python-github2" __version__ = ".".join(map(str, VERSION))
"""Github API v2 library for Python""" version = (0, 2, 0) __author__ = 'Ask Solem' __contact__ = 'askh@opera.com' __homepage__ = 'http://github.com/ask/python-github2' __version__ = '.'.join(map(str, VERSION))
N = 6 edge_list = [(0, 1, 30), (1, 0, 30), (0, 2, 25), (2, 0, 20), (1, 2, 40), (2, 1, 35), (1, 3, 35), (2, 4, 15), (3, 1, 25), (3, 2, 20), (3, 5, 45), (4, 3, 10), (4, 5, 40), (5, 3, 50), (5, 4, 50)] dij = [[float('inf') for i in range(N)] for j in range(N)] for i in range(N): dij[i][i] = 0.0 for e in edge_list: dij[e[0]][e[1]] = e[2] def dijkstra(origin, dest): v = [float('inf') for i in range(N)] M = list(range(N)) p = [None for i in range(N)] i = origin v[i] = 0 M.remove(i) while len(M) > 0: for j in range(N): dist = v[i] + dij[i][j] if v[j] > dist: v[j] = dist p[j] = i min_v = float('inf') for j in M: if min_v > v[j]: min_v = v[j] i = j M.remove(i) path = [dest] while dest != origin: path.insert(0, p[dest]) dest = p[dest] print('dist:', v[dest], ' path:', path) dijkstra(0, 5) # dist: 0 path: [0, 2, 4, 5]
n = 6 edge_list = [(0, 1, 30), (1, 0, 30), (0, 2, 25), (2, 0, 20), (1, 2, 40), (2, 1, 35), (1, 3, 35), (2, 4, 15), (3, 1, 25), (3, 2, 20), (3, 5, 45), (4, 3, 10), (4, 5, 40), (5, 3, 50), (5, 4, 50)] dij = [[float('inf') for i in range(N)] for j in range(N)] for i in range(N): dij[i][i] = 0.0 for e in edge_list: dij[e[0]][e[1]] = e[2] def dijkstra(origin, dest): v = [float('inf') for i in range(N)] m = list(range(N)) p = [None for i in range(N)] i = origin v[i] = 0 M.remove(i) while len(M) > 0: for j in range(N): dist = v[i] + dij[i][j] if v[j] > dist: v[j] = dist p[j] = i min_v = float('inf') for j in M: if min_v > v[j]: min_v = v[j] i = j M.remove(i) path = [dest] while dest != origin: path.insert(0, p[dest]) dest = p[dest] print('dist:', v[dest], ' path:', path) dijkstra(0, 5)
#list list = [1,2,3,4,8] print(list) list.append(6) print(list) list.pop(2) print(list) list.insert(1,7) print(list) list.extend([1,2,4,7]) print(list) print(list.count(2)) print(1 in list) list.sort() print(list) list.reverse() print(list) #dictionary dict = { 1:'yasser', 'h':'honey', 'l':3 } #tupels tuple = (1,2,4,5,8,8) #set set = {1,2,3,4,5,7} set.add(9) print(set) lists = [1,2,3,5,4,7,7] y = set.isdisjoint(lists) print(y)
list = [1, 2, 3, 4, 8] print(list) list.append(6) print(list) list.pop(2) print(list) list.insert(1, 7) print(list) list.extend([1, 2, 4, 7]) print(list) print(list.count(2)) print(1 in list) list.sort() print(list) list.reverse() print(list) dict = {1: 'yasser', 'h': 'honey', 'l': 3} tuple = (1, 2, 4, 5, 8, 8) set = {1, 2, 3, 4, 5, 7} set.add(9) print(set) lists = [1, 2, 3, 5, 4, 7, 7] y = set.isdisjoint(lists) print(y)
class Card: values = ["A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"] suits = ["Hearts", "Diamonds", "Clubs", "Spades"] def __init__(self, value, suit): self.set_value(value) self.set_suit(suit) def __repr__(self): return f"{self.value} of {self.suit}" def set_value(self, value): if value not in Card.values: raise ValueError self.value = value def set_suit(self, suit): if suit not in Card.suits: raise ValueError self.suit = suit
class Card: values = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K'] suits = ['Hearts', 'Diamonds', 'Clubs', 'Spades'] def __init__(self, value, suit): self.set_value(value) self.set_suit(suit) def __repr__(self): return f'{self.value} of {self.suit}' def set_value(self, value): if value not in Card.values: raise ValueError self.value = value def set_suit(self, suit): if suit not in Card.suits: raise ValueError self.suit = suit
def running_sum(numbers, start=0): if len(numbers) == 0: print() return total = numbers[0] + start print(total,end="") running_sum(numbers[1:],total)
def running_sum(numbers, start=0): if len(numbers) == 0: print() return total = numbers[0] + start print(total, end='') running_sum(numbers[1:], total)
class MyClass: var = "hello" def say(a,b): print("hello"+a.var+b)
class Myclass: var = 'hello' def say(a, b): print('hello' + a.var + b)
def parse_iteration(s): if s[-1] == 'k': return int(s[:-1])*1000 elif s[-1] == 'm': return int(s[:-1])*1000000 else: return int(s)
def parse_iteration(s): if s[-1] == 'k': return int(s[:-1]) * 1000 elif s[-1] == 'm': return int(s[:-1]) * 1000000 else: return int(s)
#ALGORITHM USED FOR GENERATING A MAGIC SQUARE USING FORMULA IS AS FOLLOWS: #Step 1: Start in the middle of the top row, and let n=1 #Step 2: Insert n into the current grid position; #Step 3: If n=N2 the grid is complete so stop. Otherwise increment n #Step 4: Move diagonally up and right, wrapping to the first column or last row if the move leads outside the grid. If this cell is already filled, move vertically down one space instead. #Step 5: Return to step 2. def generateSquare(n): # initially all the grids are set to 0 magicSquare = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] # first we fit the position of 1 i = n / 2 j = n - 1 # Filling the magic square from the conditions temp = 1 while temp <= (n * n): if i == -1 and j == n: j = n - 2 i = 0 else: # if the next number goes out of range if j == n: j = 0 # condition if the next number goes out of range in upper side if i < 0: i = n - 1 if magicSquare[int(i)][int(j)]: j = j - 2 i = i + 1 continue else: magicSquare[int(i)][int(j)] = temp temp = temp + 1 j = j + 1 i = i - 1 # Printing magic square print("sum of any magic square for any n is n(n*n + 1)/2 ") print("Magic Squre for n=3 whose sum is 15 in each row and column")#since n(n*n+1)/2 = 15 and n = 3 print(" 0, 1, 2") for count, row in enumerate(magicSquare): print(count, row) generateSquare(3)
def generate_square(n): magic_square = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] i = n / 2 j = n - 1 temp = 1 while temp <= n * n: if i == -1 and j == n: j = n - 2 i = 0 else: if j == n: j = 0 if i < 0: i = n - 1 if magicSquare[int(i)][int(j)]: j = j - 2 i = i + 1 continue else: magicSquare[int(i)][int(j)] = temp temp = temp + 1 j = j + 1 i = i - 1 print('sum of any magic square for any n is n(n*n + 1)/2 ') print('Magic Squre for n=3 whose sum is 15 in each row and column') print(' 0, 1, 2') for (count, row) in enumerate(magicSquare): print(count, row) generate_square(3)
# this module is a place to store stuff that is used in multiple modules # valorant client object client = None # websocket connections sockets = [] # user configuration config = None # onboarding state onboarding = False # asyncio loop loop = None
client = None sockets = [] config = None onboarding = False loop = None
def print_hello_world(n): while n > 0: print('Hello, world!') n = n - 1 print_hello_world(3)
def print_hello_world(n): while n > 0: print('Hello, world!') n = n - 1 print_hello_world(3)
our_set = set() our_set2 = {0} print(our_set, type(our_set)) print(our_set2, type(our_set2)) our_set.add('tomato') our_set2.add("potato") print(our_set) print(our_set2) x = "tomato" print(x in our_set) print(x in our_set2) print(our_set.isdisjoint(our_set2)) our_set3 = our_set.union(our_set2) print(our_set3) our_set.update(our_set3) our_set.update(our_set2) print(our_set) print(our_set.issubset(our_set3))
our_set = set() our_set2 = {0} print(our_set, type(our_set)) print(our_set2, type(our_set2)) our_set.add('tomato') our_set2.add('potato') print(our_set) print(our_set2) x = 'tomato' print(x in our_set) print(x in our_set2) print(our_set.isdisjoint(our_set2)) our_set3 = our_set.union(our_set2) print(our_set3) our_set.update(our_set3) our_set.update(our_set2) print(our_set) print(our_set.issubset(our_set3))
# # PySNMP MIB module CISCO-XGCP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-XGCP-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:21:37 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion") CCallControlProfileIndexOrZero, cmgwIndex = mibBuilder.importSymbols("CISCO-MEDIA-GATEWAY-MIB", "CCallControlProfileIndexOrZero", "cmgwIndex") CMgcGroupIndexOrZero, = mibBuilder.importSymbols("CISCO-MGC-MIB", "CMgcGroupIndexOrZero") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") CiscoPort, = mibBuilder.importSymbols("CISCO-TC", "CiscoPort") InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") TimeTicks, ObjectIdentity, ModuleIdentity, NotificationType, MibIdentifier, Integer32, Unsigned32, iso, IpAddress, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Bits, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "ModuleIdentity", "NotificationType", "MibIdentifier", "Integer32", "Unsigned32", "iso", "IpAddress", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Bits", "Gauge32") TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "DisplayString") ciscoXgcpMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 318)) ciscoXgcpMIB.setRevisions(('2006-02-21 00:00', '2005-12-21 00:00', '2005-08-24 00:00', '2005-08-09 00:00', '2005-03-07 00:00', '2004-11-15 00:00', '2004-08-30 00:00', '2004-05-14 00:00', '2003-02-03 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoXgcpMIB.setRevisionsDescriptions(('Added 7 new MGCP Packages to cXgcpMediaGwTable.', 'Sanitized the whole MIB.', '[1] Added table for Media Gateway statistics regarding Received and transmitted network messages. [2] Added table for active connections that are controlled by the Media Gateway.', 'Added cXgcpMediaGwAnnexabSdpEnabled to cXgcpMediaGwTable.', 'Added the following objects to cXgcpMediaGwTable cXgcpMediaGwLongDurTimer, cXgcpMediaGwProfile ', 'Added the following objects to cXgcpMediaGwTable cXgcpMediaGwConfiguredPackages, cXgcpMediaGwConnOosRsipBehavior ', '[1] Added the value resetTimerForEndpoint to CXgcpRetryMethod textual convention. [2] Widened the range of cXgcpMediaGwMaxExpTimeout. [3] Added cXgcpMediaGwCaleaEnabled to cXgcpMediaGwTable. ', 'Added the following objects: cXgcpMediaGwLastFailMgcAddrType, cXgcpMediaGwLastFailMgcAddr, cXgcpMediaGwDtmfRelay ', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: ciscoXgcpMIB.setLastUpdated('200602210000Z') if mibBuilder.loadTexts: ciscoXgcpMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoXgcpMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-voice-gateway@cisco.com') if mibBuilder.loadTexts: ciscoXgcpMIB.setDescription("This MIB is an enhancement for existing XGCP-MIB. xGCP is a set of protocols, for example SGCP (Simple Gateway Control Protocol) and MGCP (Media Gateway Control Protocol), which are designed as a control protocol within a distributed system that appears to the outside as a single VoIP/VoATM gateway. This system is composed of a call agent (or MGC, Media Gateway Controller) and of a set of 'media gateways' that perform the conversion of media signals between circuits and packets. In the xGCP model, the gateways focus on the audio signal translation function, while the call agent handles the signaling and call processing functions. Examples of Gateway Control Protocols are: * Simple Gateway Control Protocol (SGCP) * Media Gateway Control Protocol (MGCP) xGCP assumes a connection model where the basic constructs are: Endpoints : sources or sinks of data that could be physical or virtual. Connections : an association between two or more endpoints with the purpose of transmitting data between these endpoints. Once this association is established for both endpoints, data transfer between these endpoints can take place. Connections are grouped in calls. One or more connections can belong to one call. Connections and calls are set up at the initiative of one or several call agents. Terminologies used: AAL : ATM Adaptation Layer AUCX : Audit Connection Command used by the MGC to find out the status of a given gateway connection. AUEP : Audit Endpoint Command used by the MGC to find out the status of a given endpoint. CCAPI : Call Control Application Program Interface. CID : Channel Identifier CRCX : Connection Command from a MGC to request the gateway MG : Media Gateway MGC : Media Gateway Controller DLCX : Delete Command. This command can be initiated by either the MGC or gateway. GSM : Global System for Mobile Communications GW : Gateway. HP : Hairpin MDCX : Modify Connection Command from a MGC to request the gateway NSE : Negative Stuffing Event NTFY : A Notify Command sent from a gateway to a MGC in response to a RQNT command. PSTN : Public Switched Telephone Network RQNT : Request To Nofity Command from a MGC to request the gateway to provide a notification for configuration changes. RSIP : Restart in Progress Command. This command can be initiated by either the MGC or gateway. SPRT : Simple Packet Relay Transport SSE : Silicon Switching Engine TDM : Time Division Multiplexing TGW : Target Gateway TWC : Three Way Calling VCCI : Virtual Circuit Connection Identifier VMG : Virtual Media Gateway. It is a logical representation of a module (or a set of modules) that has MG functionality. There could be multiple VMGs in a device. VoAAL2 : Voice over AAL2") cXgcpNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 0)) cXgcpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1)) cXgcpMgcCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1)) cXgcpMediaGw = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2)) cXgcpStats = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3)) cXgcpConnection = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4)) class CXgcpRetryMethod(TextualConvention, Integer32): description = 'Method of resetting retry timer in XGCP. When media gateway re-try to communication to a call agent, the timeout for each re-try is doubled. Example: re-try time is 3 initial timeout is 2 (any unit) maximum possible retry time is 256 MGC group has 2 MGC and each MGC has two IP address timeout for neverResetTimer will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 128 256 512 MGC 1 IP22: 1024 2048 4096 timeout for resetTimerForNewMgc will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 2 4 8 MGC 1 IP22: 16 32 64 timeout for resetTimerForNewAddr will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 2 4 8 MGC 2 IP21: 2 4 8 MGC 1 IP22: 2 4 8 timeout for resetTimerForEndpoint will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 128 256 256 MGC 1 IP22: 256 256 256 ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("neverResetTimer", 1), ("resetTimerForNewMgc", 2), ("resetTimerForNewAddr", 3), ("resetTimerForEndpoint", 4)) class CXgcpCallEvent(TextualConvention, Integer32): description = 'Represents possible Gateway Control Protocol Call Events. ack - Acknowledgement msg createConn - Create connection msg deleteConn - Delete connection msg modifyConn - Modify connection msg notifyReq - Notify request msg alert - CCAPI alert event callConnect - CCAPI call connect event confReady - CCAPI conference ready confDestroy - CCAPI conference destroyed callDisconnect - CCAPI call disconnect callProceed - CCAPI call proceeding offHook - CCAPI off-hook/call setup ind onHook - CCAPI on-hook/call disconnected mediaEvent - Media Events intEven - Internal Events dissocConf - Dissociate Conf assocConf - Associate Conf modifyDone - CCAPI Call modify done event voiceModeDone - Voice Cut-thru has happened nse - CCAPI NSE events callHandoff - Handoff Call to some other app babblerAuditResp - CCAPI babbler audit response ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)) namedValues = NamedValues(("ack", 0), ("createConn", 1), ("deleteConn", 2), ("modifyConn", 3), ("notifyReq", 4), ("alert", 5), ("callConnect", 6), ("confReady", 7), ("confDestroy", 8), ("callDisconnect", 9), ("callProceed", 10), ("offHook", 11), ("onHook", 12), ("mediaEvent", 13), ("intEven", 14), ("dissocConf", 15), ("assocConf", 16), ("modifyDone", 17), ("voiceModeDone", 18), ("nse", 19), ("callHandoff", 20), ("babblerAuditResp", 21)) cXgcpMgcConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1), ) if mibBuilder.loadTexts: cXgcpMgcConfigTable.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigTable.setDescription('This is a table which is used to provision a MGC or MGC group for a MG. Each entry corresponds to a MGC or a MGC group for a single MG. ') cXgcpMgcConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex")) if mibBuilder.loadTexts: cXgcpMgcConfigEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigEntry.setDescription('Each row corresponds to a MGC or a group of MGCs for a media gateway.') cXgcpMgcConfigMgcGrpNum = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 1), CMgcGroupIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMgcConfigMgcGrpNum.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigMgcGrpNum.setDescription('This object specifies which MGC Redundant Group will be used in XGCP. The value of this object refers to the object cMgcGrpIndex from MGC Redundant Group Table, cMgcGrpParamTable. There are two conditions to associate a MGC group: 1. At least one MGC is associated with the MGC group 2. At least one protocol is associated with the MGC group If the value of the object is non-zero, it means the media gateway has a MGC Redundant Group. In the call setup, the parameters of call agents within the MGC Redundant Group will be sequentially tried according to its preference. This object cXgcpMgcConfigMgcGrpNum and object cXgcpMgcConfigAddress are mutually exclusive. The object cXgcpMgcConfigAddress can be set only when the object cXgcpMgcConfigMgcGrpNum is equal to 0. If the value of the object is 0, which means there is no MGC Redundant Group associated with the media gateway. It has only one call agent (in media gateway level) to communicate with. This call agent is indicated by cXgcpMgcConfigAddress and will be used in call setup (if call set-up on media gateway level). ') cXgcpMgcConfigAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 2), InetAddressType().clone('ipv4')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMgcConfigAddrType.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigAddrType.setDescription('This object specifies the address type of the MGC (object cXgcpMgcConfigAddress), either ipv4 or ipv6.') cXgcpMgcConfigAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 3), InetAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMgcConfigAddress.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigAddress.setDescription('This object specifies the address of the MGC the gateway used to communicate with in call setup. This object cXgcpMgcConfigAddress and object cXgcpMgcConfigMgcGrpNum are mutually exclusive. The object cXgcpMgcConfigAddress can be set only when the object cXgcpMgcConfigMgcGrpNum is equal to 0. Otherwise, the SET will be rejected with error. ') cXgcpMgcConfigProtocolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMgcConfigProtocolIndex.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigProtocolIndex.setDescription('This object specifies which protocol that the MG should use to communicate with the MGC when it try to set up the call. The value of this object is the same as the value of object cMediaGwProtocolIndex from protocol table (cMediaGwProtocolTable). If the value of cXgcpMgcConfigMgcGrpNum is non-zero, this object will be ignored because the protocol will be determined by the MGC group. The initial value is 1, means the system should have at least one default protocol between the gateway and the MGC created in the cMeidaGwProtocolTable when the system is initialized. ') cXgcpMgcConfigGatewayUdpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 5), CiscoPort().clone(2427)).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6 Transmission over UDP ') if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setDescription('The UDP port of the MG which is used to communicate with call agent in MGCP.') cXgcpMediaGwTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1), ) if mibBuilder.loadTexts: cXgcpMediaGwTable.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwTable.setDescription('This table is used to provision xGCP configuration in a MG.') cXgcpMediaGwEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex")) if mibBuilder.loadTexts: cXgcpMediaGwEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwEntry.setDescription("Each entry represents the xGCP attributes for a media gateway. An entry is created when the system detects the XGCP stack at system start-up. Accordingly, the existing entry shall be deleted when the system can't locate the XGCP stack at system start-up.") cXgcpMediaGwRequestTimeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10000)).clone(500)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6.3 Computing retransmission timers') if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setDescription('The request timeout is the period that the XGCP protocol waits before retransmitting an unacknowledged message. It is the responsibility of the requesting entity to provide suitable timeouts for all outstanding commands, and to retry commands when timeouts exceeded. ') cXgcpMediaGwRequestRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10)).clone(3)).setUnits('times').setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.1.4 Names of Call Agents and other entities') if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setDescription('This object specifies the number of retries for a request that exceeds timeout without acknowledge before it tries to connect to another MGC.') cXgcpMediaGwRequestRetryMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 3), CXgcpRetryMethod()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwRequestRetryMethod.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRequestRetryMethod.setDescription('This object specifies command retry method.') cXgcpMediaGwMaxExpTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000)).clone(4000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwMaxExpTimeout.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwMaxExpTimeout.setDescription('This object specifies the maximum timeout for exponential command retry by the media gateway.') cXgcpMediaGwRestartMwd = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600000)).clone(3000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 4.3.4 Fighting the restart avalanche') if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setDescription('The maximum waiting delay (MWD) timeout value is used for the media gateway to send the first Restart In Progress to the MGC. When a gateway is powered on, it should initiate a restart timer to a random value, uniformly distributed between 0 and a maximum waiting delay (MWD). The gateway should send the first RSIP message when the timer expires. The initial value of this object is chosen in an implementation-dependent manner by the MGCP functionality based on the call volume of the system. ') cXgcpMediaGwRestartDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 4.3.4 Fighting the restart avalanche') if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setDescription('This object specifies the Restart Delay Timeout for the restart process for a gateway to send out RestartInProgress when it is powered on or been reset. The purpose of setting the Restart Delay timer before sending the RestartInProgress notification to the media gateway controller is to avoid the network congestion during the critical period of service restoration. ') cXgcpMediaGwDefaultPackage = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31))).clone(namedValues=NamedValues(("packageDC", 1), ("packageG", 2), ("packageD", 3), ("packageM", 4), ("packageT", 5), ("packageL", 6), ("packageH", 7), ("packageR", 8), ("packageN", 9), ("packageA", 10), ("packageS", 11), ("packageATM", 12), ("packageMS", 13), ("packageDT", 14), ("packageMO", 15), ("packageRES", 16), ("packageSASDI", 17), ("packageIT", 18), ("packageMT", 19), ("packageB", 20), ("packageSST", 21), ("packageMDR", 22), ("packageFXR", 23), ("packageBA", 24), ("packageMD", 25), ("packageNAS", 26), ("packageMDSTE", 27), ("packagePRE", 28), ("packageLCS", 29), ("packageSRTP", 30), ("packageFM", 31))).clone('packageG')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages') if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setDescription("This object represents the default capability package supported in the gateway. packageDC ( 1) - Don't Care package packageG ( 2) - Generic package packageD ( 3) - DTMF package packageM ( 4) - MF package packageT ( 5) - Trunk package packageL ( 6) - Line package packageH ( 7) - Handset package packageR ( 8) - RTP package packageN ( 9) - NAS package packageA (l0) - Announcement Server package packageS (11) - Script package packageATM (12) - ATM package packageMS (13) - MF CAS package packageDT (14) - DTMF CAS package packageMO (15) - MO package packageRES (16) - RES package packageSASDI(17) - ASDI package (S) NCS packageIT (18) - IT package (S) TGCP packageMT (19) - MT package packageB (20) - B package packageSST (21) - SST package packageMDR (22) - MDR package packageFXR (23) - FAX package packageBA (24) - Bulk Audit package packageMD (25) - MD package packageNAS (26) - Network Access Server package packageMDSTE(27) - Modem relay Secure Telephone Equipment package packagePRE (28) - PRE package packageLCS (29) - MGCP Line Control Signaling package packageSRTP (30) - Secure RTP package packageFM (31) - Media Format Package ") cXgcpMediaGwSupportedPackages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 8), Bits().clone(namedValues=NamedValues(("notFound", 0), ("packageDC", 1), ("packageG", 2), ("packageD", 3), ("packageM", 4), ("packageT", 5), ("packageL", 6), ("packageH", 7), ("packageR", 8), ("packageN", 9), ("packageA", 10), ("packageS", 11), ("packageATM", 12), ("packageMS", 13), ("packageDT", 14), ("packageMO", 15), ("packageRES", 16), ("packageSASDI", 17), ("packageIT", 18), ("packageMT", 19), ("packageB", 20), ("packageSST", 21), ("packageMDR", 22), ("packageFXR", 23), ("packageBA", 24), ("packageMD", 25), ("packageNAS", 26), ("packageMDSTE", 27), ("packagePRE", 28), ("packageLCS", 29), ("packageSRTP", 30), ("packageFM", 31)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages ') if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setDescription("This object represents the bit map of MGCP supported packages. Bit 0 - Not Found Bit 1 - Package DC (Don't care package) Bit 2 - Package G (Generic package) Bit 3 - Package D (DTMF package) Bit 4 - Package M (MF package) Bit 5 - Package T (Trunk package) Bit 6 - Package L (Line package) Bit 7 - Package H (Handset package) Bit 8 - Package R (RTP package) Bit 9 - Package N (NAS package) Bit 10 - Package A (Announcement Server package) Bit 11 - Package S (Script package) Bit 12 - Package ATM (ATM package) Bit 13 - Package MS (MF CAS package) Bit 14 - Package DT (DTMF CAS package) Bit 15 - Package MO (MO package) Bit 16 - Package RES (RES package) Bit 17 - Package S_ASDI (ASDI package (S) NCS) Bit 18 - Package IT (IT package (S) TGCP) Bit 19 - Package MT (MT package) Bit 20 - Package B (B package) Bit 21 - Package SST (SST package) Bit 22 - Package MDR (MDR package) Bit 23 - Package FXR (FAX package) Bit 24 - Package BA (Bulk Audit package) Bit 25 - Package MD (MD package) Bit 26 - Package NAS (Network Access Server package) Bit 27 - Package MDSTE (Modem relay Secure Telephone Equipment package) Bit 28 - Package PRE (PRE package) Bit 29 - Package LCS (MGCP Line Control Signaling package) Bit 33 - Package SRTP (Secure RTP package) Bit 31 - Package FM (Media Format Package) The value 0 means there is no supported packages. ") cXgcpMediaGwSimpleSdpEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 9), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwSimpleSdpEnabled.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwSimpleSdpEnabled.setDescription("This object is used to enable/disable building of s, t, o lines in SDP message. where o field indicates the owner/creator and session identifier s field indicates the session name t field indicates the duration while a session is valid. If this object is set to 'true'(enabled), SDP will NOT include the fields s, t, and o. If this object is set to 'false', then it indicates that the o, s, t lines be built before sending SDP (Session Description Protocol). ") cXgcpMediaGwAckSdpEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 10), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwAckSdpEnabled.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwAckSdpEnabled.setDescription("This object specifies the ACK SDP is enabled or not. If this object is set to 'true', then it sends ADP with ACK when CODEC or reportable NTE delta changed, or an attempt is made to change CODEC, VAD, Packet-period, echo cancellation during FAX/modem mode. ") cXgcpMediaGwUndottedNotation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwUndottedNotation.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwUndottedNotation.setDescription("This object enables/disables the undotted notation for CODEC. This object is used to set CODEC notation to 'dotted' or 'undotted' in SDP between the gateway and the call agent. For example, 'G.726' is 'dotted', while 'G726' is 'undotted'. If it is set to 'true', then the 'undotted' notation for CODEC is enabled. ") cXgcpMediaGwQuarantineProcess = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 12), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.2.2.12. QuarantineHandling') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setDescription("This object is used to determine how to handle persistent events. If this object is set to 'true', the quarantined events should be processed, otherwise the quarantined events is discarded. ") cXgcpMediaGwQuarantineLoop = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 13), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.2. NotificationRequest ') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setDescription("This object controls the default quarantine mode. If this object is set to 'true', the default quarantine mode is 'loop', not 'step'. When this object is set to 'true', the gateway is expected to generate multiple notifications (loop), not at most one notification (step by step), in response to quarantined events. This object will be ignored if the object cXgcpMediaGwQuarantineProcess is set to 'false'. ") cXgcpMediaGwQuarantinePersist = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 14), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.2. NotificationRequest') if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setDescription("This object specifies how the persist events will be handled in quarantine processing. If this object is set to 'true', the persistent events bypass quarantine buffer. This object will be ignored if the object cXgcpMediaGwQuarantineProcess is set to 'false'. ") cXgcpMediaGwPiggybackMsg = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 15), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6.4. Piggy backing') if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setDescription('This object enables/disables the piggyback message generating. If the piggyback message generating is enabled, a call agent can send several MGCP messages in the same UDP packets to the gateway. ') cXgcpMediaGwMaxMsgSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setUnits('bytes').setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.8 Audit Endpoint ') if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setDescription('This object specifies the maximum allowed xGCP message size which is used for checking if the size will be supported by the call agent via (AuditEndPoint) response. A value of 0 means that there is no limit to the size of the XGCP message.') cXgcpMediaGwLastFailMgcAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 17), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddrType.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddrType.setDescription('This object indicates the address type, either IPv4 or IPv6, of cxeCallCtrlLastFailMgcAddr.') cXgcpMediaGwLastFailMgcAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 18), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddr.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddr.setDescription('This object indicates the address of last MGC which the media gateway had tried to communicate with but failed.') cXgcpMediaGwDtmfRelay = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 19), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwDtmfRelay.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwDtmfRelay.setDescription("When this object is set to 'true', the digits will be sent as peer-to-peer packet in the bearer. When this object is set to 'false', the digits will be sent as regular voice packets in the bearer. For low complexity CODECS (such as G.711), the preferred value for this object could be 'false'. For high complexity CODECS (such as G.729A), the preferred value for this object should be 'true', otherwise the digits may not get recognized properly at the remote end.") cXgcpMediaGwCaleaEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 20), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwCaleaEnabled.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwCaleaEnabled.setDescription("CALEA, Communication Assistance for Law Enforcement Act, is a feature that allows for a lawful intercept of a call details and call contents originating or terminating on specific terminals. CALEA feature can be turned on or off. A value 'true' specifies CALEA enabled and a value 'false' specifies CALEA disabled.") cXgcpMediaGwConfiguredPackages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 21), Bits().clone(namedValues=NamedValues(("notFound", 0), ("packageDC", 1), ("packageG", 2), ("packageD", 3), ("packageM", 4), ("packageT", 5), ("packageL", 6), ("packageH", 7), ("packageR", 8), ("packageN", 9), ("packageA", 10), ("packageS", 11), ("packageATM", 12), ("packageMS", 13), ("packageDT", 14), ("packageMO", 15), ("packageRES", 16), ("packageSASDI", 17), ("packageIT", 18), ("packageMT", 19), ("packageB", 20), ("packageSST", 21), ("packageMDR", 22), ("packageFXR", 23), ("packageBA", 24), ("packageMD", 25), ("packageNAS", 26), ("packageMDSTE", 27), ("packagePRE", 28), ("packageLCS", 29), ("packageSRTP", 30), ("packageFM", 31)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages ') if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setDescription("This object represents the bit map of MGCP packages configured and supported in the gateway. Bit 0 - Not Found Bit 1 - Package DC (Don't care package) Bit 2 - Package G (Generic package) Bit 3 - Package D (DTMF package) Bit 4 - Package M (MF package) Bit 5 - Package T (Trunk package) Bit 6 - Package L (Line package) Bit 7 - Package H (Handset package) Bit 8 - Package R (RTP package) Bit 9 - Package N (NAS package) Bit 10 - Package A (Announcement Server package) Bit 11 - Package S (Script package) Bit 12 - Package ATM (ATM package) Bit 13 - Package MS (MF CAS package) Bit 14 - Package DT (DTMF CAS package) Bit 15 - Package MO (MO package) Bit 16 - Package RES (RES package) Bit 17 - Package S_ASDI (ASDI package (S) NCS) Bit 18 - Package IT (IT package (S) TGCP) Bit 19 - Package MT (MT package) Bit 20 - Package B (B package) Bit 21 - Package SST (SST package) Bit 22 - Package MDR (MDR package) Bit 23 - Package FXR (FAX package) Bit 24 - Package BA (Bulk Audit package) Bit 25 - Package MD (MD package) Bit 26 - Package NAS (Network Access Server package) Bit 27 - Package MDSTE (Modem relay Secure Telephone Equipment package) Bit 28 - Package PRE (PRE package) Bit 29 - Package LCS (MGCP Line Control Signaling package) Bit 33 - Package SRTP (Secure RTP package) Bit 31 - Package FM (Media Format Package) The value 0 means there is no supported packages. ") cXgcpMediaGwConnOosRsipBehavior = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("sendDlcx", 1), ("rsipOnly", 2))).clone('sendDlcx')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwConnOosRsipBehavior.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwConnOosRsipBehavior.setDescription('This object specifies the RSIP behavior of the endpoints with active calls (in connections) when they are forced to out-of-service. The following values can be set for this object: sendDlcx - The media gateway sends RSIP-graceful and then individual DLCX command to delete the endpoints of each connection and its children before it sends out RSIP-forced command when an endpoint goes into alarm or placed out-of-service forcefully through the user command if the endpoint or its children has any calls (in connections). rsipOnly - The media gateway sends out RSIP-forced command, and delete the connections without any DLCX or RSIP-graceful command. This object is applicable only if the endpoint or its children have any calls. If there are no calls on the endpoint, the media gateway sends RSIP-forced command when the endpoint is forced to out-of-service.') cXgcpMediaGwLongDurTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65536)).clone(3600)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwLongDurTimer.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwLongDurTimer.setDescription('This object specifies the long duration timer. It is used to define the long duration of a connection. Once the timer expires, a notification will be sent to the MGC to indicate that a connection has established for the defined long duration.') cXgcpMediaGwProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 24), CCallControlProfileIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwProfile.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwProfile.setDescription('This object specifies the XGCP profile in the media gateway level. The value of 0 means the XGCP default profile is used in the media gateway level. If the value of ccasIfExtVoiceCfgCcntrlProfile is 0, then the endpoint uses the profile specified in this object.') cXgcpMediaGwAnnexabSdpEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 25), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cXgcpMediaGwAnnexabSdpEnabled.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwAnnexabSdpEnabled.setDescription("This object specifies the format for parsing or generating G.723 or G.729 codec in SDP message for the media gateway. The value 'true' means using Annex A and B in fmtp line complying with RFC 3555. The value 'false' means using Annex A and B in SDP attribute codec string.") cXgcpMsgStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1), ) if mibBuilder.loadTexts: cXgcpMsgStatsTable.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsTable.setDescription('This table contains statistical information on the transmitted and received network messages between MG and MGC, since the MG reset. The entries in this table are uniquly identified by the VMG index and the MGC address. This table contains statistics of the most recently received 64 MGC addressess for every VMG present in the device. When a new address is received and the number of entries for this MGC exceeds 64, then a least recently received entry is deleted.') cXgcpMsgStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex"), (0, "CISCO-XGCP-MIB", "cXgcpMsgStatsIndex")) if mibBuilder.loadTexts: cXgcpMsgStatsEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsEntry.setDescription('This entry contains the statistical information on the received and transmitted network messages with the associated MGC address.') cXgcpMsgStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: cXgcpMsgStatsIndex.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsIndex.setDescription('A unique index to identify a specific MGC address for tracking xGCP statistics between MGC and MG.') cXgcpMsgStatsMgcIPAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 2), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddressType.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddressType.setDescription('This object indicates the address type of cXgcpMsgStatsMgcIPAddress. ') cXgcpMsgStatsMgcIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 3), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddress.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddress.setDescription('This object indicates IP address of the MGC. The IP address should be unique on the table.') cXgcpMsgStatsSuccessMessages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMsgStatsSuccessMessages.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsSuccessMessages.setDescription('This object indicates the number of successful messages that communicate with the MGC on that IP address. Successful messages apply to both transmit and receive messages. Transmit: Positive ACK received from the MGC. Receive : Positive ACK sent to the MGC. This implies that the format of the message is correct and the request can be fulfilled.') cXgcpMsgStatsFailMessages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMsgStatsFailMessages.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsFailMessages.setDescription("This object indicates the number of failed messages that communicate with the MGC on that IP address. Failed messages apply to both transmit and receive messages. Transmit: Either NAK has been received from the MGC or message times out waiting for ACK. Receive: Format of the received message is bad or the request was NAK'ed.") cXgcpMsgStatsIncompleteMessages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpMsgStatsIncompleteMessages.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsIncompleteMessages.setDescription('This object indicates the number of transmit messages for which time out occurred while waiting for an ACK.') cXgcpStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2), ) if mibBuilder.loadTexts: cXgcpStatsTable.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTable.setDescription('This table contains information on the received and transmitted network messages, based on each message type, for all the VMGs present in the device. The table will have one entry for every VMG present in the device. When a new MG is instantiated, the device creates an entry. The entry is destroyed if the associated VMG is terminated.') cXgcpStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex")) if mibBuilder.loadTexts: cXgcpStatsEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsEntry.setDescription("This entry contains the information on the associated VMG's received and transmitted network messages. The value of each statistical object is incremented when the MG receives or transmits an XGCP message corresponding to that object type. All these values are set to '0' upon restarting of the VMG.") cXgcpStatsUdpRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsUdpRxPkts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsUdpRxPkts.setDescription('Number of UDP packets received from all the MGCs.') cXgcpStatsUdpTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsUdpTxPkts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsUdpTxPkts.setDescription('Number of UDP packets sent to all the MGCs.') cXgcpStatsUnRecRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsUnRecRxPkts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsUnRecRxPkts.setDescription('Number of unrecognized UDP packets received from all the MGCs.') cXgcpStatsMsgParsingErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsMsgParsingErrors.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsMsgParsingErrors.setDescription('Number of messages with parsing errors received from all the MGCs.') cXgcpStatsDupAckTxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsDupAckTxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsDupAckTxMsgs.setDescription('Number of duplicate response messages sent to the MGCs.') cXgcpStatsInvalidVerCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsInvalidVerCount.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsInvalidVerCount.setDescription('Number of invalid protocol version messages received from all the MGCs.') cXgcpStatsUnknownMgcRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsUnknownMgcRxPkts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsUnknownMgcRxPkts.setDescription('Number of unknown message packets received from all the MGCs.') cXgcpStatsAckTxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsAckTxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsAckTxMsgs.setDescription('Number of acknowledgment messages sent by the MG.') cXgcpStatsNackTxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsNackTxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsNackTxMsgs.setDescription('Number of negative acknowledgment messages sent by the MG.') cXgcpStatsAckRxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsAckRxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsAckRxMsgs.setDescription('Number of acknowledgment messages received by the MG.') cXgcpStatsNackRxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsNackRxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsNackRxMsgs.setDescription('Number of negative acknowledgment messages received by the MG.') cXgcpStatsRxCrcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxCrcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxCrcxs.setDescription('Number of CRCX messages received by the MG.') cXgcpStatsRxSuccCrcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxSuccCrcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccCrcxs.setDescription('Number of CRCX messages received, that were successful.') cXgcpStatsRxFailCrcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxFailCrcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailCrcxs.setDescription('Number of CRCX messages received, that failed.') cXgcpStatsRxDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxDlcxs.setDescription('Number of DLCX messages received.') cXgcpStatsRxSuccDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxSuccDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccDlcxs.setDescription('Number of DLCX messages received, that were successful.') cXgcpStatsRxFailDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxFailDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailDlcxs.setDescription('Number of DLCX messages received, that failed.') cXgcpStatsTxDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxDlcxs.setDescription('Number of DLCX messages sent.') cXgcpStatsTxSuccDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxSuccDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxSuccDlcxs.setDescription('Number of DLCX messages sent, that were successful.') cXgcpStatsTxFailDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxFailDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxFailDlcxs.setDescription('Number of DLCX messages sent, that failed.') cXgcpStatsRxMdcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxMdcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxMdcxs.setDescription('Number of MDCX messages received.') cXgcpStatsRxSuccMdcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxSuccMdcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccMdcxs.setDescription('Number of MDCX messages received, that were successful.') cXgcpStatsRxFailMdcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxFailMdcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailMdcxs.setDescription('Number of MDCX messages received, that failed.') cXgcpStatsRxRqnts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxRqnts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxRqnts.setDescription('Number of RQNT messages received.') cXgcpStatsRxSuccRqnts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxSuccRqnts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccRqnts.setDescription('Number of RQNT messages received, that were successful.') cXgcpStatsRxFailRqnts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxFailRqnts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailRqnts.setDescription('Number of RQNT messages received, that failed.') cXgcpStatsRxAucxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxAucxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxAucxs.setDescription('Number of AUCX messages received.') cXgcpStatsRxSuccAucxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxSuccAucxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccAucxs.setDescription('Number of AUCX messages received, that were successful.') cXgcpStatsRxFailAucxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxFailAucxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailAucxs.setDescription('Number of AUCX messages received, that failed.') cXgcpStatsRxAueps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxAueps.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxAueps.setDescription('Number of AUEP messages received.') cXgcpStatsRxSuccAueps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxSuccAueps.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccAueps.setDescription('Number of AUEP messages received, that were successful.') cXgcpStatsRxFailAueps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 32), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsRxFailAueps.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailAueps.setDescription('Number of AUEP messages received, that failed.') cXgcpStatsTxRsips = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 33), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxRsips.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxRsips.setDescription('Number of RSIP messages sent.') cXgcpStatsTxSuccRsips = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 34), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxSuccRsips.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxSuccRsips.setDescription('Number of RSIP messages sent, that were successful.') cXgcpStatsTxFailRsips = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 35), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxFailRsips.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxFailRsips.setDescription('Number of RSIP messages sent, that failed.') cXgcpStatsTxNotifies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 36), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxNotifies.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxNotifies.setDescription('Number of NTFY messages sent.') cXgcpStatsTxSuccNotifies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 37), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxSuccNotifies.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxSuccNotifies.setDescription('Number of NTFY messages sent, that were successful.') cXgcpStatsTxFailNotifies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 38), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpStatsTxFailNotifies.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxFailNotifies.setDescription('Number of NTFY messages sent, that failed.') cXgcpConnectionTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1), ) if mibBuilder.loadTexts: cXgcpConnectionTable.setStatus('current') if mibBuilder.loadTexts: cXgcpConnectionTable.setDescription('This table contains information on the active connections of all the VMGs present in the device. A MG may have zero or more number of calls at any given time. Each call consists of one or more connection. The table will have one entry per VMG per connection present in the device. When a new connection is established, the device creates an entry. The entry is destroyed if the associated connection is torn down.') cXgcpConnectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex"), (0, "CISCO-XGCP-MIB", "cXgcpConnId")) if mibBuilder.loadTexts: cXgcpConnectionEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpConnectionEntry.setDescription('This entry contains the information about an active connection.') cXgcpConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))) if mibBuilder.loadTexts: cXgcpConnId.setStatus('current') if mibBuilder.loadTexts: cXgcpConnId.setDescription('Connection ID generated by the gateway and sent in the ACK message.') cXgcpConnEndPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnEndPoint.setStatus('current') if mibBuilder.loadTexts: cXgcpConnEndPoint.setDescription('The physical or virtual entity that acts as a source or sink of data in the MG is called an endpoint. Every end point in the MG is assigned a textual name by the MG.') cXgcpConnCallId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnCallId.setStatus('current') if mibBuilder.loadTexts: cXgcpConnCallId.setDescription('Call ID associated with this connection. Call ID is a parameter that identifies the call to which this connection belongs to. A call ID is unique within a VMG instance.') cXgcpConnLocalUdpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 4), CiscoPort()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnLocalUdpPort.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLocalUdpPort.setDescription('The local UDP port used for the connection.') cXgcpConnRemoteUdpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 5), CiscoPort()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnRemoteUdpPort.setStatus('current') if mibBuilder.loadTexts: cXgcpConnRemoteUdpPort.setDescription('The remote UDP port used for the connection.') cXgcpConnMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("invalid", 0), ("sendOnly", 1), ("recvOnly", 2), ("sendRecv", 3), ("inActive", 4), ("loopBack", 5), ("contTest", 6), ("data", 7), ("netwLoop", 8), ("netwTest", 9), ("conference", 10)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnMode.setStatus('current') if mibBuilder.loadTexts: cXgcpConnMode.setDescription('Represents possible MG connection modes. invalid - Invalid value for mode sendOnly - The GW should only send packets recvOnly - The GW should only receive packets sendRecv - The GW can send and receive packets inActive - The GW should neither send nor receive packets loopBack - The GW should place the circuit in loopback mode contTest - The GW should place the circuit in test mode data - The GW should use the circuit for network access for data netwLoop - The GW should place the connection in network loopback mode netwTest - The GW should place the connection in network continuity test mode conference - The GW should place the connection in conference mode.') cXgcpConnVccId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnVccId.setStatus('current') if mibBuilder.loadTexts: cXgcpConnVccId.setDescription("VCCI used for the VoAAL2 call. The object should have a non-zero value only if the associated call is of VoAAL2 type. For all other calls the value should be '0'.") cXgcpConnChannelId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnChannelId.setStatus('current') if mibBuilder.loadTexts: cXgcpConnChannelId.setDescription("CID used for the VoAAL2 call. The object should have a non-zero value only if the associated call is of VoAAL2 type. For all other calls the value should be '0'.") cXgcpConnCallState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25))).clone(namedValues=NamedValues(("idle", 0), ("setting", 1), ("connecting", 2), ("conferencing", 3), ("active", 4), ("confDestroying", 5), ("disconnecting", 6), ("inactive", 7), ("voiceConnecting", 8), ("voiceActive", 9), ("confDissociating", 10), ("callLegsDissociated", 11), ("hpConnecting", 12), ("hpConnected", 13), ("hpConferencing", 14), ("hpActive", 15), ("voipConfDestroy", 16), ("erroState", 17), ("connectingInactive", 18), ("confDestroyingInactive", 19), ("confTest", 20), ("setupWait", 21), ("waitNseSent", 22), ("twcActive", 23), ("waitState", 24), ("handOver", 25)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnCallState.setStatus('current') if mibBuilder.loadTexts: cXgcpConnCallState.setDescription('Represents possible MG call states. idle - Idle setting - Incoming call from PSTN connecting - CRCX message received conferencing - Call connected, await conf active - Conference created confDestroying - Destroying conference disconnecting - Conf destroyed, disconnect call inactive - call in inactive mode voiceConnecting - Creating telephony call leg only voiceActive - Telephony call leg created confDissociating - Destroying conf callLegsDissociated - Conf destroyed hpConnecting - connecting TDM hair-pin call leg hpConnected - one HP call leg connected hpConferencing - Conferencing TDM Hairpin call leg hpActive - TDM hair-pinning active state voipConfDestroy - Conf destroyed, make HP call erroState - call in error state connectingInactive - creating inactive connection confDestroyingInactive - conf destroy inactive conn confTest - AAL2/IP continuity test setupWait - Waiting for setup information waitNseSent - Wait for NSE event to be sent twcActive - TWC call active waitState - App is waiting for call control handOver - App is grabbing back the control') cXgcpConnCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 128, 129, 130, 131, 132, 133, 134, 135, 200))).clone(namedValues=NamedValues(("notApplicable", 0), ("g711ulaw", 1), ("g711alaw", 2), ("g726k32", 3), ("g726k24", 4), ("g726k16", 5), ("g729", 6), ("g729a", 7), ("g729b", 8), ("g729bLowComp", 9), ("g728", 10), ("g723", 11), ("g7231HighRate", 12), ("g7231aHighRate", 13), ("g7231LowRate", 14), ("g7231aLowRate", 15), ("gsmFullRate", 16), ("gsmHalfRate", 17), ("gsmEnhancedFullRate", 18), ("gsmEnhancedHalfRate", 19), ("g729ab", 20), ("clearChannel", 128), ("nse", 129), ("xnse", 130), ("nte", 131), ("t38", 132), ("modemRelay", 133), ("mdsteModemRelay", 134), ("sse", 135), ("codecUnknown", 200)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnCodec.setReference('RFC-3551') if mibBuilder.loadTexts: cXgcpConnCodec.setStatus('current') if mibBuilder.loadTexts: cXgcpConnCodec.setDescription('Specifies the codec type to be used with the Call. The following codec types are defined: notApplicable - no Codec Type is defined g711ulaw - G.711 mu-law g711alaw - G.711 A-law g726k32 - G.726 32K g726k24 - G.726 24K g726k16 - G.726 16K g729 - G.729 g729a - G.729-A g729b - G.729-B g729bLowComp - G.729-B Low Complexity g728 - G.728 g723 - G.723 g7231HighRate - G.723.1 High Rate g7231aHighRate - G.723.1 Annex A High Rate g7231LowRate - G.723.1 Low Rate g7231aLowRate - G.723.1 Annex A Low Rate gsmFullRate - GSM full rate gsmHalfRate - GSM half rate gsmEnhancedFullRate - GSM enhanced full rate gsmEnhancedHalfRate - GSM enhanced half rate g729ab - G.729-A-B. clearChannel - Nx64 clear channel nse - For NSE xnse - For X-NSE nte - For telephone-event t38 - T-38 modemRelay - Modem Relay mdsteModemRelay - For X+mdste sse - For SSE codecUnknown - Unknown Codec') cXgcpConnLastSuccEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 11), CXgcpCallEvent()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnLastSuccEvent.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLastSuccEvent.setDescription('A call event is defined as something that happens to a call at a given time. This object contains the latest MG call event that was successful.') cXgcpConnLastSuccIntEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 12), CXgcpCallEvent()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnLastSuccIntEvent.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLastSuccIntEvent.setDescription('This object contains the latest MG internal call event that was successful.') cXgcpConnLastFailedEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 13), CXgcpCallEvent()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnLastFailedEvent.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLastFailedEvent.setDescription('This object contains the latest MG call event that was failed.') cXgcpConnLastReqEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 14), CXgcpCallEvent()).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnLastReqEvent.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLastReqEvent.setDescription('This object contains the latest requested MG call event.') cXgcpConnEventResult = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 50, 51, 52, 53, 54, 55, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 90, 91, 92, 93, 94, 95, 96, 97, 98, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 115, 120, 130, 131, 132, 133, 140, 141, 142, 143, 144, 145, 146))).clone(namedValues=NamedValues(("normalOk", 0), ("invalidOk", 1), ("callRecordReleased", 2), ("invalidCallId", 10), ("invalidConnId", 11), ("duplicatedMsg", 12), ("ackFailure", 13), ("deleteFailure", 14), ("createAckFailure", 15), ("createAckMissing", 16), ("deleteAckFailure", 17), ("notifyFailure", 18), ("invalidState", 19), ("invalidProtocolVer", 20), ("tgwDown", 30), ("tgwNotReady", 31), ("callVdbFailure", 32), ("prevRtpPortLocked", 33), ("connRecordMissing", 34), ("endPointNotRdy", 35), ("memResourceError", 36), ("callCacFailure", 37), ("confRsrcError", 38), ("gwRsrcNotAvailable", 39), ("reqEventFailure", 40), ("invalidCcapiEvent", 41), ("ignoreCcapiEvent", 42), ("signalFailure", 50), ("abnormalOnhook", 51), ("invalidOffhook", 52), ("invalidCot", 53), ("cotFailure", 54), ("cotDisableFailure", 55), ("callSetupReqFailure", 60), ("callSetupIndFailure", 61), ("callContextFailure", 62), ("callPeerFailure", 63), ("callVoxCallFailure", 64), ("callVoipCallFailure", 65), ("callDiscFailure", 66), ("callModifyFailure", 67), ("callAlertFailure", 68), ("callDeleteFailure", 69), ("callUnknownFeature", 70), ("upSupportedCodec", 71), ("noDigitMap", 72), ("ignoreDigit", 73), ("digitsOverflow", 74), ("digitsNotifyFailure", 75), ("codecNotMatched", 76), ("invalidConnMode", 77), ("glare", 78), ("peerMissing", 90), ("peerNotReady", 91), ("peerInWrongState", 92), ("peerDisconnectFailure", 93), ("noConferenceId", 94), ("confCreateFailure", 95), ("confDestroyFailure", 96), ("unknownConnType", 97), ("invalidEndpoint", 98), ("invalidNseEvent", 100), ("nseRcvdOnWrongLeg", 101), ("sendNseFailure", 102), ("playToneFailure", 103), ("codecSpecInError", 104), ("mediaSpecUpsupported", 105), ("mediaChangeFail", 106), ("invalidNsePayload", 107), ("nsePayloadNotAvail", 108), ("embMdcxError", 109), ("mdcxLeg1Error", 110), ("mdcxLeg2Error", 111), ("deferMsg", 112), ("transError", 115), ("discOnWrongLeg", 120), ("invalidNteEvent", 130), ("notEnabledNteEvent", 131), ("nteEventExecuteFail", 132), ("sendNteFailure", 133), ("invalidSsePayload", 140), ("ssePayloadNotAvailable", 141), ("invalidModemRelayParam", 142), ("modemRelayNotSupported", 143), ("invalidXcapXcpar", 144), ("invalidSprtPayload", 145), ("sprtPayloadNotAvailable", 146)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnEventResult.setStatus('current') if mibBuilder.loadTexts: cXgcpConnEventResult.setDescription("Represents possible MG call event results. normalOk - Normal event processed OK invalidOk - Invalid event processed OK callRecordReleased - The call record is released invalidCallId - TGW find invalid call id invalidConnId - TGW find invalid connection id duplicatedMsg - TGW find duplicated sgcp msg ackFailure - TGW can't send sgcp ack msg deleteFailure - TGW can't send sgcp delete msg createAckFailure - TGW can't send create ack msg createAckMissing - TGW did't send sgcp ack msg deleteAckFailure - TGW can't send delete ack msg notifyFailure - TGW can't send sgcp notify msg invalidState - TGW find event in wrong state invalidProtocolVer - GW finds protocl ver. not supported tgwDown - TGW in graceful shutdown mode tgwNotReady - TGW not ready for the event callVdbFailure - TGW can't obtain the vdbptr prevRtpPortLocked - TGW find previous rtp port locked connRecordMissing - TGW can't find conn record endPointNotRdy - TGW not ready for the event memResourceError - TGW has transient mem alloc err callCacFailure - GW does not have the bandwidth confRsrcError - GW cannot get conf resource gwRsrcNotAvailable - GW does not have available resource reqEventFailure - TGW can't handle requested event invalidCcapiEvent - TGW can't handle the ccapi event ignoreCcapiEvent - TGW will ignore the ccapi event signalFailure - TGW can't handle the signal abnormalOnhook - TGW find abnormal onhook invalidOffhook - TGW find invalid offhook invalidCot - TGW find invalid cot cotFailure - TGW failed to do COT cotDisableFailure - TGW failed to disable COT callSetupReqFailure - TGW can't setup call request callSetupIndFailure - TGW can't handle call indication callContextFailure - TGW can't setup the context callPeerFailure - TGW can't setup the peer callVoxCallFailure - TGW can't setup the voip/voaal2 call callVoipCallFailure - TGW can't setup the voip call callDiscFailure - TGW can't disconnect the call callModifyFailure - TGW can't modify the call parm callAlertFailure - TGW can't alert the call callDeleteFailure - TGW can't delete the call callUnknownFeature - TGW can't handle unknow feature upSupportedCodec - TGW find unsupported codec noDigitMap - TGW can't find the digit map ignoreDigit - TGW can't process the digits digitsOverflow - TGW can't handle too many digits digitsNotifyFailure - TGW can't send the digits out codecNotMatched - TGW codec doesn't match rmt TGW invalidConnMode - TGW can't understand con mode glare - GW encountered a glare condition peerMissing - TGW find not find the peer peerNotReady - TGW find peer not ready peerInWrongState - TGW find the peer in wrong state peerDisconnectFailure - TGW can't disconnect the peer noConferenceId - TGW can't find the conference ID confCreateFailure - TGW can't create conference confDestroyFailure - TGW can't destroy conference unknownConnType - TGW can't handle the con type invalidEndpoint - TGW can't connect to endpoint invalidNseEvent - Invalid NSE event nseRcvdOnWrongLeg - The NSE events come to a wrong leg sendNseFailure - Cannot send an NSE event playToneFailure - Cannot play NSE-requested tone codecSpecInError - Codec list provided in error mediaSpecUpsupported - Media specified not supported mediaChangeFail - Media change failed invalidNsePayload - Invalid payload type in SDP nsePayloadNotAvail - Specified NSE payload not free embMdcxError - Emb modify connection error mdcxLeg1Error - Modify connection leg1 error mdcxLeg2Error - Modify connection leg2 error deferMsg - For deferring events transError - TGW endpoint in transition state discOnWrongLeg - Disconnection on wrong call leg invalidNteEvent - Invalid NTE event notEnabledNteEvent - The NTE event has not been enabled for use nteEventExecuteFail - NTE execution failed sendNteFailure - Cannot send an NTE event invalidSsePayload - Invalid SSE payload ssePayloadNotAvailable - SSE payload is not available invalidModemRelayParam - Invalid Modem Relay Param modemRelayNotSupported - Modem Relay not supported in endpt invalidXcapXcpar - Invalid X-Cap or X-Cpar in SDP invalidSprtPayload - Invalid SPRT payload sprtPayloadNotAvailable - SPRT payload is not available") cXgcpConnEncrSuite = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("aes128Cm", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cXgcpConnEncrSuite.setStatus('current') if mibBuilder.loadTexts: cXgcpConnEncrSuite.setDescription('Specifies what type of encryption suite is used to encode the information sent through this connection. none - No Encryption suite is used aes128Cm - AES-128 countermode encryption suite is used.') cXgcpMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2)) cXgcpMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1)) cXgcpMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2)) ciscoXgcpMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 1)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigGroup"), ("CISCO-XGCP-MIB", "cXgcpMediaGwGroup"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoXgcpMIBCompliance = ciscoXgcpMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ciscoXgcpMIBCompliance.setDescription('The compliance statement for the SNMPv2 entities which implement XGCP. This has been replaced by ciscoXgcpMIBComplianceRev1. ') ciscoXgcpMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 2)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigGroup"), ("CISCO-XGCP-MIB", "cXgcpMediaGwGroup"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoXgcpMIBComplianceRev1 = ciscoXgcpMIBComplianceRev1.setStatus('deprecated') if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev1.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ') ciscoXgcpMIBComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 3)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigGroup"), ("CISCO-XGCP-MIB", "cXgcpMediaGwGroup"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoXgcpMIBComplianceRev2 = ciscoXgcpMIBComplianceRev2.setStatus('deprecated') if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev2.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ') ciscoXgcpMIBComplianceRev3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 4)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigGroup"), ("CISCO-XGCP-MIB", "cXgcpMediaGwGroup"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsGroup"), ("CISCO-XGCP-MIB", "cXgcpStatsGroup"), ("CISCO-XGCP-MIB", "cXgcpConnectionGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoXgcpMIBComplianceRev3 = ciscoXgcpMIBComplianceRev3.setStatus('current') if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev3.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ') cXgcpMgcConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 1)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigMgcGrpNum"), ("CISCO-XGCP-MIB", "cXgcpMgcConfigAddress"), ("CISCO-XGCP-MIB", "cXgcpMgcConfigAddrType"), ("CISCO-XGCP-MIB", "cXgcpMgcConfigProtocolIndex"), ("CISCO-XGCP-MIB", "cXgcpMgcConfigGatewayUdpPort")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cXgcpMgcConfigGroup = cXgcpMgcConfigGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigGroup.setDescription('This group contains the MGC objects for SGCP/MGCP that the MG connects to.') cXgcpMediaGwGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 2)).setObjects(("CISCO-XGCP-MIB", "cXgcpMediaGwRequestTimeOut"), ("CISCO-XGCP-MIB", "cXgcpMediaGwRequestRetries"), ("CISCO-XGCP-MIB", "cXgcpMediaGwRequestRetryMethod"), ("CISCO-XGCP-MIB", "cXgcpMediaGwMaxExpTimeout"), ("CISCO-XGCP-MIB", "cXgcpMediaGwRestartMwd"), ("CISCO-XGCP-MIB", "cXgcpMediaGwRestartDelay"), ("CISCO-XGCP-MIB", "cXgcpMediaGwDefaultPackage"), ("CISCO-XGCP-MIB", "cXgcpMediaGwSupportedPackages"), ("CISCO-XGCP-MIB", "cXgcpMediaGwSimpleSdpEnabled"), ("CISCO-XGCP-MIB", "cXgcpMediaGwAckSdpEnabled"), ("CISCO-XGCP-MIB", "cXgcpMediaGwUndottedNotation"), ("CISCO-XGCP-MIB", "cXgcpMediaGwQuarantineProcess"), ("CISCO-XGCP-MIB", "cXgcpMediaGwQuarantineLoop"), ("CISCO-XGCP-MIB", "cXgcpMediaGwQuarantinePersist"), ("CISCO-XGCP-MIB", "cXgcpMediaGwPiggybackMsg"), ("CISCO-XGCP-MIB", "cXgcpMediaGwMaxMsgSize"), ("CISCO-XGCP-MIB", "cXgcpMediaGwLastFailMgcAddrType"), ("CISCO-XGCP-MIB", "cXgcpMediaGwLastFailMgcAddr"), ("CISCO-XGCP-MIB", "cXgcpMediaGwDtmfRelay"), ("CISCO-XGCP-MIB", "cXgcpMediaGwCaleaEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cXgcpMediaGwGroup = cXgcpMediaGwGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwGroup.setDescription('This group contains core objects for SGCP/MGCP on the MG.') cXgcpMsgStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 3)).setObjects(("CISCO-XGCP-MIB", "cXgcpMsgStatsMgcIPAddressType"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsMgcIPAddress"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsSuccessMessages"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsFailMessages"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsIncompleteMessages")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cXgcpMsgStatsGroup = cXgcpMsgStatsGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsGroup.setDescription('This group contains statistics objects for SGCP/MGCP on the MGC and the MG.') cXgcpMediaGwGroupSup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 4)).setObjects(("CISCO-XGCP-MIB", "cXgcpMediaGwConfiguredPackages"), ("CISCO-XGCP-MIB", "cXgcpMediaGwConnOosRsipBehavior"), ("CISCO-XGCP-MIB", "cXgcpMediaGwLongDurTimer"), ("CISCO-XGCP-MIB", "cXgcpMediaGwProfile")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cXgcpMediaGwGroupSup1 = cXgcpMediaGwGroupSup1.setStatus('deprecated') if mibBuilder.loadTexts: cXgcpMediaGwGroupSup1.setDescription('This group contains supplimentary objects for XGCP extended provisioning in the MG.') cXgcpMediaGwGroupSup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 5)).setObjects(("CISCO-XGCP-MIB", "cXgcpMediaGwConfiguredPackages"), ("CISCO-XGCP-MIB", "cXgcpMediaGwConnOosRsipBehavior"), ("CISCO-XGCP-MIB", "cXgcpMediaGwLongDurTimer"), ("CISCO-XGCP-MIB", "cXgcpMediaGwProfile"), ("CISCO-XGCP-MIB", "cXgcpMediaGwAnnexabSdpEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cXgcpMediaGwGroupSup2 = cXgcpMediaGwGroupSup2.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwGroupSup2.setDescription('This group contains supplimentary objects for XGCP extended provisioning in the MG.') cXgcpStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 6)).setObjects(("CISCO-XGCP-MIB", "cXgcpStatsUdpRxPkts"), ("CISCO-XGCP-MIB", "cXgcpStatsUdpTxPkts"), ("CISCO-XGCP-MIB", "cXgcpStatsUnRecRxPkts"), ("CISCO-XGCP-MIB", "cXgcpStatsMsgParsingErrors"), ("CISCO-XGCP-MIB", "cXgcpStatsDupAckTxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsInvalidVerCount"), ("CISCO-XGCP-MIB", "cXgcpStatsUnknownMgcRxPkts"), ("CISCO-XGCP-MIB", "cXgcpStatsAckTxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsNackTxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsAckRxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsNackRxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxCrcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccCrcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailCrcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsTxDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsTxSuccDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsTxFailDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxMdcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccMdcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailMdcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxRqnts"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccRqnts"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailRqnts"), ("CISCO-XGCP-MIB", "cXgcpStatsRxAucxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccAucxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailAucxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxAueps"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccAueps"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailAueps"), ("CISCO-XGCP-MIB", "cXgcpStatsTxRsips"), ("CISCO-XGCP-MIB", "cXgcpStatsTxSuccRsips"), ("CISCO-XGCP-MIB", "cXgcpStatsTxFailRsips"), ("CISCO-XGCP-MIB", "cXgcpStatsTxNotifies"), ("CISCO-XGCP-MIB", "cXgcpStatsTxSuccNotifies"), ("CISCO-XGCP-MIB", "cXgcpStatsTxFailNotifies")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cXgcpStatsGroup = cXgcpStatsGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsGroup.setDescription('This group contains the received and transmitted network messages for every virtual MG present in the managed system. ') cXgcpConnectionGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 7)).setObjects(("CISCO-XGCP-MIB", "cXgcpConnEndPoint"), ("CISCO-XGCP-MIB", "cXgcpConnCallId"), ("CISCO-XGCP-MIB", "cXgcpConnLocalUdpPort"), ("CISCO-XGCP-MIB", "cXgcpConnRemoteUdpPort"), ("CISCO-XGCP-MIB", "cXgcpConnMode"), ("CISCO-XGCP-MIB", "cXgcpConnVccId"), ("CISCO-XGCP-MIB", "cXgcpConnChannelId"), ("CISCO-XGCP-MIB", "cXgcpConnCallState"), ("CISCO-XGCP-MIB", "cXgcpConnCodec"), ("CISCO-XGCP-MIB", "cXgcpConnLastSuccEvent"), ("CISCO-XGCP-MIB", "cXgcpConnLastSuccIntEvent"), ("CISCO-XGCP-MIB", "cXgcpConnLastFailedEvent"), ("CISCO-XGCP-MIB", "cXgcpConnLastReqEvent"), ("CISCO-XGCP-MIB", "cXgcpConnEventResult"), ("CISCO-XGCP-MIB", "cXgcpConnEncrSuite")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cXgcpConnectionGroup = cXgcpConnectionGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpConnectionGroup.setDescription('This group contains active connections information that are controlled by the Gateway Control Protocol. ') mibBuilder.exportSymbols("CISCO-XGCP-MIB", cXgcpMsgStatsIncompleteMessages=cXgcpMsgStatsIncompleteMessages, CXgcpCallEvent=CXgcpCallEvent, cXgcpConnectionEntry=cXgcpConnectionEntry, ciscoXgcpMIBComplianceRev1=ciscoXgcpMIBComplianceRev1, cXgcpStatsTable=cXgcpStatsTable, cXgcpMgcConfigGroup=cXgcpMgcConfigGroup, cXgcpStatsRxAucxs=cXgcpStatsRxAucxs, cXgcpConnection=cXgcpConnection, cXgcpMediaGwQuarantineLoop=cXgcpMediaGwQuarantineLoop, cXgcpMsgStatsSuccessMessages=cXgcpMsgStatsSuccessMessages, cXgcpMediaGwConnOosRsipBehavior=cXgcpMediaGwConnOosRsipBehavior, cXgcpMediaGwTable=cXgcpMediaGwTable, cXgcpStatsRxFailMdcxs=cXgcpStatsRxFailMdcxs, cXgcpMgcConfigTable=cXgcpMgcConfigTable, cXgcpConnLastSuccEvent=cXgcpConnLastSuccEvent, cXgcpConnChannelId=cXgcpConnChannelId, cXgcpStatsRxSuccCrcxs=cXgcpStatsRxSuccCrcxs, cXgcpMIBGroups=cXgcpMIBGroups, cXgcpStatsRxAueps=cXgcpStatsRxAueps, cXgcpMgcConfigAddrType=cXgcpMgcConfigAddrType, cXgcpStatsTxSuccDlcxs=cXgcpStatsTxSuccDlcxs, cXgcpMediaGwGroupSup2=cXgcpMediaGwGroupSup2, cXgcpMediaGwAckSdpEnabled=cXgcpMediaGwAckSdpEnabled, CXgcpRetryMethod=CXgcpRetryMethod, cXgcpConnCodec=cXgcpConnCodec, cXgcpStatsDupAckTxMsgs=cXgcpStatsDupAckTxMsgs, cXgcpConnEndPoint=cXgcpConnEndPoint, cXgcpMIBConformance=cXgcpMIBConformance, cXgcpMsgStatsMgcIPAddress=cXgcpMsgStatsMgcIPAddress, cXgcpMediaGwUndottedNotation=cXgcpMediaGwUndottedNotation, cXgcpMediaGwSimpleSdpEnabled=cXgcpMediaGwSimpleSdpEnabled, cXgcpStatsRxFailRqnts=cXgcpStatsRxFailRqnts, ciscoXgcpMIBCompliance=ciscoXgcpMIBCompliance, ciscoXgcpMIBComplianceRev2=ciscoXgcpMIBComplianceRev2, cXgcpStatsRxFailAucxs=cXgcpStatsRxFailAucxs, cXgcpStatsUnRecRxPkts=cXgcpStatsUnRecRxPkts, cXgcpConnVccId=cXgcpConnVccId, cXgcpConnCallState=cXgcpConnCallState, cXgcpStatsGroup=cXgcpStatsGroup, cXgcpStatsRxSuccMdcxs=cXgcpStatsRxSuccMdcxs, cXgcpStatsRxMdcxs=cXgcpStatsRxMdcxs, cXgcpStatsRxRqnts=cXgcpStatsRxRqnts, cXgcpStatsUnknownMgcRxPkts=cXgcpStatsUnknownMgcRxPkts, ciscoXgcpMIB=ciscoXgcpMIB, cXgcpMediaGwRequestTimeOut=cXgcpMediaGwRequestTimeOut, cXgcpConnCallId=cXgcpConnCallId, cXgcpStatsInvalidVerCount=cXgcpStatsInvalidVerCount, cXgcpMgcCfg=cXgcpMgcCfg, cXgcpMediaGwGroup=cXgcpMediaGwGroup, cXgcpStatsTxSuccNotifies=cXgcpStatsTxSuccNotifies, cXgcpStatsRxCrcxs=cXgcpStatsRxCrcxs, cXgcpStatsRxSuccAueps=cXgcpStatsRxSuccAueps, cXgcpConnId=cXgcpConnId, cXgcpMgcConfigProtocolIndex=cXgcpMgcConfigProtocolIndex, cXgcpMediaGwDefaultPackage=cXgcpMediaGwDefaultPackage, cXgcpMediaGwEntry=cXgcpMediaGwEntry, cXgcpStatsAckTxMsgs=cXgcpStatsAckTxMsgs, cXgcpMediaGwProfile=cXgcpMediaGwProfile, cXgcpStatsTxFailDlcxs=cXgcpStatsTxFailDlcxs, cXgcpMediaGwMaxMsgSize=cXgcpMediaGwMaxMsgSize, cXgcpConnLocalUdpPort=cXgcpConnLocalUdpPort, cXgcpStatsRxSuccRqnts=cXgcpStatsRxSuccRqnts, cXgcpMediaGwRestartDelay=cXgcpMediaGwRestartDelay, cXgcpMgcConfigMgcGrpNum=cXgcpMgcConfigMgcGrpNum, cXgcpStatsRxSuccAucxs=cXgcpStatsRxSuccAucxs, cXgcpConnLastReqEvent=cXgcpConnLastReqEvent, cXgcpMediaGwSupportedPackages=cXgcpMediaGwSupportedPackages, cXgcpConnLastSuccIntEvent=cXgcpConnLastSuccIntEvent, cXgcpConnEncrSuite=cXgcpConnEncrSuite, cXgcpStatsRxDlcxs=cXgcpStatsRxDlcxs, cXgcpConnMode=cXgcpConnMode, cXgcpMediaGwLastFailMgcAddr=cXgcpMediaGwLastFailMgcAddr, cXgcpStatsNackTxMsgs=cXgcpStatsNackTxMsgs, cXgcpStats=cXgcpStats, cXgcpMediaGwConfiguredPackages=cXgcpMediaGwConfiguredPackages, cXgcpStatsRxFailCrcxs=cXgcpStatsRxFailCrcxs, cXgcpStatsRxFailDlcxs=cXgcpStatsRxFailDlcxs, cXgcpMediaGwPiggybackMsg=cXgcpMediaGwPiggybackMsg, cXgcpConnectionTable=cXgcpConnectionTable, cXgcpMgcConfigAddress=cXgcpMgcConfigAddress, cXgcpMediaGwRequestRetries=cXgcpMediaGwRequestRetries, cXgcpMediaGwLastFailMgcAddrType=cXgcpMediaGwLastFailMgcAddrType, cXgcpStatsTxNotifies=cXgcpStatsTxNotifies, cXgcpStatsTxFailRsips=cXgcpStatsTxFailRsips, cXgcpConnEventResult=cXgcpConnEventResult, cXgcpStatsRxSuccDlcxs=cXgcpStatsRxSuccDlcxs, cXgcpMsgStatsFailMessages=cXgcpMsgStatsFailMessages, cXgcpMsgStatsIndex=cXgcpMsgStatsIndex, cXgcpStatsTxFailNotifies=cXgcpStatsTxFailNotifies, cXgcpStatsMsgParsingErrors=cXgcpStatsMsgParsingErrors, cXgcpStatsUdpRxPkts=cXgcpStatsUdpRxPkts, cXgcpConnRemoteUdpPort=cXgcpConnRemoteUdpPort, cXgcpStatsTxRsips=cXgcpStatsTxRsips, cXgcpMediaGwCaleaEnabled=cXgcpMediaGwCaleaEnabled, cXgcpStatsRxFailAueps=cXgcpStatsRxFailAueps, cXgcpMIBCompliances=cXgcpMIBCompliances, cXgcpNotifications=cXgcpNotifications, cXgcpStatsAckRxMsgs=cXgcpStatsAckRxMsgs, cXgcpConnLastFailedEvent=cXgcpConnLastFailedEvent, cXgcpMsgStatsGroup=cXgcpMsgStatsGroup, cXgcpMediaGwGroupSup1=cXgcpMediaGwGroupSup1, cXgcpMsgStatsMgcIPAddressType=cXgcpMsgStatsMgcIPAddressType, cXgcpMediaGwDtmfRelay=cXgcpMediaGwDtmfRelay, cXgcpMsgStatsTable=cXgcpMsgStatsTable, cXgcpConnectionGroup=cXgcpConnectionGroup, cXgcpMgcConfigEntry=cXgcpMgcConfigEntry, cXgcpObjects=cXgcpObjects, cXgcpMediaGw=cXgcpMediaGw, cXgcpMediaGwRestartMwd=cXgcpMediaGwRestartMwd, cXgcpMediaGwAnnexabSdpEnabled=cXgcpMediaGwAnnexabSdpEnabled, cXgcpMsgStatsEntry=cXgcpMsgStatsEntry, ciscoXgcpMIBComplianceRev3=ciscoXgcpMIBComplianceRev3, cXgcpMediaGwQuarantinePersist=cXgcpMediaGwQuarantinePersist, cXgcpStatsEntry=cXgcpStatsEntry, cXgcpMediaGwMaxExpTimeout=cXgcpMediaGwMaxExpTimeout, cXgcpMediaGwRequestRetryMethod=cXgcpMediaGwRequestRetryMethod, cXgcpStatsTxDlcxs=cXgcpStatsTxDlcxs, cXgcpMgcConfigGatewayUdpPort=cXgcpMgcConfigGatewayUdpPort, PYSNMP_MODULE_ID=ciscoXgcpMIB, cXgcpStatsUdpTxPkts=cXgcpStatsUdpTxPkts, cXgcpMediaGwQuarantineProcess=cXgcpMediaGwQuarantineProcess, cXgcpStatsTxSuccRsips=cXgcpStatsTxSuccRsips, cXgcpStatsNackRxMsgs=cXgcpStatsNackRxMsgs, cXgcpMediaGwLongDurTimer=cXgcpMediaGwLongDurTimer)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, value_size_constraint, constraints_intersection, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion') (c_call_control_profile_index_or_zero, cmgw_index) = mibBuilder.importSymbols('CISCO-MEDIA-GATEWAY-MIB', 'CCallControlProfileIndexOrZero', 'cmgwIndex') (c_mgc_group_index_or_zero,) = mibBuilder.importSymbols('CISCO-MGC-MIB', 'CMgcGroupIndexOrZero') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (cisco_port,) = mibBuilder.importSymbols('CISCO-TC', 'CiscoPort') (inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetAddressType') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (time_ticks, object_identity, module_identity, notification_type, mib_identifier, integer32, unsigned32, iso, ip_address, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, bits, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ObjectIdentity', 'ModuleIdentity', 'NotificationType', 'MibIdentifier', 'Integer32', 'Unsigned32', 'iso', 'IpAddress', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Bits', 'Gauge32') (textual_convention, truth_value, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TruthValue', 'DisplayString') cisco_xgcp_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 318)) ciscoXgcpMIB.setRevisions(('2006-02-21 00:00', '2005-12-21 00:00', '2005-08-24 00:00', '2005-08-09 00:00', '2005-03-07 00:00', '2004-11-15 00:00', '2004-08-30 00:00', '2004-05-14 00:00', '2003-02-03 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoXgcpMIB.setRevisionsDescriptions(('Added 7 new MGCP Packages to cXgcpMediaGwTable.', 'Sanitized the whole MIB.', '[1] Added table for Media Gateway statistics regarding Received and transmitted network messages. [2] Added table for active connections that are controlled by the Media Gateway.', 'Added cXgcpMediaGwAnnexabSdpEnabled to cXgcpMediaGwTable.', 'Added the following objects to cXgcpMediaGwTable cXgcpMediaGwLongDurTimer, cXgcpMediaGwProfile ', 'Added the following objects to cXgcpMediaGwTable cXgcpMediaGwConfiguredPackages, cXgcpMediaGwConnOosRsipBehavior ', '[1] Added the value resetTimerForEndpoint to CXgcpRetryMethod textual convention. [2] Widened the range of cXgcpMediaGwMaxExpTimeout. [3] Added cXgcpMediaGwCaleaEnabled to cXgcpMediaGwTable. ', 'Added the following objects: cXgcpMediaGwLastFailMgcAddrType, cXgcpMediaGwLastFailMgcAddr, cXgcpMediaGwDtmfRelay ', 'Initial version of this MIB module.')) if mibBuilder.loadTexts: ciscoXgcpMIB.setLastUpdated('200602210000Z') if mibBuilder.loadTexts: ciscoXgcpMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoXgcpMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-voice-gateway@cisco.com') if mibBuilder.loadTexts: ciscoXgcpMIB.setDescription("This MIB is an enhancement for existing XGCP-MIB. xGCP is a set of protocols, for example SGCP (Simple Gateway Control Protocol) and MGCP (Media Gateway Control Protocol), which are designed as a control protocol within a distributed system that appears to the outside as a single VoIP/VoATM gateway. This system is composed of a call agent (or MGC, Media Gateway Controller) and of a set of 'media gateways' that perform the conversion of media signals between circuits and packets. In the xGCP model, the gateways focus on the audio signal translation function, while the call agent handles the signaling and call processing functions. Examples of Gateway Control Protocols are: * Simple Gateway Control Protocol (SGCP) * Media Gateway Control Protocol (MGCP) xGCP assumes a connection model where the basic constructs are: Endpoints : sources or sinks of data that could be physical or virtual. Connections : an association between two or more endpoints with the purpose of transmitting data between these endpoints. Once this association is established for both endpoints, data transfer between these endpoints can take place. Connections are grouped in calls. One or more connections can belong to one call. Connections and calls are set up at the initiative of one or several call agents. Terminologies used: AAL : ATM Adaptation Layer AUCX : Audit Connection Command used by the MGC to find out the status of a given gateway connection. AUEP : Audit Endpoint Command used by the MGC to find out the status of a given endpoint. CCAPI : Call Control Application Program Interface. CID : Channel Identifier CRCX : Connection Command from a MGC to request the gateway MG : Media Gateway MGC : Media Gateway Controller DLCX : Delete Command. This command can be initiated by either the MGC or gateway. GSM : Global System for Mobile Communications GW : Gateway. HP : Hairpin MDCX : Modify Connection Command from a MGC to request the gateway NSE : Negative Stuffing Event NTFY : A Notify Command sent from a gateway to a MGC in response to a RQNT command. PSTN : Public Switched Telephone Network RQNT : Request To Nofity Command from a MGC to request the gateway to provide a notification for configuration changes. RSIP : Restart in Progress Command. This command can be initiated by either the MGC or gateway. SPRT : Simple Packet Relay Transport SSE : Silicon Switching Engine TDM : Time Division Multiplexing TGW : Target Gateway TWC : Three Way Calling VCCI : Virtual Circuit Connection Identifier VMG : Virtual Media Gateway. It is a logical representation of a module (or a set of modules) that has MG functionality. There could be multiple VMGs in a device. VoAAL2 : Voice over AAL2") c_xgcp_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 0)) c_xgcp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1)) c_xgcp_mgc_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1)) c_xgcp_media_gw = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2)) c_xgcp_stats = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3)) c_xgcp_connection = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4)) class Cxgcpretrymethod(TextualConvention, Integer32): description = 'Method of resetting retry timer in XGCP. When media gateway re-try to communication to a call agent, the timeout for each re-try is doubled. Example: re-try time is 3 initial timeout is 2 (any unit) maximum possible retry time is 256 MGC group has 2 MGC and each MGC has two IP address timeout for neverResetTimer will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 128 256 512 MGC 1 IP22: 1024 2048 4096 timeout for resetTimerForNewMgc will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 2 4 8 MGC 1 IP22: 16 32 64 timeout for resetTimerForNewAddr will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 2 4 8 MGC 2 IP21: 2 4 8 MGC 1 IP22: 2 4 8 timeout for resetTimerForEndpoint will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 128 256 256 MGC 1 IP22: 256 256 256 ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('neverResetTimer', 1), ('resetTimerForNewMgc', 2), ('resetTimerForNewAddr', 3), ('resetTimerForEndpoint', 4)) class Cxgcpcallevent(TextualConvention, Integer32): description = 'Represents possible Gateway Control Protocol Call Events. ack - Acknowledgement msg createConn - Create connection msg deleteConn - Delete connection msg modifyConn - Modify connection msg notifyReq - Notify request msg alert - CCAPI alert event callConnect - CCAPI call connect event confReady - CCAPI conference ready confDestroy - CCAPI conference destroyed callDisconnect - CCAPI call disconnect callProceed - CCAPI call proceeding offHook - CCAPI off-hook/call setup ind onHook - CCAPI on-hook/call disconnected mediaEvent - Media Events intEven - Internal Events dissocConf - Dissociate Conf assocConf - Associate Conf modifyDone - CCAPI Call modify done event voiceModeDone - Voice Cut-thru has happened nse - CCAPI NSE events callHandoff - Handoff Call to some other app babblerAuditResp - CCAPI babbler audit response ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)) named_values = named_values(('ack', 0), ('createConn', 1), ('deleteConn', 2), ('modifyConn', 3), ('notifyReq', 4), ('alert', 5), ('callConnect', 6), ('confReady', 7), ('confDestroy', 8), ('callDisconnect', 9), ('callProceed', 10), ('offHook', 11), ('onHook', 12), ('mediaEvent', 13), ('intEven', 14), ('dissocConf', 15), ('assocConf', 16), ('modifyDone', 17), ('voiceModeDone', 18), ('nse', 19), ('callHandoff', 20), ('babblerAuditResp', 21)) c_xgcp_mgc_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1)) if mibBuilder.loadTexts: cXgcpMgcConfigTable.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigTable.setDescription('This is a table which is used to provision a MGC or MGC group for a MG. Each entry corresponds to a MGC or a MGC group for a single MG. ') c_xgcp_mgc_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-MEDIA-GATEWAY-MIB', 'cmgwIndex')) if mibBuilder.loadTexts: cXgcpMgcConfigEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigEntry.setDescription('Each row corresponds to a MGC or a group of MGCs for a media gateway.') c_xgcp_mgc_config_mgc_grp_num = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 1), c_mgc_group_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMgcConfigMgcGrpNum.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigMgcGrpNum.setDescription('This object specifies which MGC Redundant Group will be used in XGCP. The value of this object refers to the object cMgcGrpIndex from MGC Redundant Group Table, cMgcGrpParamTable. There are two conditions to associate a MGC group: 1. At least one MGC is associated with the MGC group 2. At least one protocol is associated with the MGC group If the value of the object is non-zero, it means the media gateway has a MGC Redundant Group. In the call setup, the parameters of call agents within the MGC Redundant Group will be sequentially tried according to its preference. This object cXgcpMgcConfigMgcGrpNum and object cXgcpMgcConfigAddress are mutually exclusive. The object cXgcpMgcConfigAddress can be set only when the object cXgcpMgcConfigMgcGrpNum is equal to 0. If the value of the object is 0, which means there is no MGC Redundant Group associated with the media gateway. It has only one call agent (in media gateway level) to communicate with. This call agent is indicated by cXgcpMgcConfigAddress and will be used in call setup (if call set-up on media gateway level). ') c_xgcp_mgc_config_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 2), inet_address_type().clone('ipv4')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMgcConfigAddrType.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigAddrType.setDescription('This object specifies the address type of the MGC (object cXgcpMgcConfigAddress), either ipv4 or ipv6.') c_xgcp_mgc_config_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 3), inet_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMgcConfigAddress.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigAddress.setDescription('This object specifies the address of the MGC the gateway used to communicate with in call setup. This object cXgcpMgcConfigAddress and object cXgcpMgcConfigMgcGrpNum are mutually exclusive. The object cXgcpMgcConfigAddress can be set only when the object cXgcpMgcConfigMgcGrpNum is equal to 0. Otherwise, the SET will be rejected with error. ') c_xgcp_mgc_config_protocol_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 32)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMgcConfigProtocolIndex.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigProtocolIndex.setDescription('This object specifies which protocol that the MG should use to communicate with the MGC when it try to set up the call. The value of this object is the same as the value of object cMediaGwProtocolIndex from protocol table (cMediaGwProtocolTable). If the value of cXgcpMgcConfigMgcGrpNum is non-zero, this object will be ignored because the protocol will be determined by the MGC group. The initial value is 1, means the system should have at least one default protocol between the gateway and the MGC created in the cMeidaGwProtocolTable when the system is initialized. ') c_xgcp_mgc_config_gateway_udp_port = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 5), cisco_port().clone(2427)).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6 Transmission over UDP ') if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setDescription('The UDP port of the MG which is used to communicate with call agent in MGCP.') c_xgcp_media_gw_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1)) if mibBuilder.loadTexts: cXgcpMediaGwTable.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwTable.setDescription('This table is used to provision xGCP configuration in a MG.') c_xgcp_media_gw_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-MEDIA-GATEWAY-MIB', 'cmgwIndex')) if mibBuilder.loadTexts: cXgcpMediaGwEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwEntry.setDescription("Each entry represents the xGCP attributes for a media gateway. An entry is created when the system detects the XGCP stack at system start-up. Accordingly, the existing entry shall be deleted when the system can't locate the XGCP stack at system start-up.") c_xgcp_media_gw_request_time_out = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 10000)).clone(500)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6.3 Computing retransmission timers') if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setDescription('The request timeout is the period that the XGCP protocol waits before retransmitting an unacknowledged message. It is the responsibility of the requesting entity to provide suitable timeouts for all outstanding commands, and to retry commands when timeouts exceeded. ') c_xgcp_media_gw_request_retries = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 10)).clone(3)).setUnits('times').setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.1.4 Names of Call Agents and other entities') if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setDescription('This object specifies the number of retries for a request that exceeds timeout without acknowledge before it tries to connect to another MGC.') c_xgcp_media_gw_request_retry_method = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 3), c_xgcp_retry_method()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwRequestRetryMethod.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRequestRetryMethod.setDescription('This object specifies command retry method.') c_xgcp_media_gw_max_exp_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 60000)).clone(4000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwMaxExpTimeout.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwMaxExpTimeout.setDescription('This object specifies the maximum timeout for exponential command retry by the media gateway.') c_xgcp_media_gw_restart_mwd = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600000)).clone(3000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 4.3.4 Fighting the restart avalanche') if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setDescription('The maximum waiting delay (MWD) timeout value is used for the media gateway to send the first Restart In Progress to the MGC. When a gateway is powered on, it should initiate a restart timer to a random value, uniformly distributed between 0 and a maximum waiting delay (MWD). The gateway should send the first RSIP message when the timer expires. The initial value of this object is chosen in an implementation-dependent manner by the MGCP functionality based on the call volume of the system. ') c_xgcp_media_gw_restart_delay = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 4.3.4 Fighting the restart avalanche') if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setDescription('This object specifies the Restart Delay Timeout for the restart process for a gateway to send out RestartInProgress when it is powered on or been reset. The purpose of setting the Restart Delay timer before sending the RestartInProgress notification to the media gateway controller is to avoid the network congestion during the critical period of service restoration. ') c_xgcp_media_gw_default_package = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31))).clone(namedValues=named_values(('packageDC', 1), ('packageG', 2), ('packageD', 3), ('packageM', 4), ('packageT', 5), ('packageL', 6), ('packageH', 7), ('packageR', 8), ('packageN', 9), ('packageA', 10), ('packageS', 11), ('packageATM', 12), ('packageMS', 13), ('packageDT', 14), ('packageMO', 15), ('packageRES', 16), ('packageSASDI', 17), ('packageIT', 18), ('packageMT', 19), ('packageB', 20), ('packageSST', 21), ('packageMDR', 22), ('packageFXR', 23), ('packageBA', 24), ('packageMD', 25), ('packageNAS', 26), ('packageMDSTE', 27), ('packagePRE', 28), ('packageLCS', 29), ('packageSRTP', 30), ('packageFM', 31))).clone('packageG')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages') if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setDescription("This object represents the default capability package supported in the gateway. packageDC ( 1) - Don't Care package packageG ( 2) - Generic package packageD ( 3) - DTMF package packageM ( 4) - MF package packageT ( 5) - Trunk package packageL ( 6) - Line package packageH ( 7) - Handset package packageR ( 8) - RTP package packageN ( 9) - NAS package packageA (l0) - Announcement Server package packageS (11) - Script package packageATM (12) - ATM package packageMS (13) - MF CAS package packageDT (14) - DTMF CAS package packageMO (15) - MO package packageRES (16) - RES package packageSASDI(17) - ASDI package (S) NCS packageIT (18) - IT package (S) TGCP packageMT (19) - MT package packageB (20) - B package packageSST (21) - SST package packageMDR (22) - MDR package packageFXR (23) - FAX package packageBA (24) - Bulk Audit package packageMD (25) - MD package packageNAS (26) - Network Access Server package packageMDSTE(27) - Modem relay Secure Telephone Equipment package packagePRE (28) - PRE package packageLCS (29) - MGCP Line Control Signaling package packageSRTP (30) - Secure RTP package packageFM (31) - Media Format Package ") c_xgcp_media_gw_supported_packages = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 8), bits().clone(namedValues=named_values(('notFound', 0), ('packageDC', 1), ('packageG', 2), ('packageD', 3), ('packageM', 4), ('packageT', 5), ('packageL', 6), ('packageH', 7), ('packageR', 8), ('packageN', 9), ('packageA', 10), ('packageS', 11), ('packageATM', 12), ('packageMS', 13), ('packageDT', 14), ('packageMO', 15), ('packageRES', 16), ('packageSASDI', 17), ('packageIT', 18), ('packageMT', 19), ('packageB', 20), ('packageSST', 21), ('packageMDR', 22), ('packageFXR', 23), ('packageBA', 24), ('packageMD', 25), ('packageNAS', 26), ('packageMDSTE', 27), ('packagePRE', 28), ('packageLCS', 29), ('packageSRTP', 30), ('packageFM', 31)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages ') if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setDescription("This object represents the bit map of MGCP supported packages. Bit 0 - Not Found Bit 1 - Package DC (Don't care package) Bit 2 - Package G (Generic package) Bit 3 - Package D (DTMF package) Bit 4 - Package M (MF package) Bit 5 - Package T (Trunk package) Bit 6 - Package L (Line package) Bit 7 - Package H (Handset package) Bit 8 - Package R (RTP package) Bit 9 - Package N (NAS package) Bit 10 - Package A (Announcement Server package) Bit 11 - Package S (Script package) Bit 12 - Package ATM (ATM package) Bit 13 - Package MS (MF CAS package) Bit 14 - Package DT (DTMF CAS package) Bit 15 - Package MO (MO package) Bit 16 - Package RES (RES package) Bit 17 - Package S_ASDI (ASDI package (S) NCS) Bit 18 - Package IT (IT package (S) TGCP) Bit 19 - Package MT (MT package) Bit 20 - Package B (B package) Bit 21 - Package SST (SST package) Bit 22 - Package MDR (MDR package) Bit 23 - Package FXR (FAX package) Bit 24 - Package BA (Bulk Audit package) Bit 25 - Package MD (MD package) Bit 26 - Package NAS (Network Access Server package) Bit 27 - Package MDSTE (Modem relay Secure Telephone Equipment package) Bit 28 - Package PRE (PRE package) Bit 29 - Package LCS (MGCP Line Control Signaling package) Bit 33 - Package SRTP (Secure RTP package) Bit 31 - Package FM (Media Format Package) The value 0 means there is no supported packages. ") c_xgcp_media_gw_simple_sdp_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 9), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwSimpleSdpEnabled.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwSimpleSdpEnabled.setDescription("This object is used to enable/disable building of s, t, o lines in SDP message. where o field indicates the owner/creator and session identifier s field indicates the session name t field indicates the duration while a session is valid. If this object is set to 'true'(enabled), SDP will NOT include the fields s, t, and o. If this object is set to 'false', then it indicates that the o, s, t lines be built before sending SDP (Session Description Protocol). ") c_xgcp_media_gw_ack_sdp_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 10), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwAckSdpEnabled.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwAckSdpEnabled.setDescription("This object specifies the ACK SDP is enabled or not. If this object is set to 'true', then it sends ADP with ACK when CODEC or reportable NTE delta changed, or an attempt is made to change CODEC, VAD, Packet-period, echo cancellation during FAX/modem mode. ") c_xgcp_media_gw_undotted_notation = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 11), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwUndottedNotation.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwUndottedNotation.setDescription("This object enables/disables the undotted notation for CODEC. This object is used to set CODEC notation to 'dotted' or 'undotted' in SDP between the gateway and the call agent. For example, 'G.726' is 'dotted', while 'G726' is 'undotted'. If it is set to 'true', then the 'undotted' notation for CODEC is enabled. ") c_xgcp_media_gw_quarantine_process = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 12), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.2.2.12. QuarantineHandling') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setDescription("This object is used to determine how to handle persistent events. If this object is set to 'true', the quarantined events should be processed, otherwise the quarantined events is discarded. ") c_xgcp_media_gw_quarantine_loop = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 13), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.2. NotificationRequest ') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setDescription("This object controls the default quarantine mode. If this object is set to 'true', the default quarantine mode is 'loop', not 'step'. When this object is set to 'true', the gateway is expected to generate multiple notifications (loop), not at most one notification (step by step), in response to quarantined events. This object will be ignored if the object cXgcpMediaGwQuarantineProcess is set to 'false'. ") c_xgcp_media_gw_quarantine_persist = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 14), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.2. NotificationRequest') if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setDescription("This object specifies how the persist events will be handled in quarantine processing. If this object is set to 'true', the persistent events bypass quarantine buffer. This object will be ignored if the object cXgcpMediaGwQuarantineProcess is set to 'false'. ") c_xgcp_media_gw_piggyback_msg = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 15), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6.4. Piggy backing') if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setDescription('This object enables/disables the piggyback message generating. If the piggyback message generating is enabled, a call agent can send several MGCP messages in the same UDP packets to the gateway. ') c_xgcp_media_gw_max_msg_size = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setUnits('bytes').setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.8 Audit Endpoint ') if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setDescription('This object specifies the maximum allowed xGCP message size which is used for checking if the size will be supported by the call agent via (AuditEndPoint) response. A value of 0 means that there is no limit to the size of the XGCP message.') c_xgcp_media_gw_last_fail_mgc_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 17), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddrType.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddrType.setDescription('This object indicates the address type, either IPv4 or IPv6, of cxeCallCtrlLastFailMgcAddr.') c_xgcp_media_gw_last_fail_mgc_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 18), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddr.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddr.setDescription('This object indicates the address of last MGC which the media gateway had tried to communicate with but failed.') c_xgcp_media_gw_dtmf_relay = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 19), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwDtmfRelay.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwDtmfRelay.setDescription("When this object is set to 'true', the digits will be sent as peer-to-peer packet in the bearer. When this object is set to 'false', the digits will be sent as regular voice packets in the bearer. For low complexity CODECS (such as G.711), the preferred value for this object could be 'false'. For high complexity CODECS (such as G.729A), the preferred value for this object should be 'true', otherwise the digits may not get recognized properly at the remote end.") c_xgcp_media_gw_calea_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 20), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwCaleaEnabled.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwCaleaEnabled.setDescription("CALEA, Communication Assistance for Law Enforcement Act, is a feature that allows for a lawful intercept of a call details and call contents originating or terminating on specific terminals. CALEA feature can be turned on or off. A value 'true' specifies CALEA enabled and a value 'false' specifies CALEA disabled.") c_xgcp_media_gw_configured_packages = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 21), bits().clone(namedValues=named_values(('notFound', 0), ('packageDC', 1), ('packageG', 2), ('packageD', 3), ('packageM', 4), ('packageT', 5), ('packageL', 6), ('packageH', 7), ('packageR', 8), ('packageN', 9), ('packageA', 10), ('packageS', 11), ('packageATM', 12), ('packageMS', 13), ('packageDT', 14), ('packageMO', 15), ('packageRES', 16), ('packageSASDI', 17), ('packageIT', 18), ('packageMT', 19), ('packageB', 20), ('packageSST', 21), ('packageMDR', 22), ('packageFXR', 23), ('packageBA', 24), ('packageMD', 25), ('packageNAS', 26), ('packageMDSTE', 27), ('packagePRE', 28), ('packageLCS', 29), ('packageSRTP', 30), ('packageFM', 31)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages ') if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setDescription("This object represents the bit map of MGCP packages configured and supported in the gateway. Bit 0 - Not Found Bit 1 - Package DC (Don't care package) Bit 2 - Package G (Generic package) Bit 3 - Package D (DTMF package) Bit 4 - Package M (MF package) Bit 5 - Package T (Trunk package) Bit 6 - Package L (Line package) Bit 7 - Package H (Handset package) Bit 8 - Package R (RTP package) Bit 9 - Package N (NAS package) Bit 10 - Package A (Announcement Server package) Bit 11 - Package S (Script package) Bit 12 - Package ATM (ATM package) Bit 13 - Package MS (MF CAS package) Bit 14 - Package DT (DTMF CAS package) Bit 15 - Package MO (MO package) Bit 16 - Package RES (RES package) Bit 17 - Package S_ASDI (ASDI package (S) NCS) Bit 18 - Package IT (IT package (S) TGCP) Bit 19 - Package MT (MT package) Bit 20 - Package B (B package) Bit 21 - Package SST (SST package) Bit 22 - Package MDR (MDR package) Bit 23 - Package FXR (FAX package) Bit 24 - Package BA (Bulk Audit package) Bit 25 - Package MD (MD package) Bit 26 - Package NAS (Network Access Server package) Bit 27 - Package MDSTE (Modem relay Secure Telephone Equipment package) Bit 28 - Package PRE (PRE package) Bit 29 - Package LCS (MGCP Line Control Signaling package) Bit 33 - Package SRTP (Secure RTP package) Bit 31 - Package FM (Media Format Package) The value 0 means there is no supported packages. ") c_xgcp_media_gw_conn_oos_rsip_behavior = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('sendDlcx', 1), ('rsipOnly', 2))).clone('sendDlcx')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwConnOosRsipBehavior.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwConnOosRsipBehavior.setDescription('This object specifies the RSIP behavior of the endpoints with active calls (in connections) when they are forced to out-of-service. The following values can be set for this object: sendDlcx - The media gateway sends RSIP-graceful and then individual DLCX command to delete the endpoints of each connection and its children before it sends out RSIP-forced command when an endpoint goes into alarm or placed out-of-service forcefully through the user command if the endpoint or its children has any calls (in connections). rsipOnly - The media gateway sends out RSIP-forced command, and delete the connections without any DLCX or RSIP-graceful command. This object is applicable only if the endpoint or its children have any calls. If there are no calls on the endpoint, the media gateway sends RSIP-forced command when the endpoint is forced to out-of-service.') c_xgcp_media_gw_long_dur_timer = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(1, 65536)).clone(3600)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwLongDurTimer.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwLongDurTimer.setDescription('This object specifies the long duration timer. It is used to define the long duration of a connection. Once the timer expires, a notification will be sent to the MGC to indicate that a connection has established for the defined long duration.') c_xgcp_media_gw_profile = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 24), c_call_control_profile_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwProfile.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwProfile.setDescription('This object specifies the XGCP profile in the media gateway level. The value of 0 means the XGCP default profile is used in the media gateway level. If the value of ccasIfExtVoiceCfgCcntrlProfile is 0, then the endpoint uses the profile specified in this object.') c_xgcp_media_gw_annexab_sdp_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 25), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cXgcpMediaGwAnnexabSdpEnabled.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwAnnexabSdpEnabled.setDescription("This object specifies the format for parsing or generating G.723 or G.729 codec in SDP message for the media gateway. The value 'true' means using Annex A and B in fmtp line complying with RFC 3555. The value 'false' means using Annex A and B in SDP attribute codec string.") c_xgcp_msg_stats_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1)) if mibBuilder.loadTexts: cXgcpMsgStatsTable.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsTable.setDescription('This table contains statistical information on the transmitted and received network messages between MG and MGC, since the MG reset. The entries in this table are uniquly identified by the VMG index and the MGC address. This table contains statistics of the most recently received 64 MGC addressess for every VMG present in the device. When a new address is received and the number of entries for this MGC exceeds 64, then a least recently received entry is deleted.') c_xgcp_msg_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1)).setIndexNames((0, 'CISCO-MEDIA-GATEWAY-MIB', 'cmgwIndex'), (0, 'CISCO-XGCP-MIB', 'cXgcpMsgStatsIndex')) if mibBuilder.loadTexts: cXgcpMsgStatsEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsEntry.setDescription('This entry contains the statistical information on the received and transmitted network messages with the associated MGC address.') c_xgcp_msg_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: cXgcpMsgStatsIndex.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsIndex.setDescription('A unique index to identify a specific MGC address for tracking xGCP statistics between MGC and MG.') c_xgcp_msg_stats_mgc_ip_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 2), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddressType.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddressType.setDescription('This object indicates the address type of cXgcpMsgStatsMgcIPAddress. ') c_xgcp_msg_stats_mgc_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 3), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddress.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddress.setDescription('This object indicates IP address of the MGC. The IP address should be unique on the table.') c_xgcp_msg_stats_success_messages = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMsgStatsSuccessMessages.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsSuccessMessages.setDescription('This object indicates the number of successful messages that communicate with the MGC on that IP address. Successful messages apply to both transmit and receive messages. Transmit: Positive ACK received from the MGC. Receive : Positive ACK sent to the MGC. This implies that the format of the message is correct and the request can be fulfilled.') c_xgcp_msg_stats_fail_messages = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMsgStatsFailMessages.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsFailMessages.setDescription("This object indicates the number of failed messages that communicate with the MGC on that IP address. Failed messages apply to both transmit and receive messages. Transmit: Either NAK has been received from the MGC or message times out waiting for ACK. Receive: Format of the received message is bad or the request was NAK'ed.") c_xgcp_msg_stats_incomplete_messages = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpMsgStatsIncompleteMessages.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsIncompleteMessages.setDescription('This object indicates the number of transmit messages for which time out occurred while waiting for an ACK.') c_xgcp_stats_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2)) if mibBuilder.loadTexts: cXgcpStatsTable.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTable.setDescription('This table contains information on the received and transmitted network messages, based on each message type, for all the VMGs present in the device. The table will have one entry for every VMG present in the device. When a new MG is instantiated, the device creates an entry. The entry is destroyed if the associated VMG is terminated.') c_xgcp_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1)).setIndexNames((0, 'CISCO-MEDIA-GATEWAY-MIB', 'cmgwIndex')) if mibBuilder.loadTexts: cXgcpStatsEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsEntry.setDescription("This entry contains the information on the associated VMG's received and transmitted network messages. The value of each statistical object is incremented when the MG receives or transmits an XGCP message corresponding to that object type. All these values are set to '0' upon restarting of the VMG.") c_xgcp_stats_udp_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsUdpRxPkts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsUdpRxPkts.setDescription('Number of UDP packets received from all the MGCs.') c_xgcp_stats_udp_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsUdpTxPkts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsUdpTxPkts.setDescription('Number of UDP packets sent to all the MGCs.') c_xgcp_stats_un_rec_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsUnRecRxPkts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsUnRecRxPkts.setDescription('Number of unrecognized UDP packets received from all the MGCs.') c_xgcp_stats_msg_parsing_errors = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsMsgParsingErrors.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsMsgParsingErrors.setDescription('Number of messages with parsing errors received from all the MGCs.') c_xgcp_stats_dup_ack_tx_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsDupAckTxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsDupAckTxMsgs.setDescription('Number of duplicate response messages sent to the MGCs.') c_xgcp_stats_invalid_ver_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsInvalidVerCount.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsInvalidVerCount.setDescription('Number of invalid protocol version messages received from all the MGCs.') c_xgcp_stats_unknown_mgc_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsUnknownMgcRxPkts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsUnknownMgcRxPkts.setDescription('Number of unknown message packets received from all the MGCs.') c_xgcp_stats_ack_tx_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsAckTxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsAckTxMsgs.setDescription('Number of acknowledgment messages sent by the MG.') c_xgcp_stats_nack_tx_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsNackTxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsNackTxMsgs.setDescription('Number of negative acknowledgment messages sent by the MG.') c_xgcp_stats_ack_rx_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsAckRxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsAckRxMsgs.setDescription('Number of acknowledgment messages received by the MG.') c_xgcp_stats_nack_rx_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsNackRxMsgs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsNackRxMsgs.setDescription('Number of negative acknowledgment messages received by the MG.') c_xgcp_stats_rx_crcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxCrcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxCrcxs.setDescription('Number of CRCX messages received by the MG.') c_xgcp_stats_rx_succ_crcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxSuccCrcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccCrcxs.setDescription('Number of CRCX messages received, that were successful.') c_xgcp_stats_rx_fail_crcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxFailCrcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailCrcxs.setDescription('Number of CRCX messages received, that failed.') c_xgcp_stats_rx_dlcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxDlcxs.setDescription('Number of DLCX messages received.') c_xgcp_stats_rx_succ_dlcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxSuccDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccDlcxs.setDescription('Number of DLCX messages received, that were successful.') c_xgcp_stats_rx_fail_dlcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxFailDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailDlcxs.setDescription('Number of DLCX messages received, that failed.') c_xgcp_stats_tx_dlcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxDlcxs.setDescription('Number of DLCX messages sent.') c_xgcp_stats_tx_succ_dlcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxSuccDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxSuccDlcxs.setDescription('Number of DLCX messages sent, that were successful.') c_xgcp_stats_tx_fail_dlcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxFailDlcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxFailDlcxs.setDescription('Number of DLCX messages sent, that failed.') c_xgcp_stats_rx_mdcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxMdcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxMdcxs.setDescription('Number of MDCX messages received.') c_xgcp_stats_rx_succ_mdcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxSuccMdcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccMdcxs.setDescription('Number of MDCX messages received, that were successful.') c_xgcp_stats_rx_fail_mdcxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxFailMdcxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailMdcxs.setDescription('Number of MDCX messages received, that failed.') c_xgcp_stats_rx_rqnts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxRqnts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxRqnts.setDescription('Number of RQNT messages received.') c_xgcp_stats_rx_succ_rqnts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxSuccRqnts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccRqnts.setDescription('Number of RQNT messages received, that were successful.') c_xgcp_stats_rx_fail_rqnts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxFailRqnts.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailRqnts.setDescription('Number of RQNT messages received, that failed.') c_xgcp_stats_rx_aucxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxAucxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxAucxs.setDescription('Number of AUCX messages received.') c_xgcp_stats_rx_succ_aucxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxSuccAucxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccAucxs.setDescription('Number of AUCX messages received, that were successful.') c_xgcp_stats_rx_fail_aucxs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxFailAucxs.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailAucxs.setDescription('Number of AUCX messages received, that failed.') c_xgcp_stats_rx_aueps = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxAueps.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxAueps.setDescription('Number of AUEP messages received.') c_xgcp_stats_rx_succ_aueps = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxSuccAueps.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxSuccAueps.setDescription('Number of AUEP messages received, that were successful.') c_xgcp_stats_rx_fail_aueps = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 32), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsRxFailAueps.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsRxFailAueps.setDescription('Number of AUEP messages received, that failed.') c_xgcp_stats_tx_rsips = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 33), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxRsips.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxRsips.setDescription('Number of RSIP messages sent.') c_xgcp_stats_tx_succ_rsips = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 34), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxSuccRsips.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxSuccRsips.setDescription('Number of RSIP messages sent, that were successful.') c_xgcp_stats_tx_fail_rsips = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 35), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxFailRsips.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxFailRsips.setDescription('Number of RSIP messages sent, that failed.') c_xgcp_stats_tx_notifies = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 36), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxNotifies.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxNotifies.setDescription('Number of NTFY messages sent.') c_xgcp_stats_tx_succ_notifies = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 37), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxSuccNotifies.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxSuccNotifies.setDescription('Number of NTFY messages sent, that were successful.') c_xgcp_stats_tx_fail_notifies = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 38), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpStatsTxFailNotifies.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsTxFailNotifies.setDescription('Number of NTFY messages sent, that failed.') c_xgcp_connection_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1)) if mibBuilder.loadTexts: cXgcpConnectionTable.setStatus('current') if mibBuilder.loadTexts: cXgcpConnectionTable.setDescription('This table contains information on the active connections of all the VMGs present in the device. A MG may have zero or more number of calls at any given time. Each call consists of one or more connection. The table will have one entry per VMG per connection present in the device. When a new connection is established, the device creates an entry. The entry is destroyed if the associated connection is torn down.') c_xgcp_connection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1)).setIndexNames((0, 'CISCO-MEDIA-GATEWAY-MIB', 'cmgwIndex'), (0, 'CISCO-XGCP-MIB', 'cXgcpConnId')) if mibBuilder.loadTexts: cXgcpConnectionEntry.setStatus('current') if mibBuilder.loadTexts: cXgcpConnectionEntry.setDescription('This entry contains the information about an active connection.') c_xgcp_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: cXgcpConnId.setStatus('current') if mibBuilder.loadTexts: cXgcpConnId.setDescription('Connection ID generated by the gateway and sent in the ACK message.') c_xgcp_conn_end_point = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 2), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnEndPoint.setStatus('current') if mibBuilder.loadTexts: cXgcpConnEndPoint.setDescription('The physical or virtual entity that acts as a source or sink of data in the MG is called an endpoint. Every end point in the MG is assigned a textual name by the MG.') c_xgcp_conn_call_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 3), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnCallId.setStatus('current') if mibBuilder.loadTexts: cXgcpConnCallId.setDescription('Call ID associated with this connection. Call ID is a parameter that identifies the call to which this connection belongs to. A call ID is unique within a VMG instance.') c_xgcp_conn_local_udp_port = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 4), cisco_port()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnLocalUdpPort.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLocalUdpPort.setDescription('The local UDP port used for the connection.') c_xgcp_conn_remote_udp_port = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 5), cisco_port()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnRemoteUdpPort.setStatus('current') if mibBuilder.loadTexts: cXgcpConnRemoteUdpPort.setDescription('The remote UDP port used for the connection.') c_xgcp_conn_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('invalid', 0), ('sendOnly', 1), ('recvOnly', 2), ('sendRecv', 3), ('inActive', 4), ('loopBack', 5), ('contTest', 6), ('data', 7), ('netwLoop', 8), ('netwTest', 9), ('conference', 10)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnMode.setStatus('current') if mibBuilder.loadTexts: cXgcpConnMode.setDescription('Represents possible MG connection modes. invalid - Invalid value for mode sendOnly - The GW should only send packets recvOnly - The GW should only receive packets sendRecv - The GW can send and receive packets inActive - The GW should neither send nor receive packets loopBack - The GW should place the circuit in loopback mode contTest - The GW should place the circuit in test mode data - The GW should use the circuit for network access for data netwLoop - The GW should place the connection in network loopback mode netwTest - The GW should place the connection in network continuity test mode conference - The GW should place the connection in conference mode.') c_xgcp_conn_vcc_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnVccId.setStatus('current') if mibBuilder.loadTexts: cXgcpConnVccId.setDescription("VCCI used for the VoAAL2 call. The object should have a non-zero value only if the associated call is of VoAAL2 type. For all other calls the value should be '0'.") c_xgcp_conn_channel_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnChannelId.setStatus('current') if mibBuilder.loadTexts: cXgcpConnChannelId.setDescription("CID used for the VoAAL2 call. The object should have a non-zero value only if the associated call is of VoAAL2 type. For all other calls the value should be '0'.") c_xgcp_conn_call_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25))).clone(namedValues=named_values(('idle', 0), ('setting', 1), ('connecting', 2), ('conferencing', 3), ('active', 4), ('confDestroying', 5), ('disconnecting', 6), ('inactive', 7), ('voiceConnecting', 8), ('voiceActive', 9), ('confDissociating', 10), ('callLegsDissociated', 11), ('hpConnecting', 12), ('hpConnected', 13), ('hpConferencing', 14), ('hpActive', 15), ('voipConfDestroy', 16), ('erroState', 17), ('connectingInactive', 18), ('confDestroyingInactive', 19), ('confTest', 20), ('setupWait', 21), ('waitNseSent', 22), ('twcActive', 23), ('waitState', 24), ('handOver', 25)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnCallState.setStatus('current') if mibBuilder.loadTexts: cXgcpConnCallState.setDescription('Represents possible MG call states. idle - Idle setting - Incoming call from PSTN connecting - CRCX message received conferencing - Call connected, await conf active - Conference created confDestroying - Destroying conference disconnecting - Conf destroyed, disconnect call inactive - call in inactive mode voiceConnecting - Creating telephony call leg only voiceActive - Telephony call leg created confDissociating - Destroying conf callLegsDissociated - Conf destroyed hpConnecting - connecting TDM hair-pin call leg hpConnected - one HP call leg connected hpConferencing - Conferencing TDM Hairpin call leg hpActive - TDM hair-pinning active state voipConfDestroy - Conf destroyed, make HP call erroState - call in error state connectingInactive - creating inactive connection confDestroyingInactive - conf destroy inactive conn confTest - AAL2/IP continuity test setupWait - Waiting for setup information waitNseSent - Wait for NSE event to be sent twcActive - TWC call active waitState - App is waiting for call control handOver - App is grabbing back the control') c_xgcp_conn_codec = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 128, 129, 130, 131, 132, 133, 134, 135, 200))).clone(namedValues=named_values(('notApplicable', 0), ('g711ulaw', 1), ('g711alaw', 2), ('g726k32', 3), ('g726k24', 4), ('g726k16', 5), ('g729', 6), ('g729a', 7), ('g729b', 8), ('g729bLowComp', 9), ('g728', 10), ('g723', 11), ('g7231HighRate', 12), ('g7231aHighRate', 13), ('g7231LowRate', 14), ('g7231aLowRate', 15), ('gsmFullRate', 16), ('gsmHalfRate', 17), ('gsmEnhancedFullRate', 18), ('gsmEnhancedHalfRate', 19), ('g729ab', 20), ('clearChannel', 128), ('nse', 129), ('xnse', 130), ('nte', 131), ('t38', 132), ('modemRelay', 133), ('mdsteModemRelay', 134), ('sse', 135), ('codecUnknown', 200)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnCodec.setReference('RFC-3551') if mibBuilder.loadTexts: cXgcpConnCodec.setStatus('current') if mibBuilder.loadTexts: cXgcpConnCodec.setDescription('Specifies the codec type to be used with the Call. The following codec types are defined: notApplicable - no Codec Type is defined g711ulaw - G.711 mu-law g711alaw - G.711 A-law g726k32 - G.726 32K g726k24 - G.726 24K g726k16 - G.726 16K g729 - G.729 g729a - G.729-A g729b - G.729-B g729bLowComp - G.729-B Low Complexity g728 - G.728 g723 - G.723 g7231HighRate - G.723.1 High Rate g7231aHighRate - G.723.1 Annex A High Rate g7231LowRate - G.723.1 Low Rate g7231aLowRate - G.723.1 Annex A Low Rate gsmFullRate - GSM full rate gsmHalfRate - GSM half rate gsmEnhancedFullRate - GSM enhanced full rate gsmEnhancedHalfRate - GSM enhanced half rate g729ab - G.729-A-B. clearChannel - Nx64 clear channel nse - For NSE xnse - For X-NSE nte - For telephone-event t38 - T-38 modemRelay - Modem Relay mdsteModemRelay - For X+mdste sse - For SSE codecUnknown - Unknown Codec') c_xgcp_conn_last_succ_event = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 11), c_xgcp_call_event()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnLastSuccEvent.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLastSuccEvent.setDescription('A call event is defined as something that happens to a call at a given time. This object contains the latest MG call event that was successful.') c_xgcp_conn_last_succ_int_event = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 12), c_xgcp_call_event()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnLastSuccIntEvent.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLastSuccIntEvent.setDescription('This object contains the latest MG internal call event that was successful.') c_xgcp_conn_last_failed_event = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 13), c_xgcp_call_event()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnLastFailedEvent.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLastFailedEvent.setDescription('This object contains the latest MG call event that was failed.') c_xgcp_conn_last_req_event = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 14), c_xgcp_call_event()).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnLastReqEvent.setStatus('current') if mibBuilder.loadTexts: cXgcpConnLastReqEvent.setDescription('This object contains the latest requested MG call event.') c_xgcp_conn_event_result = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 50, 51, 52, 53, 54, 55, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 90, 91, 92, 93, 94, 95, 96, 97, 98, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 115, 120, 130, 131, 132, 133, 140, 141, 142, 143, 144, 145, 146))).clone(namedValues=named_values(('normalOk', 0), ('invalidOk', 1), ('callRecordReleased', 2), ('invalidCallId', 10), ('invalidConnId', 11), ('duplicatedMsg', 12), ('ackFailure', 13), ('deleteFailure', 14), ('createAckFailure', 15), ('createAckMissing', 16), ('deleteAckFailure', 17), ('notifyFailure', 18), ('invalidState', 19), ('invalidProtocolVer', 20), ('tgwDown', 30), ('tgwNotReady', 31), ('callVdbFailure', 32), ('prevRtpPortLocked', 33), ('connRecordMissing', 34), ('endPointNotRdy', 35), ('memResourceError', 36), ('callCacFailure', 37), ('confRsrcError', 38), ('gwRsrcNotAvailable', 39), ('reqEventFailure', 40), ('invalidCcapiEvent', 41), ('ignoreCcapiEvent', 42), ('signalFailure', 50), ('abnormalOnhook', 51), ('invalidOffhook', 52), ('invalidCot', 53), ('cotFailure', 54), ('cotDisableFailure', 55), ('callSetupReqFailure', 60), ('callSetupIndFailure', 61), ('callContextFailure', 62), ('callPeerFailure', 63), ('callVoxCallFailure', 64), ('callVoipCallFailure', 65), ('callDiscFailure', 66), ('callModifyFailure', 67), ('callAlertFailure', 68), ('callDeleteFailure', 69), ('callUnknownFeature', 70), ('upSupportedCodec', 71), ('noDigitMap', 72), ('ignoreDigit', 73), ('digitsOverflow', 74), ('digitsNotifyFailure', 75), ('codecNotMatched', 76), ('invalidConnMode', 77), ('glare', 78), ('peerMissing', 90), ('peerNotReady', 91), ('peerInWrongState', 92), ('peerDisconnectFailure', 93), ('noConferenceId', 94), ('confCreateFailure', 95), ('confDestroyFailure', 96), ('unknownConnType', 97), ('invalidEndpoint', 98), ('invalidNseEvent', 100), ('nseRcvdOnWrongLeg', 101), ('sendNseFailure', 102), ('playToneFailure', 103), ('codecSpecInError', 104), ('mediaSpecUpsupported', 105), ('mediaChangeFail', 106), ('invalidNsePayload', 107), ('nsePayloadNotAvail', 108), ('embMdcxError', 109), ('mdcxLeg1Error', 110), ('mdcxLeg2Error', 111), ('deferMsg', 112), ('transError', 115), ('discOnWrongLeg', 120), ('invalidNteEvent', 130), ('notEnabledNteEvent', 131), ('nteEventExecuteFail', 132), ('sendNteFailure', 133), ('invalidSsePayload', 140), ('ssePayloadNotAvailable', 141), ('invalidModemRelayParam', 142), ('modemRelayNotSupported', 143), ('invalidXcapXcpar', 144), ('invalidSprtPayload', 145), ('sprtPayloadNotAvailable', 146)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnEventResult.setStatus('current') if mibBuilder.loadTexts: cXgcpConnEventResult.setDescription("Represents possible MG call event results. normalOk - Normal event processed OK invalidOk - Invalid event processed OK callRecordReleased - The call record is released invalidCallId - TGW find invalid call id invalidConnId - TGW find invalid connection id duplicatedMsg - TGW find duplicated sgcp msg ackFailure - TGW can't send sgcp ack msg deleteFailure - TGW can't send sgcp delete msg createAckFailure - TGW can't send create ack msg createAckMissing - TGW did't send sgcp ack msg deleteAckFailure - TGW can't send delete ack msg notifyFailure - TGW can't send sgcp notify msg invalidState - TGW find event in wrong state invalidProtocolVer - GW finds protocl ver. not supported tgwDown - TGW in graceful shutdown mode tgwNotReady - TGW not ready for the event callVdbFailure - TGW can't obtain the vdbptr prevRtpPortLocked - TGW find previous rtp port locked connRecordMissing - TGW can't find conn record endPointNotRdy - TGW not ready for the event memResourceError - TGW has transient mem alloc err callCacFailure - GW does not have the bandwidth confRsrcError - GW cannot get conf resource gwRsrcNotAvailable - GW does not have available resource reqEventFailure - TGW can't handle requested event invalidCcapiEvent - TGW can't handle the ccapi event ignoreCcapiEvent - TGW will ignore the ccapi event signalFailure - TGW can't handle the signal abnormalOnhook - TGW find abnormal onhook invalidOffhook - TGW find invalid offhook invalidCot - TGW find invalid cot cotFailure - TGW failed to do COT cotDisableFailure - TGW failed to disable COT callSetupReqFailure - TGW can't setup call request callSetupIndFailure - TGW can't handle call indication callContextFailure - TGW can't setup the context callPeerFailure - TGW can't setup the peer callVoxCallFailure - TGW can't setup the voip/voaal2 call callVoipCallFailure - TGW can't setup the voip call callDiscFailure - TGW can't disconnect the call callModifyFailure - TGW can't modify the call parm callAlertFailure - TGW can't alert the call callDeleteFailure - TGW can't delete the call callUnknownFeature - TGW can't handle unknow feature upSupportedCodec - TGW find unsupported codec noDigitMap - TGW can't find the digit map ignoreDigit - TGW can't process the digits digitsOverflow - TGW can't handle too many digits digitsNotifyFailure - TGW can't send the digits out codecNotMatched - TGW codec doesn't match rmt TGW invalidConnMode - TGW can't understand con mode glare - GW encountered a glare condition peerMissing - TGW find not find the peer peerNotReady - TGW find peer not ready peerInWrongState - TGW find the peer in wrong state peerDisconnectFailure - TGW can't disconnect the peer noConferenceId - TGW can't find the conference ID confCreateFailure - TGW can't create conference confDestroyFailure - TGW can't destroy conference unknownConnType - TGW can't handle the con type invalidEndpoint - TGW can't connect to endpoint invalidNseEvent - Invalid NSE event nseRcvdOnWrongLeg - The NSE events come to a wrong leg sendNseFailure - Cannot send an NSE event playToneFailure - Cannot play NSE-requested tone codecSpecInError - Codec list provided in error mediaSpecUpsupported - Media specified not supported mediaChangeFail - Media change failed invalidNsePayload - Invalid payload type in SDP nsePayloadNotAvail - Specified NSE payload not free embMdcxError - Emb modify connection error mdcxLeg1Error - Modify connection leg1 error mdcxLeg2Error - Modify connection leg2 error deferMsg - For deferring events transError - TGW endpoint in transition state discOnWrongLeg - Disconnection on wrong call leg invalidNteEvent - Invalid NTE event notEnabledNteEvent - The NTE event has not been enabled for use nteEventExecuteFail - NTE execution failed sendNteFailure - Cannot send an NTE event invalidSsePayload - Invalid SSE payload ssePayloadNotAvailable - SSE payload is not available invalidModemRelayParam - Invalid Modem Relay Param modemRelayNotSupported - Modem Relay not supported in endpt invalidXcapXcpar - Invalid X-Cap or X-Cpar in SDP invalidSprtPayload - Invalid SPRT payload sprtPayloadNotAvailable - SPRT payload is not available") c_xgcp_conn_encr_suite = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('aes128Cm', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cXgcpConnEncrSuite.setStatus('current') if mibBuilder.loadTexts: cXgcpConnEncrSuite.setDescription('Specifies what type of encryption suite is used to encode the information sent through this connection. none - No Encryption suite is used aes128Cm - AES-128 countermode encryption suite is used.') c_xgcp_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2)) c_xgcp_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1)) c_xgcp_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2)) cisco_xgcp_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 1)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMgcConfigGroup'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwGroup'), ('CISCO-XGCP-MIB', 'cXgcpMsgStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_xgcp_mib_compliance = ciscoXgcpMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ciscoXgcpMIBCompliance.setDescription('The compliance statement for the SNMPv2 entities which implement XGCP. This has been replaced by ciscoXgcpMIBComplianceRev1. ') cisco_xgcp_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 2)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMgcConfigGroup'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwGroup'), ('CISCO-XGCP-MIB', 'cXgcpMsgStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_xgcp_mib_compliance_rev1 = ciscoXgcpMIBComplianceRev1.setStatus('deprecated') if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev1.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ') cisco_xgcp_mib_compliance_rev2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 3)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMgcConfigGroup'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwGroup'), ('CISCO-XGCP-MIB', 'cXgcpMsgStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_xgcp_mib_compliance_rev2 = ciscoXgcpMIBComplianceRev2.setStatus('deprecated') if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev2.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ') cisco_xgcp_mib_compliance_rev3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 4)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMgcConfigGroup'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwGroup'), ('CISCO-XGCP-MIB', 'cXgcpMsgStatsGroup'), ('CISCO-XGCP-MIB', 'cXgcpStatsGroup'), ('CISCO-XGCP-MIB', 'cXgcpConnectionGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_xgcp_mib_compliance_rev3 = ciscoXgcpMIBComplianceRev3.setStatus('current') if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev3.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ') c_xgcp_mgc_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 1)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMgcConfigMgcGrpNum'), ('CISCO-XGCP-MIB', 'cXgcpMgcConfigAddress'), ('CISCO-XGCP-MIB', 'cXgcpMgcConfigAddrType'), ('CISCO-XGCP-MIB', 'cXgcpMgcConfigProtocolIndex'), ('CISCO-XGCP-MIB', 'cXgcpMgcConfigGatewayUdpPort')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_xgcp_mgc_config_group = cXgcpMgcConfigGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpMgcConfigGroup.setDescription('This group contains the MGC objects for SGCP/MGCP that the MG connects to.') c_xgcp_media_gw_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 2)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMediaGwRequestTimeOut'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwRequestRetries'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwRequestRetryMethod'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwMaxExpTimeout'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwRestartMwd'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwRestartDelay'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwDefaultPackage'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwSupportedPackages'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwSimpleSdpEnabled'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwAckSdpEnabled'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwUndottedNotation'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwQuarantineProcess'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwQuarantineLoop'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwQuarantinePersist'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwPiggybackMsg'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwMaxMsgSize'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwLastFailMgcAddrType'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwLastFailMgcAddr'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwDtmfRelay'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwCaleaEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_xgcp_media_gw_group = cXgcpMediaGwGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwGroup.setDescription('This group contains core objects for SGCP/MGCP on the MG.') c_xgcp_msg_stats_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 3)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMsgStatsMgcIPAddressType'), ('CISCO-XGCP-MIB', 'cXgcpMsgStatsMgcIPAddress'), ('CISCO-XGCP-MIB', 'cXgcpMsgStatsSuccessMessages'), ('CISCO-XGCP-MIB', 'cXgcpMsgStatsFailMessages'), ('CISCO-XGCP-MIB', 'cXgcpMsgStatsIncompleteMessages')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_xgcp_msg_stats_group = cXgcpMsgStatsGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpMsgStatsGroup.setDescription('This group contains statistics objects for SGCP/MGCP on the MGC and the MG.') c_xgcp_media_gw_group_sup1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 4)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMediaGwConfiguredPackages'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwConnOosRsipBehavior'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwLongDurTimer'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwProfile')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_xgcp_media_gw_group_sup1 = cXgcpMediaGwGroupSup1.setStatus('deprecated') if mibBuilder.loadTexts: cXgcpMediaGwGroupSup1.setDescription('This group contains supplimentary objects for XGCP extended provisioning in the MG.') c_xgcp_media_gw_group_sup2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 5)).setObjects(('CISCO-XGCP-MIB', 'cXgcpMediaGwConfiguredPackages'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwConnOosRsipBehavior'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwLongDurTimer'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwProfile'), ('CISCO-XGCP-MIB', 'cXgcpMediaGwAnnexabSdpEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_xgcp_media_gw_group_sup2 = cXgcpMediaGwGroupSup2.setStatus('current') if mibBuilder.loadTexts: cXgcpMediaGwGroupSup2.setDescription('This group contains supplimentary objects for XGCP extended provisioning in the MG.') c_xgcp_stats_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 6)).setObjects(('CISCO-XGCP-MIB', 'cXgcpStatsUdpRxPkts'), ('CISCO-XGCP-MIB', 'cXgcpStatsUdpTxPkts'), ('CISCO-XGCP-MIB', 'cXgcpStatsUnRecRxPkts'), ('CISCO-XGCP-MIB', 'cXgcpStatsMsgParsingErrors'), ('CISCO-XGCP-MIB', 'cXgcpStatsDupAckTxMsgs'), ('CISCO-XGCP-MIB', 'cXgcpStatsInvalidVerCount'), ('CISCO-XGCP-MIB', 'cXgcpStatsUnknownMgcRxPkts'), ('CISCO-XGCP-MIB', 'cXgcpStatsAckTxMsgs'), ('CISCO-XGCP-MIB', 'cXgcpStatsNackTxMsgs'), ('CISCO-XGCP-MIB', 'cXgcpStatsAckRxMsgs'), ('CISCO-XGCP-MIB', 'cXgcpStatsNackRxMsgs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxCrcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxSuccCrcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxFailCrcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxDlcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxSuccDlcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxFailDlcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxDlcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxSuccDlcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxFailDlcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxMdcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxSuccMdcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxFailMdcxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxRqnts'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxSuccRqnts'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxFailRqnts'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxAucxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxSuccAucxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxFailAucxs'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxAueps'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxSuccAueps'), ('CISCO-XGCP-MIB', 'cXgcpStatsRxFailAueps'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxRsips'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxSuccRsips'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxFailRsips'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxNotifies'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxSuccNotifies'), ('CISCO-XGCP-MIB', 'cXgcpStatsTxFailNotifies')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_xgcp_stats_group = cXgcpStatsGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpStatsGroup.setDescription('This group contains the received and transmitted network messages for every virtual MG present in the managed system. ') c_xgcp_connection_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 7)).setObjects(('CISCO-XGCP-MIB', 'cXgcpConnEndPoint'), ('CISCO-XGCP-MIB', 'cXgcpConnCallId'), ('CISCO-XGCP-MIB', 'cXgcpConnLocalUdpPort'), ('CISCO-XGCP-MIB', 'cXgcpConnRemoteUdpPort'), ('CISCO-XGCP-MIB', 'cXgcpConnMode'), ('CISCO-XGCP-MIB', 'cXgcpConnVccId'), ('CISCO-XGCP-MIB', 'cXgcpConnChannelId'), ('CISCO-XGCP-MIB', 'cXgcpConnCallState'), ('CISCO-XGCP-MIB', 'cXgcpConnCodec'), ('CISCO-XGCP-MIB', 'cXgcpConnLastSuccEvent'), ('CISCO-XGCP-MIB', 'cXgcpConnLastSuccIntEvent'), ('CISCO-XGCP-MIB', 'cXgcpConnLastFailedEvent'), ('CISCO-XGCP-MIB', 'cXgcpConnLastReqEvent'), ('CISCO-XGCP-MIB', 'cXgcpConnEventResult'), ('CISCO-XGCP-MIB', 'cXgcpConnEncrSuite')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_xgcp_connection_group = cXgcpConnectionGroup.setStatus('current') if mibBuilder.loadTexts: cXgcpConnectionGroup.setDescription('This group contains active connections information that are controlled by the Gateway Control Protocol. ') mibBuilder.exportSymbols('CISCO-XGCP-MIB', cXgcpMsgStatsIncompleteMessages=cXgcpMsgStatsIncompleteMessages, CXgcpCallEvent=CXgcpCallEvent, cXgcpConnectionEntry=cXgcpConnectionEntry, ciscoXgcpMIBComplianceRev1=ciscoXgcpMIBComplianceRev1, cXgcpStatsTable=cXgcpStatsTable, cXgcpMgcConfigGroup=cXgcpMgcConfigGroup, cXgcpStatsRxAucxs=cXgcpStatsRxAucxs, cXgcpConnection=cXgcpConnection, cXgcpMediaGwQuarantineLoop=cXgcpMediaGwQuarantineLoop, cXgcpMsgStatsSuccessMessages=cXgcpMsgStatsSuccessMessages, cXgcpMediaGwConnOosRsipBehavior=cXgcpMediaGwConnOosRsipBehavior, cXgcpMediaGwTable=cXgcpMediaGwTable, cXgcpStatsRxFailMdcxs=cXgcpStatsRxFailMdcxs, cXgcpMgcConfigTable=cXgcpMgcConfigTable, cXgcpConnLastSuccEvent=cXgcpConnLastSuccEvent, cXgcpConnChannelId=cXgcpConnChannelId, cXgcpStatsRxSuccCrcxs=cXgcpStatsRxSuccCrcxs, cXgcpMIBGroups=cXgcpMIBGroups, cXgcpStatsRxAueps=cXgcpStatsRxAueps, cXgcpMgcConfigAddrType=cXgcpMgcConfigAddrType, cXgcpStatsTxSuccDlcxs=cXgcpStatsTxSuccDlcxs, cXgcpMediaGwGroupSup2=cXgcpMediaGwGroupSup2, cXgcpMediaGwAckSdpEnabled=cXgcpMediaGwAckSdpEnabled, CXgcpRetryMethod=CXgcpRetryMethod, cXgcpConnCodec=cXgcpConnCodec, cXgcpStatsDupAckTxMsgs=cXgcpStatsDupAckTxMsgs, cXgcpConnEndPoint=cXgcpConnEndPoint, cXgcpMIBConformance=cXgcpMIBConformance, cXgcpMsgStatsMgcIPAddress=cXgcpMsgStatsMgcIPAddress, cXgcpMediaGwUndottedNotation=cXgcpMediaGwUndottedNotation, cXgcpMediaGwSimpleSdpEnabled=cXgcpMediaGwSimpleSdpEnabled, cXgcpStatsRxFailRqnts=cXgcpStatsRxFailRqnts, ciscoXgcpMIBCompliance=ciscoXgcpMIBCompliance, ciscoXgcpMIBComplianceRev2=ciscoXgcpMIBComplianceRev2, cXgcpStatsRxFailAucxs=cXgcpStatsRxFailAucxs, cXgcpStatsUnRecRxPkts=cXgcpStatsUnRecRxPkts, cXgcpConnVccId=cXgcpConnVccId, cXgcpConnCallState=cXgcpConnCallState, cXgcpStatsGroup=cXgcpStatsGroup, cXgcpStatsRxSuccMdcxs=cXgcpStatsRxSuccMdcxs, cXgcpStatsRxMdcxs=cXgcpStatsRxMdcxs, cXgcpStatsRxRqnts=cXgcpStatsRxRqnts, cXgcpStatsUnknownMgcRxPkts=cXgcpStatsUnknownMgcRxPkts, ciscoXgcpMIB=ciscoXgcpMIB, cXgcpMediaGwRequestTimeOut=cXgcpMediaGwRequestTimeOut, cXgcpConnCallId=cXgcpConnCallId, cXgcpStatsInvalidVerCount=cXgcpStatsInvalidVerCount, cXgcpMgcCfg=cXgcpMgcCfg, cXgcpMediaGwGroup=cXgcpMediaGwGroup, cXgcpStatsTxSuccNotifies=cXgcpStatsTxSuccNotifies, cXgcpStatsRxCrcxs=cXgcpStatsRxCrcxs, cXgcpStatsRxSuccAueps=cXgcpStatsRxSuccAueps, cXgcpConnId=cXgcpConnId, cXgcpMgcConfigProtocolIndex=cXgcpMgcConfigProtocolIndex, cXgcpMediaGwDefaultPackage=cXgcpMediaGwDefaultPackage, cXgcpMediaGwEntry=cXgcpMediaGwEntry, cXgcpStatsAckTxMsgs=cXgcpStatsAckTxMsgs, cXgcpMediaGwProfile=cXgcpMediaGwProfile, cXgcpStatsTxFailDlcxs=cXgcpStatsTxFailDlcxs, cXgcpMediaGwMaxMsgSize=cXgcpMediaGwMaxMsgSize, cXgcpConnLocalUdpPort=cXgcpConnLocalUdpPort, cXgcpStatsRxSuccRqnts=cXgcpStatsRxSuccRqnts, cXgcpMediaGwRestartDelay=cXgcpMediaGwRestartDelay, cXgcpMgcConfigMgcGrpNum=cXgcpMgcConfigMgcGrpNum, cXgcpStatsRxSuccAucxs=cXgcpStatsRxSuccAucxs, cXgcpConnLastReqEvent=cXgcpConnLastReqEvent, cXgcpMediaGwSupportedPackages=cXgcpMediaGwSupportedPackages, cXgcpConnLastSuccIntEvent=cXgcpConnLastSuccIntEvent, cXgcpConnEncrSuite=cXgcpConnEncrSuite, cXgcpStatsRxDlcxs=cXgcpStatsRxDlcxs, cXgcpConnMode=cXgcpConnMode, cXgcpMediaGwLastFailMgcAddr=cXgcpMediaGwLastFailMgcAddr, cXgcpStatsNackTxMsgs=cXgcpStatsNackTxMsgs, cXgcpStats=cXgcpStats, cXgcpMediaGwConfiguredPackages=cXgcpMediaGwConfiguredPackages, cXgcpStatsRxFailCrcxs=cXgcpStatsRxFailCrcxs, cXgcpStatsRxFailDlcxs=cXgcpStatsRxFailDlcxs, cXgcpMediaGwPiggybackMsg=cXgcpMediaGwPiggybackMsg, cXgcpConnectionTable=cXgcpConnectionTable, cXgcpMgcConfigAddress=cXgcpMgcConfigAddress, cXgcpMediaGwRequestRetries=cXgcpMediaGwRequestRetries, cXgcpMediaGwLastFailMgcAddrType=cXgcpMediaGwLastFailMgcAddrType, cXgcpStatsTxNotifies=cXgcpStatsTxNotifies, cXgcpStatsTxFailRsips=cXgcpStatsTxFailRsips, cXgcpConnEventResult=cXgcpConnEventResult, cXgcpStatsRxSuccDlcxs=cXgcpStatsRxSuccDlcxs, cXgcpMsgStatsFailMessages=cXgcpMsgStatsFailMessages, cXgcpMsgStatsIndex=cXgcpMsgStatsIndex, cXgcpStatsTxFailNotifies=cXgcpStatsTxFailNotifies, cXgcpStatsMsgParsingErrors=cXgcpStatsMsgParsingErrors, cXgcpStatsUdpRxPkts=cXgcpStatsUdpRxPkts, cXgcpConnRemoteUdpPort=cXgcpConnRemoteUdpPort, cXgcpStatsTxRsips=cXgcpStatsTxRsips, cXgcpMediaGwCaleaEnabled=cXgcpMediaGwCaleaEnabled, cXgcpStatsRxFailAueps=cXgcpStatsRxFailAueps, cXgcpMIBCompliances=cXgcpMIBCompliances, cXgcpNotifications=cXgcpNotifications, cXgcpStatsAckRxMsgs=cXgcpStatsAckRxMsgs, cXgcpConnLastFailedEvent=cXgcpConnLastFailedEvent, cXgcpMsgStatsGroup=cXgcpMsgStatsGroup, cXgcpMediaGwGroupSup1=cXgcpMediaGwGroupSup1, cXgcpMsgStatsMgcIPAddressType=cXgcpMsgStatsMgcIPAddressType, cXgcpMediaGwDtmfRelay=cXgcpMediaGwDtmfRelay, cXgcpMsgStatsTable=cXgcpMsgStatsTable, cXgcpConnectionGroup=cXgcpConnectionGroup, cXgcpMgcConfigEntry=cXgcpMgcConfigEntry, cXgcpObjects=cXgcpObjects, cXgcpMediaGw=cXgcpMediaGw, cXgcpMediaGwRestartMwd=cXgcpMediaGwRestartMwd, cXgcpMediaGwAnnexabSdpEnabled=cXgcpMediaGwAnnexabSdpEnabled, cXgcpMsgStatsEntry=cXgcpMsgStatsEntry, ciscoXgcpMIBComplianceRev3=ciscoXgcpMIBComplianceRev3, cXgcpMediaGwQuarantinePersist=cXgcpMediaGwQuarantinePersist, cXgcpStatsEntry=cXgcpStatsEntry, cXgcpMediaGwMaxExpTimeout=cXgcpMediaGwMaxExpTimeout, cXgcpMediaGwRequestRetryMethod=cXgcpMediaGwRequestRetryMethod, cXgcpStatsTxDlcxs=cXgcpStatsTxDlcxs, cXgcpMgcConfigGatewayUdpPort=cXgcpMgcConfigGatewayUdpPort, PYSNMP_MODULE_ID=ciscoXgcpMIB, cXgcpStatsUdpTxPkts=cXgcpStatsUdpTxPkts, cXgcpMediaGwQuarantineProcess=cXgcpMediaGwQuarantineProcess, cXgcpStatsTxSuccRsips=cXgcpStatsTxSuccRsips, cXgcpStatsNackRxMsgs=cXgcpStatsNackRxMsgs, cXgcpMediaGwLongDurTimer=cXgcpMediaGwLongDurTimer)
#Given an array of integers, find the sum of its elements. #Input Format #The first line contains an integer, n, denoting the size of the array. #The second line contains n space-separated integers representing the array's elements. #Output Format #Print the sum of the array's elements as a single integer. #Sample Input #6 #1 2 3 4 10 11 #Sample Output #31 #Explanation #We print the sum of the array's elements: . # # Complete the simpleArraySum function below. # def simpleArraySum(ar): n=len(ar) i=0 p=0 while i<n: p=p+ar[i] i+=1 return p
def simple_array_sum(ar): n = len(ar) i = 0 p = 0 while i < n: p = p + ar[i] i += 1 return p
AUTH_LDAP_GLOBAL_OPTIONS = { ldap.OPT_X_TLS_REQUIRE_CERT: True, ldap.OPT_X_TLS_CACERTFILE: "/etc/certs/ldap.pem" }
auth_ldap_global_options = {ldap.OPT_X_TLS_REQUIRE_CERT: True, ldap.OPT_X_TLS_CACERTFILE: '/etc/certs/ldap.pem'}
class Worker: def __init__(self, number, name, age, salary): self.number = number, self.name = name, self.age = age, self.salary = salary
class Worker: def __init__(self, number, name, age, salary): self.number = (number,) self.name = (name,) self.age = (age,) self.salary = salary
class SessionTimeOut(Exception): pass class InvalidFormat(Exception): pass class UserExists(Exception): pass class EmailAlreadyUsed(Exception): pass class SQLInjectionAlert(Exception): pass
class Sessiontimeout(Exception): pass class Invalidformat(Exception): pass class Userexists(Exception): pass class Emailalreadyused(Exception): pass class Sqlinjectionalert(Exception): pass
class Button: def __init__(self, label, _x, _y, _w, _h): self.label = label self.position = PVector(_x, _y) self.WIDTH = _w self.HEIGHT = _h def display(self): fill(218) stroke(0) rect(self.position.x, self.position.y, self.WIDTH, self.HEIGHT, 10) textAlign(CENTER, CENTER) fill(0) text(self.label, self.position.x + (self.WIDTH/2), self.position.y + (self.HEIGHT/2)) def mouse_over(self): return (mouseX > self.position.x and mouseX < (self.position.x + self.WIDTH)) and (mouseY > self.position.y and mouseY < (self.position.y + self.HEIGHT))
class Button: def __init__(self, label, _x, _y, _w, _h): self.label = label self.position = p_vector(_x, _y) self.WIDTH = _w self.HEIGHT = _h def display(self): fill(218) stroke(0) rect(self.position.x, self.position.y, self.WIDTH, self.HEIGHT, 10) text_align(CENTER, CENTER) fill(0) text(self.label, self.position.x + self.WIDTH / 2, self.position.y + self.HEIGHT / 2) def mouse_over(self): return (mouseX > self.position.x and mouseX < self.position.x + self.WIDTH) and (mouseY > self.position.y and mouseY < self.position.y + self.HEIGHT)
EXPECTED = {'X680': {'extensibility-implied': False, 'imports': {}, 'object-classes': {'ATTRIBUTE-E-2-15': {'members': [{'name': '&AttributeType', 'type': 'OpenType'}, {'name': '&attributeId', 'type': 'OBJECT ' 'IDENTIFIER'}]}}, 'object-sets': {}, 'tags': 'AUTOMATIC', 'types': {'A': {'type': 'NULL'}, 'A-19-5': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 3), None, ('c', 1)]}, 'A-19-6': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), None, ('c', 2)]}, 'A-G-1-4-1': {'members': [{'name': 'a', 'type': 'INTEGER'}, None], 'type': 'SEQUENCE'}, 'A-G-1-4-2': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, {'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'A-G-1-4-3': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, {'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}, {'members': [{'name': 'e', 'type': 'INTEGER'}, None, None, {'name': 'f', 'type': 'IA5String'}], 'name': 'd', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'A-G-1-4-4': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, {'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}, {'members': [{'name': 'e', 'type': 'INTEGER'}, None, {'name': 'g', 'optional': True, 'type': 'BOOLEAN'}, {'name': 'h', 'type': 'BMPString'}, None, {'name': 'f', 'type': 'IA5String'}], 'name': 'd', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'A-G-1-7-1': {'members': [{'name': 'a', 'type': 'INTEGER'}, None], 'type': 'SEQUENCE'}, 'A-G-1-7-2': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, [{'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}]], 'type': 'SEQUENCE'}, 'A-G-1-7-3': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, [{'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}], {'members': [{'name': 'e', 'type': 'INTEGER'}, None, None, {'name': 'f', 'type': 'IA5String'}], 'name': 'd', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'A-G-1-7-4': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, [{'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}], {'members': [{'name': 'e', 'type': 'INTEGER'}, None, [{'name': 'g', 'optional': True, 'type': 'BOOLEAN'}, {'name': 'h', 'type': 'BMPString'}], None, {'name': 'f', 'type': 'IA5String'}], 'name': 'd', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'A-G-4-1-2': {'restricted-to': [('MIN', 'MAX'), None, (1, 10)], 'type': 'INTEGER'}, 'A1-G-4-2-3': {'restricted-to': [(1, 32), None, (33, 128)], 'type': 'INTEGER'}, 'A3-G-4-2-3': {'type': 'INTEGER'}, 'ABEnvelope-E-4-a': {'type': 'Envelope-E-4'}, 'ABEnvelope-E-4-b': {'type': 'Envelope-E-4'}, 'ACEnvelope-E-4-a': {'type': 'Envelope-E-4'}, 'ACEnvelope-E-4-b': {'type': 'Envelope-E-4'}, 'AcmeBadgeNumber-E-2-12': {'tag': {'class': 'PRIVATE', 'number': 2}, 'type': 'INTEGER'}, 'AngleInRadians-E-2-4': {'type': 'REAL'}, 'App-X-Real-E-2-4': {'type': 'REAL'}, 'AtomicNumber-E-4': {'restricted-to': [(1, 104)], 'type': 'INTEGER'}, 'Attribute-E-2-15': {'members': [{'name': 'attributeID', 'table': None, 'type': 'ATTRIBUTE-E-2-15.&attributeId'}, {'name': 'attributeValue', 'table': None, 'type': 'ATTRIBUTE-E-2-15.&AttributeType'}], 'type': 'SEQUENCE'}, 'Audio': {'type': 'NULL'}, 'B': {'type': 'NULL'}, 'B-19-6': {'type': 'ENUMERATED', 'values': [('a', 1), ('b', 2), ('c', 0), None, ('d', 3)]}, 'B1-G-4-2-3': {'restricted-to': [(1, 128)], 'type': 'A1-G-4-2-3'}, 'B2-G-4-2-3': {'restricted-to': [(1, 16)], 'type': 'A1-G-4-2-3'}, 'BitField-E-2-5': {'size': [12], 'type': 'BIT STRING'}, 'C': {'type': 'NULL'}, 'C-19-6': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), None, ('c', 3), ('d', 4)]}, 'C0-F-2-6': {'type': 'BMPString'}, 'C1-F-2-6': {'type': 'BMPString'}, 'Certificate': {'type': 'NULL'}, 'CheckingAccountBalance-E-2-2': {'type': 'INTEGER'}, 'ChildInformation-E-1-1': {'members': [{'name': 'name', 'type': 'Name-E-1-1'}, {'name': 'dateOfBirth', 'type': 'Date-E-1-1'}], 'type': 'SET'}, 'Credentials-E-2-10': {'members': [{'name': 'userName', 'type': 'VisibleString'}, {'name': 'password', 'type': 'VisibleString'}, {'name': 'accountNumber', 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'CustomerAttribute-E-2-12-a': {'members': [{'name': 'name', 'tag': {'number': 0}, 'type': 'VisibleString'}, {'name': 'mailingAddress', 'tag': {'number': 1}, 'type': 'VisibleString'}, {'name': 'accountNumber', 'tag': {'number': 2}, 'type': 'INTEGER'}, {'name': 'balanceDue', 'tag': {'number': 3}, 'type': 'INTEGER'}], 'type': 'CHOICE'}, 'CustomerAttribute-E-2-12-b': {'members': [{'name': 'name', 'tag': {'kind': 'IMPLICIT', 'number': 0}, 'type': 'VisibleString'}, {'name': 'mailingAddress', 'tag': {'kind': 'IMPLICIT', 'number': 1}, 'type': 'VisibleString'}, {'name': 'accountNumber', 'tag': {'kind': 'IMPLICIT', 'number': 2}, 'type': 'INTEGER'}, {'name': 'balanceDue', 'tag': {'kind': 'IMPLICIT', 'number': 3}, 'type': 'INTEGER'}], 'type': 'CHOICE'}, 'CustomerRecord-E-2-12-a': {'members': [{'name': 'name', 'tag': {'number': 0}, 'type': 'VisibleString'}, {'name': 'mailingAddress', 'tag': {'number': 1}, 'type': 'VisibleString'}, {'name': 'accountNumber', 'tag': {'number': 2}, 'type': 'INTEGER'}, {'name': 'balanceDue', 'tag': {'number': 3}, 'type': 'INTEGER'}], 'type': 'SET'}, 'CustomerRecord-E-2-12-b': {'members': [{'name': 'name', 'tag': {'kind': 'IMPLICIT', 'number': 0}, 'type': 'VisibleString'}, {'name': 'mailingAddress', 'tag': {'kind': 'IMPLICIT', 'number': 1}, 'type': 'VisibleString'}, {'name': 'accountNumber', 'tag': {'kind': 'IMPLICIT', 'number': 2}, 'type': 'INTEGER'}, {'name': 'balanceDue', 'tag': {'kind': 'IMPLICIT', 'number': 3}, 'type': 'INTEGER'}], 'type': 'SET'}, 'D': {'type': 'NULL'}, 'D-19-5': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), None, ('c', 2)]}, 'D-19-6': {'type': 'ENUMERATED', 'values': [('a', 0), ('z', 25), None, ('d', 1)]}, 'Date-E-1-1': {'tag': {'class': 'APPLICATION', 'number': 3}, 'type': 'VisibleString'}, 'DayOfTheMonth-E-2-2': {'type': 'INTEGER'}, 'DayOfTheMonth-E-2-2-a': {'restricted-to': ['first', 'last'], 'type': 'INTEGER'}, 'DayOfTheMonth-E-2-2-b': {'restricted-to': [('first', 'last')], 'type': 'INTEGER'}, 'DayOfTheWeek-E-2-3': {'type': 'ENUMERATED', 'values': [('sunday', 0), ('monday', 1), ('tuesday', 2), ('wednesday', 3), ('thursday', 4), ('friday', 5), ('saturday', 6)]}, 'DaysOfTheWeek-E-2-5-a': {'size': [(0, 7)], 'type': 'BIT STRING'}, 'DaysOfTheWeek-E-2-5-b': {'size': [7], 'type': 'BIT STRING'}, 'E': {'type': 'NULL'}, 'Employed-E-2-1': {'type': 'BOOLEAN'}, 'EmployeeNumber-E-1-1': {'tag': {'class': 'APPLICATION', 'number': 2}, 'type': 'INTEGER'}, 'Envelope-E-4': {'members': [{'name': 'typeA', 'type': 'TypeA'}, {'name': 'typeB', 'optional': True, 'type': 'TypeB'}, {'name': 'typeC', 'optional': True, 'type': 'TypeC'}], 'type': 'SET'}, 'FileIdentifier-E-2-13-a': {'members': [{'name': 'relativeName', 'type': 'VisibleString'}, {'name': 'absoluteName', 'type': 'VisibleString'}, {'name': 'serialNumber', 'type': 'INTEGER'}], 'type': 'CHOICE'}, 'FileIdentifier-E-2-13-b': {'members': [{'name': 'relativeName', 'type': 'VisibleString'}, {'name': 'absoluteName', 'type': 'VisibleString'}, None, None], 'type': 'CHOICE'}, 'FileIdentifier-E-2-13-c': {'members': [{'name': 'relativeName', 'type': 'VisibleString'}, {'name': 'absoluteName', 'type': 'VisibleString'}, None, {'name': 'serialNumber', 'type': 'INTEGER'}, None], 'type': 'CHOICE'}, 'FileIdentifier-E-2-13-d': {'members': [{'name': 'relativeName', 'type': 'VisibleString'}, {'name': 'absoluteName', 'type': 'VisibleString'}, None, {'name': 'serialNumber', 'type': 'INTEGER'}, [{'name': 'vendorSpecific', 'type': 'VendorExt'}, {'name': 'unidentified', 'type': 'NULL'}], None], 'type': 'CHOICE'}, 'FileName-E-2-12': {'members': [{'name': 'directoryName', 'type': 'VisibleString'}, {'name': 'directoryRelativeFileName', 'type': 'VisibleString'}], 'tag': {'class': 'APPLICATION', 'number': 8}, 'type': 'SEQUENCE'}, 'First-half-E-4': {'restricted-to': ['First-quarter-E-4', 'Second-quarter-E-4'], 'type': 'Months-E-4'}, 'First-quarter-E-4': {'restricted-to': ['january', 'february', 'march'], 'type': 'Months-E-4'}, 'Fourth-quarter-E-4': {'restricted-to': ['october', 'november', 'december'], 'type': 'Months-E-4'}, 'G3FacsimilePage-E-2-5': {'type': 'BIT STRING'}, 'G4FacsimileImage-E-2-6': {'type': 'OCTET STRING'}, 'Greeting-E-2-13-a': {'members': [{'name': 'postCard', 'type': 'VisibleString'}, None, None], 'type': 'CHOICE'}, 'Greeting-E-2-13-b': {'members': [{'name': 'postCard', 'type': 'VisibleString'}, None, [{'name': 'audio', 'type': 'Audio'}, {'name': 'video', 'type': 'Video'}], None], 'type': 'CHOICE'}, 'Greeting-E-2-13-c': {'members': [{'name': 'postCard', 'type': 'VisibleString'}, {'name': 'recording', 'type': 'Voice-E-2-13'}], 'tag': {'class': 'APPLICATION', 'number': 12}, 'type': 'CHOICE'}, 'Keywords-E-2-11': {'element': {'type': 'VisibleString'}, 'type': 'SET OF'}, 'Keywords2-E-2-11': {'element': {'type': 'VisibleString'}, 'type': 'SET OF'}, 'MaritalStatus-E-2-3-a': {'type': 'ENUMERATED', 'values': [('single', 0), ('married', 1)]}, 'MaritalStatus-E-2-3-b': {'type': 'ENUMERATED', 'values': [('single', 0), ('married', 1), None, ('widowed', 2)]}, 'MaritalStatus-E-2-3-c': {'type': 'ENUMERATED', 'values': [('single', 0), ('married', 1), None, ('widowed', 2), ('divorced', 3)]}, 'Months-E-4': {'type': 'ENUMERATED', 'values': [('january', 1), ('february', 2), ('march', 3), ('april', 4), ('may', 5), ('june', 6), ('july', 7), ('august', 8), ('september', 9), ('october', 10), ('november', 11), ('december', 12)]}, 'Name-E-1-1': {'members': [{'name': 'givenName', 'type': 'VisibleString'}, {'name': 'initial', 'type': 'VisibleString'}, {'name': 'familyName', 'type': 'VisibleString'}], 'tag': {'class': 'APPLICATION', 'number': 1}, 'type': 'SEQUENCE'}, 'NamesOfMemberNations-E-2-10': {'element': {'type': 'VisibleString'}, 'type': 'SEQUENCE OF'}, 'NamesOfMemberNations2-E-2-10': {'element': {'type': 'VisibleString'}, 'type': 'SEQUENCE OF'}, 'NamesOfOfficers-E-2-10': {'members': [{'name': 'president', 'type': 'VisibleString'}, {'name': 'vicePresident', 'type': 'VisibleString'}, {'name': 'secretary', 'type': 'VisibleString'}], 'type': 'SEQUENCE'}, 'PDU-E-4': {'members': [{'name': 'alpha', 'type': 'INTEGER'}, {'name': 'beta', 'optional': True, 'type': 'IA5String'}, {'element': {'type': 'Parameter'}, 'name': 'gamma', 'type': 'SEQUENCE OF'}, {'name': 'delta', 'type': 'BOOLEAN'}], 'type': 'SET'}, 'PackedBCDString-E-2-8': {'type': 'CHARACTER STRING'}, 'Parameter': {'type': 'NULL'}, 'ParameterList-E-4': {'element': {'type': 'Parameter'}, 'size': [(1, 63)], 'type': 'SET OF'}, 'PatientIdentifier-E-2-9': {'members': [{'name': 'name', 'type': 'VisibleString'}, {'members': [{'name': 'room', 'type': 'INTEGER'}, {'name': 'outPatient', 'type': 'NULL'}], 'name': 'roomNumber', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'PersonalStatus-E-2-5': {'type': 'BIT STRING'}, 'PersonnelRecord-E-1-1': {'members': [{'name': 'name', 'type': 'Name-E-1-1'}, {'name': 'title', 'type': 'VisibleString'}, {'name': 'number', 'type': 'EmployeeNumber-E-1-1'}, {'name': 'dateOfHire', 'type': 'Date-E-1-1'}, {'name': 'nameOfSpouse', 'type': 'Name-E-1-1'}, {'default': [], 'element': {'type': 'ChildInformation-E-1-1'}, 'name': 'children', 'type': 'SEQUENCE ' 'OF'}], 'tag': {'class': 'APPLICATION', 'number': 0}, 'type': 'SET'}, 'Record-E-2-10-a': {'members': [{'name': 'userName', 'type': 'VisibleString'}, {'name': 'password', 'type': 'VisibleString'}, {'name': 'accountNumber', 'type': 'INTEGER'}, None, None], 'type': 'SEQUENCE'}, 'Record-E-2-10-b': {'members': [{'name': 'userName', 'type': 'VisibleString'}, {'name': 'password', 'type': 'VisibleString'}, {'name': 'accountNumber', 'type': 'INTEGER'}, None, [{'name': 'lastLoggedIn', 'optional': True, 'type': 'GeneralizedTime'}, {'name': 'minutesLastLoggedIn', 'type': 'INTEGER'}], None], 'type': 'SEQUENCE'}, 'Record-E-2-10-c': {'members': [{'name': 'userName', 'type': 'VisibleString'}, {'name': 'password', 'type': 'VisibleString'}, {'name': 'accountNumber', 'type': 'INTEGER'}, None, [{'name': 'lastLoggedIn', 'optional': True, 'type': 'GeneralizedTime'}, {'name': 'minutesLastLoggedIn', 'type': 'INTEGER'}], [{'name': 'certificate', 'type': 'Certificate'}, {'name': 'thumb', 'optional': True, 'type': 'ThumbPrint'}], None], 'type': 'SEQUENCE'}, 'Second-half-E-4': {'restricted-to': ['Third-quarter-E-4', 'Fourth-quarter-E-4'], 'type': 'Months-E-4'}, 'Second-quarter-E-4': {'restricted-to': ['april', 'may', 'june'], 'type': 'Months-E-4'}, 'SmallPrime-E-4-a': {'restricted-to': [2, 3, 5, 7, 11, 13, 17, 19, 23, 29], 'type': 'INTEGER'}, 'SmallPrime-E-4-b': {'restricted-to': [2, 3, None], 'type': 'INTEGER'}, 'SmallPrime-E-4-c': {'restricted-to': [2, 3, None, 5, 7, 11], 'type': 'INTEGER'}, 'SmallPrime-E-4-d': {'restricted-to': [2, 3, None, 5, 7, 11, 13, 17, 19], 'type': 'INTEGER'}, 'Surname-E-2-6': {'type': 'PrintableString'}, 'T-14-10': {'members': [{'name': 'a', 'type': 'BOOLEAN'}, {'element': {'type': 'INTEGER'}, 'name': 'b', 'type': 'SET OF'}], 'type': 'SEQUENCE'}, 'TestPDU-E-4': {'type': 'PDU-E-4'}, 'Text-block-E-4': {'element': {'type': 'VisibleString'}, 'type': 'SEQUENCE OF'}, 'Third-quarter-E-4': {'restricted-to': ['july', 'august', 'september'], 'type': 'Months-E-4'}, 'ThumbPrint': {'type': 'NULL'}, 'TouchToneString-E-4': {'type': 'IA5String'}, 'TypeA': {'type': 'INTEGER'}, 'TypeB': {'type': 'BIT STRING'}, 'TypeC': {'type': 'REAL'}, 'UserName-E-2-11-a': {'members': [{'name': 'personalName', 'tag': {'number': 0}, 'type': 'VisibleString'}, {'name': 'organizationName', 'tag': {'number': 1}, 'type': 'VisibleString'}, {'name': 'countryName', 'tag': {'number': 2}, 'type': 'VisibleString'}], 'type': 'SET'}, 'UserName-E-2-11-b': {'members': [{'name': 'personalName', 'tag': {'number': 0}, 'type': 'VisibleString'}, {'name': 'organizationName', 'optional': True, 'tag': {'number': 1}, 'type': 'VisibleString'}, {'name': 'countryName', 'optional': True, 'tag': {'number': 2}, 'type': 'VisibleString'}], 'type': 'SET'}, 'UserName-E-2-11-c': {'members': [{'name': 'personalName', 'type': 'VisibleString'}, {'name': 'organizationName', 'optional': True, 'type': 'VisibleString'}, {'name': 'countryName', 'optional': True, 'type': 'VisibleString'}, None, None], 'type': 'SET'}, 'UserName-E-2-11-d': {'members': [{'name': 'personalName', 'type': 'VisibleString'}, {'name': 'organizationName', 'optional': True, 'type': 'VisibleString'}, {'name': 'countryName', 'optional': True, 'type': 'VisibleString'}, None, [{'name': 'internetEmailAddress', 'type': 'VisibleString'}, {'name': 'faxNumber', 'optional': True, 'type': 'VisibleString'}], None], 'type': 'SET'}, 'UserName-E-2-11-e': {'members': [{'name': 'personalName', 'type': 'VisibleString'}, {'name': 'organizationName', 'optional': True, 'type': 'VisibleString'}, {'name': 'countryName', 'optional': True, 'type': 'VisibleString'}, None, [{'name': 'internetEmailAddress', 'type': 'VisibleString'}, {'name': 'faxNumber', 'optional': True, 'type': 'VisibleString'}], [{'name': 'phoneNumber', 'optional': True, 'type': 'VisibleString'}], None], 'type': 'SET'}, 'V-E-4': {'type': 'Z-E-4'}, 'VendorExt': {'type': 'OCTET STRING'}, 'Video': {'type': 'REAL'}, 'Voice-E-2-13': {'members': [{'name': 'english', 'type': 'OCTET STRING'}, {'name': 'swahili', 'type': 'OCTET STRING'}], 'type': 'CHOICE'}, 'W-E-4': {'type': 'Z-E-4'}, 'X-E-4': {'type': 'Z-E-4'}, 'Y-E-4': {'type': 'Z-E-4'}, 'Z-E-4': {'members': [{'name': 'a', 'type': 'A'}, {'name': 'b', 'type': 'B'}, {'name': 'c', 'type': 'C'}, {'name': 'd', 'type': 'D'}, {'name': 'e', 'type': 'E'}], 'type': 'CHOICE'}}, 'values': {'acmeCorp-E-2-10': {'type': 'NamesOfOfficers-E-2-10', 'value': '{'}, 'badgeNumber-E-2-12': {'type': 'AcmeBadgeNumber-E-2-12', 'value': 2345}, 'balance-E-2-2': {'type': 'CheckingAccountBalance-E-2-2', 'value': 0}, 'billClinton-E-2-5': {'type': 'PersonalStatus-E-2-5', 'value': ['married', 'employed', 'collegeGraduate']}, 'body1-E-2-5': {'type': 'G3FacsimilePage-E-2-5', 'value': '0b1101'}, 'body2-E-2-5': {'type': 'G3FacsimilePage-E-2-5', 'value': '0b1101000'}, 'dayOfTheMonth-E-2-2-c': {'type': 'DayOfTheMonth-E-2-2', 'value': 4}, 'file-E-2-13': {'type': 'FileIdentifier-E-2-13-a', 'value': 'serialNumber'}, 'fileId1-E-2-13-a': {'type': 'FileIdentifier-E-2-13-b', 'value': 'relativeName'}, 'fileId1-E-2-13-b': {'type': 'FileIdentifier-E-2-13-c', 'value': 'relativeName'}, 'fileId1-E-2-13-c': {'type': 'FileIdentifier-E-2-13-d', 'value': 'relativeName'}, 'fileId2-E-2-13-a': {'type': 'FileIdentifier-E-2-13-c', 'value': 'serialNumber'}, 'fileId2-E-2-13-b': {'type': 'FileIdentifier-E-2-13-d', 'value': 'serialNumber'}, 'fileId3-E-2-13-a': {'type': 'FileIdentifier-E-2-13-d', 'value': 'unidentified'}, 'firstDay-E-2-3': {'type': 'DayOfTheWeek-E-2-3', 'value': 'sunday'}, 'firstTwo-E-2-10': {'type': 'NamesOfMemberNations-E-2-10', 'value': '{'}, 'firstTwo2-E-2-10': {'type': 'NamesOfMemberNations2-E-2-10', 'value': '{'}, 'girth-E-2-4': {'type': 'App-X-Real-E-2-4', 'value': '{'}, 'greekCapitalLetterSigma-E-2-7': {'type': 'BMPString', 'value': '{'}, 'hillaryClinton-E-2-5': {'type': 'PersonalStatus-E-2-5', 'value': '0b110100'}, 'image-E-2-5': {'type': 'G3FacsimilePage-E-2-5', 'value': '0b100110100100001110110'}, 'image-E-2-6': {'type': 'G4FacsimileImage-E-2-6', 'value': '0x3FE2EBAD471005'}, 'infinity-E-2-7': {'type': 'UTF8String', 'value': '{'}, 'lastPatient-E-2-9': {'type': 'PatientIdentifier-E-2-9', 'value': '{'}, 'map1-E-2-5': {'type': 'BitField-E-2-5', 'value': '0b100110100100'}, 'map2-E-2-5': {'type': 'BitField-E-2-5', 'value': '0x9A4'}, 'myGreeting-E-2-13': {'type': 'Greeting-E-2-13-c', 'value': 'recording'}, 'pi-E-2-4-a': {'type': 'REAL', 'value': '{'}, 'pi-E-2-4-b': {'type': 'REAL', 'value': '3.141592653589793'}, 'president-E-2-6': {'type': 'Surname-E-2-6', 'value': 'Clinton'}, 'property-E-2-7': {'type': 'UTF8String', 'value': '{'}, 'rightwardsArrow-E-2-7': {'type': 'UTF8String', 'value': '{'}, 'someASN1Keywords-E-2-11': {'type': 'Keywords-E-2-11', 'value': '{'}, 'someASN1Keywords2-E-2-11': {'type': 'Keywords2-E-2-11', 'value': '{'}, 'sunnyDaysLastWeek1-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a', 'value': ['sunday', 'monday', 'wednesday']}, 'sunnyDaysLastWeek1-E-2-5-b': {'type': 'DaysOfTheWeek-E-2-5-b', 'value': ['sunday', 'monday', 'wednesday']}, 'sunnyDaysLastWeek2-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a', 'value': '0b1101'}, 'sunnyDaysLastWeek3-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a', 'value': '0b1101000'}, 'sunnyDaysLastWeek3-E-2-5-b': {'type': 'DaysOfTheWeek-E-2-5-b', 'value': '0b1101000'}, 'today-E-2-2': {'type': 'DayOfTheMonth-E-2-2', 'value': 'first'}, 'trailer-E-2-5': {'type': 'BIT STRING', 'value': '0x0123456789ABCDEF'}, 'unknown-E-2-2': {'type': 'DayOfTheMonth-E-2-2', 'value': 0}, 'user-E-2-11-a': {'type': 'UserName-E-2-11-a', 'value': '{'}, 'user-E-2-11-b': {'type': 'UserName-E-2-11-c', 'value': '{'}, 'user-E-2-11-c': {'type': 'UserName-E-2-11-d', 'value': '{'}, 'user-E-2-11-d': {'type': 'UserName-E-2-11-e', 'value': '{'}}}}
expected = {'X680': {'extensibility-implied': False, 'imports': {}, 'object-classes': {'ATTRIBUTE-E-2-15': {'members': [{'name': '&AttributeType', 'type': 'OpenType'}, {'name': '&attributeId', 'type': 'OBJECT IDENTIFIER'}]}}, 'object-sets': {}, 'tags': 'AUTOMATIC', 'types': {'A': {'type': 'NULL'}, 'A-19-5': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 3), None, ('c', 1)]}, 'A-19-6': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), None, ('c', 2)]}, 'A-G-1-4-1': {'members': [{'name': 'a', 'type': 'INTEGER'}, None], 'type': 'SEQUENCE'}, 'A-G-1-4-2': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, {'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'A-G-1-4-3': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, {'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}, {'members': [{'name': 'e', 'type': 'INTEGER'}, None, None, {'name': 'f', 'type': 'IA5String'}], 'name': 'd', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'A-G-1-4-4': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, {'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}, {'members': [{'name': 'e', 'type': 'INTEGER'}, None, {'name': 'g', 'optional': True, 'type': 'BOOLEAN'}, {'name': 'h', 'type': 'BMPString'}, None, {'name': 'f', 'type': 'IA5String'}], 'name': 'd', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'A-G-1-7-1': {'members': [{'name': 'a', 'type': 'INTEGER'}, None], 'type': 'SEQUENCE'}, 'A-G-1-7-2': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, [{'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}]], 'type': 'SEQUENCE'}, 'A-G-1-7-3': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, [{'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}], {'members': [{'name': 'e', 'type': 'INTEGER'}, None, None, {'name': 'f', 'type': 'IA5String'}], 'name': 'd', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'A-G-1-7-4': {'members': [{'name': 'a', 'type': 'INTEGER'}, None, [{'name': 'b', 'type': 'BOOLEAN'}, {'name': 'c', 'type': 'INTEGER'}], {'members': [{'name': 'e', 'type': 'INTEGER'}, None, [{'name': 'g', 'optional': True, 'type': 'BOOLEAN'}, {'name': 'h', 'type': 'BMPString'}], None, {'name': 'f', 'type': 'IA5String'}], 'name': 'd', 'type': 'SEQUENCE'}], 'type': 'SEQUENCE'}, 'A-G-4-1-2': {'restricted-to': [('MIN', 'MAX'), None, (1, 10)], 'type': 'INTEGER'}, 'A1-G-4-2-3': {'restricted-to': [(1, 32), None, (33, 128)], 'type': 'INTEGER'}, 'A3-G-4-2-3': {'type': 'INTEGER'}, 'ABEnvelope-E-4-a': {'type': 'Envelope-E-4'}, 'ABEnvelope-E-4-b': {'type': 'Envelope-E-4'}, 'ACEnvelope-E-4-a': {'type': 'Envelope-E-4'}, 'ACEnvelope-E-4-b': {'type': 'Envelope-E-4'}, 'AcmeBadgeNumber-E-2-12': {'tag': {'class': 'PRIVATE', 'number': 2}, 'type': 'INTEGER'}, 'AngleInRadians-E-2-4': {'type': 'REAL'}, 'App-X-Real-E-2-4': {'type': 'REAL'}, 'AtomicNumber-E-4': {'restricted-to': [(1, 104)], 'type': 'INTEGER'}, 'Attribute-E-2-15': {'members': [{'name': 'attributeID', 'table': None, 'type': 'ATTRIBUTE-E-2-15.&attributeId'}, {'name': 'attributeValue', 'table': None, 'type': 'ATTRIBUTE-E-2-15.&AttributeType'}], 'type': 'SEQUENCE'}, 'Audio': {'type': 'NULL'}, 'B': {'type': 'NULL'}, 'B-19-6': {'type': 'ENUMERATED', 'values': [('a', 1), ('b', 2), ('c', 0), None, ('d', 3)]}, 'B1-G-4-2-3': {'restricted-to': [(1, 128)], 'type': 'A1-G-4-2-3'}, 'B2-G-4-2-3': {'restricted-to': [(1, 16)], 'type': 'A1-G-4-2-3'}, 'BitField-E-2-5': {'size': [12], 'type': 'BIT STRING'}, 'C': {'type': 'NULL'}, 'C-19-6': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), None, ('c', 3), ('d', 4)]}, 'C0-F-2-6': {'type': 'BMPString'}, 'C1-F-2-6': {'type': 'BMPString'}, 'Certificate': {'type': 'NULL'}, 'CheckingAccountBalance-E-2-2': {'type': 'INTEGER'}, 'ChildInformation-E-1-1': {'members': [{'name': 'name', 'type': 'Name-E-1-1'}, {'name': 'dateOfBirth', 'type': 'Date-E-1-1'}], 'type': 'SET'}, 'Credentials-E-2-10': {'members': [{'name': 'userName', 'type': 'VisibleString'}, {'name': 'password', 'type': 'VisibleString'}, {'name': 'accountNumber', 'type': 'INTEGER'}], 'type': 'SEQUENCE'}, 'CustomerAttribute-E-2-12-a': {'members': [{'name': 'name', 'tag': {'number': 0}, 'type': 'VisibleString'}, {'name': 'mailingAddress', 'tag': {'number': 1}, 'type': 'VisibleString'}, {'name': 'accountNumber', 'tag': {'number': 2}, 'type': 'INTEGER'}, {'name': 'balanceDue', 'tag': {'number': 3}, 'type': 'INTEGER'}], 'type': 'CHOICE'}, 'CustomerAttribute-E-2-12-b': {'members': [{'name': 'name', 'tag': {'kind': 'IMPLICIT', 'number': 0}, 'type': 'VisibleString'}, {'name': 'mailingAddress', 'tag': {'kind': 'IMPLICIT', 'number': 1}, 'type': 'VisibleString'}, {'name': 'accountNumber', 'tag': {'kind': 'IMPLICIT', 'number': 2}, 'type': 'INTEGER'}, {'name': 'balanceDue', 'tag': {'kind': 'IMPLICIT', 'number': 3}, 'type': 'INTEGER'}], 'type': 'CHOICE'}, 'CustomerRecord-E-2-12-a': {'members': [{'name': 'name', 'tag': {'number': 0}, 'type': 'VisibleString'}, {'name': 'mailingAddress', 'tag': {'number': 1}, 'type': 'VisibleString'}, {'name': 'accountNumber', 'tag': {'number': 2}, 'type': 'INTEGER'}, {'name': 'balanceDue', 'tag': {'number': 3}, 'type': 'INTEGER'}], 'type': 'SET'}, 'CustomerRecord-E-2-12-b': {'members': [{'name': 'name', 'tag': {'kind': 'IMPLICIT', 'number': 0}, 'type': 'VisibleString'}, {'name': 'mailingAddress', 'tag': {'kind': 'IMPLICIT', 'number': 1}, 'type': 'VisibleString'}, {'name': 'accountNumber', 'tag': {'kind': 'IMPLICIT', 'number': 2}, 'type': 'INTEGER'}, {'name': 'balanceDue', 'tag': {'kind': 'IMPLICIT', 'number': 3}, 'type': 'INTEGER'}], 'type': 'SET'}, 'D': {'type': 'NULL'}, 'D-19-5': {'type': 'ENUMERATED', 'values': [('a', 0), ('b', 1), None, ('c', 2)]}, 'D-19-6': {'type': 'ENUMERATED', 'values': [('a', 0), ('z', 25), None, ('d', 1)]}, 'Date-E-1-1': {'tag': {'class': 'APPLICATION', 'number': 3}, 'type': 'VisibleString'}, 'DayOfTheMonth-E-2-2': {'type': 'INTEGER'}, 'DayOfTheMonth-E-2-2-a': {'restricted-to': ['first', 'last'], 'type': 'INTEGER'}, 'DayOfTheMonth-E-2-2-b': {'restricted-to': [('first', 'last')], 'type': 'INTEGER'}, 'DayOfTheWeek-E-2-3': {'type': 'ENUMERATED', 'values': [('sunday', 0), ('monday', 1), ('tuesday', 2), ('wednesday', 3), ('thursday', 4), ('friday', 5), ('saturday', 6)]}, 'DaysOfTheWeek-E-2-5-a': {'size': [(0, 7)], 'type': 'BIT STRING'}, 'DaysOfTheWeek-E-2-5-b': {'size': [7], 'type': 'BIT STRING'}, 'E': {'type': 'NULL'}, 'Employed-E-2-1': {'type': 'BOOLEAN'}, 'EmployeeNumber-E-1-1': {'tag': {'class': 'APPLICATION', 'number': 2}, 'type': 'INTEGER'}, 'Envelope-E-4': {'members': [{'name': 'typeA', 'type': 'TypeA'}, {'name': 'typeB', 'optional': True, 'type': 'TypeB'}, {'name': 'typeC', 'optional': True, 'type': 'TypeC'}], 'type': 'SET'}, 'FileIdentifier-E-2-13-a': {'members': [{'name': 'relativeName', 'type': 'VisibleString'}, {'name': 'absoluteName', 'type': 'VisibleString'}, {'name': 'serialNumber', 'type': 'INTEGER'}], 'type': 'CHOICE'}, 'FileIdentifier-E-2-13-b': {'members': [{'name': 'relativeName', 'type': 'VisibleString'}, {'name': 'absoluteName', 'type': 'VisibleString'}, None, None], 'type': 'CHOICE'}, 'FileIdentifier-E-2-13-c': {'members': [{'name': 'relativeName', 'type': 'VisibleString'}, {'name': 'absoluteName', 'type': 'VisibleString'}, None, {'name': 'serialNumber', 'type': 'INTEGER'}, None], 'type': 'CHOICE'}, 'FileIdentifier-E-2-13-d': {'members': [{'name': 'relativeName', 'type': 'VisibleString'}, {'name': 'absoluteName', 'type': 'VisibleString'}, None, {'name': 'serialNumber', 'type': 'INTEGER'}, [{'name': 'vendorSpecific', 'type': 'VendorExt'}, {'name': 'unidentified', 'type': 'NULL'}], None], 'type': 'CHOICE'}, 'FileName-E-2-12': {'members': [{'name': 'directoryName', 'type': 'VisibleString'}, {'name': 'directoryRelativeFileName', 'type': 'VisibleString'}], 'tag': {'class': 'APPLICATION', 'number': 8}, 'type': 'SEQUENCE'}, 'First-half-E-4': {'restricted-to': ['First-quarter-E-4', 'Second-quarter-E-4'], 'type': 'Months-E-4'}, 'First-quarter-E-4': {'restricted-to': ['january', 'february', 'march'], 'type': 'Months-E-4'}, 'Fourth-quarter-E-4': {'restricted-to': ['october', 'november', 'december'], 'type': 'Months-E-4'}, 'G3FacsimilePage-E-2-5': {'type': 'BIT STRING'}, 'G4FacsimileImage-E-2-6': {'type': 'OCTET STRING'}, 'Greeting-E-2-13-a': {'members': [{'name': 'postCard', 'type': 'VisibleString'}, None, None], 'type': 'CHOICE'}, 'Greeting-E-2-13-b': {'members': [{'name': 'postCard', 'type': 'VisibleString'}, None, [{'name': 'audio', 'type': 'Audio'}, {'name': 'video', 'type': 'Video'}], None], 'type': 'CHOICE'}, 'Greeting-E-2-13-c': {'members': [{'name': 'postCard', 'type': 'VisibleString'}, {'name': 'recording', 'type': 'Voice-E-2-13'}], 'tag': {'class': 'APPLICATION', 'number': 12}, 'type': 'CHOICE'}, 'Keywords-E-2-11': {'element': {'type': 'VisibleString'}, 'type': 'SET OF'}, 'Keywords2-E-2-11': {'element': {'type': 'VisibleString'}, 'type': 'SET OF'}, 'MaritalStatus-E-2-3-a': {'type': 'ENUMERATED', 'values': [('single', 0), ('married', 1)]}, 'MaritalStatus-E-2-3-b': {'type': 'ENUMERATED', 'values': [('single', 0), ('married', 1), None, ('widowed', 2)]}, 'MaritalStatus-E-2-3-c': {'type': 'ENUMERATED', 'values': [('single', 0), ('married', 1), None, ('widowed', 2), ('divorced', 3)]}, 'Months-E-4': {'type': 'ENUMERATED', 'values': [('january', 1), ('february', 2), ('march', 3), ('april', 4), ('may', 5), ('june', 6), ('july', 7), ('august', 8), ('september', 9), ('october', 10), ('november', 11), ('december', 12)]}, 'Name-E-1-1': {'members': [{'name': 'givenName', 'type': 'VisibleString'}, {'name': 'initial', 'type': 'VisibleString'}, {'name': 'familyName', 'type': 'VisibleString'}], 'tag': {'class': 'APPLICATION', 'number': 1}, 'type': 'SEQUENCE'}, 'NamesOfMemberNations-E-2-10': {'element': {'type': 'VisibleString'}, 'type': 'SEQUENCE OF'}, 'NamesOfMemberNations2-E-2-10': {'element': {'type': 'VisibleString'}, 'type': 'SEQUENCE OF'}, 'NamesOfOfficers-E-2-10': {'members': [{'name': 'president', 'type': 'VisibleString'}, {'name': 'vicePresident', 'type': 'VisibleString'}, {'name': 'secretary', 'type': 'VisibleString'}], 'type': 'SEQUENCE'}, 'PDU-E-4': {'members': [{'name': 'alpha', 'type': 'INTEGER'}, {'name': 'beta', 'optional': True, 'type': 'IA5String'}, {'element': {'type': 'Parameter'}, 'name': 'gamma', 'type': 'SEQUENCE OF'}, {'name': 'delta', 'type': 'BOOLEAN'}], 'type': 'SET'}, 'PackedBCDString-E-2-8': {'type': 'CHARACTER STRING'}, 'Parameter': {'type': 'NULL'}, 'ParameterList-E-4': {'element': {'type': 'Parameter'}, 'size': [(1, 63)], 'type': 'SET OF'}, 'PatientIdentifier-E-2-9': {'members': [{'name': 'name', 'type': 'VisibleString'}, {'members': [{'name': 'room', 'type': 'INTEGER'}, {'name': 'outPatient', 'type': 'NULL'}], 'name': 'roomNumber', 'type': 'CHOICE'}], 'type': 'SEQUENCE'}, 'PersonalStatus-E-2-5': {'type': 'BIT STRING'}, 'PersonnelRecord-E-1-1': {'members': [{'name': 'name', 'type': 'Name-E-1-1'}, {'name': 'title', 'type': 'VisibleString'}, {'name': 'number', 'type': 'EmployeeNumber-E-1-1'}, {'name': 'dateOfHire', 'type': 'Date-E-1-1'}, {'name': 'nameOfSpouse', 'type': 'Name-E-1-1'}, {'default': [], 'element': {'type': 'ChildInformation-E-1-1'}, 'name': 'children', 'type': 'SEQUENCE OF'}], 'tag': {'class': 'APPLICATION', 'number': 0}, 'type': 'SET'}, 'Record-E-2-10-a': {'members': [{'name': 'userName', 'type': 'VisibleString'}, {'name': 'password', 'type': 'VisibleString'}, {'name': 'accountNumber', 'type': 'INTEGER'}, None, None], 'type': 'SEQUENCE'}, 'Record-E-2-10-b': {'members': [{'name': 'userName', 'type': 'VisibleString'}, {'name': 'password', 'type': 'VisibleString'}, {'name': 'accountNumber', 'type': 'INTEGER'}, None, [{'name': 'lastLoggedIn', 'optional': True, 'type': 'GeneralizedTime'}, {'name': 'minutesLastLoggedIn', 'type': 'INTEGER'}], None], 'type': 'SEQUENCE'}, 'Record-E-2-10-c': {'members': [{'name': 'userName', 'type': 'VisibleString'}, {'name': 'password', 'type': 'VisibleString'}, {'name': 'accountNumber', 'type': 'INTEGER'}, None, [{'name': 'lastLoggedIn', 'optional': True, 'type': 'GeneralizedTime'}, {'name': 'minutesLastLoggedIn', 'type': 'INTEGER'}], [{'name': 'certificate', 'type': 'Certificate'}, {'name': 'thumb', 'optional': True, 'type': 'ThumbPrint'}], None], 'type': 'SEQUENCE'}, 'Second-half-E-4': {'restricted-to': ['Third-quarter-E-4', 'Fourth-quarter-E-4'], 'type': 'Months-E-4'}, 'Second-quarter-E-4': {'restricted-to': ['april', 'may', 'june'], 'type': 'Months-E-4'}, 'SmallPrime-E-4-a': {'restricted-to': [2, 3, 5, 7, 11, 13, 17, 19, 23, 29], 'type': 'INTEGER'}, 'SmallPrime-E-4-b': {'restricted-to': [2, 3, None], 'type': 'INTEGER'}, 'SmallPrime-E-4-c': {'restricted-to': [2, 3, None, 5, 7, 11], 'type': 'INTEGER'}, 'SmallPrime-E-4-d': {'restricted-to': [2, 3, None, 5, 7, 11, 13, 17, 19], 'type': 'INTEGER'}, 'Surname-E-2-6': {'type': 'PrintableString'}, 'T-14-10': {'members': [{'name': 'a', 'type': 'BOOLEAN'}, {'element': {'type': 'INTEGER'}, 'name': 'b', 'type': 'SET OF'}], 'type': 'SEQUENCE'}, 'TestPDU-E-4': {'type': 'PDU-E-4'}, 'Text-block-E-4': {'element': {'type': 'VisibleString'}, 'type': 'SEQUENCE OF'}, 'Third-quarter-E-4': {'restricted-to': ['july', 'august', 'september'], 'type': 'Months-E-4'}, 'ThumbPrint': {'type': 'NULL'}, 'TouchToneString-E-4': {'type': 'IA5String'}, 'TypeA': {'type': 'INTEGER'}, 'TypeB': {'type': 'BIT STRING'}, 'TypeC': {'type': 'REAL'}, 'UserName-E-2-11-a': {'members': [{'name': 'personalName', 'tag': {'number': 0}, 'type': 'VisibleString'}, {'name': 'organizationName', 'tag': {'number': 1}, 'type': 'VisibleString'}, {'name': 'countryName', 'tag': {'number': 2}, 'type': 'VisibleString'}], 'type': 'SET'}, 'UserName-E-2-11-b': {'members': [{'name': 'personalName', 'tag': {'number': 0}, 'type': 'VisibleString'}, {'name': 'organizationName', 'optional': True, 'tag': {'number': 1}, 'type': 'VisibleString'}, {'name': 'countryName', 'optional': True, 'tag': {'number': 2}, 'type': 'VisibleString'}], 'type': 'SET'}, 'UserName-E-2-11-c': {'members': [{'name': 'personalName', 'type': 'VisibleString'}, {'name': 'organizationName', 'optional': True, 'type': 'VisibleString'}, {'name': 'countryName', 'optional': True, 'type': 'VisibleString'}, None, None], 'type': 'SET'}, 'UserName-E-2-11-d': {'members': [{'name': 'personalName', 'type': 'VisibleString'}, {'name': 'organizationName', 'optional': True, 'type': 'VisibleString'}, {'name': 'countryName', 'optional': True, 'type': 'VisibleString'}, None, [{'name': 'internetEmailAddress', 'type': 'VisibleString'}, {'name': 'faxNumber', 'optional': True, 'type': 'VisibleString'}], None], 'type': 'SET'}, 'UserName-E-2-11-e': {'members': [{'name': 'personalName', 'type': 'VisibleString'}, {'name': 'organizationName', 'optional': True, 'type': 'VisibleString'}, {'name': 'countryName', 'optional': True, 'type': 'VisibleString'}, None, [{'name': 'internetEmailAddress', 'type': 'VisibleString'}, {'name': 'faxNumber', 'optional': True, 'type': 'VisibleString'}], [{'name': 'phoneNumber', 'optional': True, 'type': 'VisibleString'}], None], 'type': 'SET'}, 'V-E-4': {'type': 'Z-E-4'}, 'VendorExt': {'type': 'OCTET STRING'}, 'Video': {'type': 'REAL'}, 'Voice-E-2-13': {'members': [{'name': 'english', 'type': 'OCTET STRING'}, {'name': 'swahili', 'type': 'OCTET STRING'}], 'type': 'CHOICE'}, 'W-E-4': {'type': 'Z-E-4'}, 'X-E-4': {'type': 'Z-E-4'}, 'Y-E-4': {'type': 'Z-E-4'}, 'Z-E-4': {'members': [{'name': 'a', 'type': 'A'}, {'name': 'b', 'type': 'B'}, {'name': 'c', 'type': 'C'}, {'name': 'd', 'type': 'D'}, {'name': 'e', 'type': 'E'}], 'type': 'CHOICE'}}, 'values': {'acmeCorp-E-2-10': {'type': 'NamesOfOfficers-E-2-10', 'value': '{'}, 'badgeNumber-E-2-12': {'type': 'AcmeBadgeNumber-E-2-12', 'value': 2345}, 'balance-E-2-2': {'type': 'CheckingAccountBalance-E-2-2', 'value': 0}, 'billClinton-E-2-5': {'type': 'PersonalStatus-E-2-5', 'value': ['married', 'employed', 'collegeGraduate']}, 'body1-E-2-5': {'type': 'G3FacsimilePage-E-2-5', 'value': '0b1101'}, 'body2-E-2-5': {'type': 'G3FacsimilePage-E-2-5', 'value': '0b1101000'}, 'dayOfTheMonth-E-2-2-c': {'type': 'DayOfTheMonth-E-2-2', 'value': 4}, 'file-E-2-13': {'type': 'FileIdentifier-E-2-13-a', 'value': 'serialNumber'}, 'fileId1-E-2-13-a': {'type': 'FileIdentifier-E-2-13-b', 'value': 'relativeName'}, 'fileId1-E-2-13-b': {'type': 'FileIdentifier-E-2-13-c', 'value': 'relativeName'}, 'fileId1-E-2-13-c': {'type': 'FileIdentifier-E-2-13-d', 'value': 'relativeName'}, 'fileId2-E-2-13-a': {'type': 'FileIdentifier-E-2-13-c', 'value': 'serialNumber'}, 'fileId2-E-2-13-b': {'type': 'FileIdentifier-E-2-13-d', 'value': 'serialNumber'}, 'fileId3-E-2-13-a': {'type': 'FileIdentifier-E-2-13-d', 'value': 'unidentified'}, 'firstDay-E-2-3': {'type': 'DayOfTheWeek-E-2-3', 'value': 'sunday'}, 'firstTwo-E-2-10': {'type': 'NamesOfMemberNations-E-2-10', 'value': '{'}, 'firstTwo2-E-2-10': {'type': 'NamesOfMemberNations2-E-2-10', 'value': '{'}, 'girth-E-2-4': {'type': 'App-X-Real-E-2-4', 'value': '{'}, 'greekCapitalLetterSigma-E-2-7': {'type': 'BMPString', 'value': '{'}, 'hillaryClinton-E-2-5': {'type': 'PersonalStatus-E-2-5', 'value': '0b110100'}, 'image-E-2-5': {'type': 'G3FacsimilePage-E-2-5', 'value': '0b100110100100001110110'}, 'image-E-2-6': {'type': 'G4FacsimileImage-E-2-6', 'value': '0x3FE2EBAD471005'}, 'infinity-E-2-7': {'type': 'UTF8String', 'value': '{'}, 'lastPatient-E-2-9': {'type': 'PatientIdentifier-E-2-9', 'value': '{'}, 'map1-E-2-5': {'type': 'BitField-E-2-5', 'value': '0b100110100100'}, 'map2-E-2-5': {'type': 'BitField-E-2-5', 'value': '0x9A4'}, 'myGreeting-E-2-13': {'type': 'Greeting-E-2-13-c', 'value': 'recording'}, 'pi-E-2-4-a': {'type': 'REAL', 'value': '{'}, 'pi-E-2-4-b': {'type': 'REAL', 'value': '3.141592653589793'}, 'president-E-2-6': {'type': 'Surname-E-2-6', 'value': 'Clinton'}, 'property-E-2-7': {'type': 'UTF8String', 'value': '{'}, 'rightwardsArrow-E-2-7': {'type': 'UTF8String', 'value': '{'}, 'someASN1Keywords-E-2-11': {'type': 'Keywords-E-2-11', 'value': '{'}, 'someASN1Keywords2-E-2-11': {'type': 'Keywords2-E-2-11', 'value': '{'}, 'sunnyDaysLastWeek1-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a', 'value': ['sunday', 'monday', 'wednesday']}, 'sunnyDaysLastWeek1-E-2-5-b': {'type': 'DaysOfTheWeek-E-2-5-b', 'value': ['sunday', 'monday', 'wednesday']}, 'sunnyDaysLastWeek2-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a', 'value': '0b1101'}, 'sunnyDaysLastWeek3-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a', 'value': '0b1101000'}, 'sunnyDaysLastWeek3-E-2-5-b': {'type': 'DaysOfTheWeek-E-2-5-b', 'value': '0b1101000'}, 'today-E-2-2': {'type': 'DayOfTheMonth-E-2-2', 'value': 'first'}, 'trailer-E-2-5': {'type': 'BIT STRING', 'value': '0x0123456789ABCDEF'}, 'unknown-E-2-2': {'type': 'DayOfTheMonth-E-2-2', 'value': 0}, 'user-E-2-11-a': {'type': 'UserName-E-2-11-a', 'value': '{'}, 'user-E-2-11-b': {'type': 'UserName-E-2-11-c', 'value': '{'}, 'user-E-2-11-c': {'type': 'UserName-E-2-11-d', 'value': '{'}, 'user-E-2-11-d': {'type': 'UserName-E-2-11-e', 'value': '{'}}}}
output_name = "test" config = { "_description": "Test configuration", "gpu": [0], # data "dataset": "Lsun_church", "data_path": "/home/yct/data/church_outdoor_train_lmdb/Lsun_church_unlabeled_64", "data_size": 2000, "use_image_generator": False, # model & training "model": "vanilla", "z_dim": 128, "gf_dim": 16, "df_dim": 16, "lr_g": 2e-4, "lr_d": 7e-4, "decay_rate": 0.99, "use_attention": True, "attn_dim_G": [32, 64], "attn_dim_D": [8, 4], "use_label": False, "batch_size": 64, "loss": "hinge_loss", "epoch": 10, "update_ratio": 1, # "num_sample": 16, "summary_step_freq": 100, "log_dir": "logs/{}".format(output_name), "ckpt_dir": "checkpoints/{}".format(output_name), "img_dir": "images/{}".format(output_name) }
output_name = 'test' config = {'_description': 'Test configuration', 'gpu': [0], 'dataset': 'Lsun_church', 'data_path': '/home/yct/data/church_outdoor_train_lmdb/Lsun_church_unlabeled_64', 'data_size': 2000, 'use_image_generator': False, 'model': 'vanilla', 'z_dim': 128, 'gf_dim': 16, 'df_dim': 16, 'lr_g': 0.0002, 'lr_d': 0.0007, 'decay_rate': 0.99, 'use_attention': True, 'attn_dim_G': [32, 64], 'attn_dim_D': [8, 4], 'use_label': False, 'batch_size': 64, 'loss': 'hinge_loss', 'epoch': 10, 'update_ratio': 1, 'num_sample': 16, 'summary_step_freq': 100, 'log_dir': 'logs/{}'.format(output_name), 'ckpt_dir': 'checkpoints/{}'.format(output_name), 'img_dir': 'images/{}'.format(output_name)}
#/usr/bin/python3 GPIO_NUM = 23 COLUMN_LEN = 16 COLUMN_GAP = 30 def read_file(): file = open("line") count = 0 while 1: for i in range(GPIO_NUM): count = count + 1 if count > GPIO_NUM * COLUMN_LEN: return line = file.readline() if not line: file.close() return line = line.strip() print(line) l[i].append('"' + line + '"') def write_file(): out = open("out" , "w") for subl in l: out.write("{") count = 0 for str in subl: spaceCount = 0 if len(str) < COLUMN_GAP: spaceCount = COLUMN_GAP - len(str) out.write(str + "," + spaceCount * " ") count = count + 1 if count % 3 == 0: count = 0 out.write("\n") out.write("},\n\n") out.close() l = [] for i in range(GPIO_NUM): l.append([]) read_file() write_file()
gpio_num = 23 column_len = 16 column_gap = 30 def read_file(): file = open('line') count = 0 while 1: for i in range(GPIO_NUM): count = count + 1 if count > GPIO_NUM * COLUMN_LEN: return line = file.readline() if not line: file.close() return line = line.strip() print(line) l[i].append('"' + line + '"') def write_file(): out = open('out', 'w') for subl in l: out.write('{') count = 0 for str in subl: space_count = 0 if len(str) < COLUMN_GAP: space_count = COLUMN_GAP - len(str) out.write(str + ',' + spaceCount * ' ') count = count + 1 if count % 3 == 0: count = 0 out.write('\n') out.write('},\n\n') out.close() l = [] for i in range(GPIO_NUM): l.append([]) read_file() write_file()
n, k = map(int, input().split()) a = list(sorted(map(int, input().split()), reverse=True)) s = set() for i in range(len(a)): if a[i] * k not in s: s.add(a[i]) print(len(s))
(n, k) = map(int, input().split()) a = list(sorted(map(int, input().split()), reverse=True)) s = set() for i in range(len(a)): if a[i] * k not in s: s.add(a[i]) print(len(s))
def smile(): return ":)" def frown(): return ":("
def smile(): return ':)' def frown(): return ':('
# coding=utf-8 DEBUG = True SITE_ID = 1 SECRET_KEY = 'blabla' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'db.sqlite3', } } INSTALLED_APPS = [ 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'south', 'contacts', 'contacts.tests' ] USE_I18N = True USE_L10N = True
debug = True site_id = 1 secret_key = 'blabla' databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'db.sqlite3'}} installed_apps = ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'south', 'contacts', 'contacts.tests'] use_i18_n = True use_l10_n = True
# pylint: disable=missing-docstring, invalid-name MY_DICTIONARY = {"key_one": 1, "key_two": 2, "key_three": 3} try: # [max-try-statements] value = MY_DICTIONARY["key_one"] value += 1 except KeyError: pass try: value = MY_DICTIONARY["key_one"] except KeyError: value = 0
my_dictionary = {'key_one': 1, 'key_two': 2, 'key_three': 3} try: value = MY_DICTIONARY['key_one'] value += 1 except KeyError: pass try: value = MY_DICTIONARY['key_one'] except KeyError: value = 0
# Jupyter Extension points def _jupyter_nbextension_paths(): return [ dict( section="notebook", src="static", # directory in the `nbextension/` namespace dest="imjoy_jupyter_extension", # _also_ in the `nbextension/` namespace require="imjoy_jupyter_extension/imjoy-rpc", ) ]
def _jupyter_nbextension_paths(): return [dict(section='notebook', src='static', dest='imjoy_jupyter_extension', require='imjoy_jupyter_extension/imjoy-rpc')]
COLOR_CANVAS_DARK = 'rgb(33,33,33)' COLOR_CANVAS_LIGHT = 'rgb(252, 252, 252)' COLOR_PLOT_TEXT_LIGHT = 'rgb(52, 49, 49)' COLOR_PLOT_TEXT_DARK = 'rgb(252, 252, 252)' COLOR_ZERO_LINE_LIGHT = "green" COLOR_ZERO_LINE_DARK = "limegreen" COLOR_BEAM = "red" COLOR_DETECTOR = "#D3D3D3" COLOR_PAD = "slateblue" COLOR_PATIENT = "#CE967C" COLOR_SOURCE = "#D3D3D3" COLOR_TABLE = "#D3D3D3" COLOR_SLIDER_BACKGROUND = "red" COLOR_SLIDER_BORDER_LIGHT = "rgb(252,252,252)" COLOR_SLIDER_BORDER_DARK = "rgb(45,45,45)" COLOR_SLIDER_TICK_LIGHT = "rgb(52, 49, 49)" COLOR_SLIDER_TICK_DARK = "white" COLOR_GRID_DARK = 'rgb(99,99,99)' COLOR_GRID_LIGHT = 'rgb(99,99,99)' COLOR_WIRE_FRAME_BEAM = 'red' COLOR_WIRE_FRAME_DETECTOR = 'darkslategray' COLOR_WIRE_FRAME_PAD = '#3f3f3f' COLOR_WIRE_FRAME_TABLE = '#3f3f3f' DATA_DS_IRP = "DSIRP" KEY_PARAM_MODE = 'mode' KEY_PARAM_RDSR_FILENAME = 'rdsr_filename' KEY_PARAM_ESTIMATE_K_TAB = 'estimate_k_tab' KEY_PARAM_K_TAB_VAL = 'k_tab_val' KEY_PARAM_PHANTOM_MODEL = 'model' KEY_PARAM_HUMAN_MESH = 'human_mesh' DIMENSION_PLANE_LENGTH = "plane_length" DIMENSION_PLANE_RESOLUTION = "plane_resolution" DIMENSION_PLANE_WIDTH = "plane_width" DIMENSION_CYLINDER_LENGTH = 'cylinder_length' DIMENSION_CYLINDER_RADII_A = 'cylinder_radii_a' DIMENSION_CYLINDER_RADII_B = 'cylinder_radii_b' DIMENSION_CYLINDER_RESOLUTION = 'cylinder_resolution' DIMENSION_TABLE_LENGTH = 'table_length' DIMENSION_TABLE_WIDTH = 'table_width' DIMENSION_TABLE_THICKNESS = 'table_thickness' DIMENSION_PAD_LENGTH = 'pad_length' DIMENSION_PAD_WIDTH = 'pad_width' DIMENSION_PAD_THICKNESS = 'pad_thickness' DIMENSION_UNIT_KEY = 'unit' DIMENSION_UNIT_CM = 'cm' KEY_RDSR_ACQUISITION_DATA = 'AcquisitionData' KEY_RDSR_COMMENT = 'Comment' KEY_RDSR_CONCEPT_CODE_SEQUENCE = 'ConceptCodeSequence' KEY_RDSR_CONTENT_SEQUENCE = 'ContentSequence' KEY_RDSR_DATE_TIME = 'DateTime' KEY_RDSR_DETECTORSIZE_MM = 'DetectorSize_mm' KEY_RDSR_EVENT_XRAY_DATA = 'Irradiation Event X-Ray Data' KEY_RDSR_II_DIAMETER_SRDATA = 'iiDiameter SRData' KEY_RDSR_MANUFACTURER = 'Manufacturer' KEY_RDSR_MANUFACTURER_MODEL_NAME = 'ManufacturerModelName' KEY_RDSR_MEASURED_VALUE_SEQUENCE = 'MeasuredValueSequence' KEY_RDSR_TEXT_VALUE = 'TextValue' KEY_RDSR_UID = 'UID' KEY_NORMALIZATION_DETECTOR_SIDE_LENGTH = 'detector_side_length' KEY_NORMALIZATION_FIELD_SIZE_MODE = 'field_size_mode' KEY_NORMALIZATION_MANUFACTURER = 'manufacturer' KEY_NORMALIZATION_MODELS = 'models' IRRADIATION_EVENT_PROCEDURE_KEY_BEAM = "Beam" IRRADIATION_EVENT_PROCEDURE_KEY_DETECTORS = "Detectors" IRRADIATION_EVENT_PROCEDURE_KEY_PAD = "Pad" IRRADIATION_EVENT_PROCEDURE_KEY_PATIENT = "Patient" IRRADIATION_EVENT_PROCEDURE_KEY_SOURCE = "Source" IRRADIATION_EVENT_PROCEDURE_KEY_TABLE = "Table" IRRADIATION_EVENT_PROCEDURE_KEY_WIRE_FRAME_BEAM = "WF Beam" IRRADIATION_EVENT_PROCEDURE_KEY_WIRE_FRAME_DETECTORS = "WF Detectors" IRRADIATION_EVENT_PROCEDURE_KEY_WIRE_FRAME_PAD = "WF Pad" IRRADIATION_EVENT_PROCEDURE_KEY_WIRE_FRAME_TABLE = "WF Table" IRRADIATION_EVENT_STEP_KEY_ARGUMENTS = "args" IRRADIATION_EVENT_STEP_KEY_LABEL = "label" IRRADIATION_EVENT_STEP_KEY_METHOD = "method" MAX_EVENT_FOR_PATIENT_INCLUSION_IN_PROCEDURE_KEY = \ 'max_events_for_patient_inclusion' MESH_NAME_PAD = "Support pad" MESH_OPACITY_BEAM = 0.4 MODE_CALCULATE_DOSE = "calculate_dose" MODE_PLOT_EVENT = "plot_event" MODE_PLOT_PROCEDURE = "plot_procedure" MODE_PLOT_SETUP = "plot_setup" MODE_PLOT_DOSEMAP = 'plot_dosemap' MODE_DARK_MODE = "dark_mode" MODE_INTERACTIVITY = 'interactivity' OUTPUT_KEY_CORRECTION_BACK_SCATTER = "k_bs" OUTPUT_KEY_CORRECTION_INVERSE_SQUARE_LAW = "k_isq" OUTPUT_KEY_CORRECTION_MEDIUM = "k_med" OUTPUT_KEY_CORRECTION_TABLE = "k_tab" OUTPUT_KEY_DOSE_MAP = "dose_map" OUTPUT_KEY_HITS = "hits" OUTPUT_KEY_KERMA = "kerma" PHANTOM_MESH_ADULT_MALE = "hudfrid" PHANTOM_MODEL_CYLINDER = "cylinder" PHANTOM_MODEL_HUMAN = "human" PHANTOM_MODEL_PAD = "pad" PHANTOM_MODEL_PLANE = "plane" PHANTOM_HUMAN_MESH_SPARSE_MODEL_ENDING = "_reduced_1000t" PHANTOM_MODEL_TABLE = "table" PLOT_AXIS_TITLE_X = "X - LON [cm]" PLOT_AXIS_TITLE_Y = "Y - VER [cm]" PLOT_AXIS_TITLE_Z = "Z - LAT [cm]" PLOT_FONT_FAMILY = 'Arial' PLOT_FONT_SIZE = 14 PLOT_HOVERLABEL_FONT_FAMILY = 'Arial' PLOT_HOVERLABEL_FONT_SIZE = 14 PLOT_TITLE_FONT_FAMILY = 'Arial' PLOT_TITLE_FONT_SIZE = 14 PLOT_EVENT_INDEX_KEY = 'plot_event_index' PLOT_SLIDER_BORDER_WIDTH = 3 PLOT_SLIDER_FONT_SIZE_CURRENT = 18 PLOT_SLIDER_FONT_SIZE_GENERAL = 14 PLOT_SLIDER_PADDING = dict(b=0, t=0, l=25, r=25) PLOT_SLIDER_PADDING_NOTEBOOK = dict(b=0, t=0, l=20, r=20) PLOT_WIREFRAME_LINE_WIDTH = 4 PLOT_DRAGMODE = 'orbit' PLOT_ASPECTMODE_SETUP_AND_EVENT = 'data' PLOT_ASPECTMODE_PLOT_DOSEMAP = 'data' PLOT_ASPECTMODE_PLOT_PROCEDURE = 'cube' PLOT_ORDER_STATIC = ['right', 'back', 'left', 'front'] PLOT_PROCEDURE_AXIS_RANGE_X = [-300, 300] PLOT_PROCEDURE_AXIS_RANGE_Y = [-300, 300] PLOT_PROCEDURE_AXIS_RANGE_Z = [-300, 300] # shift size of the entire image to the left to remove whitespace in plot PLOT_GROUND_SHIFT_X_STATIC = 50 # shift size of each of the four subplots to hide all but 1 colorscale PLOT_SHIFT_X_STATIC = [0*70, 1*70, 2*70, 3*70] # size of each static subplot PLOT_BASE_SIZE_STATIC = 297 PLOT_SOURCE_SIZE = 8 PLOT_FILE_TYPE_STATIC = '.png' PLOT_LIGHTNING_DIFFUSE = 0.5 PLOT_LIGHTNING_AMBIENT = 0.5 PLOT_SLIDER_TRANSITION = dict(duration=300, easing="quad-in-out") PLOT_ZERO_LINE_WIDTH = 5 PLOT_HEIGHT_NOTEBOOK = 800 PLOT_WIDTH_NOTEBOOK = None PLOT_HEIGHT = None PLOT_WIDTH = None PLOT_MARGIN_NOTEBOOK = dict(l=5, r=5, b=5, t=40) PLOT_MARGIN = dict(l=0, r=0, b=100, t=40) # plot camera angles for static dosemaps PLOT_EYE_BACK = dict(eye=dict(x=0, y=+2.5, z=0)) PLOT_EYE_FRONT = dict(eye=dict(x=0, y=-2.5, z=0)) PLOT_EYE_LEFT = dict(eye=dict(x=2.5, y=+1.5, z=0)) PLOT_EYE_RIGHT = dict(eye=dict(x=-2.5, y=+1.5, z=0)) OFFSET_LATERAL_KEY = 'd_lat' OFFSET_VERTICAL_KEY = 'd_ver' OFFSET_LONGITUDINAL_KEY = 'd_lon' RESOLUTION_SPARSE = "sparse" RESOLUTION_DENSE = "dense" TABULATED_FIELD_SIDE_LENGTHS_IN_CM = [5, 10, 20, 25, 35] # Offset needed to show plane phantom correctly VISUAL_OFFSET_PHANTOM_MODEL_PLANE = -0.01 MODE_NOTEBOOK_MODE = 'notebook_mode' PLOT_HEIGHT_KEY = 'height' PLOT_WIDTH_KEY = 'width' DOSEMAP_COLORSCALE_KEY = 'colorscale' # Available colorscales are documented here: # https://plotly.com/python/builtin-colorscales/ DOSEMAP_COLORSCALE = 'jet' # amp PATIENT_ORIENTATION_HEAD_FIRST_SUPINE = 'head_first_supine' PATIENT_ORIENTATION_FEET_FIRST_SUPINE = 'feet_first_supine'
color_canvas_dark = 'rgb(33,33,33)' color_canvas_light = 'rgb(252, 252, 252)' color_plot_text_light = 'rgb(52, 49, 49)' color_plot_text_dark = 'rgb(252, 252, 252)' color_zero_line_light = 'green' color_zero_line_dark = 'limegreen' color_beam = 'red' color_detector = '#D3D3D3' color_pad = 'slateblue' color_patient = '#CE967C' color_source = '#D3D3D3' color_table = '#D3D3D3' color_slider_background = 'red' color_slider_border_light = 'rgb(252,252,252)' color_slider_border_dark = 'rgb(45,45,45)' color_slider_tick_light = 'rgb(52, 49, 49)' color_slider_tick_dark = 'white' color_grid_dark = 'rgb(99,99,99)' color_grid_light = 'rgb(99,99,99)' color_wire_frame_beam = 'red' color_wire_frame_detector = 'darkslategray' color_wire_frame_pad = '#3f3f3f' color_wire_frame_table = '#3f3f3f' data_ds_irp = 'DSIRP' key_param_mode = 'mode' key_param_rdsr_filename = 'rdsr_filename' key_param_estimate_k_tab = 'estimate_k_tab' key_param_k_tab_val = 'k_tab_val' key_param_phantom_model = 'model' key_param_human_mesh = 'human_mesh' dimension_plane_length = 'plane_length' dimension_plane_resolution = 'plane_resolution' dimension_plane_width = 'plane_width' dimension_cylinder_length = 'cylinder_length' dimension_cylinder_radii_a = 'cylinder_radii_a' dimension_cylinder_radii_b = 'cylinder_radii_b' dimension_cylinder_resolution = 'cylinder_resolution' dimension_table_length = 'table_length' dimension_table_width = 'table_width' dimension_table_thickness = 'table_thickness' dimension_pad_length = 'pad_length' dimension_pad_width = 'pad_width' dimension_pad_thickness = 'pad_thickness' dimension_unit_key = 'unit' dimension_unit_cm = 'cm' key_rdsr_acquisition_data = 'AcquisitionData' key_rdsr_comment = 'Comment' key_rdsr_concept_code_sequence = 'ConceptCodeSequence' key_rdsr_content_sequence = 'ContentSequence' key_rdsr_date_time = 'DateTime' key_rdsr_detectorsize_mm = 'DetectorSize_mm' key_rdsr_event_xray_data = 'Irradiation Event X-Ray Data' key_rdsr_ii_diameter_srdata = 'iiDiameter SRData' key_rdsr_manufacturer = 'Manufacturer' key_rdsr_manufacturer_model_name = 'ManufacturerModelName' key_rdsr_measured_value_sequence = 'MeasuredValueSequence' key_rdsr_text_value = 'TextValue' key_rdsr_uid = 'UID' key_normalization_detector_side_length = 'detector_side_length' key_normalization_field_size_mode = 'field_size_mode' key_normalization_manufacturer = 'manufacturer' key_normalization_models = 'models' irradiation_event_procedure_key_beam = 'Beam' irradiation_event_procedure_key_detectors = 'Detectors' irradiation_event_procedure_key_pad = 'Pad' irradiation_event_procedure_key_patient = 'Patient' irradiation_event_procedure_key_source = 'Source' irradiation_event_procedure_key_table = 'Table' irradiation_event_procedure_key_wire_frame_beam = 'WF Beam' irradiation_event_procedure_key_wire_frame_detectors = 'WF Detectors' irradiation_event_procedure_key_wire_frame_pad = 'WF Pad' irradiation_event_procedure_key_wire_frame_table = 'WF Table' irradiation_event_step_key_arguments = 'args' irradiation_event_step_key_label = 'label' irradiation_event_step_key_method = 'method' max_event_for_patient_inclusion_in_procedure_key = 'max_events_for_patient_inclusion' mesh_name_pad = 'Support pad' mesh_opacity_beam = 0.4 mode_calculate_dose = 'calculate_dose' mode_plot_event = 'plot_event' mode_plot_procedure = 'plot_procedure' mode_plot_setup = 'plot_setup' mode_plot_dosemap = 'plot_dosemap' mode_dark_mode = 'dark_mode' mode_interactivity = 'interactivity' output_key_correction_back_scatter = 'k_bs' output_key_correction_inverse_square_law = 'k_isq' output_key_correction_medium = 'k_med' output_key_correction_table = 'k_tab' output_key_dose_map = 'dose_map' output_key_hits = 'hits' output_key_kerma = 'kerma' phantom_mesh_adult_male = 'hudfrid' phantom_model_cylinder = 'cylinder' phantom_model_human = 'human' phantom_model_pad = 'pad' phantom_model_plane = 'plane' phantom_human_mesh_sparse_model_ending = '_reduced_1000t' phantom_model_table = 'table' plot_axis_title_x = 'X - LON [cm]' plot_axis_title_y = 'Y - VER [cm]' plot_axis_title_z = 'Z - LAT [cm]' plot_font_family = 'Arial' plot_font_size = 14 plot_hoverlabel_font_family = 'Arial' plot_hoverlabel_font_size = 14 plot_title_font_family = 'Arial' plot_title_font_size = 14 plot_event_index_key = 'plot_event_index' plot_slider_border_width = 3 plot_slider_font_size_current = 18 plot_slider_font_size_general = 14 plot_slider_padding = dict(b=0, t=0, l=25, r=25) plot_slider_padding_notebook = dict(b=0, t=0, l=20, r=20) plot_wireframe_line_width = 4 plot_dragmode = 'orbit' plot_aspectmode_setup_and_event = 'data' plot_aspectmode_plot_dosemap = 'data' plot_aspectmode_plot_procedure = 'cube' plot_order_static = ['right', 'back', 'left', 'front'] plot_procedure_axis_range_x = [-300, 300] plot_procedure_axis_range_y = [-300, 300] plot_procedure_axis_range_z = [-300, 300] plot_ground_shift_x_static = 50 plot_shift_x_static = [0 * 70, 1 * 70, 2 * 70, 3 * 70] plot_base_size_static = 297 plot_source_size = 8 plot_file_type_static = '.png' plot_lightning_diffuse = 0.5 plot_lightning_ambient = 0.5 plot_slider_transition = dict(duration=300, easing='quad-in-out') plot_zero_line_width = 5 plot_height_notebook = 800 plot_width_notebook = None plot_height = None plot_width = None plot_margin_notebook = dict(l=5, r=5, b=5, t=40) plot_margin = dict(l=0, r=0, b=100, t=40) plot_eye_back = dict(eye=dict(x=0, y=+2.5, z=0)) plot_eye_front = dict(eye=dict(x=0, y=-2.5, z=0)) plot_eye_left = dict(eye=dict(x=2.5, y=+1.5, z=0)) plot_eye_right = dict(eye=dict(x=-2.5, y=+1.5, z=0)) offset_lateral_key = 'd_lat' offset_vertical_key = 'd_ver' offset_longitudinal_key = 'd_lon' resolution_sparse = 'sparse' resolution_dense = 'dense' tabulated_field_side_lengths_in_cm = [5, 10, 20, 25, 35] visual_offset_phantom_model_plane = -0.01 mode_notebook_mode = 'notebook_mode' plot_height_key = 'height' plot_width_key = 'width' dosemap_colorscale_key = 'colorscale' dosemap_colorscale = 'jet' patient_orientation_head_first_supine = 'head_first_supine' patient_orientation_feet_first_supine = 'feet_first_supine'
#3) Largest prime factor #The prime factors of 13195 are 5, 7, 13 and 29. #What is the largest prime factor of the number 600851475143 ? # Solution def primes_naive(n): if n < 2: return [] sieve = [True] * n for i in range(3,int(n**0.5)+1,2): if sieve[i]: sieve[i*i::2*i]=[False]*((n-i*i-1)//(2*i)+1) return [2] + [i for i in range(3,n,2) if sieve[i]] def primes(n): sieve = [True] * (n//2) for i in range(3,int(n**0.5)+1,2): if sieve[i//2]: sieve[i*i//2::i] = [False] * ((n-i*i-1)//(2*i)+1) return [2] + [2*i+1 for i in range(1, n//2) if sieve[i]] def prod(x): product = 1 for i in x: product *= i return product def prime_factors(n, m): nums = [x for x in primes(m) if n % x == 0] if prod(nums) == n: return nums else: return [] max(prime_factors(600851475143, 10000))
def primes_naive(n): if n < 2: return [] sieve = [True] * n for i in range(3, int(n ** 0.5) + 1, 2): if sieve[i]: sieve[i * i::2 * i] = [False] * ((n - i * i - 1) // (2 * i) + 1) return [2] + [i for i in range(3, n, 2) if sieve[i]] def primes(n): sieve = [True] * (n // 2) for i in range(3, int(n ** 0.5) + 1, 2): if sieve[i // 2]: sieve[i * i // 2::i] = [False] * ((n - i * i - 1) // (2 * i) + 1) return [2] + [2 * i + 1 for i in range(1, n // 2) if sieve[i]] def prod(x): product = 1 for i in x: product *= i return product def prime_factors(n, m): nums = [x for x in primes(m) if n % x == 0] if prod(nums) == n: return nums else: return [] max(prime_factors(600851475143, 10000))
f = open("twentyfive.txt", "r") lines = [x.strip() for x in f.readlines()] width = len(lines[0]) height = len(lines) left = {} down = {} for y in range(len(lines)): left[y] = [] down[y] = [] for x in range(len(lines[y])): if lines[y][x] == ">": left[y].append(x) elif lines[y][x] == "v": down[y].append(x) moved = 1 step = 0 while moved != 0: step += 1 moved = 0 new_left = {} new_down = {} for y in left: new_left[y] = [] for x in left[y]: nx = x + 1 if x != (width - 1) else 0 if nx in left[y] or nx in down[y]: new_left[y].append(x) else: moved += 1 new_left[y].append(nx) left = new_left for y in down: new_down[y] = [] for y in down: for x in down[y]: ny = y + 1 if y != (height - 1) else 0 if x in left[ny] or x in down[ny]: new_down[y].append(x) else: moved += 1 new_down[ny].append(x) down = new_down print(step)
f = open('twentyfive.txt', 'r') lines = [x.strip() for x in f.readlines()] width = len(lines[0]) height = len(lines) left = {} down = {} for y in range(len(lines)): left[y] = [] down[y] = [] for x in range(len(lines[y])): if lines[y][x] == '>': left[y].append(x) elif lines[y][x] == 'v': down[y].append(x) moved = 1 step = 0 while moved != 0: step += 1 moved = 0 new_left = {} new_down = {} for y in left: new_left[y] = [] for x in left[y]: nx = x + 1 if x != width - 1 else 0 if nx in left[y] or nx in down[y]: new_left[y].append(x) else: moved += 1 new_left[y].append(nx) left = new_left for y in down: new_down[y] = [] for y in down: for x in down[y]: ny = y + 1 if y != height - 1 else 0 if x in left[ny] or x in down[ny]: new_down[y].append(x) else: moved += 1 new_down[ny].append(x) down = new_down print(step)
class dotPolymeshValidateInvalidInfo_t(object): # no doc ClientId=None nInvalidFaces=None
class Dotpolymeshvalidateinvalidinfo_T(object): client_id = None n_invalid_faces = None
def parse_svg(txt): txt = txt.split('<path d="')[-1] txt = txt.split('z"/>')[0] txt = txt.replace('\n', ' ') txt = txt.split(' ') # Take out the initial M x y instruction txt = txt[2:] # Take out the initial c instruction txt[0] = txt[0][1:] txt = [int(num) for num in txt] curves = [] cur_pos = (0, 0) for i in range(0, len(txt) - 2, 6): # Create a new curve "c" c = [] c.append(cur_pos) for a in range(3): # Add the position relative to the current one c.append((cur_pos[0] + txt[i + a * 2], cur_pos[1] + txt[i + a * 2 + 1])) # Update the current position cur_pos = c[-1] curves.append(c) return curves[:-1] def bezier_x(c, t): return (1-t)**3 * c[0][0] + 3*(1-t)**2*t * c[1][0] + 3 * (1-t) * t ** 2 * c[2][0] + t ** 3 * c[3][0] def bezier_y(c, t): return (1-t)**3 * c[0][1] + 3*(1-t)**2*t * c[1][1] + 3 * (1-t) * t ** 2 * c[2][1] + t ** 3 * c[3][1] def bezier_slope(c, t): xDeriv = 3 * (1-t) ** 2 * (c[1][0] - c[0][0]) + 6 * (1-t) * t*(c[2][0]-c[1][0]) + 3 * t **2 * (c[3][0]-c[2][0]) yDeriv = 3 * (1-t) ** 2 * (c[1][1] - c[0][1]) + 6 * (1-t) * t*(c[2][1]-c[1][1]) + 3 * t **2 * (c[3][1]-c[2][1]) res = yDeriv/xDeriv # Unless it's an asymptote, you don't want giant spikes in the middle of your graph ... if max(res) - min(res) > 20: raise ValueError return res
def parse_svg(txt): txt = txt.split('<path d="')[-1] txt = txt.split('z"/>')[0] txt = txt.replace('\n', ' ') txt = txt.split(' ') txt = txt[2:] txt[0] = txt[0][1:] txt = [int(num) for num in txt] curves = [] cur_pos = (0, 0) for i in range(0, len(txt) - 2, 6): c = [] c.append(cur_pos) for a in range(3): c.append((cur_pos[0] + txt[i + a * 2], cur_pos[1] + txt[i + a * 2 + 1])) cur_pos = c[-1] curves.append(c) return curves[:-1] def bezier_x(c, t): return (1 - t) ** 3 * c[0][0] + 3 * (1 - t) ** 2 * t * c[1][0] + 3 * (1 - t) * t ** 2 * c[2][0] + t ** 3 * c[3][0] def bezier_y(c, t): return (1 - t) ** 3 * c[0][1] + 3 * (1 - t) ** 2 * t * c[1][1] + 3 * (1 - t) * t ** 2 * c[2][1] + t ** 3 * c[3][1] def bezier_slope(c, t): x_deriv = 3 * (1 - t) ** 2 * (c[1][0] - c[0][0]) + 6 * (1 - t) * t * (c[2][0] - c[1][0]) + 3 * t ** 2 * (c[3][0] - c[2][0]) y_deriv = 3 * (1 - t) ** 2 * (c[1][1] - c[0][1]) + 6 * (1 - t) * t * (c[2][1] - c[1][1]) + 3 * t ** 2 * (c[3][1] - c[2][1]) res = yDeriv / xDeriv if max(res) - min(res) > 20: raise ValueError return res
class Solution: def maxAreaOfIsland(self, grid: List[List[int]]) -> int: seen = set() # visited cells here res = 0 for r, row in enumerate(grid): for c, val in enumerate(row): # val is basically grid[r, c] if val and (r,c) not in seen: # if val is 1 and not visited already # We do the iterative DFS here. stack = [(r,c)] currArea = 0 while stack: r0, c0 = stack.pop() if (r0, c0) in seen: continue currArea += 1 for nr, nc in ((r0, c0-1), (r0-1, c0), (r0, c0+1), (r0+1, c0)): if (0<=nr<len(grid) and 0<=nc<len(row)): # Check boundary conditions if grid[nr][nc] and (nr, nc) not in seen: # check if val == 1 and not visited stack.append((nr, nc)) seen.add((r0, c0)) res = max(res, currArea) return res
class Solution: def max_area_of_island(self, grid: List[List[int]]) -> int: seen = set() res = 0 for (r, row) in enumerate(grid): for (c, val) in enumerate(row): if val and (r, c) not in seen: stack = [(r, c)] curr_area = 0 while stack: (r0, c0) = stack.pop() if (r0, c0) in seen: continue curr_area += 1 for (nr, nc) in ((r0, c0 - 1), (r0 - 1, c0), (r0, c0 + 1), (r0 + 1, c0)): if 0 <= nr < len(grid) and 0 <= nc < len(row): if grid[nr][nc] and (nr, nc) not in seen: stack.append((nr, nc)) seen.add((r0, c0)) res = max(res, currArea) return res
# -*- coding: utf-8 -*- ''' Generate baseline proxy minion grains ''' __proxyenabled__ = ['rest_sample'] __virtualname__ = 'rest_sample' def __virtual__(): if 'proxy' not in __opts__: return False else: return __virtualname__ def kernel(): return {'kernel': 'proxy'} def os(): return {'os': 'proxy'} def location(): return {'location': 'In this darn virtual machine. Let me out!'} def os_family(): return {'os_family': 'proxy'} def os_data(): return {'os_data': 'funkyHttp release 1.0.a.4.g'}
""" Generate baseline proxy minion grains """ __proxyenabled__ = ['rest_sample'] __virtualname__ = 'rest_sample' def __virtual__(): if 'proxy' not in __opts__: return False else: return __virtualname__ def kernel(): return {'kernel': 'proxy'} def os(): return {'os': 'proxy'} def location(): return {'location': 'In this darn virtual machine. Let me out!'} def os_family(): return {'os_family': 'proxy'} def os_data(): return {'os_data': 'funkyHttp release 1.0.a.4.g'}
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Tests that custom auth works & is not impaired by CORS', 'category': 'Hidden', 'data': [], }
{'name': 'Tests that custom auth works & is not impaired by CORS', 'category': 'Hidden', 'data': []}
#String unpack example testString = '0xL08$#$john18:jcTeam01_@#@_https://docs.google.com/spreadsheetExampleUrl' commandData, data = testString.split('_@#@_') print(commandData) print(data) command, cData = commandData.split('$#$') print(command) print(cData) username, fileName = cData.split(':') print(username) print(fileName)
test_string = '0xL08$#$john18:jcTeam01_@#@_https://docs.google.com/spreadsheetExampleUrl' (command_data, data) = testString.split('_@#@_') print(commandData) print(data) (command, c_data) = commandData.split('$#$') print(command) print(cData) (username, file_name) = cData.split(':') print(username) print(fileName)
def canConstruct(target, word_bank): tab = [False for _ in range(len(target)+1)] # seed tab[0] = True # creating an empty string is always possible for i in range(len(target)+1): if tab[i] is True: for word in word_bank: # If the word matches the characters starting at position i if target[i:].startswith(word): tab[i+len(word)] = True return tab[-1] print(canConstruct("abcdef", ["ab","abc","cd","def","abcd"])) print(canConstruct("skateboard", ["bo","rd","ate","t","ska","sk","boar"])) print(canConstruct("enterapotentpot",["a","p","ent","enter","ot","o","t"])) print(canConstruct("eeeeeeeeeeeeeeeeeeeeeeeeeef",[ "e", "ee", "eee", "eeee", "eeeee", "eeeeee"]))
def can_construct(target, word_bank): tab = [False for _ in range(len(target) + 1)] tab[0] = True for i in range(len(target) + 1): if tab[i] is True: for word in word_bank: if target[i:].startswith(word): tab[i + len(word)] = True return tab[-1] print(can_construct('abcdef', ['ab', 'abc', 'cd', 'def', 'abcd'])) print(can_construct('skateboard', ['bo', 'rd', 'ate', 't', 'ska', 'sk', 'boar'])) print(can_construct('enterapotentpot', ['a', 'p', 'ent', 'enter', 'ot', 'o', 't'])) print(can_construct('eeeeeeeeeeeeeeeeeeeeeeeeeef', ['e', 'ee', 'eee', 'eeee', 'eeeee', 'eeeeee']))
#The urllib module has a function called urljoin which might be able to improve how I put together these urls. DefaultBaseUrl = "https://api.idfy.io" DefaultOAuthBaseUrl = DefaultBaseUrl #Could this lead to problems where the DefaultOAuthBaseUrl resets unexpectedly? TestBaseUrl = "http://localhost:5000" #testing only OAuthTokens = "/oauth/connect/token" #Uses OAuthBaseUrl as prefix Signature = "/signature" SignatureDocuments = Signature + "/documents" Notification = "/notification" Identification = "/identification" IdentificationSession = Identification + "/session" IdentificationSessionStatus = IdentificationSession + "/status" InvalidateSession = IdentificationSession + "/invalidate" CreateBankIdMobileSession = Identification + "/no/bankid/mobile" Log = Identification + "/log" RetrieveLogEntry = Log + "/requestId" ListLogEntries = Log + "/filter" Merchant = "/merchant" MerchantSignature = Merchant + "/signature" Jwt = "/jwt" Validation = "/validation" ValidationBankid = Validation + "/no/bankid" Admin = "/admin" Account = Admin + "/account" Dealer = Admin + "/dealer" Oauth = Admin + "/oauthclient" Openid = Admin + "/openid" Template = Admin + "/template" TemplateDefaults = Template + "/defaults" Preview = Template + "/preview"
default_base_url = 'https://api.idfy.io' default_o_auth_base_url = DefaultBaseUrl test_base_url = 'http://localhost:5000' o_auth_tokens = '/oauth/connect/token' signature = '/signature' signature_documents = Signature + '/documents' notification = '/notification' identification = '/identification' identification_session = Identification + '/session' identification_session_status = IdentificationSession + '/status' invalidate_session = IdentificationSession + '/invalidate' create_bank_id_mobile_session = Identification + '/no/bankid/mobile' log = Identification + '/log' retrieve_log_entry = Log + '/requestId' list_log_entries = Log + '/filter' merchant = '/merchant' merchant_signature = Merchant + '/signature' jwt = '/jwt' validation = '/validation' validation_bankid = Validation + '/no/bankid' admin = '/admin' account = Admin + '/account' dealer = Admin + '/dealer' oauth = Admin + '/oauthclient' openid = Admin + '/openid' template = Admin + '/template' template_defaults = Template + '/defaults' preview = Template + '/preview'
# APIs for Windows 32-bit user32 library. # Format: retval, rettype, callconv, exactname, arglist(type, name) # arglist type is one of ['int', 'void *'] # arglist name is one of [None, 'funcptr', 'obj', 'ptr'] api_defs = { 'user32.main_entry':( 'int', None, 'stdcall', 'user32.main_entry', (('int', None), ('int', None), ('int', None)) ), 'user32.activatekeyboardlayout':( 'int', None, 'stdcall', 'user32.ActivateKeyboardLayout', (('int', None), ('int', None)) ), 'user32.adjustwindowrect':( 'int', None, 'stdcall', 'user32.AdjustWindowRect', (('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.adjustwindowrectex':( 'int', None, 'stdcall', 'user32.AdjustWindowRectEx', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ), 'user32.alignrects':( 'int', None, 'stdcall', 'user32.AlignRects', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ), 'user32.allowforegroundactivation':( 'int', None, 'cdecl', 'user32.AllowForegroundActivation', () ), 'user32.allowsetforegroundwindow':( 'int', None, 'stdcall', 'user32.AllowSetForegroundWindow', (('int', None),) ), 'user32.animatewindow':( 'int', None, 'stdcall', 'user32.AnimateWindow', ( ('int', None), ('int', None)) ), 'user32.anypopup':( 'int', None, 'cdecl', 'user32.AnyPopup', () ), 'user32.appendmenua':( 'int', None, 'stdcall', 'user32.AppendMenuA', ( ('int', None), ('int', None), ('int', None)) ), 'user32.appendmenuw':( 'int', None, 'stdcall', 'user32.AppendMenuW', ( ('int', None), ('int', None), ('int', None)) ), 'user32.arrangeiconicwindows':( 'int', None, 'stdcall', 'user32.ArrangeIconicWindows', (('int', None),) ), 'user32.attachthreadinput':( 'int', None, 'stdcall', 'user32.AttachThreadInput', (('int', None), ('int', None), ('int', None)) ), 'user32.begindeferwindowpos':( 'int', None, 'stdcall', 'user32.BeginDeferWindowPos', (('int', None),) ), 'user32.beginpaint':( 'int', None, 'stdcall', 'user32.BeginPaint', (('int', None), ('void *', 'ptr')) ), 'user32.blockinput':( 'int', None, 'stdcall', 'user32.BlockInput', (('int', None),) ), 'user32.bringwindowtotop':( 'int', None, 'stdcall', 'user32.BringWindowToTop', (('int', None),) ), 'user32.broadcastsystemmessage':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessage', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.broadcastsystemmessagea':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.broadcastsystemmessageexa':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.broadcastsystemmessageexw':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.broadcastsystemmessagew':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.buildreasonarray':( 'int', None, 'stdcall', 'user32.BuildReasonArray', (('int', None), ('int', None), ('int', None)) ), 'user32.calcmenubar':( 'int', None, 'stdcall', 'user32.CalcMenuBar', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.callmsgfilter':( 'int', None, 'stdcall', 'user32.CallMsgFilter', (('int', None), ('int', None)) ), 'user32.callmsgfiltera':( 'int', None, 'stdcall', 'user32.CallMsgFilterA', (('int', None), ('int', None)) ), 'user32.callmsgfilterw':( 'int', None, 'stdcall', 'user32.CallMsgFilterW', (('void *', 'ptr'), ('int', None)) ), 'user32.callnexthookex':( 'int', None, 'stdcall', 'user32.CallNextHookEx', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.callwindowproca':( 'int', None, 'stdcall', 'user32.CallWindowProcA', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ), 'user32.callwindowprocw':( 'int', None, 'stdcall', 'user32.CallWindowProcW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ), 'user32.cascadechildwindows':( 'int', None, 'stdcall', 'user32.CascadeChildWindows', ( ('int', None),) ), 'user32.cascadewindows':( 'int', None, 'stdcall', 'user32.CascadeWindows', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.changeclipboardchain':( 'int', None, 'stdcall', 'user32.ChangeClipboardChain', (('int', None), ('int', None)) ), 'user32.changedisplaysettingsa':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsA', (('int', None), ('int', None)) ), 'user32.changedisplaysettingsexa':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.changedisplaysettingsexw':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.changedisplaysettingsw':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsW', (('int', None), ('int', None)) ), 'user32.changemenua':( 'int', None, 'stdcall', 'user32.ChangeMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.changemenuw':( 'int', None, 'stdcall', 'user32.ChangeMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.charlowera':( 'int', None, 'stdcall', 'user32.CharLowerA', (('int', None),) ), 'user32.charlowerbuffa':( 'int', None, 'stdcall', 'user32.CharLowerBuffA', (('int', None), ('int', None)) ), 'user32.charlowerbuffw':( 'int', None, 'stdcall', 'user32.CharLowerBuffW', (('void *', 'ptr'), ('int', None)) ), 'user32.charlowerw':( 'int', None, 'stdcall', 'user32.CharLowerW', (('void *', 'ptr'),) ), 'user32.charnexta':( 'int', None, 'stdcall', 'user32.CharNextA', (('int', None),) ), 'user32.charnextexa':( 'int', None, 'stdcall', 'user32.CharNextExA', (('int', None), ('int', None), ('int', None)) ), 'user32.charnextw':( 'int', None, 'stdcall', 'user32.CharNextW', (('int', None),) ), 'user32.charpreva':( 'int', None, 'stdcall', 'user32.CharPrevA', (('int', None), ('int', None)) ), 'user32.charprevexa':( 'int', None, 'stdcall', 'user32.CharPrevExA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.charprevw':( 'int', None, 'stdcall', 'user32.CharPrevW', (('int', None), ('int', None)) ), 'user32.chartooema':( 'int', None, 'stdcall', 'user32.CharToOemA', (('int', None), ('int', None)) ), 'user32.chartooembuffa':( 'int', None, 'stdcall', 'user32.CharToOemBuffA', (('int', None), ('int', None), ('int', None)) ), 'user32.chartooembuffw':( 'int', None, 'stdcall', 'user32.CharToOemBuffW', (('int', None), ('int', None), ('int', None)) ), 'user32.chartooemw':( 'int', None, 'stdcall', 'user32.CharToOemW', (('int', None), ('int', None)) ), 'user32.charuppera':( 'int', None, 'stdcall', 'user32.CharUpperA', (('int', None),) ), 'user32.charupperbuffa':( 'int', None, 'stdcall', 'user32.CharUpperBuffA', (('int', None), ('int', None)) ), 'user32.charupperbuffw':( 'int', None, 'stdcall', 'user32.CharUpperBuffW', (('void *', 'ptr'), ('int', None)) ), 'user32.charupperw':( 'int', None, 'stdcall', 'user32.CharUpperW', (('void *', 'ptr'),) ), 'user32.checkdlgbutton':( 'int', None, 'stdcall', 'user32.CheckDlgButton', ( ('int', None), ('int', None)) ), 'user32.checkmenuitem':( 'int', None, 'stdcall', 'user32.CheckMenuItem', ( ('int', None), ('int', None)) ), 'user32.checkmenuradioitem':( 'int', None, 'stdcall', 'user32.CheckMenuRadioItem', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.checkradiobutton':( 'int', None, 'stdcall', 'user32.CheckRadioButton', ( ('int', None), ('int', None), ('int', None)) ), 'user32.childwindowfrompoint':( 'int', None, 'stdcall', 'user32.ChildWindowFromPoint', ( ('int', None), ('int', None)) ), 'user32.childwindowfrompointex':( 'int', None, 'stdcall', 'user32.ChildWindowFromPointEx', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.cliimmsethotkey':( 'int', None, 'stdcall', 'user32.CliImmSetHotKey', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.clientthreadsetup':( 'int', None, 'cdecl', 'user32.ClientThreadSetup', () ), 'user32.clienttoscreen':( 'int', None, 'stdcall', 'user32.ClientToScreen', ( ('void *', 'ptr'),) ), 'user32.clipcursor':( 'int', None, 'stdcall', 'user32.ClipCursor', (('int', None),) ), 'user32.closeclipboard':( 'int', None, 'cdecl', 'user32.CloseClipboard', () ), 'user32.closedesktop':( 'int', None, 'stdcall', 'user32.CloseDesktop', (('int', None),) ), 'user32.closewindow':( 'int', None, 'stdcall', 'user32.CloseWindow', () ), 'user32.closewindowstation':( 'int', None, 'stdcall', 'user32.CloseWindowStation', (('int', None),) ), 'user32.copyacceleratortablea':( 'int', None, 'stdcall', 'user32.CopyAcceleratorTableA', (('int', None), ('int', None), ('int', None)) ), 'user32.copyacceleratortablew':( 'int', None, 'stdcall', 'user32.CopyAcceleratorTableW', (('int', None), ('int', None), ('int', None)) ), 'user32.copyicon':( 'int', None, 'stdcall', 'user32.CopyIcon', (('int', None),) ), 'user32.copyimage':( 'int', None, 'stdcall', 'user32.CopyImage', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.copyrect':( 'int', None, 'stdcall', 'user32.CopyRect', (('int', None), ('int', None)) ), 'user32.countclipboardformats':( 'int', None, 'cdecl', 'user32.CountClipboardFormats', () ), 'user32.createacceleratortablea':( 'int', None, 'stdcall', 'user32.CreateAcceleratorTableA', (('int', None), ('int', None)) ), 'user32.createacceleratortablew':( 'int', None, 'stdcall', 'user32.CreateAcceleratorTableW', (('int', None), ('int', None)) ), 'user32.createcaret':( 'int', None, 'stdcall', 'user32.CreateCaret', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.createcursor':( 'int', None, 'stdcall', 'user32.CreateCursor', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.createdesktopa':( 'int', None, 'stdcall', 'user32.CreateDesktopA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.createdesktopw':( 'int', None, 'stdcall', 'user32.CreateDesktopW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.createdialogindirectparama':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.createdialogindirectparamaorw':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamAorW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'), ('int', None)) ), 'user32.createdialogindirectparamw':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.createdialogparama':( 'int', None, 'stdcall', 'user32.CreateDialogParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.createdialogparamw':( 'int', None, 'stdcall', 'user32.CreateDialogParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.createicon':( 'int', None, 'stdcall', 'user32.CreateIcon', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.createiconfromresource':( 'int', None, 'stdcall', 'user32.CreateIconFromResource', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.createiconfromresourceex':( 'int', None, 'stdcall', 'user32.CreateIconFromResourceEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.createiconindirect':( 'int', None, 'stdcall', 'user32.CreateIconIndirect', (('void *', 'ptr'),) ), 'user32.createmdiwindowa':( 'int', None, 'stdcall', 'user32.CreateMDIWindowA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None)) ), 'user32.createmdiwindoww':( 'int', None, 'stdcall', 'user32.CreateMDIWindowW', (('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None)) ), 'user32.createmenu':( 'int', None, 'cdecl', 'user32.CreateMenu', () ), 'user32.createpopupmenu':( 'int', None, 'cdecl', 'user32.CreatePopupMenu', () ), 'user32.createsystemthreads':( 'int', None, 'stdcall', 'user32.CreateSystemThreads', (('int', None), ('int', None)) ), 'user32.createwindowexa':( 'int', None, 'stdcall', 'user32.CreateWindowExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ), 'user32.createwindowexw':( 'int', None, 'stdcall', 'user32.CreateWindowExW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ), 'user32.createwindowstationa':( 'int', None, 'stdcall', 'user32.CreateWindowStationA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.createwindowstationw':( 'int', None, 'stdcall', 'user32.CreateWindowStationW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.csrbroadcastsystemmessageexw':( 'int', None, 'stdcall', 'user32.CsrBroadcastSystemMessageExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ctxinituser32':( 'int', None, 'cdecl', 'user32.CtxInitUser32', () ), 'user32.ddeabandontransaction':( 'int', None, 'stdcall', 'user32.DdeAbandonTransaction', (('int', None), ('int', None), ('int', None)) ), 'user32.ddeaccessdata':( 'int', None, 'stdcall', 'user32.DdeAccessData', (('int', None), ('int', None)) ), 'user32.ddeadddata':( 'int', None, 'stdcall', 'user32.DdeAddData', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddeclienttransaction':( 'int', None, 'stdcall', 'user32.DdeClientTransaction', (('int', None), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddecmpstringhandles':( 'int', None, 'stdcall', 'user32.DdeCmpStringHandles', (('int', None), ('int', None)) ), 'user32.ddeconnect':( 'int', None, 'stdcall', 'user32.DdeConnect', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.ddeconnectlist':( 'int', None, 'stdcall', 'user32.DdeConnectList', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.ddecreatedatahandle':( 'int', None, 'stdcall', 'user32.DdeCreateDataHandle', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddecreatestringhandlea':( 'int', None, 'stdcall', 'user32.DdeCreateStringHandleA', (('int', None), ('int', None), ('int', None)) ), 'user32.ddecreatestringhandlew':( 'int', None, 'stdcall', 'user32.DdeCreateStringHandleW', (('int', None), ('int', None), ('int', None)) ), 'user32.ddedisconnect':( 'int', None, 'stdcall', 'user32.DdeDisconnect', (('int', None),) ), 'user32.ddedisconnectlist':( 'int', None, 'stdcall', 'user32.DdeDisconnectList', (('int', None),) ), 'user32.ddeenablecallback':( 'int', None, 'stdcall', 'user32.DdeEnableCallback', (('int', None), ('int', None), ('void *', 'obj')) ), 'user32.ddefreedatahandle':( 'int', None, 'stdcall', 'user32.DdeFreeDataHandle', (('int', None),) ), 'user32.ddefreestringhandle':( 'int', None, 'stdcall', 'user32.DdeFreeStringHandle', (('int', None), ('int', None)) ), 'user32.ddegetdata':( 'int', None, 'stdcall', 'user32.DdeGetData', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddegetlasterror':( 'int', None, 'stdcall', 'user32.DdeGetLastError', (('int', None),) ), 'user32.ddegetqualityofservice':( 'int', None, 'stdcall', 'user32.DdeGetQualityOfService', (('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.ddeimpersonateclient':( 'int', None, 'stdcall', 'user32.DdeImpersonateClient', (('int', None),) ), 'user32.ddeinitializea':( 'int', None, 'stdcall', 'user32.DdeInitializeA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddeinitializew':( 'int', None, 'stdcall', 'user32.DdeInitializeW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddekeepstringhandle':( 'int', None, 'stdcall', 'user32.DdeKeepStringHandle', (('int', None), ('int', None)) ), 'user32.ddenameservice':( 'int', None, 'stdcall', 'user32.DdeNameService', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddepostadvise':( 'int', None, 'stdcall', 'user32.DdePostAdvise', (('int', None), ('int', None), ('int', None)) ), 'user32.ddequeryconvinfo':( 'int', None, 'stdcall', 'user32.DdeQueryConvInfo', (('int', None), ('int', None), ('int', None)) ), 'user32.ddequerynextserver':( 'int', None, 'stdcall', 'user32.DdeQueryNextServer', (('int', None), ('int', None)) ), 'user32.ddequerystringa':( 'int', None, 'stdcall', 'user32.DdeQueryStringA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddequerystringw':( 'int', None, 'stdcall', 'user32.DdeQueryStringW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.ddereconnect':( 'int', None, 'stdcall', 'user32.DdeReconnect', (('int', None),) ), 'user32.ddesetqualityofservice':( 'int', None, 'stdcall', 'user32.DdeSetQualityOfService', (('int', None), ('int', None), ('int', None)) ), 'user32.ddesetuserhandle':( 'int', None, 'stdcall', 'user32.DdeSetUserHandle', (('int', None), ('int', None), ('int', None)) ), 'user32.ddeunaccessdata':( 'int', None, 'stdcall', 'user32.DdeUnaccessData', (('int', None),) ), 'user32.ddeuninitialize':( 'int', None, 'stdcall', 'user32.DdeUninitialize', (('int', None),) ), 'user32.defdlgproca':( 'int', None, 'stdcall', 'user32.DefDlgProcA', ( ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ), 'user32.defdlgprocw':( 'int', None, 'stdcall', 'user32.DefDlgProcW', ( ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ), 'user32.defframeproca':( 'int', None, 'stdcall', 'user32.DefFrameProcA', ( ('void *', 'obj'), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.defframeprocw':( 'int', None, 'stdcall', 'user32.DefFrameProcW', ( ('void *', 'obj'), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.defmdichildproca':( 'int', None, 'stdcall', 'user32.DefMDIChildProcA', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.defmdichildprocw':( 'int', None, 'stdcall', 'user32.DefMDIChildProcW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.defrawinputproc':( 'int', None, 'stdcall', 'user32.DefRawInputProc', (('int', None), ('int', None), ('int', None)) ), 'user32.defwindowproca':( 'int', None, 'stdcall', 'user32.DefWindowProcA', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.defwindowprocw':( 'int', None, 'stdcall', 'user32.DefWindowProcW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.deferwindowpos':( 'int', None, 'stdcall', 'user32.DeferWindowPos', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.deletemenu':( 'int', None, 'stdcall', 'user32.DeleteMenu', (('int', None), ('int', None), ('int', None)) ), 'user32.deregistershellhookwindow':( 'int', None, 'stdcall', 'user32.DeregisterShellHookWindow', (('int', None),) ), 'user32.destroyacceleratortable':( 'int', None, 'stdcall', 'user32.DestroyAcceleratorTable', (('int', None),) ), 'user32.destroycaret':( 'int', None, 'cdecl', 'user32.DestroyCaret', () ), 'user32.destroycursor':( 'int', None, 'stdcall', 'user32.DestroyCursor', (('int', None),) ), 'user32.destroyicon':( 'int', None, 'stdcall', 'user32.DestroyIcon', (('int', None),) ), 'user32.destroymenu':( 'int', None, 'stdcall', 'user32.DestroyMenu', (('int', None),) ), 'user32.destroyreasons':( 'int', None, 'stdcall', 'user32.DestroyReasons', (('int', None),) ), 'user32.destroywindow':( 'int', None, 'stdcall', 'user32.DestroyWindow', (('int', None),) ), 'user32.deviceeventworker':( 'int', None, 'stdcall', 'user32.DeviceEventWorker', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.dialogboxindirectparama':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.dialogboxindirectparamaorw':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamAorW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'), ('int', None)) ), 'user32.dialogboxindirectparamw':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.dialogboxparama':( 'int', None, 'stdcall', 'user32.DialogBoxParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.dialogboxparamw':( 'int', None, 'stdcall', 'user32.DialogBoxParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.disableprocesswindowsghosting':( 'int', None, 'cdecl', 'user32.DisableProcessWindowsGhosting', () ), 'user32.dispatchmessagea':( 'int', None, 'stdcall', 'user32.DispatchMessageA', (('int', None),) ), 'user32.dispatchmessagew':( 'int', None, 'stdcall', 'user32.DispatchMessageW', (('void *', 'ptr'),) ), 'user32.displayexitwindowswarnings':( 'int', None, 'stdcall', 'user32.DisplayExitWindowsWarnings', (('int', None),) ), 'user32.dlgdirlista':( 'int', None, 'stdcall', 'user32.DlgDirListA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.dlgdirlistcomboboxa':( 'int', None, 'stdcall', 'user32.DlgDirListComboBoxA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.dlgdirlistcomboboxw':( 'int', None, 'stdcall', 'user32.DlgDirListComboBoxW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ), 'user32.dlgdirlistw':( 'int', None, 'stdcall', 'user32.DlgDirListW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ), 'user32.dlgdirselectcomboboxexa':( 'int', None, 'stdcall', 'user32.DlgDirSelectComboBoxExA', ( ('int', None), ('int', None), ('int', None)) ), 'user32.dlgdirselectcomboboxexw':( 'int', None, 'stdcall', 'user32.DlgDirSelectComboBoxExW', ( ('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.dlgdirselectexa':( 'int', None, 'stdcall', 'user32.DlgDirSelectExA', ( ('int', None), ('int', None), ('int', None)) ), 'user32.dlgdirselectexw':( 'int', None, 'stdcall', 'user32.DlgDirSelectExW', ( ('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.dragdetect':( 'int', None, 'stdcall', 'user32.DragDetect', (('int', None), ('int', None), ('int', None)) ), 'user32.dragobject':( 'int', None, 'stdcall', 'user32.DragObject', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawanimatedrects':( 'int', None, 'stdcall', 'user32.DrawAnimatedRects', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawcaption':( 'int', None, 'stdcall', 'user32.DrawCaption', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawcaptiontempa':( 'int', None, 'stdcall', 'user32.DrawCaptionTempA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.drawcaptiontempw':( 'int', None, 'stdcall', 'user32.DrawCaptionTempW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawedge':( 'int', None, 'stdcall', 'user32.DrawEdge', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.drawfocusrect':( 'int', None, 'stdcall', 'user32.DrawFocusRect', (('int', None), ('void *', 'ptr')) ), 'user32.drawframe':( 'int', None, 'stdcall', 'user32.DrawFrame', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.drawframecontrol':( 'int', None, 'stdcall', 'user32.DrawFrameControl', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.drawicon':( 'int', None, 'stdcall', 'user32.DrawIcon', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawiconex':( 'int', None, 'stdcall', 'user32.DrawIconEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawmenubar':( 'int', None, 'stdcall', 'user32.DrawMenuBar', (('int', None),) ), 'user32.drawmenubartemp':( 'int', None, 'stdcall', 'user32.DrawMenuBarTemp', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawstatea':( 'int', None, 'stdcall', 'user32.DrawStateA', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawstatew':( 'int', None, 'stdcall', 'user32.DrawStateW', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawtexta':( 'int', None, 'stdcall', 'user32.DrawTextA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.drawtextexa':( 'int', None, 'stdcall', 'user32.DrawTextExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.drawtextexw':( 'int', None, 'stdcall', 'user32.DrawTextExW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr')) ), 'user32.drawtextw':( 'int', None, 'stdcall', 'user32.DrawTextW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.editwndproc':( 'int', None, 'stdcall', 'user32.EditWndProc', (('int', None), ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ), 'user32.emptyclipboard':( 'int', None, 'cdecl', 'user32.EmptyClipboard', () ), 'user32.enablemenuitem':( 'int', None, 'stdcall', 'user32.EnableMenuItem', ( ('int', None), ('int', None)) ), 'user32.enablescrollbar':( 'int', None, 'stdcall', 'user32.EnableScrollBar', (('int', None), ('int', None), ('int', None)) ), 'user32.enablewindow':( 'int', None, 'stdcall', 'user32.EnableWindow', (('int', None), ('int', None)) ), 'user32.enddeferwindowpos':( 'int', None, 'stdcall', 'user32.EndDeferWindowPos', (('int', None),) ), 'user32.enddialog':( 'int', None, 'stdcall', 'user32.EndDialog', ( ('int', None),) ), 'user32.endmenu':( 'int', None, 'cdecl', 'user32.EndMenu', () ), 'user32.endpaint':( 'int', None, 'stdcall', 'user32.EndPaint', (('int', None), ('void *', 'ptr')) ), 'user32.endtask':( 'int', None, 'stdcall', 'user32.EndTask', (('int', None), ('int', None), ('int', None)) ), 'user32.enterreadermodehelper':( 'int', None, 'stdcall', 'user32.EnterReaderModeHelper', () ), 'user32.enumchildwindows':( 'int', None, 'stdcall', 'user32.EnumChildWindows', (('int', None), ('void *', 'funcptr'), ('void *', 'ptr')) ), 'user32.enumclipboardformats':( 'int', None, 'stdcall', 'user32.EnumClipboardFormats', (('int', None),) ), 'user32.enumdesktopwindows':( 'int', None, 'stdcall', 'user32.EnumDesktopWindows', (('int', None), ('void *', 'funcptr'), ('int', None)) ), 'user32.enumdesktopsa':( 'int', None, 'stdcall', 'user32.EnumDesktopsA', (('int', None), ('void *', 'funcptr'), ('int', None)) ), 'user32.enumdesktopsw':( 'int', None, 'stdcall', 'user32.EnumDesktopsW', (('int', None), ('void *', 'funcptr'), ('int', None)) ), 'user32.enumdisplaydevicesa':( 'int', None, 'stdcall', 'user32.EnumDisplayDevicesA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.enumdisplaydevicesw':( 'int', None, 'stdcall', 'user32.EnumDisplayDevicesW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.enumdisplaymonitors':( 'int', None, 'stdcall', 'user32.EnumDisplayMonitors', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.enumdisplaysettingsa':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsA', (('int', None), ('int', None), ('int', None)) ), 'user32.enumdisplaysettingsexa':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsExA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.enumdisplaysettingsexw':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsExW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.enumdisplaysettingsw':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsW', (('int', None), ('int', None), ('int', None)) ), 'user32.enumpropsa':( 'int', None, 'stdcall', 'user32.EnumPropsA', (('int', None), ('void *', 'funcptr')) ), 'user32.enumpropsexa':( 'int', None, 'stdcall', 'user32.EnumPropsExA', (('int', None), ('void *', 'funcptr'), ('int', None)) ), 'user32.enumpropsexw':( 'int', None, 'stdcall', 'user32.EnumPropsExW', (('int', None), ('void *', 'funcptr'), ('int', None)) ), 'user32.enumpropsw':( 'int', None, 'stdcall', 'user32.EnumPropsW', (('int', None), ('void *', 'funcptr')) ), 'user32.enumthreadwindows':( 'int', None, 'stdcall', 'user32.EnumThreadWindows', (('int', None), ('void *', 'funcptr'), ('int', None)) ), 'user32.enumwindowstationsa':( 'int', None, 'stdcall', 'user32.EnumWindowStationsA', (('void *', 'funcptr'), ('int', None)) ), 'user32.enumwindowstationsw':( 'int', None, 'stdcall', 'user32.EnumWindowStationsW', (('void *', 'funcptr'), ('int', None)) ), 'user32.enumwindows':( 'int', None, 'stdcall', 'user32.EnumWindows', (('void *', 'funcptr'), ('void *', 'ptr')) ), 'user32.equalrect':( 'int', None, 'stdcall', 'user32.EqualRect', (('int', None), ('int', None)) ), 'user32.excludeupdatergn':( 'int', None, 'stdcall', 'user32.ExcludeUpdateRgn', (('int', None), ('int', None)) ), 'user32.exitwindowsex':( 'int', None, 'stdcall', 'user32.ExitWindowsEx', ( ('int', None), ('int', None)) ), 'user32.fillrect':( 'int', None, 'stdcall', 'user32.FillRect', (('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.findwindowa':( 'int', None, 'stdcall', 'user32.FindWindowA', (('int', None), ('int', None)) ), 'user32.findwindowexa':( 'int', None, 'stdcall', 'user32.FindWindowExA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.findwindowexw':( 'int', None, 'stdcall', 'user32.FindWindowExW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.findwindoww':( 'int', None, 'stdcall', 'user32.FindWindowW', (('int', None), ('int', None)) ), 'user32.flashwindow':( 'int', None, 'stdcall', 'user32.FlashWindow', (('int', None), ('int', None)) ), 'user32.flashwindowex':( 'int', None, 'stdcall', 'user32.FlashWindowEx', (('void *', 'ptr'),) ), 'user32.framerect':( 'int', None, 'stdcall', 'user32.FrameRect', (('int', None), ('int', None), ('int', None)) ), 'user32.freeddelparam':( 'int', None, 'stdcall', 'user32.FreeDDElParam', (('int', None), ('void *', 'ptr')) ), 'user32.getactivewindow':( 'int', None, 'cdecl', 'user32.GetActiveWindow', () ), 'user32.getalttabinfo':( 'int', None, 'stdcall', 'user32.GetAltTabInfo', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getalttabinfoa':( 'int', None, 'stdcall', 'user32.GetAltTabInfoA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getalttabinfow':( 'int', None, 'stdcall', 'user32.GetAltTabInfoW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getancestor':( 'int', None, 'stdcall', 'user32.GetAncestor', (('int', None), ('int', None)) ), 'user32.getappcompatflags':( 'int', None, 'stdcall', 'user32.GetAppCompatFlags', (('int', None),) ), 'user32.getappcompatflags2':( 'int', None, 'stdcall', 'user32.GetAppCompatFlags2', (('int', None),) ), 'user32.getasynckeystate':( 'int', None, 'stdcall', 'user32.GetAsyncKeyState', (('int', None),) ), 'user32.getcapture':( 'int', None, 'cdecl', 'user32.GetCapture', () ), 'user32.getcaretblinktime':( 'int', None, 'cdecl', 'user32.GetCaretBlinkTime', () ), 'user32.getcaretpos':( 'int', None, 'stdcall', 'user32.GetCaretPos', (('void *', 'ptr'),) ), 'user32.getclassinfoa':( 'int', None, 'stdcall', 'user32.GetClassInfoA', (('int', None), ('int', None), ('int', None)) ), 'user32.getclassinfoexa':( 'int', None, 'stdcall', 'user32.GetClassInfoExA', (('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.getclassinfoexw':( 'int', None, 'stdcall', 'user32.GetClassInfoExW', (('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.getclassinfow':( 'int', None, 'stdcall', 'user32.GetClassInfoW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.getclasslonga':( 'int', None, 'stdcall', 'user32.GetClassLongA', ( ('int', None),) ), 'user32.getclasslongw':( 'int', None, 'stdcall', 'user32.GetClassLongW', ( ('int', None),) ), 'user32.getclassnamea':( 'int', None, 'stdcall', 'user32.GetClassNameA', ( ('int', None), ('int', None)) ), 'user32.getclassnamew':( 'int', None, 'stdcall', 'user32.GetClassNameW', (('int', None), ('int', None), ('int', None)) ), 'user32.getclassword':( 'int', None, 'stdcall', 'user32.GetClassWord', ( ('int', None),) ), 'user32.getclientrect':( 'int', None, 'stdcall', 'user32.GetClientRect', ( ('void *', 'ptr'),) ), 'user32.getclipcursor':( 'int', None, 'stdcall', 'user32.GetClipCursor', (('int', None),) ), 'user32.getclipboarddata':( 'int', None, 'stdcall', 'user32.GetClipboardData', ( ('int', None),) ), 'user32.getclipboardformatnamea':( 'int', None, 'stdcall', 'user32.GetClipboardFormatNameA', (('int', None), ('int', None), ('int', None)) ), 'user32.getclipboardformatnamew':( 'int', None, 'stdcall', 'user32.GetClipboardFormatNameW', (('int', None), ('int', None), ('int', None)) ), 'user32.getclipboardowner':( 'int', None, 'cdecl', 'user32.GetClipboardOwner', () ), 'user32.getclipboardsequencenumber':( 'int', None, 'cdecl', 'user32.GetClipboardSequenceNumber', () ), 'user32.getclipboardviewer':( 'int', None, 'cdecl', 'user32.GetClipboardViewer', () ), 'user32.getcomboboxinfo':( 'int', None, 'stdcall', 'user32.GetComboBoxInfo', (('int', None), ('int', None)) ), 'user32.getcursor':( 'int', None, 'cdecl', 'user32.GetCursor', () ), 'user32.getcursorframeinfo':( 'int', None, 'stdcall', 'user32.GetCursorFrameInfo', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.getcursorinfo':( 'int', None, 'stdcall', 'user32.GetCursorInfo', (('int', None),) ), 'user32.getcursorpos':( 'int', None, 'stdcall', 'user32.GetCursorPos', (('void *', 'ptr'),) ), 'user32.getdc':( 'int', None, 'stdcall', 'user32.GetDC', (('int', None),) ), 'user32.getdcex':( 'int', None, 'stdcall', 'user32.GetDCEx', (('int', None), ('int', None), ('int', None)) ), 'user32.getdesktopwindow':( 'int', None, 'cdecl', 'user32.GetDesktopWindow', () ), 'user32.getdialogbaseunits':( 'int', None, 'cdecl', 'user32.GetDialogBaseUnits', () ), 'user32.getdlgctrlid':( 'int', None, 'stdcall', 'user32.GetDlgCtrlID', () ), 'user32.getdlgitem':( 'int', None, 'stdcall', 'user32.GetDlgItem', ( ('int', None),) ), 'user32.getdlgitemint':( 'int', None, 'stdcall', 'user32.GetDlgItemInt', ( ('int', None), ('int', None), ('int', None)) ), 'user32.getdlgitemtexta':( 'int', None, 'stdcall', 'user32.GetDlgItemTextA', ( ('int', None), ('void *', 'obj'), ('int', None)) ), 'user32.getdlgitemtextw':( 'int', None, 'stdcall', 'user32.GetDlgItemTextW', ( ('int', None), ('void *', 'obj'), ('int', None)) ), 'user32.getdoubleclicktime':( 'int', None, 'cdecl', 'user32.GetDoubleClickTime', () ), 'user32.getfocus':( 'int', None, 'cdecl', 'user32.GetFocus', () ), 'user32.getforegroundwindow':( 'int', None, 'cdecl', 'user32.GetForegroundWindow', () ), 'user32.getguithreadinfo':( 'int', None, 'stdcall', 'user32.GetGUIThreadInfo', (('int', None), ('int', None)) ), 'user32.getguiresources':( 'int', None, 'stdcall', 'user32.GetGuiResources', (('int', None), ('int', None)) ), 'user32.geticoninfo':( 'int', None, 'stdcall', 'user32.GetIconInfo', (('int', None), ('void *', 'ptr')) ), 'user32.getinputdesktop':( 'int', None, 'cdecl', 'user32.GetInputDesktop', () ), 'user32.getinputstate':( 'int', None, 'cdecl', 'user32.GetInputState', () ), 'user32.getinternalwindowpos':( 'int', None, 'stdcall', 'user32.GetInternalWindowPos', (('int', None), ('int', None), ('int', None)) ), 'user32.getkbcodepage':( 'int', None, 'stdcall', 'user32.GetKBCodePage', () ), 'user32.getkeynametexta':( 'int', None, 'stdcall', 'user32.GetKeyNameTextA', (('int', None), ('int', None), ('int', None)) ), 'user32.getkeynametextw':( 'int', None, 'stdcall', 'user32.GetKeyNameTextW', (('int', None), ('int', None), ('int', None)) ), 'user32.getkeystate':( 'int', None, 'stdcall', 'user32.GetKeyState', (('int', None),) ), 'user32.getkeyboardlayout':( 'int', None, 'stdcall', 'user32.GetKeyboardLayout', (('int', None),) ), 'user32.getkeyboardlayoutlist':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutList', (('int', None), ('int', None)) ), 'user32.getkeyboardlayoutnamea':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutNameA', (('int', None),) ), 'user32.getkeyboardlayoutnamew':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutNameW', (('int', None),) ), 'user32.getkeyboardstate':( 'int', None, 'stdcall', 'user32.GetKeyboardState', (('int', None),) ), 'user32.getkeyboardtype':( 'int', None, 'stdcall', 'user32.GetKeyboardType', (('int', None),) ), 'user32.getlastactivepopup':( 'int', None, 'stdcall', 'user32.GetLastActivePopup', () ), 'user32.getlastinputinfo':( 'int', None, 'stdcall', 'user32.GetLastInputInfo', (('int', None),) ), 'user32.getlayeredwindowattributes':( 'int', None, 'stdcall', 'user32.GetLayeredWindowAttributes', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getlistboxinfo':( 'int', None, 'stdcall', 'user32.GetListBoxInfo', (('int', None),) ), 'user32.getmenu':( 'int', None, 'stdcall', 'user32.GetMenu', () ), 'user32.getmenubarinfo':( 'int', None, 'stdcall', 'user32.GetMenuBarInfo', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getmenucheckmarkdimensions':( 'int', None, 'cdecl', 'user32.GetMenuCheckMarkDimensions', () ), 'user32.getmenucontexthelpid':( 'int', None, 'stdcall', 'user32.GetMenuContextHelpId', () ), 'user32.getmenudefaultitem':( 'int', None, 'stdcall', 'user32.GetMenuDefaultItem', ( ('int', None), ('int', None)) ), 'user32.getmenuinfo':( 'int', None, 'stdcall', 'user32.GetMenuInfo', ( ('int', None),) ), 'user32.getmenuitemcount':( 'int', None, 'stdcall', 'user32.GetMenuItemCount', () ), 'user32.getmenuitemid':( 'int', None, 'stdcall', 'user32.GetMenuItemID', ( ('int', None),) ), 'user32.getmenuiteminfoa':( 'int', None, 'stdcall', 'user32.GetMenuItemInfoA', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ), 'user32.getmenuiteminfow':( 'int', None, 'stdcall', 'user32.GetMenuItemInfoW', ( ('int', None), ('int', None), ('int', None)) ), 'user32.getmenuitemrect':( 'int', None, 'stdcall', 'user32.GetMenuItemRect', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getmenustate':( 'int', None, 'stdcall', 'user32.GetMenuState', ( ('int', None), ('int', None)) ), 'user32.getmenustringa':( 'int', None, 'stdcall', 'user32.GetMenuStringA', ( ('int', None), ('int', None), ('void *', 'obj'), ('int', None)) ), 'user32.getmenustringw':( 'int', None, 'stdcall', 'user32.GetMenuStringW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getmessagea':( 'int', None, 'stdcall', 'user32.GetMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getmessageextrainfo':( 'int', None, 'cdecl', 'user32.GetMessageExtraInfo', () ), 'user32.getmessagepos':( 'int', None, 'cdecl', 'user32.GetMessagePos', () ), 'user32.getmessagetime':( 'int', None, 'cdecl', 'user32.GetMessageTime', () ), 'user32.getmessagew':( 'int', None, 'stdcall', 'user32.GetMessageW', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ), 'user32.getmonitorinfoa':( 'int', None, 'stdcall', 'user32.GetMonitorInfoA', (('void *', 'ptr'), ('int', None)) ), 'user32.getmonitorinfow':( 'int', None, 'stdcall', 'user32.GetMonitorInfoW', (('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.getmousemovepointsex':( 'int', None, 'stdcall', 'user32.GetMouseMovePointsEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getnextdlggroupitem':( 'int', None, 'stdcall', 'user32.GetNextDlgGroupItem', ( ('void *', 'obj'), ('int', None)) ), 'user32.getnextdlgtabitem':( 'int', None, 'stdcall', 'user32.GetNextDlgTabItem', ( ('void *', 'obj'), ('int', None)) ), 'user32.getopenclipboardwindow':( 'int', None, 'cdecl', 'user32.GetOpenClipboardWindow', () ), 'user32.getparent':( 'int', None, 'stdcall', 'user32.GetParent', () ), 'user32.getpriorityclipboardformat':( 'int', None, 'stdcall', 'user32.GetPriorityClipboardFormat', (('int', None), ('int', None)) ), 'user32.getprocessdefaultlayout':( 'int', None, 'stdcall', 'user32.GetProcessDefaultLayout', (('int', None),) ), 'user32.getprocesswindowstation':( 'int', None, 'cdecl', 'user32.GetProcessWindowStation', () ), 'user32.getprogmanwindow':( 'int', None, 'cdecl', 'user32.GetProgmanWindow', () ), 'user32.getpropa':( 'int', None, 'stdcall', 'user32.GetPropA', ( ('int', None),) ), 'user32.getpropw':( 'int', None, 'stdcall', 'user32.GetPropW', ( ('int', None),) ), 'user32.getqueuestatus':( 'int', None, 'stdcall', 'user32.GetQueueStatus', (('int', None),) ), 'user32.getrawinputbuffer':( 'int', None, 'stdcall', 'user32.GetRawInputBuffer', (('int', None), ('int', None), ('int', None)) ), 'user32.getrawinputdata':( 'int', None, 'stdcall', 'user32.GetRawInputData', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getrawinputdeviceinfoa':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceInfoA', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.getrawinputdeviceinfow':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceInfoW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getrawinputdevicelist':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceList', (('int', None), ('int', None), ('int', None)) ), 'user32.getreasontitlefromreasoncode':( 'int', None, 'stdcall', 'user32.GetReasonTitleFromReasonCode', (('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.getregisteredrawinputdevices':( 'int', None, 'stdcall', 'user32.GetRegisteredRawInputDevices', (('int', None), ('int', None), ('int', None)) ), 'user32.getscrollbarinfo':( 'int', None, 'stdcall', 'user32.GetScrollBarInfo', (('int', None), ('int', None), ('int', None)) ), 'user32.getscrollinfo':( 'int', None, 'stdcall', 'user32.GetScrollInfo', ( ('int', None), ('void *', 'obj')) ), 'user32.getscrollpos':( 'int', None, 'stdcall', 'user32.GetScrollPos', ( ('int', None),) ), 'user32.getscrollrange':( 'int', None, 'stdcall', 'user32.GetScrollRange', ( ('int', None), ('int', None), ('void *', 'obj')) ), 'user32.getshellwindow':( 'int', None, 'cdecl', 'user32.GetShellWindow', () ), 'user32.getsubmenu':( 'int', None, 'stdcall', 'user32.GetSubMenu', ( ('int', None),) ), 'user32.getsyscolor':( 'int', None, 'stdcall', 'user32.GetSysColor', (('int', None),) ), 'user32.getsyscolorbrush':( 'int', None, 'stdcall', 'user32.GetSysColorBrush', (('int', None),) ), 'user32.getsystemmenu':( 'int', None, 'stdcall', 'user32.GetSystemMenu', (('int', None), ('int', None)) ), 'user32.getsystemmetrics':( 'int', None, 'stdcall', 'user32.GetSystemMetrics', (('int', None),) ), 'user32.gettabbedtextextenta':( 'int', None, 'stdcall', 'user32.GetTabbedTextExtentA', ( ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.gettabbedtextextentw':( 'int', None, 'stdcall', 'user32.GetTabbedTextExtentW', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ), 'user32.gettaskmanwindow':( 'int', None, 'cdecl', 'user32.GetTaskmanWindow', () ), 'user32.getthreaddesktop':( 'int', None, 'stdcall', 'user32.GetThreadDesktop', (('int', None),) ), 'user32.gettitlebarinfo':( 'int', None, 'stdcall', 'user32.GetTitleBarInfo', (('int', None), ('int', None)) ), 'user32.gettopwindow':( 'int', None, 'stdcall', 'user32.GetTopWindow', () ), 'user32.getupdaterect':( 'int', None, 'stdcall', 'user32.GetUpdateRect', ( ('int', None), ('int', None)) ), 'user32.getupdatergn':( 'int', None, 'stdcall', 'user32.GetUpdateRgn', ( ('int', None), ('int', None)) ), 'user32.getuserobjectinformationa':( 'int', None, 'stdcall', 'user32.GetUserObjectInformationA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getuserobjectinformationw':( 'int', None, 'stdcall', 'user32.GetUserObjectInformationW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getuserobjectsecurity':( 'int', None, 'stdcall', 'user32.GetUserObjectSecurity', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.getwinstationinfo':( 'int', None, 'stdcall', 'user32.GetWinStationInfo', (('int', None),) ), 'user32.getwindow':( 'int', None, 'stdcall', 'user32.GetWindow', ( ('int', None),) ), 'user32.getwindowcontexthelpid':( 'int', None, 'stdcall', 'user32.GetWindowContextHelpId', (('int', None),) ), 'user32.getwindowdc':( 'int', None, 'stdcall', 'user32.GetWindowDC', (('int', None),) ), 'user32.getwindowinfo':( 'int', None, 'stdcall', 'user32.GetWindowInfo', ( ('int', None),) ), 'user32.getwindowlonga':( 'int', None, 'stdcall', 'user32.GetWindowLongA', ( ('int', None),) ), 'user32.getwindowlongw':( 'int', None, 'stdcall', 'user32.GetWindowLongW', ( ('int', None),) ), 'user32.getwindowmodulefilename':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileName', ( ('int', None), ('int', None)) ), 'user32.getwindowmodulefilenamea':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileNameA', ( ('int', None), ('int', None)) ), 'user32.getwindowmodulefilenamew':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileNameW', ( ('int', None), ('int', None)) ), 'user32.getwindowplacement':( 'int', None, 'stdcall', 'user32.GetWindowPlacement', (('int', None), ('void *', 'ptr')) ), 'user32.getwindowrect':( 'int', None, 'stdcall', 'user32.GetWindowRect', ( ('void *', 'ptr'),) ), 'user32.getwindowrgn':( 'int', None, 'stdcall', 'user32.GetWindowRgn', ( ('int', None),) ), 'user32.getwindowrgnbox':( 'int', None, 'stdcall', 'user32.GetWindowRgnBox', ( ('int', None),) ), 'user32.getwindowtexta':( 'int', None, 'stdcall', 'user32.GetWindowTextA', ( ('void *', 'obj'), ('int', None)) ), 'user32.getwindowtextlengtha':( 'int', None, 'stdcall', 'user32.GetWindowTextLengthA', () ), 'user32.getwindowtextlengthw':( 'int', None, 'stdcall', 'user32.GetWindowTextLengthW', () ), 'user32.getwindowtextw':( 'int', None, 'stdcall', 'user32.GetWindowTextW', ( ('void *', 'obj'), ('int', None)) ), 'user32.getwindowthreadprocessid':( 'int', None, 'stdcall', 'user32.GetWindowThreadProcessId', (('int', None), ('void *', 'ptr')) ), 'user32.getwindowword':( 'int', None, 'stdcall', 'user32.GetWindowWord', ( ('int', None),) ), 'user32.graystringa':( 'int', None, 'stdcall', 'user32.GrayStringA', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.graystringw':( 'int', None, 'stdcall', 'user32.GrayStringW', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.hidecaret':( 'int', None, 'stdcall', 'user32.HideCaret', (('int', None),) ), 'user32.hilitemenuitem':( 'int', None, 'stdcall', 'user32.HiliteMenuItem', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.impgetimea':( 'int', None, 'stdcall', 'user32.IMPGetIMEA', (('int', None), ('int', None)) ), 'user32.impgetimew':( 'int', None, 'stdcall', 'user32.IMPGetIMEW', (('int', None), ('int', None)) ), 'user32.impqueryimea':( 'int', None, 'stdcall', 'user32.IMPQueryIMEA', (('int', None),) ), 'user32.impqueryimew':( 'int', None, 'stdcall', 'user32.IMPQueryIMEW', (('int', None),) ), 'user32.impsetimea':( 'int', None, 'stdcall', 'user32.IMPSetIMEA', (('int', None), ('int', None)) ), 'user32.impsetimew':( 'int', None, 'stdcall', 'user32.IMPSetIMEW', (('int', None), ('int', None)) ), 'user32.impersonateddeclientwindow':( 'int', None, 'stdcall', 'user32.ImpersonateDdeClientWindow', (('int', None), ('int', None)) ), 'user32.insendmessage':( 'int', None, 'cdecl', 'user32.InSendMessage', () ), 'user32.insendmessageex':( 'int', None, 'stdcall', 'user32.InSendMessageEx', (('int', None),) ), 'user32.inflaterect':( 'int', None, 'stdcall', 'user32.InflateRect', (('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.initializelpkhooks':( 'int', None, 'stdcall', 'user32.InitializeLpkHooks', (('int', None),) ), 'user32.initializewin32entrytable':( 'int', None, 'stdcall', 'user32.InitializeWin32EntryTable', (('int', None),) ), 'user32.insertmenua':( 'int', None, 'stdcall', 'user32.InsertMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.insertmenuitema':( 'int', None, 'stdcall', 'user32.InsertMenuItemA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.insertmenuitemw':( 'int', None, 'stdcall', 'user32.InsertMenuItemW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.insertmenuw':( 'int', None, 'stdcall', 'user32.InsertMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.internalgetwindowtext':( 'int', None, 'stdcall', 'user32.InternalGetWindowText', (('int', None), ('int', None), ('int', None)) ), 'user32.intersectrect':( 'int', None, 'stdcall', 'user32.IntersectRect', (('void *', 'ptr'), ('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.invalidaterect':( 'int', None, 'stdcall', 'user32.InvalidateRect', (('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.invalidatergn':( 'int', None, 'stdcall', 'user32.InvalidateRgn', (('int', None), ('int', None), ('int', None)) ), 'user32.invertrect':( 'int', None, 'stdcall', 'user32.InvertRect', (('int', None), ('int', None)) ), 'user32.ischaralphaa':( 'int', None, 'stdcall', 'user32.IsCharAlphaA', (('int', None),) ), 'user32.ischaralphanumerica':( 'int', None, 'stdcall', 'user32.IsCharAlphaNumericA', (('int', None),) ), 'user32.ischaralphanumericw':( 'int', None, 'stdcall', 'user32.IsCharAlphaNumericW', (('int', None),) ), 'user32.ischaralphaw':( 'int', None, 'stdcall', 'user32.IsCharAlphaW', (('int', None),) ), 'user32.ischarlowera':( 'int', None, 'stdcall', 'user32.IsCharLowerA', (('int', None),) ), 'user32.ischarlowerw':( 'int', None, 'stdcall', 'user32.IsCharLowerW', (('int', None),) ), 'user32.ischaruppera':( 'int', None, 'stdcall', 'user32.IsCharUpperA', (('int', None),) ), 'user32.ischarupperw':( 'int', None, 'stdcall', 'user32.IsCharUpperW', (('int', None),) ), 'user32.ischild':( 'int', None, 'stdcall', 'user32.IsChild', ( ('void *', 'obj'),) ), 'user32.isclipboardformatavailable':( 'int', None, 'stdcall', 'user32.IsClipboardFormatAvailable', (('int', None),) ), 'user32.isdialogmessage':( 'int', None, 'stdcall', 'user32.IsDialogMessage', ( ('void *', 'obj'),) ), 'user32.isdialogmessagea':( 'int', None, 'stdcall', 'user32.IsDialogMessageA', ( ('void *', 'obj'),) ), 'user32.isdialogmessagew':( 'int', None, 'stdcall', 'user32.IsDialogMessageW', ( ('void *', 'obj'),) ), 'user32.isdlgbuttonchecked':( 'int', None, 'stdcall', 'user32.IsDlgButtonChecked', ( ('int', None),) ), 'user32.isguithread':( 'int', None, 'stdcall', 'user32.IsGUIThread', (('int', None),) ), 'user32.ishungappwindow':( 'int', None, 'stdcall', 'user32.IsHungAppWindow', (('int', None),) ), 'user32.isiconic':( 'int', None, 'stdcall', 'user32.IsIconic', () ), 'user32.ismenu':( 'int', None, 'stdcall', 'user32.IsMenu', () ), 'user32.isrectempty':( 'int', None, 'stdcall', 'user32.IsRectEmpty', (('int', None),) ), 'user32.isserversidewindow':( 'int', None, 'stdcall', 'user32.IsServerSideWindow', () ), 'user32.iswineventhookinstalled':( 'int', None, 'stdcall', 'user32.IsWinEventHookInstalled', (('int', None),) ), 'user32.iswindow':( 'int', None, 'stdcall', 'user32.IsWindow', () ), 'user32.iswindowenabled':( 'int', None, 'stdcall', 'user32.IsWindowEnabled', () ), 'user32.iswindowindestroy':( 'int', None, 'stdcall', 'user32.IsWindowInDestroy', () ), 'user32.iswindowunicode':( 'int', None, 'stdcall', 'user32.IsWindowUnicode', () ), 'user32.iswindowvisible':( 'int', None, 'stdcall', 'user32.IsWindowVisible', () ), 'user32.iszoomed':( 'int', None, 'stdcall', 'user32.IsZoomed', () ), 'user32.killsystemtimer':( 'int', None, 'stdcall', 'user32.KillSystemTimer', (('int', None), ('int', None)) ), 'user32.killtimer':( 'int', None, 'stdcall', 'user32.KillTimer', (('int', None), ('int', None)) ), 'user32.loadacceleratorsa':( 'int', None, 'stdcall', 'user32.LoadAcceleratorsA', (('void *', 'ptr'), ('int', None)) ), 'user32.loadacceleratorsw':( 'int', None, 'stdcall', 'user32.LoadAcceleratorsW', (('void *', 'ptr'), ('int', None)) ), 'user32.loadbitmapa':( 'int', None, 'stdcall', 'user32.LoadBitmapA', (('int', None), ('void *', 'ptr')) ), 'user32.loadbitmapw':( 'int', None, 'stdcall', 'user32.LoadBitmapW', (('int', None), ('int', None)) ), 'user32.loadcursora':( 'int', None, 'stdcall', 'user32.LoadCursorA', (('int', None), ('void *', 'ptr')) ), 'user32.loadcursorfromfilea':( 'int', None, 'stdcall', 'user32.LoadCursorFromFileA', (('void *', 'ptr'),) ), 'user32.loadcursorfromfilew':( 'int', None, 'stdcall', 'user32.LoadCursorFromFileW', (('int', None),) ), 'user32.loadcursorw':( 'int', None, 'stdcall', 'user32.LoadCursorW', (('int', None), ('int', None)) ), 'user32.loadicona':( 'int', None, 'stdcall', 'user32.LoadIconA', (('int', None), ('void *', 'ptr')) ), 'user32.loadiconw':( 'int', None, 'stdcall', 'user32.LoadIconW', (('int', None), ('int', None)) ), 'user32.loadimagea':( 'int', None, 'stdcall', 'user32.LoadImageA', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.loadimagew':( 'int', None, 'stdcall', 'user32.LoadImageW', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.loadkeyboardlayouta':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutA', (('int', None), ('int', None)) ), 'user32.loadkeyboardlayoutex':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutEx', (('int', None), ('int', None), ('int', None)) ), 'user32.loadkeyboardlayoutw':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutW', (('void *', 'ptr'), ('int', None)) ), 'user32.loadlocalfonts':( 'int', None, 'cdecl', 'user32.LoadLocalFonts', () ), 'user32.loadmenua':( 'int', None, 'stdcall', 'user32.LoadMenuA', (('int', None), ('int', None)) ), 'user32.loadmenuindirecta':( 'int', None, 'stdcall', 'user32.LoadMenuIndirectA', (('int', None),) ), 'user32.loadmenuindirectw':( 'int', None, 'stdcall', 'user32.LoadMenuIndirectW', (('int', None),) ), 'user32.loadmenuw':( 'int', None, 'stdcall', 'user32.LoadMenuW', (('int', None), ('int', None)) ), 'user32.loadremotefonts':( 'int', None, 'cdecl', 'user32.LoadRemoteFonts', () ), 'user32.loadstringa':( 'int', None, 'stdcall', 'user32.LoadStringA', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.loadstringw':( 'int', None, 'stdcall', 'user32.LoadStringW', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.locksetforegroundwindow':( 'int', None, 'stdcall', 'user32.LockSetForegroundWindow', (('int', None),) ), 'user32.lockwindowstation':( 'int', None, 'stdcall', 'user32.LockWindowStation', (('int', None),) ), 'user32.lockwindowupdate':( 'int', None, 'stdcall', 'user32.LockWindowUpdate', (('int', None),) ), 'user32.lockworkstation':( 'int', None, 'cdecl', 'user32.LockWorkStation', () ), 'user32.lookupiconidfromdirectory':( 'int', None, 'stdcall', 'user32.LookupIconIdFromDirectory', (('int', None), ('int', None)) ), 'user32.lookupiconidfromdirectoryex':( 'int', None, 'stdcall', 'user32.LookupIconIdFromDirectoryEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.mbtowcsex':( 'int', None, 'stdcall', 'user32.MBToWCSEx', (('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.mb_getstring':( 'int', None, 'stdcall', 'user32.MB_GetString', (('int', None),) ), 'user32.mapdialogrect':( 'int', None, 'stdcall', 'user32.MapDialogRect', ( ('int', None),) ), 'user32.mapvirtualkeya':( 'int', None, 'stdcall', 'user32.MapVirtualKeyA', (('int', None), ('int', None)) ), 'user32.mapvirtualkeyexa':( 'int', None, 'stdcall', 'user32.MapVirtualKeyExA', (('int', None), ('int', None), ('int', None)) ), 'user32.mapvirtualkeyexw':( 'int', None, 'stdcall', 'user32.MapVirtualKeyExW', (('int', None), ('int', None), ('int', None)) ), 'user32.mapvirtualkeyw':( 'int', None, 'stdcall', 'user32.MapVirtualKeyW', (('int', None), ('int', None)) ), 'user32.mapwindowpoints':( 'int', None, 'stdcall', 'user32.MapWindowPoints', ( ('void *', 'obj'), ('void *', 'ptr'), ('int', None)) ), 'user32.menuitemfrompoint':( 'int', None, 'stdcall', 'user32.MenuItemFromPoint', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.menuwindowproca':( 'int', None, 'stdcall', 'user32.MenuWindowProcA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.menuwindowprocw':( 'int', None, 'stdcall', 'user32.MenuWindowProcW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.messagebeep':( 'int', None, 'stdcall', 'user32.MessageBeep', (('int', None),) ), 'user32.messageboxa':( 'int', None, 'stdcall', 'user32.MessageBoxA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.messageboxexa':( 'int', None, 'stdcall', 'user32.MessageBoxExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.messageboxexw':( 'int', None, 'stdcall', 'user32.MessageBoxExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.messageboxindirecta':( 'int', None, 'stdcall', 'user32.MessageBoxIndirectA', (('int', None),) ), 'user32.messageboxindirectw':( 'int', None, 'stdcall', 'user32.MessageBoxIndirectW', (('int', None),) ), 'user32.messageboxtimeouta':( 'int', None, 'stdcall', 'user32.MessageBoxTimeoutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.messageboxtimeoutw':( 'int', None, 'stdcall', 'user32.MessageBoxTimeoutW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.messageboxw':( 'int', None, 'stdcall', 'user32.MessageBoxW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None)) ), 'user32.modifymenua':( 'int', None, 'stdcall', 'user32.ModifyMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.modifymenuw':( 'int', None, 'stdcall', 'user32.ModifyMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.monitorfrompoint':( 'int', None, 'stdcall', 'user32.MonitorFromPoint', (('int', None), ('int', None), ('int', None)) ), 'user32.monitorfromrect':( 'int', None, 'stdcall', 'user32.MonitorFromRect', (('void *', 'ptr'), ('int', None)) ), 'user32.monitorfromwindow':( 'int', None, 'stdcall', 'user32.MonitorFromWindow', ( ('int', None),) ), 'user32.movewindow':( 'int', None, 'stdcall', 'user32.MoveWindow', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.msgwaitformultipleobjects':( 'int', None, 'stdcall', 'user32.MsgWaitForMultipleObjects', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.msgwaitformultipleobjectsex':( 'int', None, 'stdcall', 'user32.MsgWaitForMultipleObjectsEx', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ), 'user32.notifywinevent':( 'int', None, 'stdcall', 'user32.NotifyWinEvent', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.oemkeyscan':( 'int', None, 'stdcall', 'user32.OemKeyScan', ( ('int', None),) ), 'user32.oemtochara':( 'int', None, 'stdcall', 'user32.OemToCharA', (('int', None), ('int', None)) ), 'user32.oemtocharbuffa':( 'int', None, 'stdcall', 'user32.OemToCharBuffA', (('int', None), ('int', None), ('int', None)) ), 'user32.oemtocharbuffw':( 'int', None, 'stdcall', 'user32.OemToCharBuffW', (('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.oemtocharw':( 'int', None, 'stdcall', 'user32.OemToCharW', (('int', None), ('int', None)) ), 'user32.offsetrect':( 'int', None, 'stdcall', 'user32.OffsetRect', (('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.openclipboard':( 'int', None, 'stdcall', 'user32.OpenClipboard', (('int', None),) ), 'user32.opendesktopa':( 'int', None, 'stdcall', 'user32.OpenDesktopA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.opendesktopw':( 'int', None, 'stdcall', 'user32.OpenDesktopW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.openicon':( 'int', None, 'stdcall', 'user32.OpenIcon', () ), 'user32.openinputdesktop':( 'int', None, 'stdcall', 'user32.OpenInputDesktop', (('int', None), ('int', None), ('int', None)) ), 'user32.openwindowstationa':( 'int', None, 'stdcall', 'user32.OpenWindowStationA', (('int', None), ('int', None), ('int', None)) ), 'user32.openwindowstationw':( 'int', None, 'stdcall', 'user32.OpenWindowStationW', (('int', None), ('int', None), ('int', None)) ), 'user32.packddelparam':( 'int', None, 'stdcall', 'user32.PackDDElParam', (('int', None), ('int', None), ('int', None)) ), 'user32.paintdesktop':( 'int', None, 'stdcall', 'user32.PaintDesktop', (('int', None),) ), 'user32.paintmenubar':( 'int', None, 'stdcall', 'user32.PaintMenuBar', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.peekmessagea':( 'int', None, 'stdcall', 'user32.PeekMessageA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.peekmessagew':( 'int', None, 'stdcall', 'user32.PeekMessageW', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.postmessagea':( 'int', None, 'stdcall', 'user32.PostMessageA', ( ('int', None), ('int', None), ('int', None)) ), 'user32.postmessagew':( 'int', None, 'stdcall', 'user32.PostMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.postquitmessage':( 'int', None, 'stdcall', 'user32.PostQuitMessage', (('int', None),) ), 'user32.postthreadmessagea':( 'int', None, 'stdcall', 'user32.PostThreadMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.postthreadmessagew':( 'int', None, 'stdcall', 'user32.PostThreadMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.printwindow':( 'int', None, 'stdcall', 'user32.PrintWindow', (('int', None), ('int', None), ('int', None)) ), 'user32.privateextracticonexa':( 'int', None, 'stdcall', 'user32.PrivateExtractIconExA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.privateextracticonexw':( 'int', None, 'stdcall', 'user32.PrivateExtractIconExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.privateextracticonsa':( 'int', None, 'stdcall', 'user32.PrivateExtractIconsA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.privateextracticonsw':( 'int', None, 'stdcall', 'user32.PrivateExtractIconsW', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ), 'user32.privatesetdbgtag':( 'int', None, 'stdcall', 'user32.PrivateSetDbgTag', (('int', None), ('int', None)) ), 'user32.privatesetripflags':( 'int', None, 'stdcall', 'user32.PrivateSetRipFlags', (('int', None), ('int', None)) ), 'user32.ptinrect':( 'int', None, 'stdcall', 'user32.PtInRect', (('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.querysendmessage':( 'int', None, 'stdcall', 'user32.QuerySendMessage', (('int', None),) ), 'user32.queryusercounters':( 'int', None, 'stdcall', 'user32.QueryUserCounters', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.realchildwindowfrompoint':( 'int', None, 'stdcall', 'user32.RealChildWindowFromPoint', (('int', None), ('int', None), ('int', None)) ), 'user32.realgetwindowclass':( 'int', None, 'stdcall', 'user32.RealGetWindowClass', (('int', None), ('int', None), ('int', None)) ), 'user32.realgetwindowclassa':( 'int', None, 'stdcall', 'user32.RealGetWindowClassA', (('int', None), ('int', None), ('int', None)) ), 'user32.realgetwindowclassw':( 'int', None, 'stdcall', 'user32.RealGetWindowClassW', (('int', None), ('int', None), ('int', None)) ), 'user32.reasoncodeneedsbugid':( 'int', None, 'stdcall', 'user32.ReasonCodeNeedsBugID', (('int', None),) ), 'user32.reasoncodeneedscomment':( 'int', None, 'stdcall', 'user32.ReasonCodeNeedsComment', (('int', None),) ), 'user32.recordshutdownreason':( 'int', None, 'stdcall', 'user32.RecordShutdownReason', ( ('void *', 'ptr'),) ), 'user32.redrawwindow':( 'int', None, 'stdcall', 'user32.RedrawWindow', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.registerclassa':( 'int', None, 'stdcall', 'user32.RegisterClassA', (('int', None),) ), 'user32.registerclassexa':( 'int', None, 'stdcall', 'user32.RegisterClassExA', (('void *', 'ptr'),) ), 'user32.registerclassexw':( 'int', None, 'stdcall', 'user32.RegisterClassExW', (('void *', 'ptr'),) ), 'user32.registerclassw':( 'int', None, 'stdcall', 'user32.RegisterClassW', (('int', None),) ), 'user32.registerclipboardformata':( 'int', None, 'stdcall', 'user32.RegisterClipboardFormatA', (('int', None),) ), 'user32.registerclipboardformatw':( 'int', None, 'stdcall', 'user32.RegisterClipboardFormatW', (('int', None),) ), 'user32.registerdevicenotificationa':( 'int', None, 'stdcall', 'user32.RegisterDeviceNotificationA', (('int', None), ('int', None), ('int', None)) ), 'user32.registerdevicenotificationw':( 'int', None, 'stdcall', 'user32.RegisterDeviceNotificationW', (('int', None), ('int', None), ('int', None)) ), 'user32.registerhotkey':( 'int', None, 'stdcall', 'user32.RegisterHotKey', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.registerlogonprocess':( 'int', None, 'stdcall', 'user32.RegisterLogonProcess', (('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.registermessagepumphook':( 'int', None, 'stdcall', 'user32.RegisterMessagePumpHook', (('void *', 'funcptr'),) ), 'user32.registerrawinputdevices':( 'int', None, 'stdcall', 'user32.RegisterRawInputDevices', (('int', None), ('int', None), ('int', None)) ), 'user32.registerservicesprocess':( 'int', None, 'stdcall', 'user32.RegisterServicesProcess', (('int', None),) ), 'user32.registershellhookwindow':( 'int', None, 'stdcall', 'user32.RegisterShellHookWindow', (('int', None),) ), 'user32.registersystemthread':( 'int', None, 'stdcall', 'user32.RegisterSystemThread', (('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.registertasklist':( 'int', None, 'stdcall', 'user32.RegisterTasklist', (('int', None),) ), 'user32.registeruserapihook':( 'int', None, 'stdcall', 'user32.RegisterUserApiHook', (('int', None), ('int', None)) ), 'user32.registerwindowmessagea':( 'int', None, 'stdcall', 'user32.RegisterWindowMessageA', (('int', None),) ), 'user32.registerwindowmessagew':( 'int', None, 'stdcall', 'user32.RegisterWindowMessageW', (('int', None),) ), 'user32.releasecapture':( 'int', None, 'cdecl', 'user32.ReleaseCapture', () ), 'user32.releasedc':( 'int', None, 'stdcall', 'user32.ReleaseDC', (('int', None), ('int', None)) ), 'user32.removemenu':( 'int', None, 'stdcall', 'user32.RemoveMenu', (('int', None), ('int', None), ('int', None)) ), 'user32.removepropa':( 'int', None, 'stdcall', 'user32.RemovePropA', (('int', None), ('int', None)) ), 'user32.removepropw':( 'int', None, 'stdcall', 'user32.RemovePropW', (('int', None), ('int', None)) ), 'user32.replymessage':( 'int', None, 'stdcall', 'user32.ReplyMessage', (('int', None),) ), 'user32.resolvedesktopforwow':( 'int', None, 'stdcall', 'user32.ResolveDesktopForWOW', (('int', None),) ), 'user32.reuseddelparam':( 'int', None, 'stdcall', 'user32.ReuseDDElParam', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.screentoclient':( 'int', None, 'stdcall', 'user32.ScreenToClient', ( ('void *', 'ptr'),) ), 'user32.scrollchildren':( 'int', None, 'stdcall', 'user32.ScrollChildren', ( ('int', None), ('int', None)) ), 'user32.scrolldc':( 'int', None, 'stdcall', 'user32.ScrollDC', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.scrollwindow':( 'int', None, 'stdcall', 'user32.ScrollWindow', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.scrollwindowex':( 'int', None, 'stdcall', 'user32.ScrollWindowEx', ( ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.senddlgitemmessagea':( 'int', None, 'stdcall', 'user32.SendDlgItemMessageA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.senddlgitemmessagew':( 'int', None, 'stdcall', 'user32.SendDlgItemMessageW', ( ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.sendimemessageexa':( 'int', None, 'stdcall', 'user32.SendIMEMessageExA', (('int', None), ('int', None)) ), 'user32.sendimemessageexw':( 'int', None, 'stdcall', 'user32.SendIMEMessageExW', (('int', None), ('int', None)) ), 'user32.sendinput':( 'int', None, 'stdcall', 'user32.SendInput', (('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.sendmessagea':( 'int', None, 'stdcall', 'user32.SendMessageA', ( ('int', None), ('int', None), ('int', None)) ), 'user32.sendmessagecallbacka':( 'int', None, 'stdcall', 'user32.SendMessageCallbackA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.sendmessagecallbackw':( 'int', None, 'stdcall', 'user32.SendMessageCallbackW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.sendmessagetimeouta':( 'int', None, 'stdcall', 'user32.SendMessageTimeoutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.sendmessagetimeoutw':( 'int', None, 'stdcall', 'user32.SendMessageTimeoutW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.sendmessagew':( 'int', None, 'stdcall', 'user32.SendMessageW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ), 'user32.sendnotifymessagea':( 'int', None, 'stdcall', 'user32.SendNotifyMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.sendnotifymessagew':( 'int', None, 'stdcall', 'user32.SendNotifyMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setactivewindow':( 'int', None, 'stdcall', 'user32.SetActiveWindow', (('int', None),) ), 'user32.setcapture':( 'int', None, 'stdcall', 'user32.SetCapture', (('int', None),) ), 'user32.setcaretblinktime':( 'int', None, 'stdcall', 'user32.SetCaretBlinkTime', (('int', None),) ), 'user32.setcaretpos':( 'int', None, 'stdcall', 'user32.SetCaretPos', (('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.setclasslonga':( 'int', None, 'stdcall', 'user32.SetClassLongA', (('int', None), ('int', None), ('int', None)) ), 'user32.setclasslongw':( 'int', None, 'stdcall', 'user32.SetClassLongW', (('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.setclassword':( 'int', None, 'stdcall', 'user32.SetClassWord', (('int', None), ('int', None), ('int', None)) ), 'user32.setclipboarddata':( 'int', None, 'stdcall', 'user32.SetClipboardData', (('int', None), ('int', None)) ), 'user32.setclipboardviewer':( 'int', None, 'stdcall', 'user32.SetClipboardViewer', (('int', None),) ), 'user32.setconsolereservekeys':( 'int', None, 'stdcall', 'user32.SetConsoleReserveKeys', (('int', None), ('int', None)) ), 'user32.setcursor':( 'int', None, 'stdcall', 'user32.SetCursor', (('int', None),) ), 'user32.setcursorcontents':( 'int', None, 'stdcall', 'user32.SetCursorContents', (('int', None), ('int', None)) ), 'user32.setcursorpos':( 'int', None, 'stdcall', 'user32.SetCursorPos', (('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.setdebugerrorlevel':( 'int', None, 'stdcall', 'user32.SetDebugErrorLevel', (('int', None),) ), 'user32.setdeskwallpaper':( 'int', None, 'stdcall', 'user32.SetDeskWallpaper', (('void *', 'ptr'),) ), 'user32.setdlgitemint':( 'int', None, 'stdcall', 'user32.SetDlgItemInt', ( ('int', None), ('int', None), ('int', None)) ), 'user32.setdlgitemtexta':( 'int', None, 'stdcall', 'user32.SetDlgItemTextA', ( ('int', None), ('void *', 'obj')) ), 'user32.setdlgitemtextw':( 'int', None, 'stdcall', 'user32.SetDlgItemTextW', ( ('int', None), ('void *', 'obj')) ), 'user32.setdoubleclicktime':( 'int', None, 'stdcall', 'user32.SetDoubleClickTime', (('int', None),) ), 'user32.setfocus':( 'int', None, 'stdcall', 'user32.SetFocus', (('int', None),) ), 'user32.setforegroundwindow':( 'int', None, 'stdcall', 'user32.SetForegroundWindow', (('int', None),) ), 'user32.setinternalwindowpos':( 'int', None, 'stdcall', 'user32.SetInternalWindowPos', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setkeyboardstate':( 'int', None, 'stdcall', 'user32.SetKeyboardState', (('int', None),) ), 'user32.setlasterrorex':( 'int', None, 'stdcall', 'user32.SetLastErrorEx', (('int', None), ('int', None)) ), 'user32.setlayeredwindowattributes':( 'int', None, 'stdcall', 'user32.SetLayeredWindowAttributes', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setlogonnotifywindow':( 'int', None, 'stdcall', 'user32.SetLogonNotifyWindow', (('int', None),) ), 'user32.setmenu':( 'int', None, 'stdcall', 'user32.SetMenu', (('int', None), ('int', None)) ), 'user32.setmenucontexthelpid':( 'int', None, 'stdcall', 'user32.SetMenuContextHelpId', (('int', None), ('int', None)) ), 'user32.setmenudefaultitem':( 'int', None, 'stdcall', 'user32.SetMenuDefaultItem', (('int', None), ('int', None), ('int', None)) ), 'user32.setmenuinfo':( 'int', None, 'stdcall', 'user32.SetMenuInfo', (('int', None), ('int', None)) ), 'user32.setmenuitembitmaps':( 'int', None, 'stdcall', 'user32.SetMenuItemBitmaps', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setmenuiteminfoa':( 'int', None, 'stdcall', 'user32.SetMenuItemInfoA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setmenuiteminfow':( 'int', None, 'stdcall', 'user32.SetMenuItemInfoW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ), 'user32.setmessageextrainfo':( 'int', None, 'stdcall', 'user32.SetMessageExtraInfo', (('int', None),) ), 'user32.setmessagequeue':( 'int', None, 'stdcall', 'user32.SetMessageQueue', (('int', None),) ), 'user32.setparent':( 'int', None, 'stdcall', 'user32.SetParent', (('int', None), ('int', None)) ), 'user32.setprocessdefaultlayout':( 'int', None, 'stdcall', 'user32.SetProcessDefaultLayout', (('int', None),) ), 'user32.setprocesswindowstation':( 'int', None, 'stdcall', 'user32.SetProcessWindowStation', (('int', None),) ), 'user32.setprogmanwindow':( 'int', None, 'stdcall', 'user32.SetProgmanWindow', (('int', None),) ), 'user32.setpropa':( 'int', None, 'stdcall', 'user32.SetPropA', (('int', None), ('int', None), ('int', None)) ), 'user32.setpropw':( 'int', None, 'stdcall', 'user32.SetPropW', (('int', None), ('int', None), ('int', None)) ), 'user32.setrect':( 'int', None, 'stdcall', 'user32.SetRect', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setrectempty':( 'int', None, 'stdcall', 'user32.SetRectEmpty', (('int', None),) ), 'user32.setscrollinfo':( 'int', None, 'stdcall', 'user32.SetScrollInfo', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.setscrollpos':( 'int', None, 'stdcall', 'user32.SetScrollPos', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setscrollrange':( 'int', None, 'stdcall', 'user32.SetScrollRange', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setshellwindow':( 'int', None, 'stdcall', 'user32.SetShellWindow', (('int', None),) ), 'user32.setshellwindowex':( 'int', None, 'stdcall', 'user32.SetShellWindowEx', (('int', None), ('int', None)) ), 'user32.setsyscolors':( 'int', None, 'stdcall', 'user32.SetSysColors', (('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.setsyscolorstemp':( 'int', None, 'stdcall', 'user32.SetSysColorsTemp', (('int', None), ('int', None), ('int', None)) ), 'user32.setsystemcursor':( 'int', None, 'stdcall', 'user32.SetSystemCursor', (('int', None), ('int', None)) ), 'user32.setsystemmenu':( 'int', None, 'stdcall', 'user32.SetSystemMenu', (('int', None), ('int', None)) ), 'user32.setsystemtimer':( 'int', None, 'stdcall', 'user32.SetSystemTimer', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.settaskmanwindow':( 'int', None, 'stdcall', 'user32.SetTaskmanWindow', (('int', None),) ), 'user32.setthreaddesktop':( 'int', None, 'stdcall', 'user32.SetThreadDesktop', (('int', None),) ), 'user32.settimer':( 'int', None, 'stdcall', 'user32.SetTimer', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setuserobjectinformationa':( 'int', None, 'stdcall', 'user32.SetUserObjectInformationA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setuserobjectinformationw':( 'int', None, 'stdcall', 'user32.SetUserObjectInformationW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setuserobjectsecurity':( 'int', None, 'stdcall', 'user32.SetUserObjectSecurity', (('int', None), ('int', None), ('int', None)) ), 'user32.setwineventhook':( 'int', None, 'stdcall', 'user32.SetWinEventHook', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setwindowcontexthelpid':( 'int', None, 'stdcall', 'user32.SetWindowContextHelpId', (('int', None), ('int', None)) ), 'user32.setwindowlonga':( 'int', None, 'stdcall', 'user32.SetWindowLongA', ( ('int', None), ('void *', 'obj')) ), 'user32.setwindowlongw':( 'int', None, 'stdcall', 'user32.SetWindowLongW', ( ('int', None), ('void *', 'obj')) ), 'user32.setwindowplacement':( 'int', None, 'stdcall', 'user32.SetWindowPlacement', (('int', None), ('int', None)) ), 'user32.setwindowpos':( 'int', None, 'stdcall', 'user32.SetWindowPos', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setwindowrgn':( 'int', None, 'stdcall', 'user32.SetWindowRgn', (('int', None), ('int', None), ('int', None)) ), 'user32.setwindowstationuser':( 'int', None, 'stdcall', 'user32.SetWindowStationUser', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setwindowtexta':( 'int', None, 'stdcall', 'user32.SetWindowTextA', ( ('void *', 'obj'),) ), 'user32.setwindowtextw':( 'int', None, 'stdcall', 'user32.SetWindowTextW', ( ('void *', 'obj'),) ), 'user32.setwindowword':( 'int', None, 'stdcall', 'user32.SetWindowWord', (('int', None), ('int', None), ('int', None)) ), 'user32.setwindowshooka':( 'int', None, 'stdcall', 'user32.SetWindowsHookA', (('int', None), ('int', None)) ), 'user32.setwindowshookexa':( 'int', None, 'stdcall', 'user32.SetWindowsHookExA', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setwindowshookexw':( 'int', None, 'stdcall', 'user32.SetWindowsHookExW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.setwindowshookw':( 'int', None, 'stdcall', 'user32.SetWindowsHookW', (('int', None), ('int', None)) ), 'user32.showcaret':( 'int', None, 'stdcall', 'user32.ShowCaret', (('int', None),) ), 'user32.showcursor':( 'int', None, 'stdcall', 'user32.ShowCursor', (('int', None),) ), 'user32.showownedpopups':( 'int', None, 'stdcall', 'user32.ShowOwnedPopups', (('int', None), ('int', None)) ), 'user32.showscrollbar':( 'int', None, 'stdcall', 'user32.ShowScrollBar', (('int', None), ('int', None), ('int', None)) ), 'user32.showstartglass':( 'int', None, 'stdcall', 'user32.ShowStartGlass', (('int', None),) ), 'user32.showwindow':( 'int', None, 'stdcall', 'user32.ShowWindow', (('int', None), ('int', None)) ), 'user32.showwindowasync':( 'int', None, 'stdcall', 'user32.ShowWindowAsync', (('int', None), ('int', None)) ), 'user32.softmodalmessagebox':( 'int', None, 'stdcall', 'user32.SoftModalMessageBox', () ), 'user32.subtractrect':( 'int', None, 'stdcall', 'user32.SubtractRect', (('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.swapmousebutton':( 'int', None, 'stdcall', 'user32.SwapMouseButton', (('int', None),) ), 'user32.switchdesktop':( 'int', None, 'stdcall', 'user32.SwitchDesktop', (('int', None),) ), 'user32.switchtothiswindow':( 'int', None, 'stdcall', 'user32.SwitchToThisWindow', (('int', None), ('int', None)) ), 'user32.systemparametersinfoa':( 'int', None, 'stdcall', 'user32.SystemParametersInfoA', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ), 'user32.systemparametersinfow':( 'int', None, 'stdcall', 'user32.SystemParametersInfoW', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.tabbedtextouta':( 'int', None, 'stdcall', 'user32.TabbedTextOutA', ( ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.tabbedtextoutw':( 'int', None, 'stdcall', 'user32.TabbedTextOutW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.tilechildwindows':( 'int', None, 'stdcall', 'user32.TileChildWindows', ( ('int', None),) ), 'user32.tilewindows':( 'int', None, 'stdcall', 'user32.TileWindows', ( ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.toascii':( 'int', None, 'stdcall', 'user32.ToAscii', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.toasciiex':( 'int', None, 'stdcall', 'user32.ToAsciiEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.tounicode':( 'int', None, 'stdcall', 'user32.ToUnicode', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.tounicodeex':( 'int', None, 'stdcall', 'user32.ToUnicodeEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.trackmouseevent':( 'int', None, 'stdcall', 'user32.TrackMouseEvent', (('int', None),) ), 'user32.trackpopupmenu':( 'int', None, 'stdcall', 'user32.TrackPopupMenu', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.trackpopupmenuex':( 'int', None, 'stdcall', 'user32.TrackPopupMenuEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.translateaccelerator':( 'int', None, 'stdcall', 'user32.TranslateAccelerator', (('int', None), ('int', None), ('int', None)) ), 'user32.translateacceleratora':( 'int', None, 'stdcall', 'user32.TranslateAcceleratorA', (('int', None), ('int', None), ('int', None)) ), 'user32.translateacceleratorw':( 'int', None, 'stdcall', 'user32.TranslateAcceleratorW', (('int', None), ('int', None), ('int', None)) ), 'user32.translatemdisysaccel':( 'int', None, 'stdcall', 'user32.TranslateMDISysAccel', ( ('int', None),) ), 'user32.translatemessage':( 'int', None, 'stdcall', 'user32.TranslateMessage', (('void *', 'ptr'),) ), 'user32.translatemessageex':( 'int', None, 'stdcall', 'user32.TranslateMessageEx', (('int', None), ('int', None)) ), 'user32.unhookwinevent':( 'int', None, 'stdcall', 'user32.UnhookWinEvent', (('int', None),) ), 'user32.unhookwindowshook':( 'int', None, 'stdcall', 'user32.UnhookWindowsHook', (('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.unhookwindowshookex':( 'int', None, 'stdcall', 'user32.UnhookWindowsHookEx', (('int', None),) ), 'user32.unionrect':( 'int', None, 'stdcall', 'user32.UnionRect', (('void *', 'ptr'), ('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.unloadkeyboardlayout':( 'int', None, 'stdcall', 'user32.UnloadKeyboardLayout', (('int', None),) ), 'user32.unlockwindowstation':( 'int', None, 'stdcall', 'user32.UnlockWindowStation', (('int', None),) ), 'user32.unpackddelparam':( 'int', None, 'stdcall', 'user32.UnpackDDElParam', (('int', None), ('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ), 'user32.unregisterclassa':( 'int', None, 'stdcall', 'user32.UnregisterClassA', (('int', None), ('int', None)) ), 'user32.unregisterclassw':( 'int', None, 'stdcall', 'user32.UnregisterClassW', (('int', None), ('int', None)) ), 'user32.unregisterdevicenotification':( 'int', None, 'stdcall', 'user32.UnregisterDeviceNotification', (('int', None),) ), 'user32.unregisterhotkey':( 'int', None, 'stdcall', 'user32.UnregisterHotKey', (('int', None), ('int', None)) ), 'user32.unregistermessagepumphook':( 'int', None, 'cdecl', 'user32.UnregisterMessagePumpHook', () ), 'user32.unregisteruserapihook':( 'int', None, 'cdecl', 'user32.UnregisterUserApiHook', () ), 'user32.updatelayeredwindow':( 'int', None, 'stdcall', 'user32.UpdateLayeredWindow', (('int', None), ('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ), 'user32.updateperusersystemparameters':( 'int', None, 'stdcall', 'user32.UpdatePerUserSystemParameters', (('int', None), ('int', None)) ), 'user32.updatewindow':( 'int', None, 'stdcall', 'user32.UpdateWindow', () ), 'user32.user32initializeimmentrytable':( 'int', None, 'stdcall', 'user32.User32InitializeImmEntryTable', (('int', None),) ), 'user32.userclientdllinitialize':( 'int', None, 'stdcall', 'user32.UserClientDllInitialize', (('int', None), ('int', None), ('int', None)) ), 'user32.userhandlegrantaccess':( 'int', None, 'stdcall', 'user32.UserHandleGrantAccess', (('int', None), ('int', None), ('int', None)) ), 'user32.userlpkpsmtextout':( 'int', None, 'stdcall', 'user32.UserLpkPSMTextOut', (('int', None), ('int', None), ('DWORD', None), ('int', None), ('int', None), ('int', None)) ), 'user32.userlpktabbedtextout':( 'int', None, 'stdcall', 'user32.UserLpkTabbedTextOut', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.userrealizepalette':( 'int', None, 'stdcall', 'user32.UserRealizePalette', (('int', None),) ), 'user32.userregisterwowhandlers':( 'int', None, 'stdcall', 'user32.UserRegisterWowHandlers', (('int', None), ('int', None)) ), 'user32.vripoutput':( 'int', None, 'cdecl', 'user32.VRipOutput', () ), 'user32.vtagoutput':( 'int', None, 'cdecl', 'user32.VTagOutput', () ), 'user32.validaterect':( 'int', None, 'stdcall', 'user32.ValidateRect', (('int', None), ('int', None)) ), 'user32.validatergn':( 'int', None, 'stdcall', 'user32.ValidateRgn', (('int', None), ('int', None)) ), 'user32.vkkeyscana':( 'int', None, 'stdcall', 'user32.VkKeyScanA', ( ('int', None),) ), 'user32.vkkeyscanexa':( 'int', None, 'stdcall', 'user32.VkKeyScanExA', ( ('int', None), ('int', None)) ), 'user32.vkkeyscanexw':( 'int', None, 'stdcall', 'user32.VkKeyScanExW', (('int', None), ('int', None)) ), 'user32.vkkeyscanw':( 'int', None, 'stdcall', 'user32.VkKeyScanW', (('int', None),) ), 'user32.wcstombex':( 'int', None, 'stdcall', 'user32.WCSToMBEx', (('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ), 'user32.winnlsenableime':( 'int', None, 'stdcall', 'user32.WINNLSEnableIME', (('int', None), ('int', None)) ), 'user32.winnlsgetenablestatus':( 'int', None, 'stdcall', 'user32.WINNLSGetEnableStatus', (('int', None),) ), 'user32.winnlsgetimehotkey':( 'int', None, 'stdcall', 'user32.WINNLSGetIMEHotkey', (('int', None),) ), 'user32.waitforinputidle':( 'int', None, 'stdcall', 'user32.WaitForInputIdle', (('int', None), ('int', None)) ), 'user32.waitmessage':( 'int', None, 'cdecl', 'user32.WaitMessage', () ), 'user32.win32poolallocationstats':( 'int', None, 'stdcall', 'user32.Win32PoolAllocationStats', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.winhelpa':( 'int', None, 'stdcall', 'user32.WinHelpA', ( ('int', None), ('int', None), ('int', None)) ), 'user32.winhelpw':( 'int', None, 'stdcall', 'user32.WinHelpW', ( ('int', None), ('int', None), ('int', None)) ), 'user32.windowfromdc':( 'int', None, 'stdcall', 'user32.WindowFromDC', (('int', None),) ), 'user32.windowfrompoint':( 'int', None, 'stdcall', 'user32.WindowFromPoint', (('int', None), ('int', None)) ), 'user32.keybd_event':( 'int', None, 'stdcall', 'user32.keybd_event', (('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.mouse_event':( 'int', None, 'stdcall', 'user32.mouse_event', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ), 'user32.wsprintfa':( 'int', None, 'cdecl', 'user32.wsprintfA', (('int', None), ('int', None)) ), 'user32.wsprintfw':( 'int', None, 'cdecl', 'user32.wsprintfW', (('void *', 'ptr'), ('int', None)) ), 'user32.wvsprintfa':( 'int', None, 'stdcall', 'user32.wvsprintfA', (('int', None), ('int', None), ('int', None)) ), 'user32.wvsprintfw':( 'int', None, 'stdcall', 'user32.wvsprintfW', (('int', None), ('int', None), ('int', None)) ), }
api_defs = {'user32.main_entry': ('int', None, 'stdcall', 'user32.main_entry', (('int', None), ('int', None), ('int', None))), 'user32.activatekeyboardlayout': ('int', None, 'stdcall', 'user32.ActivateKeyboardLayout', (('int', None), ('int', None))), 'user32.adjustwindowrect': ('int', None, 'stdcall', 'user32.AdjustWindowRect', (('void *', 'ptr'), ('int', None), ('int', None))), 'user32.adjustwindowrectex': ('int', None, 'stdcall', 'user32.AdjustWindowRectEx', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None))), 'user32.alignrects': ('int', None, 'stdcall', 'user32.AlignRects', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None))), 'user32.allowforegroundactivation': ('int', None, 'cdecl', 'user32.AllowForegroundActivation', ()), 'user32.allowsetforegroundwindow': ('int', None, 'stdcall', 'user32.AllowSetForegroundWindow', (('int', None),)), 'user32.animatewindow': ('int', None, 'stdcall', 'user32.AnimateWindow', (('int', None), ('int', None))), 'user32.anypopup': ('int', None, 'cdecl', 'user32.AnyPopup', ()), 'user32.appendmenua': ('int', None, 'stdcall', 'user32.AppendMenuA', (('int', None), ('int', None), ('int', None))), 'user32.appendmenuw': ('int', None, 'stdcall', 'user32.AppendMenuW', (('int', None), ('int', None), ('int', None))), 'user32.arrangeiconicwindows': ('int', None, 'stdcall', 'user32.ArrangeIconicWindows', (('int', None),)), 'user32.attachthreadinput': ('int', None, 'stdcall', 'user32.AttachThreadInput', (('int', None), ('int', None), ('int', None))), 'user32.begindeferwindowpos': ('int', None, 'stdcall', 'user32.BeginDeferWindowPos', (('int', None),)), 'user32.beginpaint': ('int', None, 'stdcall', 'user32.BeginPaint', (('int', None), ('void *', 'ptr'))), 'user32.blockinput': ('int', None, 'stdcall', 'user32.BlockInput', (('int', None),)), 'user32.bringwindowtotop': ('int', None, 'stdcall', 'user32.BringWindowToTop', (('int', None),)), 'user32.broadcastsystemmessage': ('int', None, 'stdcall', 'user32.BroadcastSystemMessage', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.broadcastsystemmessagea': ('int', None, 'stdcall', 'user32.BroadcastSystemMessageA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.broadcastsystemmessageexa': ('int', None, 'stdcall', 'user32.BroadcastSystemMessageExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.broadcastsystemmessageexw': ('int', None, 'stdcall', 'user32.BroadcastSystemMessageExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.broadcastsystemmessagew': ('int', None, 'stdcall', 'user32.BroadcastSystemMessageW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.buildreasonarray': ('int', None, 'stdcall', 'user32.BuildReasonArray', (('int', None), ('int', None), ('int', None))), 'user32.calcmenubar': ('int', None, 'stdcall', 'user32.CalcMenuBar', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.callmsgfilter': ('int', None, 'stdcall', 'user32.CallMsgFilter', (('int', None), ('int', None))), 'user32.callmsgfiltera': ('int', None, 'stdcall', 'user32.CallMsgFilterA', (('int', None), ('int', None))), 'user32.callmsgfilterw': ('int', None, 'stdcall', 'user32.CallMsgFilterW', (('void *', 'ptr'), ('int', None))), 'user32.callnexthookex': ('int', None, 'stdcall', 'user32.CallNextHookEx', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.callwindowproca': ('int', None, 'stdcall', 'user32.CallWindowProcA', (('void *', 'obj'), ('int', None), ('int', None), ('int', None))), 'user32.callwindowprocw': ('int', None, 'stdcall', 'user32.CallWindowProcW', (('void *', 'obj'), ('int', None), ('int', None), ('int', None))), 'user32.cascadechildwindows': ('int', None, 'stdcall', 'user32.CascadeChildWindows', (('int', None),)), 'user32.cascadewindows': ('int', None, 'stdcall', 'user32.CascadeWindows', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.changeclipboardchain': ('int', None, 'stdcall', 'user32.ChangeClipboardChain', (('int', None), ('int', None))), 'user32.changedisplaysettingsa': ('int', None, 'stdcall', 'user32.ChangeDisplaySettingsA', (('int', None), ('int', None))), 'user32.changedisplaysettingsexa': ('int', None, 'stdcall', 'user32.ChangeDisplaySettingsExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.changedisplaysettingsexw': ('int', None, 'stdcall', 'user32.ChangeDisplaySettingsExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.changedisplaysettingsw': ('int', None, 'stdcall', 'user32.ChangeDisplaySettingsW', (('int', None), ('int', None))), 'user32.changemenua': ('int', None, 'stdcall', 'user32.ChangeMenuA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.changemenuw': ('int', None, 'stdcall', 'user32.ChangeMenuW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.charlowera': ('int', None, 'stdcall', 'user32.CharLowerA', (('int', None),)), 'user32.charlowerbuffa': ('int', None, 'stdcall', 'user32.CharLowerBuffA', (('int', None), ('int', None))), 'user32.charlowerbuffw': ('int', None, 'stdcall', 'user32.CharLowerBuffW', (('void *', 'ptr'), ('int', None))), 'user32.charlowerw': ('int', None, 'stdcall', 'user32.CharLowerW', (('void *', 'ptr'),)), 'user32.charnexta': ('int', None, 'stdcall', 'user32.CharNextA', (('int', None),)), 'user32.charnextexa': ('int', None, 'stdcall', 'user32.CharNextExA', (('int', None), ('int', None), ('int', None))), 'user32.charnextw': ('int', None, 'stdcall', 'user32.CharNextW', (('int', None),)), 'user32.charpreva': ('int', None, 'stdcall', 'user32.CharPrevA', (('int', None), ('int', None))), 'user32.charprevexa': ('int', None, 'stdcall', 'user32.CharPrevExA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.charprevw': ('int', None, 'stdcall', 'user32.CharPrevW', (('int', None), ('int', None))), 'user32.chartooema': ('int', None, 'stdcall', 'user32.CharToOemA', (('int', None), ('int', None))), 'user32.chartooembuffa': ('int', None, 'stdcall', 'user32.CharToOemBuffA', (('int', None), ('int', None), ('int', None))), 'user32.chartooembuffw': ('int', None, 'stdcall', 'user32.CharToOemBuffW', (('int', None), ('int', None), ('int', None))), 'user32.chartooemw': ('int', None, 'stdcall', 'user32.CharToOemW', (('int', None), ('int', None))), 'user32.charuppera': ('int', None, 'stdcall', 'user32.CharUpperA', (('int', None),)), 'user32.charupperbuffa': ('int', None, 'stdcall', 'user32.CharUpperBuffA', (('int', None), ('int', None))), 'user32.charupperbuffw': ('int', None, 'stdcall', 'user32.CharUpperBuffW', (('void *', 'ptr'), ('int', None))), 'user32.charupperw': ('int', None, 'stdcall', 'user32.CharUpperW', (('void *', 'ptr'),)), 'user32.checkdlgbutton': ('int', None, 'stdcall', 'user32.CheckDlgButton', (('int', None), ('int', None))), 'user32.checkmenuitem': ('int', None, 'stdcall', 'user32.CheckMenuItem', (('int', None), ('int', None))), 'user32.checkmenuradioitem': ('int', None, 'stdcall', 'user32.CheckMenuRadioItem', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.checkradiobutton': ('int', None, 'stdcall', 'user32.CheckRadioButton', (('int', None), ('int', None), ('int', None))), 'user32.childwindowfrompoint': ('int', None, 'stdcall', 'user32.ChildWindowFromPoint', (('int', None), ('int', None))), 'user32.childwindowfrompointex': ('int', None, 'stdcall', 'user32.ChildWindowFromPointEx', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.cliimmsethotkey': ('int', None, 'stdcall', 'user32.CliImmSetHotKey', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.clientthreadsetup': ('int', None, 'cdecl', 'user32.ClientThreadSetup', ()), 'user32.clienttoscreen': ('int', None, 'stdcall', 'user32.ClientToScreen', (('void *', 'ptr'),)), 'user32.clipcursor': ('int', None, 'stdcall', 'user32.ClipCursor', (('int', None),)), 'user32.closeclipboard': ('int', None, 'cdecl', 'user32.CloseClipboard', ()), 'user32.closedesktop': ('int', None, 'stdcall', 'user32.CloseDesktop', (('int', None),)), 'user32.closewindow': ('int', None, 'stdcall', 'user32.CloseWindow', ()), 'user32.closewindowstation': ('int', None, 'stdcall', 'user32.CloseWindowStation', (('int', None),)), 'user32.copyacceleratortablea': ('int', None, 'stdcall', 'user32.CopyAcceleratorTableA', (('int', None), ('int', None), ('int', None))), 'user32.copyacceleratortablew': ('int', None, 'stdcall', 'user32.CopyAcceleratorTableW', (('int', None), ('int', None), ('int', None))), 'user32.copyicon': ('int', None, 'stdcall', 'user32.CopyIcon', (('int', None),)), 'user32.copyimage': ('int', None, 'stdcall', 'user32.CopyImage', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.copyrect': ('int', None, 'stdcall', 'user32.CopyRect', (('int', None), ('int', None))), 'user32.countclipboardformats': ('int', None, 'cdecl', 'user32.CountClipboardFormats', ()), 'user32.createacceleratortablea': ('int', None, 'stdcall', 'user32.CreateAcceleratorTableA', (('int', None), ('int', None))), 'user32.createacceleratortablew': ('int', None, 'stdcall', 'user32.CreateAcceleratorTableW', (('int', None), ('int', None))), 'user32.createcaret': ('int', None, 'stdcall', 'user32.CreateCaret', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.createcursor': ('int', None, 'stdcall', 'user32.CreateCursor', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.createdesktopa': ('int', None, 'stdcall', 'user32.CreateDesktopA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.createdesktopw': ('int', None, 'stdcall', 'user32.CreateDesktopW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.createdialogindirectparama': ('int', None, 'stdcall', 'user32.CreateDialogIndirectParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.createdialogindirectparamaorw': ('int', None, 'stdcall', 'user32.CreateDialogIndirectParamAorW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'), ('int', None))), 'user32.createdialogindirectparamw': ('int', None, 'stdcall', 'user32.CreateDialogIndirectParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.createdialogparama': ('int', None, 'stdcall', 'user32.CreateDialogParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.createdialogparamw': ('int', None, 'stdcall', 'user32.CreateDialogParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.createicon': ('int', None, 'stdcall', 'user32.CreateIcon', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.createiconfromresource': ('int', None, 'stdcall', 'user32.CreateIconFromResource', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.createiconfromresourceex': ('int', None, 'stdcall', 'user32.CreateIconFromResourceEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.createiconindirect': ('int', None, 'stdcall', 'user32.CreateIconIndirect', (('void *', 'ptr'),)), 'user32.createmdiwindowa': ('int', None, 'stdcall', 'user32.CreateMDIWindowA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None))), 'user32.createmdiwindoww': ('int', None, 'stdcall', 'user32.CreateMDIWindowW', (('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None))), 'user32.createmenu': ('int', None, 'cdecl', 'user32.CreateMenu', ()), 'user32.createpopupmenu': ('int', None, 'cdecl', 'user32.CreatePopupMenu', ()), 'user32.createsystemthreads': ('int', None, 'stdcall', 'user32.CreateSystemThreads', (('int', None), ('int', None))), 'user32.createwindowexa': ('int', None, 'stdcall', 'user32.CreateWindowExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None), ('int', None))), 'user32.createwindowexw': ('int', None, 'stdcall', 'user32.CreateWindowExW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None), ('int', None))), 'user32.createwindowstationa': ('int', None, 'stdcall', 'user32.CreateWindowStationA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.createwindowstationw': ('int', None, 'stdcall', 'user32.CreateWindowStationW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.csrbroadcastsystemmessageexw': ('int', None, 'stdcall', 'user32.CsrBroadcastSystemMessageExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ctxinituser32': ('int', None, 'cdecl', 'user32.CtxInitUser32', ()), 'user32.ddeabandontransaction': ('int', None, 'stdcall', 'user32.DdeAbandonTransaction', (('int', None), ('int', None), ('int', None))), 'user32.ddeaccessdata': ('int', None, 'stdcall', 'user32.DdeAccessData', (('int', None), ('int', None))), 'user32.ddeadddata': ('int', None, 'stdcall', 'user32.DdeAddData', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddeclienttransaction': ('int', None, 'stdcall', 'user32.DdeClientTransaction', (('int', None), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddecmpstringhandles': ('int', None, 'stdcall', 'user32.DdeCmpStringHandles', (('int', None), ('int', None))), 'user32.ddeconnect': ('int', None, 'stdcall', 'user32.DdeConnect', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'))), 'user32.ddeconnectlist': ('int', None, 'stdcall', 'user32.DdeConnectList', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'))), 'user32.ddecreatedatahandle': ('int', None, 'stdcall', 'user32.DdeCreateDataHandle', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddecreatestringhandlea': ('int', None, 'stdcall', 'user32.DdeCreateStringHandleA', (('int', None), ('int', None), ('int', None))), 'user32.ddecreatestringhandlew': ('int', None, 'stdcall', 'user32.DdeCreateStringHandleW', (('int', None), ('int', None), ('int', None))), 'user32.ddedisconnect': ('int', None, 'stdcall', 'user32.DdeDisconnect', (('int', None),)), 'user32.ddedisconnectlist': ('int', None, 'stdcall', 'user32.DdeDisconnectList', (('int', None),)), 'user32.ddeenablecallback': ('int', None, 'stdcall', 'user32.DdeEnableCallback', (('int', None), ('int', None), ('void *', 'obj'))), 'user32.ddefreedatahandle': ('int', None, 'stdcall', 'user32.DdeFreeDataHandle', (('int', None),)), 'user32.ddefreestringhandle': ('int', None, 'stdcall', 'user32.DdeFreeStringHandle', (('int', None), ('int', None))), 'user32.ddegetdata': ('int', None, 'stdcall', 'user32.DdeGetData', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddegetlasterror': ('int', None, 'stdcall', 'user32.DdeGetLastError', (('int', None),)), 'user32.ddegetqualityofservice': ('int', None, 'stdcall', 'user32.DdeGetQualityOfService', (('int', None), ('int', None), ('void *', 'ptr'))), 'user32.ddeimpersonateclient': ('int', None, 'stdcall', 'user32.DdeImpersonateClient', (('int', None),)), 'user32.ddeinitializea': ('int', None, 'stdcall', 'user32.DdeInitializeA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddeinitializew': ('int', None, 'stdcall', 'user32.DdeInitializeW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddekeepstringhandle': ('int', None, 'stdcall', 'user32.DdeKeepStringHandle', (('int', None), ('int', None))), 'user32.ddenameservice': ('int', None, 'stdcall', 'user32.DdeNameService', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddepostadvise': ('int', None, 'stdcall', 'user32.DdePostAdvise', (('int', None), ('int', None), ('int', None))), 'user32.ddequeryconvinfo': ('int', None, 'stdcall', 'user32.DdeQueryConvInfo', (('int', None), ('int', None), ('int', None))), 'user32.ddequerynextserver': ('int', None, 'stdcall', 'user32.DdeQueryNextServer', (('int', None), ('int', None))), 'user32.ddequerystringa': ('int', None, 'stdcall', 'user32.DdeQueryStringA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddequerystringw': ('int', None, 'stdcall', 'user32.DdeQueryStringW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.ddereconnect': ('int', None, 'stdcall', 'user32.DdeReconnect', (('int', None),)), 'user32.ddesetqualityofservice': ('int', None, 'stdcall', 'user32.DdeSetQualityOfService', (('int', None), ('int', None), ('int', None))), 'user32.ddesetuserhandle': ('int', None, 'stdcall', 'user32.DdeSetUserHandle', (('int', None), ('int', None), ('int', None))), 'user32.ddeunaccessdata': ('int', None, 'stdcall', 'user32.DdeUnaccessData', (('int', None),)), 'user32.ddeuninitialize': ('int', None, 'stdcall', 'user32.DdeUninitialize', (('int', None),)), 'user32.defdlgproca': ('int', None, 'stdcall', 'user32.DefDlgProcA', (('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj'))), 'user32.defdlgprocw': ('int', None, 'stdcall', 'user32.DefDlgProcW', (('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj'))), 'user32.defframeproca': ('int', None, 'stdcall', 'user32.DefFrameProcA', (('void *', 'obj'), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.defframeprocw': ('int', None, 'stdcall', 'user32.DefFrameProcW', (('void *', 'obj'), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.defmdichildproca': ('int', None, 'stdcall', 'user32.DefMDIChildProcA', (('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.defmdichildprocw': ('int', None, 'stdcall', 'user32.DefMDIChildProcW', (('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.defrawinputproc': ('int', None, 'stdcall', 'user32.DefRawInputProc', (('int', None), ('int', None), ('int', None))), 'user32.defwindowproca': ('int', None, 'stdcall', 'user32.DefWindowProcA', (('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.defwindowprocw': ('int', None, 'stdcall', 'user32.DefWindowProcW', (('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.deferwindowpos': ('int', None, 'stdcall', 'user32.DeferWindowPos', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.deletemenu': ('int', None, 'stdcall', 'user32.DeleteMenu', (('int', None), ('int', None), ('int', None))), 'user32.deregistershellhookwindow': ('int', None, 'stdcall', 'user32.DeregisterShellHookWindow', (('int', None),)), 'user32.destroyacceleratortable': ('int', None, 'stdcall', 'user32.DestroyAcceleratorTable', (('int', None),)), 'user32.destroycaret': ('int', None, 'cdecl', 'user32.DestroyCaret', ()), 'user32.destroycursor': ('int', None, 'stdcall', 'user32.DestroyCursor', (('int', None),)), 'user32.destroyicon': ('int', None, 'stdcall', 'user32.DestroyIcon', (('int', None),)), 'user32.destroymenu': ('int', None, 'stdcall', 'user32.DestroyMenu', (('int', None),)), 'user32.destroyreasons': ('int', None, 'stdcall', 'user32.DestroyReasons', (('int', None),)), 'user32.destroywindow': ('int', None, 'stdcall', 'user32.DestroyWindow', (('int', None),)), 'user32.deviceeventworker': ('int', None, 'stdcall', 'user32.DeviceEventWorker', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.dialogboxindirectparama': ('int', None, 'stdcall', 'user32.DialogBoxIndirectParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.dialogboxindirectparamaorw': ('int', None, 'stdcall', 'user32.DialogBoxIndirectParamAorW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'), ('int', None))), 'user32.dialogboxindirectparamw': ('int', None, 'stdcall', 'user32.DialogBoxIndirectParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.dialogboxparama': ('int', None, 'stdcall', 'user32.DialogBoxParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.dialogboxparamw': ('int', None, 'stdcall', 'user32.DialogBoxParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.disableprocesswindowsghosting': ('int', None, 'cdecl', 'user32.DisableProcessWindowsGhosting', ()), 'user32.dispatchmessagea': ('int', None, 'stdcall', 'user32.DispatchMessageA', (('int', None),)), 'user32.dispatchmessagew': ('int', None, 'stdcall', 'user32.DispatchMessageW', (('void *', 'ptr'),)), 'user32.displayexitwindowswarnings': ('int', None, 'stdcall', 'user32.DisplayExitWindowsWarnings', (('int', None),)), 'user32.dlgdirlista': ('int', None, 'stdcall', 'user32.DlgDirListA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.dlgdirlistcomboboxa': ('int', None, 'stdcall', 'user32.DlgDirListComboBoxA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.dlgdirlistcomboboxw': ('int', None, 'stdcall', 'user32.DlgDirListComboBoxW', (('void *', 'obj'), ('int', None), ('int', None), ('int', None))), 'user32.dlgdirlistw': ('int', None, 'stdcall', 'user32.DlgDirListW', (('void *', 'obj'), ('int', None), ('int', None), ('int', None))), 'user32.dlgdirselectcomboboxexa': ('int', None, 'stdcall', 'user32.DlgDirSelectComboBoxExA', (('int', None), ('int', None), ('int', None))), 'user32.dlgdirselectcomboboxexw': ('int', None, 'stdcall', 'user32.DlgDirSelectComboBoxExW', (('void *', 'ptr'), ('int', None), ('int', None))), 'user32.dlgdirselectexa': ('int', None, 'stdcall', 'user32.DlgDirSelectExA', (('int', None), ('int', None), ('int', None))), 'user32.dlgdirselectexw': ('int', None, 'stdcall', 'user32.DlgDirSelectExW', (('void *', 'ptr'), ('int', None), ('int', None))), 'user32.dragdetect': ('int', None, 'stdcall', 'user32.DragDetect', (('int', None), ('int', None), ('int', None))), 'user32.dragobject': ('int', None, 'stdcall', 'user32.DragObject', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawanimatedrects': ('int', None, 'stdcall', 'user32.DrawAnimatedRects', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawcaption': ('int', None, 'stdcall', 'user32.DrawCaption', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawcaptiontempa': ('int', None, 'stdcall', 'user32.DrawCaptionTempA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None))), 'user32.drawcaptiontempw': ('int', None, 'stdcall', 'user32.DrawCaptionTempW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawedge': ('int', None, 'stdcall', 'user32.DrawEdge', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None))), 'user32.drawfocusrect': ('int', None, 'stdcall', 'user32.DrawFocusRect', (('int', None), ('void *', 'ptr'))), 'user32.drawframe': ('int', None, 'stdcall', 'user32.DrawFrame', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None))), 'user32.drawframecontrol': ('int', None, 'stdcall', 'user32.DrawFrameControl', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None))), 'user32.drawicon': ('int', None, 'stdcall', 'user32.DrawIcon', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawiconex': ('int', None, 'stdcall', 'user32.DrawIconEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawmenubar': ('int', None, 'stdcall', 'user32.DrawMenuBar', (('int', None),)), 'user32.drawmenubartemp': ('int', None, 'stdcall', 'user32.DrawMenuBarTemp', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawstatea': ('int', None, 'stdcall', 'user32.DrawStateA', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawstatew': ('int', None, 'stdcall', 'user32.DrawStateW', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawtexta': ('int', None, 'stdcall', 'user32.DrawTextA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.drawtextexa': ('int', None, 'stdcall', 'user32.DrawTextExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'))), 'user32.drawtextexw': ('int', None, 'stdcall', 'user32.DrawTextExW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'))), 'user32.drawtextw': ('int', None, 'stdcall', 'user32.DrawTextW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None))), 'user32.editwndproc': ('int', None, 'stdcall', 'user32.EditWndProc', (('int', None), ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj'))), 'user32.emptyclipboard': ('int', None, 'cdecl', 'user32.EmptyClipboard', ()), 'user32.enablemenuitem': ('int', None, 'stdcall', 'user32.EnableMenuItem', (('int', None), ('int', None))), 'user32.enablescrollbar': ('int', None, 'stdcall', 'user32.EnableScrollBar', (('int', None), ('int', None), ('int', None))), 'user32.enablewindow': ('int', None, 'stdcall', 'user32.EnableWindow', (('int', None), ('int', None))), 'user32.enddeferwindowpos': ('int', None, 'stdcall', 'user32.EndDeferWindowPos', (('int', None),)), 'user32.enddialog': ('int', None, 'stdcall', 'user32.EndDialog', (('int', None),)), 'user32.endmenu': ('int', None, 'cdecl', 'user32.EndMenu', ()), 'user32.endpaint': ('int', None, 'stdcall', 'user32.EndPaint', (('int', None), ('void *', 'ptr'))), 'user32.endtask': ('int', None, 'stdcall', 'user32.EndTask', (('int', None), ('int', None), ('int', None))), 'user32.enterreadermodehelper': ('int', None, 'stdcall', 'user32.EnterReaderModeHelper', ()), 'user32.enumchildwindows': ('int', None, 'stdcall', 'user32.EnumChildWindows', (('int', None), ('void *', 'funcptr'), ('void *', 'ptr'))), 'user32.enumclipboardformats': ('int', None, 'stdcall', 'user32.EnumClipboardFormats', (('int', None),)), 'user32.enumdesktopwindows': ('int', None, 'stdcall', 'user32.EnumDesktopWindows', (('int', None), ('void *', 'funcptr'), ('int', None))), 'user32.enumdesktopsa': ('int', None, 'stdcall', 'user32.EnumDesktopsA', (('int', None), ('void *', 'funcptr'), ('int', None))), 'user32.enumdesktopsw': ('int', None, 'stdcall', 'user32.EnumDesktopsW', (('int', None), ('void *', 'funcptr'), ('int', None))), 'user32.enumdisplaydevicesa': ('int', None, 'stdcall', 'user32.EnumDisplayDevicesA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.enumdisplaydevicesw': ('int', None, 'stdcall', 'user32.EnumDisplayDevicesW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.enumdisplaymonitors': ('int', None, 'stdcall', 'user32.EnumDisplayMonitors', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'))), 'user32.enumdisplaysettingsa': ('int', None, 'stdcall', 'user32.EnumDisplaySettingsA', (('int', None), ('int', None), ('int', None))), 'user32.enumdisplaysettingsexa': ('int', None, 'stdcall', 'user32.EnumDisplaySettingsExA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.enumdisplaysettingsexw': ('int', None, 'stdcall', 'user32.EnumDisplaySettingsExW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.enumdisplaysettingsw': ('int', None, 'stdcall', 'user32.EnumDisplaySettingsW', (('int', None), ('int', None), ('int', None))), 'user32.enumpropsa': ('int', None, 'stdcall', 'user32.EnumPropsA', (('int', None), ('void *', 'funcptr'))), 'user32.enumpropsexa': ('int', None, 'stdcall', 'user32.EnumPropsExA', (('int', None), ('void *', 'funcptr'), ('int', None))), 'user32.enumpropsexw': ('int', None, 'stdcall', 'user32.EnumPropsExW', (('int', None), ('void *', 'funcptr'), ('int', None))), 'user32.enumpropsw': ('int', None, 'stdcall', 'user32.EnumPropsW', (('int', None), ('void *', 'funcptr'))), 'user32.enumthreadwindows': ('int', None, 'stdcall', 'user32.EnumThreadWindows', (('int', None), ('void *', 'funcptr'), ('int', None))), 'user32.enumwindowstationsa': ('int', None, 'stdcall', 'user32.EnumWindowStationsA', (('void *', 'funcptr'), ('int', None))), 'user32.enumwindowstationsw': ('int', None, 'stdcall', 'user32.EnumWindowStationsW', (('void *', 'funcptr'), ('int', None))), 'user32.enumwindows': ('int', None, 'stdcall', 'user32.EnumWindows', (('void *', 'funcptr'), ('void *', 'ptr'))), 'user32.equalrect': ('int', None, 'stdcall', 'user32.EqualRect', (('int', None), ('int', None))), 'user32.excludeupdatergn': ('int', None, 'stdcall', 'user32.ExcludeUpdateRgn', (('int', None), ('int', None))), 'user32.exitwindowsex': ('int', None, 'stdcall', 'user32.ExitWindowsEx', (('int', None), ('int', None))), 'user32.fillrect': ('int', None, 'stdcall', 'user32.FillRect', (('int', None), ('void *', 'ptr'), ('int', None))), 'user32.findwindowa': ('int', None, 'stdcall', 'user32.FindWindowA', (('int', None), ('int', None))), 'user32.findwindowexa': ('int', None, 'stdcall', 'user32.FindWindowExA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.findwindowexw': ('int', None, 'stdcall', 'user32.FindWindowExW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.findwindoww': ('int', None, 'stdcall', 'user32.FindWindowW', (('int', None), ('int', None))), 'user32.flashwindow': ('int', None, 'stdcall', 'user32.FlashWindow', (('int', None), ('int', None))), 'user32.flashwindowex': ('int', None, 'stdcall', 'user32.FlashWindowEx', (('void *', 'ptr'),)), 'user32.framerect': ('int', None, 'stdcall', 'user32.FrameRect', (('int', None), ('int', None), ('int', None))), 'user32.freeddelparam': ('int', None, 'stdcall', 'user32.FreeDDElParam', (('int', None), ('void *', 'ptr'))), 'user32.getactivewindow': ('int', None, 'cdecl', 'user32.GetActiveWindow', ()), 'user32.getalttabinfo': ('int', None, 'stdcall', 'user32.GetAltTabInfo', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getalttabinfoa': ('int', None, 'stdcall', 'user32.GetAltTabInfoA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getalttabinfow': ('int', None, 'stdcall', 'user32.GetAltTabInfoW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getancestor': ('int', None, 'stdcall', 'user32.GetAncestor', (('int', None), ('int', None))), 'user32.getappcompatflags': ('int', None, 'stdcall', 'user32.GetAppCompatFlags', (('int', None),)), 'user32.getappcompatflags2': ('int', None, 'stdcall', 'user32.GetAppCompatFlags2', (('int', None),)), 'user32.getasynckeystate': ('int', None, 'stdcall', 'user32.GetAsyncKeyState', (('int', None),)), 'user32.getcapture': ('int', None, 'cdecl', 'user32.GetCapture', ()), 'user32.getcaretblinktime': ('int', None, 'cdecl', 'user32.GetCaretBlinkTime', ()), 'user32.getcaretpos': ('int', None, 'stdcall', 'user32.GetCaretPos', (('void *', 'ptr'),)), 'user32.getclassinfoa': ('int', None, 'stdcall', 'user32.GetClassInfoA', (('int', None), ('int', None), ('int', None))), 'user32.getclassinfoexa': ('int', None, 'stdcall', 'user32.GetClassInfoExA', (('int', None), ('int', None), ('void *', 'ptr'))), 'user32.getclassinfoexw': ('int', None, 'stdcall', 'user32.GetClassInfoExW', (('int', None), ('int', None), ('void *', 'ptr'))), 'user32.getclassinfow': ('int', None, 'stdcall', 'user32.GetClassInfoW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'))), 'user32.getclasslonga': ('int', None, 'stdcall', 'user32.GetClassLongA', (('int', None),)), 'user32.getclasslongw': ('int', None, 'stdcall', 'user32.GetClassLongW', (('int', None),)), 'user32.getclassnamea': ('int', None, 'stdcall', 'user32.GetClassNameA', (('int', None), ('int', None))), 'user32.getclassnamew': ('int', None, 'stdcall', 'user32.GetClassNameW', (('int', None), ('int', None), ('int', None))), 'user32.getclassword': ('int', None, 'stdcall', 'user32.GetClassWord', (('int', None),)), 'user32.getclientrect': ('int', None, 'stdcall', 'user32.GetClientRect', (('void *', 'ptr'),)), 'user32.getclipcursor': ('int', None, 'stdcall', 'user32.GetClipCursor', (('int', None),)), 'user32.getclipboarddata': ('int', None, 'stdcall', 'user32.GetClipboardData', (('int', None),)), 'user32.getclipboardformatnamea': ('int', None, 'stdcall', 'user32.GetClipboardFormatNameA', (('int', None), ('int', None), ('int', None))), 'user32.getclipboardformatnamew': ('int', None, 'stdcall', 'user32.GetClipboardFormatNameW', (('int', None), ('int', None), ('int', None))), 'user32.getclipboardowner': ('int', None, 'cdecl', 'user32.GetClipboardOwner', ()), 'user32.getclipboardsequencenumber': ('int', None, 'cdecl', 'user32.GetClipboardSequenceNumber', ()), 'user32.getclipboardviewer': ('int', None, 'cdecl', 'user32.GetClipboardViewer', ()), 'user32.getcomboboxinfo': ('int', None, 'stdcall', 'user32.GetComboBoxInfo', (('int', None), ('int', None))), 'user32.getcursor': ('int', None, 'cdecl', 'user32.GetCursor', ()), 'user32.getcursorframeinfo': ('int', None, 'stdcall', 'user32.GetCursorFrameInfo', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'))), 'user32.getcursorinfo': ('int', None, 'stdcall', 'user32.GetCursorInfo', (('int', None),)), 'user32.getcursorpos': ('int', None, 'stdcall', 'user32.GetCursorPos', (('void *', 'ptr'),)), 'user32.getdc': ('int', None, 'stdcall', 'user32.GetDC', (('int', None),)), 'user32.getdcex': ('int', None, 'stdcall', 'user32.GetDCEx', (('int', None), ('int', None), ('int', None))), 'user32.getdesktopwindow': ('int', None, 'cdecl', 'user32.GetDesktopWindow', ()), 'user32.getdialogbaseunits': ('int', None, 'cdecl', 'user32.GetDialogBaseUnits', ()), 'user32.getdlgctrlid': ('int', None, 'stdcall', 'user32.GetDlgCtrlID', ()), 'user32.getdlgitem': ('int', None, 'stdcall', 'user32.GetDlgItem', (('int', None),)), 'user32.getdlgitemint': ('int', None, 'stdcall', 'user32.GetDlgItemInt', (('int', None), ('int', None), ('int', None))), 'user32.getdlgitemtexta': ('int', None, 'stdcall', 'user32.GetDlgItemTextA', (('int', None), ('void *', 'obj'), ('int', None))), 'user32.getdlgitemtextw': ('int', None, 'stdcall', 'user32.GetDlgItemTextW', (('int', None), ('void *', 'obj'), ('int', None))), 'user32.getdoubleclicktime': ('int', None, 'cdecl', 'user32.GetDoubleClickTime', ()), 'user32.getfocus': ('int', None, 'cdecl', 'user32.GetFocus', ()), 'user32.getforegroundwindow': ('int', None, 'cdecl', 'user32.GetForegroundWindow', ()), 'user32.getguithreadinfo': ('int', None, 'stdcall', 'user32.GetGUIThreadInfo', (('int', None), ('int', None))), 'user32.getguiresources': ('int', None, 'stdcall', 'user32.GetGuiResources', (('int', None), ('int', None))), 'user32.geticoninfo': ('int', None, 'stdcall', 'user32.GetIconInfo', (('int', None), ('void *', 'ptr'))), 'user32.getinputdesktop': ('int', None, 'cdecl', 'user32.GetInputDesktop', ()), 'user32.getinputstate': ('int', None, 'cdecl', 'user32.GetInputState', ()), 'user32.getinternalwindowpos': ('int', None, 'stdcall', 'user32.GetInternalWindowPos', (('int', None), ('int', None), ('int', None))), 'user32.getkbcodepage': ('int', None, 'stdcall', 'user32.GetKBCodePage', ()), 'user32.getkeynametexta': ('int', None, 'stdcall', 'user32.GetKeyNameTextA', (('int', None), ('int', None), ('int', None))), 'user32.getkeynametextw': ('int', None, 'stdcall', 'user32.GetKeyNameTextW', (('int', None), ('int', None), ('int', None))), 'user32.getkeystate': ('int', None, 'stdcall', 'user32.GetKeyState', (('int', None),)), 'user32.getkeyboardlayout': ('int', None, 'stdcall', 'user32.GetKeyboardLayout', (('int', None),)), 'user32.getkeyboardlayoutlist': ('int', None, 'stdcall', 'user32.GetKeyboardLayoutList', (('int', None), ('int', None))), 'user32.getkeyboardlayoutnamea': ('int', None, 'stdcall', 'user32.GetKeyboardLayoutNameA', (('int', None),)), 'user32.getkeyboardlayoutnamew': ('int', None, 'stdcall', 'user32.GetKeyboardLayoutNameW', (('int', None),)), 'user32.getkeyboardstate': ('int', None, 'stdcall', 'user32.GetKeyboardState', (('int', None),)), 'user32.getkeyboardtype': ('int', None, 'stdcall', 'user32.GetKeyboardType', (('int', None),)), 'user32.getlastactivepopup': ('int', None, 'stdcall', 'user32.GetLastActivePopup', ()), 'user32.getlastinputinfo': ('int', None, 'stdcall', 'user32.GetLastInputInfo', (('int', None),)), 'user32.getlayeredwindowattributes': ('int', None, 'stdcall', 'user32.GetLayeredWindowAttributes', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getlistboxinfo': ('int', None, 'stdcall', 'user32.GetListBoxInfo', (('int', None),)), 'user32.getmenu': ('int', None, 'stdcall', 'user32.GetMenu', ()), 'user32.getmenubarinfo': ('int', None, 'stdcall', 'user32.GetMenuBarInfo', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getmenucheckmarkdimensions': ('int', None, 'cdecl', 'user32.GetMenuCheckMarkDimensions', ()), 'user32.getmenucontexthelpid': ('int', None, 'stdcall', 'user32.GetMenuContextHelpId', ()), 'user32.getmenudefaultitem': ('int', None, 'stdcall', 'user32.GetMenuDefaultItem', (('int', None), ('int', None))), 'user32.getmenuinfo': ('int', None, 'stdcall', 'user32.GetMenuInfo', (('int', None),)), 'user32.getmenuitemcount': ('int', None, 'stdcall', 'user32.GetMenuItemCount', ()), 'user32.getmenuitemid': ('int', None, 'stdcall', 'user32.GetMenuItemID', (('int', None),)), 'user32.getmenuiteminfoa': ('int', None, 'stdcall', 'user32.GetMenuItemInfoA', (('void *', 'obj'), ('int', None), ('int', None), ('int', None))), 'user32.getmenuiteminfow': ('int', None, 'stdcall', 'user32.GetMenuItemInfoW', (('int', None), ('int', None), ('int', None))), 'user32.getmenuitemrect': ('int', None, 'stdcall', 'user32.GetMenuItemRect', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getmenustate': ('int', None, 'stdcall', 'user32.GetMenuState', (('int', None), ('int', None))), 'user32.getmenustringa': ('int', None, 'stdcall', 'user32.GetMenuStringA', (('int', None), ('int', None), ('void *', 'obj'), ('int', None))), 'user32.getmenustringw': ('int', None, 'stdcall', 'user32.GetMenuStringW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getmessagea': ('int', None, 'stdcall', 'user32.GetMessageA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getmessageextrainfo': ('int', None, 'cdecl', 'user32.GetMessageExtraInfo', ()), 'user32.getmessagepos': ('int', None, 'cdecl', 'user32.GetMessagePos', ()), 'user32.getmessagetime': ('int', None, 'cdecl', 'user32.GetMessageTime', ()), 'user32.getmessagew': ('int', None, 'stdcall', 'user32.GetMessageW', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None))), 'user32.getmonitorinfoa': ('int', None, 'stdcall', 'user32.GetMonitorInfoA', (('void *', 'ptr'), ('int', None))), 'user32.getmonitorinfow': ('int', None, 'stdcall', 'user32.GetMonitorInfoW', (('void *', 'ptr'), ('void *', 'ptr'))), 'user32.getmousemovepointsex': ('int', None, 'stdcall', 'user32.GetMouseMovePointsEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getnextdlggroupitem': ('int', None, 'stdcall', 'user32.GetNextDlgGroupItem', (('void *', 'obj'), ('int', None))), 'user32.getnextdlgtabitem': ('int', None, 'stdcall', 'user32.GetNextDlgTabItem', (('void *', 'obj'), ('int', None))), 'user32.getopenclipboardwindow': ('int', None, 'cdecl', 'user32.GetOpenClipboardWindow', ()), 'user32.getparent': ('int', None, 'stdcall', 'user32.GetParent', ()), 'user32.getpriorityclipboardformat': ('int', None, 'stdcall', 'user32.GetPriorityClipboardFormat', (('int', None), ('int', None))), 'user32.getprocessdefaultlayout': ('int', None, 'stdcall', 'user32.GetProcessDefaultLayout', (('int', None),)), 'user32.getprocesswindowstation': ('int', None, 'cdecl', 'user32.GetProcessWindowStation', ()), 'user32.getprogmanwindow': ('int', None, 'cdecl', 'user32.GetProgmanWindow', ()), 'user32.getpropa': ('int', None, 'stdcall', 'user32.GetPropA', (('int', None),)), 'user32.getpropw': ('int', None, 'stdcall', 'user32.GetPropW', (('int', None),)), 'user32.getqueuestatus': ('int', None, 'stdcall', 'user32.GetQueueStatus', (('int', None),)), 'user32.getrawinputbuffer': ('int', None, 'stdcall', 'user32.GetRawInputBuffer', (('int', None), ('int', None), ('int', None))), 'user32.getrawinputdata': ('int', None, 'stdcall', 'user32.GetRawInputData', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getrawinputdeviceinfoa': ('int', None, 'stdcall', 'user32.GetRawInputDeviceInfoA', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None))), 'user32.getrawinputdeviceinfow': ('int', None, 'stdcall', 'user32.GetRawInputDeviceInfoW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getrawinputdevicelist': ('int', None, 'stdcall', 'user32.GetRawInputDeviceList', (('int', None), ('int', None), ('int', None))), 'user32.getreasontitlefromreasoncode': ('int', None, 'stdcall', 'user32.GetReasonTitleFromReasonCode', (('int', None), ('void *', 'ptr'), ('int', None))), 'user32.getregisteredrawinputdevices': ('int', None, 'stdcall', 'user32.GetRegisteredRawInputDevices', (('int', None), ('int', None), ('int', None))), 'user32.getscrollbarinfo': ('int', None, 'stdcall', 'user32.GetScrollBarInfo', (('int', None), ('int', None), ('int', None))), 'user32.getscrollinfo': ('int', None, 'stdcall', 'user32.GetScrollInfo', (('int', None), ('void *', 'obj'))), 'user32.getscrollpos': ('int', None, 'stdcall', 'user32.GetScrollPos', (('int', None),)), 'user32.getscrollrange': ('int', None, 'stdcall', 'user32.GetScrollRange', (('int', None), ('int', None), ('void *', 'obj'))), 'user32.getshellwindow': ('int', None, 'cdecl', 'user32.GetShellWindow', ()), 'user32.getsubmenu': ('int', None, 'stdcall', 'user32.GetSubMenu', (('int', None),)), 'user32.getsyscolor': ('int', None, 'stdcall', 'user32.GetSysColor', (('int', None),)), 'user32.getsyscolorbrush': ('int', None, 'stdcall', 'user32.GetSysColorBrush', (('int', None),)), 'user32.getsystemmenu': ('int', None, 'stdcall', 'user32.GetSystemMenu', (('int', None), ('int', None))), 'user32.getsystemmetrics': ('int', None, 'stdcall', 'user32.GetSystemMetrics', (('int', None),)), 'user32.gettabbedtextextenta': ('int', None, 'stdcall', 'user32.GetTabbedTextExtentA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.gettabbedtextextentw': ('int', None, 'stdcall', 'user32.GetTabbedTextExtentW', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None))), 'user32.gettaskmanwindow': ('int', None, 'cdecl', 'user32.GetTaskmanWindow', ()), 'user32.getthreaddesktop': ('int', None, 'stdcall', 'user32.GetThreadDesktop', (('int', None),)), 'user32.gettitlebarinfo': ('int', None, 'stdcall', 'user32.GetTitleBarInfo', (('int', None), ('int', None))), 'user32.gettopwindow': ('int', None, 'stdcall', 'user32.GetTopWindow', ()), 'user32.getupdaterect': ('int', None, 'stdcall', 'user32.GetUpdateRect', (('int', None), ('int', None))), 'user32.getupdatergn': ('int', None, 'stdcall', 'user32.GetUpdateRgn', (('int', None), ('int', None))), 'user32.getuserobjectinformationa': ('int', None, 'stdcall', 'user32.GetUserObjectInformationA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getuserobjectinformationw': ('int', None, 'stdcall', 'user32.GetUserObjectInformationW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getuserobjectsecurity': ('int', None, 'stdcall', 'user32.GetUserObjectSecurity', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.getwinstationinfo': ('int', None, 'stdcall', 'user32.GetWinStationInfo', (('int', None),)), 'user32.getwindow': ('int', None, 'stdcall', 'user32.GetWindow', (('int', None),)), 'user32.getwindowcontexthelpid': ('int', None, 'stdcall', 'user32.GetWindowContextHelpId', (('int', None),)), 'user32.getwindowdc': ('int', None, 'stdcall', 'user32.GetWindowDC', (('int', None),)), 'user32.getwindowinfo': ('int', None, 'stdcall', 'user32.GetWindowInfo', (('int', None),)), 'user32.getwindowlonga': ('int', None, 'stdcall', 'user32.GetWindowLongA', (('int', None),)), 'user32.getwindowlongw': ('int', None, 'stdcall', 'user32.GetWindowLongW', (('int', None),)), 'user32.getwindowmodulefilename': ('int', None, 'stdcall', 'user32.GetWindowModuleFileName', (('int', None), ('int', None))), 'user32.getwindowmodulefilenamea': ('int', None, 'stdcall', 'user32.GetWindowModuleFileNameA', (('int', None), ('int', None))), 'user32.getwindowmodulefilenamew': ('int', None, 'stdcall', 'user32.GetWindowModuleFileNameW', (('int', None), ('int', None))), 'user32.getwindowplacement': ('int', None, 'stdcall', 'user32.GetWindowPlacement', (('int', None), ('void *', 'ptr'))), 'user32.getwindowrect': ('int', None, 'stdcall', 'user32.GetWindowRect', (('void *', 'ptr'),)), 'user32.getwindowrgn': ('int', None, 'stdcall', 'user32.GetWindowRgn', (('int', None),)), 'user32.getwindowrgnbox': ('int', None, 'stdcall', 'user32.GetWindowRgnBox', (('int', None),)), 'user32.getwindowtexta': ('int', None, 'stdcall', 'user32.GetWindowTextA', (('void *', 'obj'), ('int', None))), 'user32.getwindowtextlengtha': ('int', None, 'stdcall', 'user32.GetWindowTextLengthA', ()), 'user32.getwindowtextlengthw': ('int', None, 'stdcall', 'user32.GetWindowTextLengthW', ()), 'user32.getwindowtextw': ('int', None, 'stdcall', 'user32.GetWindowTextW', (('void *', 'obj'), ('int', None))), 'user32.getwindowthreadprocessid': ('int', None, 'stdcall', 'user32.GetWindowThreadProcessId', (('int', None), ('void *', 'ptr'))), 'user32.getwindowword': ('int', None, 'stdcall', 'user32.GetWindowWord', (('int', None),)), 'user32.graystringa': ('int', None, 'stdcall', 'user32.GrayStringA', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.graystringw': ('int', None, 'stdcall', 'user32.GrayStringW', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.hidecaret': ('int', None, 'stdcall', 'user32.HideCaret', (('int', None),)), 'user32.hilitemenuitem': ('int', None, 'stdcall', 'user32.HiliteMenuItem', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.impgetimea': ('int', None, 'stdcall', 'user32.IMPGetIMEA', (('int', None), ('int', None))), 'user32.impgetimew': ('int', None, 'stdcall', 'user32.IMPGetIMEW', (('int', None), ('int', None))), 'user32.impqueryimea': ('int', None, 'stdcall', 'user32.IMPQueryIMEA', (('int', None),)), 'user32.impqueryimew': ('int', None, 'stdcall', 'user32.IMPQueryIMEW', (('int', None),)), 'user32.impsetimea': ('int', None, 'stdcall', 'user32.IMPSetIMEA', (('int', None), ('int', None))), 'user32.impsetimew': ('int', None, 'stdcall', 'user32.IMPSetIMEW', (('int', None), ('int', None))), 'user32.impersonateddeclientwindow': ('int', None, 'stdcall', 'user32.ImpersonateDdeClientWindow', (('int', None), ('int', None))), 'user32.insendmessage': ('int', None, 'cdecl', 'user32.InSendMessage', ()), 'user32.insendmessageex': ('int', None, 'stdcall', 'user32.InSendMessageEx', (('int', None),)), 'user32.inflaterect': ('int', None, 'stdcall', 'user32.InflateRect', (('void *', 'ptr'), ('int', None), ('int', None))), 'user32.initializelpkhooks': ('int', None, 'stdcall', 'user32.InitializeLpkHooks', (('int', None),)), 'user32.initializewin32entrytable': ('int', None, 'stdcall', 'user32.InitializeWin32EntryTable', (('int', None),)), 'user32.insertmenua': ('int', None, 'stdcall', 'user32.InsertMenuA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.insertmenuitema': ('int', None, 'stdcall', 'user32.InsertMenuItemA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.insertmenuitemw': ('int', None, 'stdcall', 'user32.InsertMenuItemW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'))), 'user32.insertmenuw': ('int', None, 'stdcall', 'user32.InsertMenuW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.internalgetwindowtext': ('int', None, 'stdcall', 'user32.InternalGetWindowText', (('int', None), ('int', None), ('int', None))), 'user32.intersectrect': ('int', None, 'stdcall', 'user32.IntersectRect', (('void *', 'ptr'), ('void *', 'ptr'), ('void *', 'ptr'))), 'user32.invalidaterect': ('int', None, 'stdcall', 'user32.InvalidateRect', (('int', None), ('void *', 'ptr'), ('int', None))), 'user32.invalidatergn': ('int', None, 'stdcall', 'user32.InvalidateRgn', (('int', None), ('int', None), ('int', None))), 'user32.invertrect': ('int', None, 'stdcall', 'user32.InvertRect', (('int', None), ('int', None))), 'user32.ischaralphaa': ('int', None, 'stdcall', 'user32.IsCharAlphaA', (('int', None),)), 'user32.ischaralphanumerica': ('int', None, 'stdcall', 'user32.IsCharAlphaNumericA', (('int', None),)), 'user32.ischaralphanumericw': ('int', None, 'stdcall', 'user32.IsCharAlphaNumericW', (('int', None),)), 'user32.ischaralphaw': ('int', None, 'stdcall', 'user32.IsCharAlphaW', (('int', None),)), 'user32.ischarlowera': ('int', None, 'stdcall', 'user32.IsCharLowerA', (('int', None),)), 'user32.ischarlowerw': ('int', None, 'stdcall', 'user32.IsCharLowerW', (('int', None),)), 'user32.ischaruppera': ('int', None, 'stdcall', 'user32.IsCharUpperA', (('int', None),)), 'user32.ischarupperw': ('int', None, 'stdcall', 'user32.IsCharUpperW', (('int', None),)), 'user32.ischild': ('int', None, 'stdcall', 'user32.IsChild', (('void *', 'obj'),)), 'user32.isclipboardformatavailable': ('int', None, 'stdcall', 'user32.IsClipboardFormatAvailable', (('int', None),)), 'user32.isdialogmessage': ('int', None, 'stdcall', 'user32.IsDialogMessage', (('void *', 'obj'),)), 'user32.isdialogmessagea': ('int', None, 'stdcall', 'user32.IsDialogMessageA', (('void *', 'obj'),)), 'user32.isdialogmessagew': ('int', None, 'stdcall', 'user32.IsDialogMessageW', (('void *', 'obj'),)), 'user32.isdlgbuttonchecked': ('int', None, 'stdcall', 'user32.IsDlgButtonChecked', (('int', None),)), 'user32.isguithread': ('int', None, 'stdcall', 'user32.IsGUIThread', (('int', None),)), 'user32.ishungappwindow': ('int', None, 'stdcall', 'user32.IsHungAppWindow', (('int', None),)), 'user32.isiconic': ('int', None, 'stdcall', 'user32.IsIconic', ()), 'user32.ismenu': ('int', None, 'stdcall', 'user32.IsMenu', ()), 'user32.isrectempty': ('int', None, 'stdcall', 'user32.IsRectEmpty', (('int', None),)), 'user32.isserversidewindow': ('int', None, 'stdcall', 'user32.IsServerSideWindow', ()), 'user32.iswineventhookinstalled': ('int', None, 'stdcall', 'user32.IsWinEventHookInstalled', (('int', None),)), 'user32.iswindow': ('int', None, 'stdcall', 'user32.IsWindow', ()), 'user32.iswindowenabled': ('int', None, 'stdcall', 'user32.IsWindowEnabled', ()), 'user32.iswindowindestroy': ('int', None, 'stdcall', 'user32.IsWindowInDestroy', ()), 'user32.iswindowunicode': ('int', None, 'stdcall', 'user32.IsWindowUnicode', ()), 'user32.iswindowvisible': ('int', None, 'stdcall', 'user32.IsWindowVisible', ()), 'user32.iszoomed': ('int', None, 'stdcall', 'user32.IsZoomed', ()), 'user32.killsystemtimer': ('int', None, 'stdcall', 'user32.KillSystemTimer', (('int', None), ('int', None))), 'user32.killtimer': ('int', None, 'stdcall', 'user32.KillTimer', (('int', None), ('int', None))), 'user32.loadacceleratorsa': ('int', None, 'stdcall', 'user32.LoadAcceleratorsA', (('void *', 'ptr'), ('int', None))), 'user32.loadacceleratorsw': ('int', None, 'stdcall', 'user32.LoadAcceleratorsW', (('void *', 'ptr'), ('int', None))), 'user32.loadbitmapa': ('int', None, 'stdcall', 'user32.LoadBitmapA', (('int', None), ('void *', 'ptr'))), 'user32.loadbitmapw': ('int', None, 'stdcall', 'user32.LoadBitmapW', (('int', None), ('int', None))), 'user32.loadcursora': ('int', None, 'stdcall', 'user32.LoadCursorA', (('int', None), ('void *', 'ptr'))), 'user32.loadcursorfromfilea': ('int', None, 'stdcall', 'user32.LoadCursorFromFileA', (('void *', 'ptr'),)), 'user32.loadcursorfromfilew': ('int', None, 'stdcall', 'user32.LoadCursorFromFileW', (('int', None),)), 'user32.loadcursorw': ('int', None, 'stdcall', 'user32.LoadCursorW', (('int', None), ('int', None))), 'user32.loadicona': ('int', None, 'stdcall', 'user32.LoadIconA', (('int', None), ('void *', 'ptr'))), 'user32.loadiconw': ('int', None, 'stdcall', 'user32.LoadIconW', (('int', None), ('int', None))), 'user32.loadimagea': ('int', None, 'stdcall', 'user32.LoadImageA', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.loadimagew': ('int', None, 'stdcall', 'user32.LoadImageW', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.loadkeyboardlayouta': ('int', None, 'stdcall', 'user32.LoadKeyboardLayoutA', (('int', None), ('int', None))), 'user32.loadkeyboardlayoutex': ('int', None, 'stdcall', 'user32.LoadKeyboardLayoutEx', (('int', None), ('int', None), ('int', None))), 'user32.loadkeyboardlayoutw': ('int', None, 'stdcall', 'user32.LoadKeyboardLayoutW', (('void *', 'ptr'), ('int', None))), 'user32.loadlocalfonts': ('int', None, 'cdecl', 'user32.LoadLocalFonts', ()), 'user32.loadmenua': ('int', None, 'stdcall', 'user32.LoadMenuA', (('int', None), ('int', None))), 'user32.loadmenuindirecta': ('int', None, 'stdcall', 'user32.LoadMenuIndirectA', (('int', None),)), 'user32.loadmenuindirectw': ('int', None, 'stdcall', 'user32.LoadMenuIndirectW', (('int', None),)), 'user32.loadmenuw': ('int', None, 'stdcall', 'user32.LoadMenuW', (('int', None), ('int', None))), 'user32.loadremotefonts': ('int', None, 'cdecl', 'user32.LoadRemoteFonts', ()), 'user32.loadstringa': ('int', None, 'stdcall', 'user32.LoadStringA', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None))), 'user32.loadstringw': ('int', None, 'stdcall', 'user32.LoadStringW', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None))), 'user32.locksetforegroundwindow': ('int', None, 'stdcall', 'user32.LockSetForegroundWindow', (('int', None),)), 'user32.lockwindowstation': ('int', None, 'stdcall', 'user32.LockWindowStation', (('int', None),)), 'user32.lockwindowupdate': ('int', None, 'stdcall', 'user32.LockWindowUpdate', (('int', None),)), 'user32.lockworkstation': ('int', None, 'cdecl', 'user32.LockWorkStation', ()), 'user32.lookupiconidfromdirectory': ('int', None, 'stdcall', 'user32.LookupIconIdFromDirectory', (('int', None), ('int', None))), 'user32.lookupiconidfromdirectoryex': ('int', None, 'stdcall', 'user32.LookupIconIdFromDirectoryEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.mbtowcsex': ('int', None, 'stdcall', 'user32.MBToWCSEx', (('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None))), 'user32.mb_getstring': ('int', None, 'stdcall', 'user32.MB_GetString', (('int', None),)), 'user32.mapdialogrect': ('int', None, 'stdcall', 'user32.MapDialogRect', (('int', None),)), 'user32.mapvirtualkeya': ('int', None, 'stdcall', 'user32.MapVirtualKeyA', (('int', None), ('int', None))), 'user32.mapvirtualkeyexa': ('int', None, 'stdcall', 'user32.MapVirtualKeyExA', (('int', None), ('int', None), ('int', None))), 'user32.mapvirtualkeyexw': ('int', None, 'stdcall', 'user32.MapVirtualKeyExW', (('int', None), ('int', None), ('int', None))), 'user32.mapvirtualkeyw': ('int', None, 'stdcall', 'user32.MapVirtualKeyW', (('int', None), ('int', None))), 'user32.mapwindowpoints': ('int', None, 'stdcall', 'user32.MapWindowPoints', (('void *', 'obj'), ('void *', 'ptr'), ('int', None))), 'user32.menuitemfrompoint': ('int', None, 'stdcall', 'user32.MenuItemFromPoint', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.menuwindowproca': ('int', None, 'stdcall', 'user32.MenuWindowProcA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.menuwindowprocw': ('int', None, 'stdcall', 'user32.MenuWindowProcW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.messagebeep': ('int', None, 'stdcall', 'user32.MessageBeep', (('int', None),)), 'user32.messageboxa': ('int', None, 'stdcall', 'user32.MessageBoxA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.messageboxexa': ('int', None, 'stdcall', 'user32.MessageBoxExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.messageboxexw': ('int', None, 'stdcall', 'user32.MessageBoxExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.messageboxindirecta': ('int', None, 'stdcall', 'user32.MessageBoxIndirectA', (('int', None),)), 'user32.messageboxindirectw': ('int', None, 'stdcall', 'user32.MessageBoxIndirectW', (('int', None),)), 'user32.messageboxtimeouta': ('int', None, 'stdcall', 'user32.MessageBoxTimeoutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.messageboxtimeoutw': ('int', None, 'stdcall', 'user32.MessageBoxTimeoutW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.messageboxw': ('int', None, 'stdcall', 'user32.MessageBoxW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None))), 'user32.modifymenua': ('int', None, 'stdcall', 'user32.ModifyMenuA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.modifymenuw': ('int', None, 'stdcall', 'user32.ModifyMenuW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.monitorfrompoint': ('int', None, 'stdcall', 'user32.MonitorFromPoint', (('int', None), ('int', None), ('int', None))), 'user32.monitorfromrect': ('int', None, 'stdcall', 'user32.MonitorFromRect', (('void *', 'ptr'), ('int', None))), 'user32.monitorfromwindow': ('int', None, 'stdcall', 'user32.MonitorFromWindow', (('int', None),)), 'user32.movewindow': ('int', None, 'stdcall', 'user32.MoveWindow', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.msgwaitformultipleobjects': ('int', None, 'stdcall', 'user32.MsgWaitForMultipleObjects', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.msgwaitformultipleobjectsex': ('int', None, 'stdcall', 'user32.MsgWaitForMultipleObjectsEx', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None))), 'user32.notifywinevent': ('int', None, 'stdcall', 'user32.NotifyWinEvent', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.oemkeyscan': ('int', None, 'stdcall', 'user32.OemKeyScan', (('int', None),)), 'user32.oemtochara': ('int', None, 'stdcall', 'user32.OemToCharA', (('int', None), ('int', None))), 'user32.oemtocharbuffa': ('int', None, 'stdcall', 'user32.OemToCharBuffA', (('int', None), ('int', None), ('int', None))), 'user32.oemtocharbuffw': ('int', None, 'stdcall', 'user32.OemToCharBuffW', (('int', None), ('void *', 'ptr'), ('int', None))), 'user32.oemtocharw': ('int', None, 'stdcall', 'user32.OemToCharW', (('int', None), ('int', None))), 'user32.offsetrect': ('int', None, 'stdcall', 'user32.OffsetRect', (('void *', 'ptr'), ('int', None), ('int', None))), 'user32.openclipboard': ('int', None, 'stdcall', 'user32.OpenClipboard', (('int', None),)), 'user32.opendesktopa': ('int', None, 'stdcall', 'user32.OpenDesktopA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.opendesktopw': ('int', None, 'stdcall', 'user32.OpenDesktopW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.openicon': ('int', None, 'stdcall', 'user32.OpenIcon', ()), 'user32.openinputdesktop': ('int', None, 'stdcall', 'user32.OpenInputDesktop', (('int', None), ('int', None), ('int', None))), 'user32.openwindowstationa': ('int', None, 'stdcall', 'user32.OpenWindowStationA', (('int', None), ('int', None), ('int', None))), 'user32.openwindowstationw': ('int', None, 'stdcall', 'user32.OpenWindowStationW', (('int', None), ('int', None), ('int', None))), 'user32.packddelparam': ('int', None, 'stdcall', 'user32.PackDDElParam', (('int', None), ('int', None), ('int', None))), 'user32.paintdesktop': ('int', None, 'stdcall', 'user32.PaintDesktop', (('int', None),)), 'user32.paintmenubar': ('int', None, 'stdcall', 'user32.PaintMenuBar', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.peekmessagea': ('int', None, 'stdcall', 'user32.PeekMessageA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.peekmessagew': ('int', None, 'stdcall', 'user32.PeekMessageW', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.postmessagea': ('int', None, 'stdcall', 'user32.PostMessageA', (('int', None), ('int', None), ('int', None))), 'user32.postmessagew': ('int', None, 'stdcall', 'user32.PostMessageW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.postquitmessage': ('int', None, 'stdcall', 'user32.PostQuitMessage', (('int', None),)), 'user32.postthreadmessagea': ('int', None, 'stdcall', 'user32.PostThreadMessageA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.postthreadmessagew': ('int', None, 'stdcall', 'user32.PostThreadMessageW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.printwindow': ('int', None, 'stdcall', 'user32.PrintWindow', (('int', None), ('int', None), ('int', None))), 'user32.privateextracticonexa': ('int', None, 'stdcall', 'user32.PrivateExtractIconExA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.privateextracticonexw': ('int', None, 'stdcall', 'user32.PrivateExtractIconExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.privateextracticonsa': ('int', None, 'stdcall', 'user32.PrivateExtractIconsA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.privateextracticonsw': ('int', None, 'stdcall', 'user32.PrivateExtractIconsW', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None))), 'user32.privatesetdbgtag': ('int', None, 'stdcall', 'user32.PrivateSetDbgTag', (('int', None), ('int', None))), 'user32.privatesetripflags': ('int', None, 'stdcall', 'user32.PrivateSetRipFlags', (('int', None), ('int', None))), 'user32.ptinrect': ('int', None, 'stdcall', 'user32.PtInRect', (('void *', 'ptr'), ('int', None), ('int', None))), 'user32.querysendmessage': ('int', None, 'stdcall', 'user32.QuerySendMessage', (('int', None),)), 'user32.queryusercounters': ('int', None, 'stdcall', 'user32.QueryUserCounters', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.realchildwindowfrompoint': ('int', None, 'stdcall', 'user32.RealChildWindowFromPoint', (('int', None), ('int', None), ('int', None))), 'user32.realgetwindowclass': ('int', None, 'stdcall', 'user32.RealGetWindowClass', (('int', None), ('int', None), ('int', None))), 'user32.realgetwindowclassa': ('int', None, 'stdcall', 'user32.RealGetWindowClassA', (('int', None), ('int', None), ('int', None))), 'user32.realgetwindowclassw': ('int', None, 'stdcall', 'user32.RealGetWindowClassW', (('int', None), ('int', None), ('int', None))), 'user32.reasoncodeneedsbugid': ('int', None, 'stdcall', 'user32.ReasonCodeNeedsBugID', (('int', None),)), 'user32.reasoncodeneedscomment': ('int', None, 'stdcall', 'user32.ReasonCodeNeedsComment', (('int', None),)), 'user32.recordshutdownreason': ('int', None, 'stdcall', 'user32.RecordShutdownReason', (('void *', 'ptr'),)), 'user32.redrawwindow': ('int', None, 'stdcall', 'user32.RedrawWindow', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.registerclassa': ('int', None, 'stdcall', 'user32.RegisterClassA', (('int', None),)), 'user32.registerclassexa': ('int', None, 'stdcall', 'user32.RegisterClassExA', (('void *', 'ptr'),)), 'user32.registerclassexw': ('int', None, 'stdcall', 'user32.RegisterClassExW', (('void *', 'ptr'),)), 'user32.registerclassw': ('int', None, 'stdcall', 'user32.RegisterClassW', (('int', None),)), 'user32.registerclipboardformata': ('int', None, 'stdcall', 'user32.RegisterClipboardFormatA', (('int', None),)), 'user32.registerclipboardformatw': ('int', None, 'stdcall', 'user32.RegisterClipboardFormatW', (('int', None),)), 'user32.registerdevicenotificationa': ('int', None, 'stdcall', 'user32.RegisterDeviceNotificationA', (('int', None), ('int', None), ('int', None))), 'user32.registerdevicenotificationw': ('int', None, 'stdcall', 'user32.RegisterDeviceNotificationW', (('int', None), ('int', None), ('int', None))), 'user32.registerhotkey': ('int', None, 'stdcall', 'user32.RegisterHotKey', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.registerlogonprocess': ('int', None, 'stdcall', 'user32.RegisterLogonProcess', (('void *', 'ptr'), ('void *', 'ptr'))), 'user32.registermessagepumphook': ('int', None, 'stdcall', 'user32.RegisterMessagePumpHook', (('void *', 'funcptr'),)), 'user32.registerrawinputdevices': ('int', None, 'stdcall', 'user32.RegisterRawInputDevices', (('int', None), ('int', None), ('int', None))), 'user32.registerservicesprocess': ('int', None, 'stdcall', 'user32.RegisterServicesProcess', (('int', None),)), 'user32.registershellhookwindow': ('int', None, 'stdcall', 'user32.RegisterShellHookWindow', (('int', None),)), 'user32.registersystemthread': ('int', None, 'stdcall', 'user32.RegisterSystemThread', (('void *', 'ptr'), ('void *', 'ptr'))), 'user32.registertasklist': ('int', None, 'stdcall', 'user32.RegisterTasklist', (('int', None),)), 'user32.registeruserapihook': ('int', None, 'stdcall', 'user32.RegisterUserApiHook', (('int', None), ('int', None))), 'user32.registerwindowmessagea': ('int', None, 'stdcall', 'user32.RegisterWindowMessageA', (('int', None),)), 'user32.registerwindowmessagew': ('int', None, 'stdcall', 'user32.RegisterWindowMessageW', (('int', None),)), 'user32.releasecapture': ('int', None, 'cdecl', 'user32.ReleaseCapture', ()), 'user32.releasedc': ('int', None, 'stdcall', 'user32.ReleaseDC', (('int', None), ('int', None))), 'user32.removemenu': ('int', None, 'stdcall', 'user32.RemoveMenu', (('int', None), ('int', None), ('int', None))), 'user32.removepropa': ('int', None, 'stdcall', 'user32.RemovePropA', (('int', None), ('int', None))), 'user32.removepropw': ('int', None, 'stdcall', 'user32.RemovePropW', (('int', None), ('int', None))), 'user32.replymessage': ('int', None, 'stdcall', 'user32.ReplyMessage', (('int', None),)), 'user32.resolvedesktopforwow': ('int', None, 'stdcall', 'user32.ResolveDesktopForWOW', (('int', None),)), 'user32.reuseddelparam': ('int', None, 'stdcall', 'user32.ReuseDDElParam', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.screentoclient': ('int', None, 'stdcall', 'user32.ScreenToClient', (('void *', 'ptr'),)), 'user32.scrollchildren': ('int', None, 'stdcall', 'user32.ScrollChildren', (('int', None), ('int', None))), 'user32.scrolldc': ('int', None, 'stdcall', 'user32.ScrollDC', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.scrollwindow': ('int', None, 'stdcall', 'user32.ScrollWindow', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.scrollwindowex': ('int', None, 'stdcall', 'user32.ScrollWindowEx', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None))), 'user32.senddlgitemmessagea': ('int', None, 'stdcall', 'user32.SendDlgItemMessageA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.senddlgitemmessagew': ('int', None, 'stdcall', 'user32.SendDlgItemMessageW', (('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.sendimemessageexa': ('int', None, 'stdcall', 'user32.SendIMEMessageExA', (('int', None), ('int', None))), 'user32.sendimemessageexw': ('int', None, 'stdcall', 'user32.SendIMEMessageExW', (('int', None), ('int', None))), 'user32.sendinput': ('int', None, 'stdcall', 'user32.SendInput', (('int', None), ('void *', 'ptr'), ('int', None))), 'user32.sendmessagea': ('int', None, 'stdcall', 'user32.SendMessageA', (('int', None), ('int', None), ('int', None))), 'user32.sendmessagecallbacka': ('int', None, 'stdcall', 'user32.SendMessageCallbackA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.sendmessagecallbackw': ('int', None, 'stdcall', 'user32.SendMessageCallbackW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.sendmessagetimeouta': ('int', None, 'stdcall', 'user32.SendMessageTimeoutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.sendmessagetimeoutw': ('int', None, 'stdcall', 'user32.SendMessageTimeoutW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'))), 'user32.sendmessagew': ('int', None, 'stdcall', 'user32.SendMessageW', (('void *', 'obj'), ('int', None), ('void *', 'obj'))), 'user32.sendnotifymessagea': ('int', None, 'stdcall', 'user32.SendNotifyMessageA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.sendnotifymessagew': ('int', None, 'stdcall', 'user32.SendNotifyMessageW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setactivewindow': ('int', None, 'stdcall', 'user32.SetActiveWindow', (('int', None),)), 'user32.setcapture': ('int', None, 'stdcall', 'user32.SetCapture', (('int', None),)), 'user32.setcaretblinktime': ('int', None, 'stdcall', 'user32.SetCaretBlinkTime', (('int', None),)), 'user32.setcaretpos': ('int', None, 'stdcall', 'user32.SetCaretPos', (('void *', 'ptr'), ('void *', 'ptr'))), 'user32.setclasslonga': ('int', None, 'stdcall', 'user32.SetClassLongA', (('int', None), ('int', None), ('int', None))), 'user32.setclasslongw': ('int', None, 'stdcall', 'user32.SetClassLongW', (('int', None), ('int', None), ('void *', 'ptr'))), 'user32.setclassword': ('int', None, 'stdcall', 'user32.SetClassWord', (('int', None), ('int', None), ('int', None))), 'user32.setclipboarddata': ('int', None, 'stdcall', 'user32.SetClipboardData', (('int', None), ('int', None))), 'user32.setclipboardviewer': ('int', None, 'stdcall', 'user32.SetClipboardViewer', (('int', None),)), 'user32.setconsolereservekeys': ('int', None, 'stdcall', 'user32.SetConsoleReserveKeys', (('int', None), ('int', None))), 'user32.setcursor': ('int', None, 'stdcall', 'user32.SetCursor', (('int', None),)), 'user32.setcursorcontents': ('int', None, 'stdcall', 'user32.SetCursorContents', (('int', None), ('int', None))), 'user32.setcursorpos': ('int', None, 'stdcall', 'user32.SetCursorPos', (('void *', 'ptr'), ('void *', 'ptr'))), 'user32.setdebugerrorlevel': ('int', None, 'stdcall', 'user32.SetDebugErrorLevel', (('int', None),)), 'user32.setdeskwallpaper': ('int', None, 'stdcall', 'user32.SetDeskWallpaper', (('void *', 'ptr'),)), 'user32.setdlgitemint': ('int', None, 'stdcall', 'user32.SetDlgItemInt', (('int', None), ('int', None), ('int', None))), 'user32.setdlgitemtexta': ('int', None, 'stdcall', 'user32.SetDlgItemTextA', (('int', None), ('void *', 'obj'))), 'user32.setdlgitemtextw': ('int', None, 'stdcall', 'user32.SetDlgItemTextW', (('int', None), ('void *', 'obj'))), 'user32.setdoubleclicktime': ('int', None, 'stdcall', 'user32.SetDoubleClickTime', (('int', None),)), 'user32.setfocus': ('int', None, 'stdcall', 'user32.SetFocus', (('int', None),)), 'user32.setforegroundwindow': ('int', None, 'stdcall', 'user32.SetForegroundWindow', (('int', None),)), 'user32.setinternalwindowpos': ('int', None, 'stdcall', 'user32.SetInternalWindowPos', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setkeyboardstate': ('int', None, 'stdcall', 'user32.SetKeyboardState', (('int', None),)), 'user32.setlasterrorex': ('int', None, 'stdcall', 'user32.SetLastErrorEx', (('int', None), ('int', None))), 'user32.setlayeredwindowattributes': ('int', None, 'stdcall', 'user32.SetLayeredWindowAttributes', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setlogonnotifywindow': ('int', None, 'stdcall', 'user32.SetLogonNotifyWindow', (('int', None),)), 'user32.setmenu': ('int', None, 'stdcall', 'user32.SetMenu', (('int', None), ('int', None))), 'user32.setmenucontexthelpid': ('int', None, 'stdcall', 'user32.SetMenuContextHelpId', (('int', None), ('int', None))), 'user32.setmenudefaultitem': ('int', None, 'stdcall', 'user32.SetMenuDefaultItem', (('int', None), ('int', None), ('int', None))), 'user32.setmenuinfo': ('int', None, 'stdcall', 'user32.SetMenuInfo', (('int', None), ('int', None))), 'user32.setmenuitembitmaps': ('int', None, 'stdcall', 'user32.SetMenuItemBitmaps', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setmenuiteminfoa': ('int', None, 'stdcall', 'user32.SetMenuItemInfoA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setmenuiteminfow': ('int', None, 'stdcall', 'user32.SetMenuItemInfoW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'))), 'user32.setmessageextrainfo': ('int', None, 'stdcall', 'user32.SetMessageExtraInfo', (('int', None),)), 'user32.setmessagequeue': ('int', None, 'stdcall', 'user32.SetMessageQueue', (('int', None),)), 'user32.setparent': ('int', None, 'stdcall', 'user32.SetParent', (('int', None), ('int', None))), 'user32.setprocessdefaultlayout': ('int', None, 'stdcall', 'user32.SetProcessDefaultLayout', (('int', None),)), 'user32.setprocesswindowstation': ('int', None, 'stdcall', 'user32.SetProcessWindowStation', (('int', None),)), 'user32.setprogmanwindow': ('int', None, 'stdcall', 'user32.SetProgmanWindow', (('int', None),)), 'user32.setpropa': ('int', None, 'stdcall', 'user32.SetPropA', (('int', None), ('int', None), ('int', None))), 'user32.setpropw': ('int', None, 'stdcall', 'user32.SetPropW', (('int', None), ('int', None), ('int', None))), 'user32.setrect': ('int', None, 'stdcall', 'user32.SetRect', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setrectempty': ('int', None, 'stdcall', 'user32.SetRectEmpty', (('int', None),)), 'user32.setscrollinfo': ('int', None, 'stdcall', 'user32.SetScrollInfo', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None))), 'user32.setscrollpos': ('int', None, 'stdcall', 'user32.SetScrollPos', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setscrollrange': ('int', None, 'stdcall', 'user32.SetScrollRange', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setshellwindow': ('int', None, 'stdcall', 'user32.SetShellWindow', (('int', None),)), 'user32.setshellwindowex': ('int', None, 'stdcall', 'user32.SetShellWindowEx', (('int', None), ('int', None))), 'user32.setsyscolors': ('int', None, 'stdcall', 'user32.SetSysColors', (('int', None), ('void *', 'ptr'), ('int', None))), 'user32.setsyscolorstemp': ('int', None, 'stdcall', 'user32.SetSysColorsTemp', (('int', None), ('int', None), ('int', None))), 'user32.setsystemcursor': ('int', None, 'stdcall', 'user32.SetSystemCursor', (('int', None), ('int', None))), 'user32.setsystemmenu': ('int', None, 'stdcall', 'user32.SetSystemMenu', (('int', None), ('int', None))), 'user32.setsystemtimer': ('int', None, 'stdcall', 'user32.SetSystemTimer', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.settaskmanwindow': ('int', None, 'stdcall', 'user32.SetTaskmanWindow', (('int', None),)), 'user32.setthreaddesktop': ('int', None, 'stdcall', 'user32.SetThreadDesktop', (('int', None),)), 'user32.settimer': ('int', None, 'stdcall', 'user32.SetTimer', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setuserobjectinformationa': ('int', None, 'stdcall', 'user32.SetUserObjectInformationA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setuserobjectinformationw': ('int', None, 'stdcall', 'user32.SetUserObjectInformationW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setuserobjectsecurity': ('int', None, 'stdcall', 'user32.SetUserObjectSecurity', (('int', None), ('int', None), ('int', None))), 'user32.setwineventhook': ('int', None, 'stdcall', 'user32.SetWinEventHook', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setwindowcontexthelpid': ('int', None, 'stdcall', 'user32.SetWindowContextHelpId', (('int', None), ('int', None))), 'user32.setwindowlonga': ('int', None, 'stdcall', 'user32.SetWindowLongA', (('int', None), ('void *', 'obj'))), 'user32.setwindowlongw': ('int', None, 'stdcall', 'user32.SetWindowLongW', (('int', None), ('void *', 'obj'))), 'user32.setwindowplacement': ('int', None, 'stdcall', 'user32.SetWindowPlacement', (('int', None), ('int', None))), 'user32.setwindowpos': ('int', None, 'stdcall', 'user32.SetWindowPos', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setwindowrgn': ('int', None, 'stdcall', 'user32.SetWindowRgn', (('int', None), ('int', None), ('int', None))), 'user32.setwindowstationuser': ('int', None, 'stdcall', 'user32.SetWindowStationUser', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setwindowtexta': ('int', None, 'stdcall', 'user32.SetWindowTextA', (('void *', 'obj'),)), 'user32.setwindowtextw': ('int', None, 'stdcall', 'user32.SetWindowTextW', (('void *', 'obj'),)), 'user32.setwindowword': ('int', None, 'stdcall', 'user32.SetWindowWord', (('int', None), ('int', None), ('int', None))), 'user32.setwindowshooka': ('int', None, 'stdcall', 'user32.SetWindowsHookA', (('int', None), ('int', None))), 'user32.setwindowshookexa': ('int', None, 'stdcall', 'user32.SetWindowsHookExA', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setwindowshookexw': ('int', None, 'stdcall', 'user32.SetWindowsHookExW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.setwindowshookw': ('int', None, 'stdcall', 'user32.SetWindowsHookW', (('int', None), ('int', None))), 'user32.showcaret': ('int', None, 'stdcall', 'user32.ShowCaret', (('int', None),)), 'user32.showcursor': ('int', None, 'stdcall', 'user32.ShowCursor', (('int', None),)), 'user32.showownedpopups': ('int', None, 'stdcall', 'user32.ShowOwnedPopups', (('int', None), ('int', None))), 'user32.showscrollbar': ('int', None, 'stdcall', 'user32.ShowScrollBar', (('int', None), ('int', None), ('int', None))), 'user32.showstartglass': ('int', None, 'stdcall', 'user32.ShowStartGlass', (('int', None),)), 'user32.showwindow': ('int', None, 'stdcall', 'user32.ShowWindow', (('int', None), ('int', None))), 'user32.showwindowasync': ('int', None, 'stdcall', 'user32.ShowWindowAsync', (('int', None), ('int', None))), 'user32.softmodalmessagebox': ('int', None, 'stdcall', 'user32.SoftModalMessageBox', ()), 'user32.subtractrect': ('int', None, 'stdcall', 'user32.SubtractRect', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'))), 'user32.swapmousebutton': ('int', None, 'stdcall', 'user32.SwapMouseButton', (('int', None),)), 'user32.switchdesktop': ('int', None, 'stdcall', 'user32.SwitchDesktop', (('int', None),)), 'user32.switchtothiswindow': ('int', None, 'stdcall', 'user32.SwitchToThisWindow', (('int', None), ('int', None))), 'user32.systemparametersinfoa': ('int', None, 'stdcall', 'user32.SystemParametersInfoA', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None))), 'user32.systemparametersinfow': ('int', None, 'stdcall', 'user32.SystemParametersInfoW', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.tabbedtextouta': ('int', None, 'stdcall', 'user32.TabbedTextOutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.tabbedtextoutw': ('int', None, 'stdcall', 'user32.TabbedTextOutW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.tilechildwindows': ('int', None, 'stdcall', 'user32.TileChildWindows', (('int', None),)), 'user32.tilewindows': ('int', None, 'stdcall', 'user32.TileWindows', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.toascii': ('int', None, 'stdcall', 'user32.ToAscii', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.toasciiex': ('int', None, 'stdcall', 'user32.ToAsciiEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.tounicode': ('int', None, 'stdcall', 'user32.ToUnicode', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.tounicodeex': ('int', None, 'stdcall', 'user32.ToUnicodeEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.trackmouseevent': ('int', None, 'stdcall', 'user32.TrackMouseEvent', (('int', None),)), 'user32.trackpopupmenu': ('int', None, 'stdcall', 'user32.TrackPopupMenu', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.trackpopupmenuex': ('int', None, 'stdcall', 'user32.TrackPopupMenuEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.translateaccelerator': ('int', None, 'stdcall', 'user32.TranslateAccelerator', (('int', None), ('int', None), ('int', None))), 'user32.translateacceleratora': ('int', None, 'stdcall', 'user32.TranslateAcceleratorA', (('int', None), ('int', None), ('int', None))), 'user32.translateacceleratorw': ('int', None, 'stdcall', 'user32.TranslateAcceleratorW', (('int', None), ('int', None), ('int', None))), 'user32.translatemdisysaccel': ('int', None, 'stdcall', 'user32.TranslateMDISysAccel', (('int', None),)), 'user32.translatemessage': ('int', None, 'stdcall', 'user32.TranslateMessage', (('void *', 'ptr'),)), 'user32.translatemessageex': ('int', None, 'stdcall', 'user32.TranslateMessageEx', (('int', None), ('int', None))), 'user32.unhookwinevent': ('int', None, 'stdcall', 'user32.UnhookWinEvent', (('int', None),)), 'user32.unhookwindowshook': ('int', None, 'stdcall', 'user32.UnhookWindowsHook', (('void *', 'ptr'), ('void *', 'ptr'))), 'user32.unhookwindowshookex': ('int', None, 'stdcall', 'user32.UnhookWindowsHookEx', (('int', None),)), 'user32.unionrect': ('int', None, 'stdcall', 'user32.UnionRect', (('void *', 'ptr'), ('void *', 'ptr'), ('void *', 'ptr'))), 'user32.unloadkeyboardlayout': ('int', None, 'stdcall', 'user32.UnloadKeyboardLayout', (('int', None),)), 'user32.unlockwindowstation': ('int', None, 'stdcall', 'user32.UnlockWindowStation', (('int', None),)), 'user32.unpackddelparam': ('int', None, 'stdcall', 'user32.UnpackDDElParam', (('int', None), ('int', None), ('void *', 'ptr'), ('void *', 'ptr'))), 'user32.unregisterclassa': ('int', None, 'stdcall', 'user32.UnregisterClassA', (('int', None), ('int', None))), 'user32.unregisterclassw': ('int', None, 'stdcall', 'user32.UnregisterClassW', (('int', None), ('int', None))), 'user32.unregisterdevicenotification': ('int', None, 'stdcall', 'user32.UnregisterDeviceNotification', (('int', None),)), 'user32.unregisterhotkey': ('int', None, 'stdcall', 'user32.UnregisterHotKey', (('int', None), ('int', None))), 'user32.unregistermessagepumphook': ('int', None, 'cdecl', 'user32.UnregisterMessagePumpHook', ()), 'user32.unregisteruserapihook': ('int', None, 'cdecl', 'user32.UnregisterUserApiHook', ()), 'user32.updatelayeredwindow': ('int', None, 'stdcall', 'user32.UpdateLayeredWindow', (('int', None), ('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None))), 'user32.updateperusersystemparameters': ('int', None, 'stdcall', 'user32.UpdatePerUserSystemParameters', (('int', None), ('int', None))), 'user32.updatewindow': ('int', None, 'stdcall', 'user32.UpdateWindow', ()), 'user32.user32initializeimmentrytable': ('int', None, 'stdcall', 'user32.User32InitializeImmEntryTable', (('int', None),)), 'user32.userclientdllinitialize': ('int', None, 'stdcall', 'user32.UserClientDllInitialize', (('int', None), ('int', None), ('int', None))), 'user32.userhandlegrantaccess': ('int', None, 'stdcall', 'user32.UserHandleGrantAccess', (('int', None), ('int', None), ('int', None))), 'user32.userlpkpsmtextout': ('int', None, 'stdcall', 'user32.UserLpkPSMTextOut', (('int', None), ('int', None), ('DWORD', None), ('int', None), ('int', None), ('int', None))), 'user32.userlpktabbedtextout': ('int', None, 'stdcall', 'user32.UserLpkTabbedTextOut', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.userrealizepalette': ('int', None, 'stdcall', 'user32.UserRealizePalette', (('int', None),)), 'user32.userregisterwowhandlers': ('int', None, 'stdcall', 'user32.UserRegisterWowHandlers', (('int', None), ('int', None))), 'user32.vripoutput': ('int', None, 'cdecl', 'user32.VRipOutput', ()), 'user32.vtagoutput': ('int', None, 'cdecl', 'user32.VTagOutput', ()), 'user32.validaterect': ('int', None, 'stdcall', 'user32.ValidateRect', (('int', None), ('int', None))), 'user32.validatergn': ('int', None, 'stdcall', 'user32.ValidateRgn', (('int', None), ('int', None))), 'user32.vkkeyscana': ('int', None, 'stdcall', 'user32.VkKeyScanA', (('int', None),)), 'user32.vkkeyscanexa': ('int', None, 'stdcall', 'user32.VkKeyScanExA', (('int', None), ('int', None))), 'user32.vkkeyscanexw': ('int', None, 'stdcall', 'user32.VkKeyScanExW', (('int', None), ('int', None))), 'user32.vkkeyscanw': ('int', None, 'stdcall', 'user32.VkKeyScanW', (('int', None),)), 'user32.wcstombex': ('int', None, 'stdcall', 'user32.WCSToMBEx', (('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None))), 'user32.winnlsenableime': ('int', None, 'stdcall', 'user32.WINNLSEnableIME', (('int', None), ('int', None))), 'user32.winnlsgetenablestatus': ('int', None, 'stdcall', 'user32.WINNLSGetEnableStatus', (('int', None),)), 'user32.winnlsgetimehotkey': ('int', None, 'stdcall', 'user32.WINNLSGetIMEHotkey', (('int', None),)), 'user32.waitforinputidle': ('int', None, 'stdcall', 'user32.WaitForInputIdle', (('int', None), ('int', None))), 'user32.waitmessage': ('int', None, 'cdecl', 'user32.WaitMessage', ()), 'user32.win32poolallocationstats': ('int', None, 'stdcall', 'user32.Win32PoolAllocationStats', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.winhelpa': ('int', None, 'stdcall', 'user32.WinHelpA', (('int', None), ('int', None), ('int', None))), 'user32.winhelpw': ('int', None, 'stdcall', 'user32.WinHelpW', (('int', None), ('int', None), ('int', None))), 'user32.windowfromdc': ('int', None, 'stdcall', 'user32.WindowFromDC', (('int', None),)), 'user32.windowfrompoint': ('int', None, 'stdcall', 'user32.WindowFromPoint', (('int', None), ('int', None))), 'user32.keybd_event': ('int', None, 'stdcall', 'user32.keybd_event', (('int', None), ('int', None), ('int', None), ('int', None))), 'user32.mouse_event': ('int', None, 'stdcall', 'user32.mouse_event', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None))), 'user32.wsprintfa': ('int', None, 'cdecl', 'user32.wsprintfA', (('int', None), ('int', None))), 'user32.wsprintfw': ('int', None, 'cdecl', 'user32.wsprintfW', (('void *', 'ptr'), ('int', None))), 'user32.wvsprintfa': ('int', None, 'stdcall', 'user32.wvsprintfA', (('int', None), ('int', None), ('int', None))), 'user32.wvsprintfw': ('int', None, 'stdcall', 'user32.wvsprintfW', (('int', None), ('int', None), ('int', None)))}
class Solution: def minFallingPathSum(self, matrix: List[List[int]]) -> int: # dp[i][j] means minimum falling path ended with matrix[i][j] # dp[i][j] = min(dp[i-1][j],dp[i-1][j-1], dp[i-1][j+1]) dp = [[0 for _ in range(len(matrix[0]))] for _ in range(len(matrix))] for i in range(len(matrix[0])): dp[0][i] = matrix[0][i] for i in range(1, len(matrix)): for j in range(len(matrix[0])): dp[i][j] = min(dp[i-1][j], dp[i-1][min(j+1, len(matrix[0])-1)], dp[i-1][max(0,j-1)]) + matrix[i][j] return min(dp[-1])
class Solution: def min_falling_path_sum(self, matrix: List[List[int]]) -> int: dp = [[0 for _ in range(len(matrix[0]))] for _ in range(len(matrix))] for i in range(len(matrix[0])): dp[0][i] = matrix[0][i] for i in range(1, len(matrix)): for j in range(len(matrix[0])): dp[i][j] = min(dp[i - 1][j], dp[i - 1][min(j + 1, len(matrix[0]) - 1)], dp[i - 1][max(0, j - 1)]) + matrix[i][j] return min(dp[-1])
# A number of options exist when aiming to review how many components to include to reduce the dimensionality complexity # Let PCA select 90% of the variance pipe = Pipeline([('scaler', StandardScaler()), ('reducer', PCA(n_components=0.9))]) # By providing a percent ratio value this means the algorithm aims to explain this proportion of cumulative variance # Fit the pipe to the data pipe.fit(ansur_df) print('{} components selected'.format(len(pipe.steps[1][1].components_))) # Use a visual plot to help select the number of components to include - making use of an elbow section of the plot as the initial cut-off point # Pipeline a scaler and pca selecting 10 components pipe = Pipeline([('scaler', StandardScaler()), ('reducer', PCA(n_components=10))]) # Fit the pipe to the data pipe.fit(ansur_df) # Plot the explained variance ratio plt.plot(pipe.steps[1][1].explained_variance_ratio_) plt.xlabel('Principal component index') plt.ylabel('Explained variance ratio') plt.show()
pipe = pipeline([('scaler', standard_scaler()), ('reducer', pca(n_components=0.9))]) pipe.fit(ansur_df) print('{} components selected'.format(len(pipe.steps[1][1].components_))) pipe = pipeline([('scaler', standard_scaler()), ('reducer', pca(n_components=10))]) pipe.fit(ansur_df) plt.plot(pipe.steps[1][1].explained_variance_ratio_) plt.xlabel('Principal component index') plt.ylabel('Explained variance ratio') plt.show()
# ### Trees # A tree is a widely used abstract data type that simulates a hierarchical tree structure, with a `root` value and subtrees of `children` with a `parent` node, represented as a set of linked nodes. # # A tree data structure can be defined recursively as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value, together with a list of references to nodes (the "children"), with the constraints that no reference is duplicated, and none points to the root. # # Applications of trees: # - Manipulate hierarchical data. # - Make information easy to search (see tree traversal). # - Manipulate sorted lists of data. # - As a workflow for compositing digital images for visual effects. # - Router algorithms # - Form of a multi-stage decision-making (see business chess). # # #### Binary Tree # - A tree is called binary tree if each node of the tree has zero, one or two children. # - Empty tree is also a valid binary tree. # # #### Types of binary trees: # 1. Full binary tree: A Binary Tree is full if every node has 0 or 2 children. Following are examples of full binary tree. # 2. Complete binary tree: A Binary Tree is complete Binary Tree if all levels are completely filled except possibly the last level and the last level has all keys as left as possible. # 3. Perfect Binary Tree: A Binary tree is Perfect Binary Tree in which all internal nodes have two children and all leaves are at same level. # 4. Balanced Binary Tree: A binary tree is balanced if height of the tree is O(Log n) where n is number of nodes. For Example, AVL tree maintain O(Log n) height by making sure that the difference between heights of left and right subtrees is 1. Red-Black trees maintain O(Log n) height by making sure that the number of Black nodes on every root to leaf paths are same and there are no adjacent red nodes. Balanced Binary Search trees are performance wise good as they provide O(log n) time for search, insert and delete. # 5. A degenerate (or pathological) tree: A Tree where every internal node has one child. Such trees are performance-wise same as linked list. class Node: def __init__(self, data): self.data = data self.left = None self.right = None class Tree: def __init__(self): self.root = None def preorder(self, root): if(root): print(root.data,end=" ") self.preorder(root.left) self.preorder(root.right) def inorder(self, root): if(root): self.inorder(root.left) print(root.data,end=" ") self.inorder(root.right) def postorder(self, root): if(root): self.postorder(root.left) self.postorder(root.right) print(root.data,end=" ") if __name__ == '__main__': tree = Tree() tree.root = Node(10) tree.root.left = Node(5) tree.root.left.left = Node(2) tree.root.left.right = Node(8) tree.root.right = Node(15) ''' Tree Structure 10 / \ 5 15 / \ 2 8 ''' print("Preorder") tree.preorder(tree.root) print("\nInorder") tree.inorder(tree.root) print("\nPostorder") tree.postorder(tree.root) ''' Output Preorder 10 5 2 8 15 Inorder 2 5 8 10 15 Postorder 2 8 5 15 10 '''
class Node: def __init__(self, data): self.data = data self.left = None self.right = None class Tree: def __init__(self): self.root = None def preorder(self, root): if root: print(root.data, end=' ') self.preorder(root.left) self.preorder(root.right) def inorder(self, root): if root: self.inorder(root.left) print(root.data, end=' ') self.inorder(root.right) def postorder(self, root): if root: self.postorder(root.left) self.postorder(root.right) print(root.data, end=' ') if __name__ == '__main__': tree = tree() tree.root = node(10) tree.root.left = node(5) tree.root.left.left = node(2) tree.root.left.right = node(8) tree.root.right = node(15) '\n Tree Structure\n 10\n / 5 15\n / 2 8\n ' print('Preorder') tree.preorder(tree.root) print('\nInorder') tree.inorder(tree.root) print('\nPostorder') tree.postorder(tree.root) '\n Output\n Preorder\n 10 5 2 8 15 \n Inorder\n 2 5 8 10 15 \n Postorder\n 2 8 5 15 10 \n '
#Not finished yet # intervals = [[1,3],[2,6],[8,10],[15,18]] # intervals = [[1,4],[4,5]] intervals = [[2,3],[4,5],[6,7],[8,9],[1,10]] intervals.sort(key = lambda it : it[0]) myList = [intervals[0]] for i in range(1,len(intervals)): # print(myList) comp1i, comp1j = myList.pop() comp2i, comp2j = intervals[i] if comp2i > comp1j: myList.append([comp1i, comp1j]) myList.append(intervals[i]) elif comp2j < comp1i: myList.append([comp2i, comp2j]) myList.append([comp1i, comp1j]) else: if comp2i <= comp1i: first = comp2i else: first = comp1i if comp1j <= comp2j: end = comp2j else: end = comp1j if comp1j == comp2i: first = comp1i end = comp2j # myList.pop() myList.append([first, end]) print(myList)
intervals = [[2, 3], [4, 5], [6, 7], [8, 9], [1, 10]] intervals.sort(key=lambda it: it[0]) my_list = [intervals[0]] for i in range(1, len(intervals)): (comp1i, comp1j) = myList.pop() (comp2i, comp2j) = intervals[i] if comp2i > comp1j: myList.append([comp1i, comp1j]) myList.append(intervals[i]) elif comp2j < comp1i: myList.append([comp2i, comp2j]) myList.append([comp1i, comp1j]) else: if comp2i <= comp1i: first = comp2i else: first = comp1i if comp1j <= comp2j: end = comp2j else: end = comp1j if comp1j == comp2i: first = comp1i end = comp2j myList.append([first, end]) print(myList)
# ------------------------------------------------------- # # # # ------------------------------------------------------- class ServiceCategory(): inpatient = 'inpatient' other_services = 'other_services' long_term = 'long_term' prescription = 'prescription' # ------------------------------------------------------- # # # # -------------------------------------------------------
class Servicecategory: inpatient = 'inpatient' other_services = 'other_services' long_term = 'long_term' prescription = 'prescription'
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"make_session": "00_scrapers.ipynb", "make_browser": "00_scrapers.ipynb", "s": "00_scrapers.ipynb", "browsers": "00_scrapers.ipynb", "cache_db": "00_scrapers.ipynb", "RS_URLS": "00_scrapers.ipynb", "ITEM_FORM": "00_scrapers.ipynb", "KW_OPTIONS": "00_scrapers.ipynb", "FORMATS": "00_scrapers.ipynb", "LOCATIONS": "00_scrapers.ipynb", "ACCESS": "00_scrapers.ipynb", "AGENCY_FORM": "00_scrapers.ipynb", "AGENCY_LOCATIONS": "00_scrapers.ipynb", "AGENCY_STATUS": "00_scrapers.ipynb", "SERIES_FORM": "00_scrapers.ipynb", "RSBase": "00_scrapers.ipynb", "RSEntity": "00_scrapers.ipynb", "RSSearch": "00_scrapers.ipynb", "RSItem": "00_scrapers.ipynb", "RSItemSearch": "00_scrapers.ipynb", "RSSeries": "00_scrapers.ipynb", "RSSeriesSearch": "00_scrapers.ipynb", "RSAgency": "00_scrapers.ipynb", "RSAgencySearch": "00_scrapers.ipynb"} modules = ["scrapers.py"] doc_url = "https://wragge.github.io/recordsearch_data_scraper/" git_url = "https://github.com/wragge/recordsearch_data_scraper/tree/master/" def custom_doc_links(name): return None
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url'] index = {'make_session': '00_scrapers.ipynb', 'make_browser': '00_scrapers.ipynb', 's': '00_scrapers.ipynb', 'browsers': '00_scrapers.ipynb', 'cache_db': '00_scrapers.ipynb', 'RS_URLS': '00_scrapers.ipynb', 'ITEM_FORM': '00_scrapers.ipynb', 'KW_OPTIONS': '00_scrapers.ipynb', 'FORMATS': '00_scrapers.ipynb', 'LOCATIONS': '00_scrapers.ipynb', 'ACCESS': '00_scrapers.ipynb', 'AGENCY_FORM': '00_scrapers.ipynb', 'AGENCY_LOCATIONS': '00_scrapers.ipynb', 'AGENCY_STATUS': '00_scrapers.ipynb', 'SERIES_FORM': '00_scrapers.ipynb', 'RSBase': '00_scrapers.ipynb', 'RSEntity': '00_scrapers.ipynb', 'RSSearch': '00_scrapers.ipynb', 'RSItem': '00_scrapers.ipynb', 'RSItemSearch': '00_scrapers.ipynb', 'RSSeries': '00_scrapers.ipynb', 'RSSeriesSearch': '00_scrapers.ipynb', 'RSAgency': '00_scrapers.ipynb', 'RSAgencySearch': '00_scrapers.ipynb'} modules = ['scrapers.py'] doc_url = 'https://wragge.github.io/recordsearch_data_scraper/' git_url = 'https://github.com/wragge/recordsearch_data_scraper/tree/master/' def custom_doc_links(name): return None
'''HashMap class to keep track of key value pairs''' class HashMap: '''HashMap class to keep track of key value pairs''' def __init__(self): '''initializes key val pair''' self.inner_size = 7 self.array = [None] * self.inner_size self.count = 0 def get(self, key): '''returns the keyvaluepair relating to input key''' index = hash(key) % self.inner_size if self.array[index] is None: raise KeyError("Key not found") for key_val_pair in self.array[index]: if key_val_pair[0] == key: return key_val_pair[1] raise KeyError("Key not found") def set(self, key, value): '''sets keyvaluepair and adds it to hashmap''' index = self.hashTuple(key) % self.inner_size if self.isfull(): self.inner_size = self.inner_size * 2 self.array = [None] * self.inner_size if self.array[index] is None: self.array[index] = [] self.array[index].append((key, value)) else: for kvp in range(len(self.array[index])): key_val_pair = self.array[index][kvp] if key_val_pair[0] == key: self.array[index][kvp] = None self.array[index][kvp] = ((key_val_pair[0], value)) return self.array[index].append((key, value)) self.count += 1 if self.getLoadFactor() >= 0.80: self.rehash() def getLoadFactor(self): '''returns how full the hashmap is''' return self.count / self.inner_size def rehash(self): '''reorders hashmap''' self.inner_size = self.inner_size * 2 - 1 temp = [] for cell in self.array: if cell is not None: for key_val in cell: temp.append(key_val) self.array = [None] * self.inner_size self.count = 0 for key_val in temp: self.set(key_val[0], key_val[1]) def isfull(self): '''returns true if arr is full''' for i in range(self.inner_size): if self.array[i] is None: return False return True def hashTuple(self, tuple_val): '''hashes tuplue and returns value''' if tuple_val is tuple: return tuple_val[0] ** tuple_val[1] return hash(tuple_val) def remove(self, key): '''removes key val pair from arr''' index = hash(key) % self.inner_size if self.array[index] is None: raise KeyError("Key not found") for key_val_pair in self.array[index]: if key_val_pair[0] == key: self.array[index] = None def clear(self): '''clears hashmap and creates a new one of size 7''' self.inner_size = 7 self.array = [None] * self.inner_size self.count = 0 def capacity(self): '''returns capacity of hashmap''' return self.inner_size def size(self): '''returns how many elements are in hashmap''' return self.count def keys(self): '''returns a list of keys''' result = [] for index in range(self.inner_size): print(self.array[index]) if self.array[index] is not None: for item in self.array[index]: result.append(item[0]) return result def __hash__(self): '''hash function''' return -12
"""HashMap class to keep track of key value pairs""" class Hashmap: """HashMap class to keep track of key value pairs""" def __init__(self): """initializes key val pair""" self.inner_size = 7 self.array = [None] * self.inner_size self.count = 0 def get(self, key): """returns the keyvaluepair relating to input key""" index = hash(key) % self.inner_size if self.array[index] is None: raise key_error('Key not found') for key_val_pair in self.array[index]: if key_val_pair[0] == key: return key_val_pair[1] raise key_error('Key not found') def set(self, key, value): """sets keyvaluepair and adds it to hashmap""" index = self.hashTuple(key) % self.inner_size if self.isfull(): self.inner_size = self.inner_size * 2 self.array = [None] * self.inner_size if self.array[index] is None: self.array[index] = [] self.array[index].append((key, value)) else: for kvp in range(len(self.array[index])): key_val_pair = self.array[index][kvp] if key_val_pair[0] == key: self.array[index][kvp] = None self.array[index][kvp] = (key_val_pair[0], value) return self.array[index].append((key, value)) self.count += 1 if self.getLoadFactor() >= 0.8: self.rehash() def get_load_factor(self): """returns how full the hashmap is""" return self.count / self.inner_size def rehash(self): """reorders hashmap""" self.inner_size = self.inner_size * 2 - 1 temp = [] for cell in self.array: if cell is not None: for key_val in cell: temp.append(key_val) self.array = [None] * self.inner_size self.count = 0 for key_val in temp: self.set(key_val[0], key_val[1]) def isfull(self): """returns true if arr is full""" for i in range(self.inner_size): if self.array[i] is None: return False return True def hash_tuple(self, tuple_val): """hashes tuplue and returns value""" if tuple_val is tuple: return tuple_val[0] ** tuple_val[1] return hash(tuple_val) def remove(self, key): """removes key val pair from arr""" index = hash(key) % self.inner_size if self.array[index] is None: raise key_error('Key not found') for key_val_pair in self.array[index]: if key_val_pair[0] == key: self.array[index] = None def clear(self): """clears hashmap and creates a new one of size 7""" self.inner_size = 7 self.array = [None] * self.inner_size self.count = 0 def capacity(self): """returns capacity of hashmap""" return self.inner_size def size(self): """returns how many elements are in hashmap""" return self.count def keys(self): """returns a list of keys""" result = [] for index in range(self.inner_size): print(self.array[index]) if self.array[index] is not None: for item in self.array[index]: result.append(item[0]) return result def __hash__(self): """hash function""" return -12
def split_and_join(line): # write your code here line_splitted = line.split(' ') return ('-').join(line_splitted) # Or in one line: # return ('-').join(line.split(' ')
def split_and_join(line): line_splitted = line.split(' ') return '-'.join(line_splitted)
def multiplication(a, b): a = float(a) b = float(b) value = a * b return value
def multiplication(a, b): a = float(a) b = float(b) value = a * b return value
level = 3 name = 'Pamengpeuk' capital = 'Sukasari' area = 14.62
level = 3 name = 'Pamengpeuk' capital = 'Sukasari' area = 14.62
def get_repo_path(path): path = path.replace('\\\\', '/').replace('\\', '/') url_array = path.split("/") del url_array[len(url_array) - 1] repo_path = "" for word in url_array: if word != url_array[len(url_array) - 1]: repo_path += word + "/" return repo_path + url_array[len(url_array) - 1] def get_difference_in_file(repo): difference = [] for commit in repo.iter_commits(): difference = difference + [commit.summary + " made by " + commit.author.name + " on " + commit.authored_datetime.strftime('%d, %b %Y')] return difference def revert(repo, position): x = 0 for commit in repo.iter_commits(): if int(position) > x: repo.git.revert(commit, no_edit=True) x += 1
def get_repo_path(path): path = path.replace('\\\\', '/').replace('\\', '/') url_array = path.split('/') del url_array[len(url_array) - 1] repo_path = '' for word in url_array: if word != url_array[len(url_array) - 1]: repo_path += word + '/' return repo_path + url_array[len(url_array) - 1] def get_difference_in_file(repo): difference = [] for commit in repo.iter_commits(): difference = difference + [commit.summary + ' made by ' + commit.author.name + ' on ' + commit.authored_datetime.strftime('%d, %b %Y')] return difference def revert(repo, position): x = 0 for commit in repo.iter_commits(): if int(position) > x: repo.git.revert(commit, no_edit=True) x += 1
class Solution: def generateTrees(self, n: int) -> List[TreeNode]: if n == 0: return [] def generateTrees(mini: int, maxi: int) -> List[Optional[int]]: if mini > maxi: return [None] ans = [] for i in range(mini, maxi + 1): for left in generateTrees(mini, i - 1): for right in generateTrees(i + 1, maxi): ans.append(TreeNode(i)) ans[-1].left = left ans[-1].right = right return ans return generateTrees(1, n)
class Solution: def generate_trees(self, n: int) -> List[TreeNode]: if n == 0: return [] def generate_trees(mini: int, maxi: int) -> List[Optional[int]]: if mini > maxi: return [None] ans = [] for i in range(mini, maxi + 1): for left in generate_trees(mini, i - 1): for right in generate_trees(i + 1, maxi): ans.append(tree_node(i)) ans[-1].left = left ans[-1].right = right return ans return generate_trees(1, n)
def taskA(data): difference = ord('a') - ord('A') stack = [] for c in data: if len(stack) == 0: stack.append(c) elif c != stack[-1] and (ord(c)+difference == ord(stack[-1]) or ord(c) == ord(stack[-1]) + difference): stack.pop() else: stack.append(c) return len(stack) def taskBhelper(data,notC): difference = ord('a') - ord('A') stack = [] for c in data: if difference + ord(c) != notC and ord(c) != notC: if len(stack) == 0: stack.append(c) elif c != stack[-1] and (ord(c)+difference == ord(stack[-1]) or ord(c) == ord(stack[-1]) + difference): stack.pop() else: stack.append(c) return len(stack) def taskB(data): min = 999999999 for letter in range(ord('a'),ord('z')+1): result = taskBhelper(data,letter) if min > result: min = result return min with open("input.txt") as input: data = input.read() print(taskA(data)) print(taskB(data))
def task_a(data): difference = ord('a') - ord('A') stack = [] for c in data: if len(stack) == 0: stack.append(c) elif c != stack[-1] and (ord(c) + difference == ord(stack[-1]) or ord(c) == ord(stack[-1]) + difference): stack.pop() else: stack.append(c) return len(stack) def task_bhelper(data, notC): difference = ord('a') - ord('A') stack = [] for c in data: if difference + ord(c) != notC and ord(c) != notC: if len(stack) == 0: stack.append(c) elif c != stack[-1] and (ord(c) + difference == ord(stack[-1]) or ord(c) == ord(stack[-1]) + difference): stack.pop() else: stack.append(c) return len(stack) def task_b(data): min = 999999999 for letter in range(ord('a'), ord('z') + 1): result = task_bhelper(data, letter) if min > result: min = result return min with open('input.txt') as input: data = input.read() print(task_a(data)) print(task_b(data))
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def rightSideView(self, root: TreeNode) -> List[int]: res = [] if not root: return res levelNode = [root] while levelNode: res.append(levelNode[-1].val) levelNodeNum = len(levelNode) for i in range(levelNodeNum): if levelNode[0].left: levelNode.append(levelNode[0].left) if levelNode[0].right: levelNode.append(levelNode[0].right) levelNode.pop(0) return res
class Solution: def right_side_view(self, root: TreeNode) -> List[int]: res = [] if not root: return res level_node = [root] while levelNode: res.append(levelNode[-1].val) level_node_num = len(levelNode) for i in range(levelNodeNum): if levelNode[0].left: levelNode.append(levelNode[0].left) if levelNode[0].right: levelNode.append(levelNode[0].right) levelNode.pop(0) return res
print(True) print(False, "\n\n") #booleans have to be capitalized or they return false a =3 b =5 print(a==b) #a is equal to b equal False print(a!=b) #a is not equal to b equal True print(a<b) #less than print(a>b, "\n") #greater than print(bool(28)) print(bool(-2.1562)) print(bool(0), "\n") #with strings, trivial values are false and vice versa print(bool('turing')) print(bool(' ')) print(bool(''), "\n") print(str(True)) print(str(False), "\n") print(int(True)) #1 is true and 0 is false print(int(False)) print(10 * False)
print(True) print(False, '\n\n') a = 3 b = 5 print(a == b) print(a != b) print(a < b) print(a > b, '\n') print(bool(28)) print(bool(-2.1562)) print(bool(0), '\n') print(bool('turing')) print(bool(' ')) print(bool(''), '\n') print(str(True)) print(str(False), '\n') print(int(True)) print(int(False)) print(10 * False)
#!/usr/bin/env python3 # https://stackoverflow.com/questions/287871/how-to-print-colored-text-in-terminal-in-python class Terminal: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' @staticmethod def warning(message): print(Terminal.WARNING + message + Terminal.ENDC) @staticmethod def error(message): print(Terminal.FAIL + message + Terminal.ENDC)
class Terminal: header = '\x1b[95m' okblue = '\x1b[94m' okgreen = '\x1b[92m' warning = '\x1b[93m' fail = '\x1b[91m' endc = '\x1b[0m' bold = '\x1b[1m' underline = '\x1b[4m' @staticmethod def warning(message): print(Terminal.WARNING + message + Terminal.ENDC) @staticmethod def error(message): print(Terminal.FAIL + message + Terminal.ENDC)
A = [[2, 5, 11], [-9, 4, 6], [4, 7, 12]] soma=0 for linha in range(len(A)): # linhas for coluna in range(len(A[0])): #colunas #soma+=A[linha][coluna] soma = soma + A[linha][coluna] print ("Soma:", soma)
a = [[2, 5, 11], [-9, 4, 6], [4, 7, 12]] soma = 0 for linha in range(len(A)): for coluna in range(len(A[0])): soma = soma + A[linha][coluna] print('Soma:', soma)
service_broadcast_settings_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "Set a services broadcast settings", "type": "object", "title": "Set a services broadcast settings", "properties": { "broadcast_channel": {"enum": ["operator", "test", "severe", "government"]}, "service_mode": {"enum": ["training", "live"]}, "provider_restriction": {"enum": ["three", "o2", "vodafone", "ee", "all"]} }, "required": ["broadcast_channel", "service_mode", "provider_restriction"] }
service_broadcast_settings_schema = {'$schema': 'http://json-schema.org/draft-04/schema#', 'description': 'Set a services broadcast settings', 'type': 'object', 'title': 'Set a services broadcast settings', 'properties': {'broadcast_channel': {'enum': ['operator', 'test', 'severe', 'government']}, 'service_mode': {'enum': ['training', 'live']}, 'provider_restriction': {'enum': ['three', 'o2', 'vodafone', 'ee', 'all']}}, 'required': ['broadcast_channel', 'service_mode', 'provider_restriction']}
sims_pre = [] with open('lpips_sim_waymo.txt') as f: data = f.read() sims_pre = data.split('(')[1:] sims_post = [] for sim in sims_pre: sim = sim.split('): ') img1 = sim[0].split(', ')[0] img2 = sim[0].split(', ')[1] val = sim[1] sims_post.append(img1+','+img2+','+val) with open('lpips_sim_waymo_processed.txt', 'w+') as o: for sim in sims_post: o.write(sim+'\n')
sims_pre = [] with open('lpips_sim_waymo.txt') as f: data = f.read() sims_pre = data.split('(')[1:] sims_post = [] for sim in sims_pre: sim = sim.split('): ') img1 = sim[0].split(', ')[0] img2 = sim[0].split(', ')[1] val = sim[1] sims_post.append(img1 + ',' + img2 + ',' + val) with open('lpips_sim_waymo_processed.txt', 'w+') as o: for sim in sims_post: o.write(sim + '\n')
class Solution: # @param head, a ListNode # @return a boolean def hasCycle(self, head): if head == None or head.next == None: return False slow = fast = head while fast and fast.next: slow = slow.next fast = fast.next.next if slow == fast: return True return False
class Solution: def has_cycle(self, head): if head == None or head.next == None: return False slow = fast = head while fast and fast.next: slow = slow.next fast = fast.next.next if slow == fast: return True return False
LIGHT = "#" DARK = "." iterations = 50 padding = iterations * 2 with open('day20/input.txt') as f: lines = f.readlines() map = lines[0].strip() lines.pop(0) lines.pop(0) image = [] h = len(lines) w = len(lines[0].strip()) def blank(): q = [] for i in range(2 * padding + h): qq = [] for j in range(2 * padding + w): qq.append(DARK) q.append(qq) return q image = blank() for r in range(h): for c in range(w): image[r + padding][c + padding] = lines[r][c] def dump(): for row in range(len(image)): for col in range(len(image[0])): print(image[row][col], end="") print() print() # dump() for q in range(iterations): buf = blank() for row in range(1, len(image) -1): for col in range(1, len(image[0]) -1): s = "" for rr in range(row-1, row+2): for cc in range(col-1, col+2): s += "0" if image[rr][cc] == DARK else "1" s10 = int(s, 2) buf[row][col] = map[s10] image = buf # dump() count = 0 for row in range(padding // 2, len(image) - padding // 2): for col in range(padding // 2, len(image) - padding // 2): if image[row][col] == LIGHT: count += 1 print(count)
light = '#' dark = '.' iterations = 50 padding = iterations * 2 with open('day20/input.txt') as f: lines = f.readlines() map = lines[0].strip() lines.pop(0) lines.pop(0) image = [] h = len(lines) w = len(lines[0].strip()) def blank(): q = [] for i in range(2 * padding + h): qq = [] for j in range(2 * padding + w): qq.append(DARK) q.append(qq) return q image = blank() for r in range(h): for c in range(w): image[r + padding][c + padding] = lines[r][c] def dump(): for row in range(len(image)): for col in range(len(image[0])): print(image[row][col], end='') print() print() for q in range(iterations): buf = blank() for row in range(1, len(image) - 1): for col in range(1, len(image[0]) - 1): s = '' for rr in range(row - 1, row + 2): for cc in range(col - 1, col + 2): s += '0' if image[rr][cc] == DARK else '1' s10 = int(s, 2) buf[row][col] = map[s10] image = buf count = 0 for row in range(padding // 2, len(image) - padding // 2): for col in range(padding // 2, len(image) - padding // 2): if image[row][col] == LIGHT: count += 1 print(count)
def proteins(strand): seq = [] codon_map = { "AUG": "Methionine", "UUU": "Phenylalanine", "UUC": "Phenylalanine", "UUA": "Leucine", "UUG": "Leucine", "UCU": "Serine", "UCC": "Serine", "UCA": "Serine", "UCG": "Serine", "UAU": "Tyrosine", "UAC": "Tyrosine", "UGU": "Cysteine", "UGC": "Cysteine", "UGG": "Tryptophan", "UAA": False, "UAG": False, "UGA": False, } while strand: codon, strand = strand[0:3], strand[3:] if codon in codon_map: if codon_map[codon]: seq.append(codon_map[codon]) else: strand = "" return seq
def proteins(strand): seq = [] codon_map = {'AUG': 'Methionine', 'UUU': 'Phenylalanine', 'UUC': 'Phenylalanine', 'UUA': 'Leucine', 'UUG': 'Leucine', 'UCU': 'Serine', 'UCC': 'Serine', 'UCA': 'Serine', 'UCG': 'Serine', 'UAU': 'Tyrosine', 'UAC': 'Tyrosine', 'UGU': 'Cysteine', 'UGC': 'Cysteine', 'UGG': 'Tryptophan', 'UAA': False, 'UAG': False, 'UGA': False} while strand: (codon, strand) = (strand[0:3], strand[3:]) if codon in codon_map: if codon_map[codon]: seq.append(codon_map[codon]) else: strand = '' return seq
s=input() d={} if s in d: print(s+str(d[s])) d[s] += 1
s = input() d = {} if s in d: print(s + str(d[s])) d[s] += 1
# This problem was recently asked by Twitter: # Given a Roman numeral, find the corresponding decimal value. Inputs will be between 1 and 3999. # Numbers are strings of these symbols in descending order. In some cases, subtractive notation is used to avoid repeated characters. # The rules are as follows: # 1.) I placed before V or X is one less, so 4 = IV (one less than 5), and 9 is IX (one less than 10) # 2.) X placed before L or C indicates ten less, so 40 is XL (10 less than 50) and 90 is XC (10 less than 100). # 3.) C placed before D or M indicates 100 less, so 400 is CD (100 less than 500), and 900 is CM (100 less than 1000). class Solution: def value(self, r): if r == "I": return 1 if r == "V": return 5 if r == "X": return 10 if r == "L": return 50 if r == "C": return 100 if r == "D": return 500 if r == "M": return 1000 return -1 def romanToInt(self, s): # Fill this in. res = 0 i = 0 while i < len(s): s1 = self.value(s[i]) if i + 1 < len(s): s2 = self.value(s[i + 1]) if s1 >= s2: res = res + s1 i = i + 1 else: res = res + s2 - s1 i = i + 2 else: res = res + s1 i = i + 1 return res n = "MCMX" print(Solution().romanToInt(n)) # 1910
class Solution: def value(self, r): if r == 'I': return 1 if r == 'V': return 5 if r == 'X': return 10 if r == 'L': return 50 if r == 'C': return 100 if r == 'D': return 500 if r == 'M': return 1000 return -1 def roman_to_int(self, s): res = 0 i = 0 while i < len(s): s1 = self.value(s[i]) if i + 1 < len(s): s2 = self.value(s[i + 1]) if s1 >= s2: res = res + s1 i = i + 1 else: res = res + s2 - s1 i = i + 2 else: res = res + s1 i = i + 1 return res n = 'MCMX' print(solution().romanToInt(n))