{
  "ml": {
    "l": -1,
    "v": "6",
    "fs": [
      {
        "l": -1,
        "id": 0,
        "prob": 0.00006276369094848633
      }
    ],
    "prob": 0.00006276369,
    "models": [
      {
        "m": "az",
        "raw": 0.00006276369,
        "prob": 0.00006276369,
        "class": 0
      },
      {
        "m": "az/scripts",
        "raw": 0.000020682812,
        "prob": 0.000020682812,
        "class": 0
      },
      {
        "m": "az/python",
        "raw": 0.18866847,
        "prob": 0.18866847,
        "class": 0
      }
    ],
    "version": "v17.17",
    "analyzed_at": "2026-06-08T15:33:59Z"
  },
  "path": "test_sys_setprofile.py",
  "raw": {
    "v": "6",
    "fs": [
      {
        "f": "O₂(AsC)",
        "x": 3,
        "ff": {
          "i": [
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "self.assertIsNone"
            ],
            [
              "",
              "sys.getprofile"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "self.assertIs"
            ],
            [
              "",
              "sys.getprofile"
            ],
            [
              "",
              "self.add_event"
            ],
            [
              "",
              "sys._getframe"
            ],
            [
              "",
              "self.frames.index"
            ],
            [
              "",
              "len"
            ],
            [
              "",
              "self.frames.append"
            ],
            [
              "",
              "self.events.append"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "HookWatcher.__init__"
            ],
            [
              "",
              "self.add_event"
            ],
            [
              "",
              "self.stack.append"
            ],
            [
              "",
              "self.add_event"
            ],
            [
              "",
              "self.stack.pop"
            ],
            [
              "",
              "self.testcase.fail"
            ],
            [
              "",
              "capture_events"
            ],
            [
              "",
              "self.new_watcher"
            ],
            [
              "",
              "self.fail"
            ],
            [
              "",
              "pprint.pformat"
            ],
            [
              "",
              "pprint.pformat"
            ],
            [
              "",
              "self.fail"
            ],
            [
              "",
              "pprint.pformat"
            ],
            [
              "",
              "pprint.pformat"
            ],
            [
              "",
              "HookWatcher"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "p.add_event"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "Exception"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "range"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "range"
            ],
            [
              "",
              "next"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "range"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ProfileSimulator"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "ident"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "dict.get"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "dict.get"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "dict.get"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "dict.get"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "dict.get"
            ],
            [
              "",
              "self.check_events"
            ],
            [
              "",
              "hasattr"
            ],
            [
              "",
              "HookWatcher"
            ],
            [
              "",
              "gc.isenabled"
            ],
            [
              "",
              "gc.disable"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "protect"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "gc.enable"
            ],
            [
              "",
              "p.get_events"
            ],
            [
              "",
              "pprint.pprint"
            ],
            [
              "",
              "capture_events"
            ],
            [
              "",
              "self.addCleanup"
            ],
            [
              "",
              "sys.getprofile"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "self.assertEqual"
            ],
            [
              "",
              "sys.getprofile"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "sys.getprofile"
            ],
            [
              "",
              "sys._getframe"
            ],
            [
              "",
              "sys.gettrace"
            ],
            [
              "",
              "sys.settrace"
            ],
            [
              "",
              "sys.settrace"
            ],
            [
              "",
              "sys.setprofile"
            ],
            [
              "",
              "unittest.main"
            ],
            [
              "",
              "gc"
            ],
            [
              "",
              "pprint"
            ],
            [
              "",
              "sys"
            ],
            [
              "",
              "unittest"
            ]
          ],
          "m": {
            "ast": {
              "op.div": 13.0,
              "op.lor": 2.0,
              "op.mod": 2.0,
              "op.sub": 1.0,
              "max_depth": 17.0,
              "bind_count": 57.0,
              "call_count": 150.0,
              "node_count": 4134.0,
              "member_count": 42.0,
              "op_density.div": 0.0,
              "op_density.lor": 0.0,
              "op_density.mod": 0.0,
              "op_density.sub": 0.0,
              "identifier_count": 126.0,
              "member_depth_max": 3.0,
              "string_literal_count": 102.0,
              "array_literal_max_length": 11.0
            },
            "file": {
              "size": 14411.0,
              "entropy": 3.87,
              "size_bytes": 14411.0
            },
            "text": {
              "digit_ratio": 0.02,
              "space_count": 5804.0,
              "total_lines": 484.0,
              "char_entropy": 3.87,
              "unique_chars": 72.0,
              "string_density": 0.21,
              "avg_line_length": 28.77,
              "max_line_length": 94.0,
              "empty_line_ratio": 0.15,
              "last_line_length": 19.0,
              "whitespace_ratio": 0.44,
              "most_common_ratio": 0.07,
              "identifier_density": 1.56,
              "line_length_stddev": 18.97,
              "normalized_string_count": 4.64,
              "repeated_char_sequences": 161.0,
              "most_common_char_is_null": 0.0,
              "suspicious_comment_ratio": 0.06,
              "max_inline_whitespace_run": 1.0,
              "most_common_char_codepoint": 101.0,
              "suspicious_identifier_ratio": 0.06,
              "normalized_unique_identifiers": 14.13
            },
            "binds": {
              "count": 57.0
            },
            "calls": {
              "count": 150.0
            },
            "binary": {
              "overall_entropy": 3.87
            },
            "source": {
              "class_count": 8.0,
              "function_count": 51.0
            },
            "imports": {
              "count": 4.0,
              "stdlib_count": 4.0,
              "stdlib_ratio": 1.0,
              "unique_modules": 4.0
            },
            "members": {
              "count": 42.0
            },
            "strings": {
              "total": 102.0,
              "avg_length": 7.07,
              "max_length": 50.0,
              "avg_entropy": 2.05,
              "total_bytes": 721.0,
              "entropy_stddev": 0.6
            },
            "comments": {
              "chars": 592.0,
              "lines": 16.0,
              "total": 16.0,
              "to_code_ratio": 0.03,
              "high_entropy_comments": 1.0
            },
            "functions": {
              "count": 59.0,
              "avg_params": 1.09,
              "max_params": 4.0,
              "length_stddev": 5.38,
              "avg_name_length": 9.2,
              "no_params_count": 12.0,
              "avg_length_lines": 5.44,
              "max_length_lines": 27.0,
              "min_length_lines": 2.0,
              "nested_functions": 27.0,
              "avg_nesting_depth": 0.47,
              "max_nesting_depth": 1.0,
              "single_char_names": 37.0,
              "high_entropy_names": 10.0,
              "single_char_params": 28.0,
              "avg_param_name_length": 3.53,
              "density_per_100_lines": 18.8,
              "code_in_functions_ratio": 1.02
            },
            "identifiers": {
              "count": 126.0,
              "total": 757.0,
              "avg_length": 10.24,
              "max_length": 40.0,
              "min_length": 1.0,
              "avg_entropy": 2.51,
              "reuse_ratio": 0.17,
              "unique_count": 126.0,
              "length_stddev": 7.53,
              "sequential_names": 7.0,
              "single_char_count": 7.0,
              "single_char_ratio": 0.06,
              "high_entropy_count": 11.0,
              "high_entropy_ratio": 0.09,
              "all_lowercase_ratio": 0.87,
              "all_uppercase_ratio": 0.01,
              "double_underscore_count": 6.0,
              "underscore_prefix_count": 7.0
            }
          },
          "s": [
            [
              568,
              "u8",
              "call"
            ],
            [
              569,
              "u8",
              "call"
            ],
            [
              599,
              "u8",
              "return"
            ],
            [
              600,
              "u8",
              "return"
            ],
            [
              632,
              "u8",
              "exception"
            ],
            [
              633,
              "u8",
              "exception"
            ],
            [
              755,
              "u8",
              "Add an event to the log."
            ],
            [
              758,
              "u8",
              "Add an event to the log."
            ],
            [
              846,
              "10",
              "1"
            ],
            [
              1114,
              "u8",
              "Remove calls to add_event()."
            ],
            [
              1117,
              "u8",
              "Remove calls to add_event()."
            ],
            [
              1298,
              "10",
              "2"
            ],
            [
              1695,
              "u8",
              "call"
            ],
            [
              1696,
              "u8",
              "call"
            ],
            [
              1802,
              "u8",
              "return"
            ],
            [
              1803,
              "u8",
              "return"
            ],
            [
              1923,
              "u8",
              "the profiler should never receive exception events"
            ],
            [
              1924,
              "u8",
              "the profiler should never receive exception events"
            ],
            [
              2050,
              "u8",
              "call"
            ],
            [
              2051,
              "u8",
              "call"
            ],
            [
              2078,
              "u8",
              "exception"
            ],
            [
              2079,
              "u8",
              "exception"
            ],
            [
              2116,
              "u8",
              "return"
            ],
            [
              2117,
              "u8",
              "return"
            ],
            [
              2148,
              "u8",
              "c_call"
            ],
            [
              2149,
              "u8",
              "c_call"
            ],
            [
              2178,
              "u8",
              "c_return"
            ],
            [
              2179,
              "u8",
              "c_return"
            ],
            [
              2210,
              "u8",
              "c_exception"
            ],
            [
              2211,
              "u8",
              "c_exception"
            ],
            [
              2500,
              "u8",
              "Expected events:\\n%s\\nReceived events:\\n%s"
            ],
            [
              2501,
              "u8",
              "Expected events:\\n%s\\nReceived events:\\n%s"
            ],
            [
              2760,
              "u8",
              "Expected events:\\n%s\\nReceived events:\\n%s"
            ],
            [
              2761,
              "u8",
              "Expected events:\\n%s\\nReceived events:\\n%s"
            ],
            [
              3105,
              "10",
              "1"
            ],
            [
              3108,
              "u8",
              "call"
            ],
            [
              3109,
              "u8",
              "call"
            ],
            [
              3157,
              "10",
              "1"
            ],
            [
              3160,
              "u8",
              "return"
            ],
            [
              3161,
              "u8",
              "return"
            ],
            [
              3274,
              "10",
              "1"
            ],
            [
              3276,
              "10",
              "0"
            ],
            [
              3336,
              "10",
              "1"
            ],
            [
              3339,
              "u8",
              "call"
            ],
            [
              3340,
              "u8",
              "call"
            ],
            [
              3388,
              "10",
              "1"
            ],
            [
              3391,
              "u8",
              "return"
            ],
            [
              3392,
              "u8",
              "return"
            ],
            [
              3517,
              "10",
              "1"
            ],
            [
              3519,
              "10",
              "0"
            ],
            [
              3604,
              "10",
              "1"
            ],
            [
              3607,
              "u8",
              "call"
            ],
            [
              3608,
              "u8",
              "call"
            ],
            [
              3656,
              "10",
              "1"
            ],
            [
              3659,
              "u8",
              "return"
            ],
            [
              3660,
              "u8",
              "return"
            ],
            [
              3792,
              "10",
              "1"
            ],
            [
              3794,
              "10",
              "0"
            ],
            [
              3879,
              "10",
              "1"
            ],
            [
              3882,
              "u8",
              "call"
            ],
            [
              3883,
              "u8",
              "call"
            ],
            [
              3931,
              "10",
              "1"
            ],
            [
              3934,
              "u8",
              "return"
            ],
            [
              3935,
              "u8",
              "return"
            ],
            [
              4055,
              "10",
              "1"
            ],
            [
              4057,
              "10",
              "0"
            ],
            [
              4117,
              "10",
              "1"
            ],
            [
              4120,
              "u8",
              "call"
            ],
            [
              4121,
              "u8",
              "call"
            ],
            [
              4349,
              "10",
              "1"
            ],
            [
              4352,
              "u8",
              "return"
            ],
            [
              4353,
              "u8",
              "return"
            ],
            [
              4483,
              "10",
              "1"
            ],
            [
              4485,
              "10",
              "0"
            ],
            [
              4703,
              "10",
              "1"
            ],
            [
              4706,
              "u8",
              "call"
            ],
            [
              4707,
              "u8",
              "call"
            ],
            [
              4755,
              "10",
              "2"
            ],
            [
              4758,
              "u8",
              "call"
            ],
            [
              4759,
              "u8",
              "call"
            ],
            [
              4807,
              "10",
              "2"
            ],
            [
              4810,
              "u8",
              "return"
            ],
            [
              4811,
              "u8",
              "return"
            ],
            [
              4861,
              "10",
              "3"
            ],
            [
              4864,
              "u8",
              "call"
            ],
            [
              4865,
              "u8",
              "call"
            ],
            [
              4913,
              "10",
              "3"
            ],
            [
              4916,
              "u8",
              "return"
            ],
            [
              4917,
              "u8",
              "return"
            ],
            [
              4967,
              "10",
              "1"
            ],
            [
              4970,
              "u8",
              "return"
            ],
            [
              4971,
              "u8",
              "return"
            ],
            [
              5096,
              "10",
              "1"
            ],
            [
              5098,
              "10",
              "0"
            ],
            [
              5173,
              "u8",
              "falling through"
            ],
            [
              5174,
              "u8",
              "falling through"
            ],
            [
              5277,
              "10",
              "1"
            ],
            [
              5280,
              "u8",
              "call"
            ],
            [
              5281,
              "u8",
              "call"
            ],
            [
              5329,
              "10",
              "2"
            ],
            [
              5332,
              "u8",
              "call"
            ],
            [
              5333,
              "u8",
              "call"
            ],
            [
              5381,
              "10",
              "2"
            ],
            [
              5384,
              "u8",
              "return"
            ],
            [
              5385,
              "u8",
              "return"
            ],
            [
              5435,
              "10",
              "1"
            ],
            [
              5438,
              "u8",
              "falling through"
            ],
            [
              5439,
              "u8",
              "falling through"
            ],
            [
              5498,
              "10",
              "1"
            ],
            [
              5501,
              "u8",
              "return"
            ],
            [
              5502,
              "u8",
              "return"
            ],
            [
              5622,
              "10",
              "1"
            ],
            [
              5624,
              "10",
              "0"
            ],
            [
              5646,
              "10",
              "1"
            ],
            [
              5648,
              "10",
              "0"
            ],
            [
              5708,
              "10",
              "1"
            ],
            [
              5711,
              "u8",
              "call"
            ],
            [
              5712,
              "u8",
              "call"
            ],
            [
              5760,
              "10",
              "1"
            ],
            [
              5763,
              "u8",
              "return"
            ],
            [
              5764,
              "u8",
              "return"
            ],
            [
              5886,
              "10",
              "1"
            ],
            [
              5888,
              "10",
              "0"
            ],
            [
              5974,
              "10",
              "1"
            ],
            [
              5977,
              "u8",
              "call"
            ],
            [
              5978,
              "u8",
              "call"
            ],
            [
              6026,
              "10",
              "1"
            ],
            [
              6029,
              "u8",
              "return"
            ],
            [
              6030,
              "u8",
              "return"
            ],
            [
              6215,
              "10",
              "1"
            ],
            [
              6218,
              "u8",
              "call"
            ],
            [
              6219,
              "u8",
              "call"
            ],
            [
              6267,
              "10",
              "1"
            ],
            [
              6270,
              "u8",
              "return"
            ],
            [
              6271,
              "u8",
              "return"
            ],
            [
              6391,
              "10",
              "1"
            ],
            [
              6393,
              "10",
              "0"
            ],
            [
              6694,
              "10",
              "1"
            ],
            [
              6697,
              "u8",
              "call"
            ],
            [
              6698,
              "u8",
              "call"
            ],
            [
              6746,
              "10",
              "2"
            ],
            [
              6749,
              "u8",
              "call"
            ],
            [
              6750,
              "u8",
              "call"
            ],
            [
              6798,
              "10",
              "3"
            ],
            [
              6801,
              "u8",
              "call"
            ],
            [
              6802,
              "u8",
              "call"
            ],
            [
              6850,
              "10",
              "4"
            ],
            [
              6853,
              "u8",
              "call"
            ],
            [
              6854,
              "u8",
              "call"
            ],
            [
              6902,
              "10",
              "5"
            ],
            [
              6905,
              "u8",
              "call"
            ],
            [
              6906,
              "u8",
              "call"
            ],
            [
              6954,
              "10",
              "5"
            ],
            [
              6957,
              "u8",
              "return"
            ],
            [
              6958,
              "u8",
              "return"
            ],
            [
              7008,
              "10",
              "4"
            ],
            [
              7011,
              "u8",
              "return"
            ],
            [
              7012,
              "u8",
              "return"
            ],
            [
              7062,
              "10",
              "3"
            ],
            [
              7065,
              "u8",
              "return"
            ],
            [
              7066,
              "u8",
              "return"
            ],
            [
              7116,
              "10",
              "2"
            ],
            [
              7119,
              "u8",
              "return"
            ],
            [
              7120,
              "u8",
              "return"
            ],
            [
              7170,
              "10",
              "1"
            ],
            [
              7173,
              "u8",
              "return"
            ],
            [
              7174,
              "u8",
              "return"
            ],
            [
              7301,
              "10",
              "2"
            ],
            [
              7479,
              "10",
              "1"
            ],
            [
              7482,
              "u8",
              "call"
            ],
            [
              7483,
              "u8",
              "call"
            ],
            [
              7606,
              "10",
              "2"
            ],
            [
              7609,
              "u8",
              "call"
            ],
            [
              7610,
              "u8",
              "call"
            ],
            [
              7658,
              "10",
              "2"
            ],
            [
              7661,
              "u8",
              "return"
            ],
            [
              7662,
              "u8",
              "return"
            ],
            [
              7712,
              "10",
              "2"
            ],
            [
              7715,
              "u8",
              "call"
            ],
            [
              7716,
              "u8",
              "call"
            ],
            [
              7764,
              "10",
              "2"
            ],
            [
              7767,
              "u8",
              "return"
            ],
            [
              7768,
              "u8",
              "return"
            ],
            [
              7953,
              "10",
              "2"
            ],
            [
              7956,
              "u8",
              "call"
            ],
            [
              7957,
              "u8",
              "call"
            ],
            [
              8005,
              "10",
              "2"
            ],
            [
              8008,
              "u8",
              "return"
            ],
            [
              8009,
              "u8",
              "return"
            ],
            [
              8059,
              "10",
              "1"
            ],
            [
              8062,
              "u8",
              "return"
            ],
            [
              8063,
              "u8",
              "return"
            ],
            [
              8201,
              "10",
              "2"
            ],
            [
              8355,
              "10",
              "1"
            ],
            [
              8358,
              "u8",
              "call"
            ],
            [
              8359,
              "u8",
              "call"
            ],
            [
              8413,
              "10",
              "2"
            ],
            [
              8416,
              "u8",
              "call"
            ],
            [
              8417,
              "u8",
              "call"
            ],
            [
              8471,
              "10",
              "2"
            ],
            [
              8474,
              "u8",
              "return"
            ],
            [
              8475,
              "u8",
              "return"
            ],
            [
              8493,
              "10",
              "0"
            ],
            [
              8528,
              "10",
              "1"
            ],
            [
              8531,
              "u8",
              "return"
            ],
            [
              8532,
              "u8",
              "return"
            ],
            [
              8687,
              "10",
              "2"
            ],
            [
              8865,
              "10",
              "1"
            ],
            [
              8868,
              "u8",
              "call"
            ],
            [
              8869,
              "u8",
              "call"
            ],
            [
              8992,
              "10",
              "2"
            ],
            [
              8995,
              "u8",
              "call"
            ],
            [
              8996,
              "u8",
              "call"
            ],
            [
              9044,
              "10",
              "2"
            ],
            [
              9047,
              "u8",
              "return"
            ],
            [
              9048,
              "u8",
              "return"
            ],
            [
              9098,
              "10",
              "2"
            ],
            [
              9101,
              "u8",
              "call"
            ],
            [
              9102,
              "u8",
              "call"
            ],
            [
              9150,
              "10",
              "2"
            ],
            [
              9153,
              "u8",
              "return"
            ],
            [
              9154,
              "u8",
              "return"
            ],
            [
              9264,
              "10",
              "2"
            ],
            [
              9267,
              "u8",
              "call"
            ],
            [
              9268,
              "u8",
              "call"
            ],
            [
              9316,
              "10",
              "2"
            ],
            [
              9319,
              "u8",
              "return"
            ],
            [
              9320,
              "u8",
              "return"
            ],
            [
              9370,
              "10",
              "1"
            ],
            [
              9373,
              "u8",
              "return"
            ],
            [
              9374,
              "u8",
              "return"
            ],
            [
              9660,
              "10",
              "1"
            ],
            [
              9663,
              "u8",
              "call"
            ],
            [
              9664,
              "u8",
              "call"
            ],
            [
              9712,
              "10",
              "1"
            ],
            [
              9715,
              "u8",
              "return"
            ],
            [
              9716,
              "u8",
              "return"
            ],
            [
              9835,
              "10",
              "1"
            ],
            [
              9837,
              "10",
              "0"
            ],
            [
              9897,
              "10",
              "1"
            ],
            [
              9900,
              "u8",
              "call"
            ],
            [
              9901,
              "u8",
              "call"
            ],
            [
              9949,
              "10",
              "1"
            ],
            [
              9952,
              "u8",
              "return"
            ],
            [
              9953,
              "u8",
              "return"
            ],
            [
              10078,
              "10",
              "1"
            ],
            [
              10080,
              "10",
              "0"
            ],
            [
              10165,
              "10",
              "1"
            ],
            [
              10168,
              "u8",
              "call"
            ],
            [
              10169,
              "u8",
              "call"
            ],
            [
              10217,
              "10",
              "1"
            ],
            [
              10220,
              "u8",
              "return"
            ],
            [
              10221,
              "u8",
              "return"
            ],
            [
              10341,
              "10",
              "1"
            ],
            [
              10343,
              "10",
              "0"
            ],
            [
              10644,
              "10",
              "1"
            ]
          ],
          "v": {
            "file.stem": "test_sys_setprofile",
            "file.basename": "test_sys_setprofile.py",
            "source.language": "python",
            "source.imports[0]": "Exception",
            "source.imports[1]": "HookWatcher",
            "source.imports[2]": "HookWatcher.__init__",
            "source.imports[3]": "ProfileSimulator",
            "source.imports[4]": "capture_events",
            "source.imports[5]": "dict.get",
            "source.imports[6]": "gc",
            "source.imports[7]": "gc.disable",
            "source.imports[8]": "gc.enable",
            "source.imports[9]": "gc.isenabled",
            "source.strings[0]": "Add an event to the log.",
            "source.strings[1]": "Expected events:\\n%s\\nReceived events:\\n%s",
            "source.strings[2]": "Remove calls to add_event().",
            "source.strings[3]": "__main__",
            "source.strings[4]": "c_call",
            "source.strings[5]": "c_exception",
            "source.strings[6]": "c_return",
            "source.strings[7]": "exception",
            "source.strings[8]": "f_code",
            "source.strings[9]": "falling through",
            "source.has_imports": true,
            "source.imports[10]": "hasattr",
            "source.imports[11]": "ident",
            "source.imports[12]": "len",
            "source.imports[13]": "next",
            "source.imports[14]": "p.add_event",
            "source.imports[15]": "p.get_events",
            "source.imports[16]": "pprint",
            "source.imports[17]": "pprint.pformat",
            "source.imports[18]": "pprint.pprint",
            "source.imports[19]": "protect",
            "source.imports[20]": "range",
            "source.imports[21]": "self.addCleanup",
            "source.imports[22]": "self.add_event",
            "source.imports[23]": "self.assertEqual",
            "source.imports[24]": "self.assertIs",
            "source.imports[25]": "self.assertIsNone",
            "source.imports[26]": "self.check_events",
            "source.imports[27]": "self.events.append",
            "source.imports[28]": "self.fail",
            "source.imports[29]": "self.frames.append",
            "source.imports[30]": "self.frames.index",
            "source.imports[31]": "self.new_watcher",
            "source.imports[32]": "self.stack.append",
            "source.imports[33]": "self.stack.pop",
            "source.imports[34]": "self.testcase.fail",
            "source.imports[35]": "sys",
            "source.imports[36]": "sys._getframe",
            "source.imports[37]": "sys.getprofile",
            "source.imports[38]": "sys.gettrace",
            "source.imports[39]": "sys.setprofile",
            "source.imports[40]": "sys.settrace",
            "source.imports[41]": "unittest",
            "source.imports[42]": "unittest.main",
            "source.strings[10]": "return",
            "source.strings[11]": "the profiler should never receive exception events",
            "source.functions[0]": "__call__",
            "source.functions[1]": "__del__",
            "source.functions[2]": "__init__",
            "source.functions[3]": "add_event",
            "source.functions[4]": "bar",
            "source.functions[5]": "callback",
            "source.functions[6]": "capture_events",
            "source.functions[7]": "check_events",
            "source.functions[8]": "f",
            "source.functions[9]": "fn",
            "source.functions[10]": "foo",
            "source.functions[11]": "g",
            "source.functions[12]": "get_events",
            "source.functions[13]": "h",
            "source.functions[14]": "i",
            "source.functions[15]": "ident",
            "source.functions[16]": "j",
            "source.functions[17]": "new_watcher",
            "source.functions[18]": "protect",
            "source.functions[19]": "setUp",
            "source.functions[20]": "show_events",
            "source.functions[21]": "tearDown",
            "source.functions[22]": "test_basic_exception",
            "source.functions[23]": "test_caught_exception",
            "source.functions[24]": "test_caught_nested_exception",
            "source.functions[25]": "test_distant_exception",
            "source.functions[26]": "test_empty",
            "source.functions[27]": "test_exception",
            "source.functions[28]": "test_exception_in_except_clause",
            "source.functions[29]": "test_exception_propagation",
            "source.functions[30]": "test_generator",
            "source.functions[31]": "test_nested_exception",
            "source.functions[32]": "test_profile_after_trace_opcodes",
            "source.functions[33]": "test_raise",
            "source.functions[34]": "test_raise_reraise",
            "source.functions[35]": "test_raise_twice",
            "source.functions[36]": "test_reentrancy",
            "source.functions[37]": "test_same_object",
            "source.functions[38]": "test_setget",
            "source.functions[39]": "test_simple",
            "source.functions[40]": "test_stop_iteration",
            "source.functions[41]": "test_unbound_method",
            "source.functions[42]": "test_unbound_method_invalid_args",
            "source.functions[43]": "test_unbound_method_invalid_keyword_args",
            "source.functions[44]": "test_unbound_method_no_args",
            "source.functions[45]": "test_unbound_method_no_keyword_args",
            "source.functions[46]": "test_unfinished_generator",
            "source.functions[47]": "trace_call",
            "source.functions[48]": "trace_exception",
            "source.functions[49]": "trace_pass",
            "source.functions[50]": "trace_return"
          },
          "ct": [
            "A",
            "Exception",
            "HookWatcher",
            "HookWatcher.__init__",
            "ProfileSimulator",
            "capture_events",
            "dict.get",
            "f",
            "g",
            "gc.disable",
            "gc.enable",
            "gc.isenabled",
            "h",
            "hasattr",
            "i",
            "ident",
            "len",
            "next",
            "p.add_event",
            "p.get_events",
            "pprint.pformat",
            "pprint.pprint",
            "protect",
            "range",
            "self.addCleanup",
            "self.add_event",
            "self.assertEqual",
            "self.assertIs",
            "self.assertIsNone",
            "self.check_events",
            "self.events.append",
            "self.fail",
            "self.frames.append",
            "self.frames.index",
            "self.new_watcher",
            "self.stack.append",
            "self.stack.pop",
            "self.testcase.fail",
            "sys._getframe",
            "sys.getprofile",
            "sys.gettrace",
            "sys.setprofile",
            "sys.settrace",
            "unittest.main"
          ],
          "id": "python",
          "mc": [
            "HookWatcher.__init__",
            "code.co_firstlineno",
            "code.co_name",
            "dict.get",
            "function.__code__",
            "function.f_code",
            "gc.disable",
            "gc.enable",
            "gc.isenabled",
            "p.add_event",
            "p.callback",
            "p.get_events",
            "pprint.pformat",
            "pprint.pprint",
            "self.addCleanup",
            "self.add_event",
            "self.add_event.__func__",
            "self.assertEqual",
            "self.assertIs",
            "self.assertIsNone",
            "self.check_events",
            "self.dispatch",
            "self.events",
            "self.events.append",
            "self.fail",
            "self.frames",
            "self.frames.append",
            "self.frames.index",
            "self.new_watcher",
            "self.stack",
            "self.stack.append",
            "self.stack.pop",
            "self.testcase",
            "self.testcase.fail",
            "sys._getframe",
            "sys._getframe().f_trace_opcodes",
            "sys.getprofile",
            "sys.gettrace",
            "sys.setprofile",
            "sys.settrace",
            "unittest.TestCase",
            "unittest.main"
          ]
        },
        "id": 0,
        "sz": 14411,
        "ts": [
          {
            "c": 1.0,
            "d": "Python source file extension (.py only)",
            "e": [
              "test_sys_setprofile.py"
            ],
            "i": "metadata/file/extension::python-source-extension",
            "l": 1
          },
          {
            "a": "T1027",
            "c": 0.949999988079071,
            "d": "Python unittest import",
            "e": [
              "\nimport unittest"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/identifiers::python-unittest-import",
            "l": 1,
            "m": "B0032"
          },
          {
            "c": 0.800000011920929,
            "d": "Sequential source identifier names",
            "e": [
              "identifiers.sequential_names = 7.00"
            ],
            "i": "metadata/file/text/profile::sequential-identifiers",
            "l": 2
          },
          {
            "a": "T1027",
            "c": 0.699999988079071,
            "d": "Nested function definitions (closure obfuscation)",
            "e": [
              "functions.nested_functions = 27.00"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/structure::py-nested-functions",
            "l": 2,
            "m": "B0032"
          },
          {
            "a": "T1480",
            "c": 0.9200000166893005,
            "d": "Equality comparison against a quoted hostname-like literal",
            "e": [
              "== \"call\""
            ],
            "i": "objectives/anti-analysis/geofencing/target-gating::hostname-equality-literal",
            "l": 1,
            "m": "B0003"
          },
          {
            "c": 1.0,
            "d": "Python artifact file extension (py/pyi/pyc)",
            "e": [
              "test_sys_setprofile.py"
            ],
            "i": "metadata/file/extension::python-artifact-extension",
            "l": 1
          },
          {
            "c": 0.30000001192092896,
            "d": "for loop (content)",
            "e": [
              " for item in "
            ],
            "i": "micro-behaviors/data/control-flow/analysis::for-loop-content",
            "l": 2
          },
          {
            "c": 0.8500000238418579,
            "d": "Tests path or filename markers",
            "e": [
              "/data/samples/bad/projects/EternalHushFramework/prebuilt/CoreLibs/Lib/test/test_sys_setprofile.py"
            ],
            "i": "metadata/package/testing/presence/harness::tests-path-filename",
            "l": 1
          },
          {
            "c": 1.0,
            "d": "unittest TestCase cleanup context",
            "e": [
              "unittest.TestCase"
            ],
            "i": "objectives/impact/wipe/disk/mass-delete::unittest-testcase-context",
            "l": 1
          },
          {
            "a": "T1195.002",
            "c": 0.9200000166893005,
            "d": "sys.settrace global tracer installation",
            "e": [
              "sys.settrace"
            ],
            "i": "objectives/command-and-control/trigger/activation::sys-settrace-install",
            "l": 3,
            "m": "B0024",
            "el": [
              "3795"
            ]
          },
          {
            "c": 0.8799999952316284,
            "d": "Codebase deletion target",
            "e": [
              "code"
            ],
            "i": "micro-behaviors/data/text/keywords/lexicon::target-codebase",
            "l": 1
          },
          {
            "a": "T1027",
            "c": 0.699999988079071,
            "d": "Many single-char params",
            "e": [
              "functions.single_char_params = 28.00"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/functions::single-char-params",
            "l": 1,
            "m": "B0032"
          },
          {
            "a": "T1027",
            "c": 0.30000001192092896,
            "d": "Python except keyword fragment",
            "e": [
              "except"
            ],
            "i": "objectives/command-and-control/dropper/staging/encrypted::dual-crypto-libcrypto-fallback--rx-8",
            "l": 1,
            "m": "B0032"
          },
          {
            "c": 1.0,
            "d": "Python file extension",
            "e": [
              "test_sys_setprofile.py"
            ],
            "i": "metadata/file/extension::py",
            "l": 2
          },
          {
            "a": "T1027",
            "c": 1.0,
            "d": "Test path basename",
            "e": [
              "/data/samples/bad/projects/EternalHushFramework/prebuilt/CoreLibs/Lib/test"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/identifiers::test-path-basename",
            "l": 1,
            "m": "B0032"
          },
          {
            "a": "T1027",
            "c": 0.949999988079071,
            "d": "Python unittest TestCase marker",
            "e": [
              "\n\n\nclass TestGetProfile(unittest.TestCase):"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/identifiers::python-unittest-testcase-marker",
            "l": 1,
            "m": "B0032"
          },
          {
            "a": "T1027",
            "c": 0.30000001192092896,
            "d": "Python except keyword fragment",
            "e": [
              "except"
            ],
            "i": "objectives/command-and-control/dropper/staging/encrypted::dual-crypto-bcrypt-fallback--rx-4",
            "l": 1,
            "m": "B0032"
          },
          {
            "a": "T1059.006",
            "c": 0.8999999761581421,
            "d": "Regex component marker",
            "e": [
              "functions.count = 59.00"
            ],
            "i": "objectives/command-and-control/backdoor/dispatch/eval::config-string-execution-cond-1--inline-15152",
            "l": 1
          },
          {
            "c": 0.699999988079071,
            "d": "Python test file suffix",
            "e": [
              "test_sys_setprofile.py"
            ],
            "i": "metadata/package/testing/presence/harness::python-test-file",
            "l": 2
          },
          {
            "c": 0.8999999761581421,
            "d": "File has 30 or more lines",
            "e": [
              "text.total_lines = 484.00"
            ],
            "i": "metadata/file/text/metrics::file-has-30-plus-lines",
            "l": 1
          },
          {
            "c": 0.8999999761581421,
            "d": "Destructive delete verb",
            "e": [
              "Remove"
            ],
            "i": "micro-behaviors/data/text/keywords/lexicon::delete-verb",
            "l": 1
          },
          {
            "c": 0.8799999952316284,
            "d": "Source or test deletion target",
            "e": [
              "Test"
            ],
            "i": "micro-behaviors/data/text/keywords/lexicon::target-source-test",
            "l": 1
          },
          {
            "a": "T1027",
            "c": 0.800000011920929,
            "d": "Single-character function names",
            "e": [
              "functions.single_char_names = 37.00"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/functions::single-char-function-names",
            "l": 2,
            "m": "B0032"
          },
          {
            "a": "T1027",
            "c": 0.949999988079071,
            "d": "Python unittest-style test module",
            "e": [
              "\n\n\nclass TestGetProfile(unittest.TestCase):",
              "\nimport unittest"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/identifiers::python-unittest-test-module",
            "l": 1,
            "m": "B0032"
          },
          {
            "a": "T1027",
            "c": 0.8500000238418579,
            "d": "Generated or transformed code",
            "e": [
              "functions.single_char_names = 37.00",
              "functions.single_char_params = 28.00"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/functions::generated-code",
            "l": 3,
            "m": "B0032"
          }
        ],
        "sha": "9dfbb4c3b82c0fbf68d1fe7c56c646dbb64d19a79c81394b6dfb83baf30f7b37",
        "path": "/data/samples/bad/projects/EternalHushFramework/prebuilt/CoreLibs/Lib/test/test_sys_setprofile.py",
        "type": "python"
      }
    ],
    "tv": "8e9ac"
  }
}