content
stringlengths
7
1.05M
class ServiceManager() : """ 1. definition 2. table """ def get_view_obj(self): """ get view data for net config :return: """ pass def set_view_obj(self, obj): """ set net config data edited on view :param obj: :return: """ pass def get_batchver_list(self, nn_id, nn_ver): """ return list of batch version list :param nn_id: :param nn_ver: :return: """ return None def delete_batchver_info(self, nn_id, nn_ver, batch_ver): """ :param nn_id: :param nn_ver: :param batch_ver: :return: """ return None def set_active_batchver(self, nn_id, nn_ver, batch_ver): """ :param nn_id: :param nn_ver: :param batch_ver: :return: """ return None
load( "@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "action_config", "feature", "flag_group", "flag_set", "tool", "tool_path", "with_feature_set", ) load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES") def _impl(ctx): if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"): toolchain_identifier = "clang7_toolchain" else: fail("Unreachable") host_system_name = "local" target_system_name = "local" target_cpu = "k8" target_libc = "local" if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"): compiler = "clang7" else: fail("Unreachable") abi_version = "local" abi_libc_version = "local" cc_target_os = None builtin_sysroot = None all_compile_actions = [ ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.clif_match, ACTION_NAMES.lto_backend, ] all_cpp_compile_actions = [ ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.clif_match, ] preprocessor_compile_actions = [ ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.clif_match, ] codegen_compile_actions = [ ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ] all_link_actions = [ ACTION_NAMES.cpp_link_executable, ACTION_NAMES.cpp_link_dynamic_library, ACTION_NAMES.cpp_link_nodeps_dynamic_library, ] objcopy_embed_data_action = action_config( action_name = "objcopy_embed_data", enabled = True, tools = [tool(path = "/usr/bin/objcopy")], ) action_configs = [objcopy_embed_data_action] supports_pic_feature = feature(name = "supports_pic", enabled = True) objcopy_embed_flags_feature = feature( name = "objcopy_embed_flags", enabled = True, flag_sets = [ flag_set( actions = ["objcopy_embed_data"], flag_groups = [flag_group(flags = ["-I", "binary"])], ), ], ) dbg_feature = feature(name = "dbg") sysroot_feature = feature( name = "sysroot", enabled = True, flag_sets = [ flag_set( actions = [ ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ACTION_NAMES.cpp_link_executable, ACTION_NAMES.cpp_link_dynamic_library, ACTION_NAMES.cpp_link_nodeps_dynamic_library, ], flag_groups = [ flag_group( flags = ["--sysroot=%{sysroot}"], expand_if_available = "sysroot", ), ], ), ], ) if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"): unfiltered_compile_flags_feature = feature( name = "unfiltered_compile_flags", enabled = True, flag_sets = [ flag_set( actions = [ ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ], flag_groups = [ flag_group( flags = [ "-Wno-deprecated-declarations", "-Wno-builtin-macro-redefined", "-D__DATE__=\"redacted\"", "-D__TIMESTAMP__=\"redacted\"", "-D__TIME__=\"redacted\"", ], ), ], ), ], ) else: unfiltered_compile_flags_feature = None if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"): default_link_flags_feature = feature( name = "default_link_flags", enabled = True, flag_sets = [ flag_set( actions = all_link_actions, flag_groups = [ flag_group( flags = [ "-lstdc++", "-lm", "-fuse-ld=gold", "-Wl,-no-as-needed", "-Wl,-z,relro,-z,now", "-B/usr/bin", "-B/usr/bin", ], ), ], ), flag_set( actions = all_link_actions, flag_groups = [flag_group(flags = ["-Wl,--gc-sections"])], with_features = [with_feature_set(features = ["opt"])], ), ], ) else: default_link_flags_feature = None coverage_feature = feature( name = "coverage", flag_sets = [ flag_set( actions = [ ACTION_NAMES.preprocess_assemble, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, "c++-header-preprocessing", ACTION_NAMES.cpp_module_compile, ], flag_groups = [flag_group(flags = ["-fprofile-arcs", "-ftest-coverage"])], ), flag_set( actions = [ "c++-link-interface-dynamic-library", ACTION_NAMES.cpp_link_dynamic_library, ACTION_NAMES.cpp_link_executable, ], flag_groups = [flag_group(flags = ["-lgcov"])], ), ], provides = ["profile"], ) supports_start_end_lib_feature = feature(name = "supports_start_end_lib", enabled = True) opt_feature = feature(name = "opt") fastbuild_feature = feature(name = "fastbuild") user_compile_flags_feature = feature( name = "user_compile_flags", enabled = True, flag_sets = [ flag_set( actions = [ ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ], flag_groups = [ flag_group( flags = ["%{user_compile_flags}"], iterate_over = "user_compile_flags", expand_if_available = "user_compile_flags", ), ], ), ], ) if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"): default_compile_flags_feature = feature( name = "default_compile_flags", enabled = True, flag_sets = [ flag_set( actions = [ ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ], flag_groups = [ flag_group( flags = [ "-U_FORTIFY_SOURCE", "-fstack-protector", "-Wall", "-B/usr/bin", "-B/usr/bin", "-fno-omit-frame-pointer", "-fcolor-diagnostics", ], ), ], ), flag_set( actions = [ ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ], flag_groups = [flag_group(flags = ["-g"])], with_features = [with_feature_set(features = ["dbg"])], ), flag_set( actions = [ ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ], flag_groups = [ flag_group( flags = [ "-ggdb", "-O2", "-D_FORTIFY_SOURCE=1", "-DNDEBUG", "-ffunction-sections", "-fdata-sections", ], ), ], with_features = [with_feature_set(features = ["opt"])], ), flag_set( actions = [ ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ], flag_groups = [flag_group(flags = ["-g"])], with_features = [with_feature_set(features = ["fastbuild"])], ), flag_set( actions = [ ACTION_NAMES.linkstamp_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.lto_backend, ACTION_NAMES.clif_match, ], flag_groups = [ flag_group( flags = [ "-Werror", "-std=c++17", "-Wall", "-B/usr/bin", "-B/usr/bin", "-Wunused-parameter", "-fno-omit-frame-pointer", "-Werror=sign-compare", ], ), ], ), ], ) else: default_compile_flags_feature = None supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True) features = [ default_compile_flags_feature, default_link_flags_feature, coverage_feature, supports_dynamic_linker_feature, supports_start_end_lib_feature, supports_pic_feature, objcopy_embed_flags_feature, opt_feature, dbg_feature, fastbuild_feature, user_compile_flags_feature, sysroot_feature, unfiltered_compile_flags_feature, ] if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"): cxx_builtin_include_directories = [ "/usr/lib/llvm-7/lib/clang/7.1.0/include", "/usr/local/include", "/usr/include", ] else: fail("Unreachable") artifact_name_patterns = [] make_variables = [] if (ctx.attr.cpu == "k8" and ctx.attr.compiler == "clang7"): tool_paths = [ tool_path(name = "ld", path = "/usr/bin/ld"), tool_path(name = "cpp", path = "/usr/bin/cpp"), tool_path(name = "dwp", path = "/usr/bin/dwp"), tool_path(name = "gcov", path = "/usr/bin/gcov"), tool_path(name = "nm", path = "/usr/bin/nm"), tool_path(name = "objcopy", path = "/usr/bin/objcopy"), tool_path(name = "objdump", path = "/usr/bin/objdump"), tool_path(name = "strip", path = "/usr/bin/strip"), tool_path(name = "gcc", path = "/usr/bin/clang-7"), tool_path(name = "ar", path = "/usr/bin/ar"), ] else: fail("Unreachable") out = ctx.actions.declare_file(ctx.label.name) ctx.actions.write(out, "Fake executable") return [ cc_common.create_cc_toolchain_config_info( ctx = ctx, features = features, action_configs = action_configs, artifact_name_patterns = artifact_name_patterns, cxx_builtin_include_directories = cxx_builtin_include_directories, toolchain_identifier = toolchain_identifier, host_system_name = host_system_name, target_system_name = target_system_name, target_cpu = target_cpu, target_libc = target_libc, compiler = compiler, abi_version = abi_version, abi_libc_version = abi_libc_version, tool_paths = tool_paths, make_variables = make_variables, builtin_sysroot = builtin_sysroot, cc_target_os = cc_target_os, ), DefaultInfo( executable = out, ), ] cc_toolchain_config = rule( implementation = _impl, attrs = { "cpu": attr.string(mandatory = True, values = ["k8"]), "compiler": attr.string(mandatory = True, values = ["clang7"]), }, provides = [CcToolchainConfigInfo], executable = True, )
for i in range(plan_arguments['RUN_NUM']): ############################################# CC ############################################# add_test(name='cc_feature_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' None reuse CC random case, input data format is fixed as feature ''') add_test(name='cc_pitch_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' None reuse CC random case, input data format is fixed as image ''') add_test(name='cc_feature_data_full_reuse_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], # for reuse case, at least 2 layers are required module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' CC reuse input data random case, input data format is fixed as feature ''') add_test(name='cc_feature_weight_full_reuse_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], # for reuse case, at least 2 layers are required module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' CC reuse weight random case, input data format is fixed as feature ''') add_test(name='cc_image_data_full_reuse_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,2 ', get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], # for reuse case, at least 2 layers are required module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' CC reuse input data random case, input data format is fixed as image ''') add_test(name='cc_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' None reuse CC random case ''') ############################################## PDP ############################################# add_test(name='pdp_split_rtest', tags=['L10', 'pdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' PDP random case, fixed to split mode ''') add_test(name='pdp_non_split_rtest', tags=['L10', 'pdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' PDP random case, fixed to non-split mode ''') add_test(name='pdp_rtest', tags=['L10', 'pdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' PDP random case ''') ############################################# SDP ############################################# if 'NVDLA_SDP_BS_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_BS_ENABLE'] is True: add_test(name='sdp_bs_rtest', tags=['L10', 'sdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' SDP offline random case, with BS enabled and not bypassed ''') if 'NVDLA_SDP_BN_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_BN_ENABLE'] is True: add_test(name='sdp_bn_rtest', tags=['L10', 'sdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' SDP offline random case, with BN enabled and not bypassed ''') if 'NVDLA_SDP_EW_ENABLE' in project.PROJVAR and project.PROJVAR['NVDLA_SDP_EW_ENABLE'] is True: add_test(name='sdp_ew_rtest', tags=['L10', 'sdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' SDP offline random case, with EW enabled and not bypassed ''') add_test(name='sdp_rtest', tags=['L10', 'sdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' SDP offline random case ''') ############################################# CDP ############################################# add_test(name='cdp_exp_rtest', tags=['L10', 'cdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' CDP random case, fixed to EXPONENT mode of LE LUT ''') add_test(name='cdp_lin_rtest', tags=['L10', 'cdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' CDP random case, fixed to LINEAR mode of LE LUT ''') add_test(name='cdp_rtest', tags=['L10', 'cdp'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], get_seed_args(), DISABLE_COMPARE_ALL_UNITS_SB_ARG], module='nvdla_uvm_test', config=['nvdla_utb'], desc=''' CDP random case ''')
'''Example test script. Basic checks of device before processed Input Variables: args - arguments dictionary given to demo tester that may be used to changed nature of test. dev - Example device under test name - Name of test being run. results - Results map of all tests. Test Specific Arguments: args["hw_rev"] - hardware revision to expect ''' expected_hw_rev = args["hw_rev"] output_good("Welcome") output_normal("Reading device 3.3V power rail.") mV = dev.read_3v3_rail() store_value("V3.3 power rail mV", mV) threshold_check(mV, 3300, 90, "mV", "Power rail check") output_normal("Checking device current draw.") mA = dev.read_current() store_value("mA draw", mA) threshold_check(mA, 150, 10, "mA", "Power draw") output_normal("Read hardware revision from device pull ups.") hw_rev = dev.read_revision() store_value("HW Rev", hw_rev) exact_check(hw_rev, expected_hw_rev, "Hardware revision")
# -*- coding: utf-8 -*- """ Created on Sun Feb 4 20:13:02 2018 @author: User """ def checkit(s1, s2): for i in s1: for j in s2: if i == j: s1 = s1[1:] s2 = s2[1:] print(i,j, s1, s2) if len(s1) >=1 and len(s2) ==0: return True return False print(checkit("I am a string","I am a"))
# 3-9. Dinner Guests: Working with one of the programs from Exercises 3-4 through 3-7 (page 46), # use len() to print a message indicating the number of people you are inviting to dinner. guests = ['Antonio', 'Emanuel', 'Francisco'] message = "1.- Hello dear uncle " + guests[0] + ", I hope you can come this 16th for a mexican dinner in my house." print(message) message = "2.- Hi " + guests[1] + "! The next monday we'll have a dinner, you should come here to spend time with " \ "friends for a while, also we will have some beers. " print(message) message = "3.- Hello grandpa " + guests[2] + "!, my mother told me that we will have a dinner next monday and we want" \ " that you come here because we miss you. " print(message) print('\n') print(len(guests))
#https://adventofcode.com/2021/day/1 input2="""131 140 136 135 155 175 178 186 187 189 194 195 203 193 178 179 180 188 204 214 215 252 253 261 281 294 293 299 300 301 307 333 324 322 323 335 319 312 313 312 320 323 324 336 341 347 357 358 363 357 334 348 364 365 367 370 369 373 344 328 330 327 339 340 341 335 342 347 349 355 348 359 360 341 342 322 321 324 323 322 324 327 340 341 353 383 387 391 422 424 422 426 429 427 428 445 421 423 429 414 411 407 409 402 422 425 423 427 424 430 428 432 433 434 429 430 406 407 411 420 412 419 422 424 425 426 428 430 432 431 432 433 449 450 453 457 459 462 482 470 471 488 495 496 499 503 516 526 531 532 541 555 554 567 558 557 560 561 566 580 581 582 594 595 598 599 582 589 593 589 592 593 590 606 615 623 627 628 630 636 641 657 658 693 695 698 707 713 714 720 721 723 721 720 707 679 699 676 667 663 664 666 660 663 673 677 662 660 663 683 681 674 689 698 699 704 705 696 697 702 693 694 700 699 681 684 690 669 673 688 691 692 691 688 685 656 638 634 651 665 670 672 685 689 709 711 714 715 735 734 738 737 738 744 765 769 776 809 819 812 814 821 794 793 796 794 815 827 831 834 840 850 846 849 842 847 846 849 850 857 885 887 888 887 883 894 895 913 917 913 915 917 918 920 929 959 961 958 954 956 962 966 959 966 967 969 972 978 993 998 1006 1007 1010 1011 1015 1037 1047 1051 1029 1050 1052 1054 1033 1040 1036 1021 1031 1033 1058 1070 1066 1064 1052 1051 1057 1058 1059 1060 1071 1080 1081 1083 1086 1075 1083 1092 1095 1101 1113 1078 1080 1075 1077 1080 1083 1090 1092 1091 1092 1093 1097 1099 1103 1104 1105 1109 1084 1101 1103 1109 1101 1099 1096 1099 1103 1104 1105 1119 1123 1095 1096 1095 1132 1149 1164 1165 1182 1180 1198 1207 1210 1213 1218 1239 1235 1236 1242 1243 1276 1279 1282 1283 1299 1301 1294 1298 1304 1301 1303 1313 1312 1316 1317 1319 1320 1315 1318 1326 1330 1332 1331 1334 1319 1316 1308 1306 1309 1312 1310 1329 1318 1321 1335 1310 1311 1313 1329 1331 1335 1341 1355 1356 1357 1360 1378 1373 1374 1373 1377 1378 1383 1379 1380 1376 1370 1369 1380 1381 1382 1381 1383 1377 1401 1403 1408 1417 1406 1407 1409 1411 1414 1420 1419 1426 1456 1452 1453 1454 1453 1450 1442 1430 1434 1435 1439 1440 1441 1442 1463 1464 1471 1469 1471 1472 1433 1436 1434 1440 1446 1447 1452 1454 1441 1434 1420 1404 1396 1412 1423 1424 1437 1450 1452 1457 1458 1422 1423 1433 1436 1453 1484 1485 1460 1457 1458 1464 1465 1467 1468 1475 1476 1471 1470 1471 1473 1470 1473 1474 1490 1482 1484 1508 1515 1522 1521 1514 1518 1520 1522 1530 1528 1523 1535 1537 1539 1541 1533 1528 1531 1538 1539 1541 1547 1551 1550 1545 1546 1548 1551 1566 1577 1586 1587 1588 1613 1615 1631 1638 1639 1640 1645 1648 1642 1640 1643 1673 1679 1669 1673 1666 1669 1674 1682 1683 1700 1698 1709 1717 1729 1743 1745 1746 1744 1714 1722 1727 1734 1735 1745 1752 1751 1772 1788 1794 1798 1804 1798 1793 1796 1806 1809 1815 1816 1815 1813 1812 1817 1818 1821 1825 1821 1853 1827 1822 1825 1834 1833 1830 1836 1837 1838 1840 1841 1846 1841 1842 1845 1862 1863 1896 1898 1884 1885 1893 1892 1895 1896 1894 1903 1902 1907 1915 1919 1922 1923 1921 1924 1925 1927 1931 1932 1939 1940 1939 1959 1965 1975 1973 1974 1982 1983 1988 1992 1995 1994 1995 1994 2000 2001 2029 2030 2005 2006 2009 2013 2017 2014 2041 2042 2052 2047 2048 2052 2051 2053 2052 2069 2058 2059 2060 2061 2063 2062 2065 2066 2070 2072 2075 2061 2038 2037 2024 2022 2023 2011 2032 2037 2026 2027 2028 2034 2038 2039 2029 2042 2031 2033 2046 2048 2041 2049 2050 2052 2063 2064 2065 2067 2086 2070 2078 2087 2086 2089 2075 2076 2101 2103 2115 2095 2109 2112 2115 2126 2152 2129 2132 2117 2116 2119 2128 2127 2139 2140 2141 2145 2146 2125 2136 2132 2121 2125 2126 2134 2135 2142 2148 2149 2133 2137 2156 2160 2161 2162 2164 2176 2177 2179 2183 2184 2186 2187 2190 2195 2216 2210 2209 2206 2214 2211 2216 2223 2224 2225 2230 2242 2246 2248 2268 2272 2273 2278 2279 2280 2281 2275 2276 2282 2283 2278 2285 2288 2289 2286 2290 2285 2291 2294 2287 2293 2315 2314 2315 2325 2323 2328 2308 2312 2322 2361 2364 2366 2364 2369 2368 2384 2387 2390 2396 2370 2371 2377 2378 2377 2379 2395 2384 2381 2395 2401 2412 2411 2412 2414 2420 2422 2408 2425 2427 2428 2438 2442 2445 2456 2462 2461 2469 2467 2472 2471 2469 2449 2448 2442 2459 2460 2474 2477 2478 2480 2483 2468 2444 2442 2444 2460 2456 2445 2437 2430 2432 2457 2463 2467 2474 2477 2475 2478 2477 2478 2480 2485 2471 2495 2509 2514 2522 2523 2533 2515 2518 2539 2535 2543 2580 2586 2601 2602 2600 2602 2598 2597 2598 2605 2597 2596 2600 2602 2599 2605 2613 2614 2611 2603 2602 2601 2607 2608 2606 2598 2599 2602 2597 2605 2611 2612 2613 2645 2657 2662 2668 2669 2652 2655 2661 2663 2662 2664 2677 2695 2702 2738 2739 2738 2740 2728 2720 2714 2720 2712 2724 2725 2736 2745 2742 2747 2749 2744 2746 2750 2753 2759 2760 2761 2731 2733 2735 2736 2737 2741 2739 2740 2744 2745 2755 2744 2746 2748 2752 2750 2755 2736 2740 2742 2753 2752 2755 2780 2781 2783 2786 2788 2786 2796 2790 2789 2798 2816 2817 2815 2817 2819 2820 2825 2823 2827 2853 2856 2861 2862 2854 2873 2887 2884 2888 2884 2885 2893 2902 2901 2902 2904 2908 2909 2911 2914 2929 2931 2935 2934 2935 2934 2917 2918 2921 2926 2932 2937 2947 2928 2946 2971 2973 2972 2969 2972 2973 2978 2977 2968 2961 2962 2982 2987 2989 2990 2993 2995 2987 2991 2992 3002 3003 3004 3005 3011 3012 3031 3029 3036 3041 3069 3070 3087 3077 3090 3087 3066 3078 3080 3081 3071 3074 3075 3074 3069 3070 3078 3086 3080 3086 3088 3096 3098 3103 3117 3114 3143 3148 3149 3150 3149 3151 3165 3169 3172 3183 3184 3185 3190 3204 3218 3230 3231 3248 3249 3252 3249 3246 3268 3273 3274 3277 3289 3257 3269 3279 3267 3284 3312 3315 3314 3317 3310 3315 3314 3304 3305 3308 3322 3326 3331 3336 3339 3345 3348 3349 3348 3350 3348 3350 3362 3363 3373 3368 3349 3347 3344 3362 3364 3365 3374 3380 3390 3387 3389 3391 3392 3390 3388 3389 3395 3415 3416 3414 3415 3416 3417 3420 3418 3422 3421 3428 3421 3422 3424 3421 3422 3419 3416 3392 3396 3408 3399 3400 3403 3392 3398 3393 3415 3436 3458 3459 3467 3469 3472 3480 3489 3491 3490 3521 3518 3517 3518 3502 3510 3505 3506 3508 3509 3510 3506 3504 3505 3522 3525 3531 3524 3522 3517 3523 3526 3512 3516 3521 3535 3544 3539 3514 3519 3525 3523 3530 3529 3534 3526 3523 3525 3522 3509 3510 3523 3522 3516 3518 3522 3539 3540 3546 3551 3556 3566 3545 3573 3574 3576 3581 3582 3602 3604 3606 3590 3596 3598 3599 3607 3573 3592 3599 3607 3609 3617 3621 3606 3602 3599 3609 3602 3598 3607 3612 3613 3630 3632 3634 3636 3642 3651 3655 3662 3687 3688 3689 3684 3664 3663 3667 3645 3647 3649 3660 3673 3665 3663 3633 3656 3658 3669 3672 3673 3675 3683 3684 3685 3683 3687 3699 3703 3707 3717 3749 3763 3767 3771 3774 3790 3801 3808 3813 3814 3819 3835 3834 3835 3836 3837 3836 3837 3839 3844 3845 3831 3830 3828 3829 3830 3846 3844 3825 3811 3806 3809 3807 3826 3836 3847 3848 3849 3850 3863 3869 3868 3869 3870 3871 3867 3868 3872 3871 3874 3875 3874 3876 3879 3884 3901 3904 3901 3915 3905 3904 3889 3914 3917 3931 3932 3930 3932 3937 3943 3939 3941 3943 3930 3929 3945 3954 3972 3996 3997 4000 4001 3995 4025 4027 4034 4035 4050 4074 4071 4077 4078 4085 4087 4088 4091 4090 4091 4092 4089 4091 4096 4094 4095 4107 4109 4130 4131 4124 4136 4139 4153 4161 4173 4149 4154 4148 4150 4128 4160 4164 4168 4169 4158 4165 4174 4171 4195 4200 4201 4195 4198 4201 4202 4196 4203 4211 4209 4210 4217 4220 4203 4193 4194 4197 4193 4195 4196 4195 4197 4218 4222 4236 4223 4225 4242 4262 4265 4256 4260 4270 4271 4276 4272 4275 4297 4304 4297 4299 4302 4303 4301 4306 4337 4341 4342 4343 4345 4346 4351 4350 4338 4331 4337 4331 4345 4309 4311 4327 4328 4335 4360 4362 4364 4360 4357 4359 4367 4368 4352 4351 4347 4360 4356 4357 4362 4363 4357 4362 4367 4385 4388 4392 4395 4397 4398 4387 4395 4399 4402 4403 4424 4434 4443 4444 4445 4456 4457 4466 4470 4469 4470 4471 4505 4499 4500 4476 4483 4475 4476 4486 4496 4495 4504 4503 4516 4518 4517 4525 4527 4530 4532 4533 4535 4537 4541 4544 4546 4549 4551 4552 4555 4556 4563 4580 4583 4600 4589 4581 4585 4583 4585 4592 4585 4595 4605 4598 4601 4600 4603 4598 4628 4630 4626 4630 4632 4631 4632 4619 4633 4643 4630 4640 4660 4671 4675 4682 4697 4695 4700 4704 4705 4710 4721 4727 4732 4728 4729 4735 4743 4744 4754 4760 4766 4758 4762 4760 4763 4782 4786 4787 4789 4801 4804 4782 4752 4755 4757 4758 4757 4766 4778 4779 4769 4781 4777 4785 4786 4788 4796 4795 4796 4797 4805 4804 4814 4812 4815 4806 4805 4807 4805 4806 4807 4810 4845 4846 4855 4853 4859 4862 4867 4873 4879 4881 4880 4883 4880 4886 4892 4898 4903 4902 4905 4909 4914 4915 4917 4939 4941 4933 4932 4940 4945 4961 4966 4955 4960 4979 4980 4981 4970 4968 4970 4989 4996 5003 4983 4984 5006 5014 5018 5023 5042 5043 5050 5051 5076 5052 5055 5068 5059 5058 5035 5059 5060 5061 5068 5044 5043 5044 5045 5047 5048 5051 5044 5045 5049 5072 5080 5078 5101 5100 5092 5112 5111 5107 5113 5116 5123 5129 5127 5151 5176 5188 5189 5202 5204 5197 5199 5196 5201 5200 5203 5207 5209 5217 5218 5204 5206 5207 5208 5195 5201 5202 5199 5229 5228 5229 5233 5232 5227 5228 5229 5238 5236 5238 5243 5245 5244 5245 5230 5244 5258 5259 5268 5271 5274 5271 5272 5277 5300 5327 5358 5359 5360 5361 5364 5370 5375 5376 5384 5383 5384 5385 5389 5390 5395 5397 5413 5418 5434 5433 5449 5445 5447 5453 5454 5458 5460 5448 5452 5464 5469 5480 5481 5482 5486 5496 5499 5500 5527 5501 5476 5474 5475 5463 5462 5458 5459 5470 5473 5481 5493 5494 5495 5496 5497 5498 5495 5498 5496 5490 5491 5493 5495 5489 5514 5533 5541 5531 5537 5513 5531 5532 5533 5532 5526 5535 5553 5551 5554 5553 5555 5551 5557 5556 5558 5555 5554 5552 5566 5574 5577 5583 5584 5588 5590 5603 5610 5617 5619 5618 5619 5618 5630 5635 5638 5650 5659 5660 5672 5670 5676 5673 5675 5680 5682 5685 5688 5682 5683 5696 5700 5722 5714 5713 5710 5712 5740 5741 5739 5740 5746 5756 5769 5770 5757 5748 5766 5770""" input1="""199 200 208 210 200 207 240 269 260 263""" entries = list(map(int, input1.split('\n'))) entries = list(map(int, input2.split('\n'))) count = 0 for i in range(len(entries)): if i > 0: count = count + 1 if entries[i] > entries[i-1] else count print('a', count) # Part 2 entries = list(map(int, input1.split('\n'))) entries = list(map(int, input2.split('\n'))) count = 0 for i in range(len(entries)): if i > 0 and i + 1 < len(entries) and i + 2 < len(entries): count = count + 1 if (entries[i] + entries[i+1] + entries[i+2]) > (entries[i-1] + entries[i] + entries[i+1]) else count print('b', count)
# Copyright 2019 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Bash runfiles library init code for test_rules.bzl.""" # Init code to load the runfiles.bash file. # The runfiles library itself defines rlocation which you would need to look # up the library's runtime location, thus we have a chicken-and-egg problem. INIT_BASH_RUNFILES = [ "# --- begin runfiles.bash initialization ---", "# Copy-pasted from Bazel Bash runfiles library (tools/bash/runfiles/runfiles.bash).", "set -euo pipefail", 'if [[ ! -d "${RUNFILES_DIR:-/dev/null}" && ! -f "${RUNFILES_MANIFEST_FILE:-/dev/null}" ]]; then', ' if [[ -f "$0.runfiles_manifest" ]]; then', ' export RUNFILES_MANIFEST_FILE="$0.runfiles_manifest"', ' elif [[ -f "$0.runfiles/MANIFEST" ]]; then', ' export RUNFILES_MANIFEST_FILE="$0.runfiles/MANIFEST"', ' elif [[ -f "$0.runfiles/bazel_tools/tools/bash/runfiles/runfiles.bash" ]]; then', ' export RUNFILES_DIR="$0.runfiles"', " fi", "fi", 'if [[ -f "${RUNFILES_DIR:-/dev/null}/bazel_tools/tools/bash/runfiles/runfiles.bash" ]]; then', ' source "${RUNFILES_DIR}/bazel_tools/tools/bash/runfiles/runfiles.bash"', 'elif [[ -f "${RUNFILES_MANIFEST_FILE:-/dev/null}" ]]; then', ' source "$(grep -m1 "^bazel_tools/tools/bash/runfiles/runfiles.bash " \\', ' "$RUNFILES_MANIFEST_FILE" | cut -d " " -f 2-)"', "else", ' echo >&2 "ERROR: cannot find @bazel_tools//tools/bash/runfiles:runfiles.bash"', " exit 1", "fi", "# --- end runfiles.bash initialization ---", ] # Label of the runfiles library. BASH_RUNFILES_DEP = "@bazel_tools//tools/bash/runfiles"
class TierFulfillmentMessages(object): RROR_PROCESSING_TIER_REQUEST = 'There has been an error processing the tier config request. Error description: {}' class BasePurchaseMessages: pass class BaseChangeMessages: pass class BaseSuspendMessages: NOTHING_TO_DO = 'Suspend method for request {} - Nothing to do' class BaseCancelMessages: ACTIVATION_TILE_RESPONSE = 'Operation cancel done successfully' class BaseSharedMessages: ACTIVATING_TEMPLATE_ERROR = 'There has been a problem activating the template. Description {}' EMPTY_ACTIVATION_TILE = 'Activation tile response for marketplace {} cannot be empty' ERROR_GETTING_CONFIGURATION = 'There was an exception while getting configured info for the specified ' \ 'marketplace {}' NOT_FOUND_TEMPLATE = 'It was not found any template of type <{}> for the marketplace with id <{}>. ' \ 'Please review the configuration.' NOT_ALLOWED_DOWNSIZE = 'At least one of the requested items at the order is downsized which ' \ ' is not allowed. Please review your order.' RESPONSE_ERROR = 'Error: {} -> {}' RESPONSE_DOES_NOT_HAVE_ATTRIBUTE = 'Response does not have attribute {}. Check your request params. ' \ 'Response status - {}' WAITING_SUBSCRIPTION_ACTIVATION = 'The subscription has been updated, waiting Vendor/ISV to update the ' \ 'subscription status' class Message: class Shared(BaseSharedMessages): tier_request = TierFulfillmentMessages() class Purchase(BasePurchaseMessages): FAIL_REPEATED_PRODUCTS = 'It has been detected repeated products for the same purchase. ' \ 'Please review the configured plan.' class Change(BaseChangeMessages): pass class Suspend(BaseSuspendMessages): pass class Cancel(BaseCancelMessages): pass
#! /usr/bin/python # -*- coding: iso-8859-15 -*- n = int(input("Ingrese la cantidad de datos: ")) suma = 0 for i in range(n): x = float(input("Ingrese el dato: ")) suma = suma + x prom = suma / n print("El promedio es: " ,prom)
""" .. module:: djstripe.management. :synopsis: dj-stripe - management module, contains commands. """
N = int(input()) AS = [int(x) for x in input().split()] ok = [] for i in range(N): for j in range(N): if i == j: continue if AS[i] % AS[j] == 0: break else: ok.append(i) print(len(ok))
class Point: def __init__(self, x: int, y: int): self.x = x self.y = y def getX(self) -> int: return self.x def getY(self) -> int: return self.y def setX(self, x: int) -> None: self.x = x def setY(self, y: int) -> None: self.y = y
#!/usr/bin/env python3 usb_codes = { 0x04:"aA", 0x05:"bB", 0x06:"cC", 0x07:"dD", 0x08:"eE", 0x09:"fF", 0x0A:"gG", 0x0B:"hH", 0x0C:"iI", 0x0D:"jJ", 0x0E:"kK", 0x0F:"lL", 0x10:"mM", 0x11:"nN", 0x12:"oO", 0x13:"pP", 0x14:"qQ", 0x15:"rR", 0x16:"sS", 0x17:"tT", 0x18:"uU", 0x19:"vV", 0x1A:"wW", 0x1B:"xX", 0x1C:"yY", 0x1D:"zZ", 0x1E:"1!", 0x1F:"2@", 0x20:"3#", 0x21:"4$", 0x22:"5%", 0x23:"6^", 0x24:"7&", 0x25:"8*", 0x26:"9(", 0x27:"0)", 0x2C:" ", 0x2D:"-_", 0x2E:"=+", 0x2F:"[{", 0x30:"]}", 0x32:"#~", 0x33:";:", 0x34:"'\"", 0x36:",<", 0x37:".>", 0x4f:">", 0x50:"<" } buff = "" pos = 0 for x in open("strokes","r").readlines(): x = x.strip() if not x: continue code = int(x[4:6],16) if code == 0: continue if code == 0x28: buff += "[ENTER]" continue if int(x[0:2],16) == 2 or int(x[0:2],16) == 0x20: buff += usb_codes[code][1] else: buff += usb_codes[code][0] print(buff)
# original problems def easy_sum(a, b): """Takes two numbers and returns their sum""" return a + b def easy_product(a, b): """Takes two numbers and returns their product""" return a * b def easy_concat(a, b): """Takes two strings and returns their concatenation""" return a + b def easy_emptylist(l): """Takes a list and returns True for empty list, False for nonempty""" return not l def easy_iseven(x): """Takes a number and returns True if it's even, otherwise False""" return x % 2 == 0 def easy_and(b1, b2): "Takes two booleans and returns their AND" return b1 and b2 def easy_or(b1, b2): """Takes two booleans and returns their OR""" return b1 or b2 def easy_lt(a, b): """Takes two numbers and return whether num1 is less than num2""" return a < b # new sp2 2018 def easy_contains(a, b): """Takes in 2 non-empty strings and returns True if the first value contains a substring that matches the second value.""" return b in a def easy_helloname(a): """Takes in a string representing a name and returns a new string saying hello in a very specific format, e.g., if the name is 'Dave', it should return 'Hello, Dave!'""" return 'Hello, {}!'.format(a) def easy_iscat(a): """Takes in a string and returns 'meow' if it is the exact string 'cat', otherwise 'woof'.""" return 'meow' if a == 'cat' else 'woof'
""" Function analysis module which sets function APIs based on function's name matching impapi. This should ideally go early in the module order to get the APIs marked asap. """ def analyzeFunction(vw, fva): fname = vw.getName(fva) api = vw.getImpApi(fname) if api == None: return rettype,retname,callconv,callname,callargs = api callargs = [ callargs[i] if callargs[i][1] else (callargs[i][0],'arg%d' % i) for i in xrange(len(callargs)) ] vw.setFunctionApi(fva, (rettype,retname,callconv,callname,callargs))
class Solution: def solve(self, matrix, target): for r in range(len(matrix)): for c in range(len(matrix[0])): if r-1 >= 0: matrix[r][c] += matrix[r-1][c] if c-1 >= 0: matrix[r][c] += matrix[r][c-1] if r-1 >= 0 and c-1 >= 0: matrix[r][c] -= matrix[r-1][c-1] l,r = 0,min(len(matrix),len(matrix[0])) ans = 0 def works(x): return any(matrix[r][c]-(matrix[r-x][c] if r-x>=0 else 0)-(matrix[r][c-x] if c-x>=0 else 0)+(matrix[r-x][c-x] if r-x>=0 and c-x>=0 else 0) <= target for r in range(x-1,len(matrix)) for c in range(x-1,len(matrix[0]))) while l<=r: m = (l+r)//2 if works(m): ans = m l = m+1 else: r = m-1 return ans**2
""" File: settings.py Author: Luke Mason Description: Main application development settings file """ SCREEN_WIDTH = 1920 SCREEN_HEIGHT = 1080 WIDTH = 800 HEIGHT = 900 PAD = 15 APP_NAME = 'PyGraph' # Str of app name for window title DEBUG = 1 # Puts the app in debug mode (extra logging to console). LOG = 1 # Puts the app in log mode, (shows success/error messages in console). COLOR = { 'black': (0, 0, 0), 'white': (255, 255, 255), 'focus': (255, 25, 133) } FONT = 'Calibri' FONT_SIZE = 25 # VIEWS = [ # 'home', # Main home app # # 'graph', # Graph interaction # # 'save', # Graph save/load # # 'settings' # App user settings # ] _QUIT = -2
'''Escreva um programa que leia dois numeros inteiros e compare-os, mostrando na tela uma mensagem: -0 primeiro valor é maior. -0 segundo valor é maior. -Não existe valor maior, os dois são iguais.''' numero1 = int(input('Primeiro número: ')) numero2 = int(input('Segundo número: ')) if numero1 > numero2: print('O primeiro valor é MAIOR.') elif numero2 > numero1: print('O segundo valor é MAIOR.') elif numero1 == numero2: print('Não existe valor MAIOR, os dois são IGUAIS.')
__all__ = [ 'cyclic', 'dep_expander', 'dep_manager', 'logger', 'package_filter', 'package', 'parse_input', 'sat_solver_satispy', 'topo_packages', 'util' ]
#Aleyna Nur Kemik tarafından yazılmıştır. print("""********************** RSA Şifreleme **********************""") def aralarında_asal(n,fi): if (n % fi != 0 and n % fi != 0 ): print("{} ile {} aralarında asaldır." .format(n,fi)) return True else: return False def s_değerinin_bulunması(n,fi): for i in range(1,fi): bölen = n * i if bölen % fi == 1: #print("s değeri : {}".format(i)) #s değeri gizli tutulur. return i def rsa_şifreleme(): p, q, n = int(input("p: ")), int(input("q: ")), int(input("n: ")) for i in range(2,p): if p % i == 0: print("Lütfen asal bir p sayısı giriniz!") return for i in range(2,q): if q % i == 0: print("Lütfen asal bir q sayısı giriniz!") return for i in range(2,n): if n % i == 0: print("Lütfen asal bir n sayısı giriniz!") return z = p*q #z ve n sayıları kamusal print("z' nin değeri : ",z) fi = (p-1)*(q-1) print("fi' nin değeri : ",fi) print("s'nin değeri : ",s_değerinin_bulunması(n,fi)) # s değeri gizlidir. while True: try: a = int(input("Göndermek istediğiniz değeri giriniz!")) break except: print("Geçerli bir a değeri giriniz!") if 0<=a and a<=(z-1): şifrelenmiş_değer_c = a**n % z print("a'nın şifrelenmiş hali :",şifrelenmiş_değer_c) deşifre_değer_a = şifrelenmiş_değer_c**s_değerinin_bulunması(n,fi) % z print("c'nin deşifre hali :",deşifre_değer_a) rsa_şifreleme() input("Çıkmak için w basınız!")
i = 1 while i != 0: i = int(input()) if i > 100: break elif i < 10: continue else: print(i)
n = int(input()) for i in range(n): dias = 0 valor = float(input()) while valor>1: valor = valor/2 dias += 1 print(dias, "dias")
# -*- coding: utf-8 -*- """ plastiqpublicapi This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). """ class ClientSecretsResponse(object): """Implementation of the 'Client Secrets Response' model. TODO: type model description here. Attributes: client_secret (string): Client Secret returned by /client-secrets """ # Create a mapping from Model property names to API property names _names = { "client_secret": 'clientSecret' } def __init__(self, client_secret=None): """Constructor for the ClientSecretsResponse class""" # Initialize members of the class self.client_secret = client_secret @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None # Extract variables from the dictionary client_secret = dictionary.get('clientSecret') # Return an object of this model return cls(client_secret)
n = int(input()) s = str(input()) removal = 0 counter = 0 for x in s: if x != 'x': if counter >= 3: removal += counter - 2 counter = 0 elif x == 'x': counter += 1 if counter >= 3: removal += counter - 2 print(removal)
class MojUser: """ Authenticated user, similar to the Django one. The built-in Django `AbstractBaseUser` sadly depends on a few tables and cannot be used without a datbase so we had to create a custom one. """ def __init__(self, pk, token, user_data): self.pk = pk self.is_active = True self.token = token self.user_data = user_data def save(self, *args, **kwargs): pass @property def is_anonymous(self): return False @property def is_authenticated(self): return True def get_all_permissions(self, obj=None): return self.user_data.get('permissions', []) def has_perm(self, perm, obj=None): return perm in self.user_data.get('permissions', []) def has_perms(self, perm_list, obj=None): return all( [perm in self.user_data.get('permissions', []) for perm in perm_list] ) @property def username(self): return self.user_data.get('username') @property def email(self): return self.user_data.get('email') def get_full_name(self): if not hasattr(self, '_full_name'): name_parts = [ self.user_data.get('first_name'), self.user_data.get('last_name') ] self._full_name = ' '.join(filter(None, name_parts)) return self._full_name def get_initials(self): if self.get_full_name(): return ''.join( filter( None, map(lambda name: name[0].upper() if name else None, self.get_full_name().split(' ')) ) ) class MojAnonymousUser: """ Anonymous non-authenticated user, similar to the Django one. The built-in Django `AnonymousUser` sadly depends on a few tables and gives several warnings when used without a database so we had to create a custom one. """ pk = None is_active = False token = None user_data = {} username = '' email = '' def get_full_name(self): return '' @property def is_anonymous(self): return True @property def is_authenticated(self): return False def get_all_permissions(self, obj=None): return [] def has_perm(self, perm, obj=None): return False def has_perms(self, perm_list, obj=None): return False
"""Create a Character Generator for Fallout 4.""" # print("You awake from 200 years in deep freeze. The wasteland awaits you.") # name = input("What's your name? ") # gender = input("What's your gender? ") # points = 21 # attributes = ("Strength", "Perception", "Endurance", "Charisma", "Intelligence", "Agility", "Luck") # strength = 1 # perception = 1 # endurance = 1 # charisma = 1 # intelligence = 1 # agility = 1 # luck = 1 # while True: # print # print("You have ", points, "points left.") # print( # """ # 1 - add points # 2 - remove points # 3 - see points per attribute # 4 - exit # """) # choice = input("choice: ").upper() # if choice == "1": # attribute = input("which attribute? S. P. E. C. I. A. L.?") # if attribute in attributes: # add = int(input("How many points? ")) # if add <= points and add > 0: # if attribute == "S" or attribute == "s": # strength += add # print(name, "now has ", strength, "strength points.") # elif attribute == "P": # perception += add # print(name, "now has ", perception, "perception points.") # elif attribute == "E": # endurance += add # print(name, "now has ", endurance, "endurance points.") # elif attribute == "C": # charisma += add # print(name, "now has ", charisma, "charisma points.") # elif attribute == "I": # intelligence += add # print(name, "now has ", intelligence, "intelligence points.") # elif attribute == "A": # agility += add # print(name, "now has ", agility, "agility points.") # elif attribute == "L": # luck += add # print(name, "now has ", luck, "luck points.") # points -= add # else: # print("Invalid attribute. You are likely to be eaten by a Grue.") # elif choice == "2": # if attribute in attributes: # remove = int(input("How many points? ")) # # if remove <= points and remove > 0: # if attribute == "S" or attribute == "s" and remove <= strength and remove > 1: # strength -= remove # print(name, "now has ", strength, "strength points.") # points += remove # elif attribute == "P" and remove <= strength and remove > 1: # perception -= remove # print(name, "now has ", perception, "perception points.") # points += remove # elif attribute == "E" and remove <= strength and remove > 1: # endurance -= remove # print(name, "now has ", endurance, "endurance points.") # points += remove # elif attribute == "C" and remove <= strength and remove > 1: # charisma -= remove # print(name, "now has ", charisma, "charisma points.") # points += remove # elif attribute == "I" and remove <= strength and remove > 1: # intelligence -= remove # print(name, "now has ", intelligence, "intelligence points.") # points += remove # elif attribute == "A" and remove <= strength and remove > 1: # agility -= remove # print(name, "now has ", agility, "agility points.") # points += remove # elif attribute == "L" and remove <= strength and remove > 1: # luck -= remove # print(name, "now has ", luck, "luck points.") # points += remove # points += remove # else: # print("Invalid attribute. You are likely to be eaten by a Grue.") # elif choice == "3": # print("Strength: "), strength # print("Perception: "), perception # print("Endurance: "), endurance # print("Charisma: "), charisma # print("Intellignce: "), intelligence # print("Agility: "), agility # print("Luck: "), luck def create_character(): """Set up the character creation method.""" attribute = input("\nwhich attribute? S. P. E. C. I. A. L.?").upper() if attribute in my_character.keys(): amount = int(input("By how much?")) if (amount > my_character['points']) or (my_character['points'] <= 1): print("Not enough points!") else: my_character[attribute] += amount my_character['points'] -= amount else: print("\nThat attribute doesn't exist!\n") def print_character(): """Display the character stats for the user.""" for attribute in my_character.keys(): print(attribute, " : ", my_character[attribute]) # MAIN FUNCTION my_character = {'name': '', 'S': 1, 'P': 1, 'E': 1, 'C': 1, 'I': 1, 'A': 1, 'L': 1, 'points': 21} running = True print("You awake from 200 years in deep freeze. The wasteland awaits you.") my_character['name'] = input("What is your character's name? ") while running: print("\nYou have ", my_character['points'], " points to distribute amongst your S.P.E.C.I.A.L. attributes.\n") print("1. Add points\n2. Remove points\n3. See current attributes\n4. Exit\n") choice = input("Choose wisely:") if choice == "1": add_character_points() elif choice == "2": remove_character_points() elif choice == "3": print_character() elif choice == "4": if points > 0: print("Use all your points first!") else: running = False else: pass
# -*- coding: utf-8 -*- """ foo """ bah = 1
""" Projections To add a custom projection, create a method accepting (x, y, z) Cartesian coordinates and add an entry to the parse_projection method """ def parse_projection(name: str): if name == "standard": return standard_proj raise ValueError("Unknown projection") def standard_proj(x, y, z): return x, y
i = 10 j = 0 while i > 2: i = i - 1 j = j + 8
# LeetCode # Level: Easy # Date: 2021.11.17 class Solution: def destCity(self, paths: List[List[str]]) -> str: P = dict(paths) PA = P.keys() PB = P.values() DC = PB - PA for i in DC: return(i)
blacklist = [ "userQED", "GGupzHH", "nodejs-ma", "linxz-coder", "teach-tian", "kevinlens", "Pabitra-26", "mangalan516", "IjtihadIslamEmon", "marcin-majewski-sonarsource", "LongTengDao", "JoinsG", "safanbd", "aly2", "aka434112" "SMAKSS", "imbereket", "takumu1011", "adityanjr", "Aa115511", "farjanaHuq", "samxcode", "HaiTing-Zhu", "gimnakatugampala", "cmc3cn", "kkkisme", "haidongwang-github", "ValueCoders", "happy-dc", "Tyorden", "SP4R0W", "q970923066", "Shivansh2407", "1o1w1", "soumyadip007", "AceTheCreator", "qianbaiduhai", "changwei0857", "CainKane", "Jajabenit250", "gouri1000", "yvettep321", "naveen8801", "HelloAny", "ShaileshDeveloper", "Jia-De", "JeffCorp", "ht1131589588", "Supsource", "coolwebrahul", "aimidy", "ishaanthakur", # bots "vue-bot", "dependabot", # below is taken from spamtoberfest "SudhanshuAGR", "pinkuchoudhury69", "brijal96", "shahbazalam07", "piyushkothari1999", "imnrb", "saksham05mathur", "Someshkale15", "xinghalok", "manpreet147", "sumitsrivastav180", "1234515", "Rachit-hooda-man", "vishal2305bug", "Ajayraj006", "pathak7838", "Kumarjatin-coder", "Narendra-Git-Hub", "Stud-dabral", "Siddhartha05", "rishi123A", "kartik71792", "kapilpatel-2001", "SapraRam", "PRESIDENT-caris", "smokkie087", "Ravikant-unzippedtechnology", "sawanch", "Saayancoder", "shubham5888", "manasvi141220002", "Asher12428", "mohdalikhan", "Paras4902", "shudhii", "Tesla9625", "web-codegrammer", "imprakashsah", "Bhagirath043", "Ankur-S1", "Deannos", "sapro-eng", "skabhi001", "AyushPathak12", "Hatif786", "adityas2124k2", "Henry-786", "abhi6418", "J-Ankit2002", "9759176595", "rajayush9944", "Kishan-Kumar-Kannaujiya", "ManavBargali", "komalsharma121", "AbhiramiTS", "mdkaif25", "shubhamsingh333", "hellosibun", "ankitbharti1998", "subhakantabhau", "shivamsri142", "sameer13899", "BhavyaTheHacker", "nehashewale", "Shashi-design", "anuppal101", "NitinRavat888", "sakrit", "Kamran-360", "satyam-dot", "Suleman3015", "amanpj15", "abhinavjha98", "Akshat-Git-Sharma", "Anuragtawaniya", "nongshaba1337", "XuHewen", "happyxhw", "ascott", "ThomasGrund", 'Abhayrai778', 'pyup-bot', 'AhemadRazaK3', 'doberoi10', 'lsmatovu', 'Lakshay7014', 'nikhilkr1402', 'arfakl99', 'Tyrrrz', 'SwagatamNanda', 'V-Soni', 'hparadiz', 'Ankurmarkam', 'shubham-01-star', 'Rajputusman', 'bharat13soni', 'przemeklal', 'p4checo', 'REDSKULL1412', 'GAURAVCHETTRI', 'DerDomml', 'Sunit25', 'divyansh123-max', 'hackerharsh007', 'Thecreativeone2001', 'nishkarshsingh-tech', 'Devyadav1994', 'Rajeshjha586', 'BoboTiG', 'nils-braun', 'DjDeveloperr', 'FreddieRidell', 'pratyxx525', 'abstergo43', 'impossibleshado1', 'Gurnoor007', '2303-kanha', 'ChaitanyaAg', 'justinjpacheco', 'shoaib5887khan', 'farhanmulla713', 'ashrafzeya', 'muke64', 'aditya08maker', 'rajbaba1', 'priyanshu-top10', 'Maharshi369', 'Deep-bhingradiya', 'shyam7e', 'shubhamsuman37', 'jastisriradheshyam', 'Harshit-10-pal', 'shivphp', 'RohanSahana', '404notfound-3', 'ritikkatiyar', 'ashishmohan0522', 'Amanisrar', 'VijyantVerma', 'Chetanchetankoli', 'Hultner', 'gongeprashant', 'psw89', 'harshilaneja', 'SLOKPATHAK', 'st1891', 'nandita853', 'ms-prob', 'Sk1llful', 'HarshKq', 'rpy9954', 'TheGunnerMan', 'AhsanKhokhar1', 'RajnishJha12', 'Adityapandey-7', 'vipulkumbhar0', 'nikhilkhetwal', 'Adityacoder99', 'arjun01-debug', 'saagargupta', 'UtCurseSingh', 'Anubhav07-pixel', 'Vinay584', 'YA7CR7', 'anirbanballav', 'mrPK', 'VibhakarYashasvi', 'ANKITMOHAPATRAPROGRAMS', 'parmar-hacky', 'zhacker1999', 'akshatjindal036', 'swarakeshrwani', 'ygajju52', 'Nick-Kr-Believe', 'adityashukl1502', 'mayank23raj', 'shauryamishra', 'swagat11', '007swayam', 'gardener-robot-ci-1', 'ARUNJAYSACHAN', 'MdUmar07', 'vermavinay8948', 'Rimjhim-Dey', 'prathamesh-jadhav-21', 'brijal96', 'siddhantparadox', 'Abhiporwal123', 'sparshbhardwaj209', 'Amit-Salunke-02', 'wwepavansharma', 'kirtisahu123', 'japsimrans13', 'wickedeagle', 'AnirbanB999', 'jayeshmishra', 'shahbazalam07', 'Samrath07', 'pinkuchoudhury69', 'moukhikgupta5', 'hih547430', 'burhankhan23', 'Rakesh0222', 'Rahatullah19', 'sanskar783', 'Eshagupta0106', 'Arpit-Tailong', 'Adityaaashu', 'rahul149', 'udit0912', 'aru5858', 'riya6361', 'vanshkhemani', 'Aditi0205', 'riteshbiswas0', '12Ayush12008039', 'Henry-786', 'ManviMaheshwari', 'SATHIYASEELAN2001', 'SuchetaPal', 'Sahil24822', 'sohamgit', 'Bhumi5599', 'anil-rathod', 'binayuchai', 'PujaMawandia123', '78601abhiyadav', 'PriiTech', 'SahilBhagtani', 'dhruv1214', 'SAURABHYAGYIK', 'farhanmansuri25', 'Chronoviser', 'airtel945', 'Swagnikdhar', 'tushar-1308', 'sameerbasha123', 'anshu15183', 'Mohit049', 'YUVRAJBHATI', 'miras143mom', 'ProPrakharSoni', 'pratikkhatana', 'Alan1857', 'AyanKrishna', 'kartikey2003jain', 'sailinkan', 'DEVELOPER06810', 'Abhijeet9274', 'Kannu12', 'Shivam-Amin', 'suraj-lpu', 'Elizah550', 'dipsylocus', 'jaydev-coding', 'IamLucif3r', 'DesignrKnight', 'PiyumalK', 'nandita853', 'mohsin529', 'ShravanBhat', 'doppelganger-test', 'smitgh', 'parasgarg123', 'Amit-Salunke-02', 'Chinmay-KB', 'sagarr1', 'Praveshrana12', 'fortrathon', 'miqbalrr', 'Ankurmarkam', 'saloni691', 'Bhuvan804', 'pra-b-hat-chauhan', 'snakesause', 'Shubhani25', 'arshad699', 'fahad-25082001', 'Chaitanya31612', 'tiwariraju', 'ritik0021', 'aakash-dhingra', 'Raunak017', 'ashrafzeya', 'priyanshu-top10', 'NikhilKumar-coder', 'ygajju52', 'shvnsh', 'abhishek7457', 'sethmcagit', 'Apurva122', 'Gurpreet-Singh-Bhupal', 'ashmit-coder', 'Rishi098', 'Xurde-glitch', 'imrohitoberoi', 'Hrushikeshsalunkhe', 'ABHI2598', 'Abhishek8-web', 'arjun01-debug', 'Shailesh12-svg', 'SachinSingh7050', 'VibhakarYashasvi', 'rajbaba1', 'yuvraj66', 'Nick-Kr-Believe', 'gongeprashant', 'sanskar783', 'infoguru19', 'Shamik225', 'Pro0131', 'soni-111', 'Rahul-bitu', 'meetshrimali', 'coolsuva', 'yogeshwaran01', 'Satyamtripathi1996', 'Rahatullah19', 'kartikey2003jain', 'rajarshi15220', 'SahilBhagtani', 'janni-03', 'Abhijit-06', 'dvlp-jrs', 'Viki3223', 'Azhad56', 'Mohit049', 'mvpsaurav', 'dvcrn', 'Deep-bhingradiya', 'shreyans2007', 'sailinkan', 'Abhijeet9274', 'riteshbiswas0', 'AhemadRazaK3', 'rishi123A', 'shivpatil', 'rikidas99', 'sohamgit', 'jheero', 'itzhv14', 'sameerbasha123', 'yatendra-dev', 'AditiGautam2000', 'sid0542', 'tushar-1308', 'dhruvil05', 'sufiyankhanz', 'Alan1857', 'siriusb79', 'PKan06', 'yagnikvadaliya', 'yogeshkun', 'Abhishekjhatech', 'jatinsharma11', 'THENNARASU-M', 'priyanshu987art', 'maulik922', 'param-de', 'nisheksharma', 'balbirsingh08', 'piyushkothari1999', 'zeeshanthedev590', 'praney-pareek', 'SUBHANGANI22', 'kartikeyaGUPTA45', 'Educatemeans', '9192939495969798', 'Amit1173', 'thetoppython', 'Saurabhsingh94', 'royalbhati', 'kardithSingh', 'kishankumar05', 'Rachit-hooda-man', 'alijng', 'patel-om', 'jahangirguru', 'Vchandan348', 'amitagarwalaa57', 'rockingrohit9639', 'Krishnapal-rajput', 'aman78954098', 'pranshuag1818', 'PIYUSH6791', 'Lachiemckelvie', 'Pragati-Gawande', 'mahesh2526', 'Aman9234', 'xMaNaSx', 'shreyanshnpanwar', 'Paravindvishwakarma', 'chandan-op', 'amit007-majhi', 'Rahul-TheHacker', 'sharmanityam252', 'iamnishan', 'codewithashu', 'mersonfufu', 'saksham05mathur', 'Krishna10798', 'rajashit14', 'aetios', 'pankajnimiwal', '132ikl', 'ghost', 'Sabyyy', '9Ankit00', 'AfreenKhan777', 'akash-bansal-02', 'regakakobigman', 'aman1750', 'irajdip99', 'mohdadil2001', 'shithinshetty', 'nikhilsawalkar', 'Brighu-Raina', 'kenkirito', 'SamueldaCostaAraujoNunes', 'codewithsaurav', 'Ashutoshvk18', 'EthicalRohit', 'ihimalaya', 'somya-max', 'themonkeyhacker', 'rammohan12345', 'JasmeetSinghWasal', 'black73', 'Rebelshiv', 'DarshanaNemane', 'Jitin20', 'Prakshal2607', 'Sourabhkale1', 'shoeb370', 'ArijitGoswami100', 'anju2408', 'ukybhaiii', 'anshulbhandari5', 'pratham1303', 'arpitdevv', 'RishabhGhildiyal', 'mohammedssab', 'deepakshisingh', 'Samshopify', 'ankitkumar827', 'anddytheone', 'Tush6571', 'pritam98-debug', 'Snehapriya9955', 'coastaldemigod', 'yogesh-1952', 'Vivekv11', 'Andrewrick1', 'DARSHIT006', 'pravar18', 'devildeep4u', '21appleceo', 'bereketsemagn', 'vandana-kotnala', 'tanya4113', 'gorkemkrdmn', 'Ashwin0512', 'prateekrathore1234', 'hash-mesh', 'pathak7838', 'sakshamdeveloper', 'ankan10', 'prafgup', 'anurag200502', 'niklifter', 'Shreeja1699', 'shivshikharsinha', 'SumanPurkait-grb', 'chiranjeevprajapat', 'TechieBoy', 'KhushiMittal', 'UtCurseSingh', 'lucastrogo', 'jarvis0302', 'ratan160', 'kgaurav123', 'dhakad17', 'Rishn99', 'codeme13', 'KINGUMS', 'sun-3', 'varunsingh251', 'thedrivingforc', 'aditya08maker', 'AkashVerma1515', 'gaurangbhavsar', 'ApurvaSharma20', 'Manmeet1999', 'Arhaans', 'Jaykitkukadiya', 'Rimjhim-Dey', 'apurv69', 'parth-lth', 'PranshuVashishtha', 'sidhantsharmaa', 'uday0001', 'iamrahul-9', 'nagpalnipun22', 'poonamp-31', 'dhananjaypatil', 'baibhavvishalpani', 'Ashish774-sol', 'sachin2490', 'Sudhanshu777871', 'mayur1234-shiwal', 'RohanWakhare', 'rishi4004', 'Amankumar019', 'Vaibhav162002', 'pratyushsrivastava500', 'AmarPaul-GiT', 'arjit-gupta', 'nitinchopade', 'imakg', 'meharshchakraborty', 'tumsabGandu', 'anurag360', '2000sanu', 'PoorviAgrawal56', 'omdhurat', 'Pawansinghla', 'thehacker-oss', 'mritu-mritu', 'AJAY07111998', 'rai12091997', 'OmShrivastava19', 'Divyanshu2109', 'adityaherowa', 'Abhishekt07', 'code-diggers-369', 'Jamesj001', 'coding-geek1711', 'govindrajpagul', 'CDP14', 'Kartik989-max', 'MaheshDoiphode', 'Pranayade777', 'er-royalprince', 'ricardoseriani', 'nowitsbalibhadra', 'navyaswarup', 'devendrathakare44', 'awaisulabdeen', 'SoumyaShree80', 'abahad7921', 'vishal0410', 'gajerachintan9', 'EBO9877', 'rohit-rksaini', 'momin786786', 'Shaurya-567', 'himanshu1079', 'AlecsFerra', 'rajvpatil5', 'Hacker-Boss', 'Rakesh0222', 'ASHMITA-DE', 'BilalSabugar', 'Anjan50', 'Vedant336', 'github2aman', 'satyamgta', 'kumar-vineet', 'uttamagrawal', 'AjaySinghPanwar', 'saieshdevidas', 'ohamshakya', 'JrZemdegs712', 'Anil404', 'Anamika1818', 'ssisodiya28', 'Vedurumudi-Priyanka', 'python1neo', 'sanketprajapati', 'InfinitelLoop', 'DarkMatter188', 'TanishqAhluwalia', 'J-yesh4939', 'sameer8991', 'ANSH-CODER-create', 'DeadShot-111', 'joydeepraina', 'Dhrupal19', 'Nikhil5511', 'lavyaKoli', 'jitu0956', 'parthika', 'digitalarunava', 'Shivamagg97', '23031999', 'Ashu-Modanwal', 'Singhichchha', 'pareekaabhi33', 'yashpatel008', 'yashwantkaushal', 'prem-smvdu', 'jains1234567890', 'Ritesh-004', 'shraddha8218', 'misbah9105', 'Tanishqpy', 'Iamtripathisatyam', 'mdnazam', 'akashkalal', 'Abhishekkumar10', 'chaitalimazumder', 'shubham1176', '866767676767', 'Priyanshu0131', 'Rajani12345678910', 'agrima84', 'DODOG98T', 'Abhishekaddu', 'ipriyanshuthakur', 'yogesh9555', 'shubham1234-os', 'abby486', 'YOGESH86400', 'jaggi-pixel', 'Utkarshdubey44', 'Mustafiz900', 'ashusaurav', 'Deepak27004', 'theHackPot', 'itsaaloksah', 'MakdiManush', 'Divyanshu09', 'codewithabhishek786', 'sumitkumar727254', 'faiz-9', 'soumyadipdaripa100', 'Prerna-eng', 'yourcodinsmas', 'akashnai', 'aryancoder4279', 'Anish-kumar7641', 'shivamkumar1999', 'Kushal34563', 'YashSinghyash', 'Alok070899', 'gautamdewasi', '5HAD0W-P1R4T3', 'rajkhatana', 'Himanshu-Sharma-java', 'yethish', 'Vikaskhurja', 'boomboom2003', 'mansigurnani', 'ansh8540', 'beingkS23', 'raksharaj1122', 'harshoswal', 'mitali-datascientist', 'daadestroyer', 'panudet-24mb', 'divy-koushik', 'Tanuj1234567', 'pattnaikp', 'Gauravsaha-97', '0x6D70', 'aptinstaller', 'SahilKhera14', 'Archie-Sharma', 'Chandan-program', 'shadowfighter2403', 'ivinodpatil2000', 'Souvik-py', 'NomanBaigA', 'UdhavKumar', 'rishabh-var123', 'NK-codeman0001', 'ritikkatiyar', 'ananey2004', 'tirth7677', 'Stud-dabral', 'dhruvsalve', 'treyssatvincent', 'AYUSHRAJ-WXYZ', 'JenisVaghasiya', 'KPRAPHULL', 'Apex-code', 'cypherrexx', 'AkilaDee', 'ankit-ec', 'darshan-10', 'Srijans01', 'Ankit00008', 'bijantitan', 'Jitendrayadav-eng', 'Tamonash-glitch', 'Ans-pro', 'yogesh8087', 'Sakshi2000-hash', 'shrbis2810', 'swagatopain6', 'mayankaryaman10', 'rajlomror', 'GauravNub', 'puru2407', 'KhushalPShah', 'aman7heaven', 'hazelvercetti', 'nil901', 'Ankitsingh6299', 'yashprasad8', 'Zapgithubexe', 'shiiivam', 'ShubhamGuptaa', 'viraj3315', 'Pratyush2005', 'jackSaluza', '03shivamkushwah', 'shahvraj20', 'manaskirad', 'Harsh08112001', 'R667180', 'PRATIKBANSDOE', 'MabtoorUlShafiq', 'dkyadav8282', 'prtk2001', 'MrDpk818', 'ParmGill00', 'kavya0116', 'gauravrai26', 'sachi9692', 'nj1902', 'akshatjindal036', 'shravanvis', 'ranjith660', 'sahemur', 'MDARBAAJ', 'Tylerdurdenn', 'hemantagrawal1808', 'luck804', 'vivekpatel09', 'ArushiGupta21', 'ray5541', 'arpitlathiya', 'Koshal67', 'harshul03', 'avinchudasama', 'PUJACHAUDHARY092', 'shaifali-555', 'coderidder', 'ravianandfbg', 'rohitnaththakur', 'KhanRohila', 'nikhilkr1402', 'abhijitk123', 'Jitendra2027', 'Roshan13046', 'satyam1316', 'shhivam005', 'V-Soni', 'iamayanofficial', 'kunaljainSgit', 'shriramsalunke-45', 'Laltu079', 'premkushwaha1', 'aryansingho7', 'rohitkalse', 'Royalsolanki', 'MAYANK25402', 'prakharlegend15', 'Ansh2831', 'aps-glitch', 'PJ-123-Prime', 'iamprathamchhabra', 'Bhargavi09', 'Shubham2443', 'YashAgarwalDev', 'ChandanDroid', 'SaurabhDev338', 'developerlives', 'Abhishek-hash', 'harshal1996', 'ritik9428', 'shadab19it', 'sarthakd999', 'Pruthviraj001', 'royalkingsava', 'manofelfin', 'vedantbirla', 'nishantkrgupta14', 'harsh1471', 'krabhi977', 'Pradipta0065', 'Ajeet2007', 'aman97703', 'Killersaint007', 'sachin8859', 'shubhamsuman37', 'rutuja2807', 'rishabh2204', 'Basal05', 'vipulkumbhar0', 'DSMalaviya', 'Mohit5700', 'pranaykrpiyush', 'Deepesh11-Code', 'yogikhandal', 'jigneshoo7', 'vishal-1264', 'RohanKap00r', 'Lokik18', 'harisharma12', 'PRESIDENT-caris', 'sandy56github', 'shreeya0505', 'Azumaxoid', 'Hagemaru69', 'sanju69', 'Roopeshrawat', 'hackersadd', 'coder0880', 'bajajtushar094', 'amitkumar8514', 'avichalsri', 'Satya-cod', 'andaugust', 'emtushar', 'snehalbiju12', 'lakshya05', 'Shaika07', 'John339', 'chetan-v', 'KrishnaAgarwal3458', 'rohit-1225', 'vaibhavjain2099', 'Pratheekb1', 'devu2000', 'Akhil88328832', 'anupam123148', 'pramod12345-design', 'Kartik192192', 'Kartik-Aggarwal', 'Ekansh5702', 'basitali97', 'TanishqKhetan', 'deecode15800', 'Vibhore-7190', 'Harsh-pj', 'vishalvishw10', 'runaljain255', 'RitikmishraRitik', 'akashtyagi0008', 'albert1800', 'Harsh1388-p', 'Omkar0104', 'Lakshitasaini8', 'vaibhav-87', 'AshimKr', 'joshi2727', 'vihariswamy', 'Sudhanshu-Srivastava', 'sameersahoo', 'YOGENDER-sharma', 'shashank06-sudo', 'irramshaiikh', 'Magnate2213', 'srishti0801', 'darshanchau', 'tanishka1745', 'Coder00sharma', 'gariya95', 'vedanttttt', 'codecpacka', 'vijay0960', 'tanya-98', 'Tarkeshwar999', 'RiderX24', 'BUNNY2210', 'yuvrajbagale', 'Pranchalkushwaha', 'Varun11940', 'khushhal213', 'Raulkumar', 'bekapish', 'shubhkr1023', 'mishrasanskriti802', 'vaibhavimekhe', 'HardikShreays', 'ab-rahman92', 'waytoheaven001', 'ambrajyaldandi', '100009224730519', 'Bikramdas04', 'mokshkant7', 'Harshcoder10', 'hvshete', 'sanmatipol', 'polankita', 'Vinit-Code04', 'Sheetal0601', 'harsh123-para', 'RitikSharma06', 'pankajmandal1996', 'AkshayNaphade', 'KaushalDevrari', 'ag3n7', 'SudershanSharma', 'naturese', 'Shubham-217', 'ateef-khan', 'sharad5987', 'anmolsahu901', 'sarkarbibrata', 'Chandramohan01', 'RAVI-SHEKHAR-SINGH', 'vinayak15-cyber', 'TheWriterSahb', 'way2dmark', 'Spramod23', 'Saurabgami977', 'doberoi10', 'Lakshya9425', 'megha1527', 'beasttiwari', 'gtg94', 'kshingala1', 'Dshivamkumar', 'smokkie087', 'RiserShaikh', 'explorerAndroid', 'Grace-Rasaily780', 'Harshacharya2020', 'SatvikVirmani', 'RishabhIshtwal', 'gargtanuj05', 'skilleddevil', 'XAFFI', 'BALAJIRAO676', 'neer007-cpu', 'JiimmyValentine', 'Dhruv8228', 'Devendranath-Maddula', 'abhishekaman3015', 'sudhir-12', 'Shashi-design', 'simplilearns', 'ThakurTulsi', 'rahulshastryd', 'Ankit9915', 'afridi1706', 'JaySingh23', 'DevCode-shreyas', 'Shivansh-K', 'kikisslass', 'swarup4544', 'shivam22chaudhary', 'smrn54', '521ramborahul', 'pretechscience', 'rudrakj', 'janidivy', 'SuvarneshKM', 'manishsuthar414', 'raghavbansal-sys', 'GoGi2712', 'therikesh', 'Anonymouslaj', 'devs7122', 'icmulnk77', 'ankit4-com', 'ansh4223', 'shudhanshubisht08', 'RN-01', 'iamsandeepprasad', 'neerajd007', 'rrishu', 'sameer0606', 'kunaldhar', 'sajal243', 'Arsalankhan111', 'RavindraPal2000', 'shubham5630994', 'ankit526', 'codewithaniket', 'meetpanchal017', 'Pranjal1362', 'ni30kp', 'kushalsoni123', 'Nishantcoedtu', 'vijaygupta18', 'Bishalsharma733', 'AnkitaMalviya', 'anianiket', 'hritik6774', 'krongreap', 'FlyingwithCaptainSoumya', 'himpat202', 'mahin651', 'mohit-jadhav-mj', 'kaushiknyay18', 'testinguser883', 'MdUmar07', 'Saumiya-Ranjan', 'cycric', 'mandliya456', 'kavipss', 'Sumit1777', 'ankitgusain', 'SKamal1998', 'Pritam-hrxcoder13', 'shruti-coder', 'Harshit-techno', 'Sanketpatil45', 'poojan-26', 'Nayan-Sinha', 'confievil', 'mrkishanda', 'abhishek777777777777', 'ankitnith99', 'Pushkar0', 'Sahil-Sinha', 'Anantvasu-cyber', 'priyanujbd23', 'divyanshmalik22', 'shreybhan', 'nirupam090', 'sohail000shaikh', 'dhruvvats-011', 'ATRI2107', 'Harjot9812', 'sougata18p', 'Amogh6315', 'NishanBanga', 'SaifVeesar', 'edipretoro', 'Amit10538', 'thewires2', 'jaswalsaurabh', 'siddh358', 'raj074', 'Sameer-create', 'goderos19', 'akash6194', 'Ketan19479', 'shubham-01-star', 'avijitmondal', 'khand420', 'kasarpratik31', 'jayommaniya', 'WildCard13', 'RishabhAgarwal345', 'mukultwr', 'Gauravrathi1122', 'abhinav-bit', 'ShivamBaishkhiyar', 'sudip682', 'neelshah6892', 'archit00007', 'Kara3', 'Akash5523', 'Pranshumehta', 'karan97144', 'parasraghav288', 'codingmastr', 'farzi56787', 'SAURABHYAGYIK', 'faizan7800', 'TheBinitGhimire', 'anandrathod143', 'Jeetrughani', 'aaditya2357', 'ADDY-666', 'kumarsammi3', 'prembhatt1916', 'Gourav5857', 'pradnyaghuge', 'Vishal-Aggarwal0305', 'prashant-45', 'abhishek18002', 'Deadlynector', 'ashishjangir02082001', 'RohitSingh04', 'Satyamtechy', 'shreyukashid', 'M-ux349', 'Riya123cloud', 'coder-beast-78', 'mrmaxx010204', 'npdoshi5', 'gobar07', 'rushi1313', 'Akashsah312', 'pksinghal585', 'rockyfarhan', 'JayeshDehankar', 'sarap224', 'yash752004', 'rohan241119', 'Nick-h4ck3r', 'abhishekA07', 'cjjain76', 'CodeWithYashraj', 'dkp888', 'rahil003', 'sachin694', 'Anjali0369', 'sumeet004', 'aryan1256', 'PNSuchismita', 'shash2407', 'Tanishk007', 'Yugalbuddy', 'Saurabh392', 'Saurabh299', 'DevanshGupta15', 'DeltaxHamster', 'darpan45', 'P-cpu', 'singhneha94', 'Nitish-McQueen', 'GRACEMARYMATHEW', 'ios-shah', 'Divanshu2402', 'asubodh', 'CypherAk007', 'nethracookie', 'guptaji609', 'thishantj', 'shivamsaini89', 'AntLab04', 'bit2u', 'AbhishekTiwari72', 'shreyashkharde', 'PrabhatP2000', 'amansahani60', 'shubham5888', 'Ashutoshkrs', 'scratcher007lakshya', 'SumitRodrigues', 'Harishit1466', 'Gouravbhardwaj1', 'shraiyya', 'SpooderManEXE', 'thelinuxboy', 'jamnesh', 'Nilesh425', 'machinegun20000', 'Brianodroid', 'sunnyjohari', 'TusharThakkar13', 'juned06', 'bindu-07', 'gautamsharma17', 'sonamvlog', 'iRajMishra', 'ayushgupta1915', 'Joker9050', 'Aakash1720', 'sakshiii-bit', 'mpsapps', 'deadshot9987', 'RobinKumar5986', 'thiszsachin', 'karanjoshi1206', 'sumitsisodiya', 'akashnavale18', 'spmhot', 'ashutoshhack', 'shivamupasanigg', 'rajaramrom', 'vksvikash85072', 'mohitkedia-github', 'vanshdeepcoder', 'rkgupta95', 'sushilmangnlae', 'Prakashmishra25', 'YashPatelH', 'prakash-jayaswal-au6', 'AnayAshishBhagat', 'Indian-hacker', 'ishaanbhardwaj', 'nish235', 'shubhampatil9125', 'Ankush-prog', 'Arpus87', 'kuldeepborkarjr', 'rajibbera', 'kt96914', 'nithubcode', 'ishangoyal8055', 'Samirbhajipale', 'AnshKumar200', 'salmansalim145', 'SAWANTHMARINGANTI', 'ankitts12', 'ketul2912', 'kdj309', 'nsundriyal62', 'manishsingh003', 'Deepak-max800', 'magicmasti428', 'sidharthpunathil', 'shyamal2411', 'auravgv', 'MrIconic27', 'anku-11-11', 'Suyashendra', 'WarriorSdg', 'pythoniseasy-hub', 'Nikk-code', 'Kutubkhan2005', 'kunal4421', 'apoorva1823000', 'singharsh0', 'sushobhitk', 'NavidMansuri5155', 'tanav8570', 'Durveshpal', 'dkishere2021', 'shubhamraj01', 'manthan14448', 'sahilmandoliya', 'Dewakarsonusingh', 'kalpya123', '9075yash', 'Aditya7851-AdiStarCoders', 'MrChau', 'ooyeayush', 'Vipinkumar12it', 'ayushyadav2001', 'akshay20105', 'prothehero', 'sam007143', 'subhojit75', 'Dhvanil25', 'ANKUSHSINGH-PAT', 'Apoorva-Shukla', 'GizmoGamingIn', 'Mahaveer173', 'Abhayrai778', 'adityarawat007', 'HarshKumar2001', 'mohitboricha', 'deepakpate07', 'Aish-18', 'Sakshi-2100', 'adarshdwivedi123', 'shubhamprakhar', 'Basir56', 'zerohub23', 'Shrish072003', 'yash3497', 'Alfax14910', 'khushboo-lab', 'Devam-Vyas', 'PPS-H', 'nimitshrestha', 'sunnythepatel', 'Tusharkumarofficial', 'Nikhilmadduri', 'hiddenGeeks', 'dearyash', 'shahvihan', 'BlackThor555', 'preetamsatpute555', 'RanniePavillon', 'dgbkn', 'Karan-Agarwal1', 'praanjaal-guptaa', 'Cha7410', 'ar2626715', 'suhaibshaik', 'gurkaranhub', 'Guptaji29', 'seekNdestory', 'gorujr', 'lokeshbramhe', 'Rakesh-roy', 'NKGupta07', 'hacky503boy', 'Harshit-Taneja', 'vishal3308', 'vibhor828', 'rabi477', 'ArinTyagi', 'RaviMahile', 'Ayushgreeshu', 'Deepak674', 'VikashAbhay', 'paddu-sonu', 'swapnil-morakhia', 'anshu7919', 'vickyshaw29', 'pawan941394', 'mayankrai123', 'riodelord', 'iamsmr', 'ramkrit', 'vijayjha15', 'Anurag346', 'vineetstar10', 'Amarjeetsingh6120000', 'ayush9000', 'staticman-net', 'piyush4github', 'Neal-01', 'sky00099', 'cjheath', 'pranavstar-1203', 'sjwarner', 'Sandeepana', 'ritikrkx21', 'alinasahoo', 'tech-vin', 'Atul-steamcoder', 'ranchodhamala11', 'pradnyahaval', 'Nishant2911', 'altaf71mansoori', 'codex111', 'anirbandey303', 'kishan-kushwaha', 'ashwinthomas28', 'adityasunny1189', 'sourav1122', 'Hozefa976', 'PratapSaren', 'vikram-3118', 'Deep22T', 'sidd4999', 'agrawalvinay699', 'anujsingh1913', 'SoniHariom555', 'AyushJoshi2001', 'barinder7', 'shishir-m98', 'abhishekkrdev', 'pmanaktala', 'Snehil101', 'Himanshsingh0753', 'sambhav2898', 'niteshsharma9', 'x-thompson3', 'Vipul-hash', 'MrityunjayR', 'Abhinav7272', 'prashant-pbh', 'Saswat-Gewali', 'Redcloud2020-coder', 'priyanka-prasad1', 'harshwardhan111', 'Rajendra-banna', 'Rajan24032000', 'Mariede', 'sakshi-jain24', 'arron-hacker', 'Aniket-ind', 'Devloper-Adil', 'Shubh2674', 'saloninahar', 'DipNkr', 'princekumar6', 'harshsingh121098', 'Rajneesh486Git', 'jitendragangwar', 'Jayesh-Kumar-Yadav', 'shudhii', 'Bishal-bit', 'sulemangit', 'Kushagra767', 'JSM2512', 'ovs1176', 'arfakl99', 'Premkr1110', 'YASH162', 'rp-singh1994', 'Deepu10172j', 'raghavk911', 'HardikN19', 'Gari1309', 'eklare19', 'rohitmore1012', 'Aabhash007', 'mohitsaha123', 'Bhagirath043', 'surajphulara', 'shaurya127', 'shubzzz98', 'mkarimi-coder', 'sakshi0309-champ', 'shivam623623', 'cheekudeveloper', 'Ashutosh-98765', 'Vaibhavipadamwar', 'shwetashrei', 'Banashree19', 'atharvashinde01', 'PrashantMehta-coder', 'kajolkumari150', 'Aqdashashmii', 'joyskmathew', 'pkkushagra', 'Rishrao09', 'Ashutoshrastogi02', 'JatulCodes', 'agarwals368', 'praveenbhardwaj', 'hardik302001', 'jagannathbehera444', 'jubyer00', 'SouravSarkar7', 'neerajsins', 'Rasam22', 'pk-bits', 'asawaronit60', 'anupama-nicky', 'Kishan-Kumar-Kannaujiya', 'carrycooldude', 'parasjain99', 'vishwatejharer', 'sayon-islam-23', 'sidhu56', 'Diwakarprasadlp', 'hashim361', 'Anantjoshie', 'bankateshkr', 'Mayank2001kh', 'RoyNancy', 'ayushsagar10', 'jaymishra2002', 'Anushka004', 'naitik-23', 'meraj97', 'gagangupta07', 'stark829', 'Muskan761', 'MrDeepakY', 'NayanPrakash11', 'shawnfrost69', 'thor174', 'Sumeet2442', 'ummekulsum123', 'akarsh2312', 'hemantmakkar', 'bardrock01', 'MrunalHole', 'chetanrakhra', 'pratik821', 'rahulkz', 'Akhilesh-ingle', 'pruthvi3007', 'Vanshi1999', 'sagarkb', 'CoderRushil', 'Shivansh2200', 'Ronak14999', 'srishtiaggarwal', 'adityakumar48', 'piyushchandana', 'Piyussshh', 'priyank-di', 'Vishwajeetbamane', 'moto-pixel', 'madmaxakshay', 'James-HACK', 'vikaschamyal', 'Arkadipta14', 'Abhishekk2000', 'Sushant012', 'Quint-Anir', 'navaloli', 'ronitsingh1405', 'vanshu25', 'samueldenzil', 'akashrajput25', 'sidhi100', 'ShivtechSolutions', 'vimal365', 'master77229', 'Shubham-Khetan-2005', 'vaishnavi-1', 'AbhijithSogal', 'Sid133', 'white-devil123', 'bawa2510', 'anjanikshree12', 'mansigupta1999', 'hritik229', 'engineersonal', 'adityaadg1997', 'mansishah20', '2shuux', 'Nishthajosh', 'ParthaDe94', 'abhi-io', 'Neha-119', 'Dungeonmaster07', 'Prathu121', 'anishloop7', 'cwmohit', 'shivamsri142', 'Sahil9511', 'NIKHILAVISHEK', 'amitpaswan9', 'devsharmaarihant', 'bilal509', 'BrahmajitMohapatra', 'rebelpower', 'Biswajitpradhan', 'sudhirhacker999', 'pydevtanya', 'Ashutosh147', 'jayeshmishra', 'rahul97407', 'athar10y2k', 'mrvasani48', 'raiatharva', 'Arj09', 'manish-109', 'aishwarya540', 'mohitjoshi81', 'PrathamAditya', 'K-Adrenaline', 'mrvlsaf', 'shivam9599', 'souravnitkkr', 'Anugya-Gogoi', 'AdityaTiwari64', 'yash623623', 'anjanik807', 'ujjwal193', 'TusharKapoor24', 'Ayushman278', 'osama072', 'aksahoo-1097', 'kishan-31802', 'Roshanpaswan', 'Himanshu-Prajapati', 'satyamraj48', 'NEFARI0US', 'kavitsheth', 'kushagra-18', 'khalane1221', 'ravleenkaur8368', 'Himanshu9430', 'uttam509', 'CmeherGit', 'sid5566', 'devaryan12123', 'ishanchoudhry', 'himanshu70043', 'skabhi001', 'tekkenpro', 'sandip1911', 'HarshvardhnMishra', 'krunalrocky', 'rohitkr-07', 'anshulgarg1234', 'hacky502boy', 'vivek-nagre', 'Hsm7085', 'amazingmj', 'Rbsingh9111', 'ronupanchal', 'mohitcodeshere', '1741Rishabh', 'Cypher2122', 'SahilDiwakar', 'abhigyan1000', 'HimanshuSharma5280', 'ProgrammerHarsh', 'Amitamit789', 'swapnilmutthalkar', 'enggRahul8git', 'BhuvnendraPratapSingh', 'Ronak1958', 'Knight-coder', 'Faizu123', 'shivansh987', 'mrsampage', 'AbhishikaAgarwal', 'Souvagya-Nayak', 'harsh287', 'Staryking', 'rmuliterno', 'kunjshah0703', 'KansaraPratham', 'GargoyleKing2112', 'Tanu-creater', 'satvikmittal638', 'gauravshinde-7', 'saabkapoor36', 'devangpawar', 'RiddhiCoder', 'Bilalrizwaan', 'sayyamjain78', '2606199', 'mayuresh4700', 'umang171', 'kramit9', 'surendraverma1999', 'raviu773986', 'Codewithzaid', 'Souvik-Bose-199', 'BeManas', 'JKHAS786', 'MrK232', 'aaryannipane', 'bronzegamer', 'hardikkushwaha', 'Anurag931999', 'dhruvalgupta2003', 'kaushal7806', 'JayGupta6866', 'mayank161001', 'ShashankPawsekar', '387daksh', 'Susanta-Nayak', 'Pratik-11', 'Anas-S-Shaikh', 'marginkantilal', 'Brijbihari24', 'Deepanshu761', 'Aakashlifehacker', 'SaketKaswa', 'dhritiduttroy', 'astitvagupta31', 'Prakhyat-Srivastava', 'Puneet405', 'harsh2630', 'sds9639', 'Prajwal38', 'simransharmarajni', 'Naman195', 'patience0721', 'Aman6651', 'tyagi1558', 'kmannnish', 'victorwpbastos', 'sagnik403', 'rahuly5544', 'PrinceKumarMaurya591', 'nakulwastaken', 'janmejayamet', 'HimanshuGupta11110000', 'Akshatcodes21', 'IRFANSARI', 'shreya991', 'pavan109', 'Parth00010', 'itzUG', 'Mayank-choudhary-SF', 'shubhamborse', 'Courage04', 'techsonu160', 'shivamkonkar', 'ErMapsh', 'roshan-githubb', 'Gourav502', 'SauravMiah', 'nikhil609', 'BenzylFernandes', 'BarnakGhosh', 'Aanchalgarg343', 'Madhav12345678', 'Tirth11', 'bhavesh1456', 'ajeet323327', 'AmitNayak9', 'lalitchauhan2712', 'raviroshan224', 'hellmodexxx', 'Dhruv1501', 'Himanshu6003', 'mystery2828', 'waris89', '2303-kanha', 'Anshuk-Mishra', 'amandeeptiwari22', 'Shashikant9198', 'Adityacoder99', 'Pradeepsharma7447', 'varunreddy57', 'uddeshaya', 'Priyanka0310-byte', 'adharsidhantgupta', 'Bhupander7', 'NomanSubhani', 'umeshkv2', 'Debosmit-Neogi', 'bhaktiagrawal088', 'Aashishsharma99', 'G25091998', 'mdkaif25', 'raj-jetani', 'chetanpujari5105', 'Agrawal-Rajat', 'Parthkrishnan', 'sameer-15', 'HD-Harsh-Doshi', 'Anvesha', 'karanmankoliya', 'armandatt', 'DakshSinghalIMS', 'Bhavyyadav25', 'surya123-ctrl', 'shubhambhawsar-5782', 'PAWANOP', 'mohit-singh-coder', 'Mradul-Hub', 'babai1999', 'Ritesh4726', 'Anuj-Solanki', 'abhi04neel', 'yashshahah', 'yogendraN27', 'Rishabh23-thakur', 'Indhralochan', 'harshvaghani', 'dapokiya', 'pg00019', 'AMITPKR', 'pawarrahul1002', 'mrgentlemanus', 'anurag-sonkar', 'aalsicoder07', 'harsh2699', 'Rahilkaxi', 'Jyotindra-21', 'dhruvilmehta', 'jacktherock', 'helpinubcomgr8', 'spcrze', 'aman707f', 'Nikkhil-J', 'Poonam798', 'devyansh2006', 'amanpj15', 'rudrcodes', 'STREIN-max', 'Adarsh-kushwaha', 'adxsh', 'Mohnish7869', 'Mrpalash', 'umangpincha', 'aniket1399', 'Sudip843', 'Amartya-Srivastav', 'Ananda1113', 'nobbitaa', 'shahmeet79', 'AmitM56', 'jiechencn', 'devim-stuffs', 'bkobl', 'kavindyasinthasilva', 'MochamadAhya29', 'misbagas', 'ksmarty', 'vedikaag99', 'nongshaba1337', 'daiyi', 'Saturia', 'llfj', '312494845', 'DeadPackets', 'Pandorax41', 'Kritip123', 'poburi', 'hffkb', 'cybrnook', 'lichaonetuser', 'l-k-a-m-a-z-a', 'zhaoshengweifeng', 'staticman-peoplesoftmods', 'ikghx', 'uguruyar', '513439077', 'f4nff', 'samspei0l', 'Seminlee94', 'inflabz', 'jack1988520', 'lanfenglin', 'sujalgoel', 'foldax', 'corejava', 'DarkReitor', 'amirpourastarabadi', 'Raess-rk1', 'ankit0183', 'jurandy007', 'davidbarratt', 'bertonjulian', 'TMFRook', 'qhmdi', 'QairexStudio', 'XuHewen', 'happyxhw', 'Mokaz24', 'andyteq', 'Grommish', 'fork-bombed', 'AZiMiao1122', '61569864', 'jeemgreen234', 'IgorKowalczykBot', 'sirpdboy', 'fjsnogueira', '9000000', 'ascott', 'aparcar', 'void9main', 'gerzees', 'javadnew5', 'belatedluck', 'calmsacibis995', 'maciejSamerdak', 'ghostsniper2018', 'rockertinsein', 'divarjahan', 'skywalkerEx', 'ehack-italy', 'Cloufish', 'aasoares', 'mustyildiz', 'Ras7', 'philly12399', 'cuucondiep', 'Nomake', 'z306334796', 'ball144love', 'armfc6161', 'Alex-coffen', 'rodrigodesouza07', 'lss182650', 'iphotomoto', 'overlordsaten', 'miaoshengwang', 'ManiakMCPE', 'Yazid0540570463', 'unnamegeek', 'brennvika', 'ardi66', 'Cheniour10', 'lxc1121', 'rfm-bot', 'cornspig', 'jedai47', 'ignotus09', 'kamal7641', 'Dabe11', 'dgder0', 'Nerom', 'luixiuno', 'zh610902551', 'wifimedia', 'mjoelmendes', 'pc2019', 'hellodong', 'lkfete', 'a7raj', 'willquirk', 'xyudikxeon1717171717', '420hackS', 'mohithpokala', 'tranglc', 'ilyankou', 'hhmaomao', 'hongjuzzang', 'Mophee-ds', 'wetorek', 'apktesl', 'jaylac2000', 'BishengSJTU', 'elfring', 'ThomasGrund', 'coltonios', 'kouhe3', 'balaji-29', 'demo003', 'gfsupport', 'AlonzoLax', 'tazmanian-hub', 'qwerttvv', 'kotucocuk', 'ajnair100', 'jirayutza1', 'karolsw3', 'shenzt68', 'xpalm', 'adamwebrog', 'jackmahoney', 'chenwangnec', 'hanlihanshaobo', 'jannik-mohemian', 'Pablosky12', '95dewadew', 'dcharbonnier', 'chapmanvoris', 'nishantingle999', 'gulabraoingle', 'kalyaniingle', 'BoulavardDepo', 'amingoli78', 'daya2940', 'roaddogg2k2', 'AmbroseRen', 'jayadevvasudevan', 'pambec', 'orditeck', 'muhammetcan34', 'Aman199825', 'hyl946', 'CyberSecurityUP', 'kokum007', 'shivamjaiswal64', 'Skub123', 'KerimG', 'thehexmor', 'jakaya123', 'Ashish24788', 'qhuy1501', 'TranVanDinh235', 'Thuong1998', 'TranTheTuan', 'anhtuyenuet', 'tranhuongk', 'danhquyen0109', 'hunghv-0939', 'dat-lq-234', 'nguyenducviet1999', 'Rxzzma', 'MrRobotjs', 'jonschlinkert', 'awsumbill', 'lastle', 'gaga227', 'maiquangminh', 'andhie-wijaya', 'penn5', 'FormosaZh', 'itz63c', 'AvinashReddy3108', 'ferchlam', 'noobvishal', 'ammarraisafti', 'authenticatorbot', 'SekiBetu', 'markkap', 'wyd6295578sk', 'lorpus', 'Camelsvest', 'ben-august', 'jackytang', 'dominguezcelada', 'tony1016', 'afuerhoff420', 'darkoverlordofdata', 'yihanwu1024', 'bromiao', 'MaxEis', 'kyf15596619', 'Reysefyn', 'THEROCK2512', 'Krystool', 'Adomix', 'splexpe', 'hugetiny', 'mikeLongChen', 'KlansyMsniv', 'Anony1234mo', 'Mygod', 'chenzesam', 'vatayes', 'fisher134', 'bmaurizio', 'fire-bot', 'kjbot-github', 'Dcollins66', 'dislash', 'noraj', 'theLSA', 'chadyj', 'AlbertLiu-Breeze', 'jspspike', 'kill5Witchd', 'repushko', 'ankushshekhawat', 'karan1dhir', 'venkatvani', 'tracyxiong1', 'PythxnBite', 'vamshi0997', 'himanshu345', 'prabhat2001', 'aakar345', 'rangers9708', 'anuragiiitm', 'AlfieBurns12345678910', 'marpernas', 'jrcole2884', 'deshanjali', 'alekh42', 'deepakgangore', 'SuperBeagleDog', 'vasiliykovalev', 'lyin888', 'tchainzzz', 'Theoask', 'jnikita356', 'ajay1706', 'gane5hvarma', 'pbhavesh2807', 'daniloeler', 'gabrielrab', 'djdamian210', '1samuel411', 'Apoorv1', 'AnimatedAnand', '7coil', 'trentschnee', 'himanshu435', 'dialv', 'DHRUV536', 'pratyushraj01', 'vedantv', 'yusronrizki', 'joaoguazzelli', 'pradnyesh45', 'aneeshaanjali', 'iREDMe', 'ashish010598', 'abhi1998das', 'keshriraj7870', 'vishad2', 'Navzter', 'jagadyudha', 'hrom405', 'seferov', 'umeshdhauni', 'sakshamkhurana97', 'ThatNerdyPikachu', 'dishantsethi', 'tharindumalshan1', 'ruderbytes', 'pr-jli', '21RachitShukla', 'fellipegs', 'foolbirds', 'hariprasetia', 'tanyaagrawal1006', 'Gaurav1309Goel', 'vidurathegeek', 'wolfsoldier47', 'bhaskar24', 'thedutchruben', 'Qoyyuum', 'msdeibel', 'Nann', 'bksahu', 'sathyamoorthyrr', 'sbenstewart', 'supriyanta', 'MasterKN48', 'prkhrv', 'Blatantz', 'rahulgoyal911', 'ranyejun', 'decpr', 'apollojoe', 'SuperAdam47', 'RootUp', 'llronaldoll', 'jayadeepgilroy', 'Arunthomas1105', 'zhanwenzhuo-github', 'dennisslol006', 'xFreshie', 'servantthought', 'Geilivable', 'xushet', 'order4adwriter', 'dubrovka', 'Nmeyers75', 'p3p5170', 'yangkun6666', 'knight6414', 'nailanawshaba', 'tuhafadam', 'stainbank', '52fhy', 'jiyanmizah', 'iotsys', 'zhangxiao921207', 'empsmoke', 'asugarr', 'Amonhuz', 'VinayaSathyanarayana', 'html5lover', 'peterambrozic', 'maomaodegushi', 'ShelbsLynn', 'AmmarAlzoubi', 'AlessioPellegrini', 'tetroider', '404-geek', 'mohammed078', 'sugus25', 'mxdi9i7', 'sahilmalhotra24', 'furqanhaidersyed', 'ChurchCRMBugReport', 'shivamkapoor3198', 'wulongji2016', 'jjelschen', 'bj2015', 'tangxuelong', 'gunther-bachmann', 'marcos-tomaz', 'anette68', 'techiadarsh', 'nishantmadu', 'Nikhil2508', 'anoojlal', 'krischoi07', 'utkarshyadavin', 'amanPanth', 'chinurox', 'syedbilal5000', 'NidPlays', 'jirawat050', 'RealAnishSharma', 'bwegener', 'whyisjacob', 'naveenpucha8', 'ronaksakhuja', 'ju3tin', 'DT9', 'dorex22', 'hiendinhngoc', 'mlkorra', 'Christensenea', 'Mouse31', 'VeloxDevelopment', 'parasnarang1234', 'beilo', 'armagadon159753', 'andrewducker', 'NotMainScientist', 'alterem', 'MilkAndCookiz', 'Justinshakes', 'TheColdVoid', 'falconxunit', '974648183', 'minenlink', 'thapapinak', 'lianghuacheng', 'ben3726', 'BjarniRunar', 'Taki21', 'zsytssk', 'Apple240Bloom', 'shubham436', 'LoOnyBiker', 'uasi', 'wailoamrani', 'AnimeOverlord7', 'zzyzy', 'ignitete', 'vikstrous', 's5s5', 'tianxingvpn', 'talib1410', 'vinymv', 'yerikyy', 'Honsec', 'chesterwang', 'perryzou', 'Meprels', 'mfat', 'mo-han', 'roganoalien', 'amoxicillin', 'AbelLai', 'whatisgravity', 'darshankaarki', 'Tshifhiwa84', 'CurtainTears', 'gaotong2055', 'appleatiger', 'hdstar2009', 'TommyJerryMairo', 'GoogleCodeExporter', ]
""" The Stock module is responsible for Stock management. It includes models for: - StockLocation - StockItem - StockItemTracking """
while True: A,B,C=map(int,input().split()) if not A: exit() if A+B+C<=max(A,B,C)*2: print('Invalid') elif A==B==C: print('Equilateral') elif True in (A==B,A==C,B==C): print('Isosceles') else: print('Scalene')
class BigO_of_1(object): def check_index_0_is_int(self, value_list): if value_list[0] == int(value_list[0]): return True class BigO_of_N(object): def double_values(self, value_list): for i in range(0, len(value_list)): value_list[i] *= 2 return value_list class BigO_of_N_Squared(object): def create_spam_field(self, value_list): for i in range(0, len(value_list)): value_list[i] = [] for j in range(0, len(value_list)): value_list[i].append('spam') return value_list class BigO_of_N_Cubed(object): def create_spam_space(self, value_list): for i in range(0, len(value_list)): value_list[i] = [] for j in range(0, len(value_list)): value_list[i].append([]) for k in range (0, len(value_list)): value_list[i][j].append('spam') return value_list class BigO_of_N_to_the_Fourth(object): def create_spam_hyperspace(self, value_list): for i in range(0, len(value_list)): value_list[i] = [] for j in range(0, len(value_list)): value_list[i].append([]) for k in range(0, len(value_list)): value_list[i][j].append([]) for l in range(0, len(value_list)): value_list[i][j][k].append('spam') return value_list class BigO_of_2_to_the_N(object): def get_factorial(self, value): final_number = 0 if value > 1: final_number = value * self.get_factorial(value - 1) return final_number else: return 1 class BigO_of_N_log_N(object): def sort_list(self, value_list): return sorted(value_list)
class EmptyStackException(Exception): pass class Node: def __init__(self, value=None): self.value = value self.next = None class Stack: def __init__(self, node=None): self.top = node def push(self, value): if not self.top: self.top = Node(value) else: node = Node(value) node.next = self.top self.top = node def pop(self): if not self.is_empty(): temp = self.top self.top = self.top.next temp.next = None return temp.value raise EmptyStackException("Cannot pop from an empty stack") def is_empty(self): """ Returns True if Empty and false otherwise """ if self.top: return False return True def peek(self): """ Returns the value at the top without modifying the stack, raises an exception otherwise """ if not self.is_empty(): return self.top.value raise EmptyStackException("Cannot peek an empty stack") def __str__(self): current = self.top items = [] while current: items.append(str(current.value)) current = current.next return "\n".join(items) #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##### class PseudoQueue: def __init__(self, node=None): self.stack = Stack() self.reversed_stack = Stack() def enqueue(self, value): self.stack.push(value) def dequeue(self): if not self.stack.is_empty(): while not self.stack.is_empty(): popped = self.stack.pop() self.reversed_stack.push(popped) result = self.reversed_stack.pop() if self.stack.is_empty(): while not self.reversed_stack.is_empty(): self.stack.push(self.reversed_stack.pop()) return result else: raise EmptyStackException("Cannot pop from an empty stack") def peek(self): """ Returns the value at the top without modifying the queue, raises an exception otherwise """ if not self.stack.is_empty(): current = self.stack.top items = [] while current: items.insert(0,str(current.value)) current = current.next return items[0] raise EmptyStackException("Cannot peek an empty stack") def __str__(self): current = self.stack.top items = [] while current: items.insert(0,str(current.value)) current = current.next return "\n".join(items) pseudoQueue = PseudoQueue() pseudoQueue.enqueue(1) pseudoQueue.enqueue(2) pseudoQueue.enqueue(3) pseudoQueue.dequeue() print(pseudoQueue.peek()) print(pseudoQueue)
# Language: Python 3 if __name__ == '__main__': s = input() n = any(i.isalnum() for i in s) a = any(i.isalpha() for i in s) d = any(i.isdigit() for i in s) l = any(i.islower() for i in s) u = any(i.isupper() for i in s) print(n, a, d, l, u, sep="\n")
with open("input", 'r') as f: lines = f.readlines() # lines = [x.strip("\n") for x in lines] lines.append("\n") total = 0 answers = set() for line in lines: if line == "\n": total += len(answers) answers = set() else: for letter in line.strip("\n"): answers.add(letter) print("Total: {}".format(total))
#pass is just a placeholder which does nothing def func(): pass for i in [1,2,3,4,5]: pass
# -*- coding: utf-8 -*- #------------------------------------------------------------------ # LEIA E PREENCHA O CABEÇALHO # NÃO ALTERE OS NOMES DAS FUNÇÕES # NÃO APAGUE OS DOCSTRINGS # NÃO INCLUA NENHUM OUTRO import ... #------------------------------------------------------------------ ''' Nome: Rafael Prudêncio Leite NUSP: ******** Ao preencher esse cabeçalho com o meu nome e o meu número USP, declaro que todas as partes originais desse exercício programa (EP) foram desenvolvidas e implementadas por mim e que portanto não constituem desonestidade acadêmica ou plágio. Declaro também que sou responsável por todas as cópias desse programa e que não distribui ou facilitei a sua distribuição. Estou ciente que os casos de plágio e desonestidade acadêmica serão tratados segundo os critérios divulgados na página da disciplina. Entendo que EPs sem assinatura devem receber nota zero e, ainda assim, poderão ser punidos por desonestidade acadêmica. Abaixo descreva qualquer ajuda que você recebeu para fazer este EP. Inclua qualquer ajuda recebida por pessoas (inclusive monitores e colegas). Com exceção de material de MAC0122, caso você tenha utilizado alguma informação, trecho de código,... indique esse fato abaixo para que o seu programa não seja considerado plágio ou irregular. Exemplo: A monitora me explicou que eu devia utilizar a função split(), strip(), map() e filter() para leitura dos dados no arquivo. Descrição de ajuda ou indicação de fonte: ''' class Cliente: ''' Siga as especificações do enunciado para construir a classe Cliente. Coloque o seu código a seguir. ''' def __init__(self, nome): #str --> None self.nome = nome def get_nome(self): #None --> str return self.nome def put_classificacao(self, filmes): #list --> None self.filmes = filmes def get_classificacao(self): #None --> list return self.filmes[:] def __str__(self): #None --> str string = str(self.nome) + '\n' for i, j in enumerate(self.filmes): string += str(i) + ': ' + str(j) + '\n' return string def distancia(self, other): #Cliente --> int cliente1, cliente2 = [], [] for i, j in enumerate(self.filmes): if j in other.filmes: cliente1.append(j) for i, j in enumerate(other.filmes): if j in self.filmes: cliente2.append(j) numcliente1, numcliente2 = [], [0]*len(cliente2) for i, j in enumerate(cliente1): numcliente1.append(i) for u, v in enumerate(cliente2): if j == v: numcliente2[u] = i if len(numcliente1) <= 2: return None return sort(numcliente2) def sort(numcliente2): #str --> int interacao = 0 for i in range(len(numcliente2) - 1): for j in range(len(numcliente2)-1, i, -1): if numcliente2[j] < numcliente2[j-1]: interacao += 1 numcliente2[j], numcliente2[j-1] = numcliente2[j-1], numcliente2[j] return interacao
del_items(0x800A0E8C) SetType(0x800A0E8C, "void VID_OpenModule__Fv()") del_items(0x800A0F4C) SetType(0x800A0F4C, "void InitScreens__Fv()") del_items(0x800A103C) SetType(0x800A103C, "void MEM_SetupMem__Fv()") del_items(0x800A1068) SetType(0x800A1068, "void SetupWorkRam__Fv()") del_items(0x800A10F8) SetType(0x800A10F8, "void SYSI_Init__Fv()") del_items(0x800A1204) SetType(0x800A1204, "void GM_Open__Fv()") del_items(0x800A1228) SetType(0x800A1228, "void PA_Open__Fv()") del_items(0x800A1260) SetType(0x800A1260, "void PAD_Open__Fv()") del_items(0x800A12A4) SetType(0x800A12A4, "void OVR_Open__Fv()") del_items(0x800A12C4) SetType(0x800A12C4, "void SCR_Open__Fv()") del_items(0x800A12F4) SetType(0x800A12F4, "void DEC_Open__Fv()") del_items(0x800A1568) SetType(0x800A1568, "char *GetVersionString__FPc(char *VersionString2)") del_items(0x800A163C) SetType(0x800A163C, "char *GetWord__FPc(char *VStr)")
def mergeSort(a, temp, leftStart, rightEnd): if(leftStart >= rightEnd): return middle = int((leftStart + rightEnd) / 2) mergeSort(a, temp, leftStart, middle) mergeSort(a, temp, middle + 1, rightEnd) merge(a, temp, leftStart, middle, rightEnd) return def merge(a, temp, leftStart, middle, rightEnd): left = leftStart right = middle + 1 index = leftStart while(left <= middle and right <= rightEnd): if(a[left] <= a[right]): temp[index] = a[left] left += 1 else: temp[index] = a[right] right += 1 index += 1 while left <= middle: temp[index] = a[left] left += 1 index += 1 while right <= rightEnd: temp[index] = a[right] right += 1 index += 1 a[leftStart:rightEnd+1] = temp[leftStart:rightEnd+1]
print("BMI指数计算器\n") inp_1 = input('请输入您的体重(kg):\n') inp_2 = input('请输入您的身高(cm):\n') try: weight = float(inp_1) except: print('Please enter a number') try: height = float(inp_2) except: print('Please enter a number') BMI = weight/(height/100)**2 if BMI<18.5: print("您的体型偏瘦") elif BMI<24 and BMI>=18.5: print("您的体型正常") elif BMI<28 and BMI>=24: print("您的体型偏胖") elif BMI<32 and BMI>=28: print("您的体型肥胖") elif BMI>=32: print("您的体型过于肥胖")
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 """Amazon Textract + LayoutLM model training and inference code package for SageMaker Why the extra level of nesting? Because the src folder (even if __init__ is present) is not loaded as a Python module during training, but rather as the working directory. This requires a different import syntax for top-level files/folders (`import config`, not `from . import config`) than you would see if your working directory was different (for example when you `from src import code` to use it from one of the notebooks). Wrapping this code in an extra package folder ensures that - regardless of whether you use it from notebook, in SM training job, or in some other app - relative imports *within* this code/ folder work correctly. """
a = int(input('Construa a tabuada do Número: ')) aux = 0 print('*' * 18) print('Trabuada de {}'.format(a)) print('*' * 18) while (aux <= 10): print('{} X {:2} = {:4}'.format(a, aux, (a * aux))) aux = aux + 1
def ans(n): global fib for i in range(1,99): if fib[i]==n: return n if fib[i+1]>n: return ans(n-fib[i]) fib=[1]*100 for i in range(2,100): fib[i]=fib[i-1]+fib[i-2] n=int(input()) print(ans(n))
# # This file contains the Python code from Program 7.23 of # "Data Structures and Algorithms # with Object-Oriented Design Patterns in Python" # by Bruno R. Preiss. # # Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved. # # http://www.brpreiss.com/books/opus7/programs/pgm07_23.txt # class SortedList(OrderedList): def __init__(self): super(SortedList, self).__init__()
""" Ejercicio 15 Tomando como base los resultados obtenidos en un laboratorio de análisis clínicos, un médico determina si una persona tiene anemia o no, lo cual depende de su nivel de hemoglobina en la sangre, de su edad y de su sexo. Si el nivel de hemoglobina que tiene una persona es menor que el rango que le corresponde, se determina su resultado como positivo y en caso contrario como negativo. La tabla en la que el médico se basa para obtener el resultado es la siguiente: EDAD NIVEL DE HEMOGLOBINA 0 meses - ­1 mes 13 - 26 g% Mayor de 1 mes y menor o igual de 6 meses 10 - 18 g% Mayor de 6 meses y menor o igual de 12 meses 11 - 15 g% Mayor de 1 año y menor o igual que 5 años 11.5 - 15 g% Mayor de 5 año y menor o igual que 10 años 12.6 - 15.5 g% Mayor de 10 año y menor o igual que 15 años 13 - 15.5 g% Mujeres mayores de 15 años 12 - 16 g% Hombres mayores de 15 años 14 - 18 g% Desarrolle un algoritmo que indique, si una persona tiene Anemia o no. Entradas Edad --> Int --> E Sexo --> Str --> S Nivel_Hemoglobina --> Float --> N_H Salidas Resultado_Anemia --> Str --> R_A """ # Instrucciones al usuario print("Este programa le permitira diagnosticar si una persona tiene o no anemia") # Entradas E = int(input("Digite la edad en meses: ")) N_H = float(input("Digite el nivel de hemoglobina en g%: ")) if E > 180: S = str(input("¿Cuál es el sexo? (Responda Hombre con 1 o Mujer con 2): ")) else: S = 0 S = int(S) # Caja negra if E >= 0 and E <= 1: if N_H >= 13 and N_H <= 26: R_A = "negativo" elif N_H < 13: R_A = "Positivo" else: N_H > 26 R_A = "Error" elif E > 1 and E <= 6: if N_H >= 10 and N_H <= 18: R_A = "Negativo" elif N_H < 10: R_A = "Positivo" else: N_H > 18 R_A = "Error" elif E > 6 and E <= 12: if N_H >= 11 and N_H <= 15: R_A = "Negativo" elif N_H < 11: R_A = "Positivo" else: N_H > 15 R_A = "Error" elif E > 12 and E <= 60: if N_H >= 11.5 and N_H <= 15: R_A = "Negativo" elif N_H < 11.5: R_A = "Positivo" else: N_H > 15 R_A = "Error" elif E > 60 and E <= 120: if N_H >= 12.6 and N_H <= 15.5: R_A = "Negativo" elif N_H < 12.6: R_A = "positivo" else: N_H > 15.5 R_A = "Error" elif E > 120 and E <= 180: if N_H >= 13 and N_H <= 15.5: R_A = "Negativo" elif N_H < 13: R_A = "Positivo" else: N_H > 15.5 R_A = "Error" elif E > 180 and S == 2: if N_H >= 12 and N_H <= 16: R_A = "Negativo" elif N_H < 12: R_A = "Positivo" else: N_H > 16 R_A = "Error" elif E > 180 and S == 1: if N_H >= 14 and N_H <= 18: R_A = "Negativo" elif N_H < 14: R_A = "Positivo" else: N_H > 18 R_A = "Error" # Salidas print(f"Su diagnostico para anemia es: {R_A}")
'''Program to read a number and check whether it is duck number or not. Hint: A duck number is a number which has zeros present in it, but no zero present in the begining of the number. Input Format a number from the user Constraints n>=0 Output Format Yes or No Sample Input 0 123 Sample Output 0 No Sample Input 1 140 Sample Output 1 Yes''' #solution def duck(num): num.lstrip('0') if num.count('0')>0: return "Yes" return "No" print(duck(input()))
def main(): # problem1() # problem2() # problem3() # problem4() problem5() # Create a function with the variable below. After you create the variable do the instructions below that. # # arrayForProblem2 = ["Kenn", "Kevin", "Erin", "Meka"] # a) Print the 3rd element of the numberList. # # b) Print the size of the array # # c) Delete the second element. # # d) Print the 3rd element. # list is already built # it is a list NOT AN ARRAY # brackets [] are used to locate via index # remove can be used for a specific value def problem1(): arrayForProblem2 = ["Kenn", "Kevin", "Erin", "Meka"] print(arrayForProblem2[2]) arraysize = 0 for x in arrayForProblem2: arraysize+=1 print(arraysize) arrayForProblem2.remove("Kevin") print(arrayForProblem2[2]) # Create a function that has a loop that quits with ‘q’. # If the user doesn't enter 'q', # ask them to input another string. # wow def problem2(): while(True): userinput = input("literally just type q") if(userinput.lower() == "q"): break # Create a function that contains a collection of information for the following. # After you create the collection do the instructions below that. # # Jonathan/John # Michael/Mike # William/Bill # Robert/Rob # a) Print the collection # # b) Print William's nickname # you can do multi line lists and dictionaries #using a loop to print out each element # print(Dictionary[stuff in dictionary] def problem3(): nicknamelist ={"Jonathan":"John", "Michael":"Mike", "William":"Bill", "Robert":"Rob"} for x in nicknamelist: print(f"{x} {nicknamelist[x]}") print(nicknamelist["William"]) # Create an array of 5 numbers. Using a loop, print the elements in the array reverse order. Do not use a function # length will count from 1 # an array will count from 0 def problem4(): list = [5, 4, 3, 2, 1, 0] llength = len(list) for x in range(llength-1,-1,-1): print(list[x]) # Create a function that will have a hard coded array then ask the user for a number. # Use the userInput to state how many numbers in an array are higher, lower, or equal to it. def problem5(): listofnumbers = [0,1,2,3,4,5,6,7,8,9,10,11,12] userinput = int(input("give me a number between 0,12")) numgreat = 0 numequal = 0 numsmall = 0 for element in listofnumbers: if(element > userinput): numgreat+=1 elif(element == userinput): numequal+=1 elif(element < userinput): numsmall+=1 print(f"{numgreat} are bigger, {numequal} are equal, {numsmall} aresmaller.") if __name__ == '__main__': main()
consumer_key = "TSKf1HtYKBsnYU9qfpvbRJkxo" consumer_secret = "Y5lH7u6MDu5DjV5hUxEkwUpPwugYvEuqfpqyvP7y5ulen9XUML" access_token = '115029611-4TampaXbxHmUHcpK5Cll8h7rioP80SJMNneZiYCN' access_secret = 'wx4iaVvgvY5ZknCn6bOiKFiTzAU62R5PXC8b29RC6alwU'
# Breadth First Search and Depth First Search class BinarySearchTree: def __init__(self): self.root = None # Insert a new node def insert(self, value): new_node = { 'value': value, 'left': None, 'right': None } if not self.root: self.root = new_node else: current_node = self.root while True: if value < current_node['value']: # Going left if not current_node['left']: current_node['left'] = new_node break current_node = current_node['left'] else: # Going right if not current_node['right']: current_node['right'] = new_node break current_node = current_node['right'] return self # Search the tree for a value def lookup(self, value): if not self.root: return None current_node = self.root while current_node: if value < current_node['value']: # Going left current_node = current_node['left'] elif value > current_node['value']: # Going right current_node = current_node['right'] elif current_node['value'] == value: return current_node return f'{value} not found' # Remove a node def remove(self, value): if not self.root: return False # Find a number and its succesor current_node = self.root parent_node = current_node while current_node: if value < current_node['value']: parent_node = current_node current_node = current_node['left'] elif value > current_node['value']: parent_node = current_node current_node = current_node['right'] # if a match elif current_node['value'] == value: # CASE 1: No right child: if current_node['right'] == None: if parent_node == None: self.root = current_node['left'] else: # if parent > current value, make current left child a child of parent if current_node['value'] < parent_node['value']: parent_node['left'] = current_node['left'] # if parent < current value, make left child a right child of parent elif current_node['value'] > parent_node['value']: parent_node['right'] = current_node['left'] return f'{value} was removed' # CASE 2: Right child doesn't have a left child elif current_node['right']['left'] == None: current_node['right']['left'] = current_node['left'] if parent_node == None: self.root = current_node['right'] else: # if parent > current, make right child of the left the parent if current_node['value'] < parent_node['value']: parent_node['left'] = current_node['right'] # if parent < current, make right child a right child of the parent elif current_node['value'] > parent_node['value']: parent_node['right'] = current_node['right'] return f'{value} was removed' # CASE 3: Right child that has a left child else: # find the Right child's left most child leftmost = current_node['right']['left'] leftmost_parent = current_node['right'] while leftmost['left'] != None: leftmost_parent = leftmost leftmost = leftmost['left'] # Parent's left subtree is now leftmost's right subtree leftmost_parent['left'] = leftmost['right'] leftmost['left'] = current_node['left'] leftmost['right'] = current_node['right'] if parent_node == None: self.root = leftmost else: if current_node['value'] < parent_node['value']: parent_node['left'] = leftmost elif current_node['value'] > parent_node['value']: parent_node['right'] = leftmost return f'{value} was removed' # if value not found return f'{value} not found' # Memmory consumption is big - if the tree is wide, don't use it def breadth_first_seacrh(self): # start with the root current_node = self.root l = [] # answer queue = [] # to keep track of children queue.append(current_node) while len(queue) > 0: current_node = queue.pop(0) l.append(current_node['value']) if current_node['left']: queue.append(current_node['left']) if current_node['right']: queue.append(current_node['right']) return l # Recursive BFS def breadth_first_seacrh_recursive(self, queue, l): if not len(queue): return l current_node = queue.pop(0) l.append(current_node['value']) if current_node['left']: queue.append(current_node['left']) if current_node['right']: queue.append(current_node['right']) return self.breadth_first_seacrh_recursive(queue, l) # Determine if the tree is a valid BST def isValidBST(self, root): queue = [] current_value = root prev = -float('inf') while current_value or queue: # Add all left nodes into the queue starting from the root if current_value: queue.append(current_value) current_value = current_value['left'] else: # Compare each node from the queue # to its parent node last_value = queue.pop() if last_value: if last_value['value'] <= prev: return False prev = last_value['value'] # Repeat for the right node current_value = last_value['right'] return True # In-order -> [1, 4, 6, 9, 15, 20, 170] def depth_first_search_in_order(self): return traverse_in_order(self.root, []) # Pre-order -> [9, 4, 1, 6, 20, 15, 170] - Tree recreation def depth_first_search_pre_order(self): return traverse_pre_order(self.root, []) # Post-order -> [1, 6, 4, 15, 170, 20, 9] - children before parent def depth_first_search_post_order(self): return traverse_post_order(self.root, []) def traverse_in_order(node, l): if node['left']: traverse_in_order(node['left'], l) l.append(node['value']) if node['right']: traverse_in_order(node['right'], l) return l def traverse_pre_order(node, l): l.append(node['value']) if node['left']: traverse_pre_order(node['left'], l) if node['right']: traverse_pre_order(node['right'], l) return l def traverse_post_order(node, l): if node['left']: traverse_post_order(node['left'], l) if node['right']: traverse_post_order(node['right'], l) l.append(node['value']) return l if __name__ == '__main__': tree = BinarySearchTree() tree.insert(9) tree.insert(4) tree.insert(6) tree.insert(20) tree.insert(170) tree.insert(15) tree.insert(1) print('BFS', tree.breadth_first_seacrh()) print('BFS recursive', tree.breadth_first_seacrh_recursive([tree.root], [])) print('DFS in-order', tree.depth_first_search_in_order()) print('DFS pre-oder', tree.depth_first_search_pre_order()) print('DFS post-oder', tree.depth_first_search_post_order()) print(tree.isValidBST(tree.root))
#!/usr/bin/env python3 #encoding=utf-8 #------------------------------------------------- # Usage: python3 factory.py # Description: factory function #------------------------------------------------- def factory(aClass, *pargs, **kargs): # Varargs tuple, dict return aClass(*pargs, **kargs) # Call aClass (or apply in 2.X only) class Spam: def doit(self, message): print(message) class Person: def __init__(self, name, job=None): self.name = name self.job = job if __name__ == '__main__': object1 = factory(Spam) # Make a Spam object object2 = factory(Person, "Arthur", "King") # Make a Person object object3 = factory(Person, name='Brian') # Ditto, with keywords and default object1.doit(99) print(object2.name, object2.job) print(object3.name, object3.job)
""" Entradas: Cantidad de naranjas ---> int ---> X precio por docena--->float--->Y valor venta--->float--->K Salidas: numero de docenas--->float--->docena costo--->float--->precio ganancia--->float--->ganancia porcentaje ganancia--->float--->porcentaje """ X = int ( input ( "Numero de naranjas: " )) Y = float ( input ( "Valor por docena: " )) K = float ( entrada ( "Valor de las ventas: " )) docenas = ( X / 12 ) precio = ( Y * docenas ) ganancia = ( K - precio ) porcentaje = (( ganancia * 100 ) / precio ) print ( "El porcentaje de ganancia es: " + str ( porcentaje ), "%" )
with open('input', 'r') as file: aim = 0 horizontal = 0 depth = 0 simple_depth=0 for line in file: [com, n] = line.split(' ') n = int(n) if com == 'forward': horizontal += n depth += aim * n elif com == 'down': aim += n simple_depth += n elif com == 'up': aim -= n simple_depth -= n print("1 star:", horizontal * simple_depth) print("2 star:", horizontal * depth)
class Solution: # 1st solution # O(n) time | O(n) space def reverseWords(self, s: str) -> str: lst = [] start = 0 for i in range(len(s)): if s[i] == " ": self.reverse(lst, start, i - 1) start = i + 1 lst.append(s[i]) self.reverse(lst, start, len(s) - 1) return "".join(lst) def reverse(self, lst, start, end): while start < end: lst[start], lst[end] = lst[end], lst[start] start += 1 end -= 1
class Solution: def containsDuplicate(self, nums: [int]) -> bool: return len(nums) != len(set(nums)) s = Solution() print(s.containsDuplicate([1,2,3,1]))
# Problem: # Write a program that introduces hours and minutes of 24 hours a day and calculates how much time it will take # after 15 minutes. The result is printed in hh: mm format. # Hours are always between 0 and 23 minutes are always between 0 and 59. # Hours are written in one or two digits. Minutes are always written with two digits, with lead zero when needed. hours = int(input()) minutes = int(input()) minutes += 15 if minutes >= 60: minutes %= 60 hours += 1 if hours >= 24: hours -= 24 if minutes <= 9: print(f'{hours}:0{minutes}') else: print(f'{hours}:{minutes}') else: if minutes <= 9: print(f'{hours}:0{minutes}') else: print(f'{hours}:{minutes}') else: print(f'{hours}:{minutes}')
class Solution: """ @param n: an integer @return: the number of '1's in the first N number in the magical string S """ def magicalString(self, n): # write your code here if n == 0: return 0 seed = list('122') count = 1 i = 2 while len(seed) < n: num = int(seed[i]) if seed[-1] == '1': seed += ['2'] * num else: seed += ['1'] * num count += (num if len(seed) <= n else 1) i += 1 return count
class Link: def __init__(self, val, next=None): self.val = val self.next = next def __repr__(self): if not self.next: return f"Link({self.val})" return f"Link({self.val}, {self.next})" def merge_k_linked_lists(linked_lists): ''' Merge k sorted linked lists into one sorted linked list. >>> print(merge_k_linked_lists([ ... Link(1, Link(2)), ... Link(3, Link(4)) ... ])) Link(1, Link(2, Link(3, Link(4)))) >>> print(merge_k_linked_lists([ ... Link(1, Link(2)), ... Link(2, Link(4)), ... Link(3, Link(3)), ... ])) Link(1, Link(2, Link(2, Link(3, Link(3, Link(4)))))) ''' # look at the front value of all the linked lists # find the minimum, put it in the result linked list # "remove" that value that we've added # keep going until there are no more values to add # k - length of linked_lists # n - max length of any linked list # k*n - upper bound of number of values in all linked lists copy_linked_lists = linked_lists[:] # O(k) result = Link(0) pointer = result # how many times does the while loop run? # k*n while any(copy_linked_lists): # O(k) front_vals = [ link.val for link in copy_linked_lists if link ] # O(k) min_val = min(front_vals) # O(k) for i, link in enumerate(copy_linked_lists): # O(k) if link and link.val == min_val: pointer.next = Link(link.val) pointer = pointer.next copy_linked_lists[i] = link.next # Final runtime: O(k*n*k) return result.next
""" Variable Scope. Variables have a global or local "scope". For example, variables declared within either the setup() or draw() functions may be only used in these functions. Global variables, variables declared outside of setup() and draw(), may be used anywhere within the program. If a local variable is declared with the same name as a global variable, the program will use the local variable to make its calculations within the current scope. Variables are localized within each block. """ a = 80 # Create a global variable "a" def setup(): size(640, 360) background(0) stroke(255) noLoop() def draw(): # Draw a line using the global variable "a". line(a, 0, a, height) # Create a variable "b" local to the draw() function. b = 100 # Create a global variable "c". global c c = 320 # Since "c" is global, it is avalaible to other functions. # Make a call to the custom function drawGreenLine() drawGreenLine() # Draw a line using the local variable "b". line(b, 0, b, height) # Note that "b" remains set to 100. def drawGreenLine(): # Since "b" was defined as a variable local to the draw() function, # this code inside this if statement will not run. if('b' in locals() or 'b' in globals()): background(255) # This won't run else: with pushStyle(): stroke(0, 255, 0) b = 320 # Create a variable "b" local to drawGreenLine(). # Use the local variable "b" and the global variable "c" to draw a line. line(b, 0, c, height)
__all__ = [ "ffn", "rbfn", "ffn_bn", "ffn_ace", "ffn_lae", "ffn_bn_vat", "ffn_vat", "cnn", "vae1", "cvae", "draw_at_lstm1", "draw_at_lstm2", "draw_lstm1", "draw_sgru1", "lm_lstm", "lm_lstm_bn", "lm_gru", "lm_draw" ]
''' num1=1 num2=1 num3=num1+num2 print(num3) sum=num1+num2+num3 for i in range(1,18,1): num1=num2 num2=num3 num3=num1+num2 if num3%2==0: print(num3) ''' ''' for i in range(1,101): if 100%i==0: print(i) ''' num1=int(input("Please input a number: ")) for i in range(1,num1+1): if num1%i==0: print(i)
''' 165. Compare Version Numbers https://leetcode.com/problems/compare-version-numbers/ Compare two version numbers version1 and version2. If version1 > version2 return 1; if version1 < version2 return -1; otherwise return 0. You may assume that the version strings are: non-empty and contain only digits and the . character. The . character does not represent a decimal point and is used to separate number sequences. For instance, 2.5 is not "two and a half" or "half way to version three", it is the fifth second-level revision of the second first-level revision. You may assume the default revision number for each level of a version number to be 0. For example, version number 3.4 has a revision number of 3 and 4 for its first and second level revision number. Its third and fourth level revision number are both 0. Example 1: Input: version1 = "0.1", version2 = "1.1" Output: -1 Example 2: Input: version1 = "1.0.1", version2 = "1" Output: 1 Example 3: Input: version1 = "7.5.2.4", version2 = "7.5.3" Output: -1 Example 4: Input: version1 = "1.01", version2 = "1.001" Output: 0 Explanation: Ignoring leading zeroes, both “01” and “001" represent the same number “1” Example 5: Input: version1 = "1.0", version2 = "1.0.0" Output: 0 Explanation: The first version number does not have a third level revision number, which means its third level revision number is default to "0" Note: Version strings are composed of numeric strings separated by dots . and this numeric strings may have leading zeroes. Version strings do not start or end with dots, and they will not be two consecutive dots. ''' def compareVersion(self, version1, version2): """ :type version1: str :type version2: str :rtype: int """ # 学学 version1 = [int(val) for val in version1.split(".")] version2 = [int(val) for val in version2.split(".")] if len(version1) > len(version2): min_version = version2 max_version = version1 else: min_version = version1 max_version = version2 # Compare up to min character for i in range(len(min_version)): if version1[i] > version2[i]: return 1 elif version1[i] < version2[i]: return -1 if len(version1) == len(version2): return 0 for j in range(i + 1, len(max_version)): if max_version[j] > 0: return 1 if max_version == version1 else - 1 return 0 class Solution: def compareVersion(self, version1: str, version2: str) -> int: s1 = version1.split('.') s2 = version2.split('.') # Ailgning them if len(s1) >= len(s2): s2.extend('0' * (len(s1) - len(s2))) else: s1.extend('0' * (len(s2) - len(s1))) c = [int(s1[i]) - int(s2[i]) for i in range(len(s1))] for item in c: if item < 0: return -1 elif item > 0: return 1 return 0 # refernece: # https://leetcode.com/problems/compare-version-numbers/discuss/311157/Python-Easy-to-Understand-O(n) # https://leetcode.com/problems/compare-version-numbers/discuss/51008/Concise-Python-code
print(''' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --Seja bem-vindo! --Exercício 013 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ''') salario = float(input('Digite o salário: R$')) aumento = float(input('Digite a porcentagem do aumento: ')) total = salario * aumento / 100 input(f'Aumento: R${total:.2f} \nAumento + Salário: R${total + salario:.2f} ') print(''' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --Obrigado pelo uso! --Desenvolvido por Thalles Torres -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-''')
l = {} for _ in range(int(input())): s = input().split() l[s[0]] = sum([float(a) for a in s[1:]])/(len(s)-1) print('%.2f' % l[input()])
""" The module identify pull-up method refactoring opportunities in Java projects """ # Todo: Implementing a decent pull-up method identification algorithm.
BOT_NAME = 'p5_downloader_middleware_handson' SPIDER_MODULES = ['p5_downloader_middleware_handson.spiders'] NEWSPIDER_MODULE = 'p5_downloader_middleware_handson.spiders' ROBOTSTXT_OBEY = True DOWNLOADER_MIDDLEWARES = { 'p5_downloader_middleware_handson.middlewares.SeleniumDownloaderMiddleware': 543, } SELENIUM_ENABLED = True
# 题目:企业发放的奖金根据利润提成。 # 利润(I)低于或等于10万元时,奖金可提10%; # 利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.5%; # 20万到40万之间时,高于20万元的部分,可提成5% # 40万到60万之间时高于40万元的部分,可提成3%; # 60万到100万之间时,高于60万元的部分,可提成1.5%, # 高于100万元时,超过100万元的部分按1%提成, # 从键盘输入当月利润I,求应发放奖金总数? # !/usr/bin/python # _*_ coding:UTF-8 _*_ li = "" arr = [100000, 200000, 400000, 600000, 1000000, 0] rat = [0.1, 0.075, 0.05, 0.03, 0.015, 0.01 ] def start(): #进行输入值的类型判定是否符合输入需求 paize = 0 li = input("请输入您的当月利润:") try: li1 = float(li) for idx in range(0, 6): if li1 > arr[idx]: paize += (li1 - arr[idx]) * rat[idx] li1 = arr[idx] print("在您的销售额为:", li, '元时,奖金应该为:', paize, '元') except Exception: print("对不起,您输入的不是数字") for c in range(1,6,6): start()
#!/usr/bin/env python3 # Nick Stucchi # 03/23/2017 # Filter out words and replace with dashes def replaceWord(sentence, word): wordList = sentence.split() newSentence = [] for w in wordList: if w == word: newSentence.append("-" * len(word)) else: newSentence.append(w) return " ".join(newSentence) def main(): sentence = input("Enter a sentence: ") word = input("Enter a word to replace: ") result = input("The resulting string is: " + "\n" + replaceWord(sentence, word)) print(result) if __name__ == "__main__": main()
"""THIS FILE IS AUTO-GENERATED BY SETUP.PY.""" name = "popmon" version = "0.3.12" full_version = "0.3.12" release = True
"""Settings for testing emencia.django.newsletter""" SITE_ID = 1 USE_I18N = False ROOT_URLCONF = 'emencia.django.newsletter.urls' DATABASES = {'default': {'NAME': 'newsletter_tests.db', 'ENGINE': 'django.db.backends.sqlite3'}} INSTALLED_APPS = ['django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.auth', 'tagging', 'emencia.django.newsletter']
# # @lc app=leetcode id=647 lang=python3 # # [647] Palindromic Substrings # # @lc code=start class Solution: def countSubstrings(self, s: str) -> int: """Find number of palindromic strings in s Args: s (str): String to analyze Returns: int: Count of palindromes """ palindromes = 0 for i in range(len(s)): left, right = i, i while left >= 0 and right < len(s) and s[left] == s[right]: palindromes += 1 left -= 1 right += 1 left, right = i, i + 1 while left >= 0 and right < len(s) and s[left] == s[right]: palindromes += 1 left -= 1 right += 1 return palindromes # @lc code=end
""" LC 6001 Return the rearranged number with minimal value. Note that the sign of the number does not change after rearranging the digits. Example 1: Input: num = 310 Output: 103 Explanation: The possible arrangements for the digits of 310 are 013, 031, 103, 130, 301, 310. The arrangement with the smallest value that does not contain any leading zeros is 103. Example 2: Input: num = -7605 Output: -7650 Explanation: Some possible arrangements for the digits of -7605 are -7650, -6705, -5076, -0567. The arrangement with the smallest value that does not contain any leading zeros is -7650. """ class Solution: def smallestNumber(self, num: int) -> int: if num == 0: return 0 s = str(num) if num < 0: ns = sorted(map(int, s[1:]), key=lambda x: -x) return -int("".join(map(str, ns))) n0 = s.count('0') ns = sorted(map(int, s)) ns.insert(0, ns.pop(n0)) return int("".join(map(str, ns))) """ Time O(logN loglogN) Space O(logN) """
EF_UUID_NAME = "__specialEF__float32_UUID" EF_ORDERBY_NAME = "__specialEF__int32_dayDiff" EF_PREDICTION_NAME = "__specialEF__float32_predictions" EF_DUMMY_GROUP_COLUMN_NAME = "__specialEF__dummy_group" HMF_MEMMAP_MAP_NAME = "__specialHMF__memmapMap" HMF_GROUPBY_NAME = "__specialHMF__groupByNumericEncoder"
SERVICES = [ 'UserService', 'ProjectService', 'NotifyService', 'AlocateService', 'ApiGateway', 'Frontend' ] METRICS = [ 'files', 'functions', 'complexity', 'coverage', 'ncloc', 'comment_lines_density', 'duplicated_lines_density', 'security_rating', 'tests', 'test_success_density', 'test_execution_time', 'reliability_rating' ]
# sAsync: # An enhancement to the SQLAlchemy package that provides persistent # item-value stores, arrays, and dictionaries, and an access broker for # conveniently managing database access, table setup, and # transactions. Everything can be run in an asynchronous fashion using # the Twisted framework and its deferred processing capabilities. # # Copyright (C) 2006, 2015 by Edwin A. Suominen, http://edsuom.com/sAsync # # See edsuom.com for API documentation as well as information about # Ed's background and other projects, software and otherwise. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the # License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an "AS # IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either # express or implied. See the License for the specific language # governing permissions and limitations under the License. """ Errors relating to database access """ class AsyncError(Exception): """ The requested action is incompatible with asynchronous operations. """ class TransactionError(Exception): """ An exception was raised while trying to run a transaction. """ class DatabaseError(Exception): """ A problem occured when trying to access the database. """ class TransactIterationError(Exception): """ An attempt to access a transaction result as an iterator """
class Vocab: # pylint: disable=invalid-name,too-many-instance-attributes ROOT = '<ROOT>' SPECIAL_TOKENS = ('<PAD>', '<ROOT>', '<UNK>') def __init__(self, min_count=None): self._counts = {} self._pretrained = set([]) self.min_count = min_count self.size = 3 def idx(self, token): if token not in self._vocab: return self._vocab['<UNK>'] return self._vocab[token] def count_up(self, token): self._counts[token] = self._counts.get(token, 0) + 1 def add_pretrained(self, token): self._pretrained |= set([token]) def process_vocab(self): self._counts_raw = self._counts if self.min_count: self._counts = {k: count for k, count in self._counts.items() if count > self.min_count} words = [x[0] for x in sorted(self._counts.items(), key=lambda x: x[1], reverse=True)] pretrained = [x for x in self._pretrained if x not in self._counts] types = list(self.SPECIAL_TOKENS) + words + pretrained self._vocab = {x: i for i, x in enumerate(types)} self._idx2word = {idx: word for word, idx in self._vocab.items()} self.ROOT_IDX = self._vocab[self.ROOT] self.size = len(self._vocab) def items(self): for word, idx in self._vocab.items(): yield word, idx
# -*- coding:utf-8 -*- """ 状态信息 Project: alphahunter Author: HJQuant Description: Asynchronous driven quantitative trading framework """ class State: STATE_CODE_PARAM_MISS = 1 #交易接口初始化过程缺少参数 STATE_CODE_CONNECT_SUCCESS = 2 #交易接口连接成功 STATE_CODE_CONNECT_FAILED = 3 #交易接口连接失败 STATE_CODE_DISCONNECT = 4 #交易接口连接断开 STATE_CODE_RECONNECTING = 5 #交易接口重新连接中 STATE_CODE_READY = 6 #交易接口准备好 STATE_CODE_GENERAL_ERROR = 7 #交易接口常规错误 STATE_CODE_DB_SUCCESS = 8 #数据库连接成功 STATE_CODE_DB_ERROR = 9 #数据库连接失败 def __init__(self, platform, account, msg, code = STATE_CODE_PARAM_MISS): self._platform = platform self._account = account self._msg = msg self._code = code @property def platform(self): return self._platform @property def account(self): return self._account @property def msg(self): return self._msg @property def code(self): return self._code def __str__(self): return "platform:{} account:{} msg:{}".format(self._platform, self._account, self._msg) def __repr__(self): return str(self)
# # PySNMP MIB module Wellfleet-FNTS-ATM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-FNTS-ATM-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:33:28 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") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Gauge32, IpAddress, TimeTicks, Counter64, Bits, ModuleIdentity, Counter32, NotificationType, Unsigned32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Integer32, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "IpAddress", "TimeTicks", "Counter64", "Bits", "ModuleIdentity", "Counter32", "NotificationType", "Unsigned32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Integer32", "MibIdentifier") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") wfFntsAtmGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfFntsAtmGroup") wfFntsAtmTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1), ) if mibBuilder.loadTexts: wfFntsAtmTable.setStatus('mandatory') wfFntsAtmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1), ).setIndexNames((0, "Wellfleet-FNTS-ATM-MIB", "wfFntsAtmSlot"), (0, "Wellfleet-FNTS-ATM-MIB", "wfFntsAtmConnector")) if mibBuilder.loadTexts: wfFntsAtmEntry.setStatus('mandatory') wfFntsAtmDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("create", 1), ("delete", 2))).clone('create')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmDelete.setStatus('mandatory') wfFntsAtmDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmDisable.setStatus('mandatory') wfFntsAtmState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpresent", 4))).clone('notpresent')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmState.setStatus('mandatory') wfFntsAtmSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 14))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmSlot.setStatus('mandatory') wfFntsAtmConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 44))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmConnector.setStatus('mandatory') wfFntsAtmCct = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1023))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmCct.setStatus('mandatory') wfFntsAtmMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(4508))).clone(namedValues=NamedValues(("default", 4508))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmMtu.setStatus('mandatory') wfFntsAtmMadr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 8), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmMadr.setStatus('mandatory') wfFntsAtmIpAdr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 9), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmIpAdr.setStatus('mandatory') wfFntsAtmAtmState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 9))).clone(namedValues=NamedValues(("notready", 1), ("init", 2), ("intloop", 3), ("extloop", 4), ("reset", 5), ("down", 6), ("up", 7), ("notpresent", 9))).clone('notpresent')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmAtmState.setStatus('mandatory') wfFntsAtmSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(50))).clone(namedValues=NamedValues(("default", 50))).clone('default')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmSpeed.setStatus('mandatory') wfFntsAtmRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmRxOctets.setStatus('mandatory') wfFntsAtmRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmRxFrames.setStatus('mandatory') wfFntsAtmTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmTxOctets.setStatus('mandatory') wfFntsAtmTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmTxFrames.setStatus('mandatory') wfFntsAtmLackRescErrorRx = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmLackRescErrorRx.setStatus('mandatory') wfFntsAtmInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmInErrors.setStatus('mandatory') wfFntsAtmOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmOutErrors.setStatus('mandatory') wfFntsAtmRxLongFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmRxLongFrames.setStatus('mandatory') wfFntsAtmTxClipFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmTxClipFrames.setStatus('mandatory') wfFntsAtmRxReplenMisses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmRxReplenMisses.setStatus('mandatory') wfFntsAtmRxOverruns = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmRxOverruns.setStatus('mandatory') wfFntsAtmRxRingErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmRxRingErrors.setStatus('mandatory') wfFntsAtmTxRingErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmTxRingErrors.setStatus('mandatory') wfFntsAtmOpErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmOpErrors.setStatus('mandatory') wfFntsAtmRxProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmRxProcessings.setStatus('mandatory') wfFntsAtmTxProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmTxProcessings.setStatus('mandatory') wfFntsAtmTxCmplProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmTxCmplProcessings.setStatus('mandatory') wfFntsAtmIntrProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmIntrProcessings.setStatus('mandatory') wfFntsAtmSintProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmSintProcessings.setStatus('mandatory') wfFntsAtmPintProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfFntsAtmPintProcessings.setStatus('mandatory') wfFntsAtmRxRingLength = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(63))).clone(namedValues=NamedValues(("default", 63))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmRxRingLength.setStatus('mandatory') wfFntsAtmTxRingLength = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(63))).clone(namedValues=NamedValues(("default", 63))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmTxRingLength.setStatus('mandatory') wfFntsAtmCfgRxQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(127))).clone(namedValues=NamedValues(("default", 127))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmCfgRxQueueLength.setStatus('mandatory') wfFntsAtmCfgTxQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(127))).clone(namedValues=NamedValues(("default", 127))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmCfgTxQueueLength.setStatus('mandatory') wfFntsAtmLineNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 36), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfFntsAtmLineNumber.setStatus('mandatory') mibBuilder.exportSymbols("Wellfleet-FNTS-ATM-MIB", wfFntsAtmTxRingErrors=wfFntsAtmTxRingErrors, wfFntsAtmOpErrors=wfFntsAtmOpErrors, wfFntsAtmIpAdr=wfFntsAtmIpAdr, wfFntsAtmInErrors=wfFntsAtmInErrors, wfFntsAtmSlot=wfFntsAtmSlot, wfFntsAtmTxClipFrames=wfFntsAtmTxClipFrames, wfFntsAtmTxCmplProcessings=wfFntsAtmTxCmplProcessings, wfFntsAtmDisable=wfFntsAtmDisable, wfFntsAtmCct=wfFntsAtmCct, wfFntsAtmRxFrames=wfFntsAtmRxFrames, wfFntsAtmRxOctets=wfFntsAtmRxOctets, wfFntsAtmSintProcessings=wfFntsAtmSintProcessings, wfFntsAtmRxLongFrames=wfFntsAtmRxLongFrames, wfFntsAtmLackRescErrorRx=wfFntsAtmLackRescErrorRx, wfFntsAtmRxRingLength=wfFntsAtmRxRingLength, wfFntsAtmRxProcessings=wfFntsAtmRxProcessings, wfFntsAtmMadr=wfFntsAtmMadr, wfFntsAtmRxReplenMisses=wfFntsAtmRxReplenMisses, wfFntsAtmMtu=wfFntsAtmMtu, wfFntsAtmSpeed=wfFntsAtmSpeed, wfFntsAtmTable=wfFntsAtmTable, wfFntsAtmCfgRxQueueLength=wfFntsAtmCfgRxQueueLength, wfFntsAtmRxRingErrors=wfFntsAtmRxRingErrors, wfFntsAtmLineNumber=wfFntsAtmLineNumber, wfFntsAtmPintProcessings=wfFntsAtmPintProcessings, wfFntsAtmTxProcessings=wfFntsAtmTxProcessings, wfFntsAtmTxFrames=wfFntsAtmTxFrames, wfFntsAtmDelete=wfFntsAtmDelete, wfFntsAtmAtmState=wfFntsAtmAtmState, wfFntsAtmRxOverruns=wfFntsAtmRxOverruns, wfFntsAtmTxRingLength=wfFntsAtmTxRingLength, wfFntsAtmOutErrors=wfFntsAtmOutErrors, wfFntsAtmState=wfFntsAtmState, wfFntsAtmConnector=wfFntsAtmConnector, wfFntsAtmIntrProcessings=wfFntsAtmIntrProcessings, wfFntsAtmCfgTxQueueLength=wfFntsAtmCfgTxQueueLength, wfFntsAtmEntry=wfFntsAtmEntry, wfFntsAtmTxOctets=wfFntsAtmTxOctets)
class Middleware: def __init__(self, context_manager, server_middleware): """ :param BaseMiddleware Your custom middleware :param package Middleware from the middleware package """ self._service = context_manager self._middleware = server_middleware.get_hooks_service_middleware( context_service=self.service, ) @property def service(self): return self._service @property def middleware(self): return self._middleware
routers = dict( # base router BASE=dict( default_application='projeto', applications=['projeto', 'admin',] ), projeto=dict( default_controller='initial', default_function='principal', controllers=['initial', 'manager'], functions=['home', 'contact', 'about', 'user', 'download', 'account', 'register', 'login', 'exemplo', 'teste1', 'teste2', 'show_cliente', 'show_servidor', 'show_distro', 'cliente_host', 'servidor_host', 'distro_host', 'product', 'edit_host', 'interface', 'principal', 'detalhes_clean', 'detalhes_nav'] ) )
class Coffee: coffeecupcounter =0 def __init__(self, themilk, thesugar, thecoffeemate): self.milk = themilk self.sugar = thesugar self.coffeemate = thecoffeemate Coffee.coffeecupcounter=Coffee.coffeecupcounter+1 print(f'You now have your coffee with {self.milk} milk, {self.sugar} sugar, {self.coffeemate} coffeemate') mysugarfreecoffee= Coffee(2,0,1) print(mysugarfreecoffee.sugar) mysweetcoffee =Coffee(2,100,1) print(mysweetcoffee.sugar) print(f'We have made {Coffee.coffeecupcounter} coffee cups so far!') print(f'We have made {mysugarfreecoffee.coffeecupcounter} coffee cups so far!') print(f'We have made {mysweetcoffee.milk} coffee cups so far!') print(f'We have made {mysweetcoffee.coffeecupcounter} coffee cups so far!')
class Solution: def threeSumMulti(self, arr, target): c = Counter(arr) ans, M = 0, 10**9 + 7 for i, j in permutations(c, 2): if i < j < target - i - j: ans += c[i]*c[j]*c[target - i - j] for i in c: if 3*i != target: ans += c[i]*(c[i]-1)*c[target - 2*i]//2 else: ans += c[i]*(c[i]-1)*(c[i]-2)//6 return ans % M
n = int(input()) P = [] #pares I = [] #ímpares V = [] #Vetor principal t = 0 for i in range (n): V.append(int(input())) for i in range(len(V)): #dividindo o vetor em 2 vetores menores (Par e Impar) if V[i]%2==0: P.append(V[i]) #dividindo para par else: I.append(V[i]) #dividindo para impar V=[] #Zerando o Vetor principal for i in range(len(P)-1): #Ordenando os pares for j in range(i+1,len(P)): if P[i] > P[j]: t = P[i] P[i] = P[j] P[j] = t for i in range(len(I)-1): #Ordenando os ímpares for j in range(i+1,len(I)): if I[i] < I[j]: t = I[i] I[i] = I[j] I[j] = t for i in range (len(P)): V.append(P[i]) for i in range (len(I)): V.append(I[i]) print(V)
""" Program Description : List appender is a simple program that allows you to append data, either a single word or a sequence of words, to a list. To stop adding elements, type !quit. It helps create lists easily when the number of elements is a lot. """ def List_appender(): print("Start entering data to be appended to the list") ans = "" unit = "" while(True): unit = str(input()) unit = unit.split() for x in unit: if(x == "!quit"): return ans ans = (ans + "\"" + x + "\",") if __name__ == "__main__": list_name = input("Enter the name of the list : ") ans = List_appender() complete_list = (list_name + " = " + "[" + ans + "\b]") print(complete_list)
''' Created on Jun 4, 2018 @author: nishant.sethi ''' class Node: def __init__(self, data): self.left = None self.right = None self.data = data def insert(self, data): # Compare the new value with the parent node if self.data: if data < self.data: if self.left is None: self.left = Node(data) else: self.left.insert(data) elif data > self.data: if self.right is None: self.right = Node(data) else: self.right.insert(data) else: self.data = data # findval method to compare the value with nodes def findval(self, lkpval): if lkpval < self.data: if self.left is None: return str(lkpval)+" Not Found" return self.left.findval(lkpval) elif lkpval > self.data: if self.right is None: return str(lkpval)+" Not Found" return self.right.findval(lkpval) else: print(str(self.data) + ' is found') # Print the Tree def PrintTree(self): if self.left: self.left.PrintTree() print( self.data), if self.right: self.right.PrintTree() # Inorder traversal # Left -> Root -> Right def inorderTraversal(self, root): res = [] if root: res = self.inorderTraversal(root.left) res.append(root.data) res = res + self.inorderTraversal(root.right) return res # Preorder traversal # Root -> Left ->Right def PreorderTraversal(self, root): res = [] if root: res.append(root.data) res = res + self.PreorderTraversal(root.left) res = res + self.PreorderTraversal(root.right) return res # Postorder traversal # Left ->Right -> Root def PostorderTraversal(self, root): res = [] if root: res = self.PostorderTraversal(root.left) res = res + self.PostorderTraversal(root.right) res.append(root.data) return res
name = input("Enter file:") if len(name) < 1: name = "mbox-short.txt" handle = open(name) hist=dict() for line in handle: if line.startswith('From:'): words=line.split() if words[1] not in hist: hist[words[1]]=1 else: hist[words[1]]=hist[words[1]]+1 #print(hist) nome=conta=None for a,b in hist.items(): if conta==None or b>conta: nome=a conta=b print(nome,conta) # Alternativa name = input("Enter file:") if len(name) < 1: name = "mbox-short.txt" handle = open(name) hist=dict() for line in handle: if line.startswith('From:'): words=line.split() hist[words[1]]=hist.get(words[1],0)+1 #print(hist) nome=conta=None for a,b in hist.items(): if conta==None or b>conta: nome=a conta=b print(nome,conta)
maior = 0 menor = 0 totalPessoas = 10 for pessoa in range(1, 11): idade = int(input("Digite a idade: ")) if idade >= 18: maior += 1 else: menor += 1 print("Quantidade de pessoas maior de idade: ", maior) print("Quantidade de pessoas menor de idade: ", menor) print("Porcentagem de pessoas menores de idade = ", (menor*100)/totalPessoas, "%") print("Porcentagem de pessoas maiores de idade = ", (maior*100)/totalPessoas, "%")
"""Dataset representation of fMRI data.""" class DatasetFMRI(object): """docstring for DatasetFMRI.""" def __init__(self): """Init.""" pass
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. class PlatformioException(Exception): MESSAGE = None def __str__(self): # pragma: no cover if self.MESSAGE: # pylint: disable=not-an-iterable return self.MESSAGE.format(*self.args) return super().__str__() class ReturnErrorCode(PlatformioException): MESSAGE = "{0}" class MinitermException(PlatformioException): pass class UserSideException(PlatformioException): pass class AbortedByUser(UserSideException): MESSAGE = "Aborted by user" # # UDEV Rules # class InvalidUdevRules(UserSideException): pass class MissedUdevRules(InvalidUdevRules): MESSAGE = ( "Warning! Please install `99-platformio-udev.rules`. \nMore details: " "https://docs.platformio.org/page/faq.html#platformio-udev-rules" ) class OutdatedUdevRules(InvalidUdevRules): MESSAGE = ( "Warning! Your `{0}` are outdated. Please update or reinstall them." "\nMore details: " "https://docs.platformio.org/page/faq.html#platformio-udev-rules" ) # # Misc # class GetSerialPortsError(PlatformioException): MESSAGE = "No implementation for your platform ('{0}') available" class GetLatestVersionError(PlatformioException): MESSAGE = "Can not retrieve the latest PlatformIO version" class InvalidSettingName(UserSideException): MESSAGE = "Invalid setting with the name '{0}'" class InvalidSettingValue(UserSideException): MESSAGE = "Invalid value '{0}' for the setting '{1}'" class InvalidJSONFile(PlatformioException): MESSAGE = "Could not load broken JSON: {0}" class CIBuildEnvsEmpty(UserSideException): MESSAGE = ( "Can't find PlatformIO build environments.\n" "Please specify `--board` or path to `platformio.ini` with " "predefined environments using `--project-conf` option" ) class UpgradeError(PlatformioException): MESSAGE = """{0} * Upgrade using `pip install -U platformio` * Try different installation/upgrading steps: https://docs.platformio.org/page/installation.html """ class HomeDirPermissionsError(UserSideException): MESSAGE = ( "The directory `{0}` or its parent directory is not owned by the " "current user and PlatformIO can not store configuration data.\n" "Please check the permissions and owner of that directory.\n" "Otherwise, please remove manually `{0}` directory and PlatformIO " "will create new from the current user." ) class CygwinEnvDetected(PlatformioException): MESSAGE = ( "PlatformIO does not work within Cygwin environment. " "Use native Terminal instead." )
#!/usr/bin/env python3 def runLittleMan(mem): # Initialiser ac = 0 pc = 0 running = True # Kjør instruksjonssyklus while running: # Fetch instr = mem[pc] pc += 1 # Execute if instr // 100 == 1: # ADD ac += mem[instr % 100] elif instr // 100 == 2: # SUB ac -= mem[instr % 100] elif instr // 100 == 3: # STA mem[instr % 100] = ac elif instr // 100 == 5: # LDA ac = mem[instr % 100] elif instr // 100 == 6: # BRA pc = instr % 100 elif instr // 100 == 7: # BRZ if ac == 0: pc = instr % 100 elif instr // 100 == 8: # BRP if ac > 0: pc = instr % 100 elif instr == 901: # INP ac = int(input('Input: ')) elif instr == 902: # OUT print(ac) elif instr == 000: # HLT running = False else: # ERROR print('Error') running = False # Les inn et tall og skriv det ut igjen demo1 = [ 901, 902, 0 ] # Les inn to tall og skriv ut summen demo2 = [ 901, 306, 901, 106, 902, 0, 0 ] # Demo ... hva er dette? demo3 = [ 505, 902, 105, 305, 601, 1 ] # Les inn maxverdi og skriv ut Fibonaccitallene mindre eller lik maxverdi demo4 = [ 901, 321, 518, 902, 519, 902, 118, 320, 221, 817, 520, 902, 519, 318, 520, 319, 606, 0, 1, 1, 0, 0] runLittleMan(demo1)
# # PySNMP MIB module A3COM-HUAWEI-IFQOS2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-IFQOS2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 16:50:28 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) # h3cCommon, = mibBuilder.importSymbols("A3COM-HUAWEI-OID-MIB", "h3cCommon") OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") NotificationType, ObjectIdentity, Counter32, Bits, Gauge32, Counter64, Unsigned32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, ModuleIdentity, IpAddress, Integer32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "ObjectIdentity", "Counter32", "Bits", "Gauge32", "Counter64", "Unsigned32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "ModuleIdentity", "IpAddress", "Integer32", "TimeTicks") RowStatus, DisplayString, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention", "TruthValue") h3cIfQos2 = ModuleIdentity((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1)) if mibBuilder.loadTexts: h3cIfQos2.setLastUpdated('200812020000Z') if mibBuilder.loadTexts: h3cIfQos2.setOrganization('H3C Technologies Co.,Ltd.') h3cQos2 = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65)) class CarAction(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)) namedValues = NamedValues(("invalid", 0), ("pass", 1), ("continue", 2), ("discard", 3), ("remark", 4), ("remark-ip-continue", 5), ("remark-ip-pass", 6), ("remark-mplsexp-continue", 7), ("remark-mplsexp-pass", 8), ("remark-dscp-continue", 9), ("remark-dscp-pass", 10), ("remark-dot1p-continue", 11), ("remark-dot1p-pass", 12), ("remark-atm-clp-continue", 13), ("remark-atm-clp-pass", 14), ("remark-fr-de-continue", 15), ("remark-fr-de-pass", 16)) class PriorityQueue(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("top", 1), ("middle", 2), ("normal", 3), ("bottom", 4)) class Direction(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("inbound", 1), ("outbound", 2)) h3cIfQoSHardwareQueueObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1)) h3cIfQoSHardwareQueueConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1)) h3cIfQoSQSModeTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSQSModeTable.setStatus('current') h3cIfQoSQSModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSQSModeEntry.setStatus('current') h3cIfQoSQSMode = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("sp", 1), ("sp0", 2), ("sp1", 3), ("sp2", 4), ("wrr", 5), ("hwfq", 6), ("wrr-sp", 7), ("byteCountWrr", 8), ("byteCountWfq", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSQSMode.setStatus('current') h3cIfQoSQSWeightTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2), ) if mibBuilder.loadTexts: h3cIfQoSQSWeightTable.setStatus('current') h3cIfQoSQSWeightEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSQueueID")) if mibBuilder.loadTexts: h3cIfQoSQSWeightEntry.setStatus('current') h3cIfQoSQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: h3cIfQoSQueueID.setStatus('current') h3cIfQoSQueueGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("group0", 1), ("group1", 2), ("group2", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSQueueGroupType.setStatus('current') h3cIfQoSQSType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("weight", 1), ("byte-count", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSQSType.setStatus('current') h3cIfQoSQSValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSQSValue.setStatus('current') h3cIfQoSQSMaxDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 5), Integer32().clone(9)).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSQSMaxDelay.setStatus('current') h3cIfQoSQSMinBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSQSMinBandwidth.setStatus('current') h3cIfQoSHardwareQueueRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2)) h3cIfQoSHardwareQueueRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1), ) if mibBuilder.loadTexts: h3cIfQoSHardwareQueueRunInfoTable.setStatus('current') h3cIfQoSHardwareQueueRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSQueueID")) if mibBuilder.loadTexts: h3cIfQoSHardwareQueueRunInfoEntry.setStatus('current') h3cIfQoSPassPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSPassPackets.setStatus('current') h3cIfQoSDropPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSDropPackets.setStatus('current') h3cIfQoSPassBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSPassBytes.setStatus('current') h3cIfQoSPassPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSPassPPS.setStatus('current') h3cIfQoSPassBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSPassBPS.setStatus('current') h3cIfQoSDropBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSDropBytes.setStatus('current') h3cIfQoSQueueLengthInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSQueueLengthInPkts.setStatus('current') h3cIfQoSQueueLengthInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSQueueLengthInBytes.setStatus('current') h3cIfQoSCurQueuePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSCurQueuePkts.setStatus('current') h3cIfQoSCurQueueBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSCurQueueBytes.setStatus('current') h3cIfQoSCurQueuePPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSCurQueuePPS.setStatus('current') h3cIfQoSCurQueueBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSCurQueueBPS.setStatus('current') h3cIfQoSTailDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTailDropPkts.setStatus('current') h3cIfQoSTailDropBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTailDropBytes.setStatus('current') h3cIfQoSTailDropPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 15), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTailDropPPS.setStatus('current') h3cIfQoSTailDropBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTailDropBPS.setStatus('current') h3cIfQoSWredDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropPkts.setStatus('current') h3cIfQoSWredDropBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropBytes.setStatus('current') h3cIfQoSWredDropPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropPPS.setStatus('current') h3cIfQoSWredDropBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 20), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropBPS.setStatus('current') h3cIfQoSHQueueTcpRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2), ) if mibBuilder.loadTexts: h3cIfQoSHQueueTcpRunInfoTable.setStatus('current') h3cIfQoSHQueueTcpRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSQueueID")) if mibBuilder.loadTexts: h3cIfQoSHQueueTcpRunInfoEntry.setStatus('current') h3cIfQoSWredDropLPreNTcpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropLPreNTcpPkts.setStatus('current') h3cIfQoSWredDropLPreNTcpBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropLPreNTcpBytes.setStatus('current') h3cIfQoSWredDropLPreNTcpPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropLPreNTcpPPS.setStatus('current') h3cIfQoSWredDropLPreNTcpBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropLPreNTcpBPS.setStatus('current') h3cIfQoSWredDropLPreTcpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropLPreTcpPkts.setStatus('current') h3cIfQoSWredDropLPreTcpBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropLPreTcpBytes.setStatus('current') h3cIfQoSWredDropLPreTcpPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropLPreTcpPPS.setStatus('current') h3cIfQoSWredDropLPreTcpBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropLPreTcpBPS.setStatus('current') h3cIfQoSWredDropHPreNTcpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropHPreNTcpPkts.setStatus('current') h3cIfQoSWredDropHPreNTcpBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropHPreNTcpBytes.setStatus('current') h3cIfQoSWredDropHPreNTcpPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropHPreNTcpPPS.setStatus('current') h3cIfQoSWredDropHPreNTcpBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropHPreNTcpBPS.setStatus('current') h3cIfQoSWredDropHPreTcpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropHPreTcpPkts.setStatus('current') h3cIfQoSWredDropHPreTcpBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropHPreTcpBytes.setStatus('current') h3cIfQoSWredDropHPreTcpPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 15), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropHPreTcpPPS.setStatus('current') h3cIfQoSWredDropHPreTcpBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredDropHPreTcpBPS.setStatus('current') h3cIfQoSSoftwareQueueObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2)) h3cIfQoSFIFOObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1)) h3cIfQoSFIFOConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSFIFOConfigTable.setStatus('current') h3cIfQoSFIFOConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSFIFOConfigEntry.setStatus('current') h3cIfQoSFIFOMaxQueueLen = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSFIFOMaxQueueLen.setStatus('current') h3cIfQoSFIFORunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2), ) if mibBuilder.loadTexts: h3cIfQoSFIFORunInfoTable.setStatus('current') h3cIfQoSFIFORunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSFIFORunInfoEntry.setStatus('current') h3cIfQoSFIFOSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSFIFOSize.setStatus('current') h3cIfQoSFIFODiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSFIFODiscardPackets.setStatus('current') h3cIfQoSPQObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2)) h3cIfQoSPQConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1)) h3cIfQoSPQDefaultTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSPQDefaultTable.setStatus('current') h3cIfQoSPQDefaultEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQListNumber")) if mibBuilder.loadTexts: h3cIfQoSPQDefaultEntry.setStatus('current') h3cIfQoSPQListNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: h3cIfQoSPQListNumber.setStatus('current') h3cIfQoSPQDefaultQueueType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1, 2), PriorityQueue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSPQDefaultQueueType.setStatus('current') h3cIfQoSPQQueueLengthTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2), ) if mibBuilder.loadTexts: h3cIfQoSPQQueueLengthTable.setStatus('current') h3cIfQoSPQQueueLengthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQListNumber"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQQueueLengthType")) if mibBuilder.loadTexts: h3cIfQoSPQQueueLengthEntry.setStatus('current') h3cIfQoSPQQueueLengthType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1, 1), PriorityQueue()) if mibBuilder.loadTexts: h3cIfQoSPQQueueLengthType.setStatus('current') h3cIfQoSPQQueueLengthValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSPQQueueLengthValue.setStatus('current') h3cIfQoSPQClassRuleTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3), ) if mibBuilder.loadTexts: h3cIfQoSPQClassRuleTable.setStatus('current') h3cIfQoSPQClassRuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQListNumber"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQClassRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQClassRuleValue")) if mibBuilder.loadTexts: h3cIfQoSPQClassRuleEntry.setStatus('current') h3cIfQoSPQClassRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("interface", 1), ("ipv4acl", 2), ("ipv6acl", 3), ("fragments", 4), ("greater-than", 5), ("less-than", 6), ("tcp", 7), ("udp", 8), ("ipall", 9), ("mpls", 10)))) if mibBuilder.loadTexts: h3cIfQoSPQClassRuleType.setStatus('current') h3cIfQoSPQClassRuleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 2), Integer32()) if mibBuilder.loadTexts: h3cIfQoSPQClassRuleValue.setStatus('current') h3cIfQoSPQClassRuleQueueType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 3), PriorityQueue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPQClassRuleQueueType.setStatus('current') h3cIfQoSPQClassRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPQClassRowStatus.setStatus('current') h3cIfQoSPQApplyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4), ) if mibBuilder.loadTexts: h3cIfQoSPQApplyTable.setStatus('current') h3cIfQoSPQApplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSPQApplyEntry.setStatus('current') h3cIfQoSPQApplyListNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPQApplyListNumber.setStatus('current') h3cIfQoSPQApplyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPQApplyRowStatus.setStatus('current') h3cIfQoSPQRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2)) h3cIfQoSPQRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1), ) if mibBuilder.loadTexts: h3cIfQoSPQRunInfoTable.setStatus('current') h3cIfQoSPQRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQType")) if mibBuilder.loadTexts: h3cIfQoSPQRunInfoEntry.setStatus('current') h3cIfQoSPQType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 1), PriorityQueue()) if mibBuilder.loadTexts: h3cIfQoSPQType.setStatus('current') h3cIfQoSPQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSPQSize.setStatus('current') h3cIfQoSPQLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSPQLength.setStatus('current') h3cIfQoSPQDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSPQDiscardPackets.setStatus('current') h3cIfQoSCQObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3)) h3cIfQoSCQConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1)) h3cIfQoSCQDefaultTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSCQDefaultTable.setStatus('current') h3cIfQoSCQDefaultEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQListNumber")) if mibBuilder.loadTexts: h3cIfQoSCQDefaultEntry.setStatus('current') h3cIfQoSCQListNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: h3cIfQoSCQListNumber.setStatus('current') h3cIfQoSCQDefaultQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSCQDefaultQueueID.setStatus('current') h3cIfQoSCQQueueLengthTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2), ) if mibBuilder.loadTexts: h3cIfQoSCQQueueLengthTable.setStatus('current') h3cIfQoSCQQueueLengthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQListNumber"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQQueueID")) if mibBuilder.loadTexts: h3cIfQoSCQQueueLengthEntry.setStatus('current') h3cIfQoSCQQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: h3cIfQoSCQQueueID.setStatus('current') h3cIfQoSCQQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024)).clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSCQQueueLength.setStatus('current') h3cIfQoSCQQueueServing = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 3), Integer32().clone(1500)).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSCQQueueServing.setStatus('current') h3cIfQoSCQClassRuleTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3), ) if mibBuilder.loadTexts: h3cIfQoSCQClassRuleTable.setStatus('current') h3cIfQoSCQClassRuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQListNumber"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQClassRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQClassRuleValue")) if mibBuilder.loadTexts: h3cIfQoSCQClassRuleEntry.setStatus('current') h3cIfQoSCQClassRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("interface", 1), ("ipv4acl", 2), ("ipv6acl", 3), ("fragments", 4), ("greater-than", 5), ("less-than", 6), ("tcp", 7), ("udp", 8), ("ipall", 9), ("mpls", 10)))) if mibBuilder.loadTexts: h3cIfQoSCQClassRuleType.setStatus('current') h3cIfQoSCQClassRuleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 2), Integer32()) if mibBuilder.loadTexts: h3cIfQoSCQClassRuleValue.setStatus('current') h3cIfQoSCQClassRuleQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSCQClassRuleQueueID.setStatus('current') h3cIfQoSCQClassRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSCQClassRowStatus.setStatus('current') h3cIfQoSCQApplyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4), ) if mibBuilder.loadTexts: h3cIfQoSCQApplyTable.setStatus('current') h3cIfQoSCQApplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSCQApplyEntry.setStatus('current') h3cIfQoSCQApplyListNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSCQApplyListNumber.setStatus('current') h3cIfQoSCQApplyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSCQApplyRowStatus.setStatus('current') h3cIfQoSCQRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2)) h3cIfQoSCQRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1), ) if mibBuilder.loadTexts: h3cIfQoSCQRunInfoTable.setStatus('current') h3cIfQoSCQRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQQueueID")) if mibBuilder.loadTexts: h3cIfQoSCQRunInfoEntry.setStatus('current') h3cIfQoSCQRunInfoSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSCQRunInfoSize.setStatus('current') h3cIfQoSCQRunInfoLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSCQRunInfoLength.setStatus('current') h3cIfQoSCQRunInfoDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSCQRunInfoDiscardPackets.setStatus('current') h3cIfQoSWFQObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4)) h3cIfQoSWFQConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1)) h3cIfQoSWFQTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSWFQTable.setStatus('current') h3cIfQoSWFQEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSWFQEntry.setStatus('current') h3cIfQoSWFQQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024)).clone(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWFQQueueLength.setStatus('current') h3cIfQoSWFQQueueNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("size16", 1), ("size32", 2), ("size64", 3), ("size128", 4), ("size256", 5), ("size512", 6), ("size1024", 7), ("size2048", 8), ("size4096", 9))).clone(5)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWFQQueueNumber.setStatus('current') h3cIfQoSWFQRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWFQRowStatus.setStatus('current') h3cIfQoSWFQType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ip-precedence", 1), ("dscp", 2))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWFQType.setStatus('current') h3cIfQoSWFQRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2)) h3cIfQoSWFQRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1), ) if mibBuilder.loadTexts: h3cIfQoSWFQRunInfoTable.setStatus('current') h3cIfQoSWFQRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSWFQRunInfoEntry.setStatus('current') h3cIfQoSWFQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWFQSize.setStatus('current') h3cIfQoSWFQLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWFQLength.setStatus('current') h3cIfQoSWFQDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWFQDiscardPackets.setStatus('current') h3cIfQoSWFQHashedActiveQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWFQHashedActiveQueues.setStatus('current') h3cIfQoSWFQHashedMaxActiveQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWFQHashedMaxActiveQueues.setStatus('current') h3fIfQosWFQhashedTotalQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3fIfQosWFQhashedTotalQueues.setStatus('current') h3cIfQoSBandwidthGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5)) h3cIfQoSBandwidthTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1), ) if mibBuilder.loadTexts: h3cIfQoSBandwidthTable.setStatus('current') h3cIfQoSBandwidthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSBandwidthEntry.setStatus('current') h3cIfQoSMaxBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 1), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSMaxBandwidth.setStatus('current') h3cIfQoSReservedBandwidthPct = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)).clone(75)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSReservedBandwidthPct.setStatus('current') h3cIfQoSBandwidthRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSBandwidthRowStatus.setStatus('current') h3cIfQoSQmtokenGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6)) h3cIfQoSQmtokenTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1), ) if mibBuilder.loadTexts: h3cIfQoSQmtokenTable.setStatus('current') h3cIfQoSQmtokenEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSQmtokenEntry.setStatus('current') h3cIfQoSQmtokenNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSQmtokenNumber.setStatus('current') h3cIfQoSQmtokenRosStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSQmtokenRosStatus.setStatus('current') h3cIfQoSRTPQObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7)) h3cIfQoSRTPQConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1)) h3cIfQoSRTPQConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSRTPQConfigTable.setStatus('current') h3cIfQoSRTPQConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSRTPQConfigEntry.setStatus('current') h3cIfQoSRTPQStartPort = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2000, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSRTPQStartPort.setStatus('current') h3cIfQoSRTPQEndPort = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2000, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSRTPQEndPort.setStatus('current') h3cIfQoSRTPQReservedBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 3), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSRTPQReservedBandwidth.setStatus('current') h3cIfQoSRTPQCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 4), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSRTPQCbs.setStatus('current') h3cIfQoSRTPQRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSRTPQRowStatus.setStatus('current') h3cIfQoSRTPQRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2)) h3cIfQoSRTPQRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1), ) if mibBuilder.loadTexts: h3cIfQoSRTPQRunInfoTable.setStatus('current') h3cIfQoSRTPQRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSRTPQRunInfoEntry.setStatus('current') h3cIfQoSRTPQPacketNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSRTPQPacketNumber.setStatus('current') h3cIfQoSRTPQPacketSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSRTPQPacketSize.setStatus('current') h3cIfQoSRTPQOutputPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSRTPQOutputPackets.setStatus('current') h3cIfQoSRTPQDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSRTPQDiscardPackets.setStatus('current') h3cIfQoSCarListObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8)) h3cIfQoCarListGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1)) h3cIfQoSCarlTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSCarlTable.setStatus('current') h3cIfQoSCarlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCarlListNum")) if mibBuilder.loadTexts: h3cIfQoSCarlEntry.setStatus('current') h3cIfQoSCarlListNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: h3cIfQoSCarlListNum.setStatus('current') h3cIfQoSCarlParaType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("macAddress", 1), ("precMask", 2), ("dscpMask", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSCarlParaType.setStatus('current') h3cIfQoSCarlParaValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 3), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSCarlParaValue.setStatus('current') h3cIfQoSCarlRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSCarlRowStatus.setStatus('current') h3cIfQoSLineRateObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3)) h3cIfQoSLRConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1), ) if mibBuilder.loadTexts: h3cIfQoSLRConfigTable.setStatus('current') h3cIfQoSLRConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSLRDirection")) if mibBuilder.loadTexts: h3cIfQoSLRConfigEntry.setStatus('current') h3cIfQoSLRDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 1), Direction()) if mibBuilder.loadTexts: h3cIfQoSLRDirection.setStatus('current') h3cIfQoSLRCir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSLRCir.setStatus('current') h3cIfQoSLRCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 3), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSLRCbs.setStatus('current') h3cIfQoSLREbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 4), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSLREbs.setStatus('current') h3cIfQoSRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSRowStatus.setStatus('current') h3cIfQoSLRPir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 6), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSLRPir.setStatus('current') h3cIfQoSLRRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2), ) if mibBuilder.loadTexts: h3cIfQoSLRRunInfoTable.setStatus('current') h3cIfQoSLRRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSLRDirection")) if mibBuilder.loadTexts: h3cIfQoSLRRunInfoEntry.setStatus('current') h3cIfQoSLRRunInfoPassedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSLRRunInfoPassedPackets.setStatus('current') h3cIfQoSLRRunInfoPassedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSLRRunInfoPassedBytes.setStatus('current') h3cIfQoSLRRunInfoDelayedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSLRRunInfoDelayedPackets.setStatus('current') h3cIfQoSLRRunInfoDelayedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSLRRunInfoDelayedBytes.setStatus('current') h3cIfQoSLRRunInfoActiveShaping = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSLRRunInfoActiveShaping.setStatus('current') h3cIfQoSCARObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4)) h3cIfQoSAggregativeCarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1)) h3cIfQoSAggregativeCarNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarNextIndex.setStatus('current') h3cIfQoSAggregativeCarConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2), ) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarConfigTable.setStatus('current') h3cIfQoSAggregativeCarConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarIndex")) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarConfigEntry.setStatus('current') h3cIfQoSAggregativeCarIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65534))) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarIndex.setStatus('current') h3cIfQoSAggregativeCarName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarName.setStatus('current') h3cIfQoSAggregativeCarCir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarCir.setStatus('current') h3cIfQoSAggregativeCarCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 4), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarCbs.setStatus('current') h3cIfQoSAggregativeCarEbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 5), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarEbs.setStatus('current') h3cIfQoSAggregativeCarPir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 6), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarPir.setStatus('current') h3cIfQoSAggregativeCarGreenActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 7), CarAction().clone('pass')).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarGreenActionType.setStatus('current') h3cIfQoSAggregativeCarGreenActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarGreenActionValue.setStatus('current') h3cIfQoSAggregativeCarYellowActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 9), CarAction()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarYellowActionType.setStatus('current') h3cIfQoSAggregativeCarYellowActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarYellowActionValue.setStatus('current') h3cIfQoSAggregativeCarRedActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 11), CarAction()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRedActionType.setStatus('current') h3cIfQoSAggregativeCarRedActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 12), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRedActionValue.setStatus('current') h3cIfQoSAggregativeCarType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("aggregative", 1), ("notAggregative", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarType.setStatus('current') h3cIfQoSAggregativeCarRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 14), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRowStatus.setStatus('current') h3cIfQoSAggregativeCarApplyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3), ) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyTable.setStatus('current') h3cIfQoSAggregativeCarApplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarApplyDirection"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarApplyRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarApplyRuleValue")) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyEntry.setStatus('current') h3cIfQoSAggregativeCarApplyDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 1), Direction()) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyDirection.setStatus('current') h3cIfQoSAggregativeCarApplyRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ipv4acl", 1), ("ipv6acl", 2), ("carl", 3), ("any", 4)))) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyRuleType.setStatus('current') h3cIfQoSAggregativeCarApplyRuleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 3), Integer32()) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyRuleValue.setStatus('current') h3cIfQoSAggregativeCarApplyCarIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 4), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyCarIndex.setStatus('current') h3cIfQoSAggregativeCarApplyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyRowStatus.setStatus('current') h3cIfQoSAggregativeCarRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4), ) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRunInfoTable.setStatus('current') h3cIfQoSAggregativeCarRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarIndex")) if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRunInfoEntry.setStatus('current') h3cIfQoSAggregativeCarGreenPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarGreenPackets.setStatus('current') h3cIfQoSAggregativeCarGreenBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarGreenBytes.setStatus('current') h3cIfQoSAggregativeCarYellowPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarYellowPackets.setStatus('current') h3cIfQoSAggregativeCarYellowBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarYellowBytes.setStatus('current') h3cIfQoSAggregativeCarRedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRedPackets.setStatus('current') h3cIfQoSAggregativeCarRedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRedBytes.setStatus('current') h3cIfQoSTricolorCarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2)) h3cIfQoSTricolorCarConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1), ) if mibBuilder.loadTexts: h3cIfQoSTricolorCarConfigTable.setStatus('current') h3cIfQoSTricolorCarConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarDirection"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarValue")) if mibBuilder.loadTexts: h3cIfQoSTricolorCarConfigEntry.setStatus('current') h3cIfQoSTricolorCarDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 1), Direction()) if mibBuilder.loadTexts: h3cIfQoSTricolorCarDirection.setStatus('current') h3cIfQoSTricolorCarType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ipv4acl", 1), ("ipv6acl", 2), ("carl", 3), ("any", 4)))) if mibBuilder.loadTexts: h3cIfQoSTricolorCarType.setStatus('current') h3cIfQoSTricolorCarValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 3), Integer32()) if mibBuilder.loadTexts: h3cIfQoSTricolorCarValue.setStatus('current') h3cIfQoSTricolorCarCir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 4), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarCir.setStatus('current') h3cIfQoSTricolorCarCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 5), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarCbs.setStatus('current') h3cIfQoSTricolorCarEbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 6), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarEbs.setStatus('current') h3cIfQoSTricolorCarPir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 7), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarPir.setStatus('current') h3cIfQoSTricolorCarGreenActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 8), CarAction().clone('pass')).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarGreenActionType.setStatus('current') h3cIfQoSTricolorCarGreenActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarGreenActionValue.setStatus('current') h3cIfQoSTricolorCarYellowActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 10), CarAction().clone('pass')).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarYellowActionType.setStatus('current') h3cIfQoSTricolorCarYellowActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarYellowActionValue.setStatus('current') h3cIfQoSTricolorCarRedActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 12), CarAction().clone('discard')).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarRedActionType.setStatus('current') h3cIfQoSTricolorCarRedActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarRedActionValue.setStatus('current') h3cIfQoSTricolorCarRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 14), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSTricolorCarRowStatus.setStatus('current') h3cIfQoSTricolorCarRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2), ) if mibBuilder.loadTexts: h3cIfQoSTricolorCarRunInfoTable.setStatus('current') h3cIfQoSTricolorCarRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarDirection"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarValue")) if mibBuilder.loadTexts: h3cIfQoSTricolorCarRunInfoEntry.setStatus('current') h3cIfQoSTricolorCarGreenPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTricolorCarGreenPackets.setStatus('current') h3cIfQoSTricolorCarGreenBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTricolorCarGreenBytes.setStatus('current') h3cIfQoSTricolorCarYellowPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTricolorCarYellowPackets.setStatus('current') h3cIfQoSTricolorCarYellowBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTricolorCarYellowBytes.setStatus('current') h3cIfQoSTricolorCarRedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTricolorCarRedPackets.setStatus('current') h3cIfQoSTricolorCarRedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSTricolorCarRedBytes.setStatus('current') h3cIfQoSGTSObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5)) h3cIfQoSGTSConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1), ) if mibBuilder.loadTexts: h3cIfQoSGTSConfigTable.setStatus('current') h3cIfQoSGTSConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSGTSClassRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSGTSClassRuleValue")) if mibBuilder.loadTexts: h3cIfQoSGTSConfigEntry.setStatus('current') h3cIfQoSGTSClassRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("any", 1), ("ipv4acl", 2), ("ipv6acl", 3), ("queue", 4)))) if mibBuilder.loadTexts: h3cIfQoSGTSClassRuleType.setStatus('current') h3cIfQoSGTSClassRuleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 2), Integer32()) if mibBuilder.loadTexts: h3cIfQoSGTSClassRuleValue.setStatus('current') h3cIfQoSGTSCir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 3), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSGTSCir.setStatus('current') h3cIfQoSGTSCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 4), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSGTSCbs.setStatus('current') h3cIfQoSGTSEbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 5), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSGTSEbs.setStatus('current') h3cIfQoSGTSQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 6), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSGTSQueueLength.setStatus('current') h3cIfQoSGTSConfigRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSGTSConfigRowStatus.setStatus('current') h3cIfQoSGTSRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2), ) if mibBuilder.loadTexts: h3cIfQoSGTSRunInfoTable.setStatus('current') h3cIfQoSGTSRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSGTSClassRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSGTSClassRuleValue")) if mibBuilder.loadTexts: h3cIfQoSGTSRunInfoEntry.setStatus('current') h3cIfQoSGTSQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSGTSQueueSize.setStatus('current') h3cIfQoSGTSPassedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSGTSPassedPackets.setStatus('current') h3cIfQoSGTSPassedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSGTSPassedBytes.setStatus('current') h3cIfQoSGTSDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSGTSDiscardPackets.setStatus('current') h3cIfQoSGTSDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSGTSDiscardBytes.setStatus('current') h3cIfQoSGTSDelayedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSGTSDelayedPackets.setStatus('current') h3cIfQoSGTSDelayedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSGTSDelayedBytes.setStatus('current') h3cIfQoSWREDObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6)) h3cIfQoSWredGroupGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1)) h3cIfQoSWredGroupNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredGroupNextIndex.setStatus('current') h3cIfQoSWredGroupTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2), ) if mibBuilder.loadTexts: h3cIfQoSWredGroupTable.setStatus('current') h3cIfQoSWredGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupIndex")) if mibBuilder.loadTexts: h3cIfQoSWredGroupEntry.setStatus('current') h3cIfQoSWredGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: h3cIfQoSWredGroupIndex.setStatus('current') h3cIfQoSWredGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredGroupName.setStatus('current') h3cIfQoSWredGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("userdefined", 0), ("dot1p", 1), ("ippre", 2), ("dscp", 3), ("localpre", 4), ("atmclp", 5), ("frde", 6), ("exp", 7), ("queue", 8), ("dropLevel", 9)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredGroupType.setStatus('current') h3cIfQoSWredGroupWeightingConstant = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(9)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredGroupWeightingConstant.setStatus('current') h3cIfQoSWredGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredGroupRowStatus.setStatus('current') h3cIfQoSWredGroupContentTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3), ) if mibBuilder.loadTexts: h3cIfQoSWredGroupContentTable.setStatus('current') h3cIfQoSWredGroupContentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupContentIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupContentSubIndex")) if mibBuilder.loadTexts: h3cIfQoSWredGroupContentEntry.setStatus('current') h3cIfQoSWredGroupContentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))) if mibBuilder.loadTexts: h3cIfQoSWredGroupContentIndex.setStatus('current') h3cIfQoSWredGroupContentSubIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))) if mibBuilder.loadTexts: h3cIfQoSWredGroupContentSubIndex.setStatus('current') h3cIfQoSWredLowLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 3), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredLowLimit.setStatus('current') h3cIfQoSWredHighLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 4), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredHighLimit.setStatus('current') h3cIfQoSWredDiscardProb = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 5), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredDiscardProb.setStatus('current') h3cIfQoSWredGroupExponent = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(9)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredGroupExponent.setStatus('current') h3cIfQoSWredRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredRowStatus.setStatus('current') h3cIfQoSWredGroupApplyIfTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4), ) if mibBuilder.loadTexts: h3cIfQoSWredGroupApplyIfTable.setStatus('current') h3cIfQoSWredGroupApplyIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSWredGroupApplyIfEntry.setStatus('current') h3cIfQoSWredGroupApplyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredGroupApplyIndex.setStatus('current') h3cIfQoSWredGroupApplyName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredGroupApplyName.setStatus('current') h3cIfQoSWredGroupIfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSWredGroupIfRowStatus.setStatus('current') h3cIfQoSWredApplyIfRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5), ) if mibBuilder.loadTexts: h3cIfQoSWredApplyIfRunInfoTable.setStatus('current') h3cIfQoSWredApplyIfRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupContentIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupContentSubIndex")) if mibBuilder.loadTexts: h3cIfQoSWredApplyIfRunInfoEntry.setStatus('current') h3cIfQoSWredPreRandomDropNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredPreRandomDropNum.setStatus('current') h3cIfQoSWredPreTailDropNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWredPreTailDropNum.setStatus('current') h3cIfQoSPortWredGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2)) h3cIfQoSPortWredWeightConstantTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1), ) if mibBuilder.loadTexts: h3cIfQoSPortWredWeightConstantTable.setStatus('current') h3cIfQoSPortWredWeightConstantEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSPortWredWeightConstantEntry.setStatus('current') h3cIfQoSPortWredEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 1), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPortWredEnable.setStatus('current') h3cIfQoSPortWredWeightConstant = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPortWredWeightConstant.setStatus('current') h3cIfQoSPortWredWeightConstantRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPortWredWeightConstantRowStatus.setStatus('current') h3cIfQoSPortWredPreConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2), ) if mibBuilder.loadTexts: h3cIfQoSPortWredPreConfigTable.setStatus('current') h3cIfQoSPortWredPreConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPortWredPreID")) if mibBuilder.loadTexts: h3cIfQoSPortWredPreConfigEntry.setStatus('current') h3cIfQoSPortWredPreID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: h3cIfQoSPortWredPreID.setStatus('current') h3cIfQoSPortWredPreLowLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPortWredPreLowLimit.setStatus('current') h3cIfQoSPortWredPreHighLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 3), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPortWredPreHighLimit.setStatus('current') h3cIfQoSPortWredPreDiscardProbability = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 4), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPortWredPreDiscardProbability.setStatus('current') h3cIfQoSPortWredPreRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPortWredPreRowStatus.setStatus('current') h3cIfQoSPortWredRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3), ) if mibBuilder.loadTexts: h3cIfQoSPortWredRunInfoTable.setStatus('current') h3cIfQoSPortWredRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPortWredPreID")) if mibBuilder.loadTexts: h3cIfQoSPortWredRunInfoEntry.setStatus('current') h3cIfQoSWREDTailDropNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWREDTailDropNum.setStatus('current') h3cIfQoSWREDRandomDropNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSWREDRandomDropNum.setStatus('current') h3cIfQoSPortPriorityObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7)) h3cIfQoSPortPriorityConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1)) h3cIfQoSPortPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSPortPriorityTable.setStatus('current') h3cIfQoSPortPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSPortPriorityEntry.setStatus('current') h3cIfQoSPortPriorityValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSPortPriorityValue.setStatus('current') h3cIfQoSPortPirorityTrustTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2), ) if mibBuilder.loadTexts: h3cIfQoSPortPirorityTrustTable.setStatus('current') h3cIfQoSPortPirorityTrustEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSPortPirorityTrustEntry.setStatus('current') h3cIfQoSPortPriorityTrustTrustType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("untrust", 1), ("dot1p", 2), ("dscp", 3), ("exp", 4))).clone('untrust')).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSPortPriorityTrustTrustType.setStatus('current') h3cIfQoSPortPriorityTrustOvercastType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOvercast", 1), ("overcastDSCP", 2), ("overcastCOS", 3))).clone('noOvercast')).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIfQoSPortPriorityTrustOvercastType.setStatus('current') h3cIfQoSMapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9)) h3cIfQoSPriMapConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1)) h3cIfQoSPriMapGroupNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIfQoSPriMapGroupNextIndex.setStatus('current') h3cIfQoSPriMapGroupTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2), ) if mibBuilder.loadTexts: h3cIfQoSPriMapGroupTable.setStatus('current') h3cIfQoSPriMapGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPriMapGroupIndex")) if mibBuilder.loadTexts: h3cIfQoSPriMapGroupEntry.setStatus('current') h3cIfQoSPriMapGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: h3cIfQoSPriMapGroupIndex.setStatus('current') h3cIfQoSPriMapGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("userdefined", 1), ("dot1p-dp", 2), ("dot1p-dscp", 3), ("dot1p-lp", 4), ("dscp-dot1p", 5), ("dscp-dp", 6), ("dscp-dscp", 7), ("dscp-lp", 8), ("exp-dp", 9), ("exp-lp", 10)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPriMapGroupType.setStatus('current') h3cIfQoSPriMapGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPriMapGroupName.setStatus('current') h3cIfQoSPriMapGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPriMapGroupRowStatus.setStatus('current') h3cIfQoSPriMapContentTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3), ) if mibBuilder.loadTexts: h3cIfQoSPriMapContentTable.setStatus('current') h3cIfQoSPriMapContentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPriMapGroupIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPriMapGroupImportValue")) if mibBuilder.loadTexts: h3cIfQoSPriMapContentEntry.setStatus('current') h3cIfQoSPriMapGroupImportValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))) if mibBuilder.loadTexts: h3cIfQoSPriMapGroupImportValue.setStatus('current') h3cIfQoSPriMapGroupExportValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPriMapGroupExportValue.setStatus('current') h3cIfQoSPriMapContentRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSPriMapContentRowStatus.setStatus('current') h3cIfQoSL3PlusObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10)) h3cIfQoSPortBindingGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1)) h3cIfQoSPortBindingTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1), ) if mibBuilder.loadTexts: h3cIfQoSPortBindingTable.setStatus('current') h3cIfQoSPortBindingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cIfQoSPortBindingEntry.setStatus('current') h3cIfQoSBindingIf = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1, 1), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSBindingIf.setStatus('current') h3cIfQoSBindingRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cIfQoSBindingRowStatus.setStatus('current') h3cQoSTraStaObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11)) h3cQoSTraStaConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1)) h3cQoSIfTraStaConfigInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1), ) if mibBuilder.loadTexts: h3cQoSIfTraStaConfigInfoTable.setStatus('current') h3cQoSIfTraStaConfigInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cQoSIfTraStaConfigDirection")) if mibBuilder.loadTexts: h3cQoSIfTraStaConfigInfoEntry.setStatus('current') h3cQoSIfTraStaConfigDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 1), Direction()) if mibBuilder.loadTexts: h3cQoSIfTraStaConfigDirection.setStatus('current') h3cQoSIfTraStaConfigQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQoSIfTraStaConfigQueue.setStatus('current') h3cQoSIfTraStaConfigDot1p = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQoSIfTraStaConfigDot1p.setStatus('current') h3cQoSIfTraStaConfigDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQoSIfTraStaConfigDscp.setStatus('current') h3cQoSIfTraStaConfigVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(512, 512)).setFixedLength(512)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQoSIfTraStaConfigVlan.setStatus('current') h3cQoSIfTraStaConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQoSIfTraStaConfigStatus.setStatus('current') h3cQoSTraStaRunGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2)) h3cQoSIfTraStaRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1), ) if mibBuilder.loadTexts: h3cQoSIfTraStaRunInfoTable.setStatus('current') h3cQoSIfTraStaRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cQoSIfTraStaRunObjectType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cQoSIfTraStaRunObjectValue"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cQoSIfTraStaRunDirection")) if mibBuilder.loadTexts: h3cQoSIfTraStaRunInfoEntry.setStatus('current') h3cQoSIfTraStaRunObjectType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("queue", 1), ("dot1p", 2), ("dscp", 3), ("vlanID", 4)))) if mibBuilder.loadTexts: h3cQoSIfTraStaRunObjectType.setStatus('current') h3cQoSIfTraStaRunObjectValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 2), Integer32()) if mibBuilder.loadTexts: h3cQoSIfTraStaRunObjectValue.setStatus('current') h3cQoSIfTraStaRunDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 3), Direction()) if mibBuilder.loadTexts: h3cQoSIfTraStaRunDirection.setStatus('current') h3cQoSIfTraStaRunPassPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cQoSIfTraStaRunPassPackets.setStatus('current') h3cQoSIfTraStaRunDropPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cQoSIfTraStaRunDropPackets.setStatus('current') h3cQoSIfTraStaRunPassBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cQoSIfTraStaRunPassBytes.setStatus('current') h3cQoSIfTraStaRunDropBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cQoSIfTraStaRunDropBytes.setStatus('current') h3cQoSIfTraStaRunPassPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cQoSIfTraStaRunPassPPS.setStatus('current') h3cQoSIfTraStaRunPassBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cQoSIfTraStaRunPassBPS.setStatus('current') mibBuilder.exportSymbols("A3COM-HUAWEI-IFQOS2-MIB", h3cIfQoSCarlParaType=h3cIfQoSCarlParaType, h3cIfQoSTailDropBytes=h3cIfQoSTailDropBytes, h3cIfQoSGTSDiscardPackets=h3cIfQoSGTSDiscardPackets, h3cIfQoSAggregativeCarRunInfoTable=h3cIfQoSAggregativeCarRunInfoTable, h3cIfQoSGTSClassRuleValue=h3cIfQoSGTSClassRuleValue, h3cIfQoSCQClassRuleEntry=h3cIfQoSCQClassRuleEntry, h3cIfQoSAggregativeCarName=h3cIfQoSAggregativeCarName, h3cIfQoSPortWredPreID=h3cIfQoSPortWredPreID, h3cIfQoSWredGroupExponent=h3cIfQoSWredGroupExponent, h3cIfQoSRTPQRunInfoGroup=h3cIfQoSRTPQRunInfoGroup, h3cIfQoSPriMapGroupRowStatus=h3cIfQoSPriMapGroupRowStatus, h3cIfQoSPQApplyListNumber=h3cIfQoSPQApplyListNumber, h3cIfQoSTricolorCarCir=h3cIfQoSTricolorCarCir, h3cIfQoSPQRunInfoTable=h3cIfQoSPQRunInfoTable, h3cIfQoSPriMapGroupTable=h3cIfQoSPriMapGroupTable, h3cIfQoSQSMaxDelay=h3cIfQoSQSMaxDelay, h3cIfQoSAggregativeCarGreenBytes=h3cIfQoSAggregativeCarGreenBytes, h3cIfQoSPortPriorityValue=h3cIfQoSPortPriorityValue, h3cIfQoSRTPQEndPort=h3cIfQoSRTPQEndPort, h3cQoSTraStaRunGroup=h3cQoSTraStaRunGroup, h3cIfQoSPriMapContentTable=h3cIfQoSPriMapContentTable, h3cIfQoSPQClassRuleQueueType=h3cIfQoSPQClassRuleQueueType, h3cIfQoSWredGroupIndex=h3cIfQoSWredGroupIndex, h3cIfQoSPQQueueLengthType=h3cIfQoSPQQueueLengthType, h3cIfQoSQueueLengthInBytes=h3cIfQoSQueueLengthInBytes, h3cIfQoSCQClassRowStatus=h3cIfQoSCQClassRowStatus, h3cIfQoSAggregativeCarApplyDirection=h3cIfQoSAggregativeCarApplyDirection, h3cIfQoSPQClassRuleType=h3cIfQoSPQClassRuleType, h3cIfQoSPriMapGroupExportValue=h3cIfQoSPriMapGroupExportValue, h3cIfQoSWredDropHPreNTcpBPS=h3cIfQoSWredDropHPreNTcpBPS, h3cIfQoSAggregativeCarYellowPackets=h3cIfQoSAggregativeCarYellowPackets, h3cIfQoSWredDiscardProb=h3cIfQoSWredDiscardProb, h3cIfQoSCQApplyRowStatus=h3cIfQoSCQApplyRowStatus, h3cIfQoSWredGroupApplyIfEntry=h3cIfQoSWredGroupApplyIfEntry, h3cIfQoSLREbs=h3cIfQoSLREbs, h3cIfQoSPQDefaultQueueType=h3cIfQoSPQDefaultQueueType, h3cIfQoSPortPriorityEntry=h3cIfQoSPortPriorityEntry, h3cIfQoSQSModeTable=h3cIfQoSQSModeTable, h3cIfQoSLRRunInfoTable=h3cIfQoSLRRunInfoTable, h3cIfQoSReservedBandwidthPct=h3cIfQoSReservedBandwidthPct, h3cIfQoSWredGroupTable=h3cIfQoSWredGroupTable, h3cIfQoSLRRunInfoDelayedPackets=h3cIfQoSLRRunInfoDelayedPackets, h3cIfQoSAggregativeCarConfigTable=h3cIfQoSAggregativeCarConfigTable, h3cIfQoSCurQueueBytes=h3cIfQoSCurQueueBytes, h3cIfQoSCQQueueLengthTable=h3cIfQoSCQQueueLengthTable, h3cIfQoSWredGroupRowStatus=h3cIfQoSWredGroupRowStatus, h3cIfQoSPQRunInfoGroup=h3cIfQoSPQRunInfoGroup, h3cIfQoSRTPQOutputPackets=h3cIfQoSRTPQOutputPackets, h3cIfQoSFIFOConfigEntry=h3cIfQoSFIFOConfigEntry, h3cQoSIfTraStaRunObjectType=h3cQoSIfTraStaRunObjectType, h3cIfQoSWredGroupApplyName=h3cIfQoSWredGroupApplyName, h3cIfQoSQSMinBandwidth=h3cIfQoSQSMinBandwidth, h3cIfQoSPortPriorityTrustTrustType=h3cIfQoSPortPriorityTrustTrustType, h3cIfQoSPQConfigGroup=h3cIfQoSPQConfigGroup, h3cIfQoSPortPriorityTrustOvercastType=h3cIfQoSPortPriorityTrustOvercastType, h3cIfQoSTricolorCarRowStatus=h3cIfQoSTricolorCarRowStatus, h3cIfQoSWFQRunInfoTable=h3cIfQoSWFQRunInfoTable, h3cIfQoSLRPir=h3cIfQoSLRPir, h3cIfQoSWredPreTailDropNum=h3cIfQoSWredPreTailDropNum, h3cIfQoSPortWredEnable=h3cIfQoSPortWredEnable, h3cIfQoSBindingIf=h3cIfQoSBindingIf, h3cIfQoSWredDropLPreTcpBytes=h3cIfQoSWredDropLPreTcpBytes, h3cIfQoSAggregativeCarIndex=h3cIfQoSAggregativeCarIndex, h3cQoSIfTraStaRunDropPackets=h3cQoSIfTraStaRunDropPackets, h3cIfQoSCQObject=h3cIfQoSCQObject, h3cIfQoSAggregativeCarRedBytes=h3cIfQoSAggregativeCarRedBytes, h3cIfQoSAggregativeCarNextIndex=h3cIfQoSAggregativeCarNextIndex, h3cIfQoSWredGroupContentIndex=h3cIfQoSWredGroupContentIndex, h3cIfQoSPQRunInfoEntry=h3cIfQoSPQRunInfoEntry, h3cIfQoSPQDefaultTable=h3cIfQoSPQDefaultTable, h3cIfQoSPortWredWeightConstantRowStatus=h3cIfQoSPortWredWeightConstantRowStatus, h3cQoSIfTraStaRunPassBPS=h3cQoSIfTraStaRunPassBPS, h3cIfQoSFIFOObject=h3cIfQoSFIFOObject, h3cIfQoSWredApplyIfRunInfoTable=h3cIfQoSWredApplyIfRunInfoTable, h3cIfQoSCQRunInfoEntry=h3cIfQoSCQRunInfoEntry, h3cIfQoSAggregativeCarRedPackets=h3cIfQoSAggregativeCarRedPackets, h3cIfQoSWredDropHPreNTcpBytes=h3cIfQoSWredDropHPreNTcpBytes, h3cIfQoSGTSRunInfoEntry=h3cIfQoSGTSRunInfoEntry, h3cIfQoSWFQType=h3cIfQoSWFQType, h3cIfQoSTricolorCarGreenActionType=h3cIfQoSTricolorCarGreenActionType, h3cIfQoSWredGroupContentTable=h3cIfQoSWredGroupContentTable, h3cIfQoSBindingRowStatus=h3cIfQoSBindingRowStatus, h3cIfQoSTricolorCarConfigEntry=h3cIfQoSTricolorCarConfigEntry, h3cIfQoSFIFOMaxQueueLen=h3cIfQoSFIFOMaxQueueLen, h3cIfQoSHQueueTcpRunInfoEntry=h3cIfQoSHQueueTcpRunInfoEntry, h3cIfQoSAggregativeCarRunInfoEntry=h3cIfQoSAggregativeCarRunInfoEntry, h3cIfQoSPQApplyRowStatus=h3cIfQoSPQApplyRowStatus, h3cIfQoSRTPQRowStatus=h3cIfQoSRTPQRowStatus, h3cIfQoSAggregativeCarYellowActionType=h3cIfQoSAggregativeCarYellowActionType, h3cIfQoSCQDefaultQueueID=h3cIfQoSCQDefaultQueueID, h3cIfQoSRTPQPacketSize=h3cIfQoSRTPQPacketSize, h3cIfQoSWredGroupContentEntry=h3cIfQoSWredGroupContentEntry, h3cIfQoSPQClassRuleValue=h3cIfQoSPQClassRuleValue, h3cIfQoSPQDefaultEntry=h3cIfQoSPQDefaultEntry, h3cIfQoSWFQObject=h3cIfQoSWFQObject, h3cIfQoSPortWredRunInfoTable=h3cIfQoSPortWredRunInfoTable, h3cIfQoSMapObjects=h3cIfQoSMapObjects, h3cIfQoSQmtokenGroup=h3cIfQoSQmtokenGroup, h3cIfQoSAggregativeCarGreenPackets=h3cIfQoSAggregativeCarGreenPackets, h3cIfQoSCQDefaultTable=h3cIfQoSCQDefaultTable, h3cIfQoSGTSDelayedBytes=h3cIfQoSGTSDelayedBytes, h3cIfQoSPriMapGroupEntry=h3cIfQoSPriMapGroupEntry, h3cIfQoSCQDefaultEntry=h3cIfQoSCQDefaultEntry, h3cIfQoSTricolorCarEbs=h3cIfQoSTricolorCarEbs, h3cIfQoSQSType=h3cIfQoSQSType, h3cIfQoSCurQueueBPS=h3cIfQoSCurQueueBPS, h3cIfQoSPQClassRuleTable=h3cIfQoSPQClassRuleTable, h3cIfQoSLRCbs=h3cIfQoSLRCbs, h3cIfQoSQueueLengthInPkts=h3cIfQoSQueueLengthInPkts, h3cIfQoSQueueGroupType=h3cIfQoSQueueGroupType, h3cIfQoSLRRunInfoDelayedBytes=h3cIfQoSLRRunInfoDelayedBytes, h3cIfQoSWredDropBytes=h3cIfQoSWredDropBytes, h3cIfQoSRTPQRunInfoTable=h3cIfQoSRTPQRunInfoTable, h3cIfQoSWredGroupApplyIndex=h3cIfQoSWredGroupApplyIndex, h3cIfQoSCarlParaValue=h3cIfQoSCarlParaValue, h3cIfQoSAggregativeCarRedActionValue=h3cIfQoSAggregativeCarRedActionValue, h3cIfQoSPortWredGroup=h3cIfQoSPortWredGroup, h3cIfQoSPortWredWeightConstantEntry=h3cIfQoSPortWredWeightConstantEntry, h3cIfQoSWredGroupWeightingConstant=h3cIfQoSWredGroupWeightingConstant, h3cIfQoSPQType=h3cIfQoSPQType, h3cIfQoSDropBytes=h3cIfQoSDropBytes, h3cIfQoSBandwidthTable=h3cIfQoSBandwidthTable, h3cIfQoSWredDropPPS=h3cIfQoSWredDropPPS, h3cIfQoSRTPQConfigTable=h3cIfQoSRTPQConfigTable, h3cIfQoSAggregativeCarApplyRowStatus=h3cIfQoSAggregativeCarApplyRowStatus, h3cIfQoSWredDropLPreNTcpPkts=h3cIfQoSWredDropLPreNTcpPkts, h3cIfQoSHardwareQueueObjects=h3cIfQoSHardwareQueueObjects, h3cIfQoSWFQLength=h3cIfQoSWFQLength, h3cQoSIfTraStaRunObjectValue=h3cQoSIfTraStaRunObjectValue, h3cQoSTraStaObjects=h3cQoSTraStaObjects, h3cIfQoSWredGroupApplyIfTable=h3cIfQoSWredGroupApplyIfTable, h3cIfQoSWREDTailDropNum=h3cIfQoSWREDTailDropNum, h3cIfQoSLRConfigEntry=h3cIfQoSLRConfigEntry, h3cIfQoSQSModeEntry=h3cIfQoSQSModeEntry, h3cIfQoSAggregativeCarGroup=h3cIfQoSAggregativeCarGroup, h3cIfQoSQSWeightTable=h3cIfQoSQSWeightTable, h3cIfQoSCQClassRuleValue=h3cIfQoSCQClassRuleValue, h3cIfQoSCQQueueLength=h3cIfQoSCQQueueLength, h3cIfQoSFIFODiscardPackets=h3cIfQoSFIFODiscardPackets, h3cIfQoSTricolorCarPir=h3cIfQoSTricolorCarPir, h3cIfQoSTricolorCarGroup=h3cIfQoSTricolorCarGroup, h3cIfQoSWredGroupIfRowStatus=h3cIfQoSWredGroupIfRowStatus, h3cIfQoSAggregativeCarRedActionType=h3cIfQoSAggregativeCarRedActionType, h3cIfQoCarListGroup=h3cIfQoCarListGroup, h3cIfQoSBandwidthEntry=h3cIfQoSBandwidthEntry, h3cIfQoSLRConfigTable=h3cIfQoSLRConfigTable, h3cIfQoSPortBindingGroup=h3cIfQoSPortBindingGroup, h3cIfQoSTricolorCarConfigTable=h3cIfQoSTricolorCarConfigTable, h3cIfQoSWredDropHPreNTcpPPS=h3cIfQoSWredDropHPreNTcpPPS, h3cIfQoSPriMapContentEntry=h3cIfQoSPriMapContentEntry, h3cIfQoSLRRunInfoActiveShaping=h3cIfQoSLRRunInfoActiveShaping, h3cIfQoSCQClassRuleType=h3cIfQoSCQClassRuleType, h3cIfQoSRTPQStartPort=h3cIfQoSRTPQStartPort, h3cIfQoSQSMode=h3cIfQoSQSMode, h3cIfQoSPQQueueLengthValue=h3cIfQoSPQQueueLengthValue, h3cIfQoSPQClassRowStatus=h3cIfQoSPQClassRowStatus, h3cIfQoSGTSQueueLength=h3cIfQoSGTSQueueLength, h3cQos2=h3cQos2, h3cIfQoSWredDropBPS=h3cIfQoSWredDropBPS, h3cIfQoSCQClassRuleTable=h3cIfQoSCQClassRuleTable, h3cIfQoSQmtokenTable=h3cIfQoSQmtokenTable, h3cIfQoSWredHighLimit=h3cIfQoSWredHighLimit, h3cIfQoSHardwareQueueRunInfoTable=h3cIfQoSHardwareQueueRunInfoTable, h3cIfQoSAggregativeCarPir=h3cIfQoSAggregativeCarPir, h3cIfQoSPQQueueLengthEntry=h3cIfQoSPQQueueLengthEntry, h3cIfQoSAggregativeCarCir=h3cIfQoSAggregativeCarCir, h3cIfQoSBandwidthRowStatus=h3cIfQoSBandwidthRowStatus, h3cIfQoSPortWredPreLowLimit=h3cIfQoSPortWredPreLowLimit, h3cIfQoSPortWredPreRowStatus=h3cIfQoSPortWredPreRowStatus, h3cIfQoSCarlRowStatus=h3cIfQoSCarlRowStatus, h3cIfQoSCQRunInfoDiscardPackets=h3cIfQoSCQRunInfoDiscardPackets, h3cIfQoSLRRunInfoPassedPackets=h3cIfQoSLRRunInfoPassedPackets, h3cIfQoSTailDropPPS=h3cIfQoSTailDropPPS, h3cIfQoSWredDropHPreTcpPPS=h3cIfQoSWredDropHPreTcpPPS, h3cIfQoSCQConfigGroup=h3cIfQoSCQConfigGroup, h3cIfQoSRTPQCbs=h3cIfQoSRTPQCbs, h3cIfQoSHQueueTcpRunInfoTable=h3cIfQoSHQueueTcpRunInfoTable, h3cIfQoSWFQHashedActiveQueues=h3cIfQoSWFQHashedActiveQueues, h3cIfQoSWFQDiscardPackets=h3cIfQoSWFQDiscardPackets, h3cIfQoSAggregativeCarApplyEntry=h3cIfQoSAggregativeCarApplyEntry, h3cIfQoSLRCir=h3cIfQoSLRCir, h3cIfQoSPortPriorityObjects=h3cIfQoSPortPriorityObjects, h3cIfQoSWredDropLPreTcpPkts=h3cIfQoSWredDropLPreTcpPkts, h3cIfQoSPortPirorityTrustEntry=h3cIfQoSPortPirorityTrustEntry, h3cQoSIfTraStaRunPassPackets=h3cQoSIfTraStaRunPassPackets, h3cQoSIfTraStaConfigDirection=h3cQoSIfTraStaConfigDirection, h3cIfQoSWFQRunInfoGroup=h3cIfQoSWFQRunInfoGroup, h3cQoSIfTraStaConfigVlan=h3cQoSIfTraStaConfigVlan, h3cIfQoSWredGroupNextIndex=h3cIfQoSWredGroupNextIndex, h3cIfQoSGTSPassedBytes=h3cIfQoSGTSPassedBytes, h3cIfQoSWFQRunInfoEntry=h3cIfQoSWFQRunInfoEntry, h3cIfQoSAggregativeCarYellowBytes=h3cIfQoSAggregativeCarYellowBytes, h3cIfQoSCQListNumber=h3cIfQoSCQListNumber, h3cIfQoSWredApplyIfRunInfoEntry=h3cIfQoSWredApplyIfRunInfoEntry, h3cIfQoSWredDropLPreNTcpBytes=h3cIfQoSWredDropLPreNTcpBytes, h3cIfQoSAggregativeCarCbs=h3cIfQoSAggregativeCarCbs, h3cIfQoSWredPreRandomDropNum=h3cIfQoSWredPreRandomDropNum, h3cIfQoSQSWeightEntry=h3cIfQoSQSWeightEntry, h3cIfQoSPQClassRuleEntry=h3cIfQoSPQClassRuleEntry, h3cIfQoSWredDropHPreNTcpPkts=h3cIfQoSWredDropHPreNTcpPkts, h3cQoSIfTraStaRunDirection=h3cQoSIfTraStaRunDirection, h3cIfQoSCarlListNum=h3cIfQoSCarlListNum, h3cIfQoSCQQueueLengthEntry=h3cIfQoSCQQueueLengthEntry, h3cIfQoSRTPQPacketNumber=h3cIfQoSRTPQPacketNumber, h3cIfQoSWFQHashedMaxActiveQueues=h3cIfQoSWFQHashedMaxActiveQueues, h3cIfQoSHardwareQueueConfigGroup=h3cIfQoSHardwareQueueConfigGroup, h3cIfQoSRTPQDiscardPackets=h3cIfQoSRTPQDiscardPackets, h3cIfQoSGTSRunInfoTable=h3cIfQoSGTSRunInfoTable, h3cIfQoSWFQQueueNumber=h3cIfQoSWFQQueueNumber, h3cIfQoSSoftwareQueueObjects=h3cIfQoSSoftwareQueueObjects, h3cIfQoSQmtokenRosStatus=h3cIfQoSQmtokenRosStatus, h3cQoSIfTraStaRunInfoTable=h3cQoSIfTraStaRunInfoTable, h3cIfQoSMaxBandwidth=h3cIfQoSMaxBandwidth, h3cIfQoSAggregativeCarApplyRuleType=h3cIfQoSAggregativeCarApplyRuleType, h3cIfQoSQueueID=h3cIfQoSQueueID, h3cIfQoSPQSize=h3cIfQoSPQSize, h3cQoSIfTraStaRunPassBytes=h3cQoSIfTraStaRunPassBytes, h3cIfQoSTricolorCarRedPackets=h3cIfQoSTricolorCarRedPackets, h3cIfQoSTailDropBPS=h3cIfQoSTailDropBPS, h3cIfQoSPassBPS=h3cIfQoSPassBPS, h3cIfQoSAggregativeCarApplyRuleValue=h3cIfQoSAggregativeCarApplyRuleValue, CarAction=CarAction, h3cIfQoSPortWredWeightConstantTable=h3cIfQoSPortWredWeightConstantTable, h3cIfQoSWredDropLPreTcpBPS=h3cIfQoSWredDropLPreTcpBPS, h3cIfQoSTricolorCarRedBytes=h3cIfQoSTricolorCarRedBytes, h3cIfQoSCQApplyEntry=h3cIfQoSCQApplyEntry, h3cIfQoSAggregativeCarEbs=h3cIfQoSAggregativeCarEbs, h3cIfQoSAggregativeCarConfigEntry=h3cIfQoSAggregativeCarConfigEntry, h3cIfQoSTricolorCarYellowActionType=h3cIfQoSTricolorCarYellowActionType, PriorityQueue=PriorityQueue, h3cIfQoSTricolorCarValue=h3cIfQoSTricolorCarValue, h3cQoSTraStaConfigGroup=h3cQoSTraStaConfigGroup, h3cIfQoSGTSConfigRowStatus=h3cIfQoSGTSConfigRowStatus, h3cIfQoSPriMapGroupNextIndex=h3cIfQoSPriMapGroupNextIndex, h3cIfQoSQmtokenNumber=h3cIfQoSQmtokenNumber, h3cIfQoSCurQueuePPS=h3cIfQoSCurQueuePPS, h3cIfQoSWREDRandomDropNum=h3cIfQoSWREDRandomDropNum, h3cIfQoSWFQTable=h3cIfQoSWFQTable, h3cIfQoSTricolorCarYellowBytes=h3cIfQoSTricolorCarYellowBytes, h3cIfQoSPortWredPreConfigTable=h3cIfQoSPortWredPreConfigTable, h3cQoSIfTraStaConfigInfoEntry=h3cQoSIfTraStaConfigInfoEntry, h3cIfQoSTricolorCarRunInfoTable=h3cIfQoSTricolorCarRunInfoTable, h3cIfQoSLRDirection=h3cIfQoSLRDirection, h3cIfQoSCQApplyListNumber=h3cIfQoSCQApplyListNumber, h3cIfQoSRTPQRunInfoEntry=h3cIfQoSRTPQRunInfoEntry, h3cIfQoSTricolorCarGreenActionValue=h3cIfQoSTricolorCarGreenActionValue, h3cIfQoSAggregativeCarGreenActionType=h3cIfQoSAggregativeCarGreenActionType, h3cIfQoSWredRowStatus=h3cIfQoSWredRowStatus, h3cIfQoSPortPriorityConfigGroup=h3cIfQoSPortPriorityConfigGroup, h3cIfQoSTricolorCarRedActionValue=h3cIfQoSTricolorCarRedActionValue, h3cIfQoSPortWredRunInfoEntry=h3cIfQoSPortWredRunInfoEntry, h3cIfQoSWFQEntry=h3cIfQoSWFQEntry, h3cIfQoSPortPriorityTable=h3cIfQoSPortPriorityTable, h3cIfQoSDropPackets=h3cIfQoSDropPackets) mibBuilder.exportSymbols("A3COM-HUAWEI-IFQOS2-MIB", h3cIfQoSWredDropLPreNTcpPPS=h3cIfQoSWredDropLPreNTcpPPS, h3cIfQoSTricolorCarCbs=h3cIfQoSTricolorCarCbs, h3cQoSIfTraStaConfigInfoTable=h3cQoSIfTraStaConfigInfoTable, h3cIfQoSWFQConfigGroup=h3cIfQoSWFQConfigGroup, h3cQoSIfTraStaConfigQueue=h3cQoSIfTraStaConfigQueue, h3cIfQoSCarlEntry=h3cIfQoSCarlEntry, h3cIfQoSTricolorCarYellowActionValue=h3cIfQoSTricolorCarYellowActionValue, h3cIfQoSHardwareQueueRunInfoEntry=h3cIfQoSHardwareQueueRunInfoEntry, h3cIfQoSGTSPassedPackets=h3cIfQoSGTSPassedPackets, h3cIfQoSTricolorCarRedActionType=h3cIfQoSTricolorCarRedActionType, h3cIfQoSPortBindingTable=h3cIfQoSPortBindingTable, h3cIfQoSCQApplyTable=h3cIfQoSCQApplyTable, h3cIfQoSQSValue=h3cIfQoSQSValue, h3cIfQoSTricolorCarType=h3cIfQoSTricolorCarType, h3cIfQoSCQQueueServing=h3cIfQoSCQQueueServing, h3cIfQoSPriMapConfigGroup=h3cIfQoSPriMapConfigGroup, h3cIfQoSPortBindingEntry=h3cIfQoSPortBindingEntry, h3cIfQoSWredDropLPreTcpPPS=h3cIfQoSWredDropLPreTcpPPS, h3cIfQoSFIFORunInfoTable=h3cIfQoSFIFORunInfoTable, h3cIfQoSQmtokenEntry=h3cIfQoSQmtokenEntry, h3cIfQoSAggregativeCarApplyTable=h3cIfQoSAggregativeCarApplyTable, h3cIfQoSWredDropPkts=h3cIfQoSWredDropPkts, h3cIfQoSLRRunInfoPassedBytes=h3cIfQoSLRRunInfoPassedBytes, h3cIfQoSGTSQueueSize=h3cIfQoSGTSQueueSize, h3cIfQoSPQApplyTable=h3cIfQoSPQApplyTable, h3cIfQoSCarlTable=h3cIfQoSCarlTable, h3cIfQoSPQDiscardPackets=h3cIfQoSPQDiscardPackets, h3cIfQoSPQQueueLengthTable=h3cIfQoSPQQueueLengthTable, h3cIfQoSWredGroupGroup=h3cIfQoSWredGroupGroup, h3cQoSIfTraStaRunPassPPS=h3cQoSIfTraStaRunPassPPS, PYSNMP_MODULE_ID=h3cIfQos2, h3cIfQoSWredDropHPreTcpBytes=h3cIfQoSWredDropHPreTcpBytes, h3cIfQoSAggregativeCarRowStatus=h3cIfQoSAggregativeCarRowStatus, h3cIfQoSGTSCir=h3cIfQoSGTSCir, h3cIfQoSWFQSize=h3cIfQoSWFQSize, h3cIfQoSGTSObjects=h3cIfQoSGTSObjects, h3fIfQosWFQhashedTotalQueues=h3fIfQosWFQhashedTotalQueues, h3cIfQoSWFQRowStatus=h3cIfQoSWFQRowStatus, h3cIfQoSGTSEbs=h3cIfQoSGTSEbs, h3cIfQoSWredDropHPreTcpBPS=h3cIfQoSWredDropHPreTcpBPS, h3cIfQoSGTSConfigTable=h3cIfQoSGTSConfigTable, h3cIfQoSFIFORunInfoEntry=h3cIfQoSFIFORunInfoEntry, h3cIfQoSWredGroupContentSubIndex=h3cIfQoSWredGroupContentSubIndex, h3cIfQoSPortWredPreDiscardProbability=h3cIfQoSPortWredPreDiscardProbability, h3cIfQoSGTSClassRuleType=h3cIfQoSGTSClassRuleType, h3cIfQoSAggregativeCarYellowActionValue=h3cIfQoSAggregativeCarYellowActionValue, h3cIfQoSWREDObjects=h3cIfQoSWREDObjects, h3cIfQoSHardwareQueueRunInfoGroup=h3cIfQoSHardwareQueueRunInfoGroup, h3cIfQoSCQRunInfoGroup=h3cIfQoSCQRunInfoGroup, h3cIfQoSPortWredPreConfigEntry=h3cIfQoSPortWredPreConfigEntry, h3cIfQoSRowStatus=h3cIfQoSRowStatus, h3cIfQoSPassBytes=h3cIfQoSPassBytes, h3cIfQoSLineRateObjects=h3cIfQoSLineRateObjects, h3cIfQoSWredDropLPreNTcpBPS=h3cIfQoSWredDropLPreNTcpBPS, h3cIfQoSWredGroupName=h3cIfQoSWredGroupName, h3cIfQoSTricolorCarDirection=h3cIfQoSTricolorCarDirection, h3cIfQoSPriMapGroupType=h3cIfQoSPriMapGroupType, h3cIfQoSPQLength=h3cIfQoSPQLength, h3cIfQoSPriMapGroupImportValue=h3cIfQoSPriMapGroupImportValue, h3cIfQoSL3PlusObjects=h3cIfQoSL3PlusObjects, h3cIfQoSAggregativeCarApplyCarIndex=h3cIfQoSAggregativeCarApplyCarIndex, h3cIfQoSWredDropHPreTcpPkts=h3cIfQoSWredDropHPreTcpPkts, h3cIfQoSPQListNumber=h3cIfQoSPQListNumber, h3cQoSIfTraStaRunDropBytes=h3cQoSIfTraStaRunDropBytes, h3cQoSIfTraStaConfigDscp=h3cQoSIfTraStaConfigDscp, h3cIfQoSCQQueueID=h3cIfQoSCQQueueID, h3cIfQoSCQClassRuleQueueID=h3cIfQoSCQClassRuleQueueID, h3cIfQoSCQRunInfoLength=h3cIfQoSCQRunInfoLength, h3cIfQoSCQRunInfoSize=h3cIfQoSCQRunInfoSize, h3cIfQoSCARObjects=h3cIfQoSCARObjects, h3cIfQoSPortWredPreHighLimit=h3cIfQoSPortWredPreHighLimit, h3cIfQoSFIFOSize=h3cIfQoSFIFOSize, h3cIfQoSGTSConfigEntry=h3cIfQoSGTSConfigEntry, h3cIfQoSWredGroupEntry=h3cIfQoSWredGroupEntry, h3cIfQoSCurQueuePkts=h3cIfQoSCurQueuePkts, h3cIfQoSGTSDelayedPackets=h3cIfQoSGTSDelayedPackets, h3cIfQoSPassPPS=h3cIfQoSPassPPS, h3cIfQoSFIFOConfigTable=h3cIfQoSFIFOConfigTable, h3cIfQoSAggregativeCarGreenActionValue=h3cIfQoSAggregativeCarGreenActionValue, h3cIfQoSCQRunInfoTable=h3cIfQoSCQRunInfoTable, h3cIfQos2=h3cIfQos2, h3cIfQoSPriMapGroupName=h3cIfQoSPriMapGroupName, h3cIfQoSRTPQObject=h3cIfQoSRTPQObject, h3cIfQoSRTPQReservedBandwidth=h3cIfQoSRTPQReservedBandwidth, h3cIfQoSRTPQConfigGroup=h3cIfQoSRTPQConfigGroup, h3cIfQoSTricolorCarGreenPackets=h3cIfQoSTricolorCarGreenPackets, h3cIfQoSPriMapGroupIndex=h3cIfQoSPriMapGroupIndex, h3cIfQoSPQObject=h3cIfQoSPQObject, h3cIfQoSTricolorCarYellowPackets=h3cIfQoSTricolorCarYellowPackets, h3cIfQoSAggregativeCarType=h3cIfQoSAggregativeCarType, h3cQoSIfTraStaConfigDot1p=h3cQoSIfTraStaConfigDot1p, h3cIfQoSLRRunInfoEntry=h3cIfQoSLRRunInfoEntry, h3cIfQoSWFQQueueLength=h3cIfQoSWFQQueueLength, h3cIfQoSPriMapContentRowStatus=h3cIfQoSPriMapContentRowStatus, h3cIfQoSBandwidthGroup=h3cIfQoSBandwidthGroup, h3cIfQoSRTPQConfigEntry=h3cIfQoSRTPQConfigEntry, h3cQoSIfTraStaRunInfoEntry=h3cQoSIfTraStaRunInfoEntry, h3cIfQoSPassPackets=h3cIfQoSPassPackets, h3cIfQoSGTSDiscardBytes=h3cIfQoSGTSDiscardBytes, h3cQoSIfTraStaConfigStatus=h3cQoSIfTraStaConfigStatus, h3cIfQoSTailDropPkts=h3cIfQoSTailDropPkts, h3cIfQoSTricolorCarRunInfoEntry=h3cIfQoSTricolorCarRunInfoEntry, h3cIfQoSWredGroupType=h3cIfQoSWredGroupType, h3cIfQoSWredLowLimit=h3cIfQoSWredLowLimit, h3cIfQoSPortPirorityTrustTable=h3cIfQoSPortPirorityTrustTable, h3cIfQoSGTSCbs=h3cIfQoSGTSCbs, h3cIfQoSCarListObject=h3cIfQoSCarListObject, h3cIfQoSTricolorCarGreenBytes=h3cIfQoSTricolorCarGreenBytes, h3cIfQoSPQApplyEntry=h3cIfQoSPQApplyEntry, h3cIfQoSPortWredWeightConstant=h3cIfQoSPortWredWeightConstant, Direction=Direction)
""" Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number. Return the decimal value of the number in the linked list. Example 1: https://assets.leetcode.com/uploads/2019/12/05/graph-1.png Input: head = [1,0,1] Output: 5 Explanation: (101) in base 2 = (5) in base 10 Example 2: Input: head = [0] Output: 0 Example 3: Input: head = [1] Output: 1 Example 4: Input: head = [1,0,0,1,0,0,1,1,1,0,0,0,0,0,0] Output: 18880 Example 5: Input: head = [0,0] Output: 0 Constraints: 1. The Linked List is not empty. 2. Number of nodes will not exceed 30. 3. Each node's value is either 0 or 1. """ class ListNode: """ Definition for singly-linked list. """ def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def getDecimalValue(self, head: ListNode) -> int: res = 0 while head: res = 2 * res + head.val head = head.next return res
lines = [line.strip() for line in open("input.txt", 'r') if line.strip() != ""] startingNumbers = [int(i) for i in lines[0].split(",")] ########################################## # PART 1 # ########################################## def part1(startingNumbers, target): i = 0 lastNumber = -1 history = {} for n in startingNumbers: if n not in history: history[n] = [] history[n].append(i) i += 1 while i < target: if lastNumber in history and len(history[lastNumber]) >= 2: a, b = history[lastNumber][-2:] n = b - a else: n = 0 if n not in history: history[n] = [] history[n].append(i) lastNumber = n i += 1 return lastNumber print('Answer to part 1 is', part1(startingNumbers, 2020)) ########################################## # PART 2 # ########################################## # takes a minute but works print('Answer to part 2 is', part1(startingNumbers, 30000000))
def load(h): return ({'abbr': 'Reserved', 'code': 0, 'title': 'RESERVED Reserved Reserved'}, {'abbr': 'pres', 'code': 1, 'title': 'PRES Pressure Pa'}, {'abbr': 'msl', 'code': 2, 'title': 'MSL Mean sea level pressure Pa'}, {'abbr': 'ptend', 'code': 3, 'title': 'PTEND Pressure tendency Pa s**-1'}, {'abbr': 'pv', 'code': 4, 'title': 'PV Potential vorticity K m**2 kg**-1 s**-1'}, {'abbr': 'icaht', 'code': 5, 'title': 'ICAHT ICAO Standard Atmosphere reference height m'}, {'abbr': 'z', 'code': 6, 'title': 'Z Geopotential m**2 s**-2'}, {'abbr': 'gh', 'code': 7, 'title': 'GH Geopotential height gpm'}, {'abbr': 'h', 'code': 8, 'title': 'H Geometrical height m'}, {'abbr': 'hstdv', 'code': 9, 'title': 'HSTDV Standard deviation of height m'}, {'abbr': 'tco3', 'code': 10, 'title': 'TCO3 Total column ozone Dobson'}, {'abbr': 't', 'code': 11, 'title': 'T Temperature K'}, {'abbr': 'vptmp', 'code': 12, 'title': 'VPTMP Virtual potential temperature K'}, {'abbr': 'pt', 'code': 13, 'title': 'PT Potential temperature K'}, {'abbr': 'papt', 'code': 14, 'title': 'PAPT Pseudo-adiabatic potential temperature K'}, {'abbr': 'tmax', 'code': 15, 'title': 'TMAX Maximum temperature K'}, {'abbr': 'tmin', 'code': 16, 'title': 'TMIN Minimum temperature K'}, {'abbr': 'td', 'code': 17, 'title': 'TD Dew point temperature K'}, {'abbr': 'depr', 'code': 18, 'title': 'DEPR Dew point depression (or deficit) K'}, {'abbr': 'lapr', 'code': 19, 'title': 'LAPR Lapse rate K m**-1'}, {'abbr': 'vis', 'code': 20, 'title': 'VIS Visibility m'}, {'abbr': 'rdsp1', 'code': 21, 'title': 'RDSP1 Radar spectra (1) -'}, {'abbr': 'rdsp2', 'code': 22, 'title': 'RDSP2 Radar spectra (2) -'}, {'abbr': 'rdsp3', 'code': 23, 'title': 'RDSP3 Radar spectra (3) -'}, {'abbr': 'pli', 'code': 24, 'title': 'PLI Parcel lifted index (to 500 hPa) K'}, {'abbr': 'ta', 'code': 25, 'title': 'TA Temperature anomaly K'}, {'abbr': 'presa', 'code': 26, 'title': 'PRESA Pressure anomaly Pa'}, {'abbr': 'gpa', 'code': 27, 'title': 'GPA Geopotential height anomaly gpm'}, {'abbr': 'wvsp1', 'code': 28, 'title': 'WVSP1 Wave spectra (1) -'}, {'abbr': 'wvsp2', 'code': 29, 'title': 'WVSP2 Wave spectra (2) -'}, {'abbr': 'wvsp3', 'code': 30, 'title': 'WVSP3 Wave spectra (3) -'}, {'abbr': 'wdir', 'code': 31, 'title': 'WDIR Wind direction Degree true'}, {'abbr': 'ws', 'code': 32, 'title': 'WS Wind speed m s**-1'}, {'abbr': 'u', 'code': 33, 'title': 'U u-component of wind m s**-1'}, {'abbr': 'v', 'code': 34, 'title': 'V v-component of wind m s**-1'}, {'abbr': 'strf', 'code': 35, 'title': 'STRF Stream function m2 s**-1'}, {'abbr': 'vp', 'code': 36, 'title': 'VP Velocity potential m2 s**-1'}, {'abbr': 'mntsf', 'code': 37, 'title': 'MNTSF Montgomery stream function m**2 s**-1'}, {'abbr': 'sgcvv', 'code': 38, 'title': 'SGCVV Sigma coordinate vertical velocity s**-1'}, {'abbr': 'w', 'code': 39, 'title': 'W Pressure Vertical velocity Pa s**-1'}, {'abbr': 'tw', 'code': 40, 'title': 'TW Vertical velocity m s**-1'}, {'abbr': 'absv', 'code': 41, 'title': 'ABSV Absolute vorticity s**-1'}, {'abbr': 'absd', 'code': 42, 'title': 'ABSD Absolute divergence s**-1'}, {'abbr': 'vo', 'code': 43, 'title': 'VO Relative vorticity s**-1'}, {'abbr': 'd', 'code': 44, 'title': 'D Relative divergence s**-1'}, {'abbr': 'vucsh', 'code': 45, 'title': 'VUCSH Vertical u-component shear s**-1'}, {'abbr': 'vvcsh', 'code': 46, 'title': 'VVCSH Vertical v-component shear s**-1'}, {'abbr': 'dirc', 'code': 47, 'title': 'DIRC Direction of current Degree true'}, {'abbr': 'spc', 'code': 48, 'title': 'SPC Speed of current m s**-1'}, {'abbr': 'ucurr', 'code': 49, 'title': 'UCURR U-component of current m s**-1'}, {'abbr': 'vcurr', 'code': 50, 'title': 'VCURR V-component of current m s**-1'}, {'abbr': 'q', 'code': 51, 'title': 'Q Specific humidity kg kg**-1'}, {'abbr': 'r', 'code': 52, 'title': 'R Relative humidity %'}, {'abbr': 'mixr', 'code': 53, 'title': 'MIXR Humidity mixing ratio kg kg**-1'}, {'abbr': 'pwat', 'code': 54, 'title': 'PWAT Precipitable water kg m**-2'}, {'abbr': 'vp', 'code': 55, 'title': 'VP Vapour pressure Pa'}, {'abbr': 'satd', 'code': 56, 'title': 'SATD Saturation deficit Pa'}, {'abbr': 'e', 'code': 57, 'title': 'E Evaporation kg m**-2'}, {'abbr': 'ciwc', 'code': 58, 'title': 'CIWC Cloud ice kg m**-2'}, {'abbr': 'prate', 'code': 59, 'title': 'PRATE Precipitation rate kg m**-2 s**-1'}, {'abbr': 'tstm', 'code': 60, 'title': 'TSTM Thunderstorm probability %'}, {'abbr': 'tp', 'code': 61, 'title': 'TP Total precipitation kg m**-2'}, {'abbr': 'lsp', 'code': 62, 'title': 'LSP Large scale precipitation kg m**-2'}, {'abbr': 'acpcp', 'code': 63, 'title': 'ACPCP Convective precipitation (water) kg m**-2'}, {'abbr': 'srweq', 'code': 64, 'title': 'SRWEQ Snow fall rate water equivalent kg m**-2 s**-1'}, {'abbr': 'sf', 'code': 65, 'title': 'SF Water equivalent of accumulated snow depth kg m**-2'}, {'abbr': 'sd', 'code': 66, 'title': 'SD Snow depth m'}, {'abbr': 'mld', 'code': 67, 'title': 'MLD Mixed layer depth m'}, {'abbr': 'tthdp', 'code': 68, 'title': 'TTHDP Transient thermocline depth m'}, {'abbr': 'mthd', 'code': 69, 'title': 'MTHD Main thermocline depth m'}, {'abbr': 'mtha', 'code': 70, 'title': 'MTHA Main thermocline anomaly m'}, {'abbr': 'tcc', 'code': 71, 'title': 'TCC Total cloud cover', 'units': '0 - 1'}, {'abbr': 'ccc', 'code': 72, 'title': 'CCC Convective cloud cover', 'units': '0 - 1'}, {'abbr': 'lcc', 'code': 73, 'title': 'LCC Low cloud cover', 'units': '0 - 1'}, {'abbr': 'mcc', 'code': 74, 'title': 'MCC Medium cloud cover', 'units': '0 - 1'}, {'abbr': 'hcc', 'code': 75, 'title': 'HCC High cloud cover', 'units': '0 - 1'}, {'abbr': 'cwat', 'code': 76, 'title': 'CWAT Cloud water kg m**-2'}, {'abbr': 'bli', 'code': 77, 'title': 'BLI Best lifted index (to 500 hPa) K'}, {'abbr': 'csf', 'code': 78, 'title': 'CSF Convective snowfall kg m**-2'}, {'abbr': 'lsf', 'code': 79, 'title': 'LSF Large scale snowfall kg m**-2'}, {'abbr': 'wtmp', 'code': 80, 'title': 'WTMP Water temperature K'}, {'abbr': 'lsm', 'code': 81, 'title': 'LSM Land cover (1=land, 0=sea)', 'units': '0 - 1'}, {'abbr': 'dslm', 'code': 82, 'title': 'DSLM Deviation of sea-level from mean m'}, {'abbr': 'sr', 'code': 83, 'title': 'SR Surface roughness m'}, {'abbr': 'al', 'code': 84, 'title': 'AL Albedo %'}, {'abbr': 'st', 'code': 85, 'title': 'ST Soil temperature K'}, {'abbr': 'sm', 'code': 86, 'title': 'SM Soil moisture content kg m**-2'}, {'abbr': 'veg', 'code': 87, 'title': 'VEG Vegetation %'}, {'abbr': 's', 'code': 88, 'title': 'S Salinity kg kg**-1'}, {'abbr': 'den', 'code': 89, 'title': 'DEN Density kg m**-3'}, {'abbr': 'ro', 'code': 90, 'title': 'RO Water run-off kg m**-2'}, {'abbr': 'icec', 'code': 91, 'title': 'ICEC Ice cover (1=land, 0=sea)', 'units': '0 - 1'}, {'abbr': 'icetk', 'code': 92, 'title': 'ICETK Ice thickness m'}, {'abbr': 'diced', 'code': 93, 'title': 'DICED Direction of ice drift Degree true'}, {'abbr': 'siced', 'code': 94, 'title': 'SICED Speed of ice drift m s**-1'}, {'abbr': 'uice', 'code': 95, 'title': 'UICE U-component of ice drift m s**-1'}, {'abbr': 'vice', 'code': 96, 'title': 'VICE V-component of ice drift m s**-1'}, {'abbr': 'iceg', 'code': 97, 'title': 'ICEG Ice growth rate m s**-1'}, {'abbr': 'iced', 'code': 98, 'title': 'ICED Ice divergence s**-1'}, {'abbr': 'snom', 'code': 99, 'title': 'SNOM Snow melt kg m**-2'}, {'abbr': 'swh', 'code': 100, 'title': 'SWH Signific.height,combined wind waves+swell m'}, {'abbr': 'mdww', 'code': 101, 'title': 'MDWW Mean Direction of wind waves Degree true'}, {'abbr': 'shww', 'code': 102, 'title': 'SHWW Significant height of wind waves m'}, {'abbr': 'mpww', 'code': 103, 'title': 'MPWW Mean period of wind waves s'}, {'abbr': 'swdir', 'code': 104, 'title': 'SWDIR Direction of swell waves Degree true'}, {'abbr': 'swell', 'code': 105, 'title': 'SWELL Significant height of swell waves m'}, {'abbr': 'swper', 'code': 106, 'title': 'SWPER Mean period of swell waves s'}, {'abbr': 'mdps', 'code': 107, 'title': 'MDPS Mean direction of primary swell Degree true'}, {'abbr': 'mpps', 'code': 108, 'title': 'MPPS Mean period of primary swell s'}, {'abbr': 'dirsw', 'code': 109, 'title': 'DIRSW Secondary wave direction Degree true'}, {'abbr': 'swp', 'code': 110, 'title': 'SWP Secondary wave mean period s'}, {'abbr': 'nswrs', 'code': 111, 'title': 'NSWRS Net short-wave radiation flux (surface) W m**-2'}, {'abbr': 'nlwrs', 'code': 112, 'title': 'NLWRS Net long-wave radiation flux (surface) W m**-2'}, {'abbr': 'nswrt', 'code': 113, 'title': 'NSWRT Net short-wave radiation flux (atmosph.top) W m**-2'}, {'abbr': 'nlwrt', 'code': 114, 'title': 'NLWRT Net long-wave radiation flux (atmosph.top) W m**-2'}, {'abbr': 'lwavr', 'code': 115, 'title': 'LWAVR Long-wave radiation flux W m**-2'}, {'abbr': 'swavr', 'code': 116, 'title': 'SWAVR Short-wave radiation flux W m**-2'}, {'abbr': 'grad', 'code': 117, 'title': 'GRAD Global radiation flux W m**-2'}, {'abbr': 'btmp', 'code': 118, 'title': 'BTMP Brightness temperature K'}, {'abbr': 'lwrad', 'code': 119, 'title': 'LWRAD Radiance (with respect to wave number) W m**-1 sr**-1'}, {'abbr': 'swrad', 'code': 120, 'title': 'SWRAD Radiance (with respect to wave length) W m-**3 sr**-1'}, {'abbr': 'slhf', 'code': 121, 'title': 'SLHF Latent heat flux W m**-2'}, {'abbr': 'sshf', 'code': 122, 'title': 'SSHF Sensible heat flux W m**-2'}, {'abbr': 'bld', 'code': 123, 'title': 'BLD Boundary layer dissipation W m**-2'}, {'abbr': 'uflx', 'code': 124, 'title': 'UFLX Momentum flux, u-component N m**-2'}, {'abbr': 'vflx', 'code': 125, 'title': 'VFLX Momentum flux, v-component N m**-2'}, {'abbr': 'wmixe', 'code': 126, 'title': 'WMIXE Wind mixing energy J'}, {'abbr': 'imgd', 'code': 127, 'title': 'IMGD Image data'}, {'abbr': 'mofl', 'code': 128, 'title': 'MOFL Momentum flux Pa'}, {'abbr': 'maxv', 'code': 135, 'title': 'MAXV Max wind speed (at 10m) m s**-1'}, {'abbr': 'tland', 'code': 140, 'title': 'TLAND Temperature over land K'}, {'abbr': 'qland', 'code': 141, 'title': 'QLAND Specific humidity over land kg kg**-1'}, {'abbr': 'rhland', 'code': 142, 'title': 'RHLAND Relative humidity over land Fraction'}, {'abbr': 'dptland', 'code': 143, 'title': 'DPTLAND Dew point over land K'}, {'abbr': 'slfr', 'code': 160, 'title': 'SLFR Slope fraction -'}, {'abbr': 'shfr', 'code': 161, 'title': 'SHFR Shadow fraction -'}, {'abbr': 'rsha', 'code': 162, 'title': 'RSHA Shadow parameter A -'}, {'abbr': 'rshb', 'code': 163, 'title': 'RSHB Shadow parameter B -'}, {'abbr': 'susl', 'code': 165, 'title': 'SUSL Surface slope -'}, {'abbr': 'skwf', 'code': 166, 'title': 'SKWF Sky wiew factor -'}, {'abbr': 'frasp', 'code': 167, 'title': 'FRASP Fraction of aspect -'}, {'abbr': 'asn', 'code': 190, 'title': 'ASN Snow albedo -'}, {'abbr': 'dsn', 'code': 191, 'title': 'DSN Snow density -'}, {'abbr': 'watcn', 'code': 192, 'title': 'WATCN Water on canopy level kg m**-2'}, {'abbr': 'ssi', 'code': 193, 'title': 'SSI Surface soil ice m**3 m**-3'}, {'abbr': 'sltyp', 'code': 195, 'title': 'SLTYP Soil type code -'}, {'abbr': 'fol', 'code': 196, 'title': 'FOL Fraction of lake -'}, {'abbr': 'fof', 'code': 197, 'title': 'FOF Fraction of forest -'}, {'abbr': 'fool', 'code': 198, 'title': 'FOOL Fraction of open land -'}, {'abbr': 'vgtyp', 'code': 199, 'title': 'VGTYP Vegetation type (Olsson land use) -'}, {'abbr': 'tke', 'code': 200, 'title': 'TKE Turbulent Kinetic Energy J kg**-1'}, {'abbr': 'mssso', 'code': 208, 'title': 'MSSSO Maximum slope of smallest scale orography rad'}, {'abbr': 'sdsso', 'code': 209, 'title': 'SDSSO Standard deviation of smallest scale orography gpm'}, {'abbr': 'gust', 'code': 228, 'title': 'GUST Max wind gust m s**-1'})
def printom(str): return f"ye hath mujhe {str}" def add(n1, n2): return n1 + n2 + 5 print("and the name is", __name__) if __name__ == '__main__': print(printom("de de thakur")) o = add(4, 6) print(o)
# Class to test the GrapherWindow Class class GrapherTester: def __init__(self): subject = Grapher() testFileName = 'TestData.csv' testStockName = 'Test Stock' testGenerateGraphWithAllPositiveNumbers(testFileName, testStockName) def createTestData(xAxis, yAxis): # Generates a graph with random Data plotData = {'X-Axis':xAxis, 'Y-Axis':yAxis} dataFrame = pandas.DataFrame(plotData) return dataFrame def testGenerateGraphWithAllPositiveNumbers(self, testFileName, stockName): dataFrame = self.createTestData([0, 1, 2, 3, 4], [3, 5, 1, 2, 6]) subject.generateGraph(predictionFileName = "TestData.csv") assert os.path.exists(self.testStockName + " Graph.png") def testGenerateGraphWithSomeBadNumbers(self, testFileName, stockName): dataFrame = self.createTestData([0, 1, 2, 3, 4], [3, 5, -1, 2, 6]) assert subject.generateGraph(testFileName, dataFrame) == False
#!/usr/bin/env python # encoding: utf-8 """ populate_next_right_pointers.py Created by Shengwei on 2014-07-27. """ # https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/ # tags: medium, tree, pointer, recursion """Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL. Initially, all next pointers are set to NULL. Note: You may only use constant extra space. You may assume that it is a perfect binary tree (ie, all leaves are at the same level, and every parent has two children). For example, Given the following perfect binary tree, 1 / \ 2 3 / \ / \ 4 5 6 7 After calling your function, the tree should look like: 1 -> NULL / \ 2 -> 3 -> NULL / \ / \ 4->5->6->7 -> NULL """ # https://oj.leetcode.com/discuss/1808/may-only-constant-extra-space-does-mean-cannot-use-recursion # Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # self.next = None class Solution: # @param root, a tree node # @return nothing def connect(self, root): if root is None: return head = root while head.left: parent = head cursor = None while parent: if cursor: cursor.next = parent.left parent.left.next = parent.right cursor = parent.right parent = parent.next head = head.left
class Policy: def select_edge(self, board_state, score=None, opp_score=None): raise NotImplementedError