{ "alloc_samples": 244, "elapsed_time_sec": 151.09229803085327, "files": { "/home/jeremy/bench_1.py": { "functions": [], "imports": [ "from pathlib import Path", "from time import perf_counter", "from zipfile import ZipFile" ], "leaks": {}, "lines": [ { "end_region_line": 1, "line": "from pathlib import Path\n", "lineno": 1, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 1 }, { "end_region_line": 2, "line": "from time import perf_counter\n", "lineno": 2, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 2 }, { "end_region_line": 3, "line": "from zipfile import ZipFile\n", "lineno": 3, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 3 }, { "end_region_line": 4, "line": "\n", "lineno": 4, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 4 }, { "end_region_line": 5, "line": "from py_fast_trie import XFastTrie\n", "lineno": 5, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 5 }, { "end_region_line": 6, "line": "\n", "lineno": 6, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 6 }, { "end_region_line": 25, "line": "def main():\n", "lineno": 7, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 7 }, { "end_region_line": 25, "line": " t = XFastTrie()\n", "lineno": 8, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 7 }, { "end_region_line": 25, "line": " start = perf_counter()\n", "lineno": 9, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 7 }, { "end_region_line": 25, "line": "\n", "lineno": 10, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 7 }, { "end_region_line": 25, "line": " for i in range(1, 2):\n", "lineno": 11, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 25, "line": " name = f\"primes{i}\"\n", "lineno": 12, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 25, "line": " p = Path(f\"~/{name}.zip\").expanduser()\n", "lineno": 13, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 25, "line": " ctr = 0\n", "lineno": 14, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 25, "line": "\n", "lineno": 15, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 25, "line": " with ZipFile(p) as z:\n", "lineno": 16, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 25, "line": " with z.open(f\"{name}.txt\") as f:\n", "lineno": 17, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 25, "line": " print(f\"opened {name}.txt\")\n", "lineno": 18, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 25, "line": " for l in f.readlines()[2:]:\n", "lineno": 19, "memory_samples": [ [ 1369461977, 10.012939453125 ], [ 1369474227, 20.012954711914062 ], [ 150718123287, 1196.8834819793701 ] ], "n_avg_mb": 0.0, "n_copy_mb_s": 0.19219663077965918, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 20.012954711914062, "n_malloc_mb": 20.012954711914062, "n_mallocs": 0, "n_peak_mb": 20.012954711914062, "n_python_fraction": 0.998979478200537, "n_sys_percent": 0.0, "n_usage_fraction": 0.015611326220299836, "start_region_line": 19 }, { "end_region_line": 25, "line": " for n in l.split():\n", "lineno": 20, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 20 }, { "end_region_line": 25, "line": " t += int(n)\n", "lineno": 21, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 20 }, { "end_region_line": 25, "line": " ctr += 1\n", "lineno": 22, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 20 }, { "end_region_line": 25, "line": "\n", "lineno": 23, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 20 }, { "end_region_line": 25, "line": " if ctr % 100000 == 0:\n", "lineno": 24, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 20 }, { "end_region_line": 25, "line": " print(f\"{ctr}: {perf_counter() - start}\")\n", "lineno": 25, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 20 }, { "end_region_line": 26, "line": "\n", "lineno": 26, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 27, "line": "if __name__ == \"__main__\": main()", "lineno": 27, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 27 } ], "percent_cpu_time": 0.0 }, "/home/jeremy/py-fast-trie/src/py_fast_trie/x_fast.py": { "functions": [ { "line": "TrieNode.__init__", "lineno": 17, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.5759186254056419, "n_core_utilization": 0.24579324155329316, "n_cpu_percent_c": 0.5476114735882648, "n_cpu_percent_python": 0.8649914661610156, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0242624925894336, "n_usage_fraction": 0.0 }, { "line": "XFastTrie._to_int", "lineno": 42, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24675429368235915, "n_cpu_percent_c": 0.12861096043578174, "n_cpu_percent_python": 0.20550227078071737, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.004399698415778635, "n_usage_fraction": 0.0 }, { "line": "XFastTrie._get_closest_ancestor", "lineno": 80, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.10769607854662598, "n_core_utilization": 0.2485825060888573, "n_cpu_percent_c": 1.3328673493106675, "n_cpu_percent_python": 2.1568986732182065, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.020221779211450443, "n_usage_fraction": 0.0 }, { "line": "XFastTrie._get_closest_leaf", "lineno": 108, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.23255512393088235, "n_core_utilization": 0.24963484745617381, "n_cpu_percent_c": 0.6006725886986964, "n_cpu_percent_python": 0.9992167222195786, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.002444622237840687, "n_usage_fraction": 0.0 }, { "line": "XFastTrie.insert", "lineno": 142, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 3.0721788464664352, "n_core_utilization": 0.24778793901229967, "n_cpu_percent_c": 6.621708622194744, "n_cpu_percent_python": 10.650275331761028, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.15562840558267485, "n_usage_fraction": 0.0 }, { "line": "XFastTrie.__iadd__", "lineno": 412, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.2914337045083906, "n_core_utilization": 0.24860223845856042, "n_cpu_percent_c": 0.15095930865841053, "n_cpu_percent_python": 0.24710711494986573, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.002254729543067862, "n_usage_fraction": 0.0 } ], "imports": [ "from __future__ import annotations", "from sys import maxsize", "from typing import Iterable, cast" ], "leaks": {}, "lines": [ { "end_region_line": 1, "line": "################################################################################\n", "lineno": 1, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 1 }, { "end_region_line": 2, "line": "# py-fast-trie #\n", "lineno": 2, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 2 }, { "end_region_line": 3, "line": "# Python library for tries with different grades of fastness #\n", "lineno": 3, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 3 }, { "end_region_line": 4, "line": "# (C) 2020, 2022 Jeremy Brown #\n", "lineno": 4, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 4 }, { "end_region_line": 5, "line": "# Released under Prosperity Public License 3.0.0 #\n", "lineno": 5, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 5 }, { "end_region_line": 6, "line": "################################################################################\n", "lineno": 6, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 6 }, { "end_region_line": 7, "line": "\n", "lineno": 7, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 7 }, { "end_region_line": 8, "line": "from __future__ import annotations\n", "lineno": 8, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 8 }, { "end_region_line": 9, "line": "\n", "lineno": 9, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 9 }, { "end_region_line": 10, "line": "from sys import maxsize\n", "lineno": 10, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 10 }, { "end_region_line": 11, "line": "from typing import Iterable, cast\n", "lineno": 11, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 12, "line": "\n", "lineno": 12, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 12 }, { "end_region_line": 13, "line": "from py_hopscotch_dict import HopscotchDict\n", "lineno": 13, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 13 }, { "end_region_line": 14, "line": "\n", "lineno": 14, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 14 }, { "end_region_line": 15, "line": "\n", "lineno": 15, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 15 }, { "end_region_line": 28, "line": "class TrieNode:\n", "lineno": 16, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 16 }, { "end_region_line": 28, "line": " def __init__(\n", "lineno": 17, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.5759186254056419, "n_core_utilization": 0.24579324155329316, "n_cpu_percent_c": 0.5476114735882648, "n_cpu_percent_python": 0.8649914661610156, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0242624925894336, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " self,\n", "lineno": 18, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " value: int | None,\n", "lineno": 19, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " leaf: bool,\n", "lineno": 20, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " left: TrieNode | None = None,\n", "lineno": 21, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " right: TrieNode | None = None,\n", "lineno": 22, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " ) -\\u003e None:\n", "lineno": 23, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " self.leaf = leaf\n", "lineno": 24, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " self.value = value\n", "lineno": 25, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " self.left = left\n", "lineno": 26, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " self.right = right\n", "lineno": 27, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 28, "line": " self.parent = None\n", "lineno": 28, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 29, "line": "\n", "lineno": 29, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 29 }, { "end_region_line": 30, "line": "\n", "lineno": 30, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 30 }, { "end_region_line": 431, "line": "class XFastTrie:\n", "lineno": 31, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 431, "line": " @staticmethod\n", "lineno": 32, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 40, "line": " def _make_level_tables(levels: int) -\\u003e list[HopscotchDict]:\n", "lineno": 33, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 33 }, { "end_region_line": 40, "line": " \"\"\"\n", "lineno": 34, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 33 }, { "end_region_line": 40, "line": " Creates the dicts used when searching for a value in the trie\n", "lineno": 35, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 33 }, { "end_region_line": 40, "line": "\n", "lineno": 36, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 33 }, { "end_region_line": 40, "line": " :param levels: The number of levels in the trie\n", "lineno": 37, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 33 }, { "end_region_line": 40, "line": " :return: Search structures for each level of the trie\n", "lineno": 38, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 33 }, { "end_region_line": 40, "line": " \"\"\"\n", "lineno": 39, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 33 }, { "end_region_line": 40, "line": " return [HopscotchDict() for _ in range(levels)]\n", "lineno": 40, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 33 }, { "end_region_line": 431, "line": "\n", "lineno": 41, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 431, "line": " @staticmethod\n", "lineno": 42, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24579796601679824, "n_cpu_percent_c": 0.05018917516843023, "n_cpu_percent_python": 0.07924110201740613, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0022143499660687953, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 68, "line": " def _to_int(value: int | bytes, length: int) -\\u003e int:\n", "lineno": 43, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " \"\"\"\n", "lineno": 44, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " Confirm the desired value could be contained in the table,\n", "lineno": 45, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " then perform any necessary conversions to the canonical value format\n", "lineno": 46, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": "\n", "lineno": 47, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " :param value: The value to be converted\n", "lineno": 48, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " :param length: The maximum bit length of a value in the trie\n", "lineno": 49, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " :return: The value converted to an int\n", "lineno": 50, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " \"\"\"\n", "lineno": 51, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " if isinstance(value, int):\n", "lineno": 52, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.25000033631390234, "n_cpu_percent_c": 0.028208343370333948, "n_cpu_percent_python": 0.04701420785143254, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 9.414206403912585e-07, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " if value.bit_length() \\u003e length:\n", "lineno": 53, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.245434605478379, "n_cpu_percent_c": 0.04616460055708027, "n_cpu_percent_python": 0.07253056144891423, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0022089806162218007, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " raise ValueError(\"Value is too big to be stored in trie\")\n", "lineno": 54, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " elif value \\u003c 0:\n", "lineno": 55, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2500244974920699, "n_cpu_percent_c": 0.004024267752784906, "n_cpu_percent_python": 0.00671639946296446, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " raise ValueError(\"Negative values cannot be stored in trie\")\n", "lineno": 56, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " else:\n", "lineno": 57, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " return value\n", "lineno": 58, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": "\n", "lineno": 59, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " elif isinstance(value, bytes):\n", "lineno": 60, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " if len(value) * 8 \\u003e length:\n", "lineno": 61, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " raise ValueError(\"Value is too big to be stored in trie\")\n", "lineno": 62, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": "\n", "lineno": 63, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " else:\n", "lineno": 64, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " return sum(map(lambda t: t[1] \\u003c\\u003c 8 * t[0], enumerate(reversed(value))))\n", "lineno": 65, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": "\n", "lineno": 66, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " else:\n", "lineno": 67, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 68, "line": " raise TypeError(\"Only integers and byte sequences can be stored in trie\")\n", "lineno": 68, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 43 }, { "end_region_line": 431, "line": "\n", "lineno": 69, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 78, "line": " def clear(self) -\\u003e None:\n", "lineno": 70, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 78, "line": " \"\"\"\n", "lineno": 71, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 78, "line": " Empty the trie of all values\n", "lineno": 72, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 78, "line": " \"\"\"\n", "lineno": 73, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 78, "line": " self._count = 0\n", "lineno": 74, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 78, "line": " self._level_tables = self._make_level_tables(self._maxlen)\n", "lineno": 75, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 78, "line": " self._min: TrieNode | None = None\n", "lineno": 76, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 78, "line": " self._max: TrieNode | None = None\n", "lineno": 77, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 78, "line": " self._root = TrieNode(None, False)\n", "lineno": 78, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 70 }, { "end_region_line": 431, "line": "\n", "lineno": 79, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 106, "line": " def _get_closest_ancestor(self, value: int) -\\u003e tuple[TrieNode, int]:\n", "lineno": 80, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24996779799960256, "n_cpu_percent_c": 0.0604364386137323, "n_cpu_percent_python": 0.10073008270585933, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 2.5454527330357505e-05, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " \"\"\"\n", "lineno": 81, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " Find the node in the trie with the longest prefix that matches the given value\n", "lineno": 82, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": "\n", "lineno": 83, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " :param value: The value to search for\n", "lineno": 84, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " :return: The node with the longest prefix matching the given value,\n", "lineno": 85, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " and its depth in the trie\n", "lineno": 86, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " \"\"\"\n", "lineno": 87, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " result = self._root\n", "lineno": 88, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " # Moving the root node out of the level tables allows for storing n-bit integers\n", "lineno": 89, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " result_level = -1\n", "lineno": 90, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": "\n", "lineno": 91, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " low_side = 0\n", "lineno": 92, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " high_side = self._maxlen - 1\n", "lineno": 93, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": "\n", "lineno": 94, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 104, "line": " while low_side \\u003c= high_side:\n", "lineno": 95, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.10769607854662598, "n_core_utilization": 0.24848367474978622, "n_cpu_percent_c": 0.9763257288770604, "n_cpu_percent_python": 1.5686133146883174, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.01580321226959748, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": " level = (low_side + high_side) // 2\n", "lineno": 96, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": " prefix = value \\u003e\\u003e (self._maxlen - level - 1)\n", "lineno": 97, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": "\n", "lineno": 98, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": " if prefix not in self._level_tables[level]:\n", "lineno": 99, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24861601274667264, "n_cpu_percent_c": 0.29609126842649625, "n_cpu_percent_python": 0.48755527582402985, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.00440702580790118, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": " high_side = level - 1\n", "lineno": 100, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": " else:\n", "lineno": 101, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": " result = self._level_tables[level][prefix]\n", "lineno": 102, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": " result_level = level\n", "lineno": 103, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 104, "line": " low_side = level + 1\n", "lineno": 104, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 95 }, { "end_region_line": 106, "line": "\n", "lineno": 105, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 106, "line": " return (result, result_level)\n", "lineno": 106, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 80 }, { "end_region_line": 431, "line": "\n", "lineno": 107, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 140, "line": " def _get_closest_leaf(self, value: int) -\\u003e TrieNode | None:\n", "lineno": 108, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.249993061091601, "n_cpu_percent_c": 0.07567715751882201, "n_cpu_percent_python": 0.1276002758852626, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 1.8023964184411243e-05, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " \"\"\"\n", "lineno": 109, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " Find the leaf in the trie with the value closest to the given value\n", "lineno": 110, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": "\n", "lineno": 111, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " :param value: The value to search for\n", "lineno": 112, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " :return: The leaf with the closest value to the given value\n", "lineno": 113, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " \"\"\"\n", "lineno": 114, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " result = None\n", "lineno": 115, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " ancestor, level = self._get_closest_ancestor(value)\n", "lineno": 116, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.23255512393088235, "n_core_utilization": 0.24996588360587008, "n_cpu_percent_c": 0.11652851487624158, "n_cpu_percent_python": 0.19474247294815078, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 5.292447124091838e-05, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": "\n", "lineno": 117, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " # The value is stored in the trie and therefore is the closest leaf to itself\n", "lineno": 118, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " if ancestor.leaf:\n", "lineno": 119, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24999461336737153, "n_cpu_percent_c": 0.012091957039263763, "n_cpu_percent_python": 0.02014806465074881, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 1.814156496183895e-06, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " return ancestor\n", "lineno": 120, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": "\n", "lineno": 121, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " # The pointer to the next level down is a descendant pointer\n", "lineno": 122, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " # and may be larger or smaller than the given value, depending on the leg\n", "lineno": 123, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " else:\n", "lineno": 124, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " leg = bin(value)[2:].zfill(self._maxlen)[level + 1]\n", "lineno": 125, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24937585560340647, "n_cpu_percent_c": 0.34003997705675537, "n_cpu_percent_python": 0.5627329161166617, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.002317583860400209, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " descendant = ancestor.left if leg == \"0\" else ancestor.right\n", "lineno": 126, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24993001054670239, "n_cpu_percent_c": 0.024141218640240637, "n_cpu_percent_python": 0.04028702467596815, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 1.8186613404179557e-05, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": "\n", "lineno": 127, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " if descendant is not None:\n", "lineno": 128, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " # The descendant pointer only points to values\n", "lineno": 129, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " # on the other leg of the ancestor;\n", "lineno": 130, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " # make sure there is no leaf not a child of the ancestor which is closer\n", "lineno": 131, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " candidate = descendant.left if leg == \"0\" else descendant.right\n", "lineno": 132, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24993538524760803, "n_cpu_percent_c": 0.02816461024055691, "n_cpu_percent_python": 0.046989568479821595, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 4.0348777717217755e-05, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": "\n", "lineno": 133, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " if candidate is None or abs(descendant.value - value) \\u003c abs(\n", "lineno": 134, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2500300148575052, "n_cpu_percent_c": 0.004024893721214152, "n_cpu_percent_python": 0.00671639946296446, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " candidate.value - value\n", "lineno": 135, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " ):\n", "lineno": 136, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " result = descendant\n", "lineno": 137, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " else:\n", "lineno": 138, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " result = candidate\n", "lineno": 139, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 140, "line": " return result\n", "lineno": 140, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 108 }, { "end_region_line": 431, "line": "\n", "lineno": 141, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 229, "line": " def insert(self, value: int | bytes) -\\u003e None:\n", "lineno": 142, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24997654260981397, "n_cpu_percent_c": 0.05640238925833718, "n_cpu_percent_python": 0.09401852250941212, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 1.7710928130154832e-05, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " \"\"\"\n", "lineno": 143, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " Add the given value to the trie\n", "lineno": 144, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 145, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " :param value: The value to add to the trie\n", "lineno": 146, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " \"\"\"\n", "lineno": 147, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " value = self._to_int(value, self._maxlen)\n", "lineno": 148, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.23333251413609993, "n_cpu_percent_c": 0.013773265179343604, "n_cpu_percent_python": 0.018805639179183122, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0023275830497493143, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 149, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " # Do nothing if the value is already in the trie\n", "lineno": 150, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " if value in self._level_tables[-1]:\n", "lineno": 151, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24879844178950053, "n_cpu_percent_c": 0.024067712658524348, "n_cpu_percent_python": 0.04010348358355932, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0003118884375936905, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " return\n", "lineno": 152, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 153, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " leaf_pred = leaf_succ = None\n", "lineno": 154, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 155, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " if self._count \\u003e 0:\n", "lineno": 156, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " neighbor = self._get_closest_leaf(value)\n", "lineno": 157, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24997466292203835, "n_cpu_percent_c": 0.03220187143741637, "n_cpu_percent_python": 0.05372030968027898, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 1.7411494515689695e-05, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 158, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " # The closest leaf is the predecessor of the value to be inserted\n", "lineno": 159, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " if neighbor.value \\u003c value:\n", "lineno": 160, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " leaf_pred = neighbor\n", "lineno": 161, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " leaf_succ = neighbor.right\n", "lineno": 162, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 163, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " # The closest leaf is the successor of the value to be inserted\n", "lineno": 164, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " elif neighbor.value \\u003e value:\n", "lineno": 165, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " leaf_succ = neighbor\n", "lineno": 166, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " leaf_pred = neighbor.left\n", "lineno": 167, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 168, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " leaf_node = TrieNode(value, True, leaf_pred, leaf_succ)\n", "lineno": 169, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.9750799299187223, "n_core_utilization": 0.24744656306882984, "n_cpu_percent_c": 0.2281088389803292, "n_cpu_percent_python": 0.3720603495720038, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.006545977785040467, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " value_bits = bin(value)[2:].zfill(self._maxlen)\n", "lineno": 170, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.07988538535274407, "n_core_utilization": 0.2442663318249437, "n_cpu_percent_c": 0.1480290753530355, "n_cpu_percent_python": 0.22967424179283902, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.008879966126398766, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 171, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " # Get ancestor node for new intermediate nodes\n", "lineno": 172, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " curr_node, depth = self._get_closest_ancestor(value)\n", "lineno": 173, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24806551116500755, "n_cpu_percent_c": 0.10664453962219744, "n_cpu_percent_python": 0.17327138617819304, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.002188971002797675, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": "\n", "lineno": 174, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 218, "line": " for level in range(depth, self._maxlen - 1):\n", "lineno": 175, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24412536360205178, "n_cpu_percent_c": 0.07210953874442388, "n_cpu_percent_python": 0.11148713225211589, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.004432615242607619, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " desc_value = int(value_bits[: level + 2], 2)\n", "lineno": 176, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 1.592491297081016, "n_core_utilization": 0.24755825048933133, "n_cpu_percent_c": 1.020132935357983, "n_cpu_percent_python": 1.6360169376647193, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.026329592698560226, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " desc_leg = value_bits[level + 1]\n", "lineno": 177, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 178, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " # Inserting leaf node\n", "lineno": 179, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " if level == self._maxlen - 2:\n", "lineno": 180, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24986502467929297, "n_cpu_percent_c": 0.2214278987004, "n_cpu_percent_python": 0.3691702727955621, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0003706696579855471, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " descendant = leaf_node\n", "lineno": 181, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 182, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " # Update global min/max pointers as necessary\n", "lineno": 183, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " if self._min is None or value \\u003c cast(int, self._min.value):\n", "lineno": 184, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24984738659886427, "n_cpu_percent_c": 0.1277689394942658, "n_cpu_percent_python": 0.19455012474927585, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.00037352816972059807, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " self._min = descendant\n", "lineno": 185, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 186, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " if self._max is None or value \\u003e cast(int, self._max.value):\n", "lineno": 187, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2500050528398797, "n_cpu_percent_c": 0.04025477771100243, "n_cpu_percent_python": 0.06716278425254979, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 1.9358303564582073e-06, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " self._max = descendant\n", "lineno": 188, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 189, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " # Wire the new leaf into the linked list at the bottom\n", "lineno": 190, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " if leaf_pred is not None:\n", "lineno": 191, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " leaf_pred.right = descendant\n", "lineno": 192, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 193, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " if leaf_succ is not None:\n", "lineno": 194, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24998267526611354, "n_cpu_percent_c": 0.06845518282196325, "n_cpu_percent_python": 0.1141653920289809, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 2.1432976123843082e-05, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " leaf_succ.left = descendant\n", "lineno": 195, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 196, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " # Inserting intermediate node\n", "lineno": 197, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " else:\n", "lineno": 198, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " descendant = TrieNode(desc_value, False, None, None)\n", "lineno": 199, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.14441283339295152, "n_core_utilization": 0.24800711226463057, "n_cpu_percent_c": 0.6274913098632946, "n_cpu_percent_python": 1.0193821086623975, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.013291230641410787, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 200, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " # Point the descendant node back to its parent\n", "lineno": 201, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " descendant.parent = curr_node\n", "lineno": 202, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 203, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " # Point the parent at its new descendant node,\n", "lineno": 204, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " # making descendant pointers to the new leaf as necessary\n", "lineno": 205, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " if desc_leg == \"0\":\n", "lineno": 206, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24992407768604397, "n_cpu_percent_c": 0.08853120361390021, "n_cpu_percent_python": 0.14769939995388648, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 9.818441336909505e-05, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " curr_node.left = descendant\n", "lineno": 207, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 208, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " if curr_node.right is None:\n", "lineno": 209, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " curr_node.right = leaf_node\n", "lineno": 210, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " else:\n", "lineno": 211, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " curr_node.right = descendant\n", "lineno": 212, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 213, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " if curr_node.left is None:\n", "lineno": 214, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24164789800021053, "n_cpu_percent_c": 0.02596249835171881, "n_cpu_percent_python": 0.03894904946693054, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0022487897314920537, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " curr_node.left = leaf_node\n", "lineno": 215, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": "\n", "lineno": 216, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " self._level_tables[level + 1][desc_value] = descendant\n", "lineno": 217, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 218, "line": " curr_node = descendant\n", "lineno": 218, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24508047339869418, "n_cpu_percent_c": 0.24475003562421613, "n_cpu_percent_python": 0.38186736912547237, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.012608573113333436, "n_usage_fraction": 0.0, "start_region_line": 175 }, { "end_region_line": 229, "line": "\n", "lineno": 219, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " # Walk up the trie from the leaf node, updating descendant pointers as necessary\n", "lineno": 220, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 227, "line": " while curr_node is not None:\n", "lineno": 221, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.2803094007210013, "n_core_utilization": 0.24791137191328444, "n_cpu_percent_c": 2.208379546974621, "n_cpu_percent_python": 3.5430795723058086, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.048771768196924144, "n_usage_fraction": 0.0, "start_region_line": 221 }, { "end_region_line": 227, "line": " if not curr_node.leaf:\n", "lineno": 222, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2499555511482263, "n_cpu_percent_c": 0.03623675215272807, "n_cpu_percent_python": 0.06043553535391694, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 1.929079770522934e-05, "n_usage_fraction": 0.0, "start_region_line": 221 }, { "end_region_line": 227, "line": " if curr_node.left.leaf and curr_node.left.value \\u003e value:\n", "lineno": 223, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2481755943398786, "n_cpu_percent_c": 1.0642728495791856, "n_cpu_percent_python": 1.7200612322390099, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.020671049384946474, "n_usage_fraction": 0.0, "start_region_line": 221 }, { "end_region_line": 227, "line": " curr_node.left = leaf_node\n", "lineno": 224, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 221 }, { "end_region_line": 227, "line": " elif curr_node.right.leaf and curr_node.right.value \\u003c value:\n", "lineno": 225, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24623299059361387, "n_cpu_percent_c": 0.16619513338694092, "n_cpu_percent_python": 0.2645944884149326, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.006612563232828573, "n_usage_fraction": 0.0, "start_region_line": 221 }, { "end_region_line": 227, "line": " curr_node.right = leaf_node\n", "lineno": 226, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 221 }, { "end_region_line": 227, "line": " curr_node = curr_node.parent\n", "lineno": 227, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 221 }, { "end_region_line": 229, "line": "\n", "lineno": 228, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 229, "line": " self._count += 1\n", "lineno": 229, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 431, "line": "\n", "lineno": 230, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 248, "line": " def predecessor(self, value: int) -\\u003e TrieNode | None:\n", "lineno": 231, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " \"\"\"\n", "lineno": 232, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " Find the largest value in the trie strictly less than the given value\n", "lineno": 233, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": "\n", "lineno": 234, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " :param value: The value to find the predecessor for\n", "lineno": 235, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " :return: The leaf with the largest value strictly less than the given value,\n", "lineno": 236, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " or None if the value is at most the value of the smallest leaf\n", "lineno": 237, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " \"\"\"\n", "lineno": 238, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " value = self._to_int(value, self._maxlen)\n", "lineno": 239, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " node = self._get_closest_leaf(value)\n", "lineno": 240, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": "\n", "lineno": 241, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " # This should only happen if there are no values in the trie,\n", "lineno": 242, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " # But if it could also happen because of some unconsidered edge case,\n", "lineno": 243, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " # make some noise so the edge case can be fixed\n", "lineno": 244, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " if node is None:\n", "lineno": 245, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " raise ValueError(\"No values exist in trie\")\n", "lineno": 246, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " else:\n", "lineno": 247, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 248, "line": " return node.left if node.value \\u003e= value else node\n", "lineno": 248, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 231 }, { "end_region_line": 431, "line": "\n", "lineno": 249, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 339, "line": " def remove(self, value: int | bytes) -\\u003e None:\n", "lineno": 250, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " \"\"\"\n", "lineno": 251, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " Remove the given value from the trie\n", "lineno": 252, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": "\n", "lineno": 253, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " :param value: The value to remove from the trie\n", "lineno": 254, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " \"\"\"\n", "lineno": 255, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " value = self._to_int(value, self._maxlen)\n", "lineno": 256, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " curr_node = self._level_tables[-1].get(value)\n", "lineno": 257, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": "\n", "lineno": 258, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " # Error when trying to remove a value that hasn't been added\n", "lineno": 259, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " if curr_node is None:\n", "lineno": 260, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " raise ValueError(\"Value does not exist in trie\")\n", "lineno": 261, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " else:\n", "lineno": 262, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " leaf_pred = curr_node.left\n", "lineno": 263, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " leaf_succ = curr_node.right\n", "lineno": 264, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " value_bits = bin(value)[2:].zfill(self._maxlen)\n", "lineno": 265, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " curr_level = self._maxlen - 1\n", "lineno": 266, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": "\n", "lineno": 267, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " # Walk up the trie from the leaf node,\n", "lineno": 268, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " # modifying/removing internal nodes as necessary\n", "lineno": 269, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 337, "line": " while curr_node is not None:\n", "lineno": 270, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " parent = curr_node.parent\n", "lineno": 271, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " should_delete = False\n", "lineno": 272, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 273, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " # Removing leaf node\n", "lineno": 274, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if curr_node.leaf:\n", "lineno": 275, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " should_delete = True\n", "lineno": 276, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 277, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " # Remove the node from the linked list\n", "lineno": 278, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if leaf_pred is not None:\n", "lineno": 279, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " leaf_pred.right = leaf_succ\n", "lineno": 280, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 281, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if leaf_succ is not None:\n", "lineno": 282, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " leaf_succ.left = leaf_pred\n", "lineno": 283, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 284, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " # Root updates\n", "lineno": 285, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " elif parent is None:\n", "lineno": 286, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if self._min.value == value:\n", "lineno": 287, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " self._min = leaf_succ\n", "lineno": 288, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 289, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if self._max.value == value:\n", "lineno": 290, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " self._max = leaf_pred\n", "lineno": 291, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 292, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " # Removing intermediate nodes\n", "lineno": 293, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " else:\n", "lineno": 294, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " valid_left = valid_right = False\n", "lineno": 295, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 296, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if curr_node.left is not None:\n", "lineno": 297, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " ptr_level = -1 if curr_node.left.leaf else curr_level + 1\n", "lineno": 298, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if curr_node.left.value in self._level_tables[ptr_level]:\n", "lineno": 299, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " valid_left = True\n", "lineno": 300, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 301, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if curr_node.right is not None:\n", "lineno": 302, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " ptr_level = -1 if curr_node.right.leaf else curr_level + 1\n", "lineno": 303, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if curr_node.right.value in self._level_tables[ptr_level]:\n", "lineno": 304, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " valid_right = True\n", "lineno": 305, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 306, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " should_delete = not (valid_left or valid_right)\n", "lineno": 307, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 308, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " # Trim pointers between the target node at the start of this loop,\n", "lineno": 309, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " # its parent and its descendants\n", "lineno": 310, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if should_delete:\n", "lineno": 311, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " node_bits = bin(curr_node.value)[2:].zfill(curr_level + 1)\n", "lineno": 312, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if node_bits[-1] == \"0\":\n", "lineno": 313, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " parent.left = None\n", "lineno": 314, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 315, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if parent.right == curr_node:\n", "lineno": 316, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " parent.right = None\n", "lineno": 317, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " else:\n", "lineno": 318, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " parent.right = None\n", "lineno": 319, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 320, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if parent.left == curr_node:\n", "lineno": 321, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " parent.left = None\n", "lineno": 322, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 323, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " del self._level_tables[curr_level][curr_node.value]\n", "lineno": 324, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " curr_node.left = curr_node.right = curr_node.parent = None\n", "lineno": 325, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " del curr_node\n", "lineno": 326, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 327, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " # Update any dangling descendant pointers for intermediate nodes that remain\n", "lineno": 328, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " else:\n", "lineno": 329, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if curr_node.left is None or curr_node.left.value == value:\n", "lineno": 330, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " curr_node.left = leaf_succ\n", "lineno": 331, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 332, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " if curr_node.right is None or curr_node.right.value == value:\n", "lineno": 333, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " curr_node.right = leaf_pred\n", "lineno": 334, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": "\n", "lineno": 335, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " curr_node = parent\n", "lineno": 336, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 337, "line": " curr_level -= 1\n", "lineno": 337, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 270 }, { "end_region_line": 339, "line": "\n", "lineno": 338, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 339, "line": " self._count -= 1\n", "lineno": 339, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 250 }, { "end_region_line": 431, "line": "\n", "lineno": 340, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 358, "line": " def successor(self, value: int) -\\u003e TrieNode | None:\n", "lineno": 341, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " \"\"\"\n", "lineno": 342, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " Find the smallest value in the trie strictly greater than the given value\n", "lineno": 343, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": "\n", "lineno": 344, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " :param value: The value to find the successor for\n", "lineno": 345, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " :return: The leaf with the smallest value strictly greater than the given value,\n", "lineno": 346, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " or None if the value is at least the value of the largest leaf\n", "lineno": 347, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " \"\"\"\n", "lineno": 348, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " value = self._to_int(value, self._maxlen)\n", "lineno": 349, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " node = self._get_closest_leaf(value)\n", "lineno": 350, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": "\n", "lineno": 351, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " # This should only happen if there are no values in the trie,\n", "lineno": 352, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " # But if it could also happen because of some unconsidered edge case,\n", "lineno": 353, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " # make some noise so the edge case can be fixed\n", "lineno": 354, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " if node is None:\n", "lineno": 355, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " raise ValueError(\"No values exist in trie\")\n", "lineno": 356, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " else:\n", "lineno": 357, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 358, "line": " return node.right if node.value \\u003c= value else node\n", "lineno": 358, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 341 }, { "end_region_line": 431, "line": "\n", "lineno": 359, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 431, "line": " @property\n", "lineno": 360, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 368, "line": " def max(self) -\\u003e int | None:\n", "lineno": 361, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 361 }, { "end_region_line": 368, "line": " \"\"\"\n", "lineno": 362, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 361 }, { "end_region_line": 368, "line": " The maximum value in the trie\n", "lineno": 363, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 361 }, { "end_region_line": 368, "line": "\n", "lineno": 364, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 361 }, { "end_region_line": 368, "line": " :return: The maximum value in the trie,\n", "lineno": 365, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 361 }, { "end_region_line": 368, "line": " or None if the trie is empty\n", "lineno": 366, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 361 }, { "end_region_line": 368, "line": " \"\"\"\n", "lineno": 367, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 361 }, { "end_region_line": 368, "line": " return self._max.value if self._max is not None else self._max\n", "lineno": 368, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 361 }, { "end_region_line": 431, "line": "\n", "lineno": 369, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 431, "line": " @property\n", "lineno": 370, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 378, "line": " def max_node(self) -\\u003e TrieNode | None:\n", "lineno": 371, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 371 }, { "end_region_line": 378, "line": " \"\"\"\n", "lineno": 372, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 371 }, { "end_region_line": 378, "line": " The node related to the maximum value in the trie\n", "lineno": 373, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 371 }, { "end_region_line": 378, "line": "\n", "lineno": 374, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 371 }, { "end_region_line": 378, "line": " :return: The maximum value in the trie,\n", "lineno": 375, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 371 }, { "end_region_line": 378, "line": " or None if the trie is empty\n", "lineno": 376, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 371 }, { "end_region_line": 378, "line": " \"\"\"\n", "lineno": 377, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 371 }, { "end_region_line": 378, "line": " return self._max\n", "lineno": 378, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 371 }, { "end_region_line": 431, "line": "\n", "lineno": 379, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 431, "line": " @property\n", "lineno": 380, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 388, "line": " def min(self) -\\u003e int | None:\n", "lineno": 381, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 381 }, { "end_region_line": 388, "line": " \"\"\"\n", "lineno": 382, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 381 }, { "end_region_line": 388, "line": " The minimum value in the trie\n", "lineno": 383, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 381 }, { "end_region_line": 388, "line": "\n", "lineno": 384, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 381 }, { "end_region_line": 388, "line": " :return: The minimum value in the trie,\n", "lineno": 385, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 381 }, { "end_region_line": 388, "line": " or None if the trie is empty\n", "lineno": 386, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 381 }, { "end_region_line": 388, "line": " \"\"\"\n", "lineno": 387, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 381 }, { "end_region_line": 388, "line": " return self._min.value if self._min is not None else self._min\n", "lineno": 388, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 381 }, { "end_region_line": 431, "line": "\n", "lineno": 389, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 431, "line": " @property\n", "lineno": 390, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 398, "line": " def min_node(self) -\\u003e TrieNode | None:\n", "lineno": 391, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 391 }, { "end_region_line": 398, "line": " \"\"\"\n", "lineno": 392, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 391 }, { "end_region_line": 398, "line": " The node related to the minimum value in the trie\n", "lineno": 393, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 391 }, { "end_region_line": 398, "line": "\n", "lineno": 394, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 391 }, { "end_region_line": 398, "line": " :return: The minimum value in the trie,\n", "lineno": 395, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 391 }, { "end_region_line": 398, "line": " or None if the trie is empty\n", "lineno": 396, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 391 }, { "end_region_line": 398, "line": " \"\"\"\n", "lineno": 397, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 391 }, { "end_region_line": 398, "line": " return self._min\n", "lineno": 398, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 391 }, { "end_region_line": 431, "line": "\n", "lineno": 399, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 402, "line": " def __init__(self, max_length: int = (maxsize.bit_length() + 1)) -\\u003e None:\n", "lineno": 400, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 400 }, { "end_region_line": 402, "line": " self._maxlen = max_length\n", "lineno": 401, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 400 }, { "end_region_line": 402, "line": " self.clear()\n", "lineno": 402, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 400 }, { "end_region_line": 431, "line": "\n", "lineno": 403, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 406, "line": " def __contains__(self, value: int | bytes) -\\u003e bool:\n", "lineno": 404, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 404 }, { "end_region_line": 406, "line": " value = self._to_int(value, self._maxlen)\n", "lineno": 405, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 404 }, { "end_region_line": 406, "line": " return value in self._level_tables[-1]\n", "lineno": 406, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 404 }, { "end_region_line": 431, "line": "\n", "lineno": 407, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 410, "line": " def __gt__(self, value: int | bytes) -\\u003e int | None:\n", "lineno": 408, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 408 }, { "end_region_line": 410, "line": " result = self.successor(value)\n", "lineno": 409, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 408 }, { "end_region_line": 410, "line": " return result.value if result is not None else result\n", "lineno": 410, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 408 }, { "end_region_line": 431, "line": "\n", "lineno": 411, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 414, "line": " def __iadd__(self, value: int | bytes) -\\u003e XFastTrie:\n", "lineno": 412, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24968598128639585, "n_cpu_percent_c": 0.015989619182163524, "n_cpu_percent_python": 0.026830680333635223, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 5.572645084092084e-05, "n_usage_fraction": 0.0, "start_region_line": 412 }, { "end_region_line": 414, "line": " self.insert(value)\n", "lineno": 413, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.2914337045083906, "n_core_utilization": 0.2484708756915501, "n_cpu_percent_c": 0.13496773696779957, "n_cpu_percent_python": 0.2202764346162305, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0022009556006744526, "n_usage_fraction": 0.0, "start_region_line": 412 }, { "end_region_line": 414, "line": " return self\n", "lineno": 414, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 412 }, { "end_region_line": 431, "line": "\n", "lineno": 415, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 418, "line": " def __isub__(self, value: int | bytes) -\\u003e XFastTrie:\n", "lineno": 416, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 416 }, { "end_region_line": 418, "line": " self.remove(value)\n", "lineno": 417, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 416 }, { "end_region_line": 418, "line": " return self\n", "lineno": 418, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 416 }, { "end_region_line": 431, "line": "\n", "lineno": 419, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 424, "line": " def __iter__(self) -\\u003e Iterable[int]:\n", "lineno": 420, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 420 }, { "end_region_line": 424, "line": " node = self._min\n", "lineno": 421, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 420 }, { "end_region_line": 424, "line": " while node is not None:\n", "lineno": 422, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 422 }, { "end_region_line": 424, "line": " yield cast(int, node.value)\n", "lineno": 423, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 422 }, { "end_region_line": 424, "line": " node = node.right\n", "lineno": 424, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 422 }, { "end_region_line": 431, "line": "\n", "lineno": 425, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 427, "line": " def __len__(self) -\\u003e int:\n", "lineno": 426, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 426 }, { "end_region_line": 427, "line": " return self._count\n", "lineno": 427, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 426 }, { "end_region_line": 431, "line": "\n", "lineno": 428, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 31 }, { "end_region_line": 431, "line": " def __lt__(self, value: int | bytes) -\\u003e int | None:\n", "lineno": 429, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 429 }, { "end_region_line": 431, "line": " result = self.predecessor(value)\n", "lineno": 430, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 429 }, { "end_region_line": 431, "line": " return result.value if result is not None else result\n", "lineno": 431, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 429 } ], "percent_cpu_time": 24.715633609557262 }, "/home/jeremy/py-hopscotch-dict/src/py_hopscotch_dict/hopscotchdict.py": { "functions": [ { "line": "HopscotchDict._make_lookup_tables", "lineno": 51, "memory_samples": [ [ 21973350838, 203.6418514251709 ], [ 27769239870, 247.80770683288574 ], [ 30473046513, 269.4651393890381 ], [ 37023677214, 320.7055187225342 ], [ 42927278705, 371.62711906433105 ], [ 53997976351, 459.9036693572998 ], [ 61524540326, 521.1508312225342 ], [ 72676513885, 603.4564342498779 ], [ 83399082015, 697.123212814331 ], [ 118611168840, 994.7444744110107 ], [ 120901134859, 1010.7515926361084 ], [ 120901145217, 994.7515544891357 ], [ 125165629504, 1030.3659496307373 ], [ 135266533783, 1074.6185054779053 ], [ 143777508840, 1156.318006515503 ], [ 1369496286, 30.1147518157959 ], [ 3519447009, 50.44434928894043 ], [ 14248175357, 141.8136043548584 ], [ 44209855700, 385.6571636199951 ], [ 83399115925, 713.0296335220337 ], [ 83399136759, 697.029595375061 ], [ 118611203255, 1010.6508951187134 ], [ 118611219198, 994.6508569717407 ], [ 120901180952, 1010.6577081680298 ], [ 125165662659, 1046.27237033844 ], [ 125165676683, 1030.2723321914673 ] ], "n_avg_mb": 14.04776854948564, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24176462191637205, "n_cpu_percent_c": 0.7769952075365296, "n_cpu_percent_python": 0.2792430934169447, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 23.627734184265137, "n_malloc_mb": 309.0509080886841, "n_mallocs": 22, "n_peak_mb": 23.627734184265137, "n_python_fraction": 0.9999927518775905, "n_sys_percent": 0.036168625322200186, "n_usage_fraction": 0.2410785720701263 }, { "line": "HopscotchDict._free_up", "lineno": 142, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24286423654924919, "n_cpu_percent_c": 0.029962004138344083, "n_cpu_percent_python": 0.04566780880849695, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0022307268555477994, "n_usage_fraction": 0.0 }, { "line": "HopscotchDict._get_open_neighbor", "lineno": 260, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24832950816646032, "n_cpu_percent_c": 2.0676103329258337, "n_cpu_percent_python": 3.3887723785788593, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.037288401263543255, "n_usage_fraction": 0.0 }, { "line": "HopscotchDict._lookup", "lineno": 285, "memory_samples": [ [ 2571271224, 40.303274154663086 ], [ 4864941230, 60.53864097595215 ], [ 6038492448, 70.63293266296387 ], [ 7249954742, 80.72719383239746 ], [ 9583720698, 100.95528221130371 ], [ 12166380097, 121.1438045501709 ], [ 17518527114, 162.01364707946777 ], [ 18567129359, 172.1079158782959 ], [ 19652061584, 182.20218467712402 ], [ 21151144733, 192.29645347595215 ], [ 23957421183, 213.7361125946045 ], [ 26099410920, 233.92465019226074 ], [ 32320727083, 279.55939292907715 ], [ 34021591506, 289.6536464691162 ], [ 38564483522, 330.79977226257324 ], [ 40656383298, 350.9883403778076 ], [ 42555794856, 361.0826244354248 ], [ 46181313795, 385.65731620788574 ], [ 49430100816, 416.0494747161865 ], [ 56898601889, 469.99792289733887 ], [ 57856985165, 480.09218406677246 ], [ 58936220468, 490.18646812438965 ], [ 60132423379, 500.2807369232178 ], [ 61138217175, 510.3750286102295 ], [ 67637626914, 551.7276363372803 ], [ 68759868708, 561.8218898773193 ], [ 70965215862, 582.0104503631592 ], [ 74569381070, 613.5507259368896 ], [ 75696408495, 623.6449947357178 ], [ 77728488773, 643.8335552215576 ], [ 78786439707, 653.9278316497803 ], [ 79710543871, 664.0221004486084 ], [ 82454801707, 674.1163845062256 ], [ 87367238453, 707.2181224822998 ], [ 90527465618, 737.9076671600342 ], [ 92529167925, 758.6157131195068 ], [ 93676413410, 768.709981918335 ], [ 94827604575, 778.8042583465576 ], [ 95978035671, 788.8985118865967 ], [ 97921855155, 809.0870265960693 ], [ 103161811917, 839.7969722747803 ], [ 104350690025, 849.8912258148193 ], [ 105526729540, 859.985517501831 ], [ 106696532216, 870.0798015594482 ], [ 108700337885, 890.26833152771 ], [ 109779549081, 900.3626003265381 ], [ 110949397127, 910.4568538665771 ], [ 112098625129, 920.5511226654053 ], [ 112864415450, 930.6453838348389 ], [ 114047032462, 940.7396450042725 ], [ 115223560882, 950.8339214324951 ], [ 117573565710, 971.022497177124 ], [ 129468567816, 1040.4608364105225 ], [ 133275697700, 1050.555097579956 ], [ 137171903210, 1084.712797164917 ], [ 143387909291, 1145.3394832611084 ], [ 146404337410, 1166.4122676849365 ], [ 39576857409, 340.8940486907959 ], [ 50417939178, 426.1437511444092 ], [ 53746763396, 446.3322811126709 ], [ 65129505424, 541.6333599090576 ], [ 76606439541, 633.7392559051514 ], [ 99053451896, 819.1812801361084 ], [ 107860210321, 880.1740627288818 ], [ 116405671856, 960.9281978607178 ], [ 140532809902, 1115.0006160736084 ], [ 141642097902, 1125.094877243042 ], [ 147522400085, 1176.5065212249756 ], [ 148334719613, 1186.6007900238037 ] ], "n_avg_mb": 7.037057134840223, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2477573646710572, "n_cpu_percent_c": 15.963557847518905, "n_cpu_percent_python": 11.707376142686355, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 120.00030136108398, "n_malloc_mb": 690.0019292831421, "n_mallocs": 81, "n_peak_mb": 120.00030136108398, "n_python_fraction": 0.9999980579706008, "n_sys_percent": 0.2523571270051227, "n_usage_fraction": 0.5382436209812997 }, { "line": "HopscotchDict._resize", "lineno": 321, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24985241886980172, "n_cpu_percent_c": 2.788742959887303, "n_cpu_percent_python": 4.677844741276781, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.005563709310839278, "n_usage_fraction": 0.0 }, { "line": "HopscotchDict._set_lookup_index_info", "lineno": 363, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24788548305211947, "n_cpu_percent_c": 1.7485172850660695, "n_cpu_percent_python": 2.8299073699330117, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.039738794034402794, "n_usage_fraction": 0.0 }, { "line": "HopscotchDict._set_neighbor", "lineno": 384, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24935275015250494, "n_cpu_percent_c": 1.0972193213250707, "n_cpu_percent_python": 1.8220001557974512, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0077875189863210546, "n_usage_fraction": 0.0 }, { "line": "HopscotchDict.__getitem__", "lineno": 546, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.19230266381410305, "n_core_utilization": 0.2476320636223778, "n_cpu_percent_c": 2.894108789709757, "n_cpu_percent_python": 4.669941720132899, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.07284045248170262, "n_usage_fraction": 0.0 }, { "line": "HopscotchDict.__setitem__", "lineno": 576, "memory_samples": [ [ 8496939517, 90.86102104187012 ], [ 64088431081, 531.539083480835 ], [ 71920789392, 592.3434429168701 ], [ 88295435163, 717.5529232025146 ], [ 91469037660, 748.5214290618896 ], [ 100097089188, 829.7027187347412 ], [ 134006806490, 1061.1651287078857 ], [ 35162128357, 299.7479076385498 ], [ 149265162964, 1196.6950511932373 ], [ 150380261539, 1206.789312362671 ], [ 16117298889, 151.91935539245605 ], [ 29653455680, 258.06373405456543 ], [ 48315882588, 405.95519065856934 ], [ 89423210656, 727.8134136199951 ], [ 124484634922, 1008.8518581390381 ], [ 139415807748, 1104.9063396453857 ], [ 142561332287, 1135.2451992034912 ] ], "n_avg_mb": 10.20606551851545, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24746672730010483, "n_cpu_percent_c": 4.392393585065433, "n_cpu_percent_python": 7.066789397316039, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 30.000054359436035, "n_malloc_mb": 172.88497161865234, "n_mallocs": 14, "n_peak_mb": 30.000054359436035, "n_python_fraction": 0.9999996478305924, "n_sys_percent": 0.11795710289832403, "n_usage_fraction": 0.13486083036600888 }, { "line": "HopscotchDict.__contains__", "lineno": 692, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.5302374872664024, "n_core_utilization": 0.24837580760095193, "n_cpu_percent_c": 2.4399670274356873, "n_cpu_percent_python": 3.983363544467537, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.04245321926121017, "n_usage_fraction": 0.0 } ], "imports": [ "from __future__ import annotations", "from array import array", "from sys import maxsize", "from typing import Any, Hashable, ItemsView, Iterator, KeysView, MutableMapping, ValuesView, cast" ], "leaks": { "301": { "likelihood": 0.9811320754716981, "velocity_mb_s": 0.05467448219368409 } }, "lines": [ { "end_region_line": 1, "line": "################################################################################\n", "lineno": 1, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 1 }, { "end_region_line": 2, "line": "# py-hopscotch-dict #\n", "lineno": 2, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 2 }, { "end_region_line": 3, "line": "# Full-featured `dict` replacement with guaranteed constant-time lookups #\n", "lineno": 3, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 3 }, { "end_region_line": 4, "line": "# (C) 2017, 2019-2020, 2022 Jeremy Brown #\n", "lineno": 4, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 4 }, { "end_region_line": 5, "line": "# Released under Prosperity Public License 3.0.0 #\n", "lineno": 5, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 5 }, { "end_region_line": 6, "line": "################################################################################\n", "lineno": 6, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 6 }, { "end_region_line": 7, "line": "\n", "lineno": 7, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 7 }, { "end_region_line": 8, "line": "from __future__ import annotations\n", "lineno": 8, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 8 }, { "end_region_line": 9, "line": "\n", "lineno": 9, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 9 }, { "end_region_line": 10, "line": "from array import array\n", "lineno": 10, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 10 }, { "end_region_line": 11, "line": "from sys import maxsize\n", "lineno": 11, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 11 }, { "end_region_line": 12, "line": "from typing import (\n", "lineno": 12, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 12 }, { "end_region_line": 13, "line": " Any,\n", "lineno": 13, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 13 }, { "end_region_line": 14, "line": " Hashable,\n", "lineno": 14, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 14 }, { "end_region_line": 15, "line": " ItemsView,\n", "lineno": 15, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 15 }, { "end_region_line": 16, "line": " Iterator,\n", "lineno": 16, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 16 }, { "end_region_line": 17, "line": " KeysView,\n", "lineno": 17, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 17 }, { "end_region_line": 18, "line": " MutableMapping,\n", "lineno": 18, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 18 }, { "end_region_line": 19, "line": " ValuesView,\n", "lineno": 19, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 19 }, { "end_region_line": 20, "line": " cast,\n", "lineno": 20, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 20 }, { "end_region_line": 21, "line": ")\n", "lineno": 21, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 21 }, { "end_region_line": 22, "line": "\n", "lineno": 22, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 22 }, { "end_region_line": 23, "line": "from py_hopscotch_dict.views import HDItems, HDKeys, HDValues\n", "lineno": 23, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 23 }, { "end_region_line": 24, "line": "\n", "lineno": 24, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 24 }, { "end_region_line": 25, "line": "\n", "lineno": 25, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 25 }, { "end_region_line": 781, "line": "class HopscotchDict(MutableMapping[Hashable, Any]):\n", "lineno": 26, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " # Prevent default creation of __dict__, which should save space if\n", "lineno": 27, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " # many instances of HopscotchDict are used at once\n", "lineno": 28, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " __slots__ = (\n", "lineno": 29, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " \"_count\",\n", "lineno": 30, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " \"_keys\",\n", "lineno": 31, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " \"_indices\",\n", "lineno": 32, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " \"_nbhd_size\",\n", "lineno": 33, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " \"_nbhds\",\n", "lineno": 34, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " \"_size\",\n", "lineno": 35, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " \"_values\",\n", "lineno": 36, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " )\n", "lineno": 37, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": "\n", "lineno": 38, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " # Python ints are signed, add one to get word length\n", "lineno": 39, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " MAX_NBHD_SIZE = maxsize.bit_length() + 1\n", "lineno": 40, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": "\n", "lineno": 41, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " # Only allow neighborhood sizes that match word lengths\n", "lineno": 42, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " ALLOWED_NBHD_SIZES = {8, 16, 32, 64}\n", "lineno": 43, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": "\n", "lineno": 44, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " # Sentinel value used in indices table to denote we can put value here\n", "lineno": 45, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " FREE_ENTRY = -1\n", "lineno": 46, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": "\n", "lineno": 47, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " # Maximum allowed density before resizing\n", "lineno": 48, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " MAX_DENSITY = 0.8\n", "lineno": 49, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": "\n", "lineno": 50, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " @staticmethod\n", "lineno": 51, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 83, "line": " def _make_lookup_tables(table_size: int) -\\u003e tuple[array[int], array[int]]:\n", "lineno": 52, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " \"\"\"\n", "lineno": 53, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " Make the arrays that hold the indices into _keys/_values and the\n", "lineno": 54, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " neighborhoods for each index\n", "lineno": 55, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": "\n", "lineno": 56, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " :param table_size: The number of entries of the returned table\n", "lineno": 57, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": "\n", "lineno": 58, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " :return: An `array` for storing indices into _keys/_values,\n", "lineno": 59, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " and an `array` for storing each index's neighborhood\n", "lineno": 60, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " \"\"\"\n", "lineno": 61, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " if table_size \\u003c 0:\n", "lineno": 62, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " raise ValueError(\"Lookup table cannot have negative length\")\n", "lineno": 63, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": "\n", "lineno": 64, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " table_log_size = table_size.bit_length()\n", "lineno": 65, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": "\n", "lineno": 66, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " if table_log_size \\u003c 8:\n", "lineno": 67, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " index_fmt = \"b\"\n", "lineno": 68, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " nbhd_fmt = \"B\"\n", "lineno": 69, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " elif table_log_size \\u003c 16:\n", "lineno": 70, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " index_fmt = \"h\"\n", "lineno": 71, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " nbhd_fmt = \"H\"\n", "lineno": 72, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " elif table_log_size \\u003c 32:\n", "lineno": 73, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " index_fmt = \"i\"\n", "lineno": 74, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " nbhd_fmt = \"I\"\n", "lineno": 75, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " else:\n", "lineno": 76, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " index_fmt = \"l\" # pragma: no cover\n", "lineno": 77, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " nbhd_fmt = \"L\" # pragma: no cover\n", "lineno": 78, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": "\n", "lineno": 79, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " lookup_table = array(index_fmt, (HopscotchDict.FREE_ENTRY,) * table_size)\n", "lineno": 80, "memory_samples": [ [ 21973350838, 203.6418514251709 ], [ 27769239870, 247.80770683288574 ], [ 30473046513, 269.4651393890381 ], [ 37023677214, 320.7055187225342 ], [ 42927278705, 371.62711906433105 ], [ 53997976351, 459.9036693572998 ], [ 61524540326, 521.1508312225342 ], [ 72676513885, 603.4564342498779 ], [ 83399082015, 697.123212814331 ], [ 118611168840, 994.7444744110107 ], [ 120901134859, 1010.7515926361084 ], [ 120901145217, 994.7515544891357 ], [ 125165629504, 1030.3659496307373 ], [ 135266533783, 1074.6185054779053 ], [ 143777508840, 1156.318006515503 ] ], "n_avg_mb": 14.34712723323277, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24506834897699178, "n_cpu_percent_c": 0.6330657399817053, "n_cpu_percent_python": 0.20410073260990338, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 23.627734184265137, "n_malloc_mb": 200.8597812652588, "n_mallocs": 14, "n_peak_mb": 23.627734184265137, "n_python_fraction": 0.999999713399584, "n_sys_percent": 0.016848481817489266, "n_usage_fraction": 0.15668288940879352, "start_region_line": 52 }, { "end_region_line": 83, "line": " nbhd_table = array(nbhd_fmt, (0,) * table_size)\n", "lineno": 81, "memory_samples": [ [ 1369496286, 30.1147518157959 ], [ 3519447009, 50.44434928894043 ], [ 14248175357, 141.8136043548584 ], [ 44209855700, 385.6571636199951 ], [ 83399115925, 713.0296335220337 ], [ 83399136759, 697.029595375061 ], [ 118611203255, 1010.6508951187134 ], [ 118611219198, 994.6508569717407 ], [ 120901180952, 1010.6577081680298 ], [ 125165662659, 1046.27237033844 ], [ 125165676683, 1030.2723321914673 ] ], "n_avg_mb": 13.523890852928162, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2332299936764378, "n_cpu_percent_c": 0.147116302016172, "n_cpu_percent_python": 0.07514236080704134, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 15.906420707702637, "n_malloc_mb": 108.1911268234253, "n_mallocs": 8, "n_peak_mb": 15.906420707702637, "n_python_fraction": 0.9999798276219145, "n_sys_percent": 0.01613330904336323, "n_usage_fraction": 0.0843956826613328, "start_region_line": 52 }, { "end_region_line": 83, "line": "\n", "lineno": 82, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 83, "line": " return (lookup_table, nbhd_table)\n", "lineno": 83, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 52 }, { "end_region_line": 781, "line": "\n", "lineno": 84, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 122, "line": " def clear(self) -\\u003e None:\n", "lineno": 85, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " \"\"\"\n", "lineno": 86, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " Remove all the data from the dict and return it to its original\n", "lineno": 87, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " size\n", "lineno": 88, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " \"\"\"\n", "lineno": 89, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " self._indices: array[int]\n", "lineno": 90, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " self._nbhds: array[int]\n", "lineno": 91, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": "\n", "lineno": 92, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # The maximum number of entries in the dict\n", "lineno": 93, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " self._size = 8\n", "lineno": 94, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": "\n", "lineno": 95, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # The current number of entries in the dict\n", "lineno": 96, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " self._count = 0\n", "lineno": 97, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": "\n", "lineno": 98, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # The maximum number of neighbors to check if a key isn't\n", "lineno": 99, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # in its expected index\n", "lineno": 100, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " self._nbhd_size = 8\n", "lineno": 101, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": "\n", "lineno": 102, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # Stored values\n", "lineno": 103, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " if hasattr(self, \"_values\"):\n", "lineno": 104, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " del self._values\n", "lineno": 105, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " self._values: list[Any] = []\n", "lineno": 106, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": "\n", "lineno": 107, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # Stored keys\n", "lineno": 108, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " if hasattr(self, \"_keys\"):\n", "lineno": 109, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " del self._keys\n", "lineno": 110, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " self._keys: list[Hashable] = []\n", "lineno": 111, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": "\n", "lineno": 112, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # Data structure storing map from each entry's presence\n", "lineno": 113, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # to its location in _keys/_values\n", "lineno": 114, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " if hasattr(self, \"_indices\"):\n", "lineno": 115, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " del self._indices\n", "lineno": 116, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": "\n", "lineno": 117, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " # Data structure storing location of each index's displaced neighbors\n", "lineno": 118, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " if hasattr(self, \"_nbhds\"):\n", "lineno": 119, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " del self._nbhds\n", "lineno": 120, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": "\n", "lineno": 121, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 122, "line": " self._indices, self._nbhds = self._make_lookup_tables(self._size)\n", "lineno": 122, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 85 }, { "end_region_line": 781, "line": "\n", "lineno": 123, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 140, "line": " def _clear_neighbor(self, lookup_idx: int, nbhd_idx: int) -\\u003e None:\n", "lineno": 124, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " \"\"\"\n", "lineno": 125, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " Set the given neighbor for the given index as unoccupied,\n", "lineno": 126, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " with the neighborhood index 0 representing the given index\n", "lineno": 127, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": "\n", "lineno": 128, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " :param lookup_idx: The index in _nbhds\n", "lineno": 129, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " :param nbhd_idx: The neighbor in the neighborhood of\n", "lineno": 130, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " lookup_idx to set unoccupied\n", "lineno": 131, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " \"\"\"\n", "lineno": 132, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " if lookup_idx \\u003c 0 or nbhd_idx \\u003c 0:\n", "lineno": 133, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " raise ValueError(\"Indexes cannot be negative\")\n", "lineno": 134, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " elif lookup_idx \\u003e= self._size:\n", "lineno": 135, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " raise ValueError(f\"Index {lookup_idx} outside array\")\n", "lineno": 136, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " elif nbhd_idx \\u003e= self._nbhd_size:\n", "lineno": 137, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " raise ValueError(\"Trying to clear neighbor outside neighborhood\")\n", "lineno": 138, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": "\n", "lineno": 139, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 140, "line": " self._nbhds[lookup_idx] \\u0026= ~(1 \\u003c\\u003c nbhd_idx)\n", "lineno": 140, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 124 }, { "end_region_line": 781, "line": "\n", "lineno": 141, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 258, "line": " def _free_up(self, target_idx: int) -\\u003e None:\n", "lineno": 142, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " \"\"\"\n", "lineno": 143, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " Create an opening in the neighborhood of the given index\n", "lineno": 144, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " by moving data from an index out to one of its neighbors\n", "lineno": 145, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": "\n", "lineno": 146, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " :param target_idx: The index in _indices to find\n", "lineno": 147, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " a neighborhood opening for\n", "lineno": 148, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " \"\"\"\n", "lineno": 149, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " if target_idx \\u003c 0:\n", "lineno": 150, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " raise ValueError(\"Indexes cannot be negative\")\n", "lineno": 151, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " elif target_idx \\u003e= self._size:\n", "lineno": 152, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " raise ValueError(f\"Index {target_idx} outside array\")\n", "lineno": 153, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": "\n", "lineno": 154, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " # Attempting to free an empty index is a no-op\n", "lineno": 155, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " if self._indices[target_idx] == self.FREE_ENTRY:\n", "lineno": 156, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " return\n", "lineno": 157, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": "\n", "lineno": 158, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " lookup_idx = target_idx\n", "lineno": 159, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 255, "line": " while lookup_idx \\u003c self._size:\n", "lineno": 160, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 161, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " lookup_data_idx = self._indices[lookup_idx]\n", "lineno": 162, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " if lookup_data_idx != self.FREE_ENTRY:\n", "lineno": 163, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " entry_expected_idx = abs(hash(self._keys[lookup_data_idx])) % self._size\n", "lineno": 164, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.25008037491253854, "n_cpu_percent_c": 0.008047176217463599, "n_cpu_percent_python": 0.013432619731593761, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 2.865455757207009e-07, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " else:\n", "lineno": 165, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " entry_expected_idx = None\n", "lineno": 166, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 167, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # It is possible the entry at target_idx in _indices is a displaced\n", "lineno": 168, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # neighbor of some prior index; if that's the case see if there is an\n", "lineno": 169, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # open neighbor of that prior index that the entry at target_idx can be\n", "lineno": 170, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # shifted to\n", "lineno": 171, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " if entry_expected_idx != lookup_idx and lookup_idx == target_idx:\n", "lineno": 172, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " entry_expected_idx = cast(int, entry_expected_idx)\n", "lineno": 173, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " expected_nbr = self._get_open_neighbor(entry_expected_idx)\n", "lineno": 174, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24985909790170033, "n_cpu_percent_c": 0.00401966902210622, "n_cpu_percent_python": 0.006712614043855058, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 6.052215893835153e-06, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 175, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " if expected_nbr is not None:\n", "lineno": 176, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " data_idx = self._indices[lookup_idx]\n", "lineno": 177, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " exp_tgt_nbhd_idx = (lookup_idx - entry_expected_idx) % self._size\n", "lineno": 178, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " exp_opn_nbhd_idx = (expected_nbr - entry_expected_idx) % self._size\n", "lineno": 179, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 180, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " self._set_lookup_index_info(expected_nbr, data=data_idx)\n", "lineno": 181, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " self._set_lookup_index_info(lookup_idx, data=self.FREE_ENTRY)\n", "lineno": 182, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " self._set_neighbor(entry_expected_idx, exp_opn_nbhd_idx)\n", "lineno": 183, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " self._clear_neighbor(entry_expected_idx, exp_tgt_nbhd_idx)\n", "lineno": 184, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " return\n", "lineno": 185, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 186, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # Walking down the array for an empty spot and shuffling entries around\n", "lineno": 187, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # is the only way\n", "lineno": 188, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " open_idx = self._get_open_neighbor(lookup_idx)\n", "lineno": 189, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 190, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # All of the next _nbhd_size - 1 locations in _indices are full\n", "lineno": 191, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " if open_idx is None:\n", "lineno": 192, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " lookup_idx += self._nbhd_size\n", "lineno": 193, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " continue\n", "lineno": 194, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 195, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # Go _nbhd_size - 1 locations back in _indices from the open\n", "lineno": 196, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " # location to find a neighbor that can be displaced into the opening\n", "lineno": 197, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " if (open_idx - target_idx) % self._size \\u003e= self._nbhd_size:\n", "lineno": 198, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " range_start = open_idx - self._nbhd_size + 1\n", "lineno": 199, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " disp_range = self._nbhd_size\n", "lineno": 200, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 201, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " elif entry_expected_idx is not None and entry_expected_idx != lookup_idx:\n", "lineno": 202, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " range_start = open_idx - self._nbhd_size + 1\n", "lineno": 203, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " disp_range = self._nbhd_size\n", "lineno": 204, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 205, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " else:\n", "lineno": 206, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " range_start = lookup_idx\n", "lineno": 207, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " disp_range = (open_idx - lookup_idx) % self._size\n", "lineno": 208, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": "\n", "lineno": 209, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 252, "line": " for displacement in range(disp_range):\n", "lineno": 210, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " disp_root = (range_start + displacement) % self._size\n", "lineno": 211, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": "\n", "lineno": 212, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " displaceable_nbr = None\n", "lineno": 213, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " nbhd = self._nbhds[disp_root]\n", "lineno": 214, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 223, "line": " for nbhd_idx, nbr in enumerate(bin(nbhd)[:1:-1]):\n", "lineno": 215, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 223, "line": " # There is an entry before the open location which can be\n", "lineno": 216, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 223, "line": " # shuffled into the open location\n", "lineno": 217, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 223, "line": " if nbr == \"1\":\n", "lineno": 218, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2500001166851874, "n_cpu_percent_c": 0.008058236756975888, "n_cpu_percent_python": 0.013432672552346363, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 2.0218487357813016e-07, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 223, "line": " nbr_idx = (disp_root + nbhd_idx) % self._size\n", "lineno": 219, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 223, "line": "\n", "lineno": 220, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 223, "line": " if nbhd_idx \\u003c (open_idx - disp_root) % self._size:\n", "lineno": 221, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 223, "line": " displaceable_nbr = nbr_idx\n", "lineno": 222, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 223, "line": " break\n", "lineno": 223, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 215 }, { "end_region_line": 252, "line": "\n", "lineno": 224, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # There is an entry before the open location which can be\n", "lineno": 225, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # shuffled into the open location\n", "lineno": 226, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " if displaceable_nbr is not None:\n", "lineno": 227, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " data_idx = self._indices[displaceable_nbr]\n", "lineno": 228, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " self._set_lookup_index_info(open_idx, data=data_idx)\n", "lineno": 229, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.20001427280225986, "n_cpu_percent_c": 0.005371443354024134, "n_cpu_percent_python": 0.0053735030177373, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.002685278158245247, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " self._set_lookup_index_info(displaceable_nbr, data=self.FREE_ENTRY)\n", "lineno": 230, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": "\n", "lineno": 231, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " disp_nbhd_idx = (displaceable_nbr - disp_root) % self._size\n", "lineno": 232, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " open_nbhd_idx = (open_idx - disp_root) % self._size\n", "lineno": 233, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " self._set_neighbor(disp_root, open_nbhd_idx)\n", "lineno": 234, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " self._clear_neighbor(disp_root, disp_nbhd_idx)\n", "lineno": 235, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": "\n", "lineno": 236, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # If we must displace an entry before target_idx into a location\n", "lineno": 237, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # after target_idx, don't update the index we still want to free\n", "lineno": 238, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " if (displaceable_nbr - target_idx) % self._size \\u003c self._nbhd_size:\n", "lineno": 239, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.250015301945332, "n_cpu_percent_c": 0.00400438653873366, "n_cpu_percent_python": 0.00671639946296446, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " lookup_idx = target_idx\n", "lineno": 240, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": "\n", "lineno": 241, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " elif displaceable_nbr \\u003e= target_idx:\n", "lineno": 242, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " lookup_idx = displaceable_nbr\n", "lineno": 243, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " break\n", "lineno": 244, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": "\n", "lineno": 245, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # If the last index before the open index has no displaced\n", "lineno": 246, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # neighbors or its closest one is after the open index, every\n", "lineno": 247, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # index between the given index and the open index is filled\n", "lineno": 248, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # with data displaced from other indices, and the invariant\n", "lineno": 249, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " # cannot be maintained without a resize\n", "lineno": 250, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " elif disp_root == open_idx - 1:\n", "lineno": 251, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 252, "line": " raise RuntimeError(\"No space available before open index\")\n", "lineno": 252, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 210 }, { "end_region_line": 255, "line": "\n", "lineno": 253, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " if self._indices[target_idx] == self.FREE_ENTRY:\n", "lineno": 254, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 255, "line": " return\n", "lineno": 255, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 160 }, { "end_region_line": 258, "line": "\n", "lineno": 256, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " # No open indices exist between the given index and the end of the array\n", "lineno": 257, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 258, "line": " raise RuntimeError(\"Could not open index while maintaining invariant\")\n", "lineno": 258, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 142 }, { "end_region_line": 781, "line": "\n", "lineno": 259, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 283, "line": " def _get_open_neighbor(self, lookup_idx: int) -\\u003e int | None:\n", "lineno": 260, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24917671219359303, "n_cpu_percent_c": 0.488834514026517, "n_cpu_percent_python": 0.8164888712340714, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.004655205142011763, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " \"\"\"\n", "lineno": 261, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " Find the first neighbor of the given index that is not in use\n", "lineno": 262, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": "\n", "lineno": 263, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " :param lookup_idx: _indices index to find an open neighbor\n", "lineno": 264, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " for\n", "lineno": 265, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": "\n", "lineno": 266, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " :return: The index in _indices nearest to the given index\n", "lineno": 267, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " not currently in use, or None if they are all occupied\n", "lineno": 268, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " \"\"\"\n", "lineno": 269, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " if lookup_idx \\u003c 0:\n", "lineno": 270, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24998600244032917, "n_cpu_percent_c": 0.17322751769585792, "n_cpu_percent_python": 0.2887646918127247, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 6.477176367041933e-05, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " raise ValueError(\"Indexes cannot be negative\")\n", "lineno": 271, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " elif lookup_idx \\u003e= self._size:\n", "lineno": 272, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24481317961176777, "n_cpu_percent_c": 0.12219158250896747, "n_cpu_percent_python": 0.190719797604583, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.006654274321104215, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " raise ValueError(f\"Index {lookup_idx} outside array\")\n", "lineno": 273, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": "\n", "lineno": 274, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " result = None\n", "lineno": 275, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": "\n", "lineno": 276, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 281, "line": " for idx in range(self._nbhd_size):\n", "lineno": 277, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24824157696080676, "n_cpu_percent_c": 0.5894296879269324, "n_cpu_percent_python": 0.9669853969228495, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.011093890599606374, "n_usage_fraction": 0.0, "start_region_line": 277 }, { "end_region_line": 281, "line": " nbr = (lookup_idx + idx) % self._size\n", "lineno": 278, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 277 }, { "end_region_line": 281, "line": " if self._indices[nbr] == self.FREE_ENTRY:\n", "lineno": 279, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2479752798103615, "n_cpu_percent_c": 0.6937842154199886, "n_cpu_percent_python": 1.12581362100463, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.014963074784721133, "n_usage_fraction": 0.0, "start_region_line": 277 }, { "end_region_line": 281, "line": " result = nbr\n", "lineno": 280, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 277 }, { "end_region_line": 281, "line": " break\n", "lineno": 281, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 277 }, { "end_region_line": 283, "line": "\n", "lineno": 282, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 283, "line": " return result\n", "lineno": 283, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 260 }, { "end_region_line": 781, "line": "\n", "lineno": 284, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 319, "line": " def _lookup(self, key: Hashable) -\\u003e tuple[int | None, int | None]:\n", "lineno": 285, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24789909787273973, "n_cpu_percent_c": 0.5079274461950058, "n_cpu_percent_python": 0.8257865010355557, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 3, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.011381543957652337, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " \"\"\"\n", "lineno": 286, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " Find the indices in _indices and _keys that correspond to\n", "lineno": 287, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " the given key\n", "lineno": 288, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": "\n", "lineno": 289, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " :param key: The key to search for\n", "lineno": 290, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": "\n", "lineno": 291, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " :return: The index in _indices that holds the index to\n", "lineno": 292, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " _keys for the given key and the index to _keys,\n", "lineno": 293, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " or None for both if the key has not been inserted\n", "lineno": 294, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " \"\"\"\n", "lineno": 295, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " data_idx = None\n", "lineno": 296, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " lookup_idx = None\n", "lineno": 297, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " target_idx = abs(hash(key)) % self._size\n", "lineno": 298, "memory_samples": [ [ 39576857409, 340.8940486907959 ], [ 50417939178, 426.1437511444092 ], [ 53746763396, 446.3322811126709 ], [ 65129505424, 541.6333599090576 ], [ 76606439541, 633.7392559051514 ], [ 99053451896, 819.1812801361084 ], [ 107860210321, 880.1740627288818 ], [ 116405671856, 960.9281978607178 ], [ 140532809902, 1115.0006160736084 ], [ 141642097902, 1125.094877243042 ], [ 147522400085, 1176.5065212249756 ], [ 148334719613, 1186.6007900238037 ] ], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24866309066040573, "n_cpu_percent_c": 0.7185996328455581, "n_cpu_percent_python": 1.1623364768048694, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 120.00030136108398, "n_malloc_mb": 120.00030136108398, "n_mallocs": 0, "n_peak_mb": 120.00030136108398, "n_python_fraction": 0.9999997499999206, "n_sys_percent": 0.010222452449359291, "n_usage_fraction": 0.0936075596057251, "start_region_line": 285 }, { "end_region_line": 319, "line": "\n", "lineno": 299, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " nbhd = self._nbhds[target_idx]\n", "lineno": 300, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 317, "line": " for nbhd_idx, nbr in enumerate(bin(nbhd)[:1:-1]):\n", "lineno": 301, "memory_samples": [ [ 2571271224, 40.303274154663086 ], [ 4864941230, 60.53864097595215 ], [ 6038492448, 70.63293266296387 ], [ 7249954742, 80.72719383239746 ], [ 9583720698, 100.95528221130371 ], [ 12166380097, 121.1438045501709 ], [ 17518527114, 162.01364707946777 ], [ 18567129359, 172.1079158782959 ], [ 19652061584, 182.20218467712402 ], [ 21151144733, 192.29645347595215 ], [ 23957421183, 213.7361125946045 ], [ 26099410920, 233.92465019226074 ], [ 32320727083, 279.55939292907715 ], [ 34021591506, 289.6536464691162 ], [ 38564483522, 330.79977226257324 ], [ 40656383298, 350.9883403778076 ], [ 42555794856, 361.0826244354248 ], [ 46181313795, 385.65731620788574 ], [ 49430100816, 416.0494747161865 ], [ 56898601889, 469.99792289733887 ], [ 57856985165, 480.09218406677246 ], [ 58936220468, 490.18646812438965 ], [ 60132423379, 500.2807369232178 ], [ 61138217175, 510.3750286102295 ], [ 67637626914, 551.7276363372803 ], [ 68759868708, 561.8218898773193 ], [ 70965215862, 582.0104503631592 ], [ 74569381070, 613.5507259368896 ], [ 75696408495, 623.6449947357178 ], [ 77728488773, 643.8335552215576 ], [ 78786439707, 653.9278316497803 ], [ 79710543871, 664.0221004486084 ], [ 82454801707, 674.1163845062256 ], [ 87367238453, 707.2181224822998 ], [ 90527465618, 737.9076671600342 ], [ 92529167925, 758.6157131195068 ], [ 93676413410, 768.709981918335 ], [ 94827604575, 778.8042583465576 ], [ 95978035671, 788.8985118865967 ], [ 97921855155, 809.0870265960693 ], [ 103161811917, 839.7969722747803 ], [ 104350690025, 849.8912258148193 ], [ 105526729540, 859.985517501831 ], [ 106696532216, 870.0798015594482 ], [ 108700337885, 890.26833152771 ], [ 109779549081, 900.3626003265381 ], [ 110949397127, 910.4568538665771 ], [ 112098625129, 920.5511226654053 ], [ 112864415450, 930.6453838348389 ], [ 114047032462, 940.7396450042725 ], [ 115223560882, 950.8339214324951 ], [ 117573565710, 971.022497177124 ], [ 129468567816, 1040.4608364105225 ], [ 133275697700, 1050.555097579956 ], [ 137171903210, 1084.712797164917 ], [ 143387909291, 1145.3394832611084 ], [ 146404337410, 1166.4122676849365 ] ], "n_avg_mb": 8.260893158290697, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2477432513485214, "n_cpu_percent_c": 13.013331817053094, "n_cpu_percent_python": 6.954809536839422, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 10.000056266784668, "n_malloc_mb": 570.0016279220581, "n_mallocs": 69, "n_peak_mb": 10.000056266784668, "n_python_fraction": 0.9999977017540247, "n_sys_percent": 0.18325801186574556, "n_usage_fraction": 0.44463606137557465, "start_region_line": 301 }, { "end_region_line": 317, "line": " if nbr == \"1\":\n", "lineno": 302, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2486069656164813, "n_cpu_percent_c": 0.3237319851101117, "n_cpu_percent_python": 0.5142354323366686, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.004770196519141036, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " neighbor = (target_idx + nbhd_idx) % self._size\n", "lineno": 303, "memory_samples": [ [ 10889184674, 111.04955101013184 ], [ 13550290973, 131.23808097839355 ], [ 25039802762, 223.83038902282715 ], [ 36179517348, 309.84216117858887 ], [ 47275296185, 395.75158500671387 ], [ 51511798620, 436.23800468444824 ], [ 69880448075, 571.916166305542 ], [ 96842215938, 798.9927654266357 ], [ 138298346257, 1094.8070583343506 ] ], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 90.00020122528076, "n_malloc_mb": 90.00020122528076, "n_mallocs": 0, "n_peak_mb": 90.00020122528076, "n_python_fraction": 0.9999994444442561, "n_sys_percent": 0.0, "n_usage_fraction": 0.07020565036226523, "start_region_line": 301 }, { "end_region_line": 317, "line": " nbr_data_idx = self._indices[neighbor]\n", "lineno": 304, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": "\n", "lineno": 305, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " if nbr_data_idx \\u003c 0:\n", "lineno": 306, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2471195842027328, "n_cpu_percent_c": 1.1967186065127813, "n_cpu_percent_python": 1.9251696553196416, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 9, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.03662615288818927, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " raise RuntimeError(\n", "lineno": 307, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " (\n", "lineno": 308, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " \"Index {} has supposed displaced neighbor that points to \"\n", "lineno": 309, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " \"free index\"\n", "lineno": 310, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " ).format(target_idx)\n", "lineno": 311, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " )\n", "lineno": 312, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": "\n", "lineno": 313, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " if self._keys[nbr_data_idx] == key:\n", "lineno": 314, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24741720190644295, "n_cpu_percent_c": 0.160611220010735, "n_cpu_percent_python": 0.25922216404733184, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.004401095650945234, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " data_idx = nbr_data_idx\n", "lineno": 315, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " lookup_idx = neighbor\n", "lineno": 316, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 317, "line": " break\n", "lineno": 317, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 301 }, { "end_region_line": 319, "line": "\n", "lineno": 318, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 319, "line": " return (lookup_idx, data_idx)\n", "lineno": 319, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 285 }, { "end_region_line": 781, "line": "\n", "lineno": 320, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 361, "line": " def _resize(self, new_size: int) -\\u003e None:\n", "lineno": 321, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " \"\"\"\n", "lineno": 322, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " Resize the dict and relocate the current entries\n", "lineno": 323, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": "\n", "lineno": 324, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " :param new_size: The desired new size of the dict\n", "lineno": 325, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " \"\"\"\n", "lineno": 326, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " # Dict size is a power of two to make modulo operations quicker\n", "lineno": 327, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " if new_size \\u0026 new_size - 1:\n", "lineno": 328, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " raise ValueError(\"New size for dict not a power of 2\")\n", "lineno": 329, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": "\n", "lineno": 330, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " # Neighborhoods must be at least as large as the base-2 logarithm of\n", "lineno": 331, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " # the dict size\n", "lineno": 332, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": "\n", "lineno": 333, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " # 2**k requires k+1 bits to represent, so subtract one\n", "lineno": 334, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " resized_nbhd_size = new_size.bit_length() - 1\n", "lineno": 335, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": "\n", "lineno": 336, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " if resized_nbhd_size \\u003e self._nbhd_size:\n", "lineno": 337, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " if resized_nbhd_size \\u003e self.MAX_NBHD_SIZE:\n", "lineno": 338, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " raise ValueError(\"Resizing requires too-large neighborhood\")\n", "lineno": 339, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " self._nbhd_size = min(\n", "lineno": 340, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " s for s in self.ALLOWED_NBHD_SIZES if s \\u003e= resized_nbhd_size\n", "lineno": 341, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " )\n", "lineno": 342, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": "\n", "lineno": 343, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " self._size = new_size\n", "lineno": 344, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " self._indices, self._nbhds = self._make_lookup_tables(new_size)\n", "lineno": 345, "memory_samples": [ [ 44209934810, 375.5630578994751 ], [ 120906672318, 998.6581201553345 ] ], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": "\n", "lineno": 346, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 321 }, { "end_region_line": 361, "line": " for data_idx, key in enumerate(self._keys):\n", "lineno": 347, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " expected_lookup_idx = abs(hash(key)) % new_size\n", "lineno": 348, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24998425964904958, "n_cpu_percent_c": 0.7327253754725606, "n_cpu_percent_python": 1.2222429307501794, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0002267624549406293, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": "\n", "lineno": 349, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " open_nbr_idx = self._get_open_neighbor(expected_lookup_idx)\n", "lineno": 350, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24979886772863666, "n_cpu_percent_c": 0.9048983212693444, "n_cpu_percent_python": 1.5230736697027136, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0024693152143839526, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " if open_nbr_idx is None:\n", "lineno": 351, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24997523065717636, "n_cpu_percent_c": 0.1288694248746967, "n_cpu_percent_python": 0.21489467516683103, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 4.816279659778838e-05, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " if new_size - expected_lookup_idx \\u003c self._nbhd_size:\n", "lineno": 352, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " free_up_idx = 0\n", "lineno": 353, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " else:\n", "lineno": 354, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " free_up_idx = expected_lookup_idx\n", "lineno": 355, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": "\n", "lineno": 356, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " self._free_up(free_up_idx)\n", "lineno": 357, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " open_nbr_idx = cast(int, self._get_open_neighbor(expected_lookup_idx))\n", "lineno": 358, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " nbhd_idx = (open_nbr_idx - expected_lookup_idx) % new_size\n", "lineno": 359, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " self._set_neighbor(expected_lookup_idx, nbhd_idx)\n", "lineno": 360, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24975701342240653, "n_cpu_percent_c": 0.8631708311834493, "n_cpu_percent_python": 1.4490151572368672, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0027559672393630986, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 361, "line": " self._set_lookup_index_info(open_nbr_idx, data=data_idx)\n", "lineno": 361, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24997338603637037, "n_cpu_percent_c": 0.1590825294131451, "n_cpu_percent_python": 0.26861830842018786, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 5.9979279661577434e-05, "n_usage_fraction": 0.0, "start_region_line": 347 }, { "end_region_line": 781, "line": "\n", "lineno": 362, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 382, "line": " def _set_lookup_index_info(\n", "lineno": 363, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24809157514412808, "n_cpu_percent_c": 0.7485862990491446, "n_cpu_percent_python": 1.2193893869176027, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.01567376164671084, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " self, lookup_idx: int, data: int | None = None, nbhd: int | None = None\n", "lineno": 364, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " ) -\\u003e None:\n", "lineno": 365, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " \"\"\"\n", "lineno": 366, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " Update the given index of _indices/_nbhds with new information\n", "lineno": 367, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": "\n", "lineno": 368, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " :param lookup_idx: Index in _indices/_nbhds to update\n", "lineno": 369, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " :param data: New index into _keys/_values, or None to keep same\n", "lineno": 370, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " :param nbhd: New neighborhood information, or None to keep same\n", "lineno": 371, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " \"\"\"\n", "lineno": 372, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " if lookup_idx \\u003c 0:\n", "lineno": 373, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.249975389373826, "n_cpu_percent_c": 0.12877264724310064, "n_cpu_percent_python": 0.21489389325144057, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 4.93997723159285e-05, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " raise ValueError(\"Indexes cannot be negative\")\n", "lineno": 374, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " elif lookup_idx \\u003e= self._size:\n", "lineno": 375, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2476025856017883, "n_cpu_percent_c": 0.184532055365646, "n_cpu_percent_python": 0.2993207578259232, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.004715690785575413, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " raise ValueError(f\"Index {lookup_idx} outside array\")\n", "lineno": 376, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": "\n", "lineno": 377, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " if data is not None:\n", "lineno": 378, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " self._indices[lookup_idx] = data\n", "lineno": 379, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": "\n", "lineno": 380, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " if nbhd is not None:\n", "lineno": 381, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2473287468711056, "n_cpu_percent_c": 0.6865695512905324, "n_cpu_percent_python": 1.0963033319380455, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.019356673947446595, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 382, "line": " self._nbhds[lookup_idx] = nbhd\n", "lineno": 382, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 363 }, { "end_region_line": 781, "line": "\n", "lineno": 383, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 400, "line": " def _set_neighbor(self, lookup_idx: int, nbhd_idx: int) -\\u003e None:\n", "lineno": 384, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24907167117869922, "n_cpu_percent_c": 0.5278848594261746, "n_cpu_percent_python": 0.8765012993964625, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.00536282486077417, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " \"\"\"\n", "lineno": 385, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " Set the given neighbor for the given index as occupied,\n", "lineno": 386, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " with the index 0 representing the given index\n", "lineno": 387, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": "\n", "lineno": 388, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " :param lookup_idx: The index in _nbhds\n", "lineno": 389, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " :param nbhd_idx: The neighbor in the neighborhood to set\n", "lineno": 390, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " occupied\n", "lineno": 391, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " \"\"\"\n", "lineno": 392, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " if lookup_idx \\u003c 0 or nbhd_idx \\u003c 0:\n", "lineno": 393, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24996870567323734, "n_cpu_percent_c": 0.2738369845633198, "n_cpu_percent_python": 0.45664191905907037, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0001171673103601957, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " raise ValueError(\"Indexes cannot be negative\")\n", "lineno": 394, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " elif lookup_idx \\u003e= self._size:\n", "lineno": 395, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24851099691764902, "n_cpu_percent_c": 0.138750955704442, "n_cpu_percent_python": 0.226967549197224, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.002239794302737565, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " raise ValueError(f\"Index {lookup_idx} outside array\")\n", "lineno": 396, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " elif nbhd_idx \\u003e= self._nbhd_size:\n", "lineno": 397, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24995674964337275, "n_cpu_percent_c": 0.15673402527062139, "n_cpu_percent_python": 0.26188938814469465, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 8.022887296186632e-05, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " raise ValueError(\"Trying to set neighbor outside neighborhood\")\n", "lineno": 398, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": "\n", "lineno": 399, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 400, "line": " self._nbhds[lookup_idx] |= 1 \\u003c\\u003c nbhd_idx\n", "lineno": 400, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.4799358992151558, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 384 }, { "end_region_line": 781, "line": "\n", "lineno": 401, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 411, "line": " def copy(self) -\\u003e MutableMapping[Hashable, Any]:\n", "lineno": 402, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 402 }, { "end_region_line": 411, "line": " \"\"\"\n", "lineno": 403, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 402 }, { "end_region_line": 411, "line": " Create a new instance with all items inserted\n", "lineno": 404, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 402 }, { "end_region_line": 411, "line": " \"\"\"\n", "lineno": 405, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 402 }, { "end_region_line": 411, "line": " out = HopscotchDict()\n", "lineno": 406, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 402 }, { "end_region_line": 411, "line": "\n", "lineno": 407, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 402 }, { "end_region_line": 409, "line": " for key in self._keys:\n", "lineno": 408, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 408 }, { "end_region_line": 409, "line": " out[key] = self.__getitem__(key)\n", "lineno": 409, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 408 }, { "end_region_line": 411, "line": "\n", "lineno": 410, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 402 }, { "end_region_line": 411, "line": " return out\n", "lineno": 411, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 402 }, { "end_region_line": 781, "line": "\n", "lineno": 412, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 444, "line": " def get(self, key: Hashable, default: Any = None) -\\u003e Any:\n", "lineno": 413, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " \"\"\"\n", "lineno": 414, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " Retrieve the value corresponding to the specified key,\n", "lineno": 415, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " returning the default value if not found\n", "lineno": 416, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": "\n", "lineno": 417, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " :param key: The key to retrieve data from\n", "lineno": 418, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " :param default: Value to return if the given key does not exist\n", "lineno": 419, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": "\n", "lineno": 420, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " :returns: The value in the dict if the specified key exists;\n", "lineno": 421, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " the default value if it does not\n", "lineno": 422, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " \"\"\"\n", "lineno": 423, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " value = default\n", "lineno": 424, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " target_idx = abs(hash(key)) % self._size\n", "lineno": 425, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": "\n", "lineno": 426, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 444, "line": " nbhd = self._nbhds[target_idx]\n", "lineno": 427, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 443, "line": " for nbhd_idx, nbr in enumerate(bin(nbhd)[:1:-1]):\n", "lineno": 428, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " if nbr == \"1\":\n", "lineno": 429, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " neighbor = (target_idx + nbhd_idx) % self._size\n", "lineno": 430, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " nbr_data_idx = self._indices[neighbor]\n", "lineno": 431, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": "\n", "lineno": 432, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " if nbr_data_idx \\u003c 0:\n", "lineno": 433, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " raise RuntimeError(\n", "lineno": 434, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " (\n", "lineno": 435, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " \"Index {} has supposed displaced neighbor that points to \"\n", "lineno": 436, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " \"free index\"\n", "lineno": 437, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " ).format(target_idx)\n", "lineno": 438, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " )\n", "lineno": 439, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": "\n", "lineno": 440, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " if self._keys[nbr_data_idx] == key:\n", "lineno": 441, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " value = self._values[nbr_data_idx]\n", "lineno": 442, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 443, "line": " break\n", "lineno": 443, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 428 }, { "end_region_line": 444, "line": " return value\n", "lineno": 444, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 413 }, { "end_region_line": 781, "line": "\n", "lineno": 445, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 454, "line": " def has_key(self, key: Hashable) -\\u003e bool:\n", "lineno": 446, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 454, "line": " \"\"\"\n", "lineno": 447, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 454, "line": " Check if the given key exists\n", "lineno": 448, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 454, "line": "\n", "lineno": 449, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 454, "line": " :param key: The key to check for existence\n", "lineno": 450, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 454, "line": "\n", "lineno": 451, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 454, "line": " :returns: True if the key exists; False if it does not\n", "lineno": 452, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 454, "line": " \"\"\"\n", "lineno": 453, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 454, "line": " return self.__contains__(key)\n", "lineno": 454, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 446 }, { "end_region_line": 781, "line": "\n", "lineno": 455, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 462, "line": " def keys(self) -\\u003e KeysView[Hashable]:\n", "lineno": 456, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 456 }, { "end_region_line": 462, "line": " \"\"\"\n", "lineno": 457, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 456 }, { "end_region_line": 462, "line": " An iterator over all keys in the dict\n", "lineno": 458, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 456 }, { "end_region_line": 462, "line": "\n", "lineno": 459, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 456 }, { "end_region_line": 462, "line": " :returns: An iterator over self._keys\n", "lineno": 460, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 456 }, { "end_region_line": 462, "line": " \"\"\"\n", "lineno": 461, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 456 }, { "end_region_line": 462, "line": " return HDKeys(self)\n", "lineno": 462, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 456 }, { "end_region_line": 781, "line": "\n", "lineno": 463, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 470, "line": " def values(self) -\\u003e ValuesView[Any]:\n", "lineno": 464, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 464 }, { "end_region_line": 470, "line": " \"\"\"\n", "lineno": 465, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 464 }, { "end_region_line": 470, "line": " An iterator over all values in the dict\n", "lineno": 466, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 464 }, { "end_region_line": 470, "line": "\n", "lineno": 467, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 464 }, { "end_region_line": 470, "line": " :returns: An iterator over self._values\n", "lineno": 468, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 464 }, { "end_region_line": 470, "line": " \"\"\"\n", "lineno": 469, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 464 }, { "end_region_line": 470, "line": " return HDValues(self)\n", "lineno": 470, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 464 }, { "end_region_line": 781, "line": "\n", "lineno": 471, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 478, "line": " def items(self) -\\u003e ItemsView[Hashable, Any]:\n", "lineno": 472, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 472 }, { "end_region_line": 478, "line": " \"\"\"\n", "lineno": 473, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 472 }, { "end_region_line": 478, "line": " An iterator over all `(key, value)` pairs\n", "lineno": 474, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 472 }, { "end_region_line": 478, "line": "\n", "lineno": 475, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 472 }, { "end_region_line": 478, "line": " :returns: An iterator over the `(key, value)` pairs\n", "lineno": 476, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 472 }, { "end_region_line": 478, "line": " \"\"\"\n", "lineno": 477, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 472 }, { "end_region_line": 478, "line": " return HDItems(self)\n", "lineno": 478, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 472 }, { "end_region_line": 781, "line": "\n", "lineno": 479, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 501, "line": " def pop(self, key: Hashable, default: Any = None) -\\u003e Any:\n", "lineno": 480, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " \"\"\"\n", "lineno": 481, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " Return the value associated with the given key and removes it if\n", "lineno": 482, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " the key exists; returns the given default value if the key does\n", "lineno": 483, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " not exist; errors if the key does not exist and no default value\n", "lineno": 484, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " was given\n", "lineno": 485, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": "\n", "lineno": 486, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " :param key: The key to search for\n", "lineno": 487, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " :param default: Value to return if the given key does not exist\n", "lineno": 488, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": "\n", "lineno": 489, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " :returns: The value associated with the key if it exists,\n", "lineno": 490, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " the default value if it does not\n", "lineno": 491, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " \"\"\"\n", "lineno": 492, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " out = default\n", "lineno": 493, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " try:\n", "lineno": 494, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " out = self.__getitem__(key)\n", "lineno": 495, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " except KeyError:\n", "lineno": 496, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " if default is None:\n", "lineno": 497, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " raise\n", "lineno": 498, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " else:\n", "lineno": 499, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " self.__delitem__(key)\n", "lineno": 500, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 501, "line": " return out\n", "lineno": 501, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 480 }, { "end_region_line": 781, "line": "\n", "lineno": 502, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 516, "line": " def popitem(self) -\\u003e tuple[Hashable, Any]:\n", "lineno": 503, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " \"\"\"\n", "lineno": 504, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " Remove an arbitrary `(key, value)` pair if one exists,\n", "lineno": 505, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " erroring otherwise\n", "lineno": 506, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": "\n", "lineno": 507, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " :returns: An arbitrary `(key, value)` pair from the dict\n", "lineno": 508, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " if one exists\n", "lineno": 509, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " \"\"\"\n", "lineno": 510, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " if not len(self):\n", "lineno": 511, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " raise KeyError\n", "lineno": 512, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " else:\n", "lineno": 513, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " key = self._keys[-1]\n", "lineno": 514, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " val = self.pop(self._keys[-1])\n", "lineno": 515, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 516, "line": " return (key, val)\n", "lineno": 516, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 503 }, { "end_region_line": 781, "line": "\n", "lineno": 517, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 534, "line": " def setdefault(self, key: Hashable, default: Any = None) -\\u003e Any:\n", "lineno": 518, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " \"\"\"\n", "lineno": 519, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " Return the value associated with the given key if it exists,\n", "lineno": 520, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " set the value associated with the given key to the default value\n", "lineno": 521, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " if it does not\n", "lineno": 522, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": "\n", "lineno": 523, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " :param key: The key to search for\n", "lineno": 524, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " :param default: The value to insert if the key does not exist\n", "lineno": 525, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": "\n", "lineno": 526, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " :returns: The value associated with the given key if it exists,\n", "lineno": 527, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " the default value otherwise\n", "lineno": 528, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " \"\"\"\n", "lineno": 529, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " try:\n", "lineno": 530, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " return self.__getitem__(key)\n", "lineno": 531, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " except KeyError:\n", "lineno": 532, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " self.__setitem__(key, default)\n", "lineno": 533, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 534, "line": " return default\n", "lineno": 534, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 518 }, { "end_region_line": 781, "line": "\n", "lineno": 535, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 544, "line": " def __init__(self, *args: Any, **kwargs: Any) -\\u003e None:\n", "lineno": 536, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 544, "line": " \"\"\"\n", "lineno": 537, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 544, "line": " Create a new instance with any specified values\n", "lineno": 538, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 544, "line": " \"\"\"\n", "lineno": 539, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 544, "line": " # Use clear function to do initial setup for new tables\n", "lineno": 540, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 544, "line": " if not hasattr(self, \"_size\"):\n", "lineno": 541, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 544, "line": " self.clear()\n", "lineno": 542, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 544, "line": "\n", "lineno": 543, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 544, "line": " self.update(*args, **kwargs)\n", "lineno": 544, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 536 }, { "end_region_line": 781, "line": "\n", "lineno": 545, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 574, "line": " def __getitem__(self, key: Hashable) -\\u003e Any:\n", "lineno": 546, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24798220605021534, "n_cpu_percent_c": 0.31786071316747166, "n_cpu_percent_python": 0.4996432720731974, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0066865374284759875, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " \"\"\"\n", "lineno": 547, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " Retrieve the value associated with the given key,\n", "lineno": 548, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " erroring if the key does not exist\n", "lineno": 549, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": "\n", "lineno": 550, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " :param key: The key to search for\n", "lineno": 551, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": "\n", "lineno": 552, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " :returns: The value associated with the given key\n", "lineno": 553, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " \"\"\"\n", "lineno": 554, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " target_idx = abs(hash(key)) % self._size\n", "lineno": 555, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24565250002827185, "n_cpu_percent_c": 0.3502547565195581, "n_cpu_percent_python": 0.5543481260960175, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.01603997416430331, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": "\n", "lineno": 556, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " nbhd = self._nbhds[target_idx]\n", "lineno": 557, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 572, "line": " for nbhd_idx, nbr in enumerate(bin(nbhd)[:1:-1]):\n", "lineno": 558, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24779835375147044, "n_cpu_percent_c": 1.5439339010761974, "n_cpu_percent_python": 2.509592106678546, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.03632693511492962, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " if nbr == \"1\":\n", "lineno": 559, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " neighbor = (target_idx + nbhd_idx) % self._size\n", "lineno": 560, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " nbr_data_idx = self._indices[neighbor]\n", "lineno": 561, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": "\n", "lineno": 562, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " if nbr_data_idx \\u003c 0:\n", "lineno": 563, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.19230266381410305, "n_core_utilization": 0.2480979147136378, "n_cpu_percent_c": 0.6820030810023056, "n_cpu_percent_python": 1.1063582152851366, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.013843343718217993, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " raise RuntimeError(\n", "lineno": 564, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " (\n", "lineno": 565, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " \"Index {} has supposed displaced neighbor that points to \"\n", "lineno": 566, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " \"free index\"\n", "lineno": 567, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " ).format(target_idx)\n", "lineno": 568, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " )\n", "lineno": 569, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": "\n", "lineno": 570, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " if self._keys[nbr_data_idx] == key:\n", "lineno": 571, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 572, "line": " return self._values[nbr_data_idx]\n", "lineno": 572, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 558 }, { "end_region_line": 574, "line": "\n", "lineno": 573, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 574, "line": " raise KeyError(key)\n", "lineno": 574, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 546 }, { "end_region_line": 781, "line": "\n", "lineno": 575, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 643, "line": " def __setitem__(self, key: Hashable, value: Any) -\\u003e None:\n", "lineno": 576, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24764558252576369, "n_cpu_percent_c": 0.5415913457308669, "n_cpu_percent_python": 0.8781717753986272, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.013569106286983337, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " \"\"\"\n", "lineno": 577, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " Map the given key to the given value, overwriting any\n", "lineno": 578, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " previously-stored value if it exists\n", "lineno": 579, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 580, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " :param key: The key to set\n", "lineno": 581, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " :param value: The value to map the key to\n", "lineno": 582, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " \"\"\"\n", "lineno": 583, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # The index key should map to in _indices if it hasn't been evicted\n", "lineno": 584, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " expected_lookup_idx = abs(hash(key)) % self._size\n", "lineno": 585, "memory_samples": [ [ 35162128357, 299.7479076385498 ], [ 149265162964, 1196.6950511932373 ], [ 150380261539, 1206.789312362671 ] ], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24999244151112282, "n_cpu_percent_c": 0.20149880966009473, "n_cpu_percent_python": 0.33578914297679124, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 30.000054359436035, "n_malloc_mb": 30.000054359436035, "n_mallocs": 0, "n_peak_mb": 30.000054359436035, "n_python_fraction": 1.0, "n_sys_percent": 4.9330599379221796e-05, "n_usage_fraction": 0.02340187353509938, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 586, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # The index of the key in _keys and its related value in _values\n", "lineno": 587, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " _, data_idx = self._lookup(key)\n", "lineno": 588, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24773608302844, "n_cpu_percent_c": 0.4835150882858213, "n_cpu_percent_python": 0.7853248360165873, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.011649596274937871, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 589, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # Overwrite an existing key with new data\n", "lineno": 590, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " if data_idx is not None:\n", "lineno": 591, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24786324668951215, "n_cpu_percent_c": 0.09850440455854638, "n_cpu_percent_python": 0.15980790579140647, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.002239804979224109, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._keys[data_idx] = key\n", "lineno": 592, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._values[data_idx] = value\n", "lineno": 593, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " if not (len(self._keys) == len(self._values)):\n", "lineno": 594, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " raise RuntimeError(\n", "lineno": 595, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " (\"Number of keys {}; \" \"number of values {}; \").format(\n", "lineno": 596, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " len(self._keys), len(self._values)\n", "lineno": 597, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " )\n", "lineno": 598, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " )\n", "lineno": 599, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " return\n", "lineno": 600, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 601, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # If there is an empty neighbor of expected_lookup_idx,\n", "lineno": 602, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # the entry for the new key/value can be stored there\n", "lineno": 603, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " nearest_nbr = self._get_open_neighbor(expected_lookup_idx)\n", "lineno": 604, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24741035727946475, "n_cpu_percent_c": 0.853776372818234, "n_cpu_percent_python": 1.375794457163904, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.023498636290102147, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " if nearest_nbr is not None:\n", "lineno": 605, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " nbhd_idx = (nearest_nbr - expected_lookup_idx) % self._size\n", "lineno": 606, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._set_neighbor(expected_lookup_idx, nbhd_idx)\n", "lineno": 607, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2476393545444732, "n_cpu_percent_c": 0.7931999493860662, "n_cpu_percent_python": 1.283961044039869, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.019905197001702263, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._set_lookup_index_info(nearest_nbr, data=self._count)\n", "lineno": 608, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.2499713874095689, "n_cpu_percent_c": 0.16921862023433382, "n_cpu_percent_python": 0.2820429578733717, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 7.331015152740727e-05, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._keys.append(key)\n", "lineno": 609, "memory_samples": [ [ 16117298889, 151.91935539245605 ], [ 29653455680, 258.06373405456543 ], [ 48315882588, 405.95519065856934 ], [ 89423210656, 727.8134136199951 ], [ 124484634922, 1008.8518581390381 ], [ 139415807748, 1104.9063396453857 ], [ 142561332287, 1135.2451992034912 ] ], "n_avg_mb": 10.087073462350029, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24433640369401424, "n_cpu_percent_c": 0.11997895899994547, "n_cpu_percent_python": 0.18378426320290112, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 10.166247367858887, "n_malloc_mb": 70.6095142364502, "n_mallocs": 7, "n_peak_mb": 10.166247367858887, "n_python_fraction": 0.9999998582130455, "n_sys_percent": 0.007065697497073269, "n_usage_fraction": 0.055079730947769856, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._values.append(value)\n", "lineno": 610, "memory_samples": [ [ 8496939517, 90.86102104187012 ], [ 64088431081, 531.539083480835 ], [ 71920789392, 592.3434429168701 ], [ 88295435163, 717.5529232025146 ], [ 91469037660, 748.5214290618896 ], [ 100097089188, 829.7027187347412 ], [ 134006806490, 1061.1651287078857 ] ], "n_avg_mb": 10.325057574680873, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24421405795816822, "n_cpu_percent_c": 0.11843876741155929, "n_cpu_percent_python": 0.1771306334575307, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 10.519518852233887, "n_malloc_mb": 72.27540302276611, "n_mallocs": 7, "n_peak_mb": 10.519518852233887, "n_python_fraction": 0.9999992961189016, "n_sys_percent": 0.00702861628885115, "n_usage_fraction": 0.056379225883139636, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._count += 1\n", "lineno": 611, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 612, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " else:\n", "lineno": 613, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # Free up a neighbor of the expected index to accomodate the new\n", "lineno": 614, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # item\n", "lineno": 615, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " try:\n", "lineno": 616, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._free_up(expected_lookup_idx)\n", "lineno": 617, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 618, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # No way to keep neighborhood invariant, must resize first\n", "lineno": 619, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " except RuntimeError:\n", "lineno": 620, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " if self._size \\u003c 2**16:\n", "lineno": 621, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._resize(self._size * 4)\n", "lineno": 622, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " else:\n", "lineno": 623, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._resize(self._size * 2)\n", "lineno": 624, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 625, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # There should now be an available neighbor of the expected index,\n", "lineno": 626, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " # try again\n", "lineno": 627, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " finally:\n", "lineno": 628, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self.__setitem__(key, value)\n", "lineno": 629, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " return\n", "lineno": 630, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 631, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " if len(self._keys) != len(self._values):\n", "lineno": 632, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24701771336317108, "n_cpu_percent_c": 0.7686131549202236, "n_cpu_percent_python": 1.234282494711232, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.024288566392996494, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " raise RuntimeError(\n", "lineno": 633, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " (\"Number of keys {}; \" \"number of values {}; \").format(\n", "lineno": 634, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " len(self._keys), len(self._values)\n", "lineno": 635, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " )\n", "lineno": 636, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " )\n", "lineno": 637, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": "\n", "lineno": 638, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " if self._count / self._size \\u003e= self.MAX_DENSITY:\n", "lineno": 639, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24641223614576868, "n_cpu_percent_c": 0.24366721164220248, "n_cpu_percent_python": 0.37069988668381854, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.008980142553085442, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " if self._size \\u003c 2**16:\n", "lineno": 640, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._resize(self._size * 4)\n", "lineno": 641, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " else:\n", "lineno": 642, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 643, "line": " self._resize(self._size * 2)\n", "lineno": 643, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 576 }, { "end_region_line": 781, "line": "\n", "lineno": 644, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 690, "line": " def __delitem__(self, key: Hashable) -\\u003e None:\n", "lineno": 645, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " \"\"\"\n", "lineno": 646, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " Remove the given key from the dict and its associated value\n", "lineno": 647, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": "\n", "lineno": 648, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " :param key: The key to remove from the dict\n", "lineno": 649, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " \"\"\"\n", "lineno": 650, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # The index key should map to in _indices if it hasn't been evicted\n", "lineno": 651, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " expected_lookup_idx = abs(hash(key)) % self._size\n", "lineno": 652, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": "\n", "lineno": 653, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # The index key actually maps to in _indices,\n", "lineno": 654, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # and the index its related value maps to in _values\n", "lineno": 655, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " lookup_idx, data_idx = self._lookup(key)\n", "lineno": 656, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": "\n", "lineno": 657, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # Key not in dict\n", "lineno": 658, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " if data_idx is None:\n", "lineno": 659, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " raise KeyError(key)\n", "lineno": 660, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": "\n", "lineno": 661, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " else:\n", "lineno": 662, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # If the key and its associated value aren't the last entries in\n", "lineno": 663, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # their respective lists, swap with the last entries to not leave a\n", "lineno": 664, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # hole in said lists\n", "lineno": 665, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " lookup_idx = cast(int, lookup_idx)\n", "lineno": 666, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": "\n", "lineno": 667, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " if data_idx != self._count - 1:\n", "lineno": 668, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " tail_key = self._keys[-1]\n", "lineno": 669, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " tail_val = self._values[-1]\n", "lineno": 670, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " tail_lookup_idx, _ = self._lookup(tail_key)\n", "lineno": 671, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # Move the data to be removed to the end of each list and update\n", "lineno": 672, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # indices\n", "lineno": 673, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " self._keys[data_idx] = tail_key\n", "lineno": 674, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " self._values[data_idx] = tail_val\n", "lineno": 675, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " self._set_lookup_index_info(cast(int, tail_lookup_idx), data=data_idx)\n", "lineno": 676, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": "\n", "lineno": 677, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # Update the neighborhood of the index the key to be removed is\n", "lineno": 678, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # supposed to point to, since the key to be removed must be\n", "lineno": 679, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # somewhere in it\n", "lineno": 680, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " nbhd_idx = (lookup_idx - expected_lookup_idx) % self._size\n", "lineno": 681, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " self._clear_neighbor(expected_lookup_idx, nbhd_idx)\n", "lineno": 682, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": "\n", "lineno": 683, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # Remove the last item from the variable tables, either the actual\n", "lineno": 684, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # data to be removed or what was originally at the end before\n", "lineno": 685, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " # it was copied over the data to be removed\n", "lineno": 686, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " del self._keys[-1]\n", "lineno": 687, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " del self._values[-1]\n", "lineno": 688, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " self._set_lookup_index_info(lookup_idx, data=self.FREE_ENTRY)\n", "lineno": 689, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 690, "line": " self._count -= 1\n", "lineno": 690, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 645 }, { "end_region_line": 781, "line": "\n", "lineno": 691, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 699, "line": " def __contains__(self, key: Hashable) -\\u003e bool:\n", "lineno": 692, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.5302374872664024, "n_core_utilization": 0.2474921529584334, "n_cpu_percent_c": 1.2373240792733813, "n_cpu_percent_python": 1.9945779260138192, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.03296089270631383, "n_usage_fraction": 0.0, "start_region_line": 692 }, { "end_region_line": 699, "line": " \"\"\"\n", "lineno": 693, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 692 }, { "end_region_line": 699, "line": " Check if the given key exists\n", "lineno": 694, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 692 }, { "end_region_line": 699, "line": "\n", "lineno": 695, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 692 }, { "end_region_line": 699, "line": " :returns: True if the key exists, False otherwise\n", "lineno": 696, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 692 }, { "end_region_line": 699, "line": " \"\"\"\n", "lineno": 697, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 692 }, { "end_region_line": 699, "line": " _, idx = self._lookup(key)\n", "lineno": 698, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.24926838804794033, "n_cpu_percent_c": 1.202531372530931, "n_cpu_percent_python": 1.988785618453719, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.009603902186270798, "n_usage_fraction": 0.0, "start_region_line": 692 }, { "end_region_line": 699, "line": " return idx is not None\n", "lineno": 699, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 692 }, { "end_region_line": 781, "line": "\n", "lineno": 700, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 722, "line": " def __eq__(self, other: Any) -\\u003e bool:\n", "lineno": 701, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " \"\"\"\n", "lineno": 702, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " Check if the given object is equivalent to this dict\n", "lineno": 703, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": "\n", "lineno": 704, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " :param other: The object to test for equality to this dict\n", "lineno": 705, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": "\n", "lineno": 706, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " :returns: True if the given object is equivalent to this dict,\n", "lineno": 707, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " False otherwise\n", "lineno": 708, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " \"\"\"\n", "lineno": 709, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " if not isinstance(other, MutableMapping):\n", "lineno": 710, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " return False\n", "lineno": 711, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": "\n", "lineno": 712, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " if len(self) != len(other):\n", "lineno": 713, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " return False\n", "lineno": 714, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": "\n", "lineno": 715, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " if set(self._keys) ^ set(other.keys()):\n", "lineno": 716, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " return False\n", "lineno": 717, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": "\n", "lineno": 718, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " return all(\n", "lineno": 719, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " self[k] == other[k] and type(self[k]) == type(other[k]) # noqa\n", "lineno": 720, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " for k in self._keys\n", "lineno": 721, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 722, "line": " )\n", "lineno": 722, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 701 }, { "end_region_line": 781, "line": "\n", "lineno": 723, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 730, "line": " def __iter__(self) -\\u003e Iterator[Hashable]:\n", "lineno": 724, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 724 }, { "end_region_line": 730, "line": " \"\"\"\n", "lineno": 725, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 724 }, { "end_region_line": 730, "line": " Return an iterator over the keys\n", "lineno": 726, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 724 }, { "end_region_line": 730, "line": "\n", "lineno": 727, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 724 }, { "end_region_line": 730, "line": " :returns An iterator over the keys\n", "lineno": 728, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 724 }, { "end_region_line": 730, "line": " \"\"\"\n", "lineno": 729, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 724 }, { "end_region_line": 730, "line": " return iter(self._keys)\n", "lineno": 730, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 724 }, { "end_region_line": 781, "line": "\n", "lineno": 731, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 738, "line": " def __len__(self) -\\u003e int:\n", "lineno": 732, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 732 }, { "end_region_line": 738, "line": " \"\"\"\n", "lineno": 733, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 732 }, { "end_region_line": 738, "line": " Return the number of items currently stored\n", "lineno": 734, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 732 }, { "end_region_line": 738, "line": "\n", "lineno": 735, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 732 }, { "end_region_line": 738, "line": " :returns: The number of items currently stored\n", "lineno": 736, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 732 }, { "end_region_line": 738, "line": " \"\"\"\n", "lineno": 737, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 732 }, { "end_region_line": 738, "line": " return self._count\n", "lineno": 738, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 732 }, { "end_region_line": 781, "line": "\n", "lineno": 739, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 749, "line": " def __ne__(self, other: Any) -\\u003e bool:\n", "lineno": 740, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": " \"\"\"\n", "lineno": 741, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": " Check if the given object is not equivalent to this dict\n", "lineno": 742, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": "\n", "lineno": 743, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": " :param other: The object to test for equality to this dict\n", "lineno": 744, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": "\n", "lineno": 745, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": " :returns: True if the given object is not equivalent to this\n", "lineno": 746, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": " dict, False otherwise\n", "lineno": 747, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": " \"\"\"\n", "lineno": 748, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 749, "line": " return not self.__eq__(other)\n", "lineno": 749, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 740 }, { "end_region_line": 781, "line": "\n", "lineno": 750, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 762, "line": " def __repr__(self) -\\u003e str:\n", "lineno": 751, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " \"\"\"\n", "lineno": 752, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " Return a representation that could be used to create an\n", "lineno": 753, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " equivalent dict using `eval()`\n", "lineno": 754, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": "\n", "lineno": 755, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " :returns: A string that could be used to create an equivalent\n", "lineno": 756, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " representation\n", "lineno": 757, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " \"\"\"\n", "lineno": 758, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " stringified = [\n", "lineno": 759, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " f\"{key!r}: {val!r}\" for (key, val) in zip(self._keys, self._values)\n", "lineno": 760, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " ]\n", "lineno": 761, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 762, "line": " return f\"HopscotchDict({{{', '.join(stringified)}}})\"\n", "lineno": 762, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 751 }, { "end_region_line": 781, "line": "\n", "lineno": 763, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 770, "line": " def __reversed__(self) -\\u003e Iterator[Hashable]:\n", "lineno": 764, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 764 }, { "end_region_line": 770, "line": " \"\"\"\n", "lineno": 765, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 764 }, { "end_region_line": 770, "line": " Return an iterator over the keys in reverse order\n", "lineno": 766, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 764 }, { "end_region_line": 770, "line": "\n", "lineno": 767, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 764 }, { "end_region_line": 770, "line": " :returns: An iterator over the keys in reverse order\n", "lineno": 768, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 764 }, { "end_region_line": 770, "line": " \"\"\"\n", "lineno": 769, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 764 }, { "end_region_line": 770, "line": " return reversed(self._keys)\n", "lineno": 770, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 764 }, { "end_region_line": 781, "line": "\n", "lineno": 771, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 26 }, { "end_region_line": 781, "line": " def __str__(self) -\\u003e str:\n", "lineno": 772, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": " \"\"\"\n", "lineno": 773, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": " Return a simpler representation of the items in the dict\n", "lineno": 774, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": "\n", "lineno": 775, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": " :returns: A string containing all items in the dict\n", "lineno": 776, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": " \"\"\"\n", "lineno": 777, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": " stringified = [\n", "lineno": 778, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": " f\"{key!r}: {val!r}\" for (key, val) in zip(self._keys, self._values)\n", "lineno": 779, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": " ]\n", "lineno": 780, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 }, { "end_region_line": 781, "line": " return f\"{{{', '.join(stringified)}}}\"\n", "lineno": 781, "memory_samples": [], "n_avg_mb": 0.0, "n_copy_mb_s": 0.0, "n_core_utilization": 0.0, "n_cpu_percent_c": 0.0, "n_cpu_percent_python": 0.0, "n_gpu_avg_memory_mb": 0.0, "n_gpu_peak_memory_mb": 0.0, "n_gpu_percent": 0, "n_growth_mb": 0.0, "n_malloc_mb": 0.0, "n_mallocs": 0, "n_peak_mb": 0.0, "n_python_fraction": 0, "n_sys_percent": 0.0, "n_usage_fraction": 0.0, "start_region_line": 772 } ], "percent_cpu_time": 75.28436639044276 } }, "gpu": false, "growth_rate": 93.36421709756249, "max_footprint_fname": "/home/jeremy/py-hopscotch-dict/src/py_hopscotch_dict/hopscotchdict.py", "max_footprint_lineno": 296, "max_footprint_mb": 1206.8835554122925, "memory": true, "program": "/home/jeremy/bench_1.py", "samples": [ [ 1369409885, 10.012939453125 ], [ 1369416227, 20.012954711914062 ], [ 1369418843, 30.1147518157959 ], [ 1369423273, 30.303237915039062 ], [ 3519412871, 50.53859233856201 ], [ 9583697269, 101.0495252609253 ], [ 13550246378, 131.23808097839355 ], [ 14248119180, 141.90784740447998 ], [ 17518487848, 162.01364707946777 ], [ 19652028191, 182.2964277267456 ], [ 21151104185, 192.29645347595215 ], [ 21973274414, 203.73609447479248 ], [ 23957378885, 213.7361125946045 ], [ 27769204216, 247.90194988250732 ], [ 29653412810, 258.06373405456543 ], [ 30473009039, 269.55938243865967 ], [ 34021550775, 289.6536464691162 ], [ 36179475089, 309.84216117858887 ], [ 37023640970, 320.79976177215576 ], [ 38564445826, 330.79977226257324 ], [ 40656349800, 351.0825834274292 ], [ 42555754002, 361.0826244354248 ], [ 42927242034, 371.72136211395264 ], [ 44209816801, 385.7514066696167 ], [ 44209824864, 375.6573009490967 ], [ 46181274423, 385.65731620788574 ], [ 51511764623, 436.3322477340698 ], [ 53746722725, 446.3322811126709 ], [ 53997937073, 459.9979124069214 ], [ 56898558190, 469.99792289733887 ], [ 61138175401, 510.3750286102295 ], [ 61524501926, 521.2450742721558 ], [ 64088384188, 531.539083480835 ], [ 65129468729, 541.7276029586792 ], [ 67637600656, 551.7276363372803 ], [ 70965172959, 582.0104503631592 ], [ 71920746634, 592.3434429168701 ], [ 72676477178, 603.5506772994995 ], [ 74569336260, 613.5507259368896 ], [ 79710509588, 664.11634349823 ], [ 82454761385, 674.1163845062256 ], [ 83399022454, 697.123212814331 ], [ 83399032250, 697.2174558639526 ], [ 83399036199, 713.1238765716553 ], [ 83399044578, 697.1238384246826 ], [ 87367181370, 707.2181224822998 ], [ 91469002099, 748.6156721115112 ], [ 95977992949, 788.8985118865967 ], [ 100097063719, 829.7969617843628 ], [ 103161772191, 839.7969722747803 ], [ 104350647935, 849.8912258148193 ], [ 107860163220, 880.1740627288818 ], [ 108700315977, 890.3625745773315 ], [ 112098583688, 920.5511226654053 ], [ 112864383570, 930.7396268844604 ], [ 117573523235, 971.022497177124 ], [ 118611108172, 994.7444744110107 ], [ 118611118217, 994.8387174606323 ], [ 118611122388, 1010.745138168335 ], [ 118611131772, 994.7451000213623 ], [ 120901099984, 1010.7515926361084 ], [ 120901107905, 994.7515544891357 ], [ 120901109657, 994.8457975387573 ], [ 120901111436, 1010.7519512176514 ], [ 120906621123, 1010.846194267273 ], [ 120906637773, 998.752363204956 ], [ 124484595695, 1008.8518581390381 ], [ 125165568731, 1030.3659496307373 ], [ 125165579064, 1030.460192680359 ], [ 125165583209, 1046.3666133880615 ], [ 125165592210, 1030.3665752410889 ], [ 133275666464, 1050.555097579956 ], [ 134006770424, 1061.2593717575073 ], [ 135266493044, 1074.7127485275269 ], [ 137171861496, 1084.712797164917 ], [ 141642052211, 1125.094877243042 ], [ 143387862698, 1145.3394832611084 ], [ 143777440638, 1156.4122495651245 ], [ 146404293284, 1166.4122676849365 ], [ 150380240575, 1206.8835554122925 ], [ 150718074960, 1196.8834819793701 ] ], "stacks": [] }